scrivito_sdk 1.13.0.rc1 → 1.13.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 851adbfccf6320ffff4dae4de491a9a5c76d048e919d12dacde72edccdb78690
|
4
|
+
data.tar.gz: 32a41130e8453f8fc2bb0a7481d7c0a7e25c9a47c8030c4a19cf6e1a0931664a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b97268397b350fa518d4ce878370ad9287472537d05e51eb18413608db2fb672ccff45b3809450d1ebfc5afcea0cb18775aa76f02020df706798e2443139e6fd
|
7
|
+
data.tar.gz: 6581fe27128fc6e3ae9d49fb78dbfcdbb84e97173db9eca7a34b6a6004ae1528349511bcb398111e90774d87973da9934c72280836773f89acf648ed0e1effaf
|
data/config/ca-bundle.crt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
##
|
2
2
|
## Bundle of CA Root Certificates
|
3
3
|
##
|
4
|
-
## Certificate data from Mozilla as of:
|
4
|
+
## Certificate data from Mozilla as of: Mon Feb 26 09:22:23 2018 GMT
|
5
5
|
##
|
6
6
|
## This is a bundle of X.509 certificates of public Certificate Authorities
|
7
7
|
## (CA). These were automatically extracted from Mozilla's root certificates
|
@@ -69,6 +69,6 @@ function(e){function t(e,t,n,r){var i,o,a,s,c,f,d,h,p,v;if((t?t.ownerDocument||t
|
|
69
69
|
* Copyright (c) 2014-2016 Giulio Canti
|
70
70
|
*
|
71
71
|
*/
|
72
|
-
var r=n(4);r.Any=n(67),r.Array=n(159),r.Boolean=n(89),r.Date=n(160),r.Error=n(161),r.Function=n(62),r.Nil=n(90),r.Number=n(91),r.Integer=n(162),r.IntegerT=r.Integer,r.Object=n(163),r.RegExp=n(164),r.String=n(69),r.Type=n(165),r.TypeT=r.Type,r.Arr=r.Array,r.Bool=r.Boolean,r.Dat=r.Date,r.Err=r.Error,r.Func=r.Function,r.Num=r.Number,r.Obj=r.Object,r.Re=r.RegExp,r.Str=r.String,r.dict=n(70),r.declare=n(166),r.enums=n(167),r.irreducible=n(14),r.list=n(94),r.maybe=n(168),r.refinement=n(68),r.struct=n(170),r.tuple=n(97),r.union=n(174),r.func=n(175),r.intersection=n(176),r.subtype=r.refinement,r.inter=n(177),r.interface=r.inter,r.assert=r,r.update=n(178),r.mixin=n(71),r.isType=n(10),r.is=n(29),r.getTypeName=n(7),r.match=n(179),e.exports=r},function(e,t){e.exports=function(e){throw new TypeError("[tcomb] "+e)}},function(e,t,n){var r=n(14),i=n(26);e.exports=r("Array",i)},function(e,t,n){var r=n(14);e.exports=r("Date",function(e){return e instanceof Date})},function(e,t,n){var r=n(14);e.exports=r("Error",function(e){return e instanceof Error})},function(e,t,n){var r=n(68),i=n(91);e.exports=r(i,function(e){return e%1==0},"Integer")},function(e,t,n){var r=n(14),i=n(25);e.exports=r("Object",i)},function(e,t,n){var r=n(14);e.exports=r("RegExp",function(e){return e instanceof RegExp})},function(e,t,n){var r=n(14),i=n(10);e.exports=r("Type",i)},function(e,t,n){var r=(n(4),n(18),n(10),n(23),n(71)),i=n(7),o=n(93),a=1;e.exports=function(e){function t(e,t){return n(e,t)}var n;return t.define=function(i){return o(i)&&t.hasOwnProperty("dispatch")&&(i.dispatch=t.dispatch),n=i,r(t,n,!0),e&&(n.displayName=t.displayName=e,t.meta.name=e),t.meta.identity=n.meta.identity,t.prototype=n.prototype,t},t.displayName=e||i(t)+"$"+a++,t.meta={identity:!1},t.prototype=null,t}},function(e,t,n){function r(e){return Object.keys(e).map(function(e){return o.stringify(e)}).join(" | ")}function i(e,t){function n(e,t){return e}var i=t||r(e);return n.meta={kind:"enums",map:e,name:t,identity:!0},n.displayName=i,n.is=function(t){return e.hasOwnProperty(t)},n}var o=n(4),a=(n(18),n(46),n(60));n(25);i.of=function(e,t){e=a(e)?e.split(" "):e;var n={};return e.forEach(function(e){n[e]=e}),i(n,t)},i.getDefaultName=r,e.exports=i},function(e,t,n){function r(e){return"?"+f(e)}function i(e,t){function n(t,n){return c.is(t)?t:u(e,t,n)}if(o(e)||e===s||e===c)return e;var i=t||r(e),f=a(e);return n.meta={kind:"maybe",type:e,name:t,identity:f},n.displayName=i,n.is=function(t){return c.is(t)||l(t,e)},n}var o=(n(4),n(18),n(9),n(169)),a=n(27),s=n(67),u=n(28),c=n(90),l=(n(46),n(29)),f=n(7);i.getDefaultName=r,e.exports=i},function(e,t,n){var r=n(10);e.exports=function(e){return r(e)&&"maybe"===e.meta.kind}},function(e,t,n){function r(e){return"Struct"+f(e)}function i(e,t){return d(a,e,t)}function o(e){return u(e)||(e=c(e)?{}:{name:e}),e.hasOwnProperty("strict")||(e.strict=a.strict),e.hasOwnProperty("defaultProps")||(e.defaultProps={}),e}function a(e,t){function n(t,r){if(n.is(t))return t;if(!(this instanceof n))return new n(t,r);for(var i in e)if(e.hasOwnProperty(i)){var o=e[i],a=t[i];void 0===a&&(a=c[i]),this[i]=l(o,a,null)}}t=o(t);var a=t.name,u=t.strict,c=t.defaultProps,f=a||r(e);return n.meta={kind:"struct",props:e,name:a,identity:!1,strict:u,defaultProps:c},n.displayName=f,n.is=function(e){return e instanceof n},n.update=function(e,t){return new n(s.update(e,t))},n.extend=function(e,t){return i([n].concat(e),t)},n}var s=n(4),u=(n(18),n(69),n(62),n(61),n(25)),c=n(23),l=n(28),f=(n(7),n(70),n(95)),d=n(96);a.strict=!1,a.getOptions=o,a.getDefaultName=r,a.extend=i,e.exports=a},function(e,t,n){var r=n(10);e.exports=function(e){return r(e)&&"struct"===e.meta.kind}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e)&&"interface"===e.meta.kind}},function(e,t,n){function r(e){return s(e)&&"subtype"===e.meta.kind}function i(e){return r(e)?[e.meta.predicate].concat(i(e.meta.type)):[]}function o(e){return r(e)?o(e.meta.type):e}function a(e){return{predicates:i(e),unrefinedType:o(e)}}var s=n(10);e.exports=a},function(e,t,n){function r(e){return e.map(a).join(" | ")}function i(e,t){function n(e,t){if(a)return e;var r=n.dispatch(e);return!r&&n.is(e)?e:u(r,e,t)}var i=t||r(e),a=e.every(s);return n.meta={kind:"union",types:e,name:t,identity:a},n.displayName=i,n.is=function(t){return e.some(function(e){return c(t,e)})},n.dispatch=function(t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(l(i)){var o=i.dispatch(t);if(!f(o))return o}else if(c(t,i))return i}},n.update=function(e,t){return n(o.update(e,t))},n}var o=n(4),a=(n(18),n(9),n(7)),s=n(27),u=(n(26),n(28)),c=n(29),l=(n(46),n(93)),f=n(23);i.getDefaultName=r,e.exports=i},function(e,t,n){function r(e,t){return"("+e.map(d).join(", ")+") => "+d(t)}function i(e){return s.is(e)&&c(e.instrumentation)}function o(e){for(var t=e.length,n=!1,r=t-1;r>=0;r--){var i=e[r];if(!h(i)||"maybe"!==i.meta.kind)return r+1;n=!0}return n?0:t}function a(e,t,n){function s(e,t){return i(e)?e:s.of(e)}e=u(e)?e:[e];var c=n||r(e,t),d=e.length;o(e);return s.meta={kind:"func",domain:e,codomain:t,name:n,identity:!0},s.displayName=c,s.is=function(n){return i(n)&&n.instrumentation.domain.length===d&&n.instrumentation.domain.every(function(t,n){return t===e[n]})&&n.instrumentation.codomain===t},s.of=function(n,r){function i(){var i=Array.prototype.slice.call(arguments),o=i.length;if(r&&o<d){var s=Function.prototype.bind.apply(n,[this].concat(i));return a(e.slice(o),t).of(s,!0)}return l(t,n.apply(this,i))}return s.is(n)?n:(i.instrumentation={domain:e,codomain:t,f:n},i.displayName=f(n),i)},s}var s=(n(4),n(18),n(62)),u=n(26),c=(n(94),n(25)),l=n(28),f=(n(23),n(61),n(97),n(45)),d=n(7),h=n(10);a.getDefaultName=r,a.getOptionalArgumentsIndex=o,e.exports=a},function(e,t,n){function r(e){return e.map(s).join(" & ")}function i(e,t){function n(e,t){return e}var i=t||r(e),s=e.every(u);return n.meta={kind:"intersection",types:e,name:t,identity:s},n.displayName=i,n.is=function(t){return e.every(function(e){return a(t,e)})},n.update=function(e,t){return n(o.update(e,t))},n}var o=n(4),a=(n(18),n(9),n(26),n(27),n(29)),s=n(7),u=n(27);i.getDefaultName=r,e.exports=i},function(e,t,n){function r(e,t){return h(o,e,t)}function i(e){return s(e)||(e=u(e)?{}:{name:e}),e.hasOwnProperty("strict")||(e.strict=o.strict),e}function o(e,t){function n(t,n){if(v)return t;var r=!0,i=v?{}:p({},t);for(var o in e){var a=e[o],s=t[o],u=c(a,s,null);r=r&&s===u,i[o]=u}return r&&(i=t),i}t=i(t);var o=t.name,s=t.strict,h=o||l(e),v=Object.keys(e).map(function(t){return e[t]}).every(f);return n.meta={kind:"interface",props:e,name:o,identity:v,strict:s},n.displayName=h,n.is=function(t){if(u(t))return!1;if(s)for(var n in t)if(!e.hasOwnProperty(n))return!1;for(var r in e)if(!d(t[r],e[r]))return!1;return!0},n.update=function(e,t){return n(a.update(e,t))},n.extend=function(e,t){return r([n].concat(e),t)},n}var a=n(4),s=(n(18),n(69),n(62),n(61),n(25)),u=n(23),c=n(28),l=(n(7),n(70),n(95)),f=n(27),d=n(29),h=n(96),p=n(98);o.strict=!1,o.getOptions=i,o.getDefaultName=l,o.extend=r,e.exports=o},function(e,t,n){function r(e){return v(e)?e instanceof Date||e instanceof RegExp?e:g({},e):m(e)?e.concat():e}function i(e){return a.commands.hasOwnProperty(e)}function o(e){return a.commands[e]}function a(e,t){var n,s=e,u=!1;for(var c in t)t.hasOwnProperty(c)&&(i(c)?(n=o(c)(t[c],s),n!==e?(u=!0,s=n):s=e):(s===e&&(s=r(e)),n=a(s[c],t[c]),u=u||n!==s[c],s[c]=n));return u?s:e}function s(e,t){return e(t)}function u(e,t){return e.length>0?t.concat(e):t}function c(e,t){if(e.length>0){t=r(t);for(var n=0,i=e.length;n<i;n++)delete t[e[n]]}return t}function l(e){return e}function f(e,t){return e.length>0?(t=r(t),e.reduce(function(e,t){return e.splice.apply(e,t),e},t)):t}function d(e,t){if(e.from!==e.to){t=r(t);var n=t[e.to];t[e.to]=t[e.from],t[e.from]=n}return t}function h(e,t){return e.length>0?e.concat(t):t}function p(e,t){var n=!1,i=r(t);for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],n=n||i[o]!==t[o]);return n?i:t}var v=(n(4),n(25)),m=(n(9),n(26)),g=(n(92),n(98));a.commands={$apply:s,$push:u,$remove:c,$set:l,$splice:f,$swap:d,$unshift:h,$merge:p},e.exports=a},function(e,t,n){var r=n(4),i=n(9),o=n(10),a=n(67);e.exports=function(e){for(var t,n,s,u=1,c=arguments.length;u<c;)if(t=arguments[u],n=arguments[u+1],s=arguments[u+2],i(s)&&!o(s)?u+=3:(s=n,n=a.is,u+=2),t.is(e)&&n(e))return s(e);r.fail("Match error")}},function(e,t,n){"use strict";var r=n(181),i=function(e){return e&&e.__esModule?e:{default:e}}(r);scrivito.Promise=window.Promise||i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(){}function r(e,t){return function(){e.apply(t,arguments)}}function i(e,t){for(;3===e._state;)e=e._value;if(0===e._state)return void e._deferreds.push(t);e._handled=!0,l._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._state?o:a)(t.promise,e._value);var r;try{r=n(e._value)}catch(e){return void a(t.promise,e)}o(t.promise,r)})}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof l)return e._state=3,e._value=t,void s(e);if("function"==typeof n)return void c(r(n,t),e)}e._state=1,e._value=t,s(e)}catch(t){a(e,t)}}function a(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&l._immediateFn(function(){e._handled||l._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}function u(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function c(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,a(t,e))})}catch(e){if(n)return;n=!0,a(t,e)}}function l(e){if(!(this instanceof l))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}var f=setTimeout,d=l.prototype;d.catch=function(e){return this.then(null,e)},d.then=function(e,t){var r=new this.constructor(n);return i(this,new u(e,t,r)),r},l.all=function(e){return new l(function(t,n){function r(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){r(e,t)},n)}i[e]=a,0==--o&&t(i)}catch(e){n(e)}}if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var o=i.length,a=0;a<i.length;a++)r(a,i[a])})},l.resolve=function(e){return e&&"object"==typeof e&&e.constructor===l?e:new l(function(t){t(e)})},l.reject=function(e){return new l(function(t,n){n(e)})},l.race=function(e){return new l(function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)})},l._immediateFn="function"==typeof e&&function(t){e(t)}||function(e){f(e,0)},l._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},t.default=l}.call(t,n(182).setImmediate)},function(e,t,n){function r(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(183),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return c[u]=r,s(u),u++}function i(e){delete c[e]}function o(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function a(e){if(l)setTimeout(a,0,e);else{var t=c[e];if(t){l=!0;try{o(t)}finally{i(e),l=!1}}}}if(!e.setImmediate){var s,u=1,c={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?function(){s=function(e){t.nextTick(function(){a(e)})}}():function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&a(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),s=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){a(e.data)},s=function(t){e.port2.postMessage(t)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var e=f.documentElement;s=function(t){var n=f.createElement("script");n.onreadystatechange=function(){a(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():function(){s=function(e){setTimeout(a,0,e)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,n(51),n(79))},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e,t,r){return n?e:i.default.throttle(e,t,r)}function t(){n=!0}var n=!1;scrivito.throttle=e,scrivito.bypassThrottle=t}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(0),a=r(o),s=n(42),u=r(s),c=n(1);!function(){scrivito.typeInfo={normalize:function(e){if(a.default.isString(e))return[e];if(a.default.isArray(e))return e;throw new c.InternalError("Type Info needs to be a string or an array containing a string and optionally a hash")},normalizeAttrs:function(e){var t=this;return a.default.mapObject(e,function(e,n){var r=i(e,2),o=r[0],a=r[1];return(0,u.default)(n)?[o]:[o,t.normalize(a)]})},unwrapAttributes:function(e){return a.default.mapObject(e,function(e){return i(e,1)[0]})}}}()},function(e,t,n){"use strict";function r(e){return(0,o.default)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(132),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){var r,i;!function(n,o){"use strict";var a=function(e,t){var n,r,i,o,a,s,l,f,d,h,p,v,m,g,y,b="-",w=[";","?",":","@","&","=","+","$",",","/"],_=[";","?",":","@","&","=","+","$",","],C=[".","!","~","*","'","(",")"],k="",E="",x=!0,S={},T={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"Ae","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"Oe","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"Ue","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"ue","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","ا":"a","أ":"a","إ":"i","آ":"aa","ؤ":"u","ئ":"e","ء":"a","ب":"b","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ي":"y","ى":"a","ة":"h","ﻻ":"la","ﻷ":"laa","ﻹ":"lai","ﻵ":"laa","گ":"g","چ":"ch","پ":"p","ژ":"zh","ک":"k","ی":"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","က":"k","ခ":"kh","ဂ":"g","ဃ":"ga","င":"ng","စ":"s","ဆ":"sa","ဇ":"z","စျ":"za","ည":"ny","ဋ":"t","ဌ":"ta","ဍ":"d","ဎ":"da","ဏ":"na","တ":"t","ထ":"ta","ဒ":"d","ဓ":"da","န":"n","ပ":"p","ဖ":"pa","ဗ":"b","ဘ":"ba","မ":"m","ယ":"y","ရ":"ya","လ":"l","ဝ":"w","သ":"th","ဟ":"h","ဠ":"la","အ":"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h","ဧ":"e","၏":"-e","ဣ":"i","ဤ":"-i","ဉ":"u","ဦ":"-u","ဩ":"aw","သြော":"aw","ဪ":"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ހ":"h","ށ":"sh","ނ":"n","ރ":"r","ބ":"b","ޅ":"lh","ކ":"k","އ":"a","ވ":"v","މ":"m","ފ":"f","ދ":"dh","ތ":"th","ލ":"l","ގ":"g","ޏ":"gn","ސ":"s","ޑ":"d","ޒ":"z","ޓ":"t","ޔ":"y","ޕ":"p","ޖ":"j","ޗ":"ch","ޘ":"tt","ޙ":"hh","ޚ":"kh","ޛ":"th","ޜ":"z","ޝ":"sh","ޞ":"s","ޟ":"d","ޠ":"t","ޡ":"z","ޢ":"a","ޣ":"gh","ޤ":"q","ޥ":"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"ks","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"o","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"i","ώ":"o","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"I","Θ":"TH","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"KS","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"O","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"I","Ώ":"O","Ϊ":"I","Ϋ":"Y","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","Ā":"A","Ē":"E","Ģ":"G","Ī":"I","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"U","Ќ":"Kj","ќ":"kj","Љ":"Lj","љ":"lj","Њ":"Nj","њ":"nj","Тс":"Ts","тс":"ts","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","ă":"a","Ă":"A","ș":"s","Ș":"S","ț":"t","Ț":"T","ţ":"t","Ţ":"T","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"kh","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"I","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"Kh","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","ђ":"dj","ј":"j","ћ":"c","џ":"dz","Ђ":"Dj","Ј":"j","Ћ":"C","Џ":"Dz","ľ":"l","ĺ":"l","ŕ":"r","Ľ":"L","Ĺ":"L","Ŕ":"R","ş":"s","Ş":"S","ı":"i","İ":"I","ğ":"g","Ğ":"G","ả":"a","Ả":"A","ẳ":"a","Ẳ":"A","ẩ":"a","Ẩ":"A","đ":"d","Đ":"D","ẹ":"e","Ẹ":"E","ẽ":"e","Ẽ":"E","ẻ":"e","Ẻ":"E","ế":"e","Ế":"E","ề":"e","Ề":"E","ệ":"e","Ệ":"E","ễ":"e","Ễ":"E","ể":"e","Ể":"E","ọ":"o","Ọ":"o","ố":"o","Ố":"O","ồ":"o","Ồ":"O","ổ":"o","Ổ":"O","ộ":"o","Ộ":"O","ỗ":"o","Ỗ":"O","ơ":"o","Ơ":"O","ớ":"o","Ớ":"O","ờ":"o","Ờ":"O","ợ":"o","Ợ":"O","ỡ":"o","Ỡ":"O","Ở":"o","ở":"o","ị":"i","Ị":"I","ĩ":"i","Ĩ":"I","ỉ":"i","Ỉ":"i","ủ":"u","Ủ":"U","ụ":"u","Ụ":"U","ũ":"u","Ũ":"U","ư":"u","Ư":"U","ứ":"u","Ứ":"U","ừ":"u","Ừ":"U","ự":"u","Ự":"U","ữ":"u","Ữ":"U","ử":"u","Ử":"ư","ỷ":"y","Ỷ":"y","ỳ":"y","Ỳ":"Y","ỵ":"y","Ỵ":"Y","ỹ":"y","Ỹ":"Y","ạ":"a","Ạ":"A","ấ":"a","Ấ":"A","ầ":"a","Ầ":"A","ậ":"a","Ậ":"A","ẫ":"a","Ẫ":"A","ắ":"a","Ắ":"A","ằ":"a","Ằ":"A","ặ":"a","Ặ":"A","ẵ":"a","Ẵ":"A","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"(TM)","©":"(C)","œ":"oe","Œ":"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o","º":"o","ª":"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY","元":"CNY","円":"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN","лв":"BGN","៛":"KHR","₡":"CRC","₸":"KZT","ден":"MKD","zł":"PLN","₽":"RUB","₾":"GEL"},A=["်","ް"],j={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},O={en:{},az:{"ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U"},cs:{"č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z"},fi:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},hu:{"ä":"a","Ä":"A","ö":"o","Ö":"O","ü":"u","Ü":"U","ű":"u","Ű":"U"},lt:{"ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U"},lv:{"ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z"},pl:{"ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z"},sk:{"ä":"a","Ä":"A"},sr:{"љ":"lj","њ":"nj","Љ":"Lj","Њ":"Nj","đ":"dj","Đ":"Dj"},tr:{"Ü":"U","Ö":"O","ü":"u","ö":"o"}},P={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}};if("string"!=typeof e)return"";if("string"==typeof t&&(b=t),l=P.en,f=O.en,"object"==typeof t){n=t.maintainCase||!1,S=t.custom&&"object"==typeof t.custom?t.custom:S,i=+t.truncate>1&&t.truncate||!1,o=t.uric||!1,a=t.uricNoSlash||!1,s=t.mark||!1,x=!1!==t.symbols&&!1!==t.lang,b=t.separator||b,o&&(y+=w.join("")),a&&(y+=_.join("")),s&&(y+=C.join("")),l=t.lang&&P[t.lang]&&x?P[t.lang]:x?P.en:{},f=t.lang&&O[t.lang]?O[t.lang]:!1===t.lang||!0===t.lang?{}:O.en,t.titleCase&&"number"==typeof t.titleCase.length&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){S[e+""]=e+""}),r=!0):r=!!t.titleCase,t.custom&&"number"==typeof t.custom.length&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){S[e+""]=e+""}),Object.keys(S).forEach(function(t){var n;n=t.length>1?new RegExp("\\b"+u(t)+"\\b","gi"):new RegExp(u(t),"gi"),e=e.replace(n,S[t])});for(p in S)y+=p}for(y+=b,y=u(y),e=e.replace(/(^\s+|\s+$)/g,""),m=!1,g=!1,h=0,v=e.length;h<v;h++)p=e[h],c(p,S)?m=!1:f[p]?(p=m&&f[p].match(/[A-Za-z0-9]/)?" "+f[p]:f[p],m=!1):p in T?(h+1<v&&A.indexOf(e[h+1])>=0?(E+=p,p=""):!0===g?(p=j[E]+T[p],E=""):p=m&&T[p].match(/[A-Za-z0-9]/)?" "+T[p]:T[p],m=!1,g=!1):p in j?(E+=p,p="",h===v-1&&(p=j[E]),g=!0):!l[p]||o&&-1!==w.join("").indexOf(p)||a&&-1!==_.join("").indexOf(p)?(!0===g?(p=j[E]+p,E="",g=!1):m&&(/[A-Za-z0-9]/.test(p)||k.substr(-1).match(/A-Za-z0-9]/))&&(p=" "+p),m=!1):(p=m||k.substr(-1).match(/[A-Za-z0-9]/)?b+l[p]:l[p],p+=void 0!==e[h+1]&&e[h+1].match(/[A-Za-z0-9]/)?b:"",m=!0),k+=p.replace(new RegExp("[^\\w\\s"+y+"_-]","g"),b);return r&&(k=k.replace(/(\w)(\S*)/g,function(e,t,n){var r=t.toUpperCase()+(null!==n?n:"");return Object.keys(S).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),k=k.replace(/\s+/g,b).replace(new RegExp("\\"+b+"+","g"),b).replace(new RegExp("(^\\"+b+"+|\\"+b+"+$)","g"),""),i&&k.length>i&&(d=k.charAt(i)===b,k=k.slice(0,i),d||(k=k.slice(0,k.lastIndexOf(b)))),n||r||(k=k.toLowerCase()),k},s=function(e){return function(t){return a(t,e)}},u=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},c=function(e,t){for(var n in t)if(t[n]===e)return!0};void 0!==e&&e.exports?(e.exports=a,e.exports.createSlug=s):(r=[],void 0!==(i=function(){return a}.apply(t,r))&&(e.exports=i))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,r){var i=C(t,2),f=i[0],v=i[1];switch(n){case"binary":return o(f,v);case"date":return a(f,v);case"float":return l(f,v);case"enum":return u(f,v,r);case"html":return s(f,v);case"integer":return d(f,v);case"link":return h(f,v);case"linklist":return p(f,v);case"multienum":return c(f,v,r);case"reference":return g(f,v);case"referencelist":return y(f,v);case"string":return b(f,v);case"stringlist":return w(f,v);case"widgetlist":return _(f,v,e)}}function o(e,t){if("binary"===e&&t){var n=t.id,r="published"===scrivito.currentWorkspaceId();return new P.default(n,r).optimizeFor({})}return null}function a(e,t){return"date"!==e?null:(0,x.deserializeAsDate)(t)}function s(e,t){return j.default.contains(["html","string"],e)&&j.default.isString(t)?t:""}function u(e,t,n){var r=n.values;return"string"===e&&j.default.contains(r,t)?t:null}function c(e,t,n){var r=n.values;return"stringlist"===e&&Array.isArray(t)?j.default.intersection(t,r):[]}function l(e,t){switch(e){case"string":return t.match(/^-?\d+(\.\d+)?$/)?f(t):null;case"number":return f(t);default:return null}}function f(e){var t=parseFloat(e);return(0,x.isValidFloat)(t)?t:null}function d(e,t){switch(e){case"string":case"number":return(0,x.deserializeAsInteger)(t);default:return null}}function h(e,t){return"link"===e&&j.default.isObject(t)?v(t):null}function p(e,t){return j.default.isArray(t)?j.default.compact(t.map(v)):[]}function v(e){var t=j.default.pick(e,"title","query","fragment","target","url");t.hash=t.fragment,delete t.fragment,t.objId=e.obj_id;var n=T.default.build(t);return n.isBroken()?null:n}function m(e){var t=E.default.get(e);return t||null}function g(e,t){return"reference"===e&&t?m(t):null}function y(e,t){if("referencelist"!==e)return[];if(!t)return[];var n=t.map(m);return j.default.compact(n)}function b(e,t){return j.default.contains(["html","string"],e)&&j.default.isString(t)?t:""}function w(e,t){return"stringlist"===e&&Array.isArray(t)?t:[]}function _(e,t,n){return"widgetlist"!==e?[]:j.default.map(t,function(e){return n.widget(e)})}Object.defineProperty(t,"__esModule",{value:!0});var C=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.deserialize=i;var k=n(3),E=r(k),x=n(43),S=n(35),T=r(S),A=n(0),j=r(A),O=n(24),P=r(O)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){(0,g.each)(e,function(e){return m.preload(e)})}function s(e,t){var n=(0,g.extend)({},e,{index:t}),r=d.computeCacheKey(n);return d.stateContainer().subState(r)}function u(e){return function(){return e+"|"+scrivito.ObjReplication.getWorkspaceVersion()}}function c(e){var t=(0,g.omit)({query:e.query,offset:e.offset,sort_by:e.sortBy,sort_order:e.sortDirection},g.isUndefined);return e.includeDeleted&&(t.options={include_deleted:!0}),t}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(101),d=i(f),h=n(190),p=i(h),v=n(53),m=i(v),g=n(0),y=n(8),b=r(y),w=n(16),_=r(w),C={results:[]},k=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;o(this,e),this._params=t,this._batchSize=n,r?(this._index=r.index+1,this._continuation=r.continuationForNextBatch(),this._previousBatch=r):this._index=0}return l(e,null,[{key:"store",value:function(e,t){var n=s(c(e),0),r=u(void 0);new _.default({state:n,invalidation:r}).set({results:t})}},{key:"firstBatchFor",value:function(t,n){return new e(c(t),n)}},{key:"countFor",value:function(e){return this.firstBatchFor(e,0).count()}}]),l(e,[{key:"objIds",value:function(){return this._response().results}},{key:"count",value:function(){return this._response().total||0}},{key:"nextBatch",value:function(){if(this.continuationForNextBatch())return new e(this._params,this._batchSize,this)}},{key:"continuationForNextBatch",value:function(){return this._response().continuation}},{key:"_response",value:function(){return this._data().get()||C}},{key:"_data",value:function(){return new _.default({state:s(this._params,this._index),loader:this._load.bind(this),invalidation:u(this._continuation)})}},{key:"_load",value:function(e){var t=this,n=e.push,r=e.isReload,i=e.wasCancelled;return this._fetchContinuation().then(function(e){if(!i()){var o={size:t._batchSize,continuation:e,include_objs:!r()},s=(0,g.extend)({},t._params,o);return p.retrieve(s).then(function(e){return e.objs&&n(function(){return e.objs.forEach(function(e){return m.store(e)})}),a(e.results),e})}})}},{key:"_fetchContinuation",value:function(){var e=this;return this._previousBatch?(0,b.default)(function(){return e._previousBatch.continuationForNextBatch()}):scrivito.Promise.resolve()}},{key:"index",get:function(){return this._index}}]),e}();t.default=k},function(e,t,n){"use strict";function r(e){var t=scrivito.currentWorkspaceId(),n=o.default.extend({consistent:!0},e);return scrivito.CmsRestApi.get("workspaces/"+t+"/objs/search",n).then(function(e){return e.results=o.default.pluck(e.results,"id"),o.default.pick(e,"results","continuation","total","objs")})}Object.defineProperty(t,"__esModule",{value:!0}),t.retrieve=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return!!e.current._deleted}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(53),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),u=n(102),c=function(e){return e&&e.__esModule?e:{default:e}}(u),l=function(){function e(t,n){r(this,e),this._params=t,this._batchSize=n}return o(e,[{key:"count",value:function(){return c.default.count(this._params)}},{key:"iterator",value:function(){return new f(this._params,this._batchSize)}}]),e}();t.default=l;var f=function(){function e(t,n){r(this,e),this._iterator=new c.default(t,n).iterator()}return o(e,[{key:"next",value:function(){if(!this._iterator)return{done:!0};var e=this._iterator.next().value;if(!e)return{done:!0};var t=s.get(e);return void 0===t?(this._iterator=void 0,{done:!0}):i(t)?this.next():{value:t,done:!1}}}]),e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){return scrivito.ObjReplication.getWorkspaceVersion()}function a(e){var t=scrivito.computeCacheKey(e);return m.cmsState.subState("facetQuery").subState(t)}function s(e){var t=v.default.without.apply(v.default,[v.default.keys(e)].concat(w));if(t.length)throw new g.ArgumentError("Invalid options: "+(0,b.default)(t)+". Valid options: "+w)}function u(e,t,n){var r={facets:[{attribute:e,limit:t.limit||10,include_objs:t.includeObjs||0}],size:0};return n&&n.length&&(r.query=n),r}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(193),f=r(l),d=n(16),h=r(d),p=n(0),v=r(p),m=n(5),g=n(1),y=n(37),b=r(y),w=["limit","includeObjs"],_=function(){function e(t,n,r){var c=this;i(this,e),s(n),this._requestParams=u(t,n,r),this._loadableData=new h.default({state:a(this._requestParams),loader:function(){return c._loadData()},invalidation:o})}return c(e,[{key:"result",value:function(){var e=this._loadableData.get();if(!e)return[];var t=v.default.first(e.facets);return v.default.map(t,function(e){var t=e.value,n=e.total,r=e.results.map(function(e){return e.id});return new f.default(t,n,r)})}},{key:"_loadData",value:function(){var e=scrivito.currentWorkspaceId();return scrivito.CmsRestApi.get("workspaces/"+e+"/objs/search",this._requestParams)}}],[{key:"store",value:function(e,t,n,r){s(t);var i=u(e,t,n);new h.default({state:a(i),invalidation:o,throwNotLoaded:!0}).set(r)}}]),e}();t.default=_},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(3),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(t,n,i){r(this,e),this._name=t,this._count=n,this._includedObjs=i}return i(e,[{key:"name",value:function(){return this._name}},{key:"count",value:function(){return this._count}},{key:"includedObjs",value:function(){return this._includedObjs.map(function(e){return a.default.get(e)})}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return function(){function t(){r(this,t)}return o(t,[{key:"id",value:function(){return this._scrivitoPrivateContent.id()}},{key:"objClass",value:function(){return this._scrivitoPrivateContent.objClass()}},{key:"finishSaving",value:function(){return this._scrivitoPrivateContent.finishSaving()}},{key:"get",value:function(t){return e.read(this,t)}},{key:"update",value:function(t){e.update(this,t)}}]),t}()}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=i},function(e,t,n){"use strict";function r(e,t,n,r){var i={};return Object.keys(n.definition.attributes).forEach(function(n){if(!e.hasOwnProperty(n)){var o=t.initialContentFor(r,n);void 0!==o&&(i[n]=o)}}),i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(22),a=function(){function e(t,n){r(this,e),this._registry=t,this._basicObjFacetValue=n}return i(e,[{key:"name",value:function(){return this._basicObjFacetValue.name()}},{key:"count",value:function(){return this._basicObjFacetValue.count()}},{key:"includedObjs",value:function(){var e=this._basicObjFacetValue.includedObjs();return(0,o.wrapInAppClass)(this._registry,e)}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e,t){var n=d.getEditingConfigFor(e,"initialContent");if(n){var r=n[t];if(c.isFunction(r))return r();if(i(r)){var o=v.getWindowRegistry();return r.map(function(e){var t=e._scrivitoPrivateContent,n=t.copy();return p.wrapInAppClass(o,n)})}return r}}function i(e){return c.isArray(e)&&c.every(e,o)}function o(e){return e._scrivitoPrivateContent&&e._scrivitoPrivateContent instanceof f.default}function a(e){u(l.default.get(e))}function s(e,t){u(l.default.get(e).widget(t))}function u(e){var t=e.objClass(),n=h.getWindowContext().getClass(t)._scrivitoPrivateSchema,i={};c.each(n.definition.attributes,function(n,o){var a=e.get(o,n);if(c.isEmpty(a)){var s=r(t,o);s&&(i[o]=s)}});var o=p.unwrapAppAttributes(i,n,t);e.update(o)}Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),l=n(3),f=n(30),d=n(72),h=n(55),p=n(22),v=n(56);t.initialContentFor=r,t.initializeContentForObj=a,t.initializeContentForWidget=s},function(e,t,n){"use strict";function r(e,t){var n=(0,o.getEditingConfigFor)(e,t);if((0,i.isFunction)(n))try{for(var r=arguments.length,s=Array(r>2?r-2:0),u=2;u<r;u++)s[u-2]=arguments[u];return n.apply(null,s)}catch(e){(0,a.throwNextTick)(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=n(72),a=n(36)},function(e,t,n){"use strict";function r(e){p(e);var t=e.endpoint,n=e.homepage,r=e.routingBasePath,i=e.tenant;scrivito.CmsRestApi.init(t||"api.scrivito.com",i),(0,f.init)(n||function(){return u.default.root()}),(0,l.init)({routingBasePath:r}),d=!0}function i(){return d}function o(){d=!1}Object.defineProperty(t,"__esModule",{value:!0}),t.resetIsConfigured=t.isConfigured=t.configure=void 0;var a=n(21),s=n(3),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=n(34),l=n(57),f=n(200),d=!1,h=a.tcomb.struct({tenant:a.tcomb.String,endpoint:a.tcomb.maybe(a.tcomb.String),homepage:a.tcomb.maybe(a.tcomb.Function),routingBasePath:a.tcomb.maybe(a.tcomb.String)}),p=(0,c.checkArgumentsFor)("configure",[["options",h]],{docPermalink:"js-sdk/configure"});t.configure=r,t.isConfigured=i,t.resetIsConfigured=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){_=e}function o(e){if(l(e),c(e))return"/";if(e.permalink())return"/"+e.permalink();var t=d(e);return t?"/"+t+"-"+e.id():"/"+e.id()}function a(e){f(e);var t=e.replace(new RegExp("^/+|/+$","g"),"");if(""===t)return(0,w.unwrapAppClassValue)(_());var n=g.default.getByPermalink(t);return n||g.default.get(h(t))}function s(){return _}function u(){_=void 0}function c(e){if(!_)return!1;var t=scrivito.loadableWithDefault(null,_);return!!t&&t.id()===e.id()}function l(e){if(!(e instanceof g.default))throw new y.ArgumentError("Parameter obj needs to be a BasicObj.")}function f(e){if(!v.default.isString(e))throw new y.ArgumentError("Parameter path needs to be a String.")}function d(e){var t=(0,b.getWindowRegistry)();return(0,w.wrapInAppClass)(t,e).slug()}function h(e){var t=v.default.last(e.split("-"));return v.default.last(t.split("/"))}Object.defineProperty(t,"__esModule",{value:!0}),t.init=i,t.generate=o,t.recognize=a,t.getHomepageCallback=s,t.resetHomepageCallback=u;var p=n(0),v=r(p),m=n(3),g=r(m),y=n(1),b=n(56),w=n(22),_=void 0},function(e,t,n){"use strict";function r(e){if(!e)return!1;var t=e.objClass();if(!t)return!1;var n=(0,a.getWindowContext)().getClass(t);return!!n&&o.default.forClass(n).isBinary()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(38),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(55)},function(e,t,n){"use strict";function r(e,t){a[e]=t}function i(e){return a[e]}function o(){a={}}Object.defineProperty(t,"__esModule",{value:!0}),t.store=r,t.lookup=i,t.clear=o;var a={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=u.default.getIncludingDeleted(e),r=n.widget(t);return o(r)||a(r.objClass())}function o(e){var t=(0,p.wrapInAppClass)((0,d.getWindowRegistry)(),e),n=e.objClass();return(0,l.default)(n,"titleForContent",t)}function a(e){return(0,f.getEditingConfigFor)(e,"title")||(0,h.sentenceCase)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(3),u=r(s),c=n(198),l=r(c),f=n(72),d=n(56),h=n(19),p=n(22)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(){return++f}function o(e){var t=i();d[t]=e;var n=s(),o=n.get()||[];n.set([].concat(r(o),[t]))}function a(e){var t=s().get();if(t){var n=(0,c.find)(t,function(t){return d[t]&&d[t].canEdit(e)});if(n){return{id:n,editorClass:d[n]}}}}function s(){return l.appState.subState("editors")}function u(){f=0,d={},s().clear()}Object.defineProperty(t,"__esModule",{value:!0}),t.registerEditor=t.editorRegistrationFor=t.clearEditorRegistry=void 0;var c=n(0),l=n(5),f=0,d={};t.clearEditorRegistry=u,t.editorRegistrationFor=a,t.registerEditor=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(49),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(t,n){r(this,e),this.domNode=t,this.controller=n}return i(e,[{key:"content",value:function(){return this.controller.content}},{key:"idFromPath",value:function(e){if(e.match(/^objid:/))return e.replace(/^objid:/,"")}},{key:"edQuery",value:function(){return a.default.apply(void 0,arguments)}},{key:"jQueryElement",value:function(){return this.edQuery(this.domNode)}},{key:"pathForId",value:function(e){return"objid:"+e}},{key:"save",value:function(e){this.controller.content=e;var t={done:function(e){return e(),t}};return t}},{key:"trigger",value:function(){}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e){var t=(0,o.default)(e);t.not("[data-scrivito-editors-placeholder]")&&t.attr("data-scrivito-editors-placeholder","Click to edit")}Object.defineProperty(t,"__esModule",{value:!0});var i=n(49),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r},function(e,t,n){"use strict";function r(e){return e.isRaw()||e.isExplicitlyTransformed()?e:e.optimizeFor({width:i.screen().width*i.devicePixelRatio()})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(52);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(12),c=r(u),l=n(0),f=n(22),d=n(35),h=r(d),p=n(3),v=r(p),m=n(24),g=r(m),y=n(80),b=r(y),w=n(13),_=r(w),C=n(209),k=r(C),E=n(115),x=n(294),S=n(54),T=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=n._onClick.bind(n),n}return a(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("a",this._linkProps(),this.props.children)}},{key:"_linkProps",value:function(){var e=(0,l.omit)(this.props,"to");return e.href=this._href(),e.onClick=this._onClick,e.target=this._target(),e}},{key:"_href",value:function(){return this._to()?this._to():"#"}},{key:"_onClick",value:function(e){e.preventDefault(),this._to()&&((0,l.isString)(this.props.to)?scrivito.openInNewWindow(this.props.to):this._openLink(e))}},{key:"_openLink",value:function(e){var t=this._target();"_blank"===t||(0,k.default)(e)?this._openLinkInNewWindow():t?scrivito.openLocation(this._href(),t):(0,b.default)(this.props.to)}},{key:"_openLinkInNewWindow",value:function(){var e=this._href();scrivito.uiAdapter?scrivito.uiAdapter.openInNewWindow(e):scrivito.openInNewWindow(e)}},{key:"_target",value:function(){return this.props.target?this.props.target:this.props.to&&this.props.to._scrivitoPrivateContent instanceof h.default?this.props.to.target():void 0}},{key:"_to",value:function(){if(this.props.to){if((0,l.isString)(this.props.to))return this.props.to;var e=(0,f.unwrapAppClassValue)(this.props.to);if(e instanceof h.default||e instanceof v.default||e instanceof g.default)return(0,E.basicUrlFor)(e)}}}]),t}(c.default.Component);T.displayName="Scrivito.LinkTag",T.propTypes=(0,x.propTypes)({to:x.tcomb.maybe(x.tcomb.union([S.ObjType,S.LinkType,S.BinaryType,x.tcomb.String]))},{strict:!1}),t.default=(0,_.default)(T)},function(e,t,n){"use strict";function r(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.which===i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=2},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(75),c=r(u),l=n(38),f=r(l),d=n(0),h=n(12),p=r(h),v=n(1),m=n(22),g=n(211),y=r(g),b=n(13),w=r(b),_=n(204),C=n(36),k=n(212),E=r(k),x=n(301),S=r(x),T=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){if(!this.props.content)return null;var e=f.default.basicFieldFor(this.props.content,this.props.attribute);if(!e){var t=this.props.attribute;return(0,C.throwNextTick)(new v.ArgumentError('Component "Scrivito.ContentTag" received prop "attribute" with invalid value: Attribute "'+t+'" is not defined for content specified in prop "content".')),null}var n=void 0,r=void 0,i=(0,_.editorRegistrationFor)({type:e.type(),tag:this.props.tag});return i&&(n=i.id,r=i.editorClass),(0,c.default)()?p.default.createElement(S.default,{key:this._editorKey(n),field:e,editorClass:r,tag:this.props.tag,customProps:this._customProps(),content:this.props.content},this.props.children):p.default.createElement(E.default,{field:e,tag:this.props.tag,customProps:this._customProps()},this.props.children)}},{key:"_customProps",value:function(){return(0,d.omit)(this.props,"content","attribute","tag")}},{key:"_editorKey",value:function(e){var t=(0,m.unwrapAppClassValue)(this.props.content);return[this.props.tag,(0,y.default)(t),this.props.attribute,e].join("|")}}]),t}(p.default.Component);T.displayName="Scrivito.ContentTag",T.defaultProps={tag:"div"},t.default=(0,w.default)(T)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e instanceof a.default)return e.id();if(e instanceof u.default)return e.obj().id()+"|"+e.id();var t=(0,f.default)(e).substr(0,100);throw new c.InternalError('keyForBasicContent called with "'+t+'". Expected an instance of BasicObj or BasicWidget.')}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(3),a=r(o),s=n(30),u=r(s),c=n(1),l=n(37),f=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(75),c=r(u),l=n(114),f=r(l),d=n(0),h=n(12),p=r(h),v=n(80),m=r(v),g=n(13),y=r(g),b=n(297),w=r(b),_=n(298),C=r(_),k=n(300),E=r(k),x=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=n._onClick.bind(n),n}return a(t,e),s(t,[{key:"render",value:function(){switch(this.props.field.type()){case"html":return this._renderHtml();case"float":case"integer":case"string":return this._renderAsString();case"widgetlist":return this._renderWidgetlist();default:return this._renderContent({children:this.props.children})}}},{key:"_renderHtml",value:function(){if(this.props.children)return this._renderContent({children:this.props.children});var e=(0,f.default)(this._attributeValue()),t={dangerouslySetInnerHTML:{__html:e},onClick:this._onClick};return this._renderContent({props:t})}},{key:"_onClick",value:function(e){var t=(0,w.default)(e);t&&(t.openInNewWindow?this._openInNewWindow(e,t):this._navigateTo(e,t))}},{key:"_openInNewWindow",value:function(e,t){var n=t.openInNewWindow;scrivito.uiAdapter&&(e.preventDefault(),e.stopPropagation(),scrivito.uiAdapter.openInNewWindow(n))}},{key:"_navigateTo",value:function(e,t){var n=t.obj,r=t.options;e.preventDefault(),e.stopPropagation(),(0,m.default)(n,r)}},{key:"_renderAsString",value:function(){var e=this.props.children||this._attributeValue();return this._renderContent({children:e})}},{key:"_renderWidgetlist",value:function(){var e=void 0,t=this._attributeValue();return t.length?e=t.map(function(e){return p.default.createElement(C.default,{key:e.id(),widget:e})}):(0,c.default)()&&(e=p.default.createElement(E.default,{field:this.props.field})),this._renderContent({children:e})}},{key:"_renderContent",value:function(e){var t=e.props,n=e.children,r=(0,d.extend)({},this.props.customProps,t,this._editingProps());return p.default.createElement(this.props.tag,r,n)}},{key:"_editingProps",value:function(){return this.props.onClick?{onClick:this.props.onClick}:{}}},{key:"_attributeValue",value:function(){return this.props.field.get()}}]),t}(p.default.Component);x.displayName="Scrivito.ContentTag.AttributeValue",t.default=(0,y.default)(x)},function(e,t){e.exports=PropTypes},function(e,t,n){"use strict";function r(e){e.dataTransfer.effectAllowed="move";try{e.dataTransfer.setData("text/plain",e.target.id)}catch(e){}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(12),c=r(u),l=n(13),f=r(l),d=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=n._onClick.bind(n),n}return a(t,e),s(t,[{key:"render",value:function(){var e="scrivito_option_marker scrivito_"+this.props.position;return this.props.isAlwaysShown&&(e+=" scrivito_visible"),c.default.createElement("span",{className:e,onClick:this._onClick},c.default.createElement("i",{className:"scrivito_icon scrivito_icon_marker_plus"}))}},{key:"_onClick",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)}}]),t}(c.default.Component);d.displayName="Scrivito.OptionMarker",t.default=(0,f.default)(d)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(e,t){"content"===e&&document.addEventListener("DOMContentLoaded",function(){return t(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){e&&(e.setAppAdapter("1.0.0-48-g68a78f12",scrivito.AppAdapter),scrivito.uiAdapter=e.uiAdapter()),scrivito.client.init({ui:e}),document.addEventListener("DOMContentLoaded",function(){return scrivito.BrowserLocation.init()})}Object.defineProperty(t,"__esModule",{value:!0}),t.initializeSdk=r,n(139),n(255),n(256),n(275);var i=n(278),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(204);window.scrivito||(window.scrivito={}),window.scrivito.registerEditor=a.registerEditor,window.scrivito.openContentBrowser=o.default},function(e,t,n){"use strict";n(109)},function(e,t,n){"use strict";n(257),n(258),n(273),n(274)},function(e,t,n){"use strict";window.scrivito||(window.scrivito={}),window.scrivito.AppSupport={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(38),a=r(o),s=n(0),u=n(80),c=r(u),l=n(72),f=n(198),d=r(f),h=n(55),p=n(56),v=n(268),m=n(271),g=r(m),y=n(52),b=n(114),w=r(b),_=n(116),C=n(117),k=r(C),E=n(197),x=n(22),S=n(3),T=r(S),A=n(203),j=r(A);!function(){function e(e,i,o){var u=a.default.forClass(o),c={name:i,type:e,attributes:t(u,(0,s.keys)(u.attributes)),validContainerClasses:u.validContainerClasses};return n(c,i),r(c,i),c}function t(e,t){return t.map(function(t){var n=e.attributeDefinition(t),r=i(n,2),o=r[0],a=r[1],s={name:t,type:o};return a&&(a.only&&(s.only=a.only),a.values&&(s.values=a.values)),s})}function n(e,t){f.forEach(function(n){var r=(0,l.getEditingConfigFor)(t,n);r&&(e[n]=r)})}function r(e,t){var n=(0,l.getEditingConfigFor)(t,"attributes");n&&Object.keys(n).forEach(function(t){var r=(0,s.findWhere)(e.attributes,{name:t});if(r){var i=n[t],o=i.title,a=i.description,u=i.values,c={title:o,description:a};u&&(c.valuesLocalization=u),(0,s.extend)(r,c)}})}function o(e,t){var n=T.default.getIncludingDeleted(t),r=(0,x.wrapInAppClass)((0,p.getWindowRegistry)(),n);return(0,d.default)(n.objClass(),e,r)}function u(e){var t={obj_id:e.obj.id()};return e.url.fragment()&&(t.fragment=e.url.fragment()),e.url.search()&&(t.query=e.url.search()),t}var f=["title","description","thumbnail"],m={contentBrowserConfiguration:function(){return(0,k.default)((0,_.getContentBrowserConfiguration)())},titleForClass:function(e){return(0,l.getEditingConfigFor)(e,"title")},propertiesGroupsForClass:function(e){return(0,l.getEditingConfigFor)(e,"propertiesGroups")},generalPropertiesForClass:function(e){return(0,l.getEditingConfigFor)(e,"properties")},hideInSelectionDialogsForClass:function(e){return(0,l.getEditingConfigFor)(e,"hideInSelectionDialogs")},titleForObj:function(e){return o("titleForContent",e)},descriptionForObj:function(e){return o("descriptionForContent",e)},titleForWidget:j.default,thumbnailForObj:function(e){return o("thumbnailForContent",e)},initializeContentForObj:E.initializeContentForObj,initializeContentForWidget:E.initializeContentForWidget,getClasses:function(){var t=(0,h.getWindowContext)(),n=[];return(0,s.each)(t.allObjClasses(),function(t,r){return n.push(e("Obj",r,t))}),(0,s.each)(t.allWidgetClasses(),function(t,r){return n.push(e("Widget",r,t))}),n},navigateTo:function(e){(0,c.default)(function(){return(0,x.wrapInAppClass)((0,p.getWindowRegistry)(),T.default.get(e))})},mountComponent:v.mountComponent,resolveUrl:function(e){return(0,g.default)(e).then(function(e){return e&&e.obj?u(e):null})},getDocumentHeight:function(){return(0,y.getDocument)().querySelector("html").getBoundingClientRect().height},replaceInternalLinks:function(e){return(0,w.default)(e)}};scrivito.AppAdapter=m}()},function(e,t,n){"use strict";function r(){window.scrollTo(0,0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(261),s=r(a),u=n(262),c=r(u),l=n(263),f=r(l),d=n(264),h=r(d),p=n(265),v=r(p),m=n(113),g=r(m),y=n(266),b=n(267),w=function(){function e(){i(this,e),this._registry=new v.default,this._registry.defaultClassForObjs=(0,f.default)(this._registry),this._registry.defaultClassForWidgets=(0,s.default)(this._registry),this._registry.defaultClassForLinks=(0,h.default)(this._registry),this._registry.ObjSearch=(0,c.default)(this._registry),this.appModelAccessor=new g.default(this._registry)}return o(e,null,[{key:"init",value:function(t){var n=new e;return t.Obj=n.Obj,t.Widget=n.Widget,t.Link=n.Link,t.ObjSearch=n.ObjSearch,t.appModelAccessor=n.appModelAccessor,t.provideObjClass=function(){return n.provideObjClass.apply(n,arguments)},t.provideWidgetClass=function(){return n.provideWidgetClass.apply(n,arguments)},t.createObjClass=function(){return n.createObjClass.apply(n,arguments)},t.createWidgetClass=function(){return n.createWidgetClass.apply(n,arguments)},t.getClass=function(){return n.getClass.apply(n,arguments)},t.allObjClasses=function(){return n.allObjClasses()},t.allWidgetClasses=function(){return n.allWidgetClasses()},t._privateRealm=n,n}}]),o(e,[{key:"provideObjClass",value:function(e,t){return(0,b.checkProvideObjClass)(e,t),(0,y.provideObjClass)(this._registry,e,t)}},{key:"provideWidgetClass",value:function(e,t){return(0,b.checkProvideWidgetClass)(e,t),(0,y.provideWidgetClass)(this._registry,e,t)}},{key:"createObjClass",value:function(e){return(0,b.checkCreateObjClass)(e),(0,y.createObjClass)(this._registry,e)}},{key:"createWidgetClass",value:function(e){return(0,b.checkCreateWidgetClass)(e),(0,y.createWidgetClass)(this._registry,e)}},{key:"getClass",value:function(e){return this._registry.getClass(e)}},{key:"allObjClasses",value:function(){return this._registry.allObjClasses()}},{key:"allWidgetClasses",value:function(){return this._registry.allWidgetClasses()}},{key:"setInitialContentFor",value:function(e){this._registry.setInitialContentFor(e)}},{key:"Obj",get:function(){return this._registry.defaultClassForObjs}},{key:"Widget",get:function(){return this._registry.defaultClassForWidgets}},{key:"Link",get:function(){return this._registry.defaultClassForLinks}},{key:"ObjSearch",get:function(){return this._registry.ObjSearch}}]),e}();t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=new g.default(e);return function(t){function n(e){i(this,n);var t=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),r=t._prepareAttributesForConstructor(e),a=new p.default(r);return t._scrivitoPrivateContent=a,t}return a(n,t),c(n,[{key:"obj",value:function(){var t=this._scrivitoPrivateContent.obj();return(0,C.wrapInAppClass)(e,t)}},{key:"copy",value:function(){var t=e.widgetClassFor(this.objClass()),n=this._scrivitoPrivateContent.copy();return(0,C.buildAppClassInstance)(n,t)}},{key:"_prepareAttributesForConstructor",value:function(t){var n=e.objClassNameFor(this.constructor),r=d.default.forInstance(this);u(n,t);var i=(0,_.default)(t,e,r,n),o={_objClass:n},a=(0,l.extend)({},t,i,o);return(0,C.unwrapAppAttributes)(a,r,n)}}]),n}((0,b.default)(t))}function u(e,t){if(!e)throw new v.ArgumentError("Creating widgets is not supported for the class Widget or abstract classes.");if(t.constructor!==Object)throw new v.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(t._objClass)throw new v.ArgumentError('Invalid attribute "_objClass". "new '+t._objClass+'" will automatically set the CMS object class correctly.')}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var l=n(0),f=n(38),d=r(f),h=n(30),p=r(h),v=n(1),m=n(113),g=r(m),y=n(194),b=r(y),w=n(195),_=r(w),C=n(22)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){var t=function(){function t(e){i(this,t),this._scrivitoPrivateContent=new c.default(e)}return a(t,[{key:"and",value:function(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(e instanceof t)this._scrivitoPrivateContent.and(e._scrivitoPrivateContent);else{var o=(0,d.unwrapAppClassValues)(r);this._scrivitoPrivateContent.and(e,n,o,i)}return this}},{key:"andNot",value:function(e,t,n){var r=(0,d.unwrapAppClassValues)(n);return this._scrivitoPrivateContent.andNot(e,t,r),this}},{key:"facet",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this._scrivitoPrivateContent.facet(t,n);return p.default.map(r,function(t){return new f.default(e,t)})}},{key:"take",value:function(t){return this._scrivitoPrivateContent.batchSize(t),(0,s.arrayFromIterable)(this._scrivitoPrivateContent,t).map(function(t){return(0,d.wrapInAppClass)(e,t)})}},{key:"offset",value:function(e){return this._scrivitoPrivateContent.offset(e),this}},{key:"order",value:function(e,t){return this._scrivitoPrivateContent.order(e,t),this}},{key:"count",value:function(){return this._scrivitoPrivateContent.count()}}]),t}();if("function"==typeof window.Symbol){var n=window.Symbol.iterator;if(n){t.prototype[n]=function(){var t=this._scrivitoPrivateContent.iterator();return{next:function(){var n=t.next(),r=n.done,i=n.value;return r?{done:r}:{done:r,value:(0,d.wrapInAppClass)(e,i)}}}}}}return t}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var s=n(104),u=n(48),c=r(u),l=n(196),f=r(l),d=n(22),h=n(0),p=r(h)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){function t(t,n){var r=new e.ObjSearch;return t&&r.and("_objClass","equals",t),n&&r._scrivitoPrivateContent.batchSize(n),r}function n(t){return(0,y.wrapInAppClass)(e,t)}var r=new g.default(e);return function(s){function f(){return i(this,f),o(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return a(f,s),c(f,[{key:"lastChanged",value:function(){return this._scrivitoPrivateContent.lastChanged()}},{key:"path",value:function(){return this._scrivitoPrivateContent.path()}},{key:"parent",value:function(){return n(this._scrivitoPrivateContent.parent())}},{key:"ancestors",value:function(){return n(this._scrivitoPrivateContent.ancestors())}},{key:"backlinks",value:function(){return n(this._scrivitoPrivateContent.backlinks())}},{key:"children",value:function(){return n(this._scrivitoPrivateContent.children())}},{key:"orderedChildren",value:function(){return n(this._scrivitoPrivateContent.orderedChildren())}},{key:"permalink",value:function(){return this._scrivitoPrivateContent.permalink()}},{key:"slug",value:function(){return this._scrivitoPrivateContent.slug()}},{key:"isBinary",value:function(){var e=p.default.forInstance(this);return!!e&&e.isBinary()}},{key:"contentLength",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0}},{key:"contentType",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""}},{key:"contentUrl",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""}},{key:"metadata",value:function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new w.default}},{key:"destroy",value:function(){this._scrivitoPrivateContent.destroy()}},{key:"widget",value:function(e){return n(this._scrivitoPrivateContent.widget(e))}},{key:"widgets",value:function(){return n(this._scrivitoPrivateContent.widgets())}}],[{key:"get",value:function(e){return r.getObj(this,e)}},{key:"getIncludingDeleted",value:function(e){return r.getObjIncludingDeleted(this,e)}},{key:"getByPath",value:function(e){return n(d.default.getByPath(e))}},{key:"getByPermalink",value:function(e){return n(d.default.getByPermalink(e))}},{key:"all",value:function(){return t(e.objClassNameFor(this),1e3)}},{key:"root",value:function(){return n(d.default.root())}},{key:"where",value:function(n,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t(e.objClassNameFor(this)).and(n,r,i,o)}},{key:"create",value:function(e){var t=this._prepareAttributesForCreate(e);return n(d.default.create(t))}},{key:"_prepareAttributesForCreate",value:function(t){var n=e.objClassNameFor(this),r=p.default.forClass(this);u(t,n);var i=(0,E.default)(t,e,r,n),o={_objClass:n},a=(0,l.extend)({},t,i,o);return(0,y.unwrapAppAttributes)(a,r,n)}}]),f}((0,C.default)(r))}function u(e,t){if(!t)throw new v.ArgumentError("Creating CMS objects is not supported for the class Obj or abstract classes.");if(e.constructor!==Object)throw new v.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new v.ArgumentError('Invalid attribute "_objClass". "'+e._objClass+'.create" will automatically set the CMS object class correctly.')}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var l=n(0),f=n(3),d=r(f),h=n(38),p=r(h),v=n(1),m=n(113),g=r(m),y=n(22),b=n(110),w=r(b),_=n(194),C=r(_),k=n(195),E=r(k)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){return function(t){function n(e){return r(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))}return o(n,t),s(n,[{key:"obj",value:function(){return(0,f.wrapInAppClass)(e,u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"obj",this).call(this))}},{key:"fetchObj",value:function(t){return u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"fetchObj",this).call(this,t).then(function(t){return(0,f.wrapInAppClass)(e,t)})}},{key:"_scrivitoPrivateContent",get:function(){return l.default.build(this.buildAttributes())}}]),n}(l.default)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)};t.default=a;var c=n(35),l=function(e){return e&&e.__esModule?e:{default:e}}(c),f=n(22)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(){function e(){this.mapping={}}return e.prototype.register=function(e,t){this.mapping[e]=t},e.prototype.getClass=function(e){return this.mapping[e]},e.prototype.allObjClasses=function(){return this.allForBaseClass(this.defaultClassForObjs)},e.prototype.allWidgetClasses=function(){return this.allForBaseClass(this.defaultClassForWidgets)},e.prototype.objClassFor=function(e){return this.appClassFor(e,this.defaultClassForObjs)},e.prototype.widgetClassFor=function(e){return this.appClassFor(e,this.defaultClassForWidgets)},e.prototype.objClassNameFor=function(e){return r.findKey(this.mapping,function(t){return t===e})},e.prototype.setInitialContentFor=function(e){this.initialContentForFuntion=e},e.prototype.initialContentFor=function(e,t){if(this.initialContentForFuntion)return this.initialContentForFuntion(e,t)},e.prototype.appClassFor=function(e,t){var n=this.getClass(e);return n&&t.isPrototypeOf(n)?n:t},e.prototype.allForBaseClass=function(e){return r.pick(this.mapping,function(t){return e.isPrototypeOf(t)})},e}();t.default=i},function(e,t,n){"use strict";function r(e,t){if(t.extend&&!f(t.extend,e.defaultClassForObjs))throw new p.ArgumentError('Invalid value for "extend": not a Scrivito Obj class');var n=t.extend||e.defaultClassForObjs,r=new v.default(t,n);return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),t}(n)}function i(e,t){if(t.extend&&!f(t.extend,e.defaultClassForWidgets))throw new p.ArgumentError('Invalid value for "extend": not a Scrivito Widget class');var n=t.extend||e.defaultClassForWidgets,r=new v.default(c(t),n);return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),t}(n)}function o(e,t,n){var r=a(e,t,n);return e.register(t,r),r}function a(e,t,n){return l(n)?n:r(e,h.extend(n,{name:t}))}function s(e,t,n){var r=u(e,t,n);return e.register(t,r),r}function u(e,t,n){return l(n)?n:i(e,h.extend(n,{name:t}))}function c(e){var t=h.extend({},e),n=e.onlyInside;return n&&(delete t.onlyInside,t.validContainerClasses=[n]),t}function l(e){return!(!e||!e._scrivitoPrivateSchema)}function f(e,t){return!!e&&(e===t||e.prototype instanceof t)}var d=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var h=n(0),p=n(1),v=n(38);t.createObjClass=r,t.createWidgetClass=i,t.provideObjClass=o,t.provideWidgetClass=s},function(e,t,n){"use strict";function r(e){return e&&e._scrivitoPrivateSchema}Object.defineProperty(t,"__esModule",{value:!0}),t.checkProvideWidgetClass=t.checkProvideObjClass=t.checkCreateWidgetClass=t.checkCreateObjClass=void 0;var i=n(21),o=n(34),a=n(19),s=i.tcomb.refinement(i.tcomb.Function,r,"ObjClass"),u=i.tcomb.interface({attributes:i.tcomb.maybe(i.tcomb.dict(i.tcomb.refinement(i.tcomb.String,a.isCamelCase,"String (camelCase)"),i.tcomb.union([i.tcomb.enums.of(["binary","date","float","html","integer","link","linklist","reference","referencelist","string","stringlist","widgetlist"]),i.tcomb.union([i.tcomb.tuple([i.tcomb.enums.of(["enum","multienum"]),i.tcomb.interface({values:i.tcomb.list(i.tcomb.String)})]),i.tcomb.tuple([i.tcomb.enums.of(["widgetlist"]),i.tcomb.interface({only:i.tcomb.union([i.tcomb.String,i.tcomb.list(i.tcomb.String)])})])])]),"Attributes Specification")),extend:i.tcomb.maybe(s)}),c=u.meta.props.attributes,l=i.tcomb.refinement(i.tcomb.Function,r,"WidgetClass"),f=i.tcomb.interface({attributes:c,extend:i.tcomb.maybe(l),onlyInside:i.tcomb.maybe(i.tcomb.String)}),d=(t.checkCreateObjClass=(0,o.checkArgumentsFor)("createObjClass",[["options",u]],{docPermalink:"js-sdk/createObjClass"}),t.checkCreateWidgetClass=(0,o.checkArgumentsFor)("createWidgetClass",[["options",f]],{docPermalink:"js-sdk/createWidgetClass"}),i.tcomb.union([u,s])),h=(t.checkProvideObjClass=(0,o.checkArgumentsFor)("provideObjClass",[["name",i.tcomb.String],["objClassOrDefinition",d]],{docPermalink:"js-sdk/provideObjClass"}),i.tcomb.union([f,l]));t.checkProvideWidgetClass=(0,o.checkArgumentsFor)("provideWidgetClass",[["name",i.tcomb.String],["widgetClassOrDefinition",h]],{docPermalink:"js-sdk/provideWidgetClass"})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!b){var n=(0,v.getComponentForId)(e);if(!n)throw new p.ArgumentError('Component with ID "'+e+'" not found. Please make sure you registered it using "Scrivito.registerComponent".');var r=void 0,i=void 0,o=f.default.get(t.objId);if(t.widgetId){var s=o.widget(t.widgetId);i=(0,y.wrapInAppClass)((0,g.getWindowRegistry)(),s)}else r=(0,y.wrapInAppClass)((0,g.getWindowRegistry)(),o);b=!0;var u=a((0,m.getDocument)(),n,{obj:r,widget:i});(0,h.default)(u,function(){return scrivito.uiAdapter.notifyDocumentResize()}),scrivito.uiAdapter.notifyDocumentResize()}}function o(){b=!1}function a(e,t,n){var r=e.createElement("div");return e.body.innerHTML="",e.body.appendChild(r),(0,c.render)(u.default.createElement(t,n),r),r}Object.defineProperty(t,"__esModule",{value:!0}),t.reset=t.mountComponent=void 0;var s=n(12),u=r(s),c=n(73),l=n(3),f=r(l),d=n(269),h=r(d),p=n(1),v=n(74),m=n(52),g=n(56),y=n(22),b=!1;t.mountComponent=i,t.reset=o},function(e,t,n){"use strict";function r(e,t){if(!e._scrivitoResizeListeners){e._scrivitoResizeListeners=[],e.style.position="relative";var n=i();n.resizeElement=e,e._scrivitoResizeTrigger=n,(0,u.default)()&&e.appendChild(n),n.data="about:blank",(0,u.default)()||e.appendChild(n)}e._scrivitoResizeListeners.push(t)}function i(){var e=document.createElement("object");return e.type="text/html",e.onload=o,e.style.display="block",e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex=-1,e}function o(){this.contentDocument.defaultView._scrivitoResizeTrigger=this.resizeElement,this.contentDocument.defaultView.addEventListener("resize",a)}function a(e){var t=e.target||e.srcElement,n=t._scrivitoResizeTrigger;n._scrivitoResizeListeners.forEach(function(t){return t(n,e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var s=n(270),u=function(e){return e&&e.__esModule?e:{default:e}}(s)},function(e,t,n){"use strict";function r(){var e=window.navigator.userAgent;return e.indexOf("MSIE")>=0||e.indexOf("Trident")>=0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=(0,a.default)(e);return(0,l.isConfigured)()?(0,c.default)(function(){return(0,f.recognize)(e)}).then(function(e){return e.path?(0,s.include)(["/",""],e.path)?null:{obj:e.obj,url:t}:null}):scrivito.Promise.resolve(null)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(33),a=r(o),s=n(0),u=n(8),c=r(u),l=n(199),f=n(57);t.default=i},function(e,t,n){"use strict";function r(e){var t=o.default.get(e);return t?(0,a.basicUrlFor)(t):(0,s.generateUrl)({path:e})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(115),s=n(57);t.default=r},function(e,t,n){"use strict";var r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(0),a=n(65),s=n(52),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(s),c=n(57);!function(){function e(e){var t=e.obj,n=e.queryParameters,r=e.hash,i={scrivitoObjId:t.id(),scrivitoQueryParameters:n,scrivitoHash:r},a=(0,c.generate)({obj:t,queryParameters:n,hash:r}),s=u.history();s.state&&s.state.scrivitoObjId===t.id()&&(0,o.isEqual)(s.state.scrivitoQueryParameters,n)&&s.state.scrivitoHash===r||s.pushState(i,"",a)}function t(e){var t=e.obj,n=e.queryParameters,r=e.hash,i={scrivitoObjId:t.id(),scrivitoQueryParameters:n,scrivitoHash:r},o=(0,c.generate)({obj:t,queryParameters:n,hash:r});u.history().replaceState(i,"",o)}function n(){u.setOnpopstate(l)}function r(){var e=u.location().toString();(0,a.replaceCurrentPage)(function(){var t=(0,c.recognize)(e),n=t.obj,r=t.queryParameters,i=t.hash;return n?{obj:n,queryParameters:r,hash:i}:{queryParameters:r,hash:i}})}function s(){r(),n()}function l(e){var t=void 0,n=void 0,o=void 0;e.state&&(t=e.state.scrivitoObjId,n=e.state.scrivitoHash,o=e.state.scrivitoQueryParameters),t?(0,a.replaceCurrentPage)(function(){return{obj:i.default.get(t),queryParameters:o,hash:n}}):r()}scrivito.BrowserLocation={},scrivito.BrowserLocation.init=s,scrivito.BrowserLocation.pushWith=e,scrivito.BrowserLocation.replaceWith=t}()},function(e,t,n){"use strict";!function(){function e(e){scrivito.uiAdapter?scrivito.uiAdapter.navigateToExternalUrl(e):scrivito.setWindowLocation(e)}function t(e){window.location=e}function n(e,t){window.open(e,t)}function r(e){n(e,"_blank")}scrivito.setWindowLocation=t,scrivito.changeLocation=e,scrivito.openLocation=n,scrivito.openInNewWindow=r}()},function(e,t,n){"use strict";n(276),n(277)},function(e,t,n){"use strict";window.scrivito||(window.scrivito={})},function(e,t,n){"use strict";!function(){var e=void 0,t=0,n={},r={subscribe:function(e){var r=e.onFocus,i=e.onBlur,o=t;return n[o]={onFocus:r,onBlur:i},t+=1,o},unsubscribe:function(e){delete n[e]},notifyFocus:function(t){e=t,n[e].onFocus()},notifyBlur:function(t){t===e&&n[t].onBlur()},get handlers(){return n},reset:function(){e=void 0,t=0,n={}}};scrivito.WidgetFocus=r}()},function(e,t,n){"use strict";function r(e){return scrivito.uiAdapter.openContentBrowser((0,a.default)((0,i.extend)({},(0,s.getContentBrowserConfiguration)(),(0,i.pick)(e,"selection","selectionMode"))))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=n(117),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=n(116)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){scrivito.registerEditor(a.default),scrivito.registerEditor(u.default),scrivito.registerEditor(l.default)}Object.defineProperty(t,"__esModule",{value:!0}),t.initializeEditors=i;var o=n(280),a=r(o),s=n(284),u=r(s),c=n(285),l=r(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(49),s=r(a),u=n(205),c=r(u),l=n(206),f=r(l),d=n(281),h=r(d),p=function(){function e(t){var n=t.controller;i(this,e),this.controller=n}return o(e,null,[{key:"canEdit",value:function(e){return"html"===e.type}}]),o(e,[{key:"editorWillBeActivated",value:function(){this.controller.setDomMode("Replace")}},{key:"editorDomWasMounted",value:function(e){(0,f.default)(e),(0,s.default)(e).html(this.controller.content);var t=new c.default(e,this.controller);(0,h.default)(t)}}]),e}();t.default=p},function(e,t,n){var r,i,o,a,s,u;i=n(282),r=n(283),o=i.extensions.anchor.extend({name:"scrivito_anchor",proxy:null,contentDefault:'<i class="scrivito_customer_icon sci_link"></i>',init:function(){var e;return i.extensions.anchor.prototype.init.apply(this,arguments),this.targetCheckbox=null!=(e=this.getEditorOption("anchor"))?e.targetCheckbox:void 0},handleClick:function(e){var t,n,r,o,a;return e.preventDefault(),e.stopPropagation(),this.isDisplayed()||(o=i.selection.getSelectionRange(this.document),r=i.selection.getSelectedParentElement(o),n=i.util.getClosestTag(r,"a"),t=a=null,n&&(n=this.proxy.edQuery(n),t=n.attr("href")||null,a=n.attr("target")||null),this.showForm({value:t,target:a})),!1},getTemplate:function(){var e;return e="",this.targetCheckbox&&(e="<div class='medium-editor-toolbar-form-row medium-editor-toolbar-anchor-target-toggle'>\n <label>\n <input type='checkbox' class='medium-editor-toolbar-anchor-target'>\n <i class='scrivito_customer_icon sci_inv_check'></i>\n <i class='scrivito_customer_icon sci_rounded_square'></i>\n "+this.targetCheckboxText+"\n </label>\n</div>"),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection'></i>\n<input type='text' class='medium-editor-toolbar-input' placeholder='"+this.placeholderText+"'>\n<i class='medium-editor-toolbar-save scrivito_customer_icon sci_check'></i>\n<i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross'></i>\n"+e).replace(/\n\s*/g,"")},attachFormEvents:function(e){var t;return i.extensions.anchor.prototype.attachFormEvents.call(this,e),e=this.proxy.edQuery(e),t=e.find(".medium-editor-toolbar-input"),e.find(".medium-editor-toolbar-browse").on("click",function(e){return function(){var n,r;return r=(n=e.proxy.idFromPath(t.val()))?[n]:[],scrivito.openContentBrowser({selection:r,selectionMode:"single"}).catch(function(e){throw t.focus(),e}).then(function(n){var r,i;if(r=n.isSelected,i=n.selection,r)return t.focus(),i.length?t.val(e.proxy.pathForId(i[0])):t.val("")}),!1}}(this))},completeFormSave:function(e){return this.base.restoreSelection(),e.value?this.execAction(this.action,e):this.execAction("unlink"),this.base.checkSelection()}}),s=function(){var e,t;return e=["bold","italic","scrivito_anchor","h2","h3","unorderedlist","orderedlist"],("undefined"!=typeof ScrivitoEditors&&null!==ScrivitoEditors&&null!=(t=ScrivitoEditors._config)?t.showHtmlEditorCodeButton:void 0)&&e.splice(2,0,"scrivito_code"),e},u=function(){return{anchor:{targetCheckbox:!0},anchorPreview:!1,extensions:{scrivito_anchor:new o,scrivito_code:new r({label:'<i class="scrivito_customer_icon sci_code"></i>',start:"<code>",end:"</code>"}),imageDragging:{}},placeholder:!1,toolbar:{buttons:s(),standardizeSelectionStart:!0}}},a=function(e){var t,n,r;return t=e.jQueryElement(),n=u(),null!=(r=n.extensions.scrivito_anchor)&&(r.proxy=e),new i(t,n).subscribe("editableInput",function(){return e.save(t.html())})},e.exports=a},function(e,t,n){(function(r){var i;/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
|
72
|
+
var r=n(4);r.Any=n(67),r.Array=n(159),r.Boolean=n(89),r.Date=n(160),r.Error=n(161),r.Function=n(62),r.Nil=n(90),r.Number=n(91),r.Integer=n(162),r.IntegerT=r.Integer,r.Object=n(163),r.RegExp=n(164),r.String=n(69),r.Type=n(165),r.TypeT=r.Type,r.Arr=r.Array,r.Bool=r.Boolean,r.Dat=r.Date,r.Err=r.Error,r.Func=r.Function,r.Num=r.Number,r.Obj=r.Object,r.Re=r.RegExp,r.Str=r.String,r.dict=n(70),r.declare=n(166),r.enums=n(167),r.irreducible=n(14),r.list=n(94),r.maybe=n(168),r.refinement=n(68),r.struct=n(170),r.tuple=n(97),r.union=n(174),r.func=n(175),r.intersection=n(176),r.subtype=r.refinement,r.inter=n(177),r.interface=r.inter,r.assert=r,r.update=n(178),r.mixin=n(71),r.isType=n(10),r.is=n(29),r.getTypeName=n(7),r.match=n(179),e.exports=r},function(e,t){e.exports=function(e){throw new TypeError("[tcomb] "+e)}},function(e,t,n){var r=n(14),i=n(26);e.exports=r("Array",i)},function(e,t,n){var r=n(14);e.exports=r("Date",function(e){return e instanceof Date})},function(e,t,n){var r=n(14);e.exports=r("Error",function(e){return e instanceof Error})},function(e,t,n){var r=n(68),i=n(91);e.exports=r(i,function(e){return e%1==0},"Integer")},function(e,t,n){var r=n(14),i=n(25);e.exports=r("Object",i)},function(e,t,n){var r=n(14);e.exports=r("RegExp",function(e){return e instanceof RegExp})},function(e,t,n){var r=n(14),i=n(10);e.exports=r("Type",i)},function(e,t,n){var r=(n(4),n(18),n(10),n(23),n(71)),i=n(7),o=n(93),a=1;e.exports=function(e){function t(e,t){return n(e,t)}var n;return t.define=function(i){return o(i)&&t.hasOwnProperty("dispatch")&&(i.dispatch=t.dispatch),n=i,r(t,n,!0),e&&(n.displayName=t.displayName=e,t.meta.name=e),t.meta.identity=n.meta.identity,t.prototype=n.prototype,t},t.displayName=e||i(t)+"$"+a++,t.meta={identity:!1},t.prototype=null,t}},function(e,t,n){function r(e){return Object.keys(e).map(function(e){return o.stringify(e)}).join(" | ")}function i(e,t){function n(e,t){return e}var i=t||r(e);return n.meta={kind:"enums",map:e,name:t,identity:!0},n.displayName=i,n.is=function(t){return e.hasOwnProperty(t)},n}var o=n(4),a=(n(18),n(46),n(60));n(25);i.of=function(e,t){e=a(e)?e.split(" "):e;var n={};return e.forEach(function(e){n[e]=e}),i(n,t)},i.getDefaultName=r,e.exports=i},function(e,t,n){function r(e){return"?"+f(e)}function i(e,t){function n(t,n){return c.is(t)?t:u(e,t,n)}if(o(e)||e===s||e===c)return e;var i=t||r(e),f=a(e);return n.meta={kind:"maybe",type:e,name:t,identity:f},n.displayName=i,n.is=function(t){return c.is(t)||l(t,e)},n}var o=(n(4),n(18),n(9),n(169)),a=n(27),s=n(67),u=n(28),c=n(90),l=(n(46),n(29)),f=n(7);i.getDefaultName=r,e.exports=i},function(e,t,n){var r=n(10);e.exports=function(e){return r(e)&&"maybe"===e.meta.kind}},function(e,t,n){function r(e){return"Struct"+f(e)}function i(e,t){return d(a,e,t)}function o(e){return u(e)||(e=c(e)?{}:{name:e}),e.hasOwnProperty("strict")||(e.strict=a.strict),e.hasOwnProperty("defaultProps")||(e.defaultProps={}),e}function a(e,t){function n(t,r){if(n.is(t))return t;if(!(this instanceof n))return new n(t,r);for(var i in e)if(e.hasOwnProperty(i)){var o=e[i],a=t[i];void 0===a&&(a=c[i]),this[i]=l(o,a,null)}}t=o(t);var a=t.name,u=t.strict,c=t.defaultProps,f=a||r(e);return n.meta={kind:"struct",props:e,name:a,identity:!1,strict:u,defaultProps:c},n.displayName=f,n.is=function(e){return e instanceof n},n.update=function(e,t){return new n(s.update(e,t))},n.extend=function(e,t){return i([n].concat(e),t)},n}var s=n(4),u=(n(18),n(69),n(62),n(61),n(25)),c=n(23),l=n(28),f=(n(7),n(70),n(95)),d=n(96);a.strict=!1,a.getOptions=o,a.getDefaultName=r,a.extend=i,e.exports=a},function(e,t,n){var r=n(10);e.exports=function(e){return r(e)&&"struct"===e.meta.kind}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e)&&"interface"===e.meta.kind}},function(e,t,n){function r(e){return s(e)&&"subtype"===e.meta.kind}function i(e){return r(e)?[e.meta.predicate].concat(i(e.meta.type)):[]}function o(e){return r(e)?o(e.meta.type):e}function a(e){return{predicates:i(e),unrefinedType:o(e)}}var s=n(10);e.exports=a},function(e,t,n){function r(e){return e.map(a).join(" | ")}function i(e,t){function n(e,t){if(a)return e;var r=n.dispatch(e);return!r&&n.is(e)?e:u(r,e,t)}var i=t||r(e),a=e.every(s);return n.meta={kind:"union",types:e,name:t,identity:a},n.displayName=i,n.is=function(t){return e.some(function(e){return c(t,e)})},n.dispatch=function(t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(l(i)){var o=i.dispatch(t);if(!f(o))return o}else if(c(t,i))return i}},n.update=function(e,t){return n(o.update(e,t))},n}var o=n(4),a=(n(18),n(9),n(7)),s=n(27),u=(n(26),n(28)),c=n(29),l=(n(46),n(93)),f=n(23);i.getDefaultName=r,e.exports=i},function(e,t,n){function r(e,t){return"("+e.map(d).join(", ")+") => "+d(t)}function i(e){return s.is(e)&&c(e.instrumentation)}function o(e){for(var t=e.length,n=!1,r=t-1;r>=0;r--){var i=e[r];if(!h(i)||"maybe"!==i.meta.kind)return r+1;n=!0}return n?0:t}function a(e,t,n){function s(e,t){return i(e)?e:s.of(e)}e=u(e)?e:[e];var c=n||r(e,t),d=e.length;o(e);return s.meta={kind:"func",domain:e,codomain:t,name:n,identity:!0},s.displayName=c,s.is=function(n){return i(n)&&n.instrumentation.domain.length===d&&n.instrumentation.domain.every(function(t,n){return t===e[n]})&&n.instrumentation.codomain===t},s.of=function(n,r){function i(){var i=Array.prototype.slice.call(arguments),o=i.length;if(r&&o<d){var s=Function.prototype.bind.apply(n,[this].concat(i));return a(e.slice(o),t).of(s,!0)}return l(t,n.apply(this,i))}return s.is(n)?n:(i.instrumentation={domain:e,codomain:t,f:n},i.displayName=f(n),i)},s}var s=(n(4),n(18),n(62)),u=n(26),c=(n(94),n(25)),l=n(28),f=(n(23),n(61),n(97),n(45)),d=n(7),h=n(10);a.getDefaultName=r,a.getOptionalArgumentsIndex=o,e.exports=a},function(e,t,n){function r(e){return e.map(s).join(" & ")}function i(e,t){function n(e,t){return e}var i=t||r(e),s=e.every(u);return n.meta={kind:"intersection",types:e,name:t,identity:s},n.displayName=i,n.is=function(t){return e.every(function(e){return a(t,e)})},n.update=function(e,t){return n(o.update(e,t))},n}var o=n(4),a=(n(18),n(9),n(26),n(27),n(29)),s=n(7),u=n(27);i.getDefaultName=r,e.exports=i},function(e,t,n){function r(e,t){return h(o,e,t)}function i(e){return s(e)||(e=u(e)?{}:{name:e}),e.hasOwnProperty("strict")||(e.strict=o.strict),e}function o(e,t){function n(t,n){if(v)return t;var r=!0,i=v?{}:p({},t);for(var o in e){var a=e[o],s=t[o],u=c(a,s,null);r=r&&s===u,i[o]=u}return r&&(i=t),i}t=i(t);var o=t.name,s=t.strict,h=o||l(e),v=Object.keys(e).map(function(t){return e[t]}).every(f);return n.meta={kind:"interface",props:e,name:o,identity:v,strict:s},n.displayName=h,n.is=function(t){if(u(t))return!1;if(s)for(var n in t)if(!e.hasOwnProperty(n))return!1;for(var r in e)if(!d(t[r],e[r]))return!1;return!0},n.update=function(e,t){return n(a.update(e,t))},n.extend=function(e,t){return r([n].concat(e),t)},n}var a=n(4),s=(n(18),n(69),n(62),n(61),n(25)),u=n(23),c=n(28),l=(n(7),n(70),n(95)),f=n(27),d=n(29),h=n(96),p=n(98);o.strict=!1,o.getOptions=i,o.getDefaultName=l,o.extend=r,e.exports=o},function(e,t,n){function r(e){return v(e)?e instanceof Date||e instanceof RegExp?e:g({},e):m(e)?e.concat():e}function i(e){return a.commands.hasOwnProperty(e)}function o(e){return a.commands[e]}function a(e,t){var n,s=e,u=!1;for(var c in t)t.hasOwnProperty(c)&&(i(c)?(n=o(c)(t[c],s),n!==e?(u=!0,s=n):s=e):(s===e&&(s=r(e)),n=a(s[c],t[c]),u=u||n!==s[c],s[c]=n));return u?s:e}function s(e,t){return e(t)}function u(e,t){return e.length>0?t.concat(e):t}function c(e,t){if(e.length>0){t=r(t);for(var n=0,i=e.length;n<i;n++)delete t[e[n]]}return t}function l(e){return e}function f(e,t){return e.length>0?(t=r(t),e.reduce(function(e,t){return e.splice.apply(e,t),e},t)):t}function d(e,t){if(e.from!==e.to){t=r(t);var n=t[e.to];t[e.to]=t[e.from],t[e.from]=n}return t}function h(e,t){return e.length>0?e.concat(t):t}function p(e,t){var n=!1,i=r(t);for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],n=n||i[o]!==t[o]);return n?i:t}var v=(n(4),n(25)),m=(n(9),n(26)),g=(n(92),n(98));a.commands={$apply:s,$push:u,$remove:c,$set:l,$splice:f,$swap:d,$unshift:h,$merge:p},e.exports=a},function(e,t,n){var r=n(4),i=n(9),o=n(10),a=n(67);e.exports=function(e){for(var t,n,s,u=1,c=arguments.length;u<c;)if(t=arguments[u],n=arguments[u+1],s=arguments[u+2],i(s)&&!o(s)?u+=3:(s=n,n=a.is,u+=2),t.is(e)&&n(e))return s(e);r.fail("Match error")}},function(e,t,n){"use strict";var r=n(181),i=function(e){return e&&e.__esModule?e:{default:e}}(r);scrivito.Promise=window.Promise||i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(){}function r(e,t){return function(){e.apply(t,arguments)}}function i(e,t){for(;3===e._state;)e=e._value;if(0===e._state)return void e._deferreds.push(t);e._handled=!0,l._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._state?o:a)(t.promise,e._value);var r;try{r=n(e._value)}catch(e){return void a(t.promise,e)}o(t.promise,r)})}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof l)return e._state=3,e._value=t,void s(e);if("function"==typeof n)return void c(r(n,t),e)}e._state=1,e._value=t,s(e)}catch(t){a(e,t)}}function a(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&l._immediateFn(function(){e._handled||l._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}function u(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function c(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,a(t,e))})}catch(e){if(n)return;n=!0,a(t,e)}}function l(e){if(!(this instanceof l))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}var f=setTimeout,d=l.prototype;d.catch=function(e){return this.then(null,e)},d.then=function(e,t){var r=new this.constructor(n);return i(this,new u(e,t,r)),r},l.all=function(e){return new l(function(t,n){function r(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){r(e,t)},n)}i[e]=a,0==--o&&t(i)}catch(e){n(e)}}if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var o=i.length,a=0;a<i.length;a++)r(a,i[a])})},l.resolve=function(e){return e&&"object"==typeof e&&e.constructor===l?e:new l(function(t){t(e)})},l.reject=function(e){return new l(function(t,n){n(e)})},l.race=function(e){return new l(function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)})},l._immediateFn="function"==typeof e&&function(t){e(t)}||function(e){f(e,0)},l._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},t.default=l}.call(t,n(182).setImmediate)},function(e,t,n){function r(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(183),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return c[u]=r,s(u),u++}function i(e){delete c[e]}function o(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function a(e){if(l)setTimeout(a,0,e);else{var t=c[e];if(t){l=!0;try{o(t)}finally{i(e),l=!1}}}}if(!e.setImmediate){var s,u=1,c={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?function(){s=function(e){t.nextTick(function(){a(e)})}}():function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&a(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),s=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){a(e.data)},s=function(t){e.port2.postMessage(t)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var e=f.documentElement;s=function(t){var n=f.createElement("script");n.onreadystatechange=function(){a(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():function(){s=function(e){setTimeout(a,0,e)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,n(51),n(79))},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e,t,r){return n?e:i.default.throttle(e,t,r)}function t(){n=!0}var n=!1;scrivito.throttle=e,scrivito.bypassThrottle=t}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(0),a=r(o),s=n(42),u=r(s),c=n(1);!function(){scrivito.typeInfo={normalize:function(e){if(a.default.isString(e))return[e];if(a.default.isArray(e))return e;throw new c.InternalError("Type Info needs to be a string or an array containing a string and optionally a hash")},normalizeAttrs:function(e){var t=this;return a.default.mapObject(e,function(e,n){var r=i(e,2),o=r[0],a=r[1];return(0,u.default)(n)?[o]:[o,t.normalize(a)]})},unwrapAttributes:function(e){return a.default.mapObject(e,function(e){return i(e,1)[0]})}}}()},function(e,t,n){"use strict";function r(e){return(0,o.default)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(132),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){var r,i;!function(n,o){"use strict";var a=function(e,t){var n,r,i,o,a,s,l,f,d,h,p,v,m,g,y,b="-",w=[";","?",":","@","&","=","+","$",",","/"],_=[";","?",":","@","&","=","+","$",","],C=[".","!","~","*","'","(",")"],k="",E="",x=!0,S={},T={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"Ae","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"Oe","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"Ue","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"ue","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","ا":"a","أ":"a","إ":"i","آ":"aa","ؤ":"u","ئ":"e","ء":"a","ب":"b","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ي":"y","ى":"a","ة":"h","ﻻ":"la","ﻷ":"laa","ﻹ":"lai","ﻵ":"laa","گ":"g","چ":"ch","پ":"p","ژ":"zh","ک":"k","ی":"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","က":"k","ခ":"kh","ဂ":"g","ဃ":"ga","င":"ng","စ":"s","ဆ":"sa","ဇ":"z","စျ":"za","ည":"ny","ဋ":"t","ဌ":"ta","ဍ":"d","ဎ":"da","ဏ":"na","တ":"t","ထ":"ta","ဒ":"d","ဓ":"da","န":"n","ပ":"p","ဖ":"pa","ဗ":"b","ဘ":"ba","မ":"m","ယ":"y","ရ":"ya","လ":"l","ဝ":"w","သ":"th","ဟ":"h","ဠ":"la","အ":"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h","ဧ":"e","၏":"-e","ဣ":"i","ဤ":"-i","ဉ":"u","ဦ":"-u","ဩ":"aw","သြော":"aw","ဪ":"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ހ":"h","ށ":"sh","ނ":"n","ރ":"r","ބ":"b","ޅ":"lh","ކ":"k","އ":"a","ވ":"v","މ":"m","ފ":"f","ދ":"dh","ތ":"th","ލ":"l","ގ":"g","ޏ":"gn","ސ":"s","ޑ":"d","ޒ":"z","ޓ":"t","ޔ":"y","ޕ":"p","ޖ":"j","ޗ":"ch","ޘ":"tt","ޙ":"hh","ޚ":"kh","ޛ":"th","ޜ":"z","ޝ":"sh","ޞ":"s","ޟ":"d","ޠ":"t","ޡ":"z","ޢ":"a","ޣ":"gh","ޤ":"q","ޥ":"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"ks","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"o","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"i","ώ":"o","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"I","Θ":"TH","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"KS","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"O","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"I","Ώ":"O","Ϊ":"I","Ϋ":"Y","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","Ā":"A","Ē":"E","Ģ":"G","Ī":"I","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"U","Ќ":"Kj","ќ":"kj","Љ":"Lj","љ":"lj","Њ":"Nj","њ":"nj","Тс":"Ts","тс":"ts","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","ă":"a","Ă":"A","ș":"s","Ș":"S","ț":"t","Ț":"T","ţ":"t","Ţ":"T","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"kh","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"I","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"Kh","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","ђ":"dj","ј":"j","ћ":"c","џ":"dz","Ђ":"Dj","Ј":"j","Ћ":"C","Џ":"Dz","ľ":"l","ĺ":"l","ŕ":"r","Ľ":"L","Ĺ":"L","Ŕ":"R","ş":"s","Ş":"S","ı":"i","İ":"I","ğ":"g","Ğ":"G","ả":"a","Ả":"A","ẳ":"a","Ẳ":"A","ẩ":"a","Ẩ":"A","đ":"d","Đ":"D","ẹ":"e","Ẹ":"E","ẽ":"e","Ẽ":"E","ẻ":"e","Ẻ":"E","ế":"e","Ế":"E","ề":"e","Ề":"E","ệ":"e","Ệ":"E","ễ":"e","Ễ":"E","ể":"e","Ể":"E","ọ":"o","Ọ":"o","ố":"o","Ố":"O","ồ":"o","Ồ":"O","ổ":"o","Ổ":"O","ộ":"o","Ộ":"O","ỗ":"o","Ỗ":"O","ơ":"o","Ơ":"O","ớ":"o","Ớ":"O","ờ":"o","Ờ":"O","ợ":"o","Ợ":"O","ỡ":"o","Ỡ":"O","Ở":"o","ở":"o","ị":"i","Ị":"I","ĩ":"i","Ĩ":"I","ỉ":"i","Ỉ":"i","ủ":"u","Ủ":"U","ụ":"u","Ụ":"U","ũ":"u","Ũ":"U","ư":"u","Ư":"U","ứ":"u","Ứ":"U","ừ":"u","Ừ":"U","ự":"u","Ự":"U","ữ":"u","Ữ":"U","ử":"u","Ử":"ư","ỷ":"y","Ỷ":"y","ỳ":"y","Ỳ":"Y","ỵ":"y","Ỵ":"Y","ỹ":"y","Ỹ":"Y","ạ":"a","Ạ":"A","ấ":"a","Ấ":"A","ầ":"a","Ầ":"A","ậ":"a","Ậ":"A","ẫ":"a","Ẫ":"A","ắ":"a","Ắ":"A","ằ":"a","Ằ":"A","ặ":"a","Ặ":"A","ẵ":"a","Ẵ":"A","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"(TM)","©":"(C)","œ":"oe","Œ":"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o","º":"o","ª":"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY","元":"CNY","円":"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN","лв":"BGN","៛":"KHR","₡":"CRC","₸":"KZT","ден":"MKD","zł":"PLN","₽":"RUB","₾":"GEL"},A=["်","ް"],j={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},O={en:{},az:{"ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U"},cs:{"č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z"},fi:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},hu:{"ä":"a","Ä":"A","ö":"o","Ö":"O","ü":"u","Ü":"U","ű":"u","Ű":"U"},lt:{"ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U"},lv:{"ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z"},pl:{"ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z"},sk:{"ä":"a","Ä":"A"},sr:{"љ":"lj","њ":"nj","Љ":"Lj","Њ":"Nj","đ":"dj","Đ":"Dj"},tr:{"Ü":"U","Ö":"O","ü":"u","ö":"o"}},P={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}};if("string"!=typeof e)return"";if("string"==typeof t&&(b=t),l=P.en,f=O.en,"object"==typeof t){n=t.maintainCase||!1,S=t.custom&&"object"==typeof t.custom?t.custom:S,i=+t.truncate>1&&t.truncate||!1,o=t.uric||!1,a=t.uricNoSlash||!1,s=t.mark||!1,x=!1!==t.symbols&&!1!==t.lang,b=t.separator||b,o&&(y+=w.join("")),a&&(y+=_.join("")),s&&(y+=C.join("")),l=t.lang&&P[t.lang]&&x?P[t.lang]:x?P.en:{},f=t.lang&&O[t.lang]?O[t.lang]:!1===t.lang||!0===t.lang?{}:O.en,t.titleCase&&"number"==typeof t.titleCase.length&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){S[e+""]=e+""}),r=!0):r=!!t.titleCase,t.custom&&"number"==typeof t.custom.length&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){S[e+""]=e+""}),Object.keys(S).forEach(function(t){var n;n=t.length>1?new RegExp("\\b"+u(t)+"\\b","gi"):new RegExp(u(t),"gi"),e=e.replace(n,S[t])});for(p in S)y+=p}for(y+=b,y=u(y),e=e.replace(/(^\s+|\s+$)/g,""),m=!1,g=!1,h=0,v=e.length;h<v;h++)p=e[h],c(p,S)?m=!1:f[p]?(p=m&&f[p].match(/[A-Za-z0-9]/)?" "+f[p]:f[p],m=!1):p in T?(h+1<v&&A.indexOf(e[h+1])>=0?(E+=p,p=""):!0===g?(p=j[E]+T[p],E=""):p=m&&T[p].match(/[A-Za-z0-9]/)?" "+T[p]:T[p],m=!1,g=!1):p in j?(E+=p,p="",h===v-1&&(p=j[E]),g=!0):!l[p]||o&&-1!==w.join("").indexOf(p)||a&&-1!==_.join("").indexOf(p)?(!0===g?(p=j[E]+p,E="",g=!1):m&&(/[A-Za-z0-9]/.test(p)||k.substr(-1).match(/A-Za-z0-9]/))&&(p=" "+p),m=!1):(p=m||k.substr(-1).match(/[A-Za-z0-9]/)?b+l[p]:l[p],p+=void 0!==e[h+1]&&e[h+1].match(/[A-Za-z0-9]/)?b:"",m=!0),k+=p.replace(new RegExp("[^\\w\\s"+y+"_-]","g"),b);return r&&(k=k.replace(/(\w)(\S*)/g,function(e,t,n){var r=t.toUpperCase()+(null!==n?n:"");return Object.keys(S).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),k=k.replace(/\s+/g,b).replace(new RegExp("\\"+b+"+","g"),b).replace(new RegExp("(^\\"+b+"+|\\"+b+"+$)","g"),""),i&&k.length>i&&(d=k.charAt(i)===b,k=k.slice(0,i),d||(k=k.slice(0,k.lastIndexOf(b)))),n||r||(k=k.toLowerCase()),k},s=function(e){return function(t){return a(t,e)}},u=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},c=function(e,t){for(var n in t)if(t[n]===e)return!0};void 0!==e&&e.exports?(e.exports=a,e.exports.createSlug=s):(r=[],void 0!==(i=function(){return a}.apply(t,r))&&(e.exports=i))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,r){var i=C(t,2),f=i[0],v=i[1];switch(n){case"binary":return o(f,v);case"date":return a(f,v);case"float":return l(f,v);case"enum":return u(f,v,r);case"html":return s(f,v);case"integer":return d(f,v);case"link":return h(f,v);case"linklist":return p(f,v);case"multienum":return c(f,v,r);case"reference":return g(f,v);case"referencelist":return y(f,v);case"string":return b(f,v);case"stringlist":return w(f,v);case"widgetlist":return _(f,v,e)}}function o(e,t){if("binary"===e&&t){var n=t.id,r="published"===scrivito.currentWorkspaceId();return new P.default(n,r).optimizeFor({})}return null}function a(e,t){return"date"!==e?null:(0,x.deserializeAsDate)(t)}function s(e,t){return j.default.contains(["html","string"],e)&&j.default.isString(t)?t:""}function u(e,t,n){var r=n.values;return"string"===e&&j.default.contains(r,t)?t:null}function c(e,t,n){var r=n.values;return"stringlist"===e&&Array.isArray(t)?j.default.intersection(t,r):[]}function l(e,t){switch(e){case"string":return t.match(/^-?\d+(\.\d+)?$/)?f(t):null;case"number":return f(t);default:return null}}function f(e){var t=parseFloat(e);return(0,x.isValidFloat)(t)?t:null}function d(e,t){switch(e){case"string":case"number":return(0,x.deserializeAsInteger)(t);default:return null}}function h(e,t){return"link"===e&&j.default.isObject(t)?v(t):null}function p(e,t){return j.default.isArray(t)?j.default.compact(t.map(v)):[]}function v(e){var t=j.default.pick(e,"title","query","fragment","target","url");t.hash=t.fragment,delete t.fragment,t.objId=e.obj_id;var n=T.default.build(t);return n.isBroken()?null:n}function m(e){var t=E.default.get(e);return t||null}function g(e,t){return"reference"===e&&t?m(t):null}function y(e,t){if("referencelist"!==e)return[];if(!t)return[];var n=t.map(m);return j.default.compact(n)}function b(e,t){return j.default.contains(["html","string"],e)&&j.default.isString(t)?t:""}function w(e,t){return"stringlist"===e&&Array.isArray(t)?t:[]}function _(e,t,n){return"widgetlist"!==e?[]:j.default.map(t,function(e){return n.widget(e)})}Object.defineProperty(t,"__esModule",{value:!0});var C=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.deserialize=i;var k=n(3),E=r(k),x=n(43),S=n(35),T=r(S),A=n(0),j=r(A),O=n(24),P=r(O)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){(0,g.each)(e,function(e){return m.preload(e)})}function s(e,t){var n=(0,g.extend)({},e,{index:t}),r=d.computeCacheKey(n);return d.stateContainer().subState(r)}function u(e){return function(){return e+"|"+scrivito.ObjReplication.getWorkspaceVersion()}}function c(e){var t=(0,g.omit)({query:e.query,offset:e.offset,sort_by:e.sortBy,sort_order:e.sortDirection},g.isUndefined);return e.includeDeleted&&(t.options={include_deleted:!0}),t}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(101),d=i(f),h=n(190),p=i(h),v=n(53),m=i(v),g=n(0),y=n(8),b=r(y),w=n(16),_=r(w),C={results:[]},k=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;o(this,e),this._params=t,this._batchSize=n,r?(this._index=r.index+1,this._continuation=r.continuationForNextBatch(),this._previousBatch=r):this._index=0}return l(e,null,[{key:"store",value:function(e,t){var n=s(c(e),0),r=u(void 0);new _.default({state:n,invalidation:r}).set({results:t})}},{key:"firstBatchFor",value:function(t,n){return new e(c(t),n)}},{key:"countFor",value:function(e){return this.firstBatchFor(e,0).count()}}]),l(e,[{key:"objIds",value:function(){return this._response().results}},{key:"count",value:function(){return this._response().total||0}},{key:"nextBatch",value:function(){if(this.continuationForNextBatch())return new e(this._params,this._batchSize,this)}},{key:"continuationForNextBatch",value:function(){return this._response().continuation}},{key:"_response",value:function(){return this._data().get()||C}},{key:"_data",value:function(){return new _.default({state:s(this._params,this._index),loader:this._load.bind(this),invalidation:u(this._continuation)})}},{key:"_load",value:function(e){var t=this,n=e.push,r=e.isReload,i=e.wasCancelled;return this._fetchContinuation().then(function(e){if(!i()){var o={size:t._batchSize,continuation:e,include_objs:!r()},s=(0,g.extend)({},t._params,o);return p.retrieve(s).then(function(e){return e.objs&&n(function(){return e.objs.forEach(function(e){return m.store(e)})}),a(e.results),e})}})}},{key:"_fetchContinuation",value:function(){var e=this;return this._previousBatch?(0,b.default)(function(){return e._previousBatch.continuationForNextBatch()}):scrivito.Promise.resolve()}},{key:"index",get:function(){return this._index}}]),e}();t.default=k},function(e,t,n){"use strict";function r(e){var t=scrivito.currentWorkspaceId(),n=o.default.extend({consistent:!0},e);return scrivito.CmsRestApi.get("workspaces/"+t+"/objs/search",n).then(function(e){return e.results=o.default.pluck(e.results,"id"),o.default.pick(e,"results","continuation","total","objs")})}Object.defineProperty(t,"__esModule",{value:!0}),t.retrieve=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return!!e.current._deleted}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(53),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),u=n(102),c=function(e){return e&&e.__esModule?e:{default:e}}(u),l=function(){function e(t,n){r(this,e),this._params=t,this._batchSize=n}return o(e,[{key:"count",value:function(){return c.default.count(this._params)}},{key:"iterator",value:function(){return new f(this._params,this._batchSize)}}]),e}();t.default=l;var f=function(){function e(t,n){r(this,e),this._iterator=new c.default(t,n).iterator()}return o(e,[{key:"next",value:function(){if(!this._iterator)return{done:!0};var e=this._iterator.next().value;if(!e)return{done:!0};var t=s.get(e);return void 0===t?(this._iterator=void 0,{done:!0}):i(t)?this.next():{value:t,done:!1}}}]),e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){return scrivito.ObjReplication.getWorkspaceVersion()}function a(e){var t=scrivito.computeCacheKey(e);return m.cmsState.subState("facetQuery").subState(t)}function s(e){var t=v.default.without.apply(v.default,[v.default.keys(e)].concat(w));if(t.length)throw new g.ArgumentError("Invalid options: "+(0,b.default)(t)+". Valid options: "+w)}function u(e,t,n){var r={facets:[{attribute:e,limit:t.limit||10,include_objs:t.includeObjs||0}],size:0};return n&&n.length&&(r.query=n),r}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(193),f=r(l),d=n(16),h=r(d),p=n(0),v=r(p),m=n(5),g=n(1),y=n(37),b=r(y),w=["limit","includeObjs"],_=function(){function e(t,n,r){var c=this;i(this,e),s(n),this._requestParams=u(t,n,r),this._loadableData=new h.default({state:a(this._requestParams),loader:function(){return c._loadData()},invalidation:o})}return c(e,[{key:"result",value:function(){var e=this._loadableData.get();if(!e)return[];var t=v.default.first(e.facets);return v.default.map(t,function(e){var t=e.value,n=e.total,r=e.results.map(function(e){return e.id});return new f.default(t,n,r)})}},{key:"_loadData",value:function(){var e=scrivito.currentWorkspaceId();return scrivito.CmsRestApi.get("workspaces/"+e+"/objs/search",this._requestParams)}}],[{key:"store",value:function(e,t,n,r){s(t);var i=u(e,t,n);new h.default({state:a(i),invalidation:o,throwNotLoaded:!0}).set(r)}}]),e}();t.default=_},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(3),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(t,n,i){r(this,e),this._name=t,this._count=n,this._includedObjs=i}return i(e,[{key:"name",value:function(){return this._name}},{key:"count",value:function(){return this._count}},{key:"includedObjs",value:function(){return this._includedObjs.map(function(e){return a.default.get(e)})}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return function(){function t(){r(this,t)}return o(t,[{key:"id",value:function(){return this._scrivitoPrivateContent.id()}},{key:"objClass",value:function(){return this._scrivitoPrivateContent.objClass()}},{key:"finishSaving",value:function(){return this._scrivitoPrivateContent.finishSaving()}},{key:"get",value:function(t){return e.read(this,t)}},{key:"update",value:function(t){e.update(this,t)}}]),t}()}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=i},function(e,t,n){"use strict";function r(e,t,n,r){var i={};return Object.keys(n.definition.attributes).forEach(function(n){if(!e.hasOwnProperty(n)){var o=t.initialContentFor(r,n);void 0!==o&&(i[n]=o)}}),i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(22),a=function(){function e(t,n){r(this,e),this._registry=t,this._basicObjFacetValue=n}return i(e,[{key:"name",value:function(){return this._basicObjFacetValue.name()}},{key:"count",value:function(){return this._basicObjFacetValue.count()}},{key:"includedObjs",value:function(){var e=this._basicObjFacetValue.includedObjs();return(0,o.wrapInAppClass)(this._registry,e)}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e,t){var n=d.getEditingConfigFor(e,"initialContent");if(n){var r=n[t];if(c.isFunction(r))return r();if(i(r)){var o=v.getWindowRegistry();return r.map(function(e){var t=e._scrivitoPrivateContent,n=t.copy();return p.wrapInAppClass(o,n)})}return r}}function i(e){return c.isArray(e)&&c.every(e,o)}function o(e){return e._scrivitoPrivateContent&&e._scrivitoPrivateContent instanceof f.default}function a(e){u(l.default.get(e))}function s(e,t){u(l.default.get(e).widget(t))}function u(e){var t=e.objClass(),n=h.getWindowContext().getClass(t)._scrivitoPrivateSchema,i={};c.each(n.definition.attributes,function(n,o){var a=e.get(o,n);if(c.isEmpty(a)){var s=r(t,o);s&&(i[o]=s)}});var o=p.unwrapAppAttributes(i,n,t);e.update(o)}Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),l=n(3),f=n(30),d=n(72),h=n(55),p=n(22),v=n(56);t.initialContentFor=r,t.initializeContentForObj=a,t.initializeContentForWidget=s},function(e,t,n){"use strict";function r(e,t){var n=(0,o.getEditingConfigFor)(e,t);if((0,i.isFunction)(n))try{for(var r=arguments.length,s=Array(r>2?r-2:0),u=2;u<r;u++)s[u-2]=arguments[u];return n.apply(null,s)}catch(e){(0,a.throwNextTick)(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=n(72),a=n(36)},function(e,t,n){"use strict";function r(e){p(e);var t=e.endpoint,n=e.homepage,r=e.routingBasePath,i=e.tenant;scrivito.CmsRestApi.init(t||"api.scrivito.com",i),(0,f.init)(n||function(){return u.default.root()}),(0,l.init)({routingBasePath:r}),d=!0}function i(){return d}function o(){d=!1}Object.defineProperty(t,"__esModule",{value:!0}),t.resetIsConfigured=t.isConfigured=t.configure=void 0;var a=n(21),s=n(3),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=n(34),l=n(57),f=n(200),d=!1,h=a.tcomb.struct({tenant:a.tcomb.String,endpoint:a.tcomb.maybe(a.tcomb.String),homepage:a.tcomb.maybe(a.tcomb.Function),routingBasePath:a.tcomb.maybe(a.tcomb.String)}),p=(0,c.checkArgumentsFor)("configure",[["options",h]],{docPermalink:"js-sdk/configure"});t.configure=r,t.isConfigured=i,t.resetIsConfigured=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){_=e}function o(e){if(l(e),c(e))return"/";if(e.permalink())return"/"+e.permalink();var t=d(e);return t?"/"+t+"-"+e.id():"/"+e.id()}function a(e){f(e);var t=e.replace(new RegExp("^/+|/+$","g"),"");if(""===t)return(0,w.unwrapAppClassValue)(_());var n=g.default.getByPermalink(t);return n||g.default.get(h(t))}function s(){return _}function u(){_=void 0}function c(e){if(!_)return!1;var t=scrivito.loadableWithDefault(null,_);return!!t&&t.id()===e.id()}function l(e){if(!(e instanceof g.default))throw new y.ArgumentError("Parameter obj needs to be a BasicObj.")}function f(e){if(!v.default.isString(e))throw new y.ArgumentError("Parameter path needs to be a String.")}function d(e){var t=(0,b.getWindowRegistry)();return(0,w.wrapInAppClass)(t,e).slug()}function h(e){var t=v.default.last(e.split("-"));return v.default.last(t.split("/"))}Object.defineProperty(t,"__esModule",{value:!0}),t.init=i,t.generate=o,t.recognize=a,t.getHomepageCallback=s,t.resetHomepageCallback=u;var p=n(0),v=r(p),m=n(3),g=r(m),y=n(1),b=n(56),w=n(22),_=void 0},function(e,t,n){"use strict";function r(e){if(!e)return!1;var t=e.objClass();if(!t)return!1;var n=(0,a.getWindowContext)().getClass(t);return!!n&&o.default.forClass(n).isBinary()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(38),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(55)},function(e,t,n){"use strict";function r(e,t){a[e]=t}function i(e){return a[e]}function o(){a={}}Object.defineProperty(t,"__esModule",{value:!0}),t.store=r,t.lookup=i,t.clear=o;var a={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=u.default.getIncludingDeleted(e),r=n.widget(t);return o(r)||a(r.objClass())}function o(e){var t=(0,p.wrapInAppClass)((0,d.getWindowRegistry)(),e),n=e.objClass();return(0,l.default)(n,"titleForContent",t)}function a(e){return(0,f.getEditingConfigFor)(e,"title")||(0,h.sentenceCase)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(3),u=r(s),c=n(198),l=r(c),f=n(72),d=n(56),h=n(19),p=n(22)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(){return++f}function o(e){var t=i();d[t]=e;var n=s(),o=n.get()||[];n.set([].concat(r(o),[t]))}function a(e){var t=s().get();if(t){var n=(0,c.find)(t,function(t){return d[t]&&d[t].canEdit(e)});if(n){return{id:n,editorClass:d[n]}}}}function s(){return l.appState.subState("editors")}function u(){f=0,d={},s().clear()}Object.defineProperty(t,"__esModule",{value:!0}),t.registerEditor=t.editorRegistrationFor=t.clearEditorRegistry=void 0;var c=n(0),l=n(5),f=0,d={};t.clearEditorRegistry=u,t.editorRegistrationFor=a,t.registerEditor=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(49),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(t,n){r(this,e),this.domNode=t,this.controller=n}return i(e,[{key:"content",value:function(){return this.controller.content}},{key:"idFromPath",value:function(e){if(e.match(/^objid:/))return e.replace(/^objid:/,"")}},{key:"edQuery",value:function(){return a.default.apply(void 0,arguments)}},{key:"jQueryElement",value:function(){return this.edQuery(this.domNode)}},{key:"pathForId",value:function(e){return"objid:"+e}},{key:"save",value:function(e){this.controller.content=e;var t={done:function(e){return e(),t}};return t}},{key:"trigger",value:function(){}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e){var t=(0,o.default)(e);t.not("[data-scrivito-editors-placeholder]")&&t.attr("data-scrivito-editors-placeholder","Click to edit")}Object.defineProperty(t,"__esModule",{value:!0});var i=n(49),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r},function(e,t,n){"use strict";function r(e){return e.isRaw()||e.isExplicitlyTransformed()?e:e.optimizeFor({width:i.screen().width*i.devicePixelRatio()})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(52);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(12),c=r(u),l=n(0),f=n(22),d=n(35),h=r(d),p=n(3),v=r(p),m=n(24),g=r(m),y=n(80),b=r(y),w=n(13),_=r(w),C=n(209),k=r(C),E=n(115),x=n(294),S=n(54),T=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=n._onClick.bind(n),n}return a(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("a",this._linkProps(),this.props.children)}},{key:"_linkProps",value:function(){var e=(0,l.omit)(this.props,"to");return e.href=this._href(),e.onClick=this._onClick,e.target=this._target(),e}},{key:"_href",value:function(){return this._to()?this._to():"#"}},{key:"_onClick",value:function(e){e.preventDefault(),this._to()&&((0,l.isString)(this.props.to)?scrivito.openInNewWindow(this.props.to):this._openLink(e))}},{key:"_openLink",value:function(e){var t=this._target();"_blank"===t||(0,k.default)(e)?this._openLinkInNewWindow():t?scrivito.openLocation(this._href(),t):(0,b.default)(this.props.to)}},{key:"_openLinkInNewWindow",value:function(){var e=this._href();scrivito.uiAdapter?scrivito.uiAdapter.openInNewWindow(e):scrivito.openInNewWindow(e)}},{key:"_target",value:function(){return this.props.target?this.props.target:this.props.to&&this.props.to._scrivitoPrivateContent instanceof h.default?this.props.to.target():void 0}},{key:"_to",value:function(){if(this.props.to){if((0,l.isString)(this.props.to))return this.props.to;var e=(0,f.unwrapAppClassValue)(this.props.to);if(e instanceof h.default||e instanceof v.default||e instanceof g.default)return(0,E.basicUrlFor)(e)}}}]),t}(c.default.Component);T.displayName="Scrivito.LinkTag",T.propTypes=(0,x.propTypes)({to:x.tcomb.maybe(x.tcomb.union([S.ObjType,S.LinkType,S.BinaryType,x.tcomb.String]))},{strict:!1}),t.default=(0,_.default)(T)},function(e,t,n){"use strict";function r(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.which===i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=2},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(75),c=r(u),l=n(38),f=r(l),d=n(0),h=n(12),p=r(h),v=n(1),m=n(22),g=n(211),y=r(g),b=n(13),w=r(b),_=n(204),C=n(36),k=n(212),E=r(k),x=n(301),S=r(x),T=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){if(!this.props.content)return null;var e=f.default.basicFieldFor(this.props.content,this.props.attribute);if(!e){var t=this.props.attribute;return(0,C.throwNextTick)(new v.ArgumentError('Component "Scrivito.ContentTag" received prop "attribute" with invalid value: Attribute "'+t+'" is not defined for content specified in prop "content".')),null}var n=void 0,r=void 0,i=(0,_.editorRegistrationFor)({type:e.type(),tag:this.props.tag});return i&&(n=i.id,r=i.editorClass),(0,c.default)()?p.default.createElement(S.default,{key:this._editorKey(n),field:e,editorClass:r,tag:this.props.tag,customProps:this._customProps(),content:this.props.content},this.props.children):p.default.createElement(E.default,{field:e,tag:this.props.tag,customProps:this._customProps()},this.props.children)}},{key:"_customProps",value:function(){return(0,d.omit)(this.props,"content","attribute","tag")}},{key:"_editorKey",value:function(e){var t=(0,m.unwrapAppClassValue)(this.props.content);return[this.props.tag,(0,y.default)(t),this.props.attribute,e].join("|")}}]),t}(p.default.Component);T.displayName="Scrivito.ContentTag",T.defaultProps={tag:"div"},t.default=(0,w.default)(T)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e instanceof a.default)return e.id();if(e instanceof u.default)return e.obj().id()+"|"+e.id();var t=(0,f.default)(e).substr(0,100);throw new c.InternalError('keyForBasicContent called with "'+t+'". Expected an instance of BasicObj or BasicWidget.')}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(3),a=r(o),s=n(30),u=r(s),c=n(1),l=n(37),f=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(75),c=r(u),l=n(114),f=r(l),d=n(0),h=n(12),p=r(h),v=n(80),m=r(v),g=n(13),y=r(g),b=n(297),w=r(b),_=n(298),C=r(_),k=n(300),E=r(k),x=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=n._onClick.bind(n),n}return a(t,e),s(t,[{key:"render",value:function(){switch(this.props.field.type()){case"html":return this._renderHtml();case"float":case"integer":case"string":return this._renderAsString();case"widgetlist":return this._renderWidgetlist();default:return this._renderContent({children:this.props.children})}}},{key:"_renderHtml",value:function(){if(this.props.children)return this._renderContent({children:this.props.children});var e=(0,f.default)(this._attributeValue()),t={dangerouslySetInnerHTML:{__html:e},onClick:this._onClick};return this._renderContent({props:t})}},{key:"_onClick",value:function(e){var t=(0,w.default)(e);t&&(t.openInNewWindow?this._openInNewWindow(e,t):this._navigateTo(e,t))}},{key:"_openInNewWindow",value:function(e,t){var n=t.openInNewWindow;scrivito.uiAdapter&&(e.preventDefault(),e.stopPropagation(),scrivito.uiAdapter.openInNewWindow(n))}},{key:"_navigateTo",value:function(e,t){var n=t.obj,r=t.options;e.preventDefault(),e.stopPropagation(),(0,m.default)(n,r)}},{key:"_renderAsString",value:function(){var e=this.props.children||this._attributeValue();return this._renderContent({children:e})}},{key:"_renderWidgetlist",value:function(){var e=void 0,t=this._attributeValue();return t.length?e=t.map(function(e){return p.default.createElement(C.default,{key:e.id(),widget:e})}):(0,c.default)()&&(e=p.default.createElement(E.default,{field:this.props.field})),this._renderContent({children:e})}},{key:"_renderContent",value:function(e){var t=e.props,n=e.children,r=(0,d.extend)({},this.props.customProps,t,this._editingProps());return p.default.createElement(this.props.tag,r,n)}},{key:"_editingProps",value:function(){return this.props.onClick?{onClick:this.props.onClick}:{}}},{key:"_attributeValue",value:function(){return this.props.field.get()}}]),t}(p.default.Component);x.displayName="Scrivito.ContentTag.AttributeValue",t.default=(0,y.default)(x)},function(e,t){e.exports=PropTypes},function(e,t,n){"use strict";function r(e){e.dataTransfer.effectAllowed="move";try{e.dataTransfer.setData("text/plain",e.target.id)}catch(e){}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(12),c=r(u),l=n(13),f=r(l),d=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=n._onClick.bind(n),n}return a(t,e),s(t,[{key:"render",value:function(){var e="scrivito_option_marker scrivito_"+this.props.position;return this.props.isAlwaysShown&&(e+=" scrivito_visible"),c.default.createElement("span",{className:e,onClick:this._onClick},c.default.createElement("i",{className:"scrivito_icon scrivito_icon_marker_plus"}))}},{key:"_onClick",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)}}]),t}(c.default.Component);d.displayName="Scrivito.OptionMarker",t.default=(0,f.default)(d)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(e,t){"content"===e&&document.addEventListener("DOMContentLoaded",function(){return t(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){e&&(e.setAppAdapter("1.0.0-52-ga45d8ed9",scrivito.AppAdapter),scrivito.uiAdapter=e.uiAdapter()),scrivito.client.init({ui:e}),document.addEventListener("DOMContentLoaded",function(){return scrivito.BrowserLocation.init()})}Object.defineProperty(t,"__esModule",{value:!0}),t.initializeSdk=r,n(139),n(255),n(256),n(275);var i=n(278),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(204);window.scrivito||(window.scrivito={}),window.scrivito.registerEditor=a.registerEditor,window.scrivito.openContentBrowser=o.default},function(e,t,n){"use strict";n(109)},function(e,t,n){"use strict";n(257),n(258),n(273),n(274)},function(e,t,n){"use strict";window.scrivito||(window.scrivito={}),window.scrivito.AppSupport={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(38),a=r(o),s=n(0),u=n(80),c=r(u),l=n(72),f=n(198),d=r(f),h=n(55),p=n(56),v=n(268),m=n(271),g=r(m),y=n(52),b=n(114),w=r(b),_=n(116),C=n(117),k=r(C),E=n(197),x=n(22),S=n(3),T=r(S),A=n(203),j=r(A);!function(){function e(e,i,o){var u=a.default.forClass(o),c={name:i,type:e,attributes:t(u,(0,s.keys)(u.attributes)),validContainerClasses:u.validContainerClasses};return n(c,i),r(c,i),c}function t(e,t){return t.map(function(t){var n=e.attributeDefinition(t),r=i(n,2),o=r[0],a=r[1],s={name:t,type:o};return a&&(a.only&&(s.only=a.only),a.values&&(s.values=a.values)),s})}function n(e,t){f.forEach(function(n){var r=(0,l.getEditingConfigFor)(t,n);r&&(e[n]=r)})}function r(e,t){var n=(0,l.getEditingConfigFor)(t,"attributes");n&&Object.keys(n).forEach(function(t){var r=(0,s.findWhere)(e.attributes,{name:t});if(r){var i=n[t],o=i.title,a=i.description,u=i.values,c={title:o,description:a};u&&(c.valuesLocalization=u),(0,s.extend)(r,c)}})}function o(e,t){var n=T.default.getIncludingDeleted(t),r=(0,x.wrapInAppClass)((0,p.getWindowRegistry)(),n);return(0,d.default)(n.objClass(),e,r)}function u(e){var t={obj_id:e.obj.id()};return e.url.fragment()&&(t.fragment=e.url.fragment()),e.url.search()&&(t.query=e.url.search()),t}var f=["title","description","thumbnail"],m={contentBrowserConfiguration:function(){return(0,k.default)((0,_.getContentBrowserConfiguration)())},titleForClass:function(e){return(0,l.getEditingConfigFor)(e,"title")},propertiesGroupsForClass:function(e){return(0,l.getEditingConfigFor)(e,"propertiesGroups")},generalPropertiesForClass:function(e){return(0,l.getEditingConfigFor)(e,"properties")},hideInSelectionDialogsForClass:function(e){return(0,l.getEditingConfigFor)(e,"hideInSelectionDialogs")},titleForObj:function(e){return o("titleForContent",e)},descriptionForObj:function(e){return o("descriptionForContent",e)},titleForWidget:j.default,thumbnailForObj:function(e){return o("thumbnailForContent",e)},initializeContentForObj:E.initializeContentForObj,initializeContentForWidget:E.initializeContentForWidget,getClasses:function(){var t=(0,h.getWindowContext)(),n=[];return(0,s.each)(t.allObjClasses(),function(t,r){return n.push(e("Obj",r,t))}),(0,s.each)(t.allWidgetClasses(),function(t,r){return n.push(e("Widget",r,t))}),n},navigateTo:function(e){(0,c.default)(function(){return(0,x.wrapInAppClass)((0,p.getWindowRegistry)(),T.default.get(e))})},mountComponent:v.mountComponent,resolveUrl:function(e){return(0,g.default)(e).then(function(e){return e&&e.obj?u(e):null})},getDocumentHeight:function(){return(0,y.getDocument)().querySelector("html").getBoundingClientRect().height},replaceInternalLinks:function(e){return(0,w.default)(e)}};scrivito.AppAdapter=m}()},function(e,t,n){"use strict";function r(){window.scrollTo(0,0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(261),s=r(a),u=n(262),c=r(u),l=n(263),f=r(l),d=n(264),h=r(d),p=n(265),v=r(p),m=n(113),g=r(m),y=n(266),b=n(267),w=function(){function e(){i(this,e),this._registry=new v.default,this._registry.defaultClassForObjs=(0,f.default)(this._registry),this._registry.defaultClassForWidgets=(0,s.default)(this._registry),this._registry.defaultClassForLinks=(0,h.default)(this._registry),this._registry.ObjSearch=(0,c.default)(this._registry),this.appModelAccessor=new g.default(this._registry)}return o(e,null,[{key:"init",value:function(t){var n=new e;return t.Obj=n.Obj,t.Widget=n.Widget,t.Link=n.Link,t.ObjSearch=n.ObjSearch,t.appModelAccessor=n.appModelAccessor,t.provideObjClass=function(){return n.provideObjClass.apply(n,arguments)},t.provideWidgetClass=function(){return n.provideWidgetClass.apply(n,arguments)},t.createObjClass=function(){return n.createObjClass.apply(n,arguments)},t.createWidgetClass=function(){return n.createWidgetClass.apply(n,arguments)},t.getClass=function(){return n.getClass.apply(n,arguments)},t.allObjClasses=function(){return n.allObjClasses()},t.allWidgetClasses=function(){return n.allWidgetClasses()},t._privateRealm=n,n}}]),o(e,[{key:"provideObjClass",value:function(e,t){return(0,b.checkProvideObjClass)(e,t),(0,y.provideObjClass)(this._registry,e,t)}},{key:"provideWidgetClass",value:function(e,t){return(0,b.checkProvideWidgetClass)(e,t),(0,y.provideWidgetClass)(this._registry,e,t)}},{key:"createObjClass",value:function(e){return(0,b.checkCreateObjClass)(e),(0,y.createObjClass)(this._registry,e)}},{key:"createWidgetClass",value:function(e){return(0,b.checkCreateWidgetClass)(e),(0,y.createWidgetClass)(this._registry,e)}},{key:"getClass",value:function(e){return this._registry.getClass(e)}},{key:"allObjClasses",value:function(){return this._registry.allObjClasses()}},{key:"allWidgetClasses",value:function(){return this._registry.allWidgetClasses()}},{key:"setInitialContentFor",value:function(e){this._registry.setInitialContentFor(e)}},{key:"Obj",get:function(){return this._registry.defaultClassForObjs}},{key:"Widget",get:function(){return this._registry.defaultClassForWidgets}},{key:"Link",get:function(){return this._registry.defaultClassForLinks}},{key:"ObjSearch",get:function(){return this._registry.ObjSearch}}]),e}();t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=new g.default(e);return function(t){function n(e){i(this,n);var t=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),r=t._prepareAttributesForConstructor(e),a=new p.default(r);return t._scrivitoPrivateContent=a,t}return a(n,t),c(n,[{key:"obj",value:function(){var t=this._scrivitoPrivateContent.obj();return(0,C.wrapInAppClass)(e,t)}},{key:"copy",value:function(){var t=e.widgetClassFor(this.objClass()),n=this._scrivitoPrivateContent.copy();return(0,C.buildAppClassInstance)(n,t)}},{key:"_prepareAttributesForConstructor",value:function(t){var n=e.objClassNameFor(this.constructor),r=d.default.forInstance(this);u(n,t);var i=(0,_.default)(t,e,r,n),o={_objClass:n},a=(0,l.extend)({},t,i,o);return(0,C.unwrapAppAttributes)(a,r,n)}}]),n}((0,b.default)(t))}function u(e,t){if(!e)throw new v.ArgumentError("Creating widgets is not supported for the class Widget or abstract classes.");if(t.constructor!==Object)throw new v.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(t._objClass)throw new v.ArgumentError('Invalid attribute "_objClass". "new '+t._objClass+'" will automatically set the CMS object class correctly.')}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var l=n(0),f=n(38),d=r(f),h=n(30),p=r(h),v=n(1),m=n(113),g=r(m),y=n(194),b=r(y),w=n(195),_=r(w),C=n(22)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){var t=function(){function t(e){i(this,t),this._scrivitoPrivateContent=new c.default(e)}return a(t,[{key:"and",value:function(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(e instanceof t)this._scrivitoPrivateContent.and(e._scrivitoPrivateContent);else{var o=(0,d.unwrapAppClassValues)(r);this._scrivitoPrivateContent.and(e,n,o,i)}return this}},{key:"andNot",value:function(e,t,n){var r=(0,d.unwrapAppClassValues)(n);return this._scrivitoPrivateContent.andNot(e,t,r),this}},{key:"facet",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this._scrivitoPrivateContent.facet(t,n);return p.default.map(r,function(t){return new f.default(e,t)})}},{key:"take",value:function(t){return this._scrivitoPrivateContent.batchSize(t),(0,s.arrayFromIterable)(this._scrivitoPrivateContent,t).map(function(t){return(0,d.wrapInAppClass)(e,t)})}},{key:"offset",value:function(e){return this._scrivitoPrivateContent.offset(e),this}},{key:"order",value:function(e,t){return this._scrivitoPrivateContent.order(e,t),this}},{key:"count",value:function(){return this._scrivitoPrivateContent.count()}}]),t}();if("function"==typeof window.Symbol){var n=window.Symbol.iterator;if(n){t.prototype[n]=function(){var t=this._scrivitoPrivateContent.iterator();return{next:function(){var n=t.next(),r=n.done,i=n.value;return r?{done:r}:{done:r,value:(0,d.wrapInAppClass)(e,i)}}}}}}return t}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var s=n(104),u=n(48),c=r(u),l=n(196),f=r(l),d=n(22),h=n(0),p=r(h)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){function t(t,n){var r=new e.ObjSearch;return t&&r.and("_objClass","equals",t),n&&r._scrivitoPrivateContent.batchSize(n),r}function n(t){return(0,y.wrapInAppClass)(e,t)}var r=new g.default(e);return function(s){function f(){return i(this,f),o(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return a(f,s),c(f,[{key:"lastChanged",value:function(){return this._scrivitoPrivateContent.lastChanged()}},{key:"path",value:function(){return this._scrivitoPrivateContent.path()}},{key:"parent",value:function(){return n(this._scrivitoPrivateContent.parent())}},{key:"ancestors",value:function(){return n(this._scrivitoPrivateContent.ancestors())}},{key:"backlinks",value:function(){return n(this._scrivitoPrivateContent.backlinks())}},{key:"children",value:function(){return n(this._scrivitoPrivateContent.children())}},{key:"orderedChildren",value:function(){return n(this._scrivitoPrivateContent.orderedChildren())}},{key:"permalink",value:function(){return this._scrivitoPrivateContent.permalink()}},{key:"slug",value:function(){return this._scrivitoPrivateContent.slug()}},{key:"isBinary",value:function(){var e=p.default.forInstance(this);return!!e&&e.isBinary()}},{key:"contentLength",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0}},{key:"contentType",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""}},{key:"contentUrl",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""}},{key:"metadata",value:function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new w.default}},{key:"destroy",value:function(){this._scrivitoPrivateContent.destroy()}},{key:"widget",value:function(e){return n(this._scrivitoPrivateContent.widget(e))}},{key:"widgets",value:function(){return n(this._scrivitoPrivateContent.widgets())}}],[{key:"get",value:function(e){return r.getObj(this,e)}},{key:"getIncludingDeleted",value:function(e){return r.getObjIncludingDeleted(this,e)}},{key:"getByPath",value:function(e){return n(d.default.getByPath(e))}},{key:"getByPermalink",value:function(e){return n(d.default.getByPermalink(e))}},{key:"all",value:function(){return t(e.objClassNameFor(this),1e3)}},{key:"root",value:function(){return n(d.default.root())}},{key:"where",value:function(n,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t(e.objClassNameFor(this)).and(n,r,i,o)}},{key:"create",value:function(e){var t=this._prepareAttributesForCreate(e);return n(d.default.create(t))}},{key:"_prepareAttributesForCreate",value:function(t){var n=e.objClassNameFor(this),r=p.default.forClass(this);u(t,n);var i=(0,E.default)(t,e,r,n),o={_objClass:n},a=(0,l.extend)({},t,i,o);return(0,y.unwrapAppAttributes)(a,r,n)}}]),f}((0,C.default)(r))}function u(e,t){if(!t)throw new v.ArgumentError("Creating CMS objects is not supported for the class Obj or abstract classes.");if(e.constructor!==Object)throw new v.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new v.ArgumentError('Invalid attribute "_objClass". "'+e._objClass+'.create" will automatically set the CMS object class correctly.')}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var l=n(0),f=n(3),d=r(f),h=n(38),p=r(h),v=n(1),m=n(113),g=r(m),y=n(22),b=n(110),w=r(b),_=n(194),C=r(_),k=n(195),E=r(k)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){return function(t){function n(e){return r(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))}return o(n,t),s(n,[{key:"obj",value:function(){return(0,f.wrapInAppClass)(e,u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"obj",this).call(this))}},{key:"fetchObj",value:function(t){return u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"fetchObj",this).call(this,t).then(function(t){return(0,f.wrapInAppClass)(e,t)})}},{key:"_scrivitoPrivateContent",get:function(){return l.default.build(this.buildAttributes())}}]),n}(l.default)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)};t.default=a;var c=n(35),l=function(e){return e&&e.__esModule?e:{default:e}}(c),f=n(22)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(){function e(){this.mapping={}}return e.prototype.register=function(e,t){this.mapping[e]=t},e.prototype.getClass=function(e){return this.mapping[e]},e.prototype.allObjClasses=function(){return this.allForBaseClass(this.defaultClassForObjs)},e.prototype.allWidgetClasses=function(){return this.allForBaseClass(this.defaultClassForWidgets)},e.prototype.objClassFor=function(e){return this.appClassFor(e,this.defaultClassForObjs)},e.prototype.widgetClassFor=function(e){return this.appClassFor(e,this.defaultClassForWidgets)},e.prototype.objClassNameFor=function(e){return r.findKey(this.mapping,function(t){return t===e})},e.prototype.setInitialContentFor=function(e){this.initialContentForFuntion=e},e.prototype.initialContentFor=function(e,t){if(this.initialContentForFuntion)return this.initialContentForFuntion(e,t)},e.prototype.appClassFor=function(e,t){var n=this.getClass(e);return n&&t.isPrototypeOf(n)?n:t},e.prototype.allForBaseClass=function(e){return r.pick(this.mapping,function(t){return e.isPrototypeOf(t)})},e}();t.default=i},function(e,t,n){"use strict";function r(e,t){if(t.extend&&!f(t.extend,e.defaultClassForObjs))throw new p.ArgumentError('Invalid value for "extend": not a Scrivito Obj class');var n=t.extend||e.defaultClassForObjs,r=new v.default(t,n);return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),t}(n)}function i(e,t){if(t.extend&&!f(t.extend,e.defaultClassForWidgets))throw new p.ArgumentError('Invalid value for "extend": not a Scrivito Widget class');var n=t.extend||e.defaultClassForWidgets,r=new v.default(c(t),n);return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),t}(n)}function o(e,t,n){var r=a(e,t,n);return e.register(t,r),r}function a(e,t,n){return l(n)?n:r(e,h.extend(n,{name:t}))}function s(e,t,n){var r=u(e,t,n);return e.register(t,r),r}function u(e,t,n){return l(n)?n:i(e,h.extend(n,{name:t}))}function c(e){var t=h.extend({},e),n=e.onlyInside;return n&&(delete t.onlyInside,t.validContainerClasses=[n]),t}function l(e){return!(!e||!e._scrivitoPrivateSchema)}function f(e,t){return!!e&&(e===t||e.prototype instanceof t)}var d=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var h=n(0),p=n(1),v=n(38);t.createObjClass=r,t.createWidgetClass=i,t.provideObjClass=o,t.provideWidgetClass=s},function(e,t,n){"use strict";function r(e){return e&&e._scrivitoPrivateSchema}Object.defineProperty(t,"__esModule",{value:!0}),t.checkProvideWidgetClass=t.checkProvideObjClass=t.checkCreateWidgetClass=t.checkCreateObjClass=void 0;var i=n(21),o=n(34),a=n(19),s=i.tcomb.refinement(i.tcomb.Function,r,"ObjClass"),u=i.tcomb.interface({attributes:i.tcomb.maybe(i.tcomb.dict(i.tcomb.refinement(i.tcomb.String,a.isCamelCase,"String (camelCase)"),i.tcomb.union([i.tcomb.enums.of(["binary","date","float","html","integer","link","linklist","reference","referencelist","string","stringlist","widgetlist"]),i.tcomb.union([i.tcomb.tuple([i.tcomb.enums.of(["enum","multienum"]),i.tcomb.interface({values:i.tcomb.list(i.tcomb.String)})]),i.tcomb.tuple([i.tcomb.enums.of(["widgetlist"]),i.tcomb.interface({only:i.tcomb.union([i.tcomb.String,i.tcomb.list(i.tcomb.String)])})])])]),"Attributes Specification")),extend:i.tcomb.maybe(s)}),c=u.meta.props.attributes,l=i.tcomb.refinement(i.tcomb.Function,r,"WidgetClass"),f=i.tcomb.interface({attributes:c,extend:i.tcomb.maybe(l),onlyInside:i.tcomb.maybe(i.tcomb.String)}),d=(t.checkCreateObjClass=(0,o.checkArgumentsFor)("createObjClass",[["options",u]],{docPermalink:"js-sdk/createObjClass"}),t.checkCreateWidgetClass=(0,o.checkArgumentsFor)("createWidgetClass",[["options",f]],{docPermalink:"js-sdk/createWidgetClass"}),i.tcomb.union([u,s])),h=(t.checkProvideObjClass=(0,o.checkArgumentsFor)("provideObjClass",[["name",i.tcomb.String],["objClassOrDefinition",d]],{docPermalink:"js-sdk/provideObjClass"}),i.tcomb.union([f,l]));t.checkProvideWidgetClass=(0,o.checkArgumentsFor)("provideWidgetClass",[["name",i.tcomb.String],["widgetClassOrDefinition",h]],{docPermalink:"js-sdk/provideWidgetClass"})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!b){var n=(0,v.getComponentForId)(e);if(!n)throw new p.ArgumentError('Component with ID "'+e+'" not found. Please make sure you registered it using "Scrivito.registerComponent".');var r=void 0,i=void 0,o=f.default.get(t.objId);if(t.widgetId){var s=o.widget(t.widgetId);i=(0,y.wrapInAppClass)((0,g.getWindowRegistry)(),s)}else r=(0,y.wrapInAppClass)((0,g.getWindowRegistry)(),o);b=!0;var u=a((0,m.getDocument)(),n,{obj:r,widget:i});(0,h.default)(u,function(){return scrivito.uiAdapter.notifyDocumentResize()}),scrivito.uiAdapter.notifyDocumentResize()}}function o(){b=!1}function a(e,t,n){var r=e.createElement("div");return e.body.innerHTML="",e.body.appendChild(r),(0,c.render)(u.default.createElement(t,n),r),r}Object.defineProperty(t,"__esModule",{value:!0}),t.reset=t.mountComponent=void 0;var s=n(12),u=r(s),c=n(73),l=n(3),f=r(l),d=n(269),h=r(d),p=n(1),v=n(74),m=n(52),g=n(56),y=n(22),b=!1;t.mountComponent=i,t.reset=o},function(e,t,n){"use strict";function r(e,t){if(!e._scrivitoResizeListeners){e._scrivitoResizeListeners=[],e.style.position="relative";var n=i();n.resizeElement=e,e._scrivitoResizeTrigger=n,(0,u.default)()&&e.appendChild(n),n.data="about:blank",(0,u.default)()||e.appendChild(n)}e._scrivitoResizeListeners.push(t)}function i(){var e=document.createElement("object");return e.type="text/html",e.onload=o,e.style.display="block",e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex=-1,e}function o(){this.contentDocument.defaultView._scrivitoResizeTrigger=this.resizeElement,this.contentDocument.defaultView.addEventListener("resize",a)}function a(e){var t=e.target||e.srcElement,n=t._scrivitoResizeTrigger;n._scrivitoResizeListeners.forEach(function(t){return t(n,e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var s=n(270),u=function(e){return e&&e.__esModule?e:{default:e}}(s)},function(e,t,n){"use strict";function r(){var e=window.navigator.userAgent;return e.indexOf("MSIE")>=0||e.indexOf("Trident")>=0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=(0,a.default)(e);return(0,l.isConfigured)()?(0,c.default)(function(){return(0,f.recognize)(e)}).then(function(e){return e.path?(0,s.include)(["/",""],e.path)?null:{obj:e.obj,url:t}:null}):scrivito.Promise.resolve(null)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(33),a=r(o),s=n(0),u=n(8),c=r(u),l=n(199),f=n(57);t.default=i},function(e,t,n){"use strict";function r(e){var t=o.default.get(e);return t?(0,a.basicUrlFor)(t):(0,s.generateUrl)({path:e})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(115),s=n(57);t.default=r},function(e,t,n){"use strict";var r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(0),a=n(65),s=n(52),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(s),c=n(57);!function(){function e(e){var t=e.obj,n=e.queryParameters,r=e.hash,i={scrivitoObjId:t.id(),scrivitoQueryParameters:n,scrivitoHash:r},a=(0,c.generate)({obj:t,queryParameters:n,hash:r}),s=u.history();s.state&&s.state.scrivitoObjId===t.id()&&(0,o.isEqual)(s.state.scrivitoQueryParameters,n)&&s.state.scrivitoHash===r||s.pushState(i,"",a)}function t(e){var t=e.obj,n=e.queryParameters,r=e.hash,i={scrivitoObjId:t.id(),scrivitoQueryParameters:n,scrivitoHash:r},o=(0,c.generate)({obj:t,queryParameters:n,hash:r});u.history().replaceState(i,"",o)}function n(){u.setOnpopstate(l)}function r(){var e=u.location().toString();(0,a.replaceCurrentPage)(function(){var t=(0,c.recognize)(e),n=t.obj,r=t.queryParameters,i=t.hash;return n?{obj:n,queryParameters:r,hash:i}:{queryParameters:r,hash:i}})}function s(){r(),n()}function l(e){var t=void 0,n=void 0,o=void 0;e.state&&(t=e.state.scrivitoObjId,n=e.state.scrivitoHash,o=e.state.scrivitoQueryParameters),t?(0,a.replaceCurrentPage)(function(){return{obj:i.default.get(t),queryParameters:o,hash:n}}):r()}scrivito.BrowserLocation={},scrivito.BrowserLocation.init=s,scrivito.BrowserLocation.pushWith=e,scrivito.BrowserLocation.replaceWith=t}()},function(e,t,n){"use strict";!function(){function e(e){scrivito.uiAdapter?scrivito.uiAdapter.navigateToExternalUrl(e):scrivito.setWindowLocation(e)}function t(e){window.location=e}function n(e,t){window.open(e,t)}function r(e){n(e,"_blank")}scrivito.setWindowLocation=t,scrivito.changeLocation=e,scrivito.openLocation=n,scrivito.openInNewWindow=r}()},function(e,t,n){"use strict";n(276),n(277)},function(e,t,n){"use strict";window.scrivito||(window.scrivito={})},function(e,t,n){"use strict";!function(){var e=void 0,t=0,n={},r={subscribe:function(e){var r=e.onFocus,i=e.onBlur,o=t;return n[o]={onFocus:r,onBlur:i},t+=1,o},unsubscribe:function(e){delete n[e]},notifyFocus:function(t){e=t,n[e].onFocus()},notifyBlur:function(t){t===e&&n[t].onBlur()},get handlers(){return n},reset:function(){e=void 0,t=0,n={}}};scrivito.WidgetFocus=r}()},function(e,t,n){"use strict";function r(e){return scrivito.uiAdapter.openContentBrowser((0,a.default)((0,i.extend)({},(0,s.getContentBrowserConfiguration)(),(0,i.pick)(e,"selection","selectionMode"))))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=n(117),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=n(116)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){scrivito.registerEditor(a.default),scrivito.registerEditor(u.default),scrivito.registerEditor(l.default)}Object.defineProperty(t,"__esModule",{value:!0}),t.initializeEditors=i;var o=n(280),a=r(o),s=n(284),u=r(s),c=n(285),l=r(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(49),s=r(a),u=n(205),c=r(u),l=n(206),f=r(l),d=n(281),h=r(d),p=function(){function e(t){var n=t.controller;i(this,e),this.controller=n}return o(e,null,[{key:"canEdit",value:function(e){return"html"===e.type}}]),o(e,[{key:"editorWillBeActivated",value:function(){this.controller.setDomMode("Replace")}},{key:"editorDomWasMounted",value:function(e){(0,f.default)(e),(0,s.default)(e).html(this.controller.content);var t=new c.default(e,this.controller);(0,h.default)(t)}}]),e}();t.default=p},function(e,t,n){var r,i,o,a,s,u;i=n(282),r=n(283),o=i.extensions.anchor.extend({name:"scrivito_anchor",proxy:null,contentDefault:'<i class="scrivito_customer_icon sci_link"></i>',init:function(){var e;return i.extensions.anchor.prototype.init.apply(this,arguments),this.targetCheckbox=null!=(e=this.getEditorOption("anchor"))?e.targetCheckbox:void 0},handleClick:function(e){var t,n,r,o,a;return e.preventDefault(),e.stopPropagation(),this.isDisplayed()||(o=i.selection.getSelectionRange(this.document),r=i.selection.getSelectedParentElement(o),n=i.util.getClosestTag(r,"a"),t=a=null,n&&(n=this.proxy.edQuery(n),t=n.attr("href")||null,a=n.attr("target")||null),this.showForm({value:t,target:a})),!1},getTemplate:function(){var e;return e="",this.targetCheckbox&&(e="<div class='medium-editor-toolbar-form-row medium-editor-toolbar-anchor-target-toggle'>\n <label>\n <input type='checkbox' class='medium-editor-toolbar-anchor-target'>\n <i class='scrivito_customer_icon sci_inv_check'></i>\n <i class='scrivito_customer_icon sci_rounded_square'></i>\n "+this.targetCheckboxText+"\n </label>\n</div>"),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection'></i>\n<input type='text' class='medium-editor-toolbar-input' placeholder='"+this.placeholderText+"'>\n<i class='medium-editor-toolbar-save scrivito_customer_icon sci_check'></i>\n<i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross'></i>\n"+e).replace(/\n\s*/g,"")},attachFormEvents:function(e){var t;return i.extensions.anchor.prototype.attachFormEvents.call(this,e),e=this.proxy.edQuery(e),t=e.find(".medium-editor-toolbar-input"),e.find(".medium-editor-toolbar-browse").on("click",function(e){return function(){var n,r;return r=(n=e.proxy.idFromPath(t.val()))?[n]:[],scrivito.openContentBrowser({selection:r,selectionMode:"single"}).catch(function(e){throw t.focus(),e}).then(function(n){var r,i;if(r=n.isSelected,i=n.selection,r)return t.focus(),i.length?t.val(e.proxy.pathForId(i[0])):t.val("")}),!1}}(this))},completeFormSave:function(e){return this.base.restoreSelection(),e.value?this.execAction(this.action,e):this.execAction("unlink"),this.base.checkSelection()}}),s=function(){var e,t;return e=["bold","italic","scrivito_anchor","h2","h3","unorderedlist","orderedlist"],("undefined"!=typeof ScrivitoEditors&&null!==ScrivitoEditors&&null!=(t=ScrivitoEditors._config)?t.showHtmlEditorCodeButton:void 0)&&e.splice(2,0,"scrivito_code"),e},u=function(){return{anchor:{targetCheckbox:!0},anchorPreview:!1,extensions:{scrivito_anchor:new o,scrivito_code:new r({label:'<i class="scrivito_customer_icon sci_code"></i>',start:"<code>",end:"</code>"}),imageDragging:{}},placeholder:!1,toolbar:{buttons:s(),standardizeSelectionStart:!0}}},a=function(e){var t,n,r;return t=e.jQueryElement(),n=u(),null!=(r=n.extensions.scrivito_anchor)&&(r.proxy=e),new i(t,n).subscribe("editableInput",function(){return e.save(t.html())})},e.exports=a},function(e,t,n){(function(r){var i;/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
|
73
73
|
"classList"in document.createElement("_")||function(e){"use strict";if("Element"in e){var t=e.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array.prototype.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},o=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},a=function(e,t){if(""===t)throw new o("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new o("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(e,t)},s=function(e){for(var t=r.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],i=0,o=n.length;i<o;i++)this.push(n[i]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},u=s.prototype=[],c=function(){return new s(this)};if(o.prototype=Error.prototype,u.item=function(e){return this[e]||null},u.contains=function(e){return e+="",-1!==a(this,e)},u.add=function(){var e,t=arguments,n=0,r=t.length,i=!1;do{e=t[n]+"",-1===a(this,e)&&(this.push(e),i=!0)}while(++n<r);i&&this._updateClassName()},u.remove=function(){var e,t,n=arguments,r=0,i=n.length,o=!1;do{for(e=n[r]+"",t=a(this,e);-1!==t;)this.splice(t,1),o=!0,t=a(this,e)}while(++r<i);o&&this._updateClassName()},u.toggle=function(e,t){e+="";var n=this.contains(e),r=n?!0!==t&&"remove":!1!==t&&"add";return r&&this[r](e),!0===t||!1===t?t:!n},u.toString=function(){return this.join(" ")},n.defineProperty){var l={get:c,enumerable:!0,configurable:!0};try{n.defineProperty(t,"classList",l)}catch(e){-2146823252===e.number&&(l.enumerable=!1,n.defineProperty(t,"classList",l))}}else n.prototype.__defineGetter__&&t.__defineGetter__("classList",c)}}(self),/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
|
74
74
|
function(e){"use strict";if(e.URL=e.URL||e.webkitURL,e.Blob&&e.URL)try{return void new Blob}catch(e){}var t=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||function(e){var t=function(e){return Object.prototype.toString.call(e).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(e,t,n){this.data=e,this.size=e.length,this.type=t,this.encoding=n},i=n.prototype,o=r.prototype,a=e.FileReaderSync,s=function(e){this.code=this[this.name=e]},u="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=u.length,l=e.URL||e.webkitURL||e,f=l.createObjectURL,d=l.revokeObjectURL,h=l,p=e.btoa,v=e.atob,m=e.ArrayBuffer,g=e.Uint8Array,y=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=o.fake=!0;c--;)s.prototype[u[c]]=c+1;return l.createObjectURL||(h=e.URL=function(e){var t,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=e,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(t=e.match(y),n.origin=t&&t[1])),n}),h.createObjectURL=function(e){var t,n=e.type;return null===n&&(n="application/octet-stream"),e instanceof r?(t="data:"+n,"base64"===e.encoding?t+";base64,"+e.data:"URI"===e.encoding?t+","+decodeURIComponent(e.data):p?t+";base64,"+p(e.data):t+","+encodeURIComponent(e.data)):f?f.call(l,e):void 0},h.revokeObjectURL=function(e){"data:"!==e.substring(0,5)&&d&&d.call(l,e)},i.append=function(e){var n=this.data;if(g&&(e instanceof m||e instanceof g)){for(var i="",o=new g(e),u=0,c=o.length;u<c;u++)i+=String.fromCharCode(o[u]);n.push(i)}else if("Blob"===t(e)||"File"===t(e)){if(!a)throw new s("NOT_READABLE_ERR");var l=new a;n.push(l.readAsBinaryString(e))}else e instanceof r?"base64"===e.encoding&&v?n.push(v(e.data)):"URI"===e.encoding?n.push(decodeURIComponent(e.data)):"raw"===e.encoding&&n.push(e.data):("string"!=typeof e&&(e+=""),n.push(unescape(encodeURIComponent(e))))},i.getBlob=function(e){return arguments.length||(e=null),new r(this.data.join(""),e,"raw")},i.toString=function(){return"[object BlobBuilder]"},o.slice=function(e,t,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(e,i>1?t:this.data.length),n,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=0,delete this.data},n}(e);e.Blob=function(e,n){var r=n?n.type||"":"",i=new t;if(e)for(var o=0,a=e.length;o<a;o++)Uint8Array&&e[o]instanceof Uint8Array?i.append(e[o].buffer):i.append(e[o]);var s=i.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(e){return e.__proto__};e.Blob.prototype=n(new e.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(o,a){"use strict";"object"==typeof e&&void 0!==r&&r&&r.versions&&r.versions.electron||"object"!=typeof e?void 0!==(i=function(){return a}.call(t,n,t,e))&&(e.exports=i):e.exports=a}(0,function(){"use strict";function e(e,t){return this.init(e,t)}return e.extensions={},function(t){function n(e,t){var n,r=Array.prototype.slice.call(arguments,2);t=t||{};for(var i=0;i<r.length;i++){var o=r[i];if(o)for(n in o)o.hasOwnProperty(n)&&void 0!==o[n]&&(e||!1===t.hasOwnProperty(n))&&(t[n]=o[n])}return t}var r=!1;try{var i=document.createElement("div"),o=document.createTextNode(" ");i.appendChild(o),r=i.contains(o)}catch(e){}var a={isIE:"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent),isEdge:null!==/Edge\/\d+/.exec(navigator.userAgent),isFF:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMac:t.navigator.platform.toUpperCase().indexOf("MAC")>=0,keyCode:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,K:75,M:77,V:86},isMetaCtrlKey:function(e){return!!(a.isMac&&e.metaKey||!a.isMac&&e.ctrlKey)},isKey:function(e,t){var n=a.getKeyCode(e);return!1===Array.isArray(t)?n===t:-1!==t.indexOf(n)},getKeyCode:function(e){var t=e.which;return null===t&&(t=null!==e.charCode?e.charCode:e.keyCode),t},blockContainerElementNames:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","li","ol","address","article","aside","audio","canvas","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","main","nav","noscript","output","section","video","table","thead","tbody","tfoot","tr","th","td"],emptyElementNames:["br","col","colgroup","hr","img","input","source","wbr"],extend:function(){var e=[!0].concat(Array.prototype.slice.call(arguments));return n.apply(this,e)},defaults:function(){var e=[!1].concat(Array.prototype.slice.call(arguments));return n.apply(this,e)},createLink:function(e,t,n,r){var i=e.createElement("a");return a.moveTextRangeIntoElement(t[0],t[t.length-1],i),i.setAttribute("href",n),r&&("_blank"===r&&i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target",r)),i},findOrCreateMatchingTextNodes:function(e,t,n){for(var r=e.createTreeWalker(t,NodeFilter.SHOW_ALL,null,!1),i=[],o=0,s=!1,u=null,c=null;null!==(u=r.nextNode());)if(!(u.nodeType>3))if(3===u.nodeType){if(!s&&n.start<o+u.nodeValue.length&&(s=!0,c=a.splitStartNodeIfNeeded(u,n.start,o)),s&&a.splitEndNodeIfNeeded(u,c,n.end,o),s&&o===n.end)break;if(s&&o>n.end+1)throw new Error("PerformLinking overshot the target!");s&&i.push(c||u),o+=u.nodeValue.length,null!==c&&(o+=c.nodeValue.length,r.nextNode()),c=null}else"img"===u.tagName.toLowerCase()&&(!s&&n.start<=o&&(s=!0),s&&i.push(u));return i},splitStartNodeIfNeeded:function(e,t,n){return t!==n?e.splitText(t-n):null},splitEndNodeIfNeeded:function(e,t,n,r){var i,o;i=r+e.nodeValue.length+(t?t.nodeValue.length:0)-1,o=n-r-(t?e.nodeValue.length:0),i>=n&&r!==i&&0!==o&&(t||e).splitText(o)},splitByBlockElements:function(t){if(3!==t.nodeType&&1!==t.nodeType)return[];var n=[],r=e.util.blockContainerElementNames.join(",");if(3===t.nodeType||0===t.querySelectorAll(r).length)return[t];for(var i=0;i<t.childNodes.length;i++){var o=t.childNodes[i];if(3===o.nodeType)n.push(o);else if(1===o.nodeType){var a=o.querySelectorAll(r);0===a.length?n.push(o):n=n.concat(e.util.splitByBlockElements(o))}}return n},findAdjacentTextNodeWithContent:function(e,t,n){var r,i=!1,o=n.createNodeIterator(e,NodeFilter.SHOW_TEXT,null,!1);for(r=o.nextNode();r;){if(r===t)i=!0;else if(i&&3===r.nodeType&&r.nodeValue&&r.nodeValue.trim().length>0)break;r=o.nextNode()}return r},findPreviousSibling:function(e){if(!e||a.isMediumEditorElement(e))return!1;for(var t=e.previousSibling;!t&&!a.isMediumEditorElement(e.parentNode);)e=e.parentNode,t=e.previousSibling;return t},isDescendant:function(e,t,n){if(!e||!t)return!1;if(e===t)return!!n;if(1!==e.nodeType)return!1;if(r||3!==t.nodeType)return e.contains(t);for(var i=t.parentNode;null!==i;){if(i===e)return!0;i=i.parentNode}return!1},isElement:function(e){return!(!e||1!==e.nodeType)},throttle:function(e,t){var n,r,i,o=null,a=0,s=function(){a=Date.now(),o=null,i=e.apply(n,r),o||(n=r=null)};return t||0===t||(t=50),function(){var u=Date.now(),c=t-(u-a);return n=this,r=arguments,c<=0||c>t?(o&&(clearTimeout(o),o=null),a=u,i=e.apply(n,r),o||(n=r=null)):o||(o=setTimeout(s,c)),i}},traverseUp:function(e,t){if(!e)return!1;do{if(1===e.nodeType){if(t(e))return e;if(a.isMediumEditorElement(e))return!1}e=e.parentNode}while(e);return!1},htmlEntities:function(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},insertHTMLCommand:function(t,n){var r,i,o,s,u,c,l,f=!1,d=["insertHTML",!1,n];if(!e.util.isEdge&&t.queryCommandSupported("insertHTML"))try{return t.execCommand.apply(t,d)}catch(e){}if(r=t.getSelection(),r.rangeCount){if(i=r.getRangeAt(0),l=i.commonAncestorContainer,a.isMediumEditorElement(l)&&!l.firstChild)i.selectNode(l.appendChild(t.createTextNode("")));else if(3===l.nodeType&&0===i.startOffset&&i.endOffset===l.nodeValue.length||3!==l.nodeType&&l.innerHTML===i.toString()){for(;!a.isMediumEditorElement(l)&&l.parentNode&&1===l.parentNode.childNodes.length&&!a.isMediumEditorElement(l.parentNode);)l=l.parentNode;i.selectNode(l)}for(i.deleteContents(),o=t.createElement("div"),o.innerHTML=n,s=t.createDocumentFragment();o.firstChild;)u=o.firstChild,c=s.appendChild(u);i.insertNode(s),c&&(i=i.cloneRange(),i.setStartAfter(c),i.collapse(!0),e.selection.selectRange(t,i)),f=!0}return t.execCommand.callListeners&&t.execCommand.callListeners(d,f),f},execFormatBlock:function(t,n){var r,i=a.getTopBlockContainer(e.selection.getSelectionStart(t));if("blockquote"===n){if(i&&(r=Array.prototype.slice.call(i.childNodes),r.some(function(e){return a.isBlockContainer(e)})))return t.execCommand("outdent",!1,null);if(a.isIE)return t.execCommand("indent",!1,n)}if(i&&n===i.nodeName.toLowerCase()&&(n="p"),a.isIE&&(n="<"+n+">"),i&&"blockquote"===i.nodeName.toLowerCase()){if(a.isIE&&"<p>"===n)return t.execCommand("outdent",!1,n);if((a.isFF||a.isEdge)&&"p"===n)return r=Array.prototype.slice.call(i.childNodes),r.some(function(e){return!a.isBlockContainer(e)})&&t.execCommand("formatBlock",!1,n),t.execCommand("outdent",!1,n)}return t.execCommand("formatBlock",!1,n)},setTargetBlank:function(e,t){var n,r=t||!1;if("a"===e.nodeName.toLowerCase())e.target="_blank",e.rel="noopener noreferrer";else for(e=e.getElementsByTagName("a"),n=0;n<e.length;n+=1)!1!==r&&r!==e[n].attributes.href.value||(e[n].target="_blank",e[n].rel="noopener noreferrer")},removeTargetBlank:function(e,t){var n;if("a"===e.nodeName.toLowerCase())e.removeAttribute("target"),e.removeAttribute("rel");else for(e=e.getElementsByTagName("a"),n=0;n<e.length;n+=1)t===e[n].attributes.href.value&&(e[n].removeAttribute("target"),e[n].removeAttribute("rel"))},addClassToAnchors:function(e,t){var n,r,i=t.split(" ");if("a"===e.nodeName.toLowerCase())for(r=0;r<i.length;r+=1)e.classList.add(i[r]);else{var o=e.getElementsByTagName("a");if(0===o.length){var s=a.getClosestTag(e,"a");e=s?[s]:[]}else e=o;for(n=0;n<e.length;n+=1)for(r=0;r<i.length;r+=1)e[n].classList.add(i[r])}},isListItem:function(e){if(!e)return!1;if("li"===e.nodeName.toLowerCase())return!0;for(var t=e.parentNode,n=t.nodeName.toLowerCase();"li"===n||!a.isBlockContainer(t)&&"div"!==n;){if("li"===n)return!0;if(!(t=t.parentNode))return!1;n=t.nodeName.toLowerCase()}return!1},cleanListDOM:function(t,n){if("li"===n.nodeName.toLowerCase()){var r=n.parentElement;"p"===r.parentElement.nodeName.toLowerCase()&&(a.unwrap(r.parentElement,t),e.selection.moveCursor(t,n.firstChild,n.firstChild.textContent.length))}},splitOffDOMTree:function(e,t,n){for(var r=t,i=null,o=!n;r!==e;){var a,s=r.parentNode,u=s.cloneNode(!1),c=o?r:s.firstChild;for(i&&(o?u.appendChild(i):a=i),i=u;c;){var l=c.nextSibling;c===r?(c.hasChildNodes()?c=c.cloneNode(!1):c.parentNode.removeChild(c),c.textContent&&i.appendChild(c),c=o?l:null):(c.parentNode.removeChild(c),(c.hasChildNodes()||c.textContent)&&i.appendChild(c),c=l)}a&&i.appendChild(a),r=s}return i},moveTextRangeIntoElement:function(e,t,n){if(!e||!t)return!1;var r=a.findCommonRoot(e,t);if(!r)return!1;if(t===e){var i=e.parentNode,o=e.nextSibling;return i.removeChild(e),n.appendChild(e),o?i.insertBefore(n,o):i.appendChild(n),n.hasChildNodes()}for(var s,u,c,l=[],f=0;f<r.childNodes.length;f++)if(c=r.childNodes[f],s){if(a.isDescendant(c,t,!0)){u=c;break}l.push(c)}else a.isDescendant(c,e,!0)&&(s=c);var d=u.nextSibling,h=r.ownerDocument.createDocumentFragment();return s===e?(s.parentNode.removeChild(s),h.appendChild(s)):h.appendChild(a.splitOffDOMTree(s,e)),l.forEach(function(e){e.parentNode.removeChild(e),h.appendChild(e)}),u===t?(u.parentNode.removeChild(u),h.appendChild(u)):h.appendChild(a.splitOffDOMTree(u,t,!0)),n.appendChild(h),u.parentNode===r?r.insertBefore(n,u):d?r.insertBefore(n,d):r.appendChild(n),n.hasChildNodes()},depthOfNode:function(e){for(var t=0,n=e;null!==n.parentNode;)n=n.parentNode,t++;return t},findCommonRoot:function(e,t){for(var n=a.depthOfNode(e),r=a.depthOfNode(t),i=e,o=t;n!==r;)n>r?(i=i.parentNode,n-=1):(o=o.parentNode,r-=1);for(;i!==o;)i=i.parentNode,o=o.parentNode;return i},isElementAtBeginningOfBlock:function(e){for(var t,n;!a.isBlockContainer(e)&&!a.isMediumEditorElement(e);){for(n=e;n=n.previousSibling;)if(t=3===n.nodeType?n.nodeValue:n.textContent,t.length>0)return!1;e=e.parentNode}return!0},isMediumEditorElement:function(e){return e&&e.getAttribute&&!!e.getAttribute("data-medium-editor-element")},getContainerEditorElement:function(e){return a.traverseUp(e,function(e){return a.isMediumEditorElement(e)})},isBlockContainer:function(e){return e&&3!==e.nodeType&&-1!==a.blockContainerElementNames.indexOf(e.nodeName.toLowerCase())},getClosestBlockContainer:function(e){return a.traverseUp(e,function(e){return a.isBlockContainer(e)||a.isMediumEditorElement(e)})},getTopBlockContainer:function(e){var t=!!a.isBlockContainer(e)&&e;return a.traverseUp(e,function(e){return a.isBlockContainer(e)&&(t=e),!(t||!a.isMediumEditorElement(e))&&(t=e,!0)}),t},getFirstSelectableLeafNode:function(e){for(;e&&e.firstChild;)e=e.firstChild;if(e=a.traverseUp(e,function(e){return-1===a.emptyElementNames.indexOf(e.nodeName.toLowerCase())}),"table"===e.nodeName.toLowerCase()){var t=e.querySelector("th, td");t&&(e=t)}return e},getFirstTextNode:function(e){return a.warn("getFirstTextNode is deprecated and will be removed in version 6.0.0"),a._getFirstTextNode(e)},_getFirstTextNode:function(e){if(3===e.nodeType)return e;for(var t=0;t<e.childNodes.length;t++){var n=a._getFirstTextNode(e.childNodes[t]);if(null!==n)return n}return null},ensureUrlHasProtocol:function(e){return-1===e.indexOf("://")?"http://"+e:e},warn:function(){void 0!==t.console&&"function"==typeof t.console.warn&&t.console.warn.apply(t.console,arguments)},deprecated:function(e,t,n){var r=e+" is deprecated, please use "+t+" instead.";n&&(r+=" Will be removed in "+n),a.warn(r)},deprecatedMethod:function(e,t,n,r){a.deprecated(e,t,r),"function"==typeof this[t]&&this[t].apply(this,n)},cleanupAttrs:function(e,t){t.forEach(function(t){e.removeAttribute(t)})},cleanupTags:function(e,t){-1!==t.indexOf(e.nodeName.toLowerCase())&&e.parentNode.removeChild(e)},unwrapTags:function(t,n){-1!==n.indexOf(t.nodeName.toLowerCase())&&e.util.unwrap(t,document)},getClosestTag:function(e,t){return a.traverseUp(e,function(e){return e.nodeName.toLowerCase()===t.toLowerCase()})},unwrap:function(e,t){for(var n=t.createDocumentFragment(),r=Array.prototype.slice.call(e.childNodes),i=0;i<r.length;i++)n.appendChild(r[i]);n.childNodes.length?e.parentNode.replaceChild(n,e):e.parentNode.removeChild(e)},guid:function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}};e.util=a}(window),function(){var t=function(t){e.util.extend(this,t)};t.extend=function(t){var n,r=this;n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return r.apply(this,arguments)},e.util.extend(n,r);var i=function(){this.constructor=n};return i.prototype=r.prototype,n.prototype=new i,t&&e.util.extend(n.prototype,t),n},t.prototype={init:function(){},base:void 0,name:void 0,checkState:void 0,destroy:void 0,queryCommandState:void 0,isActive:void 0,isAlreadyApplied:void 0,setActive:void 0,setInactive:void 0,getInteractionElements:void 0,window:void 0,document:void 0,getEditorElements:function(){return this.base.elements},getEditorId:function(){return this.base.id},getEditorOption:function(e){return this.base.options[e]}},["execAction","on","off","subscribe","trigger"].forEach(function(e){t.prototype[e]=function(){return this.base[e].apply(this.base,arguments)}}),e.Extension=t}(),function(){function t(t){return e.util.isBlockContainer(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}var n={findMatchingSelectionParent:function(t,n){var r,i,o=n.getSelection();return 0!==o.rangeCount&&(r=o.getRangeAt(0),i=r.commonAncestorContainer,e.util.traverseUp(i,t))},getSelectionElement:function(t){return this.findMatchingSelectionParent(function(t){return e.util.isMediumEditorElement(t)},t)},exportSelection:function(e,t){if(!e)return null;var n=null,r=t.getSelection();if(r.rangeCount>0){var i,o=r.getRangeAt(0),a=o.cloneRange();a.selectNodeContents(e),a.setEnd(o.startContainer,o.startOffset),i=a.toString().length,n={start:i,end:i+o.toString().length},this.doesRangeStartWithImages(o,t)&&(n.startsWithImage=!0);var s=this.getTrailingImageCount(e,n,o.endContainer,o.endOffset);if(s&&(n.trailingImageCount=s),0!==i){var u=this.getIndexRelativeToAdjacentEmptyBlocks(t,e,o.startContainer,o.startOffset);-1!==u&&(n.emptyBlocksIndex=u)}}return n},importSelection:function(e,t,n,r){if(e&&t){var i=n.createRange();i.setStart(t,0),i.collapse(!0);var o,a=t,s=[],u=0,c=!1,l=!1,f=0,d=!1,h=!1,p=null;for((r||e.startsWithImage||void 0!==e.emptyBlocksIndex)&&(h=!0);!d&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||l){if(e.trailingImageCount&&l&&("img"===a.nodeName.toLowerCase()&&f++,f===e.trailingImageCount)){for(var v=0;a.parentNode.childNodes[v]!==a;)v++;i.setEnd(a.parentNode,v+1),d=!0}if(!d&&1===a.nodeType)for(var m=a.childNodes.length-1;m>=0;)s.push(a.childNodes[m]),m-=1}else o=u+a.length,!c&&e.start>=u&&e.start<=o&&(h||e.start<o?(i.setStart(a,e.start-u),c=!0):p=a),c&&e.end>=u&&e.end<=o&&(e.trailingImageCount?l=!0:(i.setEnd(a,e.end-u),d=!0)),u=o;d||(a=s.pop())}!c&&p&&(i.setStart(p,p.length),i.setEnd(p,p.length)),void 0!==e.emptyBlocksIndex&&(i=this.importSelectionMoveCursorPastBlocks(n,t,e.emptyBlocksIndex,i)),r&&(i=this.importSelectionMoveCursorPastAnchor(e,i)),this.selectRange(n,i)}},importSelectionMoveCursorPastAnchor:function(t,n){var r=function(e){return"a"===e.nodeName.toLowerCase()};if(t.start===t.end&&3===n.startContainer.nodeType&&n.startOffset===n.startContainer.nodeValue.length&&e.util.traverseUp(n.startContainer,r)){for(var i=n.startContainer,o=n.startContainer.parentNode;null!==o&&"a"!==o.nodeName.toLowerCase();)o.childNodes[o.childNodes.length-1]!==i?o=null:(i=o,o=o.parentNode);if(null!==o&&"a"===o.nodeName.toLowerCase()){for(var a=null,s=0;null===a&&s<o.parentNode.childNodes.length;s++)o.parentNode.childNodes[s]===o&&(a=s);n.setStart(o.parentNode,a+1),n.collapse(!0)}}return n},importSelectionMoveCursorPastBlocks:function(n,r,i,o){var a,s,u=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,t,!1),c=o.startContainer,l=0;for(i=i||1,a=3===c.nodeType&&e.util.isBlockContainer(c.previousSibling)?c.previousSibling:e.util.getClosestBlockContainer(c);u.nextNode();)if(s){if(s=u.currentNode,++l===i)break;if(s.textContent.length>0)break}else a===u.currentNode&&(s=u.currentNode);return s||(s=a),o.setStart(e.util.getFirstSelectableLeafNode(s),0),o},getIndexRelativeToAdjacentEmptyBlocks:function(n,r,i,o){if(i.textContent.length>0&&o>0)return-1;var a=i;if(3!==a.nodeType&&(a=i.childNodes[o]),a){if(!e.util.isElementAtBeginningOfBlock(a))return-1;var s=e.util.findPreviousSibling(a);if(!s)return-1;if(s.nodeValue)return-1}for(var u=e.util.getClosestBlockContainer(i),c=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,t,!1),l=0;c.nextNode();){var f=""===c.currentNode.textContent;if((f||l>0)&&(l+=1),c.currentNode===u)return l;f||(l=0)}return l},doesRangeStartWithImages:function(e,t){if(0!==e.startOffset||1!==e.startContainer.nodeType)return!1;if("img"===e.startContainer.nodeName.toLowerCase())return!0;var n=e.startContainer.querySelector("img");if(!n)return!1;for(var r=t.createTreeWalker(e.startContainer,NodeFilter.SHOW_ALL,null,!1);r.nextNode();){var i=r.currentNode;if(i===n)break;if(i.nodeValue)return!1}return!0},getTrailingImageCount:function(e,t,n,r){if(0===r||1!==n.nodeType)return 0;if("img"!==n.nodeName.toLowerCase()&&!n.querySelector("img"))return 0;for(var i=n.childNodes[r-1];i.hasChildNodes();)i=i.lastChild;for(var o,a=e,s=[],u=0,c=!1,l=!1,f=!1,d=0;!f&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||l){if("img"===a.nodeName.toLowerCase()&&d++,a===i)f=!0;else if(1===a.nodeType)for(var h=a.childNodes.length-1;h>=0;)s.push(a.childNodes[h]),h-=1}else d=0,o=u+a.length,!c&&t.start>=u&&t.start<=o&&(c=!0),c&&t.end>=u&&t.end<=o&&(l=!0),u=o;f||(a=s.pop())}return d},selectionContainsContent:function(e){var t=e.getSelection();if(!t||t.isCollapsed||!t.rangeCount)return!1;if(""!==t.toString().trim())return!0;var n=this.getSelectedParentElement(t.getRangeAt(0));return!(!n||!("img"===n.nodeName.toLowerCase()||1===n.nodeType&&n.querySelector("img")))},selectionInContentEditableFalse:function(e){var t,n=this.findMatchingSelectionParent(function(e){var n=e&&e.getAttribute("contenteditable");return"true"===n&&(t=!0),"#text"!==e.nodeName&&"false"===n},e);return!t&&n},getSelectionHtml:function(e){var t,n,r,i="",o=e.getSelection();if(o.rangeCount){for(r=e.createElement("div"),t=0,n=o.rangeCount;t<n;t+=1)r.appendChild(o.getRangeAt(t).cloneContents());i=r.innerHTML}return i},getCaretOffsets:function(e,t){var n,r;return t||(t=window.getSelection().getRangeAt(0)),n=t.cloneRange(),r=t.cloneRange(),n.selectNodeContents(e),n.setEnd(t.endContainer,t.endOffset),r.selectNodeContents(e),r.setStart(t.endContainer,t.endOffset),{left:n.toString().length,right:r.toString().length}},rangeSelectsSingleNode:function(e){var t=e.startContainer;return t===e.endContainer&&t.hasChildNodes()&&e.endOffset===e.startOffset+1},getSelectedParentElement:function(e){return e?this.rangeSelectsSingleNode(e)&&3!==e.startContainer.childNodes[e.startOffset].nodeType?e.startContainer.childNodes[e.startOffset]:3===e.startContainer.nodeType?e.startContainer.parentNode:e.startContainer:null},getSelectedElements:function(e){var t,n,r,i=e.getSelection();if(!i.rangeCount||i.isCollapsed||!i.getRangeAt(0).commonAncestorContainer)return[];if(t=i.getRangeAt(0),3===t.commonAncestorContainer.nodeType){for(n=[],r=t.commonAncestorContainer;r.parentNode&&1===r.parentNode.childNodes.length;)n.push(r.parentNode),r=r.parentNode;return n}return[].filter.call(t.commonAncestorContainer.getElementsByTagName("*"),function(e){return"function"!=typeof i.containsNode||i.containsNode(e,!0)})},selectNode:function(e,t){var n=t.createRange();n.selectNodeContents(e),this.selectRange(t,n)},select:function(e,t,n,r,i){var o=e.createRange();return o.setStart(t,n),r?o.setEnd(r,i):o.collapse(!0),this.selectRange(e,o),o},clearSelection:function(e,t){t?e.getSelection().collapseToStart():e.getSelection().collapseToEnd()},moveCursor:function(e,t,n){this.select(e,t,n)},getSelectionRange:function(e){var t=e.getSelection();return 0===t.rangeCount?null:t.getRangeAt(0)},selectRange:function(e,t){var n=e.getSelection();n.removeAllRanges(),n.addRange(t)},getSelectionStart:function(e){var t=e.getSelection().anchorNode;return t&&3===t.nodeType?t.parentNode:t}};e.selection=n}(),function(){function t(t,n){return t.some(function(t){if("function"!=typeof t.getInteractionElements)return!1;var r=t.getInteractionElements();return!!r&&(Array.isArray(r)||(r=[r]),r.some(function(t){return e.util.isDescendant(t,n,!0)}))})}var n=function(e){this.base=e,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};n.prototype={InputEventOnContenteditableSupported:!e.util.isIE&&!e.util.isEdge,attachDOMEvent:function(t,n,r,i){var o=this.base.options.contentWindow,a=this.base.options.ownerDocument;t=e.util.isElement(t)||[o,a].indexOf(t)>-1?[t]:t,Array.prototype.forEach.call(t,function(e){e.addEventListener(n,r,i),this.events.push([e,n,r,i])}.bind(this))},detachDOMEvent:function(t,n,r,i){var o,a,s=this.base.options.contentWindow,u=this.base.options.ownerDocument;null!==t&&(t=e.util.isElement(t)||[s,u].indexOf(t)>-1?[t]:t,Array.prototype.forEach.call(t,function(e){-1!==(o=this.indexOfListener(e,n,r,i))&&(a=this.events.splice(o,1)[0],a[0].removeEventListener(a[1],a[2],a[3]))}.bind(this)))},indexOfListener:function(e,t,n,r){var i,o,a;for(i=0,o=this.events.length;i<o;i+=1)if(a=this.events[i],a[0]===e&&a[1]===t&&a[2]===n&&a[3]===r)return i;return-1},detachAllDOMEvents:function(){for(var e=this.events.pop();e;)e[0].removeEventListener(e[1],e[2],e[3]),e=this.events.pop()},detachAllEventsFromElement:function(e){for(var t=this.events.filter(function(t){return t&&t[0].getAttribute&&t[0].getAttribute("medium-editor-index")===e.getAttribute("medium-editor-index")}),n=0,r=t.length;n<r;n++){var i=t[n];this.detachDOMEvent(i[0],i[1],i[2],i[3])}},attachAllEventsToElement:function(e){this.listeners.editableInput&&(this.contentCache[e.getAttribute("medium-editor-index")]=e.innerHTML),this.eventsCache&&this.eventsCache.forEach(function(t){this.attachDOMEvent(e,t.name,t.handler.bind(this))},this)},enableCustomEvent:function(e){void 0!==this.disabledEvents[e]&&delete this.disabledEvents[e]},disableCustomEvent:function(e){this.disabledEvents[e]=!0},attachCustomEvent:function(e,t){this.setupListener(e),this.customEvents[e]||(this.customEvents[e]=[]),this.customEvents[e].push(t)},detachCustomEvent:function(e,t){var n=this.indexOfCustomListener(e,t);-1!==n&&this.customEvents[e].splice(n,1)},indexOfCustomListener:function(e,t){return this.customEvents[e]&&this.customEvents[e].length?this.customEvents[e].indexOf(t):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(e,t,n){this.customEvents[e]&&!this.disabledEvents[e]&&this.customEvents[e].forEach(function(e){e(t,n)})},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach(function(e){e.removeAttribute("data-medium-focused")})},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(e){this.handleDocumentExecCommand(e)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var e=this.options.ownerDocument;if(this.execCommandListener&&e.execCommand.listeners){var t=e.execCommand.listeners.indexOf(this.execCommandListener);-1!==t&&e.execCommand.listeners.splice(t,1),e.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var e=this.options.ownerDocument;if(!e.execCommand.listeners){var t=function(t,n){e.execCommand.listeners&&e.execCommand.listeners.forEach(function(e){e({command:t[0],value:t[2],args:t,result:n})})},n=function(){var n=e.execCommand.orig.apply(this,arguments);if(!e.execCommand.listeners)return n;var r=Array.prototype.slice.call(arguments);return t(r,n),n};n.orig=e.execCommand,n.listeners=[],n.callListeners=t,e.execCommand=n}},unwrapExecCommand:function(){var e=this.options.ownerDocument;e.execCommand.orig&&(e.execCommand=e.execCommand.orig)},setupListener:function(e){if(!this.listeners[e]){switch(e){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache={},this.base.elements.forEach(function(e){this.contentCache[e.getAttribute("medium-editor-index")]=e.innerHTML},this),this.InputEventOnContenteditableSupported&&this.attachToEachElement("input",this.handleInput),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":case"editableKeydownEnter":case"editableKeydownTab":case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[e]=!0}},attachToEachElement:function(e,t){this.eventsCache||(this.eventsCache=[]),this.base.elements.forEach(function(n){this.attachDOMEvent(n,e,t.bind(this))},this),this.eventsCache.push({name:e,handler:t})},cleanupElement:function(e){var t=e.getAttribute("medium-editor-index");t&&(this.detachAllEventsFromElement(e),this.contentCache&&delete this.contentCache[t])},focusElement:function(e){e.focus(),this.updateFocus(e,{target:e,type:"focus"})},updateFocus:function(n,r){var i,o=this.base.getFocusedElement();o&&"click"===r.type&&this.lastMousedownTarget&&(e.util.isDescendant(o,this.lastMousedownTarget,!0)||t(this.base.extensions,this.lastMousedownTarget))&&(i=o),i||this.base.elements.some(function(t){return!i&&e.util.isDescendant(t,n,!0)&&(i=t),!!i},this);var a=!e.util.isDescendant(o,n,!0)&&!t(this.base.extensions,n);i!==o&&(o&&a&&(o.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",r,o)),i&&(i.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",r,i))),a&&this.triggerCustomEvent("externalInteraction",r)},updateInput:function(e,t){if(this.contentCache){var n=e.getAttribute("medium-editor-index"),r=e.innerHTML;r!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",t,e),this.contentCache[n]=r}},handleDocumentSelectionChange:function(t){if(t.currentTarget&&t.currentTarget.activeElement){var n,r=t.currentTarget.activeElement;this.base.elements.some(function(t){return!!e.util.isDescendant(t,r,!0)&&(n=t,!0)},this),n&&this.updateInput(n,{target:r,currentTarget:n})}},handleDocumentExecCommand:function(){var e=this.base.getFocusedElement();e&&this.updateInput(e,{target:e,currentTarget:e})},handleBodyClick:function(e){this.updateFocus(e.target,e)},handleBodyFocus:function(e){this.updateFocus(e.target,e)},handleBodyMousedown:function(e){this.lastMousedownTarget=e.target},handleInput:function(e){this.updateInput(e.currentTarget,e)},handleClick:function(e){this.triggerCustomEvent("editableClick",e,e.currentTarget)},handleBlur:function(e){this.triggerCustomEvent("editableBlur",e,e.currentTarget)},handleKeypress:function(e){if(this.triggerCustomEvent("editableKeypress",e,e.currentTarget),this.keypressUpdateInput){var t={target:e.target,currentTarget:e.currentTarget};setTimeout(function(){this.updateInput(t.currentTarget,t)}.bind(this),0)}},handleKeyup:function(e){this.triggerCustomEvent("editableKeyup",e,e.currentTarget)},handleMouseover:function(e){this.triggerCustomEvent("editableMouseover",e,e.currentTarget)},handleDragging:function(e){this.triggerCustomEvent("editableDrag",e,e.currentTarget)},handleDrop:function(e){this.triggerCustomEvent("editableDrop",e,e.currentTarget)},handlePaste:function(e){this.triggerCustomEvent("editablePaste",e,e.currentTarget)},handleKeydown:function(t){return this.triggerCustomEvent("editableKeydown",t,t.currentTarget),e.util.isKey(t,e.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",t,t.currentTarget):e.util.isKey(t,e.util.keyCode.ENTER)||t.ctrlKey&&e.util.isKey(t,e.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",t,t.currentTarget):e.util.isKey(t,e.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",t,t.currentTarget):e.util.isKey(t,[e.util.keyCode.DELETE,e.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",t,t.currentTarget):void 0}},e.Events=n}(),function(){var t=e.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(n){t.isBuiltInButton(n)?e.Extension.call(this,this.defaults[n]):e.Extension.call(this,n)},init:function(){e.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var e=this.document.createElement("button"),t=this.contentDefault,n=this.getAria(),r=this.getEditorOption("buttonLabels");return e.classList.add("medium-editor-action"),e.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach(function(t){e.classList.add(t)}),e.setAttribute("data-action",this.getAction()),n&&(e.setAttribute("title",n),e.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach(function(t){e.setAttribute(t,this.attrs[t])},this),"fontawesome"===r&&this.contentFA&&(t=this.contentFA),e.innerHTML=t,e},handleClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.getAction();t&&this.execAction(t)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")),delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var e=null;return this.useQueryState&&(e=this.base.queryCommandState(this.getAction())),e},isAlreadyApplied:function(e){var t,n,r=!1,i=this.getTagNames();return!1===this.knownState||!0===this.knownState?this.knownState:(i&&i.length>0&&(r=-1!==i.indexOf(e.nodeName.toLowerCase())),!r&&this.style&&(t=this.style.value.split("|"),n=this.window.getComputedStyle(e,null).getPropertyValue(this.style.prop),t.forEach(function(e){this.knownState||((r=-1!==n.indexOf(e))||"text-decoration"!==this.style.prop)&&(this.knownState=r)},this)),r)}});t.isBuiltInButton=function(t){return"string"==typeof t&&e.extensions.button.prototype.defaults.hasOwnProperty(t)},e.extensions.button=t}(),function(){e.extensions.button.prototype.defaults={bold:{name:"bold",action:"bold",aria:"bold",tagNames:["b","strong"],style:{prop:"font-weight",value:"700|bold"},useQueryState:!0,contentDefault:"<b>B</b>",contentFA:'<i class="fa fa-bold"></i>'},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"<b><i>I</i></b>",contentFA:'<i class="fa fa-italic"></i>'},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"<b><u>U</u></b>",contentFA:'<i class="fa fa-underline"></i>'},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"<s>A</s>",contentFA:'<i class="fa fa-strikethrough"></i>'},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"<b>x<sup>1</sup></b>",contentFA:'<i class="fa fa-superscript"></i>'},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"<b>x<sub>1</sub></b>",contentFA:'<i class="fa fa-subscript"></i>'},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"<b>image</b>",contentFA:'<i class="fa fa-picture-o"></i>'},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"<b>html</b>",contentFA:'<i class="fa fa-code"></i>'},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"<b>1.</b>",contentFA:'<i class="fa fa-list-ol"></i>'},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"<b>•</b>",contentFA:'<i class="fa fa-list-ul"></i>'},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"<b>→</b>",contentFA:'<i class="fa fa-indent"></i>'},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"<b>←</b>",contentFA:'<i class="fa fa-outdent"></i>'},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"<b>C</b>",contentFA:'<i class="fa fa-align-center"></i>'},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"<b>J</b>",contentFA:'<i class="fa fa-align-justify"></i>'},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"<b>L</b>",contentFA:'<i class="fa fa-align-left"></i>'},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"<b>R</b>",contentFA:'<i class="fa fa-align-right"></i>'},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"<b>X</b>",contentFA:'<i class="fa fa-eraser"></i>'},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"<b>“</b>",contentFA:'<i class="fa fa-quote-right"></i>'},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"<b>0101</b>",contentFA:'<i class="fa fa-code fa-lg"></i>'},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"<b>H1</b>",contentFA:'<i class="fa fa-header"><sup>1</sup>'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"<b>H2</b>",contentFA:'<i class="fa fa-header"><sup>2</sup>'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"<b>H3</b>",contentFA:'<i class="fa fa-header"><sup>3</sup>'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"<b>H4</b>",contentFA:'<i class="fa fa-header"><sup>4</sup>'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"<b>H5</b>",contentFA:'<i class="fa fa-header"><sup>5</sup>'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"<b>H6</b>",contentFA:'<i class="fa fa-header"><sup>6</sup>'}}}(),function(){var t=e.extensions.button.extend({init:function(){e.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"✓",formCloseLabel:"×",activeClass:"medium-editor-toolbar-form-active",hasForm:!0,getForm:function(){},isDisplayed:function(){return!!this.hasForm&&this.getForm().classList.contains(this.activeClass)},showForm:function(){this.hasForm&&this.getForm().classList.add(this.activeClass)},hideForm:function(){this.hasForm&&this.getForm().classList.remove(this.activeClass)},showToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.hideToolbarDefaultActions()},setToolbarPosition:function(){var e=this.base.getExtensionByName("toolbar");e&&e.setToolbarPosition()}});e.extensions.form=t}(),function(){var t=e.extensions.form.extend({customClassOption:null,customClassOptionText:"Button",linkValidation:!1,placeholderText:"Paste or type a link",targetCheckbox:!1,targetCheckboxText:"Open in new window",name:"anchor",action:"createLink",aria:"link",tagNames:["a"],contentDefault:"<b>#</b>",contentFA:'<i class="fa fa-link"></i>',init:function(){e.extensions.form.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this))},handleClick:function(t){t.preventDefault(),t.stopPropagation();var n=e.selection.getSelectionRange(this.document);return"a"===n.startContainer.nodeName.toLowerCase()||"a"===n.endContainer.nodeName.toLowerCase()||e.util.getClosestTag(e.selection.getSelectedParentElement(n),"a")?this.execAction("unlink"):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(t){e.util.isKey(t,e.util.keyCode.K)&&e.util.isMetaCtrlKey(t)&&!t.shiftKey&&this.handleClick(t)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var e=['<input type="text" class="medium-editor-toolbar-input" placeholder="',this.placeholderText,'">'];return e.push('<a href="#" class="medium-editor-toolbar-save">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':this.formSaveLabel,"</a>"),e.push('<a href="#" class="medium-editor-toolbar-close">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':this.formCloseLabel,"</a>"),this.targetCheckbox&&e.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-target" id="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">','<label for="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">',this.targetCheckboxText,"</label>","</div>"),this.customClassOption&&e.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-button">',"<label>",this.customClassOptionText,"</label>","</div>"),e.join("")},isDisplayed:function(){return e.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){e.extensions.form.prototype.hideForm.apply(this),this.getInput().value=""},showForm:function(t){var n=this.getInput(),r=this.getAnchorTargetCheckbox(),i=this.getAnchorButtonCheckbox();if(t=t||{value:""},"string"==typeof t&&(t={value:t}),this.base.saveSelection(),this.hideToolbarDefaultActions(),e.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),n.value=t.value,n.focus(),r&&(r.checked="_blank"===t.target),i){var o=t.buttonClass?t.buttonClass.split(" "):[];i.checked=-1!==o.indexOf(this.customClassOption)}},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},getFormOpts:function(){var e=this.getAnchorTargetCheckbox(),t=this.getAnchorButtonCheckbox(),n={value:this.getInput().value.trim()};return this.linkValidation&&(n.value=this.checkLinkFormat(n.value)),n.target="_self",e&&e.checked&&(n.target="_blank"),t&&t.checked&&(n.buttonClass=this.customClassOption),n},doFormSave:function(){var e=this.getFormOpts();this.completeFormSave(e)},completeFormSave:function(e){this.base.restoreSelection(),this.execAction(this.action,e),this.base.checkSelection()},ensureEncodedUri:function(e){return e===decodeURI(e)?encodeURI(e):e},ensureEncodedUriComponent:function(e){return e===decodeURIComponent(e)?encodeURIComponent(e):e},ensureEncodedParam:function(e){var t=e.split("="),n=t[0],r=t[1];return n+(void 0===r?"":"="+this.ensureEncodedUriComponent(r))},ensureEncodedQuery:function(e){return e.split("&").map(this.ensureEncodedParam.bind(this)).join("&")},checkLinkFormat:function(e){var t=/^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i,n=t.test(e),r="",i=/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/,o=e.match(/^(.*?)(?:\?(.*?))?(?:#(.*))?$/),a=o[1],s=o[2],u=o[3];if(i.test(e))return"tel:"+e;if(!n){var c=a.split("/")[0];(c.match(/.+(\.|:).+/)||"localhost"===c)&&(r="http://")}return r+this.ensureEncodedUri(a)+(void 0===s?"":"?"+this.ensureEncodedQuery(s))+(void 0===u?"":"#"+u)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(e){var t=e.querySelector(".medium-editor-toolbar-close"),n=e.querySelector(".medium-editor-toolbar-save"),r=e.querySelector(".medium-editor-toolbar-input");this.on(e,"click",this.handleFormClick.bind(this)),this.on(r,"keyup",this.handleTextboxKeyup.bind(this)),this.on(t,"click",this.handleCloseClick.bind(this)),this.on(n,"click",this.handleSaveClick.bind(this),!0)},createForm:function(){var e=this.document,t=e.createElement("div");return t.className="medium-editor-toolbar-form",t.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),t.innerHTML=this.getTemplate(),this.attachFormEvents(t),t},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},getAnchorTargetCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-target")},getAnchorButtonCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-button")},handleTextboxKeyup:function(t){if(t.keyCode===e.util.keyCode.ENTER)return t.preventDefault(),void this.doFormSave();t.keyCode===e.util.keyCode.ESCAPE&&(t.preventDefault(),this.doFormCancel())},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.anchor=t}(),function(){var t=e.Extension.extend({name:"anchor-preview",hideDelay:500,previewValueSelector:"a",showWhenToolbarIsVisible:!1,showOnEmptyLinks:!0,init:function(){this.anchorPreview=this.createPreview(),this.getEditorOption("elementsContainer").appendChild(this.anchorPreview),this.attachToEditables()},getInteractionElements:function(){return this.getPreviewElement()},getPreviewElement:function(){return this.anchorPreview},createPreview:function(){var e=this.document.createElement("div");return e.id="medium-editor-anchor-preview-"+this.getEditorId(),e.className="medium-editor-anchor-preview",e.innerHTML=this.getTemplate(),this.on(e,"click",this.handleClick.bind(this)),e},getTemplate:function(){return'<div class="medium-editor-toolbar-anchor-preview" id="medium-editor-toolbar-anchor-preview"> <a class="medium-editor-toolbar-anchor-preview-inner"></a></div>'},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(e){return!(!this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")&&!e.getAttribute("data-disable-preview"))||(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=e.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=e.attributes.href.value),this.anchorPreview.classList.add("medium-toolbar-arrow-over"),this.anchorPreview.classList.remove("medium-toolbar-arrow-under"),this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")||this.anchorPreview.classList.add("medium-editor-anchor-preview-active"),this.activeAnchor=e,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(e){e=e||this.activeAnchor;var t,n,r,i,o,a=this.window.innerWidth,s=this.anchorPreview.offsetHeight,u=e.getBoundingClientRect(),c=this.diffLeft,l=this.diffTop,f=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,h={};t=this.anchorPreview.offsetWidth/2;var p=this.base.getExtensionByName("toolbar");p&&(c=p.diffLeft,l=p.diffTop),n=c-t,d?(i=f.getBoundingClientRect(),["top","left"].forEach(function(e){h[e]=u[e]-i[e]}),h.width=u.width,h.height=u.height,u=h,a=i.width,o=f.scrollTop):o=this.window.pageYOffset,r=u.left+u.width/2,o+=s+u.top+u.height-l-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(o)+"px",this.anchorPreview.style.right="initial",r<t?(this.anchorPreview.style.left=n+t+"px",this.anchorPreview.style.right="initial"):a-r<t?(this.anchorPreview.style.left="auto",this.anchorPreview.style.right=0):(this.anchorPreview.style.left=n+r+"px",this.anchorPreview.style.right="initial")},attachToEditables:function(){this.subscribe("editableMouseover",this.handleEditableMouseover.bind(this)),this.subscribe("positionedToolbar",this.handlePositionedToolbar.bind(this))},handlePositionedToolbar:function(){this.showWhenToolbarIsVisible||this.hidePreview()},handleClick:function(e){var t=this.base.getExtensionByName("anchor"),n=this.activeAnchor;t&&n&&(e.preventDefault(),this.base.selectElement(this.activeAnchor),this.base.delay(function(){if(n){var e={value:n.attributes.href.value,target:n.getAttribute("target"),buttonClass:n.getAttribute("class")};t.showForm(e),n=null}}.bind(this))),this.hidePreview()},handleAnchorMouseout:function(){this.anchorToPreview=null,this.off(this.activeAnchor,"mouseout",this.instanceHandleAnchorMouseout),this.instanceHandleAnchorMouseout=null},handleEditableMouseover:function(t){var n=e.util.getClosestTag(t.target,"a");if(!1!==n){if(!this.showOnEmptyLinks&&(!/href=["']\S+["']/.test(n.outerHTML)||/href=["']#\S+["']/.test(n.outerHTML)))return!0;var r=this.base.getExtensionByName("toolbar");if(!this.showWhenToolbarIsVisible&&r&&r.isDisplayed&&r.isDisplayed())return!0;this.activeAnchor&&this.activeAnchor!==n&&this.detachPreviewHandlers(),this.anchorToPreview=n,this.instanceHandleAnchorMouseout=this.handleAnchorMouseout.bind(this),this.on(this.anchorToPreview,"mouseout",this.instanceHandleAnchorMouseout),this.base.delay(function(){this.anchorToPreview&&this.showPreview(this.anchorToPreview)}.bind(this))}},handlePreviewMouseover:function(){this.lastOver=(new Date).getTime(),this.hovering=!0},handlePreviewMouseout:function(e){e.relatedTarget&&/anchor-preview/.test(e.relatedTarget.className)||(this.hovering=!1)},updatePreview:function(){if(this.hovering)return!0;(new Date).getTime()-this.lastOver>this.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}});e.extensions.anchorPreview=t}(),function(){function t(t){return!e.util.getClosestTag(t,"a")}var n,r,i,o,a;n=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],r="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw",i="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+r+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+r+"))",o=new RegExp("^("+r+")$","i"),a=new RegExp(i,"gi");var s=e.Extension.extend({init:function(){e.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe("editableKeypress",this.onKeypress.bind(this)),this.subscribe("editableBlur",this.onBlur.bind(this)),this.document.execCommand("AutoUrlDetect",!1,!1)},isLastInstance:function(){for(var e=0,t=0;t<this.window._mediumEditors.length;t++){var n=this.window._mediumEditors[t];null!==n&&void 0!==n.getExtensionByName("autoLink")&&e++}return 1===e},destroy:function(){this.document.queryCommandSupported("AutoUrlDetect")&&this.isLastInstance()&&this.document.execCommand("AutoUrlDetect",!1,!0)},onBlur:function(e,t){this.performLinking(t)},onKeypress:function(t){this.disableEventHandling||e.util.isKey(t,[e.util.keyCode.SPACE,e.util.keyCode.ENTER])&&(clearTimeout(this.performLinkingTimeout),this.performLinkingTimeout=setTimeout(function(){try{var e=this.base.exportSelection();this.performLinking(t.target)&&this.base.importSelection(e,!0)}catch(e){window.console&&window.console.error("Failed to perform linking",e),this.disableEventHandling=!0}}.bind(this),0))},performLinking:function(t){var n=e.util.splitByBlockElements(t),r=!1;0===n.length&&(n=[t]);for(var i=0;i<n.length;i++)r=this.removeObsoleteAutoLinkSpans(n[i])||r,r=this.performLinkingWithinElement(n[i])||r;return this.base.events.updateInput(t,{target:t,currentTarget:t}),r},removeObsoleteAutoLinkSpans:function(n){if(!n||3===n.nodeType)return!1;for(var r=n.querySelectorAll('span[data-auto-link="true"]'),i=!1,o=0;o<r.length;o++){var a=r[o].textContent;if(-1===a.indexOf("://")&&(a=e.util.ensureUrlHasProtocol(a)),r[o].getAttribute("data-href")!==a&&t(r[o])){i=!0;var s=a.replace(/\s+$/,"");if(r[o].getAttribute("data-href")===s){var u=a.length-s.length,c=e.util.splitOffDOMTree(r[o],this.splitTextBeforeEnd(r[o],u));r[o].parentNode.insertBefore(c,r[o].nextSibling)}else e.util.unwrap(r[o],this.document)}}return i},splitTextBeforeEnd:function(e,t){for(var n=this.document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),r=!0;r;)r=null!==n.lastChild();for(var i,o,a;t>0&&null!==a;)i=n.currentNode,o=i.nodeValue,o.length>t?(a=i.splitText(o.length-t),t=0):(a=n.previousNode(),t-=o.length);return a},performLinkingWithinElement:function(t){for(var n=this.findLinkableText(t),r=0;r<n.length;r++){var i=e.util.findOrCreateMatchingTextNodes(this.document,t,n[r]);this.shouldNotLink(i)||this.createAutoLink(i,n[r].href)}return!1},shouldNotLink:function(t){for(var n=!1,r=0;r<t.length&&!1===n;r++)n=!!e.util.traverseUp(t[r],function(e){return"a"===e.nodeName.toLowerCase()||e.getAttribute&&"true"===e.getAttribute("data-auto-link")});return n},findLinkableText:function(e){for(var t=e.textContent,r=null,i=[];null!==(r=a.exec(t));){var s=!0,u=r.index+r[0].length;s=!(0!==r.index&&-1===n.indexOf(t[r.index-1])||u!==t.length&&-1===n.indexOf(t[u])),s=s&&(-1!==r[0].indexOf("/")||o.test(r[0].split(".").pop().split("?").shift())),s&&i.push({href:r[0],start:r.index,end:u})}return i},createAutoLink:function(t,n){n=e.util.ensureUrlHasProtocol(n);var r=e.util.createLink(this.document,t,n,this.getEditorOption("targetBlank")?"_blank":null),i=this.document.createElement("span");for(i.setAttribute("data-auto-link","true"),i.setAttribute("data-href",n),r.insertBefore(i,r.firstChild);r.childNodes.length>1;)i.appendChild(r.childNodes[1])}});e.extensions.autoLink=s}(),function(){function t(t){var r=e.util.getContainerEditorElement(t);Array.prototype.slice.call(r.parentElement.querySelectorAll("."+n)).forEach(function(e){e.classList.remove(n)})}var n="medium-editor-dragover",r=e.Extension.extend({name:"fileDragging",allowedTypes:["image"],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy";var r=e.target.classList?e.target:e.target.parentElement;t(r),"dragover"===e.type&&r.classList.add(n)},handleDrop:function(e){e.preventDefault(),e.stopPropagation(),this.base.selectElement(e.target);var n=this.base.exportSelection();n.start=n.end,this.base.importSelection(n),e.dataTransfer.files&&Array.prototype.slice.call(e.dataTransfer.files).forEach(function(e){this.isAllowedFile(e)&&e.type.match("image")&&this.insertImageFile(e)},this),t(e.target)},isAllowedFile:function(e){return this.allowedTypes.some(function(t){return!!e.type.match(t)})},insertImageFile:function(t){if("function"==typeof FileReader){var n=new FileReader;n.readAsDataURL(t),n.addEventListener("load",function(t){var n=this.document.createElement("img");n.src=t.target.result,e.util.insertHTMLCommand(this.document,n.outerHTML)}.bind(this))}}});e.extensions.fileDragging=r}(),function(){var t=e.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.keys={},this.commands.forEach(function(e){var t=e.key.charCodeAt(0);this.keys[t]||(this.keys[t]=[]),this.keys[t].push(e)},this)},handleKeydown:function(t){var n=e.util.getKeyCode(t);if(this.keys[n]){var r=e.util.isMetaCtrlKey(t),i=!!t.shiftKey,o=!!t.altKey;this.keys[n].forEach(function(e){e.meta!==r||e.shift!==i||e.alt!==o&&void 0!==e.alt||(t.preventDefault(),t.stopPropagation(),"function"==typeof e.command?e.command.apply(this):!1!==e.command&&this.execAction(e.command))},this)}}});e.extensions.keyboardCommands=t}(),function(){var t=e.extensions.form.extend({name:"fontname",action:"fontName",aria:"change font name",contentDefault:"±",contentFA:'<i class="fa fa-font"></i>',fonts:["","Arial","Verdana","Times New Roman"],init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontName")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getSelect().value=""},showForm:function(e){var t=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontName(),this.base.checkSelection()},createForm:function(){var e,t=this.document,n=t.createElement("div"),r=t.createElement("select"),i=t.createElement("a"),o=t.createElement("a");n.className="medium-editor-toolbar-form",n.id="medium-editor-toolbar-form-fontname-"+this.getEditorId(),this.on(n,"click",this.handleFormClick.bind(this));for(var a=0;a<this.fonts.length;a++)e=t.createElement("option"),e.innerHTML=this.fonts[a],e.value=this.fonts[a],r.appendChild(e);return r.className="medium-editor-toolbar-select",n.appendChild(r),this.on(r,"change",this.handleFontChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"✓",n.appendChild(o),this.on(o,"click",this.handleSaveClick.bind(this),!0),i.setAttribute("href","#"),i.className="medium-editor-toobar-close",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"×",n.appendChild(i),this.on(i,"click",this.handleCloseClick.bind(this)),n},getSelect:function(){return this.getForm().querySelector("select.medium-editor-toolbar-select")},clearFontName:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("face")&&e.removeAttribute("face")})},handleFontChange:function(){var e=this.getSelect().value;""===e?this.clearFontName():this.execAction("fontName",{value:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.fontName=t}(),function(){var t=e.extensions.form.extend({name:"fontsize",action:"fontSize",aria:"increase/decrease font size",contentDefault:"±",contentFA:'<i class="fa fa-text-height"></i>',init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontSize")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getInput().value=""},showForm:function(e){var t=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontSize(),this.base.checkSelection()},createForm:function(){var e=this.document,t=e.createElement("div"),n=e.createElement("input"),r=e.createElement("a"),i=e.createElement("a");return t.className="medium-editor-toolbar-form",t.id="medium-editor-toolbar-form-fontsize-"+this.getEditorId(),this.on(t,"click",this.handleFormClick.bind(this)),n.setAttribute("type","range"),n.setAttribute("min","1"),n.setAttribute("max","7"),n.className="medium-editor-toolbar-input",t.appendChild(n),this.on(n,"change",this.handleSliderChange.bind(this)),i.setAttribute("href","#"),i.className="medium-editor-toobar-save",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"✓",t.appendChild(i),this.on(i,"click",this.handleSaveClick.bind(this),!0),r.setAttribute("href","#"),r.className="medium-editor-toobar-close",r.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"×",t.appendChild(r),this.on(r,"click",this.handleCloseClick.bind(this)),t},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},clearFontSize:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("size")&&e.removeAttribute("size")})},handleSliderChange:function(){var e=this.getInput().value;"4"===e?this.clearFontSize():this.execAction("fontSize",{value:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.fontSize=t}(),function(){function t(){return[[new RegExp(/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/<!--StartFragment-->|<!--EndFragment-->/g),""],[new RegExp(/<br>$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(<br[^>]*>)?$/gi),""],[new RegExp(/<span class="Apple-converted-space">\s+<\/span>/g)," "],[new RegExp(/<br class="Apple-interchange-newline">/g),"<br>"],[new RegExp(/<span[^>]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),'<span class="replace-with italic bold">'],[new RegExp(/<span[^>]*font-style:italic[^>]*>/gi),'<span class="replace-with italic">'],[new RegExp(/<span[^>]*font-weight:(bold|700)[^>]*>/gi),'<span class="replace-with bold">'],[new RegExp(/<(\/?)(i|b|a)>/gi),"<$1$2>"],[new RegExp(/<a(?:(?!href).)+href=(?:"|”|“|"|“|”)(((?!"|”|“|"|“|”).)*)(?:"|”|“|"|“|”)(?:(?!>).)*>/gi),'<a href="$1">'],[new RegExp(/<\/p>\n+/gi),"</p>"],[new RegExp(/\n+<p/gi),"<p"],[new RegExp(/<\/?o:[a-z]*>/gi),""],[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/gi),"$1"]]}function n(e,t,n){var r=e.clipboardData||t.clipboardData||n.dataTransfer,i={};if(!r)return i;if(r.getData){var o=r.getData("Text");o&&o.length>0&&(i["text/plain"]=o)}if(r.types)for(var a=0;a<r.types.length;a++){var s=r.types[a];i[s]=r.getData(s)}return i}var r=null,i=null,o=function(e){e.stopPropagation()},a=e.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],unwrapTags:[],init:function(){e.Extension.prototype.init.apply(this,arguments),(this.forcePlainText||this.cleanPastedHTML)&&(this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.getEditorElements().forEach(function(e){this.on(e,"paste",this.handlePaste.bind(this))},this),this.subscribe("addElement",this.handleAddElement.bind(this)))},handleAddElement:function(e,t){this.on(t,"paste",this.handlePaste.bind(this))},destroy:function(){(this.forcePlainText||this.cleanPastedHTML)&&this.removePasteBin()},handlePaste:function(e,t){if(!e.defaultPrevented){var r=n(e,this.window,this.document),i=r["text/html"],o=r["text/plain"];this.window.clipboardData&&void 0===e.clipboardData&&!i&&(i=o),(i||o)&&(e.preventDefault(),this.doPaste(i,o,t))}},doPaste:function(t,n,r){var i,o,a="";if(this.cleanPastedHTML&&t)return this.cleanPaste(t);if(this.getEditorOption("disableReturn")||r&&r.getAttribute("data-disable-return"))a=e.util.htmlEntities(n);else if(i=n.split(/[\r\n]+/g),i.length>1)for(o=0;o<i.length;o+=1)""!==i[o]&&(a+="<p>"+e.util.htmlEntities(i[o])+"</p>");else a=e.util.htmlEntities(i[0]);e.util.insertHTMLCommand(this.document,a)},handlePasteBinPaste:function(e){if(e.defaultPrevented)return void this.removePasteBin();var t=n(e,this.window,this.document),r=t["text/html"],o=t["text/plain"],a=i;if(!this.cleanPastedHTML||r)return e.preventDefault(),this.removePasteBin(),this.doPaste(r,o,a),void this.trigger("editablePaste",{currentTarget:a,target:a},a);setTimeout(function(){this.cleanPastedHTML&&(r=this.getPasteBinHtml()),this.removePasteBin(),this.doPaste(r,o,a),this.trigger("editablePaste",{currentTarget:a,target:a},a)}.bind(this),0)},handleKeydown:function(t,n){e.util.isKey(t,e.util.keyCode.V)&&e.util.isMetaCtrlKey(t)&&(t.stopImmediatePropagation(),this.removePasteBin(),this.createPasteBin(n))},createPasteBin:function(t){var n,a=e.selection.getSelectionRange(this.document),s=this.window.pageYOffset;i=t,a&&(n=a.getClientRects(),n.length?s+=n[0].top:void 0!==a.startContainer.getBoundingClientRect?s+=a.startContainer.getBoundingClientRect().top:s+=a.getBoundingClientRect().top),r=a;var u=this.document.createElement("div");u.id=this.pasteBinId="medium-editor-pastebin-"+ +Date.now(),u.setAttribute("style","border: 1px red solid; position: absolute; top: "+s+"px; width: 10px; height: 10px; overflow: hidden; opacity: 0"),u.setAttribute("contentEditable",!0),u.innerHTML="%ME_PASTEBIN%",this.document.body.appendChild(u),this.on(u,"focus",o),this.on(u,"focusin",o),this.on(u,"focusout",o),u.focus(),e.selection.selectNode(u,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(u,"paste",this.boundHandlePaste)},removePasteBin:function(){null!==r&&(e.selection.selectRange(this.document,r),r=null),null!==i&&(i=null);var t=this.getPasteBin();t&&t&&(this.off(t,"focus",o),this.off(t,"focusin",o),this.off(t,"focusout",o),this.off(t,"paste",this.boundHandlePaste),t.parentElement.removeChild(t))},getPasteBin:function(){return this.document.getElementById(this.pasteBinId)},getPasteBinHtml:function(){var e=this.getPasteBin();if(!e)return!1;if(e.firstChild&&"mcepastebin"===e.firstChild.id)return!1;var t=e.innerHTML;return!(!t||"%ME_PASTEBIN%"===t)&&t},cleanPaste:function(e){var n,r,i,o,a=/<p|<br|<div/.test(e),s=[].concat(this.preCleanReplacements||[],t(),this.cleanReplacements||[]);for(n=0;n<s.length;n+=1)e=e.replace(s[n][0],s[n][1]);if(!a)return this.pasteHTML(e);for(i=this.document.createElement("div"),i.innerHTML="<p>"+e.split("<br><br>").join("</p><p>")+"</p>",r=i.querySelectorAll("a,p,div,br"),n=0;n<r.length;n+=1)switch(o=r[n],o.innerHTML=o.innerHTML.replace(/\n/gi," "),o.nodeName.toLowerCase()){case"p":case"div":this.filterCommonBlocks(o);break;case"br":this.filterLineBreak(o)}this.pasteHTML(i.innerHTML)},pasteHTML:function(t,n){n=e.util.defaults({},n,{cleanAttrs:this.cleanAttrs,cleanTags:this.cleanTags,unwrapTags:this.unwrapTags});var r,i,o,a,s=this.document.createDocumentFragment();for(s.appendChild(this.document.createElement("body")),a=s.querySelector("body"),a.innerHTML=t,this.cleanupSpans(a),r=a.querySelectorAll("*"),o=0;o<r.length;o+=1)i=r[o],"a"===i.nodeName.toLowerCase()&&this.getEditorOption("targetBlank")&&e.util.setTargetBlank(i),e.util.cleanupAttrs(i,n.cleanAttrs),e.util.cleanupTags(i,n.cleanTags),e.util.unwrapTags(i,n.unwrapTags);e.util.insertHTMLCommand(this.document,a.innerHTML.replace(/ /g," "))},isCommonBlock:function(e){return e&&("p"===e.nodeName.toLowerCase()||"div"===e.nodeName.toLowerCase())},filterCommonBlocks:function(e){/^\s*$/.test(e.textContent)&&e.parentNode&&e.parentNode.removeChild(e)},filterLineBreak:function(e){this.isCommonBlock(e.previousElementSibling)?this.removeWithParent(e):!this.isCommonBlock(e.parentNode)||e.parentNode.firstChild!==e&&e.parentNode.lastChild!==e?e.parentNode&&1===e.parentNode.childElementCount&&""===e.parentNode.textContent&&this.removeWithParent(e):this.removeWithParent(e)},removeWithParent:function(e){e&&e.parentNode&&(e.parentNode.parentNode&&1===e.parentNode.childElementCount?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))},cleanupSpans:function(t){var n,r,i,o=t.querySelectorAll(".replace-with"),a=function(e){return e&&"#text"!==e.nodeName&&"false"===e.getAttribute("contenteditable")};for(n=0;n<o.length;n+=1)r=o[n],i=this.document.createElement(r.classList.contains("bold")?"b":"i"),r.classList.contains("bold")&&r.classList.contains("italic")?i.innerHTML="<i>"+r.innerHTML+"</i>":i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=t.querySelectorAll("span"),n=0;n<o.length;n+=1){if(r=o[n],e.util.traverseUp(r,a))return!1;e.util.unwrap(r,this.document)}}});e.extensions.paste=a}(),function(){var t=e.Extension.extend({name:"placeholder",text:"Type your text",hideOnClick:!0,init:function(){e.Extension.prototype.init.apply(this,arguments),this.initPlaceholders(),this.attachEventHandlers()},initPlaceholders:function(){this.getEditorElements().forEach(this.initElement,this)},handleAddElement:function(e,t){this.initElement(t)},initElement:function(e){e.getAttribute("data-placeholder")||e.setAttribute("data-placeholder",this.text),this.updatePlaceholder(e)},destroy:function(){this.getEditorElements().forEach(this.cleanupElement,this)},handleRemoveElement:function(e,t){this.cleanupElement(t)},cleanupElement:function(e){e.getAttribute("data-placeholder")===this.text&&e.removeAttribute("data-placeholder")},showPlaceholder:function(t){t&&(e.util.isFF&&0===t.childNodes.length?(t.classList.add("medium-editor-placeholder-relative"),t.classList.remove("medium-editor-placeholder")):(t.classList.add("medium-editor-placeholder"),t.classList.remove("medium-editor-placeholder-relative")))},hidePlaceholder:function(e){e&&(e.classList.remove("medium-editor-placeholder"),e.classList.remove("medium-editor-placeholder-relative"))},updatePlaceholder:function(e,t){if(e.querySelector("img, blockquote, ul, ol, table")||""!==e.textContent.replace(/^\s+|\s+$/g,""))return this.hidePlaceholder(e);t||this.showPlaceholder(e)},attachEventHandlers:function(){this.hideOnClick&&this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableInput",this.handleInput.bind(this)),this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("addElement",this.handleAddElement.bind(this)),this.subscribe("removeElement",this.handleRemoveElement.bind(this))},handleInput:function(e,t){var n=this.hideOnClick&&t===this.base.getFocusedElement();this.updatePlaceholder(t,n)},handleFocus:function(e,t){this.hidePlaceholder(t)},handleBlur:function(e,t){this.updatePlaceholder(t)}});e.extensions.placeholder=t}(),function(){var t=e.Extension.extend({name:"toolbar",align:"center",allowMultiParagraphSelection:!0,buttons:["bold","italic","underline","anchor","h2","h3","quote"],diffLeft:0,diffTop:-10,firstButtonClass:"medium-editor-button-first",lastButtonClass:"medium-editor-button-last",standardizeSelectionStart:!1,static:!1,sticky:!1,stickyTopOffset:0,updateOnEmptySelection:!1,relativeContainer:null,init:function(){e.Extension.prototype.init.apply(this,arguments),this.initThrottledMethods(),this.relativeContainer?this.relativeContainer.appendChild(this.getToolbarElement()):this.getEditorOption("elementsContainer").appendChild(this.getToolbarElement())},forEachExtension:function(e,t){return this.base.extensions.forEach(function(n){if(n!==this)return e.apply(t||this,arguments)},this)},createToolbar:function(){var e=this.document.createElement("div");return e.id="medium-editor-toolbar-"+this.getEditorId(),e.className="medium-editor-toolbar",this.static?e.className+=" static-toolbar":this.relativeContainer?e.className+=" medium-editor-relative-toolbar":e.className+=" medium-editor-stalker-toolbar",e.appendChild(this.createToolbarButtons()),this.forEachExtension(function(t){t.hasForm&&e.appendChild(t.getForm())}),this.attachEventHandlers(),e},createToolbarButtons:function(){var t,n,r,i,o,a,s=this.document.createElement("ul");return s.id="medium-editor-toolbar-actions"+this.getEditorId(),s.className="medium-editor-toolbar-actions",s.style.display="block",this.buttons.forEach(function(r){"string"==typeof r?(o=r,a=null):(o=r.name,a=r),(i=this.base.addBuiltInExtension(o,a))&&"function"==typeof i.getButton&&(n=i.getButton(this.base),t=this.document.createElement("li"),e.util.isElement(n)?t.appendChild(n):t.innerHTML=n,s.appendChild(t))},this),r=s.querySelectorAll("button"),r.length>0&&(r[0].classList.add(this.firstButtonClass),r[r.length-1].classList.add(this.lastButtonClass)),s},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=e.util.throttle(function(){this.base.isActive&&this.positionToolbarIfShown()}.bind(this))},attachEventHandlers:function(){this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableClick",this.handleEditableClick.bind(this)),this.subscribe("editableKeyup",this.handleEditableKeyup.bind(this)),this.on(this.document.documentElement,"mouseup",this.handleDocumentMouseup.bind(this)),this.static&&this.sticky&&this.on(this.window,"scroll",this.handleWindowScroll.bind(this),!0),this.on(this.window,"resize",this.handleWindowResize.bind(this))},handleWindowScroll:function(){this.positionToolbarIfShown()},handleWindowResize:function(){this.throttledPositionToolbar()},handleDocumentMouseup:function(t){if(t&&t.target&&e.util.isDescendant(this.getToolbarElement(),t.target))return!1;this.checkState()},handleEditableClick:function(){setTimeout(function(){this.checkState()}.bind(this),0)},handleEditableKeyup:function(){this.checkState()},handleBlur:function(){clearTimeout(this.hideTimeout),clearTimeout(this.delayShowTimeout),this.hideTimeout=setTimeout(function(){this.hideToolbar()}.bind(this),1)},handleFocus:function(){this.checkState()},isDisplayed:function(){return this.getToolbarElement().classList.contains("medium-editor-toolbar-active")},showToolbar:function(){clearTimeout(this.hideTimeout),this.isDisplayed()||(this.getToolbarElement().classList.add("medium-editor-toolbar-active"),this.trigger("showToolbar",{},this.base.getFocusedElement()))},hideToolbar:function(){this.isDisplayed()&&(this.getToolbarElement().classList.remove("medium-editor-toolbar-active"),this.trigger("hideToolbar",{},this.base.getFocusedElement()))},isToolbarDefaultActionsDisplayed:function(){return"block"===this.getToolbarActionsElement().style.display},hideToolbarDefaultActions:function(){this.isToolbarDefaultActionsDisplayed()&&(this.getToolbarActionsElement().style.display="none")},showToolbarDefaultActions:function(){this.hideExtensionForms(),this.isToolbarDefaultActionsDisplayed()||(this.getToolbarActionsElement().style.display="block"),this.delayShowTimeout=this.base.delay(function(){this.showToolbar()}.bind(this))},hideExtensionForms:function(){this.forEachExtension(function(e){e.hasForm&&e.isDisplayed()&&e.hideForm()})},multipleBlockElementsSelected:function(){var t=/<[^\/>][^>]*><\/[^>]+>/gim,n=new RegExp("<("+e.util.blockContainerElementNames.join("|")+")[^>]*>","g"),r=e.selection.getSelectionHtml(this.document).replace(t,""),i=r.match(n);return!!i&&i.length>1},modifySelection:function(){var t=this.window.getSelection(),n=t.getRangeAt(0);if(this.standardizeSelectionStart&&n.startContainer.nodeValue&&n.startOffset===n.startContainer.nodeValue.length){var r=e.util.findAdjacentTextNodeWithContent(e.selection.getSelectionElement(this.window),n.startContainer,this.document);if(r){for(var i=0;0===r.nodeValue.substr(i,1).trim().length;)i+=1;n=e.selection.select(this.document,r,i,n.endContainer,n.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||e.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var t=e.selection.getSelectionElement(this.window);return!t||-1===this.getEditorElements().indexOf(t)||t.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this.static?this.showAndUpdateToolbar():!e.selection.selectionContainsContent(this.document)||!1===this.allowMultiParagraphSelection&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension(function(e){"function"==typeof e.isActive&&"function"==typeof e.setInactive&&e.setInactive()}),this.checkActiveButtons()},checkActiveButtons:function(){var t,n=[],r=null,i=e.selection.getSelectionRange(this.document),o=function(e){"function"==typeof e.checkState?e.checkState(t):"function"==typeof e.isActive&&"function"==typeof e.isAlreadyApplied&&"function"==typeof e.setActive&&!e.isActive()&&e.isAlreadyApplied(t)&&e.setActive()};if(i&&(this.forEachExtension(function(e){if("function"==typeof e.queryCommandState&&null!==(r=e.queryCommandState()))return void(r&&"function"==typeof e.setActive&&e.setActive());n.push(e)}),t=e.selection.getSelectedParentElement(i),this.getEditorElements().some(function(n){return e.util.isDescendant(n,t,!0)})))for(;t&&(n.forEach(o),!e.util.isMediumEditorElement(t));)t=t.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var e=this.base.getFocusedElement(),t=this.window.getSelection();if(!e)return this;!this.static&&t.isCollapsed||(this.showToolbar(),this.relativeContainer||(this.static?this.positionStaticToolbar(e):this.positionToolbar(t)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))},positionStaticToolbar:function(e){this.getToolbarElement().style.left="0";var t,n=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,r=this.window.innerWidth,i=this.getToolbarElement(),o=e.getBoundingClientRect(),a=o.top+n,s=o.left+o.width/2,u=i.offsetHeight,c=i.offsetWidth,l=c/2;switch(this.sticky?n>a+e.offsetHeight-u-this.stickyTopOffset?(i.style.top=a+e.offsetHeight-u+"px",i.classList.remove("medium-editor-sticky-toolbar")):n>a-u-this.stickyTopOffset?(i.classList.add("medium-editor-sticky-toolbar"),i.style.top=this.stickyTopOffset+"px"):(i.classList.remove("medium-editor-sticky-toolbar"),i.style.top=a-u+"px"):i.style.top=a-u+"px",this.align){case"left":t=o.left;break;case"right":t=o.right-c;break;case"center":t=s-l}t<0?t=0:t+c>r&&(t=r-Math.ceil(c)-1),i.style.left=t+"px"},positionToolbar:function(e){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var t=e.getRangeAt(0),n=t.getBoundingClientRect();(!n||0===n.height&&0===n.width&&t.startContainer===t.endContainer)&&(n=1===t.startContainer.nodeType&&t.startContainer.querySelector("img")?t.startContainer.querySelector("img").getBoundingClientRect():t.startContainer.getBoundingClientRect());var r,i,o=this.window.innerWidth,a=this.getToolbarElement(),s=a.offsetHeight,u=a.offsetWidth,c=u/2,l=this.diffLeft-c,f=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,h={},p={};d?(i=f.getBoundingClientRect(),["top","left"].forEach(function(e){p[e]=n[e]-i[e]}),p.width=n.width,p.height=n.height,n=p,o=i.width,h.top=f.scrollTop):h.top=this.window.pageYOffset,r=n.left+n.width/2,h.top+=n.top-s,n.top<50?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),h.top+=50+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),h.top+=this.diffTop),r<c?(h.left=l+c,h.right="initial"):o-r<c?(h.left="auto",h.right=0):(h.left=l+r,h.right="initial"),["top","left","right"].forEach(function(e){a.style[e]=h[e]+(isNaN(h[e])?"":"px")})}});e.extensions.toolbar=t}(),function(){var t=e.Extension.extend({init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy","dragover"===e.type?e.target.classList.add("medium-editor-dragover"):"dragleave"===e.type&&e.target.classList.remove("medium-editor-dragover")},handleDrop:function(t){var n;t.preventDefault(),t.stopPropagation(),t.dataTransfer.files&&(n=Array.prototype.slice.call(t.dataTransfer.files,0),n.some(function(t){if(t.type.match("image")){var n,r;n=new FileReader,n.readAsDataURL(t),r="medium-img-"+ +new Date,e.util.insertHTMLCommand(this.document,'<img class="medium-editor-image-loading" id="'+r+'" />'),n.onload=function(){var e=this.document.getElementById(r);e&&(e.removeAttribute("id"),e.removeAttribute("class"),e.src=n.result)}.bind(this)}}.bind(this))),t.target.classList.remove("medium-editor-dragover")}});e.extensions.imageDragging=t}(),function(){function t(t){var n=e.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,i=e.selection.getCaretOffsets(n);(void 0===r[i.left-1]||""===r[i.left-1].trim()||void 0!==r[i.left]&&""===r[i.left].trim())&&t.preventDefault()}function n(t,n){if(this.options.disableReturn||n.getAttribute("data-disable-return"))t.preventDefault();else if(this.options.disableDoubleReturn||n.getAttribute("data-disable-double-return")){var r=e.selection.getSelectionStart(this.options.ownerDocument);(r&&""===r.textContent.trim()&&"li"!==r.nodeName.toLowerCase()||r.previousElementSibling&&"br"!==r.previousElementSibling.nodeName.toLowerCase()&&""===r.previousElementSibling.textContent.trim())&&t.preventDefault()}}function r(t){var n=e.selection.getSelectionStart(this.options.ownerDocument);"pre"===(n&&n.nodeName.toLowerCase())&&(t.preventDefault(),e.util.insertHTMLCommand(this.options.ownerDocument," ")),e.util.isListItem(n)&&(t.preventDefault(),t.shiftKey?this.options.ownerDocument.execCommand("outdent",!1,null):this.options.ownerDocument.execCommand("indent",!1,null))}function i(t){var n,r=e.selection.getSelectionStart(this.options.ownerDocument),i=r.nodeName.toLowerCase(),o=/^(\s+|<br\/?>)?$/i,a=/h\d/i;e.util.isKey(t,[e.util.keyCode.BACKSPACE,e.util.keyCode.ENTER])&&r.previousElementSibling&&a.test(i)&&0===e.selection.getCaretOffsets(r).left?e.util.isKey(t,e.util.keyCode.BACKSPACE)&&o.test(r.previousElementSibling.innerHTML)?(r.previousElementSibling.parentNode.removeChild(r.previousElementSibling),t.preventDefault()):!this.options.disableDoubleReturn&&e.util.isKey(t,e.util.keyCode.ENTER)&&(n=this.options.ownerDocument.createElement("p"),n.innerHTML="<br>",r.previousElementSibling.parentNode.insertBefore(n,r),t.preventDefault()):e.util.isKey(t,e.util.keyCode.DELETE)&&r.nextElementSibling&&r.previousElementSibling&&!a.test(i)&&o.test(r.innerHTML)&&a.test(r.nextElementSibling.nodeName.toLowerCase())?(e.selection.moveCursor(this.options.ownerDocument,r.nextElementSibling),r.previousElementSibling.parentNode.removeChild(r),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&"li"===i&&o.test(r.innerHTML)&&!r.previousElementSibling&&!r.parentElement.previousElementSibling&&r.nextElementSibling&&"li"===r.nextElementSibling.nodeName.toLowerCase()?(n=this.options.ownerDocument.createElement("p"),n.innerHTML="<br>",r.parentElement.parentElement.insertBefore(n,r.parentElement),e.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild(r),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&!1!==e.util.getClosestTag(r,"blockquote")&&0===e.selection.getCaretOffsets(r).left?(t.preventDefault(),e.util.execFormatBlock(this.options.ownerDocument,"p")):e.util.isKey(t,e.util.keyCode.ENTER)&&!1!==e.util.getClosestTag(r,"blockquote")&&0===e.selection.getCaretOffsets(r).right?(n=this.options.ownerDocument.createElement("p"),n.innerHTML="<br>",r.parentElement.insertBefore(n,r.nextSibling),e.selection.moveCursor(this.options.ownerDocument,n),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&e.util.isMediumEditorElement(r.parentElement)&&!r.previousElementSibling&&r.nextElementSibling&&o.test(r.innerHTML)&&(t.preventDefault(),e.selection.moveCursor(this.options.ownerDocument,r.nextSibling),r.parentElement.removeChild(r))}function o(t){var n,r=e.selection.getSelectionStart(this.options.ownerDocument);r&&(e.util.isMediumEditorElement(r)&&0===r.children.length&&!e.util.isBlockContainer(r)&&this.options.ownerDocument.execCommand("formatBlock",!1,"p"),!e.util.isKey(t,e.util.keyCode.ENTER)||e.util.isListItem(r)||e.util.isBlockContainer(r)||(n=r.nodeName.toLowerCase(),"a"===n?this.options.ownerDocument.execCommand("unlink",!1,null):t.shiftKey||t.ctrlKey||this.options.ownerDocument.execCommand("formatBlock",!1,"p")))}function a(e,t){var n=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');n&&(n.value=t.innerHTML.trim())}function s(e){e._mediumEditors||(e._mediumEditors=[null]),this.id||(this.id=e._mediumEditors.length),e._mediumEditors[this.id]=this}function u(e){e._mediumEditors&&e._mediumEditors[this.id]&&(e._mediumEditors[this.id]=null)}function c(t,n,r){var i=[];if(t||(t=[]),"string"==typeof t&&(t=n.querySelectorAll(t)),e.util.isElement(t)&&(t=[t]),r)for(var o=0;o<t.length;o++){var a=t[o];!e.util.isElement(a)||a.getAttribute("data-medium-editor-element")||a.getAttribute("medium-editor-textarea-id")||i.push(a)}else i=Array.prototype.slice.apply(t);return i}function l(e){var t=e.parentNode.querySelector('textarea[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]');t&&(t.classList.remove("medium-editor-hidden"),t.removeAttribute("medium-editor-textarea-id")),e.parentNode&&e.parentNode.removeChild(e)}function f(e,t){return Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])}),e}function d(e,t,n){return e=f(e,{window:n.options.contentWindow,document:n.options.ownerDocument,base:n}),"function"==typeof e.init&&e.init(),e.name||(e.name=t),e}function h(){return!this.elements.every(function(e){return!!e.getAttribute("data-disable-toolbar")})&&!1!==this.options.toolbar}function p(){return!!h.call(this)&&!1!==this.options.anchorPreview}function v(){return!1!==this.options.placeholder}function m(){return!1!==this.options.autoLink}function g(){return!1!==this.options.imageDragging}function y(){return!1!==this.options.keyboardCommands}function b(){return!this.options.extensions.imageDragging}function w(e){for(var t=this.options.ownerDocument.createElement("div"),n=Date.now(),r="medium-editor-"+n,i=e.attributes;this.options.ownerDocument.getElementById(r);)n++,r="medium-editor-"+n;t.className=e.className,t.id=r,t.innerHTML=e.value,e.setAttribute("medium-editor-textarea-id",r);for(var o=0,a=i.length;o<a;o++)t.hasAttribute(i[o].nodeName)||t.setAttribute(i[o].nodeName,i[o].nodeValue);return e.form&&this.on(e.form,"reset",function(e){e.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById(r))}.bind(this)),e.classList.add("medium-editor-hidden"),e.parentNode.insertBefore(t,e),t}function _(t,r){if(!t.getAttribute("data-medium-editor-element")){"textarea"===t.nodeName.toLowerCase()&&(t=w.call(this,t),this.instanceHandleEditableInput||(this.instanceHandleEditableInput=a.bind(this),this.subscribe("editableInput",this.instanceHandleEditableInput))),this.options.disableEditing||t.getAttribute("data-disable-editing")||(t.setAttribute("contentEditable",!0),t.setAttribute("spellcheck",this.options.spellcheck)),this.instanceHandleEditableKeydownEnter||(t.getAttribute("data-disable-return")||t.getAttribute("data-disable-double-return"))&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter)),this.options.disableReturn||t.getAttribute("data-disable-return")||this.on(t,"keyup",o.bind(this));var i=e.util.guid();t.setAttribute("data-medium-editor-element",!0),t.classList.add("medium-editor-element"),t.setAttribute("role","textbox"),t.setAttribute("aria-multiline",!0),t.setAttribute("data-medium-editor-editor-index",r),t.setAttribute("medium-editor-index",i),T[i]=t.innerHTML,this.events.attachAllEventsToElement(t)}return t}function C(){this.subscribe("editableKeydownTab",r.bind(this)),this.subscribe("editableKeydownDelete",i.bind(this)),this.subscribe("editableKeydownEnter",i.bind(this)),this.options.disableExtraSpaces&&this.subscribe("editableKeydownSpace",t.bind(this)),this.instanceHandleEditableKeydownEnter||(this.options.disableReturn||this.options.disableDoubleReturn)&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter))}function k(){if(this.extensions=[],Object.keys(this.options.extensions).forEach(function(e){"toolbar"!==e&&this.options.extensions[e]&&this.extensions.push(d(this.options.extensions[e],e,this))},this),b.call(this)){var t=this.options.fileDragging;t||(t={},g.call(this)||(t.allowedTypes=[])),this.addBuiltInExtension("fileDragging",t)}var n={paste:!0,"anchor-preview":p.call(this),autoLink:m.call(this),keyboardCommands:y.call(this),placeholder:v.call(this)};Object.keys(n).forEach(function(e){n[e]&&this.addBuiltInExtension(e)},this);var r=this.options.extensions.toolbar;if(!r&&h.call(this)){var i=e.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new e.extensions.toolbar(i)}r&&this.extensions.push(d(r,"toolbar",this))}function E(t,n){var r=[["allowMultiParagraphSelection","toolbar.allowMultiParagraphSelection"]];return n&&r.forEach(function(t){n.hasOwnProperty(t[0])&&void 0!==n[t[0]]&&e.util.deprecated(t[0],t[1],"v6.0.0")}),e.util.defaults({},n,t)}function x(t,n){var r,i,o=/^append-(.+)$/gi,a=/justify([A-Za-z]*)$/g;if(r=o.exec(t))return e.util.execFormatBlock(this.options.ownerDocument,r[1]);if("fontSize"===t)return n.size&&e.util.deprecated(".size option for fontSize command",".value","6.0.0"),i=n.value||n.size,this.options.ownerDocument.execCommand("fontSize",!1,i);if("fontName"===t)return n.name&&e.util.deprecated(".name option for fontName command",".value","6.0.0"),i=n.value||n.name,this.options.ownerDocument.execCommand("fontName",!1,i);if("createLink"===t)return this.createLink(n);if("image"===t){var s=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand("insertImage",!1,s)}if("html"===t){var u=this.options.contentWindow.getSelection().toString().trim();return e.util.insertHTMLCommand(this.options.ownerDocument,u)}if(a.exec(t)){var c=this.options.ownerDocument.execCommand(t,!1,null),l=e.selection.getSelectedParentElement(e.selection.getSelectionRange(this.options.ownerDocument));return l&&S.call(this,e.util.getTopBlockContainer(l)),c}return i=n&&n.value,this.options.ownerDocument.execCommand(t,!1,i)}function S(t){if(t){var n,r=Array.prototype.slice.call(t.childNodes).filter(function(e){var t="div"===e.nodeName.toLowerCase();return t&&!n&&(n=e.style.textAlign),t});r.length&&(this.saveSelection(),r.forEach(function(t){if(t.style.textAlign===n){var r=t.lastChild;if(r){e.util.unwrap(t,this.options.ownerDocument);var i=this.options.ownerDocument.createElement("BR");r.parentNode.insertBefore(i,r.nextSibling)}}},this),t.style.textAlign=n,this.restoreSelection())}}var T={};e.prototype={init:function(e,t){return this.options=E.call(this,this.defaults,t),this.origElements=e,this.options.elementsContainer||(this.options.elementsContainer=this.options.ownerDocument.body),this.setup()},setup:function(){this.isActive||(s.call(this,this.options.contentWindow),this.events=new e.Events(this),this.elements=[],this.addElements(this.origElements),0!==this.elements.length&&(this.isActive=!0,k.call(this),C.call(this)))},destroy:function(){this.isActive&&(this.isActive=!1,this.extensions.forEach(function(e){"function"==typeof e.destroy&&e.destroy()},this),this.events.destroy(),this.elements.forEach(function(e){this.options.spellcheck&&(e.innerHTML=e.innerHTML),e.removeAttribute("contentEditable"),e.removeAttribute("spellcheck"),e.removeAttribute("data-medium-editor-element"),e.classList.remove("medium-editor-element"),e.removeAttribute("role"),e.removeAttribute("aria-multiline"),e.removeAttribute("medium-editor-index"),e.removeAttribute("data-medium-editor-editor-index"),e.getAttribute("medium-editor-textarea-id")&&l(e)},this),this.elements=[],this.instanceHandleEditableKeydownEnter=null,this.instanceHandleEditableInput=null,u.call(this,this.options.contentWindow))},on:function(e,t,n,r){return this.events.attachDOMEvent(e,t,n,r),this},off:function(e,t,n,r){return this.events.detachDOMEvent(e,t,n,r),this},subscribe:function(e,t){return this.events.attachCustomEvent(e,t),this},unsubscribe:function(e,t){return this.events.detachCustomEvent(e,t),this},trigger:function(e,t,n){return this.events.triggerCustomEvent(e,t,n),this},delay:function(e){var t=this;return setTimeout(function(){t.isActive&&e()},this.options.delay)},serialize:function(){var e,t,n={},r=this.elements.length;for(e=0;e<r;e+=1)t=""!==this.elements[e].id?this.elements[e].id:"element-"+e,n[t]={value:this.elements[e].innerHTML.trim()};return n},getExtensionByName:function(e){var t;return this.extensions&&this.extensions.length&&this.extensions.some(function(n){return n.name===e&&(t=n,!0)}),t},addBuiltInExtension:function(t,n){var r,i=this.getExtensionByName(t);if(i)return i;switch(t){case"anchor":r=e.util.extend({},this.options.anchor,n),i=new e.extensions.anchor(r);break;case"anchor-preview":i=new e.extensions.anchorPreview(this.options.anchorPreview);break;case"autoLink":i=new e.extensions.autoLink;break;case"fileDragging":i=new e.extensions.fileDragging(n);break;case"fontname":i=new e.extensions.fontName(this.options.fontName);break;case"fontsize":i=new e.extensions.fontSize(n);break;case"keyboardCommands":i=new e.extensions.keyboardCommands(this.options.keyboardCommands);break;case"paste":i=new e.extensions.paste(this.options.paste);break;case"placeholder":i=new e.extensions.placeholder(this.options.placeholder);break;default:e.extensions.button.isBuiltInButton(t)&&(n?(r=e.util.defaults({},n,e.extensions.button.prototype.defaults[t]),i=new e.extensions.button(r)):i=new e.extensions.button(t))}return i&&this.extensions.push(d(i,t,this)),i},stopSelectionUpdates:function(){this.preventSelectionUpdates=!0},startSelectionUpdates:function(){this.preventSelectionUpdates=!1},checkSelection:function(){var e=this.getExtensionByName("toolbar");return e&&e.checkState(),this},queryCommandState:function(e){var t,n=/^full-(.+)$/gi,r=null;(t=n.exec(e))&&(e=t[1]);try{r=this.options.ownerDocument.queryCommandState(e)}catch(e){r=null}return r},execAction:function(t,n){var r,i,o=/^full-(.+)$/gi;return r=o.exec(t),r?(this.saveSelection(),this.selectAllContents(),i=x.call(this,r[1],n),this.restoreSelection()):i=x.call(this,t,n),"insertunorderedlist"!==t&&"insertorderedlist"!==t||e.util.cleanListDOM(this.options.ownerDocument,this.getSelectedParentElement()),this.checkSelection(),i},getSelectedParentElement:function(t){return void 0===t&&(t=this.options.contentWindow.getSelection().getRangeAt(0)),e.selection.getSelectedParentElement(t)},selectAllContents:function(){var t=e.selection.getSelectionElement(this.options.contentWindow);if(t){for(;1===t.children.length;)t=t.children[0];this.selectElement(t)}},selectElement:function(t){e.selection.selectNode(t,this.options.ownerDocument);var n=e.selection.getSelectionElement(this.options.contentWindow);n&&this.events.focusElement(n)},getFocusedElement:function(){var e;return this.elements.some(function(t){return!e&&t.getAttribute("data-medium-focused")&&(e=t),!!e},this),e},exportSelection:function(){var t=e.selection.getSelectionElement(this.options.contentWindow),n=this.elements.indexOf(t),r=null;return n>=0&&(r=e.selection.exportSelection(t,this.options.ownerDocument)),null!==r&&0!==n&&(r.editableElementIndex=n),r},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(t,n){if(t){var r=this.elements[t.editableElementIndex||0];e.selection.importSelection(t,r,this.options.ownerDocument,n)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(t){var n,r=e.selection.getSelectionElement(this.options.contentWindow),i={};if(-1!==this.elements.indexOf(r)){try{if(this.events.disableCustomEvent("editableInput"),t.url&&e.util.deprecated(".url option for createLink",".value","6.0.0"),(n=t.url||t.value)&&n.trim().length>0){var o=this.options.contentWindow.getSelection();if(o){var a,s,u,c,l=o.getRangeAt(0),f=l.commonAncestorContainer;if(3===l.endContainer.nodeType&&3!==l.startContainer.nodeType&&0===l.startOffset&&l.startContainer.firstChild===l.endContainer&&(f=l.endContainer),s=e.util.getClosestBlockContainer(l.startContainer),u=e.util.getClosestBlockContainer(l.endContainer),3!==f.nodeType&&0!==f.textContent.length&&s===u){var d=s||r,h=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),a=this.exportSelection(),h.appendChild(d.cloneNode(!0)),r===d?e.selection.select(this.options.ownerDocument,d.firstChild,0,d.lastChild,3===d.lastChild.nodeType?d.lastChild.nodeValue.length:d.lastChild.childNodes.length):e.selection.select(this.options.ownerDocument,d,0,d,d.childNodes.length);var p=this.exportSelection();c=e.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,h,{start:a.start-p.start,end:a.end-p.start,editableElementIndex:a.editableElementIndex}),0===c.length&&(h=this.options.ownerDocument.createDocumentFragment(),h.appendChild(f.cloneNode(!0)),c=[h.firstChild.firstChild,h.firstChild.lastChild]),e.util.createLink(this.options.ownerDocument,c,n.trim());var v=(h.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;e.util.insertHTMLCommand(this.options.ownerDocument,h.firstChild.innerHTML.replace(/^\s+/,"")),a.start-=v,a.end-=v,this.importSelection(a)}else this.options.ownerDocument.execCommand("createLink",!1,n);this.options.targetBlank||"_blank"===t.target?e.util.setTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),n):e.util.removeTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),n),t.buttonClass&&e.util.addClassToAnchors(e.selection.getSelectionStart(this.options.ownerDocument),t.buttonClass)}}if(this.options.targetBlank||"_blank"===t.target||t.buttonClass){i=this.options.ownerDocument.createEvent("HTMLEvents"),i.initEvent("input",!0,!0,this.options.contentWindow);for(var m=0,g=this.elements.length;m<g;m+=1)this.elements[m].dispatchEvent(i)}}finally{this.events.enableCustomEvent("editableInput")}this.events.triggerCustomEvent("editableInput",i,r)}},cleanPaste:function(e){this.getExtensionByName("paste").cleanPaste(e)},pasteHTML:function(e,t){this.getExtensionByName("paste").pasteHTML(e,t)},setContent:function(e,t){if(t=t||0,this.elements[t]){var n=this.elements[t];n.innerHTML=e,this.checkContentChanged(n)}},getContent:function(e){return e=e||0,this.elements[e]?this.elements[e].innerHTML.trim():null},checkContentChanged:function(t){t=t||e.selection.getSelectionElement(this.options.contentWindow),this.events.updateInput(t,{target:t,currentTarget:t})},resetContent:function(e){if(e){var t=this.elements.indexOf(e);return void(-1!==t&&this.setContent(T[e.getAttribute("medium-editor-index")],t))}this.elements.forEach(function(e,t){this.setContent(T[e.getAttribute("medium-editor-index")],t)},this)},addElements:function(e){var t=c(e,this.options.ownerDocument,!0);if(0===t.length)return!1;t.forEach(function(e){e=_.call(this,e,this.id),this.elements.push(e),this.trigger("addElement",{target:e,currentTarget:e},e)},this)},removeElements:function(e){var t=c(e,this.options.ownerDocument),n=t.map(function(e){return e.getAttribute("medium-editor-textarea-id")&&e.parentNode?e.parentNode.querySelector('div[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]'):e});this.elements=this.elements.filter(function(e){return-1===n.indexOf(e)||(this.events.cleanupElement(e),e.getAttribute("medium-editor-textarea-id")&&l(e),this.trigger("removeElement",{target:e,currentTarget:e},e),!1)},this)}},e.getEditorFromElement=function(e){var t=e.getAttribute("data-medium-editor-editor-index"),n=e&&e.ownerDocument&&(e.ownerDocument.defaultView||e.ownerDocument.parentWindow);return n&&n._mediumEditors&&n._mediumEditors[t]?n._mediumEditors[t]:null}}(),function(){e.prototype.defaults={activeButtonClass:"medium-editor-button-active",buttonLabels:!1,delay:0,disableReturn:!1,disableDoubleReturn:!1,disableExtraSpaces:!1,disableEditing:!1,autoLink:!1,elementsContainer:!1,contentWindow:window,ownerDocument:document,targetBlank:!1,extensions:{},spellcheck:!0}}(),e.parseVersionString=function(e){var t=e.split("-"),n=t[0].split("."),r=t.length>1?t[1]:"";return{major:parseInt(n[0],10),minor:parseInt(n[1],10),revision:parseInt(n[2],10),preRelease:r,toString:function(){return[n[0],n[1],n[2]].join(".")+(r?"-"+r:"")}}},e.version=e.parseVersionString.call(this,{version:"5.23.2"}.version),e}())}).call(t,n(79))},function(e,t,n){"use strict";function r(e){if(!(void 0!==e.label&&/\S{1}/.test(e.label)&&void 0!==e.start&&/\S{1}/.test(e.start)&&void 0!==e.end&&/\S{1}/.test(e.end)||void 0!==e.label&&/\S{1}/.test(e.label)&&void 0!==e.action&&/\S{1}/.test(e.action)))return void console.error('[Custom-Button] You need to specify "label", "start" and "end" OR "label" and "action"');e.start=void 0===e.start?"":e.start,e.end=void 0===e.end?"":e.end;var t=this;this.options=e,this.button=document.createElement("button"),this.button.className="medium-editor-action",this.button.innerHTML=e.label,this.button.onclick=function(){var n=i(),r=window.getSelection(),o=r.anchorNode.parentElement;void 0===e.start||-1==n.indexOf(e.start)&&-1==n.indexOf(e.end)?(void 0!=e.action&&(n=e.action(n,!0,o)),n=e.start+n+e.end):(void 0!=e.action&&(n=e.action(n,!1,o)),n=String(n).split(e.start).join(""),n=String(n).split(e.end).join(""));var a,s;if(r.getRangeAt&&r.rangeCount){if(a=window.getSelection().getRangeAt(0),a.deleteContents(),a.createContextualFragment)s=a.createContextualFragment(n);else{var u=document.createElement("div");for(u.innerHTML=n,s=document.createDocumentFragment();child=u.firstChild;)s.appendChild(child)}var c=s.firstChild,l=s.lastChild;a.insertNode(s),c&&(a.setStartBefore(c),a.setEndAfter(l)),r.removeAllRanges(),r.addRange(a)}t.base.checkContentChanged()}}function i(){var e,t="";if(void 0!==window.getSelection){if(e=window.getSelection(),e.rangeCount){for(var n=document.createElement("div"),r=0,i=e.rangeCount;r<i;++r)n.appendChild(e.getRangeAt(r).cloneContents());t=n.innerHTML}}else void 0!==document.selection&&"Text"==document.selection.type&&(t=document.selection.createRange().htmlText);return t}r.prototype.getButton=function(){return this.button},r.prototype.checkState=function(e){var t=i();""!=this.options.start&&t.indexOf(this.options.start)>-1&&t.indexOf(this.options.end)>-1?this.button.classList.add("medium-editor-button-active"):this.button.classList.remove("medium-editor-button-active")},void 0!==e&&e.exports&&(t=e.exports=r),t.MediumButton=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){var n=t.controller;r(this,e),this._controller=n}return i(e,null,[{key:"canEdit",value:function(e){return"reference"===e.type}}]),i(e,[{key:"onClick",value:function(){var e=this;scrivito.openContentBrowser({selection:this._currentSelection(),selectionMode:"single"}).then(function(t){var n=t.isSelected,r=t.selection;n&&e._saveContentBrowserSelection(r)})}},{key:"_currentSelection",value:function(){return this._controller.content?[this._controller.content.id()]:[]}},{key:"_saveContentBrowserSelection",value:function(e){this._controller.content=e[0]||null}}]),e}();t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(205),s=r(a),u=n(206),c=r(u),l=n(286),f=r(l),d=function(){function e(t){var n=t.attributeInfo,r=t.controller;i(this,e),this.attributeInfo=n,this.controller=r}return o(e,null,[{key:"canEdit",value:function(e){return"string"===e.type}}]),o(e,[{key:"editorWillBeActivated",value:function(){this.controller.setDomMode("Replace")}},{key:"editorDomWasMounted",value:function(e){(0,c.default)(e);var t=new s.default(e,this.controller);t.edQuery(e).text(this.controller.content),(0,f.default)(t)}}]),e}();t.default=d},function(e,t){var n,r,i,o,a,s,u,c,l,f,d,h,p,v,m;p=function(e,t){var n;switch(n=t.jQueryElement(),e.keyCode||e.which){case 13:if(!c(n))return e.preventDefault(),n.blur();break;case 27:return e.stopPropagation(),n.blur()}},h=function(e){return m(e)},d=function(e){return v(e.jQueryElement())},f=function(e){return s(e.jQueryElement())},l=function(e){return m(e).done(function(){return e.trigger("scrivito_editors:blur")}),a(e),v(e.jQueryElement())},m=function(e){var t;return t=u(e.jQueryElement()),e.save(t).done(function(){return e.trigger("scrivito_editors:save")})},u=function(e){return i(e),e[0].innerText.replace(/\r\n/g,"\n").replace(/\n+$/,"")},i=function(e){var t,n;if(n=o(e),t=n.not(e),t.length>0)return t.remove(),e.text(n.text())},o=function(e){var t,n,r;return r=e.data("scrivito_editors_siblings_before_edit"),n=e.siblings(),t=!r||n.filter(r).length<r.length,t?e.data("scrivito_editors_siblings_before_edit",n):e.siblings().addBack().not(r)},c=function(e){return!0===e.data("scrivitoEditorsMultiline")||!1!==e.data("scrivitoEditorsMultiline")&&e.css("white-space").match(/pre/)},v=function(e){var t,n;if(c(e)&&!e.data("scrivito_editors_prepared_for_editing")&&(e.data("scrivito_editors_prepared_for_editing",!0),t=e.html(),n=t.replace(/\r?\n/g,"<br />"),t!==n))return e.html(n)},a=function(e){var t;return t=e.jQueryElement(),t.data("scrivito_editors_prepared_for_editing",!1),t.text(e.content())},n=300,s=function(e){var t;if(t=document.getSelection(),t.anchorNode&&t.focusNode)return e.find(t.anchorNode).addBack(t.anchorNode).length&&e.find(t.focusNode).addBack(t.focusNode).length?void 0:t.selectAllChildren(e[0])},r=function(e){var t;return t=e.jQueryElement(),t.attr("contenteditable",!0).blur(function(){return l(e)}).click(function(){return f(e)}).focus(function(){return d(e)}).keypress(function(t){return p(t,e)}).keyup(function(t){return p(t,e)}),"false"!==t.attr("data-scrivito-editors-autosave")&&t.on("cut input keypress keyup paste",function(){return h(e)}),v(t),t.on("click",function(e){return t.attr("contenteditable",!0),i(t),e.timeStamp-t.data("scrivito_editors_last_click")<n||e.preventDefault(),t.data("scrivito_editors_last_click",e.timeStamp)})},e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.provideWidgetClass=t.provideObjClass=t.getClass=t.createWidgetClass=t.createObjClass=t.Widget=t.ObjSearch=t.Obj=t.Link=t.registerComponent=t.provideComponent=t.connect=t.WidgetTag=t.NotFoundErrorPage=t.LinkTag=t.ImageTag=t.CurrentPage=t.ContentTag=t.ChildListTag=t.BackgroundImageTag=t.urlFor=t.provideEditingConfig=t.navigateTo=t.isInPlaceEditingActive=t.currentPageParams=t.currentPage=t.configureContentBrowser=t.configure=t.ScrivitoError=t.ArgumentError=t.load=t.ObjFacetValue=t.FutureBinary=t.Binary=void 0;var i=n(24);Object.defineProperty(t,"Binary",{enumerable:!0,get:function(){return r(i).default}});var o=n(64);Object.defineProperty(t,"FutureBinary",{enumerable:!0,get:function(){return r(o).default}});var a=n(196);Object.defineProperty(t,"ObjFacetValue",{enumerable:!0,get:function(){return r(a).default}});var s=n(8);Object.defineProperty(t,"load",{enumerable:!0,get:function(){return r(s).default}});var u=n(1);Object.defineProperty(t,"ArgumentError",{enumerable:!0,get:function(){return u.ArgumentError}}),Object.defineProperty(t,"ScrivitoError",{enumerable:!0,get:function(){return u.ScrivitoError}});var c=n(199);Object.defineProperty(t,"configure",{enumerable:!0,get:function(){return c.configure}});var l=n(116);Object.defineProperty(t,"configureContentBrowser",{enumerable:!0,get:function(){return r(l).default}});var f=n(65);Object.defineProperty(t,"currentPage",{enumerable:!0,get:function(){return f.currentPage}}),Object.defineProperty(t,"currentPageParams",{enumerable:!0,get:function(){return f.currentPageParams}});var d=n(288);Object.defineProperty(t,"isInPlaceEditingActive",{enumerable:!0,get:function(){return r(d).default}});var h=n(80);Object.defineProperty(t,"navigateTo",{enumerable:!0,get:function(){return r(h).default}});var p=n(72);Object.defineProperty(t,"provideEditingConfig",{enumerable:!0,get:function(){return p.provideEditingConfig}});var v=n(289);Object.defineProperty(t,"urlFor",{enumerable:!0,get:function(){return v.urlFor}});var m=n(290);Object.defineProperty(t,"BackgroundImageTag",{enumerable:!0,get:function(){return r(m).default}});var g=n(292);Object.defineProperty(t,"ChildListTag",{enumerable:!0,get:function(){return r(g).default}});var y=n(210);Object.defineProperty(t,"ContentTag",{enumerable:!0,get:function(){return r(y).default}});var b=n(305);Object.defineProperty(t,"CurrentPage",{enumerable:!0,get:function(){return r(b).default}});var w=n(306);Object.defineProperty(t,"ImageTag",{enumerable:!0,get:function(){return r(w).default}});var _=n(208);Object.defineProperty(t,"LinkTag",{enumerable:!0,get:function(){return r(_).default}});var C=n(308);Object.defineProperty(t,"NotFoundErrorPage",{enumerable:!0,get:function(){return r(C).default}});var k=n(118);Object.defineProperty(t,"WidgetTag",{enumerable:!0,get:function(){return r(k).default}});var E=n(13);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return r(E).default}});var x=n(309);Object.defineProperty(t,"provideComponent",{enumerable:!0,get:function(){return r(x).default}});var S=n(310);Object.defineProperty(t,"registerComponent",{enumerable:!0,get:function(){return r(S).default}});var T=n(55),A=(0,T.getWindowContext)();t.Link=A.Link,t.Obj=A.Obj,t.ObjSearch=A.ObjSearch,t.Widget=A.Widget,t.createObjClass=A.createObjClass,t.createWidgetClass=A.createWidgetClass,t.getClass=A.getClass,t.provideObjClass=A.provideObjClass,t.provideWidgetClass=A.provideWidgetClass},function(e,t,n){"use strict";function r(){return"published"!==scrivito.currentWorkspaceId()&&(!!scrivito.uiAdapter&&scrivito.uiAdapter.isEditingMode())}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t){f(e,t);var n=t||{},r=n.query,a=n.fragment,s=(0,i.unwrapAppClassValue)(e),u=r?"?"+r:"",c=a?"#"+a:"";return(0,o.basicUrlFor)(s).concat(u).concat(c)}Object.defineProperty(t,"__esModule",{value:!0}),t.urlFor=r;var i=n(22),o=n(115),a=n(21),s=n(34),u=n(54),c=a.tcomb.union([u.ObjType,u.LinkType,u.BinaryType]),l=a.tcomb.struct({query:a.tcomb.maybe(a.tcomb.String),fragment:a.tcomb.maybe(a.tcomb.String)}),f=(0,s.checkArgumentsFor)("urlFor",[["target",c],["options",a.tcomb.maybe(l)]],{docPermalink:"js-sdk/urlFor"})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(12),l=r(c),f=n(0),d=n(291),h=r(d),p=n(13),v=r(p),m=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=e.tag,r=(0,f.omit)(this.props,"style","tag");return l.default.createElement(n,s({},r,{style:(0,h.default)(t)}))}}]),t}(l.default.Component);m.displayName="Scrivito.BackgroundImageTag",m.defaultProps={tag:"div"},t.default=(0,v.default)(m)},function(e,t,n){"use strict";function r(e){var t=i(e),n=t.backgrounds,r=t.passThroughStyle,a=o(n);return l.extend(a,r)}function i(e){var t={backgrounds:[],passThroughStyle:{}};for(var n in e)if(0!==n.indexOf("background"))t.passThroughStyle[n]=e[n];else if("background"===n){var r=e[n];t.backgrounds=l.isArray(r)?r:[r]}return t}function o(e){var t=e.map(a);return{backgroundAttachment:l.pluck(t,"backgroundAttachment").join(", "),backgroundImage:l.pluck(t,"backgroundImage").join(", "),backgroundOrigin:l.pluck(t,"backgroundOrigin").join(", "),backgroundPosition:l.pluck(t,"backgroundPosition").join(", "),backgroundRepeat:l.pluck(t,"backgroundRepeat").join(", "),backgroundSize:l.pluck(t,"backgroundSize").join(", ")}}function a(e){if(s(e))return u(e.image);if(e.image instanceof f.default)return c(e.image);if(d.default(e.image)){var t=e.image.get("blob");if(t)return c(t)}return u("none")}function s(e){return l.isString(e.image)}function u(e){return{backgroundAttachment:"scroll",backgroundImage:e,backgroundOrigin:"padding-box",backgroundPosition:"0% 0%",backgroundRepeat:"repeat",backgroundSize:"auto"}}function c(e){return{backgroundAttachment:"scroll",backgroundImage:"url("+h.default(e).url()+")",backgroundOrigin:"padding-box",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}}Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),f=n(24),d=n(201),h=n(207);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(75),l=r(c),f=n(0),d=n(12),h=r(d),p=n(65),v=n(13),m=r(v),g=n(293),y=r(g),b=n(296),w=r(b),_=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={hasFocus:!1},n._onMouseOver=n._onMouseOver.bind(n),n._onMouseOut=n._onMouseOut.bind(n),n}return s(t,e),u(t,[{key:"render",value:function(){var e=this,t=this.props.parent||(0,p.currentPage)();if(!t)return null;t=t._scrivitoPrivateContent;var n=(0,f.omit)(this.props,"parent","tag","renderChild"),r=void 0;return(0,l.default)()&&(n.onMouseOver=this._onMouseOver,n.onMouseOut=this._onMouseOut,n["data-scrivito-private-child-list-path"]=!0,this.state.hasFocus&&(n.className="scrivito_active scrivito_entered "+n.className),r=h.default.createElement(w.default,{key:"menuMarker",parent:t})),h.default.createElement(this.props.tag,n,[r].concat(i(t.orderedChildren().map(function(t){return h.default.createElement(y.default,{key:t.id(),child:t,renderChild:e.props.renderChild})}))))}},{key:"_onMouseOver",value:function(e){e.stopPropagation(),this.setState({hasFocus:!0})}},{key:"_onMouseOut",value:function(e){e.stopPropagation(),this.setState({hasFocus:!1})}}]),t}(h.default.Component);_.displayName="Scrivito.ChildListTag",_.defaultProps={tag:"ul"},t.default=(0,m.default)(_)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.child,n=e.renderChild,r=(0,s.getWindowContext)().appModelAccessor.wrapInAppClass(t);return n?n(r):a.default.createElement("li",null,a.default.createElement(f.default,{to:r},t.get("title","string")))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),a=r(o),s=n(55),u=n(13),c=r(u),l=n(208),f=r(l);i.displayName="Scrivito.ChildListTag.ChildItem",t.default=(0,c.default)(i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.propTypes=t.tcomb=void 0;var r=n(21),i=n(295);t.tcomb=r.tcomb,t.propTypes=i.propTypes},function(e,t,n){"use strict";function r(e,t,n,r){return["Invalid "+t+" supplied to "+n+", should be a "+a.tcomb.getTypeName(r)+".","Detected errors ("+e.length+"):"].concat(e.map(function(e,t){return" "+(t+1)+". "+e.message})).join("\n")}function i(e){return a.tcomb.Object.is(e)?a.tcomb.struct(e):e}function o(e,t){var n=i(e),o="subtype"===n.meta.kind;a.tcomb.assert(a.tcomb.isType(n),"Invalid argument type supplied to propTypes()");var s={},u=o?n.meta.type:n;if("struct"===u.meta.kind||"interface"===u.meta.kind){var c=u.meta.props;Object.keys(c).forEach(function(e){var t=c[e],n=function e(n,i,o){var s=n[i],u=a.tcomb.validate(s,t);if(!u.isValid()){var c=r(u.errors,"prop "+a.tcomb.stringify(i),o,t);e.displayName=c,a.tcomb.fail(c)}};n.tcomb=t,s[e]=n}),t&&!1===t.strict||(s.__strict__=function(e,t,n){var r=[];for(var i in e)"__strict__"!==i&&"__subtype__"!==i&&e.hasOwnProperty(i)&&!c.hasOwnProperty(i)&&r.push(i);if(r.length>0){var o=a.tcomb.stringify(r);a.tcomb.fail("Invalid additional prop(s):\n\n"+o+"\n\nsupplied to "+n+".")}})}else s.__generictype__=function(e,t,n){var i=a.tcomb.validate(e,u);i.isValid()||a.tcomb.fail(r(i.errors,"props",n,u))};return o&&(s.__subtype__=function(e,t,r){n.meta.predicate(e)||a.tcomb.fail("Invalid props:\n\n "+a.tcomb.stringify(e)+"\n\nsupplied to "+r+", should be a "+a.tcomb.getTypeName(n)+".")},s.__subtype__.predicate=n.meta.predicate),s}Object.defineProperty(t,"__esModule",{value:!0}),t.propTypes=void 0;var a=n(21);t.propTypes=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(12),c=r(u),l=n(73),f=n(13),d=r(f),h=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=n._onClick.bind(n),n}return a(t,e),s(t,[{key:"render",value:function(){var e=this;return c.default.createElement("span",{ref:function(t){return e._menuMarker=t},className:"scrivito_editing_marker",onClick:this._onClick},c.default.createElement("i",{className:"scrivito_icon"}),c.default.createElement("span",{className:"scrivito_editing_marker_title"},this.props.parent.objClass()))}},{key:"_onClick",value:function(e){e.preventDefault(),e.stopPropagation(),this._menuMarker&&scrivito.uiAdapter.showChildListMenu((0,l.findDOMNode)(this._menuMarker),this.props.parent.id())}}]),t}(c.default.Component);h.displayName="Scrivito.ChildListTag.MenuMarker",t.default=(0,d.default)(h)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return o(e.target,e.currentTarget,(0,f.default)(e))}function o(e,t,n){if(e===t)return null;if("A"===e.nodeName){var r=e.href,i=s.recognizePath(r);if(!i)return null;if(n||"_blank"===e.getAttribute("target"))return{openInNewWindow:r};return{obj:function(){var e=(0,d.lookup)(i);return e?c.default.get(e):s.recognize(r).obj},options:{params:s.recognizeQueryParameters(r),hash:s.recognizeHash(r)}}}return o(e.parentNode,t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(57),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),u=n(3),c=r(u),l=n(209),f=r(l),d=n(202)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(213),l=r(c),f=n(12),d=r(f),h=n(1),p=n(22),v=n(75),m=r(v),g=n(56),y=n(74),b=n(13),w=r(b),_=n(118),C=r(_),k=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={hasError:!1},n}return s(t,e),u(t,[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"shouldComponentUpdate",value:function(e){return this.props.widget.equals(e.widget)}},{key:"getChildContext",value:function(){return i({},_.WIDGET_TAG_CONTEXT_KEY,this.props.widget)}},{key:"render",value:function(){return this.state.hasError?(0,m.default)()?d.default.createElement(C.default,null,d.default.createElement("div",{className:"content_error"},"Widget could not be rendered due to application error.")):d.default.createElement(C.default,null):d.default.createElement(E,{widget:this.props.widget})}}]),t}(d.default.Component),E=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"render",value:function(){var e=(0,p.wrapInAppClass)((0,g.getWindowRegistry)(),this.props.widget);return d.default.createElement(this._getAppWidgetComponent(),{widget:e})}},{key:"_getAppWidgetComponent",value:function(){var e=this.props.widget.objClass(),t=(0,y.getComponentForAppClass)(e);if(!t)throw new h.ArgumentError('No component registered for widget class "'+e+'"');return t}}]),t}(d.default.Component);k.displayName="Scrivito.ContentTag.WidgetContent",k.childContextTypes=i({},_.WIDGET_TAG_CONTEXT_KEY,l.default.object),t.default=(0,w.default)(k)},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),o=n(13),a=n(119),s=n(214),u=n(203),c=function(e){function t(t){var n=e.call(this,t)||this;return n._onClick=n._onClick.bind(n),n._onDragStart=n._onDragStart.bind(n),n._onDragEnd=n._onDragEnd.bind(n),n}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{ref:function(t){return e._menuMarker=t},className:"scrivito_editing_marker",onClick:this._onClick,onDragStart:this._onDragStart,onDragEnd:this._onDragEnd,draggable:!0},i.createElement("i",{className:"scrivito_icon"}),i.createElement("span",{className:"scrivito_editing_marker_title"},this._title()))},t.prototype._onClick=function(e){if(e.preventDefault(),e.stopPropagation(),this._menuMarker){var t=a.default(this.props.widget),n=t.objId,r=t.widgetId;scrivito.uiAdapter.showWidgetMenu(this._menuMarker,n,r)}},t.prototype._onDragStart=function(e){s.default(e);var t=a.default(this.props.widget),n=t.objId,r=t.widgetId;scrivito.uiAdapter.onDragStart(n,r),this.props.setDragState(!0)},t.prototype._onDragEnd=function(){scrivito.uiAdapter.onDragEnd(),this.props.setDragState(!1)},t.prototype._title=function(){var e=a.default(this.props.widget),t=e.objId,n=e.widgetId;return u.default(t,n)},t}(i.Component);c.displayName="Scrivito.ContentTag.MenuMarker",t.default=o.default(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(12),c=r(u),l=n(73),f=n(119),d=r(f),h=n(13),p=r(h),v=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=n._onClick.bind(n),n}return a(t,e),s(t,[{key:"componentDidMount",value:function(){if(this._widgetPlaceholder){var e=(0,l.findDOMNode)(this._widgetPlaceholder),t=(0,d.default)(this.props.field.container()),n=t.objId,r=t.widgetId,i=this.props.field.name();scrivito.uiAdapter.registerEmptyWidgetlistDropZoneInDom({domNode:e,objId:n,widgetId:r,attributeName:i})}}},{key:"render",value:function(){var e=this;return c.default.createElement("div",{ref:function(t){return e._widgetPlaceholder=t},className:"scrivito_empty_widget_field","data-scrivito-private-dropzone":"true",onClick:this._onClick})}},{key:"_onClick",value:function(e){if(e.preventDefault(),e.stopPropagation(),this._widgetPlaceholder){var t=this.props.field.name(),n=(0,d.default)(this.props.field.container()),r=n.objId,i=n.widgetId;scrivito.uiAdapter.showWidgetlistMenu((0,l.findDOMNode)(this._widgetPlaceholder),{objId:r,widgetId:i,attributeName:t,mousePosition:{x:e.pageX,y:e.pageY}})}}}]),t}(c.default.Component);v.displayName="Scrivito.ContentTag.WidgetlistPlaceholder",t.default=(0,p.default)(v)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(12),c=r(u),l=n(73),f=n(0),d=n(212),h=r(d),p=n(302),v=r(p),m=n(304),g=r(m),y=n(13),b=r(y),w=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={domMode:"None"},n._onClick=n._onClick.bind(n),n}return a(t,e),s(t,[{key:"componentWillMount",value:function(){var e=this,t=this.props.field,n=t.type(),r=t.typeOptions(),i=this.props.editorClass;if(i){var o=(0,f.extend)({type:n},(0,f.pick)(r,"validClasses","values")),a=new v.default(t,function(t){return e._setDomMode(t)});this._editor=new i({attributeInfo:o,controller:a}),this._editorWillBeActivated()}}},{key:"componentDidMount",value:function(){"Replace"===this.state.domMode&&this._editorDomWasMounted()}},{key:"componentDidUpdate",value:function(e,t){var n=t.domMode,r=this.state.domMode;n!==r&&("Replace"===r?this._editorDomWasMounted():this._editorDomWasUnmounted())}},{key:"componentWillUnmount",value:function(){this._editorWillBeDeactivated()}},{key:"render",value:function(){var e=this;return"Replace"===this.state.domMode?c.default.createElement(this.props.tag,(0,f.extend)((0,f.omit)(this.props.customProps,"children"),{ref:function(t){return e._editorComponent=t}})):c.default.createElement(h.default,{ref:function(t){return e._editorComponent=t},children:this.props.children,customProps:this.props.customProps,field:this.props.field,key:this.state.domMode,tag:this.props.tag,onClick:function(t){return e._onClick(t)}})}},{key:"_onClick",value:function(e){this._editor&&this._editor.onClick&&this._editor.onClick(new g.default(e))}},{key:"_editorWillBeActivated",value:function(){this._editor&&this._editor.editorWillBeActivated&&this._editor.editorWillBeActivated()}},{key:"_editorWillBeDeactivated",value:function(){this._editor&&this._editor.editorWillBeDeactivated&&this._editor.editorWillBeDeactivated()}},{key:"_editorDomWasMounted",value:function(){this._editor&&this._editor.editorDomWasMounted&&this._editorComponent&&this._editor.editorDomWasMounted((0,l.findDOMNode)(this._editorComponent))}},{key:"_editorDomWasUnmounted",value:function(){this._editor&&this._editor.editorDomWasUnmounted&&this._editor.editorDomWasUnmounted()}},{key:"_setDomMode",value:function(e){this.setState({domMode:e})}}]),t}(c.default.Component);w.displayName="Scrivito.ContentTag.Editor",t.default=(0,b.default)(w)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(303),s=r(a),u=n(114),c=r(u),l=n(16),f=function(){function e(t,n){i(this,e),this.setDomMode=n,this._buffer=new s.default({get:function(){return"html"===t.type()?(0,l.capture)(function(){return(0,c.default)(t.get())}).result:t.get()},set:function(e){return t.update(e)},flushRate:100})}return o(e,[{key:"content",get:function(){return this._buffer.get()},set:function(e){this._buffer.set(e)}}]),e}();t.default=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o={},a=function(){function e(t){var n=t.get,i=t.set,a=t.flushRate;r(this,e),this._getUnderlying=n,this._setUnderlying=i,this._flushRate=a,this._bufferedValue=o}return i(e,[{key:"get",value:function(){var e=this._bufferedValue;return e!==o?e:this._getUnderlying()}},{key:"set",value:function(e){this._bufferedValue=e,this._flushRunning||this._runFlush()}},{key:"_runFlush",value:function(){var e=this;if(this._bufferedValue===o)return void(this._flushRunning=!1);this._setUnderlying(this._bufferedValue),this._bufferedValue=o,setTimeout(function(){return e._runFlush()},this._flushRate),this._flushRunning=!0}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){r(this,e),this._internalEvent=t}return i(e,[{key:"preventDefault",value:function(){this._internalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this._internalEvent.stopPropagation()}}]),e}();t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=(0,s.currentPage)(),t=(0,s.currentPageParams)();if(!e)return null;var n=e.objClass(),r=(0,c.getComponentForAppClass)(n);if(!r)throw new u.ArgumentError('No component registered for obj class "'+n+'"');return a.default.createElement(r,{page:e,params:t})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),a=r(o),s=n(65),u=n(1),c=n(74),l=n(13),f=r(l);i.displayName="Scrivito.CurrentPage",t.default=(0,f.default)(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(12),l=r(c),f=n(0),d=n(24),h=r(d),p=n(210),v=r(p),m=n(38),g=r(m),y=n(13),b=r(y),w=n(307),_=r(w),C=n(207),k=r(C),E=n(1),x=n(36),S=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){if(!this.props.content)return null;var e=(0,f.omit)(this.props,"content","attribute");if(this.props.content instanceof h.default)return l.default.createElement("img",s({src:(0,k.default)(this.props.content).url()},e));var t=this._getBinary();if(void 0===t)return null;var n=void 0;return null===t?(n=_.default,e["data-scrivito-image-placeholder"]=!0):n=(0,k.default)(t).url(),l.default.createElement(v.default,s({attribute:this.props.attribute,content:this.props.content,tag:"img",src:n},e))}},{key:"_getBinary",value:function(){var e=g.default.forInstance(this.props.content),t=e.attributes[this.props.attribute];return t?"binary"===t?this.props.content.get(this.props.attribute):"reference"===t?this._getReferencedBinary():void(0,x.throwNextTick)(new E.ArgumentError('Component "Scrivito.ImageTag" received prop "content" with an object, whose attribute "'+this.props.attribute+'" is of unexpected type "'+t+'". Valid attribute types are "binary" and "reference".')):void(0,x.throwNextTick)(new E.ArgumentError('Component "Scrivito.ImageTag" received prop "content" with an object missing attribute "'+this.props.attribute+'".'))}},{key:"_getReferencedBinary",value:function(){var e=this.props.content.get(this.props.attribute);if(e){var t=e.get("blob");if(t)return t}return null}}]),t}(l.default.Component);S.displayName="Scrivito.ImageTag",S.defaultProps={attribute:"blob"},t.default=(0,b.default)(S)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="data:image/gif;base64,R0lGODlhyADIAIAAAP///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU0OTExLCAyMDEzLzEwLzI5LTExOjQ3OjE2ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDBEQjBEMDdFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDBEQjBEMDhFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMERCMEQwNUU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMERCMEQwNkU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAAALAAAAADIAMgAAAL/hI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8aNBhw7eixTAAA7"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(65),o=n(1),a=n(13),s=function(e){var t=e.children;return i.currentPageError()instanceof o.CurrentPageNotFoundError?t?r.createElement("div",null,t):r.createElement("div",null,r.createElement("h1",null,"The page you were looking for doesn't exist."),r.createElement("p",null,"You may have mistyped the address or the page may have moved.")):null};s.displayName="Scrivito.NotFoundErrorPage",t.default=a.default(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){u(t),c(t),f(t)&&(t.displayName=e);var n=(0,w.default)(t),r=l(n);(0,y.registerComponentForAppClass)(e,r)}function u(e){if("function"!=typeof e)throw new g.ArgumentError("Scrivito.provideComponent expected a valid React component, but received "+(0,C.default)(e))}function c(e){if(e.propTypes)throw new g.ArgumentError("Custom props are not allowed when providing a component.")}function l(e){var t=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),d(t,[{key:"render",value:function(){if(this.props.widget){var e=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this);return(0,m.isArray)(e)||(0,m.isBoolean)(e)||(0,m.isNumber)(e)||(0,m.isString)(e)||null===e||e&&e.type!==E.default?v.default.createElement(E.default,{children:e}):e}return h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this)}}]),t}(e);return t.displayName=(0,S.default)(e),t}function f(e){return!(e.displayName||e.name&&"_class"!==e.name)}Object.defineProperty(t,"__esModule",{value:!0});var d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)};t.default=s;var p=n(12),v=r(p),m=n(0),g=n(1),y=n(74),b=n(13),w=r(b),_=n(37),C=r(_),k=n(118),E=r(k),x=n(105),S=r(x)},function(e,t,n){"use strict";function r(e,t){(0,a.registerComponentForId)(e,(0,o.default)(t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(13),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(74)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(253),o=r(i),a=n(254),s=n(138),u=r(s),c=n(279),l=n(287),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l);window.Scrivito=f;var d=(0,u.default)();d?d.installRailsApi():(0,o.default)(),(0,a.initializeSdk)(d),(0,c.initializeEditors)()}]);
|
data/lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito_migration.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class InstallScrivitoMigration < Scrivito::Migration
|
2
2
|
def up
|
3
3
|
Page.create(_path: '/', title: 'Welcome to Scrivito!', body: [
|
4
|
-
HeadlineWidget.new(headline: '
|
4
|
+
HeadlineWidget.new(headline: 'Scrivito is a SaaS Content Management Service, built for digital agencies and medium to large sized businesses.'),
|
5
5
|
TextWidget.new(text: %{
|
6
6
|
<h3>Add content management to your website</h3>
|
7
7
|
<p>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.0.
|
4
|
+
version: 1.13.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Infopark AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -198,7 +198,9 @@ dependencies:
|
|
198
198
|
- - ">="
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: 0.9.2.2
|
201
|
-
description:
|
201
|
+
description: Scrivito is a SaaS Content Management Service, built for digital agencies
|
202
|
+
and medium to large sized businesses. For more information about Scrivito, please
|
203
|
+
visit https://www.scrivito.com/rails/documentation
|
202
204
|
email: info@scrivito.com
|
203
205
|
executables: []
|
204
206
|
extensions: []
|