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

* URI.js - Mutating URLs
*
* Version: 1.19.1
*
* Author: Rodney Rehm
* Web: http://medialize.github.io/URI.js/
*
* Licensed under
*   MIT License http://www.opensource.org/licenses/mit-license
*
*/!function(a,s){"use strict";t.exports?t.exports=s(n(137),n(138),n(139)):(i=[n(137),n(138),n(139)],void 0===(o="function"==typeof(r=s)?r.apply(e,i):r)||(t.exports=o))}(0,(function(t,e,n,r){"use strict";var i=r&&r.URI;function o(t,e){var n=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof o))return n?r?new o(t,e):new o(t):new o;if(void 0===t){if(n)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}if(null===t&&n)throw new TypeError("null is not a valid argument for URI");return this.href(t),void 0!==e?this.absoluteTo(e):this}o.version="1.19.1";var a=o.prototype,s=Object.prototype.hasOwnProperty;function u(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function l(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function c(t){return"Array"===l(t)}function f(t,e){var n,r,i={};if("RegExp"===l(e))i=null;else if(c(e))for(n=0,r=e.length;n<r;n++)i[e[n]]=!0;else i[e]=!0;for(n=0,r=t.length;n<r;n++){(i&&void 0!==i[t[n]]||!i&&e.test(t[n]))&&(t.splice(n,1),r--,n--)}return t}function d(t,e){var n,r;if(c(e)){for(n=0,r=e.length;n<r;n++)if(!d(t,e[n]))return!1;return!0}var i=l(e);for(n=0,r=t.length;n<r;n++)if("RegExp"===i){if("string"==typeof t[n]&&t[n].match(e))return!0}else if(t[n]===e)return!0;return!1}function p(t,e){if(!c(t)||!c(e))return!1;if(t.length!==e.length)return!1;t.sort(),e.sort();for(var n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function h(t){return t.replace(/^\/+|\/+$/g,"")}function v(t){return escape(t)}function m(t){return encodeURIComponent(t).replace(/[!'()*]/g,v).replace(/\*/g,"%2A")}o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return o.domAttributes[e]}},o.encode=m,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=m,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(t,e){var n=o.encode(t+"");return void 0===e&&(e=o.escapeQuerySpace),e?n.replace(/%20/g,"+"):n},o.decodeQuery=function(t,e){t+="",void 0===e&&(e=o.escapeQuerySpace);try{return o.decode(e?t.replace(/\+/g,"%20"):t)}catch(e){return t}};var y,g={encode:"encode",decode:"decode"},b=function(t,e){return function(n){try{return o[e](n+"").replace(o.characters[t][e].expression,(function(n){return o.characters[t][e].map[n]}))}catch(t){return n}}};for(y in g)o[y+"PathSegment"]=b("pathname",g[y]),o[y+"UrnPathSegment"]=b("urnpath",g[y]);var w=function(t,e,n){return function(r){var i;i=n?function(t){return o[e](o[n](t))}:o[e];for(var a=(r+"").split(t),s=0,u=a.length;s<u;s++)a[s]=i(a[s]);return a.join(t)}};function _(t){return function(e,n){return void 0===e?this._parts[t]||"":(this._parts[t]=e||null,this.build(!n),this)}}function O(t,e){return function(n,r){return void 0===n?this._parts[t]||"":(null!==n&&(n+="").charAt(0)===e&&(n=n.substring(1)),this._parts[t]=n,this.build(!r),this)}}o.decodePath=w("/","decodePathSegment"),o.decodeUrnPath=w(":","decodeUrnPathSegment"),o.recodePath=w("/","encodePathSegment","decode"),o.recodeUrnPath=w(":","encodeUrnPathSegment","decode"),o.encodeReserved=b("reserved","encode"),o.parse=function(t,e){var n;return e||(e={preventInvalidHostname:o.preventInvalidHostname}),(n=t.indexOf("#"))>-1&&(e.fragment=t.substring(n+1)||null,t=t.substring(0,n)),(n=t.indexOf("?"))>-1&&(e.query=t.substring(n+1)||null,t=t.substring(0,n)),"//"===t.substring(0,2)?(e.protocol=null,t=t.substring(2),t=o.parseAuthority(t,e)):(n=t.indexOf(":"))>-1&&(e.protocol=t.substring(0,n)||null,e.protocol&&!e.protocol.match(o.protocol_expression)?e.protocol=void 0:"//"===t.substring(n+1,n+3)?(t=t.substring(n+3),t=o.parseAuthority(t,e)):(t=t.substring(n+1),e.urn=!0)),e.path=t,e},o.parseHost=function(t,e){t||(t="");var n,r,i=(t=t.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=t.length),"["===t.charAt(0))n=t.indexOf("]"),e.hostname=t.substring(1,n)||null,e.port=t.substring(n+2,i)||null,"/"===e.port&&(e.port=null);else{var a=t.indexOf(":"),s=t.indexOf("/"),u=t.indexOf(":",a+1);-1!==u&&(-1===s||u<s)?(e.hostname=t.substring(0,i)||null,e.port=null):(r=t.substring(0,i).split(":"),e.hostname=r[0]||null,e.port=r[1]||null)}return e.hostname&&"/"!==t.substring(i).charAt(0)&&(i++,t="/"+t),e.preventInvalidHostname&&o.ensureValidHostname(e.hostname,e.protocol),e.port&&o.ensureValidPort(e.port),t.substring(i)||"/"},o.parseAuthority=function(t,e){return t=o.parseUserinfo(t,e),o.parseHost(t,e)},o.parseUserinfo=function(t,e){var n,r=t.indexOf("/"),i=t.lastIndexOf("@",r>-1?r:t.length-1);return i>-1&&(-1===r||i<r)?(n=t.substring(0,i).split(":"),e.username=n[0]?o.decode(n[0]):null,n.shift(),e.password=n[0]?o.decode(n.join(":")):null,t=t.substring(i+1)):(e.username=null,e.password=null),t},o.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,i,a={},u=t.split("&"),l=u.length,c=0;c<l;c++)n=u[c].split("="),r=o.decodeQuery(n.shift(),e),i=n.length?o.decodeQuery(n.join("="),e):null,s.call(a,r)?("string"!=typeof a[r]&&null!==a[r]||(a[r]=[a[r]]),a[r].push(i)):a[r]=i;return a},o.build=function(t){var e="";return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//"),e+=o.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&"string"==typeof t.hostname&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},o.buildHost=function(t){var e="";return t.hostname?(o.ip6_expression.test(t.hostname)?e+="["+t.hostname+"]":e+=t.hostname,t.port&&(e+=":"+t.port),e):""},o.buildAuthority=function(t){return o.buildUserinfo(t)+o.buildHost(t)},o.buildUserinfo=function(t){var e="";return t.username&&(e+=o.encode(t.username)),t.password&&(e+=":"+o.encode(t.password)),e&&(e+="@"),e},o.buildQuery=function(t,e,n){var r,i,a,u,l="";for(i in t)if(s.call(t,i)&&i)if(c(t[i]))for(r={},a=0,u=t[i].length;a<u;a++)void 0!==t[i][a]&&void 0===r[t[i][a]+""]&&(l+="&"+o.buildQueryParameter(i,t[i][a],n),!0!==e&&(r[t[i][a]+""]=!0));else void 0!==t[i]&&(l+="&"+o.buildQueryParameter(i,t[i],n));return l.substring(1)},o.buildQueryParameter=function(t,e,n){return o.encodeQuery(t,n)+(null!==e?"="+o.encodeQuery(e,n):"")},o.addQuery=function(t,e,n){if("object"==typeof e)for(var r in e)s.call(e,r)&&o.addQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===t[e])return void(t[e]=n);"string"==typeof t[e]&&(t[e]=[t[e]]),c(n)||(n=[n]),t[e]=(t[e]||[]).concat(n)}},o.setQuery=function(t,e,n){if("object"==typeof e)for(var r in e)s.call(e,r)&&o.setQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");t[e]=void 0===n?null:n}},o.removeQuery=function(t,e,n){var r,i,a;if(c(e))for(r=0,i=e.length;r<i;r++)t[e[r]]=void 0;else if("RegExp"===l(e))for(a in t)e.test(a)&&(t[a]=void 0);else if("object"==typeof e)for(a in e)s.call(e,a)&&o.removeQuery(t,a,e[a]);else{if("string"!=typeof e)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===l(n)?!c(t[e])&&n.test(t[e])?t[e]=void 0:t[e]=f(t[e],n):t[e]!==String(n)||c(n)&&1!==n.length?c(t[e])&&(t[e]=f(t[e],n)):t[e]=void 0:t[e]=void 0}},o.hasQuery=function(t,e,n,r){switch(l(e)){case"String":break;case"RegExp":for(var i in t)if(s.call(t,i)&&e.test(i)&&(void 0===n||o.hasQuery(t,i,n)))return!0;return!1;case"Object":for(var a in e)if(s.call(e,a)&&!o.hasQuery(t,a,e[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(l(n)){case"Undefined":return e in t;case"Boolean":return n===Boolean(c(t[e])?t[e].length:t[e]);case"Function":return!!n(t[e],e,t);case"Array":return!!c(t[e])&&(r?d:p)(t[e],n);case"RegExp":return c(t[e])?!!r&&d(t[e],n):Boolean(t[e]&&t[e].match(n));case"Number":n=String(n);case"String":return c(t[e])?!!r&&d(t[e],n):t[e]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var t=[],e=[],n=0,r=0;r<arguments.length;r++){var i=new o(arguments[r]);t.push(i);for(var a=i.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&e.push(a[s]),a[s]&&n++}if(!e.length||!n)return new o("");var u=new o("").segment(e);return""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||u.path("/"+u.path()),u.normalize()},o.commonPath=function(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n++)if(t.charAt(n)!==e.charAt(n)){n--;break}return n<1?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(n)&&"/"===e.charAt(n)||(n=t.substring(0,n).lastIndexOf("/")),t.substring(0,n+1))},o.withinString=function(t,e,n){n||(n={});var r=n.start||o.findUri.start,i=n.end||o.findUri.end,a=n.trim||o.findUri.trim,s=n.parens||o.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var l=r.exec(t);if(!l)break;var c=l.index;if(n.ignoreHtml){var f=t.slice(Math.max(c-3,0),c);if(f&&u.test(f))continue}for(var d=c+t.slice(c).search(i),p=t.slice(c,d),h=-1;;){var v=s.exec(p);if(!v)break;var m=v.index+v[0].length;h=Math.max(h,m)}if(!((p=h>-1?p.slice(0,h)+p.slice(h).replace(a,""):p.replace(a,"")).length<=l[0].length||n.ignore&&n.ignore.test(p))){var y=e(p,c,d=c+p.length,t);void 0!==y?(y=String(y),t=t.slice(0,c)+y+t.slice(d),r.lastIndex=c+y.length):r.lastIndex=d}}return r.lastIndex=0,t},o.ensureValidHostname=function(e,n){var r=!!e,i=!1;if(!!n&&(i=d(o.hostProtocols,n)),i&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(e&&e.match(o.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(e).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(t){if(t){var e=Number(t);if(!(/^[0-9]+$/.test(e)&&e>0&&e<65536))throw new TypeError('Port "'+t+'" is not a valid port')}},o.noConflict=function(t){if(t){var e={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(e.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(e.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(e.SecondLevelDomains=r.SecondLevelDomains.noConflict()),e}return r.URI===this&&(r.URI=i),this},a.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new o(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=_("protocol"),a.username=_("username"),a.password=_("password"),a.hostname=_("hostname"),a.port=_("port"),a.query=O("query","?"),a.fragment=O("fragment","#"),a.search=function(t,e){var n=this.query(t,e);return"string"==typeof n&&n.length?"?"+n:n},a.hash=function(t,e){var n=this.fragment(t,e);return"string"==typeof n&&n.length?"#"+n:n},a.pathname=function(t,e){if(void 0===t||!0===t){var n=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?o.decodeUrnPath:o.decodePath)(n):n}return this._parts.urn?this._parts.path=t?o.recodeUrnPath(t):"":this._parts.path=t?o.recodePath(t):"/",this.build(!e),this},a.path=a.pathname,a.href=function(t,e){var n;if(void 0===t)return this.toString();this._string="",this._parts=o._parts();var r=t instanceof o,i="object"==typeof t&&(t.hostname||t.path||t.pathname);t.nodeName&&(t=t[o.getDomAttribute(t)]||"",i=!1);if(!r&&i&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=o.parse(String(t),this._parts);else{if(!r&&!i)throw new TypeError("invalid input");var a=r?t._parts:t;for(n in a)"query"!==n&&s.call(this._parts,n)&&(this._parts[n]=a[n]);a.query&&this.query(a.query,!1)}return this.build(!e),this},a.is=function(t){var e=!1,r=!1,i=!1,a=!1,s=!1,u=!1,l=!1,c=!this._parts.urn;switch(this._parts.hostname&&(c=!1,r=o.ip4_expression.test(this._parts.hostname),i=o.ip6_expression.test(this._parts.hostname),s=(a=!(e=r||i))&&n&&n.has(this._parts.hostname),u=a&&o.idn_expression.test(this._parts.hostname),l=a&&o.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return c;case"absolute":return!c;case"domain":case"name":return a;case"sld":return s;case"ip":return e;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return i;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return l}return null};var k=a.protocol,x=a.port,C=a.hostname;a.protocol=function(t,e){if(t&&!(t=t.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return k.call(this,t,e)},a.scheme=a.protocol,a.port=function(t,e){return this._parts.urn?void 0===t?"":this:(void 0!==t&&(0===t&&(t=null),t&&(":"===(t+="").charAt(0)&&(t=t.substring(1)),o.ensureValidPort(t))),x.call(this,t,e))},a.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(t,n))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');t=n.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(t,this._parts.protocol)}return C.call(this,t,e)},a.origin=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=o(t);return this.protocol(r.protocol()).authority(r.authority()).build(!e),this},a.host=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},a.authority=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},a.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=o.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==t[t.length-1]&&(t+="@"),o.parseUserinfo(t,this._parts),this.build(!e),this},a.resource=function(t,e){var n;return void 0===t?this.path()+this.search()+this.hash():(n=o.parse(t),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!e),this)},a.subdomain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),a=new RegExp("^"+u(i));if(t&&"."!==t.charAt(t.length-1)&&(t+="."),-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");return t&&o.ensureValidHostname(t,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,t),this.build(!e),this},a.domain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(e).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!t)throw new TypeError("cannot set domain empty");if(-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(t,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=t;else{var i=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,t)}return this.build(!e),this},a.tld=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(r+1);return!0!==e&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}var o;if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(t))throw new TypeError('TLD "'+t+'" contains characters other than [A-Z0-9]');o=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}return this.build(!e),this},a.directory=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return t?o.decodePath(r):r}var i=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,i),s=new RegExp("^"+u(a));return this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=o.recodePath(t),this._parts.path=this._parts.path.replace(s,t),this.build(!e),this},a.filename=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("string"!=typeof t){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return t?o.decodePathSegment(r):r}var i=!1;"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(i=!0);var a=new RegExp(u(this.filename())+"$");return t=o.recodePath(t),this._parts.path=this._parts.path.replace(a,t),i?this.normalizePath(e):this.build(!e),this},a.suffix=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,i=this.filename(),a=i.lastIndexOf(".");return-1===a?"":(n=i.substring(a+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",t?o.decodePathSegment(r):r)}"."===t.charAt(0)&&(t=t.substring(1));var s,l=this.suffix();if(l)s=t?new RegExp(u(l)+"$"):new RegExp(u("."+l)+"$");else{if(!t)return this;this._parts.path+="."+o.recodePath(t)}return s&&(t=o.recodePath(t),this._parts.path=this._parts.path.replace(s,t)),this.build(!e),this},a.segment=function(t,e,n){var r=this._parts.urn?":":"/",i=this.path(),o="/"===i.substring(0,1),a=i.split(r);if(void 0!==t&&"number"!=typeof t&&(n=e,e=t,t=void 0),void 0!==t&&"number"!=typeof t)throw new Error('Bad segment "'+t+'", must be 0-based integer');if(o&&a.shift(),t<0&&(t=Math.max(a.length+t,0)),void 0===e)return void 0===t?a:a[t];if(null===t||void 0===a[t])if(c(e)){a=[];for(var s=0,u=e.length;s<u;s++)(e[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(h(e[s])))}else(e||"string"==typeof e)&&(e=h(e),""===a[a.length-1]?a[a.length-1]=e:a.push(e));else e?a[t]=h(e):a.splice(t,1);return o&&a.unshift(""),this.path(a.join(r),n)},a.segmentCoded=function(t,e,n){var r,i,a;if("number"!=typeof t&&(n=e,e=t,t=void 0),void 0===e){if(c(r=this.segment(t,e,n)))for(i=0,a=r.length;i<a;i++)r[i]=o.decode(r[i]);else r=void 0!==r?o.decode(r):void 0;return r}if(c(e))for(i=0,a=e.length;i<a;i++)e[i]=o.encode(e[i]);else e="string"==typeof e||e instanceof String?o.encode(e):e;return this.segment(t,e,n)};var E=a.query;return a.query=function(t,e){if(!0===t)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=t.call(this,n);return this._parts.query=o.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=o.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):E.call(this,t,e)},a.setQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof t||t instanceof String)r[t]=void 0!==e?e:null;else{if("object"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var i in t)s.call(t,i)&&(r[i]=t[i])}return this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.addQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(r,t,void 0===e?null:e),this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.removeQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(r,t,e),this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.hasQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(r,t,e,n)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},a.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},a.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},a.normalizePath=function(t){var e,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;var r,i,a="";for("/"!==(n=o.recodePath(n)).charAt(0)&&(e=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),e&&(a=n.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(r=n.search(/\/\.\.(\/|$)/));)0!==r?(-1===(i=n.substring(0,r).lastIndexOf("/"))&&(i=r),n=n.substring(0,i)+n.substring(r+3)):n=n.substring(3);return e&&this.is("relative")&&(n=a+n.substring(1)),this._parts.path=n,this.build(!t),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},a.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var t=o.encode,e=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=t,o.decode=e}return this},a.unicode=function(){var t=o.encode,e=o.decode;o.encode=m,o.decode=unescape;try{this.normalize()}finally{o.encode=t,o.decode=e}return this},a.readable=function(){var e=this.clone();e.username("").password("").normalize();var n="";if(e._parts.protocol&&(n+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&t?(n+=t.toUnicode(e._parts.hostname),e._parts.port&&(n+=":"+e._parts.port)):n+=e.host()),e._parts.hostname&&e._parts.path&&"/"!==e._parts.path.charAt(0)&&(n+="/"),n+=e.path(!0),e._parts.query){for(var r="",i=0,a=e._parts.query.split("&"),s=a.length;i<s;i++){var u=(a[i]||"").split("=");r+="&"+o.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(r+="="+o.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=o.decodeQuery(e.hash(),!0)},a.absoluteTo=function(t){var e,n,r,i=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t instanceof o||(t=new o(t)),i._parts.protocol)return i;if(i._parts.protocol=t._parts.protocol,this._parts.hostname)return i;for(n=0;r=a[n];n++)i._parts[r]=t._parts[r];return i._parts.path?(".."===i._parts.path.substring(-2)&&(i._parts.path+="/"),"/"!==i.path().charAt(0)&&(e=(e=t.directory())||(0===t.path().indexOf("/")?"/":""),i._parts.path=(e?e+"/":"")+i._parts.path,i.normalizePath())):(i._parts.path=t._parts.path,i._parts.query||(i._parts.query=t._parts.query)),i.build(),i},a.relativeTo=function(t){var e,n,r,i,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t=new o(t).normalize(),e=s._parts,n=t._parts,i=s.path(),a=t.path(),"/"!==i.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(e.protocol===n.protocol&&(e.protocol=null),e.username!==n.username||e.password!==n.password)return s.build();if(null!==e.protocol||null!==e.username||null!==e.password)return s.build();if(e.hostname!==n.hostname||e.port!==n.port)return s.build();if(e.hostname=null,e.port=null,i===a)return e.path="",s.build();if(!(r=o.commonPath(i,a)))return s.build();var u=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return e.path=u+e.path.substring(r.length)||"./",s.build()},a.equals=function(t){var e,n,r,i,a,u=this.clone(),l=new o(t),f={};if(u.normalize(),l.normalize(),u.toString()===l.toString())return!0;if(r=u.query(),i=l.query(),u.query(""),l.query(""),u.toString()!==l.toString())return!1;if(r.length!==i.length)return!1;for(a in e=o.parseQuery(r,this._parts.escapeQuerySpace),n=o.parseQuery(i,this._parts.escapeQuerySpace),e)if(s.call(e,a)){if(c(e[a])){if(!p(e[a],n[a]))return!1}else if(e[a]!==n[a])return!1;f[a]=!0}for(a in n)if(s.call(n,a)&&!f[a])return!1;return!0},a.preventInvalidHostname=function(t){return this._parts.preventInvalidHostname=!!t,this},a.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},a.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},o}))},126:function(t,e,n){var r=n(63);function i(t,e){return"function"==typeof e?r(e):e}t.exports=function(t){try{return JSON.stringify(t,i,2)}catch(e){return String(t)}}},127:function(t,e,n){var r=n(36),i=n(71);t.exports=r("Boolean",i)},128:function(t,e,n){var r=n(36),i=n(45);t.exports=r("Nil",i)},129:function(t,e,n){var r=n(36),i=n(92);t.exports=r("Number",i)},13:function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}}(),t.exports=n(226)},130:function(t,e,n){var r=n(34);t.exports=function(t){return r(t)&&"union"===t.meta.kind}},131:function(t,e,n){var r=n(21),i=(n(38),n(33),n(29)),o=n(48),a=n(49),s=n(50),u=n(47);function l(t){return"Array<"+i(t)+">"}function c(t,e){var n=e||l(t),c=(i(t),o(t));function f(e,n){if(c)return e;for(var r=!0,i=[],o=0,s=e.length;o<s;o++){var u=e[o],l=a(t,u,null);r=r&&u===l,i.push(l)}return r&&(i=e),i}return f.meta={kind:"list",type:t,name:e,identity:c},f.displayName=n,f.is=function(e){return u(e)&&e.every((function(e){return s(e,t)}))},f.update=function(t,e){return f(r.update(t,e))},f}c.getDefaultName=l,t.exports=c},132:function(t,e,n){var r=n(29);t.exports=function(t){return"{"+Object.keys(t).map((function(e){return e+": "+r(t[e])})).join(", ")+"}"}},133:function(t,e,n){n(21),n(33),n(47);var r=n(96),i=(n(199),n(200),n(46)),o=n(93),a=n(201);t.exports=function(t,e,n){var s={},u={},l=[],c={};e.forEach((function(t,e){var n,o,f,d=a(t),p=d.unrefinedType;n=l,o=d.predicates,Array.prototype.push.apply(n,o),r(s,i(f=p)?f:f.meta.props),r(u,p.prototype),r(c,function(t){return i(t)?null:t.meta.defaultProps}(p),!0)})),(n=t.getOptions(n)).defaultProps=r(c,n.defaultProps,!0);var f=function(t,e,n){var r=t.reduce((function(t,e){return o(t,e)}),e);return n&&(r.displayName=n,r.meta.name=n),r}(l,t(s,{strict:n.strict,defaultProps:n.defaultProps}),n.name);return r(f.prototype,u),f}},134:function(t,e,n){var r=n(21),i=(n(38),n(33),n(29)),o=n(48),a=n(47),s=n(49),u=n(50);function l(t){return"["+t.map(i).join(", ")+"]"}function c(t,e){var n=e||l(t),i=t.every(o);function c(e,n){if(i)return e;for(var r=!0,o=[],a=0,u=t.length;a<u;a++){var l=t[a],c=e[a],f=s(l,c,null);r=r&&c===f,o.push(f)}return r&&(o=e),o}return c.meta={kind:"tuple",types:t,name:e,identity:i},c.displayName=n,c.is=function(e){return a(e)&&e.length===t.length&&t.every((function(t,n){return u(e[n],t)}))},c.update=function(t,e){return c(r.update(t,e))},c}c.getDefaultName=l,t.exports=c},135:function(t,e){t.exports=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},136:function(t,e){},137:function(t,e,n){(function(t,r){var i;/*! https://mths.be/punycode v1.4.0 by @mathias */!function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,l=/^xn--/,c=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function v(t){throw new RangeError(d[t])}function m(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function y(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+m((t=t.replace(f,".")).split("."),e).join(".")}function g(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function b(t){return m(t,(function(t){var e="";return t>65535&&(e+=h((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=h(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function _(t,e,n){var r=0;for(t=n?p(t/700):t>>1,t+=p(t/e);t>455;r+=36)t=p(t/35);return p(r+36*t/(t+38))}function O(t){var e,n,r,i,o,a,s,l,c,f,d,h=[],m=t.length,y=0,g=128,w=72;for((n=t.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&v("not-basic"),h.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<m;){for(o=y,a=1,s=36;i>=m&&v("invalid-input"),((l=(d=t.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||l>p((u-y)/a))&&v("overflow"),y+=l*a,!(l<(c=s<=w?1:s>=w+26?26:s-w));s+=36)a>p(u/(f=36-c))&&v("overflow"),a*=f;w=_(y-o,e=h.length+1,0==o),p(y/e)>u-g&&v("overflow"),g+=p(y/e),y%=e,h.splice(y++,0,g)}return b(h)}function k(t){var e,n,r,i,o,a,s,l,c,f,d,m,y,b,O,k=[];for(m=(t=g(t)).length,e=128,n=0,o=72,a=0;a<m;++a)(d=t[a])<128&&k.push(h(d));for(r=i=k.length,i&&k.push("-");r<m;){for(s=u,a=0;a<m;++a)(d=t[a])>=e&&d<s&&(s=d);for(s-e>p((u-n)/(y=r+1))&&v("overflow"),n+=(s-e)*y,e=s,a=0;a<m;++a)if((d=t[a])<e&&++n>u&&v("overflow"),d==e){for(l=n,c=36;!(l<(f=c<=o?1:c>=o+26?26:c-o));c+=36)O=l-f,b=36-f,k.push(h(w(f+O%b,0))),l=p(O/b);k.push(h(w(l,0))),o=_(n,y,r==i),n=0,++r}++n,++e}return k.join("")}s={version:"1.3.2",ucs2:{decode:g,encode:b},decode:O,encode:k,toASCII:function(t){return y(t,(function(t){return c.test(t)?"xn--"+k(t):t}))},toUnicode:function(t){return y(t,(function(t){return l.test(t)?O(t.slice(4).toLowerCase()):t}))}},void 0===(i=function(){return s}.call(e,n,e,t))||(t.exports=i)}()}).call(this,n(79)(t),n(41))},138:function(t,e,n){var r,i;

/*!

* URI.js - Mutating URLs
* IPv6 Support
*
* Version: 1.19.1
*
* Author: Rodney Rehm
* Web: http://medialize.github.io/URI.js/
*
* Licensed under
*   MIT License http://www.opensource.org/licenses/mit-license
*
*/!function(o,a){"use strict";t.exports?t.exports=a():void 0===(i="function"==typeof(r=a)?r.call(e,n,e,t):r)||(t.exports=i)}(0,(function(t){"use strict";var e=t&&t.IPv6;return{best:function(t){var e,n,r=t.toLowerCase().split(":"),i=r.length,o=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[i-1]&&""===r[i-2]&&r.pop(),-1!==r[(i=r.length)-1].indexOf(".")&&(o=7),e=0;e<i&&""!==r[e];e++);if(e<o)for(r.splice(e,1,"0000");r.length<o;)r.splice(e,0,"0000");for(var a=0;a<o;a++){n=r[a].split("");for(var s=0;s<3&&("0"===n[0]&&n.length>1);s++)n.splice(0,1);r[a]=n.join("")}var u=-1,l=0,c=0,f=-1,d=!1;for(a=0;a<o;a++)d?"0"===r[a]?c+=1:(d=!1,c>l&&(u=f,l=c)):"0"===r[a]&&(d=!0,f=a,c=1);c>l&&(u=f,l=c),l>1&&r.splice(u,l,""),i=r.length;var p="";for(""===r[0]&&(p=":"),a=0;a<i&&(p+=r[a],a!==i-1);a++)p+=":";return""===r[i-1]&&(p+=":"),p},noConflict:function(){return t.IPv6===this&&(t.IPv6=e),this}}}))},139:function(t,e,n){var r,i;

/*!

* URI.js - Mutating URLs
* Second Level Domain (SLD) Support
*
* Version: 1.19.1
*
* Author: Rodney Rehm
* Web: http://medialize.github.io/URI.js/
*
* Licensed under
*   MIT License http://www.opensource.org/licenses/mit-license
*
*/!function(o,a){"use strict";t.exports?t.exports=a():void 0===(i="function"==typeof(r=a)?r.call(e,n,e,t):r)||(t.exports=i)}(0,(function(t){"use strict";var e=t&&t.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return!1;var i=n.list[t.slice(e+1)];return!!i&&i.indexOf(" "+t.slice(r+1,e)+" ")>=0},is:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;if(t.lastIndexOf(".",e-1)>=0)return!1;var r=n.list[t.slice(e+1)];return!!r&&r.indexOf(" "+t.slice(0,e)+" ")>=0},get:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return null;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return null;var i=n.list[t.slice(e+1)];return i?i.indexOf(" "+t.slice(r+1,e)+" ")<0?null:t.slice(r+1):null},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=e),this}};return n}))},14:function(t,e,n){"use strict";var r;function i(t){r=t}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},140:function(t,e){},141:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(55),i=n(219),o=n(100),a=function(){function t(){}return t.sanitize=function(e){var n={};if(!e||"object"!=typeof e)return n;var a=["bold","italic","underline","strike","code","blockquote","code-block","renderAsBlock"],s=["background","color"],u=e.font,l=e.size,c=e.link,f=e.script,d=e.list,p=e.header,h=e.align,v=e.direction,m=e.indent,y=e.mentions,g=e.mention,b=e.width,w=e.target,_=a.concat(s,["font","size","link","script","list","header","align","direction","indent","mentions","mention","width"]);if(a.forEach((function(t){var r=e[t];r&&(n[t]=!!r)})),s.forEach((function(r){var i=e[r];i&&(t.IsValidHexColor(i+"")||t.IsValidColorLiteral(i+""))&&(n[r]=i)})),u&&t.IsValidFontName(u+"")&&(n.font=u),l&&t.IsValidSize(l+"")&&(n.size=l),b&&t.IsValidWidth(b+"")&&(n.width=b),c&&(n.link=o.sanitize(c+"")),w&&t.isValidTarget(w)&&(n.target=w),f!==r.ScriptType.Sub&&r.ScriptType.Super!==f||(n.script=f),d!==r.ListType.Bullet&&d!==r.ListType.Ordered&&d!==r.ListType.Checked&&d!==r.ListType.Unchecked||(n.list=d),Number(p)&&(n.header=Math.min(Number(p),6)),h!==r.AlignType.Center&&h!==r.AlignType.Right&&h!==r.AlignType.Justify||(n.align=h),v===r.DirectionType.Rtl&&(n.direction=v),m&&Number(m)&&(n.indent=Math.min(Number(m),30)),y&&g){var O=i.MentionSanitizer.sanitize(g);Object.keys(O).length>0&&(n.mentions=!!y,n.mention=g)}return Object.keys(e).reduce((function(t,n){return-1===_.indexOf(n)&&(t[n]=e[n]),t}),n)},t.IsValidHexColor=function(t){return!!t.match(/^#([0-9A-F]{6}|[0-9A-F]{3})$/i)},t.IsValidColorLiteral=function(t){return!!t.match(/^[a-z]{1,50}$/i)},t.IsValidFontName=function(t){return!!t.match(/^[a-z\s0-9\- ]{1,30}$/i)},t.IsValidSize=function(t){return!!t.match(/^[a-z0-9\-]{1,20}$/i)},t.IsValidWidth=function(t){return!!t.match(/^[0-9]*(px|em|%)?$/)},t.isValidTarget=function(t){return!!t.match(/^[_a-zA-Z0-9\-]{1,50}$/)},t}();e.OpAttributeSanitizer=a},142:function(t,e,n){"use strict";var r;function i(t){return o(r.Html).reduce(s,t)}function o(t){var e=[["&","&amp;"],["<","&lt;"],[">","&gt;"],['"',"&quot;"],["'","&#x27;"],["\\/","&#x2F;"],["\\(","&#40;"],["\\)","&#41;"]];return t===r.Html?e.filter((function(t){var e=t[0];t[1];return-1===e.indexOf("(")&&-1===e.indexOf(")")})):e.filter((function(t){var e=t[0];t[1];return-1===e.indexOf("/")}))}function a(t,e){return t.replace(new RegExp(e[0],"g"),e[1])}function s(t,e){return t.replace(new RegExp(e[1],"g"),e[0].replace("\\",""))}Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Html=0]="Html",t[t.Url=1]="Url"}(r||(r={})),e.makeStartTag=function(t,e){if(void 0===e&&(e=void 0),!t)return"";var n="";e&&(n=[].concat(e).map((function(t){return t.key+(t.value?'="'+t.value+'"':"")})).join(" "));var r=">";return"img"!==t&&"br"!==t||(r="/>"),n?"<"+t+" "+n+r:"<"+t+r},e.makeEndTag=function(t){return void 0===t&&(t=""),t&&"</"+t+">"||""},e.decodeHtml=i,e.encodeHtml=function(t,e){return void 0===e&&(e=!0),e&&(t=i(t)),o(r.Html).reduce(a,t)},e.encodeLink=function(t){var e=o(r.Url),n=e.reduce(s,t);return e.reduce(a,n)}},143:function(t,e,n){var r=n(229),i=n(58);function o(t,e){i.Object.is(t)&&(t=i.struct(t));var n="subtype"===t.meta.kind;var r={},o=n?t.meta.type:t;if("struct"===o.meta.kind||"interface"===o.meta.kind){var a=o.meta.props;Object.keys(a).forEach((function(t){var e,n=a[t];(e=function(){}).tcomb=n,r[t]=e}))}else 0;return n&&(r.__subtype__=function(){},r.__subtype__.predicate=t.meta.predicate),r}var a=i.irreducible("ReactElement",r.isValidElement),s=i.irreducible("ReactNode",(function(t){return i.Str.is(t)||i.Num.is(t)||a.is(t)||i.list(s).is(t)})),u=i.irreducible("ReactChild",(function(t){return s.is(t)||i.Bool.is(t)||i.Nil.is(t)})),l=i.irreducible("ReactChildren",(function(t){return u.is(t)||i.list(l).is(t)}));i.ReactElement=a,i.ReactNode=s,i.ReactChild=u,i.ReactChildren=l,t.exports={t:i,propTypes:o,props:function(t,e){return function(e){e.propTypes=o(t)}},ReactElement:a,ReactNode:s,ReactChild:u,ReactChildren:l,ReactElementT:a,ReactNodeT:s,ReactChildT:u,ReactChildrenT:l}},149:function(t,e,n){"use strict";(function(t){var r=n(150),i=setTimeout;function o(){}function a(t){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function s(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,a._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void l(e.promise,t)}u(e.promise,r)}else(1===t._state?u:l)(e.promise,t._value)}))):t._deferreds.push(e)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof a)return t._state=3,t._value=e,void c(t);if("function"==typeof n)return void d((r=n,i=e,function(){r.apply(i,arguments)}),t)}t._state=1,t._value=e,c(t)}catch(e){l(t,e)}var r,i}function l(t,e){t._state=2,t._value=e,c(t)}function c(t){2===t._state&&0===t._deferreds.length&&a._immediateFn((function(){t._handled||a._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)s(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function d(t,e){var n=!1;try{t((function(t){n||(n=!0,u(e,t))}),(function(t){n||(n=!0,l(e,t))}))}catch(t){if(n)return;n=!0,l(e,t)}}a.prototype.catch=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var n=new this.constructor(o);return s(this,new f(t,e,n)),n},a.prototype.finally=r.a,a.all=function(t){return new a((function(e,n){if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){o(t,e)}),n)}r[t]=a,0==--i&&e(r)}catch(t){n(t)}}for(var a=0;a<r.length;a++)o(a,r[a])}))},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a((function(e){e(t)}))},a.reject=function(t){return new a((function(e,n){n(t)}))},a.race=function(t){return new a((function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)}))},a._immediateFn="function"==typeof t&&function(e){t(e)}||function(t){i(t,0)},a._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},e.a=a}).call(this,n(208).setImmediate)},150:function(t,e,n){"use strict";e.a=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))}},151:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),i={currentWorkspaceId:r.a,getContentStateId:r.a,isInPlaceEditingActive:r.a,isComparisonActive:r.a,translate:r.a,startLinkResolutionFor:r.b,finishLinkResolutionFor:r.b,retrieveObj:r.b,retrieveObjQuery:r.b,retrieveFacetQuery:r.b,retrieveBinaryMetadata:r.b,retrieveBinaryUrls:r.b,retrieveObjFieldDiffs:r.b,copyBinary:r.b,uploadBinary:r.b,insertWidget:r.b,navigateToExternalUrl:r.b,openInNewUiWindow:r.b,configureContentBrowser:r.b,openContentBrowser:r.b,updateMenu:r.b,openCustomDialog:r.b,setAppAdapter:r.b,configureTenant:r.b,showWidgetMenu:r.b,showWidgetlistMenu:r.b,showChildListMenu:r.b,registerEmptyWidgetlistDropZoneInDom:r.b,registerWidgetDropZoneInDom:r.b,startDrag:r.b,endDrag:r.b,dragTo:r.b,drop:r.b}},152:function(t,e,n){var r,i,o,a,s,u;i=n(211),r=n(212),o=i.extensions.anchor.extend({name:"scrivito_anchor",proxy:null,contentDefault:'<i class="scrivito_customer_icon sci_link"></i>',init:function(){var t;return i.extensions.anchor.prototype.init.apply(this,arguments),this.targetCheckbox=null!=(t=this.getEditorOption("anchor"))?t.targetCheckbox:void 0},showForm:function(t){return i.extensions.anchor.prototype.showForm.call(this,t),this.updateRelUi(t)},handleClick:function(t){var e,n,r,o,a,s;return t.preventDefault(),t.stopPropagation(),this.proxy.edQuery(".scrivito_medium_link_collapse").removeClass("show"),this.isDisplayed()||(a=i.selection.getSelectionRange(this.document),o=i.selection.getSelectedParentElement(a),e=s=r=null,(n=i.util.getClosestTag(o,"a"))&&(e=(n=this.proxy.edQuery(n)).attr("href")||null,s=n.attr("target")||null,r=n.attr("rel")||null),this.showForm({value:e,target:s,rel:r})),!1},getTemplate:function(){var t,e;return e="",t="scrivito_target_checkbox_not_available",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_icon scrivito_link_icon scrivito_icon_new_window scrivito_active_open_in_new_tab ' title='Open link in new tab'></i>\n    <i class='scrivito_icon scrivito_link_icon scrivito_icon_new_window' title='Open link in new tab'></i>\n  </label>\n</div>",t=""),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection' title='Open Content Browser'></i>\n<input type='text' class='medium-editor-toolbar-input "+t+"' placeholder='"+this.placeholderText+"'>\n<div class='medium-editor-toolbar-form-wrapper'>\n  "+e+"\n  <i class='scrivito_icon scrivito_icon_gear' data-scrivito-medium-editor=\"rel_button\" title='SEO settings'></i>\n  <span class='medium-editor-toolbar-save'>Save</span>\n  <i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross' style='display: none'></i>\n</div>\n<div class='scrivito_medium_link_collapse'>\n  <div class='scrivito_medium_link_collapse_body'>\n    <div class='scrivito_medium_detail_label'>Rel attribute value</div>\n    <div class='scrivito_medium_notice_body'>\n      Search engines use a link's rel attribute to determine how to handle the linked document or resource.\n    </div>\n    <ul class='scrivito_enum_attribute scrivito_multi'>\n      <li data-scrivito-rel=\"noindex\">noindex</li>\n      <li data-scrivito-rel=\"nofollow\">nofollow</li>\n      <li data-scrivito-rel=\"noarchive\">noarchive</li>\n      <li data-scrivito-rel=\"nosnippet\">nosnippet</li>\n      <li data-scrivito-rel=\"noopener\">noopener</li>\n      <li data-scrivito-rel=\"noreferrer\">noreferrer</li>\n      <li data-scrivito-rel=\"notranslate\">notranslate</li>\n    </ul>\n  </div>\n</div>").replace(/\n\s*/g,"")},attachFormEvents:function(t){var e,n;return i.extensions.anchor.prototype.attachFormEvents.call(this,t),t=this.proxy.edQuery(t),e=t.find(".medium-editor-toolbar-input"),t.find("[data-scrivito-rel]").on("click",(n=this,function(t){return n.onRelSelectionButtonClick(t)})),t.find(".scrivito_icon_gear").on("click",function(e){return function(){return e.onToggleRelPanelButtonClick(t)}}(this)),t.find(".medium-editor-toolbar-browse").on("click",function(t){return function(){return t.onContentBrowserButtonClick(e)}}(this))},completeFormSave:function(t){return this.base.restoreSelection(),t.value?(this.execAction(this.action,t),this.updateRelAttribute(t)):this.execAction("unlink"),this.base.checkSelection()},getFormOpts:function(){var t;return(t=i.extensions.anchor.prototype.getFormOpts.call(this)).rel=this.selectedRelValues(),t},relButtons:function(){return this.proxy.edQuery(this.getForm()).find(".scrivito_enum_attribute.scrivito_multi [data-scrivito-rel]")},selectedRelValues:function(){return this.relButtons().filter(".scrivito_enum_attribute_active").toArray().map((function(t){return t.attributes["data-scrivito-rel"].value})).join(" ")},updateRelIndicator:function(){var t;return t=this.proxy.edQuery(this.getForm().querySelector(".scrivito_icon_gear")),"scrivito_active_rel_selected",this.relButtons().hasClass("scrivito_enum_attribute_active")?t.addClass("scrivito_active_rel_selected"):t.removeClass("scrivito_active_rel_selected")},updateRelAttribute:function(t){var e,n,r,o;return o=i.selection.getSelectionRange(this.document),r=i.selection.getSelectedParentElement(o),n=this.proxy.edQuery(i.util.getClosestTag(r,"a")),t.rel?n.attr("rel",t.rel):n.removeAttr("rel"),e=this.getEditorElements()[0],this.base.trigger("editableInput",{},e)},updateRelUi:function(t){var e,n;return e=null!=(n=t.rel)?n.split(/\s+/):void 0,this.relButtons().each((function(t,n){return e&&-1!==e.indexOf(n.getAttribute("data-scrivito-rel"))?n.className="scrivito_enum_attribute_active":n.className=""})),this.updateRelIndicator()},onToggleRelPanelButtonClick:function(t){return this.proxy.edQuery(t.find(".scrivito_medium_link_collapse")).toggleClass("show")},onRelSelectionButtonClick:function(t){return this.proxy.edQuery(t.target).toggleClass("scrivito_enum_attribute_active"),this.updateRelIndicator()},onContentBrowserButtonClick:function(t){var e,n,r;return n=(e=this.proxy.idFromPath(t.val()))?[e]:[],scrivito.openContentBrowser({selection:n,selectionMode:"single"}).catch((function(e){throw t.focus(),e})).then((r=this,function(e){var n,i;return n=e.isSelected,i=e.selection,n&&(t.focus(),i.length?t.val(r.proxy.pathForId(i[0])):t.val("")),!1}))}}),s=function(){var t,e;return t=["bold","italic","scrivito_anchor","h2","h3","unorderedlist","orderedlist"],("undefined"!=typeof ScrivitoEditors&&null!==ScrivitoEditors&&null!=(e=ScrivitoEditors._config)?e.showHtmlEditorCodeButton:void 0)&&t.splice(2,0,"scrivito_code"),t},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(t){var e,n,r;return e=t.jQueryElement(),null!=(r=(n=u()).extensions.scrivito_anchor)&&(r.proxy=t),new i(e,n).subscribe("editableInput",(function(){return t.save(e.html())}))},t.exports=a},153:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(217);e.QuillDeltaToHtmlConverter=r.QuillDeltaToHtmlConverter;var i=n(73);e.InlineGroup=i.InlineGroup,e.VideoItem=i.VideoItem,e.BlockGroup=i.BlockGroup,e.ListGroup=i.ListGroup,e.ListItem=i.ListItem,e.BlotBlock=i.BlotBlock;var o=n(98);e.DeltaInsertOp=o.DeltaInsertOp;var a=n(99);e.InsertDataQuill=a.InsertDataQuill,e.InsertDataCustom=a.InsertDataCustom;var s=n(55);e.NewLine=s.NewLine,e.ListType=s.ListType,e.ScriptType=s.ScriptType,e.DirectionType=s.DirectionType,e.AlignType=s.AlignType,e.DataType=s.DataType,e.GroupType=s.GroupType},154:function(t,e,n){"use strict";n.d(e,"a",(function(){return Q}));var r=function(){function t(t){var e=t.controller;this._controller=e}return t.canEdit=function(t){return!1},t.prototype.onClick=function(t){},t.prototype.contentDidChange=function(){},t.prototype.editorWillBeActivated=function(){},t.prototype.editorWillBeDeactivated=function(){},t.prototype.editorDomWasMounted=function(t){},t.prototype.editorDomWasUnmounted=function(){},t}(),i=n(152),o=n.n(i),a=n(20),s=n.n(a),u=n(153);var l,c=(l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.create=function(e){var n=t.create.call(this,e);return n.removeAttribute("target"),n},e.prototype.format=function(e,n){return e!==this.statics.blotName||n||this.domNode.removeAttribute("target"),t.prototype.format.call(this,e,n)},e}(s.a.import("formats/link")),d=function(t){var e=this,n=t.getModule("scrivitoApi").getTooltip(),r=n.hide.bind(n);n.hide=function(){var i=!n.root.classList.contains("ql-hidden"),o=n.root.classList.contains("ql-editing"),a=n.linkRange||e.lastActiveRange;i&&o&&a&&(n.textbox.value&&t.formatText(a.index,a.length,"link",n.textbox.value,"user"),p(t,a)),delete e.lastActiveRange,r()};var i=n.root.querySelector("a.ql-svt-browse"),o=n.root.querySelector("a.ql-svt-target");i.addEventListener("click",(function(e){t.getModule("scrivitoInternalLink").fromContentBrowser(),e.preventDefault()})),o.addEventListener("click",(function(e){var r=n.root.getAttribute("data-svt-target")?"":"_blank";n.root.setAttribute("data-svt-target",r),p(t,n.linkRange),e.preventDefault()})),t.on("selection-change",(function(r){if(r){e.lastActiveRange=r;var i=t.getFormat(r).link,o=t.getModule("scrivitoApi").getLinkRange(r);if(o&&i){var a=t.getFormat(o).target||"";!function(t,e,n){t.linkRange=e,t.root.setAttribute("data-svt-target",n)}(n,o,a)}else!function(t){t.root.setAttribute("data-mode",""),t.root.setAttribute("data-svt-target",""),delete t.linkRange}(n)}}))};function p(t,e){if(e&&t.getFormat(e).link){var n=t.getModule("scrivitoApi").getTooltip().root.getAttribute("data-svt-target");t.formatText(e.index,e.length,"target",n||"","user")}}s.a.register("modules/scrivitoLinkTooltip",d);var h=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=s.a.import("core/module"),m=s.a.import("formats/link"),y=function(t){function e(e){var n=t.call(this,e)||this;return n.setHtml=function(t){var n=0===e.history.stack.undo.length,r=e.clipboard;e.setContents(r.convert(t),"silent"),n&&e.history.clear()},n.getTooltip=function(){return e.theme.tooltip},n.getLinkRange=function(t){if(t){var n=e.scroll.scroll.descendant(m,t.index),r=n[0],i=n[1];return r?{index:t.index-i,length:r.length()}:void 0}},n}return h(e,t),e}(v);var g=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(t){function e(e){var n=t.call(this,e)||this;return n.fromContentBrowser=function(){return function(t){scrivito.openContentBrowser({selection:[],selectionMode:"single"}).then((function(e){if(e.isSelected&&e.selection.length){var n=e.selection[0];t.getModule("scrivitoApi").getTooltip().edit("link","/"+n)}}))}(e)},n}return g(e,t),e}(s.a.import("core/module"));s.a.register("modules/scrivitoInternalLink",b);var w=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=s.a.import("themes/bubble"),O=s.a.import("themes/snow"),k=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.snowTheme=new O(e,n),r}return w(e,t),e.prototype.extendToolbar=function(e){this.snowTheme.extendToolbar(e),this.snowTheme.tooltip.root.classList.add("ql-svt-tooltip-snow"),t.prototype.extendToolbar.call(this,e),this.tooltip.root.classList.add("ql-svt-tooltip-bubble"),this.tooltip=this.snowTheme.tooltip,this.tooltip.textbox.setAttribute("data-link","Paste or type a link"),this.tooltip.textbox.insertAdjacentHTML("beforebegin",x),this.tooltip.textbox.insertAdjacentHTML("afterend",C)},e}(_),x='\n  <a class="ql-svt ql-svt-browse" title="Browse">\n    <i class="scrivito_icon scrivito_icon_content_browser"></i>\n  </a>\n',C='\n  <a class="ql-svt ql-svt-target" title="Open link in new tab">\n    <i class="scrivito_icon scrivito_icon_new_window"></i>\n    <i class="scrivito_icon scrivito_icon_ok"></i>\n  </a>\n';s.a.register("themes/scrivito",k);var E,j,S=function(t){t.on("selection-change",(function(e){if(t.root.parentElement){var n=!t.getModule("scrivitoApi").getTooltip().root.classList.contains("ql-hidden"),r=e&&e.length>0;t.root.parentElement.setAttribute("data-scrivito-ql-tools",r||n?"visible":"")}}))};s.a.register({"formats/target":(E=s.a.import("parchment"),j=new E.Attributor.Attribute("target","target",{scope:E.Scope.INLINE}),j)}),s.a.register(f,!0),s.a.register("modules/scrivitoApi",y),s.a.register("modules/scrivitoZIndex",S);var T=function(t,e){var n=document.createElement("div");n.classList.add("ql-svt-container"),t.appendChild(n);var r=new s.a(n,{formats:["blockquote","bold","code","code-block","header","image","indent","italic","link","list","script","strike","target","underline","video"],modules:{scrivitoApi:!0,scrivitoInternalLink:!0,scrivitoLinkTooltip:!0,scrivitoZIndex:!0,toolbar:{container:["bold","italic",window.ScrivitoEditors&&window.ScrivitoEditors._config&&window.ScrivitoEditors._config.showHtmlEditorCodeButton?"code":void 0,"link",{header:2},{header:3},{list:"bullet"},{list:"ordered"}]}},placeholder:"Click to edit",theme:"scrivito"});return r.getModule("scrivitoApi").setHtml(e.getContent()),r.on("text-change",(function(){return e.setContent(function(t){if("\n"===t.getText())return"";var e=t.getContents().ops;return new u.QuillDeltaToHtmlConverter(e,{linkTarget:"",multiLineParagraph:!1}).convert()}(r))})),r};var A=function(t){t.getAttribute("data-scrivito-editors-placeholder")||t.setAttribute("data-scrivito-editors-placeholder","Click to edit")},P=n(53),N=n.n(P),L=function(){function t(t,e){this.domNode=t,this.controller=e}return t.prototype.content=function(){return this.controller.getContent()},t.prototype.idFromPath=function(t){if(t.match(/^objid:/))return t.replace(/^objid:/,"")},t.prototype.edQuery=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return N.a.apply(void 0,t)},t.prototype.jQueryElement=function(){return this.edQuery(this.domNode)},t.prototype.pathForId=function(t){return"objid:"+t},t.prototype.save=function(t){this.controller.setContent(t);var e={done:function(t){return t(),e}};return e},t.prototype.trigger=function(){},t}(),I=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I(e,t),e.canEdit=function(t){return"html"===t.type},e.prototype.contentDidChange=function(){this._updateContent&&this._updateContent()},e.prototype.editorWillBeActivated=function(){this._controller.setDomMode("Replace")},e.prototype.editorDomWasMounted=function(t){var e=this;if(A(t),"yes"===window.top.localStorage.getItem("__scrivito_enable_quill")){var n=T(t,this._controller);this._updateContent=function(){var t=n.getSelection();n.getModule("scrivitoApi").setHtml(e._controller.getContent()),n.hasFocus()&&n.setSelection(t)}}else{t.innerHTML=this._controller.getContent();var r=new L(t,this._controller),i=o()(r);this._updateContent=function(){var n=i.exportSelection();t.innerHTML=e._controller.getContent(),i.importSelection(n)}}},e.prototype.editorDomWasUnmounted=function(){this._updateContent=void 0},e}(r),R=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e.canEdit=function(t){return"reference"===t.type},e.prototype.onClick=function(t){var e=this;scrivito.openContentBrowser({selection:this.currentSelection(),selectionMode:"single",validObjClasses:this._controller.validObjClasses()}).then((function(t){t.isSelected&&e._controller.setContent(t.selection[0]||null)}))},e.prototype.currentSelection=function(){var t=this._controller.getContent();return t?[t.id()]:[]},e}(r);function B(t,e){var n=e.jQueryElement();switch(t.keyCode||t.which){case 13:U(n)||(t.preventDefault(),n.blur());break;case 27:t.stopPropagation(),n.blur()}}function q(t){!function(t){var e=document.getSelection();if(!e.anchorNode||!e.focusNode)return;t.find(e.anchorNode).addBack(e.anchorNode).length&&t.find(e.focusNode).addBack(e.focusNode).length||e.selectAllChildren(t[0])}(t.jQueryElement())}function F(t){var e,n=(z(e=t.jQueryElement()),e[0].innerText.replace(/\r\n/g,"\n").replace(/\n+$/,""));return t.save(n).done((function(){return t.trigger("scrivito_editors:save")}))}function z(t){var e=function(t){var e=t.data("scrivito_editors_siblings_before_edit"),n=t.siblings();if(!e||n.filter(e).length<e.length)return t.data("scrivito_editors_siblings_before_edit",n);return t.siblings().addBack().not(e)}(t),n=e.not(t);n.length>0&&(n.remove(),t.text(e.text()))}function U(t){return!0===t.data("scrivitoEditorsMultiline")||!1!==t.data("scrivitoEditorsMultiline")&&t.css("white-space").match(/pre/)}function H(t){if(U(t)&&!t.data("scrivito_editors_prepared_for_editing")){t.data("scrivito_editors_prepared_for_editing",!0);var e=t.html(),n=e.replace(/\r?\n/g,"<br />");e!==n&&t.html(n)}}var W=function(t){var e=t.jQueryElement();e.attr("contenteditable","true").blur((function(){return function(t){F(t).done((function(){return t.trigger("scrivito_editors:blur")})),function(t){var e=t.jQueryElement();e.data("scrivito_editors_prepared_for_editing",!1),e.text(t.content())}(t),H(t.jQueryElement())}(t)})).click((function(){return q(t)})).focus((function(){return function(t){H(t.jQueryElement())}(t)})).keypress((function(e){return B(e,t)})).keyup((function(e){return B(e,t)})),"false"!==e.attr("data-scrivito-editors-autosave")&&e.on("cut input keypress keyup paste",(function(){return function(t){F(t)}(t)})),H(e),e.on("click",(function(t){e.attr("contenteditable","true"),z(e),t.timeStamp-e.data("scrivito_editors_last_click")>=300&&t.preventDefault(),e.data("scrivito_editors_last_click",t.timeStamp)}))},V=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(e,t),e.canEdit=function(t){return"string"===t.type},e.prototype.contentDidChange=function(){this._setCurrentContent()},e.prototype.editorWillBeActivated=function(){this._controller.setDomMode("Replace")},e.prototype.editorDomWasMounted=function(t){this._currentDomNode=t,A(t);var e=new L(t,this._controller);this._setCurrentContent(),W(e)},e.prototype.editorDomWasUnmounted=function(){this._currentDomNode=void 0},e.prototype._setCurrentContent=function(){this._currentDomNode&&(this._currentDomNode.textContent=this._controller.getContent())},e}(r);function Q(){scrivito.registerEditor(D),scrivito.registerEditor(M),scrivito.registerEditor(K)}},155:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(84);function i(){var t=function(){if(window.parent!==window){var t;try{t=window.parent.connectAppDocument}catch(t){}return t?t(window.document):void 0}}();return t?t.installRailsApi():function(){window.scrivito||(window.scrivito={});var t=window.scrivito;t.on||(t.on=function(t,e){"content"===t&&Object(r.a)(document,(function(){return e(window.document)}))});t.in_editable_view||(t.in_editable_view=function(){return!1})}(),t}},17:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=window),t.devicePixelRatio||1}function i(){return window.location}function o(t){window.location.assign(t)}function a(){return window.history}function s(){return window.screen}function u(){return document}function l(){return window.innerHeight}function c(){return window.pageXOffset}function f(){return window.pageYOffset}function d(t,e){window.scrollTo(t,e)}function p(){return window.document.body.scrollHeight}n.d(e,"a",(function(){return r})),n.d(e,"f",(function(){return i})),n.d(e,"i",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"j",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"e",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return f})),n.d(e,"k",(function(){return d})),n.d(e,"c",(function(){return p}))},18:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return c}));var r=n(0),i=n(3),o=n(17),a=!1,s=!1;function u(){var t=o.f().href,e=Object(i.queryParametersFromUrl)(t),n=e._scrivito_workspace_id||"published";"string"==typeof n?(Object(i.setCurrentWorkspaceId)(n),"published"!==n&&(a=e.hasOwnProperty("_scrivito_editing"),s=!a&&e.hasOwnProperty("_scrivito_comparison"))):Object(r.Q)(new r.g("Expected value of _scrivito_workspace_id to be a string, but it is "+typeof n))}function l(){return a}function c(){return s}},185:function(t,e,n){

/*! @preserve

*
* tcomb.js - Type checking and DDD for JavaScript
*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016 Giulio Canti
*
*/

var r=n(21);r.Any=n(91),r.Array=n(187),r.Boolean=n(127),r.Date=n(188),r.Error=n(189),r.Function=n(72),r.Nil=n(128),r.Number=n(129),r.Integer=n(190),r.IntegerT=r.Integer,r.Object=n(191),r.RegExp=n(192),r.String=n(94),r.Type=n(193),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(95),r.declare=n(194),r.enums=n(195),r.irreducible=n(36),r.list=n(131),r.maybe=n(196),r.refinement=n(93),r.struct=n(198),r.tuple=n(134),r.union=n(202),r.func=n(203),r.intersection=n(204),r.subtype=r.refinement,r.inter=n(205),r.interface=r.inter,r.assert=r,r.update=n(206),r.mixin=n(96),r.isType=n(34),r.is=n(50),r.getTypeName=n(29),r.match=n(207),t.exports=r},186:function(t,e){t.exports=function(t){throw new TypeError(“ ”+t)}},187:function(t,e,n){var r=n(36),i=n(47);t.exports=r(“Array”,i)},188:function(t,e,n){var r=n(36);t.exports=r(“Date”,(function(t){return t instanceof Date}))},189:function(t,e,n){var r=n(36);t.exports=r(“Error”,(function(t){return t instanceof Error}))},190:function(t,e,n){var r=n(93),i=n(129);t.exports=r(i,(function(t){return t%1==0}),“Integer”)},191:function(t,e,n){var r=n(36),i=n(46);t.exports=r(“Object”,i)},192:function(t,e,n){var r=n(36);t.exports=r(“RegExp”,(function(t){return t instanceof RegExp}))},193:function(t,e,n){var r=n(36),i=n(34);t.exports=r(“Type”,i)},194:function(t,e,n){n(21),n(38),n(34),n(45);var r=n(96),i=n(29),o=n(130),a=1;t.exports=function(t){var e;function n(t,n){return e(t,n)}return n.define=function(i){return o(i)&&n.hasOwnProperty(“dispatch”)&&(i.dispatch=n.dispatch),r(n,e=i,!0),t&&(e.displayName=n.displayName=t,n.meta.name=t),n.meta.identity=e.meta.identity,n.prototype=e.prototype,n},n.displayName=t||i(n)+“$”a+,n.meta={identity:!1},n.prototype=null,n}},195:function(t,e,n){var r=n(21),i=(n(38),n(64),n(92)),o=n(70);n(46);function a(t){return Object.keys(t).map((function(t){return r.stringify(t)})).join(“ | ”)}function s(t,e){var n=e||a(t);function r(t,e){return t}return r.meta={kind:“enums”,map:t,name:e,identity:!0},r.displayName=n,r.is=function(e){return(o(e)||i(e))&&t.hasOwnProperty(e)},r}s.of=function(t,e){t=o(t)?t.split(“ ”):t;var n={};return t.forEach((function(t){n=t})),s(n,e)},s.getDefaultName=a,t.exports=s},196:function(t,e,n){n(21),n(38),n(33);var r=n(197),i=n(48),o=n(91),a=n(49),s=n(128),u=(n(64),n(50)),l=n(29);function c(t){return“?”+l(t)}function f(t,e){if(r(t)||t===o||t===s)return t;var n=e||c(t),l=i(t);function f(e,n){return s.is(e)?e:a(t,e,n)}return f.meta={kind:“maybe”,type:t,name:e,identity:l},f.displayName=n,f.is=function(e){return s.is(e)||u(e,t)},f}f.getDefaultName=c,t.exports=f},197:function(t,e,n){var r=n(34);t.exports=function(t){return r(t)&&“maybe”===t.meta.kind}},198:function(t,e,n){var r=n(21),i=(n(38),n(94),n(72),n(71),n(46)),o=n(45),a=n(49),s=(n(29),n(95),n(132)),u=n(133);function l(t){return“Struct”+s(t)}function c(t,e){return u(d,t,e)}function f(t){return i(t)||(t=o(t)?{}:{name:t}),t.hasOwnProperty(“strict”)||(t.strict=d.strict),t.hasOwnProperty(“defaultProps”)||(t.defaultProps={}),t}function d(t,e){var n=(e=f(e)).name,i=e.strict,o=e.defaultProps;var s=n||l(t);function u(e,n){if(u.is(e))return e;if(!(this instanceof u))return new u(e,n);for(var r in t)if(t.hasOwnProperty®){var i=t,s=e;void 0===s&&(s=o),this=a(i,s,null)}}return u.meta={kind:“struct”,props:t,name:n,identity:!1,strict:i,defaultProps:o},u.displayName=s,u.is=function(t){return t instanceof u},u.update=function(t,e){return new u(r.update(t,e))},u.extend=function(t,e){return c(.concat(t),e)},u}d.strict=!1,d.getOptions=f,d.getDefaultName=l,d.extend=c,t.exports=d},199:function(t,e,n){var r=n(34);t.exports=function(t){return r(t)&&“struct”===t.meta.kind}},2:function(t,e,n){(function(t,n){var r;!function(){var i=“object”==typeof self&&self.self===self&&self||“object”==typeof t&&t.global===t&&t||this||{},o=i._,a=Array.prototype,s=Object.prototype,u=“undefined”!=typeof Symbol?Symbol.prototype:null,l=a.push,c=a.slice,f=s.toString,d=s.hasOwnProperty,p=Array.isArray,h=Object.keys,v=Object.create,m=function(){},y=function(t){return t instanceof y?t:this instanceof y?void(this._wrapped=t):new y(t)};e.nodeType?i._=y:(!n.nodeType&&n.exports&&(e=n.exports=y),e._=y),y.VERSION=“1.9.1”;var g,b=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}},w=function(t,e,n){return y.iteratee!==g?y.iteratee(t,e):null==t?y.identity:y.isFunction(t)?b(t,e,n):y.isObject(t)&&!y.isArray(t)?y.matcher(t):y.property(t)};y.iteratee=g=function(t,e){return w(t,e,1/0)};var _=function(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),i=0;i=arguments;switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments,r);case 2:return t.call(this,arguments,arguments,r)}var o=Array(e+1);for(i=0;i=arguments;return o=r,t.apply(this,o)}},O=function(t){if(!y.isObject(t))return{};if(v)return v(t);m.prototype=t;var e=new m;return m.prototype=null,e},k=function(t){return function(e){return null==e?void 0:e}},x=function(t,e){return null!=t&&d.call(t,e)},C=function(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e]}return n?t:void 0},E=Math.pow(2,53)-1,j=k(“length”),S=function(t){var e=j(t);return“number”==typeof e&&e>=0&&e<=E};y.each=y.forEach=function(t,e,n){var r,i;if(e=b(e,n),S(t))for(r=0,i=t.length;r,r,t);else{var o=y.keys(t);for(r=0,i=o.length;r],o,t)}return t},y.map=y.collect=function(t,e,n){e=w(e,n);for(var r=!S(t)&&y.keys(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var s=r?r:a;o=e(t,s,t)}return o};var T=function(t){var e=function(e,n,r,i){var o=!S(e)&&y.keys(e),a=(o||e).length,s=t>0?0:a-1;for(i||(r=e[o?o:s],s+=t);s>=0&&s<a;s+=t){var u=o?o:s;r=n(r,e,u,e)}return r};return function(t,n,r,i){var o=arguments.length>=3;return e(t,b(n,i,4),r,o)}};y.reduce=y.foldl=y.inject=T(1),y.reduceRight=y.foldr=T(-1),y.find=y.detect=function(t,e,n){var r=(S(t)?y.findIndex:y.findKey)(t,e,n);if(void 0!==r&&-1!==r)return t},y.filter=y.select=function(t,e,n){var r=[];return e=w(e,n),y.each(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r},y.reject=function(t,e,n){return y.filter(t,y.negate(w(e)),n)},y.every=y.all=function(t,e,n){e=w(e,n);for(var r=!S(t)&&y.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r:o;if(!e(t,a,t))return!1}return!0},y.some=y.any=function(t,e,n){e=w(e,n);for(var r=!S(t)&&y.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r:o;if(e(t,a,t))return!0}return!1},y.contains=y.includes=y.include=function(t,e,n,r){return S(t)||(t=y.values(t)),(“number”!=typeof n||r)&&(n=0),y.indexOf(t,e,n)>=0},y.invoke=_((function(t,e,n){var r,i;return y.isFunction(e)?i=e:y.isArray(e)&&(r=e.slice(0,-1),e=e),y.map(t,(function(t){var o=i;if(!o){if(r&&r.length&&(t=C(t,r)),null==t)return;o=t}return null==o?o:o.apply(t,n)}))})),y.pluck=function(t,e){return y.map(t,y.property(e))},y.where=function(t,e){return y.filter(t,y.matcher(e))},y.findWhere=function(t,e){return y.find(t,y.matcher(e))},y.max=function(t,e,n){var r,i,o=-1/0,a=-1/0;if(null==e||“number”==typeof e&&“object”!=typeof t&&null!=t)for(var s=0,u=(t=S(t)?t:y.values(t)).length;s)&&r>o&&(o=r);else e=w(e,n),y.each(t,(function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)}));return o},y.min=function(t,e,n){var r,i,o=1/0,a=1/0;if(null==e||“number”==typeof e&&“object”!=typeof t&&null!=t)for(var s=0,u=(t=S(t)?t:y.values(t)).length;s)&&r<o&&(o=r);else e=w(e,n),y.each(t,(function(t,n,r){((i=e(t,n,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)}));return o},y.shuffle=function(t){return y.sample(t,1/0)},y.sample=function(t,e,n){if(null==e||n)return S(t)||(t=y.values(t)),t;var r=S(t)?y.clone(t):y.values(t),i=j®;e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=y.random(a,o),u=r;r=r,r=u}return r.slice(0,e)},y.sortBy=function(t,e,n){var r=0;return e=w(e,n),y.pluck(y.map(t,(function(t,n,i){return{value:t,index:r++,criteria:e(t,n,i)}})).sort((function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index})),“value”)};var A=function(t,e){return function(n,r,i){var o=e?[,[]]:{};return r=w(r,i),y.each(n,(function(e,i){var a=r(e,i,n);t(o,e,a)})),o}};y.groupBy=A((function(t,e,n){x(t,n)?t.push(e):t=[e]})),y.indexBy=A((function(t,e,n){t=e})),y.countBy=A((function(t,e,n){x(t,n)?t++:t=1}));var P=/|[ud800-udbff]|[ud800-udfff]/g;y.toArray=function(t){return t?y.isArray(t)?c.call(t):y.isString(t)?t.match(P):S(t)?y.map(t,y.identity):y.values(t):[]},y.size=function(t){return null==t?0:S(t)?t.length:y.keys(t).length},y.partition=A((function(t,e,n){t.push(e)}),!0),y.first=y.head=y.take=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t:y.initial(t,t.length-e)},y.initial=function(t,e,n){return c.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},y.last=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t:y.rest(t,Math.max(0,t.length-e))},y.rest=y.tail=y.drop=function(t,e,n){return c.call(t,null==e||n?1:e)},y.compact=function(t){return y.filter(t,Boolean)};var N=function(t,e,n,r){for(var i=(r=r||[]).length,o=0,a=j(t);o<a;o++){var s=t;if(S(s)&&(y.isArray(s)||y.isArguments(s)))if(e)for(var u=0,l=s.length;u=s;else N(s,e,n,r),i=r.length;else n||(r=s)}return r};y.flatten=function(t,e){return N(t,e,!1)},y.without=_((function(t,e){return y.difference(t,e)})),y.uniq=y.unique=function(t,e,n,r){y.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=w(n,r));for(var i=[],o=,a=0,s=j(t);a<s;a++){var u=t,l=n?n(u,a,t):u;e&&!n?(a&&o===l||i.push(u),o=l):n?y.contains(o,l)||(o.push(l),i.push(u)):y.contains(i,u)||i.push(u)}return i},y.union=_((function(t){return y.uniq(N(t,!0,!0))})),y.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=j(t);r<i;r++){var o=t;if(!y.contains(e,o)){var a;for(a=1;a,o);a++);a===n&&e.push(o)}}return e},y.difference=_((function(t,e){return e=N(e,!0,!0),y.filter(t,(function(t){return!y.contains(e,t)}))})),y.unzip=function(t){for(var e=t&&y.max(t,j).length||0,n=Array(e),r=0;r=y.pluck(t,r);return n},y.zip=_(y.unzip),y.object=function(t,e){for(var n={},r=0,i=j(t);r]=e:n[t[0]]=t[1];return n};var L=function(t){return function(e,n,r){n=w(n,r);for(var i=j(e),o=t>0?0:i-1;o>=0&&o,o,e))return o;return-1}};y.findIndex=L(1),y.findLastIndex=L(-1),y.sortedIndex=function(t,e,n,r){for(var i=(n=w(n,r,1))(e),o=0,a=j(t);o<a;){var s=Math.floor((o+a)/2);n(t)<i?o=s+1:a=s}return o};var I=function(t,e,n){return function(r,i,o){var a=0,s=j®;if(“number”==typeof o)t>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r===i?o:-1;if(i!=i)return(o=e(c.call(r,a,s),y.isNaN))>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o===i)return o;return-1}};y.indexOf=I(1,y.findIndex,y.sortedIndex),y.lastIndexOf=I(-1,y.findLastIndex),y.range=function(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array®,o=0;o=t;return i},y.chunk=function(t,e){if(null==e||e<1)return[];for(var n=[],r=0,i=t.length;r<i;)n.push(c.call(t,r,r+=e));return n};var D=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=O(t.prototype),a=t.apply(o,i);return y.isObject(a)?a:o};y.bind=_((function(t,e,n){if(!y.isFunction(t))throw new TypeError(“Bind must be called on a function”);var r=_((function(i){return D(t,r,e,this,n.concat(i))}));return r})),y.partial=_((function(t,e){var n=y.partial.placeholder,r=function(){for(var i=0,o=e.length,a=Array(o),s=0;s=e===n?arguments:e;for(;i);return D(t,r,this,this,a)};return r})),y.partial.placeholder=y,y.bindAll=_((function(t,e){var n=(e=N(e,!1,!1)).length;if(n<1)throw new Error(“bindAll must be passed function names”);for(;n–;){var r=e;t=y.bind(t,t)}})),y.memoize=function(t,e){var n=function®{var i=n.cache,o=“”+(e?e.apply(this,arguments):r);return x(i,o)||(i=t.apply(this,arguments)),i};return n.cache={},n},y.delay=_((function(t,e,n){return setTimeout((function(){return t.apply(null,n)}),e)})),y.defer=y.partial(y.delay,y,1),y.throttle=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:y.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=y.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout®,r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout®,s=0,r=i=o=null},l},y.debounce=function(t,e,n){var r,i,o=function(e,n){r=null,n&&(i=t.apply(e,n))},a=_((function(a){if(r&&clearTimeout®,n){var s=!r;r=setTimeout(o,e),s&&(i=t.apply(this,a))}else r=y.delay(o,e,this,a);return i}));return a.cancel=function(){clearTimeout®,r=null},a},y.wrap=function(t,e){return y.partial(e,t)},y.negate=function(t){return function(){return!t.apply(this,arguments)}},y.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t.apply(this,arguments);n–;)r=t.call(this,r);return r}},y.after=function(t,e){return function(){if(–t<1)return e.apply(this,arguments)}},y.before=function(t,e){var n;return function(){return–t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},y.once=y.partial(y.before,2),y.restArguments=_;var R=!{toString:null}.propertyIsEnumerable(“toString”),M=,B=function(t,e){var n=M.length,r=t.constructor,i=y.isFunction®&&r.prototype||s,o=“constructor”;for(x(t,o)&&!y.contains(e,o)&&e.push(o);n–;)(o=M)in t&&t!==i&&!y.contains(e,o)&&e.push(o)};y.keys=function(t){if(!y.isObject(t))return[];if(h)return h(t);var e=[];for(var n in t)x(t,n)&&e.push(n);return R&&B(t,e),e},y.allKeys=function(t){if(!y.isObject(t))return[];var e=[];for(var n in t)e.push(n);return R&&B(t,e),e},y.values=function(t){for(var e=y.keys(t),n=e.length,r=Array(n),i=0;i=t[e];return r},y.mapObject=function(t,e,n){e=w(e,n);for(var r=y.keys(t),i=r.length,o={},a=0;a<i;a++){var s=r;o=e(t,s,t)}return o},y.pairs=function(t){for(var e=y.keys(t),n=e.length,r=Array(n),i=0;i=[e,t[e]];return r},y.invert=function(t){for(var e={},n=y.keys(t),r=0,i=n.length;r]]=n;return e},y.functions=y.methods=function(t){var e=[];for(var n in t)y.isFunction(t)&&e.push(n);return e.sort()};var q=function(t,e){return function(n){var r=arguments.length;if(e&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments,a=t(o),s=a.length,u=0;u<s;u++){var l=a;e&&void 0!==n||(n=o)}return n}};y.extend=q(y.allKeys),y.extendOwn=y.assign=q(y.keys),y.findKey=function(t,e,n){e=w(e,n);for(var r,i=y.keys(t),o=0,a=i.length;o],r,t))return r};var F,z,U=function(t,e,n){return e in n};y.pick=_((function(t,e){var n={},r=e;if(null==t)return n;y.isFunction®?(e.length>1&&(r=b(r,e)),e=y.allKeys(t)):(r=U,e=N(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e,s=t;r(s,a,t)&&(n=s)}return n})),y.omit=_((function(t,e){var n,r=e;return y.isFunction®?(r=y.negate®,e.length>1&&(n=e)):(e=y.map(N(e,!1,!1),String),r=function(t,n){return!y.contains(e,n)}),y.pick(t,r,n)})),y.defaults=q(y.allKeys,!0),y.create=function(t,e){var n=O(t);return e&&y.extendOwn(n,e),n},y.clone=function(t){return y.isObject(t)?y.isArray(t)?t.slice():y.extend({},t):t},y.tap=function(t,e){return e(t),t},y.isMatch=function(t,e){var n=y.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n;if(e!==i||!(a in i))return!1}return!0},F=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=typeof t;return(“function”===i||“object”===i||“object”==typeof e)&&z(t,e,n,r)},z=function(t,e,n,r){t instanceof y&&(t=t._wrapped),e instanceof y&&(e=e._wrapped);var i=f.call(t);if(i!==f.call(e))return!1;switch(i){case“[object RegExp]”:case“[object String]”:return“”+t==“”+e;case“[object Number]”:return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case“[object Date]”:case“[object Boolean]”:return+t==+e;case“[object Symbol]”:return u.valueOf.call(t)===u.valueOf.call(e)}var o=“[object Array]”===i;if(!o){if(“object”!=typeof t||“object”!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(y.isFunction(a)&&a instanceof a&&y.isFunction(s)&&s instanceof s)&&“constructor”in t&&“constructor”in e)return!1}r=r||[];for(var l=(n=n||[]).length;l–;)if(n===t)return r===e;if(n.push(t),r.push(e),o){if((l=t.length)!==e.length)return!1;for(;l–;)if(!F(t,e,n,r))return!1}else{var c,d=y.keys(t);if(l=d.length,y.keys(e).length!==l)return!1;for(;l–;)if(c=d,!x(e,c)||!F(t,e,n,r))return!1}return n.pop(),r.pop(),!0},y.isEqual=function(t,e){return F(t,e)},y.isEmpty=function(t){return null==t||(S(t)&&(y.isArray(t)||y.isString(t)||y.isArguments(t))?0===t.length:0===y.keys(t).length)},y.isElement=function(t){return!(!t||1!==t.nodeType)},y.isArray=p||function(t){return“[object Array]”===f.call(t)},y.isObject=function(t){var e=typeof t;return“function”===e||“object”===e&&!!t},y.each(,(function(t){y=function(e){return f.call(e)===“[object ”t“]”}})),y.isArguments(arguments)||(y.isArguments=function(t){return x(t,“callee”)});var H=i.document&&i.document.childNodes;“object”!=typeof Int8Array&&“function”!=typeof H&&(y.isFunction=function(t){return“function”==typeof t||!1}),y.isFinite=function(t){return!y.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},y.isNaN=function(t){return y.isNumber(t)&&isNaN(t)},y.isBoolean=function(t){return!0===t||!1===t||“[object Boolean]”===f.call(t)},y.isNull=function(t){return null===t},y.isUndefined=function(t){return void 0===t},y.has=function(t,e){if(!y.isArray(e))return x(t,e);for(var n=e.length,r=0;r<n;r++){var i=e;if(null==t||!d.call(t,i))return!1;t=t}return!!n},y.noConflict=function(){return i._=o,this},y.identity=function(t){return t},y.constant=function(t){return function(){return t}},y.noop=function(){},y.property=function(t){return y.isArray(t)?function(e){return C(e,t)}:k(t)},y.propertyOf=function(t){return null==t?function(){}:function(e){return y.isArray(e)?C(t,e):t}},y.matcher=y.matches=function(t){return t=y.extendOwn({},t),function(e){return y.isMatch(e,t)}},y.times=function(t,e,n){var r=Array(Math.max(0,t));e=b(e,n,1);for(var i=0;i=e(i);return r},y.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},y.now=Date.now||function(){return(new Date).getTime()};var W={“&”:“&amp;”,“<”:“&lt;”,“>”:“&gt;”,‘“’:”&quot;“,”‘“:”&#x27;“,”`“:”&#x60;“},V=y.invert(W),K=function(t){var e=function(e){return t},n=”(?:“+y.keys(t).join(”|“)+”)“,r=RegExp(n),i=RegExp(n,”g“);return function(t){return t=null==t?”“:”“+t,r.test(t)?t.replace(i,e):t}};y.escape=K(W),y.unescape=K(V),y.result=function(t,e,n){y.isArray(e)||(e=);var r=e.length;if(!r)return y.isFunction(n)?n.call(t):n;for(var i=0;i<r;i++){var o=null==t?void 0:t[e];void 0===o&&(o=n,i=r),t=y.isFunction(o)?o.call(t):o}return t};var Q=0;y.uniqueId=function(t){var e=+Q”“;return t?t+e:e},y.templateSettings={evaluate:/<%(+?)%>/g,interpolate:/<%=(+?)%>/g,escape:/<%-(+?)%>/g};var $=/(.)^/,G={”’“:”‘“,”\“:”\“,”r“:”r“,”n“:”n“,”u2028“:”u2028“,”u2029“:”u2029“},Y=/\|’|r|n|u2028|u2029/g,Z=function(t){return”\“+G};y.template=function(t,e,n){!e&&n&&(e=n),e=y.defaults({},e,y.templateSettings);var r,i=RegExp(.join(”|“)+”|$“,”g“),o=0,a=”__p+=‘“;t.replace(i,(function(e,n,r,i,s){return a+=t.slice(o,s).replace(Y,Z),o=s+e.length,n?a+=”’+n((__t=(“n”))==null?”:_.escape(__t))+n‘“:r?a+=”’+n((__t=(“r”))==null?”:__t)+n‘“:i&&(a+=”’;n“i”n__p+=‘“),e})),a+=”’;n“,e.variable||(a=”with(obj||{}){n“a”}n“),a=”var __t,__p=”,__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,”);};n“a”return __p;n“;try{r=new Function(e.variable||”obj“,”_“,a)}catch(t){throw t.source=a,t}var s=function(t){return r.call(this,t,y)},u=e.variable||”obj“;return s.source=”function(“u”){n“a”}“,s},y.chain=function(t){var e=y(t);return e._chain=!0,e};var X=function(t,e){return t._chain?y(e).chain():e};y.mixin=function(t){return y.each(y.functions(t),(function(e){var n=y=t;y.prototype=function(){var t=;return l.apply(t,arguments),X(this,n.apply(y,t))}})),y},y.mixin(y),y.each(,(function(t){var e=a;y.prototype=function(){var n=this._wrapped;return e.apply(n,arguments),”shift“!==t&&”splice“!==t||0!==n.length||delete n,X(this,n)}})),y.each(,(function(t){var e=a;y.prototype=function(){return X(this,e.apply(this._wrapped,arguments))}})),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return y}.apply(e,[]))||(n.exports=r)}()}).call(this,n(41),n(79)(t))},20:function(t,e,n){(function(e){ /*!

* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/

var n;“undefined”!=typeof self&&self,n=function(){return function(t){var e={};function n®{if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,“a”,e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=“”,n(n.s=109)}([function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),u=n(47),l=n(48),c=n(49),f=n(12),d=n(32),p=n(33),h=n(31),v=n(1),m={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:l.default,Scroll:a.default,Block:u.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};e.default=m},function(t,e,n){“use strict”;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,“__esModule”,{value:!0});var o=function(t){function e(e){var n=this;return e=“[Parchment] ”+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var a,s={},u={},l={},c={};function f(t,e){var n;if(void 0===e&&(e=a.ANY),“string”==typeof t)n=c[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=c.text;else if(“number”==typeof t)t&a.LEVEL&a.BLOCK?n=c.block:t&a.LEVEL&a.INLINE&&(n=c.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute(“class”)||“”).split(/s+/);for(var i in r)if(n=u[r[i]])break;n=n||l[t.tagName]}return null==n?null:e&a.LEVEL&n.scope&&e&a.TYPE&n.scope?n:null}e.DATA_KEY=“__blot”,function(t){t[t.TYPE=3]=“TYPE”,t[t.LEVEL=12]=“LEVEL”,t[t.ATTRIBUTE=13]=“ATTRIBUTE”,t[t.BLOT=14]=“BLOT”,t[t.INLINE=7]=“INLINE”,t[t.BLOCK=11]=“BLOCK”,t[t.BLOCK_BLOT=10]=“BLOCK_BLOT”,t[t.INLINE_BLOT=6]=“INLINE_BLOT”,t[t.BLOCK_ATTRIBUTE=9]=“BLOCK_ATTRIBUTE”,t[t.INLINE_ATTRIBUTE=5]=“INLINE_ATTRIBUTE”,t[t.ANY=15]=“ANY”}(a=e.Scope||(e.Scope={})),e.create=function(t,e){var n=f(t);if(null==n)throw new o(“Unable to create ”t“ blot”);var r=n,i=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(i,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=f,e.register=function t(){for(var e=[],n=0;n1)return e.map((function(e){return t(e)}));var r=e[0];if(“string”!=typeof r.blotName&&“string”!=typeof r.attrName)throw new o(“Invalid definition”);if(“abstract”===r.blotName)throw new o(“Cannot register abstract class”);if(c[r.blotName||r.attrName]=r,“string”==typeof r.keyName)s[r.keyName]=r;else if(null!=r.className&&(u[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var i=Array.isArray(r.tagName)?r.tagName:[r.tagName];i.forEach((function(t){null!=l[t]&&null!=r.className||(l[t]=r)}))}return r}},function(t,e,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),u=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};u.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&“object”==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},u.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},u.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},u.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),“object”==typeof n){if(“number”==typeof t.delete&&“number”==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if(“number”==typeof n.delete&&null!=t.insert&&(e-=1,“object”!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if(“string”==typeof t.insert&&“string”==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},“object”==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if(“number”==typeof t.retain&&“number”==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},“object”==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},u.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},u.prototype.filter=function(t){return this.ops.filter(t)},u.prototype.forEach=function(t){this.ops.forEach(t)},u.prototype.map=function(t){return this.ops.map(t)},u.prototype.partition=function(t){var e=[],n=[];return this.forEach((function®{(t®?e:n).push®})),[e,n]},u.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},u.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},u.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},u.prototype.slice=function(t,e){t=t||0,“number”!=typeof e&&(e=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i0&&n.next(o.retain-s)}for(var l=new u®;e.hasNext()||n.hasNext();)if(“insert”===n.peekType())l.push(n.next());else if(“delete”===e.peekType())l.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next©,d=n.next©;if(“number”==typeof d.retain){var p={};“number”==typeof f.retain?p.retain=c:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,“number”==typeof f.retain);if(h&&(p.attributes=h),l.push(p),!n.hasNext()&&i(l.ops[l.ops.length-1],p)){var v=new u(e.rest());return l.concat(v).chop()}}else“number”==typeof d.delete&&“number”==typeof f.retain&&l.push(d)}return l.chop()},u.prototype.concat=function(t){var e=new u(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},u.prototype.diff=function(t,e){if(this.ops===t.ops)return new u;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return“string”==typeof n.insert?n.insert:s;throw new Error(“diff() called ”+(e===t?“on”:“with”)+“ non-document”)})).join(“”)})),o=new u,l=r(n[0],n[1],e),c=a.iterator(this.ops),f=a.iterator(t.ops);return l.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),o.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var s=c.next(n),u=f.next(n);i(s.insert,u.insert)?o.retain(n,a.attributes.diff(s.attributes,u.attributes)):o.push(u).delete(n)}e-=n}})),o.chop()},u.prototype.eachLine=function(t,e){e=e||“n”;for(var n=a.iterator(this.ops),r=new u,i=0;n.hasNext();){if(“insert”!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),l=“string”==typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new u}}r.length()>0&&t(r,{},i)},u.prototype.transform=function(t,e){if(e=!!e,“number”==typeof t)return this.transformPosition(t,e);for(var n=a.iterator(this.ops),r=a.iterator(t.ops),i=new u;n.hasNext()||r.hasNext();)if(“insert”!==n.peekType()||!e&&“insert”===r.peekType())if(“insert”===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),l=r.next(o);if(s.delete)continue;l.delete?i.push(l):i.retain(o,a.attributes.transform(s.attributes,l.attributes,e))}else i.retain(a.length(n.next()));return i.chop()},u.prototype.transformPosition=function(t,e){e=!!e;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r0&&(t1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),“split”,this).call(this,t,n);return this.cache={},o}}]),e}(s.default.Block);function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:(“function”==typeof t.formats&&(e=(0,o.default)(e,t.formats())),null==t.parent||“scroll”==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:y(t.parent,e))}m.blotName=“block”,m.tagName=“P”,m.defaultChild=“break”,m.allowedChildren=[l.default,s.default.Embed,c.default],e.bubbleFormats=y,e.BlockEmbed=v,e.default=m},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r=“function”==typeof Symbol&&“symbol”==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&“function”==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?“symbol”:typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)},o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(g(this,t),this.options=_(e,r),this.container=this.options.container,null==this.container)return b.error(“Invalid Quill container”,e);this.options.debug&&t.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add(“ql-container”),this.container.innerHTML=“”,this.container.__quill=this,this.root=this.addContainer(“ql-editor”),this.root.classList.add(“ql-blank”),this.root.setAttribute(“data-gramm”,!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule(“keyboard”),this.clipboard=this.theme.addModule(“clipboard”),this.history=this.theme.addModule(“history”),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(t){t===u.default.events.TEXT_CHANGE&&n.root.classList.toggle(“ql-blank”,n.editor.isBlank())})),this.emitter.on(u.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;O.call(n,(function(){return n.editor.update(null,e,i)}),t)}));var o=this.clipboard.convert(“

i


”);this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute(“data-placeholder”,this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:“debug”,value:function(t){!0===t&&(t=“log”),h.default.level(t)}},{key:“find”,value:function(t){return t.__quill||c.default.find(t)}},{key:“import”,value:function(t){return null==this.imports[t]&&b.error(“Cannot import ”t“. Are you sure it was registered?”),this.imports[t]}},{key:“register”,value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(“string”!=typeof t){var i=t.attrName||t.blotName;“string”==typeof i?this.register(“formats/”+i,t,e):Object.keys(t).forEach((function®{n.register(r,t[r],e)}))}else null==this.imports[t]||r||b.warn(“Overwriting ”t“ with”,e),this.imports[t]=e,(t.startsWith(“blots/”)||t.startsWith(“formats/”))&&“abstract”!==e.blotName?c.default.register(e):t.startsWith(“modules”)&&“function”==typeof e.register&&e.register()}}]),o(t,[{key:“addContainer”,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(“string”==typeof t){var n=t;(t=document.createElement(“div”)).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:“blur”,value:function(){this.selection.setRange(null)}},{key:“deleteText”,value:function(t,e,n){var r=this,o=k(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],O.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:“disable”,value:function(){this.enable(!1)}},{key:“enable”,value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle(“ql-disabled”,!t)}},{key:“focus”,value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:“format”,value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return O.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(c.default.query(t,c.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,y({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,y({},t,e))}return n.setSelection(r,u.default.sources.SILENT),i}),r)}},{key:“formatLine”,value:function(t,e,n,r,o){var a,s=this,u=k(t,e,n,r,o),l=i(u,4);return t=l[0],e=l[1],a=l[2],o=l[3],O.call(this,(function(){return s.editor.formatLine(t,e,a)}),o,t,0)}},{key:“formatText”,value:function(t,e,n,r,o){var a,s=this,u=k(t,e,n,r,o),l=i(u,4);return t=l[0],e=l[1],a=l[2],o=l[3],O.call(this,(function(){return s.editor.formatText(t,e,a)}),o,t,0)}},{key:“getBounds”,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n=“number”==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:“getContents”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=k(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:“getFormat”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return“number”==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:“getIndex”,value:function(t){return t.offset(this.scroll)}},{key:“getLength”,value:function(){return this.scroll.length()}},{key:“getLeaf”,value:function(t){return this.scroll.leaf(t)}},{key:“getLine”,value:function(t){return this.scroll.line(t)}},{key:“getLines”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return“number”!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:“getModule”,value:function(t){return this.theme.modules[t]}},{key:“getSelection”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:“getText”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=k(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:“hasFocus”,value:function(){return this.selection.hasFocus()}},{key:“insertEmbed”,value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return O.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),o,e)}},{key:“insertText”,value:function(t,e,n,r,o){var a,s=this,u=k(t,0,n,r,o),l=i(u,4);return t=l[0],a=l[2],o=l[3],O.call(this,(function(){return s.editor.insertText(t,e,a)}),o,t,e.length)}},{key:“isEnabled”,value:function(){return!this.container.classList.contains(“ql-disabled”)}},{key:“off”,value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:“on”,value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:“once”,value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:“pasteHTML”,value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:“removeFormat”,value:function(t,e,n){var r=this,o=k(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],O.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:“scrollIntoView”,value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:“setContents”,value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return O.call(this,(function(){t=new a.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];return null!=o&&“string”==typeof o.insert&&“n”===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:“setSelection”,value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=k(e,n,r),a=i(o,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(e,n),r),r!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:“setText”,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,n=(new a.default).insert(t);return this.setContents(n,e)}},{key:“update”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:“updateContents”,value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return O.call(this,(function(){return t=new a.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function _(t,e){if((e=(0,p.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==w.DEFAULTS.theme){if(e.theme=w.import(“themes/”+e.theme),null==e.theme)throw new Error(“Invalid theme ”e.theme“. Did you register it?”)}else e.theme=v.default;var n=(0,p.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=w.import(“modules/”+e);return null==n?b.error(“Cannot load ”e“ module. Are you sure you registered it?”):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,p.default)(!0,{},w.DEFAULTS,{modules:r},n,e),[“bounds”,“container”,“scrollingContainer”].forEach((function(t){“string”==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function O(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===u.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,s=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=x(i,s,e):0!==r&&(i=x(i,n,r,e)),this.setSelection(i,u.default.sources.SILENT)),s.length()>0){var l,c,f=[u.default.events.TEXT_CHANGE,s,o,e];(l=this.emitter).emit.apply(l,[u.default.events.EDITOR_CHANGE].concat(f)),e!==u.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return s}function k(t,e,n,i,o){var a={};return“number”==typeof t.index&&“number”==typeof t.length?“number”!=typeof e?(o=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):“number”!=typeof e&&(o=i,i=n,n=e,e=0),“object”===(void 0===n?“undefined”:r(n))?(a=n,o=i):“string”==typeof n&&(null!=i?a[n]=i:o=n),[t,e,a,o=o||u.default.sources.API]}function x(t,e,n,r){if(null==t)return null;var o=void 0,s=void 0;if(e instanceof a.default){var l=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==u.default.sources.USER)})),c=i(l,2);o=c[0],s=c[1]}else{var d=[t.index,t.index+t.length].map((function(t){return t=0?t+n:Math.max(e,t+n)})),p=i(d,2);o=p[0],s=p[1]}return new f.Range(o,s-o)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:“”,readOnly:!1,scrollingContainer:null,strict:!0,theme:“default”},w.events=u.default.events,w.sources=u.default.sources,w.version=“1.3.7”,w.imports={delta:a.default,parchment:c.default,“core/module”:l.default,“core/theme”:v.default},e.expandConfig=_,e.overload=k,e.default=w},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=function(){function t(t,e){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:“compare”,value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=[“error”,“warn”,“log”,“info”],i=“warn”;function o(t){if(r.indexOf(t)<=r.indexOf(i)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),a=1;a=0;l–)if(f[l]!=d[l])return!1;for(l=f.length-1;l>=0;l–)if(c=f[l],!a(t[c],e[c],n))return!1;return typeof t==typeof e}(t,e,n))};function s(t){return null==t}function u(t){return!(!t||“object”!=typeof t||“number”!=typeof t.length||“function”!=typeof t.copy||“function”!=typeof t.slice||t.length>0&&“number”!=typeof t[0])}},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||(“string”==typeof e?this.whitelist.indexOf(e.replace(/[“‘]/g,”“))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:”“},t}();e.default=i},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0}),e.default=e.Code=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError(”Invalid attempt to destructure non-iterable instance“)},i=function(){function t(t,e){for(var n=0;n=t+n)){var a=this.newlineIndex(t,!0)+1,u=o-a+1,l=this.isolate(a,u),c=l.next;l.format(r,i),c instanceof e&&c.formatAt(0,t-a+n-u,r,i)}}}},{key:”insertAt“,value:function(t,e,n){if(null==n){var i=this.descendant(c.default,t),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,e)}}},{key:”length“,value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith(”n“)?t:t+1}},{key:”newlineIndex“,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf(”n“);var n=this.domNode.textContent.slice(t).indexOf(”n“);return n>-1?t+n:-1}},{key:”optimize“,value:function(t){this.domNode.textContent.endsWith(”n“)||this.appendChild(s.default.create(”text“,”n“)),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),”optimize“,this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:”replace“,value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),”replace“,this).call(this,t),[].slice.call(this.domNode.querySelectorAll(”*“)).forEach((function(t){var e=s.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof s.default.Embed?e.remove():e.unwrap()}))}}],[{key:”create“,value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),”create“,this).call(this,t);return n.setAttribute(”spellcheck“,!1),n}},{key:”formats“,value:function(){return!0}}]),e}(u.default);m.blotName=”code-block“,m.tagName=”PRE“,m.TAB=” “,e.Code=v,e.default=m},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=”function“==typeof Symbol&&”symbol“==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&”function“==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?”symbol“:typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError(”Invalid attempt to destructure non-iterable instance“)},o=function(){function t(t,e){for(var n=0;n=o&&!p.endsWith(”n“)&&(n=!0),e.scroll.insertAt(t,p);var h=e.scroll.line(t),v=i(h,2),y=v[0],g=v[1],b=(0,m.default)({},(0,f.bubbleFormats)(y));if(y instanceof d.default){var w=y.descendant(u.default.Leaf,g),_=i(w,1)[0];b=(0,m.default)(b,(0,f.bubbleFormats)(_))}c=s.default.attributes.diff(b,c)||{}}else if(”object“===r(a.insert)){var O=Object.keys(a.insert)[0];if(null==O)return t;e.scroll.insertAt(t,O,a.insert[O])}o+=l}return Object.keys©.forEach((function(n){e.scroll.formatAt(t,l,n,c[n])})),t+l}),0),t.reduce((function(t,n){return”number“==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:”deleteText“,value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new a.default).retain(t).delete(e))}},{key:”formatLine“,value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys®.forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof l.default){var s=t-e.offset(n.scroll),u=e.newlineIndex(s+a)-s+1;e.formatAt(s,u,i,r[i])}else e.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(t).retain(e,(0,h.default)®))}},{key:”formatText“,value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys®.forEach((function(i){n.scroll.formatAt(t,e,i,r[i])})),this.update((new a.default).retain(t).retain(e,(0,h.default)®))}},{key:”getContents“,value:function(t,e){return this.delta.slice(t,t+e)}},{key:”getDelta“,value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new a.default)}},{key:”getFormat“,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=i(t,1)[0];e instanceof d.default?n.push(e):e instanceof u.default.Leaf&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(u.default.Leaf,t,e));var o=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,f.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=w((0,f.bubbleFormats)(n),e)}return e}));return m.default.apply(m.default,o)}},{key:”getText“,value:function(t,e){return this.getContents(t,e).filter((function(t){return”string“==typeof t.insert})).map((function(t){return t.insert})).join(”“)}},{key:”insertEmbed“,value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new a.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:”insertText“,value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/rn/g,”n“).replace(/r/g,”n“),this.scroll.insertAt(t,e),Object.keys®.forEach((function(i){n.scroll.formatAt(t,e.length,i,r[i])})),this.update((new a.default).retain(t).insert(e,(0,h.default)®))}},{key:”isBlank“,value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===d.default.blotName&&!(t.children.length>1)&&t.children.head instanceof p.default}},{key:”removeFormat“,value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=i(r,2),s=o[0],u=o[1],c=0,f=new a.default;null!=s&&(c=s instanceof l.default?s.newlineIndex(u)-u+1:s.length()-u,f=s.delta().slice(u,u+c-1).insert(”n“));var d=this.getContents(t,e+c).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(t).concat(d);return this.applyDelta(p)}},{key:”update“,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&”characterData“===e[0].type&&e[0].target.data.match(g)&&u.default.find(e[0].target)){var i=u.default.find(e[0].target),o=(0,f.bubbleFormats)(i),s=i.offset(this.scroll),l=e[0].oldValue.replace(c.default.CONTENTS,”“),d=(new a.default).insert(l),p=(new a.default).insert(i.value()),h=(new a.default).retain(s).concat(d.diff(p,n));t=h.reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new a.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,v.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function w(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;f(this,t),this.index=e,this.length=n},h=function(){function t(e,n){var r=this;f(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create(”cursor“,this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM(”selectionchange“,document,(function(){r.mouseDown||setTimeout(r.update.bind(r,u.default.sources.USER),1)})),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(t,e){t===u.default.events.TEXT_CHANGE&&e.length()>0&&r.update(u.default.sources.SILENT)})),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(u.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}}))}})),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(u.default.sources.SILENT)}return i(t,[{key:”handleComposition“,value:function(){var t=this;this.root.addEventListener(”compositionstart“,(function(){t.composing=!0})),this.root.addEventListener(”compositionend“,(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:”handleDragging“,value:function(){var t=this;this.emitter.listenDOM(”mousedown“,document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM(”mouseup“,document.body,(function(){t.mouseDown=!1,t.update(u.default.sources.USER)}))}},{key:”focus“,value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:”format“,value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(t,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:”getBounds“,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var i=void 0,o=this.scroll.leaf(t),a=r(o,2),s=a[0],u=a[1];if(null==s)return null;var l=s.position(u,!0),c=r(l,2);i=c[0],u=c[1];var f=document.createRange();if(e>0){f.setStart(i,u);var d=this.scroll.leaf(t+e),p=r(d,2);if(s=p[0],u=p[1],null==s)return null;var h=s.position(u,!0),v=r(h,2);return i=v[0],u=v[1],f.setEnd(i,u),f.getBoundingClientRect()}var m=”left“,y=void 0;return i instanceof Text?(u0&&(m=”right“)),{bottom:y.top+y.height,height:y.height,left:y[m],right:y[m],top:y.top,width:0}}},{key:”getNativeRange“,value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var i=n.map((function(t){var n=r(t,2),i=n[0],a=n[1],s=o.default.find(i,!0),u=s.offset(e.scroll);return 0===a?u:s instanceof o.default.Container?u+s.length():u+s.index(i,a)})),a=Math.min(Math.max.apply(Math,c(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(c(i)));return new p(s,a-s)}},{key:"normalizeNative",value:function(t){if(!v(this.root,t.startContainer)||!t.collapsed&&!v(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:”rangeToNative“,value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],i=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var a,s=e.scroll.leaf(t),u=r(s,2),l=u[0],c=u[1],f=l.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,i)),a=r(o,1)[0],s=a;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,i));s=r(u,1)[0]}if(null!=a&&null!=s){var l=t.getBoundingClientRect();n.topl.bottom&&(t.scrollTop+=n.bottom-l.bottom)}}}}},{key:”setNativeRange“,value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info(”setNativeRange“,t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){”BR“==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),”BR“==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:”setRange“,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if(”string“==typeof e&&(n=e,e=!1),d.info(”setRange“,t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,c®.concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:”update“,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],l=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(e,this.lastRange)){var c;!this.composing&&null!=l&&l.native.collapsed&&l.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[u.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(e),t];(c=this.emitter).emit.apply(c,[u.default.events.EDITOR_CHANGE].concat(d)),t!==u.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),t}();function v(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=p,e.default=h},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r,i=function(){function t(t,e){for(var n=0;nt.statics.blotName” into “+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],o=r[1],a=[[this,t]];return i instanceof e?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,i){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],i=[];t.forEach((function(t){t.target===n.domNode&&”childList“===t.type&&(r.push.apply(r,t.addedNodes),i.push.apply(i,t.removedNodes))})),i.forEach((function(t){if(!(null!=t.parentNode&&”IFRAME“!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=s.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=s.find(t.nextSibling));var r=l(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(a.default);function l(t){var e=s.find(t);if(null==e)try{e=s.create(t)}catch(n){e=s.create(s.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=u},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=n(12),a=n(31),s=n(17),u=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new a.default(n.domNode),n}return i(e,t),e.formats=function(t){return”string“==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=u.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy®,r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&”attributes“===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(s.default);e.default=l},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=n(30),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){var r=n(11),i=n(3),o={attributes:{compose:function(t,e,n){”object“!=typeof t&&(t={}),”object“!=typeof e&&(e={});var r=i(!0,{},e);for(var o in n||(r=Object.keys®.reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys®.length>0?r:void 0},diff:function(t,e){”object“!=typeof t&&(t={}),”object“!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,i){return r(t[i],e[i])||(n[i]=void 0===e[i]?null:e[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if(”object“!=typeof t)return e;if(”object“==typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys®.length>0?r:void 0}}},iterator:function(t){return new a(t)},length:function(t){return”number“==typeof t.delete?t.delete:”number“==typeof t.retain?t.retain:”string“==typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=o.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,”number“==typeof e.delete)return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),”number“==typeof e.retain?i.retain=t:”string“==typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?”number“==typeof this.ops[this.index].delete?”delete“:”number“==typeof this.ops[this.index].retain?”retain“:”insert“:”retain“},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat®}return[]},t.exports=o},function(t,n){var r=function(){”use strict“;function t(t,e){return null!=e&&t instanceof e}var n,r,i;try{n=Map}catch(t){n=function(){}}try{r=Set}catch(t){r=function(){}}try{i=Promise}catch(t){i=function(){}}function o(a,u,l,c,f){”object“==typeof u&&(l=u.depth,c=u.prototype,f=u.includeNonEnumerable,u=u.circular);var d=[],p=[],h=void 0!==e;return void 0===u&&(u=!0),void 0===l&&(l=1/0),function a(l,v){if(null===l)return null;if(0===v)return l;var m,y;if(”object“!=typeof l)return l;if(t(l,n))m=new n;else if(t(l,r))m=new r;else if(t(l,i))m=new i((function(t,e){l.then((function(e){t(a(e,v-1))}),(function(t){e(a(t,v-1))}))}));else if(o.__isArray(l))m=[];else if(o.__isRegExp(l))m=new RegExp(l.source,s(l)),l.lastIndex&&(m.lastIndex=l.lastIndex);else if(o.__isDate(l))m=new Date(l.getTime());else{if(h&&e.isBuffer(l))return m=e.allocUnsafe?e.allocUnsafe(l.length):new e(l.length),l.copy(m),m;t(l,Error)?m=Object.create(l):void 0===c?(y=Object.getPrototypeOf(l),m=Object.create(y)):(m=Object.create©,y=c)}if(u){var g=d.indexOf(l);if(-1!=g)return p[g];d.push(l),p.push(m)}for(var b in t(l,n)&&l.forEach((function(t,e){var n=a(e,v-1),r=a(t,v-1);m.set(n,r)})),t(l,r)&&l.forEach((function(t){var e=a(t,v-1);m.add(e)})),l){var w;y&&(w=Object.getOwnPropertyDescriptor(y,b)),w&&null==w.set||(m[b]=a(l[b],v-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(l);for(b=0;b<_.length;b++){var O=_[b];(!(x=Object.getOwnPropertyDescriptor(l,O))||x.enumerable||f)&&(m[O]=a(l[O],v-1),x.enumerable||Object.defineProperty(m,O,{enumerable:!1}))}}if(f){var k=Object.getOwnPropertyNames(l);for(b=0;b0){if(s instanceof u.BlockEmbed||p instanceof u.BlockEmbed)return void this.optimize();if(s instanceof f.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var v=p.newlineIndex(0);v>-1&&p.split(v+1)}var m=p.children.head instanceof c.default?null:p.children.head;s.moveChildren(p,m),s.remove()}this.optimize()}},{key:”enable“,value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute(”contenteditable“,t)}},{key:”formatAt“,value:function(t,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),”formatAt“,this).call(this,t,n,r,i),this.optimize())}},{key:”insertAt“,value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith(”n“)&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=a.default.create(n,r);this.appendChild(s)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),”insertAt“,this).call(this,t,n,r);this.optimize()}}},{key:”insertBefore“,value:function(t,n){if(t.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(t),t=r}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),”insertBefore“,this).call(this,t,n)}},{key:”leaf“,value:function(t){return this.path(t).pop()||[null,-1]}},{key:”line“,value:function(t){return t===this.length()?this.line(t-1):this.descendant(h,t)}},{key:”lines“,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var i=[],o=r;return e.children.forEachAt(n,r,(function(e,n,r){h(e)?i.push(e):e instanceof a.default.Container&&(i=i.concat(t(e,n,o))),o-=r})),i};return n(this,t,e)}},{key:”optimize“,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),”optimize“,this).call(this,t,n),t.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,t,n))}},{key:”path“,value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),”path“,this).call(this,t).slice(1)}},{key:”update“,value:function(t){if(!0!==this.batch){var n=s.default.sources.USER;”string“==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),”update“,this).call(this,t.concat([])),t.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,t)}}}]),e}(a.default.Scroll);v.blotName=”scroll“,v.className=”ql-editor“,v.tagName=”DIV“,v.defaultChild=”block“,v.allowedChildren=[l.default,u.BlockEmbed,d.default],e.default=v},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0}),e.SHORTKEY=e.default=void 0;var r=”function“==typeof Symbol&&”symbol“==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&”function“==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?”symbol“:typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError(”Invalid attempt to destructure non-iterable instance“)},o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=j(t);if(null==r||null==r.key)return y.warn(”Attempted to add invalid keyboard binding“,r);”function“==typeof e&&(e={handler:e}),”function“==typeof n&&(n={handler:n}),r=(0,u.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push®}},{key:”listen“,value:function(){var t=this;this.quill.root.addEventListener(”keydown“,(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var u=t.quill.getSelection();if(null!=u&&t.quill.hasFocus()){var l=t.quill.getLine(u.index),c=i(l,2),d=c[0],p=c[1],h=t.quill.getLeaf(u.index),v=i(h,2),m=v[0],y=v[1],g=0===u.length?[m,y]:t.quill.getLeaf(u.index+u.length),b=i(g,2),w=b[0],_=b[1],O=m instanceof f.default.Text?m.value().slice(0,y):”“,k=w instanceof f.default.Text?w.value().slice(_):”“,x={collapsed:0===u.length,empty:0===u.length&&d.length()<=1,format:t.quill.getFormat(u),offset:p,prefix:O,suffix:k};a.some((function(e){if(null!=e.collapsed&&e.collapsed!==x.collapsed)return!1;if(null!=e.empty&&e.empty!==x.empty)return!1;if(null!=e.offset&&e.offset!==x.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==x.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=x.format[t]:!1===e.format[t]?null==x.format[t]:(0,s.default)(e.format[t],x.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(x.prefix)||null!=e.suffix&&!e.suffix.test(x.suffix)||!0===e.handler.call(t,u,x))}))&&n.preventDefault()}}}}))}}]),e}(h.default);function w(t,e){var n,r=t===b.keys.LEFT?"prefix":"suffix";return m(n={key:t,shiftKey:e,altKey:null},r,/^$/),m(n,"handler",(function(n){var r=n.index;t===b.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof f.default.Embed&&(t===b.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))})),n}function _(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=i(n,1)[0],o={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=i(a,1)[0];if(null!=s&&s.length()>1){var u=r.formats(),l=this.quill.getFormat(t.index-1,1);o=c.default.attributes.diff(u,l)||{}}}var f=/[uD800-uDBFF][uDC00-uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,d.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-f,f,o,d.default.sources.USER),this.quill.focus()}}function O(t,e){var n=/^[uD800-uDBFF][uDC00-uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(t.index),s=i(a,1)[0];if(e.offset>=s.length()-1){var u=this.quill.getLine(t.index+1),l=i(u,1)[0];if(l){var f=s.formats(),p=this.quill.getFormat(t.index,1);r=c.default.attributes.diff(f,p)||{},o=l.length()}}this.quill.deleteText(t.index,n,d.default.sources.USER),Object.keys®.length>0&&this.quill.formatLine(t.index+o-1,n,r,d.default.sources.USER)}}function k(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=c.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,d.default.sources.USER),this.quill.setSelection(t.index,d.default.sources.SILENT),this.quill.focus()}function x(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,”n“,r,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||”link“!==t&&n.quill.format(t,e.format[t],d.default.sources.USER))}))}function C(t){return{key:b.keys.TAB,shiftKey:!t,format:{”code-block“:!0},handler:function(e){var n=f.default.query(”code-block“),r=e.index,o=e.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),u=s[0],l=s[1];if(null!=u){var c=this.quill.getIndex(u),p=u.newlineIndex(l,!0)+1,h=u.newlineIndex(c+l+o),v=u.domNode.textContent.slice(p,h).split(”n“);l=0,v.forEach((function(e,i){t?(u.insertAt(p+l,n.TAB),l+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(u.deleteAt(p+l,n.TAB.length),l-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),l+=e.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,o,d.default.sources.SILENT)}}}}function E(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],d.default.sources.USER)}}}function j(t){if(”string“==typeof t||”number“==typeof t)return j({key:t});if(”object“===(void 0===t?”undefined“:r(t))&&(t=(0,a.default)(t,!1)),”string“==typeof t.key)if(null!=b.keys[t.key.toUpperCase()])t.key=b.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[g]=t.shortKey,delete t.shortKey),t}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:E(”bold“),italic:E(”italic“),underline:E(”underline“),indent:{key:b.keys.TAB,format:[”blockquote“,”indent“,”list“],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format(”indent“,”+1“,d.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:[”blockquote“,”indent“,”list“],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format(”indent“,”-1“,d.default.sources.USER)}},”outdent backspace“:{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:[”indent“,”list“],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format(”indent“,”-1“,d.default.sources.USER):null!=e.format.list&&this.quill.format(”list“,!1,d.default.sources.USER)}},”indent code-block“:C(!0),”outdent code-block“:C(!1),”remove tab“:{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/t$/,handler:function(t){this.quill.deleteText(t.index-1,1,d.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new l.default).retain(t.index).delete(t.length).insert(”t“);this.quill.updateContents(e,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,d.default.sources.SILENT)}},”list empty enter“:{key:b.keys.ENTER,collapsed:!0,format:[”list“],empty:!0,handler:function(t,e){this.quill.format(”list“,!1,d.default.sources.USER),e.format.indent&&this.quill.format(”indent“,!1,d.default.sources.USER)}},”checklist enter“:{key:b.keys.ENTER,collapsed:!0,format:{list:”checked“},handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(0,u.default)({},r.formats(),{list:”checked“}),s=(new l.default).retain(t.index).insert(”n“,a).retain(r.length()-o-1).retain(1,{list:”unchecked“});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},”header enter“:{key:b.keys.ENTER,collapsed:!0,format:[”header“],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=i(n,2),o=r[0],a=r[1],s=(new l.default).retain(t.index).insert(”n“,e.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},”list autofill“:{key:” “,collapsed:!0,format:{list:!1},prefix:/^s*?(d+.|-|*|[ ?]|[x])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var u=void 0;switch(e.prefix.trim()){case”[]“:case”[ ]“:u=”unchecked“;break;case”[x]“:u=”checked“;break;case”-“:case”*“:u=”bullet“;break;default:u=”ordered“}this.quill.insertText(t.index,” “,d.default.sources.USER),this.quill.history.cutoff();var c=(new l.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:u});this.quill.updateContents(c,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,d.default.sources.SILENT)}},”code exit“:{key:b.keys.ENTER,collapsed:!0,format:[”code-block“],prefix:/nn$/,suffix:/^s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(new l.default).retain(t.index+r.length()-o-2).retain(1,{”code-block“:null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},”embed left“:w(b.keys.LEFT,!1),”embed left shift“:w(b.keys.LEFT,!0),”embed right“:w(b.keys.RIGHT,!1),”embed right shift“:w(b.keys.RIGHT,!0)}},e.default=b,e.SHORTKEY=g},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError(”Invalid attempt to destructure non-iterable instance“)},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if(”value“in i)return i.value;var a=i.get;return void 0!==a?a.call®:void 0},o=function(){function t(t,e){for(var n=0;n-1}l.blotName=”link“,l.tagName=”A“,l.SANITIZED_URL=”about:blank“,l.PROTOCOL_WHITELIST=[”http“,”https“,”mailto“,”tel“],e.default=l,e.sanitize=c},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=”function“==typeof Symbol&&”symbol“==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&”function“==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?”symbol“:typeof t},i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(”.ql-selected“);if(t!==n&&(null!=n&&n.classList.remove(”ql-selected“),null!=t&&(t.classList.add(”ql-selected“),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute(”data-value“)?this.label.setAttribute(”data-value“,t.getAttribute(”data-value“)):this.label.removeAttribute(”data-value“),t.hasAttribute(”data-label“)?this.label.setAttribute(”data-label“,t.getAttribute(”data-label“)):this.label.removeAttribute(”data-label“),e))){if(”function“==typeof Event)this.select.dispatchEvent(new Event(”change“));else if(”object“===(”undefined“==typeof Event?”undefined“:r(Event))){var i=document.createEvent(”Event“);i.initEvent(”change“,!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:”update“,value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(”.ql-picker-options“).children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector(”option[selected]“);this.label.classList.toggle(”ql-active“,n)}}]),t}();e.default=c},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=y(n(0)),i=y(n(5)),o=n(4),a=y(o),s=y(n(16)),u=y(n(25)),l=y(n(24)),c=y(n(35)),f=y(n(6)),d=y(n(22)),p=y(n(7)),h=y(n(55)),v=y(n(42)),m=y(n(23));function y(t){return t&&t.__esModule?t:{default:t}}i.default.register({”blots/block“:a.default,”blots/block/embed“:o.BlockEmbed,”blots/break“:s.default,”blots/container“:u.default,”blots/cursor“:l.default,”blots/embed“:c.default,”blots/inline“:f.default,”blots/scroll“:d.default,”blots/text“:p.default,”modules/clipboard“:h.default,”modules/history“:v.default,”modules/keyboard“:m.default}),r.default.register(a.default,s.default,l.default,f.default,d.default,p.default),e.default=i.default},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,”statics“,{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError(”Blot definition missing tagName“);var e;return Array.isArray(this.tagName)?(”string“==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e=”number“==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create(”text“,e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n=”string“==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n=”string“==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName=”abstract“,t}();e.default=i},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t,e){return(t.getAttribute(”class“)||”“).split(/s+/).filter((function(t){return 0===t.indexOf(e+”-“)}))}Object.defineProperty(e,”__esModule“,{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute(”class“)||”“).split(/s+/).map((function(t){return t.split(”-“).slice(0,-1).join(”-“)}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+”-“+e),!0)},e.prototype.remove=function(t){o(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute(”class“)},e.prototype.value=function(t){var e=(o(t,this.keyName)[0]||”“).slice(this.keyName.length+1);return this.canAdd(t,e)?e:”“},e}(n(12).default);e.default=a},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t){var e=t.split(”-“),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join(”“);return e[0]+n}Object.defineProperty(e,”__esModule“,{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute(”style“)||”“).split(”;“).map((function(t){return t.split(”:“)[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]=”“,t.getAttribute(”style“)||t.removeAttribute(”style“)},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:”“},e}(n(12).default);e.default=a},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=function(){function t(t,e){for(var n=0;nr&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:”redo“,value:function(){this.change(”redo“,”undo“)}},{key:”transform“,value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:”undo“,value:function(){this.change(”undo“,”redo“)}}]),e}(a(n(9)).default);function u(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),n=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?”string“==typeof e.insert&&e.insert.endsWith(”n“):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}(t)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=s,e.getLastChangeIndex=u},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:”link“,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove(”ql-hidden“),this.root.classList.add(”ql-editing“),null!=e?this.textbox.value=e:t!==this.root.getAttribute(”data-mode“)&&(this.textbox.value=”“),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute(”placeholder“,this.textbox.getAttribute(”data-“+t)||”“),this.root.setAttribute(”data-mode“,t)}},{key:”restoreFocus“,value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:”save“,value:function(){var t,e,n=this.textbox.value;switch(this.root.getAttribute(”data-mode“)){case”link“:var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,”link“,n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format(”link“,n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case”video“:e=(t=n).match(/^(?:(https?)://)?(?:(?:www|m).)?youtube.com/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?)://)?(?:(?:www|m).)?youtu.be/([a-zA-Z0-9_-]+)/),n=e?(e[1]||”https“)+”://www.youtube.com/embed/“e[2]”?showinfo=0“:(e=t.match(/^(?:(https?)://)?(?:www.)?vimeo.com/(d+)/))?(e[1]||”https“)+”://player.vimeo.com/video/“e[2]2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement(”option“);e===n?r.setAttribute(”selected“,”selected“):r.setAttribute(”value“,e),t.appendChild®}))}e.BaseTooltip=k,e.default=O},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(ta?n(r,t-a,Math.min(e,a+u-t)):n(r,0,Math.min(u,t+e-a)),a+=u}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=n(17),a=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,s),n.attach(),n}return i(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)e.push(i.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[a.DATA_KEY].mutations&&(t.domNode[a.DATA_KEY].mutations=[]),e&&s(t.parent))},u=function(t){null!=t.domNode[a.DATA_KEY]&&null!=t.domNode[a.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(u),t.optimize(n))},l=e,c=0;l.length>0;c+=1){if(c>=100)throw new Error(”[Parchment] Maximum optimize iterations reached“);for(l.forEach((function(t){var e=a.find(t.target,!0);null!=e&&(e.domNode===t.target&&(”childList“===t.type?(s(a.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=a.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):”attributes“===t.type&&s(e.prev)),s(e))})),this.children.forEach(u),i=(l=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)e.push(i.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=a.find(t.target,!0);return null==e?null:null==e.domNode[a.DATA_KEY].mutations?(e.domNode[a.DATA_KEY].mutations=[t],e):(e.domNode[a.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[a.DATA_KEY]&&t.update(t.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName=”scroll“,e.defaultChild=”block“,e.scope=a.Scope.BLOCK_BLOT,e.tagName=”DIV“,e}(o.default);e.default=u},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys®.length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName=”inline“,e.scope=a.Scope.INLINE_BLOT,e.tagName=”SPAN“,e}(o.default);e.default=s},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var r=a.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),o=a.create(n,r);i.parent.insertBefore(o,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName=”block“,e.scope=a.Scope.BLOCK_BLOT,e.tagName=”P“,e}(o.default);e.default=s},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=o},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=n(19),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=a.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return”characterData“===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName=”text“,e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){”use strict“;var r=document.createElement(”div“);if(r.classList.toggle(”test-class“,!1),r.classList.contains(”test-class“)){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();(”number“!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,”find“,{value:function(t){if(null===this)throw new TypeError(”Array.prototype.find called on null or undefined“);if(”function“!=typeof t)throw new TypeError(”predicate must be a function“);for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;oe.length?t:e,u=t.length>e.length?e:t,l=s.indexOf(u);if(-1!=l)return a=[[1,s.substring(0,l)],[0,u],[1,s.substring(l+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=-1),a;if(1==u.length)return[[-1,t],[1,e]];var c=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length=t.length?[r,a,s,u,f]:null}var s,u,l,c,f,d=a(n,r,Math.ceil(n.length/4)),p=a(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;s=p?d&&d[4].length>p[4].length?d:p:d,t.length>e.length?(u=s[0],l=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],u=s[2],l=s[3]);var h=s[4];return[u,l,c,f,h]}(t,e);if©{var f=c[0],d=c[1],p=c[2],h=c[3],v=c[4],m=n(f,p),y=n(d,h);return m.concat([[0,v]],y)}return function(t,e){for(var n=t.length,i=e.length,o=Math.ceil((n+i)/2),a=o,s=2*o,u=new Array(s),l=new Array(s),c=0;cn)h+=2;else if(w>i)p+=2;else if(d&&(k=a+f-g)>=0&&k=_)return r(t,e,C,w)}}for(var O=-y+v;O<=y-m;O+=2){for(var k=a+O,x=(_=O==-y||O!=y&&l[k-1]n)m+=2;else if(x>i)v+=2;else if(!d&&(b=a+f-O)>=0&&b=(_=n-_))return r(t,e,C,w)}}}return[[-1,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-u),e=e.substring(0,e.length-u));return l&&f.unshift([0,l]),c&&f.push([0,c]),function t(e){e.push([0,”“]);for(var n,r=0,a=0,s=0,u=”“,l=”“;r1?(0!==a&&0!==s&&(0!==(n=i(l,u))&&(r-a-s>0&&0==e[r-a-s-1][0]?e[r-a-s-1][1]+=l.substring(0,n):(e.splice(0,0,[0,l.substring(0,n)]),r++),l=l.substring(n),u=u.substring(n)),0!==(n=o(l,u))&&(e[r][1]=l.substring(l.length-n)+e[r][1],l=l.substring(0,l.length-n),u=u.substring(0,u.length-n))),0===a?e.splice(r-s,a+s,[1,l]):0===s?e.splice(r-a,a+s,[-1,u]):e.splice(r-a-s,a+s,[-1,u],[1,l]),r=r-a-s+(a?1:0)+(s?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,s=0,a=0,u=”“,l=”“}”“===e[e.length-1][1]&&e.pop();var c=!1;for(r=1;r0&&r.splice(i+2,0,[a[0],u]),s(r,i,3)}return t}(f,a)),f=function(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r=55296&&i.charCodeAt(i.length-1)<=56319&&-1===t[r-1][0]&&n(t[r-1][1])&&1===t[r][0]&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));var i;if(!e)return t;var o=[];for(r=0;r0&&o.push(t[r]);return o}(f)}function r(t,e,r,i){var o=t.substring(0,r),a=e.substring(0,i),s=t.substring®,u=e.substring(i),l=n(o,a),c=n(s,u);return l.concat©}function i(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n=0&&r>=e-1;r–)if(r+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=j(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new s.default).insert(”t“).concat(e)),e}],[”li“,function(t,e){var n=u.default.query(t);if(null==n||”list-item“!==n.blotName||!T(e,”n“))return e;for(var r=-1,i=t.parentNode;!i.classList.contains(”ql-clipboard“);)”list“===(u.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new s.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",P.bind(P,"bold")],["i",P.bind(P,"italic")],["style",function(){return new s.default}]],x=[d.AlignAttribute,m.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),C=[d.AlignStyle,p.BackgroundStyle,v.ColorStyle,m.DirectionStyle,y.FontStyle,g.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),E=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],k.concat(r.options.matchers).forEach((function(t){var e=i(t,2),o=e[0],a=e[1];(n.matchVisual||a!==D)&&r.addMatcher(o,a)})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>r?n +<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,w({},h.default.blotName,e[h.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],u=o[1],l=function t(e,n,r){return e.nodeType===e.TEXT_NODE?r.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(i,o){var a=t(o,n,r);return o.nodeType===e.ELEMENT_NODE&&(a=n.reduce((function(t,e){return e(o,t)}),a),a=(o[O]||[]).reduce((function(t,e){return e(o,t)}),a)),i.concat(a)}),new s.default):new s.default}(this.container,a,u);return T(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new s.default).retain(l.length()-1).delete(1))),_.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if(”string“==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,l.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new s.default).retain(t).concat®,n),this.quill.setSelection(t+r.length(),l.default.sources.SILENT)}}},{key:”onPaste“,value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,l.default.sources.USER),e.quill.setSelection(r.length()-n.length,l.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:”prepareMatching“,value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function®{var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[O]=t[O]||[],t[O].push(s)}))}})),[e,n]}}]),e}(f.default);function j(t,e,n){return”object“===(void 0===e?”undefined“:r(e))?Object.keys(e).reduce((function(t,n){return j(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push®:t.insert(r.insert,(0,a.default)({},w({},e,n),r.attributes))}),new s.default)}function S(t){return t.nodeType!==Node.ELEMENT_NODE?{}:t[”__ql-computed-style“]||(t[”__ql-computed-style“]=window.getComputedStyle(t))}function T(t,e){for(var n=”“,r=t.ops.length-1;r>=0&&n.length-1}function P(t,e,n){return j(n,t,!0)}function N(t,e){var n=u.default.Attributor.Attribute.keys(t),r=u.default.Attributor.Class.keys(t),i=u.default.Attributor.Style.keys(t),o={};return n.concat®.concat(i).forEach((function(e){var n=u.default.query(e,u.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(null==(n=x[e])||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=C[e])||n.attrName!==e&&n.keyName!==e||(n=C[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=j(e,o)),e}function L(t,e){var n=u.default.query(t);if(null==n)return e;if(n.prototype instanceof u.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new s.default).insert(r,n.formats(t)))}else”function“==typeof n.formats&&(e=j(e,n.blotName,n.formats(t)));return e}function I(t,e){return T(e,”n“)||(A(t)||e.length()>0&&t.nextSibling&&A(t.nextSibling))&&e.insert(”n“),e}function D(t,e){if(A(t)&&null!=t.nextElementSibling&&!T(e,”nn“)){var n=t.offsetHeight+parseFloat(S(t).marginTop)+parseFloat(S(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert(”n“)}return e}function R(t,e){var n=t.data;if(”O:P“===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains(”ql-clipboard“))return e;if(!S(t.parentNode).whiteSpace.startsWith(”pre“)){var r=function(t,e){return(e=e.replace(/[^u00a0]/g,”“)).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&A(t.parentNode)||null!=t.previousSibling&&A(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&A(t.parentNode)||null!=t.nextSibling&&A(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}E.DEFAULTS={matchers:[],matchVisual:!0},e.default=E,e.matchAttributor=N,e.matchBlot=L,e.matchNewline=I,e.matchSpacing=D,e.matchText=R},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n”/“:t;case”formula“:if(!n)break;var i=this.quill.getSelection(!0);if(null!=i){var o=i.index+i.length;this.quill.insertEmbed(o,this.root.getAttribute(”data-mode“),n,a.default.sources.USER),”formula“===this.root.getAttribute(”data-mode“)&&this.quill.insertText(o+1,” “,a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value=”“,this.hide()}}]),e}(d.default);function x(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement(”option“);e===n?r.setAttribute(”selected“,”selected“):r.setAttribute(”value“,e),t.appendChild®}))}e.BaseTooltip=k,e.default=O},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(ta?n(r,t-a,Math.min(e,a+u-t)):n(r,0,Math.min(u,t+e-a)),a+=u}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=n(17),a=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,s),n.attach(),n}return i(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)e.push(i.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[a.DATA_KEY].mutations&&(t.domNode[a.DATA_KEY].mutations=[]),e&&s(t.parent))},u=function(t){null!=t.domNode[a.DATA_KEY]&&null!=t.domNode[a.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(u),t.optimize(n))},l=e,c=0;l.length>0;c+=1){if(c>=100)throw new Error(”[Parchment] Maximum optimize iterations reached“);for(l.forEach((function(t){var e=a.find(t.target,!0);null!=e&&(e.domNode===t.target&&(”childList“===t.type?(s(a.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=a.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):”attributes“===t.type&&s(e.prev)),s(e))})),this.children.forEach(u),i=(l=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)e.push(i.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=a.find(t.target,!0);return null==e?null:null==e.domNode[a.DATA_KEY].mutations?(e.domNode[a.DATA_KEY].mutations=[t],e):(e.domNode[a.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[a.DATA_KEY]&&t.update(t.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName=”scroll“,e.defaultChild=”block“,e.scope=a.Scope.BLOCK_BLOT,e.tagName=”DIV“,e}(o.default);e.default=u},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys®.length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName=”inline“,e.scope=a.Scope.INLINE_BLOT,e.tagName=”SPAN“,e}(o.default);e.default=s},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var r=a.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),o=a.create(n,r);i.parent.insertBefore(o,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName=”block“,e.scope=a.Scope.BLOCK_BLOT,e.tagName=”P“,e}(o.default);e.default=s},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=o},function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=n(19),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=a.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return”characterData“===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName=”text“,e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){”use strict“;var r=document.createElement(”div“);if(r.classList.toggle(”test-class“,!1),r.classList.contains(”test-class“)){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();(”number“!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,”find“,{value:function(t){if(null===this)throw new TypeError(”Array.prototype.find called on null or undefined“);if(”function“!=typeof t)throw new TypeError(”predicate must be a function“);for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;oe.length?t:e,u=t.length>e.length?e:t,l=s.indexOf(u);if(-1!=l)return a=[[1,s.substring(0,l)],[0,u],[1,s.substring(l+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=-1),a;if(1==u.length)return[[-1,t],[1,e]];var c=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length=t.length?[r,a,s,u,f]:null}var s,u,l,c,f,d=a(n,r,Math.ceil(n.length/4)),p=a(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;s=p?d&&d[4].length>p[4].length?d:p:d,t.length>e.length?(u=s[0],l=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],u=s[2],l=s[3]);var h=s[4];return[u,l,c,f,h]}(t,e);if©{var f=c[0],d=c[1],p=c[2],h=c[3],v=c[4],m=n(f,p),y=n(d,h);return m.concat([[0,v]],y)}return function(t,e){for(var n=t.length,i=e.length,o=Math.ceil((n+i)/2),a=o,s=2*o,u=new Array(s),l=new Array(s),c=0;cn)h+=2;else if(w>i)p+=2;else if(d&&(k=a+f-g)>=0&&k=_)return r(t,e,C,w)}}for(var O=-y+v;O<=y-m;O+=2){for(var k=a+O,x=(_=O==-y||O!=y&&l[k-1]n)m+=2;else if(x>i)v+=2;else if(!d&&(b=a+f-O)>=0&&b=(_=n-_))return r(t,e,C,w)}}}return[[-1,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-u),e=e.substring(0,e.length-u));return l&&f.unshift([0,l]),c&&f.push([0,c]),function t(e){e.push([0,”“]);for(var n,r=0,a=0,s=0,u=”“,l=”“;r1?(0!==a&&0!==s&&(0!==(n=i(l,u))&&(r-a-s>0&&0==e[r-a-s-1][0]?e[r-a-s-1][1]+=l.substring(0,n):(e.splice(0,0,[0,l.substring(0,n)]),r++),l=l.substring(n),u=u.substring(n)),0!==(n=o(l,u))&&(e[r][1]=l.substring(l.length-n)+e[r][1],l=l.substring(0,l.length-n),u=u.substring(0,u.length-n))),0===a?e.splice(r-s,a+s,[1,l]):0===s?e.splice(r-a,a+s,[-1,u]):e.splice(r-a-s,a+s,[-1,u],[1,l]),r=r-a-s+(a?1:0)+(s?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,s=0,a=0,u=”“,l=”“}”“===e[e.length-1][1]&&e.pop();var c=!1;for(r=1;r0&&r.splice(i+2,0,[a[0],u]),s(r,i,3)}return t}(f,a)),f=function(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r=55296&&i.charCodeAt(i.length-1)<=56319&&-1===t[r-1][0]&&n(t[r-1][1])&&1===t[r][0]&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));var i;if(!e)return t;var o=[];for(r=0;r0&&o.push(t[r]);return o}(f)}function r(t,e,r,i){var o=t.substring(0,r),a=e.substring(0,i),s=t.substring®,u=e.substring(i),l=n(o,a),c=n(s,u);return l.concat©}function i(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n=0&&r>=e-1;r–)if(r+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=j(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new s.default).insert(”t“).concat(e)),e}],[”li“,function(t,e){var n=u.default.query(t);if(null==n||”list-item“!==n.blotName||!T(e,”n“))return e;for(var r=-1,i=t.parentNode;!i.classList.contains(”ql-clipboard“);)”list“===(u.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new s.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",P.bind(P,"bold")],["i",P.bind(P,"italic")],["style",function(){return new s.default}]],x=[d.AlignAttribute,m.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),C=[d.AlignStyle,p.BackgroundStyle,v.ColorStyle,m.DirectionStyle,y.FontStyle,g.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),E=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],k.concat(r.options.matchers).forEach((function(t){var e=i(t,2),o=e[0],a=e[1];(n.matchVisual||a!==D)&&r.addMatcher(o,a)})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>r?n +<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,w({},h.default.blotName,e[h.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],u=o[1],l=function t(e,n,r){return e.nodeType===e.TEXT_NODE?r.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(i,o){var a=t(o,n,r);return o.nodeType===e.ELEMENT_NODE&&(a=n.reduce((function(t,e){return e(o,t)}),a),a=(o[O]||[]).reduce((function(t,e){return e(o,t)}),a)),i.concat(a)}),new s.default):new s.default}(this.container,a,u);return T(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new s.default).retain(l.length()-1).delete(1))),_.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if(”string“==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,l.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new s.default).retain(t).concat®,n),this.quill.setSelection(t+r.length(),l.default.sources.SILENT)}}},{key:”onPaste“,value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,l.default.sources.USER),e.quill.setSelection(r.length()-n.length,l.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:”prepareMatching“,value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function®{var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[O]=t[O]||[],t[O].push(s)}))}})),[e,n]}}]),e}(f.default);function j(t,e,n){return”object“===(void 0===e?”undefined“:r(e))?Object.keys(e).reduce((function(t,n){return j(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push®:t.insert(r.insert,(0,a.default)({},w({},e,n),r.attributes))}),new s.default)}function S(t){return t.nodeType!==Node.ELEMENT_NODE?{}:t[”__ql-computed-style“]||(t[”__ql-computed-style“]=window.getComputedStyle(t))}function T(t,e){for(var n=”“,r=t.ops.length-1;r>=0&&n.length-1}function P(t,e,n){return j(n,t,!0)}function N(t,e){var n=u.default.Attributor.Attribute.keys(t),r=u.default.Attributor.Class.keys(t),i=u.default.Attributor.Style.keys(t),o={};return n.concat®.concat(i).forEach((function(e){var n=u.default.query(e,u.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(null==(n=x[e])||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=C[e])||n.attrName!==e&&n.keyName!==e||(n=C[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=j(e,o)),e}function L(t,e){var n=u.default.query(t);if(null==n)return e;if(n.prototype instanceof u.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new s.default).insert(r,n.formats(t)))}else”function“==typeof n.formats&&(e=j(e,n.blotName,n.formats(t)));return e}function I(t,e){return T(e,”n“)||(A(t)||e.length()>0&&t.nextSibling&&A(t.nextSibling))&&e.insert(”n“),e}function D(t,e){if(A(t)&&null!=t.nextElementSibling&&!T(e,”nn“)){var n=t.offsetHeight+parseFloat(S(t).marginTop)+parseFloat(S(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert(”n“)}return e}function R(t,e){var n=t.data;if(”O:P“===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains(”ql-clipboard“))return e;if(!S(t.parentNode).whiteSpace.startsWith(”pre“)){var r=function(t,e){return(e=e.replace(/[^u00a0]/g,”“)).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&A(t.parentNode)||null!=t.previousSibling&&A(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&A(t.parentNode)||null!=t.nextSibling&&A(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}E.DEFAULTS={matchers:[],matchVisual:!0},e.default=E,e.matchAttributor=N,e.matchBlot=L,e.matchNewline=I,e.matchSpacing=D,e.matchText=R},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;nu’”]‘)}null==s?(a.value=“”,a.selectedIndex=-1):s.selected=!0}else if(null==t)a.classList.remove(“ql-active”);else if(a.hasAttribute(“value”)){var l=e[o]===a.getAttribute(“value”)||null!=e[o]&&e[o].toString()===a.getAttribute(“value”)||null==e[o]&&!a.getAttribute(“value”);a.classList.toggle(“ql-active”,l)}else a.classList.toggle(“ql-active”,null!=e[o])}))}}]),e}(l.default);function h(t,e,n){var r=document.createElement(“button”);r.setAttribute(“type”,“button”),r.classList.add(“ql-”+e),null!=n&&(r.value=n),t.appendChild®}function v(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement(“span”);n.classList.add(“ql-formats”),e.forEach((function(t){if(“string”==typeof t)h(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray®?function(t,e,n){var r=document.createElement(“select”);r.classList.add(“ql-”+e),n.forEach((function(t){var e=document.createElement(“option”);!1!==t?e.setAttribute(“value”,t):e.setAttribute(“selected”,“selected”),r.appendChild(e)})),t.appendChild®}(n,e,r):h(n,e,r)}})),t.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=a.default.query(e,a.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,s.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;“rtl”===t&&null==e?this.quill.format(“align”,“right”,s.default.sources.USER):t||“right”!==e||this.quill.format(“align”,!1,s.default.sources.USER),this.quill.format(“direction”,t,s.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if(“+1”===t||“-1”===t){var i=“+1”===t?1:-1;“rtl”===n.direction&&(i*=-1),this.quill.format(“indent”,r+i,s.default.sources.USER)}},link:function(t){!0===t&&(t=prompt(“Enter link URL:”)),this.quill.format(“link”,t,s.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);“check”===t?“checked”===n.list||“unchecked”===n.list?this.quill.format(“list”,!1,s.default.sources.USER):this.quill.format(“list”,“unchecked”,s.default.sources.USER):this.quill.format(“list”,t,s.default.sources.USER)}}},e.default=p,e.addControls=v},function(t,e){t.exports=’ ‘},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r,i=function(){function t(t,e){for(var n=0;nr.right&&(o=r.right-i.right,this.root.style.left=e+o+“px”),i.leftr.bottom){var a=i.bottom-i.top,s=t.bottom-t.top+a;this.root.style.top=n-s+“px”,this.root.classList.add(“ql-flip”)}return o}},{key:“show”,value:function(){this.root.classList.remove(“ql-editing”),this.root.classList.remove(“ql-hidden”)}}]),t}();e.default=i},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if(“value”in i)return i.value;var a=i.get;return void 0!==a?a.call®:void 0},o=function(){function t(t,e){for(var n=0;n’,‘’,‘’,‘’].join(“”),e.default=g},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=D(n(29)),i=n(36),o=n(38),a=n(64),s=D(n(65)),u=D(n(66)),l=n(67),c=D(l),f=n(37),d=n(26),p=n(39),h=n(40),v=D(n(56)),m=D(n(68)),y=D(n(27)),g=D(n(69)),b=D(n(70)),w=D(n(71)),_=D(n(72)),O=D(n(73)),k=n(13),x=D(k),C=D(n(74)),E=D(n(75)),j=D(n(57)),S=D(n(41)),T=D(n(28)),A=D(n(59)),P=D(n(60)),N=D(n(61)),L=D(n(108)),I=D(n(62));function D(t){return t&&t.__esModule?t:{default:t}}r.default.register({“attributors/attribute/direction”:o.DirectionAttribute,“attributors/class/align”:i.AlignClass,“attributors/class/background”:f.BackgroundClass,“attributors/class/color”:d.ColorClass,“attributors/class/direction”:o.DirectionClass,“attributors/class/font”:p.FontClass,“attributors/class/size”:h.SizeClass,“attributors/style/align”:i.AlignStyle,“attributors/style/background”:f.BackgroundStyle,“attributors/style/color”:d.ColorStyle,“attributors/style/direction”:o.DirectionStyle,“attributors/style/font”:p.FontStyle,“attributors/style/size”:h.SizeStyle},!0),r.default.register({“formats/align”:i.AlignClass,“formats/direction”:o.DirectionClass,“formats/indent”:a.IndentClass,“formats/background”:f.BackgroundStyle,“formats/color”:d.ColorStyle,“formats/font”:p.FontClass,“formats/size”:h.SizeClass,“formats/blockquote”:s.default,“formats/code-block”:x.default,“formats/header”:u.default,“formats/list”:c.default,“formats/bold”:v.default,“formats/code”:k.Code,“formats/italic”:m.default,“formats/link”:y.default,“formats/script”:g.default,“formats/strike”:b.default,“formats/underline”:w.default,“formats/image”:_.default,“formats/video”:O.default,“formats/list/item”:l.ListItem,“modules/formula”:C.default,“modules/syntax”:E.default,“modules/toolbar”:j.default,“themes/bubble”:L.default,“themes/snow”:I.default,“ui/icons”:S.default,“ui/picker”:T.default,“ui/icon-picker”:P.default,“ui/color-picker”:A.default,“ui/tooltip”:N.default},!0),e.default=r.default},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0}),e.IndentClass=void 0;var r,i=function(){function t(t,e){for(var n=0;n0&&this.children.tail.format(t,e)}},{key:“formats”,value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:“insertBefore”,value:function(t,n){if(t instanceof d)i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),“insertBefore”,this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split®;o.parent.insertBefore(t,o)}}},{key:“optimize”,value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),“optimize”,this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute(“data-checked”)===this.domNode.getAttribute(“data-checked”)&&(n.moveChildren(this),n.remove())}},{key:“replace”,value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),“replace”,this).call(this,t)}}]),e}(s.default);p.blotName=“list”,p.scope=o.default.Scope.BLOCK_BLOT,p.tagName=[“OL”,“UL”],p.defaultChild=“list-item”,p.allowedChildren=[d],e.ListItem=d,e.default=p},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r,i=n(56);function o(t,e){if(!(t instanceof e))throw new TypeError(“Cannot call a class as a function”)}function a(t,e){if(!t)throw new ReferenceError(“this hasn’t been initialised - super() hasn’t been called”);return!e||“object”!=typeof e&&“function”!=typeof e?t:e}var s=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if(“function”!=typeof e&&null!==e)throw new TypeError(“Super expression must either be null or a function, not ”+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName=“italic”,s.tagName=[“EM”,“I”],e.default=s},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r,i=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),“format”,this).call(this,t,n)}}],[{key:“create”,value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),“create”,this).call(this,t);return“string”==typeof t&&n.setAttribute(“src”,this.sanitize(t)),n}},{key:“formats”,value:function(t){return f.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:“match”,value:function(t){return/.(jpe?g|gif|png)$/.test(t)||/^data:image/.+;base64/.test(t)}},{key:“sanitize”,value:function(t){return(0,u.sanitize)(t,[“http”,“https”,“data”])?t:“//:0”}},{key:“value”,value:function(t){return t.getAttribute(“src”)}}]),e}(s.default.Embed);d.blotName=“image”,d.tagName=“IMG”,e.default=d},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r,i=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),“format”,this).call(this,t,n)}}],[{key:“create”,value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),“create”,this).call(this,t);return n.setAttribute(“frameborder”,“0”),n.setAttribute(“allowfullscreen”,!0),n.setAttribute(“src”,this.sanitize(t)),n}},{key:“formats”,value:function(t){return f.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:“sanitize”,value:function(t){return u.default.sanitize(t)}},{key:“value”,value:function(t){return t.getAttribute(“src”)}}]),e}(a.BlockEmbed);d.blotName=“video”,d.className=“ql-video”,d.tagName=“IFRAME”,e.default=d},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(s(n(13)).default);f.className=“ql-syntax”;var d=new i.default.Attributor.Class(“token”,“hljs”,{scope:i.default.Scope.INLINE}),p=function(t){function e(t,n){u(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(“function”!=typeof r.options.highlight)throw new Error(“Syntax module requires highlight.js. Please include the library on the page before Quill.”);var i=null;return r.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return c(e,t),r(e,null,[{key:“register”,value:function(){o.default.register(d,!0),o.default.register(f,!0)}}]),r(e,[{key:“highlight”,value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(o.default.sources.SILENT),null!=e&&this.quill.setSelection(e,o.default.sources.SILENT)}}}]),e}(a.default);p.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=f,e.CodeToken=d,e.default=p},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e){t.exports=‘ ’},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if(“value”in i)return i.value;var a=i.get;return void 0!==a?a.call®:void 0},i=function(){function t(t,e){for(var n=0;n0&&i===a.default.sources.USER){r.show(),r.root.style.left=“0px”,r.root.style.width=“”,r.root.style.width=r.root.offsetWidth+“px”;var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var s=o[o.length-1],u=r.quill.getIndex(s),c=Math.min(s.length()-1,e.index+e.length-u),f=r.quill.getBounds(new l.Range(u,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(e,t),i(e,[{key:“listen”,value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),“listen”,this).call(this),this.root.querySelector(“.ql-close”).addEventListener(“click”,(function(){t.root.classList.remove(“ql-editing”)})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains(“ql-hidden”)){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:“cancel”,value:function(){this.show()}},{key:“position”,value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),“position”,this).call(this,t),i=this.root.querySelector(“.ql-tooltip-arrow”);if(i.style.marginLeft=“”,0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+“px”}}]),e}(s.BaseTooltip);y.TEMPLATE=[‘’,‘
’,‘’,‘’,“
”].join(“”),e.BubbleTooltip=y,e.default=m},function(t,e,n){t.exports=n(63)}]).default},t.exports=n()}).call(this,n(213).Buffer)},200:function(t,e,n){var r=n(34);t.exports=function(t){return r(t)&&“interface”===t.meta.kind}},201:function(t,e,n){var r=n(34);function i(t){return r(t)&&“subtype”===t.meta.kind}function o(t){return i(t)?[t.meta.predicate].concat(o(t.meta.type)):[]}function a(t){return i(t)?a(t.meta.type):t}t.exports=function(t){return{predicates:o(t),unrefinedType:a(t)}}},202:function(t,e,n){var r=n(21),i=(n(38),n(33),n(29)),o=n(48),a=(n(47),n(49)),s=n(50),u=(n(64),n(130)),l=n(45);function c(t){return t.map(i).join(“ | ”)}function f(t,e){var n=e||c(t),i=t.every(o);function f(t,e){if(i)return t;var n=f.dispatch(t);return!n&&f.is(t)?t:a(n,t,e)}return f.meta={kind:“union”,types:t,name:e,identity:i},f.displayName=n,f.is=function(e){return t.some((function(t){return s(e,t)}))},f.dispatch=function(e){for(var n=0,r=t.length;n “+u(e)}function f(t){return r.is(t)&&o(t.instrumentation)}function d(t){for(var e=t.length,n=!1,r=e-1;r>=0;r–){var i=t[r];if(!l(i)||”maybe“!==i.meta.kind)return r+1;n=!0}return n?0:e}function p(t,e,n){t=i(t)?t:[t];var r=n||c(t,e),o=t.length;d(t);function u(t,e){return f(t)?t:u.of(t)}return u.meta={kind:”func“,domain:t,codomain:e,name:n,identity:!0},u.displayName=r,u.is=function(n){return f(n)&&n.instrumentation.domain.length===o&&n.instrumentation.domain.every((function(e,n){return e===t[n]}))&&n.instrumentation.codomain===e},u.of=function(n,r){if(u.is(n))return n;function i(){var i=Array.prototype.slice.call(arguments),s=i.length;if(r&&s0?e.concat(t):e},$remove:function(t,e){if(t.length>0){e=a(e);for(var n=0,r=t.length;n0?(e=a(e),t.reduce((function(t,e){return t.splice.apply(t,e),t}),e)):e},$swap:function(t,e){if(t.from!==t.to){var n=(e=a(e))[t.to];e[t.to]=e[t.from],e[t.from]=n}return e},$unshift:function(t,e){return t.length>0?t.concat(e):e},$merge:function(t,e){var n=!1,r=a(e);for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i],n=n||r[i]!==e[i]);return n?r:e}},t.exports=l},207:function(t,e,n){var r=n(21),i=n(33),o=n(34),a=n(91);t.exports=function(t){for(var e,n,s,u=1,l=arguments.length;u=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(209),e.setImmediate=”undefined“!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate=”undefined“!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(41))},209:function(t,e,n){(function(t,e){!function(t,n){”use strict“;if(!t.setImmediate){var r,i,o,a,s,u=1,l={},c=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,”[object process]“==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage(”“,”*“),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){o.port2.postMessage(t)}):f&&”onreadystatechange“in f.createElement(”script“)?(i=f.documentElement,r=function(t){var e=f.createElement(”script“);e.onreadystatechange=function(){h(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(a=”setImmediate$“+Math.random()+”$“,s=function(e){e.source===t&&”string“==typeof e.data&&0===e.data.indexOf(a)&&h(+e.data.slice(a.length))},t.addEventListener?t.addEventListener(”message“,s,!1):t.attachEvent(”onmessage“,s),r=function(e){t.postMessage(a+e,”*“)}),d.setImmediate=function(t){”function“!=typeof t&&(t=new Function(”“+t));for(var e=new Array(arguments.length-1),n=0;n”:“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”},ge:{“∆”:“delta”,“∞”:“usasruloba”,“♥”:“siqvaruli”,“&”:“da”,“|”:“an”,“<":"naklebi",">”:“meti”,“∑”:“jami”,“¤”:“valuta”},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”}},l=[“;”,“?”,“:”,“@”,“&”,“=”,“+”,“$”,“,”,“/”].join(“”),c=[“;”,“?”,“:”,“@”,“&”,“=”,“+”,“$”,“,”].join(“”),f=[“.”,“!”,“~”,“*”,“‘”,“(”,“)”].join(“”),d=function(t,e){var n,r,d,v,m,y,g,b,w,_,O,k,x,C,E=“-”,j=“”,S=“”,T=!0,A={},P=“”;if(“string”!=typeof t)return“”;if(“string”==typeof e&&(E=e),g=u.en,b=s.en,“object”==typeof e)for(O in n=e.maintainCase||!1,A=e.custom&&“object”==typeof e.custom?e.custom:A,d=+e.truncate>1&&e.truncate||!1,v=e.uric||!1,m=e.uricNoSlash||!1,y=e.mark||!1,T=!1!==e.symbols&&!1!==e.lang,E=e.separator||E,v&&(P+=l),m&&(P+=c),y&&(P+=f),g=e.lang&&u[e.lang]&&T?u[e.lang]:T?u.en:{},b=e.lang&&s[e.lang]?s[e.lang]:!1===e.lang||!0===e.lang?{}:s.en,e.titleCase&&“number”==typeof e.titleCase.length&&Array.prototype.toString.call(e.titleCase)?(e.titleCase.forEach((function(t){A[t+“”]=t+“”})),r=!0):r=!!e.titleCase,e.custom&&“number”==typeof e.custom.length&&Array.prototype.toString.call(e.custom)&&e.custom.forEach((function(t){A[t+“”]=t+“”})),Object.keys(A).forEach((function(e){var n;n=e.length>1?new RegExp(“\b”+p(e)+“\b”,“gi”):new RegExp(p(e),“gi”),t=t.replace(n,A[e])})),A)P+=O;for(P=p(P+=E),x=!1,C=!1,_=0,k=(t=t.replace(/(^s+|s+$)/g,“”)).length;_=0?(S+=O,O=“”):!0===C?(O=a[S]+i[O],S=“”):O=x&&i[O].match(/[A-Za-z0-9]/)?“ ”+i[O]:i[O],x=!1,C=!1):O in a?(S+=O,O=“”,_===k-1&&(O=a[S]),C=!0):!g[O]||v&&-1!==l.indexOf(O)||m&&-1!==c.indexOf(O)?(!0===C?(O=a[S]+O,S=“”,C=!1):x&&(/[A-Za-z0-9]/.test(O)||j.substr(-1).match(/A-Za-z0-9]/))&&(O=“ ”+O),x=!1):(O=x||j.substr(-1).match(/[A-Za-z0-9]/)?E+g[O]:g[O],O+=void 0!==t[_+1]&&t[_+1].match(/[A-Za-z0-9]/)?E:“”,x=!0),j+=O.replace(new RegExp(“[^\w\s”P“_-]”,“g”),E);return r&&(j=j.replace(/(w)(S*)/g,(function(t,e,n){var r=e.toUpperCase()+(null!==n?n:“”);return Object.keys(A).indexOf(r.toLowerCase())<0?r:r.toLowerCase()}))),j=j.replace(/\s+/g,E).replace(new RegExp("\\"E“+”,“g”),E).replace(new RegExp(“(^\”E“+|\”E“+$)”,“g”),“”),d&&j.length>d&&(w=j.charAt(d)===E,j=j.slice(0,d),w||(j=j.slice(0,j.lastIndexOf(E)))),n||r||(j=j.toLowerCase()),j},p=function(t){return t.replace(/[-\^$*+?.()|[]{}/]/g,“\$&”)},h=function(t,e){for(var n in e)if(e[n]===t)return!0};t.exports?(t.exports=d,t.exports.createSlug=function(t){return function(e){return d(e,t)}}):void 0===(r=function(){return d}.apply(e,[]))||(t.exports=r)}()},211:function(t,e,n){(function®{var i; /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */“classList”in document.createElement(“_”)||function(t){“use strict”;if(“Element”in t){var e=t.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^s+|s+$/g,“”)},i=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;e1?e:this.data.length),n,this.encoding)},o.toString=function(){return“[object Blob]”},o.close=function(){this.size=0,delete this.data},n}(t);t.Blob=function(t,n){var r=n&&n.type||“”,i=new e;if(t)for(var o=0,a=t.length;o-1,isMac:e.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(t){return!!(a.isMac&&t.metaKey||!a.isMac&&t.ctrlKey)},isKey:function(t,e){var n=a.getKeyCode(t);return!1===Array.isArray(e)?n===e:-1!==e.indexOf(n)},getKeyCode:function(t){var e=t.which;return null===e&&(e=null!==t.charCode?t.charCode:t.keyCode),e},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 t=[!0].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},defaults:function(){var t=[!1].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},createLink:function(t,e,n,r){var i=t.createElement(“a”);return a.moveTextRangeIntoElement(e[0],e[e.length-1],i),i.setAttribute(“href”,n),r&&(“_blank”===r&&i.setAttribute(“rel”,“noopener noreferrer”),i.setAttribute(“target”,r)),i},findOrCreateMatchingTextNodes:function(t,e,n){for(var r=t.createTreeWalker(e,NodeFilter.SHOW_ALL,null,!1),i=[],o=0,s=!1,u=null,l=null;null!==(u=r.nextNode());)if(!(u.nodeType>3))if(3===u.nodeType){if(!s&&n.startn.end+1)throw new Error(“PerformLinking overshot the target!”);s&&i.push(l||u),o+=u.nodeValue.length,null!==l&&(o+=l.nodeValue.length,r.nextNode()),l=null}else“img”===u.tagName.toLowerCase()&&(!s&&n.start<=o&&(s=!0),s&&i.push(u));return i},splitStartNodeIfNeeded:function(t,e,n){return e!==n?t.splitText(e-n):null},splitEndNodeIfNeeded:function(t,e,n,r){var i,o;i=r+t.nodeValue.length+(e?e.nodeValue.length:0)-1,o=n-r-(e?t.nodeValue.length:0),i>=n&&r!==i&&0!==o&&(e||t).splitText(o)},splitByBlockElements:function(e){if(3!==e.nodeType&&1!==e.nodeType)return[];var n=[],r=t.util.blockContainerElementNames.join(“,”);if(3===e.nodeType||0===e.querySelectorAll®.length)return[e];for(var i=0;i0)break;r=o.nextNode()}return r},findPreviousSibling:function(t){if(!t||a.isMediumEditorElement(t))return!1;for(var e=t.previousSibling;!e&&!a.isMediumEditorElement(t.parentNode);)e=(t=t.parentNode).previousSibling;return e},isDescendant:function(t,e,n){if(!t||!e)return!1;if(t===e)return!!n;if(1!==t.nodeType)return!1;if(r||3!==e.nodeType)return t.contains(e);for(var i=e.parentNode;null!==i;){if(i===t)return!0;i=i.parentNode}return!1},isElement:function(t){return!(!t||1!==t.nodeType)},throttle:function(t,e){var n,r,i,o=null,a=0,s=function(){a=Date.now(),o=null,i=t.apply(n,r),o||(n=r=null)};return e||0===e||(e=50),function(){var u=Date.now(),l=e-(u-a);return n=this,r=arguments,l<=0||l>e?(o&&(clearTimeout(o),o=null),a=u,i=t.apply(n,r),o||(n=r=null)):o||(o=setTimeout(s,l)),i}},traverseUp:function(t,e){if(!t)return!1;do{if(1===t.nodeType){if(e(t))return t;if(a.isMediumEditorElement(t))return!1}t=t.parentNode}while(t);return!1},htmlEntities:function(t){return String(t).replace(/&/g,“&”).replace(//g,“>”).replace(/“/g,”“”)},insertHTMLCommand:function(e,n){var r,i,o,s,u,l,c,f=!1,d=[“insertHTML”,!1,n];if(!t.util.isEdge&&e.queryCommandSupported(“insertHTML”))try{return e.execCommand.apply(e,d)}catch(t){}if((r=e.getSelection()).rangeCount){if(c=(i=r.getRangeAt(0)).commonAncestorContainer,a.isMediumEditorElement©&&!c.firstChild)i.selectNode(c.appendChild(e.createTextNode(“”)));else if(3===c.nodeType&&0===i.startOffset&&i.endOffset===c.nodeValue.length||3!==c.nodeType&&c.innerHTML===i.toString()){for(;!a.isMediumEditorElement©&&c.parentNode&&1===c.parentNode.childNodes.length&&!a.isMediumEditorElement(c.parentNode);)c=c.parentNode;i.selectNode©}for(i.deleteContents(),(o=e.createElement(“div”)).innerHTML=n,s=e.createDocumentFragment();o.firstChild;)u=o.firstChild,l=s.appendChild(u);i.insertNode(s),l&&((i=i.cloneRange()).setStartAfter(l),i.collapse(!0),t.selection.selectRange(e,i)),f=!0}return e.execCommand.callListeners&&e.execCommand.callListeners(d,f),f},execFormatBlock:function(e,n){var r=a.getTopBlockContainer(t.selection.getSelectionStart(e));if(“blockquote”===n){if(r&&Array.prototype.slice.call(r.childNodes).some((function(t){return a.isBlockContainer(t)})))return e.execCommand(“outdent”,!1,null);if(a.isIE)return e.execCommand(“indent”,!1,n)}if(r&&n===r.nodeName.toLowerCase()&&(n=“p”),a.isIE&&(n=“<"n”>“),r&&”blockquote“===r.nodeName.toLowerCase()){if(a.isIE&&”

“===n)return e.execCommand(”outdent“,!1,n);if((a.isFF||a.isEdge)&&”p“===n)return Array.prototype.slice.call(r.childNodes).some((function(t){return!a.isBlockContainer(t)}))&&e.execCommand(”formatBlock“,!1,n),e.execCommand(”outdent“,!1,n)}return e.execCommand(”formatBlock“,!1,n)},setTargetBlank:function(t,e){var n,r=e||!1;if(”a“===t.nodeName.toLowerCase())t.target=”_blank“,t.rel=”noopener noreferrer“;else for(t=t.getElementsByTagName(”a“),n=0;nr?(i=i.parentNode,n-=1):(o=o.parentNode,r-=1);for(;i!==o;)i=i.parentNode,o=o.parentNode;return i},isElementAtBeginningOfBlock:function(t){for(var e;!a.isBlockContainer(t)&&!a.isMediumEditorElement(t);){for(e=t;e=e.previousSibling;)if((3===e.nodeType?e.nodeValue:e.textContent).length>0)return!1;t=t.parentNode}return!0},isMediumEditorElement:function(t){return t&&t.getAttribute&&!!t.getAttribute(”data-medium-editor-element“)},getContainerEditorElement:function(t){return a.traverseUp(t,(function(t){return a.isMediumEditorElement(t)}))},isBlockContainer:function(t){return t&&3!==t.nodeType&&-1!==a.blockContainerElementNames.indexOf(t.nodeName.toLowerCase())},getClosestBlockContainer:function(t){return a.traverseUp(t,(function(t){return a.isBlockContainer(t)||a.isMediumEditorElement(t)}))},getTopBlockContainer:function(t){var e=!!a.isBlockContainer(t)&&t;return a.traverseUp(t,(function(t){return a.isBlockContainer(t)&&(e=t),!(e||!a.isMediumEditorElement(t))&&(e=t,!0)})),e},getFirstSelectableLeafNode:function(t){for(;t&&t.firstChild;)t=t.firstChild;if(”table“===(t=a.traverseUp(t,(function(t){return-1===a.emptyElementNames.indexOf(t.nodeName.toLowerCase())}))).nodeName.toLowerCase()){var e=t.querySelector(”th, td“);e&&(t=e)}return t},getFirstTextNode:function(t){return a.warn(”getFirstTextNode is deprecated and will be removed in version 6.0.0“),a._getFirstTextNode(t)},_getFirstTextNode:function(t){if(3===t.nodeType)return t;for(var e=0;ee” instead.“;n&&(r+=” Will be removed in “+n),a.warn®},deprecatedMethod:function(t,e,n,r){a.deprecated(t,e,r),”function“==typeof this[e]&&this[e].apply(this,n)},cleanupAttrs:function(t,e){e.forEach((function(e){t.removeAttribute(e)}))},cleanupTags:function(t,e){-1!==e.indexOf(t.nodeName.toLowerCase())&&t.parentNode.removeChild(t)},unwrapTags:function(e,n){-1!==n.indexOf(e.nodeName.toLowerCase())&&t.util.unwrap(e,document)},getClosestTag:function(t,e){return a.traverseUp(t,(function(t){return t.nodeName.toLowerCase()===e.toLowerCase()}))},unwrap:function(t,e){for(var n=e.createDocumentFragment(),r=Array.prototype.slice.call(t.childNodes),i=0;i0){var i,o=r.getRangeAt(0),a=o.cloneRange();a.selectNodeContents(t),a.setEnd(o.startContainer,o.startOffset),n={start:i=a.toString().length,end:i+o.toString().length},this.doesRangeStartWithImages(o,e)&&(n.startsWithImage=!0);var s=this.getTrailingImageCount(t,n,o.endContainer,o.endOffset);if(s&&(n.trailingImageCount=s),0!==i){var u=this.getIndexRelativeToAdjacentEmptyBlocks(e,t,o.startContainer,o.startOffset);-1!==u&&(n.emptyBlocksIndex=u)}}return n},importSelection:function(t,e,n,r){if(t&&e){var i=n.createRange();i.setStart(e,0),i.collapse(!0);var o,a=e,s=[],u=0,l=!1,c=!1,f=0,d=!1,p=!1,h=null;for((r||t.startsWithImage||void 0!==t.emptyBlocksIndex)&&(p=!0);!d&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if(t.trailingImageCount&&c&&(”img“===a.nodeName.toLowerCase()&&f++,f===t.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,!l&&t.start>=u&&t.start<=o&&(p||t.start=u&&t.end<=o&&(t.trailingImageCount?c=!0:(i.setEnd(a,t.end-u),d=!0)),u=o;d||(a=s.pop())}!l&&h&&(i.setStart(h,h.length),i.setEnd(h,h.length)),void 0!==t.emptyBlocksIndex&&(i=this.importSelectionMoveCursorPastBlocks(n,e,t.emptyBlocksIndex,i)),r&&(i=this.importSelectionMoveCursorPastAnchor(t,i)),this.selectRange(n,i)}},importSelectionMoveCursorPastAnchor:function(e,n){if(e.start===e.end&&3===n.startContainer.nodeType&&n.startOffset===n.startContainer.nodeValue.length&&t.util.traverseUp(n.startContainer,(function(t){return"a"===t.nodeName.toLowerCase()}))){for(var r=n.startContainer,i=n.startContainer.parentNode;null!==i&&"a"!==i.nodeName.toLowerCase();)i.childNodes[i.childNodes.length-1]!==r?i=null:(r=i,i=i.parentNode);if(null!==i&&"a"===i.nodeName.toLowerCase()){for(var o=null,a=0;null===o&&a0)break}else a===u.currentNode&&(s=u.currentNode);return s||(s=a),o.setStart(t.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(!t.util.isElementAtBeginningOfBlock(a))return-1;var s=t.util.findPreviousSibling(a);if(!s)return-1;if(s.nodeValue)return-1}for(var u=t.util.getClosestBlockContainer(i),l=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),c=0;l.nextNode();){var f=”“===l.currentNode.textContent;if((f||c>0)&&(c+=1),l.currentNode===u)return c;f||(c=0)}return c},doesRangeStartWithImages:function(t,e){if(0!==t.startOffset||1!==t.startContainer.nodeType)return!1;if(”img“===t.startContainer.nodeName.toLowerCase())return!0;var n=t.startContainer.querySelector(”img“);if(!n)return!1;for(var r=e.createTreeWalker(t.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(t,e,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=t,s=[],u=0,l=!1,c=!1,f=!1,d=0;!f&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if(”img“===a.nodeName.toLowerCase()&&d++,a===i)f=!0;else if(1===a.nodeType)for(var p=a.childNodes.length-1;p>=0;)s.push(a.childNodes[p]),p-=1}else d=0,o=u+a.length,!l&&e.start>=u&&e.start<=o&&(l=!0),l&&e.end>=u&&e.end<=o&&(c=!0),u=o;f||(a=s.pop())}return d},selectionContainsContent:function(t){var e=t.getSelection();if(!e||e.isCollapsed||!e.rangeCount)return!1;if(""!==e.toString().trim())return!0;var n=this.getSelectedParentElement(e.getRangeAt(0));return!(!n||!("img"===n.nodeName.toLowerCase()||1===n.nodeType&&n.querySelector("img")))},selectionInContentEditableFalse:function(t){var e,n=this.findMatchingSelectionParent((function(t){var n=t&&t.getAttribute("contenteditable");return"true"===n&&(e=!0),"#text"!==t.nodeName&&"false"===n}),t);return!e&&n},getSelectionHtml:function(t){var e,n,r,i="",o=t.getSelection();if(o.rangeCount){for(r=t.createElement("div"),e=0,n=o.rangeCount;e-1?[e]:e,Array.prototype.forEach.call(e,function(t){t.addEventListener(n,r,i),this.events.push([t,n,r,i])}.bind(this))},detachDOMEvent:function(e,n,r,i){var o,a,s=this.base.options.contentWindow,u=this.base.options.ownerDocument;null!==e&&(e=t.util.isElement(e)||[s,u].indexOf(e)>-1?[e]:e,Array.prototype.forEach.call(e,function(t){-1!==(o=this.indexOfListener(t,n,r,i))&&(a=this.events.splice(o,1)[0])[0].removeEventListener(a[1],a[2],a[3])}.bind(this)))},indexOfListener:function(t,e,n,r){var i,o,a;for(i=0,o=this.events.length;i0&&(r=-1!==i.indexOf(t.nodeName.toLowerCase())),!r&&this.style&&(e=this.style.value.split(”|“),n=this.window.getComputedStyle(t,null).getPropertyValue(this.style.prop),e.forEach((function(t){this.knownState||((r=-1!==n.indexOf(t))||”text-decoration“!==this.style.prop)&&(this.knownState=r)}),this)),r)}})).isBuiltInButton=function(e){return”string“==typeof e&&t.extensions.button.prototype.defaults.hasOwnProperty(e)},t.extensions.button=n,t.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“,contentFA:’‘},italic:{name:”italic“,action:”italic“,aria:”italic“,tagNames:[”i“,”em“],style:{prop:”font-style“,value:”italic“},useQueryState:!0,contentDefault:”I“,contentFA:’‘},underline:{name:”underline“,action:”underline“,aria:”underline“,tagNames:[”u“],style:{prop:”text-decoration“,value:”underline“},useQueryState:!0,contentDefault:”<u>U</u>“,contentFA:’‘},strikethrough:{name:”strikethrough“,action:”strikethrough“,aria:”strike through“,tagNames:[”strike“],style:{prop:”text-decoration“,value:”line-through“},useQueryState:!0,contentDefault:”A“,contentFA:’‘},superscript:{name:”superscript“,action:”superscript“,aria:”superscript“,tagNames:[”sup“],contentDefault:”x<sup>1</sup>“,contentFA:’‘},subscript:{name:”subscript“,action:”subscript“,aria:”subscript“,tagNames:[”sub“],contentDefault:”x<sub>1</sub>“,contentFA:’‘},image:{name:”image“,action:”image“,aria:”image“,tagNames:[”img“],contentDefault:”image“,contentFA:’‘},html:{name:”html“,action:”html“,aria:”evaluate html“,tagNames:[”iframe“,”object“],contentDefault:”html“,contentFA:’‘},orderedlist:{name:”orderedlist“,action:”insertorderedlist“,aria:”ordered list“,tagNames:[”ol“],useQueryState:!0,contentDefault:”1.“,contentFA:’‘},unorderedlist:{name:”unorderedlist“,action:”insertunorderedlist“,aria:”unordered list“,tagNames:[”ul“],useQueryState:!0,contentDefault:”&bull;“,contentFA:’‘},indent:{name:”indent“,action:”indent“,aria:”indent“,tagNames:[],contentDefault:”&rarr;“,contentFA:’‘},outdent:{name:”outdent“,action:”outdent“,aria:”outdent“,tagNames:[],contentDefault:”&larr;“,contentFA:’‘},justifyCenter:{name:”justifyCenter“,action:”justifyCenter“,aria:”center justify“,tagNames:[],style:{prop:”text-align“,value:”center“},contentDefault:”C“,contentFA:’‘},justifyFull:{name:”justifyFull“,action:”justifyFull“,aria:”full justify“,tagNames:[],style:{prop:”text-align“,value:”justify“},contentDefault:”J“,contentFA:’‘},justifyLeft:{name:”justifyLeft“,action:”justifyLeft“,aria:”left justify“,tagNames:[],style:{prop:”text-align“,value:”left“},contentDefault:”L“,contentFA:’‘},justifyRight:{name:”justifyRight“,action:”justifyRight“,aria:”right justify“,tagNames:[],style:{prop:”text-align“,value:”right“},contentDefault:”R“,contentFA:’‘},removeFormat:{name:”removeFormat“,aria:”remove formatting“,action:”removeFormat“,contentDefault:”X“,contentFA:’‘},quote:{name:”quote“,action:”append-blockquote“,aria:”blockquote“,tagNames:[”blockquote“],contentDefault:”&ldquo;“,contentFA:’‘},pre:{name:”pre“,action:”append-pre“,aria:”preformatted text“,tagNames:[”pre“],contentDefault:”0101“,contentFA:’‘},h1:{name:”h1“,action:”append-h1“,aria:”header type one“,tagNames:[”h1“],contentDefault:”H1“,contentFA:’1’},h2:{name:”h2“,action:”append-h2“,aria:”header type two“,tagNames:[”h2“],contentDefault:”H2“,contentFA:‘2’},h3:{name:”h3“,action:”append-h3“,aria:”header type three“,tagNames:[”h3“],contentDefault:”H3“,contentFA:‘3’},h4:{name:”h4“,action:”append-h4“,aria:”header type four“,tagNames:[”h4“],contentDefault:”H4“,contentFA:‘4’},h5:{name:”h5“,action:”append-h5“,aria:”header type five“,tagNames:[”h5“],contentDefault:”H5“,contentFA:‘5’},h6:{name:”h6“,action:”append-h6“,aria:”header type six“,tagNames:[”h6“],contentDefault:”H6“,contentFA:‘6’}},r=t.extensions.button.extend({init:function(){t.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 t=this.base.getExtensionByName(”toolbar“);t&&t.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var t=this.base.getExtensionByName(”toolbar“);t&&t.hideToolbarDefaultActions()},setToolbarPosition:function(){var t=this.base.getExtensionByName(”toolbar“);t&&t.setToolbarPosition()}}),t.extensions.form=r,i=t.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:”#“,contentFA:‘’,init:function(){t.extensions.form.prototype.init.apply(this,arguments),this.subscribe(”editableKeydown“,this.handleKeydown.bind(this))},handleClick:function(e){e.preventDefault(),e.stopPropagation();var n=t.selection.getSelectionRange(this.document);return”a“===n.startContainer.nodeName.toLowerCase()||”a“===n.endContainer.nodeName.toLowerCase()||t.util.getClosestTag(t.selection.getSelectedParentElement(n),”a“)?this.execAction(”unlink“):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(e){t.util.isKey(e,t.util.keyCode.K)&&t.util.isMetaCtrlKey(e)&&!e.shiftKey&&this.handleClick(e)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var t=[‘’];return t.push(‘’,”fontawesome“===this.getEditorOption(”buttonLabels“)?‘’:this.formSaveLabel,”“),t.push(‘’,”fontawesome“===this.getEditorOption(”buttonLabels“)?‘’:this.formCloseLabel,”“),this.targetCheckbox&&t.push(‘

’,‘’,‘“,”
“),this.customClassOption&&t.push(‘
’,‘’,”“,”
“),t.join(”“)},isDisplayed:function(){return t.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){t.extensions.form.prototype.hideForm.apply(this),this.getInput().value=”“},showForm:function(e){var n=this.getInput(),r=this.getAnchorTargetCheckbox(),i=this.getAnchorButtonCheckbox();if(”string“==typeof(e=e||{value:”“})&&(e={value:e}),this.base.saveSelection(),this.hideToolbarDefaultActions(),t.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),n.value=e.value,n.focus(),r&&(r.checked=”_blank“===e.target),i){var o=e.buttonClass?e.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 t=this.getAnchorTargetCheckbox(),e=this.getAnchorButtonCheckbox(),n={value:this.getInput().value.trim()};return this.linkValidation&&(n.value=this.checkLinkFormat(n.value)),n.target=”_self“,t&&t.checked&&(n.target=”_blank“),e&&e.checked&&(n.buttonClass=this.customClassOption),n},doFormSave:function(){var t=this.getFormOpts();this.completeFormSave(t)},completeFormSave:function(t){this.base.restoreSelection(),this.execAction(this.action,t),this.base.checkSelection()},ensureEncodedUri:function(t){return t===decodeURI(t)?encodeURI(t):t},ensureEncodedUriComponent:function(t){return t===decodeURIComponent(t)?encodeURIComponent(t):t},ensureEncodedParam:function(t){var e=t.split(”=“),n=e[0],r=e[1];return n+(void 0===r?”“:”=“+this.ensureEncodedUriComponent®)},ensureEncodedQuery:function(t){return t.split(”&“).map(this.ensureEncodedParam.bind(this)).join(”&“)},checkLinkFormat:function(t){var e=/^([a-z]+:)?//|^(mailto|tel|maps):|^#/i.test(t),n=”“,r=t.match(/^(.*?)(?:?(.*?))?(?:#(.*))?$/),i=r[1],o=r[2],a=r[3];if(/^+?s?(?(?:ds?-?)?){3,20}$/.test(t))return”tel:“+t;if(!e){var s=i.split(”/“)[0];(s.match(/.+(.|:).+/)||”localhost“===s)&&(n=”http://“)}return n+this.ensureEncodedUri(i)+(void 0===o?”“:”?“+this.ensureEncodedQuery(o))+(void 0===a?”“:”#“+a)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(t){var e=t.querySelector(”.medium-editor-toolbar-close“),n=t.querySelector(”.medium-editor-toolbar-save“),r=t.querySelector(”.medium-editor-toolbar-input“);this.on(t,”click“,this.handleFormClick.bind(this)),this.on(r,”keyup“,this.handleTextboxKeyup.bind(this)),this.on(e,”click“,this.handleCloseClick.bind(this)),this.on(n,”click“,this.handleSaveClick.bind(this),!0)},createForm:function(){var t=this.document.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(e){if(e.keyCode===t.util.keyCode.ENTER)return e.preventDefault(),void this.doFormSave();e.keyCode===t.util.keyCode.ESCAPE&&(e.preventDefault(),this.doFormCancel())},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}}),t.extensions.anchor=i,o=t.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 t=this.document.createElement(”div“);return t.id=”medium-editor-anchor-preview-“+this.getEditorId(),t.className=”medium-editor-anchor-preview“,t.innerHTML=this.getTemplate(),this.on(t,”click“,this.handleClick.bind(this)),t},getTemplate:function(){return’
‘},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(t){return!(!this.anchorPreview.classList.contains(”medium-editor-anchor-preview-active“)&&!t.getAttribute(”data-disable-preview“))||(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=t.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=t.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=t,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(t){t=t||this.activeAnchor;var e,n,r,i,o,a=this.window.innerWidth,s=this.anchorPreview.offsetHeight,u=t.getBoundingClientRect(),l=this.diffLeft,c=this.diffTop,f=this.getEditorOption(”elementsContainer“),d=[”absolute“,”fixed“].indexOf(window.getComputedStyle(f).getPropertyValue(”position“))>-1,p={};e=this.anchorPreview.offsetWidth/2;var h=this.base.getExtensionByName(”toolbar“);h&&(l=h.diffLeft,c=h.diffTop),n=l-e,d?(i=f.getBoundingClientRect(),[”top“,”left“].forEach((function(t){p[t]=u[t]-i[t]})),p.width=u.width,p.height=u.height,u=p,a=i.width,o=f.scrollTop):o=this.window.pageYOffset,r=u.left+u.width/2,o+=s+u.top+u.height-c-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(o)+”px“,this.anchorPreview.style.right=”initial“,rthis.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)}}),t.extensions.anchorPreview=o,function(){var e,n,r,i;e=[” “,”t“,”n“,”r“,” “,” “,” “,” “,” “,”u2028“,”u2029“],n=”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“,r=new RegExp(”^(“n”)$“,”i“),i=new RegExp(”(((?:(https?://|ftps?://|nntp://)|www\d{0,3}[.]|[a-z0-9.\-]+(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)\/)\S+(?:[^\s`!\{};:’".,?«»“”‘’])))|(([a-z0-9\-]+\.)?+\.(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))“,”gi“);var o=t.Extension.extend({init:function(){t.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 t=0,e=0;e<this.window._mediumEditors.length;e++){var n=this.window._mediumEditors;null!==n&&void 0!==n.getExtensionByName(”autoLink“)&&t++}return 1===t},destroy:function(){this.document.queryCommandSupported(”AutoUrlDetect“)&&this.isLastInstance()&&this.document.execCommand(”AutoUrlDetect“,!1,!0)},onBlur:function(t,e){this.performLinking(e)},onKeypress:function(e){this.disableEventHandling||t.util.isKey(e,)&&(clearTimeout(this.performLinkingTimeout),this.performLinkingTimeout=setTimeout(function(){try{var t=this.base.exportSelection();this.performLinking(e.target)&&this.base.importSelection(t,!0)}catch(t){window.console&&window.console.error(”Failed to perform linking“,t),this.disableEventHandling=!0}}.bind(this),0))},performLinking:function(e){var n=t.util.splitByBlockElements(e),r=!1;0===n.length&&(n=);for(var i=0;i)||r,r=this.performLinkingWithinElement(n)||r;return this.base.events.updateInput(e,{target:e,currentTarget:e}),r},removeObsoleteAutoLinkSpans:function(e){if(!e||3===e.nodeType)return!1;for(var n,r=e.querySelectorAll(‘span’),i=!1,o=0;o<r.length;o++){var a=r.textContent;if(-1===a.indexOf(”://“)&&(a=t.util.ensureUrlHasProtocol(a)),r.getAttribute(”data-href“)!==a&&(n=r,!t.util.getClosestTag(n,”a“))){i=!0;var s=a.replace(/s+$/,”“);if(r.getAttribute(”data-href“)===s){var u=a.length-s.length,l=t.util.splitOffDOMTree(r,this.splitTextBeforeEnd(r,u));r.parentNode.insertBefore(l,r.nextSibling)}else t.util.unwrap(r,this.document)}}return i},splitTextBeforeEnd:function(t,e){for(var n,r,i,o=this.document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),a=!0;a;)a=null!==o.lastChild();for(;e>0&&null!==i;)(r=(n=o.currentNode).nodeValue).length>e?(i=n.splitText(r.length-e),e=0):(i=o.previousNode(),e-=r.length);return i},performLinkingWithinElement:function(e){for(var n=this.findLinkableText(e),r=0;r<n.length;r++){var i=t.util.findOrCreateMatchingTextNodes(this.document,e,n);this.shouldNotLink(i)||this.createAutoLink(i,n.href)}return!1},shouldNotLink:function(e){for(var n=!1,r=0;r,(function(t){return”a“===t.nodeName.toLowerCase()||t.getAttribute&&”true“===t.getAttribute(”data-auto-link“)}));return n},findLinkableText:function(t){for(var n=t.textContent,o=null,a=[];null!==(o=i.exec(n));){var s=o.index+o.length;!(0!==o.index&&-1===e.indexOf(n)||s!==n.length&&-1===e.indexOf(n))&&(-1!==o.indexOf(”/“)||r.test(o.split(”.“).pop().split(”?“).shift()))&&a.push({href:o,start:o.index,end:s})}return a},createAutoLink:function(e,n){n=t.util.ensureUrlHasProtocol(n);var r=t.util.createLink(this.document,e,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)}});t.extensions.autoLink=o}(),function(){function e(e){var n=t.util.getContainerEditorElement(e);Array.prototype.slice.call(n.parentElement.querySelectorAll(”.medium-editor-dragover“)).forEach((function(t){t.classList.remove(”medium-editor-dragover“)}))}var n=t.Extension.extend({name:”fileDragging“,allowedTypes:,init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe(”editableDrag“,this.handleDrag.bind(this)),this.subscribe(”editableDrop“,this.handleDrop.bind(this))},handleDrag:function(t){t.preventDefault(),t.dataTransfer.dropEffect=”copy“;var n=t.target.classList?t.target:t.target.parentElement;e(n),”dragover“===t.type&&n.classList.add(”medium-editor-dragover“)},handleDrop:function(t){t.preventDefault(),t.stopPropagation(),this.base.selectElement(t.target);var n=this.base.exportSelection();n.start=n.end,this.base.importSelection(n),t.dataTransfer.files&&Array.prototype.slice.call(t.dataTransfer.files).forEach((function(t){this.isAllowedFile(t)&&t.type.match(”image“)&&this.insertImageFile(t)}),this),e(t.target)},isAllowedFile:function(t){return this.allowedTypes.some((function(e){return!!t.type.match(e)}))},insertImageFile:function(e){if(”function“==typeof FileReader){var n=new FileReader;n.readAsDataURL(e),n.addEventListener(”load“,function(e){var n=this.document.createElement(”img“);n.src=e.target.result,t.util.insertHTMLCommand(this.document,n.outerHTML)}.bind(this))}}});t.extensions.fileDragging=n}(),a=t.Extension.extend({name:”keyboard-commands“,commands:,init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe(”editableKeydown“,this.handleKeydown.bind(this)),this.keys={},this.commands.forEach((function(t){var e=t.key.charCodeAt(0);this.keys||(this.keys=[]),this.keys.push(t)}),this)},handleKeydown:function(e){var n=t.util.getKeyCode(e);if(this.keys){var r=t.util.isMetaCtrlKey(e),i=!!e.shiftKey,o=!!e.altKey;this.keys.forEach((function(t){t.meta!==r||t.shift!==i||t.alt!==o&&void 0!==t.alt||(e.preventDefault(),e.stopPropagation(),”function“==typeof t.command?t.command.apply(this):!1!==t.command&&this.execAction(t.command))}),this)}}}),t.extensions.keyboardCommands=a,s=t.extensions.form.extend({name:”fontname“,action:”fontName“,aria:”change font name“,contentDefault:”&#xB1;“,contentFA:‘<i class=”fa fa-font“></i>’,fonts:[”“,”Arial“,”Verdana“,”Times New Roman“],init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue(”fontName“)+”“;this.showForm(e)}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(t){var e=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display=”block“,this.setToolbarPosition(),e.value=t||”“,e.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 t,e=this.document,n=e.createElement(”div“),r=e.createElement(”select“),i=e.createElement(”a“),o=e.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,t.value=this.fonts,r.appendChild(t);return r.className=”medium-editor-toolbar-select“,n.appendChild®,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>’:”&#10003;“,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>’:”&times;“,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(){t.selection.getSelectedElements(this.document).forEach((function(t){”font“===t.nodeName.toLowerCase()&&t.hasAttribute(”face“)&&t.removeAttribute(”face“)}))},handleFontChange:function(){var t=this.getSelect().value;”“===t?this.clearFontName():this.execAction(”fontName“,{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}}),t.extensions.fontName=s,u=t.extensions.form.extend({name:”fontsize“,action:”fontSize“,aria:”increase/decrease font size“,contentDefault:”&#xB1;“,contentFA:‘<i class=”fa fa-text-height“></i>’,init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue(”fontSize“)+”“;this.showForm(e)}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(t){var e=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display=”block“,this.setToolbarPosition(),e.value=t||”“,e.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 t=this.document,e=t.createElement(”div“),n=t.createElement(”input“),r=t.createElement(”a“),i=t.createElement(”a“);return e.className=”medium-editor-toolbar-form“,e.id=”medium-editor-toolbar-form-fontsize-“+this.getEditorId(),this.on(e,”click“,this.handleFormClick.bind(this)),n.setAttribute(”type“,”range“),n.setAttribute(”min“,”1“),n.setAttribute(”max“,”7“),n.className=”medium-editor-toolbar-input“,e.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>’:”&#10003;“,e.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>’:”&times;“,e.appendChild®,this.on(r,”click“,this.handleCloseClick.bind(this)),e},getInput:function(){return this.getForm().querySelector(”input.medium-editor-toolbar-input“)},clearFontSize:function(){t.selection.getSelectedElements(this.document).forEach((function(t){”font“===t.nodeName.toLowerCase()&&t.hasAttribute(”size“)&&t.removeAttribute(”size“)}))},handleSliderChange:function(){var t=this.getInput().value;”4“===t?this.clearFontSize():this.execAction(”fontSize“,{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}}),t.extensions.fontSize=u,function(){var e=null,n=null,r=function(t){t.stopPropagation()};function i(t,e,n){var r=t.clipboardData||e.clipboardData||n.dataTransfer,i={};if(!r)return i;if(r.getData){var o=r.getData(”Text“);o&&o.length>0&&(i=o)}if(r.types)for(var a=0;a<r.types.length;a++){var s=r.types;i=r.getData(s)}return i}var o=t.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:,cleanAttrs:,cleanTags:,unwrapTags:[],init:function(){t.Extension.prototype.init.apply(this,arguments),(this.forcePlainText||this.cleanPastedHTML)&&(this.subscribe(”editableKeydown“,this.handleKeydown.bind(this)),this.getEditorElements().forEach((function(t){this.on(t,”paste“,this.handlePaste.bind(this))}),this),this.subscribe(”addElement“,this.handleAddElement.bind(this)))},handleAddElement:function(t,e){this.on(e,”paste“,this.handlePaste.bind(this))},destroy:function(){(this.forcePlainText||this.cleanPastedHTML)&&this.removePasteBin()},handlePaste:function(t,e){if(!t.defaultPrevented){var n=i(t,this.window,this.document),r=n,o=n;this.window.clipboardData&&void 0===t.clipboardData&&!r&&(r=o),(r||o)&&(t.preventDefault(),this.doPaste(r,o,e))}},doPaste:function(e,n,r){var i,o,a=”“;if(this.cleanPastedHTML&&e)return this.cleanPaste(e);if(this.getEditorOption(”disableReturn“)||r&&r.getAttribute(”data-disable-return“))a=t.util.htmlEntities(n);else if((i=n.split(/+/g)).length>1)for(o=0;o&&(a+=”

“+t.util.htmlEntities(i)+”</p>“);else a=t.util.htmlEntities(i);t.util.insertHTMLCommand(this.document,a)},handlePasteBinPaste:function(t){if(t.defaultPrevented)this.removePasteBin();else{var e=i(t,this.window,this.document),r=e,o=e,a=n;if(!this.cleanPastedHTML||r)return t.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(e,n){t.util.isKey(e,t.util.keyCode.V)&&t.util.isMetaCtrlKey(e)&&(e.stopImmediatePropagation(),this.removePasteBin(),this.createPasteBin(n))},createPasteBin:function(i){var o,a=t.selection.getSelectionRange(this.document),s=this.window.pageYOffset;n=i,a&&((o=a.getClientRects()).length?s+=o.top:void 0!==a.startContainer.getBoundingClientRect?s+=a.startContainer.getBoundingClientRect().top:s+=a.getBoundingClientRect().top),e=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“,r),this.on(u,”focusin“,r),this.on(u,”focusout“,r),u.focus(),t.selection.selectNode(u,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(u,”paste“,this.boundHandlePaste)},removePasteBin:function(){null!==e&&(t.selection.selectRange(this.document,e),e=null),null!==n&&(n=null);var i=this.getPasteBin();i&&i&&(this.off(i,”focus“,r),this.off(i,”focusin“,r),this.off(i,”focusout“,r),this.off(i,”paste“,this.boundHandlePaste),i.parentElement.removeChild(i))},getPasteBin:function(){return this.document.getElementById(this.pasteBinId)},getPasteBinHtml:function(){var t=this.getPasteBin();if(!t)return!1;if(t.firstChild&&”mcepastebin“===t.firstChild.id)return!1;var e=t.innerHTML;return!(!e||”%ME_PASTEBIN%“===e)&&e},cleanPaste:function(t){var e,n,r,i,o=/,[[new RegExp(/^*<“>RegExp(/<*“>RegExp(/<\/b>(*>)?$/gi),”“],[new RegExp(/<span class=”Apple-converted-space“>s+</span>/g),” “],[new RegExp(/<br class=”Apple-interchange-newline“>/g),”
“],[new
“>font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)*>/gi),‘<span class=”replace-with italic bold“>’],[new “>font-style:italic*>/gi),‘<span class=”replace-with italic“>’],[new “>font-weight:(bold|700)*>/gi),‘<span class=”replace-with bold“>’],[new RegExp(/&lt;(/?)(i|b|a)&gt;/gi),”<$1$2>“],[new RegExp(/&lt;a(?:(?!href).)+href=(?:&quot;|&rdquo;|&ldquo;|”|“|”)(((?!&quot;|&rdquo;|&ldquo;|“|“|”).)*)(?:&quot;|&rdquo;|&ldquo;|”|“|”)(?:(?!&gt;).)*&gt;/gi),‘<a href=“$1”>’],[new RegExp(/</p>n+/gi),“</p>”],[new RegExp(/n+<p/gi),“<p”],[new RegExp(/<\/?o:*>/gi),“”],[new RegExp(/<![if !supportLists]>(((?!>/gi),“$1”]],this.cleanReplacements||[]);for(e=0;e[0],a[1]);if(!o)return this.pasteHTML(t);for((r=this.document.createElement(“div”)).innerHTML=“

”+t.split(“

”).join(“

”)+“

”,n=r.querySelectorAll(“a,p,div,br”),e=0;e).innerHTML=i.innerHTML.replace(/n/gi,“ ”),i.nodeName.toLowerCase()){case“p”:case“div”:this.filterCommonBlocks(i);break;case“br”:this.filterLineBreak(i)}this.pasteHTML(r.innerHTML)},pasteHTML:function(e,n){n=t.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”)).innerHTML=e,this.cleanupSpans(a),r=a.querySelectorAll(“*”),o=0;o).nodeName.toLowerCase()&&this.getEditorOption(“targetBlank”)&&t.util.setTargetBlank(i),t.util.cleanupAttrs(i,n.cleanAttrs),t.util.cleanupTags(i,n.cleanTags),t.util.unwrapTags(i,n.unwrapTags);t.util.insertHTMLCommand(this.document,a.innerHTML.replace(/&nbsp;/g,“ ”))},isCommonBlock:function(t){return t&&(“p”===t.nodeName.toLowerCase()||“div”===t.nodeName.toLowerCase())},filterCommonBlocks:function(t){/^s*$/.test(t.textContent)&&t.parentNode&&t.parentNode.removeChild(t)},filterLineBreak:function(t){this.isCommonBlock(t.previousElementSibling)?this.removeWithParent(t):!this.isCommonBlock(t.parentNode)||t.parentNode.firstChild!==t&&t.parentNode.lastChild!==t?t.parentNode&&1===t.parentNode.childElementCount&&“”===t.parentNode.textContent&&this.removeWithParent(t):this.removeWithParent(t)},removeWithParent:function(t){t&&t.parentNode&&(t.parentNode.parentNode&&1===t.parentNode.childElementCount?t.parentNode.parentNode.removeChild(t.parentNode):t.parentNode.removeChild(t))},cleanupSpans:function(e){var n,r,i,o=e.querySelectorAll(“.replace-with”),a=function(t){return t&&“#text”!==t.nodeName&&“false”===t.getAttribute(“contenteditable”)};for(n=0;n,i=this.document.createElement(r.classList.contains(“bold”)?“b”:“i”),r.classList.contains(“bold”)&&r.classList.contains(“italic”)?i.innerHTML=“r.innerHTML”:i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=e.querySelectorAll(“span”),n=0;n<o.length;n+=1){if(r=o,t.util.traverseUp(r,a))return!1;t.util.unwrap(r,this.document)}}});t.extensions.paste=o}(),l=t.Extension.extend({name:“placeholder”,text:“Type your text”,hideOnClick:!0,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initPlaceholders(),this.attachEventHandlers()},initPlaceholders:function(){this.getEditorElements().forEach(this.initElement,this)},handleAddElement:function(t,e){this.initElement(e)},initElement:function(t){t.getAttribute(“data-placeholder”)||t.setAttribute(“data-placeholder”,this.text),this.updatePlaceholder(t)},destroy:function(){this.getEditorElements().forEach(this.cleanupElement,this)},handleRemoveElement:function(t,e){this.cleanupElement(e)},cleanupElement:function(t){t.getAttribute(“data-placeholder”)===this.text&&t.removeAttribute(“data-placeholder”)},showPlaceholder:function(e){e&&(t.util.isFF&&0===e.childNodes.length?(e.classList.add(“medium-editor-placeholder-relative”),e.classList.remove(“medium-editor-placeholder”)):(e.classList.add(“medium-editor-placeholder”),e.classList.remove(“medium-editor-placeholder-relative”)))},hidePlaceholder:function(t){t&&(t.classList.remove(“medium-editor-placeholder”),t.classList.remove(“medium-editor-placeholder-relative”))},updatePlaceholder:function(t,e){if(t.querySelector(“img, blockquote, ul, ol, table”)||“”!==t.textContent.replace(/^s+|s+$/g,“”))return this.hidePlaceholder(t);e||this.showPlaceholder(t)},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(t,e){var n=this.hideOnClick&&e===this.base.getFocusedElement();this.updatePlaceholder(e,n)},handleFocus:function(t,e){this.hidePlaceholder(e)},handleBlur:function(t,e){this.updatePlaceholder(e)}}),t.extensions.placeholder=l,c=t.Extension.extend({name:“toolbar”,align:“center”,allowMultiParagraphSelection:!0,buttons:,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(){t.Extension.prototype.init.apply(this,arguments),this.initThrottledMethods(),this.relativeContainer?this.relativeContainer.appendChild(this.getToolbarElement()):this.getEditorOption(“elementsContainer”).appendChild(this.getToolbarElement())},forEachExtension:function(t,e){return this.base.extensions.forEach((function(n){if(n!==this)return t.apply(e||this,arguments)}),this)},createToolbar:function(){var t=this.document.createElement(“div”);return t.id=“medium-editor-toolbar-”+this.getEditorId(),t.className=“medium-editor-toolbar”,this.static?t.className+=“ static-toolbar”:this.relativeContainer?t.className+=“ medium-editor-relative-toolbar”:t.className+=“ medium-editor-stalker-toolbar”,t.appendChild(this.createToolbarButtons()),this.forEachExtension((function(e){e.hasForm&&t.appendChild(e.getForm())})),this.attachEventHandlers(),t},createToolbarButtons:function(){var e,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®{“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),e=this.document.createElement(“li”),t.util.isElement(n)?e.appendChild(n):e.innerHTML=n,s.appendChild(e))}),this),(r=s.querySelectorAll(“button”)).length>0&&(r.classList.add(this.firstButtonClass),r.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=t.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(e){if(e&&e.target&&t.util.isDescendant(this.getToolbarElement(),e.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(t){t.hasForm&&t.isDisplayed()&&t.hideForm()}))},multipleBlockElementsSelected:function(){var e=new *>“,”r,i,o=this.window.innerWidth,a=this.getToolbarElement(),s=a.offsetHeight,u=a.offsetWidth/2,l=this.diffLeft-u,c=this.getEditorOption(“elementsContainer”),f=.indexOf(window.getComputedStyle©.getPropertyValue(“position”))>-1,d={},p={};f?(i=c.getBoundingClientRect(),.forEach((function(t){p=n-i})),p.width=n.width,p.height=n.height,n=p,o=i.width,d.top=c.scrollTop):d.top=this.window.pageYOffset,r=n.left+n.width/2,d.top+=n.top-s,n.top<50?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),d.top+=50+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),d.top+=this.diffTop),r.forEach((function(t){a.style=d+(isNaN(d)?“”:“px”)}))}}),t.extensions.toolbar=c,f=t.Extension.extend({init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe(“editableDrag”,this.handleDrag.bind(this)),this.subscribe(“editableDrop”,this.handleDrop.bind(this))},handleDrag:function(t){t.preventDefault(),t.dataTransfer.dropEffect=“copy”,“dragover”===t.type?t.target.classList.add(“medium-editor-dragover”):“dragleave”===t.type&&t.target.classList.remove(“medium-editor-dragover”)},handleDrop:function(e){e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&Array.prototype.slice.call(e.dataTransfer.files,0).some(function(e){var n,r;e.type.match(“image”)&&((n=new FileReader).readAsDataURL(e),r=“medium-img-”+ +new Date,t.util.insertHTMLCommand(this.document,‘<img class=“medium-editor-image-loading” id=“’r‘” />’),n.onload=function(){var t=this.document.getElementById®;t&&(t.removeAttribute(“id”),t.removeAttribute(“class”),t.src=n.result)}.bind(this))}.bind(this)),e.target.classList.remove(“medium-editor-dragover”)}}),t.extensions.imageDragging=f,function(){function e(e){var n=t.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,i=t.selection.getCaretOffsets(n);(void 0===r||“”===r.trim()||void 0!==r&&“”===r.trim())&&e.preventDefault()}function n(e,n){if(this.options.disableReturn||n.getAttribute(“data-disable-return”))e.preventDefault();else if(this.options.disableDoubleReturn||n.getAttribute(“data-disable-double-return”)){var r=t.selection.getSelectionStart(this.options.ownerDocument);(r&&“”===r.textContent.trim()&&“li”!==r.nodeName.toLowerCase()||r.previousElementSibling&&“br”!==r.previousElementSibling.nodeName.toLowerCase()&&“”===r.previousElementSibling.textContent.trim())&&e.preventDefault()}}function r(e){var n=t.selection.getSelectionStart(this.options.ownerDocument);“pre”===(n&&n.nodeName.toLowerCase())&&(e.preventDefault(),t.util.insertHTMLCommand(this.options.ownerDocument,“ ”)),t.util.isListItem(n)&&(e.preventDefault(),e.shiftKey?this.options.ownerDocument.execCommand(“outdent”,!1,null):this.options.ownerDocument.execCommand(“indent”,!1,null))}function i(e){var n,r=t.selection.getSelectionStart(this.options.ownerDocument),i=r.nodeName.toLowerCase(),o=/^(s+|)?$/i,a=/hd/i;t.util.isKey(e,)&&r.previousElementSibling&&a.test(i)&&0===t.selection.getCaretOffsets®.left?t.util.isKey(e,t.util.keyCode.BACKSPACE)&&o.test(r.previousElementSibling.innerHTML)?(r.previousElementSibling.parentNode.removeChild(r.previousElementSibling),e.preventDefault()):!this.options.disableDoubleReturn&&t.util.isKey(e,t.util.keyCode.ENTER)&&((n=this.options.ownerDocument.createElement(“p”)).innerHTML=“
”,r.previousElementSibling.parentNode.insertBefore(n,r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.DELETE)&&r.nextElementSibling&&r.previousElementSibling&&!a.test(i)&&o.test(r.innerHTML)&&a.test(r.nextElementSibling.nodeName.toLowerCase())?(t.selection.moveCursor(this.options.ownerDocument,r.nextElementSibling),r.previousElementSibling.parentNode.removeChild®,e.preventDefault()):t.util.isKey(e,t.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”)).innerHTML=“
”,r.parentElement.parentElement.insertBefore(n,r.parentElement),t.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild®,e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&!1!==t.util.getClosestTag(r,“blockquote”)&&0===t.selection.getCaretOffsets®.left?(e.preventDefault(),t.util.execFormatBlock(this.options.ownerDocument,“p”)):t.util.isKey(e,t.util.keyCode.ENTER)&&!1!==t.util.getClosestTag(r,“blockquote”)&&0===t.selection.getCaretOffsets®.right?((n=this.options.ownerDocument.createElement(“p”)).innerHTML=“
”,r.parentElement.insertBefore(n,r.nextSibling),t.selection.moveCursor(this.options.ownerDocument,n),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&t.util.isMediumEditorElement(r.parentElement)&&!r.previousElementSibling&&r.nextElementSibling&&o.test(r.innerHTML)&&(e.preventDefault(),t.selection.moveCursor(this.options.ownerDocument,r.nextSibling),r.parentElement.removeChild®)}function o(e){var n=t.selection.getSelectionStart(this.options.ownerDocument);n&&(t.util.isMediumEditorElement(n)&&0===n.children.length&&!t.util.isBlockContainer(n)&&this.options.ownerDocument.execCommand(“formatBlock”,!1,“p”),!t.util.isKey(e,t.util.keyCode.ENTER)||t.util.isListItem(n)||t.util.isBlockContainer(n)||(“a”===n.nodeName.toLowerCase()?this.options.ownerDocument.execCommand(“unlink”,!1,null):e.shiftKey||e.ctrlKey||this.options.ownerDocument.execCommand(“formatBlock”,!1,“p”)))}function a(t,e){var n=e.parentNode.querySelector(‘textarea’);n&&(n.value=e.innerHTML.trim())}function s(t){t._mediumEditors||(t._mediumEditors=),this.id||(this.id=t._mediumEditors.length),t._mediumEditors=this}function u(t){t._mediumEditors&&t._mediumEditors&&(t._mediumEditors=null)}function l(e,n,r){var i=[];if(e||(e=),“string”==typeof e&&(e=n.querySelectorAll(e)),t.util.isElement(e)&&(e=),r)for(var o=0;o<e.length;o++){var a=e;!t.util.isElement(a)||a.getAttribute(“data-medium-editor-element”)||a.getAttribute(“medium-editor-textarea-id”)||i.push(a)}else i=Array.prototype.slice.apply(e);return i}function c(t){var e=t.parentNode.querySelector(‘textarea’);e&&(e.classList.remove(“medium-editor-hidden”),e.removeAttribute(“medium-editor-textarea-id”)),t.parentNode&&t.parentNode.removeChild(t)}function f(t,e,n){return“function”==typeof(t=function(t,e){return Object.keys(e).forEach((function(n){void 0===t&&(t=e)})),t}(t,{window:n.options.contentWindow,document:n.options.ownerDocument,base:n})).init&&t.init(),t.name||(t.name=e),t}function d(){return!this.elements.every((function(t){return!!t.getAttribute(“data-disable-toolbar”)}))&&!1!==this.options.toolbar}function p(){return!!d.call(this)&&!1!==this.options.anchorPreview}function h(){return!1!==this.options.placeholder}function v(){return!1!==this.options.autoLink}function m(){return!1!==this.options.imageDragging}function y(){return!1!==this.options.keyboardCommands}function g(){return!this.options.extensions.imageDragging}function b(t){for(var e=this.options.ownerDocument.createElement(“div”),n=Date.now(),r=“medium-editor-”+n,i=t.attributes;this.options.ownerDocument.getElementById®;)n++,r=“medium-editor-”+n;e.className=t.className,e.id=r,e.innerHTML=t.value,t.setAttribute(“medium-editor-textarea-id”,r);for(var o=0,a=i.length;o.nodeName)||e.setAttribute(i.nodeName,i.nodeValue);return t.form&&this.on(t.form,“reset”,function(t){t.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById®)}.bind(this)),t.classList.add(“medium-editor-hidden”),t.parentNode.insertBefore(e,t),e}function w(e,r){if(!e.getAttribute(“data-medium-editor-element”)){“textarea”===e.nodeName.toLowerCase()&&(e=b.call(this,e),this.instanceHandleEditableInput||(this.instanceHandleEditableInput=a.bind(this),this.subscribe(“editableInput”,this.instanceHandleEditableInput))),this.options.disableEditing||e.getAttribute(“data-disable-editing”)||(e.setAttribute(“contentEditable”,!0),e.setAttribute(“spellcheck”,this.options.spellcheck)),this.instanceHandleEditableKeydownEnter||(e.getAttribute(“data-disable-return”)||e.getAttribute(“data-disable-double-return”))&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe(“editableKeydownEnter”,this.instanceHandleEditableKeydownEnter)),this.options.disableReturn||e.getAttribute(“data-disable-return”)||this.on(e,“keyup”,o.bind(this));var i=t.util.guid();e.setAttribute(“data-medium-editor-element”,!0),e.classList.add(“medium-editor-element”),e.setAttribute(“role”,“textbox”),e.setAttribute(“aria-multiline”,!0),e.setAttribute(“data-medium-editor-editor-index”,r),e.setAttribute(“medium-editor-index”,i),E=e.innerHTML,this.events.attachAllEventsToElement(e)}return e}function _(){this.subscribe(“editableKeydownTab”,r.bind(this)),this.subscribe(“editableKeydownDelete”,i.bind(this)),this.subscribe(“editableKeydownEnter”,i.bind(this)),this.options.disableExtraSpaces&&this.subscribe(“editableKeydownSpace”,e.bind(this)),this.instanceHandleEditableKeydownEnter||(this.options.disableReturn||this.options.disableDoubleReturn)&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe(“editableKeydownEnter”,this.instanceHandleEditableKeydownEnter))}function O(){if(this.extensions=[],Object.keys(this.options.extensions).forEach((function(t){“toolbar”!==t&&this.options.extensions&&this.extensions.push(f(this.options.extensions,t,this))}),this),g.call(this)){var e=this.options.fileDragging;e||(e={},m.call(this)||(e.allowedTypes=[])),this.addBuiltInExtension(“fileDragging”,e)}var n={paste:!0,“anchor-preview”:p.call(this),autoLink:v.call(this),keyboardCommands:y.call(this),placeholder:h.call(this)};Object.keys(n).forEach((function(t){n&&this.addBuiltInExtension(t)}),this);var r=this.options.extensions.toolbar;if(!r&&d.call(this)){var i=t.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new t.extensions.toolbar(i)}r&&this.extensions.push(f(r,“toolbar”,this))}function k(e,n){return n&&[].forEach((function(e){n.hasOwnProperty(e)&&void 0!==n[e]&&t.util.deprecated(e,e,“v6.0.0”)})),t.util.defaults({},n,e)}function x(e,n){var r,i;if(r=/^append-(.+)$/gi.exec(e))return t.util.execFormatBlock(this.options.ownerDocument,r);if(“fontSize”===e)return n.size&&t.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”===e)return n.name&&t.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”===e)return this.createLink(n);if(“image”===e){var o=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand(“insertImage”,!1,o)}if(“html”===e){var a=this.options.contentWindow.getSelection().toString().trim();return t.util.insertHTMLCommand(this.options.ownerDocument,a)}if(/justify(*)$/g.exec(e)){var s=this.options.ownerDocument.execCommand(e,!1,null),u=t.selection.getSelectedParentElement(t.selection.getSelectionRange(this.options.ownerDocument));return u&&C.call(this,t.util.getTopBlockContainer(u)),s}return i=n&&n.value,this.options.ownerDocument.execCommand(e,!1,i)}function C(e){if(e){var n,r=Array.prototype.slice.call(e.childNodes).filter((function(t){var e=“div”===t.nodeName.toLowerCase();return e&&!n&&(n=t.style.textAlign),e}));r.length&&(this.saveSelection(),r.forEach((function(e){if(e.style.textAlign===n){var r=e.lastChild;if®{t.util.unwrap(e,this.options.ownerDocument);var i=this.options.ownerDocument.createElement(“BR”);r.parentNode.insertBefore(i,r.nextSibling)}}}),this),e.style.textAlign=n,this.restoreSelection())}}var E={};t.prototype={init:function(t,e){return this.options=k.call(this,this.defaults,e),this.origElements=t,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 t.Events(this),this.elements=[],this.addElements(this.origElements),0!==this.elements.length&&(this.isActive=!0,O.call(this),_.call(this)))},destroy:function(){this.isActive&&(this.isActive=!1,this.extensions.forEach((function(t){“function”==typeof t.destroy&&t.destroy()}),this),this.events.destroy(),this.elements.forEach((function(t){this.options.spellcheck&&(t.innerHTML=t.innerHTML),t.removeAttribute(“contentEditable”),t.removeAttribute(“spellcheck”),t.removeAttribute(“data-medium-editor-element”),t.classList.remove(“medium-editor-element”),t.removeAttribute(“role”),t.removeAttribute(“aria-multiline”),t.removeAttribute(“medium-editor-index”),t.removeAttribute(“data-medium-editor-editor-index”),t.getAttribute(“medium-editor-textarea-id”)&&c(t)}),this),this.elements=[],this.instanceHandleEditableKeydownEnter=null,this.instanceHandleEditableInput=null,u.call(this,this.options.contentWindow))},on:function(t,e,n,r){return this.events.attachDOMEvent(t,e,n,r),this},off:function(t,e,n,r){return this.events.detachDOMEvent(t,e,n,r),this},subscribe:function(t,e){return this.events.attachCustomEvent(t,e),this},unsubscribe:function(t,e){return this.events.detachCustomEvent(t,e),this},trigger:function(t,e,n){return this.events.triggerCustomEvent(t,e,n),this},delay:function(t){var e=this;return setTimeout((function(){e.isActive&&t()}),this.options.delay)},serialize:function(){var t,e={},n=this.elements.length;for(t=0;t.id?this.elements.id:“element-”+t]={value:this.elements.innerHTML.trim()};return e},getExtensionByName:function(t){var e;return this.extensions&&this.extensions.length&&this.extensions.some((function(n){return n.name===t&&(e=n,!0)})),e},addBuiltInExtension:function(e,n){var r,i=this.getExtensionByName(e);if(i)return i;switch(e){case“anchor”:r=t.util.extend({},this.options.anchor,n),i=new t.extensions.anchor®;break;case“anchor-preview”:i=new t.extensions.anchorPreview(this.options.anchorPreview);break;case“autoLink”:i=new t.extensions.autoLink;break;case“fileDragging”:i=new t.extensions.fileDragging(n);break;case“fontname”:i=new t.extensions.fontName(this.options.fontName);break;case“fontsize”:i=new t.extensions.fontSize(n);break;case“keyboardCommands”:i=new t.extensions.keyboardCommands(this.options.keyboardCommands);break;case“paste”:i=new t.extensions.paste(this.options.paste);break;case“placeholder”:i=new t.extensions.placeholder(this.options.placeholder);break;default:t.extensions.button.isBuiltInButton(e)&&(n?(r=t.util.defaults({},n,t.extensions.button.prototype.defaults),i=new t.extensions.button®):i=new t.extensions.button(e))}return i&&this.extensions.push(f(i,e,this)),i},stopSelectionUpdates:function(){this.preventSelectionUpdates=!0},startSelectionUpdates:function(){this.preventSelectionUpdates=!1},checkSelection:function(){var t=this.getExtensionByName(“toolbar”);return t&&t.checkState(),this},queryCommandState:function(t){var e,n=null;(e=/^full-(.+)$/gi.exec(t))&&(t=e);try{n=this.options.ownerDocument.queryCommandState(t)}catch(t){n=null}return n},execAction:function(e,n){var r,i;return(r=/^full-(.+)$/gi.exec(e))?(this.saveSelection(),this.selectAllContents(),i=x.call(this,r,n),this.restoreSelection()):i=x.call(this,e,n),“insertunorderedlist”!==e&&“insertorderedlist”!==e||t.util.cleanListDOM(this.options.ownerDocument,this.getSelectedParentElement()),this.checkSelection(),i},getSelectedParentElement:function(e){return void 0===e&&(e=this.options.contentWindow.getSelection().getRangeAt(0)),t.selection.getSelectedParentElement(e)},selectAllContents:function(){var e=t.selection.getSelectionElement(this.options.contentWindow);if(e){for(;1===e.children.length;)e=e.children;this.selectElement(e)}},selectElement:function(e){t.selection.selectNode(e,this.options.ownerDocument);var n=t.selection.getSelectionElement(this.options.contentWindow);n&&this.events.focusElement(n)},getFocusedElement:function(){var t;return this.elements.some((function(e){return!t&&e.getAttribute(“data-medium-focused”)&&(t=e),!!t}),this),t},exportSelection:function(){var e=t.selection.getSelectionElement(this.options.contentWindow),n=this.elements.indexOf(e),r=null;return n>=0&&(r=t.selection.exportSelection(e,this.options.ownerDocument)),null!==r&&0!==n&&(r.editableElementIndex=n),r},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(e,n){if(e){var r=this.elements;t.selection.importSelection(e,r,this.options.ownerDocument,n)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(e){var n,r=t.selection.getSelectionElement(this.options.contentWindow),i={};if(-1!==this.elements.indexOf®){try{if(this.events.disableCustomEvent(“editableInput”),e.url&&t.util.deprecated(“.url option for createLink”,“.value”,“6.0.0”),(n=e.url||e.value)&&n.trim().length>0){var o=this.options.contentWindow.getSelection();if(o){var a,s,u,l,c=o.getRangeAt(0),f=c.commonAncestorContainer;if(3===c.endContainer.nodeType&&3!==c.startContainer.nodeType&&0===c.startOffset&&c.startContainer.firstChild===c.endContainer&&(f=c.endContainer),s=t.util.getClosestBlockContainer(c.startContainer),u=t.util.getClosestBlockContainer(c.endContainer),3!==f.nodeType&&0!==f.textContent.length&&s===u){var d=s||r,p=this.options.ownerDocument.createDocumentFragment();this.execAction(“unlink”),a=this.exportSelection(),p.appendChild(d.cloneNode(!0)),r===d?t.selection.select(this.options.ownerDocument,d.firstChild,0,d.lastChild,3===d.lastChild.nodeType?d.lastChild.nodeValue.length:d.lastChild.childNodes.length):t.selection.select(this.options.ownerDocument,d,0,d,d.childNodes.length);var h=this.exportSelection();0===(l=t.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,p,{start:a.start-h.start,end:a.end-h.start,editableElementIndex:a.editableElementIndex})).length&&((p=this.options.ownerDocument.createDocumentFragment()).appendChild(f.cloneNode(!0)),l=),t.util.createLink(this.options.ownerDocument,l,n.trim());var v=(p.firstChild.innerHTML.match(/^s+/)||)[0].length;t.util.insertHTMLCommand(this.options.ownerDocument,p.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”===e.target?t.util.setTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n):t.util.removeTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n),e.buttonClass&&t.util.addClassToAnchors(t.selection.getSelectionStart(this.options.ownerDocument),e.buttonClass)}}if(this.options.targetBlank||“_blank”===e.target||e.buttonClass){(i=this.options.ownerDocument.createEvent(“HTMLEvents”)).initEvent(“input”,!0,!0,this.options.contentWindow);for(var m=0,y=this.elements.length;m.dispatchEvent(i)}}finally{this.events.enableCustomEvent(“editableInput”)}this.events.triggerCustomEvent(“editableInput”,i,r)}},cleanPaste:function(t){this.getExtensionByName(“paste”).cleanPaste(t)},pasteHTML:function(t,e){this.getExtensionByName(“paste”).pasteHTML(t,e)},setContent:function(t,e){if(e=e||0,this.elements){var n=this.elements;n.innerHTML=t,this.checkContentChanged(n)}},getContent:function(t){return t=t||0,this.elements?this.elements.innerHTML.trim():null},checkContentChanged:function(e){e=e||t.selection.getSelectionElement(this.options.contentWindow),this.events.updateInput(e,{target:e,currentTarget:e})},resetContent:function(t){if(t){var e=this.elements.indexOf(t);-1!==e&&this.setContent(E,e)}else this.elements.forEach((function(t,e){this.setContent(E,e)}),this)},addElements:function(t){var e=l(t,this.options.ownerDocument,!0);if(0===e.length)return!1;e.forEach((function(t){t=w.call(this,t,this.id),this.elements.push(t),this.trigger(“addElement”,{target:t,currentTarget:t},t)}),this)},removeElements:function(t){var e=l(t,this.options.ownerDocument).map((function(t){return t.getAttribute(“medium-editor-textarea-id”)&&t.parentNode?t.parentNode.querySelector(‘div’):t}));this.elements=this.elements.filter((function(t){return-1===e.indexOf(t)||(this.events.cleanupElement(t),t.getAttribute(“medium-editor-textarea-id”)&&c(t),this.trigger(“removeElement”,{target:t,currentTarget:t},t),!1)}),this)}},t.getEditorFromElement=function(t){var e=t.getAttribute(“data-medium-editor-editor-index”),n=t&&t.ownerDocument&&(t.ownerDocument.defaultView||t.ownerDocument.parentWindow);return n&&n._mediumEditors&&n._mediumEditors?n._mediumEditors:null}}(),t.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},t.parseVersionString=function(t){var e=t.split(“-”),n=e.split(“.”),r=e.length>1?e:“”;return{major:parseInt(n,10),minor:parseInt(n,10),revision:parseInt(n,10),preRelease:r,toString:function(){return[n,n,n].join(“.”)+(r?“-”+r:“”)}}},t.version=t.parseVersionString.call(this,“5.23.2”),t}())}).call(this,n(97))},212:function(t,e,n){“use strict”;function r(t){if(void 0!==t.label&&/S{1}/.test(t.label)&&void 0!==t.start&&/S{1}/.test(t.start)&&void 0!==t.end&&/S{1}/.test(t.end)||void 0!==t.label&&/S{1}/.test(t.label)&&void 0!==t.action&&/S{1}/.test(t.action)){t.start=void 0===t.start?“”:t.start,t.end=void 0===t.end?“”:t.end;var e=this;this.options=t,this.button=document.createElement(“button”),this.button.className=“medium-editor-action”,this.button.innerHTML=t.label,this.button.onclick=function(){var n,r,o=i(),a=window.getSelection(),s=a.anchorNode.parentElement;if(void 0===t.start||-1==o.indexOf(t.start)&&-1==o.indexOf(t.end)?(null!=t.action&&(o=t.action(o,!0,s)),o=t.start+o+t.end):(null!=t.action&&(o=t.action(o,!1,s)),o=String(o).split(t.start).join(“”),o=String(o).split(t.end).join(“”)),a.getRangeAt&&a.rangeCount){if((n=window.getSelection().getRangeAt(0)).deleteContents(),n.createContextualFragment)r=n.createContextualFragment(o);else{var u=document.createElement(“div”);for(u.innerHTML=o,r=document.createDocumentFragment();child=u.firstChild;)r.appendChild(child)}var l=r.firstChild,c=r.lastChild;n.insertNode®,l&&(n.setStartBefore(l),n.setEndAfter©),a.removeAllRanges(),a.addRange(n)}e.base.checkContentChanged()}}else console.error(‘ You need to specify “label”, “start” and “end” OR “label” and “action”’)}function i(){var t,e=“”;if(void 0!==window.getSelection){if((t=window.getSelection()).rangeCount){for(var n=document.createElement(“div”),r=0,i=t.rangeCount;r<i;++r)n.appendChild(t.getRangeAt®.cloneContents());e=n.innerHTML}}else void 0!==document.selection&&“Text”==document.selection.type&&(e=document.selection.createRange().htmlText);return e}r.prototype.getButton=function(){return this.button},r.prototype.checkState=function(t){var e=i();“”!=this.options.start&&e.indexOf(this.options.start)>-1&&e.indexOf(this.options.end)>-1?this.button.classList.add(“medium-editor-button-active”):this.button.classList.remove(“medium-editor-button-active”)},t.exports&&(e=t.exports=r),e.MediumButton=r},213:function(t,e,n){“use strict”;(function(t){ /*!

* The buffer module from node.js, for the browser.
*
* @author   Feross Aboukhadijeh <http://feross.org>
* @license  MIT
*/

var r=n(214),i=n(215),o=n(216);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError(“Invalid typed array length”);return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if(“number”==typeof t){if(“string”==typeof e)throw new Error(“If encoding is specified then the first argument must be a string”);return f(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if(“number”==typeof e)throw new TypeError(‘“value” argument must not be a number’);return“undefined”!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError(“‘offset’ is out of bounds”);if(e.byteLength<n+(r||0))throw new RangeError(“‘length’ is out of bounds”);e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=d(t,e);return t}(t,e,n,r):“string”==typeof e?function(t,e,n){“string”==typeof n&&“”!==n||(n=“utf8”);if(!u.isEncoding(n))throw new TypeError(‘“encoding” must be a valid string encoding’);var r=0|h(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|p(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if(“undefined”!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||“length”in e)return“number”!=typeof e.length||(r=e.length)!=r?s(t,0):d(t,e);if(“Buffer”===e.type&&o(e.data))return d(t,e.data)}var r;throw new TypeError(“First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.”)}(t,e)}function c(t){if(“number”!=typeof t)throw new TypeError(‘“size” argument must be a number’);if(t<0)throw new RangeError(‘“size” argument must not be negative’)}function f(t,e){if(c(e),t=s(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n=0;return t}function d(t,e){var n=e.length<0?0:0|p(e.length);t=s(t,n);for(var r=0;r=255&e;return t}function p(t){if(t>=a())throw new RangeError(“Attempt to allocate Buffer larger than maximum size: 0x”+a().toString(16)+“ bytes”);return 0|t}function h(t,e){if(u.isBuffer(t))return t.length;if(“undefined”!=typeof ArrayBuffer&&“function”==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;“string”!=typeof t&&(t=“”+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case“ascii”:case“latin1”:case“binary”:return n;case“utf8”:case“utf-8”:case void 0:return F(t).length;case“ucs2”:case“ucs-2”:case“utf16le”:case“utf-16le”:return 2*n;case“hex”:return n>>>1;case“base64”:return z(t).length;default:if®return F(t).length;e=(“”+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return“”;if((void 0===n||n>this.length)&&(n=this.length),n<=0)return“”;if((n>>>=0)<=(e>>>=0))return“”;for(t||(t=“utf8”);;)switch(t){case“hex”:return T(this,e,n);case“utf8”:case“utf-8”:return E(this,e,n);case“ascii”:return j(this,e,n);case“latin1”:case“binary”:return S(this,e,n);case“base64”:return C(this,e,n);case“ucs2”:case“ucs-2”:case“utf16le”:case“utf-16le”:return A(this,e,n);default:if®throw new TypeError(“Unknown encoding: ”+t);t=(t+“”).toLowerCase(),r=!0}}function m(t,e,n){var r=t;t=t,t=r}function y(t,e,n,r,i){if(0===t.length)return-1;if(“string”==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if(“string”==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:g(t,e,n,r,i);if(“number”==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&“function”==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,,n,r,i);throw new TypeError(“val must be string, number or Buffer”)}function g(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&(“ucs2”===(r=String®.toLowerCase())||“ucs-2”===r||“utf16le”===r||“utf-16le”===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(t,o)===l(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o–){for(var f=!0,d=0;d<u;d++)if(l(t,o+d)!==l(e,d)){f=!1;break}if(f)return o}return-1}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number®)>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError(“Invalid hex string”);r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t=s}return a}function w(t,e,n,r){return U(F(e,t.length-n),t,n,r)}function _(t,e,n,r){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function O(t,e,n,r){return _(t,e,n,r)}function k(t,e,n,r){return U(z(e),t,n,r)}function x(t,e,n,r){return U(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push®;return o}(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,l=t,c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t,a=t,128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t,a=t,s=t,128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push©,i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n=“”,r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}®}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&“function”==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,“undefined”!=typeof Symbol&&Symbol.species&&u===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?s(t,e):void 0!==n?“string”==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError(“Arguments must be Buffers”);if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i!==e){n=t,r=e;break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case“hex”:case“utf8”:case“utf-8”:case“ascii”:case“latin1”:case“binary”:case“base64”:case“ucs2”:case“ucs-2”:case“utf16le”:case“utf-16le”:return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError(‘“list” argument must be an Array of Buffers’);if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n.length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t;if(!u.isBuffer(a))throw new TypeError(‘“list” argument must be an Array of Buffers’);a.copy(r,i),i+=a.length}return r},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(“Buffer size must be a multiple of 16-bits”);for(var e=0;e<t;e+=2)m(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(“Buffer size must be a multiple of 32-bits”);for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(“Buffer size must be a multiple of 64-bits”);for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?“”:0===arguments.length?E(this,0,t):v.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError(“Argument must be a Buffer”);return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t=“”,n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString(“hex”,0,n).match(/.{2}/g).join(“ ”),this.length>n&&(t+=“ … ”)),“<Buffer ”t“>”},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError(“Argument must be a Buffer”);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError(“out of range index”);if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),f=0;f!==c){o=l,a=c;break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r=“utf8”,n=this.length,e=0;else if(void 0===n&&“string”==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error(“Buffer.write(string, encoding, offset[, length]) is no longer supported”);e|=0,isFinite(n)?(n|=0,void 0===r&&(r=“utf8”)):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError(“Attempt to write outside buffer bounds”);r||(r=“utf8”);for(var o=!1;;)switch®{case“hex”:return b(this,t,e,n);case“utf8”:case“utf-8”:return w(this,t,e,n);case“ascii”:return _(this,t,e,n);case“latin1”:case“binary”:return O(this,t,e,n);case“base64”:return k(this,t,e,n);case“ucs2”:case“ucs-2”:case“utf16le”:case“utf-16le”:return x(this,t,e,n);default:if(o)throw new TypeError(“Unknown encoding: ”+r);r=(“”+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:“Buffer”,data:Array.prototype.slice.call(this._arr||this,0)}};function j(t,e,n){var r=“”;n=Math.min(t.length,n);for(var i=e;i);return r}function S(t,e,n){var r=“”;n=Math.min(t.length,n);for(var i=e;i);return r}function T(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i=“”,o=e;o);return i}function A(t,e,n){for(var r=t.slice(e,n),i=“”,o=0;o+256*r);return i}function P(t,e,n){if(t%1!=0||t<0)throw new RangeError(“offset is not uint”);if(t+e>n)throw new RangeError(“Trying to access beyond buffer length”)}function N(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError(‘“buffer” argument must be a Buffer instance’);if(e>i||e<o)throw new RangeError(‘“value” argument is out of bounds’);if(n+r>t.length)throw new RangeError(“Index out of range”)}function L(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function I(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i=e>>>8*(r?i:3-i)&255}function D(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError(“Index out of range”);if(n<0)throw new RangeError(“Index out of range”)}function R(t,e,n,r,o){return o||D(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function M(t,e,n,r,o){return o||D(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o=this}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this,i=1,o=0;++o*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this,i=1;e>0&&(i*=256);)r+=this*i;return r},u.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this},u.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this|this<<8},u.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this<<8|this},u.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this|this<<8|this<<16)+16777216*this},u.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this+(this<<16|this<<8|this)},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this,i=1,o=0;++o*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this;r>0&&(i*=256);)o+=this*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this?-1*(255-this+1):this},u.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this|this<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this|this<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this|this<<8|this<<16|this<<24},u.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this<<24|this<<16|this<<8|this},u.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||N(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this=255&t;++o=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||N(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this=255&t;–i>=0&&(o*=256);)this=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this=255&t,this=t>>>8):L(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this=t>>>8,this=255&t):L(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this=t>>>24,this=t>>>16,this=t>>>8,this=255&t):I(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this=t>>>24,this=t>>>16,this=t>>>8,this=255&t):I(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);N(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this=255&t;++o&&(s=1),this=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);N(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this=255&t;–o>=0&&(a*=256);)t<0&&0===s&&0!==this&&(s=1),this=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this=255&t,this=t>>>8):L(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this=t>>>8,this=255&t):L(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this=255&t,this=t>>>8,this=t>>>16,this=t>>>24):I(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this=t>>>24,this=t>>>16,this=t>>>8,this=255&t):I(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return M(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return M(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError(“targetStart out of bounds”);if(n<0||n>=this.length)throw new RangeError(“sourceStart out of bounds”);if(r<0)throw new RangeError(“sourceEnd out of bounds”);r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n=0;–i)t=this;else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i=this;else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if(“string”==typeof t){if(“string”==typeof e?(r=e,e=0,n=this.length):“string”==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&“string”!=typeof r)throw new TypeError(“encoding must be a string”);if(“string”==typeof r&&!u.isEncoding®)throw new TypeError(“Unknown encoding: ”+r)}else“number”==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError(“Out of range index”);if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),“number”==typeof t)for(o=e;o=t;else{var a=u.isBuffer(t)?t:F(new u(t,r).toString()),s=a.length;for(o=0;o=a}return this};var B=//g;function q(t){return t<16?“0”+t.toString(16):t.toString(16)}function F(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(“Invalid code point”);if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^s+|s+$/g,“”)}(t).replace(B,“”)).length<2)return“”;for(;t.length%4!=0;)t+=“=”;return t}(t))}function U(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e=t;return i}}).call(this,n(41))},214:function(t,e,n){“use strict”;e.byteLength=function(t){var e=l(t),n=e,r=e;return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=l(t),a=r,s=r,u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<<18|i<<12|i<<6|i,u=e>>16&255,u=e>>8&255,u=255&e;2===s&&(e=i<<2|i>>4,u=255&e);1===s&&(e=i<<10|i<<4|i>>2,u=e>>8&255,u=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(e=t,r+”==“)):2===i&&(e=(t<<8)+t,>4&63“>r+r+”=“));return o.join(”“)};for(var r=[],i=,o=”undefined“!=typeof Uint8Array?Uint8Array:Array,a=”ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/“,s=0,u=a.length;s=a,i=s;function l(t){var e=t.length;if(e%4>0)throw new Error(”Invalid string. Length must be a multiple of 4“);var n=t.indexOf(”=“);return-1===n&&(n=e),}function c(t,e,n){for(var i,o,a=[],s=e;s<<16&16711680)+(t<<8&65280)+(255&t),>12&63“>r+r);return a.join(“”)}i=62,i=63},215:function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,f=n?i-1:0,d=n?-1:1,p=t;for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t,f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t,f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=l}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t=255&s,p+=h,s/=256,i-=8);for(a=a<0;t=255&a,p+=h,a/=256,l-=8);t|=128*v}},216:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return“[object Array]”==n.call(t)}},217:function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=n(218),i=n(222),o=n(223),a=n(73),s=n(224),u=n(142),l=n(101),c=n(55),f=function(){function t(t,e){this.rawDeltaOps=[],this.callbacks={},this.options=l.assign({paragraphTag:“p”,encodeHtml:!0,classPrefix:“ql”,multiLineBlockquote:!0,multiLineHeader:!0,multiLineCodeblock:!0,multiLineParagraph:!0,allowBackgroundClasses:!1,linkTarget:“_blank”},e,{orderedListTag:“ol”,bulletListTag:“ul”,listItemTag:“li”}),this.converterOptions={encodeHtml:this.options.encodeHtml,classPrefix:this.options.classPrefix,listItemTag:this.options.listItemTag,paragraphTag:this.options.paragraphTag,linkRel:this.options.linkRel,linkTarget:this.options.linkTarget,allowBackgroundClasses:this.options.allowBackgroundClasses},this.rawDeltaOps=t}return t.prototype._getListTag=function(t){return t.isOrderedList()?this.options.orderedListTag+“”:t.isBulletList()||t.isCheckedList()||t.isUncheckedList()?this.options.bulletListTag+“”:“”},t.prototype.getGroupedOps=function(){var t=r.InsertOpsConverter.convert(this.rawDeltaOps),e=o.Grouper.pairOpsWithTheirBlock(t),n=o.Grouper.groupConsecutiveSameStyleBlocks(e,{blockquotes:!!this.options.multiLineBlockquote,header:!!this.options.multiLineHeader,codeBlocks:!!this.options.multiLineCodeblock}),i=o.Grouper.reduceConsecutiveSameStyleBlocksToOne(n);return(new s.ListNester).nest(i)},t.prototype.convert=function(){var t=this;return this.getGroupedOps().map((function(e){if(e instanceof a.ListGroup)return t._renderWithCallbacks(c.GroupType.List,e,(function(){return t._renderList(e)}));if(e instanceof a.BlockGroup){var n=e;return t._renderWithCallbacks(c.GroupType.Block,e,(function(){return t._renderBlock(n.op,n.ops)}))}return e instanceof a.BlotBlock?t._renderCustom(e.op,null):e instanceof a.VideoItem?t._renderWithCallbacks(c.GroupType.Video,e,(function(){var n=e;return new i.OpToHtmlConverter(n.op,t.converterOptions).getHtml()})):t._renderWithCallbacks(c.GroupType.InlineGroup,e,(function(){return t._renderInlines(e.ops,!0)}))})).join(“”)},t.prototype._renderWithCallbacks=function(t,e,n){var r=“”,i=this.callbacks.beforeRender_cb;(r=“function”==typeof i?i.apply(null,):“”)||(r=n());var o=this.callbacks.afterRender_cb;return r=“function”==typeof o?o.apply(null,):r},t.prototype._renderList=function(t){var e=this,n=t.items;return u.makeStartTag(this._getListTag(n.item.op))+t.items.map((function(t){return e._renderListItem(t)})).join(“”)+u.makeEndTag(this._getListTag(n.item.op))},t.prototype._renderListItem=function(t){t.item.op.attributes.indent=0;var e=new i.OpToHtmlConverter(t.item.op,this.converterOptions).getHtmlParts(),n=this._renderInlines(t.item.ops,!1);return e.openingTag+n+(t.innerList?this._renderList(t.innerList):“”)+e.closingTag},t.prototype._renderBlock=function(t,e){var n=this,r=new i.OpToHtmlConverter(t,this.converterOptions).getHtmlParts();if(t.isCodeBlock())return r.openingTag+u.encodeHtml(e.map((function(e){return e.isCustom()?n._renderCustom(e,t):e.insert.value})).join(“”))+r.closingTag;var o=e.map((function(e){return n._renderInline(e,t)})).join(“”);return r.openingTag+(o||“<br/>”)+r.closingTag},t.prototype._renderInlines=function(t,e){var n=this;void 0===e&&(e=!0);var r=t.length-1,i=t.map((function(t,e){return e>0&&e===r&&t.isJustNewline()?“”:n._renderInline(t,null)})).join(“”);if(!e)return i;var o=u.makeStartTag(this.options.paragraphTag),a=u.makeEndTag(this.options.paragraphTag);return“<br/>”===i||this.options.multiLineParagraph?o+i+a:o+i.split(“<br/>”).map((function(t){return“”===t?“<br/>”:t})).join(a+o)+a},t.prototype._renderInline=function(t,e){return t.isCustom()?this._renderCustom(t,e):new i.OpToHtmlConverter(t,this.converterOptions).getHtml().replace(/n/g,“<br/>”)},t.prototype._renderCustom=function(t,e){var n=this.callbacks.renderCustomOp_cb;return“function”==typeof n?n.apply(null,):“”},t.prototype.beforeRender=function(t){“function”==typeof t&&(this.callbacks.beforeRender_cb=t)},t.prototype.afterRender=function(t){“function”==typeof t&&(this.callbacks.afterRender_cb=t)},t.prototype.renderCustomWith=function(t){this.callbacks.renderCustomOp_cb=t},t}();e.QuillDeltaToHtmlConverter=f},218:function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=n(98),i=n(55),o=n(99),a=n(141),s=n(220),u=function(){function t(){}return t.convert=function(e){if(!Array.isArray(e))return[];for(var n,i,o=[],u=0,l=.concat.apply([],e.map(s.InsertOpDenormalizer.denormalize));u<l.length;u++){var c=l;c.insert&&((n=t.convertInsertVal(c.insert))&&(i=a.OpAttributeSanitizer.sanitize(c.attributes),o.push(new r.DeltaInsertOp(n,i))))}return o},t.convertInsertVal=function(t){if(“string”==typeof t)return new o.InsertDataQuill(i.DataType.Text,t);if(!t||“object”!=typeof t)return null;var e=Object.keys(t);return e.length?i.DataType.Image in t?new o.InsertDataQuill(i.DataType.Image,t):i.DataType.Video in t?new o.InsertDataQuill(i.DataType.Video,t):i.DataType.Formula in t?new o.InsertDataQuill(i.DataType.Formula,t):new o.InsertDataCustom(e,t[e]):null},t}();e.InsertOpsConverter=u},219:function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=n(100),i=function(){function t(){}return t.sanitize=function(e){var n={};return e&&“object”==typeof e?(e.class&&t.IsValidClass(e.class)&&(n.class=e.class),e.id&&t.IsValidId(e.id)&&(n.id=e.id),t.IsValidTarget(e.target+“”)&&(n.target=e.target),e.avatar&&(n.avatar=r.sanitize(e.avatar+“”)),e&&(n=r.sanitize(e+“”)),e.slug&&(n.slug=e.slug+“”),n):n},t.IsValidClass=function(t){return!!t.match(/^{1,500}$/i)},t.IsValidId=function(t){return!!t.match(/^{1,500}$/i)},t.IsValidTarget=function(t){return.indexOf(t)>-1},t}();e.MentionSanitizer=i},220:function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=n(55),i=n(221),o=n(101),a=function(){function t(){}return t.denormalize=function(t){if(!t||“object”!=typeof t)return[];if(“object”==typeof t.insert||t.insert===r.NewLine)return;var e=i.tokenizeWithNewLines(t.insert+“”);if(1===e.length)return;var n=o.assign({},t,{insert:r.NewLine});return e.map((function(e){return e===r.NewLine?n:o.assign({},t,{insert:e})}))},t}();e.InsertOpDenormalizer=a},221:function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0}),e.tokenizeWithNewLines=function(t){if(“n”===t)return;var e=t.split(“n”);if(1===e.length)return e;var n=e.length-1;return e.reduce((function(t,e,r){return r!==n?“”!==e?t=t.concat(e,“n”):t.push(“n”):“”!==e&&t.push(e),t}),[])}},222:function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=n(142),i=n(55),o=n(100),a=n(101),s=n(102),u=n(141),l=function(){function t(t,e){this.op=t,this.options=a.assign({},{classPrefix:“ql”,encodeHtml:!0,listItemTag:“li”,paragraphTag:“p”},e)}return t.prototype.prefixClass=function(t){return this.options.classPrefix?this.options.classPrefix+“-”t:t“”},t.prototype.getHtml=function(){var t=this.getHtmlParts();return t.openingTag+t.content+t.closingTag},t.prototype.getHtmlParts=function(){if(this.op.isJustNewline()&&!this.op.isContainerBlock())return{openingTag:“”,closingTag:“”,content:i.NewLine};var t=this.getTags(),e=this.getTagAttributes();!t.length&&e.length&&t.push(“span”);for(var n=[],o=,a=0,s=t;a<s.length;a++){var u=s;n.push(r.makeStartTag(u,e)),o.push(“img”===u?“”:r.makeEndTag(u)),e=[]}return o.reverse(),{openingTag:n.join(“”),content:this.getContent(),closingTag:o.join(“”)}},t.prototype.getContent=function(){if(this.op.isContainerBlock())return“”;if(this.op.isMentions())return this.op.insert.value;var t=this.op.isFormula()||this.op.isText()?this.op.insert.value:“”;return this.options.encodeHtml&&r.encodeHtml(t)||t},t.prototype.getCssClasses=function(){var t=this.op.attributes,e=;return this.options.allowBackgroundClasses&&e.push(“background”),e.filter((function(e){return!!t})).filter((function(e){return“background”!==e||u.OpAttributeSanitizer.IsValidColorLiteral(t)})).map((function(e){return e+“-”+t})).concat(this.op.isFormula()?“formula”:[]).concat(this.op.isVideo()?“video”:).concat(this.op.isImage()?“image”:[]).map(this.prefixClass.bind(this))},t.prototype.getCssStyles=function(){var t=this.op.attributes,e=[];return this.options.allowBackgroundClasses||e.push(),e.filter((function(e){return!!t[e]})).map((function(e){return s.preferSecond(e)+“:”+t[e]}))},t.prototype.getTagAttributes=function(){if(this.op.attributes.code&&!this.op.isLink())return[];var e=function(t,e){return{key:t,value:e}},n=this.getCssClasses(),i=n.length?[e(“class”,n.join(“ ”))]:[];if(this.op.isImage())return this.op.attributes.width&&(i=i.concat(e(“width”,this.op.attributes.width))),i.concat(e(“src”,o.sanitize(this.op.insert.value+“”)+“”));if(this.op.isACheckList())return i.concat(e(“data-checked”,this.op.isCheckedList()?“true”:“false”));if(this.op.isFormula()||this.op.isContainerBlock())return i;if(this.op.isVideo())return i.concat(e(“frameborder”,“0”),e(“allowfullscreen”,“true”),e(“src”,o.sanitize(this.op.insert.value+“”)+“”));if(this.op.isMentions()){var a=this.op.attributes.mention;return a.class&&(i=i.concat(e(“class”,a.class))),i=a&&a.slug?i.concat(e(“href”,r.encodeLink(a+“/”+a.slug))):i.concat(e(“href”,“about:blank”)),a.target&&(i=i.concat(e(“target”,a.target))),i}var s=this.getCssStyles(),u=s.length?:[];if(i=i.concat(u),this.op.isLink()){var l=this.op.attributes.target||this.options.linkTarget;i=i.concat(e(“href”,r.encodeLink(this.op.attributes.link))).concat(l?e(“target”,l):[]),this.options.linkRel&&t.IsValidRel(this.options.linkRel)&&i.push(e(“rel”,this.options.linkRel))}return i},t.prototype.getTags=function(){var t=this.op.attributes;if(!this.op.isText())return;for(var e=this.options.paragraphTag||“p”,n=0,r=[,[“code-block”,“pre”],,[“header”],,[“direction”,e],];n<r.length;n++){var o=r,a=o;if(t)return“header”===a?[“h”+t]:[s.preferSecond(o)]}return[,[“mentions”,“a”],,[“bold”,“strong”],,[“strike”,“s”],,[“code”]].filter((function(e){return!!t[e]})).map((function(e){return“script”===e?t[e]===i.ScriptType.Sub?“sub”:“sup”:s.preferSecond(e)}))},t.IsValidRel=function(t){return!!t.match(/^{1,50}$/i)},t}();e.OpToHtmlConverter=l},223:function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=n(98),i=n(102),o=n(73),a=function(){function t(){}return t.pairOpsWithTheirBlock=function(t){for(var e,n=[],r=function(t){return!(t.isJustNewline()||t.isCustomBlock()||t.isVideo()||t.isContainerBlock())},a=function(t){return t.isInline()},s=t.length-1;s>=0;s–){var u=t;u.isVideo()?n.push(new o.VideoItem(u)):u.isCustomBlock()?n.push(new o.BlotBlock(u)):u.isContainerBlock()?(e=i.sliceFromReverseWhile(t,s-1,r),n.push(new o.BlockGroup(u,e.elements)),s=e.sliceStartsAt>-1?e.sliceStartsAt:s):(e=i.sliceFromReverseWhile(t,s-1,a),n.push(new o.InlineGroup(e.elements.concat(u))),s=e.sliceStartsAt>-1?e.sliceStartsAt:s)}return n.reverse(),n},t.groupConsecutiveSameStyleBlocks=function(e,n){return void 0===n&&(n={header:!0,codeBlocks:!0,blockquotes:!0}),i.groupConsecutiveElementsWhile(e,(function(e,r){return e instanceof o.BlockGroup&&r instanceof o.BlockGroup&&(n.codeBlocks&&t.areBothCodeblocks(e,r)||n.blockquotes&&t.areBothBlockquotesWithSameAdi(e,r)||n.header&&t.areBothSameHeadersWithSameAdi(e,r))}))},t.reduceConsecutiveSameStyleBlocksToOne=function(t){var e=r.DeltaInsertOp.createNewLineOp();return t.map((function(t){if(!Array.isArray(t))return t instanceof o.BlockGroup&&!t.ops.length&&t.ops.push(e),t;var n=t.length-1;return t.ops=i.flatten(t.map((function(t,r){return t.ops.length?t.ops.concat(r:[]):[e]}))),t}))},t.areBothCodeblocks=function(t,e){return t.op.isCodeBlock()&&e.op.isCodeBlock()},t.areBothSameHeadersWithSameAdi=function(t,e){return t.op.isSameHeaderAs(e.op)&&t.op.hasSameAdiAs(e.op)},t.areBothBlockquotesWithSameAdi=function(t,e){return t.op.isBlockquote()&&e.op.isBlockquote()&&t.op.hasSameAdiAs(e.op)},t}();e.Grouper=a},224:function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=n(73),i=n(102),o=function(){function t(){}return t.prototype.nest=function(t){var e=this,n=this.convertListBlocksToListGroups(t),o=this.groupConsecutiveListGroups(n),a=i.flatten(o.map((function(t){return Array.isArray(t)?e.nestListSection(t):t})));return i.groupConsecutiveElementsWhile(a,(function(t,e){return t instanceof r.ListGroup&&e instanceof r.ListGroup&&t.items.item.op.isSameListAs(e.items.item.op)})).map((function(t){if(!Array.isArray(t))return t;var e=t.map((function(t){return t.items}));return new r.ListGroup(i.flatten(e))}))},t.prototype.convertListBlocksToListGroups=function(t){return i.groupConsecutiveElementsWhile(t,(function(t,e){return t instanceof r.BlockGroup&&e instanceof r.BlockGroup&&t.op.isList()&&e.op.isList()&&t.op.isSameListAs(e.op)&&t.op.hasSameIndentationAs(e.op)})).map((function(t){return Array.isArray(t)?new r.ListGroup(t.map((function(t){return new r.ListItem(t)}))):t instanceof r.BlockGroup&&t.op.isList()?new r.ListGroup([new r.ListItem(t)]):t}))},t.prototype.groupConsecutiveListGroups=function(t){return i.groupConsecutiveElementsWhile(t,(function(t,e){return t instanceof r.ListGroup&&e instanceof r.ListGroup}))},t.prototype.nestListSection=function(t){var e=this,n=this.groupByIndent(t);return Object.keys(n).map(Number).sort().reverse().forEach((function®{n.forEach((function(n){var r=t.indexOf(n);e.placeUnderParent(n,t.slice(0,r))&&t.splice(r,1)}))})),t},t.prototype.groupByIndent=function(t){return t.reduce((function(t,e){var n=e.items.item.op.attributes.indent;return n&&(t=t||[],t.push(e)),t}),{})},t.prototype.placeUnderParent=function(t,e){for(var n=e.length-1;n>=0;n–){var r=e;if(t.items.item.op.hasHigherIndentThan(r.items.item.op)){var i=r.items;return i.innerList?i.innerList.items=i.innerList.items.concat(t.items):i.innerList=t,!0}}return!1},t}();e.ListNester=o},225:function(t,e,n){“use strict”; /** @license React v16.6.1

* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(80),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.concurrent_mode"):60111,p=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,v=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function g(t,e,n,r,i,o,a,s){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],l=0;(t=Error(e.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw t.framesToPop=1,t}}function b(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);g(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function O(t,e,n){this.props=t,this.context=e,this.refs=_,this.updater=n||w}function k(){}function x(t,e,n){this.props=t,this.context=e,this.refs=_,this.updater=n||w}O.prototype.isReactComponent={},O.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&b("85"),this.updater.enqueueSetState(this,t,e,"setState")},O.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},k.prototype=O.prototype;var C=x.prototype=new k;C.constructor=x,r(C,O.prototype),C.isPureReactComponent=!0;var E={current:null,currentDispatcher:null},j=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(t,e,n){var r=void 0,i={},a=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)j.call(e,r)&&!S.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:t,key:a,ref:s,props:i,_owner:E.current}}function A(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var P=/\/+/g,N=[];function L(t,e,n,r){if(N.length){var i=N.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function I(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>N.length&&N.push(t)}function D(t,e,n){return null==t?0:function t(e,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case a:u=!0}}if(u)return r(i,e,""===n?"."+R(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=n+R(s=e[l],l);u+=t(s,c,r,i)}else if(null===e||"object"!=typeof e?c=null:c="function"==typeof(c=y&&e[y]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=t(s=s.value,c=n+R(s,l++),r,i);else"object"===s&&b("31","[object Object]"===(r=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":r,"");return u}(t,"",e,n)}function R(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function M(t,e){t.func.call(t.context,e,t.count++)}function B(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?q(t,r,n,(function(t){return t})):null!=t&&(A(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(P,"$&/")+"/")+n)),r.push(t))}function q(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(P,"$&/")+"/"),D(t,B,e=L(e,o,r,i)),I(e)}var F={Children:{map:function(t,e,n){if(null==t)return t;var r=[];return q(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;D(t,M,e=L(null,null,e,n)),I(e)},count:function(t){return D(t,(function(){return null}),null)},toArray:function(t){var e=[];return q(t,e,null,(function(t){return t})),e},only:function(t){return A(t)||b("143"),t}},createRef:function(){return{current:null}},Component:O,PureComponent:x,createContext:function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},forwardRef:function(t){return{$$typeof:p,render:t}},lazy:function(t){return{$$typeof:m,_ctor:t,_status:-1,_result:null}},memo:function(t,e){return{$$typeof:v,type:t,compare:void 0===e?null:e}},Fragment:s,StrictMode:u,Suspense:h,createElement:T,cloneElement:function(t,e,n){null==t&&b("267",t);var i=void 0,a=r({},t.props),s=t.key,u=t.ref,l=t._owner;if(null!=e){void 0!==e.ref&&(u=e.ref,l=E.current),void 0!==e.key&&(s=""+e.key);var c=void 0;for(i in t.type&&t.type.defaultProps&&(c=t.type.defaultProps),e)j.call(e,i)&&!S.hasOwnProperty(i)&&(a[i]=void 0===e[i]&&void 0!==c?c[i]:e[i])}if(1===(i=arguments.length-2))a.children=n;else if(1<i){c=Array(i);for(var f=0;f<i;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:o,type:t.type,key:s,ref:u,props:a,_owner:l}},createFactory:function(t){var e=T.bind(null,t);return e.type=t,e},isValidElement:A,version:"16.6.3",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:E,assign:r}};F.unstable_ConcurrentMode=d,F.unstable_Profiler=l;var z={default:F},U=z&&F||z;t.exports=U.default||U},226:function(t,e,n){"use strict";

/** @license React v16.6.1

* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(1),i=n(80),o=n(227);function a(t,e,n,r,i,o,a,s){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],l=0;(t=Error(e.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw t.framesToPop=1,t}}function s(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);a(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function u(t,e,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{e.apply(n,l)}catch(t){this.onError(t)}}r||s("227");var l=!1,c=null,f=!1,d=null,p={onError:function(t){l=!0,c=t}};function h(t,e,n,r,i,o,a,s,f){l=!1,c=null,u.apply(p,arguments)}var v=null,m={};function y(){if(v)for(var t in m){var e=m[t],n=v.indexOf(t);if(-1<n||s("96",t),!b[n])for(var r in e.extractEvents||s("97",t),b[n]=e,n=e.eventTypes){var i=void 0,o=n[r],a=e,u=r;w.hasOwnProperty(u)&&s("99",u),w[u]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&g(l[i],a,u);i=!0}else o.registrationName?(g(o.registrationName,a,u),i=!0):i=!1;i||s("98",r,t)}}}function g(t,e,n){_[t]&&s("100",t),_[t]=e,O[t]=e.eventTypes[n].dependencies}var b=[],w={},_={},O={},k=null,x=null,C=null;function E(t,e,n){var r=t.type||"unknown-event";t.currentTarget=C(n),function(t,e,n,r,i,o,a,u,p){if(h.apply(this,arguments),l){if(l){var v=c;l=!1,c=null}else s("198"),v=void 0;f||(f=!0,d=v)}}(r,e,void 0,t),t.currentTarget=null}function j(t,e){return null==e&&s("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function S(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var T=null;function A(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)E(t,e[r],n[r]);else e&&E(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}var P={injectEventPluginOrder:function(t){v&&s("101"),v=Array.prototype.slice.call(t),y()},injectEventPluginsByName:function(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];m.hasOwnProperty(e)&&m[e]===r||(m[e]&&s("102",e),m[e]=r,n=!0)}n&&y()}};function N(t,e){var n=t.stateNode;if(!n)return null;var r=k(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}return t?null:(n&&"function"!=typeof n&&s("231",e,typeof n),n)}function L(t){if(null!==t&&(T=j(T,t)),t=T,T=null,t&&(S(t,A),T&&s("95"),f))throw t=d,f=!1,d=null,t}var I=Math.random().toString(36).slice(2),D="__reactInternalInstance$"+I,R="__reactEventHandlers$"+I;function M(t){if(t[D])return t[D];for(;!t[D];){if(!t.parentNode)return null;t=t.parentNode}return 5===(t=t[D]).tag||6===t.tag?t:null}function B(t){return!(t=t[D])||5!==t.tag&&6!==t.tag?null:t}function q(t){if(5===t.tag||6===t.tag)return t.stateNode;s("33")}function F(t){return t[R]||null}function z(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function U(t,e,n){(e=N(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=j(n._dispatchListeners,e),n._dispatchInstances=j(n._dispatchInstances,t))}function H(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=z(e);for(e=n.length;0<e--;)U(n[e],"captured",t);for(e=0;e<n.length;e++)U(n[e],"bubbled",t)}}function W(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=N(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=j(n._dispatchListeners,e),n._dispatchInstances=j(n._dispatchInstances,t))}function V(t){t&&t.dispatchConfig.registrationName&&W(t._targetInst,null,t)}function K(t){S(t,H)}var Q=!("undefined"==typeof window||!window.document||!window.document.createElement);function $(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var G={animationend:$("Animation","AnimationEnd"),animationiteration:$("Animation","AnimationIteration"),animationstart:$("Animation","AnimationStart"),transitionend:$("Transition","TransitionEnd")},Y={},Z={};function X(t){if(Y[t])return Y[t];if(!G[t])return t;var e,n=G[t];for(e in n)if(n.hasOwnProperty(e)&&e in Z)return Y[t]=n[e];return t}Q&&(Z=document.createElement("div").style,"AnimationEvent"in window||(delete G.animationend.animation,delete G.animationiteration.animation,delete G.animationstart.animation),"TransitionEvent"in window||delete G.transitionend.transition);var J=X("animationend"),tt=X("animationiteration"),et=X("animationstart"),nt=X("transitionend"),rt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),it=null,ot=null,at=null;function st(){if(at)return at;var t,e,n=ot,r=n.length,i="value"in it?it.value:it.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return at=i.slice(t,1<e?1-e:void 0)}function ut(){return!0}function lt(){return!1}function ct(t,e,n,r){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ut:lt,this.isPropagationStopped=lt,this}function ft(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function dt(t){t instanceof this||s("279"),t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function pt(t){t.eventPool=[],t.getPooled=ft,t.release=dt}i(ct.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=ut)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=ut)},persist:function(){this.isPersistent=ut},isPersistent:lt,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=lt,this._dispatchInstances=this._dispatchListeners=null}}),ct.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ct.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,pt(n),n},pt(ct);var ht=ct.extend({data:null}),vt=ct.extend({data:null}),mt=[9,13,27,32],yt=Q&&"CompositionEvent"in window,gt=null;Q&&"documentMode"in document&&(gt=document.documentMode);var bt=Q&&"TextEvent"in window&&!gt,wt=Q&&(!yt||gt&&8<gt&&11>=gt),_t=String.fromCharCode(32),Ot={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},kt=!1;function xt(t,e){switch(t){case"keyup":return-1!==mt.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ct(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Et=!1;var jt={eventTypes:Ot,extractEvents:function(t,e,n,r){var i=void 0,o=void 0;if(yt)t:{switch(t){case"compositionstart":i=Ot.compositionStart;break t;case"compositionend":i=Ot.compositionEnd;break t;case"compositionupdate":i=Ot.compositionUpdate;break t}i=void 0}else Et?xt(t,n)&&(i=Ot.compositionEnd):"keydown"===t&&229===n.keyCode&&(i=Ot.compositionStart);return i?(wt&&"ko"!==n.locale&&(Et||i!==Ot.compositionStart?i===Ot.compositionEnd&&Et&&(o=st()):(ot="value"in(it=r)?it.value:it.textContent,Et=!0)),i=ht.getPooled(i,e,n,r),o?i.data=o:null!==(o=Ct(n))&&(i.data=o),K(i),o=i):o=null,(t=bt?function(t,e){switch(t){case"compositionend":return Ct(e);case"keypress":return 32!==e.which?null:(kt=!0,_t);case"textInput":return(t=e.data)===_t&&kt?null:t;default:return null}}(t,n):function(t,e){if(Et)return"compositionend"===t||!yt&&xt(t,e)?(t=st(),at=ot=it=null,Et=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return wt&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=vt.getPooled(Ot.beforeInput,e,n,r)).data=t,K(e)):e=null,null===o?e:null===e?o:[o,e]}},St=null,Tt=null,At=null;function Pt(t){if(t=x(t)){"function"!=typeof St&&s("280");var e=k(t.stateNode);St(t.stateNode,t.type,e)}}function Nt(t){Tt?At?At.push(t):At=[t]:Tt=t}function Lt(){if(Tt){var t=Tt,e=At;if(At=Tt=null,Pt(t),e)for(t=0;t<e.length;t++)Pt(e[t])}}function It(t,e){return t(e)}function Dt(t,e,n){return t(e,n)}function Rt(){}var Mt=!1;function Bt(t,e){if(Mt)return t(e);Mt=!0;try{return It(t,e)}finally{Mt=!1,(null!==Tt||null!==At)&&(Rt(),Lt())}}var qt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ft(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!qt[t.type]:"textarea"===e}function zt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function Ut(t){if(!Q)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e}function Ht(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function Wt(t){t._valueTracker||(t._valueTracker=function(t){var e=Ht(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Vt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Ht(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}var Kt=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qt=/^(.*)[\\\/]/,$t="function"==typeof Symbol&&Symbol.for,Gt=$t?Symbol.for("react.element"):60103,Yt=$t?Symbol.for("react.portal"):60106,Zt=$t?Symbol.for("react.fragment"):60107,Xt=$t?Symbol.for("react.strict_mode"):60108,Jt=$t?Symbol.for("react.profiler"):60114,te=$t?Symbol.for("react.provider"):60109,ee=$t?Symbol.for("react.context"):60110,ne=$t?Symbol.for("react.concurrent_mode"):60111,re=$t?Symbol.for("react.forward_ref"):60112,ie=$t?Symbol.for("react.suspense"):60113,oe=$t?Symbol.for("react.memo"):60115,ae=$t?Symbol.for("react.lazy"):60116,se="function"==typeof Symbol&&Symbol.iterator;function ue(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=se&&t[se]||t["@@iterator"])?t:null}function le(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case ne:return"ConcurrentMode";case Zt:return"Fragment";case Yt:return"Portal";case Jt:return"Profiler";case Xt:return"StrictMode";case ie:return"Suspense"}if("object"==typeof t)switch(t.$$typeof){case ee:return"Context.Consumer";case te:return"Context.Provider";case re:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case oe:return le(t.type);case ae:if(t=1===t._status?t._result:null)return le(t)}return null}function ce(t){var e="";do{t:switch(t.tag){case 2:case 16:case 0:case 1:case 5:case 8:case 13:var n=t._debugOwner,r=t._debugSource,i=le(t.type),o=null;n&&(o=le(n.type)),n=i,i="",r?i=" (at "+r.fileName.replace(Qt,"")+":"+r.lineNumber+")":o&&(i=" (created by "+o+")"),o="\n    in "+(n||"Unknown")+i;break t;default:o=""}e+=o,t=t.return}while(t);return e}var fe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,de=Object.prototype.hasOwnProperty,pe={},he={};function ve(t,e,n,r,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){me[t]=new ve(t,0,!1,t,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];me[e]=new ve(e,1,!1,t[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){me[t]=new ve(t,2,!1,t.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){me[t]=new ve(t,2,!1,t,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){me[t]=new ve(t,3,!1,t.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(t){me[t]=new ve(t,3,!0,t,null)})),["capture","download"].forEach((function(t){me[t]=new ve(t,4,!1,t,null)})),["cols","rows","size","span"].forEach((function(t){me[t]=new ve(t,6,!1,t,null)})),["rowSpan","start"].forEach((function(t){me[t]=new ve(t,5,!1,t.toLowerCase(),null)}));var ye=/[\-:]([a-z])/g;function ge(t){return t[1].toUpperCase()}function be(t,e,n,r){var i=me.hasOwnProperty(e)?me[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!de.call(he,t)||!de.call(pe,t)&&(fe.test(t)?he[t]=!0:(pe[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}function we(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function _e(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Oe(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=we(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function ke(t,e){null!=(e=e.checked)&&be(t,"checked",e,!1)}function xe(t,e){ke(t,e);var n=we(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Ee(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ee(t,e.type,we(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Ce(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Ee(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(ye,ge);me[e]=new ve(e,1,!1,t,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(ye,ge);me[e]=new ve(e,1,!1,t,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(ye,ge);me[e]=new ve(e,1,!1,t,"http://www.w3.org/XML/1998/namespace")})),me.tabIndex=new ve("tabIndex",1,!1,"tabindex",null);var je={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Se(t,e,n){return(t=ct.getPooled(je.change,t,e,n)).type="change",Nt(n),K(t),t}var Te=null,Ae=null;function Pe(t){L(t)}function Ne(t){if(Vt(q(t)))return t}function Le(t,e){if("change"===t)return e}var Ie=!1;function De(){Te&&(Te.detachEvent("onpropertychange",Re),Ae=Te=null)}function Re(t){"value"===t.propertyName&&Ne(Ae)&&Bt(Pe,t=Se(Ae,t,zt(t)))}function Me(t,e,n){"focus"===t?(De(),Ae=n,(Te=e).attachEvent("onpropertychange",Re)):"blur"===t&&De()}function Be(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Ne(Ae)}function qe(t,e){if("click"===t)return Ne(e)}function Fe(t,e){if("input"===t||"change"===t)return Ne(e)}Q&&(Ie=Ut("input")&&(!document.documentMode||9<document.documentMode));var ze={eventTypes:je,_isInputEventSupported:Ie,extractEvents:function(t,e,n,r){var i=e?q(e):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=Le:Ft(i)?Ie?o=Fe:(o=Be,a=Me):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=qe),o&&(o=o(t,e)))return Se(o,n,r);a&&a(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Ee(i,"number",i.value)}},Ue=ct.extend({view:null,detail:null}),He={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function We(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=He[t])&&!!e[t]}function Ve(){return We}var Ke=0,Qe=0,$e=!1,Ge=!1,Ye=Ue.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ve,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Ke;return Ke=t.screenX,$e?"mousemove"===t.type?t.screenX-e:0:($e=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Qe;return Qe=t.screenY,Ge?"mousemove"===t.type?t.screenY-e:0:(Ge=!0,0)}}),Ze=Ye.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Xe={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Je={eventTypes:Xe,extractEvents:function(t,e,n,r){var i="mouseover"===t||"pointerover"===t,o="mouseout"===t||"pointerout"===t;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=e,e=(e=n.relatedTarget||n.toElement)?M(e):null):o=null,o===e)return null;var a=void 0,s=void 0,u=void 0,l=void 0;"mouseout"===t||"mouseover"===t?(a=Ye,s=Xe.mouseLeave,u=Xe.mouseEnter,l="mouse"):"pointerout"!==t&&"pointerover"!==t||(a=Ze,s=Xe.pointerLeave,u=Xe.pointerEnter,l="pointer");var c=null==o?i:q(o);if(i=null==e?i:q(e),(t=a.getPooled(s,o,n,r)).type=l+"leave",t.target=c,t.relatedTarget=i,(n=a.getPooled(u,e,n,r)).type=l+"enter",n.target=i,n.relatedTarget=c,r=e,o&&r)t:{for(i=r,l=0,a=e=o;a;a=z(a))l++;for(a=0,u=i;u;u=z(u))a++;for(;0<l-a;)e=z(e),l--;for(;0<a-l;)i=z(i),a--;for(;l--;){if(e===i||e===i.alternate)break t;e=z(e),i=z(i)}e=null}else e=null;for(i=e,e=[];o&&o!==i&&(null===(l=o.alternate)||l!==i);)e.push(o),o=z(o);for(o=[];r&&r!==i&&(null===(l=r.alternate)||l!==i);)o.push(r),r=z(r);for(r=0;r<e.length;r++)W(e[r],"bubbled",t);for(r=o.length;0<r--;)W(o[r],"captured",n);return[t,n]}},tn=Object.prototype.hasOwnProperty;function en(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function nn(t,e){if(en(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!tn.call(e,n[r])||!en(t[n[r]],e[n[r]]))return!1;return!0}function rn(t){var e=t;if(t.alternate)for(;e.return;)e=e.return;else{if(0!=(2&e.effectTag))return 1;for(;e.return;)if(0!=(2&(e=e.return).effectTag))return 1}return 3===e.tag?2:3}function on(t){2!==rn(t)&&s("188")}function an(t){if(!(t=function(t){var e=t.alternate;if(!e)return 3===(e=rn(t))&&s("188"),1===e?null:t;for(var n=t,r=e;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var a=i.child;a;){if(a===n)return on(i),t;if(a===r)return on(i),e;a=a.sibling}s("188")}if(n.return!==r.return)n=i,r=o;else{a=!1;for(var u=i.child;u;){if(u===n){a=!0,n=i,r=o;break}if(u===r){a=!0,r=i,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,r=i;break}if(u===r){a=!0,r=o,n=i;break}u=u.sibling}a||s("189")}}n.alternate!==r&&s("190")}return 3!==n.tag&&s("188"),n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}var sn=ct.extend({animationName:null,elapsedTime:null,pseudoElement:null}),un=ct.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ln=Ue.extend({relatedTarget:null});function cn(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},pn=Ue.extend({key:function(t){if(t.key){var e=fn[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=cn(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?dn[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ve,charCode:function(t){return"keypress"===t.type?cn(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?cn(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),hn=Ye.extend({dataTransfer:null}),vn=Ue.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ve}),mn=ct.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),yn=Ye.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),gn=[["abort","abort"],[J,"animationEnd"],[tt,"animationIteration"],[et,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[nt,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],bn={},wn={};function _n(t,e){var n=t[0],r="on"+((t=t[1])[0].toUpperCase()+t.slice(1));e={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:e},bn[t]=e,wn[n]=e}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(t){_n(t,!0)})),gn.forEach((function(t){_n(t,!1)}));var On={eventTypes:bn,isInteractiveTopLevelEventType:function(t){return void 0!==(t=wn[t])&&!0===t.isInteractive},extractEvents:function(t,e,n,r){var i=wn[t];if(!i)return null;switch(t){case"keypress":if(0===cn(n))return null;case"keydown":case"keyup":t=pn;break;case"blur":case"focus":t=ln;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Ye;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=vn;break;case J:case tt:case et:t=sn;break;case nt:t=mn;break;case"scroll":t=Ue;break;case"wheel":t=yn;break;case"copy":case"cut":case"paste":t=un;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Ze;break;default:t=ct}return K(e=t.getPooled(i,e,n,r)),e}},kn=On.isInteractiveTopLevelEventType,xn=[];function Cn(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;t.ancestors.push(n),n=M(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var i=zt(t.nativeEvent);r=t.topLevelType;for(var o=t.nativeEvent,a=null,s=0;s<b.length;s++){var u=b[s];u&&(u=u.extractEvents(r,e,o,i))&&(a=j(a,u))}L(a)}}var En=!0;function jn(t,e){if(!e)return null;var n=(kn(t)?Tn:An).bind(null,t);e.addEventListener(t,n,!1)}function Sn(t,e){if(!e)return null;var n=(kn(t)?Tn:An).bind(null,t);e.addEventListener(t,n,!0)}function Tn(t,e){Dt(An,t,e)}function An(t,e){if(En){var n=zt(e);if(null===(n=M(n))||"number"!=typeof n.tag||2===rn(n)||(n=null),xn.length){var r=xn.pop();r.topLevelType=t,r.nativeEvent=e,r.targetInst=n,t=r}else t={topLevelType:t,nativeEvent:e,targetInst:n,ancestors:[]};try{Bt(Cn,t)}finally{t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>xn.length&&xn.push(t)}}}var Pn={},Nn=0,Ln="_reactListenersID"+(""+Math.random()).slice(2);function In(t){return Object.prototype.hasOwnProperty.call(t,Ln)||(t[Ln]=Nn++,Pn[t[Ln]]={}),Pn[t[Ln]]}function Dn(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Rn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Mn(t,e){var n,r=Rn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=Rn(r)}}function Bn(){for(var t=window,e=Dn();e instanceof t.HTMLIFrameElement;){try{t=e.contentDocument.defaultView}catch(t){break}e=Dn(t.document)}return e}function qn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var Fn=Q&&"documentMode"in document&&11>=document.documentMode,zn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Un=null,Hn=null,Wn=null,Vn=!1;function Kn(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Vn||null==Un||Un!==Dn(n)?null:("selectionStart"in(n=Un)&&qn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wn&&nn(Wn,n)?null:(Wn=n,(t=ct.getPooled(zn.select,Hn,t,e)).type="select",t.target=Un,K(t),t))}var Qn={eventTypes:zn,extractEvents:function(t,e,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){t:{o=In(o),i=O.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break t}}o=!0}i=!o}if(i)return null;switch(o=e?q(e):window,t){case"focus":(Ft(o)||"true"===o.contentEditable)&&(Un=o,Hn=e,Wn=null);break;case"blur":Wn=Hn=Un=null;break;case"mousedown":Vn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vn=!1,Kn(n,r);case"selectionchange":if(Fn)break;case"keydown":case"keyup":return Kn(n,r)}return null}};function $n(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function Gn(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+we(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function Yn(t,e){return null!=e.dangerouslySetInnerHTML&&s("91"),i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Zn(t,e){var n=e.value;null==n&&(n=e.defaultValue,null!=(e=e.children)&&(null!=n&&s("92"),Array.isArray(e)&&(1>=e.length||s("93"),e=e[0]),n=e),null==n&&(n="")),t._wrapperState={initialValue:we(n)}}function Xn(t,e){var n=we(e.value),r=we(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Jn(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}P.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k=F,x=B,C=q,P.injectEventPluginsByName({SimpleEventPlugin:On,EnterLeaveEventPlugin:Je,ChangeEventPlugin:ze,SelectEventPlugin:Qn,BeforeInputEventPlugin:jt});var tr="http://www.w3.org/1999/xhtml",er="http://www.w3.org/2000/svg";function nr(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function rr(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?nr(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var ir=void 0,or=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction((function(){return t(e,n)}))}:t}((function(t,e){if(t.namespaceURI!==er||"innerHTML"in t)t.innerHTML=e;else{for((ir=ir||document.createElement("div")).innerHTML="<svg>"+e+"</svg>",e=ir.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function ar(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var sr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ur=["Webkit","ms","Moz","O"];function lr(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||sr.hasOwnProperty(t)&&sr[t]?(""+e).trim():e+"px"}function cr(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=lr(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(sr).forEach((function(t){ur.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),sr[e]=sr[t]}))}));var fr=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dr(t,e){e&&(fr[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&s("137",t,""),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&s("60"),"object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||s("61")),null!=e.style&&"object"!=typeof e.style&&s("62",""))}function pr(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function hr(t,e){var n=In(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=O[e];for(var r=0;r<e.length;r++){var i=e[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":Sn("scroll",t);break;case"focus":case"blur":Sn("focus",t),Sn("blur",t),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Ut(i)&&Sn(i,t);break;case"invalid":case"submit":case"reset":break;default:-1===rt.indexOf(i)&&jn(i,t)}n[i]=!0}}}function vr(){}var mr=null,yr=null;function gr(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function br(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var wr="function"==typeof setTimeout?setTimeout:void 0,_r="function"==typeof clearTimeout?clearTimeout:void 0;function Or(t){for(t=t.nextSibling;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}function kr(t){for(t=t.firstChild;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}new Set;var xr=[],Cr=-1;function Er(t){0>Cr||(t.current=xr[Cr],xr[Cr]=null,Cr--)}function jr(t,e){Cr++,xr[Cr]=t.current,t.current=e}var Sr={},Tr={current:Sr},Ar={current:!1},Pr=Sr;function Nr(t,e){var n=t.type.contextTypes;if(!n)return Sr;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Lr(t){return null!=(t=t.childContextTypes)}function Ir(t){Er(Ar),Er(Tr)}function Dr(t){Er(Ar),Er(Tr)}function Rr(t,e,n){Tr.current!==Sr&&s("168"),jr(Tr,e),jr(Ar,n)}function Mr(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())o in t||s("108",le(e)||"Unknown",o);return i({},n,r)}function Br(t){var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Sr,Pr=Tr.current,jr(Tr,e),jr(Ar,Ar.current),!0}function qr(t,e,n){var r=t.stateNode;r||s("169"),n?(e=Mr(t,e,Pr),r.__reactInternalMemoizedMergedChildContext=e,Er(Ar),Er(Tr),jr(Tr,e)):Er(Ar),jr(Ar,n)}var Fr=null,zr=null;function Ur(t){return function(e){try{return t(e)}catch(t){}}}function Hr(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Wr(t,e,n,r){return new Hr(t,e,n,r)}function Vr(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Kr(t,e){var n=t.alternate;return null===n?((n=Wr(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,n.firstContextDependency=t.firstContextDependency,n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Qr(t,e,n,r,i,o){var a=2;if(r=t,"function"==typeof t)Vr(t)&&(a=1);else if("string"==typeof t)a=5;else t:switch(t){case Zt:return $r(n.children,i,o,e);case ne:return Gr(n,3|i,o,e);case Xt:return Gr(n,2|i,o,e);case Jt:return(t=Wr(12,n,e,4|i)).elementType=Jt,t.type=Jt,t.expirationTime=o,t;case ie:return(t=Wr(13,n,e,i)).elementType=ie,t.type=ie,t.expirationTime=o,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case te:a=10;break t;case ee:a=9;break t;case re:a=11;break t;case oe:a=14;break t;case ae:a=16,r=null;break t}s("130",null==t?t:typeof t,"")}return(e=Wr(a,n,e,i)).elementType=t,e.type=r,e.expirationTime=o,e}function $r(t,e,n,r){return(t=Wr(7,t,r,e)).expirationTime=n,t}function Gr(t,e,n,r){return t=Wr(8,t,r,e),e=0==(1&e)?Xt:ne,t.elementType=e,t.type=e,t.expirationTime=n,t}function Yr(t,e,n){return(t=Wr(6,t,null,e)).expirationTime=n,t}function Zr(t,e,n){return(e=Wr(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Xr(t,e){t.didError=!1;var n=t.earliestPendingTime;0===n?t.earliestPendingTime=t.latestPendingTime=e:n<e?t.earliestPendingTime=e:t.latestPendingTime>e&&(t.latestPendingTime=e),ei(e,t)}function Jr(t,e){t.didError=!1;var n=t.latestPingedTime;0!==n&&n>=e&&(t.latestPingedTime=0),n=t.earliestPendingTime;var r=t.latestPendingTime;n===e?t.earliestPendingTime=r===e?t.latestPendingTime=0:r:r===e&&(t.latestPendingTime=n),n=t.earliestSuspendedTime,r=t.latestSuspendedTime,0===n?t.earliestSuspendedTime=t.latestSuspendedTime=e:n<e?t.earliestSuspendedTime=e:r>e&&(t.latestSuspendedTime=e),ei(e,t)}function ti(t,e){var n=t.earliestPendingTime;return n>e&&(e=n),(t=t.earliestSuspendedTime)>e&&(e=t),e}function ei(t,e){var n=e.earliestSuspendedTime,r=e.latestSuspendedTime,i=e.earliestPendingTime,o=e.latestPingedTime;0===(i=0!==i?i:o)&&(0===t||r<t)&&(i=r),0!==(t=i)&&n>t&&(t=n),e.nextExpirationTimeToWorkOn=i,e.expirationTime=t}var ni=!1;function ri(t){return{baseState:t,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function ii(t){return{baseState:t.baseState,firstUpdate:t.firstUpdate,lastUpdate:t.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function oi(t){return{expirationTime:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function ai(t,e){null===t.lastUpdate?t.firstUpdate=t.lastUpdate=e:(t.lastUpdate.next=e,t.lastUpdate=e)}function si(t,e){var n=t.alternate;if(null===n){var r=t.updateQueue,i=null;null===r&&(r=t.updateQueue=ri(t.memoizedState))}else r=t.updateQueue,i=n.updateQueue,null===r?null===i?(r=t.updateQueue=ri(t.memoizedState),i=n.updateQueue=ri(n.memoizedState)):r=t.updateQueue=ii(i):null===i&&(i=n.updateQueue=ii(r));null===i||r===i?ai(r,e):null===r.lastUpdate||null===i.lastUpdate?(ai(r,e),ai(i,e)):(ai(r,e),i.lastUpdate=e)}function ui(t,e){var n=t.updateQueue;null===(n=null===n?t.updateQueue=ri(t.memoizedState):li(t,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=e:(n.lastCapturedUpdate.next=e,n.lastCapturedUpdate=e)}function li(t,e){var n=t.alternate;return null!==n&&e===n.updateQueue&&(e=t.updateQueue=ii(e)),e}function ci(t,e,n,r,o,a){switch(n.tag){case 1:return"function"==typeof(t=n.payload)?t.call(a,r,o):t;case 3:t.effectTag=-2049&t.effectTag|64;case 0:if(null==(o="function"==typeof(t=n.payload)?t.call(a,r,o):t))break;return i({},r,o);case 2:ni=!0}return r}function fi(t,e,n,r,i){ni=!1;for(var o=(e=li(t,e)).baseState,a=null,s=0,u=e.firstUpdate,l=o;null!==u;){var c=u.expirationTime;c<i?(null===a&&(a=u,o=l),s<c&&(s=c)):(l=ci(t,0,u,l,n,r),null!==u.callback&&(t.effectTag|=32,u.nextEffect=null,null===e.lastEffect?e.firstEffect=e.lastEffect=u:(e.lastEffect.nextEffect=u,e.lastEffect=u))),u=u.next}for(c=null,u=e.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<i?(null===c&&(c=u,null===a&&(o=l)),s<f&&(s=f)):(l=ci(t,0,u,l,n,r),null!==u.callback&&(t.effectTag|=32,u.nextEffect=null,null===e.lastCapturedEffect?e.firstCapturedEffect=e.lastCapturedEffect=u:(e.lastCapturedEffect.nextEffect=u,e.lastCapturedEffect=u))),u=u.next}null===a&&(e.lastUpdate=null),null===c?e.lastCapturedUpdate=null:t.effectTag|=32,null===a&&null===c&&(o=l),e.baseState=o,e.firstUpdate=a,e.firstCapturedUpdate=c,t.expirationTime=s,t.memoizedState=l}function di(t,e,n){null!==e.firstCapturedUpdate&&(null!==e.lastUpdate&&(e.lastUpdate.next=e.firstCapturedUpdate,e.lastUpdate=e.lastCapturedUpdate),e.firstCapturedUpdate=e.lastCapturedUpdate=null),pi(e.firstEffect,n),e.firstEffect=e.lastEffect=null,pi(e.firstCapturedEffect,n),e.firstCapturedEffect=e.lastCapturedEffect=null}function pi(t,e){for(;null!==t;){var n=t.callback;if(null!==n){t.callback=null;var r=e;"function"!=typeof n&&s("191",n),n.call(r)}t=t.nextEffect}}function hi(t,e){return{value:t,source:e,stack:ce(e)}}var vi={current:null},mi=null,yi=null,gi=null;function bi(t,e){var n=t.type._context;jr(vi,n._currentValue),n._currentValue=e}function wi(t){var e=vi.current;Er(vi),t.type._context._currentValue=e}function _i(t){mi=t,gi=yi=null,t.firstContextDependency=null}function Oi(t,e){return gi!==t&&!1!==e&&0!==e&&("number"==typeof e&&1073741823!==e||(gi=t,e=1073741823),e={context:t,observedBits:e,next:null},null===yi?(null===mi&&s("293"),mi.firstContextDependency=yi=e):yi=yi.next=e),t._currentValue}var ki={},xi={current:ki},Ci={current:ki},Ei={current:ki};function ji(t){return t===ki&&s("174"),t}function Si(t,e){jr(Ei,e),jr(Ci,t),jr(xi,ki);var n=e.nodeType;switch(n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:rr(null,"");break;default:e=rr(e=(n=8===n?e.parentNode:e).namespaceURI||null,n=n.tagName)}Er(xi),jr(xi,e)}function Ti(t){Er(xi),Er(Ci),Er(Ei)}function Ai(t){ji(Ei.current);var e=ji(xi.current),n=rr(e,t.type);e!==n&&(jr(Ci,t),jr(xi,n))}function Pi(t){Ci.current===t&&(Er(xi),Er(Ci))}function Ni(t,e){if(t&&t.defaultProps)for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var Li=Kt.ReactCurrentOwner,Ii=(new r.Component).refs;function Di(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:i({},e,n),t.memoizedState=n,null!==(r=t.updateQueue)&&0===t.expirationTime&&(r.baseState=n)}var Ri={isMounted:function(t){return!!(t=t._reactInternalFiber)&&2===rn(t)},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=xa(),i=oi(r=Go(r,t));i.payload=e,null!=n&&(i.callback=n),Wo(),si(t,i),Xo(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=xa(),i=oi(r=Go(r,t));i.tag=1,i.payload=e,null!=n&&(i.callback=n),Wo(),si(t,i),Xo(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=xa(),r=oi(n=Go(n,t));r.tag=2,null!=e&&(r.callback=e),Wo(),si(t,r),Xo(t,n)}};function Mi(t,e,n,r,i,o,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!nn(n,r)||!nn(i,o))}function Bi(t,e,n){var r=!1,i=Sr,o=e.contextType;return"object"==typeof o&&null!==o?o=Li.currentDispatcher.readContext(o):(i=Lr(e)?Pr:Tr.current,o=(r=null!=(r=e.contextTypes))?Nr(t,i):Sr),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=Ri,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function qi(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Ri.enqueueReplaceState(e,e.state,null)}function Fi(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=Ii;var o=e.contextType;"object"==typeof o&&null!==o?i.context=Li.currentDispatcher.readContext(o):(o=Lr(e)?Pr:Tr.current,i.context=Nr(t,o)),null!==(o=t.updateQueue)&&(fi(t,o,n,i,r),i.state=t.memoizedState),"function"==typeof(o=e.getDerivedStateFromProps)&&(Di(t,e,o,n),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&Ri.enqueueReplaceState(i,i.state,null),null!==(o=t.updateQueue)&&(fi(t,o,n,i,r),i.state=t.memoizedState)),"function"==typeof i.componentDidMount&&(t.effectTag|=4)}var zi=Array.isArray;function Ui(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&s("289"),r=n.stateNode),r||s("147",t);var i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:((e=function(t){var e=r.refs;e===Ii&&(e=r.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}"string"!=typeof t&&s("284"),n._owner||s("290",t)}return t}function Hi(t,e){"textarea"!==t.type&&s("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function Wi(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e,n){return(t=Kr(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function a(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,n,r){return null===e||6!==e.tag?((e=Yr(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function l(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=Ui(t,e,n),r.return=t,r):((r=Qr(n.type,n.key,n.props,null,t.mode,r)).ref=Ui(t,e,n),r.return=t,r)}function c(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Zr(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function f(t,e,n,r,o){return null===e||7!==e.tag?((e=$r(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function d(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=Yr(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case Gt:return(n=Qr(e.type,e.key,e.props,null,t.mode,n)).ref=Ui(t,null,e),n.return=t,n;case Yt:return(e=Zr(e,t.mode,n)).return=t,e}if(zi(e)||ue(e))return(e=$r(e,t.mode,n,null)).return=t,e;Hi(t,e)}return null}function p(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Gt:return n.key===i?n.type===Zt?f(t,e,n.props.children,r,i):l(t,e,n,r):null;case Yt:return n.key===i?c(t,e,n,r):null}if(zi(n)||ue(n))return null!==i?null:f(t,e,n,r,null);Hi(t,n)}return null}function h(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return u(e,t=t.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Gt:return t=t.get(null===r.key?n:r.key)||null,r.type===Zt?f(e,t,r.props.children,i,r.key):l(e,t,r,i);case Yt:return c(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(zi(r)||ue(r))return f(e,t=t.get(n)||null,r,i,null);Hi(e,r)}return null}function v(i,a,s,u){for(var l=null,c=null,f=a,v=a=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var y=p(i,f,s[v],u);if(null===y){null===f&&(f=m);break}t&&f&&null===y.alternate&&e(i,f),a=o(y,a,v),null===c?l=y:c.sibling=y,c=y,f=m}if(v===s.length)return n(i,f),l;if(null===f){for(;v<s.length;v++)(f=d(i,s[v],u))&&(a=o(f,a,v),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);v<s.length;v++)(m=h(f,i,v,s[v],u))&&(t&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===c?l=m:c.sibling=m,c=m);return t&&f.forEach((function(t){return e(i,t)})),l}function m(i,a,u,l){var c=ue(u);"function"!=typeof c&&s("150"),null==(u=c.call(u))&&s("151");for(var f=c=null,v=a,m=a=0,y=null,g=u.next();null!==v&&!g.done;m++,g=u.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=p(i,v,g.value,l);if(null===b){v||(v=y);break}t&&v&&null===b.alternate&&e(i,v),a=o(b,a,m),null===f?c=b:f.sibling=b,f=b,v=y}if(g.done)return n(i,v),c;if(null===v){for(;!g.done;m++,g=u.next())null!==(g=d(i,g.value,l))&&(a=o(g,a,m),null===f?c=g:f.sibling=g,f=g);return c}for(v=r(i,v);!g.done;m++,g=u.next())null!==(g=h(v,i,m,g.value,l))&&(t&&null!==g.alternate&&v.delete(null===g.key?m:g.key),a=o(g,a,m),null===f?c=g:f.sibling=g,f=g);return t&&v.forEach((function(t){return e(i,t)})),c}return function(t,r,o,u){var l="object"==typeof o&&null!==o&&o.type===Zt&&null===o.key;l&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case Gt:t:{for(c=o.key,l=r;null!==l;){if(l.key===c){if(7===l.tag?o.type===Zt:l.elementType===o.type){n(t,l.sibling),(r=i(l,o.type===Zt?o.props.children:o.props)).ref=Ui(t,l,o),r.return=t,t=r;break t}n(t,l);break}e(t,l),l=l.sibling}o.type===Zt?((r=$r(o.props.children,t.mode,u,o.key)).return=t,t=r):((u=Qr(o.type,o.key,o.props,null,t.mode,u)).ref=Ui(t,r,o),u.return=t,t=u)}return a(t);case Yt:t:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Zr(o,t.mode,u)).return=t,t=r}return a(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Yr(o,t.mode,u)).return=t,t=r),a(t);if(zi(o))return v(t,r,o,u);if(ue(o))return m(t,r,o,u);if(c&&Hi(t,o),void 0===o&&!l)switch(t.tag){case 1:case 0:s("152",(u=t.type).displayName||u.name||"Component")}return n(t,r)}}var Vi=Wi(!0),Ki=Wi(!1),Qi=null,$i=null,Gi=!1;function Yi(t,e){var n=Wr(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Zi(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);default:return!1}}function Xi(t){if(Gi){var e=$i;if(e){var n=e;if(!Zi(t,e)){if(!(e=Or(n))||!Zi(t,e))return t.effectTag|=2,Gi=!1,void(Qi=t);Yi(Qi,n)}Qi=t,$i=kr(e)}else t.effectTag|=2,Gi=!1,Qi=t}}function Ji(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;Qi=t}function to(t){if(t!==Qi)return!1;if(!Gi)return Ji(t),Gi=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!br(e,t.memoizedProps))for(e=$i;e;)Yi(t,e),e=Or(e);return Ji(t),$i=Qi?Or(t.stateNode):null,!0}function eo(){$i=Qi=null,Gi=!1}var no=Kt.ReactCurrentOwner;function ro(t,e,n,r){e.child=null===t?Ki(e,null,n,r):Vi(e,t.child,n,r)}function io(t,e,n,r,i){n=n.render;var o=e.ref;return _i(e),r=n(r,o),e.effectTag|=1,ro(t,e,r,i),e.child}function oo(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!=typeof a||Vr(a)||void 0!==a.defaultProps||null!==n.compare?((t=Qr(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,ao(t,e,a,r,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:nn)(i,r)&&t.ref===e.ref)?ho(t,e,o):(e.effectTag|=1,(t=Kr(a,r)).ref=e.ref,t.return=e,e.child=t)}function ao(t,e,n,r,i,o){return null!==t&&i<o&&nn(t.memoizedProps,r)&&t.ref===e.ref?ho(t,e,o):uo(t,e,n,r,o)}function so(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function uo(t,e,n,r,i){var o=Lr(n)?Pr:Tr.current;return o=Nr(e,o),_i(e),n=n(r,o),e.effectTag|=1,ro(t,e,n,i),e.child}function lo(t,e,n,r,i){if(Lr(n)){var o=!0;Br(e)}else o=!1;if(_i(e),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),Bi(e,n,r),Fi(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=Li.currentDispatcher.readContext(l):l=Nr(e,l=Lr(n)?Pr:Tr.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&qi(e,a,r,l),ni=!1;var d=e.memoizedState;u=a.state=d;var p=e.updateQueue;null!==p&&(fi(e,p,r,a,i),u=e.memoizedState),s!==r||d!==u||Ar.current||ni?("function"==typeof c&&(Di(e,n,c,r),u=e.memoizedState),(s=ni||Mi(e,n,s,r,d,u,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.effectTag|=4)):("function"==typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(e.effectTag|=4),r=!1)}else a=e.stateNode,s=e.memoizedProps,a.props=e.type===e.elementType?s:Ni(e.type,s),u=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Li.currentDispatcher.readContext(l):l=Nr(e,l=Lr(n)?Pr:Tr.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&qi(e,a,r,l),ni=!1,u=e.memoizedState,d=a.state=u,null!==(p=e.updateQueue)&&(fi(e,p,r,a,i),d=e.memoizedState),s!==r||u!==d||Ar.current||ni?("function"==typeof c&&(Di(e,n,c,r),d=e.memoizedState),(c=ni||Mi(e,n,s,r,u,d,l))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"==typeof a.componentDidUpdate&&(e.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=d),a.props=r,a.state=d,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),r=!1);return co(t,e,n,r,o,i)}function co(t,e,n,r,i,o){so(t,e);var a=0!=(64&e.effectTag);if(!r&&!a)return i&&qr(e,n,!1),ho(t,e,o);r=e.stateNode,no.current=e;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=Vi(e,t.child,null,o),e.child=Vi(e,null,s,o)):ro(t,e,s,o),e.memoizedState=r.state,i&&qr(e,n,!0),e.child}function fo(t){var e=t.stateNode;e.pendingContext?Rr(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Rr(0,e.context,!1),Si(t,e.containerInfo)}function po(t,e,n){var r=e.mode,i=e.pendingProps,o=e.memoizedState;if(0==(64&e.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,e.effectTag&=-65;return null===t?a?(a=i.fallback,i=$r(null,r,0,null),0==(1&e.mode)&&(i.child=null!==e.memoizedState?e.child.child:e.child),r=$r(a,r,n,null),i.sibling=r,(n=i).return=r.return=e):n=r=Ki(e,null,i.children,n):null!==t.memoizedState?(t=(r=t.child).sibling,a?(n=i.fallback,i=Kr(r,r.pendingProps),0==(1&e.mode)&&((a=null!==e.memoizedState?e.child.child:e.child)!==r.child&&(i.child=a)),r=i.sibling=Kr(t,n,t.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=e):n=r=Vi(e,r.child,i.children,n)):(t=t.child,a?(a=i.fallback,(i=$r(null,r,0,null)).child=t,0==(1&e.mode)&&(i.child=null!==e.memoizedState?e.child.child:e.child),(r=i.sibling=$r(a,r,n,null)).effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=e):r=n=Vi(e,t,i.children,n)),e.memoizedState=o,e.child=n,r}function ho(t,e,n){if(null!==t&&(e.firstContextDependency=t.firstContextDependency),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child&&s("153"),null!==e.child){for(n=Kr(t=e.child,t.pendingProps,t.expirationTime),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Kr(t,t.pendingProps,t.expirationTime)).return=e;n.sibling=null}return e.child}function vo(t,e,n){var r=e.expirationTime;if(null!==t&&t.memoizedProps===e.pendingProps&&!Ar.current&&r<n){switch(e.tag){case 3:fo(e),eo();break;case 5:Ai(e);break;case 1:Lr(e.type)&&Br(e);break;case 4:Si(e,e.stateNode.containerInfo);break;case 10:bi(e,e.memoizedProps.value);break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?po(t,e,n):null!==(e=ho(t,e,n))?e.sibling:null}return ho(t,e,n)}switch(e.expirationTime=0,e.tag){case 2:r=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps;var i=Nr(e,Tr.current);if(_i(e),i=r(t,i),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(e.tag=1,Lr(r)){var o=!0;Br(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var a=r.getDerivedStateFromProps;"function"==typeof a&&Di(e,r,a,t),i.updater=Ri,e.stateNode=i,i._reactInternalFiber=e,Fi(e,r,t,n),e=co(null,e,r,!0,o,n)}else e.tag=0,ro(null,e,i,n),e=e.child;return e;case 16:switch(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),o=e.pendingProps,t=function(t){var e=t._result;switch(t._status){case 1:return e;case 2:case 0:throw e;default:throw t._status=0,(e=(e=t._ctor)()).then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)})),t._result=e,e}}(i),e.type=t,i=e.tag=function(t){if("function"==typeof t)return Vr(t)?1:0;if(null!=t){if((t=t.$$typeof)===re)return 11;if(t===oe)return 14}return 2}(t),o=Ni(t,o),a=void 0,i){case 0:a=uo(null,e,t,o,n);break;case 1:a=lo(null,e,t,o,n);break;case 11:a=io(null,e,t,o,n);break;case 14:a=oo(null,e,t,Ni(t.type,o),r,n);break;default:s("283",t)}return a;case 0:return r=e.type,i=e.pendingProps,uo(t,e,r,i=e.elementType===r?i:Ni(r,i),n);case 1:return r=e.type,i=e.pendingProps,lo(t,e,r,i=e.elementType===r?i:Ni(r,i),n);case 3:return fo(e),null===(r=e.updateQueue)&&s("282"),i=null!==(i=e.memoizedState)?i.element:null,fi(e,r,e.pendingProps,null,n),(r=e.memoizedState.element)===i?(eo(),e=ho(t,e,n)):(i=e.stateNode,(i=(null===t||null===t.child)&&i.hydrate)&&($i=kr(e.stateNode.containerInfo),Qi=e,i=Gi=!0),i?(e.effectTag|=2,e.child=Ki(e,null,r,n)):(ro(t,e,r,n),eo()),e=e.child),e;case 5:return Ai(e),null===t&&Xi(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,a=i.children,br(r,i)?a=null:null!==o&&br(r,o)&&(e.effectTag|=16),so(t,e),1!==n&&1&e.mode&&i.hidden?(e.expirationTime=1,e=null):(ro(t,e,a,n),e=e.child),e;case 6:return null===t&&Xi(e),null;case 13:return po(t,e,n);case 4:return Si(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=Vi(e,null,r,n):ro(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,io(t,e,r,i=e.elementType===r?i:Ni(r,i),n);case 7:return ro(t,e,e.pendingProps,n),e.child;case 8:case 12:return ro(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(r=e.type._context,i=e.pendingProps,a=e.memoizedProps,bi(e,o=i.value),null!==a){var u=a.value;if(0===(o=u===o&&(0!==u||1/u==1/o)||u!=u&&o!=o?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(a.children===i.children&&!Ar.current){e=ho(t,e,n);break t}}else for(null!==(a=e.child)&&(a.return=e);null!==a;){if(null!==(u=a.firstContextDependency))do{if(u.context===r&&0!=(u.observedBits&o)){if(1===a.tag){var l=oi(n);l.tag=2,si(a,l)}a.expirationTime<n&&(a.expirationTime=n),null!==(l=a.alternate)&&l.expirationTime<n&&(l.expirationTime=n);for(var c=a.return;null!==c;){if(l=c.alternate,c.childExpirationTime<n)c.childExpirationTime=n,null!==l&&l.childExpirationTime<n&&(l.childExpirationTime=n);else{if(!(null!==l&&l.childExpirationTime<n))break;l.childExpirationTime=n}c=c.return}}l=a.child,u=u.next}while(null!==u);else l=10===a.tag&&a.type===e.type?null:a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===e){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}}ro(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,_i(e),r=r(i=Oi(i,o.unstable_observedBits)),e.effectTag|=1,ro(t,e,r,n),e.child;case 14:return oo(t,e,i=e.type,o=Ni(i.type,e.pendingProps),r,n);case 15:return ao(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ni(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,Lr(r)?(t=!0,Br(e)):t=!1,_i(e),Bi(e,r,i),Fi(e,r,i,n),co(null,e,r,!0,t,n);default:s("156")}}function mo(t){t.effectTag|=4}var yo,go,bo;function wo(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=ce(n)),null!==n&&le(n.type),e=e.value,null!==t&&1===t.tag&&le(t.type);try{console.error(e)}catch(t){setTimeout((function(){throw t}))}}function _o(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){$o(t,e)}else e.current=null}function Oo(t){switch("function"==typeof zr&&zr(t),t.tag){case 0:case 11:case 14:case 15:var e=t.updateQueue;if(null!==e&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n.destroy;if(null!==r){var i=t;try{r()}catch(t){$o(i,t)}}n=n.next}while(n!==e)}break;case 1:if(_o(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){$o(t,e)}break;case 5:_o(t);break;case 4:Co(t)}}function ko(t){return 5===t.tag||3===t.tag||4===t.tag}function xo(t){t:{for(var e=t.return;null!==e;){if(ko(e)){var n=e;break t}e=e.return}s("160"),n=void 0}var r=e=void 0;switch(n.tag){case 5:e=n.stateNode,r=!1;break;case 3:case 4:e=n.stateNode.containerInfo,r=!0;break;default:s("161")}16&n.effectTag&&(ar(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||ko(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}for(var i=t;;){if(5===i.tag||6===i.tag)if(n)if(r){var o=e,a=i.stateNode,u=n;8===o.nodeType?o.parentNode.insertBefore(a,u):o.insertBefore(a,u)}else e.insertBefore(i.stateNode,n);else r?(a=e,u=i.stateNode,8===a.nodeType?(o=a.parentNode).insertBefore(u,a):(o=a).appendChild(u),null!=(a=a._reactRootContainer)||null!==o.onclick||(o.onclick=vr)):e.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function Co(t){for(var e=t,n=!1,r=void 0,i=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&s("160"),n.tag){case 5:r=n.stateNode,i=!1;break t;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag){t:for(var o=e,a=o;;)if(Oo(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===o)break;for(;null===a.sibling;){if(null===a.return||a.return===o)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}i?(o=r,a=e.stateNode,8===o.nodeType?o.parentNode.removeChild(a):o.removeChild(a)):r.removeChild(e.stateNode)}else if(4===e.tag?(r=e.stateNode.containerInfo,i=!0):Oo(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;4===(e=e.return).tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}function Eo(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 1:break;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[R]=r,"input"===t&&"radio"===r.type&&null!=r.name&&ke(n,r),pr(t,i),e=pr(t,r),i=0;i<o.length;i+=2){var a=o[i],u=o[i+1];"style"===a?cr(n,u):"dangerouslySetInnerHTML"===a?or(n,u):"children"===a?ar(n,u):be(n,a,u,e)}switch(t){case"input":xe(n,r);break;case"textarea":Xn(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?Gn(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?Gn(n,!!r.multiple,r.defaultValue,!0):Gn(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:null===e.stateNode&&s("162"),e.stateNode.nodeValue=e.memoizedProps;break;case 3:case 12:break;case 13:if(t=e,null===(n=e.memoizedState)?r=!1:(r=!0,t=e.child,0===n.timedOutAt&&(n.timedOutAt=xa())),null!==t)t:for(e=n=t;;){if(5===e.tag)t=e.stateNode,r?t.style.display="none":(t=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,t.style.display=lr("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(t=e.child.sibling).return=e,e=t;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break t;for(;null===e.sibling;){if(null===e.return||e.return===n)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}break;case 17:break;default:s("163")}}function jo(t,e,n){(n=oi(n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ia(r),wo(t,e)},n}function So(t,e,n){(n=oi(n)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var i=e.value;n.payload=function(){return r(i)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Uo?Uo=new Set([this]):Uo.add(this));var n=e.value,i=e.stack;wo(t,e),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function To(t){switch(t.tag){case 1:Lr(t.type)&&Ir();var e=t.effectTag;return 2048&e?(t.effectTag=-2049&e|64,t):null;case 3:return Ti(),Dr(),0!=(64&(e=t.effectTag))&&s("285"),t.effectTag=-2049&e|64,t;case 5:return Pi(t),null;case 13:return 2048&(e=t.effectTag)?(t.effectTag=-2049&e|64,t):null;case 4:return Ti(),null;case 10:return wi(t),null;default:return null}}yo=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},go=function(t,e,n,r,o){var a=t.memoizedProps;if(a!==r){var s=e.stateNode;switch(ji(xi.current),t=null,n){case"input":a=_e(s,a),r=_e(s,r),t=[];break;case"option":a=$n(s,a),r=$n(s,r),t=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":a=Yn(s,a),r=Yn(s,r),t=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=vr)}dr(n,r),s=n=void 0;var u=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var l=a[n];for(s in l)l.hasOwnProperty(s)&&(u||(u={}),u[s]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(_.hasOwnProperty(n)?t||(t=[]):(t=t||[]).push(n,null));for(n in r){var c=r[n];if(l=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&c!==l&&(null!=c||null!=l))if("style"===n)if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(u||(u={}),u[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(u||(u={}),u[s]=c[s])}else u||(t||(t=[]),t.push(n,u)),u=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(t=t||[]).push(n,""+c)):"children"===n?l===c||"string"!=typeof c&&"number"!=typeof c||(t=t||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(_.hasOwnProperty(n)?(null!=c&&hr(o,n),t||l===c||(t=[])):(t=t||[]).push(n,c))}u&&(t=t||[]).push("style",u),o=t,(e.updateQueue=o)&&mo(e)}},bo=function(t,e,n,r){n!==r&&mo(e)};var Ao={readContext:Oi},Po=Kt.ReactCurrentOwner,No=1073741822,Lo=0,Io=!1,Do=null,Ro=null,Mo=0,Bo=-1,qo=!1,Fo=null,zo=!1,Uo=null;function Ho(){if(null!==Do)for(var t=Do.return;null!==t;){var e=t;switch(e.tag){case 1:var n=e.type.childContextTypes;null!=n&&Ir();break;case 3:Ti(),Dr();break;case 5:Pi(e);break;case 4:Ti();break;case 10:wi(e)}t=t.return}Ro=null,Mo=0,Bo=-1,qo=!1,Do=null}function Wo(){}function Vo(t){for(;;){var e=t.alternate,n=t.return,r=t.sibling;if(0==(1024&t.effectTag)){Do=t;t:{var o=e,a=Mo,u=(e=t).pendingProps;switch(e.tag){case 2:case 16:break;case 15:case 0:break;case 1:Lr(e.type)&&Ir();break;case 3:Ti(),Dr(),(u=e.stateNode).pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),null!==o&&null!==o.child||(to(e),e.effectTag&=-3);break;case 5:Pi(e);var l=ji(Ei.current);if(a=e.type,null!==o&&null!=e.stateNode)go(o,e,a,u,l),o.ref!==e.ref&&(e.effectTag|=128);else if(u){var c=ji(xi.current);if(to(e)){o=(u=e).stateNode;var f=u.type,d=u.memoizedProps,p=l;switch(o[D]=u,o[R]=d,a=void 0,l=f){case"iframe":case"object":jn("load",o);break;case"video":case"audio":for(f=0;f<rt.length;f++)jn(rt[f],o);break;case"source":jn("error",o);break;case"img":case"image":case"link":jn("error",o),jn("load",o);break;case"form":jn("reset",o),jn("submit",o);break;case"details":jn("toggle",o);break;case"input":Oe(o,d),jn("invalid",o),hr(p,"onChange");break;case"select":o._wrapperState={wasMultiple:!!d.multiple},jn("invalid",o),hr(p,"onChange");break;case"textarea":Zn(o,d),jn("invalid",o),hr(p,"onChange")}for(a in dr(l,d),f=null,d)d.hasOwnProperty(a)&&(c=d[a],"children"===a?"string"==typeof c?o.textContent!==c&&(f=["children",c]):"number"==typeof c&&o.textContent!==""+c&&(f=["children",""+c]):_.hasOwnProperty(a)&&null!=c&&hr(p,a));switch(l){case"input":Wt(o),Ce(o,d,!0);break;case"textarea":Wt(o),Jn(o);break;case"select":case"option":break;default:"function"==typeof d.onClick&&(o.onclick=vr)}a=f,u.updateQueue=a,(u=null!==a)&&mo(e)}else{d=e,o=a,p=u,f=9===l.nodeType?l:l.ownerDocument,c===tr&&(c=nr(o)),c===tr?"script"===o?((o=f.createElement("div")).innerHTML="<script><\/script>",f=o.removeChild(o.firstChild)):"string"==typeof p.is?f=f.createElement(o,{is:p.is}):(f=f.createElement(o),"select"===o&&p.multiple&&(f.multiple=!0)):f=f.createElementNS(c,o),(o=f)[D]=d,o[R]=u,yo(o,e),p=o;var h=l,v=pr(f=a,d=u);switch(f){case"iframe":case"object":jn("load",p),l=d;break;case"video":case"audio":for(l=0;l<rt.length;l++)jn(rt[l],p);l=d;break;case"source":jn("error",p),l=d;break;case"img":case"image":case"link":jn("error",p),jn("load",p),l=d;break;case"form":jn("reset",p),jn("submit",p),l=d;break;case"details":jn("toggle",p),l=d;break;case"input":Oe(p,d),l=_e(p,d),jn("invalid",p),hr(h,"onChange");break;case"option":l=$n(p,d);break;case"select":p._wrapperState={wasMultiple:!!d.multiple},l=i({},d,{value:void 0}),jn("invalid",p),hr(h,"onChange");break;case"textarea":Zn(p,d),l=Yn(p,d),jn("invalid",p),hr(h,"onChange");break;default:l=d}dr(f,l),c=void 0;var m=f,y=p,g=l;for(c in g)if(g.hasOwnProperty(c)){var b=g[c];"style"===c?cr(y,b):"dangerouslySetInnerHTML"===c?null!=(b=b?b.__html:void 0)&&or(y,b):"children"===c?"string"==typeof b?("textarea"!==m||""!==b)&&ar(y,b):"number"==typeof b&&ar(y,""+b):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(_.hasOwnProperty(c)?null!=b&&hr(h,c):null!=b&&be(y,c,b,v))}switch(f){case"input":Wt(p),Ce(p,d,!1);break;case"textarea":Wt(p),Jn(p);break;case"option":null!=d.value&&p.setAttribute("value",""+we(d.value));break;case"select":(l=p).multiple=!!d.multiple,null!=(p=d.value)?Gn(l,!!d.multiple,p,!1):null!=d.defaultValue&&Gn(l,!!d.multiple,d.defaultValue,!0);break;default:"function"==typeof l.onClick&&(p.onclick=vr)}(u=gr(a,u))&&mo(e),e.stateNode=o}null!==e.ref&&(e.effectTag|=128)}else null===e.stateNode&&s("166");break;case 6:o&&null!=e.stateNode?bo(0,e,o.memoizedProps,u):("string"!=typeof u&&(null===e.stateNode&&s("166")),o=ji(Ei.current),ji(xi.current),to(e)?(a=(u=e).stateNode,o=u.memoizedProps,a[D]=u,(u=a.nodeValue!==o)&&mo(e)):(a=e,(u=(9===o.nodeType?o:o.ownerDocument).createTextNode(u))[D]=e,a.stateNode=u));break;case 11:break;case 13:if(u=e.memoizedState,0!=(64&e.effectTag)){e.expirationTime=a,Do=e;break t}u=null!==u,a=null!==o&&null!==o.memoizedState,null!==o&&!u&&a&&(null!==(o=o.child.sibling)&&(null!==(l=e.firstEffect)?(e.firstEffect=o,o.nextEffect=l):(e.firstEffect=e.lastEffect=o,o.nextEffect=null),o.effectTag=8)),(u!==a||0==(1&e.effectTag)&&u)&&(e.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Ti();break;case 10:wi(e);break;case 9:case 14:break;case 17:Lr(e.type)&&Ir();break;default:s("156")}Do=null}if(e=t,1===Mo||1!==e.childExpirationTime){for(u=0,a=e.child;null!==a;)(o=a.expirationTime)>u&&(u=o),(l=a.childExpirationTime)>u&&(u=l),a=a.sibling;e.childExpirationTime=u}if(null!==Do)return Do;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1<t.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=t:n.firstEffect=t,n.lastEffect=t))}else{if(null!==(t=To(t)))return t.effectTag&=1023,t;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;t=n}return null}function Ko(t){var e=vo(t.alternate,t,Mo);return t.memoizedProps=t.pendingProps,null===e&&(e=Vo(t)),Po.current=null,e}function Qo(t,e){Io&&s("243"),Io=!0,Po.currentDispatcher=Ao;var n=t.nextExpirationTimeToWorkOn;n===Mo&&t===Ro&&null!==Do||(Ho(),Mo=n,Do=Kr((Ro=t).current,null),t.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(e)for(;null!==Do&&!Sa();)Do=Ko(Do);else for(;null!==Do;)Do=Ko(Do)}catch(e){if(gi=yi=mi=null,null===Do)r=!0,Ia(e);else{null===Do&&s("271");var i=Do,o=i.return;if(null!==o){t:{var a=t,u=o,l=i,c=e;if(o=Mo,l.effectTag|=1024,l.firstEffect=l.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var f=c;c=u;var d=-1,p=-1;do{if(13===c.tag){var h=c.alternate;if(null!==h&&null!==(h=h.memoizedState)){p=10*(1073741822-h.timedOutAt);break}"number"==typeof(h=c.pendingProps.maxDuration)&&(0>=h?d=0:(-1===d||h<d)&&(d=h))}c=c.return}while(null!==c);c=u;do{if((h=13===c.tag)&&(h=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),h){if(u=Yo.bind(null,a,c,l,0==(1&c.mode)?1073741823:o),f.then(u,u),0==(1&c.mode)){c.effectTag|=64,l.effectTag&=-1957,1===l.tag&&null===l.alternate&&(l.tag=17),l.expirationTime=o;break t}-1===d?a=1073741823:(-1===p&&(p=10*(1073741822-ti(a,o))-5e3),a=p+d),0<=a&&Bo<a&&(Bo=a),c.effectTag|=2048,c.expirationTime=o;break t}c=c.return}while(null!==c);c=Error((le(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ce(l))}qo=!0,c=hi(c,l),a=u;do{switch(a.tag){case 3:l=c,a.effectTag|=2048,a.expirationTime=o,ui(a,o=jo(a,l,o));break t;case 1:if(l=c,u=a.type,f=a.stateNode,0==(64&a.effectTag)&&("function"==typeof u.getDerivedStateFromError||null!==f&&"function"==typeof f.componentDidCatch&&(null===Uo||!Uo.has(f)))){a.effectTag|=2048,a.expirationTime=o,ui(a,o=So(a,l,o));break t}}a=a.return}while(null!==a)}Do=Vo(i);continue}r=!0,Ia(e)}}break}if(Io=!1,gi=yi=mi=Po.currentDispatcher=null,r)Ro=null,t.finishedWork=null;else if(null!==Do)t.finishedWork=null;else{if(null===(r=t.current.alternate)&&s("281"),Ro=null,qo){if(i=t.latestPendingTime,o=t.latestSuspendedTime,a=t.latestPingedTime,0!==i&&i<n||0!==o&&o<n||0!==a&&a<n)return Jr(t,n),void Oa(t,r,n,t.expirationTime,-1);if(!t.didError&&e)return t.didError=!0,n=t.nextExpirationTimeToWorkOn=n,e=t.expirationTime=1073741823,void Oa(t,r,n,e,-1)}e&&-1!==Bo?(Jr(t,n),(e=10*(1073741822-ti(t,n)))<Bo&&(Bo=e),e=10*(1073741822-xa()),e=Bo-e,Oa(t,r,n,t.expirationTime,0>e?0:e)):(t.pendingCommitExpirationTime=n,t.finishedWork=r)}}function $o(t,e){for(var n=t.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Uo||!Uo.has(r)))return si(n,t=So(n,t=hi(e,t),1073741823)),void Xo(n,1073741823);break;case 3:return si(n,t=jo(n,t=hi(e,t),1073741823)),void Xo(n,1073741823)}n=n.return}3===t.tag&&(si(t,n=jo(t,n=hi(e,t),1073741823)),Xo(t,1073741823))}function Go(t,e){return 0!==Lo?t=Lo:Io?t=zo?1073741823:Mo:1&e.mode?(t=da?1073741822-10*(1+((1073741822-t+15)/10|0)):1073741822-25*(1+((1073741822-t+500)/25|0)),null!==Ro&&t===Mo&&--t):t=1073741823,da&&(0===sa||t<sa)&&(sa=t),t}function Yo(t,e,n,r){var i=t.earliestSuspendedTime,o=t.latestSuspendedTime;if(0!==i&&r<=i&&r>=o){o=i=r,t.didError=!1;var a=t.latestPingedTime;(0===a||a>o)&&(t.latestPingedTime=o),ei(o,t)}else Xr(t,i=Go(i=xa(),e));0!=(1&e.mode)&&t===Ro&&Mo===r&&(Ro=null),Zo(e,i),0==(1&e.mode)&&(Zo(n,i),1===n.tag&&null!==n.stateNode&&((e=oi(i)).tag=2,si(n,e))),0!==(n=t.expirationTime)&&Ca(t,n)}function Zo(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,i=null;if(null===r&&3===t.tag)i=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return i}function Xo(t,e){null!==(t=Zo(t,e))&&(!Io&&0!==Mo&&e>Mo&&Ho(),Xr(t,e),Io&&!zo&&Ro===t||Ca(t,t.expirationTime),ga>ya&&(ga=0,s("185")))}function Jo(t,e,n,r,i){var o=Lo;Lo=1073741823;try{return t(e,n,r,i)}finally{Lo=o}}var ta=null,ea=null,na=0,ra=void 0,ia=!1,oa=null,aa=0,sa=0,ua=!1,la=null,ca=!1,fa=!1,da=!1,pa=null,ha=o.unstable_now(),va=1073741822-(ha/10|0),ma=va,ya=50,ga=0,ba=null;function wa(){va=1073741822-((o.unstable_now()-ha)/10|0)}function _a(t,e){if(0!==na){if(e<na)return;null!==ra&&o.unstable_cancelCallback(ra)}na=e,t=o.unstable_now()-ha,ra=o.unstable_scheduleCallback(Ta,{timeout:10*(1073741822-e)-t})}function Oa(t,e,n,r,i){t.expirationTime=r,0!==i||Sa()?0<i&&(t.timeoutHandle=wr(ka.bind(null,t,e,n),i)):(t.pendingCommitExpirationTime=n,t.finishedWork=e)}function ka(t,e,n){t.pendingCommitExpirationTime=n,t.finishedWork=e,wa(),ma=va,Pa(t,n)}function xa(){return ia||(Ea(),0!==aa&&1!==aa||(wa(),ma=va)),ma}function Ca(t,e){null===t.nextScheduledRoot?(t.expirationTime=e,null===ea?(ta=ea=t,t.nextScheduledRoot=t):(ea=ea.nextScheduledRoot=t).nextScheduledRoot=ta):e>t.expirationTime&&(t.expirationTime=e),ia||(ca?fa&&(oa=t,aa=1073741823,Na(t,1073741823,!1)):1073741823===e?Aa(1073741823,!1):_a(t,e))}function Ea(){var t=0,e=null;if(null!==ea)for(var n=ea,r=ta;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===ea)&&s("244"),r===r.nextScheduledRoot){ta=ea=r.nextScheduledRoot=null;break}if(r===ta)ta=i=r.nextScheduledRoot,ea.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===ea){(ea=n).nextScheduledRoot=ta,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>t&&(t=i,e=r),r===ea)break;if(1073741823===t)break;n=r,r=r.nextScheduledRoot}}oa=e,aa=t}var ja=!1;function Sa(){return!!ja||!!o.unstable_shouldYield()&&(ja=!0)}function Ta(){try{if(!Sa()&&null!==ta){wa();var t=ta;do{var e=t.expirationTime;0!==e&&va<=e&&(t.nextExpirationTimeToWorkOn=va),t=t.nextScheduledRoot}while(t!==ta)}Aa(0,!0)}finally{ja=!1}}function Aa(t,e){if(Ea(),e)for(wa(),ma=va;null!==oa&&0!==aa&&t<=aa&&!(ja&&va>aa);)Na(oa,aa,va>aa),Ea(),wa(),ma=va;else for(;null!==oa&&0!==aa&&t<=aa;)Na(oa,aa,!1),Ea();if(e&&(na=0,ra=null),0!==aa&&_a(oa,aa),ga=0,ba=null,null!==pa)for(t=pa,pa=null,e=0;e<t.length;e++){var n=t[e];try{n._onComplete()}catch(t){ua||(ua=!0,la=t)}}if(ua)throw t=la,la=null,ua=!1,t}function Pa(t,e){ia&&s("253"),oa=t,aa=e,Na(t,e,!1),Aa(1073741823,!1)}function Na(t,e,n){if(ia&&s("245"),ia=!0,n){var r=t.finishedWork;null!==r?La(t,r,e):(t.finishedWork=null,-1!==(r=t.timeoutHandle)&&(t.timeoutHandle=-1,_r(r)),Qo(t,n),null!==(r=t.finishedWork)&&(Sa()?t.finishedWork=r:La(t,r,e)))}else null!==(r=t.finishedWork)?La(t,r,e):(t.finishedWork=null,-1!==(r=t.timeoutHandle)&&(t.timeoutHandle=-1,_r(r)),Qo(t,n),null!==(r=t.finishedWork)&&La(t,r,e));ia=!1}function La(t,e,n){var r=t.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===pa?pa=[r]:pa.push(r),r._defer))return t.finishedWork=e,void(t.expirationTime=0);t.finishedWork=null,t===ba?ga++:(ba=t,ga=0),zo=Io=!0,t.current===e&&s("177"),0===(n=t.pendingCommitExpirationTime)&&s("261"),t.pendingCommitExpirationTime=0,r=e.expirationTime;var i=e.childExpirationTime;if(r=i>r?i:r,t.didError=!1,0===r?(t.earliestPendingTime=0,t.latestPendingTime=0,t.earliestSuspendedTime=0,t.latestSuspendedTime=0,t.latestPingedTime=0):(0!==(i=t.latestPendingTime)&&(i>r?t.earliestPendingTime=t.latestPendingTime=0:t.earliestPendingTime>r&&(t.earliestPendingTime=t.latestPendingTime)),0===(i=t.earliestSuspendedTime)?Xr(t,r):r<t.latestSuspendedTime?(t.earliestSuspendedTime=0,t.latestSuspendedTime=0,t.latestPingedTime=0,Xr(t,r)):r>i&&Xr(t,r)),ei(0,t),Po.current=null,1<e.effectTag?null!==e.lastEffect?(e.lastEffect.nextEffect=e,r=e.firstEffect):r=e:r=e.firstEffect,mr=En,qn(i=Bn())){if("selectionStart"in i)var o={start:i.selectionStart,end:i.selectionEnd};else t:{var a=(o=(o=i.ownerDocument)&&o.defaultView||window).getSelection&&o.getSelection();if(a&&0!==a.rangeCount){o=a.anchorNode;var u=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{o.nodeType,l.nodeType}catch(t){o=null;break t}var c=0,f=-1,d=-1,p=0,h=0,v=i,m=null;e:for(;;){for(var y;v!==o||0!==u&&3!==v.nodeType||(f=c+u),v!==l||0!==a&&3!==v.nodeType||(d=c+a),3===v.nodeType&&(c+=v.nodeValue.length),null!==(y=v.firstChild);)m=v,v=y;for(;;){if(v===i)break e;if(m===o&&++p===u&&(f=c),m===l&&++h===a&&(d=c),null!==(y=v.nextSibling))break;m=(v=m).parentNode}v=y}o=-1===f||-1===d?null:{start:f,end:d}}else o=null}o=o||{start:0,end:0}}else o=null;for(yr={focusedElem:i,selectionRange:o},En=!1,Fo=r;null!==Fo;){i=!1,o=void 0;try{for(;null!==Fo;){if(256&Fo.effectTag)t:{var g=Fo.alternate;switch((u=Fo).tag){case 0:case 11:case 15:break t;case 1:if(256&u.effectTag&&null!==g){var b=g.memoizedProps,w=g.memoizedState,_=u.stateNode,O=_.getSnapshotBeforeUpdate(u.elementType===u.type?b:Ni(u.type,b),w);_.__reactInternalSnapshotBeforeUpdate=O}break t;case 3:case 5:case 6:case 4:case 17:break t;default:s("163")}}Fo=Fo.nextEffect}}catch(t){i=!0,o=t}i&&(null===Fo&&s("178"),$o(Fo,o),null!==Fo&&(Fo=Fo.nextEffect))}for(Fo=r;null!==Fo;){g=!1,b=void 0;try{for(;null!==Fo;){var k=Fo.effectTag;if(16&k&&ar(Fo.stateNode,""),128&k){var x=Fo.alternate;if(null!==x){var C=x.ref;null!==C&&("function"==typeof C?C(null):C.current=null)}}switch(14&k){case 2:xo(Fo),Fo.effectTag&=-3;break;case 6:xo(Fo),Fo.effectTag&=-3,Eo(Fo.alternate,Fo);break;case 4:Eo(Fo.alternate,Fo);break;case 8:Co(w=Fo),w.return=null,w.child=null,w.alternate&&(w.alternate.child=null,w.alternate.return=null)}Fo=Fo.nextEffect}}catch(t){g=!0,b=t}g&&(null===Fo&&s("178"),$o(Fo,b),null!==Fo&&(Fo=Fo.nextEffect))}if(C=yr,x=Bn(),k=C.focusedElem,b=C.selectionRange,x!==k&&k&&k.ownerDocument&&function t(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}(k.ownerDocument.documentElement,k)){null!==b&&qn(k)&&(x=b.start,void 0===(C=b.end)&&(C=x),"selectionStart"in k?(k.selectionStart=x,k.selectionEnd=Math.min(C,k.value.length)):(C=(x=k.ownerDocument||document)&&x.defaultView||window).getSelection&&(C=C.getSelection(),w=k.textContent.length,g=Math.min(b.start,w),b=void 0===b.end?g:Math.min(b.end,w),!C.extend&&g>b&&(w=b,b=g,g=w),w=Mn(k,g),_=Mn(k,b),w&&_&&(1!==C.rangeCount||C.anchorNode!==w.node||C.anchorOffset!==w.offset||C.focusNode!==_.node||C.focusOffset!==_.offset)&&((x=x.createRange()).setStart(w.node,w.offset),C.removeAllRanges(),g>b?(C.addRange(x),C.extend(_.node,_.offset)):(x.setEnd(_.node,_.offset),C.addRange(x))))),x=[];for(C=k;C=C.parentNode;)1===C.nodeType&&x.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof k.focus&&k.focus(),k=0;k<x.length;k++)(C=x[k]).element.scrollLeft=C.left,C.element.scrollTop=C.top}for(yr=null,En=!!mr,mr=null,t.current=e,Fo=r;null!==Fo;){r=!1,k=void 0;try{for(x=n;null!==Fo;){var E=Fo.effectTag;if(36&E){var j=Fo.alternate;switch(g=x,(C=Fo).tag){case 0:case 11:case 15:break;case 1:var S=C.stateNode;if(4&C.effectTag)if(null===j)S.componentDidMount();else{var T=C.elementType===C.type?j.memoizedProps:Ni(C.type,j.memoizedProps);S.componentDidUpdate(T,j.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var A=C.updateQueue;null!==A&&di(0,A,S);break;case 3:var P=C.updateQueue;if(null!==P){if(b=null,null!==C.child)switch(C.child.tag){case 5:b=C.child.stateNode;break;case 1:b=C.child.stateNode}di(0,P,b)}break;case 5:var N=C.stateNode;null===j&&4&C.effectTag&&gr(C.type,C.memoizedProps)&&N.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:s("163")}}if(128&E){var L=Fo.ref;if(null!==L){var I=Fo.stateNode;switch(Fo.tag){case 5:var D=I;break;default:D=I}"function"==typeof L?L(D):L.current=D}}Fo=Fo.nextEffect}}catch(t){r=!0,k=t}r&&(null===Fo&&s("178"),$o(Fo,k),null!==Fo&&(Fo=Fo.nextEffect))}Io=zo=!1,"function"==typeof Fr&&Fr(e.stateNode),E=e.expirationTime,0===(e=(e=e.childExpirationTime)>E?e:E)&&(Uo=null),t.expirationTime=e,t.finishedWork=null}function Ia(t){null===oa&&s("246"),oa.expirationTime=0,ua||(ua=!0,la=t)}function Da(t,e){var n=ca;ca=!0;try{return t(e)}finally{(ca=n)||ia||Aa(1073741823,!1)}}function Ra(t,e){if(ca&&!fa){fa=!0;try{return t(e)}finally{fa=!1}}return t(e)}function Ma(t,e,n){if(da)return t(e,n);ca||ia||0===sa||(Aa(sa,!1),sa=0);var r=da,i=ca;ca=da=!0;try{return t(e,n)}finally{da=r,(ca=i)||ia||Aa(1073741823,!1)}}function Ba(t,e,n,r,i){var o=e.current;t:if(n){e:{2===rn(n=n._reactInternalFiber)&&1===n.tag||s("170");var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Lr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(null!==a);s("171"),a=void 0}if(1===n.tag){var u=n.type;if(Lr(u)){n=Mr(n,u,a);break t}}n=a}else n=Sr;return null===e.context?e.context=n:e.pendingContext=n,e=i,(i=oi(r)).payload={element:t},null!==(e=void 0===e?null:e)&&(i.callback=e),si(o,i),Xo(o,r),r}function qa(t,e,n,r){var i=e.current;return Ba(t,e,n,i=Go(xa(),i),r)}function Fa(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function za(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Yt,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function Ua(t){var e=1073741822-25*(1+((1073741822-xa()+500)/25|0));e>=No&&(e=No-1),this._expirationTime=No=e,this._root=t,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Ha(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Wa(t,e,n){t={current:e=Wr(3,null,null,e?3:0),containerInfo:t,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=e.stateNode=t}function Va(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Ka(t,e,n,r,i){Va(n)||s("200");var o=n._reactRootContainer;if(o){if("function"==typeof i){var a=i;i=function(){var t=Fa(o._internalRoot);a.call(t)}}null!=t?o.legacy_renderSubtreeIntoContainer(t,e,i):o.render(e,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Wa(t,!1,e)}(n,r),"function"==typeof i){var u=i;i=function(){var t=Fa(o._internalRoot);u.call(t)}}Ra((function(){null!=t?o.legacy_renderSubtreeIntoContainer(t,e,i):o.render(e,i)}))}return Fa(o._internalRoot)}function Qa(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Va(e)||s("200"),za(t,e,null,n)}St=function(t,e,n){switch(e){case"input":if(xe(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=F(r);i||s("90"),Vt(r),xe(r,i)}}}break;case"textarea":Xn(t,n);break;case"select":null!=(e=n.value)&&Gn(t,!!n.multiple,e,!1)}},Ua.prototype.render=function(t){this._defer||s("250"),this._hasChildren=!0,this._children=t;var e=this._root._internalRoot,n=this._expirationTime,r=new Ha;return Ba(t,e,null,n,r._onCommit),r},Ua.prototype.then=function(t){if(this._didComplete)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},Ua.prototype.commit=function(){var t=this._root._internalRoot,e=t.firstBatch;if(this._defer&&null!==e||s("251"),this._hasChildren){var n=this._expirationTime;if(e!==this){this._hasChildren&&(n=this._expirationTime=e._expirationTime,this.render(this._children));for(var r=null,i=e;i!==this;)r=i,i=i._next;null===r&&s("251"),r._next=i._next,this._next=e,t.firstBatch=this}this._defer=!1,Pa(t,n),e=this._next,this._next=null,null!==(e=t.firstBatch=e)&&e._hasChildren&&e.render(e._children)}else this._next=null,this._defer=!1},Ua.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++)(0,t[e])()}},Ha.prototype.then=function(t){if(this._didCommit)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},Ha.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++){var n=t[e];"function"!=typeof n&&s("191",n),n()}}},Wa.prototype.render=function(t,e){var n=this._internalRoot,r=new Ha;return null!==(e=void 0===e?null:e)&&r.then(e),qa(t,n,null,r._onCommit),r},Wa.prototype.unmount=function(t){var e=this._internalRoot,n=new Ha;return null!==(t=void 0===t?null:t)&&n.then(t),qa(null,e,null,n._onCommit),n},Wa.prototype.legacy_renderSubtreeIntoContainer=function(t,e,n){var r=this._internalRoot,i=new Ha;return null!==(n=void 0===n?null:n)&&i.then(n),qa(e,r,t,i._onCommit),i},Wa.prototype.createBatch=function(){var t=new Ua(this),e=t._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=t,t._next=null;else{for(n=null;null!==r&&r._expirationTime>=e;)n=r,r=r._next;t._next=r,null!==n&&(n._next=t)}return t},It=Da,Dt=Ma,Rt=function(){ia||0===sa||(Aa(sa,!1),sa=0)};var $a,Ga,Ya={createPortal:Qa,findDOMNode:function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;return void 0===e&&("function"==typeof t.render?s("188"):s("268",Object.keys(t))),t=null===(t=an(e))?null:t.stateNode},hydrate:function(t,e,n){return Ka(null,t,e,!0,n)},render:function(t,e,n){return Ka(null,t,e,!1,n)},unstable_renderSubtreeIntoContainer:function(t,e,n,r){return(null==t||void 0===t._reactInternalFiber)&&s("38"),Ka(t,e,n,!1,r)},unmountComponentAtNode:function(t){return Va(t)||s("40"),!!t._reactRootContainer&&(Ra((function(){Ka(null,null,t,!1,(function(){t._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return Qa.apply(void 0,arguments)},unstable_batchedUpdates:Da,unstable_interactiveUpdates:Ma,flushSync:function(t,e){ia&&s("187");var n=ca;ca=!0;try{return Jo(t,e)}finally{ca=n,Aa(1073741823,!1)}},unstable_flushControlled:function(t){var e=ca;ca=!0;try{Jo(t)}finally{(ca=e)||ia||Aa(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[B,q,F,P.injectEventPluginsByName,w,K,function(t){S(t,V)},Nt,Lt,An,L]},unstable_createRoot:function(t,e){return Va(t)||s("299","unstable_createRoot"),new Wa(t,!0,null!=e&&!0===e.hydrate)}};Ga=($a={findFiberByHostInstance:M,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);Fr=Ur((function(t){return e.onCommitFiberRoot(n,t)})),zr=Ur((function(t){return e.onCommitFiberUnmount(n,t)}))}catch(t){}}(i({},$a,{findHostInstanceByFiber:function(t){return null===(t=an(t))?null:t.stateNode},findFiberByHostInstance:function(t){return Ga?Ga(t):null}}));var Za={default:Ya},Xa=Za&&Ya||Za;t.exports=Xa.default||Xa},227:function(t,e,n){"use strict";t.exports=n(228)},228:function(t,e,n){"use strict";(function(t){

/** @license React v0.11.3

* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

Object.defineProperty(e,“__esModule”,{value:!0});var n=null,r=!1,i=3,o=-1,a=-1,s=!1,u=!1;function l(){if(!s){var t=n.expirationTime;u?k():u=!0,O(d,t)}}function c(){var t=n,e=n.next;if(n===e)n=null;else{var r=n.previous;n=r.next=e,e.previous=r}t.next=t.previous=null,r=t.callback,e=t.expirationTime,t=t.priorityLevel;var o=i,s=a;i=t,a=e;try{var u=r()}finally{i=o,a=s}if(“function”==typeof u)if(u={callback:u,priorityLevel:t,expirationTime:e,next:null,previous:null},null===n)n=u.next=u.previous=u;else{r=null,t=n;do{if(t.expirationTime>=e){r=t;break}t=t.next}while(t!==n);null===r?r=n:r===n&&(n=u,l()),(e=r.previous).next=r.previous=u,u.next=r,u.previous=e}}function f(){if(-1===o&&null!==n&&1===n.priorityLevel){s=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?l():u=!1}}}function d(t){s=!0;var i=r;r=t;try{if(t)for(;null!==n;){var o=e.unstable_now();if(!(n.expirationTime<=o))break;do{c()}while(null!==n&&n.expirationTime<=o)}else if(null!==n)do{c()}while(null!==n&&!x())}finally{s=!1,r=i,null!==n?l():u=!1,f()}}var p,h,v=Date,m=“function”==typeof setTimeout?setTimeout:void 0,y=“function”==typeof clearTimeout?clearTimeout:void 0,g=“function”==typeof requestAnimationFrame?requestAnimationFrame:void 0,b=“function”==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(t){p=g((function(e){y(h),t(e)})),h=m((function(){b(p),t(e.unstable_now())}),100)}if(“object”==typeof performance&&“function”==typeof performance.now){var _=performance;e.unstable_now=function(){return _.now()}}else e.unstable_now=function(){return v.now()};var O,k,x,C=null;if(“undefined”!=typeof window?C=window:void 0!==t&&(C=t),C&&C._schedMock){var E=C._schedMock;O=E,k=E,x=E,e.unstable_now=E}else if(“undefined”==typeof window||“function”!=typeof MessageChannel){var j=null,S=function(t){if(null!==j)try{j(t)}finally{j=null}};O=function(t){null!==j?setTimeout(O,0,t):(j=t,setTimeout(S,0,!1))},k=function(){j=null},x=function(){return!1}}else{“undefined”!=typeof console&&(“function”!=typeof g&&console.error(“This browser doesn’t support requestAnimationFrame. Make sure that you load a polyfill in older browsers. fb.me/react-polyfills”),“function”!=typeof b&&console.error(“This browser doesn’t support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. fb.me/react-polyfills”));var T=null,A=!1,P=-1,N=!1,L=!1,I=0,D=33,R=33;x=function(){return I<=e.unstable_now()};var M=new MessageChannel,B=M.port2;M.port1.onmessage=function(){A=!1;var t=T,n=P;T=null,P=-1;var r=e.unstable_now(),i=!1;if(0>=I-r){if(!(-1!==n&&n<=r))return N||(N=!0,w(q)),T=t,void(P=n);i=!0}if(null!==t){L=!0;try{t(i)}finally{L=!1}}};var q=function(t){if(null!==T){w(q);var e=t-I+R;e<R&&D<R?(8>e&&(e=8),R=e<D?D:e):D=e,I=t+R,A||(A=!0,B.postMessage(void 0))}else N=!1};O=function(t,e){T=t,P=e,L||0>e?B.postMessage(void 0):N||(N=!0,w(q))},k=function(){T=null,A=!1,P=-1}}e.unstable_ImmediatePriority=1,e.unstable_UserBlockingPriority=2,e.unstable_NormalPriority=3,e.unstable_IdlePriority=5,e.unstable_LowPriority=4,e.unstable_runWithPriority=function(t,n){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=i,a=o;i=t,o=e.unstable_now();try{return n()}finally{i=r,o=a,f()}},e.unstable_scheduleCallback=function(t,r){var a=-1!==o?o:e.unstable_now();if(“object”==typeof r&&null!==r&&“number”==typeof r.timeout)r=a+r.timeout;else switch(i){case 1:r=a+-1;break;case 2:r=a+250;break;case 5:r=a+1073741823;break;case 4:r=a+1e4;break;default:r=a+5e3}if(t={callback:t,priorityLevel:i,expirationTime:r,next:null,previous:null},null===n)n=t.next=t.previous=t,l();else{a=null;var s=n;do{if(s.expirationTime>r){a=s;break}s=s.next}while(s!==n);null===a?a=n:a===n&&(n=t,l()),(r=a.previous).next=a.previous=t,t.next=a,t.previous=r}return t},e.unstable_cancelCallback=function(t){var e=t.next;if(null!==e){if(e===t)n=null;else{t===n&&(n=e);var r=t.previous;r.next=e,e.previous=r}t.next=t.previous=null}},e.unstable_wrapCallback=function(t){var n=i;return function(){var r=i,a=o;i=n,o=e.unstable_now();try{return t.apply(this,arguments)}finally{i=r,o=a,f()}}},e.unstable_getCurrentPriorityLevel=function(){return i},e.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||x())}}).call(this,n(41))},229:function(t,e,n){“use strict”;t.exports=n(230)},23:function(t,e,n){“use strict”;n.d(e,“m”,(function(){return h})),n.d(e,“n”,(function(){return l})),n.d(e,“o”,(function(){return w})),n.d(e,“p”,(function(){return gt})),n.d(e,“q”,(function(){return bt})),n.d(e,“r”,(function(){return kt})),n.d(e,“a”,(function(){return $t})),n.d(e,“b”,(function(){return be})),n.d(e,“c”,(function(){return Ke})),n.d(e,“d”,(function(){return Ge})),n.d(e,“e”,(function(){return on})),n.d(e,“f”,(function(){return an})),n.d(e,“j”,(function(){return sn})),n.d(e,“g”,(function(){return fe})),n.d(e,“h”,(function(){return ln})),n.d(e,“i”,(function(){return Z})),n.d(e,“k”,(function(){return ht})),n.d(e,“l”,(function(){return ut}));var r=n(1),i=n.n®,o=n(5),a=n(0),s=n(7),u=n(106);var l=function(t){return t.displayName||t.name};function c(t){if(r.isValidElement(t))return t.props.__scrivitoForwardElementType||t.type}var f,d=(f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(t,e)},function(t,e){function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(){return(p=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)};function h(t){if(“function”!=typeof t)throw new a.a(“Scrivito.connect expects either a plain function or a subclass of React.Component”);return function(t){return!0===t._isScrivitoConnectedComponent}(t)?t:function(t){return“function”==typeof t&&t.prototype&&t.prototype.isReactComponent}(t)?v(t):v((e=t,(n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return d(n,t),n.prototype.render=function(){return e(this.props)},n}(r.Component)).displayName=l(e),n));var e,n}function v(t){var e,n=((e=function(t){function e(e){var n=t.call(this,e)||this;return n._scrivitoPrivateConnector=new y(n),n}return d(e,t),e.prototype.componentDidMount=function(){this._scrivitoPrivateConnector.componentDidMount(),t.prototype.componentDidMount&&t.prototype.componentDidMount.call(this)},e.prototype.componentWillUnmount=function(){this._scrivitoPrivateConnector.componentWillUnmount(),t.prototype.componentWillUnmount&&t.prototype.componentWillUnmount.call(this)},e.prototype.render=function(){var e=this;return this._scrivitoPrivateConnector.render((function(){return t.prototype.render.call(e)}))},e}(t))._isScrivitoConnectedComponent=!0,e);return n.displayName=l(t),n}var m=r.createContext(0),y=function(){function t(t){this.component=t,this.isMounted=!1,this.loadingSubscriber=new o.LoadingSubscriber}return t.prototype.componentDidMount=function(){var t=this;if(void 0===this.hierachyLevel)throw new a.g;if(this.stateSubscriber=Object(s.f)((function(){return t.component.forceUpdate()}),this.hierachyLevel),this.isMounted=!0,this.onMount){var e=this.onMount.bind(this);delete this.onMount,e()}},t.prototype.componentWillUnmount=function(){this.stateSubscriber&&this.stateSubscriber.unsubscribe(),this.unregisterLoadingActivity(),this.isMounted=!1,this.loadingSubscriber.unsubscribe()},t.prototype.render=function(t){var e=this,n=this.renderLoadingAware(t);return r.createElement(m.Consumer,p({},{__scrivitoForwardElementType:c(n)}),(function(t){return e.grabHierarchyLevel(t,r.createElement(m.Provider,{value:t+1},n))}))},t.prototype.grabHierarchyLevel=function(t,e){return this.hierachyLevel=t,e},t.prototype.renderLoadingAware=function(t){var e=this;if(Object(o.isCurrentlyCapturing)())return g(t);var n=Object(o.capture)((function(){return Object(s.o)((function(){return g(t)}))})),r=n.result,i=r.accessedState,l=r.result;return this.whenMounted((function(){if(!e.stateSubscriber)throw new a.g;e.stateSubscriber.subscribeChanges(i),n.subscribeLoading(e.loadingSubscriber),n.isAllDataLoaded()?e.unregisterLoadingActivity():e.unregisterLoadingActivityCallback||(e.unregisterLoadingActivityCallback=Object(u.b)())})),n.isAllDataLoaded()?l:this.handleLoading(l)},t.prototype.whenMounted=function(t){this.isMounted?t():this.onMount=t},t.prototype.handleLoading=function(t){return this.component._scrivitoRenderWhileLoading?this.component._scrivitoRenderWhileLoading():t},t.prototype.unregisterLoadingActivity=function(){var t=this.unregisterLoadingActivityCallback;t&&(delete this.unregisterLoadingActivityCallback,t())},t}();function g(t){var e=Object(o.runAndCatchErrorsWhileLoading)((function(){return Object(s.s)({contextName:“React.Component#render”,message:“Use one of the React lifecycle hooks.”},t)}));return e.success?e.result:null}var b=n(3);function w(t){if(t instanceof b.BasicObj)return t.id();if(t instanceof b.BasicWidget)return t.obj().id()+“|”+t.id();var e=Object(a.I)(t).substr(0,100);throw new a.g(‘keyForBasicContent called with “’e‘”. Expected an instance of BasicObj or BasicWidget.’)}var _={};function O(t,e){_=e}function k(t){return _||null}function x(t){return k(C(t))}function C(t){return“appClass-”+t}var E,j=n(2),S=0,T={};var A=n(110),P=n(66),N=n(78),L=n(111),I=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function D(t){var e;return(e=function(e){function n(t){var n=e.call(this,t)||this;return n.registeredElement=new q,n}return I(n,e),n.prototype.render=function(){return r.createElement(t,Object(a.n)({},this.props,{registeredElement:this.registeredElement}))},n}(r.Component)).displayName=l(t)+“WithRegisteredElement”,e}function R(t,e){var n;return(n=function(n){function i(t){var e=n.call(this,t)||this;return e.registeredElement=new q,e}return I(i,n),i.prototype.componentDidMount=function(){this.unregisterContentZone=Object(L.b)(this.registeredElement.id(),t(this.props),this.context)},i.prototype.componentWillUnmount=function(){this.unregisterContentZone&&this.unregisterContentZone()},i.prototype.render=function(){return r.createElement(B.Provider,{value:this.registeredElement.id()},r.createElement(e,Object(a.n)({},this.props,{registeredElement:this.registeredElement})))},i}(r.Component)).displayName=l(e)+“WithContentZone”,n.contextType=B,n}var M,B=r.createContext(void 0),q=function(){function t(){this.elementId=t.generateId()}return t.generateId=function(){return this.currentId++,this.currentId},t.prototype.id=function(){return this.elementId},t.prototype.set=function(t){t?Object(N.b)(this.elementId,t):Object(N.c)(this.elementId)},t.currentId=0,t}(),F=n(37),z=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=D(h(((M=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDragEnd=n.onDragEnd.bind(n),n}return z(e,t),e.prototype.render=function(){var t=this;return r.createElement(“span”,{ref:function(e){return t.props.registeredElement.set(e)},className:“scrivito_editing_marker”,onClick:this.onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,draggable:!0,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd},r.createElement(“i”,{className:“scrivito_icon”}),r.createElement(“span”,{className:“scrivito_editing_marker_title”},this.title()))},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),Object(F.a)().showWidgetMenu(this.props.registeredElement.id(),this.props.widget.obj().id(),this.props.widget.id())},e.prototype.onDragStart=function(t){Object(A.a)(t),Object(F.a)().startDrag(this.props.widget.obj().id(),this.props.widget.id()),this.props.setDragState(!0)},e.prototype.onDragEnd=function(){Object(F.a)().endDrag(),this.props.setDragState(!1)},e.prototype.title=function(){return Object(P.a)(this.props.widget.obj().id(),this.props.widget.id())},e}(r.Component)).displayName=“Scrivito.ContentTag.EditingMenuMarker”,M))),H=n(14);var W,V=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=D(h(((W=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return V(e,t),e.prototype.render=function(){var t,e=this,n=function(t,e){var n={iconClassName:“scrivito_icon”,markerClassName:“scrivito_editing_marker”};switch(t){case“new”:n.iconClassName+=“ scrivito_icon_inv_plus”,n.tooltip=Q(“widget_is_new”);break;case“edited”:switch(n.iconClassName+=“ scrivito_icon_edited”,e){case“new”:n.markerClassName+=“ scrivito_widget_moved_icon”,n.tooltip=Q(“widget_is_edited_and_dragged_here”);break;case“deleted”:n.markerClassName+=“ scrivito_widget_moved_icon”,n.tooltip=Q(“widget_is_edited_and_dragged_away”),n.disableMenu=!0;break;default:n.tooltip=Q(“widget_is_edited”)}break;case“deleted”:n.iconClassName+=“ scrivito_icon_trash”,n.tooltip=Q(“widget_is_deleted”);break;default:switch(n.iconClassName+=“ scrivito_icon_moved”,e){case“new”:n.tooltip=Q(“widget_is_dragged_here”);break;case“deleted”:n.tooltip=Q(“widget_is_dragged_away”),n.disableMenu=!0}}return n}(this.props.modification,this.props.placementModification),i=n.iconClassName,o=n.markerClassName,a=n.tooltip,s=n.disableMenu?void 0:this.onClick;return r.createElement(“span”,{ref:function(t){return e.props.registeredElement.set(t)},className:s?o:o+“ scrivito_disabled”,title:a,onClick:s,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},r.createElement(“i”,{className:i}),r.createElement(“span”,{className:“scrivito_editing_marker_title”},(t=this.props.widget,Object(P.b)(t.workspaceId(),t.obj().id(),t.id())||“”)))},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),Object(F.a)().showWidgetMenu(this.props.registeredElement.id(),this.props.widget.obj().id(),this.props.widget.id())},e}(r.Component)).displayName=“Scrivito.ContentTag.ComparisonMenuMarker”,W)));function Q(t){return function(t){if(H.b)return H.b.translate(t)}(“widget_marker.”+t)}var $=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),G=function(t){function e(e){var n=t.call(this,e)||this;return n._onClick=n._onClick.bind(n),n}return $(e,t),e.prototype.render=function(){var t=“scrivito_option_marker scrivito_”+this.props.position;return this.props.isAlwaysShown&&(t+=“ scrivito_visible”),i.a.createElement(“span”,{className:t,onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},i.a.createElement(“i”,{className:“scrivito_icon scrivito_icon_marker_plus”}))},e.prototype._onClick=function(t){t.preventDefault(),t.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)},e}(i.a.Component);G.displayName=“Scrivito.OptionMarker”;var Y,Z=h(G),X=n(10);var J,tt,et,nt,rt=(et=!0,(Y={Provider:(nt=r.createContext(et)).Provider,Consumer:(J=nt.Consumer,tt=h((function(t){return(0,t.callback)(t.value)})),function(t){var e=t.children;return r.createElement(J,null,(function(t){return r.createElement(tt,{callback:e,value:t})}))})}).Consumer),it=Y.Provider,ot=n(18),at=n(24),st=!1;function ut(){st=!0}var lt,ct=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ft=function(){return(ft=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},dt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i)<0&&(n[r]=t[r])}return n},pt=r.createContext({}),ht=h((function(t){var e=ft({},t);return delete e.widget,delete e.placementModification,delete e.registeredElement,r.createElement(pt.Consumer,null,(function(t){return r.createElement(vt,ft({},t,e))}))})),vt=R((function(t){var e=t.widget;if(!e)throw new a.g(“Missing widget”);return{type:“widget”,objId:e.obj().id(),widgetId:e.id()}}),h(((lt=function(t){function e(e){var n=t.call(this,e)||this;return n.state={hasFocus:!1,isDragging:!1,isFocusFadedOut:!0},n.onMouseOver=n.onMouseOver.bind(n),n.onMouseOut=n.onMouseOut.bind(n),n.onWidgetFocus=n.onWidgetFocus.bind(n),n.onWidgetBlur=n.onWidgetBlur.bind(n),n.lockFocus=n.lockFocus.bind(n),n.unlockFocus=n.unlockFocus.bind(n),n.setDragState=n.setDragState.bind(n),n}return ct(e,t),e.prototype.componentDidMount=function(){var t,e;this.focusToken=(t={onFocus:this.onWidgetFocus,onBlur:this.onWidgetBlur},T=t,S+=1,e)},e.prototype.componentWillUnmount=function(){var t;t=this.focusToken,delete T},e.prototype.render=function(){var t=this;if(Object(ot.c)())return r.createElement(rt,null,(function(e){return e?t.renderWithEditingMarker():t.renderWithoutMarker()}));if(Object(ot.b)()){var e=this.getWidget().modification(),n=this.props.placementModification;if((e||n)&&!this.isChildOfDeletedWidget(e,n))return this.renderWithComparisonMarker(e,n)}return this.renderWithoutMarker()},e.prototype.isChildOfDeletedWidget=function(t,e){return“deleted”===t&&!e},e.prototype.renderWithEditingMarker=function(){var t=this;return r.createElement(this.props.tag,ft({},this.forwardedPropsWithMarker(),{ref:function(e){return t.props.registeredElement.set(e)},className:this.className(),style:this.style(),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:.concat(r.Children.toArray(this.props.children),)},this.dataProps()))},e.prototype.renderWithComparisonMarker=function(t,e){return r.createElement(this.props.tag,ft({},this.forwardedPropsWithMarker(),{className:this.className(),style:this.style(),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:.concat(r.Children.toArray(this.props.children))},this.dataProps(t||e)))},e.prototype.renderWithoutMarker=function(){return r.createElement(this.props.tag,this.forwardedProps())},e.prototype.getWidget=function(){var t=this.props.widget;if(!t)throw new a.i(“Detected inappropriate placing of Scrivito.WidgetTag: It is intended to be used exclusively as top-level element inside a Widget component.”);return t},e.prototype.forwardedProps=function(){var t=this.props;t.tag,t.widget,t.placementModification,t.registeredElement;return dt(t,)},e.prototype.forwardedPropsWithMarker=function(){var t=this.forwardedProps();t.className,t.style;return dt(t,)},e.prototype.setDragState=function(t){this.setState({isDragging:t})},e.prototype.className=function(){var t=this.props.className||“”;return Object(ot.c)()&&this.hasVisibleFocus()&&(t+=“ scrivito_active scrivito_entered”),Object(ot.b)()&&this.isDeleted()&&(t+=“ scrivito_modification_opacity”),t},e.prototype.hasVisibleFocus=function(){return this.state.hasFocus&&!this.state.isFocusFadedOut},e.prototype.isDeleted=function(){return“deleted”===this.props.placementModification||“deleted”===this.getWidget().modification()},e.prototype.dataProps=function(t){var e={“data-scrivito-private-widget”:“true”,“data-scrivito-private-dropzone”:“true”};return this.isStructureWidget()&&(e=“true”),t&&(e=t),e},e.prototype.style=function(){return this.state.isDragging?this.props.style?ft({},this.props.style,{opacity:.5}):{opacity:.5}:this.props.style},e.prototype.isStructureWidget=function(){var t=Object(at.a)(),e=this.getWidget();if(e){var n=t.widgetClassFor(e.objClass()),r=X.b.forClass(n);if®return Object(j.some)(r.attributes,(function(t,e){return“widgetlist”===t}))}return!1},e.prototype.onMouseOver=function(t){var e,n;t.stopPropagation(),e=this.focusToken,(n=T)&&n.onFocus()},e.prototype.onMouseOut=function(t){t.stopPropagation(),function(t){if(t===E){var e=T;e&&e.onBlur()}}(this.focusToken)},e.prototype.onWidgetFocus=function(){var t=this;this.setState({hasFocus:!0,isFocusFadedOut:!1}),this.fadeOutFocusTimeout&&window.clearTimeout(this.fadeOutFocusTimeout),this.isStructureWidget()||(this.fadeOutFocusTimeout=window.setTimeout((function(){return t.fadeOutFocus()}),1e3))},e.prototype.fadeOutFocus=function(){this.state.isFocusFadedOut||this.isFocusLocked||this.setState({isFocusFadedOut:!0})},e.prototype.lockFocus=function(){this.isFocusLocked=!0},e.prototype.unlockFocus=function(){this.isFocusLocked=!1},e.prototype.onWidgetBlur=function(){this.setState({hasFocus:!1})},e.prototype.renderOptionMarker=function(t){return r.createElement(Z,{key:“optionMarker-”+t,position:t,widget:this.getWidget(),insertWidget:mt,isAlwaysShown:st,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})},e}(r.Component)).displayName=“Scrivito.WidgetTag”,lt.defaultProps={tag:“div”},lt)));function mt(t,e){H.b.insertWidget(t.obj().id(),t.id(),e)}var yt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function gt(t,e){!function(t){if(“function”!=typeof t)throw new a.a(“Scrivito.provideComponent expected a valid React component, but received ”+Object(a.I)(t))}(e),function(t){return!(t.displayName||t.name&&“_class”!==t.name&&“class_”!==t.name.substring(0,6))}(e)&&(e.displayName=t),function(t,e){O(C(t),e)}(t,function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yt(e,t),e.prototype.render=function(){if(this.props.widget){var e=t.prototype.render.call(this);return c(e)!==ht?i.a.createElement(ht,{children:e}):e}return t.prototype.render.call(this)},e}(t);return e.displayName=l(t),e}(h(e)))}function bt(t,e){O(t,h(e))}var wt,_t=n(13),Ot=n(17);function kt(t,e){var n=k(t);!function(t,e){if(!t)throw new a.a(‘Component with ID “’e‘” not found. Please make sure you registered it using “Scrivito.registerComponent”.’)}(n,t);var r=function(t){if(t.widgetId)return function(t){var e=b.BasicObj.get(t.objId).widget(t.widgetId);return{widget:Object(X.f)(Object(at.a)(),e)}}(t);if(t.objId)return function(t){var e=b.BasicObj.get(t.objId),n=Object(X.f)(Object(at.a)(),e);return{obj:n,page:n}}(t)}(e);wt?Object(_t.render)(i.a.createElement(n,r),wt):wt=function(t,e,n){var r=t.createElement(“div”);return t.body.innerHTML=“”,t.body.appendChild®,Object(_t.render)(i.a.createElement(e,n),r),r}(Object(Ot.b)(),n,r)}var xt=n(51),Ct=n(112),Et=n(39),jt=n(143);function St(t){var e=new Image;return Tt(e)?function(t,e){if(!Tt(t))throw new Error(“Browser does not support decode!”);return t.src=e,function(t){return t.decode&&t.decode.bind(t)}(t)().then((function(){return t}))}(e,t):function(t,e){return new a.j((function(n,r){t.onload=function(){return n(t)},t.onerror=function(t){return r(t)},t.src=e}))}(e,t)}function Tt(t){return!!t.decode}function At(t,e,n,r){if(!Pt())throw new Error(“Browser does not support getCSSCanvasContext!”);return Pt()(t,e,n,r)}function Pt(){return document.getCSSCanvasContext&&document.getCSSCanvasContext.bind(document)}function Nt(){return!!Lt()}function Lt(){return document.mozSetImageElement&&document.mozSetImageElement.bind(document)}function It(t){var e=document.createElement(“canvas”);return e.height=t.height,e.width=t.width,Dt(t,e.getContext(“2d”)),e}function Dt(t,e){e.drawImage(t,0,0)}function Rt(t){return St(t).then((function(e){return Nt()?function(t){var e=It(t),n=“ScrivitoBackgroundImage”+Bt();return function(t,e){if(!Nt())throw new Error(“Browser does not support mozSetImageElement!”);Lt()(t,e)}(n,e),{decodedBackgroundUrl:“-moz-element(#”n“)”,clear:function(){return function(t){if(!Nt())throw new Error(“Browser does not support mozSetImageElement!”);Lt()(t,null)}(n)}}}(e):Pt()?function(t){var e=“ScrivitoBackgroundImage”+Bt(),n=At(“2d”,e,t.width,t.height);return Dt(t,n),{decodedBackgroundUrl:“-webkit-canvas(”e“)”,clear:function(){At(“2d”,e,0,0)}}}(e):Tt(e)?{decodedBackgroundUrl:“url(”t“)”}:function(t){return It(t),{decodedBackgroundUrl:“url(”t.src“)”}}(e)})).catch((function(){return{decodedBackgroundUrl:“url(”t“)”}}))}var Mt=0;function Bt(){return Mt+=1}var qt=function(){function t(t){this.onUpdateCallback=t,this.decodedUrls={},this.loadingRegistry={},this.clears=[]}return t.prototype.getBackgroundImage=function(t){var e=this.decodedUrls;return e||this.ensureLoading(t),e},t.prototype.clear=function(){this.clears.map((function(t){return t()}))},t.prototype.ensureLoading=function(t){var e=this;if(!this.decodedUrls&&!this.loadingRegistry){var n=Rt(t).then((function(n){var r=n.decodedBackgroundUrl,i=n.clear;i&&e.clears.push(i),e.decodedUrls=r,e.onUpdateCallback()}));this.loadingRegistry=Object(a.J)(n,(function(){return delete e.loadingRegistry}))}},t}(),Ft=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zt=function(){return(zt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},Ut=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i)<0&&(n[r]=t[r])}return n},Ht=a.O.struct({image:a.O.String,attachment:a.O.maybe(a.O.String),clip:a.O.maybe(a.O.String),color:a.O.maybe(a.O.String),origin:a.O.maybe(a.O.String),position:a.O.maybe(a.O.String),repeat:a.O.maybe(a.O.String),size:a.O.maybe(a.O.String)}),Wt=a.O.struct({image:a.O.union(),attachment:a.O.maybe(a.O.enums.of()),clip:a.O.maybe(a.O.enums.of()),color:a.O.maybe(a.O.enums.of()),origin:a.O.maybe(a.O.enums.of()),position:a.O.maybe(a.O.enums.of()),repeat:a.O.maybe(a.O.enums.of()),size:a.O.maybe(a.O.enums.of())}),Vt=a.O.union();Vt.dispatch=function(t){return ee(t)?Ht:Wt};var Kt=a.O.list(Vt),Qt=a.O.union();Qt.dispatch=function(t){return Object(j.isArray)(t)?Kt:Vt};var $t=h(function(t){function e(e){var n=t.call(this,e)||this;return n.decoder=new qt((function(){return n.forceUpdate()})),n.binaryToUrl=n.binaryToUrl.bind(n),n}return Ft(e,t),e.prototype.componentWillUnmount=function(){this.decoder.clear()},e.prototype.render=function(){var t=this.props,e=t.style,n=t.tag,i=Ut(t,),o=n;return function(t){if(Object(j.isObject)(t))for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n;r.match(/^background.+/)&&Object(a.Q)(new a.a(‘Invalid background related CSS property “’r‘”. Expected property “background” alongside with any non-background propertiesFor further details, see www.scrivito.com/js-sdk/background-image-tag’))}}(e),r.createElement(o,zt({},i,{style:Gt(e,this.binaryToUrl)}))},e.prototype.binaryToUrl=function(t){var e=Object(Ct.a)(t),n=e.initialUrl,r=e.highResUrlToDecode;return r&&this.decoder.getBackgroundImage®||“url(”n“)”},e.displayName=“Scrivito.BackgroundImageTag”,e.propTypes=Object(jt.propTypes)({tag:a.O.maybe(a.O.String),style:a.O.maybe(a.O.interface({background:a.O.maybe(Qt)},{strict:!1}))},{strict:!1}),e.defaultProps={tag:“div”,style:{}},e}(r.Component));function Gt(t,e){if(Object(j.isObject)(t)){var n=t,r=n.background,i=Ut(n,);return zt({},i,function(t,e){if(void 0===t)return{};if(Object(j.isArray)(t))return{backgroundImage:Yt(n=t.map((function(t){return Xt(t,e)})),“backgroundImage”),backgroundAttachment:Yt(n,“backgroundAttachment”),backgroundClip:Yt(n,“backgroundClip”),backgroundOrigin:Yt(n,“backgroundOrigin”),backgroundPosition:Yt(n,“backgroundPosition”),backgroundRepeat:Yt(n,“backgroundRepeat”),backgroundSize:Yt(n,“backgroundSize”),backgroundColor:Zt(n)};var n;return Xt(t,e)}(r,e))}return{}}function Yt(t,e){return t.map((function(t){return t})).join(“, ”)}function Zt(t){var e=Object(j.last)(t);if(e)return e.backgroundColor}function Xt(t,e){return ee(t)?Jt(t):function(t,e){var n=t.image;if(n instanceof b.Binary)return te(n,t,e);if(n instanceof Object(Et.a)().Obj){var r=Object(X.e)(n);if(Object(xt.a)®){var i=r.get(“blob”,);if(i)return te(i,t,e)}}return Jt({image:“none”})}(t,e)}function Jt(t){return{backgroundImage:t.image,backgroundAttachment:t.attachment||“scroll”,backgroundClip:t.clip||“border-box”,backgroundColor:t.color||“transparent”,backgroundOrigin:t.origin||“padding-box”,backgroundPosition:t.position||“0% 0%”,backgroundRepeat:t.repeat||“repeat”,backgroundSize:t.size||“auto”}}function te(t,e,n){return{backgroundImage:n(t),backgroundAttachment:e.attachment||“scroll”,backgroundClip:e.clip||“border-box”,backgroundColor:e.color||“transparent”,backgroundOrigin:e.origin||“padding-box”,backgroundPosition:e.position||“center center”,backgroundRepeat:e.repeat||“no-repeat”,backgroundSize:e.size||“cover”}}function ee(t){return Object(j.isString)(t.image)}var ne=n(43),re=n(76);function ie(t){return t.ctrlKey||t.metaKey||t.shiftKey||2===t.which}var oe=n(59),ae=n(42),se=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ue=function(){return(ue=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},le=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i)<0&&(n[r]=t[r])}return n};function ce(t){if(t){var e=Object(X.e)(t);return e instanceof b.BasicLink?e:void 0}}var fe=h(function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return se(e,t),e.prototype.render=function(){var t=this.props,e=t.children,n=t.to,i=t.params,o=le(t,),a=ue({},o,{href:n&&this.hrefFor(n,i)||“#”,onClick:this.onClick,rel:this.rel(),target:this.target()});return r.createElement(“a”,ue({},a),e)},e.prototype.hrefFor=function(t,e){return“string”==typeof t?t:this.urlFor(t,e||void 0)},e.prototype.onClick=function(t){if(!this.props.onClick||(this.props.onClick(t),!t.defaultPrevented)){t.preventDefault();var e=this.props.to;if(e)if(“string”!=typeof e){var n=this.props.params||void 0,r=this.urlFor(e,n);if®{var i=this.target();“_blank”===i||ie(t)?Object(ae.b)®:i?Object(ae.c)(r,i):Object(re.a)(e,{params:n})}}else Object(ae.b)(e)}},e.prototype.target=function(){if(this.props.target)return this.props.target;var t=ce(this.props.to);return t&&t.target()||void 0},e.prototype.rel=function(){if(“rel”in this.props)return this.props.rel;var t=ce(this.props.to);return t&&t.rel()||void 0},e.prototype.urlFor=function(t,e){var n=Object(X.e)(t);if(n instanceof b.BasicObj||n instanceof b.BasicLink)return Object(oe.a)(n,{queryParameters:e||void 0})},e.displayName=“Scrivito.LinkTag”,e.propTypes=Object(jt.propTypes)({to:a.O.maybe(a.O.union()),params:a.O.union([a.O.dict(a.O.String,a.O.union()),a.O.maybe(a.O.irreducible(“false”,(function(t){return!1===t})))]),onClick:a.O.maybe(a.O.Function)},{strict:!1}),e}(r.Component));function de(t){var e=t.child,n=t.renderChild,r=Object(Et.a)().appModelAccessor.wrapInAppClass(e);return n?n®:i.a.createElement(“li”,null,i.a.createElement(fe,{to:r},e.get(“title”,“string”)))}de.displayName=“Scrivito.ChildListTag.ChildItem”;var pe,he=h(de),ve=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),me=D(h(((pe=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return ve(e,t),e.prototype.render=function(){var t=this;return r.createElement(“span”,{ref:function(e){return t.props.registeredElement.set(e)},className:“scrivito_editing_marker”,onClick:this.onClick},r.createElement(“i”,{className:“scrivito_icon”}),r.createElement(“span”,{className:“scrivito_editing_marker_title”},this.props.parent.objClass()))},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),Object(F.a)().showChildListMenu(this.props.registeredElement.id(),this.props.parent.id())},e}(r.Component)).displayName=“Scrivito.ChildListTag.MenuMarker”,pe))),ye=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ge=function(t){function e(e){var n=t.call(this,e)||this;return n.state={hasFocus:!1},n._onMouseOver=n._onMouseOver.bind(n),n._onMouseOut=n._onMouseOut.bind(n),n}return ye(e,t),e.prototype.render=function(){var t=this,e=this.props.parent||Object(ne.a)();if(!e)return null;e=e._scrivitoPrivateContent;var n=Object(j.omit)(this.props,“parent”,“tag”,“renderChild”),r=e.orderedChildren();return i.a.createElement(rt,null,(function(o){var a;return Object(ot.c)()&&o&&(n.onMouseOver=t._onMouseOver,n.onMouseOut=t._onMouseOut,n=!0,t.state.hasFocus&&(n.className=“scrivito_active scrivito_entered ”+n.className),a=i.a.createElement(me,{parent:e,key:“menuMarker”})),i.a.createElement(t.props.tag,n,.concat(r.map((function(e){return i.a.createElement(he,{key:e.id(),child:e,renderChild:t.props.renderChild})}))))}))},e.prototype._onMouseOver=function(t){t.stopPropagation(),this.setState({hasFocus:!0})},e.prototype._onMouseOut=function(t){t.stopPropagation(),this.setState({hasFocus:!1})},e}(i.a.Component);ge.displayName=“Scrivito.ChildListTag”,ge.defaultProps={tag:“ul”};var be=h(ge),we=n(31),_e=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oe=function(){return(Oe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},ke=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i)<0&&(n[r]=t[r])}return n},xe=function(t){function e(e){var n=t.call(this,e)||this;return n.state={hasError:!1},n}return _e(e,t),e.prototype.componentDidCatch=function(t){Object(a.Q)(t),this.setState({hasError:!0})},e.prototype.shouldComponentUpdate=function(t){return this.props.widget.equals(t.widget)},e.prototype.render=function(){return this.state.hasError?Object(ot.c)()?Ee(this.props.widget,r.createElement(ht,null,r.createElement(“div”,{className:“content_error”},“Widget could not be rendered due to application error.”)),this.props.placementModification):Ee(this.props.widget,r.createElement(ht,null),this.props.placementModification):r.createElement(Ce,{widget:this.props.widget,widgetProps:this.props.widgetProps,placementModification:this.props.placementModification})},e.displayName=“Scrivito.ContentTag.WidgetContent”,e}(r.Component),Ce=function(t){function e(e){return t.call(this,e)||this}return _e(e,t),e.prototype.render=function(){return Ee(this.props.widget,r.createElement(this.getAppWidgetComponent(),this.getAppWidgetProps()),this.props.placementModification)},e.prototype.getAppWidgetComponent=function(){var t=this.props.widget.objClass(),e=x(t);if(!e)throw new a.a(‘No component registered for widget class “’t‘”’);return e},e.prototype.getAppWidgetProps=function(){var t={widget:Object(X.f)(Object(at.a)(),this.props.widget)};if(this.props.widgetProps&&this.props.widgetProps.hasOwnProperty(“widget”)){Object(a.Q)(new a.a(‘The prop “widget” is not allowed inside “widgetProps”’));var e=this.props.widgetProps,n=(e.widget,ke(e,));return Oe({},t,n)}return Oe({},t,this.props.widgetProps)},e}(r.Component);function Ee(t,e,n){return r.createElement(pt.Provider,{value:{widget:t,placementModification:n},children:e})}var je,Se=h(xe),Te=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ae=function(){return(Ae=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},Pe=R((function(t){return Ae({type:“widgetlist”},Ne(t.field))}),h(((je=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return Te(e,t),e.prototype.render=function(){var t=this;return r.createElement(“div”,{ref:function(e){t.widgetlistPlaceholder=e,t.props.registeredElement.set(e)},className:“scrivito_empty_widget_field”,“data-scrivito-private-dropzone”:“true”,onClick:this.onClick})},e.prototype.onClick=function(t){if(t.preventDefault(),t.stopPropagation(),this.widgetlistPlaceholder){var e=Ne(this.props.field),n=e.objId,r=e.widgetId,i=e.attributeName;Object(F.a)().showWidgetlistMenu(this.props.registeredElement.id(),Object(a.r)(t,this.widgetlistPlaceholder),n,i,r)}},e}(r.Component)).displayName=“Scrivito.ContentTag.WidgetlistPlaceholder”,je)));function Ne(t){var e=t.getContainer();return e instanceof b.BasicObj?{objId:e.id(),attributeName:t.name()}:{objId:e.obj().id(),widgetId:e.id(),attributeName:t.name()}}var Le=n(12),Ie=n(25);function De(t){return function t(e,n,r){if(e===n)return null;if(a=e,“A”===a.nodeName){var i=e.href,o=Le(i);return Object(Ie.e)(o)?r||“_blank”===e.getAttribute(“target”)?{openInNewWindow:i}:{openInCurrentWindow:o.resource()}:null}var a;if(!e.parentNode)return null;return t(e.parentNode,n,r)}(t.target,t.currentTarget,ie(t))}var Re,Me=n(67),Be=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qe=h(((Re=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return Be(e,t),e.prototype.render=function(){switch(this.props.field.type()){case“html”:return this.renderHtml();case“string”:return this.renderString();case“float”:case“integer”:return this.renderNumber();case“widgetlist”:return this.renderWidgetlist();default:return this.renderContent({children:this.props.children})}},e.prototype.renderHtml=function(){if(this.props.children)return this.renderContent({children:this.props.children});var t=this.attributeValue();return this.renderContent({props:{dangerouslySetInnerHTML:{__html:Object(Me.a)(Object(ot.b)()&&this.getHtmlDiffContent()||t)},onClick:this.onClick}})},e.prototype.renderString=function(){if(this.props.children)return this.renderContent({children:this.props.children});if(Object(ot.b)()){var t=this.getHtmlDiffContent();if(t)return this.renderContent({props:{dangerouslySetInnerHTML:{__html:t}}})}return this.renderContent({children:this.attributeValue()})},e.prototype.renderNumber=function(){var t=this.props.children||this.attributeValue();return this.renderContent({children:t})},e.prototype.renderWidgetlist=function(){return this.renderContent({children:this.widgetlistChildren()})},e.prototype.widgetlistChildren=function(){var t=this;if(Object(ot.b)()&&“published”!==this.props.field.workspaceId())return this.widgetlistChildrenForComparison();var e=this.attributeValue();return e.length?e.map((function(e){return r.createElement(Se,{key:e.id(),widget:e,widgetProps:t.props.widgetProps})})):this.renderPlaceholderIfEditable()},e.prototype.widgetlistChildrenForComparison=function(){var t=this,e=Object(b.getPlacementModificationInfos)(this.props.field);if(e.length)return e.map((function(e){return r.createElement(Se,{key:e.widget.id()+“-”+e.modification,widget:e.widget,widgetProps:t.props.widgetProps,placementModification:e.modification})}))},e.prototype.renderPlaceholderIfEditable=function(){var t=this;if(Object(ot.c)())return r.createElement(rt,null,(function(e){return e&&r.createElement(Pe,{field:t.props.field})}))},e.prototype.renderContent=function(t){var e=Object(j.extend)({},this.props.customProps,t.props,this.editingProps());return t.children&&(e.children=t.children),r.createElement(this.props.tag,e)},e.prototype.onClick=function(t){var e,n=De(t);n&&((e=n)&&e.openInNewWindow?this.openInNewWindow(t,n):this.openInCurrentWindow(t,n))},e.prototype.openInNewWindow=function(t,e){var n=e.openInNewWindow;H.b&&(t.preventDefault(),t.stopPropagation(),Object(ae.b)(n))},e.prototype.openInCurrentWindow=function(t,e){var n=e.openInCurrentWindow;t.preventDefault(),t.stopPropagation(),we.d(n)},e.prototype.editingProps=function(){return this.props.onClick?{onClick:this.props.onClick,“data-scrivito-is-clickable”:!0}:{}},e.prototype.attributeValue=function(){return this.props.field.get()},e.prototype.getHtmlDiffContent=function(){var t=this.props.field.getDiff();if(t&&“html”===t.format)return t.content},e}(r.Component)).displayName=“Scrivito.ContentTag.AttributeValue”,Re)),Fe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ze=function(){return(ze=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},Ue=h(function(t){function e(e){var n=t.call(this,e)||this;n._field=n.props.field,n.state={domMode:“None”},n._isPendingUpdate=!1;var r=n.props.editorClass;if®{var i={getContent:n._getContent.bind(n),setContent:n._setContent.bind(n),setDomMode:n._setDomMode.bind(n),validObjClasses:n.validObjClasses.bind(n)};n._editor=new r({controller:i})}return n}return Fe(e,t),e.prototype.componentDidMount=function(){var t=this;this._editorWillBeActivated();var e=Object(s.l)((function(){return t._getContent()}),(function(e){if(t._isPendingUpdate&&t._pendingUpdateValue===e)return t._isPendingUpdate=!1,void(t._pendingUpdateValue=void 0);t._contentDidChange()}));this._unsubscribe=e.unsubscribe,“Replace”===this.state.domMode&&this._editorDomWasMounted()},e.prototype.componentDidUpdate=function(t,e){var n=e.domMode,r=this.state.domMode;n!==r&&(“Replace”===r?this._editorDomWasMounted():this._editorDomWasUnmounted())},e.prototype.componentWillUnmount=function(){this._editorWillBeDeactivated(),this._unsubscribe&&this._unsubscribe()},e.prototype.render=function(){var t,e=this;if(“Replace”===this.state.domMode)return r.createElement(this.props.tag,ze({},Object(j.omit)(this.props.customProps,“children”),{ref:function(t){e._editorComponent=t}}));var n=this._editor;n&&n.onClick&&(t=function(t){var e={stopPropagation:t.stopPropagation.bind(t),preventDefault:t.preventDefault.bind(t)};n.onClick(e)});var i={ref:function(t){e._editorComponent=t},children:this.props.children,widgetProps:this.props.widgetProps,customProps:this.props.customProps,field:this.props.field,key:this.state.domMode,tag:this.props.tag,onClick:t};return r.createElement(qe,i)},e.prototype._contentDidChange=function(){this._editor&&this._editor.contentDidChange()},e.prototype._editorWillBeActivated=function(){this._editor&&this._editor.editorWillBeActivated()},e.prototype._editorWillBeDeactivated=function(){this._editor&&this._editor.editorWillBeDeactivated()},e.prototype._editorDomWasMounted=function(){if(this._editor&&this._editorComponent){var t=Object(_t.findDOMNode)(this._editorComponent);this._editor.editorDomWasMounted(t)}},e.prototype._editorDomWasUnmounted=function(){this._editor&&this._editor.editorDomWasUnmounted()},e.prototype._setDomMode=function(t){this.setState({domMode:t})},e.prototype._getContent=function(){var t=this;return Object(o.capture)((function(){var e=t._field.get();if(“html”===t._field.type()){var n=e;e=Object(Me.a)(n)}return e})).result},e.prototype._setContent=function(t){this._isPendingUpdate=!0,this._pendingUpdateValue=t,this._field.update(t)},e.prototype.validObjClasses=function(){return this._field.validClasses()},e.displayName=“Scrivito.ContentTag.Editor”,e}(r.Component)),He=n(108),We=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ve=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i)<0&&(n[r]=t[r])}return n},Ke=h(function(t){function e(e){return t.call(this,e)||this}return We(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.content,i=e.attribute,o=e.tag,s=(e.widgetProps,Ve(e,));if(!n)return null;var u=X.b.basicFieldFor(n,i);if(!u){var l=i;return Object(a.Q)(new a.a(‘Component “Scrivito.ContentTag” received prop “attribute” with invalid value: Attribute “’l‘” is not defined for content specified in prop “content”.’)),null}var c=u.type();return r.createElement(rt,null,(function(e){if(Object(ot.c)()&&e){var i=void 0,a=void 0,l=Object(He.a)({type:c,tag:o});if(l)return i=l.id,a=l.editorClass,r.createElement(Ue,{key:t.editorKey(i),field:u,editorClass:a,tag:o,widgetProps:t.widgetProps©,customProps:s,content:n},t.props.children)}return r.createElement(qe,{field:u,tag:o,widgetProps:t.widgetProps©,customProps:s},t.props.children)}))},e.prototype.widgetProps=function(t){if(this.props.widgetProps){if(“widgetlist”===t)return this.props.widgetProps;Object(a.Q)(new a.a(‘The prop “widgetProps” is only allowed for widgetlist attributes’))}},e.prototype.editorKey=function(t){var e=Object(X.e)(this.props.content);return.join(“|”)},e.displayName=“Scrivito.ContentTag”,e.defaultProps={tag:“div”},e}(r.Component)),Qe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.render=function(){var t=Object(ne.a)(),e=Object(ne.c)();if(!t)return null;var n=t.objClass(),r=x(n);if(!r)throw new a.a(‘No component registered for obj class “’n‘”’);return i.a.createElement(r,{page:t,params:e})},e}(i.a.Component);$e.displayName=“Scrivito.CurrentPage”;var Ge=h($e);var Ye=new a.d,Ze=1448;function Xe(t){return t.isRaw()||t.isExplicitlyTransformed()?t.url():Ye.current()?Je(t).url():function(t){var e=(n=function(){return Je(t).urlWithoutPlaceholder()},Object(o.capture)(n).result);var n;if(e&&function(t){var e=tn;void 0===e&&(e=function(t){var e=new Image;return e.src=t,e.complete}(t),tn=e);return e}(e))return e}(t)||function(t){return t.optimizeFor({width:Object(Ot.j)().width*Object(Ot.a)()}).url()}(t)}function Je(t){return t.optimizeFor({width:Ze})}var tn={};var en=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nn=function(){return(nn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},rn=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i)<0&&(n[r]=t[r])}return n};var on=h(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return en(e,t),e.prototype.render=function(){var t=this.props,e=t.content,n=t.attribute,i=rn(t,);if(!e)return null;if(e instanceof b.Binary)return r.createElement(“img”,nn({src:Xe(e)},i));var o,s=function(t,e){var n=X.b.forInstance(t);if(!n)return;var r=Object(X.e)(t),i=n.attributes;if(!i)return void Object(a.Q)(new a.a(‘Component “Scrivito.ImageTag” received prop “content” with an object missing attribute “’e‘”.’));var o=i;if(“binary”===o)return r.get(e,“binary”);if(“reference”===o)return function(t){if(t){var e=t.get(“blob”,“binary”);if(e)return e}return null}(r.get(e,“reference”));Object(a.Q)(new a.a(‘Component “Scrivito.ImageTag” received prop “content” with an object, whose attribute “’e‘” is of unexpected type “’o‘”. Valid attribute types are “binary” and “reference”.’))}(e,n);return void 0===s?null:(null===s?(o=“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”,i=!0):o=Xe(s),r.createElement(Ke,nn({attribute:n,content:e,tag:“img”,src:o},i)))},e.displayName=“Scrivito.ImageTag”,e.defaultProps={attribute:“blob”},e}(r.Component)),an=function(t){var e=t.children;return Object(ot.c)()?r.createElement(it,{children:e,value:!1}):e},sn=function(t){var e=t.children;return Object(ot.c)()?r.createElement(it,{children:e,value:!0}):e},un=function(t){var e=t.children;return Object(ne.b)()?e?r.createElement(“div”,null,e):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};un.displayName=“Scrivito.NotFoundErrorPage”;var ln=h(un)},230:function(t,e,n){“use strict”; /** @license React v16.13.1

* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(80),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function y(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||g}function _(){}function O(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(y(85));this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},_.prototype=w.prototype;var k=O.prototype=new _;k.constructor=O,r(k,w.prototype),k.isPureReactComponent=!0;var x={current:null},C=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function j(t,e,n){var r,i={},a=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)C.call(e,r)&&!E.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:t,key:a,ref:s,props:i,_owner:x.current}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var T=/\/+/g,A=[];function P(t,e,n,r){if(A.length){var i=A.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function N(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>A.length&&A.push(t)}function L(t,e,n){return null==t?0:function t(e,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case a:u=!0}}if(u)return r(i,e,""===n?"."+I(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=n+I(s=e[l],l);u+=t(s,c,r,i)}else if(null===e||"object"!=typeof e?c=null:c="function"==typeof(c=m&&e[m]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=t(s=s.value,c=n+I(s,l++),r,i);else if("object"===s)throw r=""+e,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return u}(t,"",e,n)}function I(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function D(t,e){t.func.call(t.context,e,t.count++)}function R(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?M(t,r,n,(function(t){return t})):null!=t&&(S(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(T,"$&/")+"/")+n)),r.push(t))}function M(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(T,"$&/")+"/"),L(t,R,e=P(e,o,r,i)),N(e)}var B={current:null};function q(){var t=B.current;if(null===t)throw Error(y(321));return t}var F={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return M(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;L(t,D,e=P(null,null,e,n)),N(e)},count:function(t){return L(t,(function(){return null}),null)},toArray:function(t){var e=[];return M(t,e,null,(function(t){return t})),e},only:function(t){if(!S(t))throw Error(y(143));return t}},e.Component=w,e.Fragment=s,e.Profiler=l,e.PureComponent=O,e.StrictMode=u,e.Suspense=p,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,e.cloneElement=function(t,e,n){if(null==t)throw Error(y(267,t));var i=r({},t.props),a=t.key,s=t.ref,u=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,u=x.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)C.call(e,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:t.type,key:a,ref:s,props:i,_owner:u}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},e.createElement=j,e.createFactory=function(t){var e=j.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:d,render:t}},e.isValidElement=S,e.lazy=function(t){return{$$typeof:v,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:h,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return q().useCallback(t,e)},e.useContext=function(t,e){return q().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return q().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return q().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return q().useLayoutEffect(t,e)},e.useMemo=function(t,e){return q().useMemo(t,e)},e.useReducer=function(t,e,n){return q().useReducer(t,e,n)},e.useRef=function(t){return q().useRef(t)},e.useState=function(t){return q().useState(t)},e.version="16.13.1"},24:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(39);function i(){return Object(r.a)()._privateRealm._registry}},25:function(t,e,n){"use strict";n.d(e,"d",(function(){return f})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"g",(function(){return h})),n.d(e,"f",(function(){return v})),n.d(e,"e",(function(){return m})),n.d(e,"a",(function(){return b}));var r=n(12),i=n(2),o=n(69),a=n(61),s=n(17),u=n(0),l=(n(3),""),c=!1;function f(t){var e=void 0===t?{}:t,n=e.routingBasePath,r=e.homepageCallback;c=!0,l=n||"",r&&Object(a.b)(r)}function d(t){var e=t.obj,n=t.queryParameters,r=t.hash,i=t.origin;y("generateUrl");var a=g({path:o.a(e),queryParameters:n,hash:r});return i&&a.origin(i),a.toString()}function p(t){var e=t.path;return y("generatePath"),g({path:e})}function h(t){y("recognize");var e="string"==typeof t?r(t):t,n=function(t){if(m(t))return function(t){var e=t.path();if(e.substring(0,l.length)!==l)return null;return e.substring(l.length)}(t);return null}(e),a=e.query(!0),s=function(t){var e=t.hash();if(""===e)return null;return e}(e);return Object(i.isString)(n)?{path:n,obj:o.b(n),queryParameters:a,hash:s}:{path:n,obj:null,queryParameters:a,hash:s}}function v(t){return m(r(t))}function m(t){return!t.is("absolute")||t.origin()===b()}function y(t){if(!c)throw Object(u.F)("Error from Scrivito SDK: No application configured, cannot initialize routing."),new u.g(t+" can't be called before init.")}function g(t){var e=t.path,n=t.queryParameters,i=t.hash,o=("/"+l+"/"+e).replace(/\/+/g,"/"),a=r("").pathname(o);return n&&a.query(n),i&&a.hash(i),a}function b(){return r(s.f()).origin()}},26:function(t,e,n){"use strict";t.exports=function(){}},29:function(t,e,n){var r=n(34),i=n(63);t.exports=function(t){return r(t)?t.displayName:i(t)}},3:function(t,e,n){"use strict";n.r(e),n.d(e,"AnyNormalizedSingleTypeInfo",(function(){return i.AnyNormalizedSingleTypeInfo})),n.d(e,"AnyNormalizedTypeInfo",(function(){return i.AnyNormalizedTypeInfo})),n.d(e,"AnyNormalizedTypeOptions",(function(){return i.AnyNormalizedTypeOptions})),n.d(e,"AnyTypeInfo",(function(){return i.AnyTypeInfo})),n.d(e,"AnyTypeOptions",(function(){return i.AnyTypeOptions})),n.d(e,"NormalizedTypeInfo",(function(){return i.NormalizedTypeInfo})),n.d(e,"AttributeType",(function(){return o.AttributeType})),n.d(e,"BasicAttributeDict",(function(){return o.BasicAttributeDict})),n.d(e,"BasicAttributeValue",(function(){return o.BasicAttributeValue})),n.d(e,"BasicAttributeValueForUpdate",(function(){return o.BasicAttributeValueForUpdate})),n.d(e,"SystemAttributeValue",(function(){return o.SystemAttributeValue})),n.d(e,"BasicField",(function(){return s})),n.d(e,"BasicLink",(function(){return Tt})),n.d(e,"BasicLinkAttributes",(function(){})),n.d(e,"BasicObjFacetValue",(function(){return v})),n.d(e,"ObjSearchParams",(function(){})),n.d(e,"BasicObjSearch",(function(){return w})),n.d(e,"OPERATORS",(function(){return m})),n.d(e,"BasicSearchValue",(function(){})),n.d(e,"SearchField",(function(){})),n.d(e,"SearchOperator",(function(){})),n.d(e,"Boost",(function(){})),n.d(e,"BasicObj",(function(){return Ot})),n.d(e,"MaybeBasicObj",(function(){})),n.d(e,"setLinkHandler",(function(){return Et})),n.d(e,"LinkHandler",(function(){})),n.d(e,"BasicWidget",(function(){return ut})),n.d(e,"TransformationDefinition",(function(){})),n.d(e,"Binary",(function(){return K})),n.d(e,"BlobMock",(function(){})),n.d(e,"FutureBinary",(function(){return q})),n.d(e,"FutureBinaryOptions",(function(){})),n.d(e,"IdToCopySource",(function(){})),n.d(e,"SourceSource",(function(){})),n.d(e,"setBinaryHandler",(function(){return D})),n.d(e,"BinaryHandler",(function(){})),n.d(e,"MetadataCollection",(function(){return H})),n.d(e,"BinaryMetadataValue",(function(){})),n.d(e,"ObjSearchType",(function(){return A})),n.d(e,"LinkType",(function(){return T})),n.d(e,"ObjType",(function(){return j})),n.d(e,"WidgetType",(function(){return S})),n.d(e,"BinaryType",(function(){return P})),n.d(e,"QueryParameters",(function(){})),n.d(e,"parseQuery",(function(){return c})),n.d(e,"queryParametersFromUrl",(function(){return f})),n.d(e,"currentWorkspaceId",(function(){return rt})),n.d(e,"resetCurrentWorkspaceId",(function(){return ot})),n.d(e,"setCurrentWorkspaceId",(function(){return it})),n.d(e,"getPlacementModificationInfos",(function(){return At})),n.d(e,"PlacementModification",(function(){}));var r={};n.r(r),n.d(r,"deserialize",(function(){return Y}));var i=n(54),o=n(57),a=n(11),s=function(){function t(t,e,n){this.container=t,this.attributeName=e,this.typeInfo=n,this.typeOptions=this.typeInfo[1]||{}}return t.prototype.get=function(){return this.container.get(this.attributeName,this.typeInfo)},t.prototype.update=function(t){var e;this.container.update(((e={})[this.attributeName]=[t,this.typeInfo],e))},t.prototype.getContainer=function(){return this.container},t.prototype.obj=function(){return this.container.obj()},t.prototype.name=function(){return this.attributeName},t.prototype.type=function(){return this.typeInfo[0]},t.prototype.workspaceId=function(){return this.obj().workspaceId()},t.prototype.equals=function(e){return e instanceof t&&(this.container.equals(e.getContainer())&&this.attributeName===e.name())},t.prototype.validClasses=function(){return this.typeOptions.validClasses},t.prototype.getDiff=function(){var t=this.obj();return Object(a.h)(this.workspaceId(),this.attributeName,t.id(),this.container===t?void 0:this.container.id())},t.prototype.toString=function(){var t=this.obj(),e=this.attributeName;return this.container===t?"<BasicField name="+e+" objId="+t.id()+">":"<BasicField name="+e+" objId="+t.id()+" widgetId="+this.container.id()+">"},t.prototype.id=function(){var t=this.obj();return this.container===t?this.attributeName+"|"+t.id():this.attributeName+"|"+t.id()+"|"+this.container.id()},t}(),u=n(0),l=n(12);function c(t){return l.parseQuery(t)}function f(t){return new l(t).query(!0)}var d=n(2),p=n.n(d),h=n(107);var v=function(){function t(t){var e=t.name,n=t.count,r=t.includedObjIds;this._name=e,this._count=n,this._includedObjIds=r}return t.prototype.name=function(){return this._name},t.prototype.count=function(){return this._count},t.prototype.includedObjs=function(){return Object(d.compact)(this._includedObjIds.map((function(t){return Ot.get(t)})))},t}(),m=["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan","linksTo","refersTo"],y=["equals","startsWith","isGreaterThan","isLessThan"],g=["contains","containsPrefix"],b={query:[]},w=function(){function t(t){void 0===t&&(t=b);this._query=[].concat(t.query),this._batchSize=t.batchSize,this._offset=t.offset,this._sortBy=t.sortBy,this._sortDirection=t.sortDirection,this._includeDeleted=t.includeDeleted}return t.prototype.and=function(e,n,r,i){if(e instanceof t)this._query=this._query.concat(e._query);else{if(void 0===n)throw new u.a("Missing operator to search with");if(void 0===r)throw new u.a('Missing value to search (specify "null" for missing)');var o=_(e,n,r);i&&(!function(t){if(!Object(d.contains)(g,t))throw new u.a('Boosting operator "'+t+'" is invalid.')}(n),o.boost=function(t){var e={};return Object(d.each)(t,(function(t,n){var r=k(n);e[r]=t})),e}(i)),this._query.push(o)}return this},t.prototype.andNot=function(t,e,n){var r=_(t,e,n);return function(t){if(!Object(d.contains)(y,t))throw new u.a('Negating operator "'+t+'" is invalid.')}(e),r.negate=!0,this._query.push(r),this},t.prototype.offset=function(t){return this._offset=t,this},t.prototype.order=function(t,e){return void 0===e&&(e="asc"),this._sortBy=k(t),this._sortDirection=e,this},t.prototype.batchSize=function(t){return this._batchSize=t,this},t.prototype.includeDeleted=function(){return this._includeDeleted=!0,this},t.prototype.count=function(){return this.getObjDataQuery().count()},t.prototype.first=function(){return this.take(1)[0]||null},t.prototype.take=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];E.apply(void 0,[t].concat(e));var r=this._batchSize;try{return this._batchSize=void 0===t?1e3:t,Object(u.m)(this,t)}finally{this._batchSize=r}},t.prototype.iterator=function(){var t=this.getObjDataQuery().iterator();return{next:function(){var e=t.next(),n=e.done,r=e.value;return n?{done:!0}:{done:!1,value:new Ot(r)}}}},t.prototype.getObjDataQuery=function(){return Object(a.j)(rt(),this.params(),this.getBatchSize())},t.prototype.getBatchSize=function(){return this._batchSize||100},t.prototype.facet=function(t,e){var n;return n=void 0===e?{}:function(t){var e=d.without.apply(void 0,[Object.keys(t)].concat(x));if(e.length)throw new u.a("Invalid facet options: "+Object(u.I)(e)+". Valid options: "+x);return t}(e),new a.a(rt(),k(t),n,this._query).result().map((function(t){return new v(t)}))},t.prototype.store=function(t,e){Object(a.p)(rt(),this.params(),t,e)},t.prototype.params=function(){return Object(d.omit)({query:this._query,offset:this._offset,sortBy:this._sortBy,sortDirection:this._sortDirection,includeDeleted:this._includeDeleted,batchSize:this._batchSize},d.isUndefined)},t}();function _(t,e,n){return{field:function(t){if(Object(d.isArray)(t))return Object(d.map)(t,k);return k(t)}(t),operator:function(t){if(!function(t){return Object(d.contains)(m,t)}(t))throw new u.a('Operator "'+t+'" is invalid.');return Object(u.R)(t)}(e),value:function(t){if(Object(d.isArray)(t))return Object(d.map)(t,O);return O(t)}(n)}}function O(t){return Object(d.isDate)(t)?Object(u.w)(t):t instanceof Ot?t.id():t}function k(t){if(!Object(u.y)(t))throw new u.a('Attribute name "'+t+'" is not camel case.');return Object(u.R)(t)}var x=["limit","includeObjs"];var C=u.O.refinement(u.O.Number,(function(t){return t>=0}),"Number (positive)"),E=Object(u.p)("objSearch.take",[["count",u.O.maybe(C)]],{docPermalink:"js-sdk/ObjSearch-take"}),j=u.O.irreducible("Obj",(function(t){return N(t,Ot)})),S=u.O.irreducible("Widget",(function(t){return N(t,ut)})),T=u.O.irreducible("Link",(function(t){return N(t,Tt)})),A=u.O.irreducible("ObjSearch",(function(t){return N(t,w)})),P=u.O.irreducible("Binary",(function(t){return t instanceof K}));function N(t,e){return!!t&&t._scrivitoPrivateContent instanceof e}var L,I=n(7);function D(t){L=t}var R=function(){function t(t,e){void 0===e&&(e={});var n=e.filename;if(this.contentType=e.contentType,t.idToCopy)this.idToCopy=t.idToCopy;else{var r=t.source;this.source=r,this.contentType||(this.contentType=r.type),n||(n=r.name)}n&&(this.filename=n.replace(/[^\w\-_\.$]/g,"-"))}return t.prototype.into=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return M.apply(void 0,[t].concat(e)),Object(I.g)("Changing CMS content"),this.intoId(t._scrivitoPrivateContent.id())},t.prototype.intoId=function(t){if(!L)throw new u.g("No binaryHandler defined!");var e;if(this.idToCopy)e=L.copyBinary(this.idToCopy,t,this.filename,this.contentType);else{if(!this.source)throw new u.g("Source is not defined!");e=L.uploadBinary(t,this.source,this.filename,this.contentType)}return e.then((function(t){var e=t.id;return new K(e,!1)}))},t}(),M=Object(u.p)("FutureBinary#into",[["target",j]],{docPermalink:"js-sdk/FutureBinary-into"});var B,q=R,F=n(5),z=n(9);!function(t){t.Date="date",t.Number="number",t.String="string",t.Stringlist="stringlist"}(B||(B={}));var U=new F.LoadableCollection({name:"metadata",state:function(){return I.c.subState("metadataCollection")},loader:function(t){return z.e.retrieveBinaryMetadata(t)}}),H=function(){function t(t){this.binaryId=t,t&&(this.loadableData=U.get(t))}return t.store=function(t,e){W(e),U.get(t).set(e)},t.prototype.get=function(t){Object(a.c)("MetadataCollection#get"),function(t){if(!Object(u.y)(t))throw new u.a('Metadata key "'+t+'" is not in camel case.')}(t);var e=this.getData();if(e){var n=Object(u.R)(t);return e.hasOwnProperty(n)?e[n]:null}return null},t.prototype.keys=function(){var t=this.getData();return t?Object(d.map)(Object(d.keys)(t),u.o):[]},t.prototype.contentLength=function(){var t=this.get("contentLength");return"number"!=typeof t?0:t},t.prototype.contentType=function(){var t=this.get("contentType");return"string"!=typeof t?"":t},t.prototype.getData=function(){if(this.loadableData){var t=this.loadableData.get();if(t)return W(t)}},t}();function W(t){for(var e=t.meta_data,n={},r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],a=e[o],s=a[0],l=a[1];if(null==l)throw new u.g('Invalid backend value "null" or "undefined" for metadata "'+o+'"');var c=void 0;if(s===B.Date){if("string"!=typeof l)throw new u.g('Invalid non-string backend value for a date metadata "'+o+'"');c=Object(u.t)(l)}else c=l;n[o]=c}return n}var V=new F.LoadableCollection({name:"binary",state:function(){return I.c.subState("binary")},loader:function(t){var e=t[0],n=t[1];return z.e.retrieveBinaryUrls(e,n)}}),K=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n={}),this._id=t,this._isPublic=!!e,this._transformation=n||void 0,this._loadableData=V.get([t,this._transformation])}return t.upload=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(G.apply(void 0,[t,e].concat(n)),!(u.f.is(t)||e&&e.filename))throw new u.a("Expected a filename to be passed with Blob as the source.");return new q({source:t},e)},t.store=function(e,n,r){var i=n.transformation;V.get([e,i]).set(r);var o=new t(e).raw();return i?o.optimizeFor(i):o},t.storeMetadata=function(t,e){H.store(t,e)},t.prototype.id=function(){return this._id},t.prototype.copy=function(t){return new q({idToCopy:this._id},t)},t.prototype.isPrivate=function(){return!this._isPublic},t.prototype.optimizeFor=function(e){return new t(this._id,this._isPublic,Object(d.extend)({},this._transformation,e))},t.prototype.original=function(){return new t(this._id,this._isPublic,{})},t.prototype.raw=function(){return new t(this._id,this._isPublic,null)},t.prototype.isExplicitlyTransformed=function(){return this.isTransformed()&&!Object(d.isEmpty)(this._transformation)},t.prototype.isRaw=function(){return!this.isTransformed()},t.prototype.url=function(){return Object(a.c)("Binary#url"),this.urlWithoutPlaceholder()||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},t.prototype.urlWithoutPlaceholder=function(){var t=this._loadableData.get();if(t){var e=t[this.accessType()];if(!e)throw new u.g("Missing key "+this.accessType+" in binary data");return e.get.url}},t.prototype.filename=function(){var t=this.url();return!t||t.match(/^data:/)?"":l(t).path().split("/").pop()||""},t.prototype.metadata=function(){return this.assertNotTransformed("Metadata"),new H(this._id)},t.prototype.contentType=function(){return this.assertNotTransformed("Content type"),this.metadata().contentType()},t.prototype.contentLength=function(){return this.assertNotTransformed("Content length"),this.metadata().contentLength()},t.prototype.extname=function(){if(this.raw().filename().indexOf(".")>-1){var t=/[^.\\]*$/.exec(this.raw().filename());if(t)return t[0].toLowerCase()}return""},t.prototype.equals=function(e){return e instanceof t&&e.id()===this.id()&&e.isPrivate()===this.isPrivate()&&Object(d.isEqual)(e.definition(),this.definition())},t.prototype.isImage=function(){var t=this.raw().contentType();return!!t&&"image"===t.split("/")[0]},t.prototype.definition=function(){return this._transformation||null},t.prototype.accessType=function(){return this.isPrivate()?"private_access":"public_access"},t.prototype.assertNotTransformed=function(t){if(this.isTransformed())throw new u.i('"'+t+'" is not available for transformed images. Use "Scrivito.Binary#raw" to access the untransformed version of the image.')},t.prototype.isTransformed=function(){return!!this._transformation},t}(),Q=u.O.struct({contentType:u.O.maybe(u.O.String),filename:u.O.maybe(u.O.String)}),$=u.O.refinement(u.O.Object,(function(t){return u.c.is(t)||u.f.is(t)}),"Blob or File"),G=Object(u.p)("Binary.upload",[["source",$],["options",u.O.maybe(Q)]],{docPermalink:"js-sdk/Binary-static-upload"});function Y(t,e,n,r){var i=e[0],o=e[1];switch(n){case"binary":return function(t,e){if("binary"===t&&e){var n=e.id,r="published"===rt();return new K(n,r)}return null}(i,o);case"date":return function(t,e){if("date"!==t)return null;return Object(u.t)(e)}(i,o);case"float":return function(t,e){switch(t){case"string":return e.match(/^-?\d+(\.\d+)?$/)?Z(e):null;case"number":return Z(e);default:return null}}(i,o);case"enum":return function(t,e,n){var r=n.values;if("string"===t&&p.a.contains(r,e))return e;return null}(i,o,r);case"html":return function(t,e){if(p.a.contains(["html","string"],t)&&p.a.isString(e))return e;return""}(i,o);case"integer":return function(t,e){switch(t){case"string":case"number":return Object(u.u)(e);default:return null}}(i,o);case"link":return function(t,e){if("link"!==t||!p.a.isObject(e))return null;return X(e)}(i,o);case"linklist":return function(t,e){if(!p.a.isArray(e))return[];return p.a.compact(e.map(X))}(0,o);case"multienum":return function(t,e,n){var r=n.values;if("stringlist"!==t||!Array.isArray(e))return[];return p.a.intersection(e,r)}(i,o,r);case"reference":return function(t,e,n){if("reference"===t&&e)return J(e,n);return null}(i,o,t);case"referencelist":return function(t,e,n){if("referencelist"!==t)return[];if(!e)return[];var r=e.map((function(t){return J(t,n)}));return p.a.compact(r)}(i,o,t);case"string":return function(t,e){if(p.a.contains(["html","string"],t)&&p.a.isString(e))return e;return""}(i,o);case"stringlist":return function(t,e){if("stringlist"!==t||!Array.isArray(e))return[];return e}(i,o);case"widgetlist":return function(t,e,n){if("widgetlist"!==t)return[];return p.a.map(e,(function(t){return n.widget(t)}))}(i,o,t);default:return null}}function Z(t){var e=parseFloat(t);return Object(u.B)(e)?e:null}function X(t){var e=p.a.pick(t,"query","rel","target","title","url");"fragment"in t&&(e.hash=t.fragment),"obj_id"in t&&(e.objId=t.obj_id);var n=new Tt(e);return n.isBroken()?null:n}function J(t,e){var n=Ot.getInWorkspace(e.workspaceId(),t);return n||null}var tt=function(){function t(){}return t.prototype.get=function(t,e){var n=Object(u.R)(t),i=this.getAttributeData(n);return i&&d.isArray(i)||(i=[]),"string"==typeof e?Y(this,i,e):Y.apply(r,[this,i].concat(e))},t.prototype.serializeAttributes=function(t){var e=this;return d.mapObject(t,(function(t,n){if(function(t){return d.isArray(t)&&"widgetlist"===t[0]}(t)){var r=Object(u.o)(n);return["widgetlist",d.invoke(e.get(r,["widgetlist"]),"serializeAttributes")]}return t}))},t.prototype.persistWidgets=function(t,e){d.each(e,(function(e){if(function(t){if(!t)return!1;if(!d.isArray(t))return!1;if(t.length<2)return!1;var e=t[1];return d.isArray(e)&&e.length>0&&"widgetlist"===e[0]}(e)){var n=e[0];if(n){var r=d.isArray(n)?n:[n];d.each(r,(function(e){e.isPersisted()||e.persistInObj(t)}))}}}))},t}();function et(t){return d.mapObject(t,(function(t,e){if(Object(u.z)(e))return d.isArray(t)?t:[t];if(!d.isArray(t))throw new u.g("Value for "+e+" should be a tuple: [value, typeInfo]");var n=t[0],r=t[1];return"string"==typeof r?[n,[r]]:[n,r]}))}var nt;function rt(){return nt||"published"}function it(t){nt=t}function ot(){nt=void 0}var at,st=(at=function(t,e){return(at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}at(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ut=function(t){function e(e){var n=t.call(this)||this;return n._attributesToBeSaved=et(e),function(t){if(!t)throw new u.a('Please provide a widget class as the "_objClass" property.')}(e._objClass),n}return st(e,t),e.build=function(t,n){var r=Object.create(e.prototype);return r._obj=n,r._id=t,r},e.newWithSerializedAttributes=function(t){var n={},r={};p.a.each(t,(function(t,i){if("_obj_class"!==i)if(p.a.isArray(t)&&"widgetlist"===p.a.first(t)){var o=p.a.map(p.a.last(t),(function(t){return e.newWithSerializedAttributes(t)})),a=Object(u.o)(i);n[a]=[o,["widgetlist"]]}else r[i]=t;else n._objClass=[t]}));var i=new e(n);return i.preserializedAttributes=r,i},e.prototype.id=function(){return this._failIfNotPersisted(),this._id},e.prototype.objClass=function(){return this.isPersisted()?this.getAttributeData("_obj_class"):this._attributesToBeSaved._objClass[0]},e.prototype.obj=function(){return this._failIfNotPersisted(),this._obj},e.prototype.widget=function(t){return this.obj().widget(t)},e.prototype.workspaceId=function(){return this.obj().workspaceId()},e.prototype.modification=function(){return Object(a.k)(rt(),this.obj().id(),this.id())},e.prototype.update=function(t){var e=this,n=et(t);Object(I.r)((function(){e.persistWidgets(e.obj(),n);var t=ft(n);e._updateSelf(t)}))},e.prototype.insertBefore=function(t){t.obj().insertWidget(this,{before:t})},e.prototype.insertAfter=function(t){t.obj().insertWidget(this,{after:t})},e.prototype.remove=function(){this.obj().removeWidget(this)},e.prototype.copy=function(){return this.isPersisted()?this._copyPersisted():this._copyUnpersisted()},e.prototype.persistInObj=function(t){this.persistWidgets(t,this._attributesToBeSaved);var e=ft(this._attributesToBeSaved);p.a.extend(e,this.preserializedAttributes||{}),this._obj=t,this._id=t.generateWidgetId(),this._updateSelf(e),this._executeDidPersistCallback()},e.prototype.isPersisted=function(){return!!this._obj},e.prototype.onDidPersist=function(t){if(this.isPersisted())throw new u.i('Cannot call "onDidPersist" of an already persisted widget');this._onDidPersistCallback=t},e.prototype.hasOnDidPersistCallback=function(){return!!this._onDidPersistCallback},Object.defineProperty(e.prototype,"attributesToBeSaved",{get:function(){return this._attributesToBeSaved},enumerable:!0,configurable:!0}),e.prototype.finishSaving=function(){return this.obj().finishSaving()},e.prototype.equals=function(t){return t instanceof e&&(this.id()===t.id()&&this.obj().id()===t.obj().id())},e.prototype.containingField=function(){return this.obj().fieldContainingWidget(this)},e.prototype.toPrettyPrint=function(){return"[object "+this.objClass()+' id="'+this.id()+'" objId="'+this.obj().id()+'"]'},e.prototype.getAttributeData=function(t){return this.obj().getWidgetAttribute(this.id(),t)},e.prototype.getData=function(){return this.obj().getWidgetData(this.id())},e.prototype.serializeAttributes=function(){return t.prototype.serializeAttributes.call(this,this.getData())},e.prototype._failIfNotPersisted=function(){if(!this.isPersisted())throw new u.i("Can not access a new widget before it has been saved.")},e.prototype._updateSelf=function(t){var e,n={_widgetPool:[(e={},e[this.id()]=t,e)]};this.obj().update(n)},e.prototype._executeDidPersistCallback=function(){this._onDidPersistCallback&&(this._onDidPersistCallback(this),delete this._onDidPersistCallback)},e.prototype._copyPersisted=function(){var t=this.serializeAttributes();return e.newWithSerializedAttributes(t)},e.prototype._copyUnpersisted=function(){var t=new e(p.a.mapObject(this._attributesToBeSaved,(function(t){var e=t[0],n=t[1];return n&&"widgetlist"===n[0]?[p.a.invoke(e,"copy"),n]:[e,n]})));return this._onDidPersistCallback&&t.onDidPersist(this._onDidPersistCallback),t},e}(tt);function lt(t){if(t instanceof Tt)return!0;if(!d.isObject(t))return!1;var e=d.without(d.keys(t),"hash","obj_id","query","rel","target","title","url");return d.isEmpty(e)}function ct(t){var e,n=t instanceof Tt?{rel:(e=t).rel()||void 0,query:e.query(),target:e.target(),title:e.title(),url:e.url(),obj_id:e.objId(),fragment:e.hash()}:function(t){return{obj_id:t.obj_id||null,query:t.query||null,rel:t.rel||void 0,target:t.target||null,title:t.title||null,url:t.url||null,fragment:t.hash||null}}(t);return n.rel||delete n.rel,n}function ft(t){var e={};return p.a.each(t,(function(t,n){var r=t[0],i=t[1],o=function(t){if(!Object(u.y)(t))throw new u.a("Attribute names have to be in camel case.");return Object(u.R)(t)}(n);if(Object(u.z)(o))e[o]=r;else{var a=i[0],s=i[1];e[o]=[dt(a,n),ht(pt(a,s,r,n))]}})),e}function dt(t,e){switch(t){case"enum":return"string";case"float":case"integer":return"number";case"multienum":return"stringlist";case"binary":case"date":case"html":case"link":case"linklist":case"reference":case"referencelist":case"string":case"stringlist":case"widgetlist":return t;default:throw new u.a('Attribute "'+e+'" is of unsupported type "'+t+'".')}}function pt(t,e,n,r){if(null===n)return n;switch(t){case"binary":return function(t,e){if(t instanceof K)return{id:t.id()};vt(t,e,"A Binary.")}(n,r);case"date":return function(t,e){if(p.a.isDate(t))return Object(u.w)(t);if(Object(u.A)(t))return t;vt(t,e,"A Date.")}(n,r);case"enum":return function(t,e,n){var r=t.values;if(p.a.contains(r,e))return e;vt(e,n,'Valid attribute values are contained in its "values" array ['+r+"].")}(e,n,r);case"float":return function(t,e){if(Object(u.B)(t))return t;var n=t;p.a.isNumber(t)&&(n=String(t));vt(n,e,"A Number, that is #isFinite().")}(n,r);case"html":return function(t,e){if(p.a.isString(t))return t;vt(t,e,"A String.")}(n,r);case"integer":return function(t,e){if(Object(u.C)(t))return t;vt(t,e,"A Number, that is #isSafeInteger().")}(n,r);case"link":return function(t,e){if(lt(t))return ct(t);vt(t,e,"A Link instance.")}(n,r);case"linklist":return function(t,e){if(p.a.isArray(t)&&p.a.every(t,lt))return p.a.map(t,ct);vt(t,e,"An array of Link instances.")}(n,r);case"multienum":return function(t,e,n){var r=t.values,i="An array with values from "+Object(u.I)(r)+".";p.a.isArray(e)&&p.a.every(e,p.a.isString)||vt(e,n,i);var o=p.a.difference(e,r);if(o.length){var a=i+" Forbidden values: "+Object(u.I)(o)+".";vt(e,n,a)}return e}(e,n,r);case"reference":return function(t,e){if(yt(t))return mt(t);vt(t,e,"A BasicObj or a String ID.")}(n,r);case"referencelist":return function(t,e){if(function(t){return p.a.isArray(t)&&p.a.every(t,(function(t){return yt(t)}))}(t))return p.a.map(t,mt);vt(t,e,"An array with BasicObjs or String IDs.")}(n,r);case"string":return function(t,e){if(gt(t))return t.toString();vt(t,e,"A String.")}(n,r);case"stringlist":return function(t,e){if(p.a.isArray(t)&&p.a.every(t,(function(t){return gt(t)})))return p.a.invoke(t,"toString");vt(t,e,"An array of strings.")}(n,r);case"widgetlist":return function t(e,n){if(e instanceof ut)return t([e],n);if(p.a.isArray(e)&&p.a.every(e,(function(t){return t instanceof ut})))return p.a.invoke(e,"id");vt(e,n,"An array of BasicWidget instances.")}(n,r);default:throw new u.g('serializeAttributeValue is not implemented for "'+t+'".')}}function ht(t){return(p.a.isString(t)||p.a.isArray(t))&&p.a.isEmpty(t)?null:t}function vt(t,e,n){throw new u.a("Unexpected value "+Object(u.I)(t)+' for attribute "'+e+'". Expected: '+n)}function mt(t){return t instanceof Ot?t.id():t}function yt(t){return p.a.isString(t)||t instanceof Ot}function gt(t){return p.a.isString(t)||p.a.isNumber(t)}var bt,wt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=function(t){function e(e){var n=t.call(this)||this;return n.objData=e,n}return wt(e,t),e.get=function(t){var e=this.getIncludingDeleted(t);return!e||e.isDeleted()?null:e},e.getInWorkspace=function(t,e){var n=this.getIncludingDeletedInWorkspace(t,e);return!n||n.isDeleted()?null:n},e.getIncludingDeleted=function(t){return this.getIncludingDeletedInWorkspace(rt(),t)},e.getIncludingDeletedInWorkspace=function(t,n){var r=Object(a.i)(t,n);if(!r)return null;var i=new e(r);return i.isFinallyDeleted()?null:i},e.create=function(t){return this.createInWorkspace(rt(),t)},e.createInWorkspace=function(t,e){var n=et(e);!function(t){if(!t)throw new u.a('Please provide an obj class as the "_objClass" property.')}(n._objClass),n._id||(n._id=[this.generateId()]);var r={_id:n._id,_obj_class:n._objClass};return this.createWithSerializedAttributes(t,d.mapObject(r,(function(t){return t[0]})),d.omit(e,"_objClass","_id"))},e.createFromFile=function(t,e){var n=this.create(e);return K.upload(t).intoId(n.id()).then((function(t){return n.update({blob:[t,["binary"]]}),n.finishSaving().then((function(){return n}))}))},e.addChildWithSerializedAttributes=function(t,n){var r=e.generateId();return this.createWithSerializedAttributes(rt(),d.extend({},n,{_id:r,_path:t+"/"+r}))},e.createWithSerializedAttributes=function(t,n,r){if(!r){var i=function(t){var e={},n={};d.each(t,(function(t,r){if(a=t,d.isArray(a)&&"widgetlist"===d.first(a)){var i=d.map(t[1],kt),o=Object(u.o)(r);n[o]=[i,["widgetlist"]]}else e[r]=t;var a})),e._id||(e._id=_t.generateId());return[e,n]}(n),o=i[0],s=i[1];return this.createWithSerializedAttributes(t,o,s)}var l=Object(a.d)(t,n._id);l.update(n);var c=new e(l);return c.update(r),c},e.generateId=function(){return Object(u.L)()},e.all=function(){return(new w).batchSize(1e3)},e.root=function(){return e.getByPath("/")},e.where=function(t,e,n,r){return(new w).and(t,e,n,r)},e.getByPath=function(t){var e=this.where("_path","equals",t).first();return e||null},e.getByPermalink=function(t){var e=this.where("_permalink","equals",t).first();return e||null},e.getAllByPermalink=function(t){return this.where("_permalink","equals",t).take()},e.generateWidgetId=function(){return Object(u.K)()},e.prototype.id=function(){return this.getAttributeData("_id")},e.prototype.objClass=function(){return this.getAttributeData("_obj_class")},e.prototype.obj=function(){return this},e.prototype.createdAt=function(){return Object(u.H)(this.getAttributeData("_created_at"))},e.prototype.createdBy=function(){return this.getAttributeData("_created_by")||null},e.prototype.lastChanged=function(){var t=this.getAttributeData("_last_changed");return t?Object(u.H)(t):null},e.prototype.lastChangedBy=function(){return this.getAttributeData("_last_changed_by")||null},e.prototype.version=function(){return this.getAttributeData("_version")},e.prototype.workspaceId=function(){return this.objData.workspaceId()},e.prototype.path=function(){return this.getAttributeData("_path")||null},e.prototype.permalink=function(){return this.getAttributeData("_permalink")||null},e.prototype.parentPath=function(){var t=this.path();return t&&"/"!==t?function(t){var e=t.split("/");if(e.pop(),1===e.length)return"/";return e.join("/")}(t):null},e.prototype.parent=function(){var t=this.parentPath();return t?e.getByPath(t):null},e.prototype.hasConflicts=function(){return!!this.getAttributeData("_conflicts")},e.prototype.modification=function(){return this.isFinallyDeleted()||this.getAttributeData("_marked_deleted")?"deleted":this.getAttributeData("_modification")||null},e.prototype.isModified=function(){return!!this.modification()},e.prototype.isNew=function(){return"new"===this.modification()},e.prototype.isEdited=function(){return"edited"===this.modification()},e.prototype.isDeleted=function(){return"deleted"===this.modification()},e.prototype.isFinallyDeleted=function(){return this.objData.isNonExistent()},e.prototype.contentLength=function(){return this.metadata().contentLength()},e.prototype.contentType=function(){return this.metadata().contentType()},e.prototype.contentUrl=function(){var t=this.blob();return t?t.url():""},e.prototype.metadata=function(){var t=this.blob();return t?new H(t.id()):new H},e.prototype.children=function(){var t=this.path();return t?xt(t).take():[]},e.prototype.hasChildren=function(){var t=this.path();return!!t&&xt(t).batchSize(0).count()>0},e.prototype.orderedChildren=function(){var t=this.children(),e=this.get("childOrder","referencelist");return d.isArray(e)?d.sortBy(t,(function(t){var n=d.invoke(e,"id").indexOf(t.id());return-1===n?e.length:n})):t},e.prototype.backlinks=function(){return e.where("*","linksTo",this).take()},e.prototype.ancestors=function(){var t=this.parentPath();return t?function(t){var e=["/"];if("/"===t)return e;var n=t.split("/").slice(1),r="";return n.forEach((function(t){r=r+"/"+t,e.push(r)})),e}(t).map((function(t){return e.getByPath(t)})):[]},e.prototype.isRestricted=function(){var t=this.restriction();return!!t&&t.length>0},e.prototype.restriction=function(){return this.getAttributeData("_restriction")||null},e.prototype.restrict=function(){this.isRestricted()||this.update({_restriction:[["_auth"]]})},e.prototype.unrestrict=function(){this.update({_restriction:null})},e.prototype.update=function(t){var e=this,n=et(t);Object(I.r)((function(){e.persistWidgets(e,n);var t=ft(n);e.objData.update(t)})),this.startLinkResolution()},e.prototype.destroy=function(){this.update({_markedDeleted:[!0]})},e.prototype.insertWidget=function(t,e){var n,r=function(t){if(function(t){return!!t.before}(t))return t.before.id();return t.after.id()}(e),i=this._widgetPlacementFor(r);if(i){var o=i.attributeValue,a=i.attributeName,s=i.container,u=i.index,l=e.before?u:u+1,c=o.slice(0,l).concat([t],o.slice(l));s.update(((n={})[a]=[c,["widgetlist"]],n))}},e.prototype.removeWidget=function(t){var e=this.fieldContainingWidget(t);if(e){var n=e.get(),r=d.reject(n,(function(e){return e.equals(t)}));e.update(r)}},e.prototype.siblingWidget=function(t,e){var n=this._widgetPlacementFor(t.id());if(n)return n.attributeValue[n.index+e]},e.prototype.copyAsync=function(t){return void 0===t&&(t={}),function(t){if(d.difference(d.keys(t),["_path"]).length)throw new u.a('Currently only "_path" copy option is supported.')}(t),this._copyAttributes().then((function(n){var r=d.extend(n,t),i=e.createWithSerializedAttributes(rt(),r);return i.objData.finishSaving().then((function(){return i}))}))},e.prototype.moveToAsync=function(t){return this.moveTo(t),this.finishSaving()},e.prototype.moveTo=function(t){this.update({_path:[t+"/"+this.id()]})},e.prototype.markResolvedAsync=function(){return this.update({_conflicts:[null]}),this.finishSaving()},e.prototype.finishSaving=function(){var t=this;return this.finishLinkResolution().then((function(){return t.objData.finishSaving()}))},e.prototype.equals=function(t){return t instanceof e&&this.id()===t.id()},e.prototype.widget=function(t){return this.getWidgetAttribute(t,"_obj_class")?ut.build(t,this):null},e.prototype.getWidgetAttribute=function(t,e){return this.objData.getWidgetAttribute(t,e)},e.prototype.widgets=function(){var t=this.getData();if(!jt(t))return[];var e=t._widget_pool;if(!e)return[];var n=[];return this.collectWidgets(n,t,e,{}),n},e.prototype.fieldContainingWidget=function(t){var e=t.id(),n=this._widgetPlacementFor(e);if(n){var r=n.container,i=n.attributeName;return new s(r,i,["widgetlist"])}},e.prototype.generateWidgetId=function(){for(var t=0;t<10;t++){var n=e.generateWidgetId();if(!this.widget(n))return n}throw new u.g("Could not generate a new unused widget id.")},e.prototype.serializeAttributes=function(){var e=t.prototype.serializeAttributes.call(this,this.getData());return delete e._conflicts,delete e._modification,delete e._created_at,delete e._created_by,delete e._last_changed,delete e._last_changed_by,e},e.prototype.slug=function(){var t,e=this.get("title","string");return"string"!=typeof(t=e)?"":h(t)},e.prototype.getWidgetData=function(t){return this.objData.getWidget(t)},e.prototype.startLinkResolution=function(){Object(a.l)()||Ct().startLinkResolutionFor(rt(),this.id())},e.prototype.finishLinkResolution=function(){return Ct().finishLinkResolutionFor(rt(),this.id())},e.prototype.toPrettyPrint=function(){return"[object "+this.objClass()+' id="'+this.id()+'"]'},e.prototype.getAttributeData=function(t){return this.objData.getAttribute(t)},e.prototype.getData=function(){return this.objData.get()},e.prototype.blob=function(){return this.get("blob",["binary"])},e.prototype._copyAttributes=function(){var t=e.generateId(),n=this.serializeAttributes(),r=[];return d.each(n,(function(e,i){if("_"!==i[0]){if(function(t){return"binary"===t[0]&&!!t[1]}(e)){var o=e[1],a=new q({idToCopy:o.id}).intoId(t).then((function(t){return{name:i,binary:t}}));r.push(a)}}else delete n[i]})),n._id=t,n._obj_class=this.objClass(),n._restriction=this.restriction(),this.path()&&(n._path=this.parentPath()+"/"+t),u.j.all(r).then((function(t){return d.each(t,(function(t){var e=t.name,r={id:t.binary.id()};n[e]=["binary",r]})),n}))},e.prototype.collectWidgets=function(t,e,n,r){var i=this;d.map(e,(function(t,e){if(t&&!Object(u.z)(e)){var n=t;return Object(z.h)(n)?n[1]:void 0}})).forEach((function(e){e&&e.forEach((function(e){if(!r[e]){r[e]=!0;var o=i.widget(e);if(o){t.push(o);var a=n[e];i.collectWidgets(t,a,n,r)}}}))}))},e.prototype._widgetPlacementFor=function(t){var e=this.getData();if(jt(e)){var n=Object(a.f)(e,t);if(n){var r,i=Object(u.o)(n.attributeName),o=n.parentWidgetId;if(o){if(!(r=this.widget(o)))return}else r=this;return{container:r,attributeName:i,attributeValue:r.get(i,["widgetlist"]),index:n.index,parentWidgetId:o}}}},e}(tt),Ot=_t;function kt(t){return ut.newWithSerializedAttributes(t)}function xt(t){return _t.all().and("_parentPath","equals",t)}function Ct(){if(!bt)throw new Error("No Link Handler");return bt}function Et(t){bt=t}function jt(t){return!!t&&Object(z.f)(t)}var St=function(){return(St=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Tt=function(){function t(t){this.attributes=St({},t)}return t.prototype.title=function(){return this.attributes.title||null},t.prototype.query=function(){return this.attributes.query||null},t.prototype.hash=function(){return this.attributes.hash||null},t.prototype.rel=function(){return this.attributes.rel||null},t.prototype.target=function(){return this.attributes.target||null},t.prototype.url=function(){return this.attributes.url||null},t.prototype.objId=function(){return this.attributes.objId||null},t.prototype.obj=function(){var t=this.objId();return t?Ot.get(t):null},t.prototype.queryParameters=function(){return c(this.query()||"")},t.prototype.isExternal=function(){return!!this.url()},t.prototype.isInternal=function(){return!this.isExternal()},t.prototype.equals=function(e){return e instanceof t&&(this.isExternal()?this.hash()===e.hash()&&this.query()===e.query()&&this.rel()===e.rel()&&this.target()===e.target()&&this.title()===e.title()&&this.url()===e.url():this.objId()===e.objId()&&this.title()===e.title())},t.prototype.copy=function(e){void 0===e&&(e={});var n=St({},this.attributes,e);if(e.objId&&e.url)throw new u.a('Link#copy refused: both "objId" and "url" have been specified with truthy values');return e.objId?n.url=null:e.url&&(n.objId=null),new t(n)},t.prototype.isBroken=function(){return!this.isExternal()&&!this.obj()},t.prototype.toPrettyPrint=function(){return this.isInternal()?'[object Link objId="'+this.objId()+'"]':'[object Link url="'+this.url()+'"]'},t}();function At(t){var e=t.get(),n=function(t){var e=t.getDiff();if(Object(z.i)(e))return e.content}(t);return n?Object(d.compact)(n.map((function(n){var r,i=n[0],o=n[1];switch(i){case"+":if(r=Pt(e,o))return{widget:r,modification:"new"};break;case"=":if(r=Pt(e,o))return{widget:r,modification:null};break;case"-":if(r=function(t,e){var n=Ot.getInWorkspace("published",t);if(n)return n.widget(e);return null}(t.obj().id(),o))return{widget:r,modification:"deleted"}}}))):e.map((function(t){return{widget:t,modification:null}}))}function Pt(t,e){return Object(d.find)(t,(function(t){return t.id()===e}))||null}},30:function(t,e,n){"use strict";t.exports=function(t,e,n,r,i,o,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;(u=new Error(e.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},31:function(t,e,n){"use strict";n.d(e,"f",(function(){return D})),n.d(e,"a",(function(){return R})),n.d(e,"c",(function(){return M})),n.d(e,"b",(function(){return B})),n.d(e,"d",(function(){return q})),n.d(e,"e",(function(){return F}));var r=n(17),i=n(0),o=n(7),a=n(26),s=n.n(a),u=n(30),l=n.n(u);function c(t){return"/"===t.charAt(0)}function f(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}var d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&c(t),o=e&&c(e),a=i||o;if(t&&c(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var u=r[r.length-1];s="."===u||".."===u||""===u}else s=!1;for(var l=0,d=r.length;d>=0;d--){var p=r[d];"."===p?f(r,d):".."===p?(f(r,d),l++):l&&(f(r,d),l--)}if(!a)for(;l--;l)r.unshift("..");!a||""===r[0]||r[0]&&c(r[0])||r.unshift("");var h=r.join("/");return s&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var p,h,v=function(t){return"/"===t.charAt(0)?t:"/"+t},m=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},y=function(t,e){return m(t,e)?t.substr(e.length):t},g=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},b=function(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_=function(t,e,n,r){var i=void 0;"string"==typeof t?(i=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(i=w({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=d(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},O=function(){var t=null,e=[];return{setPrompt:function(e){return s()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"==typeof t?t(e,n):t;"string"==typeof o?"function"==typeof r?r(o,i):(s()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0,r=function(){n&&t.apply(void 0,arguments)};return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}},k=!("undefined"==typeof window||!window.document||!window.document.createElement),x=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},C=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},E=function(t,e){return e(window.confirm(t))},j=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},S=function(){return-1===window.navigator.userAgent.indexOf("Trident")},T=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")},A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},N=function(){try{return window.history.state||{}}catch(t){return{}}},L=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(k,"Browser history needs a DOM");var e=window.history,n=j(),r=!S(),i=t.forceRefresh,o=void 0!==i&&i,a=t.getUserConfirmation,u=void 0===a?E:a,c=t.keyLength,f=void 0===c?6:c,d=t.basename?g(v(t.basename)):"",p=function(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return s()(!d||m(o,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+o+'" to begin with "'+d+'".'),d&&(o=y(o,d)),_(o,r,n)},h=function(){return Math.random().toString(36).substr(2,f)},w=O(),L=function(t){P(X,t),X.length=e.length,w.notifyListeners(X.location,X.action)},I=function(t){T(t)||M(p(t.state))},D=function(){M(p(N()))},R=!1,M=function(t){if(R)R=!1,L();else{w.confirmTransitionTo(t,"POP",u,(function(e){e?L({action:"POP",location:t}):B(t)}))}},B=function(t){var e=X.location,n=F.indexOf(e.key);-1===n&&(n=0);var r=F.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(R=!0,W(i))},q=p(N()),F=[q.key],z=function(t){return d+b(t)},U=function(t,r){s()(!("object"===(void 0===t?"undefined":A(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=_(t,r,h(),X.location);w.confirmTransitionTo(i,"PUSH",u,(function(t){if(t){var r=z(i),a=i.key,u=i.state;if(n)if(e.pushState({key:a,state:u},null,r),o)window.location.href=r;else{var l=F.indexOf(X.location.key),c=F.slice(0,-1===l?0:l+1);c.push(i.key),F=c,L({action:"PUSH",location:i})}else s()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}}))},H=function(t,r){s()(!("object"===(void 0===t?"undefined":A(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=_(t,r,h(),X.location);w.confirmTransitionTo(i,"REPLACE",u,(function(t){if(t){var r=z(i),a=i.key,u=i.state;if(n)if(e.replaceState({key:a,state:u},null,r),o)window.location.replace(r);else{var l=F.indexOf(X.location.key);-1!==l&&(F[l]=i.key),L({action:"REPLACE",location:i})}else s()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}}))},W=function(t){e.go(t)},V=function(){return W(-1)},K=function(){return W(1)},Q=0,$=function(t){1===(Q+=t)?(x(window,"popstate",I),r&&x(window,"hashchange",D)):0===Q&&(C(window,"popstate",I),r&&C(window,"hashchange",D))},G=!1,Y=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=w.setPrompt(t);return G||($(1),G=!0),function(){return G&&(G=!1,$(-1)),e()}},Z=function(t){var e=w.appendListener(t);return $(1),function(){$(-1),e()}},X={length:e.length,action:"POP",location:q,createHref:z,push:U,replace:H,go:W,goBack:V,goForward:K,block:Y,listen:Z};return X},I=(Object.assign,"function"==typeof Symbol&&Symbol.iterator,Object.assign,0);function D(t){if("/"!==t.createHref({pathname:"/"}))throw new i.a("Expected a history without a preconfigured basename. For further details, see: https://www.scrivito.com/js-sdk/useHistory");if(t!==p){var e=!p;!function(t){h&&h();h=t.listen(H)}(t),p=t,e||H()}}function R(){var t=U().location;return""+t.pathname+t.search+t.hash}function M(){return""+r.f().origin+R()}function B(){return W().get()||0}function q(t){return U().push(t)}function F(t){return U().replace(t)}function z(){p||D(L())}function U(){return z(),p}function H(){I++,W().set(I)}function W(){return o.b.subState("historyChangesCount")}},32:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return u}));var r=n(0),i=n(3),o=r.O.list(r.O.union([r.O.Function,r.O.list(r.O.union([r.O.String,r.O.Function,r.O.Object]))]));var a={};function s(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];h.apply(void 0,[t,e].concat(n)),a[t]=e}function u(t,e){var n=a[t];if(n)return n[e]}var l=r.O.struct({value:r.O.String,title:r.O.String}),c=r.O.dict(r.O.String,r.O.struct({title:r.O.maybe(r.O.String),description:r.O.maybe(r.O.String),values:r.O.maybe(r.O.list(l))})),f=r.O.list(r.O.struct({title:r.O.String,component:r.O.maybe(r.O.String),properties:r.O.maybe(r.O.list(r.O.String))})),d=r.O.dict(r.O.String,r.O.union([i.LinkType,r.O.Date,r.O.Function,r.O.Nil,r.O.Number,r.O.String,r.O.list(i.LinkType),r.O.list(i.WidgetType),r.O.list(r.O.String)])),p=r.O.struct({attributes:r.O.maybe(c),propertiesGroups:r.O.maybe(f),title:r.O.maybe(r.O.String),description:r.O.maybe(r.O.String),thumbnail:r.O.maybe(r.O.String),titleForContent:r.O.maybe(r.O.Function),descriptionForContent:r.O.maybe(r.O.Function),hideInSelectionDialogs:r.O.maybe(r.O.Boolean),properties:r.O.maybe(r.O.list(r.O.String)),initialContent:r.O.maybe(d),validations:r.O.maybe(o)}),h=Object(r.p)("provideEditingConfig",[["className",r.O.String],["editingConfig",p]],{docPermalink:"js-sdk/provideEditingConfig"})},33:function(t,e){t.exports=function(t){return"function"==typeof t}},34:function(t,e,n){var r=n(33),i=n(46);t.exports=function(t){return r(t)&&i(t.meta)}},35:function(t,e,n){"use strict";n.d(e,"d",(function(){return f})),n.d(e,"f",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return h})),n.d(e,"b",(function(){return v})),n.d(e,"a",(function(){return m}));var r,i,o=n(10),a=n(24),s=n(0),u=n(7),l=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){return t.call(this,e)||this}return l(e,t),e}(s.i);function f(t){i=t}function d(){return!!i}function p(t){var e=i(Object(o.f)(Object(a.a)(),t));return"string"==typeof e&&e.length>0?e:null}function h(t){if(!i)throw new c("Scrivito.unstable_selectSiteId is only available in the multi-site mode");if(v())throw new c("Scrivito.unstable_selectSiteId can be called only once");if("string"!=typeof t||!t)throw new c("Scrivito.unstable_selectSiteId can only be called with a non-empty string");y().set(t)}function v(){if(!i)throw new s.g("Calling getSelectedSiteId is only available in multi-site mode");return y().get()||null}function m(t){if(!v())throw new c("Used "+t+" in the multi-site mode, but the site ID is not yet selected. Forgot to use Scrivito.unstable_selectSiteId?")}function y(){return u.b.subState("selectedSiteId")}},36:function(t,e,n){n(21),n(70),n(33),n(64);t.exports=function(t,e){function n(t,e){return t}return n.meta={kind:"irreducible",name:t,predicate:e,identity:!0},n.displayName=t,n.is=e,n}},37:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(14);function i(){if(!r.b)throw new Error("Not expected to be rendered without UI");return r.b}},38:function(t,e,n){var r=n(45),i=n(70);t.exports=function(t){return r(t)||i(t)}},39:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(10),i=n(86),o={};function a(){return o}r.c.init(o).setInitialContentFor(i.a)},41:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},42:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));var r=n(14),i=n(25);function o(t){r.b?r.b.navigateToExternalUrl(t):a(t)}function a(t){window.location.assign(t)}function s(t,e){window.open(t,e)}function u(t){r.b&&Object(i.f)(t)?r.b.openInNewUiWindow(t):s(t,"_blank")}},43:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"b",(function(){return h}));var r=n(3),i=n(0),o=n(11),a=n(10),s=n(44),u=n(24),l=Object.freeze({}),c=new i.d;function f(){Object(o.c)("Scrivito.currentPage");var t=v();return t.page?Object(a.f)(Object(u.a)(),t.page):null}function d(){return Object(o.c)("Scrivito.currentPageParams"),v().queryParameters||l}function p(t,e){return c.runWith({page:t,queryParameters:l},e)}function h(){return null===v().page}function v(){return c.current()||function(){var t=Object(s.a)();if(void 0===t)return;if(!Object(s.c)(t))return{page:t.page};return{page:r.BasicObj.get(t.objId),queryParameters:t.queryParameters}}()||{}}},44:function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return v}));var r=n(3),i=n(7),o=n(5),a=n(42),s=n(31),u=n(51),l=n(25),c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]])}return n},f={type:"not found",page:null},d={type:"not responsible"};function p(){var t=Object(o.loadableWithDefault)(void 0,(function(){return new o.LoadableData({state:i.b.subState("currentPage"),invalidation:function(){return s.b()},loader:m}).get()}));if(t&&h(t)&&!r.BasicObj.get(t.objId))return f;return t}function h(t){return"page"===t.type}function v(t){return"not found"===t.type}function m(){return Object(o.load)((function(){return function(){var t=s.a();return{route:Object(l.g)(t),location:t}}()})).then(y)}function y(t){var e=t.route,n=t.location;if(null===e.path)return d;var r=e.obj;if(!r)return f;if(!Object(u.a)(r)){var i=e.queryParameters,a=(i._scrivito_workspace_id,i._scrivito_editing,i._scrivito_comparison,c(i,["_scrivito_workspace_id","_scrivito_editing","_scrivito_comparison"]));return{type:"page",objId:r.id(),queryParameters:a,location:n}}var s=Object(o.load)((function(){return function(t){var e=t.get("blob",["binary"]),n=e?e.url():null;if(!n)return f;return{type:"binary",objId:t.id(),url:n,page:!1}}(r)}));return s.then(g),s}function g(t){"binary"===t.type&&Object(a.a)(t.url)}},45:function(t,e){t.exports=function(t){return null==t}},46:function(t,e,n){var r=n(45),i=n(47);t.exports=function(t){return!r(t)&&"object"==typeof t&&!i(t)}},47:function(t,e){t.exports=function(t){return Array.isArray?Array.isArray(t):t instanceof Array}},48:function(t,e,n){n(21),n(127);var r=n(34);n(29);t.exports=function(t){return!r(t)||t.meta.identity}},49:function(t,e,n){var r=n(34);n(63),n(21),n(126);t.exports=function(t,e,n){return r(t)?t.meta.identity||"object"!=typeof e||null===e?t(e,n):new t(e,n):e}},5:function(t,e,n){"use strict";n.r(e),n.d(e,"loadAllUntil",(function(){return r.default})),n.d(e,"capture",(function(){return s})),n.d(e,"CaptureList",(function(){})),n.d(e,"CaptureReport",(function(){return c})),n.d(e,"isCurrentlyCapturing",(function(){return l})),n.d(e,"LoadingSubscriber",(function(){return f})),n.d(e,"load",(function(){return p})),n.d(e,"LoadableData",(function(){return T})),n.d(e,"reportUsedData",(function(){return N})),n.d(e,"LoaderApi",(function(){})),n.d(e,"LoaderCallback",(function(){})),n.d(e,"LoadableState",(function(){})),n.d(e,"loadableWithDefault",(function(){return L})),n.d(e,"loadWithDefault",(function(){return I})),n.d(e,"mapAndLoadParallel",(function(){return M})),n.d(e,"runAndCatchErrorsWhileLoading",(function(){return B})),n.d(e,"RunResult",(function(){})),n.d(e,"NotLoadedError",(function(){return k})),n.d(e,"DataRecording",(function(){})),n.d(e,"loadRecording",(function(){return z})),n.d(e,"generateRecording",(function(){return H})),n.d(e,"LoadableCollection",(function(){return q})),n.d(e,"LoadableCollectionState",(function(){})),n.d(e,"observeAndLoad",(function(){return V}));var r=n(117),i=n(0),o=new i.d,a=function(){return o.current()};function s(t){var e={subscribes:[],missing:!1,outdated:!1},n=o.runWith(e,t);return new c(e,n)}function u(){throw new i.i("Content not yet loaded. Forgot to use Scrivito.load or Scrivito.connect? See https://scrivito.com/content-not-yet-loaded-error")}function l(){return void 0!==a()}var c=function(){function t(t,e){this.captureList=t,this.result=e}return t.prototype.forwardToCurrent=function(){var t,e,n=a();n?(t=n,e=this.captureList,t.subscribes=t.subscribes.concat(e.subscribes),t.missing=t.missing||e.missing,t.outdated=t.outdated||e.outdated):this.captureList.missing&&u()},t.prototype.isAllDataLoaded=function(){return!this.captureList.missing},t.prototype.isAllDataUpToDate=function(){return!this.captureList.missing&&!this.captureList.outdated},t.prototype.subscribeLoading=function(t){var e=this.captureList.subscribes.map((function(t){return t()}));t.unsubscribe(),t.storeUnsubscribe((function(){e.forEach((function(t){return t()}))}))},t}(),f=function(){function t(){}return t.prototype.storeUnsubscribe=function(t){this.unsubscribeCallback=t},t.prototype.unsubscribe=function(){this.unsubscribeCallback&&this.unsubscribeCallback()},t}();var d=n(7);function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.apply(void 0,[t].concat(e));var r=new i.e,o=V((function(){return Object(i.M)((function(){return Object(d.s)({contextName:"Scrivito.load",message:"Use an async callback: Scrivito.load(/* ... */).then(/* ... */)."},t)}))}),(function(t){if(t.allDataUpToDate){o.unsubscribe();var e=t.result;e.errorThrown?r.reject(e.error):r.resolve(e.result)}}));return r.promise}var h=Object(i.p)("load",[["loadableFunction",i.O.Function]],{docPermalink:"js-sdk/load"}),v=function(){function t(t){this.container=t}return t.prototype.reader=function(){return this.container.reader().subState("value")},t.prototype.status=function(){return this.getStateKey("status")||"MISSING"},t.prototype.value=function(){return this.getStateKey("value")},t.prototype.error=function(){return this.getStateKey("error")},t.prototype.version=function(){return this.getStateKey("version")},t.prototype.transitionToMissing=function(){this.setState(void 0)},t.prototype.transitionToAvailable=function(t,e){this.setState({status:"AVAILABLE",value:t,version:e})},t.prototype.transitionToError=function(t,e){this.setState({status:"ERROR",error:t,version:e})},t.prototype.setState=function(t){this.container.set(t)},t.prototype.getStateKey=function(t){return this.container.subState(t).get()},t}(),m={},y={};function g(t,e){var n=!0;b(t,1);var r=m[t];r||(m[t]=e);var i=r||e;return i.notifyDataRequired(),function(){n&&(n=!1,b(t,-1)<1&&i.notifyDataNoLongerRequired())}}function b(t,e){var n=(y[t]||0)+e;return y[t]=n,n}function w(t){var e=m[t];e&&e.notifyDataWasSet()}var _,O=(_=function(t,e){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),k=function(t){function e(){return t.call(this,"Data is not yet loaded.",!1)||this}return O(e,t),e}(i.i),x=function(){function t(t,e){this.loadableValue=t,this.stream=e,this.streamRequired=!1,this.hasBufferedValue=!1,this.isUpdateEnqueued=!1}return t.prototype.notifyDataRequired=function(){this.streamRequired=!0,this.enqueueUpdate()},t.prototype.notifyDataNoLongerRequired=function(){this.streamRequired=!1,this.enqueueUpdate()},t.prototype.notifyDataWasSet=function(){},t.prototype.enqueueUpdate=function(){var t=this;this.isUpdateEnqueued||(Object(i.G)((function(){return t.update()})),this.isUpdateEnqueued=!0)},t.prototype.update=function(){this.isUpdateEnqueued=!1,this.streamRequired?(this.hasBufferedValue&&(this.loadableValue.transitionToAvailable(this.bufferedValue),this.clearBuffer()),this.ensureStreamIsOpen()):this.ensureStreamIsClosed()},t.prototype.ensureStreamIsOpen=function(){var t=this;this.subscription||(this.subscription=this.stream.subscribe((function(e){t.bufferValue(e),t.enqueueUpdate()})))},t.prototype.ensureStreamIsClosed=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0),this.loadableValue.transitionToMissing(),this.clearBuffer()},t.prototype.bufferValue=function(t){this.bufferedValue=t,this.hasBufferedValue=!0},t.prototype.clearBuffer=function(){this.hasBufferedValue=!1,this.bufferedValue=void 0},t}(),C=0,E=function(){function t(t,e,n){this.value=t,this.loader=e,this.invalidation=n}return t.prototype.notifyDataRequired=function(){this.triggerLoading()},t.prototype.notifyDataNoLongerRequired=function(){},t.prototype.notifyDataWasSet=function(){this.currentLoad=void 0},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.hasBeenInvalidated=function(){return j(this.value,this.invalidation)},t.prototype.currentVersion=function(){return S(this.invalidation)},t.prototype.triggerLoading=function(){var t=this;if(!this.isLoading()&&(this.isMissing()||this.hasBeenInvalidated())){var e=this.currentVersion(),n=C++,r=function(){return t.currentLoad===n},i=function(e){r()&&Object(d.a)((function(){e(),t.notifyDataWasSet(),a()}))},o=[],a=function(){return o.forEach((function(t){return t()}))};this.loader({push:function(t){return o.push(t)},isReload:function(){return t.hasBeenInvalidated()},wasCancelled:function(){return!r()}}).then((function(n){return i((function(){return t.value.transitionToAvailable(n,e)}))}),(function(n){return i((function(){return t.value.transitionToError(n,e)}))})),this.currentLoad=n}},t.prototype.isLoading=function(){return void 0!==this.currentLoad},t}();function j(t,e){return!!e&&("MISSING"!==t.status()&&S(e)!==t.version())}function S(t){if(t){var e=t();if("number"==typeof e&&isNaN(e)){var n="invalidation callback returned unsuitable version "+e;throw new i.g(n)}return e}}var T=function(){function t(t){if(!t.state)throw new i.g("LoadableData needs state");this.value=new v(t.state),this.invalidation=t.invalidation,this.throwNotLoaded=t.throwNotLoaded||!1,this.id=t.state.id(),t.stream?this.loaderProcess=new x(this.value,t.stream):this.loaderProcess=new E(this.value,t.loader,t.invalidation)}return t.prototype.ensureAvailable=function(){var t,e,n=this;if(t=function(){return g(n.id,n.loaderProcess)},(e=a())&&e.subscribes.push(t),this.isAvailable())return this.notifyIfOutdated(),!0;if(this.isError())throw this.notifyIfOutdated(),this.value.error();if(l()||(g(this.id,this.loaderProcess),u()),function(){var t=a();t&&(t.missing=!0)}(),this.throwNotLoaded)throw new k;return!1},t.prototype.get=function(){if(this.ensureAvailable())return P(this.id,this),this.value.value()},t.prototype.reader=function(){return P(this.id,this),this.value.reader()},t.prototype.set=function(t){this.value.transitionToAvailable(t,this.currentVersion()),w(this.id)},t.prototype.setError=function(t){this.transitionToError(t),w(this.id)},t.prototype.reset=function(){this.value.transitionToMissing()},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.isAvailable=function(){return"AVAILABLE"===this.value.status()},t.prototype.isError=function(){return"ERROR"===this.value.status()},t.prototype.numSubscribers=function(){return t=this.id,y[t]||0;var t},t.prototype.transitionToError=function(t,e){void 0===e&&(e=this.currentVersion()),this.value.transitionToError(t,e)},t.prototype.notifyIfOutdated=function(){var t;j(this.value,this.invalidation)&&(t=a())&&(t.outdated=!0)},t.prototype.currentVersion=function(){return S(this.invalidation)},t}(),A=new i.d;function P(t,e){var n=A.current();n&&(n[t]=e)}function N(t){var e,n={};return{result:A.runWith(n,t),usedData:(e=n,Object.keys(e).map((function(t){return e[t]})))}}function L(t,e){var n=s((function(){return I(t,e)}));return l()&&n.forwardToCurrent(),n.result}function I(t,e){var n=B(e);return n.allDataLoaded?n.result:t}var D=n(2),R=n.n(D);function M(t,e){var n=[];if(R.a.each(t,(function(t){var r=B((function(){return e(t)}));r.success&&n.push(r.result)})),n.length<t.length)throw new k;return n}function B(t){var e=s((function(){return Object(i.M)(t)}));e.forwardToCurrent();var n=e.result,r=e.isAllDataLoaded();if(!n.errorThrown)return{success:!0,result:n.result,allDataLoaded:r};if(!r)return{success:!1,allDataLoaded:!1};throw n.error}var q=function(){function t(t){var e=t.name,n=t.state,r=t.loader,o=t.invalidation;this.name=e,this.state=n,this.loader=r,this.invalidation=o,function(t,e){if(F[t])throw new i.g("collection name registered twice: "+t);F[t]=e}(e,this)}return t.prototype.get=function(t,e){var n=this,r=function(t){if("string"==typeof t)return t;return Object(i.s)(t)}(t),o=this.invalidation,a=new T({state:this.state().subState(r),loader:function(r){return n.loader(t,r,e)},invalidation:o?function(){return o(t)}:void 0});return function(t,e){t.affiliation=e}(a,{collectionName:this.name,key:t}),a},t}();var F={};function z(t){Object(d.r)((function(){return t.forEach(U)}))}function U(t){var e=t[0],n=t[1],r=t[2];(function(t){var e=F[t];if(!e)throw new i.g("collection with name "+t+" not found");return e})(e).get(n).set(r)}function H(t){return t.map(W)}function W(t){var e=function(t){return t.affiliation}(t);if(!e)throw new i.g("Tried to record a LoadableData without affiliation");return[e.collectionName,e.key,t.get()]}function V(t,e){var n=new f,r=Object(d.k)((function(){return s((function(){return Object(i.M)(t)}))}),(function(t){t.subscribeLoading(n);var r=t.result;if(r.errorThrown){if(!t.isAllDataUpToDate())return;throw r.error}e({result:r.result,allDataLoaded:t.isAllDataLoaded(),allDataUpToDate:t.isAllDataUpToDate()})}));return{forceRefresh:function(){return r.forceRefresh()},unsubscribe:function(){r.unsubscribe(),n.unsubscribe()}}}},50:function(t,e,n){var r=n(34);t.exports=function(t,e){return r(e)?e.is(t):t instanceof e}},51:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(10),i=n(39);function o(t){var e=t.objClass();if(!e)return!1;var n=Object(i.a)().getClass(e);return!!n&&r.b.forClass(n).isBinary()}},52:function(t,e,n){"use strict";n.r(e),n.d(e,"ScrivitoError",(function(){return o})),n.d(e,"ArgumentError",(function(){return a})),n.d(e,"InternalError",(function(){return s})),n.d(e,"ResourceNotFoundError",(function(){return u}));var r,i=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=function(t){function e(e,n){var r=this.constructor;void 0===n&&(n=!0);var i=t.call(this,e)||this,o=r.prototype;if(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o,i._captureStackTrace=n,n)if(Error.captureStackTrace)Error.captureStackTrace(i,i.constructor);else{var a=void 0;try{throw new Error}catch(t){a=t.stack}Object.defineProperty(i,"stack",{value:a})}return i}return i(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"captureStackTrace",{get:function(){return!!this._captureStackTrace},enumerable:!0,configurable:!0}),e}(Error),a=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),s=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),u=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o)},53:function(t,e,n){var r,i,o;

/*!

* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/i="undefined"!=typeof window?window:this,o=function(n,i){var o=[],a=o.slice,s=o.concat,u=o.push,l=o.indexOf,c={},f=c.toString,d=c.hasOwnProperty,p={},h=function(t,e){return new h.fn.init(t,e)},v=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,m=/^-ms-/,y=/-([\da-z])/gi,g=function(t,e){return e.toUpperCase()};function b(t){var e=t.length,n=h.type(t);return"function"!==n&&!h.isWindow(t)&&(!(1!==t.nodeType||!e)||"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}h.fn=h.prototype={jquery:"1.11.1",constructor:h,selector:"",length:0,toArray:function(){return a.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:a.call(this)},pushStack:function(t){var e=h.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return h.each(this,t,e)},map:function(t){return this.pushStack(h.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:u,sort:o.sort,splice:o.splice},h.extend=h.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||h.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(i=arguments[s]))for(r in i)t=a[r],a!==(n=i[r])&&(l&&n&&(h.isPlainObject(n)||(e=h.isArray(n)))?(e?(e=!1,o=t&&h.isArray(t)?t:[]):o=t&&h.isPlainObject(t)?t:{},a[r]=h.extend(l,o,n)):void 0!==n&&(a[r]=n));return a},h.extend({expando:"jQuery"+("1.11.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===h.type(t)},isArray:Array.isArray||function(t){return"array"===h.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!h.isArray(t)&&t-parseFloat(t)>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==h.type(t)||t.nodeType||h.isWindow(t))return!1;try{if(t.constructor&&!d.call(t,"constructor")&&!d.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(p.ownLast)for(e in t)return d.call(t,e);for(e in t);return void 0===e||d.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[f.call(t)]||"object":typeof t},globalEval:function(t){t&&h.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(t){return t.replace(m,"ms-").replace(y,g)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r=0,i=t.length,o=b(t);if(n){if(o)for(;r<i&&!1!==e.apply(t[r],n);r++);else for(r in t)if(!1===e.apply(t[r],n))break}else if(o)for(;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(v,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(b(Object(t))?h.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){var r;if(e){if(l)return l.call(e,t,n);for(r=e.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;)t[i++]=e[r++];if(n!=n)for(;void 0!==e[r];)t[i++]=e[r++];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i=0,o=t.length,a=[];if(b(t))for(;i<o;i++)null!=(r=e(t[i],i,n))&&a.push(r);else for(i in t)null!=(r=e(t[i],i,n))&&a.push(r);return s.apply([],a)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(i=t[e],e=t,t=i),h.isFunction(t))return n=a.call(arguments,2),(r=function(){return t.apply(e||this,n.concat(a.call(arguments)))}).guid=t.guid=t.guid||h.guid++,r},now:function(){return+new Date},support:p}),h.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var w=

/*!

* Sizzle CSS Selector Engine v1.10.19
* http://sizzlejs.com/
*
* Copyright 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-04-18
*/

function(t){var e,n,r,i,o,a,s,u,l,c,f,d,p,h,v,m,y,g,b,w=“sizzle”+-new Date,_=t.document,O=0,k=0,x=rt(),C=rt(),E=rt(),j=function(t,e){return t===e&&(f=!0),0},S={}.hasOwnProperty,T=[],A=T.pop,P=T.push,N=T.push,L=T.slice,I=T.indexOf||function(t){for(var e=0,n=this.length;e===t)return e;return-1},D=“checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped”,R=“”,M=“(?:\\.||[^\x00-\xa0])+”,B=M.replace(“w”,“w#”),q=“\[”R“*(”M“)(?:”R“*(?=)”R“*(?:‘((?:\\.|)*)’|"((?:\\.|[^\\"])*)"|(”B“))|)”R“*\]”,F=“:(”M“)(?:\(((‘((?:\\.|)*)’|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|”q“)*)|.*)\)|)”,z=new RegExp(“^”R“+|((?:^|)(?:\\.)*)”R“+$”,“g”),U=new RegExp(“^”R“*,”R“*”),H=new RegExp(“^”R”*(‘"]*?)“R”*\]“,”g“),V=new RegExp(F),K=new RegExp(”^“B”$“),Q={ID:new RegExp(”^#(“M”)“),CLASS:new RegExp(”^\.(“M”)“),TAG:new RegExp(”^(“+M.replace(”w“,”w*“)+”)“),ATTR:new RegExp(”^“+q),PSEUDO:new RegExp(”^“+F),CHILD:new RegExp(”^:(only|first|last|nth|nth-last)-(child|of-type)(?:\(“R”*(even|odd|((|)(\d*)n|)“R”*(?:(|)“R”*(\d+)|))“R”*\)|)“,”i“),bool:new RegExp(”^(?:“D”)$“,”i“),needsContext:new RegExp(”^“R“*\)|)(?=|$)”,“i”)},$=/^(?:input|select|textarea|button)$/i,G=/^hd$/i,Y=/^+{s*[native w/,Z=/^(?:#([w-]+)|(w+)|.([w-]+))$/,X=//,J=/’|\/g,tt=new RegExp(“\\({1,6}”R“?|(”R“)|.)”,“ig”),et=function(t,e,n){var r=“0x”+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{N.apply(T=L.call(_.childNodes),_.childNodes),T.nodeType}catch(t){N={apply:T.length?function(t,e){P.apply(t,L.call(e))}:function(t,e){for(var n=t.length,r=0;t=e;);t.length=n-1}}}function nt(t,e,r,i){var o,s,l,c,f,h,y,g,O,k;if((e?e.ownerDocument||e:_)!==p&&d(e),r=r||[],!t||“string”!=typeof t)return r;if(1!==(c=(e=e||p).nodeType)&&9!==c)return[];if(v&&!i){if(o=Z.exec(t))if(l=o){if(9===c){if(!(s=e.getElementById(l))||!s.parentNode)return r;if(s.id===l)return r.push(s),r}else if(e.ownerDocument&&(s=e.ownerDocument.getElementById(l))&&b(e,s)&&s.id===l)return r.push(s),r}else{if(o)return N.apply(r,e.getElementsByTagName(t)),r;if((l=o)&&n.getElementsByClassName&&e.getElementsByClassName)return N.apply(r,e.getElementsByClassName(l)),r}if(n.qsa&&(!m||!m.test(t))){if(g=y=w,O=e,k=9===c&&t,1===c&&“object”!==e.nodeName.toLowerCase()){for(h=a(t),(y=e.getAttribute(“id”))?g=y.replace(J,“\$&”):e.setAttribute(“id”,g),g=“[id=‘”g“’] ”,f=h.length;f–;)h=g+pt(h);O=X.test(t)&&ft(e.parentNode)||e,k=h.join(“,”)}if(k)try{return N.apply(r,O.querySelectorAll(k)),r}catch(t){}finally{y||e.removeAttribute(“id”)}}}return u(t.replace(z,“$1”),e,r,i)}function rt(){var t=[];return function e(n,i){return t.push(n+“ ”)>r.cacheLength&&delete e,e[n+“ ”]=i}}function it(t){return t=!0,t}function ot(t){var e=p.createElement(“div”);try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function at(t,e){for(var n=t.split(“|”),i=t.length;i–;)r.attrHandle[n]=e}function st(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if®return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ut(t){return function(e){return“input”===e.nodeName.toLowerCase()&&e.type===t}}function lt(t){return function(e){var n=e.nodeName.toLowerCase();return(“input”===n||“button”===n)&&e.type===t}}function ct(t){return it((function(e){return e=+e,it((function(n,r){for(var i,o=t([],n.length,e),a=o.length;a–;)n[i=o]&&(n=!(r=n))}))}))}function ft(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=nt.support={},o=nt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&“HTML”!==e.nodeName},d=nt.setDocument=function(t){var e,i=t?t.ownerDocument||t:_,a=i.defaultView;return i!==p&&9===i.nodeType&&i.documentElement?(p=i,h=i.documentElement,v=!o(i),a&&a!==a.top&&(a.addEventListener?a.addEventListener(“unload”,(function(){d()}),!1):a.attachEvent&&a.attachEvent(“onunload”,(function(){d()}))),n.attributes=ot((function(t){return t.className=“i”,!t.getAttribute(“className”)})),n.getElementsByTagName=ot((function(t){return t.appendChild(i.createComment(“”)),!t.getElementsByTagName(“*”).length})),n.getElementsByClassName=Y.test(i.getElementsByClassName)&&ot((function(t){return t.innerHTML=“<div class=‘a’></div><div class=‘a i’></div>”,t.firstChild.className=“i”,2===t.getElementsByClassName(“i”).length})),n.getById=ot((function(t){return h.appendChild(t).id=w,!i.getElementsByName||!i.getElementsByName(w).length})),n.getById?(r.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n=e.getElementById(t);return n&&n.parentNode?:[]}},r.filter.ID=function(t){var e=t.replace(tt,et);return function(t){return t.getAttribute(“id”)===e}}):(delete r.find.ID,r.filter.ID=function(t){var e=t.replace(tt,et);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode(“id”);return n&&n.value===e}}),r.find.TAG=n.getElementsByTagName?function(t,e){if(void 0!==e.getElementsByTagName)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if(“*”===t){for(;n=o;)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&v)return e.getElementsByClassName(t)},y=[],m=,(n.qsa=Y.test(i.querySelectorAll))&&(ot((function(t){t.innerHTML=“<select msallowclip=”><option selected=”>”,t.querySelectorAll(“”).length&&m.push(“=”R“*(?:”|"")”),t.querySelectorAll(“”).length||m.push(“\[”R“*(?:value|”D“)”),t.querySelectorAll(“:checked”).length||m.push(“:checked”)})),ot((function(t){var e=i.createElement(“input”);e.setAttribute(“type”,“hidden”),t.appendChild(e).setAttribute(“name”,“D”),t.querySelectorAll(“”).length&&m.push(“name”R[^$|!~]?=”),t.querySelectorAll(“:enabled”).length||m.push(“:enabled”,“:disabled”),t.querySelectorAll(“*,:x”),m.push(“,.*:”)}))),(n.matchesSelector=Y.test(g=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ot((function(t){n.disconnectedMatch=g.call(t,“div”),g.call(t,“:x”),y.push(“!=”,F)})),m=m.length&&new RegExp(m.join(“|”)),y=y.length&&new RegExp(y.join(“|”)),e=Y.test(h.compareDocumentPosition),b=e||Y.test(h.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains®:t.compareDocumentPosition&&16&t.compareDocumentPosition®))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},j=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===i||t.ownerDocument===_&&b(_,t)?-1:e===i||e.ownerDocument===_&&b(_,e)?1:c?I.call(c,t)-I.call(c,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,o=t.parentNode,a=e.parentNode,s=,u=;if(!o||!a)return t===i?-1:e===i?1:o?-1:a?1:c?I.call(c,t)-I.call(c,e):0;if(o===a)return st(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;s===u;)r++;return r?st(s,u):s===_?-1:u===_?1:0},i):p},nt.matches=function(t,e){return nt(t,null,null,e)},nt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&d(t),e=e.replace(W,“=‘$1’]”),n.matchesSelector&&v&&(!y||!y.test(e))&&(!m||!m.test(e)))try{var r=g.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return nt(e,p,null,).length>0},nt.contains=function(t,e){return(t.ownerDocument||t)!==p&&d(t),b(t,e)},nt.attr=function(t,e){(t.ownerDocument||t)!==p&&d(t);var i=r.attrHandle,o=i&&S.call(r.attrHandle,e.toLowerCase())?i(t,e,!v):void 0;return void 0!==o?o:n.attributes||!v?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},nt.error=function(t){throw new Error(“Syntax error, unrecognized expression: ”+t)},nt.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(j),f){for(;e=t;)e===t&&(i=r.push(o));for(;i–;)t.splice(r,1)}return c=null,t},i=nt.getText=function(t){var e,n=“”,r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if(“string”==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t;)n+=i(e);return n},(r=nt.selectors={cacheLength:50,createPseudo:it,match:Q,attrHandle:{},find:{},relative:{“>”:{dir:“parentNode”,first:!0},“ ”:{dir:“parentNode”},“+”:{dir:“previousSibling”,first:!0},“~”:{dir:“previousSibling”}},preFilter:{ATTR:function(t){return t=t.replace(tt,et),t=(t||t||t||“”).replace(tt,et),“~=”===t&&(t=“ ”t[3]“ ”),t.slice(0,4)},CHILD:function(t){return t=t.toLowerCase(),“nth”===t.slice(0,3)?(t||nt.error(t),t=+(t?t+(t||1):2*(“even”===t||“odd”===t)),t=+(t+t||“odd”===t)):t&&nt.error(t),t},PSEUDO:function(t){var e,n=!t&&t;return Q.CHILD.test(t)?null:(t?t=t||t||“”:n&&V.test(n)&&(e=a(n,!0))&&(e=n.indexOf(“)”,n.length-e)-n.length)&&(t=t.slice(0,e),t=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(tt,et).toLowerCase();return“*”===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=x[t+“ ”];return e||(e=new RegExp(“(^|”R“)”t“(”R“|$)”))&&x(t,(function(t){return e.test(“string”==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute(“class”)||“”)}))},ATTR:function(t,e,n){return function®{var i=nt.attr(r,t);return null==i?“!=”===e:!e||(i+=“”,“=”===e?i===n:“!=”===e?i!==n:“^=”===e?n&&0===i.indexOf(n):“*=”===e?n&&i.indexOf(n)>-1:“$=”===e?n&&i.slice(-n.length)===n:“~=”===e?(“ ”i“ ”).indexOf(n)>-1:“|=”===e&&(i===n||i.slice(0,n.length+1)===n+“-”))}},CHILD:function(t,e,n,r,i){var o=“nth”!==t.slice(0,3),a=“last”!==t.slice(-4),s=“of-type”===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,d,p,h,v=o!==a?“nextSibling”:“previousSibling”,m=e.parentNode,y=s&&e.nodeName.toLowerCase(),g=!u&&!s;if(m){if(o){for(;v;){for(f=e;f=f;)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=v=“only”===t&&!h&&“nextSibling”}return!0}if(h=,a&&g){for(p=(l=(c=m||(m={}))[t]||[])===O&&l,d=l===O&&l,f=p&&m.childNodes;f=++p&&f&&f||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===e){c=[O,p,d];break}}else if(g&&(l=(e||(e={}))[t])&&l===O)d=l;else for(;(f=++p&&f&&f||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++d||(g&&((f||(f={}))[t]=),f!==e)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos||r.setFilters||nt.error(“unsupported pseudo: ”+t);return i?i(e):i.length>1?(n=,r.setFilters.hasOwnProperty(t.toLowerCase())?it((function(t,n){for(var r,o=i(t,e),a=o.length;a–;)t[r=I.call(t,o)]=!(n=o)})):function(t){return i(t,0,n)}):i}},pseudos:{not:it((function(t){var e=[],n=,r=s(t.replace(z,“$1”));return r?it((function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s–;)(o=a)&&(t=!(e=o))})):function(t,i,o){return e=t,r(e,null,o,n),!n.pop()}})),has:it((function(t){return function(e){return nt(t,e).length>0}})),contains:it((function(t){return function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}})),lang:it((function(t){return K.test(t||“”)||nt.error(“unsupported lang: ”+t),t=t.replace(tt,et).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute(“xml:lang”)||e.getAttribute(“lang”))return(n=n.toLowerCase())===t||0===n.indexOf(t+“-”)}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return“input”===e&&!!t.checked||“option”===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return $.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return“input”===e&&“button”===t.type||“button”===e},text:function(t){var e;return“input”===t.nodeName.toLowerCase()&&“text”===t.type&&(null==(e=t.getAttribute(“type”))||“text”===e.toLowerCase())},first:ct((function(){return})),last:ct((function(t,e){return})),eq:ct((function(t,e,n){return})),even:ct((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:ct((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:ct((function(t,e,n){for(var r=n<0?n+e:n;–r>=0;)t.push®;return t})),gt:ct((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push®;return t}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos=ut(e);for(e in{submit:!0,reset:!0})r.pseudos=lt(e);function dt(){}function pt(t){for(var e=0,n=t.length,r=“”;e.value;return r}function ht(t,e,n){var r=e.dir,i=n&&“parentNode”===r,o=k++;return e.first?function(e,n,o){for(;e=e;)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,l=;if(a){for(;e=e;)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e;)if(1===e.nodeType||i){if((s=(u=e||(e={}))[r])&&s===O&&s===o)return l=s;if(u=l,l=t(e,n,a))return!0}}}function vt(t){return t.length>1?function(e,n,r){for(var i=t.length;i–;)if(!t(e,n,r))return!1;return!0}:t}function mt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s)&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function yt(t,e,n,r,i,o){return r&&!r&&(r=yt®),i&&!i&&(i=yt(i,o)),it((function(o,a,s,u){var l,c,f,d=[],p=,h=a.length,v=o||function(t,e,n){for(var r=0,i=e.length;r,n);return n}(e||“*”,s.nodeType?:s,[]),m=!t||!o&&e?v:mt(v,d,t,s,u),y=n?i||(o?t:h||r)?:a:m;if(n&&n(m,y,s,u),r)for(l=mt(y,p),r(l,[],s,u),c=l.length;c–;)(f=l)&&(y[p]=!(m[p]=f));if(o){if(i||t){if(i){for(l=[],c=y.length;c–;)(f=y)&&l.push(m=f);i(null,y=[],l,u)}for(c=y.length;c–;)(f=y)&&(l=i?I.call(o,f):d)>-1&&(o=!(a=f))}}else y=mt(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):N.apply(a,y)}))}function gt(t){for(var e,n,i,o=t.length,a=r.relative[t.type],s=a||r.relative[“ ”],u=a?1:0,c=ht((function(t){return t===e}),s,!0),f=ht((function(t){return I.call(e,t)>-1}),s,!0),d=;u.type])d=;else{if((n=r.filter[t.type].apply(null,t.matches))){for(i=++u;i.type];i++);return yt(u>1&&vt(d),u>1&&pt(t.slice(0,u-1).concat({value:“ ”===t.type?“*”:“”})).replace(z,“$1”),n,u<i&&gt(t.slice(u,i)),i<o&&gt(t=t.slice(i)),i<o&&pt(t))}d.push(n)}return vt(d)}return dt.prototype=r.filters=r.pseudos,r.setFilters=new dt,a=nt.tokenize=function(t,e){var n,i,o,a,s,u,l,c=C[t+“ ”];if©return e?0:c.slice(0);for(s=t,u=[],l=r.preFilter;s;){for(a in n&&!(i=U.exec(s))||(i&&(s=s.slice(i.length)||s),u.push(o=[])),n=!1,(i=H.exec(s))&&(n=i.shift(),o.push({value:n,type:i.replace(z,“ ”)}),s=s.slice(n.length)),r.filter)!(i=Q.exec(s))||l&&!(i=l(i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?nt.error(t):C(t,u).slice(0)},s=nt.compile=function(t,e){var n,i=[],o=,s=E[t+“ ”];if(!s){for(e||(e=a(t)),n=e.length;n–;)(s=gt(e))[w]?i.push(s):o.push(s);(s=E(t,function(t,e){var n=e.length>0,i=t.length>0,o=function(o,a,s,u,c){var f,d,h,v=0,m=“0”,y=o&&[],g=,b=l,w=o||i&&r.find.TAG(“*”,c),_=O+=null==b?1:Math.random()||.1,k=w.length;for(c&&(l=a!==p&&a);m!==k&&null!=(f=w);m++){if(i&&f){for(d=0;h=t;)if(h(f,a,s)){u.push(f);break}c&&(O=_)}n&&((f=!h&&f)&&v–,o&&y.push(f))}if(v+=m,n&&m!==v){for(d=0;h=e;)h(y,g,a,s);if(o){if(v>0)for(;m–;)y||g||(g=A.call(u));g=mt(g)}N.apply(u,g),c&&!o&&g.length>0&&v+e.length>1&&nt.uniqueSort(u)}return c&&(O=_,l=b),y};return n?it(o):o}(o,i))).selector=t}return s},u=nt.select=function(t,e,i,o){var u,l,c,f,d,p=“function”==typeof t&&t,h=!o&&a(t=p.selector||t);if(i=i||[],1===h.length){if((l=h=h.slice(0)).length>2&&“ID”===(c=l).type&&n.getById&&9===e.nodeType&&v&&r.relative[l.type]){if(!(e=(r.find.ID(c.matches.replace(tt,et),e)||[])))return i;p&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(u=Q.needsContext.test(t)?0:l.length;u–&&(c=l,!r.relative);)if((d=r.find)&&(o=d(c.matches.replace(tt,et),X.test(l.type)&&ft(e.parentNode)||e))){if(l.splice(u,1),!(t=o.length&&pt(l)))return N.apply(i,o),i;break}}return(p||s(t,h))(o,e,!v,i,X.test(t)&&ft(e.parentNode)||e),i},n.sortStable=w.split(“”).sort(j).join(“”)===w,n.detectDuplicates=!!f,d(),n.sortDetached=ot((function(t){return 1&t.compareDocumentPosition(p.createElement(“div”))})),ot((function(t){return t.innerHTML=“<a href=‘#’></a>”,“#”===t.firstChild.getAttribute(“href”)}))||at(“type|href|height|width”,(function(t,e,n){if(!n)return t.getAttribute(e,“type”===e.toLowerCase()?1:2)})),n.attributes&&ot((function(t){return t.innerHTML=“<input/>”,t.firstChild.setAttribute(“value”,“”),“”===t.firstChild.getAttribute(“value”)}))||at(“value”,(function(t,e,n){if(!n&&“input”===t.nodeName.toLowerCase())return t.defaultValue})),ot((function(t){return null==t.getAttribute(“disabled”)}))||at(D,(function(t,e,n){var r;if(!n)return!0===t?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),nt}(n);h.find=w,h.expr=w.selectors,h.expr=h.expr.pseudos,h.unique=w.uniqueSort,h.text=w.getText,h.isXMLDoc=w.isXML,h.contains=w.contains;var _=h.expr.match.needsContext,O=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^.[^:#*$/;function x(t,e,n){if(h.isFunction(e))return h.grep(t,(function(t,r){return!!e.call(t,r,t)!==n}));if(e.nodeType)return h.grep(t,(function(t){return t===e!==n}));if(“string”==typeof e){if(k.test(e))return h.filter(e,t,n);e=h.filter(e,t)}return h.grep(t,(function(t){return h.inArray(t,e)>=0!==n}))}h.filter=function(t,e,n){var r=e;return n&&(t=“:not(”t“)”),1===e.length&&1===r.nodeType?h.find.matchesSelector(r,t)?:[]:h.find.matches(t,h.grep(e,(function(t){return 1===t.nodeType})))},h.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if(“string”!=typeof t)return this.pushStack(h(t).filter((function(){for(e=0;e,this))return!0})));for(e=0;e,n);return(n=this.pushStack(i>1?h.unique(n):n)).selector=this.selector?this.selector+“ ”+t:t,n},filter:function(t){return this.pushStack(x(this,t||[],!1))},not:function(t){return this.pushStack(x(this,t||[],!0))},is:function(t){return!!x(this,“string”==typeof t&&_.test(t)?h(t):t||[],!1).length}});var C,E=n.document,j=/^(?:s*(<+>)[^>]*|#([w-]*))$/;(h.fn.init=function(t,e){var n,r;if(!t)return this;if(“string”==typeof t){if(!(n=“<"===t.charAt(0)&&">”===t.charAt(t.length-1)&&t.length>=3?:j.exec(t))||!n&&e)return!e||e.jquery?(e||C).find(t):this.constructor(e).find(t);if(n){if(e=e instanceof h?e:e,h.merge(this,h.parseHTML(n,e&&e.nodeType?e.ownerDocument||e:E,!0)),O.test(n)&&h.isPlainObject(e))for(n in e)h.isFunction(this)?this(e):this.attr(n,e);return this}if((r=E.getElementById(n))&&r.parentNode){if(r.id!==n)return C.find(t);this.length=1,this=r}return this.context=E,this.selector=t,this}return t.nodeType?(this.context=this=t,this.length=1,this):h.isFunction(t)?void 0!==C.ready?C.ready(t):t(h):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),h.makeArray(t,this))}).prototype=h.fn,C=h(E);var S=/^(?:parents|prev(?:Until|All))/,T={children:!0,contents:!0,next:!0,prev:!0};function A(t,e){do{t=t}while(t&&1!==t.nodeType);return t}h.extend({dir:function(t,e,n){for(var r=[],i=t;i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!h(i).is(n));)1===i.nodeType&&r.push(i),i=i;return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),h.fn.extend({has:function(t){var e,n=h(t,this),r=n.length;return this.filter((function(){for(e=0;e))return!0}))},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=_.test(t)||“string”!=typeof t?h(t,e||this.context):0;r;n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&h.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?h.unique(o):o)},index:function(t){return t?“string”==typeof t?h.inArray(this,h(t)):h.inArray(t.jquery?t:t,this):this&&this.parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(h.unique(h.merge(this.get(),h(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),h.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return h.dir(t,“parentNode”)},parentsUntil:function(t,e,n){return h.dir(t,“parentNode”,n)},next:function(t){return A(t,“nextSibling”)},prev:function(t){return A(t,“previousSibling”)},nextAll:function(t){return h.dir(t,“nextSibling”)},prevAll:function(t){return h.dir(t,“previousSibling”)},nextUntil:function(t,e,n){return h.dir(t,“nextSibling”,n)},prevUntil:function(t,e,n){return h.dir(t,“previousSibling”,n)},siblings:function(t){return h.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return h.sibling(t.firstChild)},contents:function(t){return h.nodeName(t,“iframe”)?t.contentDocument||t.contentWindow.document:h.merge([],t.childNodes)}},(function(t,e){h.fn=function(n,r){var i=h.map(this,e,n);return“Until”!==t.slice(-5)&&(r=n),r&&“string”==typeof r&&(i=h.filter(r,i)),this.length>1&&(T||(i=h.unique(i)),S.test(t)&&(i=i.reverse())),this.pushStack(i)}}));var P,N,L=/S+/g,I={};function D(){E.addEventListener?(E.removeEventListener(“DOMContentLoaded”,R,!1),n.removeEventListener(“load”,R,!1)):(E.detachEvent(“onreadystatechange”,R),n.detachEvent(“onload”,R))}function R(){(E.addEventListener||“load”===event.type||“complete”===E.readyState)&&(D(),h.ready())}for(N in h.Callbacks=function(t){t=“string”==typeof t?I||function(t){var e=I={};return h.each(t.match(L)||[],(function(t,n){e=!0})),e}(t):h.extend({},t);var e,n,r,i,o,a,s=[],u=!t.once&&,l=function(f){for(n=t.memory&&f,r=!0,o=a||0,a=0,i=s.length,e=!0;s&&o.apply(f,f)&&t.stopOnFalse){n=!1;break}e=!1,s&&(u?u.length&&l(u.shift()):n?s=[]:c.disable())},c={add:function(){if(s){var r=s.length;!function e(n){h.each(n,(function(n,r){var i=h.type®;“function”===i?t.unique&&c.has®||s.push®:r&&r.length&&“string”!==i&&e®}))}(arguments),e?i=s.length:n&&(a=r,l(n))}return this},remove:function(){return s&&h.each(arguments,(function(t,n){for(var r;(r=h.inArray(n,s,r))>-1;)s.splice(r,1),e&&(r<=i&&i–,r<=o&&o–)})),this},has:function(t){return t?h.inArray(t,s)>-1:!(!s||!s.length)},empty:function(){return s=[],i=0,this},disable:function(){return s=u=n=void 0,this},disabled:function(){return!s},lock:function(){return u=void 0,n||c.disable(),this},locked:function(){return!u},fireWith:function(t,n){return!s||r&&!u||(n=[t,(n=n||).slice?n.slice():n],e?u.push(n):l(n)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},h.extend({Deferred:function(t){var e=[[“resolve”,“done”,h.Callbacks(“once memory”),“resolved”],[“reject”,“fail”,h.Callbacks(“once memory”),“rejected”],],n=“pending”,r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return h.Deferred((function(n){h.each(e,(function(e,o){var a=h.isFunction(t)&&t;i[o]((function(){var t=a&&a.apply(this,arguments);t&&h.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o+“With”](this===r?n.promise():this,a?:arguments)}))})),t=null})).promise()},promise:function(t){return null!=t?h.extend(t,r):r}},i={};return r.pipe=r.then,h.each(e,(function(t,o){var a=o,s=o;r[o]=a.add,s&&a.add((function(){n=s}),e[2].disable,e[2].lock),i[o]=function(){return i[o+“With”](this===i?r:this,arguments),this},i[o+“With”]=a.fireWith})),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=a.call(arguments),s=o.length,u=1!==s||t&&h.isFunction(t.promise)?s:0,l=1===u?t:h.Deferred(),c=function(t,n,r){return function(i){n=this,r=arguments.length>1?a.call(arguments):i,r===e?l.notifyWith(n,r):–u||l.resolveWith(n,r)}};if(s>1)for(e=new Array(s),n=new Array(s),r=new Array(s);i&&h.isFunction(o.promise)?o.promise().done(c(i,r,o)).fail(l.reject).progress(c(i,n,e)):–u;return u||l.resolveWith(r,o),l.promise()}}),h.fn.ready=function(t){return h.ready.promise().done(t),this},h.extend({isReady:!1,readyWait:1,holdReady:function(t){t?h.readyWait++:h.ready(!0)},ready:function(t){if(!(!0===t?–h.readyWait:h.isReady)){if(!E.body)return setTimeout(h.ready);h.isReady=!0,!0!==t&&–h.readyWait>0||(P.resolveWith(E,),h.fn.triggerHandler&&(h(E).triggerHandler(“ready”),h(E).off(“ready”)))}}}),h.ready.promise=function(t){if(!P)if(P=h.Deferred(),“complete”===E.readyState)setTimeout(h.ready);else if(E.addEventListener)E.addEventListener(“DOMContentLoaded”,R,!1),n.addEventListener(“load”,R,!1);else{E.attachEvent(“onreadystatechange”,R),n.attachEvent(“onload”,R);var e=!1;try{e=null==n.frameElement&&E.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!h.isReady){try{e.doScroll(“left”)}catch(e){return setTimeout(t,50)}D(),h.ready()}}()}return P.promise(t)},h(p))break;p.ownLast=“0”!==N,p.inlineBlockNeedsLayout=!1,h((function(){var t,e,n,r;(n=E.getElementsByTagName(“body”))&&n.style&&(e=E.createElement(“div”),(r=E.createElement(“div”)).style.cssText=“position:absolute;border:0;width:0;height:0;top:0;left:-9999px”,n.appendChild®.appendChild(e),void 0!==e.style.zoom&&(e.style.cssText=“display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1”,p.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild®)})),function(){var t=E.createElement(“div”);if(null==p.deleteExpando){p.deleteExpando=!0;try{delete t.test}catch(t){p.deleteExpando=!1}}t=null}(),h.acceptData=function(t){var e=h.noData[(t.nodeName+“ ”).toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute(“classid”)===e)};var M=/^(?:{[wW]*}|[[wW]*])$/,B=/()/g;function q(t,e,n){if(void 0===n&&1===t.nodeType){var r=“data-”+e.replace(B,“-$1”).toLowerCase();if(“string”==typeof(n=t.getAttribute®)){try{n=“true”===n||“false”!==n&&(“null”===n?null:n“”===n?+n:M.test(n)?h.parseJSON(n):n)}catch(t){}h.data(t,e,n)}else n=void 0}return n}function F(t){var e;for(e in t)if((“data”!==e||!h.isEmptyObject(t))&&“toJSON”!==e)return!1;return!0}function z(t,e,n,r){if(h.acceptData(t)){var i,a,s=h.expando,u=t.nodeType,l=u?h.cache:t,c=u?t:t&&s;if(c&&l&&(r||l.data)||void 0!==n||“string”!=typeof e)return c||(c=u?t=o.pop()||h.guid++:s),l||(l=u?{}:{toJSON:h.noop}),“object”!=typeof e&&“function”!=typeof e||(r?l=h.extend(l,e):l.data=h.extend(l.data,e)),a=l,r||(a.data||(a.data={}),a=a.data),void 0!==n&&(a=n),“string”==typeof e?null==(i=a)&&(i=a):i=a,i}}function U(t,e,n){if(h.acceptData(t)){var r,i,o=t.nodeType,a=o?h.cache:t,s=o?t:h.expando;if(a){if(e&&(r=n?a:a.data)){i=(e=h.isArray(e)?e.concat(h.map(e,h.camelCase)):e in r||(e=h.camelCase(e))in r?:e.split(“ ”)).length;for(;i–;)delete r[e];if(n?!F®:!h.isEmptyObject®)return}(n||(delete a.data,F(a)))&&(o?h.cleanData(,!0):p.deleteExpando||a!=a.window?delete a:a=null)}}}h.extend({cache:{},noData:{“applet ”:!0,“embed ”:!0,“object ”:“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”},hasData:function(t){return!!(t=t.nodeType?h.cache[t]:t)&&!F(t)},data:function(t,e,n){return z(t,e,n)},removeData:function(t,e){return U(t,e)},_data:function(t,e,n){return z(t,e,n,!0)},_removeData:function(t,e){return U(t,e,!0)}}),h.fn.extend({data:function(t,e){var n,r,i,o=this,a=o&&o.attributes;if(void 0===t){if(this.length&&(i=h.data(o),1===o.nodeType&&!h._data(o,“parsedAttrs”))){for(n=a.length;n–;)a&&0===(r=a.name).indexOf(“data-”)&&q(o,r=h.camelCase(r.slice(5)),i);h._data(o,“parsedAttrs”,!0)}return i}return“object”==typeof t?this.each((function(){h.data(this,t)})):arguments.length>1?this.each((function(){h.data(this,t,e)})):o?q(o,t,h.data(o,t)):void 0},removeData:function(t){return this.each((function(){h.removeData(this,t)}))}}),h.extend({queue:function(t,e,n){var r;if(t)return e=(e||“fx”)+“queue”,r=h._data(t,e),n&&(!r||h.isArray(n)?r=h._data(t,e,h.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||“fx”;var n=h.queue(t,e),r=n.length,i=n.shift(),o=h._queueHooks(t,e);“inprogress”===i&&(i=n.shift(),r–),i&&(“fx”===e&&n.unshift(“inprogress”),delete o.stop,i.call(t,(function(){h.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+“queueHooks”;return h._data(t,n)||h._data(t,n,{empty:h.Callbacks(“once memory”).add((function(){h._removeData(t,e+“queue”),h._removeData(t,n)}))})}}),h.fn.extend({queue:function(t,e){var n=2;return“string”!=typeof t&&(e=t,t=“fx”,n–),arguments.length,t):void 0===e?this:this.each((function(){var n=h.queue(this,t,e);h._queueHooks(this,t),“fx”===t&&“inprogress”!==n&&h.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){h.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||“fx”,[])},promise:function(t,e){var n,r=1,i=h.Deferred(),o=this,a=this.length,s=function(){–r||i.resolveWith(o,)};for(“string”!=typeof t&&(e=t,t=void 0),t=t||“fx”;a–;)(n=h._data(o,t+“queueHooks”))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var H=/?(?:d*.|)d+(?:[+-]?d+|)/.source,W=,V=function(t,e){return t=e||t,“none”===h.css(t,“display”)||!h.contains(t.ownerDocument,t)},K=h.access=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if(“object”===h.type(n))for(s in i=!0,n)h.access(t,e,s,n,!0,o,a);else if(void 0!==r&&(i=!0,h.isFunction®||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(h(t),n)})),e))for(;s,n,a?r:r.call(t,s,e(t,n)));return i?t:l?e.call(t):u?e(t,n):o},Q=/^(?:checkbox|radio)$/i;!function(){var t=E.createElement(“input”),e=E.createElement(“div”),n=E.createDocumentFragment();if(e.innerHTML=“ <link/><table></table><a href=‘/a’>a</a><input type=‘checkbox’/>”,p.leadingWhitespace=3===e.firstChild.nodeType,p.tbody=!e.getElementsByTagName(“tbody”).length,p.htmlSerialize=!!e.getElementsByTagName(“link”).length,p.html5Clone=“<:nav></:nav>”!==E.createElement(“nav”).cloneNode(!0).outerHTML,t.type=“checkbox”,t.checked=!0,n.appendChild(t),p.appendChecked=t.checked,e.innerHTML=“<textarea>x</textarea>”,p.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML=“<input type=‘radio’ checked=‘checked’ name=‘t’/>”,p.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,p.noCloneEvent=!0,e.attachEvent&&(e.attachEvent(“onclick”,(function(){p.noCloneEvent=!1})),e.cloneNode(!0).click()),null==p.deleteExpando){p.deleteExpando=!0;try{delete e.test}catch(t){p.deleteExpando=!1}}}(),function(){var t,e,r=E.createElement(“div”);for(t in{submit:!0,change:!0,focusin:!0})e=“on”+t,(p=e in n)||(r.setAttribute(e,“t”),p=!1===r.attributes.expando);r=null}();var $=/^(?:input|select|textarea)$/i,G=/^key/,Y=/^(?:mouse|pointer|contextmenu)|click/,Z=/^(?:focusinfocus|focusoutblur)$/,X=/^(*)(?:.(.+)|)$/;function J(){return!0}function tt(){return!1}function et(){try{return E.activeElement}catch(t){}}function nt(t){var e=rt.split(“|”),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}h.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,p,v,m,y=h._data(t);if(y){for(n.handler&&(n=(u=n).handler,i=u.selector),n.guid||(n.guid=h.guid++),(a=y.events)||(a=y.events={}),(c=y.handle)||((c=y.handle=function(t){return void 0===h||t&&h.event.triggered===t.type?void 0:h.event.dispatch.apply(c.elem,arguments)}).elem=t),s=(e=(e||“”).match(L)||).length;s–;)p=m=(o=X.exec(e)||[])[1],v=(o||“”).split(“.”).sort(),p&&(l=h.event.special||{},p=(i?l.delegateType:l.bindType)||p,l=h.event.special||{},f=h.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&h.expr.match.needsContext.test(i),namespace:v.join(“.”)},u),(d=a)||((d=a=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,r,v,c)||(t.addEventListener?t.addEventListener(p,c,!1):t.attachEvent&&t.attachEvent(“on”+p,c))),l.add&&(l.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),h.event.global=!0);t=null}},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,p,v,m,y=h.hasData(t)&&h._data(t);if(y&&(c=y.events)){for(l=(e=(e||“”).match(L)||).length;l–;)if(p=m=(s=X.exec(e)||[])[1],v=(s||“”).split(“.”).sort(),p){for(f=h.event.special||{},d=c||[],s=s&&new RegExp(“(^|\.)”+v.join(“\.(?:.*\.|)”)+“(\.|$)”),u=o=d.length;o–;)a=d,!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&(“**”!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount–,f.remove&&f.remove.call(t,a));u&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,v,y.handle)||h.removeEvent(t,p,y.handle),delete c)}else for(p in c)h.event.remove(t,p+e,n,r,!0);h.isEmptyObject©&&(delete y.handle,h._removeData(t,“events”))}},trigger:function(t,e,r,i){var o,a,s,u,l,c,f,p=,v=d.call(t,“type”)?t.type:t,m=d.call(t,“namespace”)?t.namespace.split(“.”):[];if(s=c=r=r||E,3!==r.nodeType&&8!==r.nodeType&&!Z.test(v+h.event.triggered)&&(v.indexOf(“.”)>=0&&(m=v.split(“.”),v=m.shift(),m.sort()),a=v.indexOf(“:”)<0&&"on"+v,(t=t?t:new h.Event(v,“object”==typeof t&&t)).isTrigger=i?2:3,t.namespace=m.join(“.”),t.namespace_re=t.namespace?new RegExp(“(^|\.)”+m.join(“\.(?:.*\.|)”)+“(\.|$)”):null,t.result=void 0,t.target||(t.target=r),e=null==e?:h.makeArray(e,),l=h.event.special||{},i||!l.trigger||!1!==l.trigger.apply(r,e))){if(!i&&!l.noBubble&&!h.isWindow®){for(u=l.delegateType||v,Z.test(u+v)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(r.ownerDocument||E)&&p.push(c.defaultView||c.parentWindow||n)}for(f=0;(s=p)&&!t.isPropagationStopped();)t.type=f>1?u:l.bindType||v,(o=(h._data(s,“events”)||{})[t.type]&&h._data(s,“handle”))&&o.apply(s,e),(o=a&&s)&&o.apply&&h.acceptData(s)&&(t.result=o.apply(s,e),!1===t.result&&t.preventDefault());if(t.type=v,!i&&!t.isDefaultPrevented()&&(!l._default||!1===l._default.apply(p.pop(),e))&&h.acceptData®&&a&&r&&!h.isWindow®){(c=r)&&(r=null),h.event.triggered=v;try{r()}catch(t){}h.event.triggered=void 0,c&&(r=c)}return t.result}},dispatch:function(t){t=h.event.fix(t);var e,n,r,i,o,s=[],u=a.call(arguments),l=(h._data(this,“events”)||{})||[],c=h.event.special||{};if(u=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(s=h.event.handlers.call(this,t,l),e=0;(i=s)&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,o=0;(r=i.handlers)&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(n=((h.event.special||{}).handle||r.handler).apply(i.elem,u))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||“click”!==t.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||“click”!==t.type)){for(i=,o=0;o<s;o++)void 0===i[n=(r=e).selector+“ ”]&&(i=r.needsContext?h(n,this).index(u)>=0:h.find(n,this,null,).length),i&&i.push®;i.length&&a.push({elem:u,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},fix:function(t){if(t)return t;var e,n,r,i=t.type,o=t,a=this.fixHooks;for(a||(this.fixHooks=a=Y.test(i)?this.mouseHooks:G.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new h.Event(o),e=r.length;e–;)t[n=r]=o;return t.target||(t.target=o.srcElement||E),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,a.filter?a.filter(t,o):t},props:“altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which”.split(“ ”),fixHooks:{},keyHooks:{props:“char charCode key keyCode”.split(“ ”),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:“button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement”.split(“ ”),filter:function(t,e){var n,r,i,o=e.button,a=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=(r=t.target.ownerDocument||E).documentElement,n=r.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==et()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:“focusin”},blur:{trigger:function(){if(this===et()&&this.blur)return this.blur(),!1},delegateType:“focusout”},click:{trigger:function(){if(h.nodeName(this,“input”)&&“checkbox”===this.type&&this.click)return this.click(),!1},_default:function(t){return h.nodeName(t.target,“a”)}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=h.extend(new h.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?h.event.trigger(i,null,e):h.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},h.removeEvent=E.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var r=“on”+e;t.detachEvent&&(void 0===t&&(t=null),t.detachEvent(r,n))},h.Event=function(t,e){if(!(this instanceof h.Event))return new h.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?J:tt):this.type=t,e&&h.extend(this,e),this.timeStamp=t&&t.timeStamp||h.now(),this=!0},h.Event.prototype={isDefaultPrevented:tt,isPropagationStopped:tt,isImmediatePropagationStopped:tt,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=J,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=J,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=J,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:“mouseover”,mouseleave:“mouseout”,pointerenter:“pointerover”,pointerleave:“pointerout”},(function(t,e){h.event.special={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||h.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),p.submitBubbles||(h.event.special.submit={setup:function(){if(h.nodeName(this,“form”))return!1;h.event.add(this,“click._submit keypress._submit”,(function(t){var e=t.target,n=h.nodeName(e,“input”)||h.nodeName(e,“button”)?e.form:void 0;n&&!h._data(n,“submitBubbles”)&&(h.event.add(n,“submit._submit”,(function(t){t._submit_bubble=!0})),h._data(n,“submitBubbles”,!0))}))},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&h.event.simulate(“submit”,this.parentNode,t,!0))},teardown:function(){if(h.nodeName(this,“form”))return!1;h.event.remove(this,“._submit”)}}),p.changeBubbles||(h.event.special.change={setup:function(){if($.test(this.nodeName))return“checkbox”!==this.type&&“radio”!==this.type||(h.event.add(this,“propertychange._change”,(function(t){“checked”===t.originalEvent.propertyName&&(this._just_changed=!0)})),h.event.add(this,“click._change”,(function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),h.event.simulate(“change”,this,t,!0)}))),!1;h.event.add(this,“beforeactivate._change”,(function(t){var e=t.target;$.test(e.nodeName)&&!h._data(e,“changeBubbles”)&&(h.event.add(e,“change._change”,(function(t){!this.parentNode||t.isSimulated||t.isTrigger||h.event.simulate(“change”,this.parentNode,t,!0)})),h._data(e,“changeBubbles”,!0))}))},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||“radio”!==e.type&&“checkbox”!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return h.event.remove(this,“._change”),!$.test(this.nodeName)}}),p.focusinBubbles||h.each({focus:“focusin”,blur:“focusout”},(function(t,e){var n=function(t){h.event.simulate(e,t.target,h.event.fix(t),!0)};h.event.special={setup:function(){var r=this.ownerDocument||this,i=h._data(r,e);i||r.addEventListener(t,n,!0),h._data(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=h._data(r,e)-1;i?h._data(r,e,i):(r.removeEventListener(t,n,!0),h._removeData(r,e))}}})),h.fn.extend({on:function(t,e,n,r,i){var o,a;if(“object”==typeof t){for(o in“string”!=typeof e&&(n=n||e,e=void 0),t)this.on(o,e,n,t,i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&(“string”==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),!1===r)r=tt;else if(!r)return this;return 1===i&&(a=r,(r=function(t){return h().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=h.guid++)),this.each((function(){h.event.add(this,t,r,n,e)}))},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,h(t.delegateTarget).off(r.namespace?r.origType+“.”+r.namespace:r.origType,r.selector,r.handler),this;if(“object”==typeof t){for(i in t)this.off(i,e,t);return this}return!1!==e&&“function”!=typeof e||(n=e,e=void 0),!1===n&&(n=tt),this.each((function(){h.event.remove(this,t,n,e)}))},trigger:function(t,e){return this.each((function(){h.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this;if(n)return h.event.trigger(t,e,n,!0)}});var rt=“abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video”,it=/ jQueryd+=“(?:null|d+)”/g,ot=new RegExp(“<(?:"rti”),at=/^s+/,st=/<(?!area|br|col|embed|hr|img|input|link|meta|param)((+)[^>]*)/>/gi,ut=/<(+)/,lt=/|=s*.checked.)/i,pt=/^$|/(?:java|ecma)script/i,ht=/^true/(.*)/,vt=/^s*]|–)>s*$/g,mt={option:[1,”<select “,”“”>multiple=‘multiple’>“,”“],legend:,”,“”“>area:,”,“”“>param:,”,“”“>thead:,”,“”“>tr:,”,“”“>col:,”,“”“>td:,_default:p.htmlSerialize?:[1,”X<div>“,”</div>“]},yt=nt(E).appendChild(E.createElement(”div“));function gt(t,e){var n,r,i=0,o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||”*“):void 0!==t.querySelectorAll?t.querySelectorAll(e||”*“):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(r=n);i++)!e||h.nodeName(r,e)?o.push®:h.merge(o,gt(r,e));return void 0===e||e&&h.nodeName(t,e)?h.merge(,o):o}function bt(t){Q.test(t.type)&&(t.defaultChecked=t.checked)}function wt(t,e){return h.nodeName(t,”table“)&&h.nodeName(11!==e.nodeType?e:e.firstChild,”tr“)?t.getElementsByTagName(”tbody“)||t.appendChild(t.ownerDocument.createElement(”tbody“)):t}function _t(t){return t.type=(null!==h.find.attr(t,”type“))+”/“+t.type,t}function Ot(t){var e=ht.exec(t.type);return e?t.type=e:t.removeAttribute(”type“),t}function kt(t,e){for(var n,r=0;null!=(n=t);r++)h._data(n,”globalEval“,!e||h._data(e,”globalEval“))}function xt(t,e){if(1===e.nodeType&&h.hasData(t)){var n,r,i,o=h._data(t),a=h._data(e,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s.length;r[r]);a.data&&(a.data=h.extend({},a.data))}}function Ct(t,e){var n,r,i;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!p.noCloneEvent&&e){for(r in(i=h._data(e)).events)h.removeEvent(e,r,i.handle);e.removeAttribute(h.expando)}”script“===n&&e.text!==t.text?(_t(e).text=t.text,Ot(e)):”object“===n?(e.parentNode&&(e.outerHTML=t.outerHTML),p.html5Clone&&t.innerHTML&&!h.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):”input“===n&&Q.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):”option“===n?e.defaultSelected=e.selected=t.defaultSelected:”input“!==n&&”textarea“!==n||(e.defaultValue=t.defaultValue)}}mt.optgroup=mt.option,mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,h.extend({clone:function(t,e,n){var r,i,o,a,s,u=h.contains(t.ownerDocument,t);if(p.html5Clone||h.isXMLDoc(t)||!ot.test(”<"t.nodeName“>”)?o=t.cloneNode(!0):(yt.innerHTML=t.outerHTML,yt.removeChild(o=yt.firstChild)),!(p.noCloneEvent&&p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||h.isXMLDoc(t)))for(r=gt(o),s=gt(t),a=0;null!=(i=s);++a)r&&Ct(i,r);if(e)if(n)for(s=s||gt(t),r=r||gt(o),a=0;null!=(i=s);a++)xt(i,r);else xt(t,o);return(r=gt(o,“script”)).length>0&&kt(r,!u&&gt(t,“script”)),r=s=i=null,o},buildFragment:function(t,e,n,r){for(var i,o,a,s,u,l,c,f=t.length,d=nt(e),v=[],m=0;m)||0===o)if(“object”===h.type(o))h.merge(v,o.nodeType?:o);else if(ct.test(o)){for(s=s||d.appendChild(e.createElement(“div”)),u=(ut.exec(o)||)[1].toLowerCase(),c=mt||mt._default,s.innerHTML=c+o.replace(st,“<$1>”)+c,i=c;i–;)s=s.lastChild;if(!p.leadingWhitespace&&at.test(o)&&v.push(e.createTextNode(at.exec(o))),!p.tbody)for(i=(o=“table”!==u||lt.test(o)?“

”!==c||lt.test(o)?0:s:s.firstChild)&&o.childNodes.length;i–;)h.nodeName(l=o.childNodes,“tbody”)&&!l.childNodes.length&&o.removeChild(l);for(h.merge(v,s.childNodes),s.textContent=“”;s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else v.push(e.createTextNode(o));for(s&&d.removeChild(s),p.appendChecked||h.grep(gt(v,“input”),bt),m=0;o=v;)if((!r||-1===h.inArray(o,r))&&(a=h.contains(o.ownerDocument,o),s=gt(d.appendChild(o),“script”),a&&kt(s),n))for(i=0;o=s;)pt.test(o.type||“”)&&n.push(o);return s=null,d},cleanData:function(t,e){for(var n,r,i,a,s=0,u=h.expando,l=h.cache,c=p.deleteExpando,f=h.event.special;null!=(n=t);s++)if((e||h.acceptData(n))&&(a=(i=n)&&l)){if(a.events)for(r in a.events)f?h.event.remove(n,r):h.removeEvent(n,r,a.handle);l&&(delete l,c?delete n:void 0!==n.removeAttribute?n.removeAttribute(u):n=null,o.push(i))}}}),h.fn.extend({text:function(t){return K(this,(function(t){return void 0===t?h.text(this):this.empty().append((this&&this.ownerDocument||E).createTextNode(t))}),null,t,arguments.length)},append:function(){return this.domManip(arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||wt(this,t).appendChild(t)}))},prepend:function(){return this.domManip(arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=wt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return this.domManip(arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return this.domManip(arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},remove:function(t,e){for(var n,r=t?h.filter(t,this):this,i=0;null!=(n=r);i++)e||1!==n.nodeType||h.cleanData(gt(n)),n.parentNode&&(e&&h.contains(n.ownerDocument,n)&&kt(gt(n,“script”)),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this);e++){for(1===t.nodeType&&h.cleanData(gt(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&h.nodeName(t,“select”)&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return h.clone(this,t,e)}))},html:function(t){return K(this,(function(t){var e=this||{},n=0,r=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(it,“”):void 0;if(“string”==typeof t&&!ft.test(t)&&(p.htmlSerialize||!ot.test(t))&&(p.leadingWhitespace||!at.test(t))&&!mt[(ut.exec(t)||)[1].toLowerCase()]){t=t.replace(st,“<$1></$2>”);try{for(;n||{}).nodeType&&(h.cleanData(gt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=arguments;return this.domManip(arguments,(function(e){t=this.parentNode,h.cleanData(gt(this)),t&&t.replaceChild(e,this)})),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=s.apply([],t);var n,r,i,o,a,u,l=0,c=this.length,f=this,d=c-1,v=t,m=h.isFunction(v);if(m||c>1&&“string”==typeof v&&!p.checkClone&&dt.test(v))return this.each((function(n){var r=f.eq(n);m&&(t=v.call(this,n,r.html())),r.domManip(t,e)}));if(c&&(n=(u=h.buildFragment(t,this.ownerDocument,!1,this)).firstChild,1===u.childNodes.length&&(u=n),n)){for(i=(o=h.map(gt(u,“script”),_t)).length;l,r,l);if(i)for(a=o.ownerDocument,h.map(o,Ot),l=0;l,pt.test(r.type||“”)&&!h._data(r,“globalEval”)&&h.contains(a,r)&&(r.src?h._evalUrl&&h._evalUrl(r.src):h.globalEval((r.text||r.textContent||r.innerHTML||“”).replace(vt,“”)));u=n=null}return this}}),h.each({appendTo:“append”,prependTo:“prepend”,insertBefore:“before”,insertAfter:“after”,replaceAll:“replaceWith”},(function(t,e){h.fn=function(t){for(var n,r=0,i=[],o=h(t),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),h(o)[e](n),u.apply(i,n.get());return this.pushStack(i)}}));var Et,jt,St={};function Tt(t,e){var r,i=h(e.createElement(t)).appendTo(e.body),o=n.getDefaultComputedStyle&&(r=n.getDefaultComputedStyle(i))?r.display:h.css(i,“display”);return i.detach(),o}function At(t){var e=E,n=St;return n||(“none”!==(n=Tt(t,e))&&n||((e=((Et=(Et||h(“<iframe frameborder=‘0’ width=‘0’ height=‘0’/>”)).appendTo(e.documentElement)).contentWindow||Et.contentDocument).document).write(),e.close(),n=Tt(t,e),Et.detach()),St=n),n}p.shrinkWrapBlocks=function(){return null!=jt?jt:(jt=!1,(e=E.getElementsByTagName(“body”))&&e.style?(t=E.createElement(“div”),(n=E.createElement(“div”)).style.cssText=“position:absolute;border:0;width:0;height:0;top:0;left:-9999px”,e.appendChild(n).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText=“-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1”,t.appendChild(E.createElement(“div”)).style.width=“5px”,jt=3!==t.offsetWidth),e.removeChild(n),jt):void 0);var t,e,n};var Pt,Nt,Lt=/^margin/,It=new RegExp(“^(”H“)(?!px)+$”,“i”),Dt=/^(top|right|bottom|left)$/;function Rt(t,e){return{get:function(){var n=t();if(null!=n){if(!n)return(this.get=e).apply(this,arguments);delete this.get}}}}n.getComputedStyle?(Pt=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},Nt=function(t,e,n){var r,i,o,a,s=t.style;return a=(n=n||Pt(t))?n.getPropertyValue(e)||n:void 0,n&&(“”!==a||h.contains(t.ownerDocument,t)||(a=h.style(t,e)),It.test(a)&&Lt.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+“”}):E.documentElement.currentStyle&&(Pt=function(t){return t.currentStyle},Nt=function(t,e,n){var r,i,o,a,s=t.style;return null==(a=(n=n||Pt(t))?n:void 0)&&s&&s&&(a=s),It.test(a)&&!Dt.test(e)&&(r=s.left,(o=(i=t.runtimeStyle)&&i.left)&&(i.left=t.currentStyle.left),s.left=“fontSize”===e?“1em”:a,a=s.pixelLeft+“px”,s.left=r,o&&(i.left=o)),void 0===a?a:a+“”||“auto”}),function(){var t,e,r,i,o,a,s;function u(){var t,e,r,u;(e=E.getElementsByTagName(“body”))&&e.style&&(t=E.createElement(“div”),(r=E.createElement(“div”)).style.cssText=“position:absolute;border:0;width:0;height:0;top:0;left:-9999px”,e.appendChild®.appendChild(t),t.style.cssText=“-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute”,i=o=!1,s=!0,n.getComputedStyle&&(i=“1%”!==(n.getComputedStyle(t,null)||{}).top,o=“4px”===(n.getComputedStyle(t,null)||{width:“4px”}).width,(u=t.appendChild(E.createElement(“div”))).style.cssText=t.style.cssText=“-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0”,u.style.marginRight=u.style.width=“0”,t.style.width=“1px”,s=!parseFloat((n.getComputedStyle(u,null)||{}).marginRight)),t.innerHTML=“
t
”,(u=t.getElementsByTagName(“td”)).style.cssText=“margin:0;border:0;padding:0;display:none”,(a=0===u.offsetHeight)&&(u.style.display=“”,u.style.display=“none”,a=0===u.offsetHeight),e.removeChild®)}(t=E.createElement(“div”)).innerHTML=“ <link/><table></table><a href=‘/a’>a</a><input type=‘checkbox’/>”,(e=(r=t.getElementsByTagName(“a”))&&r.style)&&(e.cssText=“float:left;opacity:.5”,p.opacity=“0.5”===e.opacity,p.cssFloat=!!e.cssFloat,t.style.backgroundClip=“content-box”,t.cloneNode(!0).style.backgroundClip=“”,p.clearCloneStyle=“content-box”===t.style.backgroundClip,p.boxSizing=“”===e.boxSizing||“”===e.MozBoxSizing||“”===e.WebkitBoxSizing,h.extend(p,{reliableHiddenOffsets:function(){return null==a&&u(),a},boxSizingReliable:function(){return null==o&&u(),o},pixelPosition:function(){return null==i&&u(),i},reliableMarginRight:function(){return null==s&&u(),s}}))}(),h.swap=function(t,e,n,r){var i,o,a={};for(o in e)a=t.style,t.style=e;for(o in i=n.apply(t,r||[]),e)t.style=a;return i};var Mt=/alpha(*)/i,Bt=/opacitys*=s*(*)/,qt=/^(none|table(?!-c).+)/,Ft=new RegExp(“^(”H“)(.*)$”,“i”),zt=new RegExp(“^()=(”H“)”,“i”),Ut={position:“absolute”,visibility:“hidden”,display:“block”},Ht={letterSpacing:“0”,fontWeight:“400”},Wt=;function Vt(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=Wt.length;i–;)if((e=Wt+n)in t)return e;return r}function Kt(t,e){for(var n,r,i,o=[],a=0,s=t.length;a).style&&(o=h._data(r,“olddisplay”),n=r.style.display,e?(o||“none”!==n||(r.style.display=“”),“”===r.style.display&&V®&&(o=h._data(r,“olddisplay”,At(r.nodeName)))):(i=V®,(n&&“none”!==n||!i)&&h._data(r,“olddisplay”,i?n:h.css(r,“display”))));for(a=0;a).style&&(e&&“none”!==r.style.display&&“”!==r.style.display||(r.style.display=e?o||“”:“none”));return t}function Qt(t,e,n){var r=Ft.exec(e);return r?Math.max(0,r-(n||0))+(r||“px”):e}function $t(t,e,n,r,i){for(var o=n===(r?“border”:“content”)?4:“width”===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=h.css(t,n+W,!0,i)),r?(“content”===n&&(a-=h.css(t,“padding”+W,!0,i)),“margin”!==n&&(a-=h.css(t,“border”W[o]Width”,!0,i))):(a+=h.css(t,“padding”+W,!0,i),“padding”!==n&&(a+=h.css(t,“border”W[o]“Width”,!0,i)));return a}function Gt(t,e,n){var r=!0,i=“width”===e?t.offsetWidth:t.offsetHeight,o=Pt(t),a=p.boxSizing&&“border-box”===h.css(t,“boxSizing”,!1,o);if(i<=0||null==i){if(((i=Nt(t,e,o))<0||null==i)&&(i=t.style),It.test(i))return i;r=a&&(p.boxSizingReliable()||i===t.style),i=parseFloat(i)||0}return i+$t(t,e,n||(a?“border”:“content”),r,o)+“px”}function Yt(t,e,n,r,i){return new Yt.prototype.init(t,e,n,r,i)}h.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Nt(t,“opacity”);return“”===n?“1”:n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:p.cssFloat?“cssFloat”:“styleFloat”},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=h.camelCase(e),u=t.style;if(e=h.cssProps||(h.cssProps=Vt(u,s)),a=h.cssHooks||h.cssHooks,void 0===n)return a&&“get”in a&&void 0!==(i=a.get(t,!1,r))?i:u;if(“string”==(o=typeof n)&&(i=zt.exec(n))&&(n=(i+1)*i+parseFloat(h.css(t,e)),o=“number”),null!=n&&n==n&&(“number”!==o||h.cssNumber||(n+=“px”),p.clearCloneStyle||“”!==n||0!==e.indexOf(“background”)||(u=“inherit”),!a||!(“set”in a)||void 0!==(n=a.set(t,n,r))))try{u=n}catch(t){}}},css:function(t,e,n,r){var i,o,a,s=h.camelCase(e);return e=h.cssProps||(h.cssProps=Vt(t.style,s)),(a=h.cssHooks||h.cssHooks)&&“get”in a&&(o=a.get(t,!0,n)),void 0===o&&(o=Nt(t,e,r)),“normal”===o&&e in Ht&&(o=Ht),“”===n||n?(i=parseFloat(o),!0===n||h.isNumeric(i)?i||0:o):o}}),h.each(,(function(t,e){h.cssHooks={get:function(t,n,r){if(n)return qt.test(h.css(t,“display”))&&0===t.offsetWidth?h.swap(t,Ut,(function(){return Gt(t,e,r)})):Gt(t,e,r)},set:function(t,n,r){var i=r&&Pt(t);return Qt(0,n,r?$t(t,e,r,p.boxSizing&&“border-box”===h.css(t,“boxSizing”,!1,i),i):0)}}})),p.opacity||(h.cssHooks.opacity={get:function(t,e){return Bt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||“”)?.01*parseFloat(RegExp.$1)+“”:e?“1”:“”},set:function(t,e){var n=t.style,r=t.currentStyle,i=h.isNumeric(e)?“alpha(opacity=”+100*e+“)”:“”,o=r&&r.filter||n.filter||“”;n.zoom=1,(e>=1||“”===e)&&“”===h.trim(o.replace(Mt,“”))&&n.removeAttribute&&(n.removeAttribute(“filter”),“”===e||r&&!r.filter)||(n.filter=Mt.test(o)?o.replace(Mt,i):o+“ ”+i)}}),h.cssHooks.marginRight=Rt(p.reliableMarginRight,(function(t,e){if(e)return h.swap(t,{display:“inline-block”},Nt,)})),h.each({margin:“”,padding:“”,border:“Width”},(function(t,e){h.cssHooks={expand:function(n){for(var r=0,i={},o=“string”==typeof n?n.split(“ ”):[n];r<4;r++)i[t+W+e]=o||o||o;return i}},Lt.test(t)||(h.cssHooks.set=Qt)})),h.fn.extend({css:function(t,e){return K(this,(function(t,e,n){var r,i,o={},a=0;if(h.isArray(e)){for(r=Pt(t),i=e.length;a]=h.css(t,e,!1,r);return o}return void 0!==n?h.style(t,e,n):h.css(t,e)}),t,e,arguments.length>1)},show:function(){return Kt(this,!0)},hide:function(){return Kt(this)},toggle:function(t){return“boolean”==typeof t?t?this.show():this.hide():this.each((function(){V(this)?h(this).show():h(this).hide()}))}}),h.Tween=Yt,Yt.prototype={constructor:Yt,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||“swing”,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(h.cssNumber?“”:“px”)},cur:function(){var t=Yt.propHooks;return t&&t.get?t.get(this):Yt.propHooks._default.get(this)},run:function(t){var e,n=Yt.propHooks;return this.options.duration?this.pos=e=h.easing(t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Yt.propHooks._default.set(this),this}},Yt.prototype.init.prototype=Yt.prototype,Yt.propHooks={_default:{get:function(t){var e;return null==t.elem||t.elem.style&&null!=t.elem.style?(e=h.css(t.elem,t.prop,“”))&&“auto”!==e?e:0:t.elem},set:function(t){h.fx.step?h.fx.step(t):t.elem.style&&(null!=t.elem.style[h.cssProps]||h.cssHooks)?h.style(t.elem,t.prop,t.now+t.unit):t.elem=t.now}}},Yt.propHooks.scrollTop=Yt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem=t.now)}},h.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},h.fx=Yt.prototype.init,h.fx.step={};var Zt,Xt,Jt,te,ee,ne,re,ie=/^(?:toggle|show|hide)$/,oe=new RegExp(“^(?:()=|)(”H“)(*)$”,“i”),ae=/queueHooks$/,se=[function(t,e,n){var r,i,o,a,s,u,l,c=this,f={},d=t.style,v=t.nodeType&&V(t),m=h._data(t,“fxshow”);for(r in n.queue||(null==(s=h._queueHooks(t,“fx”)).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always((function(){c.always((function(){s.unqueued–,h.queue(t,“fx”).length||s.empty.fire()}))}))),1===t.nodeType&&(“height”in e||“width”in e)&&(n.overflow=,“inline”===(“none”===(l=h.css(t,“display”))?h._data(t,“olddisplay”)||At(t.nodeName):l)&&“none”===h.css(t,“float”)&&(p.inlineBlockNeedsLayout&&“inline”!==At(t.nodeName)?d.zoom=1:d.display=“inline-block”)),n.overflow&&(d.overflow=“hidden”,p.shrinkWrapBlocks()||c.always((function(){d.overflow=n.overflow,d.overflowX=n.overflow,d.overflowY=n.overflow}))),e)if(i=e,ie.exec(i)){if(delete e,o=o||“toggle”===i,i===(v?“hide”:“show”)){if(“show”!==i||!m||void 0===m)continue;v=!0}f=m&&m||h.style(t,r)}else l=void 0;if(h.isEmptyObject(f))“inline”===(“none”===l?At(t.nodeName):l)&&(d.display=l);else for(r in m?“hidden”in m&&(v=m.hidden):m=h._data(t,“fxshow”,{}),o&&(m.hidden=!v),v?h(t).show():c.done((function(){h(t).hide()})),c.done((function(){var e;for(e in h._removeData(t,“fxshow”),f)h.style(t,e,f)})),f)a=fe(v?m:0,r,c),r in m||(m=a.start,v&&(a.end=a.start,a.start=“width”===r||“height”===r?1:0))}],ue={“*”:[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=oe.exec(e),o=i&&i||(h.cssNumber?“”:“px”),a=(h.cssNumber||“px”!==o&&+r)&&oe.exec(h.css(n.elem,t)),s=1,u=20;if(a&&a!==o){o=o||a,i=i||[],a=+r||1;do{a/=s=s||“.5”,h.style(n.elem,t,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&–u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i?a+(i+1)*i:+i),n}]};function le(){return setTimeout((function(){Zt=void 0})),Zt=h.now()}function ce(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=W)]=r=t;return e&&(r.opacity=r.width=t),r}function fe(t,e,n){for(var r,i=(ue||[]).concat(ue),o=0,a=i.length;o.call(n,e,t))return r}function de(t,e,n){var r,i,o=0,a=se.length,s=h.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=Zt||le(),n=Math.max(0,l.startTime+l.duration-e),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o.run®;return s.notifyWith(t,),r<1&&a?n:(s.resolveWith(t,),!1)},l=s.promise({elem:t,props:h.extend({},e),opts:h.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Zt||le(),duration:n.duration,tweens:[],createTween:function(e,n){var r=h.Tween(t,l.opts,e,n,l.opts.specialEasing||l.opts.easing);return l.tweens.push®,r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n.run(1);return e?s.resolveWith(t,):s.rejectWith(t,),this}}),c=l.props;for(function(t,e){var n,r,i,o,a;for(n in t)if(i=e,o=t,h.isArray(o)&&(i=o,o=t=o),n!==r&&(t=o,delete t),(a=h.cssHooks)&&“expand”in a)for(n in o=a.expand(o),delete t,o)n in t||(t=o,e=i);else e=i}(c,l.opts.specialEasing);o.call(l,t,c,l.opts))return r;return h.map(c,fe,l),h.isFunction(l.opts.start)&&l.opts.start.call(t,l),h.fx.timer(h.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}h.Animation=h.extend(de,{tweener:function(t,e){h.isFunction(t)?(e=t,t=):t=t.split(“ ”);for(var n,r=0,i=t.length;r,ue=ue||[],ue.unshift(e)},prefilter:function(t,e){e?se.unshift(t):se.push(t)}}),h.speed=function(t,e,n){var r=t&&“object”==typeof t?h.extend({},t):{complete:n||!n&&e||h.isFunction(t)&&t,duration:t,easing:n&&e||e&&!h.isFunction(e)&&e};return r.duration=h.fx.off?0:“number”==typeof r.duration?r.duration:r.duration in h.fx.speeds?h.fx.speeds:h.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue=“fx”),r.old=r.complete,r.complete=function(){h.isFunction(r.old)&&r.old.call(this),r.queue&&h.dequeue(this,r.queue)},r},h.fn.extend({fadeTo:function(t,e,n,r){return this.filter(V).css(“opacity”,0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=h.isEmptyObject(t),o=h.speed(e,n,r),a=function(){var e=de(this,h.extend({},t),o);(i||h._data(this,“finish”))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return“string”!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||“fx”,[]),this.each((function(){var e=!0,i=null!=t&&t+“queueHooks”,o=h.timers,a=h._data(this);if(i)a&&a.stop&&r(a);else for(i in a)a&&a.stop&&ae.test(i)&&r(a);for(i=o.length;i–;)o.elem!==this||null!=t&&o.queue!==t||(o.anim.stop(n),e=!1,o.splice(i,1));!e&&n||h.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||“fx”),this.each((function(){var e,n=h._data(this),r=n,i=n,o=h.timers,a=r?r.length:0;for(n.finish=!0,h.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e–;)o.elem===this&&o.queue===t&&(o.anim.stop(!0),o.splice(e,1));for(e=0;e&&r.finish&&r.finish.call(this);delete n.finish}))}}),h.each(,(function(t,e){var n=h.fn;h.fn=function(t,r,i){return null==t||“boolean”==typeof t?n.apply(this,arguments):this.animate(ce(e,!0),t,r,i)}})),h.each({slideDown:ce(“show”),slideUp:ce(“hide”),slideToggle:ce(“toggle”),fadeIn:{opacity:“show”},fadeOut:{opacity:“hide”},fadeToggle:{opacity:“toggle”}},(function(t,e){h.fn=function(t,n,r){return this.animate(e,t,n,r)}})),h.timers=[],h.fx.tick=function(){var t,e=h.timers,n=0;for(Zt=h.now();n)()||e!==t||e.splice(n–,1);e.length||h.fx.stop(),Zt=void 0},h.fx.timer=function(t){h.timers.push(t),t()?h.fx.start():h.timers.pop()},h.fx.interval=13,h.fx.start=function(){Xt||(Xt=setInterval(h.fx.tick,h.fx.interval))},h.fx.stop=function(){clearInterval(Xt),Xt=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(t,e){return t=h.fx&&h.fx.speeds||t,e=e||“fx”,this.queue(e,(function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout®}}))},(te=E.createElement(“div”)).setAttribute(“className”,“t”),te.innerHTML=“ <link/><table></table><a href=‘/a’>a</a><input type=‘checkbox’/>”,ne=te.getElementsByTagName(“a”),re=(ee=E.createElement(“select”)).appendChild(E.createElement(“option”)),Jt=te.getElementsByTagName(“input”),ne.style.cssText=“top:1px”,p.getSetAttribute=“t”!==te.className,p.style=/top/.test(ne.getAttribute(“style”)),p.hrefNormalized=“/a”===ne.getAttribute(“href”),p.checkOn=!!Jt.value,p.optSelected=re.selected,p.enctype=!!E.createElement(“form”).enctype,ee.disabled=!0,p.optDisabled=!re.disabled,(Jt=E.createElement(“input”)).setAttribute(“value”,“”),p.input=“”===Jt.getAttribute(“value”),Jt.value=“t”,Jt.setAttribute(“type”,“radio”),p.radioValue=“t”===Jt.value;var pe=/r/g;h.fn.extend({val:function(t){var e,n,r,i=this;return arguments.length?(r=h.isFunction(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,h(this).val()):t)?i=“”:“number”==typeof i?i+=“”:h.isArray(i)&&(i=h.map(i,(function(t){return null==t?“”:t+“”}))),(e=h.valHooks||h.valHooks)&&“set”in e&&void 0!==e.set(this,i,“value”)||(this.value=i))}))):i?(e=h.valHooks||h.valHooks)&&“get”in e&&void 0!==(n=e.get(i,“value”))?n:“string”==typeof(n=i.value)?n.replace(pe,“”):null==n?“”:n:void 0}}),h.extend({valHooks:{option:{get:function(t){var e=h.find.attr(t,“value”);return null!=e?e:h.trim(h.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o=“select-one”===t.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u).selected||u===i)&&(p.optDisabled?!n.disabled:null===n.getAttribute(“disabled”))&&(!n.parentNode.disabled||!h.nodeName(n.parentNode,“optgroup”))){if(e=h(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=h.makeArray(e),a=i.length;a–;)if(r=i,h.inArray(h.valHooks.option.get®,o)>=0)try{r.selected=n=!0}catch(t){r.scrollHeight}else r.selected=!1;return n||(t.selectedIndex=-1),i}}}}),h.each(,(function(){h.valHooks={set:function(t,e){if(h.isArray(e))return t.checked=h.inArray(h(t).val(),e)>=0}},p.checkOn||(h.valHooks.get=function(t){return null===t.getAttribute(“value”)?“on”:t.value})}));var he,ve,me=h.expr.attrHandle,ye=/^(?:checked|selected)$/i,ge=p.getSetAttribute,be=p.input;h.fn.extend({attr:function(t,e){return K(this,h.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){h.removeAttr(this,t)}))}}),h.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?h.prop(t,e,n):(1===o&&h.isXMLDoc(t)||(e=e.toLowerCase(),r=h.attrHooks||(h.expr.match.bool.test(e)?ve:he)),void 0===n?r&&“get”in r&&null!==(i=r.get(t,e))?i:null==(i=h.find.attr(t,e))?void 0:i:null!==n?r&&“set”in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+“”),n):void h.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(L);if(o&&1===t.nodeType)for(;n=o;)r=h.propFix||n,h.expr.match.bool.test(n)?be&&ge||!ye.test(n)?t=!1:t=t=!1:h.attr(t,n,“”),t.removeAttribute(ge?n:r)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&“radio”===e&&h.nodeName(t,“input”)){var n=t.value;return t.setAttribute(“type”,e),n&&(t.value=n),e}}}}}),ve={set:function(t,e,n){return!1===e?h.removeAttr(t,n):be&&ge||!ye.test(n)?t.setAttribute(!ge&&h.propFix||n,n):t=t=!0,n}},h.each(h.expr.match.bool.source.match(/w+/g),(function(t,e){var n=me||h.find.attr;me=be&&ge||!ye.test(e)?function(t,e,r){var i,o;return r||(o=me,me=i,i=null!=n(t,e,r)?e.toLowerCase():null,me=o),i}:function(t,e,n){if(!n)return t?e.toLowerCase():null}})),be&&ge||(h.attrHooks.value={set:function(t,e,n){if(!h.nodeName(t,“input”))return he&&he.set(t,e,n);t.defaultValue=e}}),ge||(he={set:function(t,e,n){var r=t.getAttributeNode(n);if(r||t.setAttributeNode(r=t.ownerDocument.createAttribute(n)),r.value=e+=“”,“value”===n||e===t.getAttribute(n))return e}},me.id=me.name=me.coords=function(t,e,n){var r;if(!n)return(r=t.getAttributeNode(e))&&“”!==r.value?r.value:null},h.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:he.set},h.attrHooks.contenteditable={set:function(t,e,n){he.set(t,“”!==e&&e,n)}},h.each(,(function(t,e){h.attrHooks={set:function(t,n){if(“”===n)return t.setAttribute(e,“auto”),n}}}))),p.style||(h.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+“”}});var we=/^(?:input|select|textarea|button|object)$/i,_e=/^(?:a|area)$/i;h.fn.extend({prop:function(t,e){return K(this,h.prop,t,e,arguments.length>1)},removeProp:function(t){return t=h.propFix||t,this.each((function(){try{this=void 0,delete this}catch(t){}}))}}),h.extend({propFix:{for:“htmlFor”,class:“className”},prop:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!h.isXMLDoc(t))&&(e=h.propFix||e,i=h.propHooks),void 0!==n?i&&“set”in i&&void 0!==(r=i.set(t,n,e))?r:t=n:i&&“get”in i&&null!==(r=i.get(t,e))?r:t},propHooks:{tabIndex:{get:function(t){var e=h.find.attr(t,“tabindex”);return e?parseInt(e,10):we.test(t.nodeName)||_e.test(t.nodeName)&&t.href?0:-1}}}}),p.hrefNormalized||h.each(,(function(t,e){h.propHooks={get:function(t){return t.getAttribute(e,4)}}})),p.optSelected||(h.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),h.each(,(function(){h.propFix=this})),p.enctype||(h.propFix.enctype=“encoding”);var Oe=//g;h.fn.extend({addClass:function(t){var e,n,r,i,o,a,s=0,u=this.length,l=“string”==typeof t&&t;if(h.isFunction(t))return this.each((function(e){h(this).addClass(t.call(this,e,this.className))}));if(l)for(e=(t||“”).match(L)||[];s).nodeType&&(n.className?(“ ”n.className“ ”).replace(Oe,“ ”):“ ”)){for(o=0;i=e;)r.indexOf(“ ”i“ ”)<0&&(r+=i+“ ”);a=h.trim®,n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,s=0,u=this.length,l=0===arguments.length||“string”==typeof t&&t;if(h.isFunction(t))return this.each((function(e){h(this).removeClass(t.call(this,e,this.className))}));if(l)for(e=(t||“”).match(L)||[];s).nodeType&&(n.className?(“ ”n.className“ ”).replace(Oe,“ ”):“”)){for(o=0;i=e;)for(;r.indexOf(“ ”i“ ”)>=0;)r=r.replace(“ ”i“ ”,“ ”);a=t?h.trim®:“”,n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return“boolean”==typeof e&&“string”===n?e?this.addClass(t):this.removeClass(t):h.isFunction(t)?this.each((function(n){h(this).toggleClass(t.call(this,n,this.className,e),e)})):this.each((function(){if(“string”===n)for(var e,r=0,i=h(this),o=t.match(L)||[];e=o;)i.hasClass(e)?i.removeClass(e):i.addClass(e);else“undefined”!==n&&“boolean”!==n||(this.className&&h._data(this,“__className__”,this.className),this.className=this.className||!1===t?“”:h._data(this,“__className__”)||“”)}))},hasClass:function(t){for(var e=“ ”t“ ”,n=0,r=this.length;n.nodeType&&(“ ”this[n].className“ ”).replace(Oe,“ ”).indexOf(e)>=0)return!0;return!1}}),h.each(“blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu”.split(“ ”),(function(t,e){h.fn=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}})),h.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,“**”):this.off(e,t||“**”,n)}});var ke=h.now(),xe=/?/,Ce=/(,)|()|“(?:[^”\rn]|\|\u{4})*”s*:?|true|false|null|-?(?!0d)d+(?:.d+|)(?:[+-]?d+|)/g;h.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+“”);var e,r=null,i=h.trim(t+“”);return i&&!h.trim(i.replace(Ce,(function(t,n,i,o){return e&&n&&(r=0),0===r?t:(e=i||n,r+=!o-!i,“”)})))?Function(“return ”+i)():h.error(“Invalid JSON: ”+t)},h.parseXML=function(t){var e;if(!t||“string”!=typeof t)return null;try{n.DOMParser?e=(new DOMParser).parseFromString(t,“text/xml”):((e=new ActiveXObject(“Microsoft.XMLDOM”)).async=“false”,e.loadXML(t))}catch(t){e=void 0}return e&&e.documentElement&&!e.getElementsByTagName(“parsererror”).length||h.error(“Invalid XML: ”+t),e};var Ee,je,Se=/#.*$/,Te=/()_=*/,Ae=/^(.*?):[ t]*([^rn]*)r?$/gm,Pe=/^(?:GET|HEAD)$/,Ne=/^///,Le=/^([w.-]:)(?://(?:[^/?#]*@|)([^/?#:]*)(?::(d+)|)|)/,Ie={},De={},Re=“*/”.concat(“*”);try{je=location.href}catch(t){(je=E.createElement(“a”)).href=“”,je=je.href}function Me(t){return function(e,n){“string”!=typeof e&&(n=e,e=“*”);var r,i=0,o=e.toLowerCase().match(L)||[];if(h.isFunction(n))for(;r=o;)“+”===r.charAt(0)?(r=r.slice(1)||“*”,(t=t||[]).unshift(n)):(t=t||[]).push(n)}}function Be(t,e,n,r){var i={},o=t===De;function a(s){var u;return i=!0,h.each(t||[],(function(t,s){var l=s(e,n,r);return“string”!=typeof l||o||i?o?!(u=l):void 0:(e.dataTypes.unshift(l),a(l),!1)})),u}return a(e.dataTypes)||!i&&a(“*”)}function qe(t,e){var n,r,i=h.ajaxSettings.flatOptions||{};for(r in e)void 0!==e&&((i?t:n||(n={}))[r]=e);return n&&h.extend(!0,t,n),t}Ee=Le.exec(je.toLowerCase())||[],h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:je,type:“GET”,isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee),global:!0,processData:!0,async:!0,contentType:“application/x-www-form-urlencoded; charset=UTF-8”,accepts:{“*”:Re,text:“text/plain”,html:“text/html”,xml:“application/xml, text/xml”,json:“application/json, text/javascript”},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:“responseXML”,text:“responseText”,json:“responseJSON”},converters:{“* text”:String,“text html”:!0,“text json”:h.parseJSON,“text xml”:h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,h.ajaxSettings),e):qe(h.ajaxSettings,t)},ajaxPrefilter:Me(Ie),ajaxTransport:Me(De),ajax:function(t,e){“object”==typeof t&&(e=t,t=void 0),e=e||{};var n,r,i,o,a,s,u,l,c=h.ajaxSetup({},e),f=c.context||c,d=c.context&&(f.nodeType||f.jquery)?h(f):h.event,p=h.Deferred(),v=h.Callbacks(“once memory”),m=c.statusCode||{},y={},g={},b=0,w=“canceled”,_={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!l)for(l={};e=Ae.exec(o);)l[e.toLowerCase()]=e;e=l}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=g=g||t,y=e),this},overrideMimeType:function(t){return b||(c.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)m=[m,t];else _.always(t);return this},abort:function(t){var e=t||w;return u&&u.abort(e),O(0,e),this}};if(p.promise(_).complete=v.add,.success=.done,.error=.fail,c.url=((t||c.url||je)+“”).replace(Se,“”).replace(Ne,Ee+“//”),c.type=e.method||e.type||c.method||c.type,c.dataTypes=h.trim(c.dataType||“*”).toLowerCase().match(L)||,null==c.crossDomain&&(n=Le.exec(c.url.toLowerCase()),c.crossDomain=!(!n||n===Ee&&n===Ee&&(n||(“”===n[1]?“80”:“443”))===(Ee[3]||(“http:”===Ee[1]?“80”:“443”)))),c.data&&c.processData&&“string”!=typeof c.data&&(c.data=h.param(c.data,c.traditional)),Be(Ie,c,e,_),2===b)return _;for(r in(s=c.global)&&0==h.active++&&h.event.trigger(“ajaxStart”),c.type=c.type.toUpperCase(),c.hasContent=!Pe.test(c.type),i=c.url,c.hasContent||(c.data&&(i=c.url+=(xe.test(i)?“&”:“?”)+c.data,delete c.data),!1===c.cache&&(c.url=Te.test(i)?i.replace(Te,“$1_=”ke+):i+(xe.test(i)?“&”:“?”)+“_=”ke+)),c.ifModified&&(h.lastModified&&_.setRequestHeader(“If-Modified-Since”,h.lastModified),h.etag&&_.setRequestHeader(“If-None-Match”,h.etag)),(c.data&&c.hasContent&&!1!==c.contentType||e.contentType)&&_.setRequestHeader(“Content-Type”,c.contentType),_.setRequestHeader(“Accept”,c.dataTypes&&c.accepts[c.dataTypes]?c.accepts[c.dataTypes]+(“*”!==c.dataTypes?“, ”Re“; q=0.01”:“”):c.accepts),c.headers)_.setRequestHeader(r,c.headers);if(c.beforeSend&&(!1===c.beforeSend.call(f,_,c)||2===b))return _.abort();for(r in w=“abort”,{success:1,error:1,complete:1})_(c);if(u=Be(De,c,e,_)){_.readyState=1,s&&d.trigger(“ajaxSend”,),c.async&&c.timeout>0&&(a=setTimeout((function(){_.abort(“timeout”)}),c.timeout));try{b=1,u.send(y,O)}catch(t){if(!(b<2))throw t;O(-1,t)}}else O(-1,“No Transport”);function O(t,e,n,r){var l,y,g,w,O,k=e;2!==b&&(b=2,a&&clearTimeout(a),u=void 0,o=r||“”,_.readyState=t>0?4:0,l=t>=200&&t<300||304===t,n&&(w=function(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;“*”===u;)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader(“Content-Type”));if(i)for(a in s)if(s&&s.test(i)){u.unshift(a);break}if(uin n)o=u;else{for(a in n){if(!u||t.converters[a+“ ”+u]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u&&u.unshift(o),n}(c,_,n)),w=function(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c)for(a in t.converters)l=t.converters;for(o=c.shift();o;)if(t.responseFields&&(n[t.responseFields]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if(“*”===o)o=u;else if(“*”!==u&&u!==o){if(!(a=l[u+“ ”+o]||l[“* ”+o]))for(i in l)if((s=i.split(“ ”))[1]===o&&(a=l[u+“ ”+s]||l[“* ”+s])){!0===a?a=l:!0!==l&&(o=s,c.unshift(s));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:“parsererror”,error:a?t:“No conversion from ”u“ to ”+o}}}return{state:“success”,data:e}}(c,w,_,l),l?(c.ifModified&&((O=_.getResponseHeader(“Last-Modified”))&&(h.lastModified=O),(O=_.getResponseHeader(“etag”))&&(h.etag=O)),204===t||“HEAD”===c.type?k=“nocontent”:304===t?k=“notmodified”:(k=w.state,y=w.data,l=!(g=w.error))):(g=k,!t&&k||(k=“error”,t<0&&(t=0))),_.status=t,_.statusText=(e||k)+"",l?p.resolveWith(f,):p.rejectWith(f,),_.statusCode(m),m=void 0,s&&d.trigger(l?“ajaxSuccess”:“ajaxError”,),v.fireWith(f,),s&&(d.trigger(“ajaxComplete”,),–h.active||h.event.trigger(“ajaxStop”)))}return _},getJSON:function(t,e,n){return h.get(t,e,n,“json”)},getScript:function(t,e){return h.get(t,void 0,e,“script”)}}),h.each(,(function(t,e){h=function(t,n,r,i){return h.isFunction(n)&&(i=i||r,r=n,n=void 0),h.ajax({url:t,type:e,dataType:i,data:n,success:r})}})),h.each(,(function(t,e){h.fn=function(t){return this.on(e,t)}})),h._evalUrl=function(t){return h.ajax({url:t,type:“GET”,dataType:“script”,async:!1,global:!1,throws:!0})},h.fn.extend({wrapAll:function(t){if(h.isFunction(t))return this.each((function(e){h(this).wrapAll(t.call(this,e))}));if(this){var e=h(t,this.ownerDocument).eq(0).clone(!0);this.parentNode&&e.insertBefore(this),e.map((function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t})).append(this)}return this},wrapInner:function(t){return h.isFunction(t)?this.each((function(e){h(this).wrapInner(t.call(this,e))})):this.each((function(){var e=h(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=h.isFunction(t);return this.each((function(n){h(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(){return this.parent().each((function(){h.nodeName(this,“body”)||h(this).replaceWith(this.childNodes)})).end()}}),h.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!p.reliableHiddenOffsets()&&“none”===(t.style&&t.style.display||h.css(t,“display”))},h.expr.filters.visible=function(t){return!h.expr.filters.hidden(t)};var Fe=/%20/g,ze=/$/,Ue=/r?n/g,He=/^(?:submit|button|image|reset|file)$/i,We=/^(?:input|select|textarea|keygen)/i;function Ve(t,e,n,r){var i;if(h.isArray(e))h.each(e,(function(e,i){n||ze.test(t)?r(t,i):Ve(t+“[”+(“object”==typeof i?e:“”)+“]”,i,n,r)}));else if(n||“object”!==h.type(e))r(t,e);else for(i in e)Ve(t+“[”i“]”,e,n,r)}h.param=function(t,e){var n,r=[],i=function(t,e){e=h.isFunction(e)?e():null==e?“”:e,r=encodeURIComponent(t)+“=”+encodeURIComponent(e)};if(void 0===e&&(e=h.ajaxSettings&&h.ajaxSettings.traditional),h.isArray(t)||t.jquery&&!h.isPlainObject(t))h.each(t,(function(){i(this.name,this.value)}));else for(n in t)Ve(n,t,e,i);return r.join(“&”).replace(Fe,“+”)},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=h.prop(this,“elements”);return t?h.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!h(this).is(“:disabled”)&&We.test(this.nodeName)&&!He.test(t)&&(this.checked||!Q.test(t))})).map((function(t,e){var n=h(this).val();return null==n?null:h.isArray(n)?h.map(n,(function(t){return{name:e.name,value:t.replace(Ue,“rn”)}})):{name:e.name,value:n.replace(Ue,“rn”)}})).get()}}),h.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Ge()||function(){try{return new n.ActiveXObject(“Microsoft.XMLHTTP”)}catch(t){}}()}:Ge;var Ke=0,Qe={},$e=h.ajaxSettings.xhr();function Ge(){try{return new n.XMLHttpRequest}catch(t){}}n.ActiveXObject&&h(n).on(“unload”,(function(){for(var t in Qe)Qe(void 0,!0)})),p.cors=!!$e&&“withCredentials”in $e,($e=p.ajax=!!$e)&&h.ajaxTransport((function(t){var e;if(!t.crossDomain||p.cors)return{send:function(n,r){var i,o=t.xhr(),a=++Ke;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o=t.xhrFields;for(i in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n||(n=“XMLHttpRequest”),n)void 0!==n&&o.setRequestHeader(i,n+“”);o.send(t.hasContent&&t.data||null),e=function(n,i){var s,u,l;if(e&&(i||4===o.readyState))if(delete Qe,e=void 0,o.onreadystatechange=h.noop,i)4!==o.readyState&&o.abort();else{l={},s=o.status,“string”==typeof o.responseText&&(l.text=o.responseText);try{u=o.statusText}catch(t){u=“”}s||!t.isLocal||t.crossDomain?1223===s&&(s=204):s=l.text?200:404}l&&r(s,u,l,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=Qe=e:e()},abort:function(){e&&e(void 0,!0)}}})),h.ajaxSetup({accepts:{script:“text/javascript, application/javascript, application/ecmascript, application/x-ecmascript”},contents:{script:/(?:java|ecma)script/},converters:{“text script”:function(t){return h.globalEval(t),t}}}),h.ajaxPrefilter(“script”,(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type=“GET”,t.global=!1)})),h.ajaxTransport(“script”,(function(t){if(t.crossDomain){var e,n=E.head||h(“head”)||E.documentElement;return{send:function(r,i){(e=E.createElement(“script”)).async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||i(200,“success”))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}}));var Ye=[],Ze=/(=)?(?=&|$)|??/;h.ajaxSetup({jsonp:“callback”,jsonpCallback:function(){var t=Ye.pop()||h.expando+“_”ke+;return this=!0,t}}),h.ajaxPrefilter(“json jsonp”,(function(t,e,r){var i,o,a,s=!1!==t.jsonp&&(Ze.test(t.url)?“url”:“string”==typeof t.data&&!(t.contentType||“”).indexOf(“application/x-www-form-urlencoded”)&&Ze.test(t.data)&&“data”);if(s||“jsonp”===t.dataTypes)return i=t.jsonpCallback=h.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t=t.replace(Ze,“$1”+i):!1!==t.jsonp&&(t.url+=(xe.test(t.url)?“&”:“?”)t.jsonp“=”+i),t.converters[“script json”]=function(){return a||h.error(i+“ was not called”),a},t.dataTypes=“json”,o=n,n=function(){a=arguments},r.always((function(){n=o,t&&(t.jsonpCallback=e.jsonpCallback,Ye.push(i)),a&&h.isFunction(o)&&o(a),a=o=void 0})),“script”})),h.parseHTML=function(t,e,n){if(!t||“string”!=typeof t)return null;“boolean”==typeof e&&(n=e,e=!1),e=e||E;var r=O.exec(t),i=!n&&[];return r?[e.createElement(r)]:(r=h.buildFragment(,e,i),i&&i.length&&h(i).remove(),h.merge([],r.childNodes))};var Xe=h.fn.load;h.fn.load=function(t,e,n){if(“string”!=typeof t&&Xe)return Xe.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(“ ”);return s>=0&&(r=h.trim(t.slice(s,t.length)),t=t.slice(0,s)),h.isFunction(e)?(n=e,e=void 0):e&&“object”==typeof e&&(o=“POST”),a.length>0&&h.ajax({url:t,type:o,dataType:“html”,data:e}).done((function(t){i=arguments,a.html(r?h(“<div>”).append(h.parseHTML(t)).find®:t)})).complete(n&&function(t,e){a.each(n,i||)}),this},h.expr.filters.animated=function(t){return h.grep(h.timers,(function(e){return t===e.elem})).length};var Je=n.document.documentElement;function tn(t){return h.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}h.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l=h.css(t,“position”),c=h(t),f={};“static”===l&&(t.style.position=“relative”),s=c.offset(),o=h.css(t,“top”),u=h.css(t,“left”),(“absolute”===l||“fixed”===l)&&h.inArray(“auto”,)>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),h.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+i),“using”in e?e.using.call(t,f):c.css(f)}},h.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){h.offset.setOffset(this,t,e)}));var e,n,r={top:0,left:0},i=this,o=i&&i.ownerDocument;return o?(e=o.documentElement,h.contains(e,i)?(void 0!==i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=tn(o),{top:r.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:r.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):r):void 0},position:function(){if(this){var t,e,n={top:0,left:0},r=this;return“fixed”===h.css(r,“position”)?e=r.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),h.nodeName(t,“html”)||(n=t.offset()),n.top+=h.css(t,“borderTopWidth”,!0),n.left+=h.css(t,“borderLeftWidth”,!0)),{top:e.top-n.top-h.css(r,“marginTop”,!0),left:e.left-n.left-h.css(r,“marginLeft”,!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||Je;t&&!h.nodeName(t,“html”)&&“static”===h.css(t,“position”);)t=t.offsetParent;return t||Je}))}}),h.each({scrollLeft:“pageXOffset”,scrollTop:“pageYOffset”},(function(t,e){var n=/Y/.test(e);h.fn=function®{return K(this,(function(t,r,i){var o=tn(t);if(void 0===i)return o?e in o?o:o.document.documentElement:t;o?o.scrollTo(n?h(o).scrollLeft():i,n?i:h(o).scrollTop()):t=i}),t,r,arguments.length,null)}})),h.each(,(function(t,e){h.cssHooks=Rt(p.pixelPosition,(function(t,n){if(n)return n=Nt(t,e),It.test(n)?h(t).position()+“px”:n}))})),h.each({Height:“height”,Width:“width”},(function(t,e){h.each({padding:“inner”+t,content:e,“”:“outer”+t},(function(n,r){h.fn=function(r,i){var o=arguments.length&&(n||“boolean”!=typeof r),a=n||(!0===r||!0===i?“margin”:“border”);return K(this,(function(e,n,r){var i;return h.isWindow(e)?e.document.documentElement:9===e.nodeType?(i=e.documentElement,Math.max(e.body,i,e.body,i,i)):void 0===r?h.css(e,n,a):h.style(e,n,r,a)}),e,o?r:void 0,o,null)}}))})),h.fn.size=function(){return this.length},h.fn.andSelf=h.fn.addBack,void 0===(r=function(){return h}.apply(e,[]))||(t.exports=r);var en=n.jQuery,nn=n.$;return h.noConflict=function(t){return n.$===h&&(n.$=nn),t&&n.jQuery===h&&(n.jQuery=en),h},void 0===i&&(n.jQuery=n.$=h),h},“object”==typeof t.exports?t.exports=i.document?o(i,!0):function(t){if(!t.document)throw new Error(“jQuery requires a window with a document”);return o(t)}:o(i)},54:function(t,e){},55:function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r,i,o,a,s,u;e.NewLine=“n”,function(t){t.Ordered=“ordered”,t.Bullet=“bullet”,t.Checked=“checked”,t.Unchecked=“unchecked”}(r||(r={})),e.ListType=r,function(t){t.Sub=“sub”,t.Super=“super”}(i||(i={})),e.ScriptType=i,function(t){t.Rtl=“rtl”}(o||(o={})),e.DirectionType=o,function(t){t.Center=“center”,t.Right=“right”,t.Justify=“justify”}(a||(a={})),e.AlignType=a,function(t){t.Image=“image”,t.Video=“video”,t.Formula=“formula”,t.Text=“text”}(s||(s={})),e.DataType=s,function(t){t.Block=“block”,t.InlineGroup=“inline-group”,t.List=“list”,t.Video=“video”}(u||(u={})),e.GroupType=u},57:function(t,e){},58:function(t,e,n){“use strict”;var r=n(185),i=r.stringify,o={},a=r.struct({message:r.Any,actual:r.Any,expected:r.Any,path:r.list(r.union())},“ValidationError”);function s(t,e,n,o){return r.Function.is(e.getValidationErrorMessage)?e.getValidationErrorMessage(t,n,o):function(t,e,n){var o=r.getTypeName(e),a=n.length?“/”+n.join(“/”)+“: ”+o:o;return“Invalid value ”+i(t)+“ supplied to ”+a}(t,e,n)}a.of=function(t,e,n,r){return new a({message:s(t,e,n,r),actual:t,expected:e,path:n})};var u=r.struct({errors:r.list(a),value:r.Any},“ValidationResult”);function l(t,e,n){n=n||{};var i=r.Array.is(n)?n:n.path||[];return new u(c(t,e,i,n))}function c(t,e,n,i){return r.isType(e)?f(t,e,n,i):f.es6classes(t,e,n,i)}u.prototype.isValid=function(){return!this.errors.length},u.prototype.firstError=function(){return this.isValid()?null:this.errors},u.prototype.toString=function(){return this.isValid()?“[ValidationResult, true, ”+i(this.value)+“]”:“[ValidationResult, false, (”+this.errors.map((function(t){return i(t.message)})).join(“, ”)+“)]”};var f=l.validators={};f.es6classes=function(t,e,n,r){return{value:t,errors:t instanceof e?[]:}},f.irreducible=f.enums=function(t,e,n,r){return{value:t,errors:e.is(t)?[]:}},f.list=function(t,e,n,i){if(!r.Array.is(t))return{value:t,errors:};for(var o={value:[],errors:},s=0,u=t.length;s<u;s++){var l=c(t,e.meta.type,n.concat(s),i);o.value=l.value,o.errors=o.errors.concat(l.errors)}return o},f.subtype=function(t,e,n,r){var i=c(t,e.meta.type,n,r);return i.errors.length||e.meta.predicate(i.value)||(i.errors=),i},f.maybe=function(t,e,n,i){return r.Nil.is(t)?{value:t,errors:[]}:c(t,e.meta.type,n,i)},f.struct=function(t,e,n,i){if(!r.Object.is(t))return{value:t,errors:};if(e.is(t))return{value:t,errors:[]};var s={value:{},errors:[]},u=e.meta.props,l=e.meta.defaultProps||o;for(var f in u)if(u.hasOwnProperty(f)){var d=t;void 0===d&&(d=l);var p=c(d,u,n.concat(f),i);s.value=p.value,s.errors=s.errors.concat(p.errors)}if(i.hasOwnProperty(“strict”)?i.strict:e.meta.strict)for(var h in t)t.hasOwnProperty(h)&&!u.hasOwnProperty(h)&&s.errors.push(a.of(t,r.Nil,n.concat(h),i.context));return s.errors.length||(s.value=new e(s.value)),s},f.tuple=function(t,e,n,i){var o=e.meta.types,s=o.length;if(!r.Array.is(t)||t.length>s)return{value:t,errors:};for(var u={value:[],errors:},l=0;l<s;l++){var f=c(t,o,n.concat(l),i);u.value=f.value,u.errors=u.errors.concat(f.errors)}return u},f.dict=function(t,e,n,i){if(!r.Object.is(t))return{value:t,errors:};var o={value:{},errors:[]};for(var s in t)if(t.hasOwnProperty(s)){var u=n.concat(s),l=c(s,e.meta.domain,u,i),f=c(t,e.meta.codomain,u,i);o.value=f.value,o.errors=o.errors.concat(l.errors,f.errors)}return o},f.union=function(t,e,n,i){var o=e.dispatch(t);return r.Function.is(o)?c(t,o,n.concat(e.meta.types.indexOf(o)),i):{value:t,errors:}},f.intersection=function(t,e,n,r){for(var i=e.meta.types,o=i.length,s={value:t,errors:[]},u=0,l=0;l.meta.kind&&u++;var f=c(t,i,n,r);s.errors=s.errors.concat(f.errors)}return u>1&&s.errors.push(a.of(t,e,n,r.context)),s},f.interface=function(t,e,n,i){if(!r.Object.is(t))return{value:t,errors:};var o={value:{},errors:[]},s=e.meta.props;for(var u in s){var l=c(t,s,n.concat(u),i);o.value=l.value,o.errors=o.errors.concat(l.errors)}if(i.hasOwnProperty(“strict”)?i.strict:e.meta.strict)for(var f in t)s.hasOwnProperty(f)||r.Nil.is(t)||o.errors.push(a.of(t,r.Nil,n.concat(f),i.context));return o},r.mixin(r,{ValidationError:a,ValidationResult:u,validate:l}),t.exports=r},59:function(t,e,n){“use strict”;n.d(e,“b”,(function(){return u})),n.d(e,“a”,(function(){return l}));var r=n(0),i=n(3),o=n(51),a=n(25),s=function(){return(s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)};function u(t,e){return void 0===e&&(e={}),d(t),c(t,{origin:e.origin||Object(a.a)(),query:e.query,hash:e.hash})}function l(t,e){return d(t),c(t,e)}function c(t,e){return t instanceof i.BasicLink?function(t,e){void 0===e&&(e={});if(t.isExternal())return t.url();var n=t.obj();if(!n)throw new r.a(“Missing link target.”);var i=s({},e);e.queryParameters||“string”==typeof e.query||(i.query=t.query()||void 0);“string”!=typeof e.hash&&(i.hash=t.hash()||void 0);return f(n,i)}(t,e):t instanceof i.Binary?p(t):f(t,e)}function f(t,e){return Object(o.a)(t)?function(t,e){var n=t.get(“blob”,);if(n)return p(n);return h(t,e)}(t,e):h(t,e)}function d(t){if(!t)throw new r.a(“Missing target.”);if(!(t instanceof i.BasicLink||t instanceof i.BasicObj||t instanceof i.Binary))throw new r.a(“Target is invalid. Valid targets are instances of Obj or Link.”)}function p(t){return t.url()}function h(t,e){void 0===e&&(e={});var n=e.origin,r=e.query,o=e.queryParameters,s=e.hash,u=o||r&&Object(i.parseQuery)®||void 0;return Object(a.c)({obj:t,origin:n,queryParameters:u,hash:s})}},61:function(t,e,n){“use strict”;var r;function i(t){r=t}function o(){return r?r():null}n.d(e,“b”,(function(){return i})),n.d(e,“a”,(function(){return o}))},63:function(t,e){t.exports=function(t){return t.displayName||t.name||“<function”t.length“>”}},64:function(t,e,n){var r=n(21),i=n(29);t.exports=function(t,e){r(!(t instanceof e),(function(){return“Cannot use the new operator to instantiate the type ”+i(e)}))}},66:function(t,e,n){“use strict”;n.d(e,“a”,(function(){return l})),n.d(e,“b”,(function(){return c}));var r=n(109),i=n(32),o=n(24),a=n(0),s=n(10),u=n(3);function l(t,e){return c(Object(u.currentWorkspaceId)(),t,e)}function c(t,e,n){var l=u.BasicObj.getIncludingDeletedInWorkspace(t,e);if(null!==l){var c,f=l.widget(n);if(null!==f)return function(t){var e=Object(s.f)(Object(o.a)(),t),n=t.objClass();return Object(r.a)(n,“titleForContent”,e)}(f)||(c=f.objClass(),Object(i.a)(c,“title”)||Object(a.N)©)}}},67:function(t,e,n){“use strict”;n.d(e,“a”,(function(){return u}));var r=n(12),i=n(3),o=n(59),a=n(25),s=/bobjid:{16}b*/g;function u(t){return t.replace(s,(function(t){return function(t){var e,n,s=t.slice(6,22),u=i.BasicObj.get(s);u?(e=r(Object(o.a)(u)),n=a.e(e)):(e=a.b({path:s}),n=!0);if(n){var l=r(t);e.query(l.query()).hash(l.hash())}return e}(t).toString()}))}},69:function(t,e,n){”use strict“;n.d(e,”a“,(function(){return d})),n.d(e,”b“,(function(){return p}));var r=n(2),i=n(3),o=n(0),a=n(77),s=n(24),u=n(61),l=n(10),c=n(5),f=n(35);function d(t){if(!(t instanceof i.BasicObj))throw new o.a(”Parameter obj needs to be a BasicObj.“);if(function(t){var e=Object(c.loadableWithDefault)(null,u.a);if(!e)return!1;return e.id()===t.id()}(t))return”/“;var e=t.permalink();if(e){if(!Object(f.f)())return h(t,e);if(Object(f.a)(”routing-related API (e.g. Scrivito.navigateTo)“),function(t){var e=Object(f.c)(t),n=Object(f.b)();return!e||e===n}(t))return h(t,e)}var n=function(t){var e=Object(s.a)(),n=Object(l.f)(e,t);if(function(t){var e=t;return e.slug&&”function“==typeof e.slug}(n)){var r=n.slug();if(”string“==typeof r)return r}}(t);return n?”/“n”-“+t.id():”/“+t.id()}function p(t){var e=t.replace(new RegExp(”^/+|/+$“,”g“),”“);if(”“===e)return Object(u.a)();var n=function(t){if(t.length<16)return null;if(t.length>16&&”-“!==t.slice(-17,-16))return null;var e=t.slice(-16);if(e.match(//))return null;return e}(e);return n?i.BasicObj.get(n):function(t){var e=a.a(t);if(e)return i.BasicObj.get(e);if(Object(f.f)())return function(t){Object(f.a)(”routing-related API (e.g. Scrivito.currentPage, Scrivito.urlFor)“);var e=Object(f.b)(),n=i.BasicObj.getAllByPermalink(t);return Object(r.find)(n,(function(t){var n=Object(f.c)(t);return!n||n===e}))||null}(t);return i.BasicObj.getByPermalink(t)}(e)}function h(t,e){return a.b(t.id(),e),”/“+e}},7:function(t,e,n){”use strict“;n.d(e,”d“,(function(){return T})),n.d(e,”c“,(function(){return y})),n.d(e,”m“,(function(){return b})),n.d(e,”o“,(function(){return N})),n.d(e,”r“,(function(){return A})),n.d(e,”s“,(function(){return L})),n.d(e,”g“,(function(){return I})),n.d(e,”h“,(function(){return D})),n.d(e,”i“,(function(){return P})),n.d(e,”p“,(function(){return g})),n.d(e,”b“,(function(){return m})),n.d(e,”j“,(function(){return E})),n.d(e,”n“,(function(){return q})),n.d(e,”e“,(function(){return R})),n.d(e,”f“,(function(){return M})),n.d(e,”a“,(function(){return U})),n.d(e,”k“,(function(){return H})),n.d(e,”l“,(function(){return W})),n.d(e,”q“,(function(){return V}));var r=n(0),i=n(2),o=function(){function t(t,e){this.value=t,this.copy=e,this.valueForReading=new r.d}return t.prototype.read=function(t){var e=this.value;return this.valueForReading.runWith(e,(function(){return t(e)}))},t.prototype.write=function(t){this.valueForReading.current()===this.value&&(this.value=this.copy(this.value)),t(this.value)},t}(),a=function(){function t(t){this.notifySubscribers=t,this.subscribersStore=new o([],(function(t){return t.slice()}))}return t.prototype.create=function(t,e){return void 0===e&&(e=0),new s(this.subscribersStore,t,e)},t.prototype.count=function(){return this.subscribersStore.read((function(t){return t.length}))},t.prototype.reset=function(){this.subscribersStore.write((function(t){t.length=0}))},t.prototype.notify=function(){var t=this;this.subscribersStore.read((function(e){return t.notifySubscribers(e)}))},t}(),s=function(){function t(t,e,n){void 0===n&&(n=0),this.subscriberStore=t,this.listener=e,this.rank=n,this.active=!1}return t.prototype.subscribeChanges=function(t){var e=this;this.stateReference=t,this.active||(this.subscriberStore.write((function(t){var n=Object(i.sortedIndex)(t,e,”rank“);t.splice(n,0,e)})),this.active=!0),this.hasChanges()&&this.listener()},t.prototype.unsubscribe=function(){var t=this;this.active&&(this.subscriberStore.write((function(e){var n=e.indexOf(t);n>=0&&e.splice(n,1)})),this.active=!1)},t.prototype.notify=function(){this.active&&this.listener()},t.prototype.hasChanges=function(){return!!this.stateReference&&this.stateReference.hasChanges()},t}(),u=new a((function(t){t.forEach((function(t){t.hasChanges()&&t.notify()}))})),l=new a((function(t){t.forEach((function(t){Object(r.G)((function(){t.hasChanges()&&t.notify()}))}))})),c=function(){function t(){this.listenersStore=new o([],(function(t){return t.slice()}))}return t.prototype.subscribe=function(t){var e=this,n=!0,r=function(){n&&t()};return this.listenersStore.write((function(t){return t.push®})),function(){n=!1,e.listenersStore.write((function(t){var e=t.indexOf®;t.splice(e,1)}))}},t.prototype.count=function(){return this.listenersStore.read((function(t){return t.length}))},t.prototype.clear=function(){this.listenersStore.write((function(t){t.length=0}))},t.prototype.notify=function(){this.listenersStore.read((function(t){return t.forEach((function(t){return t()}))}))},t}();function f(t){return null!==t&&”object“==typeof t&&!Array.isArray(t)&&!function(t){var e=Object.getPrototypeOf(t);if(null===e)return!1;return null!==Object.getPrototypeOf(e)}(t)}function d(t,e){return t===e?e:f(e)?function(t,e){var n={},r=!1;void 0===t&&(r=!0);var i=Object.keys(e),o=new Set;t&&Object.keys(t).forEach((function(t){return o.add(t)}));o.size!==i.length&&(r=!0);return i.forEach((function(i){o.has(i)||(r=!0);var a=t?t:void 0,s=d(a,e);s!==a&&(r=!0),n=s})),r?Object.freeze(n):t}(f(t)?t:void 0,e):Array.isArray(e)?function(t,e){var n=!1;void 0!==t&&t.length===e.length||(n=!0);var r=e.map((function(e,r){var i=t?t:void 0,o=d(i,e);return o!==i&&(n=!0),o}));return n?Object.freeze®:t}(Array.isArray(t)?t:void 0,e):e}var p,h,v,m,y,g,b,w=(p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(t,e)},function(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_=function(){function t(){}return t.prototype.get=function(){var t=this,e=this.untrackedGet();return this.recordDetector((function(){return e!==t.untrackedGet()})),e},t.prototype.recordDetector=function(t){this.getTree().recordDetector(t)},t.prototype.set=function(t){var e=this.untrackedGet(),n=d(e,t);n!==e&&this.uncheckedSet(n)},t.prototype.clear=function(){this.set(void 0)},t.prototype.subState=function(t){return new C(this,t)},t.prototype.reader=function(){return this},t.prototype.setSubState=function(t,e){var n,i=this.untrackedGet();if(void 0!==i){if(void 0===e){var o=Object.keys(i);if(1===o.length&&o===t)return void this.uncheckedSet(void 0)}if(null===i)throw new r.g;var a=Object(r.n)({},i),s=a;void 0===e?delete s:s=e,this.uncheckedSet(Object.freeze(a))}else{var u=Object.freeze(((n={})[t]=e,n));this.uncheckedSet(u)}},t.prototype.getSubState=function(t){var e=this.untrackedGet();if(null!=e)return e},t}(),O=function(){function t(t){this.detector=t}return t.prototype.hasChanges=function(){return this.detector()},t}(),k=function(t){function e(){var e=t.call(this)||this;return e.listeners=new c,e.detectorRecording=new r.d,e.batchUpdates=new r.d,e.version=0,e.frozenContextContainer=new r.d,e}return w(e,t),e.prototype.untrackedGet=function(){return this.state},e.prototype.withFrozenState=function(t,e){return this.frozenContextContainer.runWith(t,e)},e.prototype.failIfTracking=function(t){if(this.detectorRecording.current())throw new r.g(t)},e.prototype.failIfFrozen=function(t){var e=this.frozenContextContainer.current();if(e){var n=t+” is not permitted inside ’“e.contextName”‘. “+(e.message||”“);throw new x(n)}},e.prototype.uncheckedSet=function(t){this.failIfFrozen(”Changing state“),this.state=t,this.version++,this.insideBatchUpdate()||this.notifyListeners()},e.prototype.trackStateAccess=function(t){var e=this.trackChanges(t),n=e.detector;return{result:e.result,accessedState:new O(n)}},e.prototype.recordDetector=function(t){var e=this.detectorRecording.current();void 0!==e&&e.push(t)},e.prototype.getTree=function(){return this},e.prototype.id=function(){return”“},e.prototype.subscribe=function(t){return this.listeners.subscribe(t)},e.prototype.withBatchedUpdates=function(t){var e=this.state;try{this.batchUpdates.runWith(!0,t)}finally{this.insideBatchUpdate()||e===this.state||this.notifyListeners()}},e.prototype.listenerCount=function(){return this.listeners.count()},e.prototype.clearListeners=function(){this.listeners.clear()},e.prototype.trackChanges=function(t){var e=this,n=this.version,r=this.recordDetectors(t),o=r.result,a=r.detectors;return{result:o,detector:function(){return e.version!==n&&!!Object(i.find)(a,(function(t){return t()}))}}},e.prototype.recordDetectors=function(t){var e=[],n=this.detectorRecording.runWith(e,t),r=this.detectorRecording.current();return void 0!==r&&r.push.apply(r,e),{result:n,detectors:e}},e.prototype.notifyListeners=function(){var t=this;this.withFrozenState({contextName:”state listeners“},(function(){t.listeners.notify()}))},e.prototype.insideBatchUpdate=function(){return!!this.batchUpdates.current()},e}(_),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e}(r.i),C=function(t){function e(e,n){var r=t.call(this)||this;return r.parentState=e,r.key=n,r.tree=e.getTree(),r}return w(e,t),e.prototype.getTree=function(){return this.tree},e.prototype.untrackedGet=function(){return this.parentState.getSubState(this.key)},e.prototype.uncheckedSet=function(t){this.parentState.setSubState(this.key,t)},e.prototype.id=function(){if(void 0===this.cachedId){var t=this.key.replace(/\/g,”\\“).replace(///g,”\/“);this.cachedId=this.parentState.id()+”/“+t}return this.cachedId},e}(_);function E(t){t?(h=void 0,v=t.stateController(),m=t.createAppState(),b=t.sharedCmsState(),y=m.subState(”localCms“)):(h=new k,v=h,m=T(),b=h.subState(”sharedCms“),y=h.subState(”localCms“),g=h.subState(”ui“)),B()}var j,S=0;function T(){if(!h)throw new r.g;var t=(S++).toString();return h.subState(”apps“).subState(t)}function A(t){return v.withBatchedUpdates(t)}function P(){return v}function N(t){return v.trackStateAccess(t)}function L(t,e){return v.withFrozenState(t,e)}function I(t){return v.failIfFrozen(t)}function D(t){return v.failIfTracking(t)}function R(t){return l.create(t)}function M(t,e){return void 0===e&&(e=0),u.create(t,e)}function B(){j=v.subscribe((function(){u.notify(),l.notify()}))}function q(){j&&j(),m.clear()}var F=[],z=function(){return 0!==F.length};function U(t){z()||Object(r.G)((function(){return A((function(){return function t(e){F=[];try{e.forEach((function(t){return t()}))}finally{z()&&t(F)}}(F)}))})),F.push(t)}function H(t,e){var n,i=!0,o=!1,a=R(s);function s(){if(i){var s=N((function(){return L({contextName:”observe“,message:”Extract all side-effects into the listener function“},t)}));a.subscribeChanges(s.accessedState);var u=s.result;o&&Object(r.v)(u,n)||(e(u),n=u,o=!0)}}return Object(r.G)(s),{unsubscribe:function(){i=!1,a.unsubscribe()},forceRefresh:function(){Object(r.G)(s)}}}function W(t,e){var n=N((function(){return L({contextName:”observeSync“,message:”Use non-sync observe or nextTick“},t)})),i=n.result,o=M((function(){var n=N(t);o.subscribeChanges(n.accessedState);var a=n.result;Object(r.v)(a,i)||(e(a),i=a)}));return o.subscribeChanges(n.accessedState),{initialValue:i,unsubscribe:function(){o.unsubscribe()}}}function V(t){return new r.j((function(e){var n=H(t,(function(t){null!=t&&(n.unsubscribe(),e(t))}))}))}},70:function(t,e){t.exports=function(t){return”string“==typeof t}},71:function(t,e){t.exports=function(t){return!0===t||!1===t}},72:function(t,e,n){var r=n(36),i=n(33);t.exports=r(”Function“,i)},73:function(t,e,n){”use strict“;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,”__esModule“,{value:!0});var o=function(t){this.ops=t};e.InlineGroup=o;var a=function(t){this.op=t},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);e.VideoItem=s;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);e.BlotBlock=u;var l=function(t,e){this.op=t,this.ops=e};e.BlockGroup=l;var c=function(t){this.items=t};e.ListGroup=c;var f=function(t,e){void 0===e&&(e=null),this.item=t,this.innerList=e};e.ListItem=f},744:function(t,e,n){”use strict“;n.r(e);var r={};n.r®,n.d(r,”alwaysShowOptionMarkers“,(function(){return G.l})),n.d(r,”isFetchingActive“,(function(){return O.g})),n.d(r,”enableForceVerification“,(function(){return _e})),n.d(r,”currentPublicAuthorizationState“,(function(){return Oe}));var i={};n.r(i),n.d(i,”Binary“,(function(){return l.Binary})),n.d(i,”FutureBinary“,(function(){return l.FutureBinary})),n.d(i,”ObjFacetValue“,(function(){return N.a})),n.d(i,”load“,(function(){return v.load})),n.d(i,”ArgumentError“,(function(){return L.a})),n.d(i,”ScrivitoError“,(function(){return L.i})),n.d(i,”configure“,(function(){return zt})),n.d(i,”configureContentBrowser“,(function(){return J})),n.d(i,”currentPage“,(function(){return Qt.a})),n.d(i,”currentPageParams“,(function(){return Qt.c})),n.d(i,”extendMenu“,(function(){return re})),n.d(i,”updateMenuExtensions“,(function(){return oe})),n.d(i,”renderPage“,(function(){return fe})),n.d(i,”preload“,(function(){return he})),n.d(i,”finishLoading“,(function(){return ye.a})),n.d(i,”openDialog“,(function(){return ge})),n.d(i,”isInPlaceEditingActive“,(function(){return x.c})),n.d(i,”isEditorLoggedIn“,(function(){return we})),n.d(i,”navigateTo“,(function(){return W.a})),n.d(i,”provideEditingConfig“,(function(){return V.b})),n.d(i,”urlFor“,(function(){return q})),n.d(i,”useHistory“,(function(){return m.f})),n.d(i,”unstable_selectSiteId“,(function(){return H.e})),n.d(i,”BackgroundImageTag“,(function(){return G.a})),n.d(i,”ChildListTag“,(function(){return G.b})),n.d(i,”ContentTag“,(function(){return G.c})),n.d(i,”CurrentPage“,(function(){return G.d})),n.d(i,”ImageTag“,(function(){return G.e})),n.d(i,”InPlaceEditingOff“,(function(){return G.f})),n.d(i,”LinkTag“,(function(){return G.g})),n.d(i,”NotFoundErrorPage“,(function(){return G.h})),n.d(i,”RestoreInPlaceEditing“,(function(){return G.j})),n.d(i,”WidgetTag“,(function(){return G.k})),n.d(i,”connect“,(function(){return G.m})),n.d(i,”provideComponent“,(function(){return G.p})),n.d(i,”registerComponent“,(function(){return G.q})),n.d(i,”Link“,(function(){return xe})),n.d(i,”Obj“,(function(){return Ce})),n.d(i,”ObjSearch“,(function(){return Ee})),n.d(i,”Widget“,(function(){return je})),n.d(i,”createObjClass“,(function(){return Se})),n.d(i,”createWidgetClass“,(function(){return Te})),n.d(i,”getClass“,(function(){return Ae})),n.d(i,”provideObjClass“,(function(){return Pe})),n.d(i,”provideWidgetClass“,(function(){return Ne})),n.d(i,”_internal“,(function(){return r}));var o=n(155),a=n(8),s=n(151),u=n(2),l=n(3);function c(t){if(!t)return t;switch(typeof t){case”string“:case”number“:case”boolean“:return t;case”object“:return t._scrivitoPrivateContent instanceof l.BasicObjSearch?c(t._scrivitoPrivateContent.params()):Object(u.isDate)(t)?t:Object(u.isArray)(t)?(e=[],t.forEach((function(t){var n=c(t);void 0!==n&&e.push(n)})),e):function(t){var e={};return Object(u.each)(t,(function(t,n){var r=c(t);void 0!==r&&(e=r)})),e}(t)}var e}var f=n(14);var d=n(108),p=n(7),h=n(12),v=n(5),m=n(31),y=n(25),g=n(44);function b(t){var e;return Object(p.k)((function(){return Object(v.capture)(g.a).result}),(function(n){void 0!==n&&(void 0!==e&&function(t,e){if(Object(g.c)(t))return!!Object(g.c)(e)&&(t.objId===e.objId&&t.location===e.location);if(Object(g.c)(e))return!1;return Object(g.b)(t)===Object(g.b)(e)}(e,n)||(e=n,t(n)))}))}function w(t){if(Object(g.c)(t)){var e=t.location;Object(v.load)((function(){if(m.a()===e){var n=l.BasicObj.get(t.objId),r=y.c({obj:n});return h(e).path®.toString()}})).then((function(t){if(t){var n=m.a();e===n&&t!==n&&m.e(t)}}))}}function _(t){(Object(g.c)(t)||Object(g.b)(t))&&window.scrollTo(0,0)}var O=n(9),k=n(11),x=n(18),C=n(17),E=n(37);function j(){var t=Object(C.b)();t.addEventListener(”dragover“,(function(t){return function(t){t.dataTransfer.dropEffect=”move“,t.preventDefault();var e={x:t.pageX,y:t.pageY};Object(E.a)().dragTo(e)}(t)})),t.addEventListener(”drop“,(function(){Object(E.a)().drop()}))}var S=n(42);function T(){Object(v.observeAndLoad)(A,(function(t){var e;t.allDataLoaded&&((e=t.result).workspaceId===Object(l.currentWorkspaceId)()&&e.inPlaceEditingActive===Object(x.c)()&&e.comparisonActive===Object(x.b)()||function(t){var e,n,r,i,o,a,s=(e=m.c(),r=(n=t).workspaceId,i=n.inPlaceEditingActive,o=n.comparisonActive,a={_scrivito_workspace_id:r},i?a._scrivito_editing=”true“:o&&(a._scrivito_comparison=”true“),new h(e).removeSearch().addSearch(a));Object(S.d)(s.toString())}(e))}))}function A(){var t=Object(E.a)();return{workspaceId:t.currentWorkspaceId(),inPlaceEditingActive:t.isInPlaceEditingActive(),comparisonActive:t.isComparisonActive()}}window.scrivito||(window.scrivito={}),scrivito.registerEditor=d.b,scrivito.openContentBrowser=function(t){if(void 0===t&&(t={}),!f.b)throw new Error(”Cannot open ContentBrowser without UI present“);return f.b.openContentBrowser(c(t))};var P=n(154),N=n(10),L=n(0),I=n(87),D=n(115);function R(t,e){Object(L.D)(t+”/scrivito_editing.css“,e),Object(L.E)(t+”/scrivito_editing.js“,e)}var M,B=n(59);function q(t,e){for(var n,r,i=[],o=2;o=arguments;Object(k.c)(”Scrivito.urlFor“),U.apply(void 0,.concat(i)),e&&(n=e.query,r=e.hasOwnProperty(”hash“)?e.hash:e.fragment);var a=Object(N.e)(t);return Object(B.b)(a,{origin:M,query:n,hash:r})}var F=L.O.union(),z=L.O.struct({query:L.O.maybe(L.O.String),hash:L.O.maybe(L.O.String),fragment:L.O.maybe(L.O.String)}),U=Object(L.p)(”urlFor“,[,[”options“,L.O.maybe(z)]],{docPerma”js-sdk/urlFor“}),H=n(35),W=n(76),V=n(32),K=n(109),Q=n(39),$=n(24),G=n(23);var Y,Z,X=n(67);function J(t){for(var e=[],n=1;n=arguments;if(f.b){try{gt.apply(void 0,.concat(e))}catch(t){throw new L.a(et(t.message))}t.filters&&(tt(Y=t.filters)?(Z=Y,Y=void 0):(Y=t.filters,Z=void 0));var r=t.baseFilter;if®{var i=r.query;i&&f.b.configureContentBrowser(c({baseQuery:i}))}}}function tt(t){return”function“==typeof t}function et(t){return t.replace(/key ’filters.d/,”key ‘filters“)}var nt=L.O.union(),rt=L.O.enums.of(Object(u.intersection)(l.OPERATORS,)),it=L.O.union([L.O.String,L.O.Date,L.O.Nil,L.O.Number,L.O.list(L.O.union()),L.O.list(L.O.union()),L.O.list(L.O.union())],”SearchValue“),ot=L.O.struct({title:L.O.maybe(L.O.String)}),at=ot.extend({field:L.O.maybe(nt),operator:L.O.maybe(rt),expanded:L.O.maybe(L.O.Boolean)}),st=ot.extend({value:L.O.maybe(it),query:L.O.maybe(l.ObjSearchType),selected:L.O.maybe(L.O.Boolean)}),ut=at.extend({type:L.O.enums.of(),options:L.O.dict(L.O.String,st)},”RadioFilterDefinition“),lt=ot.extend({value:L.O.maybe(it),selected:L.O.maybe(L.O.Boolean)}),ct=at.extend({type:L.O.enums.of(),options:L.O.dict(L.O.String,lt)},”CheckboxFilterDefinition“),ft=L.O.declare(”TreeFilterDefinition“);ft.define(ot.extend({type:L.O.maybe(L.O.enums.of()),icon:L.O.maybe(L.O.String),query:L.O.maybe(l.ObjSearchType),expanded:L.O.maybe(L.O.Boolean),value:L.O.maybe(it),field:L.O.maybe(nt),operator:L.O.maybe(rt),selected:L.O.maybe(L.O.Boolean),options:L.O.maybe(L.O.dict(L.O.String,ft))}));var dt={tree:ft,radioButton:ut,checkbox:ct},pt=L.O.union();pt.dispatch=function(t){return dt};var ht=L.O.dict(L.O.String,pt),vt=L.O.union();vt.dispatch=function(t){return L.O.Function.is(t)?vt.meta.types:vt.meta.types};var mt=L.O.struct({query:l.ObjSearchType}),yt=L.O.struct({filters:L.O.maybe(vt),baseFilter:L.O.maybe(mt)},”Configuration“),gt=Object(L.p)(”configureContentBrowser“,[],{docPerma”js-sdk/configureContentBrowser“}),bt=n(86),wt=n(66),_t=[];function Ot(t){_t.push(t)}function kt(){return _t}var xt=function(){function t(t){this.id=t}return t.prototype.insert=function(t){t&&t.id===this.id&&(this.onClick=t.onClick)},t.prototype.modify=function(){},t.prototype.remove=function(){},t.prototype.onClickHandler=function(){return this.onClick},t}(),Ct=n(61),Et=n(78),jt=n(111);function St(){var t=window.navigator.userAgent;return t.indexOf(”MSIE“)>=0||t.indexOf(”Trident“)>=0}function Tt(t,e){var n=t;if(!n._scrivitoResizeListeners){n._scrivitoResizeListeners=[],t.style.position=”relative“;var r=function(t){var e=document.createElement(”object“);return e.observedElement=t,e.type=”text/html“,e.onload=function(){return function(t){var e=t.contentDocument;if(!e)throw new L.g(”Trigger object is missing the content document“);var n=e.defaultView;n&&(n._scrivitoObservedElement=t.observedElement,n.addEventListener(”resize“,At))}(e)},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}(n);n._scrivitoResizeTrigger=r,St()&&t.appendChild®,r.data=”about:blank“,St()||t.appendChild®}return n._scrivitoResizeListeners.push(e),function(){n._scrivitoResizeListeners.splice(n._scrivitoResizeListeners.indexOf(e),1)}}function At(t){var e=t.target||t.srcElement;if(!e)throw new L.g(”Resize event is missing a target“);if(function(t){return!!t._scrivitoObservedElement}(e)){var n=e._scrivitoObservedElement;n&&n._scrivitoResizeListeners.forEach((function(t){return t()}))}}function Pt(t){return function(t){return new v.LoadableData({state:p.b.subState(”customComponentDimensions“),stream:new L.k((function(e){var n=function(){var n=t.getBoundingClientRect(),r=n.width,i=n.height;e.next({width:r,height:i})};return n(),Tt(t,n)}))})}(t).get()||null}function Nt(t){return function(t){return new v.LoadableData({state:p.b.subState(”scrollPosition“),stream:new L.k((function(e){var n=function(){e.next({x:t.scrollLeft,y:t.scrollTop})};n();var r=window.setInterval(n,1e3);return function(){return window.clearInterval®}}))})}(t).get()||null}function Lt(){return new v.LoadableData({state:p.b.subState(”applicationUrl“),stream:new L.k((function(t){var e=function(){return t.next(m.c())};e();var n=b(e);return function(){return n.unsubscribe()}}))}).get()||null}var It=function(){function t(){}return t.prototype.getContentBrowserConfiguration=function(t){return c(function(t){if(Z){var e={};t&&(e._validObjClasses=t);var n=Z(e);if(n)return{filters:n}}else if(Y)return{filters:Y}}(t))},t.prototype.titleForObj=function(t){return Rt(”titleForContent“,t)},t.prototype.descriptionForObj=function(t){return Rt(”descriptionForContent“,t)},t.prototype.executeCustomCommand=function(t){var e=function(t){var e=new xt(t);return kt().forEach((function(t){return t.call(null,e)})),e.onClickHandler()}(t);e&&e.call(null)},t.prototype.titleForWidget=function(t,e){return Object(wt.a)(t,e)},t.prototype.initializeContentForObj=function(t){Object(bt.b)(t)},t.prototype.initializeContentForWidget=function(t,e){Object(bt.c)(t,e)},t.prototype.getClasses=function(){var t=Object(Q.a)(),e=[];return Object(u.each)(t.allObjClasses(),(function(t,n){return e.push(function(t,e){var n=N.b.forClass(e);return Object(u.pick)({name:t,type:”Obj“,attributes:Dt(n.attributes,Object(V.a)(t,”attributes“)),description:Object(V.a)(t,”description“),hideInSelectionDialogs:Object(V.a)(t,”hideInSelectionDialogs“),properties:Object(V.a)(t,”properties“),propertiesGroups:Object(V.a)(t,”propertiesGroups“),thumbnail:Object(V.a)(t,”thumbnail“),title:Object(V.a)(t,”title“)},u.identity)}(n,t))})),Object(u.each)(t.allWidgetClasses(),(function(t,n){return e.push(function(t,e){var n=N.b.forClass(e);return Object(u.pick)({name:t,type:”Widget“,attributes:Dt(n.attributes,Object(V.a)(t,”attributes“)),onlyInside:n.onlyInside,description:Object(V.a)(t,”description“),hideInSelectionDialogs:Object(V.a)(t,”hideInSelectionDialogs“),properties:Object(V.a)(t,”properties“),propertiesGroups:Object(V.a)(t,”propertiesGroups“),thumbnail:Object(V.a)(t,”thumbnail“),title:Object(V.a)(t,”title“)},u.identity)}(n,t))})),e},t.prototype.navigateTo=function(t){Object(v.load)((function(){var e=l.BasicObj.get(t);if(e)return Object(N.f)(Object($.a)(),e)})).then((function(t){t&&Object(W.a)(t)}))},t.prototype.showCustomComponent=function(t,e){Object(G.r)(t,e)},t.prototype.urlFor=function(t){return Object(v.load)((function(){var e=l.BasicObj.getIncludingDeleted(t);return e?Object(B.b)(e):null}))},t.prototype.resolveUrl=function(t){return function(t){var e=h(t);return Object(v.load)((function(){return Object(y.g)(e)})).then((function(t){return t&&t.path?Object(u.include)(,t.path)?null:{obj:t.obj,url:e}:null}))}(t).then((function(t){if(!t||!t.obj)return null;var e=t.obj,n=t.url.fragment(),r=t.url.search(),i={obj_id:e.id()};return n&&(i.fragment=n),r&&(i.query=r),i}))},t.prototype.replaceInternalLinks=function(t){return Object(X.a)(t)},t.prototype.getHomepageId=function(){var t=Object(Ct.a)();return t?t.id():null},t.prototype.getSiteIdForObj=function(t){if(Object(H.f)()){var e=l.BasicObj.get(t);if(e)return Object(H.c)(e)}return null},t.prototype.getElementBoundaries=function(t){return Object(Et.a)(t)},t.prototype.getContentZoneData=function(){return Object(jt.a)()},t.prototype.getCustomComponentDimensions=function(){return Pt(Object(C.b)().querySelector(”html“))},t.prototype.getScrollPosition=function(){return Nt(Object(C.b)().querySelector(”html“))},t.prototype.getApplicationUrl=function(){return Lt()},t.prototype.getCurrentPageId=function(){return(t=Object(g.a)())&&Object(g.c)(t)?t.objId:null;var t},t}();function Dt(t,e){var n=Object(u.map)(t,(function(t,e){var n={name:e,type:t};if(t.length>1){var r=t;”validClasses“in r&&r.validClasses&&(n.validClasses=r.validClasses),”values“in r&&r.values&&(n.values=r.values)}return n}));return e&&Object.keys(e).forEach((function(t){var r=Object(u.findWhere)(n,{name:t});if®{var i=e,o=i.title,a=i.description,s=i.values;s?Object(u.extend)(r,{title:o,description:a,valuesLocalization:s}):Object(u.extend)(r,{title:o,description:a})}})),n}function Rt(t,e){var n=l.BasicObj.getIncludingDeleted(e);if(n){var r=Object(N.f)(Object($.a)(),n);return Object(K.a)(n.objClass(),t,r)}}var Mt=L.O.refinement(L.O.String,(function(t){return h(t).origin()===t})),Bt=L.O.struct({tenant:L.O.String,endpoint:L.O.maybe(L.O.String),homepage:L.O.maybe(L.O.Function),origin:L.O.maybe(Mt),routingBasePath:L.O.maybe(L.O.String),constraintsValidation:L.O.maybe(L.O.Function),unstable:L.O.maybe(L.O.Object)}),qt=Object(L.p)(”configure“,[],{docPerma”js-sdk/configure“}),Ft=!1;function zt(t){for(var e=[],n=1;n=arguments;if(qt.apply(void 0,.concat(e)),Ft)throw new L.i(”Scrivito.configure has already been called.“);Ft=!0;var r=t.unstable;if®{var i=r.getSiteIdForObj;i&&Object(H.d)(i)}if(t.tenant===k.b)Object(k.q)(),k.m.disableReplication();else{var o=t.tenant,a=t.endpoint||”api.scrivito.com“;f.b?(Ut(a,o,f.b,r),R(Object(D.b)())):O.d.init(a,o)}Ht(t),Wt(t)}function Ut(t,e,n,r){var i={tenant:e,endpoint:t};if®{var o=r.assetUrlBase,a=r.useRailsAuth;a&&(i.useRailsAuth=a),o&&Object(D.a)(o)}n.configureTenant(i),Object(H.f)()?function(t){var e=setTimeout((function(){Object(L.F)(”Warning: No site ID was selected within 30 seconds. In the multi-site mode a site ID must be selected before Scrivito can render content. Forgot to use Scrivito.unstable_selectSiteId?“)}),3e4);Object(p.q)(H.b).then((function(){clearTimeout(e),Vt(t)}))}(n):Vt(n)}function Ht(t){var e,n=t.homepage,r=t.routingBasePath,i=n?function(){return Object(N.e)(n())}:function(){return l.BasicObj.root()};Object(y.d)({routingBasePath:r,homepageCallback:i}),e=t.origin||void 0,M=e}function Wt(t){var e=t.constraintsValidation;e&&e}function Vt(t){var e=new MessageChannel,n=Object(a.d)(I.a,new It);Object(a.h)(Object(a.g)(e.port1),n,I.a),t.setAppAdapter(Object(L.x)(),e.port2)}var Kt,Qt=n(43),$t=function(){return($t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},Gt=function(){function t(){this.patch={insertIds:[],removeIds:,items:{},modifyItems:{}}}return t.prototype.insert=function(t){for(var e=[],n=1;n=arguments;Zt.apply(void 0,.concat(e)),this.patch.insertIds=Object(u.unique)(this.patch.insertIds.concat()),this.patch.items=$t({},Object(u.pick)(t,”description“,”group“,”icon“,”position“,”title“),Object(u.mapObject)(Object(u.pick)(t,”enabled“),(function(t){return!!t})))},t.prototype.modify=function(t){for(var e=[],n=1;n=arguments;Xt.apply(void 0,.concat(e)),this.patch.modifyItems=$t({},this.patch.modifyItems,Object(u.pick)(t,”group“,”icon“,”position“,”title“))},t.prototype.remove=function(t){for(var e=[],n=1;n=arguments;Jt.apply(void 0,.concat(e)),this.patch.removeIds.push(t)},t.prototype.getPatch=function(){return this.patch},t}(),Yt=L.O.struct({after:L.O.maybe(L.O.String),before:L.O.maybe(L.O.String)}),Zt=Object(L.p)(”menu.insert“,[],{docPerma”js-sdk/extendMenu“}),Xt=Object(L.p)(”menu.modify“,[[”options“,L.O.struct({id:L.O.String,group:L.O.maybe(L.O.String),icon:L.O.maybe(L.O.String),position:L.O.maybe(Yt),title:L.O.maybe(L.O.String)})]],{docPermalink:”js-sdk/extendMenu“}),Jt=Object(L.p)(”menu.remove“,[[”id“,L.O.String]],{docPermalink:”js-sdk/extendMenu“});function te(){var t=new Gt;return kt().forEach((function(e){return e.call(null,t)})),t.getPatch()}function ee(){Kt||(Kt=Object(v.observeAndLoad)((function(){return Object(L.M)(te)}),(function(t){if(t.allDataLoaded&&f.b){var e=t.result;if(e.errorThrown)throw f.b.updateMenu({}),e.error;f.b.updateMenu(e.result)}})))}function ne(){Kt&&Kt.forceRefresh()}function re(t){for(var e=[],n=1;n=arguments;ie.apply(void 0,.concat(e)),f.b&&(ee(),Ot(t),ne())}var ie=Object(L.p)(”extendMenu“,[],{docPerma”js-sdk/extendMenu“});function oe(){f.b&&ne()}var ae=n(112);function se(t){return e={version:Object(L.x)(),recording:Object(v.generateRecording)(t)},JSON.stringify(e);var e}function ue(t){var e=function(t){var e=function(t){try{return JSON.parse(t)}catch(t){return}}(t);if(”object“!=typeof e||null===e||Array.isArray(e))return;if(function(t){return!!t.version}(e))return e}(t);e?e.version===Object(L.x)()?Object(v.loadRecording)(e.recording):Object(L.F)(”could not preload: dump is from version “e.version”, this is version “+Object(L.x)()):Object(L.F)(”could not preload: parsing dump failed“)}var le=n(77),ce=n(69);function fe(t,e){for(var n=[],r=2;r=arguments;Object(k.c)(”Scrivito.renderPage“),pe.apply(void 0,.concat(n));var i=Object(N.e)(t);return Object(v.load)((function(){return Object(v.reportUsedData)((function(){return de(i),Object(Qt.d)(i,(function(){return Object(ae.b)(e)}))}))})).then((function(t){return{result:t.result,preloadDump:se(t.usedData)}}))}function de(t){Object(le.c)((function(){return Object(ce.b)(Object(ce.a)(t))}))}var pe=Object(L.p)(”renderPage“,[,[”render“,L.O.Function]],{docPerma”js-sdk/renderPage“});function he(t){for(var e=[],n=1;n=arguments;return me.apply(void 0,.concat(e)),L.j.resolve().then((function(){return f.b||ue(t),ve()}))}function ve(){return Object(v.load)((function(){Object(Qt.a)()}))}var me=Object(L.p)(”preload“,[],{docPerma”js-sdk/preload“}),ye=n(106);function ge(t){for(var e=[],n=1;n=arguments;be.apply(void 0,.concat(e)),f.b&&f.b.openCustomDialog(t)}var be=Object(L.p)(”openDialog“,[],{docPerma”js-sdk/openDialog“});function we(){return!!f.b}function _e(){O.d.enableForceVerification()}function Oe(){return O.d.currentPublicAuthorizationState()}var ke=Object(Q.a)(),xe=ke.Link,Ce=ke.Obj,Ee=ke.ObjSearch,je=ke.Widget,Se=ke.createObjClass,Te=ke.createWidgetClass,Ae=ke.getClass,Pe=ke.provideObjClass,Ne=ke.provideWidgetClass;window.Scrivito=i,function(t){if(Object(p.j)(t),t){var e=Object(a.c)(s.a,t.uiAdapter());Object(f.a)(e),Object(O.j)(e),Object(l.setBinaryHandler)(e),Object(l.setLinkHandler)(e),Object(k.o)(e),Object(k.n)(t.getObjReplicationPool()),Object(x.a)(),T(),j(),C.b().addEventListener(”dragover“,(function(t){var e=t.clientY,n=C.g(),r=C.h();r>0&&e<30?C.k(n,r-25):C.c()>r+C.e()&&e>C.e()-30&&C.k(n,r+25)})),(n=Object(C.b)().body).classList.add(”scrivito_editing_active“),Object(x.c)()&&n.setAttribute(”data-scrivito-editing“,”“),Object(x.b)()&&n.setAttribute(”data-scrivito-comparison“,”“)}var n;b(w),b(_),window.addEventListener(”unload“,(function(){Object(p.n)()}))}(Object(o.a)()),Object(P.a)()},76:function(t,e,n){”use strict“;n.d(e,”a“,(function(){return h}));var r=n(2),i=n(7),o=n(5),a=n(3),s=n(10),u=n(42),l=n(31),c=n(25),f=n(0),d=n(51),p=0;function h(t,e){for(var n=[],a=2;a=arguments;var s=g();if(Object(i.g)(”navigateTo“),null!==t){var u,l;if(C.apply(void 0,.concat(n)),e){var c=Object(r.omit)(e,”hash“,”params“);E(t,c),u=Object(r.extend)(c,e.params||{}),l=e.hash}var d=function(){return Object(r.isFunction)(t)?t():t};Object(o.load)(d).then((function(t){var e=v(t,u,l);if(e)return e.then((function(t){p===s&&y(t)}))})).catch((function(t){p===s&&Object(f.Q)(t)}))}else Object(f.G)((function(){return C.apply(void 0,.concat(n))}))}function v(t,e,n){j(t);var i=Object(s.e)(t);return i instanceof a.BasicObj?Object(o.load)((function(){return b(i,e,n||null)})):i instanceof a.BasicLink?Object(o.load)((function(){return function(t,e,n){if(t.isExternal())return{url:t.url()};var i,o=n||t.hash();i=e&&!Object(r.isEmpty)(e)?e:t.queryParameters();var a=t.obj();if(!a){var s=t.objId();return s?{objId:s,queryParameters:i,hash:o}:{}}return b(a,i,o)}(i,e,n||null)})).then(m):void 0}function m(t){if(w(t)||_(t)||function(t){return!!t.objId}(t))return t;throw new f.a(”The link provided to navigateTo has no destination.“)}function y(t){var e,n,r;w(t)?(e=t,n=Object(c.c)(e),r=l.a(),n===r?l.e(n):l.d(n)):_(t)?Object(u.a)(t.url):function(t){var e=t.objId;if(t.isBinary){var n=new f.a(”The target provided to navigateTo leads to the binary obj “e” which has no binary data.“);Object(f.Q)(n)}else{var r=Object(c.b)({path:e});t.queryParameters&&r.query(t.queryParameters),t.hash&&r.hash(t.hash),l.d(r.resource())}}(t)}function g(){return++p}function b(t,e,n){if(Object(d.a)(t)){var r=t.get(”blob“,);return r?{url:r.url()}:{isBinary:!0,objId:t.id(),queryParameters:e,hash:n}}return{obj:t,queryParameters:e,hash:n}}function w(t){return!!t.obj}function _(t){return!!t.url}var O=f.O.union(),k=f.O.union(),x=f.O.dict(f.O.String,f.O.maybe(f.O.union())),C=Object(f.p)(”navigateTo“,[,[”options“,f.O.maybe(f.O.struct({hash:f.O.maybe(f.O.String),params:f.O.maybe(x)},{strict:!1}))]],{docPerma”js-sdk/navigateTo“}),E=Object(f.p)(”navigateTo“,[[”target“,k],[”options“,f.O.maybe(x)]],{docPermalink:”js-sdk/navigateTo“}),j=Object(f.p)(”navigateTo“,[[”target“,O]],{docPermalink:”js-sdk/navigateTo“})},77:function(t,e,n){”use strict“;n.d(e,”b“,(function(){return c})),n.d(e,”a“,(function(){return f})),n.d(e,”c“,(function(){return d}));var r,i=n(0),o=n(11),a=n(5),s=n(3),u={},l=new i.d;function c(t,e){l.current()||(p(),u=t)}function f(t){if(!l.current())return p(),u}function d(t){return l.runWith(!0,t)}function p(){var t=Object(a.loadableWithDefault)(void 0,(function(){return Object(o.g)(Object(s.currentWorkspaceId)())}))||”“;t!==r&&(u={},r=t)}},78:function(t,e,n){”use strict“;n.d(e,”b“,(function(){return s})),n.d(e,”c“,(function(){return u})),n.d(e,”a“,(function(){return l}));var r=n(5),i=n(0),o=n(7),a={};function s(t,e){a=e}function u(t){delete a}function l(t){return a?function(t){return new r.LoadableData({state:c(t),stream:new i.k((function(e){var n=function(){var n=a;e.next(n?function(t){var e=t.getBoundingClientRect(),n=e.left,r=e.top,i=e.width,o=e.height;return{x:n+window.pageXOffset,y:r+window.pageYOffset,width:i,height:o}}(n):null)};n();var r=window.setInterval(n,1e3);return function(){return window.clearInterval®}}))})}(t).get():null}function c(t){return o.b.subState(”elementBoundaries“).subState(t.toString())}},79:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=),Object.defineProperty(t,”loaded“,{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,”id“,{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},8:function(t,e,n){”use strict“;n.d(e,”c“,(function(){return l})),n.d(e,”f“,(function(){return c})),n.d(e,”b“,(function(){return s})),n.d(e,”a“,(function(){return a})),n.d(e,”d“,(function(){return f})),n.d(e,”g“,(function(){return d})),n.d(e,”e“,(function(){return _})),n.d(e,”h“,(function(){return T}));var r=n(0),i=n(5),o=n(7),a=”GET“,s=”SEND“,u=1;function l(t,e){var n=u++,l={};return Object.keys(t).forEach((function(u){var c=t;c===a&&(l=function(){for(var t=[],a=0;a=arguments;var s=o.b.subState(”adapters“).subState(n.toString()),l=u,c=s.subState(l).subState(Object(r.s)(t)),f=new i.LoadableData({state:c,stream:e.stream.apply(e,.concat(t))});return f.get()}),c===s&&(l=function(){for(var t=[],n=0;n=arguments;return e.send.apply(e,.concat(t))})})),l}function c(t){return{stream:function(e){for(var n=[],o=1;o=arguments;return new r.k((function®{return Object(i.observeAndLoad)((function(){var r=t();if®{var i=r;return{valueFromClient:i.call.apply(i,.concat(n))}}}),(function(t){t.allDataLoaded&&void 0!==t.result&&r.next(t.result.valueFromClient)})).unsubscribe}))},send:function(e){for(var n=[],i=1;i=arguments;var a=new r.j((function®{Object(o.q)(t).then((function(t){var i=t;r(i.call.apply(i,.concat(n)))}))}));return a}}}function f(t,e){return{stream:function(t){for(var n=[],o=1;o=arguments;var a=e;return new r.k((function(t){return Object(i.observeAndLoad)((function(){return a.call.apply(a,.concat(n))}),(function(e){e.allDataLoaded&&t.next(e.result)})).unsubscribe}))},send:function(t){for(var n=[],i=1;i=arguments;var o=e,a=new r.j((function(t){Object(r.G)((function(){return t(o.call.apply(o,.concat(n)))}))}));return a}}}function d(t){return{incomingMessages:new r.k((function(e){function n(t){e.next({data:t.data})}return t.addEventListener(”message“,n),t.start(),function(){t.removeEventListener(”message“,n)}})),sendMessage:function(e){t.postMessage(e.data,e.transfer)}}}var p=function(){function t(t){this.muxedStream=t,this.openStreams={}}return t.prototype.streamWithId=function(t){var e=this;return new r.k((function(n){e.ensureSubscribed();var r=e.subjectForStreamId(t).subscribe(n);return function(){r.unsubscribe(),e.removeSubjectIfAbandoned(t)}}))},t.prototype.removeSubjectIfAbandoned=function(t){0===this.subjectForStreamId(t).subscriberCount()&&(delete this.openStreams,this.unsubscribeIfAbandoned())},t.prototype.subjectForStreamId=function(t){var e=this.openStreams;if(e)return e;var n=new r.l;return this.openStreams=n,n},t.prototype.ensureSubscribed=function(){var t=this;this.subscription||(this.subscription=this.muxedStream.subscribe({next:function(e){var n=e.streamId,r=t.openStreams;r&&r.next(e.data)},complete:function(){return Object.keys(t.openStreams).forEach((function(e){var n=t.openStreams;n&&(n.complete(),delete t.openStreams)}))}}))},t.prototype.unsubscribeIfAbandoned=function(){0===Object.keys(this.openStreams).length&&this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},t}();function h(t){return t&&”number“==typeof t.channel&&”string“==typeof t.verb}function v(t){return”string“==typeof t.method&&Array.isArray(t.params)}function m(t){return”CLOSE“===t.verb}function y(t){return”RESPOND“===t.verb}function g(t){return”ERROR“===t.verb}var b,w=(b=function(t,e){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(t,e)},function(t,e){function n(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function _(t){return new O(t)}var O=function(){function t(t){this.portLink=t,this.channelCounter=1,this.incomingChannels=new p(this.portLink.incomingMessages.map((function(t){return t.data})).filter(h).map((function(t){return{streamId:t.channel,data:t}})))}return t.prototype.stream=function(t){for(var e=this,n=[],i=1;i=arguments;return new r.k((function®{var i=e.getNextChannelId();e.postMessage({channel:i,verb:”OPEN“,method:t,params:n});var o=e.incomingChannels.streamWithId(i).subscribe((function(t){y(t)&&r.next(t.data)}));return function(){e.postMessage({channel:i,verb:”CLOSE“}),o.unsubscribe()}}))},t.prototype.send=function(t){for(var e=[],n=1;n=arguments;var r=this.getNextChannelId();this.postMessage({channel:r,verb:”SEND“,method:t,params:e});var i=this.incomingChannels.streamWithId®.filter(j).takeOne().toPromise().then((function(t){if(!t)throw new x;if(g(t))throw new k;return t.data}));return i},t.prototype.postMessage=function(t){this.portLink.sendMessage({data:t,transfer:C(t)})},t.prototype.getNextChannelId=function(){return this.channelCounter++},t}(),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e}(r.i),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e}(r.i);function C(t){if(”SEND“===t.verb)return t.params.filter(E)}function E(t){return t instanceof MessagePort}function j(t){return y(t)||g(t)}function S(t,e,n){return t===e}function T(t,e,n){new A(t,e,n).start()}var A=function(){function t(t,e,n){this.portLink=t,this.adapterConnection=e,this.description=n,this.incomingMessages=t.incomingMessages.map((function(t){return t.data})).filter(h),this.incomingChannels=new p(this.incomingMessages.map((function(t){return{streamId:t.channel,data:t}})))}return t.prototype.start=function(){var t=this;this.incomingMessages.subscribe((function(e){!function(t){return”OPEN“===t.verb&&v(t)}(e)?function(t){return”SEND“===t.verb&&v(t)}(e)&&t.handleSendMessage(e):t.handleOpenStreamMessage(e)}))},t.prototype.handleOpenStreamMessage=function(t){var e,n=this,r=P(t);if(S(this.description,a,r)){var i=(e=this.adapterConnection).stream.apply(e,.concat(r.params)),o=t.channel,s=i.subscribe((function(t){n.postMessage({verb:”RESPOND“,data:t,channel:o})}));this.incomingChannels.streamWithId(o).filter(m).takeOne().toPromise().then((function(){s.unsubscribe()}))}},t.prototype.handleSendMessage=function(t){var e,n=this,i=P(t);S(this.description,s,i)&&(e=this.adapterConnection).send.apply(e,.concat(i.params)).then((function(e){return n.postMessage({verb:”RESPOND“,data:e,channel:t.channel})}),(function(e){n.postMessage({verb:”ERROR“,channel:t.channel}),Object(r.Q)(e)}))},t.prototype.postMessage=function(t){this.portLink.sendMessage({data:t})},t}();function P(t){return{methodName:t.method,params:t.params}}},80:function(t,e,n){”use strict“; /* object-assign © Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError(”Object.assign cannot be called with null or undefined“);return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String(”abc“);if(t=”de“,”5“===Object.getOwnPropertyNames(t))return!1;for(var e={},n=0;n<10;n++)e=n;if(”0123456789“!==Object.getOwnPropertyNames(e).map((function(t){return e})).join(”“))return!1;var r={};return”abcdefghijklmnopqrst“.split(”“).forEach((function(t){r=t})),”abcdefghijklmnopqrst“===Object.keys(Object.assign({},r)).join(”“)}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),l=1;l<arguments.length;l++){for(var c in n=Object(arguments))i.call(n,c)&&(u=n);if®{s=r(n);for(var f=0;f)&&(u[s]=n[s])}}return u}},84:function(t,e,n){”use strict“;function r(t,e){”interactive“===t.readyState||”complete“===t.readyState?e():t.addEventListener(”DOMContentLoaded“,e)}n.d(e,”a“,(function(){return r}))},86:function(t,e,n){”use strict“;n.d(e,”a“,(function(){return l})),n.d(e,”b“,(function(){return f})),n.d(e,”c“,(function(){return d}));var r=n(2),i=n(3),o=n(32),a=n(39),s=n(10),u=n(24);function l(t,e){var n,i=Object(o.a)(t,”initialContent“);if(i){var a=i;if(Object(r.isFunction)(a))return a();if(n=a,Object(r.isArray)(n)&&Object(r.every)(n,c)){var l=Object(u.a)();return a.map((function(t){var e=t._scrivitoPrivateContent.copy();return Object(s.f)(l,e)}))}return a}}function c(t){return t._scrivitoPrivateContent&&t._scrivitoPrivateContent instanceof i.BasicWidget}function f(t){p(i.BasicObj.get(t))}function d(t,e){p(i.BasicObj.get(t).widget(e))}function p(t){var e=t.objClass(),n=Object(a.a)().getClass(e)._scrivitoPrivateSchema,i={};Object(r.each)(n.attributes,(function(n,o){var a=t.get(o,n);if(Object(r.isEmpty)(a)){var s=l(e,o);s&&(i=s)}}));var o=Object(s.d)(i,n,e);t.update(o)}},87:function(t,e,n){”use strict“;n.d(e,”a“,(function(){return i}));var r=n(8),i={descriptionForObj:r.a,getClasses:r.a,getContentBrowserConfiguration:r.a,getHomepageId:r.a,getSiteIdForObj:r.a,replaceInternalLinks:r.a,titleForObj:r.a,titleForWidget:r.a,getElementBoundaries:r.a,getContentZoneData:r.a,getCustomComponentDimensions:r.a,getScrollPosition:r.a,getApplicationUrl:r.a,getCurrentPageId:r.a,executeCustomCommand:r.b,initializeContentForObj:r.b,initializeContentForWidget:r.b,navigateTo:r.b,resolveUrl:r.b,showCustomComponent:r.b,urlFor:r.b}},9:function(t,e,n){”use strict“;n.d(e,”a“,(function(){return u})),n.d(e,”d“,(function(){return z})),n.d(e,”e“,(function(){return $})),n.d(e,”j“,(function(){return G})),n.d(e,”b“,(function(){return v})),n.d(e,”c“,(function(){return y})),n.d(e,”g“,(function(){return O})),n.d(e,”f“,(function(){return Y})),n.d(e,”h“,(function(){return Z})),n.d(e,”i“,(function(){return Q}));var r={};n.r®,n.d(r,”ERROR_CODE_CLIENT_VERIFICATION_REQUIRED“,(function(){return j})),n.d(r,”perform“,(function(){return S})),n.d(r,”reset“,(function(){return T})),n.d(r,”currentState“,(function(){return P}));var i;function o(){i=0}var a,s,u={init:function(t){o();var e=t.location,n=e.hash,r=n.indexOf(”&scrivito.authFailedCount=“);if(!(r<0)){var a=n.substr(r+”&scrivito.authFailedCount=“.length,3),s=n.substring(0,r);”#“===s&&(s=”“);var u=e.href.toString().replace(n,s);i=parseInt(a,10)||0,t.history.replaceState({},”“,u)}},augmentedRedirectUrl:function(t){var e=t.toString();return t.hash||(e+=”#“),e+”&scrivito.authFailedCount=“+(i+1)},reset:o,currentFailureCount:function(){return i}},l=n(0),c=n(2),f=n(12),d=(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(t,e)},function(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.httpCode=n,i.backendCode=r,i}return d(e,t),e.for=function(t,n,r){return”binary.unprocessable.image.transform.source.too_large“===r?new g(t,n,r):r&&-1!==r.indexOf(”binary.unprocessable.image.transform.source.“)?new b(t,n,r):new e(t,n,r)},e}(l.i),h=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return d(e,t),e}(p),v=function(t){function e(e){var n=t.call(this,”Insufficient authorization - please visit “+e)||this;return n.target=e,n}return d(e,t),e}(l.i),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e}(l.i),y=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.details=i||{},o}return d(e,t),e}(p),g=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return d(e,t),e}(p),b=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return d(e,t),e}(p),w=!1,_=0;function O(){return _>0}function k(t,e,n){var r=n.params,i=n.authorization,o=n.forceVerification;return w?l.j.resolve(new XMLHttpRequest):(_+=1,new l.j((function(n,a){var s=function(t,e,n,r){var i=new XMLHttpRequest;function o(t){!function(t,e){_-=1,e(t)}(new m(t),r)}return i.open(”POST“===t?”POST“:”PUT“,e),i.timeout=15e3,i.withCredentials=!0,i.onload=function(){return function(t,e,n){_-=1;var r=t.status;if(!r||!Object(c.isNumber)®){var i=”Unexpected response status: “r”; body: “+(0===r?t.statusText:t.responseText);n(new m(i))}e(t)}(i,n,r)},i.onerror=function(){return o(”XMLHttpRequest Error“)},i.ontimeout=function(){return o(”XMLHttpRequest Timeout“)},i.onabort=function(){return o(”XMLHttpRequest Aborted“)},i}(t,e,n,a);i&&s.setRequestHeader(”Authorization“,i),s.setRequestHeader(”Scrivito-Client“,”jssdk/“+Object(l.x)()),o&&s.setRequestHeader(”Scrivito-Force-Verification“,”true“),s.setRequestHeader(”Content-type“,”application/json; charset=utf-8“),s.send(JSON.stringify®)})))}s={},window._scrivitoRegisterVerificator=function(t,e){s.resolve(e)};var x,C,E=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=”client_verification_required“;!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}E(e,t)}(y);function S(t){return t(A()).catch((function e(n){if(!function(t){return t instanceof y&&t.backendCode===j}(n))throw n;return function(t){if(!x){var e=t.verificator,n=t.data,r=(i=e.id,o=e.url,a=s,a||(a=new l.e,s=a,Object(l.E)(o)),a.promise).then((function(t){return new l.j((function(e){t(n,(function(t){e((C=t).authorization)}))}))}));x={challenge:{verificator:e,data:n},promise:Object(l.J)(r,(function(){x=void 0}))}}var i,o,a;return x.promise}(n.details).then(t).catch(e)}))}function T(){x=void 0,C=void 0}function A(){if©{if(!(C.expiresAfter<new Date))return C.authorization;C=void 0}}function P(){var t=A();if(t)return”Authorization: “+t;if(x){var e=x.challenge;return”Pending computation: “e.verificator.id” with “+e.data}return null}var N,L,I=n(17),D=function(){return(D=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},R=function(){function t(){this.initDeferred=new l.e,this.authHeaderValueProvider=r}return t.prototype.init=function(t,e,n){e&&(this.tenant=e,this.endpoint=t,this.url=f(t+”/tenants/“e”/perform“).scheme(”https“).toString(),this.initDeferred.resolve(void 0)),n&&(this.authHeaderValueProvider=n)},t.prototype.get=function(t,e){return this.perform(”GET“,t,e)},t.prototype.put=function(t,e){return this.perform(”PUT“,t,e)},t.prototype.post=function(t,e){return this.perform(”POST“,t,e)},t.prototype.delete=function(t,e){return this.perform(”DELETE“,t,e)},t.prototype.requestBuiltInUserSession=function(t){var e=this;return this.ensureInitialized().then((function(){return e.ajax(”PUT“,”sessions/“+t)})).then((function(t){return u.reset(),t}))},t.prototype.requestVisitorSession=function(t,e){var n=this;return this.ensureInitialized().then((function(){return n.ajax(”PUT“,”sessions/“+t,void 0,”id_token “+e)}))},t.prototype.enableForceVerification=function(){this.forceVerification=!0},t.prototype.currentPublicAuthorizationState=function(){return this.authHeaderValueProvider?this.authHeaderValueProvider.currentState?” “+this.authHeaderValueProvider.currentState():”: authorization provider without currentState()“:”: no authorization provider“},t.prototype.ensureInitialized=function(){return this.initDeferred.promise},t.prototype.perform=function(t,e,n){var r=this;return this.ensureInitialized().then((function(){return r.send(t,e,n).then((function(t){return function(t){return!!t&&!!t.task&&1===Object(c.size)(t)}(t)?r.handleTask(t.task):t}))}))},t.prototype.send=function(t,e,n){var r=this;return this.authHeaderValueProvider.perform((function(i){return r.ajax(t,e,n,i)}))},t.prototype.ajax=function(t,e,n,r){var i=this.url,o=this.forceVerification,a={params:{path:e,verb:t,params:n||{}},authorization:r,forceVerification:o};function s(){return function t(e,n){void 0===n&&(n=0);if(L)return new l.j((function(t){return t(e())}));return e().then((function®{if(429!==r.status)return r;if(N&&n>19)throw new Error(”Maximum number of rate limit retries reached“);var i=Number(r.getResponseHeader(”Retry-After“))||0,o=Math.max(1e3*i,M(n));return Object(l.T)(o).then((function(){return t(e,n+1)}))}))}((function(){return k(t,i,a)})).then(B)}return”POST“===t?s():function t(e,n){void 0===n&&(n=0);if(L)return new l.j((function(t){return t(e())}));return e().catch((function®{if(r instanceof m){if(N&&n>5)throw r;var i=M(n);return Object(l.T)(i).then((function(){return t(e,n+1)}))}throw r}))}(s)},t.prototype.handleTask=function(t){var e=this;switch(t.status){case”success“:return t.result;case”error“:throw p.for(t.message,412,t.code);case”exception“:throw new m(t.message);case”open“:return Object(l.S)(2).then((function(){return e.get(”tasks/“+t.id).then((function(t){return e.handleTask(t)}))}));default:throw new m(”Invalid task response (unknown status)“)}},t}();function M(t){return 500*Math.pow(2,Math.min(t,16))}function B(t){var e,n=t.status;try{e=JSON.parse(t.responseText)}catch®{throw new m(t.responseText)}if(n>=200&&n<300)return e;var r=function(t,e,n){if(”4“!==t.toString())return 500===t&&q(e.error)?new m(e.error):new m(n);var r=function(t){var e=t.error,n=t.code,r=t.details;if(!q(e))throw F(”key error is not a string“);if(void 0!==n&&!q(n))throw F(”optional key code is not a string“);if(void 0!==r&&(i=r,”object“!=typeof i||Array.isArray(i)))throw F(”optional key details is not an object“);var i;return D({},t,{error:e,code:n,details:r})}(e);if(function(t){if(”auth_missing“!==t.code)return!1;var e=t.details;return!!e&&”string“==typeof e.visit}®){var i=(o=r.details.visit,a=u.augmentedRedirectUrl(Object(I.f)()),o.replace(”retry=RETRY“,”retry=“+u.currentFailureCount()).replace(/$RETURN_TO/,encodeURIComponent(a)));return new v(i)}var o,a;if(401===t)return new y(r.error,t,r.code,r.details);if(403===t){var s=r.code;return q(s)?new h(r.error,t,s):new m(”Authentication failure response no string value for code“)}return p.for(r.error,t,r.code)}(n,e,t.responseText);throw r instanceof v&&Object(I.i)(r.target),r}function q(t){return”string“==typeof t}function F(t){return new m(”Malformed error response: “+t)}var z=new R;var U=new l.b((function(t){return z.get(”blobs/mget“,{blobs:t}).then((function(e){return e.results.map((function(e,n){return function(t,e){var n=e.public_access.get;if(!n.url)throw new l.g(’Missing public access URL for binary ”‘t’“‘);var r={public_access:{get:{url:n.url}}},i=e.private_access;if(i){var o=i.get;o.url&&(r.private_access={get:{url:o.url}})}return r}(t.id,e)}))}))}));var H={};function W(t,e){return function(t){var e=H;e||(e=function(t){return new l.b((function(e){return z.get(”workspaces/“t”/objs/mget“,{ids:e,include_deleted:!0}).then((function(t){return t.results}))}),{batchSize:17})}(t),H=e);return e}(t).retrieve(e).then((function(t){return t||{_deleted:e}}))}var V=function(){return(V=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)};function K(t,e){var n=V({consistent:!0},e);return z.get(”workspaces/“t”/objs/search“,n).then((function(t){var e=function(t){var e={results:t.results,total:t.total},n=t.continuation;void 0!==n&&(e.continuation=n);var r=t.objs;void 0!==r&&(e.objs=r);return e}(t);return{results:e.results.map((function(t){return t.id})),continuation:e.continuation,total:e.total,objs:e.objs}}))}function Q(t){return!!t&&”widgetlist_diff“===t.format}var $={retrieveObj:function(t,e){return W(t,e)},retrieveObjQuery:function(t,e){return K(t,e)},retrieveFacetQuery:function(t,e){return function(t,e){return z.get(”workspaces/“t”/objs/search“,e).then((function(t){return{facets:t.facets.map((function(t){return t.map((function(t){return{total:t.total,value:t.value,results:t.results}}))}))}}))}(t,e)},retrieveBinaryMetadata:function(t){return function(t){return z.get(”blobs/“+encodeURIComponent(t||”“)+”/meta_data“)}(t)},retrieveBinaryUrls:function(t,e){return function(t,e){var n={id:t};return e&&(n.transformation=e),U.retrieve(n)}(t,e)},retrieveObjFieldDiffs:function(t,e){return function(t,e){return z.get(”workspaces/“t”/objs/“e”/diff“).then((function(t){return t}))}(t,e)}};function G(t){$=t}function Y(t){return!t._deleted}function Z(t){return”widgetlist“===t}},91:function(t,e,n){var r=n(36);t.exports=r(”Any“,(function(){return!0}))},92:function(t,e){t.exports=function(t){return”number“==typeof t&&isFinite(t)&&!isNaN(t)}},93:function(t,e,n){var r=n(21),i=(n(38),n(33),n(64),n(48)),o=n(49),a=n(50),s=n(29),u=n(63);function l(t,e){return”{“+s(t)+” | “+u(e)+”}“}function c(t,e,n){var s=n||l(t,e),u=i(t);function c(e,n){return o(t,e,n)}return c.meta={kind:”subtype“,type:t,predicate:e,name:n,identity:u},c.displayName=s,c.is=function(n){return a(n,t)&&e(n)},c.update=function(t,e){return c(r.update(t,e))},c}c.getDefaultName=l,t.exports=c},94:function(t,e,n){var r=n(36),i=n(70);t.exports=r(”String“,i)},95:function(t,e,n){var r=n(21),i=(n(38),n(33),n(29)),o=n(48),a=n(46),s=n(49),u=n(50);function l(t,e){return”{[key: “+i(t)+”]: “+i(e)+”}“}function c(t,e,n){var c=n||l(t,e),f=(i(t),i(e),o(t)&&o(e));function d(n,r){if(f)return n;var i=!0,o={};for(var a in n)if(n.hasOwnProperty(a)){var u=n,l=s(e,u,null);i=i&&u===l,o=l}return i&&(o=n),o}return d.meta={kind:”dict“,domain:t,codomain:e,name:n,identity:f},d.displayName=c,d.is=function(n){if(!a(n))return!1;for(var r in n)if(n.hasOwnProperty®&&(!u(r,t)||!u(n,e)))return!1;return!0},d.update=function(t,e){return d(r.update(t,e))},d}c.getDefaultName=l,t.exports=c},96:function(t,e,n){var r=n(45);n(21);t.exports=function(t,e,n){if(r(e))return t;for(var i in e)e.hasOwnProperty(i)&&(t=e);return t}},97:function(t,e){var n,r,i=t.exports={};function o(){throw new Error(”setTimeout has not been defined“)}function a(){throw new Error(”clearTimeout has not been defined“)}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=”function“==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r=”function“==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,l=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&p())}function p(){if(!c){var t=s(d);c=!0;for(var e=l.length;e;){for(u=l,l=[];++f.run();f=-1,e=l.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n=arguments;l.push(new h(t,e)),1!==l.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title=”browser“,i.browser=!0,i.env={},i.argv=[],i.version=”“,i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return},i.binding=function(t){throw new Error(”process.binding is not supported“)},i.cwd=function(){return”/“},i.chdir=function(t){throw new Error(”process.chdir is not supported“)},i.umask=function(){return 0}},98:function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=n(55),i=n(99),o=function(){function t(t,e){”string“==typeof t&&(t=new i.InsertDataQuill(r.DataType.Text,t+”“)),this.insert=t,this.attributes=e||{}}return t.createNewLineOp=function(){return new t(r.NewLine)},t.prototype.isContainerBlock=function(){var t=this.attributes;return!!(t.blockquote||t.list||t||t.header||t.align||t.direction||t.indent)},t.prototype.isBlockquote=function(){return!!this.attributes.blockquote},t.prototype.isHeader=function(){return!!this.attributes.header},t.prototype.isSameHeaderAs=function(t){return t.attributes.header===this.attributes.header&&this.isHeader()},t.prototype.hasSameAdiAs=function(t){return this.attributes.align===t.attributes.align&&this.attributes.direction===t.attributes.direction&&this.attributes.indent===t.attributes.indent},t.prototype.hasSameIndentationAs=function(t){return this.attributes.indent===t.attributes.indent},t.prototype.hasHigherIndentThan=function(t){return(Number(this.attributes.indent)||0)>(Number(t.attributes.indent)||0)},t.prototype.isInline=function(){return!(this.isContainerBlock()||this.isVideo()||this.isCustomBlock())},t.prototype.isCodeBlock=function(){return!!this.attributes},t.prototype.isJustNewline=function(){return this.insert.value===r.NewLine},t.prototype.isList=function(){return this.isOrderedList()||this.isBulletList()||this.isCheckedList()||this.isUncheckedList()},t.prototype.isOrderedList=function(){return this.attributes.list===r.ListType.Ordered},t.prototype.isBulletList=function(){return this.attributes.list===r.ListType.Bullet},t.prototype.isCheckedList=function(){return this.attributes.list===r.ListType.Checked},t.prototype.isUncheckedList=function(){return this.attributes.list===r.ListType.Unchecked},t.prototype.isACheckList=function(){return this.attributes.list==r.ListType.Unchecked||this.attributes.list===r.ListType.Checked},t.prototype.isSameListAs=function(t){return!!t.attributes.list&&(this.attributes.list===t.attributes.list||t.isACheckList()&&this.isACheckList())},t.prototype.isText=function(){return this.insert.type===r.DataType.Text},t.prototype.isImage=function(){return this.insert.type===r.DataType.Image},t.prototype.isFormula=function(){return this.insert.type===r.DataType.Formula},t.prototype.isVideo=function(){return this.insert.type===r.DataType.Video},t.prototype.isLink=function(){return this.isText()&&!!this.attributes.link},t.prototype.isCustom=function(){return this.insert instanceof i.InsertDataCustom},t.prototype.isCustomBlock=function(){return this.isCustom()&&!!this.attributes.renderAsBlock},t.prototype.isMentions=function(){return this.isText()&&!!this.attributes.mentions},t}();e.DeltaInsertOp=o},99:function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=function(t,e){this.type=t,this.value=e};e.InsertDataQuill=r;var i=function(t,e){this.type=t,this.value=e};e.InsertDataCustom=i}});