scrivito_sdk 1.14.0 → 1.15.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
- /*! Copyright (c) 2018 Infopark AG (https://scrivito.com) */
2
- !function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=671)}([function(t,e,n){var r,i;(function(){function n(t){function e(e,n,r,i,o,a){for(;o>=0&&o<a;o+=t){var s=i?i[o]:o;r=n(r,e[s],s,e)}return r}return function(n,r,i,o){r=O(r,o,4);var a=!T(n)&&k.keys(n),s=(a||n).length,u=t>0?0:s-1;return arguments.length<3&&(i=n[a?a[u]:u],u+=t),e(n,r,i,a,u,s)}}function o(t){return function(e,n,r){n=E(n,r);for(var i=A(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(n(e[o],o,e))return o;return-1}}function a(t,e,n){return function(r,i,o){var a=0,s=A(r);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 o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=e(p.call(r,a,s),k.isNaN),o>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o<s;o+=t)if(r[o]===i)return o;return-1}}function s(t,e){var n=D.length,r=t.constructor,i=k.isFunction(r)&&r.prototype||f,o="constructor";for(k.has(t,o)&&!k.contains(e,o)&&e.push(o);n--;)(o=D[n])in t&&t[o]!==i[o]&&!k.contains(e,o)&&e.push(o)}var u=this,c=u._,l=Array.prototype,f=Object.prototype,d=Function.prototype,h=l.push,p=l.slice,v=f.toString,y=f.hasOwnProperty,m=Array.isArray,b=Object.keys,g=d.bind,w=Object.create,_=function(){},k=function(t){return t instanceof k?t:this instanceof k?void(this._wrapped=t):new k(t)};void 0!==t&&t.exports&&(e=t.exports=k),e._=k,k.VERSION="1.8.3";var O=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 2:return function(n,r){return t.call(e,n,r)};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)}},E=function(t,e,n){return null==t?k.identity:k.isFunction(t)?O(t,e,n):k.isObject(t)?k.matcher(t):k.property(t)};k.iteratee=function(t,e){return E(t,e,1/0)};var x=function(t,e){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),s=a.length,u=0;u<s;u++){var c=a[u];e&&void 0!==n[c]||(n[c]=o[c])}return n}},C=function(t){if(!k.isObject(t))return{};if(w)return w(t);_.prototype=t;var e=new _;return _.prototype=null,e},j=function(t){return function(e){return null==e?void 0:e[t]}},S=Math.pow(2,53)-1,A=j("length"),T=function(t){var e=A(t);return"number"==typeof e&&e>=0&&e<=S};k.each=k.forEach=function(t,e,n){e=O(e,n);var r,i;if(T(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var o=k.keys(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t},k.map=k.collect=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=e(t[s],s,t)}return o},k.reduce=k.foldl=k.inject=n(1),k.reduceRight=k.foldr=n(-1),k.find=k.detect=function(t,e,n){var r;if(void 0!==(r=T(t)?k.findIndex(t,e,n):k.findKey(t,e,n))&&-1!==r)return t[r]},k.filter=k.select=function(t,e,n){var r=[];return e=E(e,n),k.each(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r},k.reject=function(t,e,n){return k.filter(t,k.negate(E(e)),n)},k.every=k.all=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0},k.some=k.any=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1},k.contains=k.includes=k.include=function(t,e,n,r){return T(t)||(t=k.values(t)),("number"!=typeof n||r)&&(n=0),k.indexOf(t,e,n)>=0},k.invoke=function(t,e){var n=p.call(arguments,2),r=k.isFunction(e);return k.map(t,function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)})},k.pluck=function(t,e){return k.map(t,k.property(e))},k.where=function(t,e){return k.filter(t,k.matcher(e))},k.findWhere=function(t,e){return k.find(t,k.matcher(e))},k.max=function(t,e,n){var r,i,o=-1/0,a=-1/0;if(null==e&&null!=t){t=T(t)?t:k.values(t);for(var s=0,u=t.length;s<u;s++)(r=t[s])>o&&(o=r)}else e=E(e,n),k.each(t,function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},k.min=function(t,e,n){var r,i,o=1/0,a=1/0;if(null==e&&null!=t){t=T(t)?t:k.values(t);for(var s=0,u=t.length;s<u;s++)(r=t[s])<o&&(o=r)}else e=E(e,n),k.each(t,function(t,n,r){((i=e(t,n,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},k.shuffle=function(t){for(var e,n=T(t)?t:k.values(t),r=n.length,i=Array(r),o=0;o<r;o++)e=k.random(0,o),e!==o&&(i[o]=i[e]),i[e]=n[o];return i},k.sample=function(t,e,n){return null==e||n?(T(t)||(t=k.values(t)),t[k.random(t.length-1)]):k.shuffle(t).slice(0,Math.max(0,e))},k.sortBy=function(t,e,n){return e=E(e,n),k.pluck(k.map(t,function(t,n,r){return{value:t,index:n,criteria:e(t,n,r)}}).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 N=function(t){return function(e,n,r){var i={};return n=E(n,r),k.each(e,function(r,o){var a=n(r,o,e);t(i,r,a)}),i}};k.groupBy=N(function(t,e,n){k.has(t,n)?t[n].push(e):t[n]=[e]}),k.indexBy=N(function(t,e,n){t[n]=e}),k.countBy=N(function(t,e,n){k.has(t,n)?t[n]++:t[n]=1}),k.toArray=function(t){return t?k.isArray(t)?p.call(t):T(t)?k.map(t,k.identity):k.values(t):[]},k.size=function(t){return null==t?0:T(t)?t.length:k.keys(t).length},k.partition=function(t,e,n){e=E(e,n);var r=[],i=[];return k.each(t,function(t,n,o){(e(t,n,o)?r:i).push(t)}),[r,i]},k.first=k.head=k.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:k.initial(t,t.length-e)},k.initial=function(t,e,n){return p.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},k.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:k.rest(t,Math.max(0,t.length-e))},k.rest=k.tail=k.drop=function(t,e,n){return p.call(t,null==e||n?1:e)},k.compact=function(t){return k.filter(t,k.identity)};var P=function(t,e,n,r){for(var i=[],o=0,a=r||0,s=A(t);a<s;a++){var u=t[a];if(T(u)&&(k.isArray(u)||k.isArguments(u))){e||(u=P(u,e,n));var c=0,l=u.length;for(i.length+=l;c<l;)i[o++]=u[c++]}else n||(i[o++]=u)}return i};k.flatten=function(t,e){return P(t,e,!1)},k.without=function(t){return k.difference(t,p.call(arguments,1))},k.uniq=k.unique=function(t,e,n,r){k.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=E(n,r));for(var i=[],o=[],a=0,s=A(t);a<s;a++){var u=t[a],c=n?n(u,a,t):u;e?(a&&o===c||i.push(u),o=c):n?k.contains(o,c)||(o.push(c),i.push(u)):k.contains(i,u)||i.push(u)}return i},k.union=function(){return k.uniq(P(arguments,!0,!0))},k.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=A(t);r<i;r++){var o=t[r];if(!k.contains(e,o)){for(var a=1;a<n&&k.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},k.difference=function(t){var e=P(arguments,!0,!0,1);return k.filter(t,function(t){return!k.contains(e,t)})},k.zip=function(){return k.unzip(arguments)},k.unzip=function(t){for(var e=t&&k.max(t,A).length||0,n=Array(e),r=0;r<e;r++)n[r]=k.pluck(t,r);return n},k.object=function(t,e){for(var n={},r=0,i=A(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},k.findIndex=o(1),k.findLastIndex=o(-1),k.sortedIndex=function(t,e,n,r){n=E(n,r,1);for(var i=n(e),o=0,a=A(t);o<a;){var s=Math.floor((o+a)/2);n(t[s])<i?o=s+1:a=s}return o},k.indexOf=a(1,k.findIndex,k.sortedIndex),k.lastIndexOf=a(-1,k.findLastIndex),k.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;o<r;o++,t+=n)i[o]=t;return i};var L=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=C(t.prototype),a=t.apply(o,i);return k.isObject(a)?a:o};k.bind=function(t,e){if(g&&t.bind===g)return g.apply(t,p.call(arguments,1));if(!k.isFunction(t))throw new TypeError("Bind must be called on a function");var n=p.call(arguments,2),r=function(){return L(t,r,e,this,n.concat(p.call(arguments)))};return r},k.partial=function(t){var e=p.call(arguments,1),n=function(){for(var r=0,i=e.length,o=Array(i),a=0;a<i;a++)o[a]=e[a]===k?arguments[r++]:e[a];for(;r<arguments.length;)o.push(arguments[r++]);return L(t,n,this,this,o)};return n},k.bindAll=function(t){var e,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(e=1;e<r;e++)n=arguments[e],t[n]=k.bind(t[n],t);return t},k.memoize=function(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return k.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n},k.delay=function(t,e){var n=p.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},k.defer=k.partial(k.delay,k,1),k.throttle=function(t,e,n){var r,i,o,a=null,s=0;n||(n={});var u=function(){s=!1===n.leading?0:k.now(),a=null,o=t.apply(r,i),a||(r=i=null)};return function(){var c=k.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0||l>e?(a&&(clearTimeout(a),a=null),s=c,o=t.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(u,l)),o}},k.debounce=function(t,e,n){var r,i,o,a,s,u=function(){var c=k.now()-a;c<e&&c>=0?r=setTimeout(u,e-c):(r=null,n||(s=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=k.now();var c=n&&!r;return r||(r=setTimeout(u,e)),c&&(s=t.apply(o,i),o=i=null),s}},k.wrap=function(t,e){return k.partial(e,t)},k.negate=function(t){return function(){return!t.apply(this,arguments)}},k.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},k.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},k.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},k.once=k.partial(k.before,2);var I=!{toString:null}.propertyIsEnumerable("toString"),D=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];k.keys=function(t){if(!k.isObject(t))return[];if(b)return b(t);var e=[];for(var n in t)k.has(t,n)&&e.push(n);return I&&s(t,e),e},k.allKeys=function(t){if(!k.isObject(t))return[];var e=[];for(var n in t)e.push(n);return I&&s(t,e),e},k.values=function(t){for(var e=k.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},k.mapObject=function(t,e,n){e=E(e,n);for(var r,i=k.keys(t),o=i.length,a={},s=0;s<o;s++)r=i[s],a[r]=e(t[r],r,t);return a},k.pairs=function(t){for(var e=k.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},k.invert=function(t){for(var e={},n=k.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},k.functions=k.methods=function(t){var e=[];for(var n in t)k.isFunction(t[n])&&e.push(n);return e.sort()},k.extend=x(k.allKeys),k.extendOwn=k.assign=x(k.keys),k.findKey=function(t,e,n){e=E(e,n);for(var r,i=k.keys(t),o=0,a=i.length;o<a;o++)if(r=i[o],e(t[r],r,t))return r},k.pick=function(t,e,n){var r,i,o={},a=t;if(null==a)return o;k.isFunction(e)?(i=k.allKeys(a),r=O(e,n)):(i=P(arguments,!1,!1,1),r=function(t,e,n){return e in n},a=Object(a));for(var s=0,u=i.length;s<u;s++){var c=i[s],l=a[c];r(l,c,a)&&(o[c]=l)}return o},k.omit=function(t,e,n){if(k.isFunction(e))e=k.negate(e);else{var r=k.map(P(arguments,!1,!1,1),String);e=function(t,e){return!k.contains(r,e)}}return k.pick(t,e,n)},k.defaults=x(k.allKeys,!0),k.create=function(t,e){var n=C(t);return e&&k.extendOwn(n,e),n},k.clone=function(t){return k.isObject(t)?k.isArray(t)?t.slice():k.extend({},t):t},k.tap=function(t,e){return e(t),t},k.isMatch=function(t,e){var n=k.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n[o];if(e[a]!==i[a]||!(a in i))return!1}return!0};var q=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof k&&(t=t._wrapped),e instanceof k&&(e=e._wrapped);var i=v.call(t);if(i!==v.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}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&&!(k.isFunction(a)&&a instanceof a&&k.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!q(t[u],e[u],n,r))return!1}else{var c,l=k.keys(t);if(u=l.length,k.keys(e).length!==u)return!1;for(;u--;)if(c=l[u],!k.has(e,c)||!q(t[c],e[c],n,r))return!1}return n.pop(),r.pop(),!0};k.isEqual=function(t,e){return q(t,e)},k.isEmpty=function(t){return null==t||(T(t)&&(k.isArray(t)||k.isString(t)||k.isArguments(t))?0===t.length:0===k.keys(t).length)},k.isElement=function(t){return!(!t||1!==t.nodeType)},k.isArray=m||function(t){return"[object Array]"===v.call(t)},k.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},k.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){k["is"+t]=function(e){return v.call(e)==="[object "+t+"]"}}),k.isArguments(arguments)||(k.isArguments=function(t){return k.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(k.isFunction=function(t){return"function"==typeof t||!1}),k.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},k.isNaN=function(t){return k.isNumber(t)&&t!==+t},k.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===v.call(t)},k.isNull=function(t){return null===t},k.isUndefined=function(t){return void 0===t},k.has=function(t,e){return null!=t&&y.call(t,e)},k.noConflict=function(){return u._=c,this},k.identity=function(t){return t},k.constant=function(t){return function(){return t}},k.noop=function(){},k.property=j,k.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},k.matcher=k.matches=function(t){return t=k.extendOwn({},t),function(e){return k.isMatch(e,t)}},k.times=function(t,e,n){var r=Array(Math.max(0,t));e=O(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r},k.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},k.now=Date.now||function(){return(new Date).getTime()};var R={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},M=k.invert(R),B=function(t){var e=function(e){return t[e]},n="(?:"+k.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}};k.escape=B(R),k.unescape=B(M),k.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),k.isFunction(r)?r.call(t):r};var F=0;k.uniqueId=function(t){var e=++F+"";return t?t+e:e},k.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var z=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+U[t]};k.template=function(t,e,n){!e&&n&&(e=n),e=k.defaults({},e,k.templateSettings);var r=RegExp([(e.escape||z).source,(e.interpolate||z).source,(e.evaluate||z).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(e,n,r,a,s){return o+=t.slice(i,s).replace(H,W),i=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var s=function(t){return a.call(this,t,k)};return s.source="function("+(e.variable||"obj")+"){\n"+o+"}",s},k.chain=function(t){var e=k(t);return e._chain=!0,e};var K=function(t,e){return t._chain?k(e).chain():e};k.mixin=function(t){k.each(k.functions(t),function(e){var n=k[e]=t[e];k.prototype[e]=function(){var t=[this._wrapped];return h.apply(t,arguments),K(this,n.apply(k,t))}})},k.mixin(k),k.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=l[t];k.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],K(this,n)}}),k.each(["concat","join","slice"],function(t){var e=l[t];k.prototype[t]=function(){return K(this,e.apply(this._wrapped,arguments))}}),k.prototype.value=function(){return this._wrapped},k.prototype.valueOf=k.prototype.toJSON=k.prototype.value,k.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(i=function(){return k}.apply(e,r))&&(t.exports=i)}).call(this)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"AccessDeniedError",function(){return s}),n.d(e,"ArgumentError",function(){return u}),n.d(e,"ClientError",function(){return a}),n.d(e,"InternalError",function(){return c}),n.d(e,"InterpolationError",function(){return b}),n.d(e,"CurrentPageNotFoundError",function(){return m}),n.d(e,"NavigateToEmptyBinaryError",function(){return y}),n.d(e,"ResourceNotFoundError",function(){return f}),n.d(e,"RequestFailedError",function(){return l}),n.d(e,"ScrivitoError",function(){return o}),n.d(e,"TransformationSourceInvalidError",function(){return p}),n.d(e,"TransformationSourceTooLargeError",function(){return h}),n.d(e,"TranslationError",function(){return v}),n.d(e,"UnauthorizedError",function(){return d});var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),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,n,r){var i=t.call(this,e)||this;return i.httpCode=n,i.backendCode=r,i}return i(e,t),e.for=function(t,n,r){return"binary.unprocessable.image.transform.source.too_large"===r?new h(t,n,r):r&&-1!==r.indexOf("binary.unprocessable.image.transform.source.")?new p(t,n,r):new e(t,n,r)},e}(o),s=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),u=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),c=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(o),f=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),d=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.details=i||{},o}return i(e,t),e}(a),h=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),p=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),v=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),y=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),m=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),b=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(v)},,function(t,e,n){"use strict";function r(t){return(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})(t)}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(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||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return h(t)||d(t)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function h(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function p(t,e){if(!u(t,e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");y(t.prototype,e&&e.prototype),e&&y(t,e)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?b(t):e}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t,e,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=w(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function w(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}function _(t){return(_=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e,n){return e&&k(t.prototype,e),n&&k(t,n),t}function E(t){if(!t)throw new F.ArgumentError('Please provide an obj class as the "_objClass" property.')}function x(t){var e={},n={};return B.a.each(t,function(t,r){if(B.a.isArray(t)&&"widgetlist"===B.a.first(t)){var i=B.a.map(B.a.last(t),function(t){return D.a.newWithSerializedAttributes(t)}),o=Object(H.a)(r);n[o]=[i,["widgetlist"]]}else e[r]=t}),e._id||(e._id=Y.generateId()),[e,n]}function C(t){return Y.all().and("_parentPath","equals",t)}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"/"===t?["/"].concat(l(e)):j(S(t),[t].concat(l(e)))}function S(t){var e=t.split("/");return e.pop(),1===e.length?"/":e.join("/")}function A(t){var e=["_path"];if(B.a.difference(B.a.keys(t),e).length)throw new F.ArgumentError('Currently only "_path" copy option is supported.')}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"default",function(){return Y});var T=n(155),N=n(211),P=n(48),L=n(58),I=n(116),D=n(32),q=n(54),R=n(117),M=n(0),B=n.n(M),F=n(1),z=n(71),U=n(120),H=n(23),W=n(121),K=n(4),V=n(17),Q={_id:"id",_obj_class:"objClass",_path:"path",_permalink:"permalink",_created_at:"createdAt",_created_by:"createdBy",_last_changed:"lastChanged",_last_changed_by:"lastChangedBy"},Y=function(t){function e(t){var n;return p(this,e),n=m(this,_(e).call(this)),n.objData=t,n}return O(e,null,[{key:"get",value:function(t){var e=this.getIncludingDeleted(t);if(e&&!e.isDeleted())return e}},{key:"getIncludingDeleted",value:function(t){var n=L.b(t);if(n){var r=new e(n);if(!r.isFinallyDeleted())return r}}},{key:"create",value:function(t){var e=scrivito.typeInfo.normalizeAttrs(t);E(e._objClass),e._id||(e._id=[this.generateId()]);var n={_id:e._id,_obj_class:e._objClass};return this.createWithSerializedAttributes(scrivito.typeInfo.unwrapAttributes(n),B.a.omit(t,"_objClass","_id"))}},{key:"addChildWithSerializedAttributes",value:function(t,n){var r=e.generateId();return this.createWithSerializedAttributes(B.a.extend({},n,{_id:r,_path:"".concat(t,"/").concat(r)}))}},{key:"createWithSerializedAttributes",value:function(t,n){if(!n)return this.createWithSerializedAttributes.apply(this,l(x(t)));var r=L.a(t._id);r.update(t);var i=new e(r);return i.update(n),i}},{key:"generateId",value:function(){return Object(U.b)()}},{key:"all",value:function(){return(new q.b).batchSize(1e3)}},{key:"root",value:function(){return e.getByPath("/")}},{key:"where",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(new q.b).and(t,e,n,r)}},{key:"getByPath",value:function(t){var e=Object(W.b)(this.where("_path","equals",t));if(e)return e}},{key:"getByPermalink",value:function(t){var e=this.where("_permalink","equals",t),n=Object(W.b)(e);if(n)return n}}]),O(e,[{key:"id",value:function(){return this.getAttributeData("_id")}},{key:"objClass",value:function(){return this.getAttributeData("_obj_class")}},{key:"obj",value:function(){return this}},{key:"createdAt",value:function(){return Object(P.g)(this.getAttributeData("_created_at"))}},{key:"createdBy",value:function(){return this.getAttributeData("_created_by")}},{key:"lastChanged",value:function(){var t=this.getAttributeData("_last_changed");return t?Object(P.g)(t):null}},{key:"lastChangedBy",value:function(){return this.getAttributeData("_last_changed_by")||null}},{key:"version",value:function(){return this.getAttributeData("_version")}},{key:"path",value:function(){return this.getAttributeData("_path")||null}},{key:"permalink",value:function(){return this.getAttributeData("_permalink")||null}},{key:"parentPath",value:function(){if(this.path()&&"/"!==this.path())return S(this.path())}},{key:"parent",value:function(){var t=this.parentPath();if(t)return e.getByPath(t)}},{key:"hasConflicts",value:function(){return!!this.getAttributeData("_conflicts")}},{key:"modification",value:function(){return this.isFinallyDeleted()||this.getAttributeData("_marked_deleted")?"deleted":this.getAttributeData("_modification")||null}},{key:"isModified",value:function(){return!!this.modification()}},{key:"isNew",value:function(){return"new"===this.modification()}},{key:"isEdited",value:function(){return"edited"===this.modification()}},{key:"isDeleted",value:function(){return"deleted"===this.modification()}},{key:"isFinallyDeleted",value:function(){return this.objData.isNonExistent()}},{key:"contentLength",value:function(){return this._binaryData("contentLength")}},{key:"contentType",value:function(){return this._binaryData("contentType")}},{key:"contentUrl",value:function(){return this._binaryData("url")}},{key:"metadata",value:function(){return this._binaryData("metadata")}},{key:"children",value:function(){var t=this.path();if(!t)return[];var e=C(t);return Object(W.a)(e)}},{key:"hasChildren",value:function(){var t=this.path();return!!t&&C(t).batchSize(0).count()>0}},{key:"orderedChildren",value:function(){var t=this.children(),e=this.get("childOrder","referencelist");return B.a.isArray(e)?B.a.sortBy(t,function(t){var n=B.a.invoke(e,"id"),r=n.indexOf(t.id());return-1===r?e.length:r}):t}},{key:"backlinks",value:function(){return Object(W.a)(e.where("*","linksTo",this))}},{key:"ancestors",value:function(){var t=this.parentPath();return t?j(t).map(function(t){return e.getByPath(t)}):[]}},{key:"update",value:function(t){var e=this,n=scrivito.typeInfo.normalizeAttrs(t);Object(K.j)(function(){e._persistWidgets(e,n);var t=I.a(n);e.objData.update(t)}),this.startLinkResolution()}},{key:"destroy",value:function(){this.update({_markedDeleted:[!0]})}},{key:"insertWidget",value:function(t,e){var n=e.before,r=e.after,i=(n||r).id(),o=this._widgetPlacementFor(i),a=o.attributeValue,s=o.attributeName,u=o.container,f=o.index,d=n?f:f+1,h=l(a.slice(0,d)).concat([t],l(a.slice(d)));u.update(c({},s,[h,"widgetlist"]))}},{key:"removeWidget",value:function(t){var e=this.fieldContainingWidget(t);e.update(B.a.reject(e.get(),function(e){return e.equals(t)}))}},{key:"copyAsync",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A(t),this._copyAttributes().then(function(n){var r=B.a.extend(n,t),i=e.createWithSerializedAttributes(r);return i.objData.finishSaving().then(function(){return i})})}},{key:"moveToAsync",value:function(t){return this.update({_path:["".concat(t,"/").concat(this.id())]}),this.finishSaving()}},{key:"markResolvedAsync",value:function(){return this.update({_conflicts:[null]}),this.finishSaving()}},{key:"finishSaving",value:function(){var t=this;return this.finishLinkResolution().then(function(){return t.objData.finishSaving()})}},{key:"equals",value:function(t){return!!u(t,e)&&this.id()===t.id()}},{key:"widget",value:function(t){return this.getWidgetAttribute(t,"_obj_class")?D.a.build(t,this):null}},{key:"getWidgetAttribute",value:function(t,e){return this.objData.getWidgetAttribute(t,e)}},{key:"widgets",value:function(){var t=this,e=this.getData()._widget_pool||{};return Object.keys(e).map(function(e){return t.widget(e)})}},{key:"fieldContainingWidget",value:function(t){var e=this._widgetPlacementFor(t.id()),n=e.container,r=e.attributeName;return n.field(r,"widgetlist")}},{key:"generateWidgetId",value:function(){for(var t=0;t<10;t++){var e=Object(U.a)();if(!this.widget(e))return e}throw new F.InternalError("Could not generate a new unused widget id.")}},{key:"serializeAttributes",value:function(){var t=g(_(e.prototype),"serializeAttributes",this).call(this);return delete t._conflicts,delete t._modification,delete t._created_at,delete t._created_by,delete t._last_changed,delete t._last_changed_by,t}},{key:"slug",value:function(){var t=this.get("title","string");return Object(N.a)(t)}},{key:"getAttributeData",value:function(t){return this.objData.getAttribute(t)}},{key:"getData",value:function(){return this.objData.get()}},{key:"getWidgetData",value:function(t){return this.objData.getWidget(t)}},{key:"startLinkResolution",value:function(){V.b.startLinkResolutionFor(scrivito.currentWorkspaceId(),this.id())}},{key:"finishLinkResolution",value:function(){return V.b.finishLinkResolutionFor(scrivito.currentWorkspaceId(),this.id())}},{key:"toPrettyPrint",value:function(){return"[object ".concat(this.objClass(),' id="').concat(this.id(),'"]')}},{key:"_binaryData",value:function(t){var e=this.get("blob","binary");return e&&e.raw()[t]()}},{key:"_hasParentPath",value:function(){return this.path()&&"/"!==this.path()}},{key:"_copyAttributes",value:function(){var t=e.generateId(),n=this.serializeAttributes(),r=[];return B.a.each(n,function(e,o){if("_"===o[0])return void delete n[o];var a=i(e,2),s=a[0],u=a[1];if("binary"===s&&u){var c=new z.a({idToCopy:u.id}),l=c.intoId(t).then(function(t){return{name:o,binary:t}});r.push(l)}}),n._id=t,n._obj_class=this.objClass(),this.path()&&(n._path="".concat(this.parentPath(),"/").concat(t)),scrivito.Promise.all(r).then(function(t){return B.a.each(t,function(t){var e=t.name,r=t.binary;n[e]=["binary",{id:r.id()}]}),n})}},{key:"_widgetPlacementFor",value:function(t){var e=Object(T.a)(this.getData(),t),n=e.parentWidgetId?this.widget(e.parentWidgetId):this,r=Object(H.a)(e.attributeName),i=n.get(r,"widgetlist");return B.a.extend(e,{container:n,attributeName:r,attributeValue:i})}},{key:"_systemAttributes",get:function(){return Q}}]),v(e,t),e}(R.a)},function(t,e,n){"use strict";function r(t){t?(f=void 0,d=t.stateController(),h=t.createAppState(),p=t.cmsState()):(f=new m.a,d=f,h=i(),p=f.subState("cms"),v=f.subState("ui"))}function i(){if(!f)throw new y.InternalError;var t=(b++).toString();return f.subState("apps").subState(t)}function o(t){return d.withBatchedUpdates(t)}function a(t){return d.subscribe(t)}function s(t){return d.trackChanges(t)}function u(t,e){return d.withFrozenState(t,e)}function c(t){return d.failIfFrozen(t)}function l(t){return d.failIfTracking(t)}n.d(e,"a",function(){return h}),n.d(e,"b",function(){return p}),n.d(e,"i",function(){return v}),e.f=r,e.c=i,e.j=o,e.g=a,e.h=s,e.k=u,e.d=c,e.e=l;var f,d,h,p,v,y=n(1),m=n(164),b=0},function(t,e,n){function r(t,e){!0!==t&&(i(e)?e=e():o(e)&&(e='Assert failed (turn on "Pause on exceptions" in your Source panel)'),r.fail(e))}var i=n(10),o=n(25),a=n(184),s=n(105);r.fail=a,r.stringify=s,t.exports=r},,function(t,e,n){"use strict";function r(t){function e(){var n=Object(o.a)(function(){try{return{errorThrown:!1,run:o.b.run(function(){return Object(a.k)({contextName:"Scrivito.load",message:"Use an async callback: Scrivito.load(/* ... */).then(/* ... */)."},t)})}}catch(t){return{errorThrown:!0,error:t}}});if(!n.isAllDataUpToDate()){n.loadRequiredData();var r=new i.a,s=Object(a.g)(function(){r.resolve(void 0),s()});return r.promise.then(e)}var u=n.result;if(u.errorThrown)throw u.error;var l=u.run;if(!l.success)throw new c.InternalError;return l.result}return l(t),new scrivito.Promise(function(t){return t(e())})}var i=n(12),o=n(18),a=n(4),s=n(39),u=n(24),c=n(1),l=Object(s.a)("load",[["loadableFunction",u.a.Function]],{docPermalink:"js-sdk/load"});e.a=r},function(t,e,n){var r=n(11),i=n(51);t.exports=function(t){return r(t)?t.displayName:i(t)}},,function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(10),i=n(27);t.exports=function(t){return r(t)&&i(t.meta)}},function(t,e,n){"use strict";var r=function(){function t(){var t=this;this.promise=new scrivito.Promise(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}();e.a=r},function(t,e){t.exports=React},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){if("function"!=typeof t)throw new d.ArgumentError("Scrivito.connect expects either a plain function or a subclass of React.Component");return u(t)?t:o(s(t)?t:a(t))}function o(t){var e=(n=function(t){function e(e){var n=t.call(this,e)||this;return n._scrivitoPrivateConnector=new m(n),n}return y(e,t),e.prototype.componentWillMount=function(){this._scrivitoPrivateConnector.componentWillMount(),t.prototype.componentWillMount&&t.prototype.componentWillMount.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),n._isScrivitoConnectedComponent=!0,n);return e.displayName=Object(v.a)(t),e;var n}function a(t){var e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return y(n,e),n.prototype.render=function(){return t(this.props)},n}(l.Component);return e.displayName=Object(v.a)(t),e}function s(t){return"function"==typeof t&&t.prototype&&t.prototype.isReactComponent}function u(t){return!0===t._isScrivitoConnectedComponent}function c(t){return!!t._scrivitoRenderWhileLoading}e.a=i;var l=n(13),f=(n.n(l),n(18)),d=n(1),h=n(4),p=n(81),v=n(122),y=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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(){function t(t){this.component=t}return t.prototype.componentWillMount=function(){var t=this;this.unsubscribeModelState=Object(h.g)(function(){t.isStateChangeDetected&&t.isStateChangeDetected()&&t.component.forceUpdate()})},t.prototype.componentWillUnmount=function(){this.unregisterLoadingActivity(),this.unsubscribeModelState&&this.unsubscribeModelState()},t.prototype.render=function(t){var e,n=this;return this.isStateChangeDetected=Object(h.h)(function(){var r=Object(f.a)(function(){return f.b.run(function(){return Object(h.k)({contextName:"React.Component#render",message:"Use one of the React lifecycle hooks."},t)})});r.loadRequiredData();var i=r.result;if(r.isAllDataLoaded()){if(n.unregisterLoadingActivity(),!i.success)throw new d.InternalError;e=i.result}else{n.unregisterLoadingActivityCallback||(n.unregisterLoadingActivityCallback=Object(p.c)());var o=i.success?i.result:null;e=n.handleLoading(o)}}),e},t.prototype.handleLoading=function(t){return c(this.component)?this.component._scrivitoRenderWhileLoading():t},t.prototype.unregisterLoadingActivity=function(){var t=this.unregisterLoadingActivityCallback;t&&(delete this.unregisterLoadingActivityCallback,t())},t}()},,function(t,e,n){n(5),n(65),n(10),n(52);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}},function(t,e,n){"use strict";function r(t){i=t}n.d(e,"b",function(){return i}),e.a=r;var i},function(t,e,n){"use strict";function r(){var t=d.current();t&&(t.allDataLoaded=!1)}function i(t){return f.runWith(!1,t)}var o=n(1),a=n(103),s=n(175),u=n(69),c=n(176),l=n(103);n.d(e,"a",function(){return l.a});var f=new u.a,d=new u.a,h=function(){function t(t){var e=t.state,n=t.loader,r=t.invalidation,i=t.throwNotLoaded;if(!e)throw new o.InternalError("LoadableData needs state");this.value=new s.a(e),this.loader=n,this.invalidation=r,this.throwNotLoaded=i||!1,this.id=e.id()}return t.throwNotLoaded=function(){throw r(),new scrivito.NotLoadedError(f.current())},t.run=function(t){var e={allDataLoaded:!0};try{return{success:!0,result:d.runWith(e,function(){return i(t)}),allDataLoaded:e.allDataLoaded}}catch(t){if(e.allDataLoaded)throw t;return{success:!1,allDataLoaded:!1}}},t.prototype.ensureAvailable=function(){var e=this;if(this.isAvailable())return this.reloadIfOutdated(),!0;if(this.isError())throw this.reloadIfOutdated(),this.value.error();return r(),a.b(function(){return e.progressLoading()}),this.throwNotLoaded&&t.throwNotLoaded(),!1},t.prototype.get=function(){if(this.ensureAvailable())return this.value.value()},t.prototype.reader=function(){return this.value.reader()},t.prototype.set=function(t){this.value.transitionToAvailable(t,this.currentVersion()),Object(c.c)(this.id)},t.prototype.setError=function(t){this.transitionToError(t),Object(c.c)(this.id)},t.prototype.reset=function(){this.value.transitionToMissing(),Object(c.c)(this.id)},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.isLoading=function(){return Object(c.a)(this.id)},t.prototype.isAvailable=function(){return"AVAILABLE"===this.value.status()},t.prototype.isError=function(){return"ERROR"===this.value.status()},t.prototype.triggerLoading=function(){var t=this,e=this.currentVersion();Object(c.b)(this.id,function(e){var n=e.wasCancelled,r=e.push;return t.loader({push:r,isReload:function(){return t.hasBeenInvalidated()},wasCancelled:n})},function(n){t.value.transitionToAvailable(n,e)},function(n){t.transitionToError(n,e)})},t.prototype.transitionToError=function(t,e){void 0===e&&(e=this.currentVersion()),this.value.transitionToError(t,e)},t.prototype.reloadIfOutdated=function(){var t=this;this.hasBeenInvalidated()&&a.c(function(){return t.progressLoading()})},t.prototype.progressLoading=function(){(this.hasBeenInvalidated()||this.isMissing())&&this.triggerLoading()},t.prototype.hasBeenInvalidated=function(){return!!this.invalidation&&(!this.isMissing()&&this.currentVersion()!==this.value.version())},t.prototype.currentVersion=function(){var t=this.invalidation;if(t){var e=t();if("number"==typeof e&&isNaN(e)){var n="invalidation callback returned unsuitable version "+e;throw new o.InternalError(n)}return e}},t}();e.b=h},,function(t,e,n){var r=n(25),i=n(65);t.exports=function(t){return r(t)||i(t)}},function(t,e,n){"use strict";function r(t){return(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})(t)}function i(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function o(t,e){return void 0===e&&(e=0),y?new scrivito.Promise(function(e){return e(t())}):t().catch(function(n){if(i(n,k.RequestFailedError)){if(v&&e>5)throw n;var r=s(e);return Object(_.b)(r).then(function(){return o(t,e+1)})}throw n})}function a(t,e){return void 0===e&&(e=0),y?new scrivito.Promise(function(e){return e(t())}):t().then(function(n){if(429!==n.status)return n;if(v&&e>19)throw new Error("Maximum number of rate limit retries reached");var r=Number(n.getResponseHeader("Retry-After"))||0,i=Math.max(1e3*r,s(e));return Object(_.b)(i).then(function(){return a(t,e+1)})})}function s(t){return 500*Math.pow(2,Math.min(t,16))}function u(t){var e,n=t.status;try{e=JSON.parse(t.responseText)}catch(e){throw new k.RequestFailedError(t.responseText)}if(n>=200&&n<300)return e;if("auth_missing"===e.code){var r=e.details;if(r&&f(r)){var i=r.visit;if("string"==typeof i)return Object(x.d)(c(i)),{}}}throw l(n,e,t.responseText)}function c(t){var e=O.a.augmentedRedirectUrl(Object(x.c)());return t.replace("retry=RETRY","retry="+O.a.currentFailureCount()).replace(/\$RETURN_TO/,encodeURIComponent(e))}function l(t,e,n){if(401===t){var r=p(e);return new k.UnauthorizedError(r.error,t,r.code,r.details)}if(403===t){var r=p(e),i=r.code;if(!i||!d(i))throw new k.RequestFailedError("Authentication failure response no string value for code");return new k.AccessDeniedError(r.error,t,i)}if(e.error&&"4"===t.toString()[0]){var r=p(e);return k.ClientError.for(r.error,t,r.code)}return 500===t&&d(e.error)?new k.RequestFailedError(e.error):new k.RequestFailedError(n)}function f(t){return"object"===r(t)&&!Array.isArray(t)}function d(t){return"string"==typeof t}function h(t){return!!t&&!!t.task&&1===Object(m.size)(t)}function p(t){var e=t.error;if("string"!=typeof e)throw new k.RequestFailedError("Malformed error response (key error is not a string)");var n=t.code;if(void 0!==n&&!d(n))throw new k.RequestFailedError("Malformed error response (optional key code is not a string)");var r=t.details;if(void 0!==r&&!f(r))throw new k.RequestFailedError("Malformed error response (optional key details is not an object");return{code:n,error:e,details:r}}n.d(e,"a",function(){return j});var v,y,m=n(0),b=(n.n(m),n(33)),g=(n.n(b),n(12)),w=n(101),_=n(128),k=n(1),O=n(152),E=n(172),x=n(70),C=function(){function t(){this.initDeferred=new g.a,this.authHeaderValueProvider=E}return t.prototype.init=function(t,e,n){e&&(this.tenant=e,this.endpoint=t,this.url=b(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 O.a.reset(),t})},t.prototype.enableForceVerification=function(){this.forceVerification=!0},t.prototype.currentPublicAuthorizationState=function(){return this.authHeaderValueProvider?this.authHeaderValueProvider.currentState?"[API] "+this.authHeaderValueProvider.currentState():"[API]: authorization provider without currentState()":"[API]: 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 h(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){function i(){return a(function(){return Object(w.a)(t,s,f)}).then(u)}var s=this.url,c=this.forceVerification,l={path:e,verb:t,params:n||{}},f={params:l,authorization:r,forceVerification:c};return"POST"===t?i():o(i)},t.prototype._handleTask=function(t){var e=this;switch(t.status){case"success":return t.result;case"error":throw k.ClientError.for(t.message,412,t.code);case"open":return Object(_.a)(2).then(function(){return e.get("tasks/"+t.id).then(function(t){return e._handleTask(t)})});default:throw new k.RequestFailedError("Invalid task response (unknown status)")}},t}(),j=new C},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(Object(c.isArray)(e))return Object(c.map)(e,function(e){return i(t,e)});if(r(e,f.default))return o(e,t.objClassFor(e.objClass()));if(r(e,d.a)){var n=e.objClass();return o(e,t.widgetClassFor(n))}return r(e,h.a)?t.defaultClassForLinks.build(e.buildAttributes()):e}function o(t,e){var n=Object.create(e.prototype);return n._scrivitoPrivateContent=t,n}function a(t){return Object(c.isArray)(t)?Object(c.map)(t,s):s(t)}function s(t){return t&&t._scrivitoPrivateContent?t._scrivitoPrivateContent:t}function u(t,e,n){return Object(c.mapObject)(t,function(t,r){if(Object(l.a)(r))return[t];var i=e.attributes[r];if(!i)throw new p.ArgumentError('Attribute "'.concat(r,'" is not defined for CMS object ')+'class "'.concat(n,'".'));return[a(t),i]})}e.e=i,e.a=o,e.d=a,e.c=s,e.b=u;var c=n(0),l=(n.n(c),n(47)),f=n(3),d=n(32),h=n(34),p=n(1)},function(t,e,n){"use strict";function r(t){return f.test(t)}function i(t){return t.replace(c,function(t,e){return"_".concat(e.toLowerCase())})}function o(t){return t.replace(u,function(t,e,n,r){return r?n.toUpperCase()===n?t:"".concat(e.substr(1)).concat(n.toUpperCase()):t})}function a(t){var e=o(t);return e.charAt(0).toUpperCase()+e.slice(1)}function s(t){return t.replace(d," ").replace(h,function(t){return" ".concat(t.toLowerCase())}).replace(l,function(t){return" ".concat(t)}).trim().replace(/./,function(t){return t.toUpperCase()})}e.c=r,e.e=i,e.a=o,e.b=a,e.d=s;var u=/(_+)(\w)/g,c=/([A-Z])/g,l=/[A-Z]+|\d+/g,f=/^_?(_+[A-Z0-9]|[^_])+$/,d=/[_\s]+/g,h=/[A-Z][a-z]+/g},function(t,e,n){"use strict";var r=n(182);n.n(r);n.d(e,"a",function(){return r}),r.struct.strict=!0,r.interface.strict=!0,r.fail=function(t){throw new TypeError(t)}},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){var n=scrivito.computeCacheKey([t,e]);return v.b.subState("binary").subState(n)}function o(t,e){return function(){return p.a.retrieveBinaryUrls(t,e)}}var a=n(33),s=(n.n(a),n(0)),u=(n.n(s),n(71)),c=n(18),l=n(130),f=n(1),d=n(131),h=n(39),p=n(43),v=n(4),y=n(24),m="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",b={public_access:{get:{url:m}},private_access:{get:{url:m}}},g=function(){function t(t,e,n){this._id=t,this._isPublic=!!e,this._transformation=n,this._loadableData=new c.b({state:i(t,n),loader:o(t,n)})}return t.upload=function(t,e){if(k(t,e),!(d.b.is(t)||e&&e.filename))throw new f.ArgumentError("Expected a filename to be passed with Blob as the source.");return new u.a({source:t},e)},t.store=function(e,n,r){var a=n.transformation;new c.b({state:i(e,a),loader:o(e,a)}).set(r);var s=new t(e);return a?s.optimizeFor(a):s},t.storeMetadata=function(t,e){l.a.store(t,e)},t.prototype.id=function(){return this._id},t.prototype.copy=function(t){return new u.a({idToCopy:this._id},t)},t.prototype.isPrivate=function(){return!this._isPublic},t.prototype.optimizeFor=function(e){return new t(this._id,this._isPublic,Object(s.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)},t.prototype.isExplicitlyTransformed=function(){return this._isTransformed()&&!Object(s.isEmpty)(this._transformation)},t.prototype.isRaw=function(){return!this._isTransformed()},t.prototype.url=function(){var t=this._urlData()[this._accessType()];if(t)return t.get.url},t.prototype.filename=function(){var t=this.url();return!t||t.match(/^data:/)?"":a(t).path().split("/").pop()},t.prototype.metadata=function(){return this._assertNotTransformed("Metadata"),new l.a(this._id)},t.prototype.contentType=function(){return this._assertNotTransformed("Content type"),this.metadata().get("contentType")},t.prototype.contentLength=function(){return this._assertNotTransformed("Content length"),this.metadata().get("contentLength")||0},t.prototype.extname=function(){if(this.raw().filename().indexOf(".")>-1){var t=/[^.\\]*$/.exec(this.raw().filename());if(t)return t[0].toLowerCase()}},t.prototype.equals=function(e){return r(e,t)&&e.id()===this.id()&&e.isPrivate()===this.isPrivate()&&Object(s.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._urlData=function(){return this._loadableData.get()||b},t.prototype._assertNotTransformed=function(t){if(this._isTransformed())throw new f.ScrivitoError('"'+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}();e.a=g;var w=y.a.struct({contentType:y.a.maybe(y.a.String),filename:y.a.maybe(y.a.String)}),_=y.a.refinement(y.a.Object,function(t){return d.a.is(t)||d.b.is(t)},"Blob or File"),k=Object(h.a)("Binary.upload",[["source",_],["options",y.a.maybe(w)]],{docPermalink:"js-sdk/Binary-static-upload"})},function(t,e,n){var r=n(25),i=n(28);t.exports=function(t){return!r(t)&&"object"==typeof t&&!i(t)}},function(t,e){t.exports=function(t){return Array.isArray?Array.isArray(t):t instanceof Array}},function(t,e,n){var r=(n(5),n(106),n(11));n(8);t.exports=function(t){return!r(t)||t.meta.identity}},function(t,e,n){var r=n(11);n(51),n(5),n(105);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}},function(t,e,n){var r=n(11);t.exports=function(t,e){return r(e)?e.is(t):t instanceof e}},function(t,e,n){"use strict";function r(t){return(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})(t)}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(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||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function l(t,e){if(!c(t,e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");d(t.prototype,e&&e.prototype),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t}function b(t){if(!t)throw new E.ArgumentError('Please provide a widget class as the "_objClass" property.')}n.d(e,"a",function(){return j});var g=n(116),w=n(117),_=n(0),k=n.n(_),O=n(23),E=n(1),x=n(4),C={_id:"id",_obj_class:"objClass"},j=function(t){function e(t){var n;return l(this,e),n=h(this,v(e).call(this)),n._attributesToBeSaved=scrivito.typeInfo.normalizeAttrs(t),b(t._objClass),n}return m(e,null,[{key:"build",value:function(t,n){var r=Object.create(e.prototype);return r._obj=n,r._id=t,r}},{key:"newWithSerializedAttributes",value:function(t){var n={},r={};k.a.each(t,function(t,i){if("_obj_class"===i)return void(n._objClass=[t]);if(k.a.isArray(t)&&"widgetlist"===k.a.first(t)){var o=k.a.map(k.a.last(t),function(t){return e.newWithSerializedAttributes(t)}),a=Object(O.a)(i);return void(n[a]=[o,["widgetlist"]])}r[i]=t});var i=new e(n);return i.preserializedAttributes=r,i}}]),m(e,[{key:"id",value:function(){return this._failIfNotPersisted(),this._id}},{key:"objClass",value:function(){return this.isPersisted()?this.getAttributeData("_obj_class"):this._attributesToBeSaved._objClass[0]}},{key:"obj",value:function(){return this._failIfNotPersisted(),this._obj}},{key:"widget",value:function(t){return this.obj().widget(t)}},{key:"update",value:function(t){var e=this,n=scrivito.typeInfo.normalizeAttrs(t);Object(x.j)(function(){e._persistWidgets(e.obj(),n);var t=g.a(n);e._updateSelf(t)})}},{key:"insertBefore",value:function(t){t.obj().insertWidget(this,{before:t})}},{key:"insertAfter",value:function(t){t.obj().insertWidget(this,{after:t})}},{key:"remove",value:function(){this.obj().removeWidget(this)}},{key:"copy",value:function(){return this.isPersisted()?this._copyPersisted():this._copyUnpersisted()}},{key:"persistInObj",value:function(t){this._persistWidgets(t,this._attributesToBeSaved);var e=g.a(this._attributesToBeSaved);k.a.extend(e,this.preserializedAttributes||{}),this._obj=t,this._id=t.generateWidgetId(),this._updateSelf(e),this._executeDidPersistCallback()}},{key:"isPersisted",value:function(){return!!this._obj}},{key:"onDidPersist",value:function(t){if(this.isPersisted())throw new E.ScrivitoError('Cannot call "onDidPersist" of an already persisted widget');this._onDidPersistCallback=t}},{key:"hasOnDidPersistCallback",value:function(){return!!this._onDidPersistCallback}},{key:"finishSaving",value:function(){return this.obj().finishSaving()}},{key:"equals",value:function(t){return!!c(t,e)&&(this.id()===t.id()&&this.obj().id()===t.obj().id())}},{key:"containingField",value:function(){return this.obj().fieldContainingWidget(this)}},{key:"toPrettyPrint",value:function(){return"[object ".concat(this.objClass(),' id="').concat(this.id(),'" objId="').concat(this.obj().id(),'"]')}},{key:"getAttributeData",value:function(t){return this.obj().getWidgetAttribute(this.id(),t)}},{key:"getData",value:function(){return this.obj().getWidgetData(this.id())}},{key:"_failIfNotPersisted",value:function(){if(!this.isPersisted())throw new E.ScrivitoError("Can not access a new widget before it has been saved.")}},{key:"_updateSelf",value:function(t){var e={_widgetPool:[u({},this.id(),t)]};this.obj().update(e)}},{key:"_executeDidPersistCallback",value:function(){this._onDidPersistCallback&&(this._onDidPersistCallback(this),delete this._onDidPersistCallback)}},{key:"_copyPersisted",value:function(){var t=this.serializeAttributes();return e.newWithSerializedAttributes(t)}},{key:"_copyUnpersisted",value:function(){var t=k.a.mapObject(this._attributesToBeSaved,function(t){var e=i(t,2),n=e[0],r=e[1];return r&&"widgetlist"===r[0]?[k.a.invoke(n,"copy"),r]:[n,r]}),n=new e(t);return this._onDidPersistCallback&&n.onDidPersist(this._onDidPersistCallback),n}},{key:"attributesToBeSaved",get:function(){return this._attributesToBeSaved}},{key:"_systemAttributes",get:function(){return C}}]),f(e,t),e}(w.a)},function(t,e,n){var r,i,o;/*!
1
+ /*! Copyright (c) 2018 Infopark AG (https://scrivito.com) */!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=515)}([function(t,e,n){"use strict";var r=n(1),i=n.n(r);function o(t){try{return Object(r.isFunction)(t)?function(t){var e=t._scrivitoPrivateSchema;if(e)return"[class ".concat(e.name,"]");if(t.prototype&&t.prototype.isReactComponent){var n=t.displayName||t.name;return'[class React.Component "'.concat(n,'"]')}return s(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 ".concat(a(t.outerHTML),"]");return a(t)}(t):a(t)}catch(t){return""}}function a(t){var e=JSON.stringify(t);return e?s(e):e}function s(t){return t.length>100?"".concat(t.slice(0,100),"..."):t}var u=n(18),l=n(54);l.struct.strict=!0,l.interface.strict=!0,l.fail=function(t){throw new TypeError(t)};var c,f=[];function d(t){c?f.push(t):setTimeout(t,0)}function p(t){d(function(){throw t})}function h(t,e,n){var i=n.docPermalink;return function(){for(var n,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];try{n=function(t,e){var n=e.length,i=t.length;if(i>n)return"Expected "+n+" arguments, got "+i;var a=Object(r.flatten)(e.map(function(e,n){var r=e[0],i=e[1],a=t[n],s=l.validate(a,i);return s.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===l.Nil)return"Unexpected "+n+".";var r=l.getTypeName(e.expected),i="got "+o(e.actual)+", expected type "+r+".";return"Unexpected value for "+n+": "+i}(r,t)})}));if(a.length>0)return a.join(" ")}(a,e)}catch(t){p(t)}if(n){var c="Visit https://scrivito.com/"+i+" for more information.";throw new u.ArgumentError("Invalid arguments for '"+t+"': "+n+" "+c)}}}var y=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}(),v=function(){function t(){var t=this;this.promise=new at(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 m(t){try{return{errorThrown:!1,result:t()}}catch(t){return{errorThrown:!0,error:t}}}var g=!1;function b(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];window&&window.console&&!g&&(t=window.console).error.apply(t,e)}function w(){return"1.4.0-rc1"}function _(t,e){void 0===e&&(e=window.document);var n=e.createElement("link");n.rel="stylesheet",n.href=t,e.head.appendChild(n)}function k(t,e){void 0===e&&(e=window.document);var n=e.createElement("script");n.src=t,e.head.appendChild(n)}var O=/(_+)(\w)/g,x=/([A-Z])/g,E=/[A-Z]+|\d+/g,C=/^_?(_+[A-Z0-9]|[^_])+$/,S=/[_\s]+/g,j=/[A-Z][a-z]+/g;function T(t){return C.test(t)}function A(t){return t.replace(x,function(t,e){return"_"+e.toLowerCase()})}function N(t){return t.replace(O,function(t,e,n,r){return r?n.toUpperCase()===n?t:""+e.substr(1)+n.toUpperCase():t})}function P(t){var e=N(t);return e.charAt(0).toUpperCase()+e.slice(1)}function R(t){return t.replace(S," ").replace(j,function(t){return" "+t.toLowerCase()}).replace(E,function(t){return" "+t}).trim().replace(/./,function(t){return t.toUpperCase()})}n(113);var L=l.interface({size:l.Number,type:l.String},{name:"Blob",strict:!1}),I=L.extend({name:l.String},{name:"File",strict:!1});function D(t){return"_"===t[0]}function M(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 B(){for(var t=Math.floor(Math.random()*Math.pow(16,8)).toString(16);t.length<8;)t="0"+t;return t}function q(){return B()+B()}var F=!1;function z(t,e,n){return F?t:r.throttle(t,e,n)}function U(t,e){return function(t){if(Array.isArray(t))return t}(t)||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||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var H=-9007199254740991,W=9007199254740991,V=/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/;function K(t){return i.a.isString(t)?t.match(/^-?\d+$/)?tt(t):null:tt(t)}function Q(t){return function(t){return i.a.isNumber(t)&&i.a.isFinite(t)&&Math.floor(t)===t}(t)&&H<=t&&t<=W}function $(t){return i.a.isNumber(t)&&i.a.isFinite(t)}function G(t){if(!i.a.isString(t))return null;if(!X(t))throw new u.InternalError('The value is not a valid ISO date time: "'.concat(t,'"'));return Y(t)}function Y(t){if(!t)return null;var e=U(t.match(V),7),n=(e[0],e[1]),r=e[2],i=e[3],o=e[4],a=e[5],s=e[6];return new Date(Date.UTC(n,r-1,i,o,a,s))}function Z(t){var e="".concat(t.getUTCFullYear()).concat(J(t.getUTCMonth()+1)),n="".concat(J(t.getUTCDate())).concat(J(t.getUTCHours())),r="".concat(J(t.getUTCMinutes())).concat(J(t.getUTCSeconds()));return"".concat(e).concat(n).concat(r)}function X(t){return i.a.isString(t)&&t.match(/^\d{14}$/)}function J(t){return t<10?"0".concat(t):t}function tt(t){var e=parseInt(t,10);return 0===e?0:Q(e)?e:null}function et(t){return nt(1e3*t)}function nt(t){return new at(function(e){setTimeout(e,t)})}function rt(t,e){return it(t)&&it(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 rt(t[0],t[1])}):t&&e?t.valueOf()===e.valueOf():t===e}function it(t){return!!t&&"function"==typeof t.equals}function ot(t,e){return t.then(function(t){return e(),t},function(t){throw e(),t})}var at,st=n(122);at="undefined"!=typeof Promise?Promise:n.n(st).a;var ut=function(){function t(t,e){var n=(void 0===e?{}:e).batchSize;this.mget=t,this.batchSize=n||100,this.deferreds={}}return t.prototype.retrieve=function(t){var e=this;if(Object(r.isEmpty)(this.deferreds)&&d(function(){return e.performRetrieval()}),!this.deferreds[t]){var n=new v;this.deferreds[t]=n}return this.deferreds[t].promise},t.prototype.reset=function(){this.deferreds={}},t.prototype.performRetrieval=function(){var t=this,e=Object(r.keys)(this.deferreds).slice(0,this.batchSize);if(0!==e.length){var n={};e.forEach(function(e){n[e]=t.deferreds[e],delete t.deferreds[e]}),this.mget(e).then(function(r){e.forEach(function(e,i){var o=n[e],a=r[i];i<r.length?o.resolve(a):t.retrieve(e).then(o.resolve,o.reject)})},function(t){Object(r.each)(n,function(e){return e.reject(t)})}),this.performRetrieval()}},t}();n.d(e,"u",function(){return h}),n.d(e,"f",function(){return y}),n.d(e,"g",function(){return v}),n.d(e,"a",function(){return u.AccessDeniedError}),n.d(e,"b",function(){return u.ArgumentError}),n.d(e,"e",function(){return u.ClientError}),n.d(e,"i",function(){return u.InMemoryTenantUnsupportedOperationError}),n.d(e,"j",function(){return u.InternalError}),n.d(e,"k",function(){return u.InterpolationError}),n.d(e,"l",function(){return u.MissingAuthError}),n.d(e,"m",function(){return u.RequestFailedError}),n.d(e,"n",function(){return u.ResourceNotFoundError}),n.d(e,"o",function(){return u.ScrivitoError}),n.d(e,"q",function(){return u.TranslationError}),n.d(e,"r",function(){return u.UnauthorizedError}),n.d(e,"T",function(){return p}),n.d(e,"J",function(){return d}),n.d(e,"L",function(){return o}),n.d(e,"R",function(){return l}),n.d(e,"P",function(){return m}),n.d(e,"I",function(){return b}),n.d(e,"A",function(){return w}),n.d(e,"G",function(){return _}),n.d(e,"H",function(){return k}),n.d(e,"t",function(){return N}),n.d(e,"v",function(){return P}),n.d(e,"Q",function(){return R}),n.d(e,"U",function(){return A}),n.d(e,"B",function(){return T}),n.d(e,"h",function(){return I}),n.d(e,"d",function(){return L}),n.d(e,"C",function(){return D}),n.d(e,"s",function(){return M}),n.d(e,"O",function(){return q}),n.d(e,"N",function(){return B}),n.d(e,"S",function(){return z}),n.d(e,"K",function(){return Y}),n.d(e,"w",function(){return G}),n.d(e,"x",function(){return K}),n.d(e,"E",function(){return $}),n.d(e,"z",function(){return Z}),n.d(e,"D",function(){return X}),n.d(e,"F",function(){return Q}),n.d(e,"V",function(){return et}),n.d(e,"W",function(){return nt}),n.d(e,"y",function(){return rt}),n.d(e,"M",function(){return ot}),n.d(e,"p",function(){return at}),n.d(e,"c",function(){return ut})},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,y=Object.create,v=function(){},m=function(t){return t instanceof m?t:this instanceof m?void(this._wrapped=t):new m(t)};void 0===e||e.nodeType?i._=m:(void 0!==n&&!n.nodeType&&n.exports&&(e=n.exports=m),e._=m),m.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 m.iteratee!==g?m.iteratee(t,e):null==t?m.identity:m.isFunction(t)?b(t,e,n):m.isObject(t)&&!m.isArray(t)?m.matcher(t):m.property(t)};m.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<n;i++)r[i]=arguments[i+e];switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r);case 2:return t.call(this,arguments[0],arguments[1],r)}var o=Array(e+1);for(i=0;i<e;i++)o[i]=arguments[i];return o[e]=r,t.apply(this,o)}},k=function(t){if(!m.isObject(t))return{};if(y)return y(t);v.prototype=t;var e=new v;return v.prototype=null,e},O=function(t){return function(e){return null==e?void 0:e[t]}},x=function(t,e){return null!=t&&d.call(t,e)},E=function(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e[r]]}return n?t:void 0},C=Math.pow(2,53)-1,S=O("length"),j=function(t){var e=S(t);return"number"==typeof e&&e>=0&&e<=C};m.each=m.forEach=function(t,e,n){var r,i;if(e=b(e,n),j(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var o=m.keys(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t},m.map=m.collect=function(t,e,n){e=w(e,n);for(var r=!j(t)&&m.keys(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=e(t[s],s,t)}return o};var T=function(t){return function(e,n,r,i){var o=arguments.length>=3;return function(e,n,r,i){var o=!j(e)&&m.keys(e),a=(o||e).length,s=t>0?0:a-1;for(i||(r=e[o?o[s]:s],s+=t);s>=0&&s<a;s+=t){var u=o?o[s]:s;r=n(r,e[u],u,e)}return r}(e,b(n,i,4),r,o)}};m.reduce=m.foldl=m.inject=T(1),m.reduceRight=m.foldr=T(-1),m.find=m.detect=function(t,e,n){var r=(j(t)?m.findIndex:m.findKey)(t,e,n);if(void 0!==r&&-1!==r)return t[r]},m.filter=m.select=function(t,e,n){var r=[];return e=w(e,n),m.each(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r},m.reject=function(t,e,n){return m.filter(t,m.negate(w(e)),n)},m.every=m.all=function(t,e,n){e=w(e,n);for(var r=!j(t)&&m.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0},m.some=m.any=function(t,e,n){e=w(e,n);for(var r=!j(t)&&m.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1},m.contains=m.includes=m.include=function(t,e,n,r){return j(t)||(t=m.values(t)),("number"!=typeof n||r)&&(n=0),m.indexOf(t,e,n)>=0},m.invoke=_(function(t,e,n){var r,i;return m.isFunction(e)?i=e:m.isArray(e)&&(r=e.slice(0,-1),e=e[e.length-1]),m.map(t,function(t){var o=i;if(!o){if(r&&r.length&&(t=E(t,r)),null==t)return;o=t[e]}return null==o?o:o.apply(t,n)})}),m.pluck=function(t,e){return m.map(t,m.property(e))},m.where=function(t,e){return m.filter(t,m.matcher(e))},m.findWhere=function(t,e){return m.find(t,m.matcher(e))},m.max=function(t,e,n){var r,i,o=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=j(t)?t:m.values(t)).length;s<u;s++)null!=(r=t[s])&&r>o&&(o=r);else e=w(e,n),m.each(t,function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},m.min=function(t,e,n){var r,i,o=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=j(t)?t:m.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else e=w(e,n),m.each(t,function(t,n,r){((i=e(t,n,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},m.shuffle=function(t){return m.sample(t,1/0)},m.sample=function(t,e,n){if(null==e||n)return j(t)||(t=m.values(t)),t[m.random(t.length-1)];var r=j(t)?m.clone(t):m.values(t),i=S(r);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=m.random(a,o),u=r[a];r[a]=r[s],r[s]=u}return r.slice(0,e)},m.sortBy=function(t,e,n){var r=0;return e=w(e,n),m.pluck(m.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),m.each(n,function(e,i){var a=r(e,i,n);t(o,e,a)}),o}};m.groupBy=A(function(t,e,n){x(t,n)?t[n].push(e):t[n]=[e]}),m.indexBy=A(function(t,e,n){t[n]=e}),m.countBy=A(function(t,e,n){x(t,n)?t[n]++:t[n]=1});var N=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;m.toArray=function(t){return t?m.isArray(t)?c.call(t):m.isString(t)?t.match(N):j(t)?m.map(t,m.identity):m.values(t):[]},m.size=function(t){return null==t?0:j(t)?t.length:m.keys(t).length},m.partition=A(function(t,e,n){t[n?0:1].push(e)},!0),m.first=m.head=m.take=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[0]:m.initial(t,t.length-e)},m.initial=function(t,e,n){return c.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},m.last=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[t.length-1]:m.rest(t,Math.max(0,t.length-e))},m.rest=m.tail=m.drop=function(t,e,n){return c.call(t,null==e||n?1:e)},m.compact=function(t){return m.filter(t,Boolean)};var P=function(t,e,n,r){for(var i=(r=r||[]).length,o=0,a=S(t);o<a;o++){var s=t[o];if(j(s)&&(m.isArray(s)||m.isArguments(s)))if(e)for(var u=0,l=s.length;u<l;)r[i++]=s[u++];else P(s,e,n,r),i=r.length;else n||(r[i++]=s)}return r};m.flatten=function(t,e){return P(t,e,!1)},m.without=_(function(t,e){return m.difference(t,e)}),m.uniq=m.unique=function(t,e,n,r){m.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=w(n,r));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],l=n?n(u,a,t):u;e&&!n?(a&&o===l||i.push(u),o=l):n?m.contains(o,l)||(o.push(l),i.push(u)):m.contains(i,u)||i.push(u)}return i},m.union=_(function(t){return m.uniq(P(t,!0,!0))}),m.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=S(t);r<i;r++){var o=t[r];if(!m.contains(e,o)){var a;for(a=1;a<n&&m.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},m.difference=_(function(t,e){return e=P(e,!0,!0),m.filter(t,function(t){return!m.contains(e,t)})}),m.unzip=function(t){for(var e=t&&m.max(t,S).length||0,n=Array(e),r=0;r<e;r++)n[r]=m.pluck(t,r);return n},m.zip=_(m.unzip),m.object=function(t,e){for(var n={},r=0,i=S(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n};var R=function(t){return function(e,n,r){n=w(n,r);for(var i=S(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(n(e[o],o,e))return o;return-1}};m.findIndex=R(1),m.findLastIndex=R(-1),m.sortedIndex=function(t,e,n,r){for(var i=(n=w(n,r,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);n(t[s])<i?o=s+1:a=s}return o};var L=function(t,e,n){return function(r,i,o){var a=0,s=S(r);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[o=n(r,i)]===i?o:-1;if(i!=i)return(o=e(c.call(r,a,s),m.isNaN))>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o<s;o+=t)if(r[o]===i)return o;return-1}};m.indexOf=L(1,m.findIndex,m.sortedIndex),m.lastIndexOf=L(-1,m.findLastIndex),m.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(r),o=0;o<r;o++,t+=n)i[o]=t;return i},m.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 I=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=k(t.prototype),a=t.apply(o,i);return m.isObject(a)?a:o};m.bind=_(function(t,e,n){if(!m.isFunction(t))throw new TypeError("Bind must be called on a function");var r=_(function(i){return I(t,r,e,this,n.concat(i))});return r}),m.partial=_(function(t,e){var n=m.partial.placeholder,r=function(){for(var i=0,o=e.length,a=Array(o),s=0;s<o;s++)a[s]=e[s]===n?arguments[i++]:e[s];for(;i<arguments.length;)a.push(arguments[i++]);return I(t,r,this,this,a)};return r}),m.partial.placeholder=m,m.bindAll=_(function(t,e){var n=(e=P(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=e[n];t[r]=m.bind(t[r],t)}}),m.memoize=function(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return x(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n},m.delay=_(function(t,e,n){return setTimeout(function(){return t.apply(null,n)},e)}),m.defer=m.partial(m.delay,m,1),m.throttle=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:m.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=m.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),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(r),s=0,r=i=o=null},l},m.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(r),n){var s=!r;r=setTimeout(o,e),s&&(i=t.apply(this,a))}else r=m.delay(o,e,this,a);return i});return a.cancel=function(){clearTimeout(r),r=null},a},m.wrap=function(t,e){return m.partial(e,t)},m.negate=function(t){return function(){return!t.apply(this,arguments)}},m.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},m.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},m.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},m.once=m.partial(m.before,2),m.restArguments=_;var D=!{toString:null}.propertyIsEnumerable("toString"),M=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(t,e){var n=M.length,r=t.constructor,i=m.isFunction(r)&&r.prototype||s,o="constructor";for(x(t,o)&&!m.contains(e,o)&&e.push(o);n--;)(o=M[n])in t&&t[o]!==i[o]&&!m.contains(e,o)&&e.push(o)};m.keys=function(t){if(!m.isObject(t))return[];if(h)return h(t);var e=[];for(var n in t)x(t,n)&&e.push(n);return D&&B(t,e),e},m.allKeys=function(t){if(!m.isObject(t))return[];var e=[];for(var n in t)e.push(n);return D&&B(t,e),e},m.values=function(t){for(var e=m.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},m.mapObject=function(t,e,n){e=w(e,n);for(var r=m.keys(t),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=e(t[s],s,t)}return o},m.pairs=function(t){for(var e=m.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},m.invert=function(t){for(var e={},n=m.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},m.functions=m.methods=function(t){var e=[];for(var n in t)m.isFunction(t[n])&&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[i],a=t(o),s=a.length,u=0;u<s;u++){var l=a[u];e&&void 0!==n[l]||(n[l]=o[l])}return n}};m.extend=q(m.allKeys),m.extendOwn=m.assign=q(m.keys),m.findKey=function(t,e,n){e=w(e,n);for(var r,i=m.keys(t),o=0,a=i.length;o<a;o++)if(e(t[r=i[o]],r,t))return r};var F,z,U=function(t,e,n){return e in n};m.pick=_(function(t,e){var n={},r=e[0];if(null==t)return n;m.isFunction(r)?(e.length>1&&(r=b(r,e[1])),e=m.allKeys(t)):(r=U,e=P(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];r(s,a,t)&&(n[a]=s)}return n}),m.omit=_(function(t,e){var n,r=e[0];return m.isFunction(r)?(r=m.negate(r),e.length>1&&(n=e[1])):(e=m.map(P(e,!1,!1),String),r=function(t,n){return!m.contains(e,n)}),m.pick(t,r,n)}),m.defaults=q(m.allKeys,!0),m.create=function(t,e){var n=k(t);return e&&m.extendOwn(n,e),n},m.clone=function(t){return m.isObject(t)?m.isArray(t)?t.slice():m.extend({},t):t},m.tap=function(t,e){return e(t),t},m.isMatch=function(t,e){var n=m.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n[o];if(e[a]!==i[a]||!(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 m&&(t=t._wrapped),e instanceof m&&(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&&!(m.isFunction(a)&&a instanceof a&&m.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],r=r||[];for(var l=n.length;l--;)if(n[l]===t)return r[l]===e;if(n.push(t),r.push(e),o){if((l=t.length)!==e.length)return!1;for(;l--;)if(!F(t[l],e[l],n,r))return!1}else{var c,d=m.keys(t);if(l=d.length,m.keys(e).length!==l)return!1;for(;l--;)if(c=d[l],!x(e,c)||!F(t[c],e[c],n,r))return!1}return n.pop(),r.pop(),!0},m.isEqual=function(t,e){return F(t,e)},m.isEmpty=function(t){return null==t||(j(t)&&(m.isArray(t)||m.isString(t)||m.isArguments(t))?0===t.length:0===m.keys(t).length)},m.isElement=function(t){return!(!t||1!==t.nodeType)},m.isArray=p||function(t){return"[object Array]"===f.call(t)},m.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},m.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){m["is"+t]=function(e){return f.call(e)==="[object "+t+"]"}}),m.isArguments(arguments)||(m.isArguments=function(t){return x(t,"callee")});var H=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof H&&(m.isFunction=function(t){return"function"==typeof t||!1}),m.isFinite=function(t){return!m.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},m.isNaN=function(t){return m.isNumber(t)&&isNaN(t)},m.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===f.call(t)},m.isNull=function(t){return null===t},m.isUndefined=function(t){return void 0===t},m.has=function(t,e){if(!m.isArray(e))return x(t,e);for(var n=e.length,r=0;r<n;r++){var i=e[r];if(null==t||!d.call(t,i))return!1;t=t[i]}return!!n},m.noConflict=function(){return i._=o,this},m.identity=function(t){return t},m.constant=function(t){return function(){return t}},m.noop=function(){},m.property=function(t){return m.isArray(t)?function(e){return E(e,t)}:O(t)},m.propertyOf=function(t){return null==t?function(){}:function(e){return m.isArray(e)?E(t,e):t[e]}},m.matcher=m.matches=function(t){return t=m.extendOwn({},t),function(e){return m.isMatch(e,t)}},m.times=function(t,e,n){var r=Array(Math.max(0,t));e=b(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r},m.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},m.now=Date.now||function(){return(new Date).getTime()};var W={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},V=m.invert(W),K=function(t){var e=function(e){return t[e]},n="(?:"+m.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}};m.escape=K(W),m.unescape=K(V),m.result=function(t,e,n){m.isArray(e)||(e=[e]);var r=e.length;if(!r)return m.isFunction(n)?n.call(t):n;for(var i=0;i<r;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=n,i=r),t=m.isFunction(o)?o.call(t):o}return t};var Q=0;m.uniqueId=function(t){var e=++Q+"";return t?t+e:e},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,G={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Y=/\\|'|\r|\n|\u2028|\u2029/g,Z=function(t){return"\\"+G[t]};m.template=function(t,e,n){!e&&n&&(e=n),e=m.defaults({},e,m.templateSettings);var r,i=RegExp([(e.escape||$).source,(e.interpolate||$).source,(e.evaluate||$).source].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,m)},u=e.variable||"obj";return s.source="function("+u+"){\n"+a+"}",s},m.chain=function(t){var e=m(t);return e._chain=!0,e};var X=function(t,e){return t._chain?m(e).chain():e};m.mixin=function(t){return m.each(m.functions(t),function(e){var n=m[e]=t[e];m.prototype[e]=function(){var t=[this._wrapped];return l.apply(t,arguments),X(this,n.apply(m,t))}}),m},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=a[t];m.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],X(this,n)}}),m.each(["concat","join","slice"],function(t){var e=a[t];m.prototype[t]=function(){return X(this,e.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return m}.apply(e,[]))||(n.exports=r)}()}).call(this,n(48),n(68)(t))},function(t,e,n){"use strict";t.exports=n(182)},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"deserialize",function(){return Y});var i=n(40),o=n(1),a=n.n(o),s=n(91);var u=n(0),l=n(13);function c(t){return l.parseQuery(t)}var f=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},d=function(){function t(t){this.attributes=f({},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?Ct.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!!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(e,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){var n=f({},this.attributes,e);if(e.objId&&e.url)throw new u.b('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}(),p=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(o.compact)(this._includedObjIds.map(function(t){return Ct.get(t)}))},t}(),h=n(11);function y(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var v=["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan","linksTo","refersTo"],m=["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(y(e,t))this._query=this._query.concat(e._query);else{if(void 0===n)throw new u.b("Missing operator to search with");if(void 0===r)throw new u.b('Missing value to search (specify "null" for missing)');var a=_(e,n,r);i&&(!function(t){if(!Object(o.contains)(g,t))throw new u.b('Boosting operator "'+t+'" is invalid.')}(n),a.boost=function(t){var e={};return Object(o.each)(t,function(t,n){var r=O(n);e[r]=t}),e}(i)),this._query.push(a)}return this},t.prototype.andNot=function(t,e,n){var r=_(t,e,n);return function(t){if(!Object(o.contains)(m,t))throw new u.b('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=O(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){var e=this._batchSize;try{return this._batchSize=void 0===t?1e3:t,Object(u.s)(this,t)}finally{this._batchSize=e}},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 Ct(r)}}}},t.prototype.getObjDataQuery=function(){return Object(h.j)(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=o.without.apply(void 0,[Object.keys(t)].concat(x));if(e.length)throw new u.b("Invalid facet options: "+Object(u.L)(e)+". Valid options: "+x);return t}(e),new h.a(O(t),n,this._query).result().map(function(t){return new p(t)})},t.prototype.store=function(t,e){Object(h.p)(this.params(),t,e)},t.prototype.params=function(){return Object(o.omit)({query:this._query,offset:this._offset,sortBy:this._sortBy,sortDirection:this._sortDirection,includeDeleted:this._includeDeleted,batchSize:this._batchSize},o.isUndefined)},t}();function _(t,e,n){return{field:function(t){if(Object(o.isArray)(t))return Object(o.map)(t,O);return O(t)}(t),operator:function(t){if(!function(t){return Object(o.contains)(v,t)}(t))throw new u.b('Operator "'+t+'" is invalid.');return Object(u.U)(t)}(e),value:function(t){if(Object(o.isArray)(t))return Object(o.map)(t,k);return k(t)}(n)}}function k(t){return Object(o.isDate)(t)?Object(u.z)(t):y(t,Ct)?t.id():t}function O(t){if(!Object(u.B)(t))throw new u.b('Attribute name "'+t+'" is not camel case.');return Object(u.U)(t)}var x=["limit","includeObjs"];function E(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var C=u.R.irreducible("Obj",function(t){return N(t,Ct)}),S=u.R.irreducible("Widget",function(t){return N(t,ft)}),j=u.R.irreducible("Link",function(t){return N(t,d)}),T=u.R.irreducible("ObjSearch",function(t){return N(t,w)}),A=u.R.irreducible("Binary",function(t){return E(t,V)});function N(t,e){return!!t&&E(t._scrivitoPrivateContent,e)}var P,R=n(6);function L(t){P=t}var I=function(){function t(t,e){void 0===e&&(e={});var n=e.filename;if(this.contentType=e.contentType,function(t){return!!t.idToCopy}(t))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){return D(t),Object(R.f)("Changing CMS content"),this.intoId(t._scrivitoPrivateContent.id())},t.prototype.intoId=function(t){if(!P)throw new u.j("No binaryHandler defined!");var e;if(this.idToCopy)e=P.copyBinary(this.idToCopy,t,this.filename,this.contentType);else{if(!this.source)throw new u.j("Source is not defined!");e=P.uploadBinary(t,this.source,this.filename,this.contentType)}return e.then(function(t){var e=t.id;return new V(e,!1)})},t}(),D=Object(u.u)("FutureBinary#into",[["target",C]],{docPermalink:"js-sdk/FutureBinary-into"});var M,B=I,q=n(5),F=n(8);!function(t){t.Date="date",t.Number="number",t.String="string",t.Stringlist="stringlist"}(M||(M={}));var z=new q.a({name:"metadata",state:function(){return R.d.subState("metadataCollection")},loader:function(t){return F.d.retrieveBinaryMetadata(t)}}),U=function(){function t(t){this.binaryId=t,t&&(this.loadableData=z.get(t))}return t.store=function(t,e){H(e),z.get(t).set(e)},t.prototype.get=function(t){Object(h.c)("MetadataCollection#get"),function(t){if(!Object(u.B)(t))throw new u.b('Metadata key "'+t+'" is not in camel case.')}(t);var e=this.getData();if(e){var n=Object(u.U)(t);return e.hasOwnProperty(n)?e[n]:null}return null},t.prototype.keys=function(){var t=this.getData();return t?Object(o.map)(Object(o.keys)(t),u.t):[]},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 H(t)}},t}();function H(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||void 0===l)throw new u.j('Invalid backend value "null" or "undefined" for metadata "'+o+'"');var c=void 0;if(s===M.Date){if("string"!=typeof l)throw new u.j('Invalid non-string backend value for a date metadata "'+o+'"');c=Object(u.w)(l)}else c=l;n[o]=c}return n}var W=new q.a({name:"binary",state:function(){return R.d.subState("binary")},loader:function(t){var e=t[0],n=t[1];return F.d.retrieveBinaryUrls(e,n)}}),V=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=W.get([t,this._transformation])}return t.upload=function(t,e){if($(t,e),!(u.h.is(t)||e&&e.filename))throw new u.b("Expected a filename to be passed with Blob as the source.");return new B({source:t},e)},t.store=function(e,n,r){var i=n.transformation;W.get([e,i]).set(r);var o=new t(e).raw();return i?o.optimizeFor(i):o},t.storeMetadata=function(t,e){U.store(t,e)},t.prototype.id=function(){return this._id},t.prototype.copy=function(t){return new B({idToCopy:this._id},t)},t.prototype.isPrivate=function(){return!this._isPublic},t.prototype.optimizeFor=function(e){return new t(this._id,this._isPublic,Object(o.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(o.isEmpty)(this._transformation)},t.prototype.isRaw=function(){return!this.isTransformed()},t.prototype.url=function(){return Object(h.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.j("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 U(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 function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(e,t)&&e.id()===this.id()&&e.isPrivate()===this.isPrivate()&&Object(o.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.o('"'+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}(),K=u.R.struct({contentType:u.R.maybe(u.R.String),filename:u.R.maybe(u.R.String)}),Q=u.R.refinement(u.R.Object,function(t){return u.d.is(t)||u.h.is(t)},"Blob or File"),$=Object(u.u)("Binary.upload",[["source",Q],["options",u.R.maybe(K)]],{docPermalink:"js-sdk/Binary-static-upload"});function G(t,e){return function(t){if(Array.isArray(t))return t}(t)||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||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Y(t,e,n,r){var i=G(e,2),o=i[0],s=i[1];switch(n){case"binary":return function(t,e){if("binary"===t&&e){var n=e.id,r="published"===Object(F.e)();return new V(n,r)}return null}(o,s);case"date":return function(t,e){if("date"!==t)return null;return Object(u.w)(e)}(o,s);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}}(o,s);case"enum":return function(t,e,n){var r=n.values;if("string"===t&&a.a.contains(r,e))return e;return null}(o,s,r);case"html":return function(t,e){if(a.a.contains(["html","string"],t)&&a.a.isString(e))return e;return""}(o,s);case"integer":return function(t,e){switch(t){case"string":case"number":return Object(u.x)(e);default:return null}}(o,s);case"link":return function(t,e){if("link"!==t||!a.a.isObject(e))return null;return X(e)}(o,s);case"linklist":return function(t,e){if(!a.a.isArray(e))return[];return a.a.compact(e.map(X))}(0,s);case"multienum":return function(t,e,n){var r=n.values;if("stringlist"!==t||!Array.isArray(e))return[];return a.a.intersection(e,r)}(o,s,r);case"reference":return function(t,e){if("reference"===t&&e)return J(e);return null}(o,s);case"referencelist":return function(t,e){if("referencelist"!==t)return[];if(!e)return[];var n=e.map(J);return a.a.compact(n)}(o,s);case"string":return function(t,e){if(a.a.contains(["html","string"],t)&&a.a.isString(e))return e;return""}(o,s);case"stringlist":return function(t,e){if("stringlist"!==t||!Array.isArray(e))return[];return e}(o,s);case"widgetlist":return function(t,e,n){if("widgetlist"!==t)return[];return a.a.map(e,function(t){return n.widget(t)})}(o,s,t);default:return null}}function Z(t){var e=parseFloat(t);return Object(u.E)(e)?e:null}function X(t){var e=a.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 d(e);return n.isBroken()?null:n}function J(t){var e=Ct.get(t);return e||null}var tt=function(){function t(){}return t.prototype.get=function(t,e){if(!Object(u.B)(t))throw new u.b("Attribute names have to be in camel case.");var n=Object(u.U)(t),i=this.getAttributeData(n);return i&&o.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 o.mapObject(t,function(t,n){if(function(t){return o.isArray(t)&&"widgetlist"===t[0]}(t)){var r=Object(u.t)(n);return["widgetlist",o.invoke(e.get(r,["widgetlist"]),"serializeAttributes")]}return t})},t.prototype.persistWidgets=function(t,e){o.each(e,function(e){if(function(t){if(!t)return!1;if(!o.isArray(t))return!1;if(t.length<2)return!1;var e=t[1];return o.isArray(e)&&e.length>0&&"widgetlist"===e[0]}(e)){var n=e[0];if(n){var r=o.isArray(n)?n:[n];o.each(r,function(e){e.isPersisted()||e.persistInObj(t)})}}})},t}();function et(t){return o.mapObject(t,function(t,e){if(Object(u.C)(e))return o.isArray(t)?t:[t];if(!o.isArray(t))throw new u.j("Value for "+e+" should be a tuple: [value, typeInfo]");var n=t[0],r=t[1];return"string"==typeof r?[n,[r]]:[n,r]})}function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(t,e){return function(t){if(Array.isArray(t))return t}(t)||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||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function it(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function ot(t,e){return!e||"object"!==nt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function at(t,e,n){return(at="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=st(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function st(t){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lt(t,e,n){return e&&ut(t.prototype,e),n&&ut(t,n),t}function ct(t,e){return(ct=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ft=function(t){function e(t){var n;return function(t,e){if(!it(t,e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=ot(this,st(e).call(this)))._attributesToBeSaved=et(t),function(t){if(!t)throw new u.b('Please provide a widget class as the "_objClass" property.')}(t._objClass),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ct(t,e)}(e,tt),lt(e,null,[{key:"build",value:function(t,n){var r=Object.create(e.prototype);return r._obj=n,r._id=t,r}},{key:"newWithSerializedAttributes",value:function(t){var n={},r={};a.a.each(t,function(t,i){if("_obj_class"!==i)if(a.a.isArray(t)&&"widgetlist"===a.a.first(t)){var o=a.a.map(a.a.last(t),function(t){return e.newWithSerializedAttributes(t)}),s=Object(u.t)(i);n[s]=[o,["widgetlist"]]}else r[i]=t;else n._objClass=[t]});var i=new e(n);return i.preserializedAttributes=r,i}}]),lt(e,[{key:"id",value:function(){return this._failIfNotPersisted(),this._id}},{key:"objClass",value:function(){return this.isPersisted()?this.getAttributeData("_obj_class"):this._attributesToBeSaved._objClass[0]}},{key:"obj",value:function(){return this._failIfNotPersisted(),this._obj}},{key:"widget",value:function(t){return this.obj().widget(t)}},{key:"update",value:function(t){var e=this,n=et(t);Object(R.m)(function(){e.persistWidgets(e.obj(),n);var t=mt(n);e._updateSelf(t)})}},{key:"insertBefore",value:function(t){t.obj().insertWidget(this,{before:t})}},{key:"insertAfter",value:function(t){t.obj().insertWidget(this,{after:t})}},{key:"remove",value:function(){this.obj().removeWidget(this)}},{key:"copy",value:function(){return this.isPersisted()?this._copyPersisted():this._copyUnpersisted()}},{key:"persistInObj",value:function(t){this.persistWidgets(t,this._attributesToBeSaved);var e=mt(this._attributesToBeSaved);a.a.extend(e,this.preserializedAttributes||{}),this._obj=t,this._id=t.generateWidgetId(),this._updateSelf(e),this._executeDidPersistCallback()}},{key:"isPersisted",value:function(){return!!this._obj}},{key:"onDidPersist",value:function(t){if(this.isPersisted())throw new u.o('Cannot call "onDidPersist" of an already persisted widget');this._onDidPersistCallback=t}},{key:"hasOnDidPersistCallback",value:function(){return!!this._onDidPersistCallback}},{key:"finishSaving",value:function(){return this.obj().finishSaving()}},{key:"equals",value:function(t){return!!it(t,e)&&(this.id()===t.id()&&this.obj().id()===t.obj().id())}},{key:"containingField",value:function(){return this.obj().fieldContainingWidget(this)}},{key:"toPrettyPrint",value:function(){return"[object ".concat(this.objClass(),' id="').concat(this.id(),'" objId="').concat(this.obj().id(),'"]')}},{key:"getAttributeData",value:function(t){return this.obj().getWidgetAttribute(this.id(),t)}},{key:"getData",value:function(){return this.obj().getWidgetData(this.id())}},{key:"serializeAttributes",value:function(){return at(st(e.prototype),"serializeAttributes",this).call(this,this.getData())}},{key:"_failIfNotPersisted",value:function(){if(!this.isPersisted())throw new u.o("Can not access a new widget before it has been saved.")}},{key:"_updateSelf",value:function(t){var e={_widgetPool:[function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},this.id(),t)]};this.obj().update(e)}},{key:"_executeDidPersistCallback",value:function(){this._onDidPersistCallback&&(this._onDidPersistCallback(this),delete this._onDidPersistCallback)}},{key:"_copyPersisted",value:function(){var t=this.serializeAttributes();return e.newWithSerializedAttributes(t)}},{key:"_copyUnpersisted",value:function(){var t=new e(a.a.mapObject(this._attributesToBeSaved,function(t){var e=rt(t,2),n=e[0],r=e[1];return r&&"widgetlist"===r[0]?[a.a.invoke(n,"copy"),r]:[n,r]}));return this._onDidPersistCallback&&t.onDidPersist(this._onDidPersistCallback),t}},{key:"attributesToBeSaved",get:function(){return this._attributesToBeSaved}}]),e}();function dt(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function pt(t){if(dt(t,d))return!0;if(!o.isObject(t))return!1;var e=o.without(o.keys(t),"hash","obj_id","query","rel","target","title","url");return o.isEmpty(e)}function ht(t){var e=dt(t,d)?function(t){return{rel:t.rel()||void 0,query:t.query(),target:t.target(),title:t.title(),url:t.url(),obj_id:t.objId(),fragment:t.hash()}}(t):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 e.rel||delete e.rel,e}function yt(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function vt(t,e){return function(t){if(Array.isArray(t))return t}(t)||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||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function mt(t){var e={};return a.a.each(t,function(t,n){var r=vt(t,2),i=r[0],o=r[1],s=function(t){if(!Object(u.B)(t))throw new u.b("Attribute names have to be in camel case.");return Object(u.U)(t)}(n);if(Object(u.C)(s))e[s]=i;else{var l=vt(o,2),c=l[0],f=l[1];e[s]=[function(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.b('Attribute "'.concat(e,'" is of unsupported type "').concat(t,'".'))}}(c,n),function(t){if((a.a.isString(t)||a.a.isArray(t))&&a.a.isEmpty(t))return null;return t}(function(t,e,n,r){if(null===n)return n;switch(t){case"binary":return function(t,e){if(yt(t,V))return{id:t.id()};gt(t,e,"A Binary.")}(n,r);case"date":return function(t,e){if(a.a.isDate(t))return Object(u.z)(t);if(Object(u.D)(t))return t;gt(t,e,"A Date.")}(n,r);case"enum":return function(t,e,n){var r=t.values;if(a.a.contains(r,e))return e;var i='Valid attribute values are contained in its "values" array ['.concat(r,"].");gt(e,n,i)}(e,n,r);case"float":return function(t,e){if(Object(u.E)(t))return t;var n=t;a.a.isNumber(t)&&(n=String(t));gt(n,e,"A Number, that is #isFinite().")}(n,r);case"html":return function(t,e){if(a.a.isString(t))return t;gt(t,e,"A String.")}(n,r);case"integer":return function(t,e){if(Object(u.F)(t))return t;gt(t,e,"A Number, that is #isSafeInteger().")}(n,r);case"link":return function(t,e){if(pt(t))return ht(t);gt(t,e,"A Link instance.")}(n,r);case"linklist":return function(t,e){if(a.a.isArray(t)&&a.a.every(t,pt))return a.a.map(t,ht);gt(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 ".concat(Object(u.L)(r),".");a.a.isArray(e)&&a.a.every(e,a.a.isString)||gt(e,n,i);var o=a.a.difference(e,r);if(o.length){var s="".concat(i," Forbidden values: ").concat(Object(u.L)(o),".");gt(e,n,s)}return e}(e,n,r);case"reference":return function(t,e){if(wt(t))return bt(t);gt(t,e,"A BasicObj or a String ID.")}(n,r);case"referencelist":return function(t,e){if(function(t){return a.a.isArray(t)&&a.a.every(t,function(t){return wt(t)})}(t))return a.a.map(t,bt);gt(t,e,"An array with BasicObjs or String IDs.")}(n,r);case"string":return function(t,e){if(_t(t))return t.toString();gt(t,e,"A String.")}(n,r);case"stringlist":return function(t,e){if(a.a.isArray(t)&&a.a.every(t,function(t){return _t(t)}))return a.a.invoke(t,"toString");gt(t,e,"An array of strings.")}(n,r);case"widgetlist":return function t(e,n){if(yt(e,ft))return t([e],n);if(a.a.isArray(e)&&a.a.every(e,function(t){return yt(t,ft)}))return a.a.invoke(e,"id");gt(e,n,"An array of BasicWidget instances.")}(n,r);default:throw new u.j('serializeAttributeValue is not implemented for "'.concat(t,'".'))}}(c,f,i,n))]}}),e}function gt(t,e,n){throw new u.b("Unexpected value ".concat(Object(u.L)(t)," for")+' attribute "'.concat(e,'". Expected: ').concat(n))}function bt(t){return yt(t,Ct)?t.id():t}function wt(t){return a.a.isString(t)||yt(t,Ct)}function _t(t){return a.a.isString(t)||a.a.isNumber(t)}function kt(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var Ot,xt=function(){var t=Object.setPrototypeOf||kt({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),Et=function(t){function e(e){var n=t.call(this)||this;return n.objData=e,n}return xt(e,t),e.get=function(t){var e=this.getIncludingDeleted(t);return!e||e.isDeleted()?null:e},e.getIncludingDeleted=function(t){var n=Object(h.i)(t);if(!n)return null;var r=new e(n);return r.isFinallyDeleted()?null:r},e.create=function(t){var e=et(t);!function(t){if(!t)throw new u.b('Please provide an obj class as the "_objClass" property.')}(e._objClass),e._id||(e._id=[this.generateId()]);var n={_id:e._id,_obj_class:e._objClass};return this.createWithSerializedAttributes(o.mapObject(n,function(t){return t[0]}),o.omit(t,"_objClass","_id"))},e.createFromFile=function(t,e){var n=this.create(e);return V.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(o.extend({},n,{_id:r,_path:t+"/"+r}))},e.createWithSerializedAttributes=function(t,n){if(!n){var r=function(t){var e={},n={};o.each(t,function(t,r){if(function(t){return o.isArray(t)&&"widgetlist"===o.first(t)}(t)){var i=o.map(t[1],St),a=Object(u.t)(r);n[a]=[i,["widgetlist"]]}else e[r]=t}),e._id||(e._id=Et.generateId());return[e,n]}(t),i=r[0],a=r[1];return this.createWithSerializedAttributes(i,a)}var s=Object(h.d)(t._id);s.update(t);var l=new e(s);return l.update(n),l},e.generateId=function(){return Object(u.O)()},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.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.K)(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.K)(t):null},e.prototype.lastChangedBy=function(){return this.getAttributeData("_last_changed_by")||null},e.prototype.version=function(){return this.getAttributeData("_version")},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 U(t.id()):new U},e.prototype.children=function(){var t=this.path();return t?jt(t).take():[]},e.prototype.hasChildren=function(){var t=this.path();return!!t&&jt(t).batchSize(0).count()>0},e.prototype.orderedChildren=function(){var t=this.children(),e=this.get("childOrder","referencelist");return o.isArray(e)?o.sortBy(t,function(t){var n=o.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="";return t.split("/").slice(1).forEach(function(t){n=n+"/"+t,e.push(n)}),e}(t).map(function(t){return e.getByPath(t)}):[]},e.prototype.update=function(t){var e=this,n=et(t);Object(R.m)(function(){e.persistWidgets(e,n);var t=mt(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=o.reject(n,function(e){return e.equals(t)});e.update(r)}},e.prototype.copyAsync=function(t){return void 0===t&&(t={}),function(t){if(o.difference(o.keys(t),["_path"]).length)throw new u.b('Currently only "_path" copy option is supported.')}(t),this._copyAttributes().then(function(n){var r=o.extend(n,t),i=e.createWithSerializedAttributes(r);return i.objData.finishSaving().then(function(){return i})})},e.prototype.moveToAsync=function(t){return this.update({_path:[t+"/"+this.id()]}),this.finishSaving()},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!!kt(t,e)&&this.id()===t.id()},e.prototype.widget=function(t){return this.getWidgetAttribute(t,"_obj_class")?ft.build(t,this):null},e.prototype.getWidgetAttribute=function(t,e){return this.objData.getWidgetAttribute(t,e)},e.prototype.widgets=function(){var t=this,e=this.getData();if(!Nt(e))return[];var n=e._widget_pool||{},r=[];return Object.keys(n).forEach(function(e){var n=t.widget(e);n&&r.push(n)}),r},e.prototype.fieldContainingWidget=function(t){var e=t.id(),n=this._widgetPlacementFor(e);if(n){var r=n.container,i=n.attributeName;return new Lt(r,i,["widgetlist"])}},e.prototype.generateWidgetId=function(){for(var t=0;t<10;t++){var e=Object(u.N)();if(!this.widget(e))return e}throw new u.j("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(){return function(t){return"string"!=typeof t?"":s(t)}(this.get("title","string"))},e.prototype.getWidgetData=function(t){return this.objData.getWidget(t)},e.prototype.startLinkResolution=function(){Object(h.k)()||Tt().startLinkResolutionFor(Object(F.e)(),this.id())},e.prototype.finishLinkResolution=function(){return Tt().finishLinkResolutionFor(Object(F.e)(),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 o.each(n,function(e,i){if("_"!==i[0]){if(function(t){return"binary"===t[0]&&!!t[1]}(e)){var o=e[1],a=new B({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(),this.path()&&(n._path=this.parentPath()+"/"+t),u.p.all(r).then(function(t){return o.each(t,function(t){var e=t.name,r={id:t.binary.id()};n[e]=["binary",r]}),n})},e.prototype._widgetPlacementFor=function(t){var e=this.getData();if(Nt(e)){var n=Object(h.f)(e,t);if(n){var r,i=Object(u.t)(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),Ct=Et;function St(t){return ft.newWithSerializedAttributes(t)}function jt(t){return Et.all().and("_parentPath","equals",t)}function Tt(){if(!Ot)throw new Error("No Link Handler");return Ot}function At(t){Ot=t}function Nt(t){return!!t&&Object(F.f)(t)}function Pt(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function Rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Lt=function(){function t(e,n,r){!function(t,e){if(!Pt(t,e))throw new TypeError("Cannot call a class as a function")}(this,t),this._container=e,this._attributeName=n,this._typeInfo=r,this._typeOptions=this._typeInfo[1]||{}}return function(t,e,n){e&&Rt(t.prototype,e),n&&Rt(t,n)}(t,[{key:"get",value:function(){return this._container.get(this.name(),this._typeInfo)}},{key:"update",value:function(t){this._container.update(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},this.name(),[t,this._typeInfo]))}},{key:"container",value:function(){return this._container}},{key:"obj",value:function(){return this.container().obj()}},{key:"name",value:function(){return this._attributeName}},{key:"type",value:function(){return this._typeInfo[0]}},{key:"equals",value:function(e){return!!Pt(e,t)&&(this.container().equals(e.container())&&this.name()===e.name())}},{key:"values",value:function(){return this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have values"),this._sortValuesByLocalization(this._typeOptions.values)}},{key:"titleForValue",value:function(t){this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have localized values");var e=Object(o.findWhere)(this._typeOptions.valuesLocalization,{value:t});return e&&e.title||t}},{key:"getDiff",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId;return Object(h.h)(Object(F.e)(),e,n,r)}},{key:"toString",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId,i="<BasicField name=".concat(e," objId=").concat(n);return i+=r?" widgetId=".concat(r,">"):">"}},{key:"id",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId,i="".concat(e,"|").concat(n);return r&&(i+="|".concat(r)),i}},{key:"_assertValidTypes",value:function(t,e){if(!Object(o.include)(t,this.type()))throw new u.j(e)}},{key:"_dataForId",value:function(){var t={name:this.name()},e=this.container();return Pt(e,Ct)?t.objId=e.id():(t.objId=e.obj().id(),t.widgetId=e.id()),t}},{key:"_sortValuesByLocalization",value:function(t){var e=this;return t?this._typeOptions.valuesLocalization?Object(o.sortBy)(t,function(n){var r=Object(o.findIndex)(e._typeOptions.valuesLocalization,{value:n});return-1===r?t.length:r}):t:[]}}]),t}();n.d(e,"AnyTypeInfo",function(){return i.AnyTypeInfo}),n.d(e,"AnyNormalizedTypeInfo",function(){return i.AnyNormalizedTypeInfo}),n.d(e,"AnyNormalizedSingleTypeInfo",function(){return i.AnyNormalizedSingleTypeInfo}),n.d(e,"AttributeType",function(){return i.AttributeType}),n.d(e,"BasicAttributeDict",function(){return i.BasicAttributeDict}),n.d(e,"BasicAttributeValue",function(){return i.BasicAttributeValue}),n.d(e,"BasicAttributeValueForUpdate",function(){return i.BasicAttributeValueForUpdate}),n.d(e,"NormalizedTypeInfo",function(){return i.NormalizedTypeInfo}),n.d(e,"AnyTypeOptions",function(){return i.AnyTypeOptions}),n.d(e,"BasicField",function(){return Lt}),n.d(e,"BasicLink",function(){return d}),n.d(e,"BasicLinkAttributes",function(){}),n.d(e,"BasicObjFacetValue",function(){return p}),n.d(e,"ObjSearchParams",function(){}),n.d(e,"BasicObjSearch",function(){return w}),n.d(e,"OPERATORS",function(){return v}),n.d(e,"SearchValue",function(){}),n.d(e,"SearchField",function(){}),n.d(e,"SearchOperator",function(){}),n.d(e,"Boost",function(){}),n.d(e,"BasicObj",function(){return Ct}),n.d(e,"MaybeBasicObj",function(){}),n.d(e,"setLinkHandler",function(){return At}),n.d(e,"LinkHandler",function(){}),n.d(e,"BasicWidget",function(){return ft}),n.d(e,"TransformationDefinition",function(){}),n.d(e,"Binary",function(){return V}),n.d(e,"BlobMock",function(){}),n.d(e,"FutureBinary",function(){return B}),n.d(e,"FutureBinaryOptions",function(){}),n.d(e,"IdToCopySource",function(){}),n.d(e,"SourceSource",function(){}),n.d(e,"setBinaryHandler",function(){return L}),n.d(e,"BinaryHandler",function(){}),n.d(e,"MetadataCollection",function(){return U}),n.d(e,"BinaryMetadataValue",function(){}),n.d(e,"ObjSearchType",function(){return T}),n.d(e,"LinkType",function(){return j}),n.d(e,"ObjType",function(){return C}),n.d(e,"WidgetType",function(){return S}),n.d(e,"BinaryType",function(){return A}),n.d(e,"QueryParameters",function(){}),n.d(e,"parseQuery",function(){return c})},,function(t,e,n){"use strict";var r=n(94),i=n(0),o=new i.f,a=function(){return o.current()};function s(t){var e={subscribes:[],missing:!1,outdated:!1},n=o.runWith(e,t);return new l(e,n)}function u(){return void 0!==a()}var l=function(){function t(t,e){this.captureList=t,this.result=e}return t.prototype.forwardToCurrent=function(){var t=a();t&&function(t,e){t.subscribes=t.subscribes.concat(e.subscribes),t.missing=t.missing||e.missing,t.outdated=t.outdated||e.outdated}(t,this.captureList)},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}(),c=function(){function t(){}return t.prototype.storeUnsubscribe=function(t){this.unsubscribeCallback=t},t.prototype.unsubscribe=function(){this.unsubscribeCallback&&this.unsubscribeCallback()},t}();var f=n(6);function d(t){p(t);var e=new i.g,n=q(function(){return Object(i.P)(function(){return Object(f.n)({contextName:"Scrivito.load",message:"Use an async callback: Scrivito.load(/* ... */).then(/* ... */)."},t)})},function(t){if(t.allDataUpToDate){n.unsubscribe();var r=t.result;r.errorThrown?e.reject(r.error):e.resolve(r.result)}});return e.promise}var p=Object(i.u)("load",[["loadableFunction",i.R.Function]],{docPermalink:"js-sdk/load"}),h=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({status: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}(),y={},v={},m=0;function g(t,e){var n=v[t]||0;v[t]=n+e}function b(t){delete y[t]}function w(t,e,n,r){if(!function(t){return void 0!==y[t]}(t)){var i=m++,o=function(){return y[t]===i},a=[],s=function(){return a.forEach(function(t){return t()})};e({push:function(t){return a.push(t)},wasCancelled:function(){return!o()}}).then(function(e){return u(function(){return Object(f.b)(function(){b(t),n(e),s()})})},function(e){return u(function(){return Object(f.b)(function(){b(t),r(e),s()})})}),y[t]=i}function u(t){o()&&t()}}var _=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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 t.call(this,"Data is not yet loaded.",!1)||this}return _(e,t),e}(i.o),O=function(){function t(t){var e=t.state,n=t.loader,r=t.invalidation,o=t.throwNotLoaded;if(!e)throw new i.j("LoadableData needs state");this.value=new h(e),this.loader=n,this.invalidation=r,this.throwNotLoaded=o||!1,this.id=e.id()}return t.prototype.ensureAvailable=function(){if(this.notifyDataRequired(),this.isAvailable())return this.notifyIfOutdated(),!0;if(this.isError())throw this.notifyIfOutdated(),this.value.error();if(!u())throw this.triggerLoading(),new i.o("Content not yet loaded. Forgot to use Scrivito.load or Scrivito.connect? See https://scrivito.com/content-not-yet-loaded-error");if(function(){var t=a();t&&(t.missing=!0)}(),this.throwNotLoaded)throw new k;return!1},t.prototype.get=function(){if(this.ensureAvailable())return E(this.id,this),this.value.value()},t.prototype.reader=function(){return E(this.id,this),this.value.reader()},t.prototype.set=function(t){this.value.transitionToAvailable(t,this.currentVersion()),b(this.id)},t.prototype.setError=function(t){this.transitionToError(t),b(this.id)},t.prototype.reset=function(){this.value.transitionToMissing(),b(this.id)},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 function(t){return v[t]||0}(this.id)},t.prototype.triggerLoading=function(){var t=this,e=this.currentVersion();w(this.id,function(e){var n=e.wasCancelled,r=e.push;return t.loader({push:r,isReload:function(){return t.hasBeenInvalidated()},wasCancelled:n})},function(n){t.value.transitionToAvailable(n,e)},function(n){t.transitionToError(n,e)})},t.prototype.transitionToError=function(t,e){void 0===e&&(e=this.currentVersion()),this.value.transitionToError(t,e)},t.prototype.notifyIfOutdated=function(){this.hasBeenInvalidated()&&function(){var t=a();t&&(t.outdated=!0)}()},t.prototype.notifyDataRequired=function(){var t=this;!function(t){var e=a();e&&e.subscribes.push(t)}(function(){return(t.hasBeenInvalidated()||t.isMissing())&&t.triggerLoading(),function(t){var e=!0;return g(t,1),function(){e&&(e=!1,g(t,-1))}}(t.id)})},t.prototype.hasBeenInvalidated=function(){return!!this.invalidation&&(!this.isMissing()&&this.currentVersion()!==this.value.version())},t.prototype.currentVersion=function(){var t=this.invalidation;if(t){var e=t();if("number"==typeof e&&isNaN(e)){var n="invalidation callback returned unsuitable version "+e;throw new i.j(n)}return e}},t}(),x=new i.f;function E(t,e){var n=x.current();n&&(n[t]=e)}function C(t){var e={};return{result:x.runWith(e,t),usedData:function(t){return Object.keys(t).map(function(e){return t[e]})}(e)}}var S=n(95),j=n(1),T=n.n(j);function A(t,e){var n=[];if(T.a.each(t,function(t){var r=N(function(){return e(t)});r.success&&n.push(r.result)}),n.length<t.length)throw new k;return n}function N(t){var e=s(function(){return Object(i.P)(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}function P(t){return Array.isArray(t)?t.map(P):null!==t&&j.isObject(t)?j.sortBy(j.pairs(j.mapObject(t,P)),j.first):t}var R=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(L[t])throw new i.j("collection name registered twice: "+t);L[t]=e}(e,this)}return t.prototype.get=function(t,e){var n=this,r=function(t){if("string"==typeof t)return t;return function(t){var e=P(t);return JSON.stringify(e)}(t)}(t),i=this.invalidation,o=new O({state:this.state().subState(r),loader:function(r){return n.loader(t,r,e)},invalidation:i?function(){return i(t)}:void 0});return function(t,e){t.affiliation=e}(o,{collectionName:this.name,key:t}),o},t}();var L={};function I(t){Object(f.m)(function(){return t.forEach(D)})}function D(t){var e=t[0],n=t[1],r=t[2];(function(t){var e=L[t];if(!e)throw new i.j("collection with name "+t+" not found");return e})(e).get(n).set(r)}function M(t){return t.map(B)}function B(t){var e=function(t){return t.affiliation}(t);if(!e)throw new i.j("Tried to record a LoadableData without affiliation");return[e.collectionName,e.key,t.get()]}function q(t,e){var n=new c,r=Object(f.i)(function(){return s(function(){return Object(i.P)(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()}}}n.d(e,"i",function(){return r.default}),n.d(e,"e",function(){return s}),n.d(e,"g",function(){return u}),n.d(e,"c",function(){return c}),n.d(e,"h",function(){return d}),n.d(e,"b",function(){return O}),n.d(e,"n",function(){return C}),n.d(e,"k",function(){return S.default}),n.d(e,"l",function(){return A}),n.d(e,"o",function(){return N}),n.d(e,"d",function(){return k}),n.d(e,"j",function(){return I}),n.d(e,"f",function(){return M}),n.d(e,"a",function(){return R}),n.d(e,"m",function(){return q})},function(t,e,n){"use strict";var r=n(0),i=n(1),o=function(){function t(){this.listeners=[]}return t.prototype.subscribe=function(t){var e=this,n=!0,r=function(){n&&t()};return this.ensureCanMutateListeners(),this.listeners.push(r),function(){n=!1;var t=e.listeners.indexOf(r);e.ensureCanMutateListeners(),e.listeners.splice(t,1)}},t.prototype.count=function(){return this.listeners.length},t.prototype.clear=function(){this.listeners=[]},t.prototype.notify=function(){this.listenersToNotify=this.listeners,this.listenersToNotify.forEach(function(t){return t()})},t.prototype.ensureCanMutateListeners=function(){this.listenersToNotify===this.listeners&&(this.listeners=this.listeners.slice())},t}();function a(t){return(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})(t)}function s(t){return null!==t&&"object"===a(t)&&!Array.isArray(t)&&!function(t){var e=Object.getPrototypeOf(t);if(null===e)return!1;return null!==Object.getPrototypeOf(e)}(t)}function u(t,e){return t===e?e:s(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[i]:void 0,s=u(a,e[i]);s!==a&&(r=!0),n[i]=s}),r?Object.freeze(n):t}(s(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[r]:void 0,o=u(i,e);return o!==i&&(n=!0),o});return n?Object.freeze(r):t}(Array.isArray(t)?t:void 0,e):e}var l,c,f,d,p,h=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),y=0,v=Object.assign||i.extend,m=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=function(t,e){return u(t,e)}(e,t);n!==e&&this.uncheckedSet(n)},t.prototype.clear=function(){this.set(void 0)},t.prototype.subState=function(t){return new w(this,t)},t.prototype.reader=function(){return this},t.prototype.setSubState=function(t,e){var n,r=this.untrackedGet();if(void 0===r){var i=Object.freeze(((n={})[t]=e,n));this.uncheckedSet(i)}else{var o=v({},r);o[t]=e,this.uncheckedSet(Object.freeze(o))}},t.prototype.getSubState=function(t){var e=this.untrackedGet();if(e)return e[t]},t}(),g=function(t){function e(){var e=t.call(this)||this;return e.treeId=(y++).toString(),e.listeners=new o,e.detectorRecording=new r.f,e.batchUpdates=new r.f,e.version=0,e.frozenContextContainer=new r.f,e}return h(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.j(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 b(n)}},e.prototype.uncheckedSet=function(t){this.failIfFrozen("Changing state"),this.state=t,this.version++,this.insideBatchUpdate()||this.notifyListeners()},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.forwardDetectors(a),e.version!==n&&!!Object(i.find)(a,function(t){return t()})}}},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 this.treeId},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.forwardDetectors=function(t){var e=this.detectorRecording.current();void 0!==e&&e.push.apply(e,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}(m),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e}(r.o),w=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 h(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("string"!=typeof this.key)return"";var t=this.key.replace(/\\/g,"\\\\").replace(/\//g,"\\/");return this.parentState.id()+"/"+t},e}(m);function _(t){t?(l=void 0,c=t.stateController(),f=t.createAppState(),d=t.cmsState()):(l=new g,c=l,f=O(),d=l.subState("cms"),p=l.subState("ui"))}var k=0;function O(){if(!l)throw new r.j;var t=(k++).toString();return l.subState("apps").subState(t)}function x(t){return c.withBatchedUpdates(t)}function E(t){return c.subscribe(t)}function C(t){return c.trackChanges(t)}function S(t,e){return c.withFrozenState(t,e)}function j(t){return c.failIfFrozen(t)}function T(t){return c.failIfTracking(t)}var A=[],N=function(){return A.length};function P(t){N()||Object(r.J)(function(){return x(function(){return function t(e){A=[];try{e.forEach(function(t){return t()})}finally{N()&&t(A)}}(A)})}),A.push(t)}function R(t,e){var n,i=!0;function o(){Object(r.J)(function(){if(i&&(void 0===n||n())){var r=C(function(){return S({contextName:"observe",message:"Extract all side-effects into the listener function"},t)});n=r.detector,e(r.result)}})}o();var a=E(o);return{unsubscribe:function(){i=!1,a()},forceRefresh:function(){n=void 0,o()}}}n.d(e,"e",function(){return O}),n.d(e,"d",function(){return d}),n.d(e,"j",function(){return E}),n.d(e,"k",function(){return C}),n.d(e,"m",function(){return x}),n.d(e,"n",function(){return S}),n.d(e,"f",function(){return j}),n.d(e,"g",function(){return T}),n.d(e,"l",function(){return p}),n.d(e,"c",function(){return f}),n.d(e,"h",function(){return _}),n.d(e,"a",function(){return o}),n.d(e,"b",function(){return P}),n.d(e,"i",function(){return R})},,function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"ERROR_CODE_CLIENT_VERIFICATION_REQUIRED",function(){return E}),n.d(r,"perform",function(){return C}),n.d(r,"reset",function(){return S}),n.d(r,"currentState",function(){return T});var i,o=n(0),a="published";function s(){return i||a}function u(t){i=t}function l(t){var e=s();if(t!==e)throw new o.j("Requested and the actual current workspace differ! Expected "+e+", but saw "+t+".")}var c,f="&scrivito.authFailedCount=";function d(){c=0}var p,h={init:function(t){d();var e=t.location,n=e.hash,r=n.indexOf(f);if(!(r<0)){var i=n.substr(r+f.length,3),o=n.substring(0,r);"#"===o&&(o="");var a=e.href.toString().replace(n,o);c=parseInt(i,10)||0,t.history.replaceState({},"",a)}},augmentedRedirectUrl:function(t){var e=t.toString();return t.hash||(e+="#"),""+e+f+(c+1)},reset:d,currentFailureCount:function(){return c}},y=n(1),v=n(13),m=!1,g=0;function b(){return g>0}function w(t,e,n){var r=n.params,i=n.authorization,a=n.forceVerification;return m?o.p.resolve(new XMLHttpRequest):(g+=1,new o.p(function(n,s){var u=function(t,e,n,r){var i=new XMLHttpRequest;function a(t){!function(t,e){g-=1,e(t)}(new o.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){g-=1;var r=t.status;if(!r||!Object(y.isNumber)(r)){var i="Unexpected response status: "+r+"; body: "+(0===r?t.statusText:t.responseText);n(new o.m(i))}e(t)}(i,n,r)},i.onerror=function(){return a("XMLHttpRequest Error")},i.ontimeout=function(){return a("XMLHttpRequest Timeout")},i.onabort=function(){return a("XMLHttpRequest Aborted")},i}(t,e,n,s);i&&u.setRequestHeader("Authorization",i),u.setRequestHeader("Scrivito-Client","jssdk/"+Object(o.A)()),a&&u.setRequestHeader("Scrivito-Force-Verification","true"),u.setRequestHeader("Content-type","application/json; charset=utf-8"),u.send(JSON.stringify(r))}))}function _(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}p={},window._scrivitoRegisterVerificator=function(t,e){p[t].resolve(e)};var k,O,x=function(){var t=Object.setPrototypeOf||_({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),E="client_verification_required";!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}x(e,t)}(o.r);function C(t){return t(j()).catch(function(e){if(!function(t){return _(t,o.r)&&t.backendCode===E}(e))throw e;return function(t){if(!k){var e=t.verificator,n=t.data,r=function(t,e){var n=p[t];return n||(n=new o.g,p[t]=n,Object(o.H)(e)),n.promise}(e.id,e.url).then(function(t){return new o.p(function(e){t(n,function(t){e((O=t).authorization)})})});k={challenge:{verificator:e,data:n},promise:Object(o.M)(r,function(){k=void 0})}}return k.promise}(e.details).then(t)})}function S(){k=void 0,O=void 0}function j(){if(O){if(!(O.expiresAfter<new Date))return O.authorization;O=void 0}}function T(){var t=j();if(t)return"Authorization: "+t;if(k){var e=k.challenge;return"Pending computation: "+e.verificator.id+" with "+e.data}return null}var A,N,P=n(23);function R(t){return(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})(t)}var L=function(){function t(){this.initDeferred=new o.g,this.authHeaderValueProvider=r}return t.prototype.init=function(t,e,n){e&&(this.tenant=e,this.endpoint=t,this.url=v(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 h.reset(),t})},t.prototype.enableForceVerification=function(){this.forceVerification=!0},t.prototype.currentPublicAuthorizationState=function(){return this.authHeaderValueProvider?this.authHeaderValueProvider.currentState?"[API] "+this.authHeaderValueProvider.currentState():"[API]: authorization provider without currentState()":"[API]: 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(y.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,a=this.forceVerification,s={params:{path:e,verb:t,params:n||{}},authorization:r,forceVerification:a};function u(){return function t(e,n){void 0===n&&(n=0);if(N)return new o.p(function(t){return t(e())});return e().then(function(r){if(429!==r.status)return r;if(A&&n>19)throw new Error("Maximum number of rate limit retries reached");var i=Number(r.getResponseHeader("Retry-After"))||0,a=Math.max(1e3*i,I(n));return Object(o.W)(a).then(function(){return t(e,n+1)})})}(function(){return w(t,i,s)}).then(D)}return"POST"===t?u():function t(e,n){void 0===n&&(n=0);if(N)return new o.p(function(t){return t(e())});return e().catch(function(r){if(function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(r,o.m)){if(A&&n>5)throw r;var i=I(n);return Object(o.W)(i).then(function(){return t(e,n+1)})}throw r})}(u)},t.prototype._handleTask=function(t){var e=this;switch(t.status){case"success":return t.result;case"error":throw o.e.for(t.message,412,t.code);case"open":return Object(o.V)(2).then(function(){return e.get("tasks/"+t.id).then(function(t){return e._handleTask(t)})});default:throw new o.m("Invalid task response (unknown status)")}},t}();function I(t){return 500*Math.pow(2,Math.min(t,16))}function D(t){var e,n=t.status;try{e=JSON.parse(t.responseText)}catch(e){throw new o.m(t.responseText)}if(n>=200&&n<300)return e;if("auth_missing"===e.code){var r=e.details;if(r&&M(r)){var i=r.visit;if("string"==typeof i){var a=function(t){var e=h.augmentedRedirectUrl(Object(P.d)());return t.replace("retry=RETRY","retry="+h.currentFailureCount()).replace(/\$RETURN_TO/,encodeURIComponent(e))}(i);throw Object(P.f)(a),new o.l("Insufficient authorization - please visit "+a)}}}throw function(t,e,n){if(401===t){var r=q(e);return new o.r(r.error,t,r.code,r.details)}if(403===t){var r=q(e),i=r.code;if(!i||!B(i))throw new o.m("Authentication failure response no string value for code");return new o.a(r.error,t,i)}if(e.error&&"4"===t.toString()[0]){var r=q(e);return o.e.for(r.error,t,r.code)}if(500===t)return B(e.error)?new o.m(e.error):new o.m(n);return new o.m(n)}(n,e,t.responseText)}function M(t){return"object"===R(t)&&!Array.isArray(t)}function B(t){return"string"==typeof t}function q(t){var e=t.error;if("string"!=typeof e)throw new o.m("Malformed error response (key error is not a string)");var n=t.code;if(void 0!==n&&!B(n))throw new o.m("Malformed error response (optional key code is not a string)");var r=t.details;if(void 0!==r&&!M(r))throw new o.m("Malformed error response (optional key details is not an object");return{code:n,error:e,details:r}}var F=new L;function z(t,e){var n,r="blobs/"+encodeURIComponent(t);return e&&(r+="/optimize",n={transformation:e}),F.get(r,n).then(function(e){return function(t,e){var n=e.public_access.get;if(!n.url)throw new o.j('Missing public access URL for binary "'+t+'"');var r={public_access:{get:{url:n.url}}},i=e.private_access;if(i){var a=i.get;a.url&&(r.private_access={get:{url:a.url}})}return r}(t,e)})}var U=new o.c(function(t){var e=s();return F.get("workspaces/"+e+"/objs/mget",{ids:t,include_deleted:!0}).then(function(t){return t.results})},{batchSize:17});var H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};function W(t){var e=s(),n=H({consistent:!0},t);return F.get("workspaces/"+e+"/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}})}var V={retrieveObj:function(t,e){return l(t),function(t){return U.retrieve(t).then(function(e){return e||{_deleted:t}})}(e)},retrieveObjQuery:function(t,e){return l(t),W(e)},retrieveFacetQuery:function(t,e){return l(t),function(t,e){return F.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 F.get("blobs/"+encodeURIComponent(t||"")+"/meta_data")}(t)},retrieveBinaryUrls:function(t,e){return z(t,e)},retrieveObjFieldDiffs:function(t,e){return function(t,e){return F.get("workspaces/"+t+"/objs/"+e+"/diff").then(function(t){return t})}(t,e)}};function K(t){V=t}function Q(t){return!t._deleted}n.d(e,"b",function(){return l}),n.d(e,"a",function(){return h}),n.d(e,"c",function(){return F}),n.d(e,"d",function(){return V}),n.d(e,"h",function(){return K}),n.d(e,"i",function(){return u}),n.d(e,"e",function(){return s}),n.d(e,"g",function(){return b}),n.d(e,"f",function(){return Q})},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})},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(3),a=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},s=function(){function t(t,e){var n={};e._scrivitoPrivateSchema&&r.extend(n,e._scrivitoPrivateSchema.attributes),t.attributes&&r.each(t.attributes,function(t,e){n[e]=function(t){if("string"==typeof t)return[t];return t}(t)});var i=t.onlyInside;this.definition=a({},t,i?{attributes:n,onlyInside:r.isArray(i)?i:[i]}:{attributes:n})}return t.forInstance=function(t){return this.forClass(t.constructor)},t.forClass=function(t){return t._scrivitoPrivateSchema},t.basicFieldFor=function(e,n){var r=t.forInstance(e);if(r){var i=r.attributes[n];if(i)return new o.BasicField(e._scrivitoPrivateContent,n,i)}},Object.defineProperty(t.prototype,"attributes",{get:function(){return this.definition.attributes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.definition.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onlyInside",{get:function(){return this.definition.onlyInside},enumerable:!0,configurable:!0}),t.prototype.isBinary=function(){var t=this.definition.attributes.blob;return!!t&&"binary"===t[0]},t}();function u(t){return!(!t||!t._scrivitoPrivateSchema)}var l=n(0);function c(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function f(t,e){if(Object(r.isArray)(e))return Object(r.map)(e,function(e){return f(t,e)});if(c(e,o.BasicObj))return d(e,t.objClassFor(e.objClass()));if(c(e,o.BasicWidget)){var n=e.objClass();return d(e,t.widgetClassFor(n))}if(c(e,o.BasicLink)){var i=Object.create(t.defaultClassForLinks.prototype);return i._scrivitoPrivateContent=e,i}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(l.C)(r))return[t];var i=e.attributes[r];if(!i)throw new l.b('Attribute "'.concat(r,'" is not defined for CMS object ')+'class "'.concat(n,'".'));return[p(t),i]})}function y(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var m=function(){function t(e){y(this,t),this._registry=e}return function(t,e,n){e&&v(t.prototype,e),n&&v(t,n)}(t,[{key:"getObj",value:function(t,e){var n=o.BasicObj.get(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"getObjIncludingDeleted",value:function(t,e){var n=o.BasicObj.getIncludingDeleted(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"read",value:function(t,e){var n=s.basicFieldFor(t,e);if(!n)return null;var r=n.get();return f(this._registry,r)}},{key:"update",value:function(t,e){var n,r=this._registry.objClassNameFor(t.constructor);if(!r)throw n=t.constructor===this._registry.defaultClassForObjs?"Obj":"Widget",new l.b('Updating is not supported on the base class "'.concat(n,'".'));if(e.constructor!==Object)throw new l.b("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");var i=h(e,s.forInstance(t),r);t._scrivitoPrivateContent.update(i)}},{key:"wrapInAppClass",value:function(t){return f(this._registry,t)}},{key:"_checkObjClassAndWrapInAppClass",value:function(t,e){if(!e)return null;var n=this._registry.objClassNameFor(t);if(n&&n!==e.objClass())throw new l.n('Obj with id "'.concat(e.id(),'" is not of type "').concat(n,'".'));return this.wrapInAppClass(e)}}]),t}();function g(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t){return function(){function e(){g(this,e)}return function(t,e,n){e&&b(t.prototype,e),n&&b(t,n)}(e,[{key:"id",value:function(){return this._scrivitoPrivateContent.id()}},{key:"objClass",value:function(){return this._scrivitoPrivateContent.objClass()}},{key:"finishSaving",value:function(){return this._scrivitoPrivateContent.finishSaving()}},{key:"get",value:function(e){return t.read(this,e)}},{key:"update",value:function(e){t.update(this,e)}}]),e}()}function _(t,e,n,r){var i={};return Object.keys(n.definition.attributes).forEach(function(n){if(!Object.prototype.hasOwnProperty.call(t,n)){var o=e.initialContentFor(r,n);void 0!==o&&(i[n]=o)}}),i}function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=new m(t);function n(e,n){var r=new t.ObjSearch;return e&&r.and("_objClass","equals",e),n&&r._scrivitoPrivateContent.batchSize(n),r}function i(e){return f(t,e)}return function(a){function u(){return O(this,u),E(this,C(u).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");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&S(t,e)}(u,w(e)),function(t,e,n){e&&x(t.prototype,e),n&&x(t,n)}(u,[{key:"lastChanged",value:function(){return this._scrivitoPrivateContent.lastChanged()}},{key:"path",value:function(){return this._scrivitoPrivateContent.path()}},{key:"parent",value:function(){return i(this._scrivitoPrivateContent.parent())}},{key:"ancestors",value:function(){return i(this._scrivitoPrivateContent.ancestors())}},{key:"backlinks",value:function(){return i(this._scrivitoPrivateContent.backlinks())}},{key:"children",value:function(){return i(this._scrivitoPrivateContent.children())}},{key:"orderedChildren",value:function(){return i(this._scrivitoPrivateContent.orderedChildren())}},{key:"permalink",value:function(){return this._scrivitoPrivateContent.permalink()}},{key:"slug",value:function(){return this._scrivitoPrivateContent.slug()}},{key:"isBinary",value:function(){var t=s.forInstance(this);return!!t&&t.isBinary()}},{key:"contentLength",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0}},{key:"contentType",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""}},{key:"contentUrl",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""}},{key:"metadata",value:function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new o.MetadataCollection}},{key:"destroy",value:function(){this._scrivitoPrivateContent.destroy()}},{key:"widget",value:function(t){return i(this._scrivitoPrivateContent.widget(t))}},{key:"widgets",value:function(){return i(this._scrivitoPrivateContent.widgets())}}],[{key:"get",value:function(t){return e.getObj(this,t)}},{key:"getIncludingDeleted",value:function(t){return e.getObjIncludingDeleted(this,t)}},{key:"getByPath",value:function(t){return i(o.BasicObj.getByPath(t))}},{key:"getByPermalink",value:function(t){return i(o.BasicObj.getByPermalink(t))}},{key:"all",value:function(){return n(t.objClassNameFor(this),1e3)}},{key:"root",value:function(){return i(o.BasicObj.root())}},{key:"where",value:function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return n(t.objClassNameFor(this)).and(e,r,i,o)}},{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};T(t,this._appClassName());var e=this._prepareAttributesForCreate(t);return i(o.BasicObj.create(e))}},{key:"createFromFile",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t){if(!l.h.is(t)){if(l.d.is(t))throw new l.b('Creating CMS objects from file is only available with instances of "File", but an instance of "Blob" is given');throw new l.b('Creating CMS objects from file is only available with instances of "File"')}}(t),function(t,e,n){if(T(t,e),Object.prototype.hasOwnProperty.call(t,"blob"))throw new l.b('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 l.b('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 o.BasicObj.createFromFile(t,n).then(function(t){return i(t)})}},{key:"_prepareAttributesForCreate",value:function(e){var n=this._schema(),i=this._appClassName(),o=_(e,t,n,i),a={_objClass:i};return h(Object(r.extend)({},e,o,a),n,i)}},{key:"_appClassName",value:function(){return t.objClassNameFor(this)}},{key:"_schema",value:function(){return s.forClass(this)}}]),u}()}function T(t,e){if(!e)throw new l.b("Creating CMS objects is not supported for the class Obj or abstract classes.");if(t.constructor!==Object)throw new l.b("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(t._objClass)throw new l.b('Invalid attribute "_objClass". '+'"'.concat(t._objClass,'.create" will automatically set the CMS object class ')+"correctly.")}function A(t){return(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})(t)}function N(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function D(t){var e=new m(t);return function(n){function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(this,i),e=function(t,e){return!e||"object"!==A(e)&&"function"!=typeof e?I(t):e}(this,R(i).call(this));var r=s.forInstance(I(I(e))),a=t.objClassNameFor(e.constructor),u=e._prepareAttributesForConstructor(n,r,a),l=new o.BasicWidget(u);return l.onDidPersist(function(e){var n=f(t,e),i=_(u,t,r,a);n.update(i)}),e._scrivitoPrivateContent=l,e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(i,w(e)),function(t,e,n){e&&P(t.prototype,e),n&&P(t,n)}(i,[{key:"obj",value:function(){var e=this._scrivitoPrivateContent.obj();return f(t,e)}},{key:"copy",value:function(){var e=t.widgetClassFor(this.objClass());return d(this._scrivitoPrivateContent.copy(),e)}},{key:"destroy",value:function(){this._scrivitoPrivateContent.remove()}},{key:"_prepareAttributesForConstructor",value:function(t,e,n){!function(t,e){if(!t)throw new l.b("Creating widgets is not supported for the class Widget or abstract classes.");if(e.constructor!==Object)throw new l.b("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new l.b('Invalid attribute "_objClass". '+'"new '.concat(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)}}]),i}()}var M=["hash","obj","query","rel","target","title","url"];function B(t){return function(t){var e=r.without.apply(r,[r.keys(t)].concat(M));if(!r.isEmpty(e))throw new l.b("Unexpected attributes "+Object(l.L)(e)+". Available attributes: "+Object(l.L)(M))}(t),r.has(t,"obj")?r.extend({},t,{objId:function(t){if(!t)return null;return p(t).id()}(t.obj)}):t}n(117);var q=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 F(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t){var e=function(){function e(){!function(t,e){if(!F(t,e))throw new TypeError("Cannot call a class as a function")}(this,e),this._scrivitoPrivateContent=new o.BasicObjSearch}return function(t,e,n){e&&z(t.prototype,e),n&&z(t,n)}(e,[{key:"and",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(F(t,e))this._scrivitoPrivateContent.and(t._scrivitoPrivateContent);else{var o=p(r);this._scrivitoPrivateContent.and(t,n,o,i)}return this}},{key:"andNot",value:function(t,e,n){var r=p(n);return this._scrivitoPrivateContent.andNot(t,e,r),this}},{key:"facet",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this._scrivitoPrivateContent.facet(e,n);return i.a.map(r,function(e){return new q(t,e)})}},{key:"first",value:function(){var e=this._scrivitoPrivateContent.first();return e?f(t,e):null}},{key:"take",value:function(e){return this._scrivitoPrivateContent.take(e).map(function(e){return f(t,e)})}},{key:"offset",value:function(t){return this._scrivitoPrivateContent.offset(t),this}},{key:"order",value:function(t,e){return this._scrivitoPrivateContent.order(t,e),this}},{key:"count",value:function(){return this._scrivitoPrivateContent.count()}}]),e}();if("function"==typeof window.Symbol){var n=window.Symbol.iterator;if(n)e.prototype[n]=function(){var e=this._scrivitoPrivateContent.iterator();return{next:function(){var n=e.next(),r=n.done,i=n.value;return r?{done:r}:{done:r,value:f(t,i)}}}}}return e}var H=function(){function t(){this.mapping={},this.defaultClassForObjs=j(this),this.defaultClassForWidgets=D(this),this.defaultClassForLinks=function(t){return function(){function e(t){var e=B(t);this._scrivitoPrivateContent=new o.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(B(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),this.ObjSearch=U(this)}return t.prototype.register=function(t,e){this.mapping[t]=e},t.prototype.getClass=function(t){return this.mapping[t]||null},t.prototype.allObjClasses=function(){var t=this;return r.pick(this.mapping,function(e){return t.defaultClassForObjs.isPrototypeOf(e)})},t.prototype.allWidgetClasses=function(){var t=this;return r.pick(this.mapping,function(e){return t.defaultClassForWidgets.isPrototypeOf(e)})},t.prototype.objClassFor=function(t){return this.appClassFor(t,this.defaultClassForObjs)},t.prototype.widgetClassFor=function(t){return this.appClassFor(t,this.defaultClassForWidgets)},t.prototype.objClassNameFor=function(t){return r.findKey(this.mapping,function(e){return e===t})},t.prototype.setInitialContentFor=function(t){this.initialContentForFunction=t},t.prototype.initialContentFor=function(t,e){if(this.initialContentForFunction)return this.initialContentForFunction(t,e)},t.prototype.appClassFor=function(t,e){var n=this.getClass(t);return n&&e.isPrototypeOf(n)?n:e},t}();function W(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var V=function(){var t=Object.setPrototypeOf||W({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function K(t,e){if(e.extend&&!Y(e.extend,t.defaultClassForObjs))throw new l.b('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 V(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function Q(t,e){if(e.extend&&!Y(e.extend,t.defaultClassForWidgets))throw new l.b('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 V(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function $(t,e,n){var i=function(t,e,n){if(u(n))return n;var i=Object(r.extend)({},n,{name:e});return K(t,i)}(t,e,n);return t.register(e,i),i}function G(t,e,n){var i=function(t,e,n){if(u(n))return n;var i=Object(r.extend)({},n,{name:e});return Q(t,i)}(t,e,n);return t.register(e,i),i}function Y(t,e){return!!t&&(t===e||W(t.prototype,e))}var Z=l.R.refinement(l.R.Function,u,"ObjClass"),X=l.R.interface({attributes:l.R.maybe(l.R.dict(l.R.refinement(l.R.String,function(t){return/^[a-z](_+[A-Z0-9]|[A-Za-z0-9])*$/.test(t)},"String (alphanumeric, starting with a lower-case character)"),l.R.union([l.R.enums.of(["binary","date","float","html","integer","link","linklist","reference","referencelist","string","stringlist","widgetlist"]),l.R.union([l.R.tuple([l.R.enums.of(["enum","multienum"]),l.R.interface({values:l.R.list(l.R.String)})]),l.R.tuple([l.R.enums.of(["reference","referencelist"]),l.R.interface({only:l.R.union([l.R.String,l.R.list(l.R.String)])})]),l.R.tuple([l.R.enums.of(["widgetlist"]),l.R.interface({only:l.R.union([l.R.String,l.R.list(l.R.String)])})])])]),"Attributes Specification")),extend:l.R.maybe(Z)}),J=l.R.refinement(l.R.Function,u,"WidgetClass"),tt=l.R.interface({attributes:X.meta.props.attributes,extend:l.R.maybe(J),onlyInside:l.R.maybe(l.R.union([l.R.String,l.R.Array]))}),et=Object(l.u)("createObjClass",[["options",X]],{docPermalink:"js-sdk/createObjClass"}),nt=Object(l.u)("createWidgetClass",[["options",tt]],{docPermalink:"js-sdk/createWidgetClass"}),rt=l.R.union([X,Z]),it=Object(l.u)("provideObjClass",[["name",l.R.String],["objClassOrDefinition",rt]],{docPermalink:"js-sdk/provideObjClass"}),ot=l.R.union([tt,J]),at=Object(l.u)("provideWidgetClass",[["name",l.R.String],["widgetClassOrDefinition",ot]],{docPermalink:"js-sdk/provideWidgetClass"});var st=function(){function t(){this._registry=new H,this.appModelAccessor=new m(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){return it(t,e),$(this._registry,t,e)},t.prototype.provideWidgetClass=function(t,e){return at(t,e),G(this._registry,t,e)},t.prototype.createObjClass=function(t){return et(t),K(this._registry,t)},t.prototype.createWidgetClass=function(t){return nt(t),Q(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}();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 q}),n.d(e,"b",function(){return s});e.c=st},function(t,e,n){"use strict";var r=n(6);function i(){return a().get()}function o(t){a().set(t)}function a(){return r.d.subState("contentStateId")}var s=n(1),u=n.n(s),l=n(5),c=n(0),f=!1;function d(){return f}function p(){f=!0}function h(t){if(f)throw new c.i(t)}var y=n(8),v=new l.a({name:"facetquery",state:function(){return r.d.subState("facetQuery")},loader:function(t){return y.d.retrieveFacetQuery(Object(y.e)(),t)},invalidation:function(){return i()||""}}),m=function(){function t(t,e,n){this._requestParams=g(t,e,n),this._loadableData=v.get(this._requestParams)}return t.store=function(t,e,n,r){var i=g(t,e,n);v.get(i).set(r)},t.prototype.result=function(){h("Search API");var t=this._loadableData.get();return t?t.facets[0].map(function(t){return{name:t.value,count:t.total,includedObjIds:t.results.map(function(t){return t.id})}}):[]},t}();function g(t,e,n){var r={facets:[{attribute:t,limit:e.limit||10,include_objs:e.includeObjs||0}],size:0};return Object(s.isEmpty)(n)||(r.query=n),r}function b(t,e){var n=w(t,e);if(n)return n;var r=t._widget_pool;return r&&s.find(r,function(t,r){if(t&&(n=w(t,e)))return n.parentWidgetId=r,!0}),n}function w(t,e){var n;return s.find(t,function(t,r){if(t&&!Object(c.C)(r)){var i=t,o=i[0],a=i[1];if(a&&"widgetlist"===o){var s=a.indexOf(e);if(-1!==s)return n={attributeName:r,index:s},!0}}}),n}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||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||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function k(t,e){if(!t)return e;if(!e)return null;var n={};return x(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 x(t||{},e||{},function(t,r,i){Object.prototype.hasOwnProperty.call(e,t)?i&&!r?n[t]=i:i&&(n[t]=k(r,i)):n[t]=r}),n}(i,o):Object.prototype.hasOwnProperty.call(e,r)?o&&(n[r]=o):n[r]=t[r]}),n}function O(t,e){if(!t)return e;if(!e)return null;var n={};return x(t,e,function(t,e,r){if("_widget_pool"===t){var i=function(t,e){if(t===e)return{};var n={};return x(t,e,function(t,e,r){var i=C(e,r,function(){var t=O(e,r);if(!u.a.isEmpty(t))return t});void 0!==i&&(n[t]=i)}),n}(e,r);u.a.isEmpty(i)||(n._widget_pool=i)}else{var o=C(e,r,function(){if(!u.a.isEqual(e,r))return r});void 0!==o&&(n[t]=o)}}),n}function x(t,e,n){u.a.union(u.a.keys(t),u.a.keys(e)).forEach(function(r){return n(r,E(t[r]),E(e[r]))})}function E(t){if(u.a.isArray(t)){var e=_(t,2),n=e[0],r=e[1];return"binary"===n&&r?[n,u.a.omit(r,"url")]:t}return t}function C(t,e,n){return!t&&e?e:t&&!e?null:t&&e?n():void 0}function S(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var T=function(){function t(e){var n=this;S(this,t),this._id=e,this._replicationActive=!1,this._scheduledReplication=!1,this._currentRequestDeferred=null,this._nextRequestDeferred=null,this._performThrottledReplication=Object(c.S)(function(){return n._performReplication()},1e3)}return function(t,e,n){e&&j(t.prototype,e),n&&j(t,n)}(t,[{key:"notifyLocalState",value:function(t){if(!R.isDisabled()){if(void 0===this._backendState)throw new c.j("Can not set local state before backend state.");if(this._backendState&&this._backendState._deleted)throw new c.j("Can not update a fully deleted obj.");this._localState=t,this._startReplication()}}},{key:"notifyBackendState",value:function(t){if(void 0===this._backendState)return this._backendState=t,void this._updateLocalState(t);if(P(t,this._bufferedBackendState||this._backendState)>0)if(this._replicationActive)this._bufferedBackendState=t;else{if(t._deleted)this._updateLocalState(null);else{var e=A(this._backendState,t);this._updateLocalState(N(this.localState,e))}this._backendState=t}}},{key:"finishSaving",value:function(){var t;if(this._nextRequestDeferred)t=this._nextRequestDeferred.promise;else{if(!this._currentRequestDeferred)return c.p.resolve();t=this._currentRequestDeferred.promise}return t.catch(function(){return c.p.reject()})}},{key:"_startReplication",value:function(){var t=this;u.a.isEmpty(A(this._backendState,this._localState))?this._nextRequestDeferred&&(this._nextRequestDeferred.resolve(),this._nextRequestDeferred=null):this._replicationActive?this._nextRequestDeferred||(this._nextRequestDeferred=new c.g):this._scheduledReplication||(this._scheduledReplication=!0,this._initDeferredForRequest(),R.writeStarted(this._currentRequestDeferred.promise),Object(c.J)(function(){return t._performThrottledReplication()}))}},{key:"_performReplication",value:function(){var t=this,e=this._localState,n=A(this._backendState,this._localState);this._scheduledReplication=!1,this._replicationActive=!0,this._replicatePatchToBackend(n).then(function(n){t._handleBackendUpdate(e,n),t._currentRequestDeferred.resolve(t._id),t._currentRequestDeferred=null,t._replicationActive=!1,t._startReplication()},function(e){t._currentRequestDeferred.reject(e),t._currentRequestDeferred=null,t._replicationActive=!1})}},{key:"_replicatePatchToBackend",value:function(t){if(u.a.isEmpty(t))return c.p.resolve(this._backendState);var e=Object(y.e)(),n="workspaces/".concat(e,"/objs/").concat(this._id);return y.c.put(n,{obj:t})}},{key:"_initDeferredForRequest",value:function(){if(this._nextRequestDeferred){var t=this._nextRequestDeferred;this._nextRequestDeferred=null,this._currentRequestDeferred=t}else this._currentRequestDeferred=new c.g}},{key:"_handleBackendUpdate",value:function(t,e){var n=A(t,this._localState);this._backendState=function(t,e){if(P(t,e)>0)return t;return e}(e,this._bufferedBackendState),this._bufferedBackendState=void 0,this._updateLocalState(N(this._backendState,n))}},{key:"_updateLocalState",value:function(t){this._localState=t,F(this._id,this._localState)}},{key:"isNotStoredInBackend",value:function(){return null===this._backendState}},{key:"isRequestInFlight",value:function(){return this._replicationActive}},{key:"backendState",get:function(){return this._backendState}},{key:"localState",get:function(){return this._localState}}]),t}();function A(t,e){return O(t,e)}function N(t,e){return k(t,e)}function P(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 R=new(function(){function t(){this._replicationCache={},this._disabled=!1,this._writeWriteCallbacks={},this._subscriptionToken=0}return t.prototype.get=function(t){return this._replicationCache[t]||(this._replicationCache[t]=new T(t)),this._replicationCache[t]},t.prototype.subscribeWrites=function(t){return this._subscriptionToken+=1,this._writeWriteCallbacks[this._subscriptionToken]=t,this._subscriptionToken},t.prototype.unsubscribeWrites=function(t){delete this._writeWriteCallbacks[t]},t.prototype.isDisabled=function(){return this._disabled},t.prototype.writeStarted=function(t){Object(s.each)(this._writeWriteCallbacks,function(e){e(t)})},t.prototype.disableReplication=function(){this._disabled=!0},t.prototype.enableReplication=function(){this._disabled=!1},t.prototype.clearWriteCallbacks=function(){this._writeWriteCallbacks={}},t.prototype.clearCache=function(){this._replicationCache={}},t}());function L(t){R=t}function I(){return r.d.subState("objData")}var D=new l.a({name:"objdata",state:I,loader:function(t,e){var n=e.push;return y.d.retrieveObj(Object(y.e)(),t).then(function(e){return n(function(){return R.get(t).notifyBackendState(e)}),e})}}),M=function(){function t(t){this._loadableData=D.get(t),this._id=t}return t.prototype.get=function(){return Object(r.g)("for performance reasons, avoid this method when rendering"),this._loadableData.get()},t.prototype.getWidget=function(t){return Object(r.g)("for performance reasons, avoid this method when rendering"),this.getWidgetState(t).get()},t.prototype.getAttribute=function(t){if("_widget_pool"===t)throw new c.j("_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(r.f)("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=k(this.get(),t);this.set(e),this._replication().notifyLocalState(e)},t.prototype.finishSaving=function(){return this._replication().finishSaving()},t.prototype._replication=function(){return R.get(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 B(t){var e=U(t);return e.set(null),R.get(t).notifyBackendState(null),e}function q(t){var e=t._id;U(e).isAvailable()||F(e,t),R.get(e).notifyBackendState(t)}function F(t,e){U(t).set(e)}function z(t){var e=U(t);if(e.ensureAvailable())return e}function U(t){return new M(t)}var H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},W={results:[],total:0},V=new l.a({name:"objquery",state:function(){return at()},loader:function(t,e,n){var r=t[0],i=t[1],o=e.push,a=e.isReload,s=e.wasCancelled;return function(t,e,n){if(n>0){var r=new K(t,e,n-1);return Object(l.h)(function(){return r.continuationForNextBatch()})}return c.p.resolve()}(r,n,i).then(function(t){if(s())throw new Error;var e={size:n,continuation:t,include_objs:!a()},i=H({},r,e);return y.d.retrieveObjQuery(Object(y.e)(),i).then(function(t){var e=t.objs;return e&&o(function(){return e.forEach(function(t){return q(t)})}),function(t){t.forEach(function(t){return function(t){Object(l.h)(function(){return z(t)})}(t)})}(t.results),{results:t.results,total:t.total,continuation:t.continuation}})})},invalidation:function(){return i()||""}}),K=function(){function t(t,e,n){void 0===n&&(n=0),this._params=t,this._batchSize=e,this._index=n}return t.store=function(t,e,n){void 0===n&&(n=e.length),V.get([$(t),0]).set({results:e,total:n})},t.firstBatchFor=function(e,n){return new t($(e),n)},t.countFor=function(t){return this.firstBatchFor(t,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._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._params,this._index],this._batchSize)},t}(),Q=K;function $(t){var e=Object(s.omit)({query:t.query,offset:t.offset,sort_by:t.sortBy,sort_order:t.sortDirection},s.isUndefined);return t.includeDeleted&&(e.options={include_deleted:!0}),e}function G(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function Y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Z(t,e,n){return e&&Y(t.prototype,e),n&&Y(t,n),t}var X=function(){function t(e,n){G(this,t),this._params=e,this._batchSize=n}return Z(t,null,[{key:"store",value:function(t,e,n){Q.store(t,e,n)}},{key:"count",value:function(t){return Q.countFor(t)}}]),Z(t,[{key:"iterator",value:function(){var t={},e=Q.firstBatchFor(this._params,this._batchSize),n=0;return{next:function r(){if(!e)return{done:!0};var i=e.objIds();if(n<i.length){var o=i[n];return n++,t[o]?r():(t[o]=!0,{value:o,done:!1})}return e=e.nextBatch(),n=0,r()}}}}]),t}();function J(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function et(t,e,n){return e&&tt(t.prototype,e),n&&tt(t,n),t}var nt=function(){function t(e,n){J(this,t),this._params=e,this._batchSize=n}return et(t,[{key:"count",value:function(){return X.count(this._params)}},{key:"iterator",value:function(){return new rt(this._params,this._batchSize)}}]),t}(),rt=function(){function t(e,n){J(this,t),this._iterator=new X(e,n).iterator()}return et(t,[{key:"next",value:function(){if(!this._iterator)return{done:!0};var t=this._iterator.next().value;if(!t)return{done:!0};var e=z(t);return void 0===e?(this._iterator=void 0,{done:!0}):e.isNonExistent()?this.next():{value:e,done:!1}}}]),t}();function it(t,e,n){X.store(t,e,n)}function ot(t,e){return h("Search API"),new nt(t,e)}function at(){return r.d.subState("objQuery")}var st=new l.a({name:"objFieldDiffs",state:function(){return r.d.subState("objFieldDiffs")},loader:function(t){var e=t[0],n=t[1];return y.d.retrieveObjFieldDiffs(e,n)},invalidation:function(t){t[0];return function(t){var e=z(t);if(e)return e.getAttribute("_version")||"";return""}(t[1])}});function ut(t,e,n,r){var i=function(t,e){return lt(t,e).get()||{}}(t,n);return r?function(t,e,n){var r=n._widget_pool;if(r){var i=r[e];if(i)return ct(t,i)}return null}(e,r,i):ct(e,i)}function lt(t,e){return st.get([t,e])}function ct(t,e){var n=e[Object(c.U)(t)];return n?n[1]:null}n.d(e,"n",function(){return o}),n.d(e,"g",function(){return i}),n.d(e,"a",function(){return m}),n.d(e,"f",function(){return b}),n.d(e,"b",function(){return"inMemory"}),n.d(e,"q",function(){return p}),n.d(e,"c",function(){return h}),n.d(e,"k",function(){return d}),n.d(e,"o",function(){return q}),n.d(e,"i",function(){return z}),n.d(e,"d",function(){return B}),n.d(e,"e",function(){return O}),n.d(e,"j",function(){return ot}),n.d(e,"p",function(){return it}),n.d(e,"l",function(){return R}),n.d(e,"m",function(){return L}),n.d(e,"h",function(){return ut})},function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(183)},function(t,e,n){var r,i,o;
2
+ /*!
3
3
  * URI.js - Mutating URLs
4
4
  *
5
5
  * Version: 1.19.1
@@ -11,13 +11,40 @@
11
11
  * MIT License http://www.opensource.org/licenses/mit-license
12
12
  *
13
13
  */
14
- !function(a,s){"use strict";"object"==typeof t&&t.exports?t.exports=s(n(97),n(99),n(100)):(i=[n(97),n(99),n(100)],r=s,void 0!==(o="function"==typeof r?r.apply(e,i):r)&&(t.exports=o))}(0,function(t,e,n,r){"use strict";function i(t,e){var n=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof i))return n?r?new i(t,e):new i(t):new i;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}function o(t){return/^[0-9]+$/.test(t)}function a(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function s(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function u(t){return"Array"===s(t)}function c(t,e){var n,r,i={};if("RegExp"===s(e))i=null;else if(u(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 l(t,e){var n,r;if(u(e)){for(n=0,r=e.length;n<r;n++)if(!l(t,e[n]))return!1;return!0}var i=s(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 f(t,e){if(!u(t)||!u(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 d(t){var e=/^\/+|\/+$/g;return t.replace(e,"")}function h(t){return escape(t)}function p(t){return encodeURIComponent(t).replace(/[!'()*]/g,h).replace(/\*/g,"%2A")}function v(t){return function(e,n){return void 0===e?this._parts[t]||"":(this._parts[t]=e||null,this.build(!n),this)}}function y(t,e){return function(n,r){return void 0===n?this._parts[t]||"":(null!==n&&(n+="",n.charAt(0)===e&&(n=n.substring(1))),this._parts[t]=n,this.build(!r),this)}}var m=r&&r.URI;i.version="1.19.1";var b=i.prototype,g=Object.prototype.hasOwnProperty;i._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:i.preventInvalidHostname,duplicateQueryParameters:i.duplicateQueryParameters,escapeQuerySpace:i.escapeQuerySpace}},i.preventInvalidHostname=!1,i.duplicateQueryParameters=!1,i.escapeQuerySpace=!0,i.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,i.idn_expression=/[^a-z0-9\._-]/i,i.punycode_expression=/(xn--)/i,i.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i.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*$/,i.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,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.hostProtocols=["http","https"],i.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,i.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"},i.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return i.domAttributes[e]}},i.encode=p,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=p,i.decode=decodeURIComponent},i.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"}}}},i.encodeQuery=function(t,e){var n=i.encode(t+"");return void 0===e&&(e=i.escapeQuerySpace),e?n.replace(/%20/g,"+"):n},i.decodeQuery=function(t,e){t+="",void 0===e&&(e=i.escapeQuerySpace);try{return i.decode(e?t.replace(/\+/g,"%20"):t)}catch(e){return t}};var w,_={encode:"encode",decode:"decode"},k=function(t,e){return function(n){try{return i[e](n+"").replace(i.characters[t][e].expression,function(n){return i.characters[t][e].map[n]})}catch(t){return n}}};for(w in _)i[w+"PathSegment"]=k("pathname",_[w]),i[w+"UrnPathSegment"]=k("urnpath",_[w]);var O=function(t,e,n){return function(r){var o;o=n?function(t){return i[e](i[n](t))}:i[e];for(var a=(r+"").split(t),s=0,u=a.length;s<u;s++)a[s]=o(a[s]);return a.join(t)}};i.decodePath=O("/","decodePathSegment"),i.decodeUrnPath=O(":","decodeUrnPathSegment"),i.recodePath=O("/","encodePathSegment","decode"),i.recodeUrnPath=O(":","encodeUrnPathSegment","decode"),i.encodeReserved=k("reserved","encode"),i.parse=function(t,e){var n;return e||(e={preventInvalidHostname:i.preventInvalidHostname}),n=t.indexOf("#"),n>-1&&(e.fragment=t.substring(n+1)||null,t=t.substring(0,n)),n=t.indexOf("?"),n>-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=i.parseAuthority(t,e)):(n=t.indexOf(":"))>-1&&(e.protocol=t.substring(0,n)||null,e.protocol&&!e.protocol.match(i.protocol_expression)?e.protocol=void 0:"//"===t.substring(n+1,n+3)?(t=t.substring(n+3),t=i.parseAuthority(t,e)):(t=t.substring(n+1),e.urn=!0)),e.path=t,e},i.parseHost=function(t,e){t||(t=""),t=t.replace(/\\/g,"/");var n,r,o=t.indexOf("/");if(-1===o&&(o=t.length),"["===t.charAt(0))n=t.indexOf("]"),e.hostname=t.substring(1,n)||null,e.port=t.substring(n+2,o)||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,o)||null,e.port=null):(r=t.substring(0,o).split(":"),e.hostname=r[0]||null,e.port=r[1]||null)}return e.hostname&&"/"!==t.substring(o).charAt(0)&&(o++,t="/"+t),e.preventInvalidHostname&&i.ensureValidHostname(e.hostname,e.protocol),e.port&&i.ensureValidPort(e.port),t.substring(o)||"/"},i.parseAuthority=function(t,e){return t=i.parseUserinfo(t,e),i.parseHost(t,e)},i.parseUserinfo=function(t,e){var n,r=t.indexOf("/"),o=t.lastIndexOf("@",r>-1?r:t.length-1);return o>-1&&(-1===r||o<r)?(n=t.substring(0,o).split(":"),e.username=n[0]?i.decode(n[0]):null,n.shift(),e.password=n[0]?i.decode(n.join(":")):null,t=t.substring(o+1)):(e.username=null,e.password=null),t},i.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,o,a={},s=t.split("&"),u=s.length,c=0;c<u;c++)n=s[c].split("="),r=i.decodeQuery(n.shift(),e),o=n.length?i.decodeQuery(n.join("="),e):null,g.call(a,r)?("string"!=typeof a[r]&&null!==a[r]||(a[r]=[a[r]]),a[r].push(o)):a[r]=o;return a},i.build=function(t){var e="";return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//"),e+=i.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},i.buildHost=function(t){var e="";return t.hostname?(i.ip6_expression.test(t.hostname)?e+="["+t.hostname+"]":e+=t.hostname,t.port&&(e+=":"+t.port),e):""},i.buildAuthority=function(t){return i.buildUserinfo(t)+i.buildHost(t)},i.buildUserinfo=function(t){var e="";return t.username&&(e+=i.encode(t.username)),t.password&&(e+=":"+i.encode(t.password)),e&&(e+="@"),e},i.buildQuery=function(t,e,n){var r,o,a,s,c="";for(o in t)if(g.call(t,o)&&o)if(u(t[o]))for(r={},a=0,s=t[o].length;a<s;a++)void 0!==t[o][a]&&void 0===r[t[o][a]+""]&&(c+="&"+i.buildQueryParameter(o,t[o][a],n),!0!==e&&(r[t[o][a]+""]=!0));else void 0!==t[o]&&(c+="&"+i.buildQueryParameter(o,t[o],n));return c.substring(1)},i.buildQueryParameter=function(t,e,n){return i.encodeQuery(t,n)+(null!==e?"="+i.encodeQuery(e,n):"")},i.addQuery=function(t,e,n){if("object"==typeof e)for(var r in e)g.call(e,r)&&i.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]]),u(n)||(n=[n]),t[e]=(t[e]||[]).concat(n)}},i.setQuery=function(t,e,n){if("object"==typeof e)for(var r in e)g.call(e,r)&&i.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}},i.removeQuery=function(t,e,n){var r,o,a;if(u(e))for(r=0,o=e.length;r<o;r++)t[e[r]]=void 0;else if("RegExp"===s(e))for(a in t)e.test(a)&&(t[a]=void 0);else if("object"==typeof e)for(a in e)g.call(e,a)&&i.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"===s(n)?!u(t[e])&&n.test(t[e])?t[e]=void 0:t[e]=c(t[e],n):t[e]!==String(n)||u(n)&&1!==n.length?u(t[e])&&(t[e]=c(t[e],n)):t[e]=void 0:t[e]=void 0}},i.hasQuery=function(t,e,n,r){switch(s(e)){case"String":break;case"RegExp":for(var o in t)if(g.call(t,o)&&e.test(o)&&(void 0===n||i.hasQuery(t,o,n)))return!0;return!1;case"Object":for(var a in e)if(g.call(e,a)&&!i.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(s(n)){case"Undefined":return e in t;case"Boolean":return n===Boolean(u(t[e])?t[e].length:t[e]);case"Function":return!!n(t[e],e,t);case"Array":if(!u(t[e]))return!1;return(r?l:f)(t[e],n);case"RegExp":return u(t[e])?!!r&&l(t[e],n):Boolean(t[e]&&t[e].match(n));case"Number":n=String(n);case"String":return u(t[e])?!!r&&l(t[e],n):t[e]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},i.joinPaths=function(){for(var t=[],e=[],n=0,r=0;r<arguments.length;r++){var o=new i(arguments[r]);t.push(o);for(var a=o.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&e.push(a[s]),a[s]&&n++}if(!e.length||!n)return new i("");var u=new i("").segment(e);return""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||u.path("/"+u.path()),u.normalize()},i.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))},i.withinString=function(t,e,n){n||(n={});var r=n.start||i.findUri.start,o=n.end||i.findUri.end,a=n.trim||i.findUri.trim,s=n.parens||i.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var c=r.exec(t);if(!c)break;var l=c.index;if(n.ignoreHtml){var f=t.slice(Math.max(l-3,0),l);if(f&&u.test(f))continue}for(var d=l+t.slice(l).search(o),h=t.slice(l,d),p=-1;;){var v=s.exec(h);if(!v)break;var y=v.index+v[0].length;p=Math.max(p,y)}if(h=p>-1?h.slice(0,p)+h.slice(p).replace(a,""):h.replace(a,""),!(h.length<=c[0].length||n.ignore&&n.ignore.test(h))){d=l+h.length;var m=e(h,l,d,t);void 0!==m?(m=String(m),t=t.slice(0,l)+m+t.slice(d),r.lastIndex=l+m.length):r.lastIndex=d}}return r.lastIndex=0,t},i.ensureValidHostname=function(e,n){var r=!!e,o=!!n,a=!1;if(o&&(a=l(i.hostProtocols,n)),a&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(e&&e.match(i.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(i.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},i.ensureValidPort=function(t){if(t){var e=Number(t);if(!(o(e)&&e>0&&e<65536))throw new TypeError('Port "'+t+'" is not a valid port')}},i.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=m),this},b.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},b.clone=function(){return new i(this)},b.valueOf=b.toString=function(){return this.build(!1)._string},b.protocol=v("protocol"),b.username=v("username"),b.password=v("password"),b.hostname=v("hostname"),b.port=v("port"),b.query=y("query","?"),b.fragment=y("fragment","#"),b.search=function(t,e){var n=this.query(t,e);return"string"==typeof n&&n.length?"?"+n:n},b.hash=function(t,e){var n=this.fragment(t,e);return"string"==typeof n&&n.length?"#"+n:n},b.pathname=function(t,e){if(void 0===t||!0===t){var n=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?i.decodeUrnPath:i.decodePath)(n):n}return this._parts.urn?this._parts.path=t?i.recodeUrnPath(t):"":this._parts.path=t?i.recodePath(t):"/",this.build(!e),this},b.path=b.pathname,b.href=function(t,e){var n;if(void 0===t)return this.toString();this._string="",this._parts=i._parts();var r=t instanceof i,o="object"==typeof t&&(t.hostname||t.path||t.pathname);if(t.nodeName){t=t[i.getDomAttribute(t)]||"",o=!1}if(!r&&o&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=i.parse(String(t),this._parts);else{if(!r&&!o)throw new TypeError("invalid input");var a=r?t._parts:t;for(n in a)"query"!==n&&g.call(this._parts,n)&&(this._parts[n]=a[n]);a.query&&this.query(a.query,!1)}return this.build(!e),this},b.is=function(t){var e=!1,r=!1,o=!1,a=!1,s=!1,u=!1,c=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,r=i.ip4_expression.test(this._parts.hostname),o=i.ip6_expression.test(this._parts.hostname),e=r||o,a=!e,s=a&&n&&n.has(this._parts.hostname),u=a&&i.idn_expression.test(this._parts.hostname),c=a&&i.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return l;case"absolute":return!l;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 o;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var E=b.protocol,x=b.port,C=b.hostname;b.protocol=function(t,e){if(t&&(t=t.replace(/:(\/\/)?$/,""),!t.match(i.protocol_expression)))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return E.call(this,t,e)},b.scheme=b.protocol,b.port=function(t,e){return this._parts.urn?void 0===t?"":this:(void 0!==t&&(0===t&&(t=null),t&&(t+="",":"===t.charAt(0)&&(t=t.substring(1)),i.ensureValidPort(t))),x.call(this,t,e))},b.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==i.parseHost(t,n))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');t=n.hostname,this._parts.preventInvalidHostname&&i.ensureValidHostname(t,this._parts.protocol)}return C.call(this,t,e)},b.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=i(t);return this.protocol(r.protocol()).authority(r.authority()).build(!e),this},b.host=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},b.authority=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},b.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=i.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==t[t.length-1]&&(t+="@"),i.parseUserinfo(t,this._parts),this.build(!e),this},b.resource=function(t,e){var n;return void 0===t?this.path()+this.search()+this.hash():(n=i.parse(t),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!e),this)},b.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,o=this._parts.hostname.substring(0,r),s=new RegExp("^"+a(o));if(t&&"."!==t.charAt(t.length-1)&&(t+="."),-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");return t&&i.ensureValidHostname(t,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,t),this.build(!e),this},b.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(i.ensureValidHostname(t,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=t;else{var o=new RegExp(a(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,t)}return this.build(!e),this},b.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: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(a(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(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}return this.build(!e),this},b.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?i.decodePath(r):r}var o=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,o),u=new RegExp("^"+a(s));return this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=i.recodePath(t),this._parts.path=this._parts.path.replace(u,t),this.build(!e),this},b.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?i.decodePathSegment(r):r}var o=!1;"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(o=!0);var s=new RegExp(a(this.filename())+"$");return t=i.recodePath(t),this._parts.path=this._parts.path.replace(s,t),o?this.normalizePath(e):this.build(!e),this},b.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,o=this.filename(),s=o.lastIndexOf(".");return-1===s?"":(n=o.substring(s+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",t?i.decodePathSegment(r):r)}"."===t.charAt(0)&&(t=t.substring(1));var u,c=this.suffix();if(c)u=t?new RegExp(a(c)+"$"):new RegExp(a("."+c)+"$");else{if(!t)return this;this._parts.path+="."+i.recodePath(t)}return u&&(t=i.recodePath(t),this._parts.path=this._parts.path.replace(u,t)),this.build(!e),this},b.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(u(e)){a=[];for(var s=0,c=e.length;s<c;s++)(e[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(d(e[s])))}else(e||"string"==typeof e)&&(e=d(e),""===a[a.length-1]?a[a.length-1]=e:a.push(e));else e?a[t]=d(e):a.splice(t,1);return o&&a.unshift(""),this.path(a.join(r),n)},b.segmentCoded=function(t,e,n){var r,o,a;if("number"!=typeof t&&(n=e,e=t,t=void 0),void 0===e){if(r=this.segment(t,e,n),u(r))for(o=0,a=r.length;o<a;o++)r[o]=i.decode(r[o]);else r=void 0!==r?i.decode(r):void 0;return r}if(u(e))for(o=0,a=e.length;o<a;o++)e[o]=i.encode(e[o]);else e="string"==typeof e||e instanceof String?i.encode(e):e;return this.segment(t,e,n)};var j=b.query;return b.query=function(t,e){if(!0===t)return i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=t.call(this,n);return this._parts.query=i.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=i.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):j.call(this,t,e)},b.setQuery=function(t,e,n){var r=i.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 o in t)g.call(t,o)&&(r[o]=t[o])}return this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},b.addQuery=function(t,e,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.addQuery(r,t,void 0===e?null:e),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},b.removeQuery=function(t,e,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.removeQuery(r,t,e),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},b.hasQuery=function(t,e,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.hasQuery(r,t,e,n)},b.setSearch=b.setQuery,b.addSearch=b.addQuery,b.removeSearch=b.removeQuery,b.hasSearch=b.hasQuery,b.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()},b.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},b.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},b.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===i.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},b.normalizePath=function(t){var e=this._parts.path;if(!e)return this;if(this._parts.urn)return this._parts.path=i.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;e=i.recodePath(e);var n,r,o,a="";for("/"!==e.charAt(0)&&(n=!0,e="/"+e),"/.."!==e.slice(-3)&&"/."!==e.slice(-2)||(e+="/"),e=e.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),n&&(a=e.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);;){if(-1===(r=e.search(/\/\.\.(\/|$)/)))break;0!==r?(o=e.substring(0,r).lastIndexOf("/"),-1===o&&(o=r),e=e.substring(0,o)+e.substring(r+3)):e=e.substring(3)}return n&&this.is("relative")&&(e=a+e.substring(1)),this._parts.path=e,this.build(!t),this},b.normalizePathname=b.normalizePath,b.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(i.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},b.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},b.normalizeSearch=b.normalizeQuery,b.normalizeHash=b.normalizeFragment,b.iso8859=function(){var t=i.encode,e=i.decode;i.encode=escape,i.decode=decodeURIComponent;try{this.normalize()}finally{i.encode=t,i.decode=e}return this},b.unicode=function(){var t=i.encode,e=i.decode;i.encode=p,i.decode=unescape;try{this.normalize()}finally{i.encode=t,i.decode=e}return this},b.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="",o=0,a=e._parts.query.split("&"),s=a.length;o<s;o++){var u=(a[o]||"").split("=");r+="&"+i.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(r+="="+i.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=i.decodeQuery(e.hash(),!0)},b.absoluteTo=function(t){var e,n,r,o=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 i||(t=new i(t)),o._parts.protocol)return o;if(o._parts.protocol=t._parts.protocol,this._parts.hostname)return o;for(n=0;r=a[n];n++)o._parts[r]=t._parts[r];return o._parts.path?(".."===o._parts.path.substring(-2)&&(o._parts.path+="/"),"/"!==o.path().charAt(0)&&(e=t.directory(),e=e||(0===t.path().indexOf("/")?"/":""),o._parts.path=(e?e+"/":"")+o._parts.path,o.normalizePath())):(o._parts.path=t._parts.path,o._parts.query||(o._parts.query=t._parts.query)),o.build(),o},b.relativeTo=function(t){var e,n,r,o,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t=new i(t).normalize(),e=s._parts,n=t._parts,o=s.path(),a=t.path(),"/"!==o.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,o===a)return e.path="",s.build();if(!(r=i.commonPath(o,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()},b.equals=function(t){var e,n,r,o=this.clone(),a=new i(t),s={},c={},l={};if(o.normalize(),a.normalize(),o.toString()===a.toString())return!0;if(e=o.query(),n=a.query(),o.query(""),a.query(""),o.toString()!==a.toString())return!1;if(e.length!==n.length)return!1;s=i.parseQuery(e,this._parts.escapeQuerySpace),c=i.parseQuery(n,this._parts.escapeQuerySpace);for(r in s)if(g.call(s,r)){if(u(s[r])){if(!f(s[r],c[r]))return!1}else if(s[r]!==c[r])return!1;l[r]=!0}for(r in c)if(g.call(c,r)&&!l[r])return!1;return!0},b.preventInvalidHostname=function(t){return this._parts.preventInvalidHostname=!!t,this},b.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},b.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},i})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){var e=f.a.without.apply(f.a,[f.a.keys(t)].concat(y));if(!f.a.isEmpty(e))throw new v.ArgumentError("Unexpected attributes ".concat(Object(p.a)(e),".")+" Available attributes: ".concat(Object(p.a)(y)))}n.d(e,"a",function(){return m});var u=n(33),c=n.n(u),l=n(0),f=n.n(l),d=n(3),h=n(7),p=n(41),v=n(1),y=["hash","obj","query","target","title","url"],m=function(){function t(e){i(this,t),s(e),this._hash=e.hash||null,this._query=e.query||null,this._target=e.target||null,this._title=e.title||null,this._url=e.url||null,this._objId=null,e.obj&&(this._objId=e.obj.id())}return a(t,null,[{key:"build",value:function(t){var e=t.objId;delete t.objId;var n=new this(t);return e&&(n._objId=e),n}}]),a(t,[{key:"title",value:function(){return this._title}},{key:"query",value:function(){return this._query}},{key:"hash",value:function(){return this._hash}},{key:"target",value:function(){return this._target}},{key:"url",value:function(){return this._url}},{key:"objId",value:function(){return this._objId}},{key:"obj",value:function(){return this.objId()?d.default.get(this.objId()):null}},{key:"queryParameters",value:function(){return c.a.parseQuery(this.query())}},{key:"fetchObj",value:function(){var t=this;return this.isExternal()?scrivito.Promise.reject(new v.ScrivitoError("The link is external and does not reference an object.")):Object(h.a)(function(){return d.default.get(t.objId())})}},{key:"isExternal",value:function(){return!!this.url()}},{key:"isInternal",value:function(){return!this.isExternal()}},{key:"equals",value:function(e){return!!r(e,t)&&(this.isExternal()?this.hash()===e.hash()&&this.query()===e.query()&&this.target()===e.target()&&this.title()===e.title()&&this.url()===e.url():this.objId()===e.objId()&&this.title()===e.title())}},{key:"copy",value:function(t){s(t);var e=this.buildAttributes();return f.a.has(t,"obj")&&delete e.objId,f.a.extend(e,t),this.constructor.build(e)}},{key:"buildAttributes",value:function(){return{title:this.title(),query:this.query(),hash:this.hash(),target:this.target(),url:this.url(),objId:this.objId()}}},{key:"isBroken",value:function(){return!this.isExternal()&&!this.obj()}},{key:"toPrettyPrint",value:function(){return this.isInternal()?'[object Link objId="'.concat(this.objId(),'"]'):'[object Link url="'.concat(this.url(),'"]')}}]),t}()},,,function(t,e,n){"use strict";function r(t){o?s.push(t):setTimeout(t,0)}function i(t){r(function(){throw t})}e.a=r,e.b=i;var o,a=n(0),s=(n.n(a),[])},function(t,e,n){"use strict";var r=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 c=[n,r,i,o,a,s],l=0;u=new Error(e.replace(/%s/g,function(){return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};t.exports=r},function(t,e,n){"use strict";function r(t,e,n){var r=n.docPermalink;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=i(n,e);if(a){var s="Visit https://scrivito.com/"+r+" for more information.";throw new l.ArgumentError("Invalid arguments for '"+t+"': "+a+" "+s)}}}function i(t,e){var n=e.length,r=t.length;if(r>n)return"Expected "+n+" arguments, got "+r;var i=c.flatten(e.map(function(e,n){var r=e[0],i=e[1],a=t[n];return s.a.validate(a,i).errors.map(function(t){return o(r,t)})}));return i.length>0?i.join(" "):void 0}function o(t,e){var n=a(t,e);if(void 0===e.actual)return"Missing required "+n+".";if(e.expected===s.a.Nil)return"Unexpected "+n+".";var r=s.a.getTypeName(e.expected);return"Unexpected value for "+n+": got "+Object(u.a)(e.actual)+", expected type "+r+"."}function a(t,e){var n="argument '"+t+"'";return 0===e.path.length?n:"key '"+e.path.join("/")+"' in "+n}e.a=r;var s=n(24),u=n(41),c=n(0),l=(n.n(c),n(1))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t){try{return Object(u.isFunction)(t)?o(t):Object(u.isObject)(t)?i(t):a(t)}catch(t){return""}}function i(t){var e=t._scrivitoPrivateContent;return e&&Object(u.isFunction)(e.toPrettyPrint)?e.toPrettyPrint():Object(u.isElement)(t)?"[object HTMLElement ".concat(a(t.outerHTML),"]"):a(t)}function o(t){var e=t._scrivitoPrivateSchema;if(e)return"[class ".concat(e.name,"]");if(t.prototype&&t.prototype.isReactComponent){return'[class React.Component "'.concat(t.displayName||t.name,'"]')}return s(t.toString())}function a(t){var e=JSON.stringify(t);return e?s(e):e}function s(t){return t.length>100?"".concat(t.slice(0,100),"..."):t}e.a=r;var u=n(0);n.n(u)},function(t,e,n){"use strict";function r(t){return t.length<2}var i=n(0),o=(n.n(i),function(){function t(t,e){var n={};e._scrivitoPrivateSchema&&i.extend(n,e._scrivitoPrivateSchema.attributes),t.attributes&&i.each(t.attributes,function(t,e){var i=scrivito.typeInfo.normalize(t);if(r(i)){var o={};n[e]=[i[0],o]}else n[e]=i}),this.definition=i.extend({},t,{attributes:n})}return t.forInstance=function(t){return this.forClass(t.constructor)},t.forClass=function(t){return t._scrivitoPrivateSchema},t.basicFieldFor=function(e,n){var r=t.forInstance(e);if(r){var i=r.attributes[n];if(i)return e._scrivitoPrivateContent.field(n,i)}},Object.defineProperty(t.prototype,"attributes",{get:function(){return this.definition.attributes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.definition.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onlyInside",{get:function(){return this.definition.onlyInside},enumerable:!0,configurable:!0}),t.prototype.isBinary=function(){var t=this.definition.attributes.blob;return!!t&&"binary"===t[0]},t}());e.a=o},function(t,e,n){"use strict";function r(t){l=t}n.d(e,"a",function(){return l}),e.b=r;var i=n(154),o=n(177),a=n(178),s=n(179),u=n(180),c=n(181),l={retrieveObj:function(t,e){return Object(i.a)(t),Object(a.a)(e)},retrieveObjQuery:function(t,e){return Object(i.a)(t),Object(s.a)(e)},retrieveFacetQuery:function(t,e){return Object(i.a)(t),Object(u.a)(t,e)},retrieveBinaryMetadata:function(t){return Object(o.a)(t)},retrieveBinaryUrls:function(t,e){return Object(c.a)(t,e)}}},,,,function(t,e,n){"use strict";function r(t){return"_"===t[0]}e.a=r},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(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||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t){return b.a.isString(t)?t.match(/^-?\d+$/)?y(t):null:y(t)}function u(t){return v(t)&&w<=t&&t<=_}function c(t){return b.a.isNumber(t)&&b.a.isFinite(t)}function l(t){if(!b.a.isString(t))return null;if(!h(t))throw new g.InternalError('The value is not a valid ISO date time: "'.concat(t,'"'));return f(t)}function f(t){if(t){var e=t.match(k),n=r(e,7),i=(n[0],n[1]),o=n[2],a=n[3],s=n[4],u=n[5],c=n[6];return new Date(Date.UTC(i,o-1,a,s,u,c))}}function d(t){var e="".concat(t.getUTCFullYear()).concat(p(t.getUTCMonth()+1)),n="".concat(p(t.getUTCDate())).concat(p(t.getUTCHours())),r="".concat(p(t.getUTCMinutes())).concat(p(t.getUTCSeconds()));return"".concat(e).concat(n).concat(r)}function h(t){return b.a.isString(t)&&t.match(/^\d{14}$/)}function p(t){return t<10?"0".concat(t):t}function v(t){return b.a.isNumber(t)&&b.a.isFinite(t)&&Math.floor(t)===t}function y(t){var e=parseInt(t,10);return 0===e?0:u(e)?e:null}e.b=s,e.f=u,e.e=c,e.a=l,e.g=f,e.c=d,e.d=h;var m=n(0),b=n.n(m),g=n(1),w=-9007199254740991,_=9007199254740991,k=/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/},,function(t,e,n){"use strict";function r(t,e){return t.then(function(t){return e(),t},function(t){throw e(),t})}n.d(e,"a",function(){return r})},function(t,e){t.exports=function(t){return t.displayName||t.name||"<function"+t.length+">"}},function(t,e,n){var r=n(5),i=n(8);t.exports=function(t,e){r(!(t instanceof e),function(){return"Cannot use the new operator to instantiate the type "+i(e)})}},function(t,e,n){"use strict";function r(t){s=t}n.d(e,"a",function(){return s}),e.b=r;var i=n(0),o=(n.n(i),n(96)),a=function(){function t(){this._replicationCache={},this._disabled=!1,this._writeWriteCallbacks={},this._subscriptionToken=0}return t.prototype.get=function(t){return this._replicationCache[t]||(this._replicationCache[t]=new o.a(t)),this._replicationCache[t]},t.prototype.subscribeWrites=function(t){return this._subscriptionToken+=1,this._writeWriteCallbacks[this._subscriptionToken]=t,this._subscriptionToken},t.prototype.unsubscribeWrites=function(t){delete this._writeWriteCallbacks[t]},t.prototype.isDisabled=function(){return this._disabled},t.prototype.writeStarted=function(t){Object(i.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}(),s=new a},function(t,e,n){"use strict";function r(t){return a(t)||o(t)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function a(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function s(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function u(t,e){if(!s(t,e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e,n){return{field:m(t),operator:y(e),value:p(n)}}function d(t){if(!Object(E.contains)(A,t))throw new C.ArgumentError('Boosting operator "'.concat(t,'" is invalid.'))}function h(t){if(!Object(E.contains)(S,t))throw new C.ArgumentError('Negating operator "'.concat(t,'" is invalid.'))}function p(t){return Object(E.isArray)(t)?Object(E.map)(t,v):v(t)}function v(t){return Object(E.isDate)(t)?Object(_.c)(t):s(t,w.default)?t.id():t}function y(t){if(!Object(E.contains)(j,t))throw new C.ArgumentError('Operator "'.concat(t,'" is invalid.'));return Object(x.e)(t)}function m(t){return Object(E.isArray)(t)?Object(E.map)(t,g):g(t)}function b(t){var e={};return Object(E.each)(t,function(t,n){var r=g(n);e[r]=t}),e}function g(t){if(!Object(x.c)(t))throw new C.ArgumentError('Attribute name "'.concat(t,'" is not camel case.'));return Object(x.e)(t)}n.d(e,"a",function(){return j}),n.d(e,"b",function(){return T});var w=n(3),_=n(48),k=n(118),O=n(216),E=n(0),x=(n.n(E),n(23)),C=n(1),j=["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan","linksTo","refersTo"],S=["equals","startsWith","isGreaterThan","isLessThan"],A=["contains","containsPrefix"],T=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,t),this._query=[].concat(e.query||[]),this._batchSize=e.batchSize,this._offset=e.offset,this._sortBy=e.sortBy,this._sortDirection=e.sortDirection,this._includeDeleted=e.includeDeleted}return l(t,[{key:"and",value:function(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(s(e,t))this._query=r(this._query).concat(r(e._query));else{var a=f(e,n,i);o&&(d(n),a.boost=b(o)),this._query.push(a)}return this}},{key:"andNot",value:function(t,e,n){var r=f(t,e,n);return h(e),r.negate=!0,this._query.push(r),this}},{key:"offset",value:function(t){return this._offset=t,this}},{key:"order",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";return this._sortBy=g(t),this._sortDirection=e,this}},{key:"batchSize",value:function(t){return this._batchSize=t,this}},{key:"includeDeleted",value:function(){return this._includeDeleted=!0,this}},{key:"count",value:function(){return this.getObjDataQuery().count()}},{key:"iterator",value:function(){var t=this.getObjDataQuery().iterator();return{next:function(){var e=t.next(),n=e.done,r=e.value;return n?{done:n}:{done:n,value:new w.default(r)}}}}},{key:"getObjDataQuery",value:function(){return k.b(this.params(),this.getBatchSize())}},{key:"getBatchSize",value:function(){return this._batchSize||100}},{key:"facet",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new O.a(g(t),e,this._query).result()}},{key:"store",value:function(t,e){k.d(this.params(),t,e)}},{key:"params",value:function(){return Object(E.omit)({query:this._query,offset:this._offset,sortBy:this._sortBy,sortDirection:this._sortDirection,includeDeleted:this._includeDeleted,batchSize:this._batchSize},E.isUndefined)}}]),t}()},,,,function(t,e,n){"use strict";function r(t){Object(d.a)(function(){return s(t)})}function i(t){var e=c(t);return e.set(null),f.a.get(t).notifyBackendState(null),e}function o(t){var e=t._id;c(e).isAvailable()||a(e,t),f.a.get(e).notifyBackendState(t)}function a(t,e){c(t).set(e)}function s(t){var e=c(t);if(e.ensureAvailable())return e}function u(){return h.b.subState("objData")}function c(t){return new l.a(t,u().subState(t))}e.c=r,e.a=i,e.e=o,e.d=a,e.b=s;var l=n(174),f=n(53),d=n(7),h=n(4)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}n.d(e,"d",function(){return l}),n.d(e,"e",function(){return f}),n.d(e,"b",function(){return d}),n.d(e,"c",function(){return h}),n.d(e,"a",function(){return p});var i=n(24),o=n(3),a=n(32),s=n(34),u=n(54),c=n(26),l=i.a.irreducible("Obj",function(t){return r(t&&t._scrivitoPrivateContent,o.default)}),f=i.a.irreducible("Widget",function(t){return r(t&&t._scrivitoPrivateContent,a.a)}),d=i.a.irreducible("Link",function(t){return r(t&&t._scrivitoPrivateContent,s.a)}),h=i.a.irreducible("ObjSearch",function(t){return r(t._scrivitoPrivateContent,u.b)}),p=i.a.irreducible("Binary",function(t){return r(t,c.a)})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(){var t=M.current();return t||o(d())}function o(t){var e=t.objId;if(null===e)return e;if(e)try{return scrivito.loadWithDefault(void 0,function(){var t=Object(P.a)().appModelAccessor,n=Object(P.a)().Obj,r=t.getObj(n,e);if(r)return r;throw new A.ResourceNotFoundError('Obj with id "'.concat(e,'" not found.'))})}catch(t){return void Object(D.a)(function(){return y(R,t)})}}function a(t,e){return M.runWith(t,e)}function s(){return d().queryParameters||{}}function u(){return d().error}function c(t){l(t,function(t){var e=t.obj,n=t.queryParameters,r=t.hash;e&&Object(L.e)({obj:e,queryParameters:n,hash:r})})}function l(t,e){if(!Object(E.isFunction)(t))throw new A.ArgumentError("Parameter fn needs to be a function.");var n=p(),i=Object(T.a)(t).then(function(t){if(t.obj)return Object(T.a)(function(){return g(t.obj,t.queryParameters,t.hash)}).then(function(t){var r=t.obj,i=t.url,o=t.queryParameters,a=t.hash;i?v(n,function(){e&&e({obj:r,queryParameters:o,hash:a}),scrivito.changeLocation(i)}):v(n,function(){e&&e({obj:r,queryParameters:o,hash:a}),m({obj:r,queryParameters:o,hash:a})})});y(n,new A.CurrentPageNotFoundError)}).catch(function(t){r(t,A.NavigateToEmptyBinaryError)||(Object(D.b)(t),y(n,t))});Object(N.b)(i)}function f(){return I.a.subState("currentPage")}function d(){return f().get()||{}}function h(t){f().set(t)}function p(){return R+=1}function v(t,e){R===t&&e()}function y(t,e){v(t,function(){h({objId:null,error:e}),b(null)})}function m(t){var e=t.obj,n=t.queryParameters,r=t.hash,i=e&&e.id()||null;h({objId:i,queryParameters:n,hash:r}),b(i)}function b(t){q.b&&q.b.setCurrentPageId(t)}function g(t,e,n){return k(t),null===t?{}:r(t,x.default)?w(t,e,n):r(t,S.a)?_(t,e,n):void 0}function w(t,e,n){if(O(t)){var r=t.get("blob",["binary"]);if(!r)throw new A.NavigateToEmptyBinaryError;return{url:r.url()}}return{obj:t,queryParameters:e,hash:n}}function _(t,e,n){if(t.isExternal())return{url:t.url()};var r={obj:t.obj(),queryParameters:t.queryParameters(),hash:t.hash()};return e&&!Object(E.isEmpty)(e)&&(r.queryParameters=e),n&&(r.hash=n),g(r.obj,r.queryParameters,r.hash)}function k(t){if(null!==t&&!r(t,x.default)&&!r(t,S.a)){if(!t)throw new A.ArgumentError("Missing target.");throw new A.ArgumentError("Target is invalid. Valid targets are instances of Obj or Link.")}}function O(t){var e=Object(P.a)().getClass(t.objClass());return!!e&&j.a.forClass(e).isBinary()}e.a=i,e.f=a,e.c=s,e.b=u,e.d=c,e.e=l;var E=n(0),x=(n.n(E),n(3)),C=n(69),j=n(42),S=n(34),A=n(1),T=n(7),N=n(81),P=n(61),L=n(72),I=n(4),D=n(37),q=n(17),R=0,M=new C.a},function(t,e,n){"use strict";function r(){return a}n.d(e,"a",function(){return r});var i=n(295),o=n(221),a={};i.a.init(a).setInitialContentFor(o.a)},function(t,e,n){"use strict";function r(){return Object(i.a)()._privateRealm._registry}n.d(e,"a",function(){return r});var i=n(61)},function(t,e,n){"use strict";function r(t){var e=t.routingBasePath;O=!0,y=e||""}function i(t){var e=t.obj,n=t.queryParameters,r=t.hash;return l("generate"),s({path:w.a(e),queryParameters:n,hash:r})}function o(t){var e=t.obj,n=t.queryParameters,r=t.hash;return l("generateRelative"),p({path:w.a(e),queryParameters:n,hash:r}).toString()}function a(t,e){var n=b()(e);return s({path:t,queryParameters:n.query(!0),hash:v(n)})}function s(t){var e=t.path,n=t.queryParameters,r=t.hash;l("generateUrl");var i=b()(_.c()).origin();return p({path:e,queryParameters:n,hash:r}).origin(i).toString()}function u(t){l("recognize");var e=null,n=b()(t),r=c(n);return Object(g.isString)(r)&&(e=w.c(r)),{path:r,obj:e,queryParameters:n.query(!0),hash:v(n)}}function c(t){return d(t)?h(t):null}function l(t){if(!O)throw scrivito.logError("Error from Scrivito SDK: No application configured, cannot initialize routing."),new k.InternalError("".concat(t," can't be called before init."))}function f(t){return d(b()(t))}function d(t){if(!t.is("absolute"))return!0;var e=b()(_.c()).origin();return t.origin()===e}function h(t){var e=t.path();return e.substring(0,y.length)!==y?null:e.substring(y.length)}function p(t){var e=t.path,n=t.queryParameters,r=t.hash,i="/".concat(y,"/").concat(e).replace(/\/+/g,"/"),o=b()("").pathname(i);return n&&o.query(n),r&&o.hash(r),o}function v(t){var e=t.hash();return""===e?null:e}e.e=r,e.a=i,e.c=o,e.b=a,e.d=s,e.h=u,e.i=c,e.g=f,e.f=d;var y,m=n(33),b=n.n(m),g=n(0),w=(n.n(g),n(223)),_=n(70),k=n(1),O=!1},,function(t,e){t.exports=function(t){return"string"==typeof t}},function(t,e){t.exports=function(t){return!0===t||!1===t}},function(t,e,n){var r=n(16),i=n(10);t.exports=r("Function",i)},,function(t,e,n){"use strict";var r=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}();e.a=r},function(t,e,n){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).devicePixelRatio||1}function i(){return window.location}function o(t){window.location.assign(t)}function a(){return window.screen}function s(){return document}n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"b",function(){return s})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(26),u=n(39),c=n(59),l=n(4),f=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t);var r;if(e.idToCopy)this.idToCopy=e.idToCopy,this.contentType=n.contentType,r=n.filename;else{var o=e.source;this.source=o,this.contentType=n.contentType||o.type,r=n.filename||o.name}r&&(this.filename=r.replace(/[^\w\-_\.$]/g,"-"))}return a(t,[{key:"into",value:function(t){return d(t),Object(l.d)("Changing CMS content"),this.intoId(t.id())}},{key:"intoId",value:function(t){var e;return e=this.idToCopy?scrivito.BinaryRequest.copy(this.idToCopy,t,this.filename,this.contentType):scrivito.BinaryRequest.upload(t,this.source,this.filename,this.contentType),e.then(function(t){var e=t.id;return new s.a(e,!1)})}}]),t}(),d=Object(u.a)("FutureBinary#into",[["target",c.d]],{docPermalink:"js-sdk/FutureBinary-into"});e.a=f},function(t,e,n){"use strict";function r(t){y.push(t)}function i(t){var e=t.obj,n=t.queryParameters,r=t.hash,i=r||null,o={scrivitoObjId:e.id(),scrivitoQueryParameters:n,scrivitoHash:i},a=Object(k.c)({obj:e,queryParameters:n,hash:i}),s=y.location.state;d(s)&&s.scrivitoObjId===o.scrivitoObjId&&s.scrivitoHash===o.scrivitoHash&&Object(b.isEqual)(s.scrivitoQueryParameters,o.scrivitoQueryParameters)||p(function(){return y.push(a,o)})}function o(t){var e=t.obj,n=t.queryParameters,r=t.hash,i=r||null,o={scrivitoObjId:e.id(),scrivitoQueryParameters:n,scrivitoHash:i},a=Object(k.c)({obj:e,queryParameters:n,hash:i});p(function(){return y.replace(a,o)})}function a(){Object(O.d)(function(){var t=h(y.location),e=t.obj,n=t.queryParameters,r=t.hash;return e?{obj:e,queryParameters:n,hash:r}:{queryParameters:n,hash:r}})}function s(){x||(l(),x=!0)}function u(){m&&m(),Object(O.e)(function(){return{obj:null}}),x=!1}function c(t){if("/"!==t.createHref({pathname:"/"}))throw new _.ArgumentError("Expected a history without a preconfigured basename. For further details, see: https://www.scrivito.com/js-sdk/useHistory");y=t,x&&l()}function l(){m&&m(),v(),m=y.listen(function(t,e){if(!E){if("POP"===e){f({state:t.state})}"REPLACE"===e&&Object(O.d)(function(){return h(t)}),"PUSH"===e&&Object(O.d)(function(){return h(t)})}}),a()}function f(t){var e=t.state;if(!d(e))return void a();var n=e.scrivitoObjId,r=e.scrivitoHash,i=e.scrivitoQueryParameters;Object(O.d)(function(){return{obj:w.default.get(n),queryParameters:i,hash:r}})}function d(t){return t&&void 0!==t.scrivitoObjId}function h(t){var e=t.pathname,n=t.search,r=t.hash;return Object(k.h)(""+e+n+r)}function p(t){E=!0,t(),E=!1}function v(){y||(y=Object(g.a)())}e.c=r,e.d=i,e.e=o,e.a=s,e.b=u,e.f=c;var y,m,b=n(0),g=(n.n(b),n(303)),w=n(3),_=n(1),k=n(63),O=n(60),E=!1,x=!1},function(t,e,n){(function(e){/*!
14
+ /*!
15
+ * URI.js - Mutating URLs
16
+ *
17
+ * Version: 1.19.1
18
+ *
19
+ * Author: Rodney Rehm
20
+ * Web: http://medialize.github.io/URI.js/
21
+ *
22
+ * Licensed under
23
+ * MIT License http://www.opensource.org/licenses/mit-license
24
+ *
25
+ */
26
+ !function(a,s){"use strict";"object"==typeof t&&t.exports?t.exports=s(n(114),n(115),n(116)):(i=[n(114),n(115),n(116)],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 y(t){return escape(t)}function v(t){return encodeURIComponent(t).replace(/[!'()*]/g,y).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=v,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=v,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 m,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(m in g)o[m+"PathSegment"]=b("pathname",g[m]),o[m+"UrnPathSegment"]=b("urnpath",g[m]);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 k(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 y=s.exec(p);if(!y)break;var v=y.index+y[0].length;h=Math.max(h,v)}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 m=e(p,c,d=c+p.length,t);void 0!==m?(m=String(m),t=t.slice(0,c)+m+t.slice(d),r.lastIndex=c+m.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(!(function(t){return/^[0-9]+$/.test(t)}(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=k("query","?"),a.fragment=k("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 O=a.protocol,x=a.port,E=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 O.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 E.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 C=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):C.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=v,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})},function(t,e,n){var r=n(26),i=n(41),o=n(156),a=n(102);function s(t,e){!0!==t&&(r(e)?e=e():i(e)&&(e='Assert failed (turn on "Pause on exceptions" in your Source panel)'),s.fail(e))}s.fail=o,s.stringify=a,t.exports=s},function(t,e,n){"use strict";var r=n(2),i=n.n(r),o=n(5),a=n(0),s=n(6),u=n(75);var l=function(t){return t.displayName||t.name};var c=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),f=r.createContext(s.j),d=function(t){function e(e){var n=t.call(this,e)||this;return n.childListeners=new s.a,n.subscribeChild=n.subscribeChild.bind(n),n.notifyListeners=n.notifyListeners.bind(n),n}return c(e,t),e.prototype.render=function(){var t=this;return r.createElement(r.Fragment,null,r.createElement(f.Provider,{value:this.subscribeChild},this.props.children),r.createElement(f.Consumer,null,function(e){return r.createElement(p,{subscribe:e,listener:t.notifyListeners})}))},e.prototype.notifyListeners=function(){this.props.listener(),this.childListeners.notify()},e.prototype.subscribeChild=function(t){return this.childListeners.subscribe(t)},e}(r.Component),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.render=function(){return null},e.prototype.componentDidMount=function(){this.unsubscribe=this.props.subscribe(this.props.listener)},e.prototype.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe()},e}(r.Component);function h(t){if(r.isValidElement(t))return t.props.__scrivitoForwardElementType||t.type}var y=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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=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};function m(t){if("function"!=typeof t)throw new a.b("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)?g(t):g(function(t){var e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return y(n,e),n.prototype.render=function(){return t(this.props)},n}(r.Component);return e.displayName=l(t),e}(t))}function g(t){var e,n=((e=function(t){function e(e){var n=t.call(this,e)||this;return n._scrivitoPrivateConnector=new b(n),n}return y(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 b=function(){function t(t){this.component=t,this.isMounted=!1,this.updateIfNecessary=this.updateIfNecessary.bind(this),this.loadingSubscriber=new o.c}return t.prototype.componentDidMount=function(){if(this.isMounted=!0,this.onMount){var t=this.onMount.bind(this);delete this.onMount,t()}this.updateIfNecessary()},t.prototype.componentWillUnmount=function(){this.unregisterLoadingActivity(),this.isMounted=!1,this.loadingSubscriber.unsubscribe()},t.prototype.render=function(t){var e=this,n=Object(s.k)(function(){return e.renderLoadingAware(t)});this.isStateChangeDetected=n.detector;var i=n.result;return r.createElement(d,v({listener:this.updateIfNecessary},function(t){return{__scrivitoForwardElementType:h(t)}}(i)),i)},t.prototype.renderLoadingAware=function(t){var e=this;if(Object(o.g)())return w(t);var n=Object(o.e)(function(){return w(t)});return this.whenMounted(function(){n.subscribeLoading(e.loadingSubscriber),n.isAllDataLoaded()?e.unregisterLoadingActivity():e.unregisterLoadingActivityCallback||(e.unregisterLoadingActivityCallback=Object(u.b)())}),n.isAllDataLoaded()?n.result:this.handleLoading(n.result)},t.prototype.whenMounted=function(t){this.isMounted?t():this.onMount=t},t.prototype.handleLoading=function(t){return function(t){return!!t._scrivitoRenderWhileLoading}(this.component)?this.component._scrivitoRenderWhileLoading():t},t.prototype.unregisterLoadingActivity=function(){var t=this.unregisterLoadingActivityCallback;t&&(delete this.unregisterLoadingActivityCallback,t())},t.prototype.updateIfNecessary=function(){this.isStateChangeDetected&&this.isStateChangeDetected()&&this.component.forceUpdate()},t}();function w(t){var e=Object(o.o)(function(){return Object(s.n)({contextName:"React.Component#render",message:"Use one of the React lifecycle hooks."},t)});return e.success?e.result:null}var _=n(3);function k(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function O(t){if(k(t,_.BasicObj))return t.id();if(k(t,_.BasicWidget))return"".concat(t.obj().id(),"|").concat(t.id());var e=Object(a.L)(t).substr(0,100);throw new a.j('keyForBasicContent called with "'.concat(e,'". Expected an instance of')+" BasicObj or BasicWidget.")}var x={};function E(t,e){x[t]=e}function C(t){return x[t]||null}function S(t){return C(j(t))}function j(t){return"appClass-".concat(t)}var T,A=n(12),N=n(1),P=0,R={};function L(t){return function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,_.BasicObj)?{objId:t.id()}:{objId:t.obj().id(),widgetId:t.id()}}var I=n(92),D=n(78),M=n(9),B=n(23);var q=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),F=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};function z(){if(!M.b)throw new Error("MenuMarker is not expected to be rendered without UI");return M.b}var U=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._onTouchStart=n._onTouchStart.bind(n),n._onTouchEnd=n._onTouchEnd.bind(n),n._startDrag=n._startDrag.bind(n),n._finishDrag=n._finishDrag.bind(n),n}return q(e,t),e.prototype.render=function(){var t=this,e={onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd};return function(){var t=B.e().userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)}()||(e.onDragStart=this._onDragStart,e.onDragEnd=this._onDragEnd),r.createElement("span",F({ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,draggable:!0},e),r.createElement("i",{className:"scrivito_icon"}),r.createElement("span",{className:"scrivito_editing_marker_title"},this._title()))},e.prototype._onClick=function(t){if(t.preventDefault(),t.stopPropagation(),this._menuMarker){var e=L(this.props.widget),n=e.objId,r=e.widgetId;z().showWidgetMenu(this._menuMarker,n,r)}},e.prototype._onDragStart=function(t){Object(I.a)(t),this._startDrag()},e.prototype._onDragEnd=function(){this._finishDrag()},e.prototype._onTouchStart=function(){this._startDrag()},e.prototype._onTouchEnd=function(t){t.stopPropagation(),t.preventDefault(),this._finishDrag()},e.prototype._title=function(){var t=L(this.props.widget),e=t.objId,n=t.widgetId;return Object(D.a)(e,n)},e.prototype._startDrag=function(){var t=L(this.props.widget),e=t.objId,n=t.widgetId;z().onDragStart(e,n),this.props.setDragState(!0)},e.prototype._finishDrag=function(){z().onDragEnd(),this.props.setDragState(!1)},e.displayName="Scrivito.ContentTag.MenuMarker",e}(r.Component));function H(t){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function W(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function K(t){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Q(t,e){return(Q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var G=function(t){function e(t){var n;return W(this,e),(n=function(t,e){return!e||"object"!==H(e)&&"function"!=typeof e?$(t):e}(this,K(e).call(this,t)))._onClick=n._onClick.bind($($(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Q(t,e)}(e,i.a.Component),function(t,e,n){e&&V(t.prototype,e),n&&V(t,n)}(e,[{key:"render",value:function(){var t="scrivito_option_marker scrivito_".concat(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"}))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)}}]),e}();G.displayName="Scrivito.OptionMarker";var Y=m(G),Z=n(10),X=n(34),J=n(16),tt=!1;function et(){tt=!0}var nt=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),rt=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},it=r.createContext(void 0),ot=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 nt(e,t),e.prototype.componentDidMount=function(){this.registerDropZone(),this.focusToken=function(t){var e=P;return R[e]=t,P+=1,e}({onFocus:this.onWidgetFocus,onBlur:this.onWidgetBlur})},e.prototype.componentDidUpdate=function(){this.widgetRef!==this.dropZoneWidgetRef&&this.registerDropZone()},e.prototype.componentWillUnmount=function(){!function(t){delete R[t]}(this.focusToken)},e.prototype.render=function(){var t=this;if(!this.props.widget)throw new a.o("Detected inappropriate placing of Scrivito.WidgetTag: It is intended to be used exclusively as top-level element inside a Widget component.");return Object(X.a)()?r.createElement(this.props.tag,Object(N.extend)(this.editingModeForwardedProps(),{ref:function(e){return t.widgetRef=e},className:this.className(),style:this.style(),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:[r.createElement(U,{key:"menuMarker",widget:this.props.widget,setDragState:this.setDragState,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})].concat(r.Children.toArray(this.props.children),[this.renderOptionMarker("top"),this.renderOptionMarker("bottom")])},this.dataProps())):r.createElement(this.props.tag,this.forwardedProps())},e.prototype.forwardedProps=function(){return Object(N.omit)(this.props,"tag","widget")},e.prototype.editingModeForwardedProps=function(){return Object(N.omit)(this.forwardedProps(),"className","style")},e.prototype.setDragState=function(t){this.setState({isDragging:t})},e.prototype.className=function(){return this.hasVisibleFocus()?this.props.className?this.props.className+" scrivito_active scrivito_entered":"scrivito_active scrivito_entered":this.props.className},e.prototype.hasVisibleFocus=function(){return this.state.hasFocus&&!this.state.isFocusFadedOut},e.prototype.dataProps=function(){var t={"data-scrivito-private-widget":"true","data-scrivito-private-dropzone":"true"};return this.isStructureMarker()&&(t["data-scrivito-private-structure-widget"]="true"),this.state.isDragging&&(t["data-scrivito-private-dropback"]="true"),t},e.prototype.style=function(){return this.state.isDragging?this.props.style?Object(N.extend)(this.props.style,{opacity:.5}):{opacity:.5}:this.props.style},e.prototype.isStructureMarker=function(){var t=Object(J.a)(),e=this.props.widget;if(e){var n=t.widgetClassFor(e.objClass()),r=Z.b.forClass(n);if(r)return Object(N.some)(r.attributes,function(t,e){return"widgetlist"===t[0]})}return!1},e.prototype.onMouseOver=function(t){t.stopPropagation(),function(t){var e=R[T=t];e&&e.onFocus()}(this.focusToken)},e.prototype.onMouseOut=function(t){t.stopPropagation(),function(t){if(t===T){var e=R[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.isStructureMarker()||(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(Y,{key:"optionMarker-"+t,position:t,widget:this.props.widget,insertWidget:at,isAlwaysShown:tt,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})},e.prototype.registerDropZone=function(){if(Object(X.a)()&&this.widgetRef){var t=L(this.props.widget),e=t.objId,n=t.widgetId,r=A.findDOMNode(this.widgetRef);M.b.registerWidgetDropZoneInDom(r,e,n),this.dropZoneWidgetRef=this.widgetRef}},e.displayName="Scrivito.WidgetTag",e.defaultProps={tag:"div"},e}(r.Component);function at(t,e){var n=L(t),r=n.objId,i=n.widgetId;M.b.insertWidget(r,i,e)}var st,ut=m(function(t){return r.createElement(it.Consumer,null,function(e){return r.createElement(ot,rt({widget:e},Object(N.omit)(t,"widget")))})});function lt(t){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ct(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dt(t,e){return!e||"object"!==lt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pt(t,e,n){return(pt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ht(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function ht(t){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function yt(t,e){return(yt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vt(t,e){!function(t){if("function"!=typeof t)throw new a.b("Scrivito.provideComponent expected a valid React component"+", but received ".concat(Object(a.L)(t)))}(e),function(t){return!(t.displayName||t.name&&"_class"!==t.name)}(e)&&(e.displayName=t),function(t,e){E(j(t),e)}(t,function(t){var e=function(t){function e(){return ct(this,e),dt(this,ht(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");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yt(t,e)}(e,t),function(t,e,n){e&&ft(t.prototype,e),n&&ft(t,n)}(e,[{key:"render",value:function(){if(this.props.widget){var t=pt(ht(e.prototype),"render",this).call(this);return h(t)!==ut?i.a.createElement(ut,{children:t}):t}return pt(ht(e.prototype),"render",this).call(this)}}]),e}(t);return e.displayName=l(t),e}(m(e)))}function mt(t,e){E(t,m(e))}function gt(){var t=window.navigator.userAgent;return t.indexOf("MSIE")>=0||t.indexOf("Trident")>=0}function bt(t,e){if(!t._scrivitoResizeListeners){t._scrivitoResizeListeners=[],t.style.position="relative";var n=function(){var t=document.createElement("object");return t.type="text/html",t.onload=wt,t.style.display="block",t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex=-1,t}();n.resizeElement=t,t._scrivitoResizeTrigger=n,gt()&&t.appendChild(n),n.data="about:blank",gt()||t.appendChild(n)}t._scrivitoResizeListeners.push(e)}function wt(){this.contentDocument.defaultView._scrivitoResizeTrigger=this.resizeElement,this.contentDocument.defaultView.addEventListener("resize",_t)}function _t(t){var e=(t.target||t.srcElement)._scrivitoResizeTrigger;e._scrivitoResizeListeners.forEach(function(n){return n(e,t)})}function kt(t,e){var n=C(t);!function(t,e){if(!t)throw new a.b('Component with ID "'.concat(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=_.BasicObj.get(t.objId).widget(t.widgetId);return{widget:Object(Z.f)(Object(J.a)(),e)}}(t);if(t.objId)return function(t){var e=_.BasicObj.get(t.objId),n=Object(Z.f)(Object(J.a)(),e);return{obj:n,page:n}}(t)}(e);st?Object(A.render)(i.a.createElement(n,r),st):(bt(st=function(t,e,n){var r=t.createElement("div");return t.body.innerHTML="",t.body.appendChild(r),Object(A.render)(i.a.createElement(e,n),r),r}(Object(B.b)(),n,r),function(){return M.b.notifyDocumentResize()}),M.b.notifyDocumentResize())}var Ot=n(50),xt=n(53),Et=n(33),Ct=n(118);function St(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var jt=function(){var t=Object.setPrototypeOf||St({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),Tt=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},At=a.R.struct({image:a.R.String,attachment:a.R.maybe(a.R.String),clip:a.R.maybe(a.R.String),color:a.R.maybe(a.R.String),origin:a.R.maybe(a.R.String),position:a.R.maybe(a.R.String),repeat:a.R.maybe(a.R.String),size:a.R.maybe(a.R.String)}),Nt=a.R.struct({image:a.R.union([_.BinaryType,_.ObjType,a.R.String,a.R.Nil]),attachment:a.R.maybe(a.R.enums.of(["fixed","scroll"])),clip:a.R.maybe(a.R.enums.of(["border-box"])),color:a.R.maybe(a.R.enums.of(["transparent"])),origin:a.R.maybe(a.R.enums.of(["padding-box"])),position:a.R.maybe(a.R.enums.of(["center","left","right","top","bottom"])),repeat:a.R.maybe(a.R.enums.of(["no-repeat"])),size:a.R.maybe(a.R.enums.of(["contain","cover"]))}),Pt=a.R.union([At,Nt]);Pt.dispatch=function(t){return Ft(t)?At:Nt};var Rt=a.R.list(Pt),Lt=a.R.union([Pt,Rt]);Lt.dispatch=function(t){return Object(N.isArray)(t)?Rt:Pt};var It=m(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.render=function(){var t=this.props.tag,e=Object(N.omit)(this.props,"style","tag"),n=this.props.style;return function(t){if(Object(N.isObject)(t))for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e];if(r.match(/^background.+/))throw new a.b('Invalid background related CSS property "'+r+'". Expected property "background" alongside with any non-background propertiesFor further details, see https://www.scrivito.com/js-sdk/background-image-tag')}}(n),r.createElement(t,Tt({},e,{style:function(t){return Object(N.extend)(Object(N.omit)(t,"background"),function(t){if(void 0===t)return{};if(Object(N.isArray)(t))return function(t){return{backgroundImage:Dt(t,"backgroundImage"),backgroundAttachment:Dt(t,"backgroundAttachment"),backgroundClip:Dt(t,"backgroundClip"),backgroundOrigin:Dt(t,"backgroundOrigin"),backgroundPosition:Dt(t,"backgroundPosition"),backgroundRepeat:Dt(t,"backgroundRepeat"),backgroundSize:Dt(t,"backgroundSize"),backgroundColor:function(t){var e=Object(N.last)(t);if(e)return e.backgroundColor}(t)}}(t.map(Mt));return Mt(t)}(t.background))}(n)}))},e.displayName="Scrivito.BackgroundImageTag",e.propTypes=Object(Ct.propTypes)({tag:a.R.maybe(a.R.String),style:a.R.maybe(a.R.interface({background:a.R.maybe(Lt)},{strict:!1}))},{strict:!1}),e.defaultProps={tag:"div",style:{}},e}(r.Component));function Dt(t,e){return Object(N.pluck)(t,e).join(", ")}function Mt(t){return Ft(t)?Bt(t):function(t){var e=t.image;if(St(e,_.Binary))return qt(e,t);if(St(e,Object(Et.a)().Obj)){var n=Object(Z.e)(e);if(Object(Ot.a)(n)){var r=n.get("blob",["binary"]);if(r)return qt(r,t)}}return Bt({image:"none"})}(t)}function Bt(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 qt(t,e){return{backgroundImage:"url("+Object(xt.a)(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 Ft(t){return Object(N.isString)(t.image)}var zt=n(37),Ut=n(61),Ht=2;function Wt(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.which===Ht}var Vt=n(52),Kt=n(51);function Qt(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var $t=function(){var t=Object.setPrototypeOf||Qt({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),Gt=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};function Yt(t){if(t){var e=Object(Z.e)(t);return Qt(e,_.BasicLink)?e:void 0}}var Zt=m(function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return $t(e,t),e.prototype.render=function(){return r.createElement("a",Gt({},this.linkProps()),this.props.children)},e.prototype.linkProps=function(){var t=Object(N.omit)(this.props,"to");return t.href=this.href(),t.onClick=this.onClick,t.rel=this.rel(),t.target=this.target(),t},e.prototype.href=function(){return this.url()||"#"},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.url();if(n){var r=this.target();"_blank"===r||Wt(t)?this.openLinkInNewWindow(n):r?Object(Kt.c)(n,r):Object(Ut.a)(e)}}else Object(Kt.b)(e)}},e.prototype.openLinkInNewWindow=function(t){M.b?M.b.openInNewWindow(t):Object(Kt.b)(t)},e.prototype.target=function(){if(this.props.target)return this.props.target;var t=Yt(this.props.to);return t&&t.target()},e.prototype.rel=function(){if("rel"in this.props)return this.props.rel;var t=Yt(this.props.to);return t&&t.rel()},e.prototype.url=function(){var t=this.props.to;if(t){if("string"==typeof t)return t;var e=Object(Z.e)(t);return Qt(e,_.BasicObj)||Qt(e,_.BasicLink)?Object(Vt.a)(e):void 0}},e.displayName="Scrivito.LinkTag",e.propTypes=Object(Ct.propTypes)({to:a.R.maybe(a.R.union([_.ObjType,_.LinkType,a.R.String])),onClick:a.R.maybe(a.R.Function)},{strict:!1}),e}(r.Component));function Xt(t){var e=t.child,n=t.renderChild,r=Object(Et.a)().appModelAccessor.wrapInAppClass(e);return n?n(r):i.a.createElement("li",null,i.a.createElement(Zt,{to:r},e.get("title","string")))}Xt.displayName="Scrivito.ChildListTag.ChildItem";var Jt=m(Xt);function te(t){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ee(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function re(t){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ie(t,e){return(ie=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function oe(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var ae=function(t){function e(t){var n;return ee(this,e),(n=function(t,e){return!e||"object"!==te(e)&&"function"!=typeof e?oe(t):e}(this,re(e).call(this,t)))._onClick=n._onClick.bind(oe(oe(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ie(t,e)}(e,i.a.Component),function(t,e,n){e&&ne(t.prototype,e),n&&ne(t,n)}(e,[{key:"render",value:function(){var t=this;return i.a.createElement("span",{ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick},i.a.createElement("i",{className:"scrivito_icon"}),i.a.createElement("span",{className:"scrivito_editing_marker_title"},this.props.parent.objClass()))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this._menuMarker&&M.b.showChildListMenu(Object(A.findDOMNode)(this._menuMarker),this.props.parent.id())}}]),e}();ae.displayName="Scrivito.ChildListTag.MenuMarker";var se=m(ae);function ue(t){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function le(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ce(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function de(t){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function pe(t,e){return(pe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function he(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var ye=function(t){function e(t){var n;return ce(this,e),(n=function(t,e){return!e||"object"!==ue(e)&&"function"!=typeof e?he(t):e}(this,de(e).call(this,t))).state={hasFocus:!1},n._onMouseOver=n._onMouseOver.bind(he(he(n))),n._onMouseOut=n._onMouseOut.bind(he(he(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pe(t,e)}(e,i.a.Component),function(t,e,n){e&&fe(t.prototype,e),n&&fe(t,n)}(e,[{key:"render",value:function(){var t=this,e=this.props.parent||Object(zt.a)();if(!e)return null;e=e._scrivitoPrivateContent;var n,r=Object(N.omit)(this.props,"parent","tag","renderChild");return Object(X.a)()&&(r.onMouseOver=this._onMouseOver,r.onMouseOut=this._onMouseOut,r["data-scrivito-private-child-list-path"]=!0,this.state.hasFocus&&(r.className="scrivito_active scrivito_entered ".concat(r.className)),n=i.a.createElement(se,{key:"menuMarker",parent:e})),i.a.createElement(this.props.tag,r,[n].concat(le(e.orderedChildren().map(function(e){return i.a.createElement(Jt,{key:e.id(),child:e,renderChild:t.props.renderChild})}))))}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),this.setState({hasFocus:!0})}},{key:"_onMouseOut",value:function(t){t.stopPropagation(),this.setState({hasFocus:!1})}}]),e}();ye.displayName="Scrivito.ChildListTag",ye.defaultProps={tag:"ul"};var ve=m(ye),me=n(56),ge=n(28),be=n(13),we=n(21);function _e(t){return function t(e,n,r){if(e===n)return null;if(function(t){return"A"===t.nodeName}(e)){var i=e.href,o=be(i);return Object(we.e)(o)?r||"_blank"===e.getAttribute("target")?{openInNewWindow:i}:{openInCurrentWindow:o.resource()}:null}if(!e.parentNode)return null;return t(e.parentNode,n,r)}(t.target,t.currentTarget,Wt(t))}var ke=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),Oe=function(t){function e(e){var n=t.call(this,e)||this;return n.state={hasError:!1},n}return ke(e,t),e.prototype.componentDidCatch=function(t){Object(a.T)(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(X.a)()?Ee(this.props.widget,r.createElement(ut,null,r.createElement("div",{className:"content_error"},"Widget could not be rendered due to application error."))):Ee(this.props.widget,r.createElement(ut,null)):r.createElement(xe,{widget:this.props.widget,widgetProps:this.props.widgetProps})},e.displayName="Scrivito.ContentTag.WidgetContent",e}(r.Component),xe=function(t){function e(e){return t.call(this,e)||this}return ke(e,t),e.prototype.render=function(){return Ee(this.props.widget,r.createElement(this.getAppWidgetComponent(),this.getAppWidgetProps()))},e.prototype.getAppWidgetComponent=function(){var t=this.props.widget.objClass(),e=S(t);if(!e)throw new a.b('No component registered for widget class "'+t+'"');return e},e.prototype.getAppWidgetProps=function(){var t={widget:Object(Z.f)(Object(J.a)(),this.props.widget)},e=this.props.widgetProps;return e&&e.hasOwnProperty("widget")&&(Object(a.T)(new a.b('The prop "widget" is not allowed inside "widgetProps"')),e=Object(N.omit)(e,"widget")),Object(N.extend)(t,e),t},e}(r.Component);function Ee(t,e){return r.createElement(it.Provider,{value:t,children:e})}var Ce=m(Oe);function Se(t){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function je(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function Te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ae(t){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ne(t,e){return(Ne=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Pe(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Re=function(t){function e(t){var n;return je(this,e),(n=function(t,e){return!e||"object"!==Se(e)&&"function"!=typeof e?Pe(t):e}(this,Ae(e).call(this,t)))._onClick=n._onClick.bind(Pe(Pe(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ne(t,e)}(e,i.a.Component),function(t,e,n){e&&Te(t.prototype,e),n&&Te(t,n)}(e,[{key:"componentDidMount",value:function(){if(this._widgetPlaceholder){var t=Object(A.findDOMNode)(this._widgetPlaceholder),e=L(this.props.field.container()),n=e.objId,r=e.widgetId,i=this.props.field.name();M.b.registerEmptyWidgetlistDropZoneInDom({domNode:t,objId:n,widgetId:r,attributeName:i})}}},{key:"render",value:function(){var t=this;return i.a.createElement("div",{ref:function(e){return t._widgetPlaceholder=e},className:"scrivito_empty_widget_field","data-scrivito-private-dropzone":"true",onClick:this._onClick})}},{key:"_onClick",value:function(t){if(t.preventDefault(),t.stopPropagation(),this._widgetPlaceholder){var e=this.props.field.name(),n=L(this.props.field.container()),r=n.objId,i=n.widgetId;M.b.showWidgetlistMenu(Object(A.findDOMNode)(this._widgetPlaceholder),{objId:r,widgetId:i,attributeName:e,mousePosition:{x:t.pageX,y:t.pageY}})}}}]),e}();Re.displayName="Scrivito.ContentTag.WidgetlistPlaceholder";var Le=m(Re);function Ie(){return!!M.b&&M.b.isComparisonActive()}function De(t){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Me(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function Be(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qe(t){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Fe(t,e){return(Fe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ze(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Ue=function(t){function e(t){var n;return Me(this,e),(n=function(t,e){return!e||"object"!==De(e)&&"function"!=typeof e?ze(t):e}(this,qe(e).call(this,t)))._onClick=n._onClick.bind(ze(ze(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fe(t,e)}(e,i.a.Component),function(t,e,n){e&&Be(t.prototype,e),n&&Be(t,n)}(e,[{key:"render",value: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})}}},{key:"_renderHtml",value:function(){return this.props.children?this._renderContent({children:this.props.children}):this._renderContent({props:{dangerouslySetInnerHTML:{__html:Object(me.a)(Ie()&&this._fieldDiffContent()||this._attributeValue())},onClick:this._onClick}})}},{key:"_renderString",value:function(){if(this.props.children)return this._renderContent({children:this.props.children});if(Ie()){var t=this._fieldDiffContent();if(t)return this._renderContent({props:{dangerouslySetInnerHTML:{__html:t}}})}return this._renderContent({children:this._attributeValue()})}},{key:"_renderNumber",value:function(){var t=this.props.children||this._attributeValue();return this._renderContent({children:t})}},{key:"_renderWidgetlist",value:function(){var t,e=this,n=this._attributeValue();return n.length?t=n.map(function(t){return i.a.createElement(Ce,{key:t.id(),widget:t,widgetProps:e.props.widgetProps})}):Object(X.a)()&&(t=i.a.createElement(Le,{field:this.props.field})),this._renderContent({children:t})}},{key:"_renderContent",value:function(t){var e=t.props,n=t.children,r=Object(N.extend)({},this.props.customProps,e,this._editingProps());return i.a.createElement(this.props.tag,r,n)}},{key:"_onClick",value:function(t){var e=_e(t);e&&(e.openInNewWindow?this._openInNewWindow(t,e):this._openInCurrentWindow(t,e))}},{key:"_openInNewWindow",value:function(t,e){var n=e.openInNewWindow;M.b&&(t.preventDefault(),t.stopPropagation(),M.b.openInNewWindow(n))}},{key:"_openInCurrentWindow",value:function(t,e){var n=e.openInCurrentWindow;t.preventDefault(),t.stopPropagation(),ge.c(n)}},{key:"_editingProps",value:function(){return this.props.onClick?{onClick:this.props.onClick,"data-scrivito-is-clickable":!0}:{}}},{key:"_attributeValue",value:function(){return this.props.field.get()}},{key:"_fieldDiffContent",value:function(){var t=this.props.field.getDiff();if(t&&"html"===t.format)return t.content}}]),e}();Ue.displayName="Scrivito.ContentTag.AttributeValue";var He=m(Ue),We=function(){function t(t){this._internalEvent=t}return t.prototype.preventDefault=function(){this._internalEvent.preventDefault()},t.prototype.stopPropagation=function(){this._internalEvent.stopPropagation()},t}();var Ve=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),Ke=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},Qe=m(function(t){function e(e){var n=t.call(this,e)||this;n._field=n.props.field,n.state={domMode:"None"},n._isPendingUpdate=!1,n._getContent=n._getContent.bind(n),n._setContent=n._setContent.bind(n),n._setDomMode=n._setDomMode.bind(n);var r=n.props.editorClass;if(r){var i={getContent:n._getContent,setContent:n._setContent,setDomMode:n._setDomMode};n._editor=new r({controller:i})}return n}return Ve(e,t),e.prototype.componentDidMount=function(){var t=this;this._editorWillBeActivated();var e=this._getContent();this._unsubscribe=Object(s.j)(function(){var n=t._getContent();if(!Object(a.y)(e,n)){if(e=n,t._isPendingUpdate&&t._pendingUpdateValue===n)return t._isPendingUpdate=!1,void(t._pendingUpdateValue=void 0);t._contentDidChange()}}),"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,Ke({},Object(N.omit)(this.props.customProps,"children"),{ref:function(t){e._editorComponent=t}}));var n=this._editor;n&&n.onClick&&(t=function(t){return n.onClick(new We(t))});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(He,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(A.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.e)(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.displayName="Scrivito.ContentTag.Editor",e}(r.Component)),$e=n(76);var Ge=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),Ye=m(function(t){function e(e){return t.call(this,e)||this}return Ge(e,t),e.prototype.render=function(){if(!this.props.content)return null;var t=Z.b.basicFieldFor(this.props.content,this.props.attribute);if(!t){var e=this.props.attribute;return Object(a.T)(new a.b('Component "Scrivito.ContentTag" received prop "attribute" with invalid value: Attribute "'+e+'" is not defined for content specified in prop "content".')),null}var n=t.type();if(!Ie()){var i=void 0,o=void 0,s=Object($e.a)({type:n,tag:this.props.tag});if(s&&(i=s.id,o=s.editorClass,Object(X.a)()))return r.createElement(Qe,{key:this.editorKey(i),field:t,editorClass:o,tag:this.props.tag,widgetProps:this.widgetProps(n),customProps:this.customProps(),content:this.props.content},this.props.children)}return r.createElement(He,{field:t,tag:this.props.tag,widgetProps:this.widgetProps(n),customProps:this.customProps()},this.props.children)},e.prototype.customProps=function(){return Object(N.omit)(this.props,"content","attribute","tag","widgetProps")},e.prototype.widgetProps=function(t){if(this.props.widgetProps){if("widgetlist"===t)return this.props.widgetProps;Object(a.T)(new a.b('The prop "widgetProps" is only allowed for widgetlist attributes'))}},e.prototype.editorKey=function(t){var e=Object(Z.e)(this.props.content);return[this.props.tag,O(e),this.props.attribute,t].join("|")},e.displayName="Scrivito.ContentTag",e.defaultProps={tag:"div"},e}(r.Component));function Ze(t){return(Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xe(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function Je(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tn(t,e){return!e||"object"!==Ze(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function en(t){return(en=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function nn(t,e){return(nn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var rn=function(t){function e(){return Xe(this,e),tn(this,en(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");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nn(t,e)}(e,i.a.Component),function(t,e,n){e&&Je(t.prototype,e),n&&Je(t,n)}(e,[{key:"render",value:function(){var t=Object(zt.a)(),e=Object(zt.c)();if(!t)return null;var n=t.objClass(),r=S(n);if(!r)throw new a.b('No component registered for obj class "'.concat(n,'"'));return i.a.createElement(r,{page:t,params:e})}}]),e}();rn.displayName="Scrivito.CurrentPage";var on=m(rn);function an(t){return(an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sn(){return(sn=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}).apply(this,arguments)}function un(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function ln(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cn(t,e){return!e||"object"!==an(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fn(t){return(fn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function dn(t,e){return(dn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var pn=function(t){function e(){return function(t,e){if(!un(t,e))throw new TypeError("Cannot call a class as a function")}(this,e),cn(this,fn(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");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&dn(t,e)}(e,i.a.Component),function(t,e,n){e&&ln(t.prototype,e),n&&ln(t,n)}(e,[{key:"render",value:function(){if(!this.props.content)return null;var t=Object(N.omit)(this.props,"content","attribute");if(un(this.props.content,_.Binary))return i.a.createElement("img",sn({src:Object(xt.a)(this.props.content)},t));var e,n=this._getBinary();return void 0===n?null:(null===n?(e="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",t["data-scrivito-image-placeholder"]=!0):e=Object(xt.a)(n),i.a.createElement(Ye,sn({attribute:this.props.attribute,content:this.props.content,tag:"img",src:e},t)))}},{key:"_getBinary",value:function(){var t=Z.b.forInstance(this.props.content);if(t){var e=t.attributes[this.props.attribute];if(e){var n=e[0];return"binary"===n?this.props.content.get(this.props.attribute):"reference"===n?this._getReferencedBinary():void Object(a.T)(new a.b('Component "Scrivito.ImageTag" received prop "content"'+' with an object, whose attribute "'.concat(this.props.attribute,'"')+' is of unexpected type "'.concat(n,'".')+' Valid attribute types are "binary" and "reference".'))}Object(a.T)(new a.b('Component "Scrivito.ImageTag" received prop "content"'+' with an object missing attribute "'.concat(this.props.attribute,'".')))}}},{key:"_getReferencedBinary",value:function(){var t=this.props.content.get(this.props.attribute);if(t){var e=t.get("blob");if(e)return e}return null}}]),e}();pn.displayName="Scrivito.ImageTag",pn.defaultProps={attribute:"blob"};var hn=m(pn),yn=function(t){var e=t.children;return Object(zt.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};yn.displayName="Scrivito.NotFoundErrorPage";var vn=m(yn);n.d(e,"k",function(){return m}),n.d(e,"l",function(){return l}),n.d(e,"m",function(){return O}),n.d(e,"n",function(){return vt}),n.d(e,"o",function(){return mt}),n.d(e,"p",function(){return kt}),n.d(e,"a",function(){return It}),n.d(e,"b",function(){return ve}),n.d(e,"c",function(){return Ye}),n.d(e,"d",function(){return on}),n.d(e,"e",function(){return hn}),n.d(e,"f",function(){return Zt}),n.d(e,"g",function(){return vn}),n.d(e,"h",function(){return Y}),n.d(e,"i",function(){return ut}),n.d(e,"j",function(){return et})},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(33);function i(){return Object(r.a)()._privateRealm._registry}},function(t,e,n){"use strict";t.exports=function(){}},function(t,e,n){"use strict";n.r(e),n.d(e,"ScrivitoError",function(){return i}),n.d(e,"ClientError",function(){return o}),n.d(e,"AccessDeniedError",function(){return a}),n.d(e,"ArgumentError",function(){return s}),n.d(e,"InternalError",function(){return u}),n.d(e,"MissingAuthError",function(){return l}),n.d(e,"RequestFailedError",function(){return c}),n.d(e,"ResourceNotFoundError",function(){return f}),n.d(e,"UnauthorizedError",function(){return d}),n.d(e,"TransformationSourceTooLargeError",function(){return p}),n.d(e,"TransformationSourceInvalidError",function(){return h}),n.d(e,"TranslationError",function(){return y}),n.d(e,"InterpolationError",function(){return v}),n.d(e,"InMemoryTenantUnsupportedOperationError",function(){return m});var r=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),i=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 r(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),o=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.httpCode=n,i.backendCode=r,i}return r(e,t),e.for=function(t,n,r){return"binary.unprocessable.image.transform.source.too_large"===r?new p(t,n,r):r&&-1!==r.indexOf("binary.unprocessable.image.transform.source.")?new h(t,n,r):new e(t,n,r)},e}(i),a=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return r(e,t),e}(o),s=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e}(i),u=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e}(i),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(i),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(i),f=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e}(i),d=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.details=i||{},o}return r(e,t),e}(o),p=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return r(e,t),e}(o),h=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return r(e,t),e}(o),y=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e}(u),v=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e}(y),m=function(t){function e(e){return t.call(this,e+" is not supported when using the in-memory tenant")||this}return r(e,t),e}(i)},function(t,e,n){"use strict";n.d(e,"b",function(){return p}),n.d(e,"a",function(){return a});var r=n(0),i=n(3),o={};function a(t,e){var n=o[t];if(n)return n[e]}var s=r.R.struct({value:r.R.String,title:r.R.String}),u=r.R.dict(r.R.String,r.R.struct({title:r.R.maybe(r.R.String),description:r.R.maybe(r.R.String),values:r.R.maybe(r.R.list(s))})),l=r.R.list(r.R.struct({title:r.R.String,component:r.R.maybe(r.R.String),properties:r.R.maybe(r.R.list(r.R.String))})),c=r.R.dict(r.R.String,r.R.union([i.LinkType,r.R.Date,r.R.Function,r.R.Nil,r.R.Number,r.R.String,r.R.list(i.LinkType),r.R.list(i.WidgetType),r.R.list(r.R.String)])),f=r.R.struct({attributes:r.R.maybe(u),propertiesGroups:r.R.maybe(l),title:r.R.maybe(r.R.String),description:r.R.maybe(r.R.String),thumbnail:r.R.maybe(r.R.String),titleForContent:r.R.maybe(r.R.Function),descriptionForContent:r.R.maybe(r.R.Function),hideInSelectionDialogs:r.R.maybe(r.R.Boolean),properties:r.R.maybe(r.R.list(r.R.String)),initialContent:r.R.maybe(c)}),d=Object(r.u)("provideEditingConfig",[["className",r.R.String],["editingConfig",f]],{docPermalink:"js-sdk/provideEditingConfig"});function p(t,e){d(t,e),o[t]=e}},,function(t,e,n){"use strict";n.d(e,"d",function(){return c}),n.d(e,"c",function(){return f}),n.d(e,"b",function(){return d}),n.d(e,"f",function(){return p}),n.d(e,"e",function(){return h}),n.d(e,"a",function(){return m});var r=n(13),i=n(1),o=n(59),a=n(23),s=n(0),u=(n(3),""),l=!1;function c(t){var e=(void 0===t?{}:t).routingBasePath;l=!0,u=e||""}function f(t){var e=t.obj,n=t.queryParameters,r=t.hash,i=t.origin;y("generateUrl");var a=v({path:o.a(e),queryParameters:n,hash:r});return i&&a.origin(i),a.toString()}function d(t){var e=t.path;return y("generatePath"),v({path:e})}function p(t){y("recognize");var e=r(t),n=function(t){if(h(t))return function(t){var e=t.path();if(e.substring(0,u.length)!==u)return null;return e.substring(u.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 h(t){return!t.is("absolute")||t.origin()===m()}function y(t){if(!l)throw Object(s.I)("Error from Scrivito SDK: No application configured, cannot initialize routing."),new s.j(t+" can't be called before init.")}function v(t){var e=t.path,n=t.queryParameters,i=t.hash,o=("/"+u+"/"+e).replace(/\/+/g,"/"),a=r("").pathname(o);return n&&a.query(n),i&&a.hash(i),a}function m(){return r(a.d()).origin()}},function(t,e,n){var r=n(27),i=n(57);t.exports=function(t){return r(t)?t.displayName:i(t)}},function(t,e,n){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).devicePixelRatio||1}function i(){return window.location}function o(){return window.navigator}function a(t){window.location.assign(t)}function s(){return window.history}function u(){return window.screen}function l(){return document}n.d(e,"a",function(){return r}),n.d(e,"d",function(){return i}),n.d(e,"e",function(){return o}),n.d(e,"f",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"g",function(){return u}),n.d(e,"b",function(){return l})},,function(t,e,n){(function(e){
27
+ /*!
15
28
  * Quill Editor v1.3.5
16
29
  * https://quilljs.com/
17
30
  * Copyright (c) 2014, Jason Chen
18
31
  * Copyright (c) 2013, salesforce.com
19
32
  */
20
- !function(e,n){t.exports=n()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.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),c=n(48),l=n(49),f=n(12),d=n(31),h=n(32),p=n(30),v=n(1),y={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:c.default,Scroll:a.default,Block:u.default,Inline:s.default,Text:l.default,Attributor:{Attribute:f.default,Class:d.default,Style:h.default,Store:p.default}};e.default=y},function(t,e,n){"use strict";function r(t,e){var n=o(t);if(null==n)throw new u("Unable to create "+t+" blot");var r=n;return new r(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e),e)}function i(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?i(t.parentNode,n):null}function o(t,e){void 0===e&&(e=h.ANY);var n;if("string"==typeof t)n=d[t]||c[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=d.text;else if("number"==typeof t)t&h.LEVEL&h.BLOCK?n=d.block:t&h.LEVEL&h.INLINE&&(n=d.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=l[r[i]])break;n=n||f[t.tagName]}return null==n?null:e&h.LEVEL&n.scope&&e&h.TYPE&n.scope?n:null}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map(function(t){return a(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new u("Invalid definition");if("abstract"===n.blotName)throw new u("Cannot register abstract class");if(d[n.blotName||n.attrName]=n,"string"==typeof n.keyName)c[n.keyName]=n;else if(null!=n.className&&(l[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(t){return t.toUpperCase()}):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach(function(t){null!=f[t]&&null!=n.className||(f[t]=n)})}return n}var s=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return s(e,t),e}(Error);e.ParchmentError=u;var c={},l={},f={},d={};e.DATA_KEY="__blot";var h;!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"}(h=e.Scope||(e.Scope={})),e.create=r,e.find=i,e.query=o,e.register=a},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(r){(t(r)?e:n).push(r)}),[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;i<e&&r.hasNext();){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=a.length(o)}return new u(n)},u.prototype.compose=function(t){for(var e=a.iterator(this.ops),n=a.iterator(t.ops),r=new u;e.hasNext()||n.hasNext();)if("insert"===n.peekType())r.push(n.next());else if("delete"===e.peekType())r.push(e.next());else{var i=Math.min(e.peekLength(),n.peekLength()),o=e.next(i),s=n.next(i);if("number"==typeof s.retain){var c={};"number"==typeof o.retain?c.retain=i:c.insert=o.insert;var l=a.attributes.compose(o.attributes,s.attributes,"number"==typeof o.retain);l&&(c.attributes=l),r.push(c)}else"number"==typeof s.delete&&"number"==typeof o.retain&&r.push(s)}return r.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;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")}).join("")}),o=new u,c=r(n[0],n[1],e),l=a.iterator(this.ops),f=a.iterator(t.ops);return c.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,l.peekLength()),l.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(l.peekLength(),f.peekLength(),e);var s=l.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(),c="string"==typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));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),c=r.next(o);if(s.delete)continue;c.delete?i.push(c):i.retain(o,a.attributes.transform(s.attributes,c.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&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=u},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},o=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e=n.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!i)return!1;var o;for(o in t);return void 0===o||n.call(t,o)};t.exports=function t(){var e,n,r,a,s,u,c=arguments[0],l=1,f=arguments.length,d=!1;for("boolean"==typeof c&&(d=c,c=arguments[1]||{},l=2),(null==c||"object"!=typeof c&&"function"!=typeof c)&&(c={});l<f;++l)if(null!=(e=arguments[l]))for(n in e)r=c[n],a=e[n],c!==a&&(d&&a&&(o(a)||(s=i(a)))?(s?(s=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},c[n]=t(d,u,a)):void 0!==a&&(c[n]=a));return c}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,f.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:s(t.parent,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=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;if(void 0!==a)return a.call(r)},l=n(3),f=r(l),d=n(2),h=r(d),p=n(0),v=r(p),y=n(16),m=r(y),b=n(6),g=r(b),w=n(7),_=r(w),k=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"attach",value:function(){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new v.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new h.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=v.default.query(t,v.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=v.default.create(O.blotName);this.parent.insertBefore(i,0===t?this:this.next),i.insertAt(0,n.slice(0,-1))}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(v.default.Embed);k.scope=v.default.Scope.BLOCK_BLOT;var O=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return a(e,t),u(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(v.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),s(e))},new h.default).insert("\n",s(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,i){n<=0||(v.default.query(r,v.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,i):c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,i),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var i=n.split("\n"),o=i.shift();o.length>0&&(t<this.length()-1||null==this.children.tail?c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var a=this;i.reduce(function(t,e){return a=a.split(t,!0),a.insertAt(0,e),e.length},t+o.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof m.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&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 i=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},i}}]),e}(v.default.Block);O.blotName="block",O.tagName="P",O.defaultChild="break",O.allowedChildren=[g.default,v.default.Embed,_.default],e.bubbleFormats=s,e.BlockEmbed=k,e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(e=(0,C.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==P.DEFAULTS.theme){if(e.theme=P.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=T.default;var n=(0,C.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)),i=r.reduce(function(t,e){var n=P.import("modules/"+e);return null==n?N.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,C.default)(!0,{},P.DEFAULTS,{modules:i},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 s(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===b.default.sources.USER)return new p.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=c(i,a,e):0!==r&&(i=c(i,n,r,e)),this.setSelection(i,b.default.sources.SILENT)),a.length()>0){var s,u=[b.default.events.TEXT_CHANGE,a,o,e];if((s=this.emitter).emit.apply(s,[b.default.events.EDITOR_CHANGE].concat(u)),e!==b.default.sources.SILENT){var l;(l=this.emitter).emit.apply(l,u)}}return a}function u(t,e,n,r,i){var o={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(i=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(i=r,r=n,n=e,e=0),"object"===(void 0===n?"undefined":l(n))?(o=n,i=r):"string"==typeof n&&(null!=r?o[n]=r:i=n),i=i||b.default.sources.API,[t,e,o,i]}function c(t,e,n,r){if(null==t)return null;var i=void 0,o=void 0;if(e instanceof p.default){var a=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,r!==b.default.sources.USER)}),s=f(a,2);i=s[0],o=s[1]}else{var u=[t.index,t.index+t.length].map(function(t){return t<e||t===e&&r===b.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)}),c=f(u,2);i=c[0],o=c[1]}return new O.Range(i,o-i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var l="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},f=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var h=n(2),p=r(h),v=n(14),y=r(v),m=n(8),b=r(m),g=n(9),w=r(g),_=n(0),k=r(_),O=n(15),E=r(O),x=n(3),C=r(x),j=n(10),S=r(j),A=n(33),T=r(A),N=(0,S.default)("quill"),P=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,t),this.options=a(e,r),this.container=this.options.container,null==this.container)return N.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 b.default,this.scroll=k.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new y.default(this.scroll),this.selection=new E.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(b.default.events.EDITOR_CHANGE,function(t){t===b.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(b.default.events.SCROLL_UPDATE,function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;s.call(n,function(){return n.editor.update(null,e,i)},t)});var u=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(u),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return d(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),S.default.level(t)}},{key:"find",value:function(t){return t.__quill||k.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&N.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(r){n.register(r,t[r],e)})}else null==this.imports[t]||r||N.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?k.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),d(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"),t.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,i=u(t,e,n),o=f(i,4);return t=o[0],e=o[1],n=o[3],s.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]:b.default.sources.API;return s.call(this,function(){var r=n.getSelection(!0),o=new p.default;if(null==r)return o;if(k.default.query(t,k.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,i({},t,e));else{if(0===r.length)return n.selection.format(t,e),o;o=n.editor.formatText(r.index,r.length,i({},t,e))}return n.setSelection(r,b.default.sources.SILENT),o},r)}},{key:"formatLine",value:function(t,e,n,r,i){var o=this,a=void 0,c=u(t,e,n,r,i),l=f(c,4);return t=l[0],e=l[1],a=l[2],i=l[3],s.call(this,function(){return o.editor.formatLine(t,e,a)},i,t,0)}},{key:"formatText",value:function(t,e,n,r,i){var o=this,a=void 0,c=u(t,e,n,r,i),l=f(c,4);return t=l[0],e=l[1],a=l[2],i=l[3],s.call(this,function(){return o.editor.formatText(t,e,a)},i,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=u(t,e),r=f(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(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&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=u(t,e),r=f(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 s.call(this,function(){return i.editor.insertEmbed(e,n,r)},o,e)}},{key:"insertText",value:function(t,e,n,r,i){var o=this,a=void 0,c=u(t,0,n,r,i),l=f(c,4);return t=l[0],a=l[2],i=l[3],s.call(this,function(){return o.editor.insertText(t,e,a)},i,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,i=u(t,e,n),o=f(i,4);return t=o[0],e=o[1],n=o[3],s.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]:b.default.sources.API;return s.call(this,function(){t=new p.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 i=u(e,n,r),o=f(i,4);e=o[0],n=o[1],r=o[3],this.selection.setRange(new O.Range(e,n),r),r!==b.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.sources.API,n=(new p.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.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]:b.default.sources.API;return s.call(this,function(){return t=new p.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=b.default.events,P.sources=b.default.sources,P.version="1.3.5",P.imports={delta:p.default,parchment:k.default,"core/module":w.default,"core/theme":T.default},e.expandConfig=a,e.overload=u,e.default=P},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=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;if(void 0!==a)return a.call(r)},c=n(7),l=r(c),f=n(0),d=r(f),h=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"formatAt",value:function(t,n,r,i){if(e.compare(this.statics.blotName,r)<0&&d.default.query(r,d.default.Scope.BLOT)){var o=this.isolate(t,n);i&&o.wrap(r,i)}else u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i)}},{key:"optimize",value:function(t){if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){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:t<n?-1:1}}]),e}(d.default.Inline);h.allowedChildren=[h,d.default.Embed,l.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),e}(s.default.Text);e.default=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=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;if(void 0!==a)return a.call(r)},c=n(54),l=r(c),f=n(10),d=r(f),h=(0,d.default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(t){if(t.__quill&&t.__quill.emitter){var n;(n=t.__quill.emitter).handleDOM.apply(n,e)}})})});var p=function(t){function e(){i(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",h.error),t}return a(e,t),s(e,[{key:"emit",value:function(){h.log.apply(h,arguments),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach(function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))})}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(l.default);p.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},p.sources={API:"api",SILENT:"silent",USER:"user"},e.default=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function t(e){var n=arguments.length>1&&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";function r(t){if(o.indexOf(t)<=o.indexOf(a)){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=console)[t].apply(e,r)}}function i(t){return o.reduce(function(e,n){return e[n]=r.bind(console,n,t),e},{})}Object.defineProperty(e,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";r.level=i.level=function(t){a=t},e.default=i},function(t,e,n){function r(t){return null===t||void 0===t}function i(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 o(t,e,n){var o,l;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(u(t))return!!u(e)&&(t=a.call(t),e=a.call(e),c(t,e,n));if(i(t)){if(!i(e))return!1;if(t.length!==e.length)return!1;for(o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0}try{var f=s(t),d=s(e)}catch(t){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),o=f.length-1;o>=0;o--)if(f[o]!=d[o])return!1;for(o=f.length-1;o>=0;o--)if(l=f[o],!c(t[l],e[l],n))return!1;return typeof t==typeof e}var a=Array.prototype.slice,s=n(52),u=n(53),c=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:o(t,e,n))}},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";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var s=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=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;if(void 0!==a)return a.call(r)},l=n(2),f=r(l),d=n(0),h=r(d),p=n(4),v=r(p),y=n(6),m=r(y),b=n(7),g=r(b),w=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(m.default);w.blotName="code",w.tagName="CODE";var _=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce(function(e,n){return e.insert(n).insert("\n",t.formats())},new f.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var r=this.descendant(g.default,this.length()-1),i=s(r,1),o=i[0];null!=o&&o.deleteAt(o.length()-1,1),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=h.default.query(r,h.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=t+n)){var a=this.newlineIndex(t,!0)+1,s=o-a+1,u=this.isolate(a,s),c=u.next;u.format(r,i),c instanceof e&&c.formatAt(0,t-a+n-s,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(g.default,t),i=s(r,2),o=i[0],a=i[1];o.insertAt(a,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){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(h.default.create("text","\n")),c(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){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(t){var e=h.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof h.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(t){var n=c(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(v.default);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",e.Code=w,e.default=_},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return Object.keys(e).reduce(function(n,r){return null==t[r]?n:(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)},{})}function s(t){return t.reduce(function(t,e){if(1===e.insert){var n=(0,C.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,C.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)},new d.default)}Object.defineProperty(e,"__esModule",{value:!0});var u="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},c=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n(2),d=r(f),h=n(20),p=r(h),v=n(0),y=r(v),m=n(13),b=r(m),g=n(23),w=r(g),_=n(4),k=r(_),O=n(16),E=r(O),x=n(21),C=r(x),j=n(11),S=r(j),A=n(3),T=r(A),N=/^[ -~]*$/,P=function(){function t(e){o(this,t),this.scroll=e,this.delta=this.getDelta()}return l(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),t=s(t),t.reduce(function(t,i){var o=i.retain||i.delete||i.insert.length||1,a=i.attributes||{};if(null!=i.insert){if("string"==typeof i.insert){var s=i.insert;s.endsWith("\n")&&n&&(n=!1,s=s.slice(0,-1)),t>=r&&!s.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,s);var l=e.scroll.line(t),f=c(l,2),d=f[0],h=f[1],v=(0,T.default)({},(0,_.bubbleFormats)(d));if(d instanceof k.default){var m=d.descendant(y.default.Leaf,h),b=c(m,1),g=b[0];v=(0,T.default)(v,(0,_.bubbleFormats)(g))}a=p.default.attributes.diff(v,a)||{}}else if("object"===u(i.insert)){var w=Object.keys(i.insert)[0];if(null==w)return t;e.scroll.insertAt(t,w,i.insert[w])}r+=o}return Object.keys(a).forEach(function(n){e.scroll.formatAt(t,o,n,a[n])}),t+o},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 d.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(r).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 b.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 d.default).retain(t).retain(e,(0,C.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(i){n.scroll.formatAt(t,e,i,r[i])}),this.update((new d.default).retain(t).retain(e,(0,C.default)(r)))}},{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 d.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=c(t,1),i=e[0];i instanceof k.default?n.push(i):i instanceof y.default.Leaf&&r.push(i)}):(n=this.scroll.lines(t,e),r=this.scroll.descendants(y.default.Leaf,t,e));var i=[n,r].map(function(t){if(0===t.length)return{};for(var e=(0,_.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=a((0,_.bubbleFormats)(n),e)}return e});return T.default.apply(T.default,i)}},{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 d.default).retain(t).insert(i({},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(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(function(i){n.scroll.formatAt(t,e.length,i,r[i])}),this.update((new d.default).retain(t).insert(e,(0,C.default)(r)))}},{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===k.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof E.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),i=c(r,2),o=i[0],a=i[1],s=0,u=new d.default;null!=o&&(s=o instanceof b.default?o.newlineIndex(a)-a+1:o.length()-a,u=o.delta().slice(a,a+s-1).insert("\n"));var l=this.getContents(t,e+s),f=l.diff((new d.default).insert(n).concat(u)),h=(new d.default).retain(t).concat(f);return this.applyDelta(h)}},{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(N)&&y.default.find(e[0].target)){var i=y.default.find(e[0].target),o=(0,_.bubbleFormats)(i),a=i.offset(this.scroll),s=e[0].oldValue.replace(w.default.CONTENTS,""),u=(new d.default).insert(s),c=(new d.default).insert(i.value());t=(new d.default).retain(a).concat(u.diff(c,n)).reduce(function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)},new d.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,S.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();e.default=P},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var s=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),l=r(c),f=n(21),d=r(f),h=n(11),p=r(h),v=n(8),y=r(v),m=n(10),b=r(m),g=(0,b.default)("quill:selection"),w=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,t),this.index=e,this.length=n},_=function(){function t(e,n){var r=this;o(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,y.default.sources.USER),1)}),this.emitter.on(y.default.events.EDITOR_CHANGE,function(t,e){t===y.default.events.TEXT_CHANGE&&e.length()>0&&r.update(y.default.sources.SILENT)}),this.emitter.on(y.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(y.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(y.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(y.default.sources.SILENT)}return u(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(y.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&&!l.default.query(t,l.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=l.default.find(n.start.node,!1);if(null==r)return;if(r instanceof l.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 r=void 0,i=this.scroll.leaf(t),o=s(i,2),a=o[0],u=o[1];if(null==a)return null;var c=a.position(u,!0),l=s(c,2);r=l[0],u=l[1];var f=document.createRange();if(e>0){f.setStart(r,u);var d=this.scroll.leaf(t+e),h=s(d,2);if(a=h[0],u=h[1],null==a)return null;var p=a.position(u,!0),v=s(p,2);return r=v[0],u=v[1],f.setEnd(r,u),f.getBoundingClientRect()}var y="left",m=void 0;return r instanceof Text?(u<r.data.length?(f.setStart(r,u),f.setEnd(r,u+1)):(f.setStart(r,u-1),f.setEnd(r,u),y="right"),m=f.getBoundingClientRect()):(m=a.domNode.getBoundingClientRect(),u>0&&(y="right")),{bottom:m.top+m.height,height:m.height,left:m[y],right:m[y],top:m.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 g.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 r=n.map(function(t){var n=s(t,2),r=n[0],i=n[1],o=l.default.find(r,!0),a=o.offset(e.scroll);return 0===i?a:o instanceof l.default.Container?a+o.length():a+o.index(r,i)}),o=Math.min(Math.max.apply(Math,i(r)),this.scroll.length()-1),a=Math.min.apply(Math,[o].concat(i(r)));return new w(a,o-a)}},{key:"normalizeNative",value:function(t){if(!a(this.root,t.startContainer)||!t.collapsed&&!a(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;e=e.lastChild,n=e 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],r=[],i=this.scroll.length();return n.forEach(function(t,n){t=Math.min(i-1,t);var o=void 0,a=e.scroll.leaf(t),u=s(a,2),c=u[0],l=u[1],f=c.position(l,0!==n),d=s(f,2);o=d[0],l=d[1],r.push(o,l)}),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,r)),o=s(i,1),a=o[0],u=a;if(e.length>0){var c=this.scroll.line(Math.min(e.index+e.length,r));u=s(c,1)[0]}if(null!=a&&null!=u){var l=t.getBoundingClientRect();n.top<l.top?t.scrollTop-=l.top-n.top:n.bottom>l.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(g.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]:y.default.sources.API;if("string"==typeof e&&(n=e,e=!1),g.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,i(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.default.sources.USER,e=this.lastRange,n=this.getRange(),r=s(n,2),i=r[0],o=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,p.default)(e,this.lastRange)){var a;!this.composing&&null!=o&&o.native.collapsed&&o.start.node!==this.cursor.textNode&&this.cursor.restore();var u=[y.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(e),t];if((a=this.emitter).emit.apply(a,[y.default.events.EDITOR_CHANGE].concat(u)),t!==y.default.sources.SILENT){var c;(c=this.emitter).emit.apply(c,u)}}}}]),t}();e.Range=w,e.default=_},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=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;if(void 0!==a)return a.call(r)},u=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"insertInto",value:function(t,n){0===t.children.length?s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(c.default.Embed);l.blotName="break",l.tagName="BR",e.default=l},function(t,e,n){"use strict";function r(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}var i=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(44),a=n(29),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=r(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof s.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a}),i},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,i){t.formatAt(e,i,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var a=null==n?s.create("text",e):s.create(e,n);this.appendChild(a)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new s.ParchmentError("Cannot insert "+t.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,i=[],o=[];t.forEach(function(t){t.target===n.domNode&&"childList"===t.type&&(i.push.apply(i,t.addedNodes),o.push.apply(o,t.removedNodes))}),o.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())}}),i.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 i=r(t);i.next==e&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,e||void 0))})},e}(a.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),o=n(30),a=n(17),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new o.default(n.domNode),n}return r(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=s.query(t);n instanceof i.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),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}(a.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(29),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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(){return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t;var t},e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){function r(t){this.ops=t,this.index=0,this.offset=0}var i=n(11),o=n(3),a={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=o(!0,{},e);n||(r=Object.keys(r).reduce(function(t,e){return null!=r[e]&&(t[e]=r[e]),t},{}));for(var i in t)void 0!==t[i]&&void 0===e[i]&&(r[i]=t[i]);return Object.keys(r).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,r){return i(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),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(r).length>0?r:void 0}}},iterator:function(t){return new r(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}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=a.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}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},r.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"},t.exports=a},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function n(r,i,o,a,f){function d(r,o){if(null===r)return null;if(0===o)return r;var y,m;if("object"!=typeof r)return r;if(t(r,u))y=new u;else if(t(r,c))y=new c;else if(t(r,l))y=new l(function(t,e){r.then(function(e){t(d(e,o-1))},function(t){e(d(t,o-1))})});else if(n.__isArray(r))y=[];else if(n.__isRegExp(r))y=new RegExp(r.source,s(r)),r.lastIndex&&(y.lastIndex=r.lastIndex);else if(n.__isDate(r))y=new Date(r.getTime());else{if(v&&e.isBuffer(r))return y=new e(r.length),r.copy(y),y;t(r,Error)?y=Object.create(r):void 0===a?(m=Object.getPrototypeOf(r),y=Object.create(m)):(y=Object.create(a),m=a)}if(i){var b=h.indexOf(r);if(-1!=b)return p[b];h.push(r),p.push(y)}t(r,u)&&r.forEach(function(t,e){var n=d(e,o-1),r=d(t,o-1);y.set(n,r)}),t(r,c)&&r.forEach(function(t){var e=d(t,o-1);y.add(e)});for(var g in r){var w;m&&(w=Object.getOwnPropertyDescriptor(m,g)),w&&null==w.set||(y[g]=d(r[g],o-1))}if(Object.getOwnPropertySymbols)for(var _=Object.getOwnPropertySymbols(r),g=0;g<_.length;g++){var k=_[g],O=Object.getOwnPropertyDescriptor(r,k);(!O||O.enumerable||f)&&(y[k]=d(r[k],o-1),O.enumerable||Object.defineProperty(y,k,{enumerable:!1}))}if(f)for(var E=Object.getOwnPropertyNames(r),g=0;g<E.length;g++){var x=E[g],O=Object.getOwnPropertyDescriptor(r,x);O&&O.enumerable||(y[x]=d(r[x],o-1),Object.defineProperty(y,x,{enumerable:!1}))}return y}"object"==typeof i&&(o=i.depth,a=i.prototype,f=i.includeNonEnumerable,i=i.circular);var h=[],p=[],v=void 0!==e;return void 0===i&&(i=!0),void 0===o&&(o=1/0),d(r,o)}function r(t){return Object.prototype.toString.call(t)}function i(t){return"object"==typeof t&&"[object Date]"===r(t)}function o(t){return"object"==typeof t&&"[object Array]"===r(t)}function a(t){return"object"==typeof t&&"[object RegExp]"===r(t)}function s(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}var u;try{u=Map}catch(t){u=function(){}}var c;try{c=Set}catch(t){c=function(){}}var l;try{l=Promise}catch(t){l=function(){}}return n.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},n.__objToStr=r,n.__isDate=i,n.__isArray=o,n.__isRegExp=a,n.__getRegExpFlags=s,n}();"object"==typeof t&&t.exports&&(t.exports=r)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}function s(t){return t instanceof y.default||t instanceof v.BlockEmbed}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=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;if(void 0!==a)return a.call(r)},f=n(0),d=r(f),h=n(8),p=r(h),v=n(4),y=r(v),m=n(16),b=r(m),g=n(13),w=r(g),_=n(24),k=r(_),O=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(t,e){return t[e]=!0,t},{})),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),r}return a(e,t),c(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var r=this.line(t),i=u(r,2),o=i[0],a=i[1],s=this.line(t+n),c=u(s,1),f=c[0];if(l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&o!==f&&a>0){if(o instanceof v.BlockEmbed||f instanceof v.BlockEmbed)return void this.optimize();if(o instanceof w.default){var d=o.newlineIndex(o.length(),!0);if(d>-1&&(o=o.split(d+1))===f)return void this.optimize()}else if(f instanceof w.default){var h=f.newlineIndex(0);h>-1&&f.split(h+1)}var p=f.children.head instanceof b.default?null:f.children.head;o.moveChildren(f,p),o.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])&&(l(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==d.default.query(n,d.default.Scope.BLOCK)){var i=d.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 o=d.default.create(n,r);this.appendChild(o)}else l(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===d.default.Scope.INLINE_BLOT){var r=d.default.create(this.statics.defaultChild);r.appendChild(t),t=r}l(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(s,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;return function t(e,n,r){var i=[],o=r;return e.children.forEachAt(n,r,function(e,n,r){s(e)?i.push(e):e instanceof d.default.Container&&(i=i.concat(t(e,n,o))),o-=r}),i}(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&&(l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(p.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return l(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=p.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(p.default.events.SCROLL_BEFORE_UPDATE,n,t),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(p.default.events.SCROLL_UPDATE,n,t)}}}]),e}(d.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[y.default,v.BlockEmbed,k.default],e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=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;if(void 0!==a)return a.call(r)},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0),f=r(l),d=n(7),h=r(d),p=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return a(e,t),c(e,null,[{key:"value",value:function(){}}]),c(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,i=0;null!=r&&r.statics.scope!==f.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(i,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,o=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var a=[t,n.start.offset,n.end.offset];r=a[0],i=a[1],o=a[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var u=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof h.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=e.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var c=[i,o].map(function(t){return Math.max(0,Math.min(r.data.length,t-1))}),l=s(c,2);return i=l[0],o=l[1],{startNode:r,startOffset:i,endNode:r,endOffset:o}}}}},{key:"update",value:function(t,e){var n=this;if(t.some(function(t){return"characterData"===t.type&&t.target===n.textNode})){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(f.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}Object.defineProperty(e,"__esModule",{value:!0});var s=n(0),u=r(s),c=n(4),l=r(c),f=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(u.default.Container);f.allowedChildren=[l.default,c.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=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;if(void 0!==a)return a.call(r)},u=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"value",value:function(t){var n=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(t){return("00"+parseInt(t).toString(16)).slice(-2)}).join("")):n}}]),e}(c.default.Attributor.Style),f=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),d=new l("color","color",{scope:c.default.Scope.INLINE});e.ColorAttributor=l,e.ColorClass=f,e.ColorStyle=d},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}function a(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=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;if(void 0!==a)return a.call(r)},c=n(6),l=function(t){return t&&t.__esModule?t:{default:t}}(c),f=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),s(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return a(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(l.default);f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i="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},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(107),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(){function t(e){var n=this;r(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.container.classList.toggle("ql-expanded")}),this.select.addEventListener("change",this.update.bind(this))}return o(t,[{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",function(){e.selectItem(n,!0)}),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=s.default,this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),[].slice.call(this.select.options).forEach(function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)}),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach(function(e){t.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"close",value:function(){this.container.classList.remove("ql-expanded")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&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":i(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}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=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=r(i),a=n(5),s=r(a),u=n(4),c=r(u),l=n(16),f=r(l),d=n(24),h=r(d),p=n(23),v=r(p),y=n(35),m=r(y),b=n(6),g=r(b),w=n(22),_=r(w),k=n(7),O=r(k),E=n(55),x=r(E),C=n(42),j=r(C),S=n(34),A=r(S);s.default.register({"blots/block":c.default,"blots/block/embed":u.BlockEmbed,"blots/break":f.default,"blots/container":h.default,"blots/cursor":v.default,"blots/embed":m.default,"blots/inline":g.default,"blots/scroll":_.default,"blots/text":O.default,"modules/clipboard":x.default,"modules/history":j.default,"modules/keyboard":A.default}),o.default.register(c.default,f.default,v.default,g.default,_.default,O.default),e.default=s.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),null!=this.next&&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(31),o=n(32),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";function r(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}var i=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),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){r(t,this.keyName).forEach(function(e){t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=r(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t){var e=t.split("-"),n=e.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return e[0]+n}var i=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),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[r(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[r(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[r(this.keyName)];return this.canAdd(t,e)?e:""},e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){r(this,t),this.quill=e,this.options=n,this.modules={}}return i(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach(function(e){null==t.modules[e]&&t.addModule(e)})}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();o.DEFAULTS={modules:{}},o.themes={default:o},e.default=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}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}function s(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)}function u(t,e){var n,r=t===B.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},i(n,r,/^$/),i(n,"handler",function(n){var r=n.index;t===B.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(m(i,1)[0]instanceof T.default.Embed)||(t===B.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,P.default.sources.USER):this.quill.setSelection(n.index-1,P.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,P.default.sources.USER):this.quill.setSelection(n.index+n.length+1,P.default.sources.USER),!1)}),n}function c(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=m(n,1),i=r[0],o={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=m(a,1),u=s[0];if(null!=u&&u.length()>1){var c=i.formats(),l=this.quill.getFormat(t.index-1,1);o=S.default.attributes.diff(c,l)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,P.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-f,f,o,P.default.sources.USER),this.quill.focus()}}function l(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},i=0,o=this.quill.getLine(t.index),a=m(o,1),s=a[0];if(e.offset>=s.length()-1){var u=this.quill.getLine(t.index+1),c=m(u,1),l=c[0];if(l){var f=s.formats(),d=this.quill.getFormat(t.index,1);r=S.default.attributes.diff(f,d)||{},i=l.length()}}this.quill.deleteText(t.index,n,P.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+i-1,n,r,P.default.sources.USER)}}function f(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=S.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,P.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,P.default.sources.USER),this.quill.setSelection(t.index,P.default.sources.SILENT),this.quill.focus()}function d(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 T.default.query(n,T.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t},{});this.quill.insertText(t.index,"\n",r,P.default.sources.USER),this.quill.setSelection(t.index+1,P.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],P.default.sources.USER))})}function h(t){return{key:B.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=T.default.query("code-block"),r=e.index,i=e.length,o=this.quill.scroll.descendant(n,r),a=m(o,2),s=a[0],u=a[1];if(null!=s){var c=this.quill.getIndex(s),l=s.newlineIndex(u,!0)+1,f=s.newlineIndex(c+u+i),d=s.domNode.textContent.slice(l,f).split("\n");u=0,d.forEach(function(e,o){t?(s.insertAt(l+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):e.startsWith(n.TAB)&&(s.deleteAt(l+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=e.length+1}),this.quill.update(P.default.sources.USER),this.quill.setSelection(r,i,P.default.sources.SILENT)}}}}function p(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],P.default.sources.USER)}}}function v(t){if("string"==typeof t||"number"==typeof t)return v({key:t});if("object"===(void 0===t?"undefined":y(t))&&(t=(0,w.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[M]=t.shortKey,delete t.shortKey),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var y="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},m=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),g=n(21),w=r(g),_=n(11),k=r(_),O=n(3),E=r(O),x=n(2),C=r(x),j=n(20),S=r(j),A=n(0),T=r(A),N=n(5),P=r(N),L=n(10),I=r(L),D=n(9),q=r(D),R=(0,I.default)("quill:keyboard"),M=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",B=function(t){function e(t,n){o(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])}),r.addBinding({key:e.keys.ENTER,shiftKey:null},d),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},c),r.addBinding({key:e.keys.DELETE},{collapsed:!0},l)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},c),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},l)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},f),r.addBinding({key:e.keys.DELETE},{collapsed:!1},f),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},c),r.listen(),r}return s(e,t),b(e,null,[{key:"match",value:function(t,e){return e=v(e),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!e[n]!==t[n]&&null!==e[n]})&&e.key===(t.which||t.keyCode)}}]),b(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=v(t);if(null==r||null==r.key)return R.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,E.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,i=(t.bindings[r]||[]).filter(function(t){return e.match(n,t)});if(0!==i.length){var o=t.quill.getSelection();if(null!=o&&t.quill.hasFocus()){var a=t.quill.getLine(o.index),s=m(a,2),u=s[0],c=s[1],l=t.quill.getLeaf(o.index),f=m(l,2),d=f[0],h=f[1],p=0===o.length?[d,h]:t.quill.getLeaf(o.index+o.length),v=m(p,2),b=v[0],g=v[1],w=d instanceof T.default.Text?d.value().slice(0,h):"",_=b instanceof T.default.Text?b.value().slice(g):"",O={collapsed:0===o.length,empty:0===o.length&&u.length()<=1,format:t.quill.getFormat(o),offset:c,prefix:w,suffix:_};i.some(function(e){if(null!=e.collapsed&&e.collapsed!==O.collapsed)return!1;if(null!=e.empty&&e.empty!==O.empty)return!1;if(null!=e.offset&&e.offset!==O.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==O.format[t]}))return!1}else if("object"===y(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=O.format[t]:!1===e.format[t]?null==O.format[t]:(0,k.default)(e.format[t],O.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(O.prefix))&&(!(null!=e.suffix&&!e.suffix.test(O.suffix))&&!0!==e.handler.call(t,o,O))})&&n.preventDefault()}}}})}}]),e}(q.default);B.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},B.DEFAULTS={bindings:{bold:p("bold"),italic:p("italic"),underline:p("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",P.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",P.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",P.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,P.default.sources.USER)}},"indent code-block":h(!0),"outdent code-block":h(!1),"remove tab":{key:B.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,P.default.sources.USER)}},tab:{key:B.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new C.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,P.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,P.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,P.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,P.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=m(e,2),r=n[0],i=n[1],o=(0,E.default)({},r.formats(),{list:"checked"}),a=(new C.default).retain(t.index).insert("\n",o).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,P.default.sources.USER),this.quill.setSelection(t.index+1,P.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=m(n,2),i=r[0],o=r[1],a=(new C.default).retain(t.index).insert("\n",e.format).retain(i.length()-o-1).retain(1,{header:null});this.quill.updateContents(a,P.default.sources.USER),this.quill.setSelection(t.index+1,P.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),i=m(r,2),o=i[0],a=i[1];if(a>n)return!0;var s=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(t.index," ",P.default.sources.USER),this.quill.history.cutoff();var u=(new C.default).retain(t.index-a).delete(n+1).retain(o.length()-2-a).retain(1,{list:s});this.quill.updateContents(u,P.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,P.default.sources.SILENT)}},"code exit":{key:B.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=m(e,2),r=n[0],i=n[1],o=(new C.default).retain(t.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,P.default.sources.USER)}},"embed left":u(B.keys.LEFT,!1),"embed left shift":u(B.keys.LEFT,!0),"embed right":u(B.keys.RIGHT,!1),"embed right shift":u(B.keys.RIGHT,!0)}},e.default=B,e.SHORTKEY=M},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=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;if(void 0!==a)return a.call(r)},c=n(0),l=r(c),f=n(7),d=r(f),h="\ufeff",p=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(t){n.contentNode.appendChild(t)}),n.leftGuard=document.createTextNode(h),n.rightGuard=document.createTextNode(h),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return a(e,t),s(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(h).join("");if(t===this.leftGuard)if(this.prev instanceof d.default){var i=this.prev.length();this.prev.insertAt(i,r),e={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(l.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(l.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=h,e}},{key:"update",value:function(t,e){var n=this;t.forEach(function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}})}}]),e}(l.default.Embed);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new i.default.Attributor.Attribute("align","align",o),s=new i.default.Attributor.Class("align","ql-align",o),u=new i.default.Attributor.Style("align","text-align",o);e.AlignAttribute=a,e.AlignClass=s,e.AlignStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=n(25),a=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),s=new o.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});e.BackgroundClass=a,e.BackgroundStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},a=new i.default.Attributor.Attribute("direction","dir",o),s=new i.default.Attributor.Class("direction","ql-direction",o),u=new i.default.Attributor.Style("direction","direction",o);e.DirectionAttribute=a,e.DirectionClass=s,e.DirectionStyle=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=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;if(void 0!==a)return a.call(r)},u=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new c.default.Attributor.Class("font","ql-font",l),d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"value",value:function(t){return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(c.default.Attributor.Style),h=new d("font","font-family",l);e.FontStyle=h,e.FontClass=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=o,e.SizeStyle=a},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}function s(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!=f.default.query(t,f.default.Scope.BLOCK)}))}function u(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),n=t.length()-e;return s(t)&&(n-=1),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0),f=r(l),d=n(5),h=r(d),p=n(9),v=r(p),y=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(h.default.events.EDITOR_CHANGE,function(t,e,n,i){t!==h.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==h.default.sources.USER?r.transform(e):r.record(e,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return a(e,t),c(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],h.default.sources.USER),this.ignoreChange=!1;var r=u(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&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}(v.default);y.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=y,e.getLastChangeIndex=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}function s(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return 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]+"/":t}function u(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(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=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;if(void 0!==a)return a.call(r)},f=n(3),d=r(f),h=n(2),p=r(h),v=n(8),y=r(v),m=n(34),b=r(m),g=n(33),w=r(g),_=n(59),k=r(_),O=n(60),E=r(O),x=n(27),C=r(x),j=n(61),S=r(j),A=[!1,"center","right","justify"],T=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],N=[!1,"serif","monospace"],P=["1","2","3",!1],L=["small",!1,"large","huge"],I=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),a=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(t){t.container.contains(n.target)||t.close()})};return t.emitter.listenDOM("click",document.body,a),r}return a(e,t),c(e,[{key:"addModule",value:function(t){var n=l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach(function(t){(t.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}})})}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map(function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&u(t,A),new E.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&u(t,T,"background"===n?"#ffffff":"#000000"),new k.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?u(t,N):t.classList.contains("ql-header")?u(t,P):t.classList.contains("ql-size")&&u(t,L)),new C.default(t)});var r=function(){n.pickers.forEach(function(t){t.update()})};this.quill.on(y.default.events.EDITOR_CHANGE,r)}}]),e}(w.default);I.DEFAULTS=(0,d.default)(!0,{},w.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new p.default).retain(r.index).delete(r.length).insert({image:n.target.result}),y.default.sources.USER),t.quill.setSelection(r.index+1,y.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}}),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var D=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return a(e,t),c(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",function(e){b.default.match(e,"enter")?(t.save(),e.preventDefault()):b.default.match(e,"escape")&&(t.cancel(),e.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&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=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,y.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,y.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=s(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,y.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",y.default.sources.USER),this.quill.setSelection(r+2,y.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(S.default);e.BaseTooltip=D,e.default=I},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;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&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(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,i=this.find(t),o=i[0],a=i[1],s=t-a,u=this.iterator(o);(r=u())&&s<t+e;){var c=r.length();t>s?n(r,t-s,Math.min(e,s+c-t)):n(r,0,Math.min(c,t+e-s)),s+=c}},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=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=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,a),n.attach(),n}return r(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 a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),e&&s(t.parent))},u=function(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(u),t.optimize(n))},c=e,l=0;c.length>0;l+=1){if(l>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(t){var e=o.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(o.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=o.find(t,!1);s(e,!1),e instanceof i.default&&e.children.forEach(function(t){s(t,!1)})})):"attributes"===t.type&&s(e.prev)),s(e))}),this.children.forEach(u),c=[].slice.call(this.observer.takeRecords()),a=c.slice();a.length>0;)e.push(a.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map(function(t){var e=o.find(t.target,!0);return null==e?null:null==e.domNode[o.DATA_KEY].mutations?(e.domNode[o.DATA_KEY].mutations=[t],e):(e.domNode[o.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==r&&null!=t.domNode[o.DATA_KEY]&&t.update(t.domNode[o.DATA_KEY].mutations||[],n)}),null!=this.domNode[o.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="DIV",e}(i.default);e.default=s},function(t,e,n){"use strict";function r(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}var i=this&&this.__extends||function(){var 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])};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)}}();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){if(null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)){this.isolate(e,n).format(r,i)}else t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&r(i,o.formats())&&(o.moveChildren(this),o.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=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=o.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=o.query(n,o.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!=o.query(r,o.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!=o.query(n,o.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),a=o.create(n,r);i.parent.insertBefore(a,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=o.Scope.BLOCK_BLOT,e.tagName="P",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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}(i.default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(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=o.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=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},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;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,e){function n(t,e,n){if(t==e)return t?[[y,t]]:[];(n<0||t.length<n)&&(n=null);var i=a(t,e),o=t.substring(0,i);t=t.substring(i),e=e.substring(i),i=s(t,e);var u=t.substring(t.length-i);t=t.substring(0,t.length-i),e=e.substring(0,e.length-i);var l=r(t,e);return o&&l.unshift([y,o]),u&&l.push([y,u]),c(l),null!=n&&(l=f(l,n)),l=d(l)}function r(t,e){var r;if(!t)return[[v,e]];if(!e)return[[p,t]];var o=t.length>e.length?t:e,a=t.length>e.length?e:t,s=o.indexOf(a);if(-1!=s)return r=[[v,o.substring(0,s)],[y,a],[v,o.substring(s+a.length)]],t.length>e.length&&(r[0][0]=r[2][0]=p),r;if(1==a.length)return[[p,t],[v,e]];var c=u(t,e);if(c){var l=c[0],f=c[1],d=c[2],h=c[3],m=c[4],b=n(l,d),g=n(f,h);return b.concat([[y,m]],g)}return i(t,e)}function i(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,s=2*i,u=new Array(s),c=new Array(s),l=0;l<s;l++)u[l]=-1,c[l]=-1;u[a+1]=0,c[a+1]=0;for(var f=n-r,d=f%2!=0,h=0,y=0,m=0,b=0,g=0;g<i;g++){for(var w=-g+h;w<=g-y;w+=2){var _,k=a+w;_=w==-g||w!=g&&u[k-1]<u[k+1]?u[k+1]:u[k-1]+1;for(var O=_-w;_<n&&O<r&&t.charAt(_)==e.charAt(O);)_++,O++;if(u[k]=_,_>n)y+=2;else if(O>r)h+=2;else if(d){var E=a+f-w;if(E>=0&&E<s&&-1!=c[E]){var x=n-c[E];if(_>=x)return o(t,e,_,O)}}}for(var C=-g+m;C<=g-b;C+=2){var x,E=a+C;x=C==-g||C!=g&&c[E-1]<c[E+1]?c[E+1]:c[E-1]+1;for(var j=x-C;x<n&&j<r&&t.charAt(n-x-1)==e.charAt(r-j-1);)x++,j++;if(c[E]=x,x>n)b+=2;else if(j>r)m+=2;else if(!d){var k=a+f-C;if(k>=0&&k<s&&-1!=u[k]){var _=u[k],O=a+_-k;if(x=n-x,_>=x)return o(t,e,_,O)}}}}return[[p,t],[v,e]]}function o(t,e,r,i){var o=t.substring(0,r),a=e.substring(0,i),s=t.substring(r),u=e.substring(i),c=n(o,a),l=n(s,u);return c.concat(l)}function a(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<i;)t.substring(o,i)==e.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function s(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function u(t,e){function n(t,e,n){for(var r,i,o,u,c=t.substring(n,n+Math.floor(t.length/4)),l=-1,f="";-1!=(l=e.indexOf(c,l+1));){var d=a(t.substring(n),e.substring(l)),h=s(t.substring(0,n),e.substring(0,l));f.length<h+d&&(f=e.substring(l-h,l)+e.substring(l,l+d),r=t.substring(0,n-h),i=t.substring(n+d),o=e.substring(0,l-h),u=e.substring(l+d))}return 2*f.length>=t.length?[r,i,o,u,f]:null}var r=t.length>e.length?t:e,i=t.length>e.length?e:t;if(r.length<4||2*i.length<r.length)return null;var o,u=n(r,i,Math.ceil(r.length/4)),c=n(r,i,Math.ceil(r.length/2));if(!u&&!c)return null;o=c?u&&u[4].length>c[4].length?u:c:u;var l,f,d,h;return t.length>e.length?(l=o[0],f=o[1],d=o[2],h=o[3]):(d=o[0],h=o[1],l=o[2],f=o[3]),[l,f,d,h,o[4]]}function c(t){t.push([y,""]);for(var e,n=0,r=0,i=0,o="",u="";n<t.length;)switch(t[n][0]){case v:i++,u+=t[n][1],n++;break;case p:r++,o+=t[n][1],n++;break;case y:r+i>1?(0!==r&&0!==i&&(e=a(u,o),0!==e&&(n-r-i>0&&t[n-r-i-1][0]==y?t[n-r-i-1][1]+=u.substring(0,e):(t.splice(0,0,[y,u.substring(0,e)]),n++),u=u.substring(e),o=o.substring(e)),0!==(e=s(u,o))&&(t[n][1]=u.substring(u.length-e)+t[n][1],u=u.substring(0,u.length-e),o=o.substring(0,o.length-e))),0===r?t.splice(n-i,r+i,[v,u]):0===i?t.splice(n-r,r+i,[p,o]):t.splice(n-r-i,r+i,[p,o],[v,u]),n=n-r-i+(r?1:0)+(i?1:0)+1):0!==n&&t[n-1][0]==y?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,o="",u=""}""===t[t.length-1][1]&&t.pop();var l=!1;for(n=1;n<t.length-1;)t[n-1][0]==y&&t[n+1][0]==y&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),l=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),l=!0)),n++;l&&c(t)}function l(t,e){if(0===e)return[y,t];for(var n=0,r=0;r<t.length;r++){var i=t[r];if(i[0]===p||i[0]===y){var o=n+i[1].length;if(e===o)return[r+1,t];if(e<o){t=t.slice();var a=e-n,s=[i[0],i[1].slice(0,a)],u=[i[0],i[1].slice(a)];return t.splice(r,1,s,u),[r+1,t]}n=o}}throw new Error("cursor_pos is out of bounds!")}function f(t,e){var n=l(t,e),r=n[1],i=n[0],o=r[i],a=r[i+1];if(null==o)return t;if(o[0]!==y)return t;if(null!=a&&o[1]+a[1]===a[1]+o[1])return r.splice(i,2,a,o),h(r,i,2);if(null!=a&&0===a[1].indexOf(o[1])){r.splice(i,2,[a[0],o[1]],[0,o[1]]);var s=a[1].slice(o[1].length);return s.length>0&&r.splice(i+2,0,[a[0],s]),h(r,i,3)}return t}function d(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r<t.length;r+=1)t[r-2][0]===y&&function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319}(t[r-2][1])&&t[r-1][0]===p&&n(t[r-1][1])&&t[r][0]===v&&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));if(!e)return t;for(var i=[],r=0;r<t.length;r+=1)t[r][1].length>0&&i.push(t[r]);return i}function h(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var i=t[r],o=t[r+1];i[0]===o[1]&&t.splice(r,2,[i[0],i[1]+o[1]])}return t}var p=-1,v=1,y=0,m=n;m.INSERT=v,m.DELETE=p,m.EQUAL=y,t.exports=m},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=i?n:r,e.supported=n,e.unsupported=r},function(t,e){"use strict";function n(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(){this._events=new n,this._eventsCount=0}var o=Object.prototype.hasOwnProperty,a="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(a=!1)),i.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)o.call(t,e)&&n.push(a?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},i.prototype.listeners=function(t,e){var n=a?a+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},i.prototype.emit=function(t,e,n,r,i,o){var s=a?a+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,r),!0;case 5:return l.fn.call(l.context,e,n,r,i),!0;case 6:return l.fn.call(l.context,e,n,r,i,o),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,h=l.length;for(c=0;c<h;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,n);break;case 4:l[c].fn.call(l[c].context,e,n,r);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},i.prototype.on=function(t,e,n){var i=new r(e,n||this),o=a?a+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},i.prototype.once=function(t,e,n){var i=new r(e,n||this,!0),o=a?a+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},i.prototype.removeListener=function(t,e,r,i){var o=a?a+t:t;if(!this._events[o])return this;if(!e)return 0==--this._eventsCount?this._events=new n:delete this._events[o],this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||r&&s.context!==r||(0==--this._eventsCount?this._events=new n:delete this._events[o]);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||i&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new n:delete this._events[o]}return this},i.prototype.removeAllListeners=function(t){var e;return t?(e=a?a+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new n:delete this._events[e])):(this._events=new n,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=a,i.EventEmitter=i,void 0!==t&&(t.exports=i)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}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}function s(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)}function u(t,e,n){return"object"===(void 0===e?"undefined":O(e))?Object.keys(e).reduce(function(t,n){return u(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,j.default)({},i({},e,n),r.attributes))},new A.default)}function c(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};return t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function l(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var i=t.ops[r];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function f(t){return 0!==t.childNodes.length&&["block","list-item"].indexOf(c(t).display)>-1}function d(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce(function(e,n){return n(t,e)},new A.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(r,i){var o=d(i,e,n);return i.nodeType===t.ELEMENT_NODE&&(o=e.reduce(function(t,e){return e(i,t)},o),o=(i[Q]||[]).reduce(function(t,e){return e(i,t)},o)),r.concat(o)},new A.default):new A.default}function h(t,e,n){return u(n,t,!0)}function p(t,e){var n=N.default.Attributor.Attribute.keys(t),r=N.default.Attributor.Class.keys(t),i=N.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach(function(e){var n=N.default.query(e,N.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(n=$[e],null==n||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=Z[e])||n.attrName!==e&&n.keyName!==e||(n=Z[e],o[n.attrName]=n.value(t)||void 0))}),Object.keys(o).length>0&&(e=u(e,o)),e}function v(t,e){var n=N.default.query(t);if(null==n)return e;if(n.prototype instanceof N.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new A.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=u(e,n.blotName,n.formats(t)));return e}function y(t,e){return l(e,"\n")||e.insert("\n"),e}function m(){return new A.default}function b(t,e){var n=N.default.query(t);if(null==n||"list-item"!==n.blotName||!l(e,"\n"))return e;for(var r=-1,i=t.parentNode;!i.classList.contains("ql-clipboard");)"list"===(N.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new A.default).retain(e.length()-1).retain(1,{indent:r}))}function g(t,e){return l(e,"\n")||(f(t)||e.length()>0&&t.nextSibling&&f(t.nextSibling))&&e.insert("\n"),e}function w(t,e){if(f(t)&&null!=t.nextElementSibling&&!l(e,"\n\n")){var n=t.offsetHeight+parseFloat(c(t).marginTop)+parseFloat(c(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function _(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===c(t).fontStyle&&(n.italic=!0),r.fontWeight&&(c(t).fontWeight.startsWith("bold")||parseInt(c(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=u(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new A.default).insert("\t").concat(e)),e}function k(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(!c(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&f(t.parentNode)||null!=t.previousSibling&&f(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&f(t.parentNode)||null!=t.nextSibling&&f(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var O="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},E=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),C=n(3),j=r(C),S=n(2),A=r(S),T=n(0),N=r(T),P=n(5),L=r(P),I=n(10),D=r(I),q=n(9),R=r(q),M=n(36),B=n(37),F=n(13),z=r(F),U=n(25),H=n(38),W=n(39),K=n(40),V=(0,D.default)("quill:clipboard"),Q="__ql-matcher",Y=[[Node.TEXT_NODE,k],[Node.TEXT_NODE,g],["br",y],[Node.ELEMENT_NODE,g],[Node.ELEMENT_NODE,v],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,p],[Node.ELEMENT_NODE,_],["li",b],["b",h.bind(h,"bold")],["i",h.bind(h,"italic")],["style",m]],$=[M.AlignAttribute,H.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),Z=[M.AlignStyle,B.BackgroundStyle,U.ColorStyle,H.DirectionStyle,W.FontStyle,K.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{}),G=function(t){function e(t,n){o(this,e);var r=a(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=[],Y.concat(r.options.matchers).forEach(function(t){var e=E(t,2),i=e[0],o=e[1];(n.matchVisual||o!==w)&&r.addMatcher(i,o)}),r}return s(e,t),x(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 +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[z.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new A.default).insert(n,i({},z.default.blotName,e[z.default.blotName]))}var r=this.prepareMatching(),o=E(r,2),a=o[0],s=o[1],u=d(this.container,a,s);return l(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new A.default).retain(u.length()-1).delete(1))),V.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{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 A.default).retain(t).concat(r),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 A.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(r){var i=E(r,2),o=i[0],a=i[1];switch(o){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:e.push(a);break;default:[].forEach.call(t.container.querySelectorAll(o),function(t){t[Q]=t[Q]||[],t[Q].push(a)})}}),[e,n]}}]),e}(R.default);G.DEFAULTS={matchers:[],matchVisual:!0},e.default=G,e.matchAttributor=p,e.matchBlot=v,e.matchNewline=g,e.matchSpacing=w,e.matchText=k},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=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;if(void 0!==a)return a.call(r)},u=n(6),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"optimize",value:function(t){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(c.default);l.blotName="bold",l.tagName=["STRONG","B"],e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}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}function s(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)}function u(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function c(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)u(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?l(n,e,r):u(n,e,r)}}),t.appendChild(n)})}function l(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(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var f=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=n(2),p=r(h),v=n(0),y=r(v),m=n(5),b=r(m),g=n(10),w=r(g),_=n(9),k=r(_),O=(0,w.default)("quill:toolbar"),E=function(t){function e(t,n){o(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(r.options.container)){var i=document.createElement("div");c(i,r.options.container),t.container.parentNode.insertBefore(i,t.container),r.container=i}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;if(!(r.container instanceof HTMLElement)){var s;return s=O.error("Container required for toolbar",r.options),a(r,s)}return r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach(function(t){r.addHandler(t,r.options.handlers[t])}),[].forEach.call(r.container.querySelectorAll("button, select"),function(t){r.attach(t)}),r.quill.on(b.default.events.EDITOR_CHANGE,function(t,e){t===b.default.events.SELECTION_CHANGE&&r.update(e)}),r.quill.on(b.default.events.SCROLL_OPTIMIZE,function(){var t=r.quill.selection.getRange(),e=f(t,1),n=e[0];r.update(n)}),r}return s(e,t),d(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,function(t){return 0===t.indexOf("ql-")});if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void O.warn("ignoring attaching to disabled format",n,t);if(null==y.default.query(n))return void O.warn("ignoring attaching to nonexistent format",n,t)}var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,function(r){var o=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var a=t.options[t.selectedIndex];o=!a.hasAttribute("selected")&&(a.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();e.quill.focus();var s=e.quill.selection.getRange(),u=f(s,1),c=u[0];if(null!=e.handlers[n])e.handlers[n].call(e,o);else if(y.default.query(n).prototype instanceof y.default.Embed){if(!(o=prompt("Enter "+n)))return;e.quill.updateContents((new p.default).retain(c.index).delete(c.length).insert(i({},n,o)),b.default.sources.USER)}else e.quill.format(n,o,b.default.sources.USER);e.update(c)}),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(function(n){var r=f(n,2),i=r[0],o=r[1];if("SELECT"===o.tagName){var a=void 0;if(null==t)a=null;else if(null==e[i])a=o.querySelector("option[selected]");else if(!Array.isArray(e[i])){var s=e[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=o.querySelector('option[value="'+s+'"]')}null==a?(o.value="",o.selectedIndex=-1):a.selected=!0}else if(null==t)o.classList.remove("ql-active");else if(o.hasAttribute("value")){var u=e[i]===o.getAttribute("value")||null!=e[i]&&e[i].toString()===o.getAttribute("value")||null==e[i]&&!o.getAttribute("value");o.classList.toggle("ql-active",u)}else o.classList.toggle("ql-active",null!=e[i])})}}]),e}(k.default);E.DEFAULTS={},E.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!=y.default.query(e,y.default.Scope.INLINE)&&t.quill.format(e,!1)})}else this.quill.removeFormat(e,b.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",b.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,b.default.sources.USER),this.quill.format("direction",t,b.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,b.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,b.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,b.default.sources.USER):this.quill.format("list","unchecked",b.default.sources.USER):this.quill.format("list",t,b.default.sources.USER)}}},e.default=E,e.addControls=c},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=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;if(void 0!==a)return a.call(r)},u=n(27),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(t){t.classList.add("ql-primary")}),o}return o(e,t),a(e,[{key:"buildItem",value:function(t){var n=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),i=t?t.getAttribute("data-value")||"":"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),e}(c.default);e.default=l},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=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;if(void 0!==a)return a.call(r)},u=n(27),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),function(t){t.innerHTML=n[t.getAttribute("data-value")||""]}),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return o(e,t),a(e,[{key:"selectItem",value:function(t,n){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(c.default);e.default=l},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){var i=this;r(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"}),this.hide()}return i(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=e+o+"px"),i.bottom>r.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=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(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}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=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;if(void 0!==a)return a.call(r)},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(3),f=r(l),d=n(8),h=r(d),p=n(43),v=r(p),y=n(26),m=r(y),b=n(15),g=n(41),w=r(g),_=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],k=function(t){function e(t,n){i(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=_);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return a(e,t),c(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),w.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),w.default),this.tooltip=new O(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(e,n){t.handlers.link.call(t,!n.format.link)})}}]),e}(v.default);k.DEFAULTS=(0,f.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var O=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return a(e,t),c(e,[{key:"listen",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,h.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(e,n,r){if(null!=e){if(0===e.length&&r===h.default.sources.USER){var i=t.quill.scroll.descendant(m.default,e.index),o=s(i,2),a=o[0],u=o[1];if(null!=a){t.linkRange=new b.Range(e.index-u,a.length());var c=m.default.formats(a.domNode);return t.preview.textContent=c,t.preview.setAttribute("href",c),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}})}},{key:"show",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(p.BaseTooltip);O.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=k},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(28),o=r(i),a=n(36),s=n(38),u=n(64),c=n(65),l=r(c),f=n(66),d=r(f),h=n(67),p=r(h),v=n(37),y=n(25),m=n(39),b=n(40),g=n(56),w=r(g),_=n(68),k=r(_),O=n(26),E=r(O),x=n(69),C=r(x),j=n(70),S=r(j),A=n(71),T=r(A),N=n(72),P=r(N),L=n(73),I=r(L),D=n(13),q=r(D),R=n(74),M=r(R),B=n(75),F=r(B),z=n(57),U=r(z),H=n(41),W=r(H),K=n(27),V=r(K),Q=n(59),Y=r(Q),$=n(60),Z=r($),G=n(61),X=r(G),J=n(108),tt=r(J),et=n(62),nt=r(et);o.default.register({"attributors/attribute/direction":s.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":v.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":s.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":b.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":s.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":b.SizeStyle},!0),o.default.register({"formats/align":a.AlignClass,"formats/direction":s.DirectionClass,"formats/indent":u.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":m.FontClass,"formats/size":b.SizeClass,"formats/blockquote":l.default,"formats/code-block":q.default,"formats/header":d.default,"formats/list":p.default,"formats/bold":w.default,"formats/code":D.Code,"formats/italic":k.default,"formats/link":E.default,"formats/script":C.default,"formats/strike":S.default,"formats/underline":T.default,"formats/image":P.default,"formats/video":I.default,"formats/list/item":h.ListItem,"modules/formula":M.default,"modules/syntax":F.default,"modules/toolbar":U.default,"themes/bubble":tt.default,"themes/snow":nt.default,"ui/icons":W.default,"ui/picker":V.default,"ui/icon-picker":Z.default,"ui/color-picker":Y.default,"ui/tooltip":X.default},!0),e.default=o.default},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=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;if(void 0!==a)return a.call(r)},u=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(c.default.Attributor.Class),f=new l("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(4),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),e}(s.default);u.blotName="blockquote",u.tagName="blockquote",e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(4),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(u.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],e.default=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}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}function s(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=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;if(void 0!==a)return a.call(r)},l=n(0),f=r(l),d=n(4),h=r(d),p=n(24),v=r(p),y=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),u(e,[{key:"format",value:function(t,n){t!==m.blotName||n?c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:c(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(h.default);y.blotName="list-item",y.tagName="LI";var m=function(t){function e(t){o(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=f.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return s(e,t),u(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=c(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),u(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return i({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof y)c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){c(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=f.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(v.default);m.blotName="list",m.scope=f.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[y],e.ListItem=y,e.default=m},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(56),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),e}(s.default);u.blotName="italic",u.tagName=["EM","I"],e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=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;if(void 0!==a)return a.call(r)},u=n(6),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(c.default);l.blotName="script",l.tagName=["SUB","SUP"],e.default=l},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(6),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),e}(s.default);u.blotName="strike",u.tagName="S",e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(6),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),e}(s.default);u.blotName="underline",u.tagName="U",e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=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;if(void 0!==a)return a.call(r)},u=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=n(26),f=["alt","height","width"],d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=s(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,l.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(c.default.Embed);d.blotName="image",d.tagName="IMG",e.default=d},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function o(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=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;if(void 0!==a)return a.call(r)},u=n(4),c=n(26),l=function(t){return t&&t.__esModule?t:{default:t}}(c),f=["height","width"],d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=s(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 l.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(u.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=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;if(void 0!==a)return a.call(r)},c=n(35),l=r(c),f=n(5),d=r(f),h=n(9),p=r(h),v=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,null,[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(l.default);v.blotName="formula",v.className="ql-formula",v.tagName="SPAN";var y=function(t){function e(){i(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return a(e,t),s(e,null,[{key:"register",value:function(){d.default.register(v,!0)}}]),e}(p.default);e.FormulaBlot=v,e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=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;if(void 0!==a)return a.call(r)},c=n(0),l=r(c),f=n(5),d=r(f),h=n(9),p=r(h),v=n(13),y=r(v),m=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(y.default);m.className="ql-syntax";var b=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),g=function(t){function e(t,n){i(this,e);var r=o(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 a=null;return r.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(a),a=setTimeout(function(){r.highlight(),a=null},r.options.interval)}),r.highlight(),r}return a(e,t),s(e,null,[{key:"register",value:function(){d.default.register(b,!0),d.default.register(m,!0)}}]),s(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(m).forEach(function(e){e.highlight(t.options.highlight)}),this.quill.update(d.default.sources.SILENT),null!=e&&this.quill.setSelection(e,d.default.sources.SILENT)}}}]),e}(p.default);g.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value}}(),interval:1e3},e.CodeBlock=m,e.CodeToken=b,e.default=g},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var s=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;if(void 0!==a)return a.call(r)},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(3),l=r(c),f=n(8),d=r(f),h=n(43),p=r(h),v=n(15),y=n(41),m=r(y),b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(t){function e(t,n){i(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=b);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return a(e,t),u(e,[{key:"extendToolbar",value:function(t){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),m.default)}}]),e}(p.default);g.DEFAULTS=(0,l.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(d.default.events.EDITOR_CHANGE,function(t,e,n,i){if(t===d.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&i===d.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 a=o[o.length-1],s=r.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-s),c=r.quill.getBounds(new v.Range(s,u));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return a(e,t),u(e,[{key:"listen",value:function(){var t=this;s(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(d.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=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(h.BaseTooltip);w.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=w,e.default=g},function(t,e,n){t.exports=n(63)}]).default})}).call(e,n(326).Buffer)},,function(t,e,n){var r,i;/*!
33
+ !function(e,n){t.exports=n()}(0,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}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(31),p=n(32),h=n(30),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.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=v},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=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 r(e,t),e}(Error);e.ParchmentError=i;var o,a={},s={},u={},l={};function c(t,e){var n;if(void 0===e&&(e=o.ANY),"string"==typeof t)n=l[t]||a[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=l.text;else if("number"==typeof t)t&o.LEVEL&o.BLOCK?n=l.block:t&o.LEVEL&o.INLINE&&(n=l.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]])break;n=n||u[t.tagName]}return null==n?null:e&o.LEVEL&n.scope&&e&o.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"}(o=e.Scope||(e.Scope={})),e.create=function(t,e){var n=c(t);if(null==n)throw new i("Unable to create "+t+" blot");var r=n;return new r(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e),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=c,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map(function(e){return t(e)});var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");l[r.blotName||r.attrName]=r,"string"==typeof r.keyName?a[r.keyName]=r:(null!=r.className&&(s[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(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach(function(t){null!=u[t]&&null!=r.className||(u[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(r){(t(r)?e:n).push(r)}),[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;i<e&&r.hasNext();){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=a.length(o)}return new u(n)},u.prototype.compose=function(t){for(var e=a.iterator(this.ops),n=a.iterator(t.ops),r=new u;e.hasNext()||n.hasNext();)if("insert"===n.peekType())r.push(n.next());else if("delete"===e.peekType())r.push(e.next());else{var i=Math.min(e.peekLength(),n.peekLength()),o=e.next(i),s=n.next(i);if("number"==typeof s.retain){var l={};"number"==typeof o.retain?l.retain=i:l.insert=o.insert;var c=a.attributes.compose(o.attributes,s.attributes,"number"==typeof o.retain);c&&(l.attributes=c),r.push(l)}else"number"==typeof s.delete&&"number"==typeof o.retain&&r.push(s)}return r.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&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=u},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},o=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,i=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;for(e in t);return void 0===e||n.call(t,e)};t.exports=function t(){var e,n,r,a,s,u,l=arguments[0],c=1,f=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},c=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});c<f;++c)if(null!=(e=arguments[c]))for(n in e)r=l[n],l!==(a=e[n])&&(d&&a&&(o(a)||(s=i(a)))?(s?(s=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},l[n]=t(d,u,a)):void 0!==a&&(l[n]=a));return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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(r):void 0},o=f(n(3)),a=f(n(2)),s=f(n(0)),u=f(n(16)),l=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(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}function h(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)}var y=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,s.default.Embed),r(e,[{key:"attach",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=s.default.query(t,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var o=s.default.create(v.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}();y.scope=s.default.Scope.BLOCK_BLOT;var v=function(t){function e(t){d(this,e);var n=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return h(e,s.default.Block),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),m(e))},new a.default).insert("\n",m(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,o){n<=0||(s.default.query(r,s.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,o):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,o),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce(function(t,e){return(s=s.split(t,!0)).insertAt(0,e),e.length},t+a.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof u.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&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}();function m(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:m(t.parent,e))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[l.default,s.default.Embed,c.default],e.bubbleFormats=m,e.BlockEmbed=y,e.default=v},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(){return 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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var a=v(n(2)),s=v(n(14)),u=v(n(8)),l=v(n(9)),c=v(n(0)),f=n(15),d=v(f),p=v(n(3)),h=v(n(10)),y=v(n(33));function v(t){return t&&t.__esModule?t:{default:t}}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=(0,h.default)("quill"),b=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=w(e,r),this.container=this.options.container,null==this.container)return g.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;_.call(n,function(){return n.editor.update(null,e,i)},t)});var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");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]&&g.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(r){n.register(r,t[r],e)})}else null==this.imports[t]||r||g.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],_.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 _.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,m({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,m({},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],_.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],_.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(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&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 _.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],_.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],_.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 _.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 _.call(this,function(){return t=new a.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();function w(t,e){if((e=(0,p.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==b.DEFAULTS.theme){if(e.theme=b.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=y.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=b.import("modules/"+e);return null==n?g.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,{},b.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 _(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=O(i,s,e):0!==r&&(i=O(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];if((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 O(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<e||t===e&&r===u.default.sources.USER?t:n>=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)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=u.default.events,b.sources=u.default.sources,b.version="1.3.5",b.imports={delta:a.default,parchment:c.default,"core/module":l.default,"core/theme":y.default},e.expandConfig=w,e.overload=k,e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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(r):void 0},o=s(n(7)),a=s(n(0));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,a.default.Inline),r(e,[{key:"formatAt",value:function(t,n,r,o){if(e.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var s=this.isolate(t,n);o&&s.wrap(r,o)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o)}},{key:"optimize",value:function(t){if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){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:t<n?-1:1}}]),e}();u.allowedChildren=[u,a.default.Embed,o.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0));var i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,r.default.Text),e}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=o(n(54));function o(t){return t&&t.__esModule?t:{default:t}}var a=(0,o(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)})})});var s=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=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));return t.listeners={},t.on("error",a.error),t}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,i.default),r(e,[{key:"emit",value:function(){a.log.apply(a,arguments),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(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach(function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))})}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}();s.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},s.sources={API:"api",SILENT:"silent",USER:"user"},e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n};r.DEFAULTS={},e.default=r},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<n;a++)o[a-1]=arguments[a];(e=console)[t].apply(e,o)}}function a(t){return r.reduce(function(e,n){return e[n]=o.bind(console,n,t),e},{})}o.level=a.level=function(t){i=t},e.default=a},function(t,e,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(t,e,n){var l,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(o(t))return!!o(e)&&(t=r.call(t),e=r.call(e),a(t,e,n));if(u(t)){if(!u(e))return!1;if(t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var f=i(t),d=i(e)}catch(t){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),l=f.length-1;l>=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||void 0===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(){return 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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=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(r):void 0},a=f(n(2)),s=f(n(0)),u=f(n(4)),l=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(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}function h(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)}var y=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,l.default),e}();y.blotName="code",y.tagName="CODE";var v=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,u.default),i(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce(function(e,n){return e.insert(n).insert("\n",t.formats())},new a.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var i=this.descendant(c.default,this.length()-1),a=r(i,1)[0];null!=a&&a.deleteAt(a.length()-1,1),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=s.default.query(r,s.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=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){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-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}();v.blotName="code-block",v.tagName="PRE",v.TAB=" ",e.Code=y,e.default=v},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(){return 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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=m(n(2)),s=m(n(20)),u=m(n(0)),l=m(n(13)),c=m(n(23)),f=n(4),d=m(f),p=m(n(16)),h=m(n(21)),y=m(n(11)),v=m(n(3));function m(t){return t&&t.__esModule?t:{default:t}}var g=/^[ -~]*$/,b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta()}return o(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce(function(t,e){if(1===e.insert){var n=(0,h.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,h.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)},new a.default)}(t)).reduce(function(t,a){var l=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),t>=o&&!p.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,p);var h=e.scroll.line(t),y=i(h,2),m=y[0],g=y[1],b=(0,v.default)({},(0,f.bubbleFormats)(m));if(m instanceof d.default){var w=m.descendant(u.default.Leaf,g),_=i(w,1)[0];b=(0,v.default)(b,(0,f.bubbleFormats)(_))}c=s.default.attributes.diff(b,c)||{}}else if("object"===r(a.insert)){var k=Object.keys(a.insert)[0];if(null==k)return t;e.scroll.insertAt(t,k,a.insert[k])}o+=l}return Object.keys(c).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(r).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)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(i){n.scroll.formatAt(t,e,i,r[i])}),this.update((new a.default).retain(t).retain(e,(0,h.default)(r)))}},{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 v.default.apply(v.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(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(function(i){n.scroll.formatAt(t,e.length,i,r[i])}),this.update((new a.default).retain(t).insert(e,(0,h.default)(r)))}},{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());t=(new a.default).retain(s).concat(d.diff(p,n)).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,y.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]?n:(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(){return 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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=l(n(0)),a=l(n(21)),s=l(n(11)),u=l(n(8));function l(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var d=(0,l(n(10)).default)("quill:selection"),p=function t(e){var n=arguments.length>1&&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),y=r(h,2);return i=y[0],u=y[1],f.setEnd(i,u),f.getBoundingClientRect()}var v="left",m=void 0;return i instanceof Text?(u<i.data.length?(f.setStart(i,u),f.setEnd(i,u+1)):(f.setStart(i,u-1),f.setEnd(i,u),v="right"),m=f.getBoundingClientRect()):(m=s.domNode.getBoundingClientRect(),u>0&&(v="right")),{bottom:m.top+m.height,height:m.height,left:m[v],right:m[v],top:m.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(!y(this.root,t.startContainer)||!t.collapsed&&!y(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.top<l.top?t.scrollTop-=l.top-n.top:n.bottom>l.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(r).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];if((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 y(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=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(t){return t&&t.__esModule?t:{default:t}}(n(0));var o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,i.default.Embed),r(e,[{key:"insertInto",value:function(t,n){0===t.children.length?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(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}();o.blotName="break",o.tagName="BR",e.default=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(44),o=n(29),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return r(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=u(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof a.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a}),i},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,i){t.formatAt(e,i,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var s=null==n?a.create("text",e):a.create(e,n);this.appendChild(s)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new a.ParchmentError("Cannot insert "+t.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=a.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=a.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=a.find(t.nextSibling));var r=u(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))})},e}(o.default);function u(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.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=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),o=n(30),a=n(17),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new o.default(n.domNode),n}return r(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=s.query(t);n instanceof i.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),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}(a.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(29),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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(){return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t;var t},e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},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(r).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(r).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(r).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"},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,y){if(null===l)return null;if(0===y)return l;var v,m;if("object"!=typeof l)return l;if(t(l,n))v=new n;else if(t(l,r))v=new r;else if(t(l,i))v=new i(function(t,e){l.then(function(e){t(a(e,y-1))},function(t){e(a(t,y-1))})});else if(o.__isArray(l))v=[];else if(o.__isRegExp(l))v=new RegExp(l.source,s(l)),l.lastIndex&&(v.lastIndex=l.lastIndex);else if(o.__isDate(l))v=new Date(l.getTime());else{if(h&&e.isBuffer(l))return v=new e(l.length),l.copy(v),v;t(l,Error)?v=Object.create(l):void 0===c?(m=Object.getPrototypeOf(l),v=Object.create(m)):(v=Object.create(c),m=c)}if(u){var g=d.indexOf(l);if(-1!=g)return p[g];d.push(l),p.push(v)}for(var b in t(l,n)&&l.forEach(function(t,e){var n=a(e,y-1),r=a(t,y-1);v.set(n,r)}),t(l,r)&&l.forEach(function(t){var e=a(t,y-1);v.add(e)}),l){var w;m&&(w=Object.getOwnPropertyDescriptor(m,b)),w&&null==w.set||(v[b]=a(l[b],y-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(l);for(b=0;b<_.length;b++){var k=_[b];(!(x=Object.getOwnPropertyDescriptor(l,k))||x.enumerable||f)&&(v[k]=a(l[k],y-1),x.enumerable||Object.defineProperty(v,k,{enumerable:!1}))}}if(f){var O=Object.getOwnPropertyNames(l);for(b=0;b<O.length;b++){var x,E=O[b];(x=Object.getOwnPropertyDescriptor(l,E))&&x.enumerable||(v[E]=a(l[E],y-1),Object.defineProperty(v,E,{enumerable:!1}))}}return v}(a,l)}function a(t){return Object.prototype.toString.call(t)}function s(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=a,o.__isDate=function(t){return"object"==typeof t&&"[object Date]"===a(t)},o.__isArray=function(t){return"object"==typeof t&&"[object Array]"===a(t)},o.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===a(t)},o.__getRegExpFlags=s,o}();"object"==typeof t&&t.exports&&(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return 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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=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(r):void 0},a=p(n(0)),s=p(n(8)),u=n(4),l=p(u),c=p(n(16)),f=p(n(13)),d=p(n(24));function p(t){return t&&t.__esModule?t:{default:t}}function h(t){return t instanceof l.default||t instanceof u.BlockEmbed}var y=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));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(t,e){return t[e]=!0,t},{})),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),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,a.default.Scroll),i(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var i=this.line(t),a=r(i,2),s=a[0],l=a[1],d=this.line(t+n),p=r(d,1)[0];if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=p&&s!==p&&l>0){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 y=p.newlineIndex(0);y>-1&&p.split(y+1)}var v=p.children.head instanceof c.default?null:p.children.head;s.moveChildren(p,v),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(){return 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}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{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}();y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[l.default,u.BlockEmbed,d.default],e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return 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(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=u(n(0)),s=u(n(7));function u(t){return t&&t.__esModule?t:{default:t}}var l=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));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,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,a.default.Embed),o(e,null,[{key:"value",value:function(){}}]),o(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,o=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(o,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,u=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var l=[t,n.start.offset,n.end.offset];i=l[0],o=l[1],u=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof s.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var f=[o,u].map(function(t){return Math.max(0,Math.min(i.data.length,t-1))}),d=r(f,2);return o=d[0],u=d[1],{startNode:i,startOffset:o,endNode:i,endOffset:u}}}}},{key:"update",value:function(t,e){var n=this;if(t.some(function(t){return"characterData"===t.type&&t.target===n.textNode})){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}();l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\ufeff",e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(0)),i=n(4),o=a(i);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,r.default.Container),e}();s.allowedChildren=[o.default,i.BlockEmbed,s],e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(t){return t&&t.__esModule?t:{default:t}}(n(0));var o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,i.default.Attributor.Style),r(e,[{key:"value",value:function(t){var n=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(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(t){return("00"+parseInt(t).toString(16)).slice(-2)}).join("")):n}}]),e}(),a=new i.default.Attributor.Class("color","ql-color",{scope:i.default.Scope.INLINE}),s=new o("color","color",{scope:i.default.Scope.INLINE});e.ColorAttributor=o,e.ColorClass=a,e.ColorStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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(r):void 0},o=function(t){return t&&t.__esModule?t:{default:t}}(n(6));var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,o.default),r(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return s(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}();function s(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=a,e.sanitize=s},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(t){return t&&t.__esModule?t:{default:t}}(n(107));var a=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.container.classList.toggle("ql-expanded")}),this.select.addEventListener("change",this.update.bind(this))}return i(t,[{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",function(){e.selectItem(n,!0)}),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=o.default,this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),[].slice.call(this.select.options).forEach(function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)}),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach(function(e){t.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"close",value:function(){this.container.classList.remove("ql-expanded")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&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=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=m(n(0)),i=m(n(5)),o=n(4),a=m(o),s=m(n(16)),u=m(n(24)),l=m(n(23)),c=m(n(35)),f=m(n(6)),d=m(n(22)),p=m(n(7)),h=m(n(55)),y=m(n(42)),v=m(n(34));function m(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":y.default,"modules/keyboard":v.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),null!=this.next&&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(31),o=n(32),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=this&&this.__extends||function(){var 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])};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 i(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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){i(t,this.keyName).forEach(function(e){t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(i(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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 i(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 o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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[i(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[i(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach(function(e){null==t.modules[e]&&t.addModule(e)})}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},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(){return 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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=y(n(21)),s=y(n(11)),u=y(n(3)),l=y(n(2)),c=y(n(20)),f=y(n(0)),d=y(n(5)),p=y(n(10)),h=y(n(9));function y(t){return t&&t.__esModule?t:{default:t}}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=(0,p.default)("quill:keyboard"),g=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=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.bindings={},Object.keys(r.options.bindings).forEach(function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])}),r.addBinding({key:e.keys.ENTER,shiftKey:null},x),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},_),r.addBinding({key:e.keys.DELETE},{collapsed:!0},k)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},_),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},k)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},O),r.addBinding({key:e.keys.DELETE},{collapsed:!1},O),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},_),r.listen(),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,h.default),o(e,null,[{key:"match",value:function(t,e){return e=S(e),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!e[n]!==t[n]&&null!==e[n]})&&e.key===(t.which||t.keyCode)}}]),o(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=S(t);if(null==r||null==r.key)return m.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(r)}},{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),y=i(h,2),v=y[0],m=y[1],g=0===u.length?[v,m]:t.quill.getLeaf(u.index+u.length),b=i(g,2),w=b[0],_=b[1],k=v instanceof f.default.Text?v.value().slice(0,m):"",O=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:k,suffix:O};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}();function w(t,e){var n,r=t===b.keys.LEFT?"prefix":"suffix";return v(n={key:t,shiftKey:e,altKey:null},r,/^$/),v(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 k(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(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,d.default.sources.USER)}}function O(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 E(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),y=u.domNode.textContent.slice(p,h).split("\n");l=0,y.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 C(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],d.default.sources.USER)}}}function S(t){if("string"==typeof t||"number"==typeof t)return S({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:C("bold"),italic:C("italic"),underline:C("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":E(!0),"outdent code-block":E(!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:/\n\n$/,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(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(0)),o=a(n(7));function a(t){return t&&t.__esModule?t:{default:t}}var s="\ufeff",u=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=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));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(t){n.contentNode.appendChild(t)}),n.leftGuard=document.createTextNode(s),n.rightGuard=document.createTextNode(s),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}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,i.default.Embed),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1: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(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(s).join("");if(t===this.leftGuard)if(this.prev instanceof o.default){var a=this.prev.length();this.prev.insertAt(a,r),e={startNode:this.prev.domNode,startOffset:a+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof o.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=s,e}},{key:"update",value:function(t,e){var n=this;t.forEach(function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}})}}]),e}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0));var i={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},o=new r.default.Attributor.Attribute("align","align",i),a=new r.default.Attributor.Class("align","ql-align",i),s=new r.default.Attributor.Style("align","text-align",i);e.AlignAttribute=o,e.AlignClass=a,e.AlignStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0)),i=n(25);var o=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),a=new i.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});e.BackgroundClass=o,e.BackgroundStyle=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0));var i={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},o=new r.default.Attributor.Attribute("direction","dir",i),a=new r.default.Attributor.Class("direction","ql-direction",i),s=new r.default.Attributor.Style("direction","direction",i);e.DirectionAttribute=o,e.DirectionClass=a,e.DirectionStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(t){return t&&t.__esModule?t:{default:t}}(n(0));var o={scope:i.default.Scope.INLINE,whitelist:["serif","monospace"]},a=new i.default.Attributor.Class("font","ql-font",o),s=new(function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,i.default.Attributor.Style),r(e,[{key:"value",value:function(t){return 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(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}())("font","font-family",o);e.FontStyle=s,e.FontClass=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0));var i=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),o=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=i,e.SizeStyle=o},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(0)),o=s(n(5)),a=s(n(9));function s(t){return t&&t.__esModule?t:{default:t}}var u=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.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(o.default.events.EDITOR_CHANGE,function(t,e,n,i){t!==o.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==o.default.sources.USER?r.transform(e):r.record(e,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),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,a.default),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],o.default.sources.USER),this.ignoreChange=!1;var r=l(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&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}();function l(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}u.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=u,e.getLastChangeIndex=l},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=p(n(3)),o=p(n(2)),a=p(n(8)),s=p(n(34)),u=p(n(33)),l=p(n(59)),c=p(n(60)),f=p(n(27)),d=p(n(61));function p(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(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}function v(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)}var m=[!1,"center","right","justify"],g=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],b=[!1,"serif","monospace"],w=["1","2","3",!1],_=["small",!1,"large","huge"],k=function(t){function e(t,n){h(this,e);var r=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return t.emitter.listenDOM("click",document.body,function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(t){t.container.contains(n.target)||t.close()})}),r}return v(e,u.default),r(e,[{key:"addModule",value:function(t){var n=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(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach(function(t){(t.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}})})}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map(function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&x(t,m),new c.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&x(t,g,"background"===n?"#ffffff":"#000000"),new l.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?x(t,b):t.classList.contains("ql-header")?x(t,w):t.classList.contains("ql-size")&&x(t,_)),new f.default(t)});this.quill.on(a.default.events.EDITOR_CHANGE,function(){n.pickers.forEach(function(t){t.update()})})}}]),e}();k.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new o.default).retain(r.index).delete(r.length).insert({image:n.target.result}),a.default.sources.USER),t.quill.setSelection(r.index+1,a.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}}),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var O=function(t){function e(t,n){h(this,e);var r=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return v(e,d.default),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",function(e){s.default.match(e,"enter")?(t.save(),e.preventDefault()):s.default.match(e,"escape")&&(t.cancel(),e.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&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=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,a.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=function(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(e)return(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0";if(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/";return t}(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",a.default.sources.USER),this.quill.setSelection(r+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}();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(r)})}e.BaseTooltip=O,e.default=k},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;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&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(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,i=this.find(t),o=i[0],a=t-i[1],s=this.iterator(o);(r=s())&&a<t+e;){var u=r.length();t>a?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=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=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,a),n.attach(),n}return r(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 a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),e&&s(t.parent))},u=function(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof i.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=o.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(o.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=o.find(t,!1);s(e,!1),e instanceof i.default&&e.children.forEach(function(t){s(t,!1)})})):"attributes"===t.type&&s(e.prev)),s(e))}),this.children.forEach(u),a=(l=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)e.push(a.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map(function(t){var e=o.find(t.target,!0);return null==e?null:null==e.domNode[o.DATA_KEY].mutations?(e.domNode[o.DATA_KEY].mutations=[t],e):(e.domNode[o.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==r&&null!=t.domNode[o.DATA_KEY]&&t.update(t.domNode[o.DATA_KEY].mutations||[],n)}),null!=this.domNode[o.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="DIV",e}(i.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(1);var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach(function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)}),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||o.query(r,o.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(r).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=o.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=o.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=o.query(n,o.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!=o.query(r,o.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!=o.query(n,o.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),a=o.create(n,r);i.parent.insertBefore(a,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=o.Scope.BLOCK_BLOT,e.tagName="P",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(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=o.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=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},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;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,e){var n=-1,r=1,i=0;function o(t,e,l){if(t==e)return t?[[i,t]]:[];(l<0||t.length<l)&&(l=null);var f=s(t,e),d=t.substring(0,f);f=u(t=t.substring(f),e=e.substring(f));var p=t.substring(t.length-f),h=function(t,e){var l;if(!t)return[[r,e]];if(!e)return[[n,t]];var c=t.length>e.length?t:e,f=t.length>e.length?e:t,d=c.indexOf(f);if(-1!=d)return l=[[r,c.substring(0,d)],[i,f],[r,c.substring(d+f.length)]],t.length>e.length&&(l[0][0]=l[2][0]=n),l;if(1==f.length)return[[n,t],[r,e]];var p=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<n.length)return null;function i(t,e,n){for(var r,i,o,a,l=t.substring(n,n+Math.floor(t.length/4)),c=-1,f="";-1!=(c=e.indexOf(l,c+1));){var d=s(t.substring(n),e.substring(c)),p=u(t.substring(0,n),e.substring(0,c));f.length<p+d&&(f=e.substring(c-p,c)+e.substring(c,c+d),r=t.substring(0,n-p),i=t.substring(n+d),o=e.substring(0,c-p),a=e.substring(c+d))}return 2*f.length>=t.length?[r,i,o,a,f]:null}var o,a,l,c,f,d=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;o=p?d&&d[4].length>p[4].length?d:p:d;t.length>e.length?(a=o[0],l=o[1],c=o[2],f=o[3]):(c=o[0],f=o[1],a=o[2],l=o[3]);var h=o[4];return[a,l,c,f,h]}(t,e);if(p){var h=p[0],y=p[1],v=p[2],m=p[3],g=p[4],b=o(h,v),w=o(y,m);return b.concat([[i,g]],w)}return function(t,e){for(var i=t.length,o=e.length,s=Math.ceil((i+o)/2),u=s,l=2*s,c=new Array(l),f=new Array(l),d=0;d<l;d++)c[d]=-1,f[d]=-1;c[u+1]=0,f[u+1]=0;for(var p=i-o,h=p%2!=0,y=0,v=0,m=0,g=0,b=0;b<s;b++){for(var w=-b+y;w<=b-v;w+=2){for(var _=u+w,k=(S=w==-b||w!=b&&c[_-1]<c[_+1]?c[_+1]:c[_-1]+1)-w;S<i&&k<o&&t.charAt(S)==e.charAt(k);)S++,k++;if(c[_]=S,S>i)v+=2;else if(k>o)y+=2;else if(h){var O=u+p-w;if(O>=0&&O<l&&-1!=f[O]){var x=i-f[O];if(S>=x)return a(t,e,S,k)}}}for(var E=-b+m;E<=b-g;E+=2){for(var O=u+E,C=(x=E==-b||E!=b&&f[O-1]<f[O+1]?f[O+1]:f[O-1]+1)-E;x<i&&C<o&&t.charAt(i-x-1)==e.charAt(o-C-1);)x++,C++;if(f[O]=x,x>i)g+=2;else if(C>o)m+=2;else if(!h){var _=u+p-E;if(_>=0&&_<l&&-1!=c[_]){var S=c[_],k=u+S-_;if(S>=(x=i-x))return a(t,e,S,k)}}}}return[[n,t],[r,e]]}(t,e)}(t=t.substring(0,t.length-f),e=e.substring(0,e.length-f));return d&&h.unshift([i,d]),p&&h.push([i,p]),function t(e){e.push([i,""]);var o=0;var a=0;var l=0;var c="";var f="";var d;for(;o<e.length;)switch(e[o][0]){case r:l++,f+=e[o][1],o++;break;case n:a++,c+=e[o][1],o++;break;case i:a+l>1?(0!==a&&0!==l&&(0!==(d=s(f,c))&&(o-a-l>0&&e[o-a-l-1][0]==i?e[o-a-l-1][1]+=f.substring(0,d):(e.splice(0,0,[i,f.substring(0,d)]),o++),f=f.substring(d),c=c.substring(d)),0!==(d=u(f,c))&&(e[o][1]=f.substring(f.length-d)+e[o][1],f=f.substring(0,f.length-d),c=c.substring(0,c.length-d))),0===a?e.splice(o-l,a+l,[r,f]):0===l?e.splice(o-a,a+l,[n,c]):e.splice(o-a-l,a+l,[n,c],[r,f]),o=o-a-l+(a?1:0)+(l?1:0)+1):0!==o&&e[o-1][0]==i?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,l=0,a=0,c="",f=""}""===e[e.length-1][1]&&e.pop();var p=!1;o=1;for(;o<e.length-1;)e[o-1][0]==i&&e[o+1][0]==i&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)==e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),p=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),p=!0)),o++;p&&t(e)}(h),null!=l&&(h=function(t,e){var r=function(t,e){if(0===e)return[i,t];for(var r=0,o=0;o<t.length;o++){var a=t[o];if(a[0]===n||a[0]===i){var s=r+a[1].length;if(e===s)return[o+1,t];if(e<s){t=t.slice();var u=e-r,l=[a[0],a[1].slice(0,u)],c=[a[0],a[1].slice(u)];return t.splice(o,1,l,c),[o+1,t]}r=s}}throw new Error("cursor_pos is out of bounds!")}(t,e),o=r[1],a=r[0],s=o[a],u=o[a+1];if(null==s)return t;if(s[0]!==i)return t;if(null!=u&&s[1]+u[1]===u[1]+s[1])return o.splice(a,2,u,s),c(o,a,2);if(null!=u&&0===u[1].indexOf(s[1])){o.splice(a,2,[u[0],s[1]],[0,s[1]]);var l=u[1].slice(s[1].length);return l.length>0&&o.splice(a+2,0,[u[0],l]),c(o,a,3)}return t}(h,l)),h=function(t){for(var e=!1,o=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},s=2;s<t.length;s+=1)t[s-2][0]===i&&a(t[s-2][1])&&t[s-1][0]===n&&o(t[s-1][1])&&t[s][0]===r&&o(t[s][1])&&(e=!0,t[s-1][1]=t[s-2][1].slice(-1)+t[s-1][1],t[s][1]=t[s-2][1].slice(-1)+t[s][1],t[s-2][1]=t[s-2][1].slice(0,-1));if(!e)return t;for(var u=[],s=0;s<t.length;s+=1)t[s][1].length>0&&u.push(t[s]);return u}(h)}function a(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),u=e.substring(r),l=o(i,a),c=o(s,u);return l.concat(c)}function s(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<i;)t.substring(o,i)==e.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function u(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}var l=o;function c(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var i=t[r],o=t[r+1];i[0]===o[1]&&t.splice(r,2,[i[0],i[1]+o[1]])}return t}l.INSERT=r,l.DELETE=n,l.EQUAL=i,t.exports=l},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=n?r:i).supported=r,e.unsupported=i},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t,e){var n=r?r+t:t,i=this._events[n];if(e)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,l,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,o),!0;case 6:return c.fn.call(c.context,e,n,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,p=c.length;for(l=0;l<p;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;case 4:c[l].fn.call(c[l].context,e,n,i);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},a.prototype.on=function(t,e,n){var i=new o(e,n||this),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(t,e,n){var i=new o(e,n||this,!0),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(t,e,n,o){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return 0==--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==e||o&&!s.once||n&&s.context!==n||(0==--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==e||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=1===l.length?l[0]:l:0==--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new i:delete this._events[e])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,void 0!==t&&(t.exports=a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=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(){return 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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=b(n(3)),s=b(n(2)),u=b(n(0)),l=b(n(5)),c=b(n(10)),f=b(n(9)),d=n(36),p=n(37),h=b(n(13)),y=n(25),v=n(38),m=n(39),g=n(40);function b(t){return t&&t.__esModule?t:{default:t}}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=(0,c.default)("quill:clipboard"),k="__ql-matcher",O=[[Node.TEXT_NODE,D],[Node.TEXT_NODE,L],["br",function(t,e){T(e,"\n")||e.insert("\n");return e}],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,function(t,e){var n={},r=t.style||{};r.fontStyle&&"italic"===j(t).fontStyle&&(n.italic=!0);r.fontWeight&&(j(t).fontWeight.startsWith("bold")||parseInt(j(t).fontWeight)>=700)&&(n.bold=!0);Object.keys(n).length>0&&(e=S(e,n));parseFloat(r.textIndent||0)>0&&(e=(new s.default).insert("\t").concat(e));return e}],["li",function(t,e){var n=u.default.query(t);if(null==n||"list-item"!==n.blotName||!T(e,"\n"))return e;var r=-1,i=t.parentNode;for(;!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",N.bind(N,"bold")],["i",N.bind(N,"italic")],["style",function(){return new s.default}]],x=[d.AlignAttribute,v.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),E=[d.AlignStyle,p.BackgroundStyle,y.ColorStyle,v.DirectionStyle,m.FontStyle,g.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{}),C=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=[],O.concat(r.options.matchers).forEach(function(t){var e=i(t,2),o=e[0],a=e[1];(n.matchVisual||a!==I)&&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,f.default),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 +\</g,"><"),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[k]||[]).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(r),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(r){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[k]=t[k]||[],t[k].push(s)})}}),[e,n]}}]),e}();function S(t,e,n){return"object"===(void 0===e?"undefined":r(e))?Object.keys(e).reduce(function(t,n){return S(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,a.default)({},w({},e,n),r.attributes))},new s.default)}function j(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};return 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<e.length;--r){var i=t.ops[r];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function A(t){if(0===t.childNodes.length)return!1;var e=j(t);return["block","list-item"].indexOf(e.display)>-1}function N(t,e,n){return S(n,t,!0)}function P(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(r).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=E[e])||n.attrName!==e&&n.keyName!==e||(n=E[e],o[n.attrName]=n.value(t)||void 0))}),Object.keys(o).length>0&&(e=S(e,o)),e}function R(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=S(e,n.blotName,n.formats(t)));return e}function L(t,e){return T(e,"\n")||(A(t)||e.length()>0&&t.nextSibling&&A(t.nextSibling))&&e.insert("\n"),e}function I(t,e){if(A(t)&&null!=t.nextElementSibling&&!T(e,"\n\n")){var n=t.offsetHeight+parseFloat(j(t).marginTop)+parseFloat(j(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function D(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(!j(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)}C.DEFAULTS={matchers:[],matchVisual:!0},e.default=C,e.matchAttributor=P,e.matchBlot=R,e.matchNewline=L,e.matchSpacing=I,e.matchText=D},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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(r):void 0},o=function(t){return t&&t.__esModule?t:{default:t}}(n(6));var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,o.default),r(e,[{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}();a.blotName="bold",a.tagName=["STRONG","B"],e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(){return 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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=c(n(2)),a=c(n(0)),s=c(n(5)),u=c(n(10)),l=c(n(9));function c(t){return t&&t.__esModule?t:{default:t}}function f(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 d=(0,u.default)("quill:toolbar"),p=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 i,o=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");y(a,o.options.container),t.container.parentNode.insertBefore(a,t.container),o.container=a}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach(function(t){o.addHandler(t,o.options.handlers[t])}),[].forEach.call(o.container.querySelectorAll("button, select"),function(t){o.attach(t)}),o.quill.on(s.default.events.EDITOR_CHANGE,function(t,e){t===s.default.events.SELECTION_CHANGE&&o.update(e)}),o.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){var t=o.quill.selection.getRange(),e=r(t,1)[0];o.update(e)}),o):(i=d.error("Container required for toolbar",o.options),f(o,i))}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,l.default),i(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,function(t){return 0===t.indexOf("ql-")});if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void d.warn("ignoring attaching to disabled format",n,t);if(null==a.default.query(n))return void d.warn("ignoring attaching to nonexistent format",n,t)}var i="SELECT"===t.tagName?"change":"click";t.addEventListener(i,function(i){var u=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var l=t.options[t.selectedIndex];u=!l.hasAttribute("selected")&&(l.value||!1)}else u=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();e.quill.focus();var c=e.quill.selection.getRange(),f=r(c,1)[0];if(null!=e.handlers[n])e.handlers[n].call(e,u);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(u=prompt("Enter "+n)))return;e.quill.updateContents((new o.default).retain(f.index).delete(f.length).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}({},n,u)),s.default.sources.USER)}else e.quill.format(n,u,s.default.sources.USER);e.update(f)}),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==t)s=null;else if(null==e[o])s=a.querySelector("option[selected]");else if(!Array.isArray(e[o])){var u=e[o];"string"==typeof u&&(u=u.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+u+'"]')}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}();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(r)}function y(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(r)?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(r)}(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=y},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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(r):void 0},o=function(t){return t&&t.__esModule?t:{default:t}}(n(27));var a=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));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(t){t.classList.add("ql-primary")}),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,o.default),r(e,[{key:"buildItem",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),o=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),e}();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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(t){return t&&t.__esModule?t:{default:t}}(n(27));var o=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));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),function(t){t.innerHTML=n[t.getAttribute("data-value")||""]}),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),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,i.default),r(e,[{key:"selectItem",value:function(t,n){(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(r):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var i=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"}),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=e+o+"px"),i.bottom>r.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(){return 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(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=p(n(3)),s=p(n(8)),u=n(43),l=p(u),c=p(n(26)),f=n(15),d=p(n(41));function p(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(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}function v(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)}var m=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],g=function(t){function e(t,n){h(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return v(e,l.default),o(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),d.default),this.tooltip=new b(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(e,n){t.handlers.link.call(t,!n.format.link)})}}]),e}();g.DEFAULTS=(0,a.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(t){function e(t,n){h(this,e);var r=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return v(e,u.BaseTooltip),o(e,[{key:"listen",value:function(){var t=this;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,s.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()}),this.quill.on(s.default.events.SELECTION_CHANGE,function(e,n,i){if(null!=e){if(0===e.length&&i===s.default.sources.USER){var o=t.quill.scroll.descendant(c.default,e.index),a=r(o,2),u=a[0],l=a[1];if(null!=u){t.linkRange=new f.Range(e.index-l,u.length());var d=c.default.formats(u.domNode);return t.preview.textContent=d,t.preview.setAttribute("href",d),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}})}},{key:"show",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}();b.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=I(n(28)),i=n(36),o=n(38),a=n(64),s=I(n(65)),u=I(n(66)),l=n(67),c=I(l),f=n(37),d=n(25),p=n(39),h=n(40),y=I(n(56)),v=I(n(68)),m=I(n(26)),g=I(n(69)),b=I(n(70)),w=I(n(71)),_=I(n(72)),k=I(n(73)),O=n(13),x=I(O),E=I(n(74)),C=I(n(75)),S=I(n(57)),j=I(n(41)),T=I(n(27)),A=I(n(59)),N=I(n(60)),P=I(n(61)),R=I(n(108)),L=I(n(62));function I(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":y.default,"formats/code":O.Code,"formats/italic":v.default,"formats/link":m.default,"formats/script":g.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":_.default,"formats/video":k.default,"formats/list/item":l.ListItem,"modules/formula":E.default,"modules/syntax":C.default,"modules/toolbar":S.default,"themes/bubble":R.default,"themes/snow":L.default,"ui/icons":j.default,"ui/picker":T.default,"ui/icon-picker":N.default,"ui/color-picker":A.default,"ui/tooltip":P.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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(r):void 0},o=function(t){return t&&t.__esModule?t:{default:t}}(n(0));var a=new(function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,o.default.Attributor.Class),r(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}())("indent","ql-indent",{scope:o.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n(4));var i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,r.default),e}();i.blotName="blockquote",i.tagName="blockquote",e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(t){return t&&t.__esModule?t:{default:t}}(n(4));var o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,i.default),r(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}();o.blotName="header",o.tagName=["H1","H2","H3","H4","H5","H6"],e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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(r):void 0},o=u(n(0)),a=u(n(4)),s=u(n(24));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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}function f(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)}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,a.default),r(e,[{key:"format",value:function(t,n){t!==p.blotName||n?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:i(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}();d.blotName="list-item",d.tagName="LI";var p=function(t){function e(t){l(this,e);var n=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=o.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return f(e,s.default),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},this.statics.blotName,this.statics.formats(this.domNode))}},{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(r);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}();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=function(t){return t&&t.__esModule?t:{default:t}}(n(56));var i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,r.default),e}();i.blotName="italic",i.tagName=["EM","I"],e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(t){return t&&t.__esModule?t:{default:t}}(n(6));var o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,i.default),r(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):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(r):void 0}(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}();o.blotName="script",o.tagName=["SUB","SUP"],e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n(6));var i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,r.default),e}();i.blotName="strike",i.tagName="S",e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n(6));var i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,r.default),e}();i.blotName="underline",i.tagName="U",e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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(r):void 0},o=function(t){return t&&t.__esModule?t:{default:t}}(n(0)),a=n(26);var s=["alt","height","width"],u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,o.default.Embed),r(e,[{key:"format",value:function(t,n){s.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(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 s.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,a.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}();u.blotName="image",u.tagName="IMG",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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(r):void 0},o=n(4),a=function(t){return t&&t.__esModule?t:{default:t}}(n(26));var s=["height","width"],u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).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,o.BlockEmbed),r(e,[{key:"format",value:function(t,n){s.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(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 s.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"sanitize",value:function(t){return a.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}();u.blotName="video",u.className="ql-video",u.tagName="IFRAME",e.default=u},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(35)),o=s(n(5)),a=s(n(9));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(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}function c(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)}var f=function(t){function e(){return u(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,i.default),r(e,null,[{key:"create",value:function(t){var n=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(r):void 0}(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}();f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var d=function(t){function e(){u(this,e);var t=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return c(e,a.default),r(e,null,[{key:"register",value:function(){o.default.register(f,!0)}}]),e}();e.FormulaBlot=f,e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=u(n(0)),o=u(n(5)),a=u(n(9)),s=u(n(13));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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}function f(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)}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,s.default),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),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(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}();d.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(t){function e(t,n){l(this,e);var r=c(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 f(e,a.default),r(e,null,[{key:"register",value:function(){o.default.register(p,!0),o.default.register(d,!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(d).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}();h.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=d,e.CodeToken=p,e.default=h},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},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(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=f(n(3)),a=f(n(8)),s=n(43),u=f(s),l=n(15),c=f(n(41));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(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}function h(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)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(t){function e(t,n){d(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return h(e,u.default),i(e,[{key:"extendToolbar",value:function(t){this.tooltip=new m(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),c.default)}}]),e}();v.DEFAULTS=(0,o.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var m=function(t){function e(t,n){d(this,e);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(a.default.events.EDITOR_CHANGE,function(t,e,n,i){if(t===a.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&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,s.BaseTooltip),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}();m.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=m,e.default=v},function(t,e,n){t.exports=n(63)}]).default})}).call(this,n(241).Buffer)},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(26),i=n(43);t.exports=function(t){return r(t)&&i(t.meta)}},function(t,e,n){"use strict";var r=n(17),i=n.n(r),o=n(42),a=n.n(o);function s(t){return"/"===t.charAt(0)}function u(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 l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&s(t),o=e&&s(e),a=i||o;if(t&&s(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var l=void 0;if(r.length){var c=r[r.length-1];l="."===c||".."===c||""===c}else l=!1;for(var f=0,d=r.length;d>=0;d--){var p=r[d];"."===p?u(r,d):".."===p?(u(r,d),f++):f&&(u(r,d),f--)}if(!a)for(;f--;f)r.unshift("..");!a||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return l&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var c,f,d=function(t){return"/"===t.charAt(0)?t:"/"+t},p=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},h=function(t,e){return p(t,e)?t.substr(e.length):t},y=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},v=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},m=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},g=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=m({},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=l(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},b=function(){var t=null,e=[];return{setPrompt:function(e){return i()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):(i()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==a)}else o(!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)})}}},w=!("undefined"==typeof window||!window.document||!window.document.createElement),_=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},k=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},O=function(t,e){return e(window.confirm(t))},x="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},E=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},C=function(){try{return window.history.state||{}}catch(t){return{}}},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(w,"Browser history needs a DOM");var e=window.history,n=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}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),o=t.forceRefresh,s=void 0!==o&&o,u=t.getUserConfirmation,l=void 0===u?O:u,c=t.keyLength,f=void 0===c?6:c,m=t.basename?y(d(t.basename)):"",S=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,a=o.pathname+o.search+o.hash;return i()(!m||p(a,m),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+m+'".'),m&&(a=h(a,m)),g(a,r,n)},j=function(){return Math.random().toString(36).substr(2,f)},T=b(),A=function(t){E(H,t),H.length=e.length,T.notifyListeners(H.location,H.action)},N=function(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(S(t.state))},P=function(){L(S(C()))},R=!1,L=function(t){R?(R=!1,A()):T.confirmTransitionTo(t,"POP",l,function(e){e?A({action:"POP",location:t}):I(t)})},I=function(t){var e=H.location,n=M.indexOf(e.key);-1===n&&(n=0);var r=M.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(R=!0,q(i))},D=S(C()),M=[D.key],B=function(t){return m+v(t)},q=function(t){e.go(t)},F=0,z=function(t){1===(F+=t)?(_(window,"popstate",N),r&&_(window,"hashchange",P)):0===F&&(k(window,"popstate",N),r&&k(window,"hashchange",P))},U=!1,H={length:e.length,action:"POP",location:D,createHref:B,push:function(t,r){i()(!("object"===(void 0===t?"undefined":x(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 o=g(t,r,j(),H.location);T.confirmTransitionTo(o,"PUSH",l,function(t){if(t){var r=B(o),a=o.key,u=o.state;if(n)if(e.pushState({key:a,state:u},null,r),s)window.location.href=r;else{var l=M.indexOf(H.location.key),c=M.slice(0,-1===l?0:l+1);c.push(o.key),M=c,A({action:"PUSH",location:o})}else i()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(t,r){i()(!("object"===(void 0===t?"undefined":x(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 o=g(t,r,j(),H.location);T.confirmTransitionTo(o,"REPLACE",l,function(t){if(t){var r=B(o),a=o.key,u=o.state;if(n)if(e.replaceState({key:a,state:u},null,r),s)window.location.replace(r);else{var l=M.indexOf(H.location.key);-1!==l&&(M[l]=o.key),A({action:"REPLACE",location:o})}else i()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:q,goBack:function(){return q(-1)},goForward:function(){return q(1)},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=T.setPrompt(t);return U||(z(1),U=!0),function(){return U&&(U=!1,z(-1)),e()}},listen:function(t){var e=T.appendListener(t);return z(1),function(){z(-1),e()}}};return H},j=(Object.assign,"function"==typeof Symbol&&Symbol.iterator,Object.assign,n(6)),T=n(0);n.d(e,"e",function(){return N}),n.d(e,"a",function(){return P}),n.d(e,"b",function(){return R}),n.d(e,"c",function(){return L}),n.d(e,"d",function(){return I});var A=0;function N(t){if("/"!==t.createHref({pathname:"/"}))throw new T.b("Expected a history without a preconfigured basename. For further details, see: https://www.scrivito.com/js-sdk/useHistory");if(t!==c){var e=!c;!function(t){f&&f();f=t.listen(B)}(t),c=t,e||B()}}function P(){var t=M().location;return""+t.pathname+t.search+t.hash}function R(){return q().get()||0}function L(t){return M().push(t)}function I(t){return M().replace(t)}function D(){c||N(S())}function M(){return D(),c}function B(){A++,q().set(A)}function q(){return j.c.subState("historyChangesCount")}},,,function(t,e,n){n(14),n(64),n(26),n(58);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}},function(t,e,n){"use strict";n.d(e,"d",function(){return c}),n.d(e,"f",function(){return f}),n.d(e,"c",function(){return d}),n.d(e,"e",function(){return p}),n.d(e,"b",function(){return h}),n.d(e,"a",function(){return y});var r=n(10),i=n(16),o=n(0);var a,s=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),u=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e}(o.o),l=null;function c(t){a=t}function f(){return!!a}function d(t){var e=a(Object(r.f)(Object(i.a)(),t));return"string"==typeof e&&e.length>0?e:null}function p(t){if(!a)throw new u("Scrivito.unstable_selectSiteId is only available in the multi-site mode");if(l)throw new u("Scrivito.unstable_selectSiteId can be called only once");l=t}function h(){if(!a)throw new o.j("Calling getSelectedSiteId is only available in multi-site mode");return l}function y(t){if(!l)throw new u("Used "+t+" in the multi-site mode, but the site ID is not yet selected. Forgot to use Scrivito.unstable_selectSiteId?")}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(10),i=n(67),o={};function a(){return o}r.c.init(o).setInitialContentFor(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(9);function i(){return!!r.b&&r.b.isInPlaceEditingActive()}},function(t,e,n){"use strict";n.d(e,"a",function(){return d}),n.d(e,"c",function(){return p}),n.d(e,"b",function(){return h});var r=n(3),i=n(6),o=n(5),a=n(51),s=n(28),u=n(50),l=n(21),c={type:"not found",page:null},f={type:"not responsible"};function d(){var t=Object(o.k)(void 0,function(){return new o.b({state:i.c.subState("currentPage"),invalidation:function(){return s.b()},loader:y}).get()});if(t&&p(t)&&!r.BasicObj.get(t.objId))return c;return t}function p(t){return"page"===t.type}function h(t){return"not found"===t.type}function y(){return Object(o.h)(function(){return function(){var t=s.a();return{route:Object(l.f)(t),location:t}}()}).then(v)}function v(t){var e=t.route,n=t.location;if(null===e.path)return f;var r=e.obj;if(!r)return c;if(!Object(u.a)(r))return{type:"page",objId:r.id(),queryParameters:e.queryParameters,location:n};var i=Object(o.h)(function(){return function(t){var e=t.get("blob",["binary"]),n=e?e.url():null;if(!n)return c;return{type:"binary",objId:t.id(),url:n,page:!1}}(r)});return i.then(m),i}function m(t){"binary"===t.type&&Object(a.a)(t.url)}},function(t,e,n){var r=n(41),i=n(64);t.exports=function(t){return r(t)||i(t)}},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(35),u=n(16),l=Object.freeze({}),c=new i.f;function f(){Object(o.c)("Scrivito.currentPage");var t=y();return t.page?Object(a.f)(Object(u.a)(),t.page):null}function d(){return Object(o.c)("Scrivito.currentPageParams"),y().queryParameters||l}function p(t,e){return c.runWith({page:t,queryParameters:l},e)}function h(){return null===y().page}function y(){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}}()||{}}},,,function(t,e){},function(t,e){t.exports=function(t){return null===t||void 0===t}},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}}},function(t,e,n){var r=n(41),i=n(44);t.exports=function(t){return!r(t)&&"object"==typeof t&&!i(t)}},function(t,e){t.exports=function(t){return Array.isArray?Array.isArray(t):t instanceof Array}},function(t,e,n){n(14),n(103);var r=n(27);n(22);t.exports=function(t){return!r(t)||t.meta.identity}},function(t,e,n){var r=n(27);n(57),n(14),n(102);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}},function(t,e,n){var r=n(27);t.exports=function(t,e){return r(e)?e.is(t):t instanceof e}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(10),i=n(33);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()}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"b",function(){return a});var r=n(9);function i(t){r.b?r.b.navigateToExternalUrl(t):function(t){window.location.assign(t)}(t)}function o(t,e){window.open(t,e)}function a(t){o(t,"_blank")}},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(50),a=n(21);function s(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}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){return d(t),c(t)}function c(t,e){return s(t,i.BasicLink)?function(t,e){void 0===e&&(e={});if(t.isExternal())return t.url();var n=t.obj();if(!n)throw new r.b("Missing link target.");var i=e.origin,o=e.query,a=e.hash;return f(n,{origin:i,query:"string"==typeof o?o:t.query()||void 0,hash:"string"==typeof a?a:t.hash()||void 0})}(t,e):s(t,i.Binary)?p(t):f(t,e)}function f(t,e){return Object(o.a)(t)?function(t,e){var n=t.get("blob",["binary"]);if(n)return p(n);return h(t,e)}(t,e):h(t,e)}function d(t){if(!t)throw new r.b("Missing target.");if(!s(t,i.BasicLink)&&!s(t,i.BasicObj)&&!s(t,i.Binary))throw new r.b("Target is invalid. Valid targets are instances of Obj or Link.")}function p(t){return t.url()}function h(t,e){return void 0===e&&(e={}),Object(a.c)({obj:t,origin:e.origin,queryParameters:e.query?Object(i.parseQuery)(e.query):void 0,hash:e.hash})}},function(t,e,n){"use strict";var r=n(23),i=n(0),o=n(5);n.d(e,"b",function(){return u}),n.d(e,"a",function(){return l});var a=new i.f,s=1448;function u(t){return a.runWith(!0,t)}function l(t){return t.isRaw()||t.isExplicitlyTransformed()?t.url():a.current()?c(t).url():function(t){var e=function(t){return Object(o.e)(t).result}(function(){return c(t).urlWithoutPlaceholder()});if(e&&function(t){var e=f[t];void 0===e&&(e=function(t){var e=new Image;return e.src=t,e.complete}(t),f[t]=e);return e}(e))return e}(t)||function(t){return t.optimizeFor({width:Object(r.g)().width*Object(r.a)()}).url()}(t)}function c(t){return t.optimizeFor({width:s})}var f={}},function(t,e,n){"use strict";var r=n(155),i=r.stringify,o={},a=r.struct({message:r.Any,actual:r.Any,expected:r.Any,path:r.list(r.union([r.String,r.Number]))},"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[e.meta.kind](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[0]},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?[]:[a.of(t,e,n,r.context)]}},f.irreducible=f.enums=function(t,e,n,r){return{value:t,errors:e.is(t)?[]:[a.of(t,e,n,r.context)]}},f.list=function(t,e,n,i){if(!r.Array.is(t))return{value:t,errors:[a.of(t,e,n,i.context)]};for(var o={value:[],errors:[]},s=0,u=t.length;s<u;s++){var l=c(t[s],e.meta.type,n.concat(s),i);o.value[s]=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?i:(e.meta.predicate(i.value)||(i.errors=[a.of(t,e,n,r.context)]),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:[a.of(t,e,n,i.context)]};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[f];void 0===d&&(d=l[f]);var p=c(d,u[f],n.concat(f),i);s.value[f]=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[h],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:[a.of(t,e,n,i.context)]};for(var u={value:[],errors:[]},l=0;l<s;l++){var f=c(t[l],o[l],n.concat(l),i);u.value[l]=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:[a.of(t,e,n,i.context)]};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[s],e.meta.codomain,u,i);o.value[s]=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:[a.of(t,e,n,i.context)]}},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<o;l++){"struct"===i[l].meta.kind&&u++;var f=c(t,i[l],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:[a.of(t,e,n,i.context)]};var o={value:{},errors:[]},s=e.meta.props;for(var u in s){var l=c(t[u],s[u],n.concat(u),i);o.value[u]=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[f])||o.errors.push(a.of(t[f],r.Nil,n.concat(f),i.context));return o},r.mixin(r,{ValidationError:a,ValidationResult:u,validate:l}),t.exports=r},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})},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(13),i=n(3),o=n(52),a=n(21),s=/\bobjid:[a-f0-9]{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()})}},function(t,e){t.exports=function(t){return t.displayName||t.name||"<function"+t.length+">"}},function(t,e,n){var r=n(14),i=n(22);t.exports=function(t,e){r(!(t instanceof e),function(){return"Cannot use the new operator to instantiate the type "+i(e)})}},function(t,e,n){"use strict";n.d(e,"a",function(){return d}),n.d(e,"b",function(){return p});var r=n(1),i=n(3),o=n(0),a=n(63),s=n(16),u=n(55),l=n(10),c=n(5),f=n(32);function d(t){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,i.BasicObj))throw new o.b("Parameter obj needs to be a BasicObj.");if(function(t){var e=Object(c.k)(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(/[^0-9a-f]/))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}},function(t,e,n){var r;
34
+ /*!
35
+ * jQuery JavaScript Library v1.11.1
36
+ * http://jquery.com/
37
+ *
38
+ * Includes Sizzle.js
39
+ * http://sizzlejs.com/
40
+ *
41
+ * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
42
+ * Released under the MIT license
43
+ * http://jquery.org/license
44
+ *
45
+ * Date: 2014-05-01T17:42Z
46
+ */
47
+ /*!
21
48
  * jQuery JavaScript Library v1.11.1
22
49
  * http://jquery.com/
23
50
  *
@@ -30,7 +57,8 @@
30
57
  *
31
58
  * Date: 2014-05-01T17:42Z
32
59
  */
33
- !function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){function a(t){var e=t.length,n=st.type(t);return"function"!==n&&!st.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t))}function s(t,e,n){if(st.isFunction(e))return st.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return st.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(vt.test(e))return st.filter(e,t,n);e=st.filter(e,t)}return st.grep(t,function(t){return st.inArray(t,e)>=0!==n})}function u(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function c(t){var e=kt[t]={};return st.each(t.match(_t)||[],function(t,n){e[n]=!0}),e}function l(){mt.addEventListener?(mt.removeEventListener("DOMContentLoaded",f,!1),n.removeEventListener("load",f,!1)):(mt.detachEvent("onreadystatechange",f),n.detachEvent("onload",f))}function f(){(mt.addEventListener||"load"===event.type||"complete"===mt.readyState)&&(l(),st.ready())}function d(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(jt,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ct.test(n)?st.parseJSON(n):n)}catch(t){}st.data(t,e,n)}else n=void 0}return n}function h(t){var e;for(e in t)if(("data"!==e||!st.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function p(t,e,n,r){if(st.acceptData(t)){var i,o,a=st.expando,s=t.nodeType,u=s?st.cache:t,c=s?t[a]:t[a]&&a;if(c&&u[c]&&(r||u[c].data)||void 0!==n||"string"!=typeof e)return c||(c=s?t[a]=X.pop()||st.guid++:a),u[c]||(u[c]=s?{}:{toJSON:st.noop}),"object"!=typeof e&&"function"!=typeof e||(r?u[c]=st.extend(u[c],e):u[c].data=st.extend(u[c].data,e)),o=u[c],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[st.camelCase(e)]=n),"string"==typeof e?null==(i=o[e])&&(i=o[st.camelCase(e)]):i=o,i}}function v(t,e,n){if(st.acceptData(t)){var r,i,o=t.nodeType,a=o?st.cache:t,s=o?t[st.expando]:st.expando;if(a[s]){if(e&&(r=n?a[s]:a[s].data)){st.isArray(e)?e=e.concat(st.map(e,st.camelCase)):e in r?e=[e]:(e=st.camelCase(e),e=e in r?[e]:e.split(" ")),i=e.length;for(;i--;)delete r[e[i]];if(n?!h(r):!st.isEmptyObject(r))return}(n||(delete a[s].data,h(a[s])))&&(o?st.cleanData([t],!0):at.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function y(){return!0}function m(){return!1}function b(){try{return mt.activeElement}catch(t){}}function g(t){var e=Mt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function w(t,e){var n,r,i=0,o=typeof t.getElementsByTagName!==xt?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==xt?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(r=n[i]);i++)!e||st.nodeName(r,e)?o.push(r):st.merge(o,w(r,e));return void 0===e||e&&st.nodeName(t,e)?st.merge([t],o):o}function _(t){Pt.test(t.type)&&(t.defaultChecked=t.checked)}function k(t,e){return st.nodeName(t,"table")&&st.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function O(t){return t.type=(null!==st.find.attr(t,"type"))+"/"+t.type,t}function E(t){var e=$t.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function x(t,e){for(var n,r=0;null!=(n=t[r]);r++)st._data(n,"globalEval",!e||st._data(e[r],"globalEval"))}function C(t,e){if(1===e.nodeType&&st.hasData(t)){var n,r,i,o=st._data(t),a=st._data(e,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r<i;r++)st.event.add(e,n,s[n][r])}a.data&&(a.data=st.extend({},a.data))}}function j(t,e){var n,r,i;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!at.noCloneEvent&&e[st.expando]){i=st._data(e);for(r in i.events)st.removeEvent(e,r,i.handle);e.removeAttribute(st.expando)}"script"===n&&e.text!==t.text?(O(e).text=t.text,E(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),at.html5Clone&&t.innerHTML&&!st.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&Pt.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)}}function S(t,e){var r,i=st(e.createElement(t)).appendTo(e.body),o=n.getDefaultComputedStyle&&(r=n.getDefaultComputedStyle(i[0]))?r.display:st.css(i[0],"display");return i.detach(),o}function A(t){var e=mt,n=ee[t];return n||(n=S(t,e),"none"!==n&&n||(te=(te||st("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=(te[0].contentWindow||te[0].contentDocument).document,e.write(),e.close(),n=S(t,e),te.detach()),ee[t]=n),n}function T(t,e){return{get:function(){var n=t();if(null!=n)return n?void delete this.get:(this.get=e).apply(this,arguments)}}}function N(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=pe.length;i--;)if((e=pe[i]+n)in t)return e;return r}function P(t,e){for(var n,r,i,o=[],a=0,s=t.length;a<s;a++)r=t[a],r.style&&(o[a]=st._data(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Tt(r)&&(o[a]=st._data(r,"olddisplay",A(r.nodeName)))):(i=Tt(r),(n&&"none"!==n||!i)&&st._data(r,"olddisplay",i?n:st.css(r,"display"))));for(a=0;a<s;a++)r=t[a],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function L(t,e,n){var r=le.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function I(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+=st.css(t,n+At[o],!0,i)),r?("content"===n&&(a-=st.css(t,"padding"+At[o],!0,i)),"margin"!==n&&(a-=st.css(t,"border"+At[o]+"Width",!0,i))):(a+=st.css(t,"padding"+At[o],!0,i),"padding"!==n&&(a+=st.css(t,"border"+At[o]+"Width",!0,i)));return a}function D(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=ne(t),a=at.boxSizing&&"border-box"===st.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(i=re(t,e,o),(i<0||null==i)&&(i=t.style[e]),oe.test(i))return i;r=a&&(at.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+I(t,e,n||(a?"border":"content"),r,o)+"px"}function q(t,e,n,r,i){return new q.prototype.init(t,e,n,r,i)}function R(){return setTimeout(function(){ve=void 0}),ve=st.now()}function M(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)n=At[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function B(t,e,n){for(var r,i=(_e[e]||[]).concat(_e["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function F(t,e,n){var r,i,o,a,s,u,c,l=this,f={},d=t.style,h=t.nodeType&&Tt(t),p=st._data(t,"fxshow");n.queue||(s=st._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--,st.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],c=st.css(t,"display"),"inline"===("none"===c?st._data(t,"olddisplay")||A(t.nodeName):c)&&"none"===st.css(t,"float")&&(at.inlineBlockNeedsLayout&&"inline"!==A(t.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",at.shrinkWrapBlocks()||l.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],me.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!p||void 0===p[r])continue;h=!0}f[r]=p&&p[r]||st.style(t,r)}else c=void 0;if(st.isEmptyObject(f))"inline"===("none"===c?A(t.nodeName):c)&&(d.display=c);else{p?"hidden"in p&&(h=p.hidden):p=st._data(t,"fxshow",{}),o&&(p.hidden=!h),h?st(t).show():l.done(function(){st(t).hide()}),l.done(function(){var e;st._removeData(t,"fxshow");for(e in f)st.style(t,e,f[e])});for(r in f)a=B(h?p[r]:0,r,l),r in p||(p[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function z(t,e){var n,r,i,o,a;for(n in t)if(r=st.camelCase(n),i=e[r],o=t[n],st.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=st.cssHooks[r])&&"expand"in a){o=a.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function U(t,e,n){var r,i,o=0,a=we.length,s=st.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=ve||R(),n=Math.max(0,c.startTime+c.duration-e),r=n/c.duration||0,o=1-r,a=0,u=c.tweens.length;a<u;a++)c.tweens[a].run(o);return s.notifyWith(t,[c,o,n]),o<1&&u?n:(s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:st.extend({},e),opts:st.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:ve||R(),duration:n.duration,tweens:[],createTween:function(e,n){var r=st.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var n=0,r=e?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return e?s.resolveWith(t,[c,e]):s.rejectWith(t,[c,e]),this}}),l=c.props;for(z(l,c.opts.specialEasing);o<a;o++)if(r=we[o].call(c,t,l,c.opts))return r;return st.map(l,B,c),st.isFunction(c.opts.start)&&c.opts.start.call(t,c),st.fx.timer(st.extend(u,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function H(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(_t)||[];if(st.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function W(t,e,n,r){function i(s){var u;return o[s]=!0,st.each(t[s]||[],function(t,s){var c=s(e,n,r);return"string"!=typeof c||a||o[c]?a?!(u=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),u}var o={},a=t===Ke;return i(e.dataTypes[0])||!o["*"]&&i("*")}function K(t,e){var n,r,i=st.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&st.extend(!0,t,n),t}function V(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||t.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}function Q(t,e,n,r){var i,o,a,s,u,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));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}}function Y(t,e,n,r){var i;if(st.isArray(e))st.each(e,function(e,i){n||Ye.test(t)?r(t,i):Y(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==st.type(e))r(t,e);else for(i in e)Y(t+"["+i+"]",e[i],n,r)}function $(){try{return new n.XMLHttpRequest}catch(t){}}function Z(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function G(t){return st.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var X=[],J=X.slice,tt=X.concat,et=X.push,nt=X.indexOf,rt={},it=rt.toString,ot=rt.hasOwnProperty,at={},st=function(t,e){return new st.fn.init(t,e)},ut=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ct=/^-ms-/,lt=/-([\da-z])/gi,ft=function(t,e){return e.toUpperCase()};st.fn=st.prototype={jquery:"1.11.1",constructor:st,selector:"",length:0,toArray:function(){return J.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:J.call(this)},pushStack:function(t){var e=st.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return st.each(this,t,e)},map:function(t){return this.pushStack(st.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(J.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:et,sort:X.sort,splice:X.splice},st.extend=st.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||st.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(i=arguments[s]))for(r in i)t=a[r],n=i[r],a!==n&&(c&&n&&(st.isPlainObject(n)||(e=st.isArray(n)))?(e?(e=!1,o=t&&st.isArray(t)?t:[]):o=t&&st.isPlainObject(t)?t:{},a[r]=st.extend(c,o,n)):void 0!==n&&(a[r]=n));return a},st.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"===st.type(t)},isArray:Array.isArray||function(t){return"array"===st.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!st.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"!==st.type(t)||t.nodeType||st.isWindow(t))return!1;try{if(t.constructor&&!ot.call(t,"constructor")&&!ot.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(at.ownLast)for(e in t)return ot.call(t,e);for(e in t);return void 0===e||ot.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?rt[it.call(t)]||"object":typeof t},globalEval:function(t){t&&st.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(t){return t.replace(ct,"ms-").replace(lt,ft)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r=0,i=t.length,o=a(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(ut,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(a(Object(t))?st.merge(n,"string"==typeof t?[t]:t):et.call(n,t)),n},inArray:function(t,e,n){var r;if(e){if(nt)return nt.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,s=a(t),u=[];if(s)for(;i<o;i++)null!=(r=e(t[i],i,n))&&u.push(r);else for(i in t)null!=(r=e(t[i],i,n))&&u.push(r);return tt.apply([],u)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(i=t[e],e=t,t=i),st.isFunction(t))return n=J.call(arguments,2),r=function(){return t.apply(e||this,n.concat(J.call(arguments)))},r.guid=t.guid=t.guid||st.guid++,r},now:function(){return+new Date},support:at}),st.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){rt["[object "+e+"]"]=e.toLowerCase()});var dt=/*!
60
+ !function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,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)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,v=/^-ms-/,m=/-([\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(v,"ms-").replace(m,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(y,"")},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=
61
+ /*!
34
62
  * Sizzle CSS Selector Engine v1.10.19
35
63
  * http://sizzlejs.com/
36
64
  *
@@ -40,7 +68,13 @@
40
68
  *
41
69
  * Date: 2014-04-18
42
70
  */
43
- function(t){function e(t,e,n,r){var i,o,a,s,c,f,d,h,p,v;if((e?e.ownerDocument||e:M)!==T&&A(e),e=e||T,n=n||[],!t||"string"!=typeof t)return n;if(1!==(s=e.nodeType)&&9!==s)return[];if(P&&!r){if(i=yt.exec(t))if(a=i[1]){if(9===s){if(!(o=e.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&q(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return G.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&g.getElementsByClassName&&e.getElementsByClassName)return G.apply(n,e.getElementsByClassName(a)),n}if(g.qsa&&(!L||!L.test(t))){if(h=d=R,p=e,v=9===s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(f=O(t),(d=e.getAttribute("id"))?h=d.replace(bt,"\\$&"):e.setAttribute("id",h),h="[id='"+h+"'] ",c=f.length;c--;)f[c]=h+l(f[c]);p=mt.test(t)&&u(e.parentNode)||e,v=f.join(",")}if(v)try{return G.apply(n,p.querySelectorAll(v)),n}catch(t){}finally{d||e.removeAttribute("id")}}}return x(t.replace(at,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>w.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[R]=!0,t}function i(t){var e=T.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=t.length;r--;)w.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function u(t){return t&&typeof t.getElementsByTagName!==K&&t}function c(){}function l(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function f(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=F++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,c=[B,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(u=e[R]||(e[R]={}),(s=u[r])&&s[0]===B&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=t(e,n,a))return!0}}}function d(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function h(t,n,r){for(var i=0,o=n.length;i<o;i++)e(t,n[i],r);return r}function p(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,c=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),c&&e.push(s)));return a}function v(t,e,n,i,o,a){return i&&!i[R]&&(i=v(i)),o&&!o[R]&&(o=v(o,a)),r(function(r,a,s,u){var c,l,f,d=[],v=[],y=a.length,m=r||h(e||"*",s.nodeType?[s]:s,[]),b=!t||!r&&e?m:p(m,d,t,s,u),g=n?o||(r?t:y||i)?[]:a:b;if(n&&n(b,g,s,u),i)for(c=p(g,v),i(c,[],s,u),l=c.length;l--;)(f=c[l])&&(g[v[l]]=!(b[v[l]]=f));if(r){if(o||t){if(o){for(c=[],l=g.length;l--;)(f=g[l])&&c.push(b[l]=f);o(null,g=[],c,u)}for(l=g.length;l--;)(f=g[l])&&(c=o?J.call(r,f):d[l])>-1&&(r[c]=!(a[c]=f))}}else g=p(g===a?g.splice(y,g.length):g),o?o(null,a,g,u):G.apply(a,g)})}function y(t){for(var e,n,r,i=t.length,o=w.relative[t[0].type],a=o||w.relative[" "],s=o?1:0,u=f(function(t){return t===e},a,!0),c=f(function(t){return J.call(e,t)>-1},a,!0),h=[function(t,n,r){return!o&&(r||n!==C)||((e=n).nodeType?u(t,n,r):c(t,n,r))}];s<i;s++)if(n=w.relative[t[s].type])h=[f(d(h),n)];else{if(n=w.filter[t[s].type].apply(null,t[s].matches),n[R]){for(r=++s;r<i&&!w.relative[t[r].type];r++);return v(s>1&&d(h),s>1&&l(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(at,"$1"),n,s<r&&y(t.slice(s,r)),r<i&&y(t=t.slice(r)),r<i&&l(t))}h.push(n)}return d(h)}function m(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,s,u,c){var l,f,d,h=0,v="0",y=r&&[],m=[],b=C,g=r||o&&w.find.TAG("*",c),_=B+=null==b?1:Math.random()||.1,k=g.length;for(c&&(C=a!==T&&a);v!==k&&null!=(l=g[v]);v++){if(o&&l){for(f=0;d=t[f++];)if(d(l,a,s)){u.push(l);break}c&&(B=_)}i&&((l=!d&&l)&&h--,r&&y.push(l))}if(h+=v,i&&v!==h){for(f=0;d=n[f++];)d(y,m,a,s);if(r){if(h>0)for(;v--;)y[v]||m[v]||(m[v]=$.call(u));m=p(m)}G.apply(u,m),c&&!r&&m.length>0&&h+n.length>1&&e.uniqueSort(u)}return c&&(B=_,C=b),y};return i?r(a):a}var b,g,w,_,k,O,E,x,C,j,S,A,T,N,P,L,I,D,q,R="sizzle"+-new Date,M=t.document,B=0,F=0,z=n(),U=n(),H=n(),W=function(t,e){return t===e&&(S=!0),0},K="undefined",V=1<<31,Q={}.hasOwnProperty,Y=[],$=Y.pop,Z=Y.push,G=Y.push,X=Y.slice,J=Y.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},tt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",et="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt=nt.replace("w","w#"),it="\\["+et+"*("+nt+")(?:"+et+"*([*^$|!~]?=)"+et+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+et+"*\\]",ot=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",at=new RegExp("^"+et+"+|((?:^|[^\\\\])(?:\\\\.)*)"+et+"+$","g"),st=new RegExp("^"+et+"*,"+et+"*"),ut=new RegExp("^"+et+"*([>+~]|"+et+")"+et+"*"),ct=new RegExp("="+et+"*([^\\]'\"]*?)"+et+"*\\]","g"),lt=new RegExp(ot),ft=new RegExp("^"+rt+"$"),dt={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt.replace("w","w*")+")"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+et+"*(even|odd|(([+-]|)(\\d*)n|)"+et+"*(?:([+-]|)"+et+"*(\\d+)|))"+et+"*\\)|)","i"),bool:new RegExp("^(?:"+tt+")$","i"),needsContext:new RegExp("^"+et+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+et+"*((?:-\\d)?\\d*)"+et+"*\\)|)(?=[^-]|$)","i")},ht=/^(?:input|select|textarea|button)$/i,pt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,bt=/'|\\/g,gt=new RegExp("\\\\([\\da-f]{1,6}"+et+"?|("+et+")|.)","ig"),wt=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{G.apply(Y=X.call(M.childNodes),M.childNodes),Y[M.childNodes.length].nodeType}catch(t){G={apply:Y.length?function(t,e){Z.apply(t,X.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}g=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},A=e.setDocument=function(t){var e,n=t?t.ownerDocument||t:M,r=n.defaultView;return n!==T&&9===n.nodeType&&n.documentElement?(T=n,N=n.documentElement,P=!k(n),r&&r!==r.top&&(r.addEventListener?r.addEventListener("unload",function(){A()},!1):r.attachEvent&&r.attachEvent("onunload",function(){A()})),g.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),g.getElementsByTagName=i(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),g.getElementsByClassName=vt.test(n.getElementsByClassName)&&i(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),g.getById=i(function(t){return N.appendChild(t).id=R,!n.getElementsByName||!n.getElementsByName(R).length}),g.getById?(w.find.ID=function(t,e){if(typeof e.getElementById!==K&&P){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},w.filter.ID=function(t){var e=t.replace(gt,wt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(gt,wt);return function(t){var n=typeof t.getAttributeNode!==K&&t.getAttributeNode("id");return n&&n.value===e}}),w.find.TAG=g.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==K)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=g.getElementsByClassName&&function(t,e){if(typeof e.getElementsByClassName!==K&&P)return e.getElementsByClassName(t)},I=[],L=[],(g.qsa=vt.test(n.querySelectorAll))&&(i(function(t){t.innerHTML="<select msallowclip=''><option selected=''></option></select>",t.querySelectorAll("[msallowclip^='']").length&&L.push("[*^$]="+et+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+et+"*(?:value|"+tt+")"),t.querySelectorAll(":checked").length||L.push(":checked")}),i(function(t){var e=n.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&L.push("name"+et+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(g.matchesSelector=vt.test(D=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&i(function(t){g.disconnectedMatch=D.call(t,"div"),D.call(t,"[s!='']:x"),I.push("!=",ot)}),L=L.length&&new RegExp(L.join("|")),I=I.length&&new RegExp(I.join("|")),e=vt.test(N.compareDocumentPosition),q=e||vt.test(N.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(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},W=e?function(t,e){if(t===e)return S=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&r||!g.sortDetached&&e.compareDocumentPosition(t)===r?t===n||t.ownerDocument===M&&q(M,t)?-1:e===n||e.ownerDocument===M&&q(M,e)?1:j?J.call(j,t)-J.call(j,e):0:4&r?-1:1)}:function(t,e){if(t===e)return S=!0,0;var r,i=0,o=t.parentNode,s=e.parentNode,u=[t],c=[e];if(!o||!s)return t===n?-1:e===n?1:o?-1:s?1:j?J.call(j,t)-J.call(j,e):0;if(o===s)return a(t,e);for(r=t;r=r.parentNode;)u.unshift(r);for(r=e;r=r.parentNode;)c.unshift(r);for(;u[i]===c[i];)i++;return i?a(u[i],c[i]):u[i]===M?-1:c[i]===M?1:0},n):T},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==T&&A(t),n=n.replace(ct,"='$1']"),g.matchesSelector&&P&&(!I||!I.test(n))&&(!L||!L.test(n)))try{var r=D.call(t,n);if(r||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return e(n,T,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==T&&A(t),q(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==T&&A(t);var n=w.attrHandle[e.toLowerCase()],r=n&&Q.call(w.attrHandle,e.toLowerCase())?n(t,e,!P):void 0;return void 0!==r?r:g.attributes||!P?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(S=!g.detectDuplicates,j=!g.sortStable&&t.slice(0),t.sort(W),S){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return j=null,t},_=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=_(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=_(e);return n},w=e.selectors={cacheLength:50,createPseudo:r,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(gt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(gt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&lt.test(n)&&(e=O(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(gt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=z[t+" "];return e||(e=new RegExp("(^|"+et+")"+t+"("+et+"|$)"))&&z(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==K&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},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 c,l,f,d,h,p,v=o!==a?"nextSibling":"previousSibling",y=e.parentNode,m=s&&e.nodeName.toLowerCase(),b=!u&&!s;if(y){if(o){for(;v;){for(f=e;f=f[v];)if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;p=v="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?y.firstChild:y.lastChild],a&&b){for(l=y[R]||(y[R]={}),c=l[t]||[],h=c[0]===B&&c[1],d=c[0]===B&&c[2],f=h&&y.childNodes[h];f=++h&&f&&f[v]||(d=h=0)||p.pop();)if(1===f.nodeType&&++d&&f===e){l[t]=[B,h,d];break}}else if(b&&(c=(e[R]||(e[R]={}))[t])&&c[0]===B)d=c[1];else for(;(f=++h&&f&&f[v]||(d=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++d||(b&&((f[R]||(f[R]={}))[t]=[B,d]),f!==e)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(t,n){var i,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[R]?o(n):o.length>1?(i=[t,t,"",n],w.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=J.call(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=E(t.replace(at,"$1"));return i[R]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return function(e){return(e.textContent||e.innerText||_(e)).indexOf(t)>-1}}),lang:r(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(gt,wt).toLowerCase(),function(e){var n;do{if(n=P?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===N},focus:function(t){return t===T.activeElement&&(!T.hasFocus||T.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!w.pseudos.empty(t)},header:function(t){return pt.test(t.nodeName)},input:function(t){return ht.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:s(function(){return[0]}),last:s(function(t,e){return[e-1]}),eq:s(function(t,e,n){return[n<0?n+e:n]}),even:s(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:s(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:s(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:s(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},w.pseudos.nth=w.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[b]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(b);for(b in{submit:!0,reset:!0})w.pseudos[b]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(b);return c.prototype=w.filters=w.pseudos,w.setFilters=new c,O=e.tokenize=function(t,n){var r,i,o,a,s,u,c,l=U[t+" "];if(l)return n?0:l.slice(0);for(s=t,u=[],c=w.preFilter;s;){r&&!(i=st.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ut.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(at," ")}),s=s.slice(r.length));for(a in w.filter)!(i=dt[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):U(t,u).slice(0)},E=e.compile=function(t,e){var n,r=[],i=[],o=H[t+" "];if(!o){for(e||(e=O(t)),n=e.length;n--;)o=y(e[n]),o[R]?r.push(o):i.push(o);o=H(t,m(i,r)),o.selector=t}return o},x=e.select=function(t,e,n,r){var i,o,a,s,c,f="function"==typeof t&&t,d=!r&&O(t=f.selector||t);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&g.getById&&9===e.nodeType&&P&&w.relative[o[1].type]){if(!(e=(w.find.ID(a.matches[0].replace(gt,wt),e)||[])[0]))return n;f&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=dt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((c=w.find[s])&&(r=c(a.matches[0].replace(gt,wt),mt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&l(o)))return G.apply(n,r),n;break}}return(f||E(t,d))(r,e,!P,n,mt.test(t)&&u(e.parentNode)||e),n},g.sortStable=R.split("").sort(W).join("")===R,g.detectDuplicates=!!S,A(),g.sortDetached=i(function(t){return 1&t.compareDocumentPosition(T.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),g.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(tt,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(n);st.find=dt,st.expr=dt.selectors,st.expr[":"]=st.expr.pseudos,st.unique=dt.uniqueSort,st.text=dt.getText,st.isXMLDoc=dt.isXML,st.contains=dt.contains;var ht=st.expr.match.needsContext,pt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,vt=/^.[^:#\[\.,]*$/;st.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?st.find.matchesSelector(r,t)?[r]:[]:st.find.matches(t,st.grep(e,function(t){return 1===t.nodeType}))},st.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if("string"!=typeof t)return this.pushStack(st(t).filter(function(){for(e=0;e<i;e++)if(st.contains(r[e],this))return!0}));for(e=0;e<i;e++)st.find(t,r[e],n);return n=this.pushStack(i>1?st.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(s(this,t||[],!1))},not:function(t){return this.pushStack(s(this,t||[],!0))},is:function(t){return!!s(this,"string"==typeof t&&ht.test(t)?st(t):t||[],!1).length}});var yt,mt=n.document,bt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(st.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?[null,t,null]:bt.exec(t))||!n[1]&&e)return!e||e.jquery?(e||yt).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof st?e[0]:e,st.merge(this,st.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:mt,!0)),pt.test(n[1])&&st.isPlainObject(e))for(n in e)st.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((r=mt.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return yt.find(t);this.length=1,this[0]=r}return this.context=mt,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):st.isFunction(t)?void 0!==yt.ready?yt.ready(t):t(st):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),st.makeArray(t,this))}).prototype=st.fn,yt=st(mt);var gt=/^(?:parents|prev(?:Until|All))/,wt={children:!0,contents:!0,next:!0,prev:!0};st.extend({dir:function(t,e,n){for(var r=[],i=t[e];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!st(i).is(n));)1===i.nodeType&&r.push(i),i=i[e];return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),st.fn.extend({has:function(t){var e,n=st(t,this),r=n.length;return this.filter(function(){for(e=0;e<r;e++)if(st.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=ht.test(t)||"string"!=typeof t?st(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&st.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?st.unique(o):o)},index:function(t){return t?"string"==typeof t?st.inArray(this[0],st(t)):st.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(st.unique(st.merge(this.get(),st(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),st.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return st.dir(t,"parentNode")},parentsUntil:function(t,e,n){return st.dir(t,"parentNode",n)},next:function(t){return u(t,"nextSibling")},prev:function(t){return u(t,"previousSibling")},nextAll:function(t){return st.dir(t,"nextSibling")},prevAll:function(t){return st.dir(t,"previousSibling")},nextUntil:function(t,e,n){return st.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return st.dir(t,"previousSibling",n)},siblings:function(t){return st.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return st.sibling(t.firstChild)},contents:function(t){return st.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:st.merge([],t.childNodes)}},function(t,e){st.fn[t]=function(n,r){var i=st.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=st.filter(r,i)),this.length>1&&(wt[t]||(i=st.unique(i)),gt.test(t)&&(i=i.reverse())),this.pushStack(i)}});var _t=/\S+/g,kt={};st.Callbacks=function(t){t="string"==typeof t?kt[t]||c(t):st.extend({},t);var e,n,r,i,o,a,s=[],u=!t.once&&[],l=function(c){for(n=t.memory&&c,r=!0,o=a||0,a=0,i=s.length,e=!0;s&&o<i;o++)if(!1===s[o].apply(c[0],c[1])&&t.stopOnFalse){n=!1;break}e=!1,s&&(u?u.length&&l(u.shift()):n?s=[]:f.disable())},f={add:function(){if(s){var r=s.length;!function e(n){st.each(n,function(n,r){var i=st.type(r);"function"===i?t.unique&&f.has(r)||s.push(r):r&&r.length&&"string"!==i&&e(r)})}(arguments),e?i=s.length:n&&(a=r,l(n))}return this},remove:function(){return s&&st.each(arguments,function(t,n){for(var r;(r=st.inArray(n,s,r))>-1;)s.splice(r,1),e&&(r<=i&&i--,r<=o&&o--)}),this},has:function(t){return t?st.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||f.disable(),this},locked:function(){return!u},fireWith:function(t,n){return!s||r&&!u||(n=n||[],n=[t,n.slice?n.slice():n],e?u.push(n):l(n)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f},st.extend({Deferred:function(t){var e=[["resolve","done",st.Callbacks("once memory"),"resolved"],["reject","fail",st.Callbacks("once memory"),"rejected"],["notify","progress",st.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return st.Deferred(function(n){st.each(e,function(e,o){var a=st.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&st.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?st.extend(t,r):r}},i={};return r.pipe=r.then,st.each(e,function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=J.call(arguments),a=o.length,s=1!==a||t&&st.isFunction(t.promise)?a:0,u=1===s?t:st.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?J.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&st.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(u.reject).progress(c(i,n,e)):--s;return s||u.resolveWith(r,o),u.promise()}});var Ot;st.fn.ready=function(t){return st.ready.promise().done(t),this},st.extend({isReady:!1,readyWait:1,holdReady:function(t){t?st.readyWait++:st.ready(!0)},ready:function(t){if(!0===t?!--st.readyWait:!st.isReady){if(!mt.body)return setTimeout(st.ready);st.isReady=!0,!0!==t&&--st.readyWait>0||(Ot.resolveWith(mt,[st]),st.fn.triggerHandler&&(st(mt).triggerHandler("ready"),st(mt).off("ready")))}}}),st.ready.promise=function(t){if(!Ot)if(Ot=st.Deferred(),"complete"===mt.readyState)setTimeout(st.ready);else if(mt.addEventListener)mt.addEventListener("DOMContentLoaded",f,!1),n.addEventListener("load",f,!1);else{mt.attachEvent("onreadystatechange",f),n.attachEvent("onload",f);var e=!1;try{e=null==n.frameElement&&mt.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!st.isReady){try{e.doScroll("left")}catch(e){return setTimeout(t,50)}l(),st.ready()}}()}return Ot.promise(t)};var Et,xt="undefined";for(Et in st(at))break;at.ownLast="0"!==Et,at.inlineBlockNeedsLayout=!1,st(function(){var t,e,n,r;(n=mt.getElementsByTagName("body")[0])&&n.style&&(e=mt.createElement("div"),r=mt.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),typeof e.style.zoom!==xt&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",at.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))}),function(){var t=mt.createElement("div");if(null==at.deleteExpando){at.deleteExpando=!0;try{delete t.test}catch(t){at.deleteExpando=!1}}t=null}(),st.acceptData=function(t){var e=st.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var Ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,jt=/([A-Z])/g;st.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?st.cache[t[st.expando]]:t[st.expando])&&!h(t)},data:function(t,e,n){return p(t,e,n)},removeData:function(t,e){return v(t,e)},_data:function(t,e,n){return p(t,e,n,!0)},_removeData:function(t,e){return v(t,e,!0)}}),st.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=st.data(o),1===o.nodeType&&!st._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=st.camelCase(r.slice(5)),d(o,r,i[r])));st._data(o,"parsedAttrs",!0)}return i}return"object"==typeof t?this.each(function(){st.data(this,t)}):arguments.length>1?this.each(function(){st.data(this,t,e)}):o?d(o,t,st.data(o,t)):void 0},removeData:function(t){return this.each(function(){st.removeData(this,t)})}}),st.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=st._data(t,e),n&&(!r||st.isArray(n)?r=st._data(t,e,st.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=st.queue(t,e),r=n.length,i=n.shift(),o=st._queueHooks(t,e),a=function(){st.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return st._data(t,n)||st._data(t,n,{empty:st.Callbacks("once memory").add(function(){st._removeData(t,e+"queue"),st._removeData(t,n)})})}}),st.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?st.queue(this[0],t):void 0===e?this:this.each(function(){var n=st.queue(this,t,e);st._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&st.dequeue(this,t)})},dequeue:function(t){return this.each(function(){st.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=st.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=st._data(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var St=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,At=["Top","Right","Bottom","Left"],Tt=function(t,e){return t=e||t,"none"===st.css(t,"display")||!st.contains(t.ownerDocument,t)},Nt=st.access=function(t,e,n,r,i,o,a){var s=0,u=t.length,c=null==n;if("object"===st.type(n)){i=!0;for(s in n)st.access(t,e,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,st.isFunction(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(st(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:c?e.call(t):u?e(t[0],n):o},Pt=/^(?:checkbox|radio)$/i;!function(){var t=mt.createElement("input"),e=mt.createElement("div"),n=mt.createDocumentFragment();if(e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",at.leadingWhitespace=3===e.firstChild.nodeType,at.tbody=!e.getElementsByTagName("tbody").length,at.htmlSerialize=!!e.getElementsByTagName("link").length,at.html5Clone="<:nav></:nav>"!==mt.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),at.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",at.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",at.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,at.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){at.noCloneEvent=!1}),e.cloneNode(!0).click()),null==at.deleteExpando){at.deleteExpando=!0;try{delete e.test}catch(t){at.deleteExpando=!1}}}(),function(){var t,e,r=mt.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(at[t+"Bubbles"]=e in n)||(r.setAttribute(e,"t"),at[t+"Bubbles"]=!1===r.attributes[e].expando);r=null}();var Lt=/^(?:input|select|textarea)$/i,It=/^key/,Dt=/^(?:mouse|pointer|contextmenu)|click/,qt=/^(?:focusinfocus|focusoutblur)$/,Rt=/^([^.]*)(?:\.(.+)|)$/;st.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,c,l,f,d,h,p,v,y=st._data(t);if(y){for(n.handler&&(u=n,n=u.handler,i=u.selector),n.guid||(n.guid=st.guid++),(a=y.events)||(a=y.events={}),(l=y.handle)||(l=y.handle=function(t){return typeof st===xt||t&&st.event.triggered===t.type?void 0:st.event.dispatch.apply(l.elem,arguments)},l.elem=t),e=(e||"").match(_t)||[""],s=e.length;s--;)o=Rt.exec(e[s])||[],h=v=o[1],p=(o[2]||"").split(".").sort(),h&&(c=st.event.special[h]||{},h=(i?c.delegateType:c.bindType)||h,c=st.event.special[h]||{},f=st.extend({type:h,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&st.expr.match.needsContext.test(i),namespace:p.join(".")},u),(d=a[h])||(d=a[h]=[],d.delegateCount=0,c.setup&&!1!==c.setup.call(t,r,p,l)||(t.addEventListener?t.addEventListener(h,l,!1):t.attachEvent&&t.attachEvent("on"+h,l))),c.add&&(c.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),st.event.global[h]=!0);t=null}},remove:function(t,e,n,r,i){var o,a,s,u,c,l,f,d,h,p,v,y=st.hasData(t)&&st._data(t);if(y&&(l=y.events)){for(e=(e||"").match(_t)||[""],c=e.length;c--;)if(s=Rt.exec(e[c])||[],h=v=s[1],p=(s[2]||"").split(".").sort(),h){for(f=st.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,d=l[h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=d.length;o--;)a=d[o],!i&&v!==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,p,y.handle)||st.removeEvent(t,h,y.handle),delete l[h])}else for(h in l)st.event.remove(t,h+e[c],n,r,!0);st.isEmptyObject(l)&&(delete y.handle,st._removeData(t,"events"))}},trigger:function(t,e,r,i){var o,a,s,u,c,l,f,d=[r||mt],h=ot.call(t,"type")?t.type:t,p=ot.call(t,"namespace")?t.namespace.split("."):[];if(s=l=r=r||mt,3!==r.nodeType&&8!==r.nodeType&&!qt.test(h+st.event.triggered)&&(h.indexOf(".")>=0&&(p=h.split("."),h=p.shift(),p.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[st.expando]?t:new st.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=p.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:st.makeArray(e,[t]),c=st.event.special[h]||{},i||!c.trigger||!1!==c.trigger.apply(r,e))){if(!i&&!c.noBubble&&!st.isWindow(r)){for(u=c.delegateType||h,qt.test(u+h)||(s=s.parentNode);s;s=s.parentNode)d.push(s),l=s;l===(r.ownerDocument||mt)&&d.push(l.defaultView||l.parentWindow||n)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?u:c.bindType||h,o=(st._data(s,"events")||{})[t.type]&&st._data(s,"handle"),o&&o.apply(s,e),(o=a&&s[a])&&o.apply&&st.acceptData(s)&&(t.result=o.apply(s,e),!1===t.result&&t.preventDefault());if(t.type=h,!i&&!t.isDefaultPrevented()&&(!c._default||!1===c._default.apply(d.pop(),e))&&st.acceptData(r)&&a&&r[h]&&!st.isWindow(r)){l=r[a],l&&(r[a]=null),st.event.triggered=h;try{r[h]()}catch(t){}st.event.triggered=void 0,l&&(r[a]=l)}return t.result}},dispatch:function(t){t=st.event.fix(t);var e,n,r,i,o,a=[],s=J.call(arguments),u=(st._data(this,"events")||{})[t.type]||[],c=st.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=st.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(n=((st.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!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++)r=e[o],n=r.selector+" ",void 0===i[n]&&(i[n]=r.needsContext?st(n,this).index(u)>=0:st.find(n,this,null,[u]).length),i[n]&&i.push(r);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[st.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Dt.test(i)?this.mouseHooks:It.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new st.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=o.srcElement||mt),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&&(r=t.target.ownerDocument||mt,i=r.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!==b()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===b()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(st.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return st.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=st.extend(new st.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?st.event.trigger(i,null,e):st.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},st.removeEvent=mt.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var r="on"+e;t.detachEvent&&(typeof t[r]===xt&&(t[r]=null),t.detachEvent(r,n))},st.Event=function(t,e){if(!(this instanceof st.Event))return new st.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?y:m):this.type=t,e&&st.extend(this,e),this.timeStamp=t&&t.timeStamp||st.now(),this[st.expando]=!0},st.Event.prototype={isDefaultPrevented:m,isPropagationStopped:m,isImmediatePropagationStopped:m,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=y,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=y,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=y,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},st.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){st.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||st.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),at.submitBubbles||(st.event.special.submit={setup:function(){if(st.nodeName(this,"form"))return!1;st.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=st.nodeName(e,"input")||st.nodeName(e,"button")?e.form:void 0;n&&!st._data(n,"submitBubbles")&&(st.event.add(n,"submit._submit",function(t){t._submit_bubble=!0}),st._data(n,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&st.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){if(st.nodeName(this,"form"))return!1;st.event.remove(this,"._submit")}}),at.changeBubbles||(st.event.special.change={setup:function(){if(Lt.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(st.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),st.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),st.event.simulate("change",this,t,!0)})),!1;st.event.add(this,"beforeactivate._change",function(t){var e=t.target;Lt.test(e.nodeName)&&!st._data(e,"changeBubbles")&&(st.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||st.event.simulate("change",this.parentNode,t,!0)}),st._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 st.event.remove(this,"._change"),!Lt.test(this.nodeName)}}),at.focusinBubbles||st.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){st.event.simulate(e,t.target,st.event.fix(t),!0)};st.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=st._data(r,e);i||r.addEventListener(t,n,!0),st._data(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=st._data(r,e)-1;i?st._data(r,e,i):(r.removeEventListener(t,n,!0),st._removeData(r,e))}}}),st.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(o in t)this.on(o,e,n,t[o],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=m;else if(!r)return this;return 1===i&&(a=r,r=function(t){return st().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=st.guid++)),this.each(function(){st.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,st(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[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=m),this.each(function(){st.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){st.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return st.event.trigger(t,e,n,!0)}});var Mt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Bt=/ jQuery\d+="(?:null|\d+)"/g,Ft=new RegExp("<(?:"+Mt+")[\\s/>]","i"),zt=/^\s+/,Ut=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ht=/<([\w:]+)/,Wt=/<tbody/i,Kt=/<|&#?\w+;/,Vt=/<(?:script|style|link)/i,Qt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^$|\/(?:java|ecma)script/i,$t=/^true\/(.*)/,Zt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Gt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:at.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Xt=g(mt),Jt=Xt.appendChild(mt.createElement("div"));Gt.optgroup=Gt.option,Gt.tbody=Gt.tfoot=Gt.colgroup=Gt.caption=Gt.thead,Gt.th=Gt.td,st.extend({clone:function(t,e,n){var r,i,o,a,s,u=st.contains(t.ownerDocument,t);if(at.html5Clone||st.isXMLDoc(t)||!Ft.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(Jt.innerHTML=t.outerHTML,Jt.removeChild(o=Jt.firstChild)),!(at.noCloneEvent&&at.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||st.isXMLDoc(t)))for(r=w(o),s=w(t),a=0;null!=(i=s[a]);++a)r[a]&&j(i,r[a]);if(e)if(n)for(s=s||w(t),r=r||w(o),a=0;null!=(i=s[a]);a++)C(i,r[a]);else C(t,o);return r=w(o,"script"),r.length>0&&x(r,!u&&w(t,"script")),r=s=i=null,o},buildFragment:function(t,e,n,r){for(var i,o,a,s,u,c,l,f=t.length,d=g(e),h=[],p=0;p<f;p++)if((o=t[p])||0===o)if("object"===st.type(o))st.merge(h,o.nodeType?[o]:o);else if(Kt.test(o)){for(s=s||d.appendChild(e.createElement("div")),u=(Ht.exec(o)||["",""])[1].toLowerCase(),l=Gt[u]||Gt._default,s.innerHTML=l[1]+o.replace(Ut,"<$1></$2>")+l[2],i=l[0];i--;)s=s.lastChild;if(!at.leadingWhitespace&&zt.test(o)&&h.push(e.createTextNode(zt.exec(o)[0])),!at.tbody)for(o="table"!==u||Wt.test(o)?"<table>"!==l[1]||Wt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;i--;)st.nodeName(c=o.childNodes[i],"tbody")&&!c.childNodes.length&&o.removeChild(c);for(st.merge(h,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else h.push(e.createTextNode(o));for(s&&d.removeChild(s),at.appendChecked||st.grep(w(h,"input"),_),p=0;o=h[p++];)if((!r||-1===st.inArray(o,r))&&(a=st.contains(o.ownerDocument,o),s=w(d.appendChild(o),"script"),a&&x(s),n))for(i=0;o=s[i++];)Yt.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(t,e){for(var n,r,i,o,a=0,s=st.expando,u=st.cache,c=at.deleteExpando,l=st.event.special;null!=(n=t[a]);a++)if((e||st.acceptData(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)l[r]?st.event.remove(n,r):st.removeEvent(n,r,o.handle);u[i]&&(delete u[i],c?delete n[s]:typeof n.removeAttribute!==xt?n.removeAttribute(s):n[s]=null,X.push(i))}}}),st.fn.extend({text:function(t){return Nt(this,function(t){return void 0===t?st.text(this):this.empty().append((this[0]&&this[0].ownerDocument||mt).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){k(this,t).appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=k(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?st.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||st.cleanData(w(n)),n.parentNode&&(e&&st.contains(n.ownerDocument,n)&&x(w(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&st.cleanData(w(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&st.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 st.clone(this,t,e)})},html:function(t){return Nt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Bt,""):void 0;if("string"==typeof t&&!Vt.test(t)&&(at.htmlSerialize||!Ft.test(t))&&(at.leadingWhitespace||!zt.test(t))&&!Gt[(Ht.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Ut,"<$1></$2>");try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(st.cleanData(w(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,st.cleanData(w(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=tt.apply([],t);var n,r,i,o,a,s,u=0,c=this.length,l=this,f=c-1,d=t[0],h=st.isFunction(d);if(h||c>1&&"string"==typeof d&&!at.checkClone&&Qt.test(d))return this.each(function(n){var r=l.eq(n);h&&(t[0]=d.call(this,n,r.html())),r.domManip(t,e)});if(c&&(s=st.buildFragment(t,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(o=st.map(w(s,"script"),O),i=o.length;u<c;u++)r=s,u!==f&&(r=st.clone(r,!0,!0),i&&st.merge(o,w(r,"script"))),e.call(this[u],r,u);if(i)for(a=o[o.length-1].ownerDocument,st.map(o,E),u=0;u<i;u++)r=o[u],Yt.test(r.type||"")&&!st._data(r,"globalEval")&&st.contains(a,r)&&(r.src?st._evalUrl&&st._evalUrl(r.src):st.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Zt,"")));s=n=null}return this}}),st.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){st.fn[t]=function(t){for(var n,r=0,i=[],o=st(t),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),st(o[r])[e](n),et.apply(i,n.get());return this.pushStack(i)}});var te,ee={};!function(){var t;at.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,r;return(n=mt.getElementsByTagName("body")[0])&&n.style?(e=mt.createElement("div"),r=mt.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),typeof e.style.zoom!==xt&&(e.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",e.appendChild(mt.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(r),t):void 0}}();var ne,re,ie=/^margin/,oe=new RegExp("^("+St+")(?!px)[a-z%]+$","i"),ae=/^(top|right|bottom|left)$/;n.getComputedStyle?(ne=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},re=function(t,e,n){var r,i,o,a,s=t.style;return n=n||ne(t),a=n?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==a||st.contains(t.ownerDocument,t)||(a=st.style(t,e)),oe.test(a)&&ie.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+""}):mt.documentElement.currentStyle&&(ne=function(t){return t.currentStyle},re=function(t,e,n){var r,i,o,a,s=t.style;return n=n||ne(t),a=n?n[e]:void 0,null==a&&s&&s[e]&&(a=s[e]),oe.test(a)&&!ae.test(e)&&(r=s.left,i=t.runtimeStyle,o=i&&i.left,o&&(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(){function t(){var t,e,r,i;(e=mt.getElementsByTagName("body")[0])&&e.style&&(t=mt.createElement("div"),r=mt.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(r).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",o=a=!1,u=!0,n.getComputedStyle&&(o="1%"!==(n.getComputedStyle(t,null)||{}).top,a="4px"===(n.getComputedStyle(t,null)||{width:"4px"}).width,i=t.appendChild(mt.createElement("div")),i.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",i.style.marginRight=i.style.width="0",t.style.width="1px",u=!parseFloat((n.getComputedStyle(i,null)||{}).marginRight)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=t.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===i[0].offsetHeight,s&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),e.removeChild(r))}var e,r,i,o,a,s,u;e=mt.createElement("div"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=e.getElementsByTagName("a")[0],(r=i&&i.style)&&(r.cssText="float:left;opacity:.5",at.opacity="0.5"===r.opacity,at.cssFloat=!!r.cssFloat,e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",at.clearCloneStyle="content-box"===e.style.backgroundClip,at.boxSizing=""===r.boxSizing||""===r.MozBoxSizing||""===r.WebkitBoxSizing,st.extend(at,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==a&&t(),a},pixelPosition:function(){return null==o&&t(),o},reliableMarginRight:function(){return null==u&&t(),u}}))}(),st.swap=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=a[o];return i};var se=/alpha\([^)]*\)/i,ue=/opacity\s*=\s*([^)]*)/,ce=/^(none|table(?!-c[ea]).+)/,le=new RegExp("^("+St+")(.*)$","i"),fe=new RegExp("^([+-])=("+St+")","i"),de={position:"absolute",visibility:"hidden",display:"block"},he={letterSpacing:"0",fontWeight:"400"},pe=["Webkit","O","Moz","ms"];st.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=re(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:at.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=st.camelCase(e),u=t.style;if(e=st.cssProps[s]||(st.cssProps[s]=N(u,s)),a=st.cssHooks[e]||st.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e];if(o=typeof n,"string"===o&&(i=fe.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(st.css(t,e)),o="number"),null!=n&&n===n&&("number"!==o||st.cssNumber[s]||(n+="px"),at.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(t,n,r)))))try{u[e]=n}catch(t){}}},css:function(t,e,n,r){var i,o,a,s=st.camelCase(e);return e=st.cssProps[s]||(st.cssProps[s]=N(t.style,s)),a=st.cssHooks[e]||st.cssHooks[s],a&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=re(t,e,r)),"normal"===o&&e in he&&(o=he[e]),""===n||n?(i=parseFloat(o),!0===n||st.isNumeric(i)?i||0:o):o}}),st.each(["height","width"],function(t,e){st.cssHooks[e]={get:function(t,n,r){if(n)return ce.test(st.css(t,"display"))&&0===t.offsetWidth?st.swap(t,de,function(){return D(t,e,r)}):D(t,e,r)},set:function(t,n,r){var i=r&&ne(t);return L(t,n,r?I(t,e,r,at.boxSizing&&"border-box"===st.css(t,"boxSizing",!1,i),i):0)}}}),at.opacity||(st.cssHooks.opacity={get:function(t,e){return ue.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=st.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===st.trim(o.replace(se,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||r&&!r.filter)||(n.filter=se.test(o)?o.replace(se,i):o+" "+i)}}),st.cssHooks.marginRight=T(at.reliableMarginRight,function(t,e){if(e)return st.swap(t,{display:"inline-block"},re,[t,"marginRight"])}),st.each({margin:"",padding:"",border:"Width"},function(t,e){st.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+At[r]+e]=o[r]||o[r-2]||o[0];return i}},ie.test(t)||(st.cssHooks[t+e].set=L)}),st.fn.extend({css:function(t,e){return Nt(this,function(t,e,n){var r,i,o={},a=0;if(st.isArray(e)){for(r=ne(t),i=e.length;a<i;a++)o[e[a]]=st.css(t,e[a],!1,r);return o}return void 0!==n?st.style(t,e,n):st.css(t,e)},t,e,arguments.length>1)},show:function(){return P(this,!0)},hide:function(){return P(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Tt(this)?st(this).show():st(this).hide()})}}),st.Tween=q,q.prototype={constructor:q,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||(st.cssNumber[n]?"":"px")},cur:function(){var t=q.propHooks[this.prop];return t&&t.get?t.get(this):q.propHooks._default.get(this)},run:function(t){var e,n=q.propHooks[this.prop];return this.options.duration?this.pos=e=st.easing[this.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):q.propHooks._default.set(this),this}},q.prototype.init.prototype=q.prototype,q.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=st.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){st.fx.step[t.prop]?st.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[st.cssProps[t.prop]]||st.cssHooks[t.prop])?st.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},q.propHooks.scrollTop=q.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},st.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},st.fx=q.prototype.init,st.fx.step={};var ve,ye,me=/^(?:toggle|show|hide)$/,be=new RegExp("^(?:([+-])=|)("+St+")([a-z%]*)$","i"),ge=/queueHooks$/,we=[F],_e={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=be.exec(e),o=i&&i[3]||(st.cssNumber[t]?"":"px"),a=(st.cssNumber[t]||"px"!==o&&+r)&&be.exec(st.css(n.elem,t)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{s=s||".5",a/=s,st.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[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};st.Animation=st.extend(U,{tweener:function(t,e){st.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;r<i;r++)n=t[r],_e[n]=_e[n]||[],_e[n].unshift(e)},prefilter:function(t,e){e?we.unshift(t):we.push(t)}}),st.speed=function(t,e,n){var r=t&&"object"==typeof t?st.extend({},t):{complete:n||!n&&e||st.isFunction(t)&&t,duration:t,easing:n&&e||e&&!st.isFunction(e)&&e};return r.duration=st.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in st.fx.speeds?st.fx.speeds[r.duration]:st.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){st.isFunction(r.old)&&r.old.call(this),r.queue&&st.dequeue(this,r.queue)},r},st.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Tt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=st.isEmptyObject(t),o=st.speed(e,n,r),a=function(){var e=U(this,st.extend({},t),o);(i||st._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=st.timers,a=st._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ge.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||st.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=st._data(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=st.timers,a=r?r.length:0;for(n.finish=!0,st.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),st.each(["toggle","show","hide"],function(t,e){var n=st.fn[e];st.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(M(e,!0),t,r,i)}}),st.each({slideDown:M("show"),slideUp:M("hide"),slideToggle:M("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){st.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),st.timers=[],st.fx.tick=function(){var t,e=st.timers,n=0;for(ve=st.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||st.fx.stop(),ve=void 0},st.fx.timer=function(t){st.timers.push(t),t()?st.fx.start():st.timers.pop()},st.fx.interval=13,st.fx.start=function(){ye||(ye=setInterval(st.fx.tick,st.fx.interval))},st.fx.stop=function(){clearInterval(ye),ye=null},st.fx.speeds={slow:600,fast:200,_default:400},st.fn.delay=function(t,e){return t=st.fx?st.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var t,e,n,r,i;e=mt.createElement("div"),e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=e.getElementsByTagName("a")[0],n=mt.createElement("select"),i=n.appendChild(mt.createElement("option")),t=e.getElementsByTagName("input")[0],r.style.cssText="top:1px",at.getSetAttribute="t"!==e.className,at.style=/top/.test(r.getAttribute("style")),at.hrefNormalized="/a"===r.getAttribute("href"),at.checkOn=!!t.value,at.optSelected=i.selected,at.enctype=!!mt.createElement("form").enctype,n.disabled=!0,at.optDisabled=!i.disabled,t=mt.createElement("input"),t.setAttribute("value",""),at.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),at.radioValue="t"===t.value}();var ke=/\r/g;st.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=st.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,st(this).val()):t,null==i?i="":"number"==typeof i?i+="":st.isArray(i)&&(i=st.map(i,function(t){return null==t?"":t+""})),(e=st.valHooks[this.type]||st.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return(e=st.valHooks[i.type]||st.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(ke,""):null==n?"":n)}}}),st.extend({valHooks:{option:{get:function(t){var e=st.find.attr(t,"value");return null!=e?e:st.trim(st.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<s;u++)if(n=r[u],(n.selected||u===i)&&(at.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!st.nodeName(n.parentNode,"optgroup"))){if(e=st(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=st.makeArray(e),a=i.length;a--;)if(r=i[a],st.inArray(st.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(t){r.scrollHeight}else r.selected=!1;return n||(t.selectedIndex=-1),i}}}}),st.each(["radio","checkbox"],function(){st.valHooks[this]={set:function(t,e){if(st.isArray(e))return t.checked=st.inArray(st(t).val(),e)>=0}},at.checkOn||(st.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Oe,Ee,xe=st.expr.attrHandle,Ce=/^(?:checked|selected)$/i,je=at.getSetAttribute,Se=at.input;st.fn.extend({attr:function(t,e){return Nt(this,st.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){st.removeAttr(this,t)})}}),st.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===xt?st.prop(t,e,n):(1===o&&st.isXMLDoc(t)||(e=e.toLowerCase(),r=st.attrHooks[e]||(st.expr.match.bool.test(e)?Ee:Oe)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=st.find.attr(t,e),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void st.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(_t);if(o&&1===t.nodeType)for(;n=o[i++];)r=st.propFix[n]||n,st.expr.match.bool.test(n)?Se&&je||!Ce.test(n)?t[r]=!1:t[st.camelCase("default-"+n)]=t[r]=!1:st.attr(t,n,""),t.removeAttribute(je?n:r)},attrHooks:{type:{set:function(t,e){if(!at.radioValue&&"radio"===e&&st.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),Ee={set:function(t,e,n){return!1===e?st.removeAttr(t,n):Se&&je||!Ce.test(n)?t.setAttribute(!je&&st.propFix[n]||n,n):t[st.camelCase("default-"+n)]=t[n]=!0,n}},st.each(st.expr.match.bool.source.match(/\w+/g),function(t,e){var n=xe[e]||st.find.attr;xe[e]=Se&&je||!Ce.test(e)?function(t,e,r){var i,o;return r||(o=xe[e],xe[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,xe[e]=o),i}:function(t,e,n){if(!n)return t[st.camelCase("default-"+e)]?e.toLowerCase():null}}),Se&&je||(st.attrHooks.value={set:function(t,e,n){if(!st.nodeName(t,"input"))return Oe&&Oe.set(t,e,n);t.defaultValue=e}}),je||(Oe={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}},xe.id=xe.name=xe.coords=function(t,e,n){var r;if(!n)return(r=t.getAttributeNode(e))&&""!==r.value?r.value:null},st.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:Oe.set},st.attrHooks.contenteditable={set:function(t,e,n){Oe.set(t,""!==e&&e,n)}},st.each(["width","height"],function(t,e){st.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}})),at.style||(st.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Ae=/^(?:input|select|textarea|button|object)$/i,Te=/^(?:a|area)$/i;st.fn.extend({prop:function(t,e){return Nt(this,st.prop,t,e,arguments.length>1)},removeProp:function(t){return t=st.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),st.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var r,i,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return o=1!==a||!st.isXMLDoc(t),o&&(e=st.propFix[e]||e,i=st.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=st.find.attr(t,"tabindex");return e?parseInt(e,10):Ae.test(t.nodeName)||Te.test(t.nodeName)&&t.href?0:-1}}}}),at.hrefNormalized||st.each(["href","src"],function(t,e){st.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),at.optSelected||(st.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),st.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){st.propFix[this.toLowerCase()]=this}),at.enctype||(st.propFix.enctype="encoding");var Ne=/[\t\r\n\f]/g;st.fn.extend({addClass:function(t){var e,n,r,i,o,a,s=0,u=this.length,c="string"==typeof t&&t;if(st.isFunction(t))return this.each(function(e){st(this).addClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(_t)||[];s<u;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ne," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=st.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,s=0,u=this.length,c=0===arguments.length||"string"==typeof t&&t;if(st.isFunction(t))return this.each(function(e){st(this).removeClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(_t)||[];s<u;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ne," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=t?st.trim(r):"",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):st.isFunction(t)?this.each(function(n){st(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,r=0,i=st(this),o=t.match(_t)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else n!==xt&&"boolean"!==n||(this.className&&st._data(this,"__className__",this.className),this.className=this.className||!1===t?"":st._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ne," ").indexOf(e)>=0)return!0;return!1}}),st.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){st.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),st.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 Pe=st.now(),Le=/\?/,Ie=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;st.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var e,r=null,i=st.trim(t+"");return i&&!st.trim(i.replace(Ie,function(t,n,i,o){return e&&n&&(r=0),0===r?t:(e=i||n,r+=!o-!i,"")}))?Function("return "+i)():st.error("Invalid JSON: "+t)},st.parseXML=function(t){var e,r;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(r=new DOMParser,e=r.parseFromString(t,"text/xml")):(e=new ActiveXObject("Microsoft.XMLDOM"),e.async="false",e.loadXML(t))}catch(t){e=void 0}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||st.error("Invalid XML: "+t),e};var De,qe,Re=/#.*$/,Me=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Fe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ze=/^(?:GET|HEAD)$/,Ue=/^\/\//,He=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,We={},Ke={},Ve="*/".concat("*");try{qe=location.href}catch(t){qe=mt.createElement("a"),qe.href="",qe=qe.href}De=He.exec(qe.toLowerCase())||[],st.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qe,type:"GET",isLocal:Fe.test(De[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ve,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":st.parseJSON,"text xml":st.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?K(K(t,st.ajaxSettings),e):K(st.ajaxSettings,t)},ajaxPrefilter:H(We),ajaxTransport:H(Ke),ajax:function(t,e){function n(t,e,n,r){var i,l,m,b,w,k=e;2!==g&&(g=2,s&&clearTimeout(s),c=void 0,a=r||"",_.readyState=t>0?4:0,i=t>=200&&t<300||304===t,n&&(b=V(f,_,n)),b=Q(f,b,_,i),i?(f.ifModified&&(w=_.getResponseHeader("Last-Modified"),w&&(st.lastModified[o]=w),(w=_.getResponseHeader("etag"))&&(st.etag[o]=w)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=b.state,l=b.data,m=b.error,i=!m)):(m=k,!t&&k||(k="error",t<0&&(t=0))),_.status=t,_.statusText=(e||k)+"",i?p.resolveWith(d,[l,k,_]):p.rejectWith(d,[_,k,m]),_.statusCode(y),y=void 0,u&&h.trigger(i?"ajaxSuccess":"ajaxError",[_,f,i?l:m]),v.fireWith(d,[_,k]),u&&(h.trigger("ajaxComplete",[_,f]),--st.active||st.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,u,c,l,f=st.ajaxSetup({},e),d=f.context||f,h=f.context&&(d.nodeType||d.jquery)?st(d):st.event,p=st.Deferred(),v=st.Callbacks("once memory"),y=f.statusCode||{},m={},b={},g=0,w="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===g){if(!l)for(l={};e=Be.exec(a);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===g?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return g||(t=b[n]=b[n]||t,m[t]=e),this},overrideMimeType:function(t){return g||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(g<2)for(e in t)y[e]=[y[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){var e=t||w;return c&&c.abort(e),n(0,e),this}};if(p.promise(_).complete=v.add,_.success=_.done,_.error=_.fail,f.url=((t||f.url||qe)+"").replace(Re,"").replace(Ue,De[1]+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=st.trim(f.dataType||"*").toLowerCase().match(_t)||[""],null==f.crossDomain&&(r=He.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===De[1]&&r[2]===De[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(De[3]||("http:"===De[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=st.param(f.data,f.traditional)),W(We,f,e,_),2===g)return _;u=f.global,u&&0==st.active++&&st.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ze.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(Le.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=Me.test(o)?o.replace(Me,"$1_="+Pe++):o+(Le.test(o)?"&":"?")+"_="+Pe++)),f.ifModified&&(st.lastModified[o]&&_.setRequestHeader("If-Modified-Since",st.lastModified[o]),st.etag[o]&&_.setRequestHeader("If-None-Match",st.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&_.setRequestHeader("Content-Type",f.contentType),_.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ve+"; q=0.01":""):f.accepts["*"]);for(i in f.headers)_.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(d,_,f)||2===g))return _.abort();w="abort";for(i in{success:1,error:1,complete:1})_[i](f[i]);if(c=W(Ke,f,e,_)){_.readyState=1,u&&h.trigger("ajaxSend",[_,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){_.abort("timeout")},f.timeout));try{g=1,c.send(m,n)}catch(t){if(!(g<2))throw t;n(-1,t)}}else n(-1,"No Transport");return _},getJSON:function(t,e,n){return st.get(t,e,n,"json")},getScript:function(t,e){return st.get(t,void 0,e,"script")}}),st.each(["get","post"],function(t,e){st[e]=function(t,n,r,i){return st.isFunction(n)&&(i=i||r,r=n,n=void 0),st.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),st.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){st.fn[e]=function(t){return this.on(e,t)}}),st._evalUrl=function(t){return st.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},st.fn.extend({wrapAll:function(t){if(st.isFunction(t))return this.each(function(e){st(this).wrapAll(t.call(this,e))});if(this[0]){var e=st(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),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 st.isFunction(t)?this.each(function(e){st(this).wrapInner(t.call(this,e))}):this.each(function(){var e=st(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=st.isFunction(t);return this.each(function(n){st(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){st.nodeName(this,"body")||st(this).replaceWith(this.childNodes)}).end()}}),st.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!at.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||st.css(t,"display"))},st.expr.filters.visible=function(t){return!st.expr.filters.hidden(t)};var Qe=/%20/g,Ye=/\[\]$/,$e=/\r?\n/g,Ze=/^(?:submit|button|image|reset|file)$/i,Ge=/^(?:input|select|textarea|keygen)/i;st.param=function(t,e){var n,r=[],i=function(t,e){e=st.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=st.ajaxSettings&&st.ajaxSettings.traditional),st.isArray(t)||t.jquery&&!st.isPlainObject(t))st.each(t,function(){i(this.name,this.value)});else for(n in t)Y(n,t[n],e,i);return r.join("&").replace(Qe,"+")},st.fn.extend({serialize:function(){return st.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=st.prop(this,"elements");return t?st.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!st(this).is(":disabled")&&Ge.test(this.nodeName)&&!Ze.test(t)&&(this.checked||!Pt.test(t))}).map(function(t,e){var n=st(this).val();return null==n?null:st.isArray(n)?st.map(n,function(t){return{name:e.name,value:t.replace($e,"\r\n")}}):{name:e.name,value:n.replace($e,"\r\n")}}).get()}}),st.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&$()||Z()}:$;var Xe=0,Je={},tn=st.ajaxSettings.xhr();n.ActiveXObject&&st(n).on("unload",function(){for(var t in Je)Je[t](void 0,!0)}),at.cors=!!tn&&"withCredentials"in tn,tn=at.ajax=!!tn,tn&&st.ajaxTransport(function(t){if(!t.crossDomain||at.cors){var e;return{send:function(n,r){var i,o=t.xhr(),a=++Xe;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(t.hasContent&&t.data||null),e=function(n,i){var s,u,c;if(e&&(i||4===o.readyState))if(delete Je[a],e=void 0,o.onreadystatechange=st.noop,i)4!==o.readyState&&o.abort();else{c={},s=o.status,"string"==typeof o.responseText&&(c.text=o.responseText);try{u=o.statusText}catch(t){u=""}s||!t.isLocal||t.crossDomain?1223===s&&(s=204):s=c.text?200:404}c&&r(s,u,c,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=Je[a]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),st.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return st.globalEval(t),t}}}),st.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),st.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=mt.head||st("head")[0]||mt.documentElement;return{send:function(r,i){e=mt.createElement("script"),e.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 en=[],nn=/(=)\?(?=&|$)|\?\?/;st.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||st.expando+"_"+Pe++;return this[t]=!0,t}}),st.ajaxPrefilter("json jsonp",function(t,e,r){var i,o,a,s=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=st.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(nn,"$1"+i):!1!==t.jsonp&&(t.url+=(Le.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||st.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,en.push(i)),a&&st.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),st.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||mt;var r=pt.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=st.buildFragment([t],e,i),i&&i.length&&st(i).remove(),st.merge([],r.childNodes))};var rn=st.fn.load;st.fn.load=function(t,e,n){if("string"!=typeof t&&rn)return rn.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return s>=0&&(r=st.trim(t.slice(s,t.length)),t=t.slice(0,s)),st.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),a.length>0&&st.ajax({url:t,type:o,dataType:"html",data:e}).done(function(t){i=arguments,a.html(r?st("<div>").append(st.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,i||[t.responseText,e,t])}),this},st.expr.filters.animated=function(t){return st.grep(st.timers,function(e){return t===e.elem}).length};var on=n.document.documentElement;st.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,c,l=st.css(t,"position"),f=st(t),d={};"static"===l&&(t.style.position="relative"),s=f.offset(),o=st.css(t,"top"),u=st.css(t,"left"),c=("absolute"===l||"fixed"===l)&&st.inArray("auto",[o,u])>-1,c?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),st.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+i),"using"in e?e.using.call(t,d):f.css(d)}},st.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){st.offset.setOffset(this,t,e)});var e,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return e=o.documentElement,st.contains(e,i)?(typeof i.getBoundingClientRect!==xt&&(r=i.getBoundingClientRect()),n=G(o),{top:r.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:r.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):r},position:function(){if(this[0]){var t,e,n={top:0,left:0},r=this[0];return"fixed"===st.css(r,"position")?e=r.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),st.nodeName(t[0],"html")||(n=t.offset()),n.top+=st.css(t[0],"borderTopWidth",!0),n.left+=st.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-st.css(r,"marginTop",!0),left:e.left-n.left-st.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||on;t&&!st.nodeName(t,"html")&&"static"===st.css(t,"position");)t=t.offsetParent;return t||on})}}),st.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);st.fn[t]=function(r){return Nt(this,function(t,r,i){var o=G(t);if(void 0===i)return o?e in o?o[e]:o.document.documentElement[r]:t[r];o?o.scrollTo(n?st(o).scrollLeft():i,n?i:st(o).scrollTop()):t[r]=i},t,r,arguments.length,null)}}),st.each(["top","left"],function(t,e){st.cssHooks[e]=T(at.pixelPosition,function(t,n){if(n)return n=re(t,e),oe.test(n)?st(t).position()[e]+"px":n})}),st.each({Height:"height",Width:"width"},function(t,e){st.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){st.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return Nt(this,function(e,n,r){var i;return st.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?st.css(e,n,a):st.style(e,n,r,a)},e,o?r:void 0,o,null)}})}),st.fn.size=function(){return this.length},st.fn.andSelf=st.fn.addBack,r=[],void 0!==(i=function(){return st}.apply(e,r))&&(t.exports=i);var an=n.jQuery,sn=n.$;return st.noConflict=function(t){return n.$===st&&(n.$=sn),t&&n.jQuery===st&&(n.jQuery=an),st},typeof o===xt&&(n.jQuery=n.$=st),st})},function(t,e,n){var r=n(16);t.exports=r("Any",function(){return!0})},function(t,e,n){function r(t,e){return"{"+c(t)+" | "+l(e)+"}"}function i(t,e,n){function i(e,n){var r=s(t,e,n);return r}var c=n||r(t,e),l=a(t);return i.meta={kind:"subtype",type:t,predicate:e,name:n,identity:l},i.displayName=c,i.is=function(n){return u(n,t)&&e(n)},i.update=function(t,e){return i(o.update(t,e))},i}var o=n(5),a=(n(20),n(10),n(52),n(29)),s=n(30),u=n(31),c=n(8),l=n(51);i.getDefaultName=r,t.exports=i},function(t,e,n){var r=n(16),i=n(65);t.exports=r("String",i)},function(t,e,n){function r(t,e){return"{[key: "+a(t)+"]: "+a(e)+"}"}function i(t,e,n){function i(n,r){if(d)return n;var i=!0,o={};for(var a in n)if(n.hasOwnProperty(a)){a=c(t,a,null);var s=n[a],u=c(e,s,null);i=i&&s===u,o[a]=u}return i&&(o=n),o}var f=n||r(t,e),d=(a(t),a(e),s(t)&&s(e));return i.meta={kind:"dict",domain:t,codomain:e,name:n,identity:d},i.displayName=f,i.is=function(n){if(!u(n))return!1;for(var r in n)if(n.hasOwnProperty(r)&&(!l(r,t)||!l(n[r],e)))return!1;return!0},i.update=function(t,e){return i(o.update(t,e))},i}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=n(27),c=n(30),l=n(31);i.getDefaultName=r,t.exports=i},function(t,e,n){var r=n(25);n(5);t.exports=function(t,e,n){if(r(e))return t;for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}},function(t,e,n){"use strict";function r(){return u||(u=new c.a,Object(f.a)(s)),u.promise}function i(){return h+=1,a()}function o(t){var e=i();return d.a(t,e)}function a(){var t=!1;return function(){if(t)throw new l.InternalError("Unregister must not be called twice");h-=1,t=!0,0===h&&Object(f.a)(s)}}function s(){u&&0===h&&(u.resolve(void 0),u=void 0)}e.a=r,e.c=i,e.b=o;var u,c=n(12),l=n(1),f=n(37),d=n(50),h=0},function(t,e,n){"use strict";function r(t,e){var n=u[t];if(n)return n[e]}function i(t,e){p(t,e),u[t]=e}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r});var o=n(24),a=n(39),s=n(59),u={},c=o.a.struct({value:o.a.String,title:o.a.String}),l=o.a.dict(o.a.String,o.a.struct({title:o.a.maybe(o.a.String),description:o.a.maybe(o.a.String),values:o.a.maybe(o.a.list(c))})),f=o.a.list(o.a.struct({title:o.a.String,component:o.a.maybe(o.a.String),properties:o.a.maybe(o.a.list(o.a.String))})),d=o.a.dict(o.a.String,o.a.union([s.b,o.a.Date,o.a.Function,o.a.Nil,o.a.Number,o.a.String,o.a.list(s.b),o.a.list(s.e),o.a.list(o.a.String)])),h=o.a.struct({attributes:o.a.maybe(l),propertiesGroups:o.a.maybe(f),title:o.a.maybe(o.a.String),description:o.a.maybe(o.a.String),thumbnail:o.a.maybe(o.a.String),titleForContent:o.a.maybe(o.a.Function),descriptionForContent:o.a.maybe(o.a.Function),hideInSelectionDialogs:o.a.maybe(o.a.Boolean),properties:o.a.maybe(o.a.list(o.a.String)),initialContent:o.a.maybe(d)}),p=Object(a.a)("provideEditingConfig",[["className",o.a.String],["editingConfig",h]],{docPermalink:"js-sdk/provideEditingConfig"})},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"f",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"d",function(){return u}),n.d(e,"b",function(){return c});var r=function(t){return"/"===t.charAt(0)?t:"/"+t},i=function(t){return"/"===t.charAt(0)?t.substr(1):t},o=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},a=function(t,e){return o(t,e)?t.substr(e.length):t},s=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},u=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}},c=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}},function(t,e){t.exports=ReactDOM},function(t,e,n){"use strict";function r(t,e){u[t]=e}function i(t){return u[t]||null}function o(t,e){r(s(t),e)}function a(t){return i(s(t))}function s(t){return"appClass-".concat(t)}n.d(e,"a",function(){return a}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return r});var u={}},function(t,e,n){"use strict";function r(){return!!i.b&&i.b.isEditingMode()}e.a=r;var i=n(17)},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(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||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t,e){if(!t)return e;if(!e)return null;var n={};return c(t,e,function(r,i,o){"_widget_pool"===r?n._widget_pool=f(i,o):e.hasOwnProperty(r)?o&&(n[r]=o):n[r]=t[r]}),n}function u(t,e){if(!t)return e;if(!e)return null;var n={};return c(t,e,function(t,e,r){if("_widget_pool"===t){var i=h(e,r);v.a.isEmpty(i)||(n._widget_pool=i)}else{var o=d(e,r,function(){if(!v.a.isEqual(e,r))return r});void 0!==o&&(n[t]=o)}}),n}function c(t,e,n){v.a.union(v.a.keys(t),v.a.keys(e)).forEach(function(r){return n(r,l(t[r]),l(e[r]))})}function l(t){if(v.a.isArray(t)){var e=r(t,2),n=e[0],i=e[1];return"binary"===n&&i?[n,v.a.omit(i,"url")]:t}return t}function f(t,e){if(!e||v.a.isEmpty(e))return t;var n={};return c(t||{},e||{},function(t,r,i){e.hasOwnProperty(t)?i&&!r?n[t]=i:i&&(n[t]=s(r,i)):n[t]=r}),n}function d(t,e,n){return!t&&e?e:t&&!e?null:t&&e?n():void 0}function h(t,e){if(t===e)return{};var n={};return c(t,e,function(t,e,r){var i=d(e,r,function(){var t=u(e,r);if(!v.a.isEmpty(t))return t});void 0!==i&&(n[t]=i)}),n}e.a=s,e.b=u;var p=n(0),v=n.n(p)},,,function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){v&&h&&(v=!1,h.length?p=h.concat(p):y=-1,p.length&&s())}function s(){if(!v){var t=i(a);v=!0;for(var e=p.length;e;){for(h=p,p=[];++y<e;)h&&h[y].run();y=-1,e=p.length}h=null,v=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,f,d=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var h,p=[],v=!1,y=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new u(t,e)),1!==p.length||v||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e,n){"use strict";function r(){return o().get()}function i(t){o().set(t)}function o(){return a.b.subState("contentStateId")}e.a=r,e.b=i;var a=n(4)},function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return u});var r=n(305),i=n(306),o=n(84),a=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},s=function(t,e,n,i){var s=void 0;"string"==typeof t?(s=Object(o.d)(t),s.state=e):(s=a({},t),void 0===s.pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==e&&void 0===s.state&&(s.state=e));try{s.pathname=decodeURI(s.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(s.key=n),i?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=Object(r.a)(s.pathname,i.pathname)):s.pathname=i.pathname:s.pathname||(s.pathname="/"),s},u=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&Object(i.a)(t.state,e.state)}},,,function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t,e){return y.b(t,e)}function u(t,e){return y.a(t,e)}function c(t,e){return l(t,e)>0?t:e}function l(t,e){return t?e?f(t._version,e._version):1:-1}function f(t,e){return t>e?1:e>t?-1:0}n.d(e,"a",function(){return _});var d=n(0),h=n.n(d),p=n(21),v=n(58),y=n(88),m=n(53),b=n(12),g=n(37),w=n(1),_=function(){function t(e){var n=this;i(this,t),this._id=e,this._replicationActive=!1,this._scheduledReplication=!1,this._currentRequestDeferred=null,this._nextRequestDeferred=null,this._performThrottledReplication=scrivito.throttle(function(){return n._performReplication()},1e3)}return a(t,[{key:"notifyLocalState",value:function(t){if(!m.a.isDisabled()){if(void 0===this._backendState)throw new w.InternalError("Can not set local state before backend state.");if(this._backendState&&this._backendState._deleted)throw new w.InternalError("Can not update a fully deleted obj.");this._localState=t,this._startReplication()}}},{key:"notifyBackendState",value: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=s(this._backendState,t);this._updateLocalState(u(this.localState,e))}this._backendState=t}}},{key:"finishSaving",value:function(){var t;if(this._nextRequestDeferred)t=this._nextRequestDeferred.promise;else{if(!this._currentRequestDeferred)return scrivito.Promise.resolve();t=this._currentRequestDeferred.promise}return t.catch(function(){return scrivito.Promise.reject()})}},{key:"_startReplication",value:function(){var t=this;h.a.isEmpty(s(this._backendState,this._localState))?this._nextRequestDeferred&&(this._nextRequestDeferred.resolve(),this._nextRequestDeferred=null):this._replicationActive?this._nextRequestDeferred||(this._nextRequestDeferred=new b.a):this._scheduledReplication||(this._scheduledReplication=!0,this._initDeferredForRequest(),m.a.writeStarted(this._currentRequestDeferred.promise),Object(g.a)(function(){return t._performThrottledReplication()}))}},{key:"_performReplication",value:function(){var t=this,e=this._localState,n=s(this._backendState,this._localState);this._scheduledReplication=!1,this._replicationActive=!0,this._replicatePatchToBackend(n).then(function(n){t._handleBackendUpdate(e,n),t._currentRequestDeferred.resolve(t._id),t._currentRequestDeferred=null,t._replicationActive=!1,t._startReplication()},function(e){t._currentRequestDeferred.reject(e),t._currentRequestDeferred=null,t._replicationActive=!1})}},{key:"_replicatePatchToBackend",value:function(t){if(h.a.isEmpty(t))return scrivito.Promise.resolve(this._backendState);var e=scrivito.currentWorkspaceId(),n="workspaces/".concat(e,"/objs/").concat(this._id);return p.a.put(n,{obj:t})}},{key:"_initDeferredForRequest",value:function(){if(this._nextRequestDeferred){var t=this._nextRequestDeferred;this._nextRequestDeferred=null,this._currentRequestDeferred=t}else this._currentRequestDeferred=new b.a}},{key:"_handleBackendUpdate",value:function(t,e){var n=s(t,this._localState);this._backendState=c(e,this._bufferedBackendState),this._bufferedBackendState=void 0,this._updateLocalState(u(this._backendState,n))}},{key:"_updateLocalState",value:function(t){this._localState=t,v.d(this._id,this._localState)}},{key:"isNotStoredInBackend",value:function(){return null===this._backendState}},{key:"isRequestInFlight",value:function(){return this._replicationActive}},{key:"backendState",get:function(){return this._backendState}},{key:"localState",get:function(){return this._localState}}]),t}()},function(t,e,n){(function(t,r){var i;!function(o){function a(t){throw new RangeError(P[t])}function s(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function u(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(N,"."),r+s(t.split("."),e).join(".")}function c(t){for(var e,n,r=[],i=0,o=t.length;i<o;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function l(t){return s(t,function(t){var e="";return t>65535&&(t-=65536,e+=D(t>>>10&1023|55296),t=56320|1023&t),e+=D(t)}).join("")}function f(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:_}function d(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function h(t,e,n){var r=0;for(t=n?I(t/x):t>>1,t+=I(t/e);t>L*O>>1;r+=_)t=I(t/L);return I(r+(L+1)*t/(t+E))}function p(t){var e,n,r,i,o,s,u,c,d,p,v=[],y=t.length,m=0,b=j,g=C;for(n=t.lastIndexOf(S),n<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&a("not-basic"),v.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<y;){for(o=m,s=1,u=_;i>=y&&a("invalid-input"),c=f(t.charCodeAt(i++)),(c>=_||c>I((w-m)/s))&&a("overflow"),m+=c*s,d=u<=g?k:u>=g+O?O:u-g,!(c<d);u+=_)p=_-d,s>I(w/p)&&a("overflow"),s*=p;e=v.length+1,g=h(m-o,e,0==o),I(m/e)>w-b&&a("overflow"),b+=I(m/e),m%=e,v.splice(m++,0,b)}return l(v)}function v(t){var e,n,r,i,o,s,u,l,f,p,v,y,m,b,g,E=[];for(t=c(t),y=t.length,e=j,n=0,o=C,s=0;s<y;++s)(v=t[s])<128&&E.push(D(v));for(r=i=E.length,i&&E.push(S);r<y;){for(u=w,s=0;s<y;++s)(v=t[s])>=e&&v<u&&(u=v);for(m=r+1,u-e>I((w-n)/m)&&a("overflow"),n+=(u-e)*m,e=u,s=0;s<y;++s)if(v=t[s],v<e&&++n>w&&a("overflow"),v==e){for(l=n,f=_;p=f<=o?k:f>=o+O?O:f-o,!(l<p);f+=_)g=l-p,b=_-p,E.push(D(d(p+g%b,0))),l=I(g/b);E.push(D(d(l,0))),o=h(n,m,r==i),n=0,++r}++n,++e}return E.join("")}function y(t){return u(t,function(t){return A.test(t)?p(t.slice(4).toLowerCase()):t})}function m(t){return u(t,function(t){return T.test(t)?"xn--"+v(t):t})}var b=("object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType,"object"==typeof r&&r);var g,w=2147483647,_=36,k=1,O=26,E=38,x=700,C=72,j=128,S="-",A=/^xn--/,T=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=_-k,I=Math.floor,D=String.fromCharCode;g={version:"1.3.2",ucs2:{decode:c,encode:l},decode:p,encode:v,toASCII:m,toUnicode:y},void 0!==(i=function(){return g}.call(e,n,e,t))&&(t.exports=i)}()}).call(e,n(98)(t),n(40))},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}},function(t,e,n){var r,i;/*!
71
+ function(t){var e,n,r,i,o,a,s,u,l,c,f,d,p,h,y,v,m,g,b,w="sizzle"+-new Date,_=t.document,k=0,O=0,x=ot(),E=ot(),C=ot(),S=function(t,e){return t===e&&(f=!0),0},j="undefined",T=1<<31,A={}.hasOwnProperty,N=[],P=N.pop,R=N.push,L=N.push,I=N.slice,D=N.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",q="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F=q.replace("w","w#"),z="\\["+B+"*("+q+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+B+"*\\]",U=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",H=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),W=new RegExp("^"+B+"*,"+B+"*"),V=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),K=new RegExp("="+B+"*([^\\]'\"]*?)"+B+"*\\]","g"),Q=new RegExp(U),$=new RegExp("^"+F+"$"),G={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q.replace("w","w*")+")"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),rt=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{L.apply(N=I.call(_.childNodes),_.childNodes),N[_.childNodes.length].nodeType}catch(t){L={apply:N.length?function(t,e){R.apply(t,I.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function it(t,e,r,i){var o,s,l,c,f,h,m,g,k,O;if((e?e.ownerDocument||e:_)!==p&&d(e),e=e||p,r=r||[],!t||"string"!=typeof t)return r;if(1!==(c=e.nodeType)&&9!==c)return[];if(y&&!i){if(o=J.exec(t))if(l=o[1]){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[2])return L.apply(r,e.getElementsByTagName(t)),r;if((l=o[3])&&n.getElementsByClassName&&e.getElementsByClassName)return L.apply(r,e.getElementsByClassName(l)),r}if(n.qsa&&(!v||!v.test(t))){if(g=m=w,k=e,O=9===c&&t,1===c&&"object"!==e.nodeName.toLowerCase()){for(h=a(t),(m=e.getAttribute("id"))?g=m.replace(et,"\\$&"):e.setAttribute("id",g),g="[id='"+g+"'] ",f=h.length;f--;)h[f]=g+yt(h[f]);k=tt.test(t)&&pt(e.parentNode)||e,O=h.join(",")}if(O)try{return L.apply(r,k.querySelectorAll(O)),r}catch(t){}finally{m||e.removeAttribute("id")}}}return u(t.replace(H,"$1"),e,r,i)}function ot(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function at(t){return t[w]=!0,t}function st(t){var e=p.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),i=t.length;i--;)r.attrHandle[n[i]]=e}function lt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||T)-(~t.sourceIndex||T);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function dt(t){return at(function(e){return e=+e,at(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function pt(t){return t&&typeof t.getElementsByTagName!==j&&t}for(e in n=it.support={},o=it.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=it.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,y=!o(i),a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",function(){d()},!1):a.attachEvent&&a.attachEvent("onunload",function(){d()})),n.attributes=st(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=st(function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=X.test(i.getElementsByClassName)&&st(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=st(function(t){return h.appendChild(t).id=w,!i.getElementsByName||!i.getElementsByName(w).length}),n.getById?(r.find.ID=function(t,e){if(typeof e.getElementById!==j&&y){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(t){var e=t.replace(nt,rt);return function(t){return t.getAttribute("id")===e}}):(delete r.find.ID,r.filter.ID=function(t){var e=t.replace(nt,rt);return function(t){var n=typeof t.getAttributeNode!==j&&t.getAttributeNode("id");return n&&n.value===e}}),r.find.TAG=n.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==j)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(typeof e.getElementsByClassName!==j&&y)return e.getElementsByClassName(t)},m=[],v=[],(n.qsa=X.test(i.querySelectorAll))&&(st(function(t){t.innerHTML="<select msallowclip=''><option selected=''></option></select>",t.querySelectorAll("[msallowclip^='']").length&&v.push("[*^$]="+B+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+B+"*(?:value|"+M+")"),t.querySelectorAll(":checked").length||v.push(":checked")}),st(function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+B+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=X.test(g=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&st(function(t){n.disconnectedMatch=g.call(t,"div"),g.call(t,"[s!='']:x"),m.push("!=",U)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),e=X.test(h.compareDocumentPosition),b=e||X.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(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},S=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?D.call(c,t)-D.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=[t],u=[e];if(!o||!a)return t===i?-1:e===i?1:o?-1:a?1:c?D.call(c,t)-D.call(c,e):0;if(o===a)return lt(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?lt(s[r],u[r]):s[r]===_?-1:u[r]===_?1:0},i):p},it.matches=function(t,e){return it(t,null,null,e)},it.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&d(t),e=e.replace(K,"='$1']"),n.matchesSelector&&y&&(!m||!m.test(e))&&(!v||!v.test(e)))try{var r=g.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return it(e,p,null,[t]).length>0},it.contains=function(t,e){return(t.ownerDocument||t)!==p&&d(t),b(t,e)},it.attr=function(t,e){(t.ownerDocument||t)!==p&&d(t);var i=r.attrHandle[e.toLowerCase()],o=i&&A.call(r.attrHandle,e.toLowerCase())?i(t,e,!y):void 0;return void 0!==o?o:n.attributes||!y?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},it.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},it.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(S),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return c=null,t},i=it.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[r++];)n+=i(e);return n},(r=it.selectors={cacheLength:50,createPseudo:at,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,rt),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,rt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||it.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&it.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Q.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,rt).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("(^|"+B+")"+t+"("+B+"|$)"))&&x(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==j&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=it.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,y=o!==a?"nextSibling":"previousSibling",v=e.parentNode,m=s&&e.nodeName.toLowerCase(),g=!u&&!s;if(v){if(o){for(;y;){for(f=e;f=f[y];)if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;h=y="only"===t&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&g){for(p=(l=(c=v[w]||(v[w]={}))[t]||[])[0]===k&&l[1],d=l[0]===k&&l[2],f=p&&v.childNodes[p];f=++p&&f&&f[y]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===e){c[t]=[k,p,d];break}}else if(g&&(l=(e[w]||(e[w]={}))[t])&&l[0]===k)d=l[1];else for(;(f=++p&&f&&f[y]||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++d||(g&&((f[w]||(f[w]={}))[t]=[k,d]),f!==e)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||it.error("unsupported pseudo: "+t);return i[w]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?at(function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=D.call(t,o[a])]=!(n[r]=o[a])}):function(t){return i(t,0,n)}):i}},pseudos:{not:at(function(t){var e=[],n=[],r=s(t.replace(H,"$1"));return r[w]?at(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),!n.pop()}}),has:at(function(t){return function(e){return it(t,e).length>0}}),contains:at(function(t){return function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}}),lang:at(function(t){return $.test(t||"")||it.error("unsupported lang: "+t),t=t.replace(nt,rt).toLowerCase(),function(e){var n;do{if(n=y?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 Z.test(t.nodeName)},input:function(t){return Y.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:dt(function(){return[0]}),last:dt(function(t,e){return[e-1]}),eq:dt(function(t,e,n){return[n<0?n+e:n]}),even:dt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:dt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:dt(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:dt(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=ct(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=ft(e);function ht(){}function yt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function vt(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=O++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,l=[k,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if((s=(u=e[w]||(e[w]={}))[r])&&s[0]===k&&s[1]===o)return l[2]=s[2];if(u[r]=l,l[2]=t(e,n,a))return!0}}}function mt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function gt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function bt(t,e,n,r,i,o){return r&&!r[w]&&(r=bt(r)),i&&!i[w]&&(i=bt(i,o)),at(function(o,a,s,u){var l,c,f,d=[],p=[],h=a.length,y=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)it(t,e[r],n);return n}(e||"*",s.nodeType?[s]:s,[]),v=!t||!o&&e?y:gt(y,d,t,s,u),m=n?i||(o?t:h||r)?[]:a:v;if(n&&n(v,m,s,u),r)for(l=gt(m,p),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(m[p[c]]=!(v[p[c]]=f));if(o){if(i||t){if(i){for(l=[],c=m.length;c--;)(f=m[c])&&l.push(v[c]=f);i(null,m=[],l,u)}for(c=m.length;c--;)(f=m[c])&&(l=i?D.call(o,f):d[c])>-1&&(o[l]=!(a[l]=f))}}else m=gt(m===a?m.splice(h,m.length):m),i?i(null,a,m,u):L.apply(a,m)})}function wt(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],u=a?1:0,c=vt(function(t){return t===e},s,!0),f=vt(function(t){return D.call(e,t)>-1},s,!0),d=[function(t,n,r){return!a&&(r||n!==l)||((e=n).nodeType?c(t,n,r):f(t,n,r))}];u<o;u++)if(n=r.relative[t[u].type])d=[vt(mt(d),n)];else{if((n=r.filter[t[u].type].apply(null,t[u].matches))[w]){for(i=++u;i<o&&!r.relative[t[i].type];i++);return bt(u>1&&mt(d),u>1&&yt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(H,"$1"),n,u<i&&wt(t.slice(u,i)),i<o&&wt(t=t.slice(i)),i<o&&yt(t))}d.push(n)}return mt(d)}return ht.prototype=r.filters=r.pseudos,r.setFilters=new ht,a=it.tokenize=function(t,e){var n,i,o,a,s,u,l,c=E[t+" "];if(c)return e?0:c.slice(0);for(s=t,u=[],l=r.preFilter;s;){for(a in n&&!(i=W.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=V.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(H," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](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?it.error(t):E(t,u).slice(0)},s=it.compile=function(t,e){var n,i=[],o=[],s=C[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=wt(e[n]))[w]?i.push(s):o.push(s);(s=C(t,function(t,e){var n=e.length>0,i=t.length>0,o=function(o,a,s,u,c){var f,d,h,y=0,v="0",m=o&&[],g=[],b=l,w=o||i&&r.find.TAG("*",c),_=k+=null==b?1:Math.random()||.1,O=w.length;for(c&&(l=a!==p&&a);v!==O&&null!=(f=w[v]);v++){if(i&&f){for(d=0;h=t[d++];)if(h(f,a,s)){u.push(f);break}c&&(k=_)}n&&((f=!h&&f)&&y--,o&&m.push(f))}if(y+=v,n&&v!==y){for(d=0;h=e[d++];)h(m,g,a,s);if(o){if(y>0)for(;v--;)m[v]||g[v]||(g[v]=P.call(u));g=gt(g)}L.apply(u,g),c&&!o&&g.length>0&&y+e.length>1&&it.uniqueSort(u)}return c&&(k=_,l=b),m};return n?at(o):o}(o,i))).selector=t}return s},u=it.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[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&n.getById&&9===e.nodeType&&y&&r.relative[l[1].type]){if(!(e=(r.find.ID(c.matches[0].replace(nt,rt),e)||[])[0]))return i;p&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(u=G.needsContext.test(t)?0:l.length;u--&&(c=l[u],!r.relative[f=c.type]);)if((d=r.find[f])&&(o=d(c.matches[0].replace(nt,rt),tt.test(l[0].type)&&pt(e.parentNode)||e))){if(l.splice(u,1),!(t=o.length&&yt(l)))return L.apply(i,o),i;break}}return(p||s(t,h))(o,e,!y,i,tt.test(t)&&pt(e.parentNode)||e),i},n.sortStable=w.split("").sort(S).join("")===w,n.detectDuplicates=!!f,d(),n.sortDetached=st(function(t){return 1&t.compareDocumentPosition(p.createElement("div"))}),st(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&st(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),st(function(t){return null==t.getAttribute("disabled")})||ut(M,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),it}(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,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,O=/^.[^:#\[\.,]*$/;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(O.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[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?h.find.matchesSelector(r,t)?[r]:[]: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<i;e++)if(h.contains(r[e],this))return!0}));for(e=0;e<i;e++)h.find(t,r[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 E,C=n.document,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\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?[null,t,null]:S.exec(t))||!n[1]&&e)return!e||e.jquery?(e||E).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof h?e[0]:e,h.merge(this,h.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:C,!0)),k.test(n[1])&&h.isPlainObject(e))for(n in e)h.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((r=C.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return E.find(t);this.length=1,this[0]=r}return this.context=C,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):h.isFunction(t)?void 0!==E.ready?E.ready(t):t(h):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),h.makeArray(t,this))}).prototype=h.fn,E=h(C);var j=/^(?:parents|prev(?:Until|All))/,T={children:!0,contents:!0,next:!0,prev:!0};function A(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}h.extend({dir:function(t,e,n){for(var r=[],i=t[e];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!h(i).is(n));)1===i.nodeType&&r.push(i),i=i[e];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<r;e++)if(h.contains(this,n[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<i;r++)for(n=this[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[0],h(t)):h.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].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[t]=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[t]||(i=h.unique(i)),j.test(t)&&(i=i.reverse())),this.pushStack(i)}});var N,P=/\S+/g,R={};function L(){C.addEventListener?(C.removeEventListener("DOMContentLoaded",I,!1),n.removeEventListener("load",I,!1)):(C.detachEvent("onreadystatechange",I),n.detachEvent("onload",I))}function I(){(C.addEventListener||"load"===event.type||"complete"===C.readyState)&&(L(),h.ready())}h.Callbacks=function(t){var e,n,r,i,o,a,s=[],u=!(t="string"==typeof t?R[t]||function(t){var e=R[t]={};return h.each(t.match(P)||[],function(t,n){e[n]=!0}),e}(t):h.extend({},t)).once&&[],l=function(f){for(n=t.memory&&f,r=!0,o=a||0,a=0,i=s.length,e=!0;s&&o<i;o++)if(!1===s[o].apply(f[0],f[1])&&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(r);"function"===i?t.unique&&c.has(r)||s.push(r):r&&r.length&&"string"!==i&&e(r)})}(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"],["notify","progress",h.Callbacks("memory")]],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[e])&&t[e];i[o[1]](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[0]+"With"](this===r?n.promise():this,a?[t]: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[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"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[t]=this,r[t]=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<s;i++)o[i]&&h.isFunction(o[i].promise)?o[i].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(!C.body)return setTimeout(h.ready);h.isReady=!0,!0!==t&&--h.readyWait>0||(N.resolveWith(C,[h]),h.fn.triggerHandler&&(h(C).triggerHandler("ready"),h(C).off("ready")))}}}),h.ready.promise=function(t){if(!N)if(N=h.Deferred(),"complete"===C.readyState)setTimeout(h.ready);else if(C.addEventListener)C.addEventListener("DOMContentLoaded",I,!1),n.addEventListener("load",I,!1);else{C.attachEvent("onreadystatechange",I),n.attachEvent("onload",I);var e=!1;try{e=null==n.frameElement&&C.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!h.isReady){try{e.doScroll("left")}catch(e){return setTimeout(t,50)}L(),h.ready()}}()}return N.promise(t)};var D,M="undefined";for(D in h(p))break;p.ownLast="0"!==D,p.inlineBlockNeedsLayout=!1,h(function(){var t,e,n,r;(n=C.getElementsByTagName("body")[0])&&n.style&&(e=C.createElement("div"),(r=C.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),typeof e.style.zoom!==M&&(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(r))}),function(){var t=C.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 B=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,q=/([A-Z])/g;function F(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(q,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:B.test(n)?h.parseJSON(n):n)}catch(t){}h.data(t,e,n)}else n=void 0}return n}function z(t){var e;for(e in t)if(("data"!==e||!h.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function U(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[s]:t[s]&&s;if(c&&l[c]&&(r||l[c].data)||void 0!==n||"string"!=typeof e)return c||(c=u?t[s]=o.pop()||h.guid++:s),l[c]||(l[c]=u?{}:{toJSON:h.noop}),"object"!=typeof e&&"function"!=typeof e||(r?l[c]=h.extend(l[c],e):l[c].data=h.extend(l[c].data,e)),a=l[c],r||(a.data||(a.data={}),a=a.data),void 0!==n&&(a[h.camelCase(e)]=n),"string"==typeof e?null==(i=a[e])&&(i=a[h.camelCase(e)]):i=a,i}}function H(t,e,n){if(h.acceptData(t)){var r,i,o=t.nodeType,a=o?h.cache:t,s=o?t[h.expando]:h.expando;if(a[s]){if(e&&(r=n?a[s]:a[s].data)){i=(e=h.isArray(e)?e.concat(h.map(e,h.camelCase)):e in r?[e]:(e=h.camelCase(e))in r?[e]:e.split(" ")).length;for(;i--;)delete r[e[i]];if(n?!z(r):!h.isEmptyObject(r))return}(n||(delete a[s].data,z(a[s])))&&(o?h.cleanData([t],!0):p.deleteExpando||a!=a.window?delete a[s]:a[s]=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[h.expando]]:t[h.expando])&&!z(t)},data:function(t,e,n){return U(t,e,n)},removeData:function(t,e){return H(t,e)},_data:function(t,e,n){return U(t,e,n,!0)},_removeData:function(t,e){return H(t,e,!0)}}),h.fn.extend({data:function(t,e){var n,r,i,o=this[0],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[n]&&0===(r=a[n].name).indexOf("data-")&&F(o,r=h.camelCase(r.slice(5)),i[r]);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?F(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<n?h.queue(this[0],t):void 0===e?this:this.each(function(){var n=h.queue(this,t,e);h._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&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,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=h._data(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var W=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,V=["Top","Right","Bottom","Left"],K=function(t,e){return t=e||t,"none"===h.css(t,"display")||!h.contains(t.ownerDocument,t)},Q=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[s],!0,o,a);else if(void 0!==r&&(i=!0,h.isFunction(r)||(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<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o},$=/^(?:checkbox|radio)$/i;!function(){var t=C.createElement("input"),e=C.createElement("div"),n=C.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>"!==C.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=C.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(p[t+"Bubbles"]=e in n)||(r.setAttribute(e,"t"),p[t+"Bubbles"]=!1===r.attributes[e].expando);r=null}();var G=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,J=/^([^.]*)(?:\.(.+)|)$/;function tt(){return!0}function et(){return!1}function nt(){try{return C.activeElement}catch(t){}}function rt(t){var e=it.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,y,v,m=h._data(t);if(m){for(n.handler&&(n=(u=n).handler,i=u.selector),n.guid||(n.guid=h.guid++),(a=m.events)||(a=m.events={}),(c=m.handle)||((c=m.handle=function(t){return typeof h===M||t&&h.event.triggered===t.type?void 0:h.event.dispatch.apply(c.elem,arguments)}).elem=t),s=(e=(e||"").match(P)||[""]).length;s--;)p=v=(o=J.exec(e[s])||[])[1],y=(o[2]||"").split(".").sort(),p&&(l=h.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=h.event.special[p]||{},f=h.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&h.expr.match.needsContext.test(i),namespace:y.join(".")},u),(d=a[p])||((d=a[p]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,r,y,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[p]=!0);t=null}},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,p,y,v,m=h.hasData(t)&&h._data(t);if(m&&(c=m.events)){for(l=(e=(e||"").match(P)||[""]).length;l--;)if(p=v=(s=J.exec(e[l])||[])[1],y=(s[2]||"").split(".").sort(),p){for(f=h.event.special[p]||{},d=c[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=d.length;o--;)a=d[o],!i&&v!==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,y,m.handle)||h.removeEvent(t,p,m.handle),delete c[p])}else for(p in c)h.event.remove(t,p+e[l],n,r,!0);h.isEmptyObject(c)&&(delete m.handle,h._removeData(t,"events"))}},trigger:function(t,e,r,i){var o,a,s,u,l,c,f,p=[r||C],y=d.call(t,"type")?t.type:t,v=d.call(t,"namespace")?t.namespace.split("."):[];if(s=c=r=r||C,3!==r.nodeType&&8!==r.nodeType&&!X.test(y+h.event.triggered)&&(y.indexOf(".")>=0&&(y=(v=y.split(".")).shift(),v.sort()),a=y.indexOf(":")<0&&"on"+y,(t=t[h.expando]?t:new h.Event(y,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:h.makeArray(e,[t]),l=h.event.special[y]||{},i||!l.trigger||!1!==l.trigger.apply(r,e))){if(!i&&!l.noBubble&&!h.isWindow(r)){for(u=l.delegateType||y,X.test(u+y)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(r.ownerDocument||C)&&p.push(c.defaultView||c.parentWindow||n)}for(f=0;(s=p[f++])&&!t.isPropagationStopped();)t.type=f>1?u:l.bindType||y,(o=(h._data(s,"events")||{})[t.type]&&h._data(s,"handle"))&&o.apply(s,e),(o=a&&s[a])&&o.apply&&h.acceptData(s)&&(t.result=o.apply(s,e),!1===t.result&&t.preventDefault());if(t.type=y,!i&&!t.isDefaultPrevented()&&(!l._default||!1===l._default.apply(p.pop(),e))&&h.acceptData(r)&&a&&r[y]&&!h.isWindow(r)){(c=r[a])&&(r[a]=null),h.event.triggered=y;try{r[y]()}catch(t){}h.event.triggered=void 0,c&&(r[a]=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")||{})[t.type]||[],c=h.event.special[t.type]||{};if(u[0]=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[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(n=((h.event.special[r.origType]||{}).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[o]).selector+" "]&&(i[n]=r.needsContext?h(n,this).index(u)>=0:h.find(n,this,null,[u]).length),i[n]&&i.push(r);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[h.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Z.test(i)?this.mouseHooks:Y.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[e]]=o[n];return t.target||(t.target=o.srcElement||C),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||C).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!==nt()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===nt()&&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=C.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var r="on"+e;t.detachEvent&&(typeof t[r]===M&&(t[r]=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?tt:et):this.type=t,e&&h.extend(this,e),this.timeStamp=t&&t.timeStamp||h.now(),this[h.expando]=!0},h.Event.prototype={isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=tt,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=tt,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=tt,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){h.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||h.contains(this,r))||(t.type=i.origType,n=i.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(G.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;G.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"),!G.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[e]={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[o],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=et;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[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=et),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[0];if(n)return h.event.trigger(t,e,n,!0)}});var it="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ot=/ jQuery\d+="(?:null|\d+)"/g,at=new RegExp("<(?:"+it+")[\\s/>]","i"),st=/^\s+/,ut=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,lt=/<([\w:]+)/,ct=/<tbody/i,ft=/<|&#?\w+;/,dt=/<(?:script|style|link)/i,pt=/checked\s*(?:[^=]|=\s*.checked.)/i,ht=/^$|\/(?:java|ecma)script/i,yt=/^true\/(.*)/,vt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,mt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:p.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},gt=rt(C).appendChild(C.createElement("div"));function bt(t,e){var n,r,i=0,o=typeof t.getElementsByTagName!==M?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==M?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(r=n[i]);i++)!e||h.nodeName(r,e)?o.push(r):h.merge(o,bt(r,e));return void 0===e||e&&h.nodeName(t,e)?h.merge([t],o):o}function wt(t){$.test(t.type)&&(t.defaultChecked=t.checked)}function _t(t,e){return h.nodeName(t,"table")&&h.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function kt(t){return t.type=(null!==h.find.attr(t,"type"))+"/"+t.type,t}function Ot(t){var e=yt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function xt(t,e){for(var n,r=0;null!=(n=t[r]);r++)h._data(n,"globalEval",!e||h._data(e[r],"globalEval"))}function Et(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[n].length;r<i;r++)h.event.add(e,n,s[n][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[h.expando]){for(r in(i=h._data(e)).events)h.removeEvent(e,r,i.handle);e.removeAttribute(h.expando)}"script"===n&&e.text!==t.text?(kt(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&&$.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)||!at.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(gt.innerHTML=t.outerHTML,gt.removeChild(o=gt.firstChild)),!(p.noCloneEvent&&p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||h.isXMLDoc(t)))for(r=bt(o),s=bt(t),a=0;null!=(i=s[a]);++a)r[a]&&Ct(i,r[a]);if(e)if(n)for(s=s||bt(t),r=r||bt(o),a=0;null!=(i=s[a]);a++)Et(i,r[a]);else Et(t,o);return(r=bt(o,"script")).length>0&&xt(r,!u&&bt(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=rt(e),y=[],v=0;v<f;v++)if((o=t[v])||0===o)if("object"===h.type(o))h.merge(y,o.nodeType?[o]:o);else if(ft.test(o)){for(s=s||d.appendChild(e.createElement("div")),u=(lt.exec(o)||["",""])[1].toLowerCase(),c=mt[u]||mt._default,s.innerHTML=c[1]+o.replace(ut,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!p.leadingWhitespace&&st.test(o)&&y.push(e.createTextNode(st.exec(o)[0])),!p.tbody)for(i=(o="table"!==u||ct.test(o)?"<table>"!==c[1]||ct.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)h.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(h.merge(y,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else y.push(e.createTextNode(o));for(s&&d.removeChild(s),p.appendChecked||h.grep(bt(y,"input"),wt),v=0;o=y[v++];)if((!r||-1===h.inArray(o,r))&&(a=h.contains(o.ownerDocument,o),s=bt(d.appendChild(o),"script"),a&&xt(s),n))for(i=0;o=s[i++];)ht.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]);s++)if((e||h.acceptData(n))&&(a=(i=n[u])&&l[i])){if(a.events)for(r in a.events)f[r]?h.event.remove(n,r):h.removeEvent(n,r,a.handle);l[i]&&(delete l[i],c?delete n[u]:typeof n.removeAttribute!==M?n.removeAttribute(u):n[u]=null,o.push(i))}}}),h.fn.extend({text:function(t){return Q(this,function(t){return void 0===t?h.text(this):this.empty().append((this[0]&&this[0].ownerDocument||C).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||_t(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=_t(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]);i++)e||1!==n.nodeType||h.cleanData(bt(n)),n.parentNode&&(e&&h.contains(n.ownerDocument,n)&&xt(bt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&h.cleanData(bt(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 Q(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(ot,""):void 0;if("string"==typeof t&&!dt.test(t)&&(p.htmlSerialize||!at.test(t))&&(p.leadingWhitespace||!st.test(t))&&!mt[(lt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(ut,"<$1></$2>");try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(h.cleanData(bt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,h.cleanData(bt(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,y=t[0],v=h.isFunction(y);if(v||c>1&&"string"==typeof y&&!p.checkClone&&pt.test(y))return this.each(function(n){var r=f.eq(n);v&&(t[0]=y.call(this,n,r.html())),r.domManip(t,e)});if(c&&(n=(u=h.buildFragment(t,this[0].ownerDocument,!1,this)).firstChild,1===u.childNodes.length&&(u=n),n)){for(i=(o=h.map(bt(u,"script"),kt)).length;l<c;l++)r=u,l!==d&&(r=h.clone(r,!0,!0),i&&h.merge(o,bt(r,"script"))),e.call(this[l],r,l);if(i)for(a=o[o.length-1].ownerDocument,h.map(o,Ot),l=0;l<i;l++)r=o[l],ht.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[t]=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[r])[e](n),u.apply(i,n.get());return this.pushStack(i)}});var St,jt={};function Tt(t,e){var r,i=h(e.createElement(t)).appendTo(e.body),o=n.getDefaultComputedStyle&&(r=n.getDefaultComputedStyle(i[0]))?r.display:h.css(i[0],"display");return i.detach(),o}function At(t){var e=C,n=jt[t];return n||("none"!==(n=Tt(t,e))&&n||((e=((St=(St||h("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||St[0].contentDocument).document).write(),e.close(),n=Tt(t,e),St.detach()),jt[t]=n),n}!function(){var t;p.shrinkWrapBlocks=function(){return null!=t?t:(t=!1,(n=C.getElementsByTagName("body")[0])&&n.style?(e=C.createElement("div"),(r=C.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),typeof e.style.zoom!==M&&(e.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",e.appendChild(C.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(r),t):void 0);var e,n,r}}();var Nt,Pt,Rt=/^margin/,Lt=new RegExp("^("+W+")(?!px)[a-z%]+$","i"),It=/^(top|right|bottom|left)$/;function Dt(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?(Nt=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},Pt=function(t,e,n){var r,i,o,a,s=t.style;return a=(n=n||Nt(t))?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==a||h.contains(t.ownerDocument,t)||(a=h.style(t,e)),Lt.test(a)&&Rt.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+""}):C.documentElement.currentStyle&&(Nt=function(t){return t.currentStyle},Pt=function(t,e,n){var r,i,o,a,s=t.style;return null==(a=(n=n||Nt(t))?n[e]:void 0)&&s&&s[e]&&(a=s[e]),Lt.test(a)&&!It.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=C.getElementsByTagName("body")[0])&&e.style&&(t=C.createElement("div"),(r=C.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(r).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(C.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="<table><tr><td></td><td>t</td></tr></table>",(u=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===u[0].offsetHeight)&&(u[0].style.display="",u[1].style.display="none",a=0===u[0].offsetHeight),e.removeChild(r))}(t=C.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(e=(r=t.getElementsByTagName("a")[0])&&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[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=a[o];return i};var Mt=/alpha\([^)]*\)/i,Bt=/opacity\s*=\s*([^)]*)/,qt=/^(none|table(?!-c[ea]).+)/,Ft=new RegExp("^("+W+")(.*)$","i"),zt=new RegExp("^([+-])=("+W+")","i"),Ut={position:"absolute",visibility:"hidden",display:"block"},Ht={letterSpacing:"0",fontWeight:"400"},Wt=["Webkit","O","Moz","ms"];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[i]+n)in t)return e;return r}function Kt(t,e){for(var n,r,i,o=[],a=0,s=t.length;a<s;a++)(r=t[a]).style&&(o[a]=h._data(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&K(r)&&(o[a]=h._data(r,"olddisplay",At(r.nodeName)))):(i=K(r),(n&&"none"!==n||!i)&&h._data(r,"olddisplay",i?n:h.css(r,"display"))));for(a=0;a<s;a++)(r=t[a]).style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function Qt(t,e,n){var r=Ft.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"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+V[o],!0,i)),r?("content"===n&&(a-=h.css(t,"padding"+V[o],!0,i)),"margin"!==n&&(a-=h.css(t,"border"+V[o]+"Width",!0,i))):(a+=h.css(t,"padding"+V[o],!0,i),"padding"!==n&&(a+=h.css(t,"border"+V[o]+"Width",!0,i)));return a}function Gt(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Nt(t),a=p.boxSizing&&"border-box"===h.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Pt(t,e,o))<0||null==i)&&(i=t.style[e]),Lt.test(i))return i;r=a&&(p.boxSizingReliable()||i===t.style[e]),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=Pt(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[s]||(h.cssProps[s]=Vt(u,s)),a=h.cssHooks[e]||h.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e];if("string"===(o=typeof n)&&(i=zt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(h.css(t,e)),o="number"),null!=n&&n==n&&("number"!==o||h.cssNumber[s]||(n+="px"),p.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(t,n,r)))))try{u[e]=n}catch(t){}}},css:function(t,e,n,r){var i,o,a,s=h.camelCase(e);return e=h.cssProps[s]||(h.cssProps[s]=Vt(t.style,s)),(a=h.cssHooks[e]||h.cssHooks[s])&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=Pt(t,e,r)),"normal"===o&&e in Ht&&(o=Ht[e]),""===n||n?(i=parseFloat(o),!0===n||h.isNumeric(i)?i||0:o):o}}),h.each(["height","width"],function(t,e){h.cssHooks[e]={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&&Nt(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=Dt(p.reliableMarginRight,function(t,e){if(e)return h.swap(t,{display:"inline-block"},Pt,[t,"marginRight"])}),h.each({margin:"",padding:"",border:"Width"},function(t,e){h.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+V[r]+e]=o[r]||o[r-2]||o[0];return i}},Rt.test(t)||(h.cssHooks[t+e].set=Qt)}),h.fn.extend({css:function(t,e){return Q(this,function(t,e,n){var r,i,o={},a=0;if(h.isArray(e)){for(r=Nt(t),i=e.length;a<i;a++)o[e[a]]=h.css(t,e[a],!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(){K(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[n]?"":"px")},cur:function(){var t=Yt.propHooks[this.prop];return t&&t.get?t.get(this):Yt.propHooks._default.get(this)},run:function(t){var e,n=Yt.propHooks[this.prop];return this.options.duration?this.pos=e=h.easing[this.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.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=h.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){h.fx.step[t.prop]?h.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[h.cssProps[t.prop]]||h.cssHooks[t.prop])?h.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},Yt.propHooks.scrollTop=Yt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=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=/^(?:toggle|show|hide)$/,te=new RegExp("^(?:([+-])=|)("+W+")([a-z%]*)$","i"),ee=/queueHooks$/,ne=[function(t,e,n){var r,i,o,a,s,u,l,c=this,f={},d=t.style,y=t.nodeType&&K(t),v=h._data(t,"fxshow");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=[d.overflow,d.overflowX,d.overflowY],l=h.css(t,"display"),"inline"===("none"===l?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[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],Jt.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(y?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;y=!0}f[r]=v&&v[r]||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 v?"hidden"in v&&(y=v.hidden):v=h._data(t,"fxshow",{}),o&&(v.hidden=!y),y?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[e])}),f)a=ae(y?v[r]:0,r,c),r in v||(v[r]=a.start,y&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],re={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=te.exec(e),o=i&&i[3]||(h.cssNumber[t]?"":"px"),a=(h.cssNumber[t]||"px"!==o&&+r)&&te.exec(h.css(n.elem,t)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],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[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function ie(){return setTimeout(function(){Zt=void 0}),Zt=h.now()}function oe(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=V[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function ae(t,e,n){for(var r,i=(re[e]||[]).concat(re["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function se(t,e,n){var r,i,o=0,a=ne.length,s=h.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=Zt||ie(),n=Math.max(0,l.startTime+l.duration-e),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(t,[l,r,n]),r<1&&a?n:(s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:h.extend({},e),opts:h.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Zt||ie(),duration:n.duration,tweens:[],createTween:function(e,n){var r=h.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?s.resolveWith(t,[l,e]):s.rejectWith(t,[l,e]),this}}),c=l.props;for(!function(t,e){var n,r,i,o,a;for(n in t)if(i=e[r=h.camelCase(n)],o=t[n],h.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=h.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=ne[o].call(l,t,c,l.opts))return r;return h.map(c,ae,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(se,{tweener:function(t,e){h.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;r<i;r++)n=t[r],re[n]=re[n]||[],re[n].unshift(e)},prefilter:function(t,e){e?ne.unshift(t):ne.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[r.duration]: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(K).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=se(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[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ee.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].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[t+"queue"],i=n[t+"queueHooks"],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[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),h.each(["toggle","show","hide"],function(t,e){var n=h.fn[e];h.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(oe(e,!0),t,r,i)}}),h.each({slideDown:oe("show"),slideUp:oe("hide"),slideToggle:oe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){h.fn[t]=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.length;n++)(t=e[n])()||e[n]!==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]||t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var t,e,n,r,i;(e=C.createElement("div")).setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=e.getElementsByTagName("a")[0],i=(n=C.createElement("select")).appendChild(C.createElement("option")),t=e.getElementsByTagName("input")[0],r.style.cssText="top:1px",p.getSetAttribute="t"!==e.className,p.style=/top/.test(r.getAttribute("style")),p.hrefNormalized="/a"===r.getAttribute("href"),p.checkOn=!!t.value,p.optSelected=i.selected,p.enctype=!!C.createElement("form").enctype,n.disabled=!0,p.optDisabled=!i.disabled,(t=C.createElement("input")).setAttribute("value",""),p.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),p.radioValue="t"===t.value}();var ue=/\r/g;h.fn.extend({val:function(t){var e,n,r,i=this[0];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[this.type]||h.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=h.valHooks[i.type]||h.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ue,""):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<s;u++)if(((n=r[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[a],h.inArray(h.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(t){r.scrollHeight}else r.selected=!1;return n||(t.selectedIndex=-1),i}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(t,e){if(h.isArray(e))return t.checked=h.inArray(h(t).val(),e)>=0}},p.checkOn||(h.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var le,ce,fe=h.expr.attrHandle,de=/^(?:checked|selected)$/i,pe=p.getSetAttribute,he=p.input;h.fn.extend({attr:function(t,e){return Q(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 typeof t.getAttribute===M?h.prop(t,e,n):(1===o&&h.isXMLDoc(t)||(e=e.toLowerCase(),r=h.attrHooks[e]||(h.expr.match.bool.test(e)?ce:le)),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(P);if(o&&1===t.nodeType)for(;n=o[i++];)r=h.propFix[n]||n,h.expr.match.bool.test(n)?he&&pe||!de.test(n)?t[r]=!1:t[h.camelCase("default-"+n)]=t[r]=!1:h.attr(t,n,""),t.removeAttribute(pe?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}}}}}),ce={set:function(t,e,n){return!1===e?h.removeAttr(t,n):he&&pe||!de.test(n)?t.setAttribute(!pe&&h.propFix[n]||n,n):t[h.camelCase("default-"+n)]=t[n]=!0,n}},h.each(h.expr.match.bool.source.match(/\w+/g),function(t,e){var n=fe[e]||h.find.attr;fe[e]=he&&pe||!de.test(e)?function(t,e,r){var i,o;return r||(o=fe[e],fe[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,fe[e]=o),i}:function(t,e,n){if(!n)return t[h.camelCase("default-"+e)]?e.toLowerCase():null}}),he&&pe||(h.attrHooks.value={set:function(t,e,n){if(!h.nodeName(t,"input"))return le&&le.set(t,e,n);t.defaultValue=e}}),pe||(le={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}},fe.id=fe.name=fe.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:le.set},h.attrHooks.contenteditable={set:function(t,e,n){le.set(t,""!==e&&e,n)}},h.each(["width","height"],function(t,e){h.attrHooks[e]={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 ye=/^(?:input|select|textarea|button|object)$/i,ve=/^(?:a|area)$/i;h.fn.extend({prop:function(t,e){return Q(this,h.prop,t,e,arguments.length>1)},removeProp:function(t){return t=h.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}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]||e,i=h.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=h.find.attr(t,"tabindex");return e?parseInt(e,10):ye.test(t.nodeName)||ve.test(t.nodeName)&&t.href?0:-1}}}}),p.hrefNormalized||h.each(["href","src"],function(t,e){h.propHooks[e]={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(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this}),p.enctype||(h.propFix.enctype="encoding");var me=/[\t\r\n\f]/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(P)||[];s<u;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(me," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=h.trim(r),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(P)||[];s<u;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(me," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=t?h.trim(r):"",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(P)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else n!==M&&"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<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(me," ").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[e]=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 ge=h.now(),be=/\?/,we=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\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(we,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 _e,ke,Oe=/#.*$/,xe=/([?&])_=[^&]*/,Ee=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ce=/^(?:GET|HEAD)$/,Se=/^\/\//,je=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Te={},Ae={},Ne="*/".concat("*");try{ke=location.href}catch(t){(ke=C.createElement("a")).href="",ke=ke.href}function Pe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(P)||[];if(h.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Re(t,e,n,r){var i={},o=t===Ae;function a(s){var u;return i[s]=!0,h.each(t[s]||[],function(t,s){var l=s(e,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),a(l),!1)}),u}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Le(t,e){var n,r,i=h.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&h.extend(!0,t,n),t}_e=je.exec(ke.toLowerCase())||[],h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_e[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ne,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?Le(Le(t,h.ajaxSettings),e):Le(h.ajaxSettings,t)},ajaxPrefilter:Pe(Te),ajaxTransport:Pe(Ae),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(),y=h.Callbacks("once memory"),v=c.statusCode||{},m={},g={},b=0,w="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!l)for(l={};e=Ee.exec(o);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=g[n]=g[n]||t,m[t]=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)v[e]=[v[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){var e=t||w;return u&&u.abort(e),k(0,e),this}};if(p.promise(_).complete=y.add,_.success=_.done,_.error=_.fail,c.url=((t||c.url||ke)+"").replace(Oe,"").replace(Se,_e[1]+"//"),c.type=e.method||e.type||c.method||c.type,c.dataTypes=h.trim(c.dataType||"*").toLowerCase().match(P)||[""],null==c.crossDomain&&(n=je.exec(c.url.toLowerCase()),c.crossDomain=!(!n||n[1]===_e[1]&&n[2]===_e[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(_e[3]||("http:"===_e[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=h.param(c.data,c.traditional)),Re(Te,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=!Ce.test(c.type),i=c.url,c.hasContent||(c.data&&(i=c.url+=(be.test(i)?"&":"?")+c.data,delete c.data),!1===c.cache&&(c.url=xe.test(i)?i.replace(xe,"$1_="+ge++):i+(be.test(i)?"&":"?")+"_="+ge++)),c.ifModified&&(h.lastModified[i]&&_.setRequestHeader("If-Modified-Since",h.lastModified[i]),h.etag[i]&&_.setRequestHeader("If-None-Match",h.etag[i])),(c.data&&c.hasContent&&!1!==c.contentType||e.contentType)&&_.setRequestHeader("Content-Type",c.contentType),_.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+Ne+"; q=0.01":""):c.accepts["*"]),c.headers)_.setRequestHeader(r,c.headers[r]);if(c.beforeSend&&(!1===c.beforeSend.call(f,_,c)||2===b))return _.abort();for(r in w="abort",{success:1,error:1,complete:1})_[r](c[r]);if(u=Re(Ae,c,e,_)){_.readyState=1,s&&d.trigger("ajaxSend",[_,c]),c.async&&c.timeout>0&&(a=setTimeout(function(){_.abort("timeout")},c.timeout));try{b=1,u.send(m,k)}catch(t){if(!(b<2))throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,n,r){var l,m,g,w,k,O=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[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||t.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}(c,_,n)),w=function(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=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[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));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&&((k=_.getResponseHeader("Last-Modified"))&&(h.lastModified[i]=k),(k=_.getResponseHeader("etag"))&&(h.etag[i]=k)),204===t||"HEAD"===c.type?O="nocontent":304===t?O="notmodified":(O=w.state,m=w.data,l=!(g=w.error))):(g=O,!t&&O||(O="error",t<0&&(t=0))),_.status=t,_.statusText=(e||O)+"",l?p.resolveWith(f,[m,O,_]):p.rejectWith(f,[_,O,g]),_.statusCode(v),v=void 0,s&&d.trigger(l?"ajaxSuccess":"ajaxError",[_,c,l?m:g]),y.fireWith(f,[_,O]),s&&(d.trigger("ajaxComplete",[_,c]),--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(["get","post"],function(t,e){h[e]=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(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){h.fn[e]=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[0]){var e=h(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),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 Ie=/%20/g,De=/\[\]$/,Me=/\r?\n/g,Be=/^(?:submit|button|image|reset|file)$/i,qe=/^(?:input|select|textarea|keygen)/i;function Fe(t,e,n,r){var i;if(h.isArray(e))h.each(e,function(e,i){n||De.test(t)?r(t,i):Fe(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==h.type(e))r(t,e);else for(i in e)Fe(t+"["+i+"]",e[i],n,r)}h.param=function(t,e){var n,r=[],i=function(t,e){e=h.isFunction(e)?e():null==e?"":e,r[r.length]=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)Fe(n,t[n],e,i);return r.join("&").replace(Ie,"+")},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")&&qe.test(this.nodeName)&&!Be.test(t)&&(this.checked||!$.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(Me,"\r\n")}}):{name:e.name,value:n.replace(Me,"\r\n")}}).get()}}),h.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&We()||function(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:We;var ze=0,Ue={},He=h.ajaxSettings.xhr();function We(){try{return new n.XMLHttpRequest}catch(t){}}n.ActiveXObject&&h(n).on("unload",function(){for(var t in Ue)Ue[t](void 0,!0)}),p.cors=!!He&&"withCredentials"in He,(He=p.ajax=!!He)&&h.ajaxTransport(function(t){var e;if(!t.crossDomain||p.cors)return{send:function(n,r){var i,o=t.xhr(),a=++ze;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];for(i in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(t.hasContent&&t.data||null),e=function(n,i){var s,u,l;if(e&&(i||4===o.readyState))if(delete Ue[a],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=Ue[a]=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=C.head||h("head")[0]||C.documentElement;return{send:function(r,i){(e=C.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 Ve=[],Ke=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ve.pop()||h.expando+"_"+ge++;return this[t]=!0,t}}),h.ajaxPrefilter("json jsonp",function(t,e,r){var i,o,a,s=!1!==t.jsonp&&(Ke.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ke.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=h.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ke,"$1"+i):!1!==t.jsonp&&(t.url+=(be.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||h.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ve.push(i)),a&&h.isFunction(o)&&o(a[0]),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||C;var r=k.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=h.buildFragment([t],e,i),i&&i.length&&h(i).remove(),h.merge([],r.childNodes))};var Qe=h.fn.load;h.fn.load=function(t,e,n){if("string"!=typeof t&&Qe)return Qe.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(r):t)}).complete(n&&function(t,e){a.each(n,i||[t.responseText,e,t])}),this},h.expr.filters.animated=function(t){return h.grep(h.timers,function(e){return t===e.elem}).length};var $e=n.document.documentElement;function Ge(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",[o,u])>-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[0],o=i&&i.ownerDocument;return o?(e=o.documentElement,h.contains(e,i)?(typeof i.getBoundingClientRect!==M&&(r=i.getBoundingClientRect()),n=Ge(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[0]){var t,e,n={top:0,left:0},r=this[0];return"fixed"===h.css(r,"position")?e=r.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),h.nodeName(t[0],"html")||(n=t.offset()),n.top+=h.css(t[0],"borderTopWidth",!0),n.left+=h.css(t[0],"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||$e;t&&!h.nodeName(t,"html")&&"static"===h.css(t,"position");)t=t.offsetParent;return t||$e})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);h.fn[t]=function(r){return Q(this,function(t,r,i){var o=Ge(t);if(void 0===i)return o?e in o?o[e]:o.document.documentElement[r]:t[r];o?o.scrollTo(n?h(o).scrollLeft():i,n?i:h(o).scrollTop()):t[r]=i},t,r,arguments.length,null)}}),h.each(["top","left"],function(t,e){h.cssHooks[e]=Dt(p.pixelPosition,function(t,n){if(n)return n=Pt(t,e),Lt.test(n)?h(t).position()[e]+"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[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return Q(this,function(e,n,r){var i;return h.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):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 Ye=n.jQuery,Ze=n.$;return h.noConflict=function(t){return n.$===h&&(n.$=Ze),t&&n.jQuery===h&&(n.jQuery=Ye),h},typeof i===M&&(n.jQuery=n.$=h),h})},function(t,e,n){"use strict";n.d(e,"a",function(){return y});var r=n(1),i=n(6),o=n(5),a=n(3),s=n(10),u=n(51),l=n(28),c=n(21),f=n(0),d=n(50);function p(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var h=0;function y(t,e){var n=++h;if(Object(i.f)("navigateTo"),null!==t){var d,y;if(O(t,e),e){var w=Object(r.omit)(e,"hash","params");x(t,w),d=Object(r.extend)(w,e.params||{}),y=e.hash}Object(o.h)(function(){return Object(r.isFunction)(t)?t():t}).then(function(t){var e=function(t,e,n){E(t);var i=Object(s.e)(t);if(p(i,a.BasicObj))return Object(o.h)(function(){return m(i,e,n||null)});if(p(i,a.BasicLink))return Object(o.h)(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 m(a,i,o)}(i,e,n||null)}).then(v)}(t,d,y);if(e)return e.then(function(t){h===n&&function(t){g(t)?function(t){var e=Object(c.c)(t),n=l.a();e===n?l.d(e):l.c(e)}(t):b(t)?Object(u.a)(t.url):function(t){var e=t.objId;if(t.isBinary){var n=new f.b("The target provided to navigateTo leads to the binary obj "+e+" which has no binary data.");Object(f.T)(n)}else{var r=Object(c.b)({path:e});t.queryParameters&&r.query(t.queryParameters),t.hash&&r.hash(t.hash),l.c(r.resource())}}(t)}(t)})}).catch(function(t){h===n&&Object(f.T)(t)})}else Object(f.J)(function(){return O(t,e)})}function v(t){if(g(t)||b(t)||function(t){return!!t.objId}(t))return t;throw new f.b("The link provided to navigateTo has no destination.")}function m(t,e,n){if(Object(d.a)(t)){var r=t.get("blob",["binary"]);return r?{url:r.url()}:{isBinary:!0,objId:t.id(),queryParameters:e,hash:n}}return{obj:t,queryParameters:e,hash:n}}function g(t){return!!t.obj}function b(t){return!!t.url}var w=f.R.union([a.ObjType,a.LinkType]),_=f.R.union([f.R.Function,w]),k=f.R.dict(f.R.String,f.R.maybe(f.R.String)),O=Object(f.u)("navigateTo",[["target",_],["options",f.R.maybe(f.R.struct({hash:f.R.maybe(f.R.String),params:f.R.maybe(k)},{strict:!1}))]],{docPermalink:"js-sdk/navigateTo"}),x=Object(f.u)("navigateTo",[["target",_],["options",f.R.maybe(k)]],{docPermalink:"js-sdk/navigateTo"}),E=Object(f.u)("navigateTo",[["target",w]],{docPermalink:"js-sdk/navigateTo"})},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},function(t,e,n){"use strict";n.d(e,"b",function(){return u}),n.d(e,"a",function(){return l}),n.d(e,"c",function(){return c});var r,i=n(0),o=n(11),a={},s=new i.f;function u(t,e){s.current()||(f(),a[e]=t)}function l(t){if(!s.current())return f(),a[t]}function c(t){return s.runWith(!0,t)}function f(){var t=Object(o.g)();t!==r&&(a={},r=t)}},function(t,e){t.exports=function(t){return"string"==typeof t}},function(t,e){t.exports=function(t){return!0===t||!1===t}},function(t,e,n){var r=n(31),i=n(26);t.exports=r("Function",i)},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(1),i=n(3),o=n(19),a=n(33),s=n(10),u=n(16);function l(t,e){var n=Object(o.a)(t,"initialContent");if(n){var i=n[e];if(Object(r.isFunction)(i))return i();if(function(t){return Object(r.isArray)(t)&&Object(r.every)(t,c)}(i)){var a=Object(u.a)();return i.map(function(t){var e=t._scrivitoPrivateContent.copy();return Object(s.f)(a,e)})}return i}}function c(t){return t._scrivitoPrivateContent&&function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t._scrivitoPrivateContent,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[o]=s)}});var o=Object(s.d)(i,n,e);t.update(o)}},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}},,function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return c});var r,i=n(1),o=n(71),a=n(0),s=n(3),u=n(9);function l(){if(r)return{filters:r}}function c(t){if(u.b){E(t),t.filters&&(r=t.filters);var e=t.baseFilter;if(e){var n=e.query;n&&u.b.configureContentBrowser(Object(o.a)({baseQuery:n}))}}}var f=a.R.union([a.R.String,a.R.list(a.R.String)]),d=a.R.enums.of(Object(i.intersection)(s.OPERATORS,["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan"])),p=a.R.union([a.R.String,a.R.Date,a.R.Nil,a.R.Number,a.R.list(a.R.union([a.R.String,a.R.Nil])),a.R.list(a.R.union([a.R.Date,a.R.Nil])),a.R.list(a.R.union([a.R.Number,a.R.Nil]))],"SearchValue"),h=a.R.struct({title:a.R.maybe(a.R.String)}),y=h.extend({field:a.R.maybe(f),operator:a.R.maybe(d),expanded:a.R.maybe(a.R.Boolean)}),v=h.extend({value:a.R.maybe(p),query:a.R.maybe(s.ObjSearchType),selected:a.R.maybe(a.R.Boolean)}),m=y.extend({type:a.R.enums.of(["radioButton"]),options:a.R.dict(a.R.String,v)},"RadioFilterDefinition"),g=h.extend({value:a.R.maybe(p),selected:a.R.maybe(a.R.Boolean)}),b=y.extend({type:a.R.enums.of(["checkbox"]),options:a.R.dict(a.R.String,g)},"CheckboxFilterDefinition"),w=a.R.declare("TreeFilterDefinition");w.define(h.extend({type:a.R.maybe(a.R.enums.of("tree")),icon:a.R.maybe(a.R.String),query:a.R.maybe(s.ObjSearchType),expanded:a.R.maybe(a.R.Boolean),value:a.R.maybe(p),field:a.R.maybe(f),operator:a.R.maybe(d),selected:a.R.maybe(a.R.Boolean),options:a.R.maybe(a.R.dict(a.R.String,w))}));var _=a.R.union([w,b,m]);_.dispatch=function(t){switch(t.type||"tree"){case"tree":return w;case"radioButton":return m;case"checkbox":return b}};var k=a.R.dict(a.R.String,_),O=a.R.struct({query:s.ObjSearchType}),x=a.R.struct({filters:a.R.maybe(k),baseFilter:a.R.maybe(O)},"Configuration"),E=Object(a.u)("configureContentBrowser",[["configuration",x]],{docPermalink:"js-sdk/configureContentBrowser"})},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(1),i=n(3);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){if(!t)return t;switch(o(t)){case"string":case"number":case"boolean":return t;case"object":return function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t._scrivitoPrivateContent,i.BasicObjSearch)?a(t._scrivitoPrivateContent.params()):Object(r.isDate)(t)?t:Object(r.isArray)(t)?function(t){var e=[];return t.forEach(function(t){var n=a(t);void 0!==n&&e.push(n)}),e}(t):function(t){var e={};return Object(r.each)(t,function(t,n){var r=a(t);void 0!==r&&(e[n]=r)}),e}(t)}}},,,function(t,e,n){"use strict";function r(t){return function(){return t}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},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.g,Object(i.J)(u)),r.promise}function s(){return o+=1,function(){var t=!1;return function(){if(t)throw new i.j("Unregister must not be called twice");t=!0,0===(o-=1)&&Object(i.J)(u)}}()}function u(){r&&0===o&&(r.resolve(void 0),r=void 0)}},function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return s});var r=n(1),i=n(6),o=0,a={};function s(t){var e=++o;a[e]=t;var n=l(),r=n.get()||[];n.set(r.concat([e]))}function u(t){var e=t.type,n=t.tag,i=l().get();if(i){var o=Object(r.find)(i,function(t){return a[t]&&a[t].canEdit({type:e,tag:n})});if(o)return{id:o,editorClass:a[o]}}}function l(){return i.c.subState("editors")}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(1),i=n(19),o=n(0);function a(t,e){var n=Object(i.a)(t,e);if(Object(r.isFunction)(n))try{for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];return n.apply(void 0,s)}catch(t){Object(o.T)(t)}}},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(77),i=n(19),o=n(16),a=n(0),s=n(10),u=n(3);function l(t,e){var n=u.BasicObj.getIncludingDeleted(t);if(null!==n){var l=n.widget(e);if(null!==l)return function(t){var e=Object(s.f)(Object(o.a)(),t),n=t.objClass();return Object(r.a)(n,"titleForContent",e)}(l)||function(t){return Object(i.a)(t,"title")||Object(a.Q)(t)}(l.objClass())}}},function(t,e,n){var r=n(31);t.exports=r("Any",function(){return!0})},function(t,e,n){var r=n(14),i=(n(36),n(26),n(58),n(45)),o=n(46),a=n(47),s=n(22),u=n(57);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},function(t,e,n){var r=n(31),i=n(64);t.exports=r("String",i)},function(t,e,n){var r=n(14),i=(n(36),n(26),n(22)),o=n(45),a=n(43),s=n(46),u=n(47);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[a=s(t,a,null)],l=s(e,u,null);i=i&&u===l,o[a]=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(r)&&(!u(r,t)||!u(n[r],e)))return!1;return!0},d.update=function(t,e){return d(r.update(t,e))},d}c.getDefaultName=l,t.exports=c},function(t,e,n){var r=n(41);n(14);t.exports=function(t,e,n){if(r(e))return t;for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}},function(t,e,n){"use strict";
72
+ /*
73
+ object-assign
74
+ (c) Sindre Sorhus
75
+ @license MIT
76
+ */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,s=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))i.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var c=0;c<a.length;c++)o.call(n,a[c])&&(s[a[c]]=n[a[c]])}}return s}},function(t,e,n){"use strict";t.exports={}},,,function(t,e,n){"use strict";var r=function(t){};t.exports=function(t,e,n,i,o,a,s,u){if(r(e),!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,a,s,u],f=0;(l=new Error(e.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},,,function(t,e,n){t.exports=n(154)},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){}}},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<e;)u&&u[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 y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];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=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,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}},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.o)(function(){return t.next()});if(!o.allDataLoaded)return{done:!1,objs:n};var a=o.result;return a.done||0===e?{done:a.done,objs:n}:i(t,e-1,n.concat([a.value]))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return i});var r=n(5);function i(t,e){var n=Object(r.o)(e);return n.allDataLoaded?n.result:t}},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(){return function(t){this.ops=t}}();e.InlineGroup=i;var o=function(){return function(t){this.op=t}}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o);e.VideoItem=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o);e.BlotBlock=s;var u=function(){return function(t,e){this.op=t,this.ops=e}}();e.BlockGroup=u;var l=function(){return function(t){this.items=t}}();e.ListGroup=l;var c=function(){return function(t,e){void 0===e&&(e=null),this.item=t,this.innerList=e}}();e.ListItem=c},,,,,,function(t,e,n){var r=n(57);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)}}},function(t,e,n){var r=n(31),i=n(65);t.exports=r("Boolean",i)},function(t,e,n){var r=n(31),i=n(41);t.exports=r("Nil",i)},function(t,e,n){var r=n(31),i=n(106);t.exports=r("Number",i)},function(t,e){t.exports=function(t){return"number"==typeof t&&isFinite(t)&&!isNaN(t)}},function(t,e,n){var r=n(27);t.exports=function(t){return r(t)&&"union"===t.meta.kind}},function(t,e,n){var r=n(14),i=(n(36),n(26),n(22)),o=n(45),a=n(46),s=n(47),u=n(44);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},function(t,e,n){var r=n(22);t.exports=function(t){return"{"+Object.keys(t).map(function(e){return e+": "+r(t[e])}).join(", ")+"}"}},function(t,e,n){n(14),n(26),n(44);var r=n(83),i=(n(169),n(170),n(43)),o=n(80),a=n(171);t.exports=function(t,e,n){var s={},u={},l=[],c={};e.forEach(function(t,e){var n=a(t),o=n.unrefinedType;(function(t,e){Array.prototype.push.apply(t,e)})(l,n.predicates),r(s,function(t){return i(t)?t:t.meta.props}(o)),r(u,o.prototype),r(c,function(t){return i(t)?null:t.meta.defaultProps}(o),!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}},function(t,e,n){var r=n(14),i=(n(36),n(26),n(22)),o=n(45),a=n(44),s=n(46),u=n(47);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},function(t,e){t.exports=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},function(t,e){},function(t,e,n){(function(t,r){var i;/*! https://mths.be/punycode v1.4.0 by @mathias */!function(o){"object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,l=36,c=1,f=26,d=38,p=700,h=72,y=128,v="-",m=/^xn--/,g=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=l-c,k=Math.floor,O=String.fromCharCode;function x(t){throw new RangeError(w[t])}function E(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function C(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+E((t=t.replace(b,".")).split("."),e).join(".")}function S(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 j(t){return E(t,function(t){var e="";return t>65535&&(e+=O((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=O(t)}).join("")}function T(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:l}function A(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function N(t,e,n){var r=0;for(t=n?k(t/p):t>>1,t+=k(t/e);t>_*f>>1;r+=l)t=k(t/_);return k(r+(_+1)*t/(t+d))}function P(t){var e,n,r,i,o,a,s,d,p,m,g=[],b=t.length,w=0,_=y,O=h;for((n=t.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&x("not-basic"),g.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<b;){for(o=w,a=1,s=l;i>=b&&x("invalid-input"),((d=T(t.charCodeAt(i++)))>=l||d>k((u-w)/a))&&x("overflow"),w+=d*a,!(d<(p=s<=O?c:s>=O+f?f:s-O));s+=l)a>k(u/(m=l-p))&&x("overflow"),a*=m;O=N(w-o,e=g.length+1,0==o),k(w/e)>u-_&&x("overflow"),_+=k(w/e),w%=e,g.splice(w++,0,_)}return j(g)}function R(t){var e,n,r,i,o,a,s,d,p,m,g,b,w,_,E,C=[];for(b=(t=S(t)).length,e=y,n=0,o=h,a=0;a<b;++a)(g=t[a])<128&&C.push(O(g));for(r=i=C.length,i&&C.push(v);r<b;){for(s=u,a=0;a<b;++a)(g=t[a])>=e&&g<s&&(s=g);for(s-e>k((u-n)/(w=r+1))&&x("overflow"),n+=(s-e)*w,e=s,a=0;a<b;++a)if((g=t[a])<e&&++n>u&&x("overflow"),g==e){for(d=n,p=l;!(d<(m=p<=o?c:p>=o+f?f:p-o));p+=l)E=d-m,_=l-m,C.push(O(A(m+E%_,0))),d=k(E/_);C.push(O(A(d,0))),o=N(n,w,r==i),n=0,++r}++n,++e}return C.join("")}s={version:"1.3.2",ucs2:{decode:S,encode:j},decode:P,encode:R,toASCII:function(t){return C(t,function(t){return g.test(t)?"xn--"+R(t):t})},toUnicode:function(t){return C(t,function(t){return m.test(t)?P(t.slice(4).toLowerCase()):t})}},void 0===(i=function(){return s}.call(e,n,e,t))||(t.exports=i)}()}).call(this,n(68)(t),n(48))},function(t,e,n){var r,i;
77
+ /*!
44
78
  * URI.js - Mutating URLs
45
79
  * IPv6 Support
46
80
  *
@@ -53,7 +87,34 @@ function(t){function e(t,e,n,r){var i,o,a,s,c,f,d,h,p,v;if((e?e.ownerDocument||e
53
87
  * MIT License http://www.opensource.org/licenses/mit-license
54
88
  *
55
89
  */
56
- !function(o,a){"use strict";"object"==typeof t&&t.exports?t.exports=a():(r=a,void 0!==(i="function"==typeof r?r.call(e,n,e,t):r)&&(t.exports=i))}(0,function(t){"use strict";function e(t){var e=t.toLowerCase(),n=e.split(":"),r=n.length,i=8;""===n[0]&&""===n[1]&&""===n[2]?(n.shift(),n.shift()):""===n[0]&&""===n[1]?n.shift():""===n[r-1]&&""===n[r-2]&&n.pop(),r=n.length,-1!==n[r-1].indexOf(".")&&(i=7);var o;for(o=0;o<r&&""!==n[o];o++);if(o<i)for(n.splice(o,1,"0000");n.length<i;)n.splice(o,0,"0000");for(var a,s=0;s<i;s++){a=n[s].split("");for(var u=0;u<3&&("0"===a[0]&&a.length>1);u++)a.splice(0,1);n[s]=a.join("")}var c=-1,l=0,f=0,d=-1,h=!1;for(s=0;s<i;s++)h?"0"===n[s]?f+=1:(h=!1,f>l&&(c=d,l=f)):"0"===n[s]&&(h=!0,d=s,f=1);f>l&&(c=d,l=f),l>1&&n.splice(c,l,""),r=n.length;var p="";for(""===n[0]&&(p=":"),s=0;s<r&&(p+=n[s],s!==r-1);s++)p+=":";return""===n[r-1]&&(p+=":"),p}function n(){return t.IPv6===this&&(t.IPv6=r),this}var r=t&&t.IPv6;return{best:e,noConflict:n}})},function(t,e,n){var r,i;/*!
90
+ /*!
91
+ * URI.js - Mutating URLs
92
+ * IPv6 Support
93
+ *
94
+ * Version: 1.19.1
95
+ *
96
+ * Author: Rodney Rehm
97
+ * Web: http://medialize.github.io/URI.js/
98
+ *
99
+ * Licensed under
100
+ * MIT License http://www.opensource.org/licenses/mit-license
101
+ *
102
+ */
103
+ !function(o,a){"use strict";"object"==typeof t&&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}}})},function(t,e,n){var r,i;
104
+ /*!
105
+ * URI.js - Mutating URLs
106
+ * Second Level Domain (SLD) Support
107
+ *
108
+ * Version: 1.19.1
109
+ *
110
+ * Author: Rodney Rehm
111
+ * Web: http://medialize.github.io/URI.js/
112
+ *
113
+ * Licensed under
114
+ * MIT License http://www.opensource.org/licenses/mit-license
115
+ *
116
+ */
117
+ /*!
57
118
  * URI.js - Mutating URLs
58
119
  * Second Level Domain (SLD) Support
59
120
  *
@@ -66,7 +127,8 @@ function(t){function e(t,e,n,r){var i,o,a,s,c,f,d,h,p,v;if((e?e.ownerDocument||e
66
127
  * MIT License http://www.opensource.org/licenses/mit-license
67
128
  *
68
129
  */
69
- !function(o,a){"use strict";"object"==typeof t&&t.exports?t.exports=a():(r=a,void 0!==(i="function"==typeof r?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})},function(t,e,n){"use strict";function r(){return f>0}function i(t,e,n){var r=n.params,i=n.authorization,a=n.forceVerification;return l?scrivito.Promise.resolve(new XMLHttpRequest):(f+=1,new scrivito.Promise(function(n,s){var u=o(t,e,n,s);i&&u.setRequestHeader("Authorization",i),u.setRequestHeader("Scrivito-Client","jssdk/1.2.0-rc2-8-gc9ddb6bb"),a&&u.setRequestHeader("Scrivito-Force-Verification","true"),u.setRequestHeader("Content-type","application/json; charset=utf-8"),u.send(JSON.stringify(r))}))}function o(t,e,n,r){function i(t){s(new c.RequestFailedError(t),r)}var o=new XMLHttpRequest;return o.open("POST"===t?"POST":"PUT",e),o.timeout=15e3,o.withCredentials=!0,o.onload=function(){return a(o,n,r)},o.onerror=function(){return i("XMLHttpRequest Error")},o.ontimeout=function(){return i("XMLHttpRequest Timeout")},o.onabort=function(){return i("XMLHttpRequest Aborted")},o}function a(t,e,n){f-=1;var r=t.status;if(!r||!Object(u.isNumber)(r)){var i="Unexpected response status: "+r+"; body: "+(0===r?t.statusText:t.responseText);n(new c.RequestFailedError(i))}e(t)}function s(t,e){f-=1,e(t)}e.b=r,e.a=i;var u=n(0),c=(n.n(u),n(1)),l=!1,f=0},function(t,e,n){"use strict";var r=n(169),i=n.n(r);scrivito.Promise=window.Promise||i.a},function(t,e,n){"use strict";function r(t){var e=[],n=c.runWith(e,t);return new f(e,n)}function i(t){var e=l();if(!e)throw t(),new s.ScrivitoError("Content not yet loaded. Forgot to use Scrivito.load or Scrivito.connect? See https://scrivito.com/content-not-yet-loaded-error");e.push({reason:"missing",loader:t})}function o(t){var e=l();e&&e.push({reason:"outdated",loader:t})}e.a=r,e.b=i,e.c=o;var a=n(0),s=(n.n(a),n(1)),u=n(69),c=new u.a,l=function(){return c.current()},f=function(){function t(t,e){this.captureList=t,this.result=e}return t.prototype.isAllDataLoaded=function(){return!Object(a.findWhere)(this.captureList,{reason:"missing"})},t.prototype.isAllDataUpToDate=function(){return 0===this.captureList.length},t.prototype.loadRequiredData=function(){if(0===this.captureList.length)return null;this.captureList.forEach(function(t){return t.loader()})},t}()},function(t,e,n){"use strict";var r=n(0),i=(n.n(r),n(12)),o=n(37),a=function(){function t(t,e){var n=(void 0===e?{}:e).batchSize;this.mget=t,this.batchSize=n||100,this.deferreds={}}return t.prototype.retrieve=function(t){var e=this;if(Object(r.isEmpty)(this.deferreds)&&Object(o.a)(function(){return e.performRetrieval()}),!this.deferreds[t]){var n=new i.a;this.deferreds[t]=n}return this.deferreds[t].promise},t.prototype.reset=function(){this.deferreds={}},t.prototype.performRetrieval=function(){var t=this,e=Object(r.keys)(this.deferreds).slice(0,this.batchSize);if(0!==e.length){var n={};e.forEach(function(e){n[e]=t.deferreds[e],delete t.deferreds[e]}),this.mget(e).then(function(r){e.forEach(function(e,i){var o=n[e],a=r[i];i<r.length?o.resolve(a):t.retrieve(e).then(o.resolve,o.reject)})},function(t){Object(r.each)(n,function(e){return e.reject(t)})}),this.performRetrieval()}},t}();e.a=a},function(t,e,n){function r(t,e){return"function"==typeof e?i(e):e}var i=n(51);t.exports=function(t){try{return JSON.stringify(t,r,2)}catch(e){return String(t)}}},function(t,e,n){var r=n(16),i=n(66);t.exports=r("Boolean",i)},function(t,e,n){var r=n(16),i=n(25);t.exports=r("Nil",i)},function(t,e,n){var r=n(16),i=n(109);t.exports=r("Number",i)},function(t,e){t.exports=function(t){return"number"==typeof t&&isFinite(t)&&!isNaN(t)}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"union"===t.meta.kind}},function(t,e,n){function r(t){return"Array<"+a(t)+">"}function i(t,e){function n(e,n){if(f)return e;for(var r=!0,i=[],o=0,a=e.length;o<a;o++){var s=e[o],c=u(t,s,null);r=r&&s===c,i.push(c)}return r&&(i=e),i}var i=e||r(t),f=(a(t),s(t));return n.meta={kind:"list",type:t,name:e,identity:f},n.displayName=i,n.is=function(e){return l(e)&&e.every(function(e){return c(e,t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=n(30),c=n(31),l=n(28);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t){return"{"+Object.keys(t).map(function(e){return e+": "+i(t[e])}).join(", ")+"}"}var i=n(8);t.exports=r},function(t,e,n){function r(t,e,n){var r=t.reduce(function(t,e){return l(t,e)},e);return n&&(r.displayName=n,r.meta.name=n),r}function i(t){return c(t)?t:t.meta.props}function o(t){return c(t)?null:t.meta.defaultProps}function a(t,e){Array.prototype.push.apply(t,e)}function s(t,e,n){var s={},c={},l=[],d={};e.forEach(function(t,e){var n=f(t),r=n.unrefinedType;a(l,n.predicates),u(s,i(r)),u(c,r.prototype),u(d,o(r),!0)}),n=t.getOptions(n),n.defaultProps=u(d,n.defaultProps,!0);var h=r(l,t(s,{strict:n.strict,defaultProps:n.defaultProps}),n.name);return u(h.prototype,c),h}var u=(n(5),n(10),n(28),n(80)),c=(n(197),n(198),n(27)),l=n(77),f=n(199);t.exports=s},function(t,e,n){function r(t){return"["+t.map(a).join(", ")+"]"}function i(t,e){function n(e,n){if(a)return e;for(var r=!0,i=[],o=0,s=t.length;o<s;o++){var u=t[o],l=e[o],f=c(u,l,null);r=r&&l===f,i.push(f)}return r&&(i=e),i}var i=e||r(t),a=t.every(s);return n.meta={kind:"tuple",types:t,name:e,identity:a},n.displayName=i,n.is=function(e){return u(e)&&e.length===t.length&&t.every(function(t,n){return l(e[n],t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=n(28),c=n(30),l=n(31);i.getDefaultName=r,t.exports=i},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}t.exports=n},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(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||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t){var e={};return F.a.each(t,function(t,n){var r=i(t,2),o=r[0],a=r[1],s=c(n);if(Object(D.a)(s))e[s]=o;else{var u=i(a,2),h=u[0],p=u[1];e[s]=[l(h,n),d(f(h,p,o,n))]}}),e}function c(t){if(!Object(H.c)(t))throw new z.ArgumentError("Attribute names have to be in camel case.");return Object(H.e)(t)}function l(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 z.ArgumentError('Attribute "'.concat(e,'" is of unsupported type "').concat(t,'".'))}}function f(t,e,n,r){if(null===n)return n;switch(t){case"binary":return p(n,r);case"date":return v(n,r);case"enum":return y(e,n,r);case"float":return m(n,r);case"html":return b(n,r);case"integer":return g(n,r);case"link":return w(n,r);case"linklist":return _(n,r);case"multienum":return E(e,n,r);case"reference":return x(n,r);case"referencelist":return C(n,r);case"string":return T(n,r);case"stringlist":return N(n,r);case"widgetlist":return L(n,r);default:throw new z.InternalError('serializeAttributeValue is not implemented for "'.concat(t,'".'))}}function d(t){return(F.a.isString(t)||F.a.isArray(t))&&F.a.isEmpty(t)?null:t}function h(t,e,n){throw new z.ArgumentError("Unexpected value ".concat(Object(U.a)(t)," for")+' attribute "'.concat(e,'". Expected: ').concat(n))}function p(t,e){if(r(t,W.a))return{id:t.id()};h(t,e,"A Binary.")}function v(t,e){return F.a.isDate(t)?Object(q.c)(t):Object(q.d)(t)?t:void h(t,e,"A Date.")}function y(t,e,n){var r=t.values;if(F.a.contains(r,e))return e;h(e,n,'Valid attribute values are contained in its "values" array ['.concat(r,"]."))}function m(t,e){if(Object(q.e)(t))return t;var n=t;F.a.isNumber(t)&&(n=String(t)),h(n,e,"A Number, that is #isFinite().")}function b(t,e){if(F.a.isString(t))return t;h(t,e,"A String.")}function g(t,e){if(Object(q.f)(t))return t;h(t,e,"A Number, that is #isSafeInteger().")}function w(t,e){if(k(t))return O(t);h(t,e,"A Link instance.")}function _(t,e){if(F.a.isArray(t)&&F.a.every(t,k))return F.a.map(t,O);h(t,e,"An array of Link instances.")}function k(t){if(r(t,M.a))return!0;if(!F.a.isObject(t))return!1;var e=F.a.without(F.a.keys(t),"hash","obj_id","query","target","title","url");return F.a.isEmpty(e)}function O(t){var e={fragment:"function"==typeof t.hash?t.hash():t.hash,query:"function"==typeof t.query?t.query():t.query,target:"function"==typeof t.target?t.target():t.target,title:"function"==typeof t.title?t.title():t.title,url:"function"==typeof t.url?t.url():t.url};return e.obj_id="function"==typeof t.objId?t.objId():t.obj_id,F.a.mapObject(e,function(t){return t||null})}function E(t,e,n){var r=t.values,i="An array with values from ".concat(Object(U.a)(r),".");F.a.isArray(e)&&F.a.every(e,F.a.isString)||h(e,n,i);var o=F.a.difference(e,r);if(o.length){h(e,n,"".concat(i," Forbidden values: ").concat(Object(U.a)(o),"."))}return e}function x(t,e){if(S(t))return j(t);h(t,e,"A BasicObj or a String ID.")}function C(t,e){if(A(t))return F.a.map(t,j);h(t,e,"An array with BasicObjs or String IDs.")}function j(t){return r(t,I.default)?t.id():t}function S(t){return F.a.isString(t)||r(t,I.default)}function A(t){return F.a.isArray(t)&&F.a.every(t,function(t){return S(t)})}function T(t,e){if(P(t))return t.toString();h(t,e,"A String.")}function N(t,e){if(F.a.isArray(t)&&F.a.every(t,function(t){return P(t)}))return F.a.invoke(t,"toString");h(t,e,"An array of strings.")}function P(t){return F.a.isString(t)||F.a.isNumber(t)}function L(t,e){if(F.a.isArray(t)&&F.a.every(t,function(t){return r(t,R.a)}))return F.a.invoke(t,"id");h(t,e,"An array of BasicWidget instances.")}e.a=u;var I=n(3),D=n(47),q=n(48),R=n(32),M=n(34),B=n(0),F=n.n(B),z=n(1),U=n(41),H=n(23),W=n(26)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(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||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}n.d(e,"a",function(){return b});var f=n(213),d=n(47),h=n(132),p=n(0),v=n.n(p),y=n(1),m=n(23),b=function(){function t(){u(this,t)}return l(t,[{key:"get",value:function(t,e){if(!Object(m.c)(t))throw new y.ArgumentError("Attribute names have to be in camel case.");var n=Object(m.e)(t);{if(!Object(d.a)(n)){var r=scrivito.typeInfo.normalize(e),o=i(r,2),a=o[0],s=o[1],u=this.getAttributeData(n);return u&&v.a.isArray(u)||(u=[]),f.a(this,u,a,s)}if(v.a.has(this._systemAttributes,n)){var c=this._systemAttributes[n];return"function"==typeof this[c]?this[c]():this[c]}}}},{key:"field",value:function(t,e){return new h.a({container:this,attributeName:t,typeInfo:scrivito.typeInfo.normalize(e)})}},{key:"widget",value:function(t){throw new TypeError("Override in subclass.")}},{key:"serializeAttributes",value:function(){var t=this,e={};return v.a.each(this.getData(),function(n,r){if(v.a.isArray(n)&&"widgetlist"===v.a.first(n)){var i=Object(m.a)(r),o=v.a.invoke(t.get(i,["widgetlist"]),"serializeAttributes");return void(e[r]=["widgetlist",o])}e[r]=n}),e}},{key:"_persistWidgets",value:function(t,e){v.a.each(e,function(e){var n=i(e,2),r=n[0],o=n[1];o&&"widgetlist"===o[0]&&v.a.each(r,function(e){e.isPersisted()||e.persistInObj(t)})})}},{key:"getAttributeData",value:function(){throw new TypeError("Override in subclass.")}},{key:"getData",value:function(){throw new TypeError("Override in subclass.")}},{key:"_objClass",get:function(){throw new TypeError("Override in subclass.")}}]),t}()},function(t,e,n){"use strict";function r(t,e,n){s.a.store(t,e,n)}function i(t){return scrivito.computeCacheKey(t)}function o(t,e){return new u.a(t,e)}function a(){return c.b.subState("objQuery")}e.d=r,e.a=i,e.b=o,e.c=a;var s=n(119),u=n(215),c=n(4)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return u});var s=n(214),u=function(){function t(e,n){i(this,t),this._params=e,this._batchSize=n}return a(t,null,[{key:"store",value:function(t,e,n){s.a.store(t,e,n)}},{key:"count",value:function(t){return s.a.countFor(t)}}]),a(t,[{key:"iterator",value:function(){function t(){if(!n)return{done:!0};var i=n.objIds();if(r<i.length){var o=i[r];return r++,e[o]?t():(e[o]=!0,{value:o,done:!1})}return n=n.nextBatch(),r=0,t()}var e={},n=s.a.firstBatchFor(this._params,this._batchSize),r=0;return{next:t}}}]),t}()},function(t,e,n){"use strict";function r(){for(var t=Math.floor(Math.random()*Math.pow(16,8)).toString(16);t.length<8;)t="0".concat(t);return t}function i(){return r()+r()}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(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 i(t){return t.iterator().next().value||null}e.a=r,e.b=i},function(t,e,n){"use strict";function r(t){return t.displayName||t.name}e.a=r},,,,,function(t,e){window.scrivito||(window.scrivito={}),window.scrivito.client={}},function(t,e,n){"use strict";function r(t){return i(1e3*t)}function i(t){return new scrivito.Promise(function(e){setTimeout(e,t)})}e.a=r,e.b=i;n(102)},function(t,e,n){"use strict";function r(t,e){Object(c.d)("navigateTo"),y(t,e);var n,r;if(e){n=e.params||{},r=e.hash;var a=Object(o.omit)(e,"hash","params");m(t,a),n=Object(o.extend)(a,n)}Object(f.e)(function(){return{obj:Object(d.c)(Object(o.isFunction)(t)?t():t),queryParameters:n,hash:r}},i)}function i(t){var e=t.obj,n=t.queryParameters,r=t.hash;e&&(Object(s.a)(),Object(h.d)({obj:e,queryParameters:n,hash:r}))}e.a=r;var o=n(0),a=(n.n(o),n(24)),s=n(294),u=n(59),c=n(4),l=n(39),f=n(60),d=n(22),h=n(72),p=a.a.union([a.a.Function,a.a.irreducible("null",function(t){return null===t}),u.d,u.b]),v=a.a.dict(a.a.String,a.a.maybe(a.a.String)),y=Object(l.a)("navigateTo",[["target",p],["options",a.a.maybe(a.a.struct({hash:a.a.maybe(a.a.String),params:a.a.maybe(v)},{strict:!1}))]],{docPermalink:"js-sdk/navigateTo"}),m=Object(l.a)("navigateTo",[["target",p],["options",a.a.maybe(v)]],{docPermalink:"js-sdk/navigateTo"})},function(t,e,n){"use strict";function r(t){return function(){return d.a.retrieveBinaryMetadata(t).then(function(t){return o(t)})}}function i(t){return h.b.subState("metadataCollection").subState(t)}function o(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],u=a[0],c=a[1];if(null===c||void 0===c)throw new l.InternalError('Invalid backend value "null" or "undefined" for metadata "'+o+'"');var f=void 0;if(u===s.Date){if("string"!=typeof c)throw new l.InternalError('Invalid non-string backend value for a date metadata "'+o+'"');f=Object(p.a)(c)}else f=c;n[o]=f}return n}function a(t){if(!Object(f.c)(t))throw new l.ArgumentError('Metadata key "'+t+'" is not in camel case.')}var s,u=n(0),c=(n.n(u),n(18)),l=n(1),f=n(23),d=n(43),h=n(4),p=n(48);!function(t){t.Date="date",t.Number="number",t.String="string",t.Stringlist="stringlist"}(s||(s={}));var v=function(){function t(t){this._binaryId=t,t&&(this._loadableData=new c.b({state:i(t),loader:r(t)}))}return t.store=function(t,e){new c.b({state:i(t),loader:r(t)}).set(o(e))},t.prototype.get=function(t){a(t);var e=this._getData();if(e)return e[Object(f.e)(t)]},t.prototype.keys=function(){var t=this._getData();return t?Object(u.map)(Object(u.keys)(t),f.a):[]},Object.defineProperty(t.prototype,"binaryId",{get:function(){return this._binaryId},enumerable:!0,configurable:!0}),t.prototype._getData=function(){if(this._loadableData)return this._loadableData.get()},t}();e.a=v},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n(24),i=r.a.interface({size:r.a.Number,type:r.a.String},{name:"Blob",strict:!1}),o=i.extend({name:r.a.String},{name:"File",strict:!1})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}n.d(e,"a",function(){return f});var u=n(3),c=n(0),l=(n.n(c),n(1)),f=function(){function t(e){var n=e.container,r=e.attributeName,i=e.typeInfo;o(this,t),this._container=n,this._attributeName=r,this._typeInfo=i}return s(t,[{key:"get",value:function(){return this._container.get(this.name(),this._typeInfo)}},{key:"update",value:function(t){this._container.update(i({},this.name(),[t,this._typeInfo]))}},{key:"container",value:function(){return this._container}},{key:"obj",value:function(){return this.container().obj()}},{key:"name",value:function(){return this._attributeName}},{key:"type",value:function(){return this._typeInfo[0]}},{key:"typeOptions",value:function(){return this._typeInfo[1]||{}}},{key:"equals",value:function(e){return!!r(e,t)&&(this.container().equals(e.container())&&this.name()===e.name())}},{key:"values",value:function(){return this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have values"),this._sortValuesByLocalization(this.typeOptions().values)}},{key:"titleForValue",value:function(t){this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have localized values");var e=Object(c.findWhere)(this.typeOptions().valuesLocalization,{value:t});return e&&e.title||t}},{key:"toString",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId,i="<BasicField name=".concat(e," objId=").concat(n);return i+=r?" widgetId=".concat(r,">"):">"}},{key:"id",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId,i="".concat(e,"|").concat(n);return r&&(i+="|".concat(r)),i}},{key:"_assertValidTypes",value:function(t,e){if(!Object(c.include)(t,this.type()))throw new l.InternalError(e)}},{key:"_dataForId",value:function(){var t={name:this.name()},e=this.container();return r(e,u.default)?t.objId=e.id():(t.objId=e.obj().id(),t.widgetId=e.id()),t}},{key:"_sortValuesByLocalization",value:function(t){var e=this;return t?this.typeOptions().valuesLocalization?Object(c.sortBy)(t,function(n){var r=Object(c.findIndex)(e.typeOptions().valuesLocalization,{value:n});return-1===r?t.length:r}):t:[]}}]),t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return f});var s=n(3),u=n(42),c=n(1),l=n(22),f=function(){function t(e){i(this,t),this._registry=e}return a(t,[{key:"getObj",value:function(t,e){var n=s.default.get(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"getObjIncludingDeleted",value:function(t,e){var n=s.default.getIncludingDeleted(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"read",value:function(t,e){var n=u.a.basicFieldFor(t,e);if(n){var r=n.get();return Object(l.e)(this._registry,r)}}},{key:"update",value:function(t,e){var n=this._registry.objClassNameFor(t.constructor);if(!n){var r;throw r=t.constructor===this._registry.defaultClassForObjs?"Obj":"Widget",new c.ArgumentError('Updating is not supported on the base class "'.concat(r,'".'))}if(e.constructor!==Object)throw new c.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");var i=u.a.forInstance(t),o=Object(l.b)(e,i,n);t._scrivitoPrivateContent.update(o)}},{key:"wrapInAppClass",value:function(t){return Object(l.e)(this._registry,t)}},{key:"_checkObjClassAndWrapInAppClass",value:function(t,e){var n=this._registry.objClassNameFor(t);if(n&&n!==e.objClass())throw new c.ResourceNotFoundError('Obj with id "'.concat(e.id(),'" is not of type "').concat(n,'".'));return this.wrapInAppClass(e)}}]),t}()},function(t,e,n){"use strict";var r=n(83),i=n.n(r),o=function(){var t=null,e=function(e){return i()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):(i()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==a)}else o(!0)},r=[];return{setPrompt:e,confirmTransitionTo:n,appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}};e.a=o},function(t,e,n){"use strict";function r(t){return t.replace(s,function(t,e){var n=Object(i.a)(e),r=o.i(n);return r&&(Object(a.a)(r,e),o.g(r))?o.b(r,t):n.toString()})}e.a=r;var i=n(313),o=n(63),a=n(314),s=/\bobjid:([a-f0-9]{16})\b([^"']*)/g},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return o(t),r(t,l.a)?u(t):r(t,d.a)?a(t):Object(h.a)(t)?s(t):Object(p.a)({obj:t})}function o(t){if(!t)throw new f.ArgumentError("Missing target.");if(!r(t,l.a)&&!r(t,c.default)&&!r(t,d.a))throw new f.ArgumentError("Target is invalid. Valid targets are instances of Obj or Link.")}function a(t){return t.url()}function s(t){var e=t.get("blob",["binary"]);return e?a(e):Object(p.a)({obj:t})}function u(t){return t.isExternal()?t.url():i(t.obj())}e.a=i;var c=n(3),l=n(34),f=n(1),d=n(26),h=n(226),p=n(63)},function(t,e,n){"use strict";function r(){if(o)return{filters:o}}function i(t){if(d.b){j(t),t.filters&&(o=t.filters);var e=t.baseFilter;if(e){var n=e.query;n&&d.b.configureContentBrowser(Object(s.a)({baseQuery:n}))}}}e.b=r,e.a=i;var o,a=n(0),s=(n.n(a),n(138)),u=n(39),c=n(24),l=n(59),f=n(54),d=n(17),h=c.a.union([c.a.String,c.a.list(c.a.String)]),p=c.a.enums.of(Object(a.intersection)(f.a,["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan"])),v=c.a.union([c.a.String,c.a.Date,c.a.Nil,c.a.Number,c.a.list(c.a.union([c.a.String,c.a.Nil])),c.a.list(c.a.union([c.a.Date,c.a.Nil])),c.a.list(c.a.union([c.a.Number,c.a.Nil]))],"SearchValue"),y=c.a.struct({title:c.a.maybe(c.a.String)}),m=y.extend({field:c.a.maybe(h),operator:c.a.maybe(p),expanded:c.a.maybe(c.a.Boolean)}),b=y.extend({value:c.a.maybe(v),query:c.a.maybe(l.c),selected:c.a.maybe(c.a.Boolean)}),g=m.extend({type:c.a.enums.of(["radioButton"]),options:c.a.dict(c.a.String,b)},"RadioFilterDefinition"),w=y.extend({value:c.a.maybe(v),selected:c.a.maybe(c.a.Boolean)}),_=m.extend({type:c.a.enums.of(["checkbox"]),options:c.a.dict(c.a.String,w)},"CheckboxFilterDefinition"),k=c.a.declare("TreeFilterDefinition");k.define(y.extend({type:c.a.maybe(c.a.enums.of("tree")),icon:c.a.maybe(c.a.String),query:c.a.maybe(l.c),expanded:c.a.maybe(c.a.Boolean),value:c.a.maybe(v),field:c.a.maybe(h),operator:c.a.maybe(p),selected:c.a.maybe(c.a.Boolean),options:c.a.maybe(c.a.dict(c.a.String,k))}));var O=c.a.union([k,_,g]);O.dispatch=function(t){switch(t.type||"tree"){case"tree":return k;case"radioButton":return g;case"checkbox":return _}};var E=c.a.dict(c.a.String,O),x=c.a.struct({query:l.c}),C=c.a.struct({filters:c.a.maybe(E),baseFilter:c.a.maybe(x)},"Configuration"),j=Object(u.a)("configureContentBrowser",[["configuration",C]],{docPermalink:"js-sdk/configureContentBrowser"})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){if(!t)return t;switch(i(t)){case"string":case"number":case"boolean":return t;case"object":return r(t._scrivitoPrivateContent,c.b)?o(t._scrivitoPrivateContent.params()):Object(u.isDate)(t)?t:Object(u.isArray)(t)?a(t):s(t)}}function a(t){var e=[];return t.forEach(function(t){var n=o(t);void 0!==n&&e.push(n)}),e}function s(t){var e={};return Object(u.each)(t,function(t,n){var r=o(t);void 0!==r&&(e[n]=r)}),e}e.a=o;var u=n(0),c=(n.n(u),n(54))},function(t,e,n){"use strict";var r=function(){function t(t){var e=t.controller;this._controller=e}return t.canEdit=function(t){t.type,t.tag;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}();e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return u(t)||s(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");d(t.prototype,e&&e.prototype),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}function v(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?m(t):e}function y(t){return(y=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t,e){var n=Object(A.a)(t),r=n.objId,i=n.widgetId;P.b.insertWidget(r,i,e)}n.d(e,"a",function(){return q});var g=n(237),w=n.n(g),_=n(13),k=n.n(_),O=n(85),E=n.n(O),x=n(0),C=(n.n(x),n(87)),j=n(42),S=n(62),A=n(141),T=n(14),N=n(1),P=n(17),L=n(351),I=n(239),D=n(240),q="_scrivitoWidget",R=function(t){function e(t){var n;return l(this,e),n=v(this,y(e).call(this,t)),n.state={hasFocus:!1,isDragged:!1,isFocusFadedOut:!0},n._onMouseOver=n._onMouseOver.bind(m(m(n))),n._onMouseOut=n._onMouseOut.bind(m(m(n))),n._onWidgetFocus=n._onWidgetFocus.bind(m(m(n))),n._onWidgetBlur=n._onWidgetBlur.bind(m(m(n))),n._lockFocus=n._lockFocus.bind(m(m(n))),n._unlockFocus=n._unlockFocus.bind(m(m(n))),n._setDragState=n._setDragState.bind(m(m(n))),n}return p(e,[{key:"componentDidMount",value:function(){this._registerDropZone(),this._focusToken=scrivito.WidgetFocus.subscribe({onFocus:this._onWidgetFocus,onBlur:this._onWidgetBlur})}},{key:"componentDidUpdate",value:function(){this._widgetRef!==this._dropZoneWidgetRef&&this._registerDropZone()}},{key:"componentWillUnmount",value:function(){scrivito.WidgetFocus.unsubscribe(this._focusToken)}},{key:"getChildContext",value:function(){return c({},q,null)}},{key:"render",value:function(){var t=this,e=this.context[q];if(!e)throw new N.ScrivitoError("Detected inappropriate placing of Scrivito.WidgetTag: It is intended to be used exclusively as top-level element inside a Widget component.");return Object(C.a)()?k.a.createElement(this.props.tag,Object(x.extend)(Object(x.omit)(this.props,"tag","className","style"),{ref:function(e){return t._widgetRef=e},className:this._className(),style:this._style(),onMouseOver:this._onMouseOver,onMouseOut:this._onMouseOut,children:[k.a.createElement(L.a,{key:"menuMarker",widget:e,setDragState:this._setDragState,onMouseOver:this._lockFocus,onMouseOut:this._unlockFocus})].concat(o(k.a.Children.toArray(this.props.children)),[this._renderOptionMarker("top"),this._renderOptionMarker("bottom")])},this._dataProps())):k.a.createElement(this.props.tag,Object(x.omit)(this.props,"tag"))}},{key:"_setDragState",value:function(t){this.setState({isDragging:t})}},{key:"_className",value:function(){return this._hasVisibleFocus()?this.props.className?"".concat(this.props.className," scrivito_active scrivito_entered"):"scrivito_active scrivito_entered":this.props.className}},{key:"_hasVisibleFocus",value:function(){return this.state.hasFocus&&!this.state.isFocusFadedOut}},{key:"_dataProps",value:function(){var t={"data-scrivito-private-widget":"true","data-scrivito-private-dropzone":"true"};return this._isStructureMarker()&&(t["data-scrivito-private-structure-widget"]="true"),this.state.isDragging&&(t["data-scrivito-private-dropback"]="true"),t}},{key:"_style",value:function(){return this.state.isDragging?this.props.style?Object(x.extend)(this.props.style,{opacity:.5}):{opacity:.5}:this.props.style}},{key:"_isStructureMarker",value:function(){var t=Object(S.a)(),e=t.widgetClassFor(this.context[q].objClass()),n=j.a.forClass(e);return!!n&&Object(x.some)(n.attributes,function(t,e){return"widgetlist"===t[0]})}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),scrivito.WidgetFocus.notifyFocus(this._focusToken)}},{key:"_onMouseOut",value:function(t){t.stopPropagation(),scrivito.WidgetFocus.notifyBlur(this._focusToken)}},{key:"_onWidgetFocus",value:function(){var t=this;this.setState({hasFocus:!0,isFocusFadedOut:!1}),this._fadeOutFocusTimeout&&clearTimeout(this._fadeOutFocusTimeout),this._isStructureMarker()||(this._fadeOutFocusTimeout=setTimeout(function(){return t._fadeOutFocus()},1e3))}},{key:"_fadeOutFocus",value:function(){this.state.isFocusFadedOut||this._isFocusLocked||this.setState({isFocusFadedOut:!0})}},{key:"_lockFocus",value:function(){this._isFocusLocked=!0}},{key:"_unlockFocus",value:function(){this._isFocusLocked=!1}},{key:"_onWidgetBlur",value:function(){this.setState({hasFocus:!1})}},{key:"_renderOptionMarker",value:function(t){return k.a.createElement(I.a,{key:"optionMarker-".concat(t),position:t,widget:this.context[q],insertWidget:b,isAlwaysShown:D.b,onMouseOver:this._lockFocus,onMouseOut:this._unlockFocus})}},{key:"_registerDropZone",value:function(){if(Object(C.a)()&&this._widgetRef){var t=Object(A.a)(this.context[q]),e=t.objId,n=t.widgetId,r=E.a.findDOMNode(this._widgetRef);P.b.registerWidgetDropZoneInDom(r,e,n),this._dropZoneWidgetRef=this._widgetRef}}}]),f(e,t),e}(k.a.Component);R.displayName="Scrivito.WidgetTag",R.defaultProps={tag:"div"},R.contextTypes=c({},q,w.a.object),R.childContextTypes=c({},q,w.a.object),e.b=Object(T.a)(R)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return r(t,o.default)?{objId:t.id()}:{objId:t.obj().id(),widgetId:t.id()}}e.a=i;var o=n(3)},,,,,,,,,,,function(t,e,n){"use strict";function r(t){i();var e=t.location,n=e.hash,r=n.indexOf(u);if(!(r<0)){var o=n.substr(r+u.length,3),a=n.substring(0,r);"#"===a&&(a="");var c=e.href.toString().replace(n,a);s=parseInt(o,10)||0,t.history.replaceState({},"",c)}}function i(){s=0}function o(t){var e=t.toString();return t.hash||(e="".concat(e,"#")),"".concat(e).concat(u).concat(s+1)}function a(){return s}var s,u="&scrivito.authFailedCount=";e.a={init:r,augmentedRedirectUrl:o,reset:i,currentFailureCount:a}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document,n=e.createElement("link");n.rel="stylesheet",n.href=t,e.head.appendChild(n)}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document,n=e.createElement("script");n.src=t,e.head.appendChild(n)}e.a=r,e.b=i},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId();if(t!==e)throw new i.InternalError("Requested and the actual current workspace differ! Expected "+e+", but saw "+t+".")}e.a=r;var i=n(1)},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(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||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t,e){var n=u(t,e);if(n)return n;var r=t._widget_pool;return f.a.find(r,function(t,r){if(n=u(t,e))return n.parentWidgetId=r,!0}),n}function u(t,e){var n;return f.a.find(t,function(t,i){if(!Object(c.a)(i)){var o=r(t,2),a=o[0],s=o[1];if(s&&"widgetlist"===a){var u=s.indexOf(e);if(-1!==u)return n={attributeName:i,index:u},!0}}}),n}e.a=s;var c=n(47),l=n(0),f=n.n(l)},function(t,e,n){t.exports=n(212)},,,,,function(t,e,n){"use strict";function r(){if(window.parent!==window){var t=window.parent.connectAppDocument;return t?t(window.document):void 0}}e.a=r},function(t,e,n){"use strict";var r=n(127),i=(n.n(r),n(163),n(165),n(166),n(167));n.n(i),n(168),n(206),n(207),n(96),n(102),n(208),n(209)},function(t,e,n){"use strict";var r=n(37),i=n(4);!function(){function t(t){o()||Object(r.a)(function(){return Object(i.j)(function(){return e(n)})}),n.push(t)}function e(t){n=[];try{t.forEach(function(t){return t()})}finally{o()&&e(n)}}var n=[],o=function(){return n.length};scrivito.batchedStateUpdater={add:t}}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(1),o=n(0),a=(n.n(o),n(69)),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),u=0,c=Object.assign||o.extend,l=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.clear=function(){this.set(void 0)},t.prototype.subState=function(t){return new h(this,t)},t.prototype.reader=function(){return this},t.prototype.setSubState=function(t,e){var n=this.untrackedGet();if(void 0===n){var r=(o={},o[t]=e,o);this.set(r)}else{var i=c({},n);i[t]=e,this.set(i)}var o},t.prototype.getSubState=function(t){var e=this.untrackedGet();if(e)return e[t]},t}(),f=function(t){function e(){var e=t.call(this)||this;return e.treeId=(u++).toString(),e.listeners=[],e.detectorRecording=new a.a,e.batchUpdates=new a.a,e.version=0,e.frozenContextContainer=new a.a,e}return s(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 i.InternalError(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 d(n)}},e.prototype.set=function(t){this.failIfFrozen("Changing state"),this.state=t,this.version++,this.insideBatchUpdate()||this.notifyListeners()},e.prototype.trackChanges=function(t){var e=this,n=this.version,r=this.recordDetectors(t);return function(){return e.version!==n&&!!Object(o.find)(r,function(t){return t()})}},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 this.treeId},e.prototype.subscribe=function(t){var e=this,n=!0,r=function(){n&&t()};return this.ensureCanMutateListeners(),this.listeners.push(r),function(){n=!1;var t=e.listeners.indexOf(r);e.ensureCanMutateListeners(),e.listeners.splice(t,1)}},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.length},e.prototype.clearListeners=function(){this.listeners=[]},e.prototype.recordDetectors=function(t){if(void 0!==this.detectorRecording.current())throw new i.InternalError("no nested detector recording!");var e=[];return this.detectorRecording.runWith(e,t),e},e.prototype.notifyListeners=function(){this.listenersToNotify=this.listeners,this.listenersToNotify.forEach(function(t){return t()})},e.prototype.ensureCanMutateListeners=function(){this.listenersToNotify===this.listeners&&(this.listeners=this.listeners.slice())},e.prototype.insideBatchUpdate=function(){return!!this.batchUpdates.current()},e}(l);e.a=f;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(i.ScrivitoError),h=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 s(e,t),e.prototype.getTree=function(){return this.tree},e.prototype.untrackedGet=function(){return this.parentState.getSubState(this.key)},e.prototype.set=function(t){this.parentState.setSubState(this.key,t)},e.prototype.id=function(){var t=this.key.replace(/\\/g,"\\\\").replace(/\//g,"\\/");return this.parentState.id()+"/"+t},e}(l)},function(t,e,n){"use strict";var r=n(0),i=n.n(r);!function(){function t(e){return i.a.isArray(e)?i.a.map(e,t):i.a.isObject(e)?i.a.chain(e).mapObject(t).pairs().sortBy(i.a.first):e}scrivito.computeCacheKey=function(e){var n=t(e);return JSON.stringify(n)}}()},function(t,e,n){"use strict";var r=n(17);!function(){scrivito.currentWorkspaceId=function(){return r.b?r.b.currentWorkspaceId():"published"}}()},function(t,e){!function(){function t(){if(window&&window.console&&!n){var t;(t=window.console).error.apply(t,arguments)}}function e(){n=!0}var n=!1;scrivito.logError=t,scrivito.disableConsoleError=e}()},function(t,e,n){"use strict";var r=n(4),i=n(53);!function(){function t(t){var e=t.clientModulesForExport();o.forEach(function(t){scrivito[t]=e[t]}),Object(i.b)(e.objReplicationPool)}function e(){var t={objReplicationPool:i.a};return o.forEach(function(e){t[e]=scrivito[e]}),t}function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.ui;n&&t(n),Object(r.f)(n)}var o=["BinaryRequest"];scrivito.client.init=n,scrivito.client.modulesForExport=e}()},function(t,e,n){"use strict";(function(e){function n(){}function r(t,e){return function(){t.apply(e,arguments)}}function i(t){if(!(this instanceof i))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=[],l(t,this)}function o(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,i._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?a:s)(e.promise,t._value);var r;try{r=n(t._value)}catch(t){return void s(e.promise,t)}a(e.promise,r)})}function a(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 i)return t._state=3,t._value=e,void u(t);if("function"==typeof n)return void l(r(n,e),t)}t._state=1,t._value=e,u(t)}catch(e){s(t,e)}}function s(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)o(t,t._deferreds[e]);t._deferreds=null}function c(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function l(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}var f=setTimeout;i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var r=new this.constructor(n);return o(this,new c(t,e,r)),r},i.prototype.finally=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)})})},i.all=function(t){return new i(function(e,n){function r(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){r(t,e)},n)}i[t]=a,0==--o&&e(i)}catch(t){n(t)}}if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);for(var o=i.length,a=0;a<i.length;a++)r(a,i[a])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},i._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){f(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},t.exports=i}).call(e,n(170).setImmediate)},function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(171),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(e,n(40))},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[u]=r,s(u),u++}function i(t){delete c[t]}function o(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(l)setTimeout(a,0,t);else{var e=c[t];if(e){l=!0;try{o(e)}finally{i(t),l=!1}}}}if(!t.setImmediate){var s,u=1,c={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(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}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var t=f.documentElement;s=function(e){var n=f.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){s=function(t){setTimeout(a,0,t)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(40),n(91))},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){function e(e){if(!u(e))throw e;return o(e.details).then(t)}return t(s()).catch(e)}function o(t){if(!l){var e=t.verificator,n=t.data,r=Object(h.a)(e.id,e.url).then(function(t){return new scrivito.Promise(function(e){function r(t){f=t,e(f.authorization)}t(n,r)})});l={challenge:{verificator:e,data:n},promise:p.a(r,function(){l=void 0})}}return l.promise}function a(){l=void 0,f=void 0}function s(){if(f)return f.expiresAfter<new Date?void(f=void 0):f.authorization}function u(t){return r(t,d.UnauthorizedError)&&t.backendCode===y}function c(){var t=s();if(t)return"Authorization: "+t;if(l){var e=l.challenge;return"Pending computation: "+e.verificator.id+" with "+e.data}return null}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"ERROR_CODE_CLIENT_VERIFICATION_REQUIRED",function(){return y}),e.perform=i,e.reset=a,e.currentState=c;var l,f,d=n(1),h=n(173),p=n(50),v=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),y="client_verification_required";!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}v(e,t)}(d.UnauthorizedError)},function(t,e,n){"use strict";function r(t,e){var n=i[t];return n||(n=new o.a,i[t]=n,Object(a.b)(e)),n.promise}e.a=r;var i,o=n(12),a=n(153);!function(){i={}}(),window._scrivitoRegisterVerificator=function(t,e){i[t].resolve(e)}},function(t,e,n){"use strict";var r=n(88),i=n(53),o=n(18),a=n(4),s=n(1),u=n(43),c=function(){function t(t,e){var n=this;this._loadableData=new o.b({state:e,loader:function(t){var e=t.push;return u.a.retrieveObj(scrivito.currentWorkspaceId(),n._id).then(function(t){return e(function(){return n._replication().notifyBackendState(t)}),t})}}),this._id=t}return t.prototype.get=function(){return Object(a.e)("for performance reasons, avoid this method when rendering"),this._loadableData.get()},t.prototype.getWidget=function(t){return Object(a.e)("for performance reasons, avoid this method when rendering"),this.getWidgetState(t).get()},t.prototype.getAttribute=function(t){if("_widget_pool"===t)throw new s.InternalError("_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(a.d)("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=r.a(this.get(),t);this.set(e),this._replication().notifyLocalState(e)},t.prototype.finishSaving=function(){return this._replication().finishSaving()},t.prototype._replication=function(){return i.a.get(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}();e.a=c},function(t,e,n){"use strict";var r=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({status: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}();e.a=r},function(t,e,n){"use strict";function r(t){return void 0!==a[t]}function i(t){delete a[t]}function o(t,e,n,o){function u(t){l()&&t()}if(!r(t)){var c=s++,l=function(){return a[t]===c},f=[],d=function(t){return f.push(t)},h=function(){return f.forEach(function(t){return t()})};e({push:d,wasCancelled:function(){return!l()}}).then(function(e){return u(function(){return scrivito.batchedStateUpdater.add(function(){i(t),n(e),h()})})},function(e){return u(function(){return scrivito.batchedStateUpdater.add(function(){i(t),o(e),h()})})}),a[t]=c}}e.a=r,e.c=i,e.b=o;var a={},s=0},function(t,e,n){"use strict";function r(t){return i.a.get("blobs/"+encodeURIComponent(t||"")+"/meta_data")}e.a=r;var i=n(21)},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId();return o.a.get("workspaces/"+e+"/objs/mget",{ids:t,include_deleted:!0}).then(function(t){return t.results})}function i(t){return s.retrieve(t).then(function(e){return e||{_deleted:t}})}e.a=i;var o=n(21),a=n(104),s=new a.a(r,{batchSize:17})},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId(),n=a({consistent:!0},t);return o.a.get("workspaces/"+e+"/objs/search",n).then(function(t){var e=i(t);return{results:e.results.map(function(t){return t.id}),continuation:e.continuation,total:e.total,objs:e.objs}})}function i(t){var e={results:t.results,total:t.total},n=t.continuation;void 0!==n&&(e.continuation=n);var r=t.objs;return void 0!==r&&(e.objs=r),e}e.a=r;var o=n(21),a=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}},function(t,e,n){"use strict";function r(t,e){return i.a.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}})})}})}e.a=r;var i=n(21)},function(t,e,n){"use strict";function r(t,e){var n,r="blobs/"+encodeURIComponent(t);return e&&(r+="/optimize",n={transformation:e}),a.a.get(r,n).then(function(e){return i(t,e)})}function i(t,e){var n=e.public_access,r=n.get;if(!r.url)throw new o.InternalError('Missing public access URL for binary "'+t+'"');var i={public_access:{get:{url:r.url}}},a=e.private_access;if(a){var s=a.get;s.url&&(i.private_access={get:{url:s.url}})}return i}e.a=r;var o=n(1),a=n(21)},function(t,e,n){"use strict";function r(t,e,n){var r=s.getTypeName(e),i=n.length?"/"+n.join("/")+": "+r:r;return"Invalid value "+u(t)+" supplied to "+i}function i(t,e,n,i){return s.Function.is(e.getValidationErrorMessage)?e.getValidationErrorMessage(t,n,i):r(t,e,n)}function o(t,e,n){n=n||{};var r=s.Array.is(n)?n:n.path||[];return new f(a(t,e,r,n))}function a(t,e,n,r){return s.isType(e)?d[e.meta.kind](t,e,n,r):d.es6classes(t,e,n,r)}var s=n(183),u=s.stringify,c={},l=s.struct({message:s.Any,actual:s.Any,expected:s.Any,path:s.list(s.union([s.String,s.Number]))},"ValidationError");l.of=function(t,e,n,r){return new l({message:i(t,e,n,r),actual:t,expected:e,path:n})};var f=s.struct({errors:s.list(l),value:s.Any},"ValidationResult");f.prototype.isValid=function(){return!this.errors.length},f.prototype.firstError=function(){return this.isValid()?null:this.errors[0]},f.prototype.toString=function(){return this.isValid()?"[ValidationResult, true, "+u(this.value)+"]":"[ValidationResult, false, ("+this.errors.map(function(t){return u(t.message)}).join(", ")+")]"};var d=o.validators={};d.es6classes=function(t,e,n,r){return{value:t,errors:t instanceof e?[]:[l.of(t,e,n,r.context)]}},d.irreducible=d.enums=function(t,e,n,r){return{value:t,errors:e.is(t)?[]:[l.of(t,e,n,r.context)]}},d.list=function(t,e,n,r){if(!s.Array.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};for(var i={value:[],errors:[]},o=0,u=t.length;o<u;o++){var c=a(t[o],e.meta.type,n.concat(o),r);i.value[o]=c.value,i.errors=i.errors.concat(c.errors)}return i},d.subtype=function(t,e,n,r){var i=a(t,e.meta.type,n,r);return i.errors.length?i:(e.meta.predicate(i.value)||(i.errors=[l.of(t,e,n,r.context)]),i)},d.maybe=function(t,e,n,r){return s.Nil.is(t)?{value:t,errors:[]}:a(t,e.meta.type,n,r)},d.struct=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};if(e.is(t))return{value:t,errors:[]};var i={value:{},errors:[]},o=e.meta.props,u=e.meta.defaultProps||c;for(var f in o)if(o.hasOwnProperty(f)){var d=t[f];void 0===d&&(d=u[f]);var h=a(d,o[f],n.concat(f),r);i.value[f]=h.value,i.errors=i.errors.concat(h.errors)}if(r.hasOwnProperty("strict")?r.strict:e.meta.strict)for(var p in t)t.hasOwnProperty(p)&&!o.hasOwnProperty(p)&&i.errors.push(l.of(t[p],s.Nil,n.concat(p),r.context));return i.errors.length||(i.value=new e(i.value)),i},d.tuple=function(t,e,n,r){var i=e.meta.types,o=i.length;if(!s.Array.is(t)||t.length>o)return{value:t,errors:[l.of(t,e,n,r.context)]};for(var u={value:[],errors:[]},c=0;c<o;c++){var f=a(t[c],i[c],n.concat(c),r);u.value[c]=f.value,u.errors=u.errors.concat(f.errors)}return u},d.dict=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};var i={value:{},errors:[]};for(var o in t)if(t.hasOwnProperty(o)){var u=n.concat(o),c=a(o,e.meta.domain,u,r),f=a(t[o],e.meta.codomain,u,r);i.value[o]=f.value,i.errors=i.errors.concat(c.errors,f.errors)}return i},d.union=function(t,e,n,r){var i=e.dispatch(t);return s.Function.is(i)?a(t,i,n.concat(e.meta.types.indexOf(i)),r):{value:t,errors:[l.of(t,e,n,r.context)]}},d.intersection=function(t,e,n,r){for(var i=e.meta.types,o=i.length,s={value:t,errors:[]},u=0,c=0;c<o;c++){"struct"===i[c].meta.kind&&u++;var f=a(t,i[c],n,r);s.errors=s.errors.concat(f.errors)}return u>1&&s.errors.push(l.of(t,e,n,r.context)),s},d.interface=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};var i={value:{},errors:[]},o=e.meta.props;for(var u in o){var c=a(t[u],o[u],n.concat(u),r);i.value[u]=c.value,i.errors=i.errors.concat(c.errors)}if(r.hasOwnProperty("strict")?r.strict:e.meta.strict)for(var f in t)o.hasOwnProperty(f)||s.Nil.is(t[f])||i.errors.push(l.of(t[f],s.Nil,n.concat(f),r.context));return i},s.mixin(s,{ValidationError:l,ValidationResult:f,validate:o}),t.exports=s},function(t,e,n){/*! @preserve
130
+ !function(o,a){"use strict";"object"==typeof t&&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})},function(t,e){},function(t,e,n){var r=n(2),i=n(54);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}},,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})},function(t,e,n){"use strict";function r(){if(window.parent!==window){var t;try{t=window.parent.connectAppDocument}catch(t){}return t?t(window.document):void 0}}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";(function(e){var n=setTimeout;function r(){}function i(t){if(!(this instanceof i))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=[],l(t,this)}function o(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,i._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 s(e.promise,t)}a(e.promise,r)}else(1===t._state?a:s)(e.promise,t._value)})):t._deferreds.push(e)}function a(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 i)return t._state=3,t._value=e,void u(t);if("function"==typeof n)return void l(function(t,e){return function(){t.apply(e,arguments)}}(n,e),t)}t._state=1,t._value=e,u(t)}catch(e){s(t,e)}}function s(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)o(t,t._deferreds[e]);t._deferreds=null}function l(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var n=new this.constructor(r);return o(this,new function(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}(t,e,n)),n},i.prototype.finally=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)})})},i.all=function(t){return new i(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])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},i._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){n(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},t.exports=i}).call(this,n(178).setImmediate)},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(62),i=n(126),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["code-block"]||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["code-block"]},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},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return function(t,e){this.type=t,this.value=e}}();e.InsertDataQuill=r;var i=function(){return function(t,e){this.type=t,this.value=e}}();e.InsertDataCustom=i},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}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assign=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),i=0;i<e.length;i++){var o=e[i];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.preferSecond=function(t){return 0===t.length?null:t.length>=2?t[1]:t[0]},e.flatten=function t(e){return e.reduce(function(e,n){return e.concat(Array.isArray(n)?t(n):n)},[])},e.groupConsecutiveElementsWhile=function(t,e){for(var n,r=[],i=0;i<t.length;i++)n=t[i],i>0&&e(n,t[i-1])?r[r.length-1].push(n):r.push([n]);return r.map(function(t){return 1===t.length?t[0]:t})},e.sliceFromReverseWhile=function(t,e,n){for(var r={elements:[],sliceStartsAt:-1},i=e;i>=0&&n(t[i]);i--)r.sliceStartsAt=i,r.elements.unshift(t[i]);return r},e.intersperse=function(t,e){return t.reduce(function(n,r,i){return n.push(r),i<t.length-1&&n.push(e),n},[])}},,,,,,,,,,,,,function(t,e,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},function(t,e,n){"use strict";t.exports=function(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(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}t.exports=function(t,e){if(i(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!r.call(e,n[a])||!i(t[n[a]],e[n[a]]))return!1;return!0}},function(t,e,n){"use strict";var r=n(184);t.exports=function t(e,n){return!(!e||!n)&&(e===n||!r(e)&&(r(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}},,,,,,,,,function(t,e,n){var r;!function(n){"use strict";var i={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"Ae","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"Oe","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"Ue","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"ue","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","ا":"a","أ":"a","إ":"i","آ":"aa","ؤ":"u","ئ":"e","ء":"a","ب":"b","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ي":"y","ى":"a","ة":"h","ﻻ":"la","ﻷ":"laa","ﻹ":"lai","ﻵ":"laa","گ":"g","چ":"ch","پ":"p","ژ":"zh","ک":"k","ی":"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","က":"k","ခ":"kh","ဂ":"g","ဃ":"ga","င":"ng","စ":"s","ဆ":"sa","ဇ":"z","စျ":"za","ည":"ny","ဋ":"t","ဌ":"ta","ဍ":"d","ဎ":"da","ဏ":"na","တ":"t","ထ":"ta","ဒ":"d","ဓ":"da","န":"n","ပ":"p","ဖ":"pa","ဗ":"b","ဘ":"ba","မ":"m","ယ":"y","ရ":"ya","လ":"l","ဝ":"w","သ":"th","ဟ":"h","ဠ":"la","အ":"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h","ဧ":"e","၏":"-e","ဣ":"i","ဤ":"-i","ဉ":"u","ဦ":"-u","ဩ":"aw","သြော":"aw","ဪ":"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ހ":"h","ށ":"sh","ނ":"n","ރ":"r","ބ":"b","ޅ":"lh","ކ":"k","އ":"a","ވ":"v","މ":"m","ފ":"f","ދ":"dh","ތ":"th","ލ":"l","ގ":"g","ޏ":"gn","ސ":"s","ޑ":"d","ޒ":"z","ޓ":"t","ޔ":"y","ޕ":"p","ޖ":"j","ޗ":"ch","ޘ":"tt","ޙ":"hh","ޚ":"kh","ޛ":"th","ޜ":"z","ޝ":"sh","ޞ":"s","ޟ":"d","ޠ":"t","ޡ":"z","ޢ":"a","ޣ":"gh","ޤ":"q","ޥ":"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"p","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"ks","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"o","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"i","ώ":"o","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"I","Θ":"TH","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"KS","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"O","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"I","Ώ":"O","Ϊ":"I","Ϋ":"Y","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","Ā":"A","Ē":"E","Ģ":"G","Ī":"I","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"U","Ќ":"Kj","ќ":"kj","Љ":"Lj","љ":"lj","Њ":"Nj","њ":"nj","Тс":"Ts","тс":"ts","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","ă":"a","Ă":"A","ș":"s","Ș":"S","ț":"t","Ț":"T","ţ":"t","Ţ":"T","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"kh","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"I","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"Kh","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","ђ":"dj","ј":"j","ћ":"c","џ":"dz","Ђ":"Dj","Ј":"j","Ћ":"C","Џ":"Dz","ľ":"l","ĺ":"l","ŕ":"r","Ľ":"L","Ĺ":"L","Ŕ":"R","ş":"s","Ş":"S","ı":"i","İ":"I","ğ":"g","Ğ":"G","ả":"a","Ả":"A","ẳ":"a","Ẳ":"A","ẩ":"a","Ẩ":"A","đ":"d","Đ":"D","ẹ":"e","Ẹ":"E","ẽ":"e","Ẽ":"E","ẻ":"e","Ẻ":"E","ế":"e","Ế":"E","ề":"e","Ề":"E","ệ":"e","Ệ":"E","ễ":"e","Ễ":"E","ể":"e","Ể":"E","ỏ":"o","ọ":"o","Ọ":"o","ố":"o","Ố":"O","ồ":"o","Ồ":"O","ổ":"o","Ổ":"O","ộ":"o","Ộ":"O","ỗ":"o","Ỗ":"O","ơ":"o","Ơ":"O","ớ":"o","Ớ":"O","ờ":"o","Ờ":"O","ợ":"o","Ợ":"O","ỡ":"o","Ỡ":"O","Ở":"o","ở":"o","ị":"i","Ị":"I","ĩ":"i","Ĩ":"I","ỉ":"i","Ỉ":"i","ủ":"u","Ủ":"U","ụ":"u","Ụ":"U","ũ":"u","Ũ":"U","ư":"u","Ư":"U","ứ":"u","Ứ":"U","ừ":"u","Ừ":"U","ự":"u","Ự":"U","ữ":"u","Ữ":"U","ử":"u","Ử":"ư","ỷ":"y","Ỷ":"y","ỳ":"y","Ỳ":"Y","ỵ":"y","Ỵ":"Y","ỹ":"y","Ỹ":"Y","ạ":"a","Ạ":"A","ấ":"a","Ấ":"A","ầ":"a","Ầ":"A","ậ":"a","Ậ":"A","ẫ":"a","Ẫ":"A","ắ":"a","Ắ":"A","ằ":"a","Ằ":"A","ặ":"a","Ặ":"A","ẵ":"a","Ẵ":"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"(TM)","©":"(C)","œ":"oe","Œ":"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o","º":"o","ª":"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY","元":"CNY","円":"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN","лв":"BGN","៛":"KHR","₡":"CRC","₸":"KZT","ден":"MKD","zł":"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],a={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},s={en:{},az:{"ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U"},cs:{"č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z"},fi:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},hu:{"ä":"a","Ä":"A","ö":"o","Ö":"O","ü":"u","Ü":"U","ű":"u","Ű":"U"},lt:{"ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U"},lv:{"ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z"},pl:{"ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z"},sv:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},sk:{"ä":"a","Ä":"A"},sr:{"љ":"lj","њ":"nj","Љ":"Lj","Њ":"Nj","đ":"dj","Đ":"Dj"},tr:{"Ü":"U","Ö":"O","ü":"u","ö":"o"}},u={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},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,y,v,m,g,b,w,_,k,O,x,E,C="-",S="",j="",T=!0,A={},N="";if("string"!=typeof t)return"";if("string"==typeof e&&(C=e),g=u.en,b=s.en,"object"==typeof e)for(k in n=e.maintainCase||!1,A=e.custom&&"object"==typeof e.custom?e.custom:A,d=+e.truncate>1&&e.truncate||!1,y=e.uric||!1,v=e.uricNoSlash||!1,m=e.mark||!1,T=!1!==e.symbols&&!1!==e.lang,C=e.separator||C,y&&(N+=l),v&&(N+=c),m&&(N+=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)N+=k;for(N=p(N+=C),x=!1,E=!1,_=0,O=(t=t.replace(/(^\s+|\s+$)/g,"")).length;_<O;_++)k=t[_],h(k,A)?x=!1:b[k]?(k=x&&b[k].match(/[A-Za-z0-9]/)?" "+b[k]:b[k],x=!1):k in i?(_+1<O&&o.indexOf(t[_+1])>=0?(j+=k,k=""):!0===E?(k=a[j]+i[k],j=""):k=x&&i[k].match(/[A-Za-z0-9]/)?" "+i[k]:i[k],x=!1,E=!1):k in a?(j+=k,k="",_===O-1&&(k=a[j]),E=!0):!g[k]||y&&-1!==l.indexOf(k)||v&&-1!==c.indexOf(k)?(!0===E?(k=a[j]+k,j="",E=!1):x&&(/[A-Za-z0-9]/.test(k)||S.substr(-1).match(/A-Za-z0-9]/))&&(k=" "+k),x=!1):(k=x||S.substr(-1).match(/[A-Za-z0-9]/)?C+g[k]:g[k],k+=void 0!==t[_+1]&&t[_+1].match(/[A-Za-z0-9]/)?C:"",x=!0),S+=k.replace(new RegExp("[^\\w\\s"+N+"_-]","g"),C);return r&&(S=S.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()})),S=S.replace(/\s+/g,C).replace(new RegExp("\\"+C+"+","g"),C).replace(new RegExp("(^\\"+C+"+|\\"+C+"+$)","g"),""),d&&S.length>d&&(w=S.charAt(d)===C,S=S.slice(0,d),w||(S=S.slice(0,S.lastIndexOf(C)))),n||r||(S=S.toLowerCase()),S},p=function(t){return t.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},h=function(t,e){for(var n in e)if(e[n]===t)return!0};void 0!==t&&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)}()},function(t,e,n){
131
+ /*! @preserve
70
132
  *
71
133
  * tcomb.js - Type checking and DDD for JavaScript
72
134
  *
@@ -75,12 +137,31 @@ function(t){function e(t,e,n,r){var i,o,a,s,c,f,d,h,p,v;if((e?e.ownerDocument||e
75
137
  * Copyright (c) 2014-2016 Giulio Canti
76
138
  *
77
139
  */
78
- var r=n(5);r.Any=n(76),r.Array=n(185),r.Boolean=n(106),r.Date=n(186),r.Error=n(187),r.Function=n(67),r.Nil=n(107),r.Number=n(108),r.Integer=n(188),r.IntegerT=r.Integer,r.Object=n(189),r.RegExp=n(190),r.String=n(78),r.Type=n(191),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(79),r.declare=n(192),r.enums=n(193),r.irreducible=n(16),r.list=n(111),r.maybe=n(194),r.refinement=n(77),r.struct=n(196),r.tuple=n(114),r.union=n(200),r.func=n(201),r.intersection=n(202),r.subtype=r.refinement,r.inter=n(203),r.interface=r.inter,r.assert=r,r.update=n(204),r.mixin=n(80),r.isType=n(11),r.is=n(31),r.getTypeName=n(8),r.match=n(205),t.exports=r},function(t,e){t.exports=function(t){throw new TypeError("[tcomb] "+t)}},function(t,e,n){var r=n(16),i=n(28);t.exports=r("Array",i)},function(t,e,n){var r=n(16);t.exports=r("Date",function(t){return t instanceof Date})},function(t,e,n){var r=n(16);t.exports=r("Error",function(t){return t instanceof Error})},function(t,e,n){var r=n(77),i=n(108);t.exports=r(i,function(t){return t%1==0},"Integer")},function(t,e,n){var r=n(16),i=n(27);t.exports=r("Object",i)},function(t,e,n){var r=n(16);t.exports=r("RegExp",function(t){return t instanceof RegExp})},function(t,e,n){var r=n(16),i=n(11);t.exports=r("Type",i)},function(t,e,n){var r=(n(5),n(20),n(11),n(25),n(80)),i=n(8),o=n(110),a=1;t.exports=function(t){function e(t,e){return n(t,e)}var n;return e.define=function(i){return o(i)&&e.hasOwnProperty("dispatch")&&(i.dispatch=e.dispatch),n=i,r(e,n,!0),t&&(n.displayName=e.displayName=t,e.meta.name=t),e.meta.identity=n.meta.identity,e.prototype=n.prototype,e},e.displayName=t||i(e)+"$"+a++,e.meta={identity:!1},e.prototype=null,e}},function(t,e,n){function r(t){return Object.keys(t).map(function(t){return o.stringify(t)}).join(" | ")}function i(t,e){function n(t,e){return t}var i=e||r(t);return n.meta={kind:"enums",map:t,name:e,identity:!0},n.displayName=i,n.is=function(e){return t.hasOwnProperty(e)},n}var o=n(5),a=(n(20),n(52),n(65));n(27);i.of=function(t,e){t=a(t)?t.split(" "):t;var n={};return t.forEach(function(t){n[t]=t}),i(n,e)},i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t){return"?"+f(t)}function i(t,e){function n(e,n){return c.is(e)?e:u(t,e,n)}if(o(t)||t===s||t===c)return t;var i=e||r(t),f=a(t);return n.meta={kind:"maybe",type:t,name:e,identity:f},n.displayName=i,n.is=function(e){return c.is(e)||l(e,t)},n}var o=(n(5),n(20),n(10),n(195)),a=n(29),s=n(76),u=n(30),c=n(107),l=(n(52),n(31)),f=n(8);i.getDefaultName=r,t.exports=i},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"maybe"===t.meta.kind}},function(t,e,n){function r(t){return"Struct"+f(t)}function i(t,e){return d(a,t,e)}function o(t){return u(t)||(t=c(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=a.strict),t.hasOwnProperty("defaultProps")||(t.defaultProps={}),t}function a(t,e){function n(e,r){if(n.is(e))return e;if(!(this instanceof n))return new n(e,r);for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],a=e[i];void 0===a&&(a=c[i]),this[i]=l(o,a,null)}}e=o(e);var a=e.name,u=e.strict,c=e.defaultProps,f=a||r(t);return n.meta={kind:"struct",props:t,name:a,identity:!1,strict:u,defaultProps:c},n.displayName=f,n.is=function(t){return t instanceof n},n.update=function(t,e){return new n(s.update(t,e))},n.extend=function(t,e){return i([n].concat(t),e)},n}var s=n(5),u=(n(20),n(78),n(67),n(66),n(27)),c=n(25),l=n(30),f=(n(8),n(79),n(112)),d=n(113);a.strict=!1,a.getOptions=o,a.getDefaultName=r,a.extend=i,t.exports=a},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"struct"===t.meta.kind}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"interface"===t.meta.kind}},function(t,e,n){function r(t){return s(t)&&"subtype"===t.meta.kind}function i(t){return r(t)?[t.meta.predicate].concat(i(t.meta.type)):[]}function o(t){return r(t)?o(t.meta.type):t}function a(t){return{predicates:i(t),unrefinedType:o(t)}}var s=n(11);t.exports=a},function(t,e,n){function r(t){return t.map(a).join(" | ")}function i(t,e){function n(t,e){if(a)return t;var r=n.dispatch(t);return!r&&n.is(t)?t:u(r,t,e)}var i=e||r(t),a=t.every(s);return n.meta={kind:"union",types:t,name:e,identity:a},n.displayName=i,n.is=function(e){return t.some(function(t){return c(e,t)})},n.dispatch=function(e){for(var n=0,r=t.length;n<r;n++){var i=t[n];if(l(i)){var o=i.dispatch(e);if(!f(o))return o}else if(c(e,i))return i}},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=(n(28),n(30)),c=n(31),l=(n(52),n(110)),f=n(25);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t,e){return"("+t.map(d).join(", ")+") => "+d(e)}function i(t){return s.is(t)&&c(t.instrumentation)}function o(t){for(var e=t.length,n=!1,r=e-1;r>=0;r--){var i=t[r];if(!h(i)||"maybe"!==i.meta.kind)return r+1;n=!0}return n?0:e}function a(t,e,n){function s(t,e){return i(t)?t:s.of(t)}t=u(t)?t:[t];var c=n||r(t,e),d=t.length;o(t);return s.meta={kind:"func",domain:t,codomain:e,name:n,identity:!0},s.displayName=c,s.is=function(n){return i(n)&&n.instrumentation.domain.length===d&&n.instrumentation.domain.every(function(e,n){return e===t[n]})&&n.instrumentation.codomain===e},s.of=function(n,r){function i(){var i=Array.prototype.slice.call(arguments),o=i.length;if(r&&o<d){var s=Function.prototype.bind.apply(n,[this].concat(i));return a(t.slice(o),e).of(s,!0)}return l(e,n.apply(this,i))}return s.is(n)?n:(i.instrumentation={domain:t,codomain:e,f:n},i.displayName=f(n),i)},s}var s=(n(5),n(20),n(67)),u=n(28),c=(n(111),n(27)),l=n(30),f=(n(25),n(66),n(114),n(51)),d=n(8),h=n(11);a.getDefaultName=r,a.getOptionalArgumentsIndex=o,t.exports=a},function(t,e,n){function r(t){return t.map(s).join(" & ")}function i(t,e){function n(t,e){return t}var i=e||r(t),s=t.every(u);return n.meta={kind:"intersection",types:t,name:e,identity:s},n.displayName=i,n.is=function(e){return t.every(function(t){return a(e,t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(28),n(29),n(31)),s=n(8),u=n(29);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t,e){return h(o,t,e)}function i(t){return s(t)||(t=u(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=o.strict),t}function o(t,e){function n(e,n){if(v)return e;var r=!0,i=v?{}:p({},e);for(var o in t){var a=t[o],s=e[o],u=c(a,s,null);r=r&&s===u,i[o]=u}return r&&(i=e),i}e=i(e);var o=e.name,s=e.strict,h=o||l(t),v=Object.keys(t).map(function(e){return t[e]}).every(f);return n.meta={kind:"interface",props:t,name:o,identity:v,strict:s},n.displayName=h,n.is=function(e){if(u(e))return!1;if(s)for(var n in e)if(!t.hasOwnProperty(n))return!1;for(var r in t)if(!d(e[r],t[r]))return!1;return!0},n.update=function(t,e){return n(a.update(t,e))},n.extend=function(t,e){return r([n].concat(t),e)},n}var a=n(5),s=(n(20),n(78),n(67),n(66),n(27)),u=n(25),c=n(30),l=(n(8),n(79),n(112)),f=n(29),d=n(31),h=n(113),p=n(115);o.strict=!1,o.getOptions=i,o.getDefaultName=l,o.extend=r,t.exports=o},function(t,e,n){function r(t){return v(t)?t instanceof Date||t instanceof RegExp?t:m({},t):y(t)?t.concat():t}function i(t){return a.commands.hasOwnProperty(t)}function o(t){return a.commands[t]}function a(t,e){var n,s=t,u=!1;for(var c in e)e.hasOwnProperty(c)&&(i(c)?(n=o(c)(e[c],s),n!==t?(u=!0,s=n):s=t):(s===t&&(s=r(t)),n=a(s[c],e[c]),u=u||n!==s[c],s[c]=n));return u?s:t}function s(t,e){return t(e)}function u(t,e){return t.length>0?e.concat(t):e}function c(t,e){if(t.length>0){e=r(e);for(var n=0,i=t.length;n<i;n++)delete e[t[n]]}return e}function l(t){return t}function f(t,e){return t.length>0?(e=r(e),t.reduce(function(t,e){return t.splice.apply(t,e),t},e)):e}function d(t,e){if(t.from!==t.to){e=r(e);var n=e[t.to];e[t.to]=e[t.from],e[t.from]=n}return e}function h(t,e){return t.length>0?t.concat(e):e}function p(t,e){var n=!1,i=r(e);for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o],n=n||i[o]!==e[o]);return n?i:e}var v=(n(5),n(27)),y=(n(10),n(28)),m=(n(109),n(115));a.commands={$apply:s,$push:u,$remove:c,$set:l,$splice:f,$swap:d,$unshift:h,$merge:p},t.exports=a},function(t,e,n){var r=n(5),i=n(10),o=n(11),a=n(76);t.exports=function(t){for(var e,n,s,u=1,c=arguments.length;u<c;)if(e=arguments[u],n=arguments[u+1],s=arguments[u+2],i(s)&&!o(s)?u+=3:(s=n,n=a.is,u+=2),e.is(t)&&n(t))return s(t);r.fail("Match error")}},function(t,e,n){"use strict";var r=n(18);!function(){function t(t,e){var n=r.b.run(e);return n.allDataLoaded?n.result:t}scrivito.loadableWithDefault=t,scrivito.loadWithDefault=t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return(l=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var f=n(1);!function(){var t=function(t){function e(t){return o(this,e),u(this,l(e).call(this,"Data is not yet loaded.",t))}return a(e,t),e}(f.ScrivitoError);scrivito.NotLoadedError=t}()},function(t,e,n){"use strict";var r=n(0),i=n.n(r);!function(){function t(t,e,r){return n?t:i.a.throttle(t,e,r)}function e(){n=!0}var n=!1;scrivito.throttle=t,scrivito.bypassThrottle=e}()},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(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||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}var s=n(0),u=n.n(s),c=n(47),l=n(1);!function(){scrivito.typeInfo={normalize:function(t){if(u.a.isString(t))return[t];if(u.a.isArray(t))return t;throw new l.InternalError("Type Info needs to be a string or an array containing a string and optionally a hash")},normalizeAttrs:function(t){var e=this;return u.a.mapObject(t,function(t,n){if(Object(c.a)(n))return u.a.isArray(t)?t:[t];if(!u.a.isArray(t))throw new l.InternalError("Value for ".concat(n," should be a tuple: [value, typeInfo]"));var i=r(t,2),o=i[0],a=i[1];return[o,e.normalize(a)]})},unwrapAttributes:function(t){return u.a.mapObject(t,function(t){return r(t,1)[0]})}}}()},function(t,e,n){"use strict";function r(t,e,n){var r=s.a.forClass(n);return Object(a.pick)({name:e,type:t,attributes:i(r.attributes,Object(c.a)(e,"attributes")),onlyInside:r.onlyInside,description:Object(c.a)(e,"description"),hideInSelectionDialogs:Object(c.a)(e,"hideInSelectionDialogs"),properties:Object(c.a)(e,"properties"),propertiesGroups:Object(c.a)(e,"propertiesGroups"),thumbnail:Object(c.a)(e,"thumbnail"),title:Object(c.a)(e,"title")},a.identity)}function i(t,e){var n=Object(a.map)(t,function(t,e){var n=t[0],r=t[1],i={name:e,type:n};return r.only&&(i.only=r.only),r.values&&(i.values=r.values),i});return e&&Object.keys(e).forEach(function(t){var r=Object(a.findWhere)(n,{name:t});if(r){var i=e[t],o=i.title,s=i.description,u=i.values;u?Object(a.extend)(r,{title:o,description:s,valuesLocalization:u}):Object(a.extend)(r,{title:o,description:s})}}),n}function o(t,e){var n=_.default.getIncludingDeleted(e);if(n){var r=Object(w.e)(Object(d.a)(),n);return Object(l.a)(n.objClass(),t,r)}}var a=n(0),s=(n.n(a),n(42)),u=n(129),c=n(82),l=n(224),f=n(61),d=n(62),h=n(309),p=n(312),v=n(70),y=n(135),m=n(137),b=n(138),g=n(221),w=n(22),_=n(3),k=n(227),O=function(){function t(){}return t.prototype.contentBrowserConfiguration=function(){return Object(b.a)(Object(m.b)())},t.prototype.titleForObj=function(t){return o("titleForContent",t)},t.prototype.descriptionForObj=function(t){return o("descriptionForContent",t)},t.prototype.titleForWidget=function(t,e){return Object(k.a)(t,e)},t.prototype.initializeContentForObj=function(t){Object(g.b)(t)},t.prototype.initializeContentForWidget=function(t,e){Object(g.c)(t,e)},t.prototype.getClasses=function(){var t=Object(f.a)(),e=[];return Object(a.each)(t.allObjClasses(),function(t,n){return e.push(r("Obj",n,t))}),Object(a.each)(t.allWidgetClasses(),function(t,n){return e.push(r("Widget",n,t))}),e},t.prototype.navigateTo=function(t){Object(u.a)(function(){var e=_.default.get(t);if(e)return Object(w.e)(Object(d.a)(),e)})},t.prototype.mountComponent=function(t,e){Object(h.a)(t,e)},t.prototype.resolveUrl=function(t){return Object(p.a)(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.getDocumentHeight=function(){return Object(v.b)().querySelector("html").getBoundingClientRect().height},t.prototype.replaceInternalLinks=function(t){return Object(y.a)(t)},t}();e.a=O},function(t,e,n){"use strict";function r(t){return o()(t)}e.a=r;var i=n(156),o=n.n(i)},function(t,e,n){var r,i;!function(n){"use strict";var o={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"Ae","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"Oe","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"Ue","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"ue","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","ا":"a","أ":"a","إ":"i","آ":"aa","ؤ":"u","ئ":"e","ء":"a","ب":"b","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ي":"y","ى":"a","ة":"h","ﻻ":"la","ﻷ":"laa","ﻹ":"lai","ﻵ":"laa","گ":"g","چ":"ch","پ":"p","ژ":"zh","ک":"k","ی":"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","က":"k","ခ":"kh","ဂ":"g","ဃ":"ga","င":"ng","စ":"s","ဆ":"sa","ဇ":"z","စျ":"za","ည":"ny","ဋ":"t","ဌ":"ta","ဍ":"d","ဎ":"da","ဏ":"na","တ":"t","ထ":"ta","ဒ":"d","ဓ":"da","န":"n","ပ":"p","ဖ":"pa","ဗ":"b","ဘ":"ba","မ":"m","ယ":"y","ရ":"ya","လ":"l","ဝ":"w","သ":"th","ဟ":"h","ဠ":"la","အ":"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h","ဧ":"e","၏":"-e","ဣ":"i","ဤ":"-i","ဉ":"u","ဦ":"-u","ဩ":"aw","သြော":"aw","ဪ":"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ހ":"h","ށ":"sh","ނ":"n","ރ":"r","ބ":"b","ޅ":"lh","ކ":"k","އ":"a","ވ":"v","މ":"m","ފ":"f","ދ":"dh","ތ":"th","ލ":"l","ގ":"g","ޏ":"gn","ސ":"s","ޑ":"d","ޒ":"z","ޓ":"t","ޔ":"y","ޕ":"p","ޖ":"j","ޗ":"ch","ޘ":"tt","ޙ":"hh","ޚ":"kh","ޛ":"th","ޜ":"z","ޝ":"sh","ޞ":"s","ޟ":"d","ޠ":"t","ޡ":"z","ޢ":"a","ޣ":"gh","ޤ":"q","ޥ":"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"p","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"ks","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"o","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"i","ώ":"o","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"I","Θ":"TH","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"KS","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"O","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"I","Ώ":"O","Ϊ":"I","Ϋ":"Y","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","Ā":"A","Ē":"E","Ģ":"G","Ī":"I","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"U","Ќ":"Kj","ќ":"kj","Љ":"Lj","љ":"lj","Њ":"Nj","њ":"nj","Тс":"Ts","тс":"ts","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","ă":"a","Ă":"A","ș":"s","Ș":"S","ț":"t","Ț":"T","ţ":"t","Ţ":"T","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"kh","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"I","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"Kh","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","ђ":"dj","ј":"j","ћ":"c","џ":"dz","Ђ":"Dj","Ј":"j","Ћ":"C","Џ":"Dz","ľ":"l","ĺ":"l","ŕ":"r","Ľ":"L","Ĺ":"L","Ŕ":"R","ş":"s","Ş":"S","ı":"i","İ":"I","ğ":"g","Ğ":"G","ả":"a","Ả":"A","ẳ":"a","Ẳ":"A","ẩ":"a","Ẩ":"A","đ":"d","Đ":"D","ẹ":"e","Ẹ":"E","ẽ":"e","Ẽ":"E","ẻ":"e","Ẻ":"E","ế":"e","Ế":"E","ề":"e","Ề":"E","ệ":"e","Ệ":"E","ễ":"e","Ễ":"E","ể":"e","Ể":"E","ỏ":"o","ọ":"o","Ọ":"o","ố":"o","Ố":"O","ồ":"o","Ồ":"O","ổ":"o","Ổ":"O","ộ":"o","Ộ":"O","ỗ":"o","Ỗ":"O","ơ":"o","Ơ":"O","ớ":"o","Ớ":"O","ờ":"o","Ờ":"O","ợ":"o","Ợ":"O","ỡ":"o","Ỡ":"O","Ở":"o","ở":"o","ị":"i","Ị":"I","ĩ":"i","Ĩ":"I","ỉ":"i","Ỉ":"i","ủ":"u","Ủ":"U","ụ":"u","Ụ":"U","ũ":"u","Ũ":"U","ư":"u","Ư":"U","ứ":"u","Ứ":"U","ừ":"u","Ừ":"U","ự":"u","Ự":"U","ữ":"u","Ữ":"U","ử":"u","Ử":"ư","ỷ":"y","Ỷ":"y","ỳ":"y","Ỳ":"Y","ỵ":"y","Ỵ":"Y","ỹ":"y","Ỹ":"Y","ạ":"a","Ạ":"A","ấ":"a","Ấ":"A","ầ":"a","Ầ":"A","ậ":"a","Ậ":"A","ẫ":"a","Ẫ":"A","ắ":"a","Ắ":"A","ằ":"a","Ằ":"A","ặ":"a","Ặ":"A","ẵ":"a","Ẵ":"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"(TM)","©":"(C)","œ":"oe","Œ":"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o","º":"o","ª":"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY","元":"CNY","円":"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN","лв":"BGN","៛":"KHR","₡":"CRC","₸":"KZT","ден":"MKD","zł":"PLN","₽":"RUB","₾":"GEL"},a=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},u={en:{},az:{"ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U"},cs:{"č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z"},fi:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},hu:{"ä":"a","Ä":"A","ö":"o","Ö":"O","ü":"u","Ü":"U","ű":"u","Ű":"U"},lt:{"ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U"},lv:{"ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z"},pl:{"ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z"},sv:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},sk:{"ä":"a","Ä":"A"},sr:{"љ":"lj","њ":"nj","Љ":"Lj","Њ":"Nj","đ":"dj","Đ":"Dj"},tr:{"Ü":"U","Ö":"O","ü":"u","ö":"o"}},c={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},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(""),f=[";","?",":","@","&","=","+","$",","].join(""),d=[".","!","~","*","'","(",")"].join(""),h=function(t,e){var n,r,i,h,p,m,b,g,w,_,k,O,E,x,C="-",j="",S="",A=!0,T={},N="";if("string"!=typeof t)return"";if("string"==typeof e&&(C=e),b=c.en,g=u.en,"object"==typeof e){n=e.maintainCase||!1,T=e.custom&&"object"==typeof e.custom?e.custom:T,i=+e.truncate>1&&e.truncate||!1,h=e.uric||!1,p=e.uricNoSlash||!1,m=e.mark||!1,A=!1!==e.symbols&&!1!==e.lang,C=e.separator||C,h&&(N+=l),p&&(N+=f),m&&(N+=d),b=e.lang&&c[e.lang]&&A?c[e.lang]:A?c.en:{},g=e.lang&&u[e.lang]?u[e.lang]:!1===e.lang||!0===e.lang?{}:u.en,e.titleCase&&"number"==typeof e.titleCase.length&&Array.prototype.toString.call(e.titleCase)?(e.titleCase.forEach(function(t){T[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){T[t+""]=t+""}),Object.keys(T).forEach(function(e){var n;n=e.length>1?new RegExp("\\b"+v(e)+"\\b","gi"):new RegExp(v(e),"gi"),t=t.replace(n,T[e])});for(k in T)N+=k}for(N+=C,N=v(N),t=t.replace(/(^\s+|\s+$)/g,""),E=!1,x=!1,_=0,O=t.length;_<O;_++)k=t[_],y(k,T)?E=!1:g[k]?(k=E&&g[k].match(/[A-Za-z0-9]/)?" "+g[k]:g[k],E=!1):k in o?(_+1<O&&a.indexOf(t[_+1])>=0?(S+=k,k=""):!0===x?(k=s[S]+o[k],S=""):k=E&&o[k].match(/[A-Za-z0-9]/)?" "+o[k]:o[k],E=!1,x=!1):k in s?(S+=k,k="",_===O-1&&(k=s[S]),x=!0):!b[k]||h&&-1!==l.indexOf(k)||p&&-1!==f.indexOf(k)?(!0===x?(k=s[S]+k,S="",x=!1):E&&(/[A-Za-z0-9]/.test(k)||j.substr(-1).match(/A-Za-z0-9]/))&&(k=" "+k),E=!1):(k=E||j.substr(-1).match(/[A-Za-z0-9]/)?C+b[k]:b[k],k+=void 0!==t[_+1]&&t[_+1].match(/[A-Za-z0-9]/)?C:"",E=!0),j+=k.replace(new RegExp("[^\\w\\s"+N+"_-]","g"),C);return r&&(j=j.replace(/(\w)(\S*)/g,function(t,e,n){var r=e.toUpperCase()+(null!==n?n:"");return Object.keys(T).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),j=j.replace(/\s+/g,C).replace(new RegExp("\\"+C+"+","g"),C).replace(new RegExp("(^\\"+C+"+|\\"+C+"+$)","g"),""),i&&j.length>i&&(w=j.charAt(i)===C,j=j.slice(0,i),w||(j=j.slice(0,j.lastIndexOf(C)))),n||r||(j=j.toLowerCase()),j},p=function(t){return function(e){return h(e,t)}},v=function(t){return t.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},y=function(t,e){for(var n in e)if(e[n]===t)return!0};void 0!==t&&t.exports?(t.exports=h,t.exports.createSlug=p):(r=[],void 0!==(i=function(){return h}.apply(e,r))&&(t.exports=i))}()},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(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||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t,e,n,i){var o=r(e,2),a=o[0],s=o[1];switch(n){case"binary":return u(a,s);case"date":return c(a,s);case"float":return h(a,s);case"enum":return f(a,s,i);case"html":return l(a,s);case"integer":return v(a,s);case"link":return y(a,s);case"linklist":return m(a,s);case"multienum":return d(a,s,i);case"reference":return w(a,s);case"referencelist":return _(a,s);case"string":return k(a,s);case"stringlist":return O(a,s);case"widgetlist":return E(a,s,t)}}function u(t,e){if("binary"===t&&e){var n=e.id,r="published"===scrivito.currentWorkspaceId();return new T.a(n,r).optimizeFor({})}return null}function c(t,e){return"date"!==t?null:Object(C.a)(e)}function l(t,e){return A.a.contains(["html","string"],t)&&A.a.isString(e)?e:""}function f(t,e,n){var r=n.values;return"string"===t&&A.a.contains(r,e)?e:null}function d(t,e,n){var r=n.values;return"stringlist"===t&&Array.isArray(e)?A.a.intersection(e,r):[]}function h(t,e){switch(t){case"string":return e.match(/^-?\d+(\.\d+)?$/)?p(e):null;case"number":return p(e);default:return null}}function p(t){var e=parseFloat(t);return Object(C.e)(e)?e:null}function v(t,e){switch(t){case"string":case"number":return Object(C.b)(e);default:return null}}function y(t,e){return"link"===t&&A.a.isObject(e)?b(e):null}function m(t,e){return A.a.isArray(e)?A.a.compact(e.map(b)):[]}function b(t){var e=A.a.pick(t,"title","query","fragment","target","url");e.hash=e.fragment,delete e.fragment,e.objId=t.obj_id;var n=j.a.build(e);return n.isBroken()?null:n}function g(t){var e=x.default.get(t);return e||null}function w(t,e){return"reference"===t&&e?g(e):null}function _(t,e){if("referencelist"!==t)return[];if(!e)return[];var n=e.map(g);return A.a.compact(n)}function k(t,e){return A.a.contains(["html","string"],t)&&A.a.isString(e)?e:""}function O(t,e){return"stringlist"===t&&Array.isArray(e)?e:[]}function E(t,e,n){return"widgetlist"!==t?[]:A.a.map(e,function(t){return n.widget(t)})}e.a=s;var x=n(3),C=n(48),j=n(34),S=n(0),A=n.n(S),T=n(26)},function(t,e,n){"use strict";function r(t){t.forEach(function(t){return u.c(t)})}function i(t,e){var n=v({},t,{index:e}),r=s.a(n);return s.c().subState(r)}function o(t){return function(){return t+"|"+Object(d.a)()}}function a(t){var e=Object(c.omit)({query:t.query,offset:t.offset,sort_by:t.sortBy,sort_order:t.sortDirection},c.isUndefined);return t.includeDeleted&&(e.options={include_deleted:!0}),e}var s=n(118),u=n(58),c=n(0),l=(n.n(c),n(7)),f=n(18),d=n(92),h=n(1),p=n(43),v=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y={results:[],total:0},m=function(){function t(t,e,n){this._params=t,this._batchSize=e,n?(this._index=n.index+1,this._continuation=n.continuationForNextBatch(),this._previousBatch=n):this._index=0}return t.store=function(t,e,n){void 0===n&&(n=e.length);var r=i(a(t),0),s=o(void 0);new f.b({state:r,invalidation:s,loader:function(){throw new h.InternalError("this should never be called")}}).set({results:e,total:n})},t.firstBatchFor=function(e,n){return new t(a(e),n)},t.countFor=function(t){return this.firstBatchFor(t,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._params,this._batchSize,this)},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()||y},t.prototype._data=function(){return new f.b({state:i(this._params,this._index),loader:this._load.bind(this),invalidation:o(this._continuation)})},t.prototype._load=function(t){var e=this,n=t.push,i=t.isReload,o=t.wasCancelled;return this._fetchContinuation().then(function(t){if(o())throw new Error;var a={size:e._batchSize,continuation:t,include_objs:!i()},s=v({},e._params,a);return p.a.retrieveObjQuery(scrivito.currentWorkspaceId(),s).then(function(t){var e=t.objs;return e&&n(function(){return e.forEach(function(t){return u.e(t)})}),r(t.results),t})})},t.prototype._fetchContinuation=function(){var t=this._previousBatch;return t?Object(l.a)(function(){return t.continuationForNextBatch()}):scrivito.Promise.resolve()},t}();e.a=m},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return c});var s=n(58),u=n(119),c=function(){function t(e,n){i(this,t),this._params=e,this._batchSize=n}return a(t,[{key:"count",value:function(){return u.a.count(this._params)}},{key:"iterator",value:function(){return new l(this._params,this._batchSize)}}]),t}(),l=function(){function t(e,n){i(this,t),this._iterator=new u.a(e,n).iterator()}return a(t,[{key:"next",value:function(){if(!this._iterator)return{done:!0};var t=this._iterator.next().value;if(!t)return{done:!0};var e=s.b(t);return void 0===e?(this._iterator=void 0,{done:!0}):e.isNonExistent()?this.next():{value:e,done:!1}}}]),t}()},function(t,e,n){"use strict";function r(t){var e=scrivito.computeCacheKey(t);return h.b.subState("facetQuery").subState(e)}function i(t){return function(){return v.a.retrieveFacetQuery(scrivito.currentWorkspaceId(),t)}}function o(){return Object(p.a)()||""}function a(t){var e=u.without.apply(void 0,[Object.keys(t)].concat(y));if(e.length)throw new d.ArgumentError("Invalid options: "+Object(f.a)(e)+". Valid options: "+y)}function s(t,e,n){var r={facets:[{attribute:t,limit:e.limit||10,include_objs:e.includeObjs||0}],size:0};return Object(u.isEmpty)(n)||(r.query=n),r}var u=n(0),c=(n.n(u),n(217)),l=n(18),f=n(41),d=n(1),h=n(4),p=n(92),v=n(43),y=["limit","includeObjs"],m=function(){function t(t,e,n){a(e),this._requestParams=s(t,e,n),this._loadableData=new l.b({state:r(this._requestParams),loader:i(this._requestParams),invalidation:o})}return t.store=function(t,e,n,u){a(e);var c=s(t,e,n);new l.b({state:r(c),loader:i(c),invalidation:o,throwNotLoaded:!0}).set(u)},t.prototype.result=function(){var t=this._loadableData.get();return t?t.facets[0].map(function(t){var e=t.value,n=t.total,r=t.results.map(function(t){return t.id});return new c.a(e,n,r)}):[]},t}();e.a=m},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return u});var s=n(3),u=function(){function t(e,n,r){i(this,t),this._name=e,this._count=n,this._includedObjs=r}return a(t,[{key:"name",value:function(){return this._name}},{key:"count",value:function(){return this._count}},{key:"includedObjs",value:function(){return this._includedObjs.map(function(t){return s.default.get(t)})}}]),t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(22),u=function(){function t(e,n){i(this,t),this._registry=e,this._basicObjFacetValue=n}return a(t,[{key:"name",value:function(){return this._basicObjFacetValue.name()}},{key:"count",value:function(){return this._basicObjFacetValue.count()}},{key:"includedObjs",value:function(){var t=this._basicObjFacetValue.includedObjs();return Object(s.e)(this._registry,t)}}]),t}();e.a=u},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){return function(){function e(){i(this,e)}return a(e,[{key:"id",value:function(){return this._scrivitoPrivateContent.id()}},{key:"objClass",value:function(){return this._scrivitoPrivateContent.objClass()}},{key:"finishSaving",value:function(){return this._scrivitoPrivateContent.finishSaving()}},{key:"get",value:function(e){return t.read(this,e)}},{key:"update",value:function(e){t.update(this,e)}}]),e}()}e.a=s},function(t,e,n){"use strict";function r(t,e,n,r){var i={};return Object.keys(n.definition.attributes).forEach(function(n){if(!t.hasOwnProperty(n)){var o=e.initialContentFor(r,n);void 0!==o&&(i[n]=o)}}),i}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){var n=Object(h.a)(t,"initialContent");if(n){var r=n[e];if(Object(l.isFunction)(r))return r();if(o(r)){var i=Object(y.a)();return r.map(function(t){var e=t._scrivitoPrivateContent,n=e.copy();return Object(v.e)(i,n)})}return r}}function o(t){return Object(l.isArray)(t)&&Object(l.every)(t,a)}function a(t){return t._scrivitoPrivateContent&&r(t._scrivitoPrivateContent,d.a)}function s(t){c(f.default.get(t))}function u(t,e){c(f.default.get(t).widget(e))}function c(t){var e=t.objClass(),n=Object(p.a)().getClass(e)._scrivitoPrivateSchema,r={};Object(l.each)(n.attributes,function(n,o){var a=t.get(o,n);if(Object(l.isEmpty)(a)){var s=i(e,o);s&&(r[o]=s)}});var o=Object(v.b)(r,n,e);t.update(o)}e.a=i,e.b=s,e.c=u;var l=n(0),f=(n.n(l),n(3)),d=n(32),h=n(82),p=n(61),v=n(22),y=n(62)},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i}),n.d(e,"e",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"h",function(){return u}),n.d(e,"f",function(){return c}),n.d(e,"d",function(){return l});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},o=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},a=function(t,e){return e(window.confirm(t))},s=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)},u=function(){return-1===window.navigator.userAgent.indexOf("Trident")},c=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},l=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){d=t}function o(t){if(u(t),s(t))return"/";if(t.permalink())return"/".concat(t.permalink());var e=l(t);return e?"/".concat(e,"-").concat(t.id()):"/".concat(t.id())}function a(t){c(t);var e=t.replace(new RegExp("^/+|/+$","g"),"");if(""===e)return Object(b.c)(d());var n=v.default.getByPermalink(e);return n||v.default.get(f(e))}function s(t){if(!d)return!1;var e=scrivito.loadableWithDefault(null,d);return!!e&&e.id()===t.id()}function u(t){if(!r(t,v.default))throw new y.ArgumentError("Parameter obj needs to be a BasicObj.")}function c(t){if(!p.a.isString(t))throw new y.ArgumentError("Parameter path needs to be a String.")}function l(t){var e=Object(m.a)();return Object(b.e)(e,t).slug()}function f(t){var e=p.a.last(t.split("-"));return p.a.last(e.split("/"))}e.b=i,e.a=o,e.c=a;var d,h=n(0),p=n.n(h),v=n(3),y=n(1),m=n(62),b=n(22)},function(t,e,n){"use strict";function r(t,e){var n=Object(o.a)(t,e);if(Object(i.isFunction)(n))try{for(var r=arguments.length,s=new Array(r>2?r-2:0),u=2;u<r;u++)s[u-2]=arguments[u];return n.apply(null,s)}catch(t){Object(a.b)(t)}}e.a=r;var i=n(0),o=(n.n(i),n(82)),a=n(37)},function(t,e,n){"use strict";function r(t){p(t);var e=t.tenant,n=t.homepage,r=t.routingBasePath,i=t.unstable,o=t.endpoint||"api.scrivito.com";if(f.b){var u={tenant:e,endpoint:o};i&&i.useRailsAuth&&(u.useRailsAuth=i.useRailsAuth),f.b.configureTenant(u)}else s.a.init(o,e);Object(l.b)(n||function(){return a.default.root()}),Object(c.e)({routingBasePath:r}),d=!0}function i(){return d}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var o=n(24),a=n(3),s=n(21),u=n(39),c=n(63),l=n(223),f=n(17),d=!1,h=o.a.struct({tenant:o.a.String,endpoint:o.a.maybe(o.a.String),homepage:o.a.maybe(o.a.Function),routingBasePath:o.a.maybe(o.a.String),unstable:o.a.maybe(o.a.Object)}),p=Object(u.a)("configure",[["configuration",h]],{docPermalink:"js-sdk/configure"})},function(t,e,n){"use strict";function r(t){if(!t)return!1;var e=t.objClass();if(!e)return!1;var n=Object(o.a)().getClass(e);return!!n&&i.a.forClass(n).isBinary()}e.a=r;var i=n(42),o=n(61)},function(t,e,n){"use strict";function r(t,e){var n=a.default.getIncludingDeleted(t),r=n.widget(e);return i(r)||o(r.objClass())}function i(t){var e=Object(f.e)(Object(c.a)(),t),n=t.objClass();return Object(s.a)(n,"titleForContent",e)}function o(t){return Object(u.a)(t,"title")||Object(l.d)(t)}e.a=r;var a=n(3),s=n(224),u=n(82),c=n(62),l=n(23),f=n(22)},function(t,e,n){"use strict";function r(){return++c}function i(t){var e=r();l[e]=t;var n=a(),i=n.get()||[];n.set(i.concat([e]))}function o(t){var e=t.type,n=t.tag,r=a().get();if(r){var i=Object(s.find)(r,function(t){return l[t]&&l[t].canEdit({type:e,tag:n})});if(i){return{id:i,editorClass:l[i]}}}}function a(){return u.a.subState("editors")}n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var s=n(0),u=(n.n(s),n(4)),c=0,l={}},function(t,e,n){"use strict";function r(t){t.getAttribute("data-scrivito-editors-placeholder")||t.setAttribute("data-scrivito-editors-placeholder","Click to edit")}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(75),u=n.n(s),c=function(){function t(e,n){i(this,t),this.domNode=e,this.controller=n}return a(t,[{key:"content",value:function(){return this.controller.getContent()}},{key:"idFromPath",value:function(t){if(t.match(/^objid:/))return t.replace(/^objid:/,"")}},{key:"edQuery",value:function(){return u.a.apply(void 0,arguments)}},{key:"jQueryElement",value:function(){return this.edQuery(this.domNode)}},{key:"pathForId",value:function(t){return"objid:".concat(t)}},{key:"save",value:function(t){this.controller.setContent(t);var e={done:function(t){return t(),e}};return e}},{key:"trigger",value:function(){}}]),t}();e.a=c},function(t,e,n){"use strict";function r(t){return t.isRaw()||t.isExplicitlyTransformed()?t:t.optimizeFor({width:Object(i.e)().width*Object(i.a)()})}e.a=r;var i=n(70)},function(t,e,n){"use strict";function r(t){return(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})(t)}function i(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function o(t,e){if(!i(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(0),y=(n.n(v),n(22)),m=n(34),b=n(3),g=n(26),w=n(129),_=n(14),k=n(233),O=n(136),E=n(346),x=n(59),C=n(17),j=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){return p.a.createElement("a",this._linkProps(),this.props.children)}},{key:"_linkProps",value:function(){var t=Object(v.omit)(this.props,"to");return t.href=this._href(),t.onClick=this._onClick,t.target=this._target(),t}},{key:"_href",value:function(){return this._to()||"#"}},{key:"_onClick",value:function(t){t.preventDefault(),this.props.to&&(Object(v.isString)(this.props.to)?scrivito.openInNewWindow(this.props.to):this._openLink(t))}},{key:"_openLink",value:function(t){var e=this._to();if(e){var n=this._target();"_blank"===n||Object(k.a)(t)?this._openLinkInNewWindow(e):n?scrivito.openLocation(e,n):Object(w.a)(this.props.to)}}},{key:"_openLinkInNewWindow",value:function(t){C.b?C.b.openInNewWindow(t):scrivito.openInNewWindow(t)}},{key:"_target",value:function(){return this.props.target?this.props.target:this.props.to&&i(this.props.to._scrivitoPrivateContent,m.a)?this.props.to.target():void 0}},{key:"_to",value:function(){if(this.props.to){if(Object(v.isString)(this.props.to))return this.props.to;var t=Object(y.c)(this.props.to);if(i(t,m.a)||i(t,b.default)||i(t,g.a))return Object(O.a)(t)}}}]),a(e,t),e}(p.a.Component);j.displayName="Scrivito.LinkTag",j.propTypes=Object(E.a)({to:E.b.maybe(E.b.union([x.d,x.b,x.a,E.b.String]))},{strict:!1}),e.a=Object(_.a)(j)},function(t,e,n){"use strict";function r(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.which===i}e.a=r;var i=2},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(87),p=n(42),v=n(0),y=(n.n(v),n(13)),m=n.n(y),b=n(1),g=n(22),w=n(235),_=n(14),k=n(228),O=n(37),E=n(236),x=n(353),C=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"render",value:function(){if(!this.props.content)return null;var t=p.a.basicFieldFor(this.props.content,this.props.attribute);if(!t){var e=this.props.attribute;return Object(O.b)(new b.ArgumentError('Component "Scrivito.ContentTag" received prop "attribute" with invalid value: '+'Attribute "'.concat(e,'" is not defined for content specified in prop "content".'))),null}var n,r,i=Object(k.a)({type:t.type(),tag:this.props.tag});return i&&(n=i.id,r=i.editorClass),Object(h.a)()?m.a.createElement(x.a,{key:this._editorKey(n),field:t,editorClass:r,tag:this.props.tag,customProps:this._customProps(),content:this.props.content},this.props.children):m.a.createElement(E.a,{field:t,tag:this.props.tag,customProps:this._customProps()},this.props.children)}},{key:"_customProps",value:function(){return Object(v.omit)(this.props,"content","attribute","tag")}},{key:"_editorKey",value:function(t){var e=Object(g.c)(this.props.content);return[this.props.tag,Object(w.a)(e),this.props.attribute,t].join("|")}}]),a(e,t),e}(m.a.Component);C.displayName="Scrivito.ContentTag",C.defaultProps={tag:"div"},e.a=Object(_.a)(C)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){if(r(t,o.default))return t.id();if(r(t,a.a))return"".concat(t.obj().id(),"|").concat(t.id());var e=Object(u.a)(t).substr(0,100);throw new s.InternalError('keyForBasicContent called with "'.concat(e,'". Expected an instance of')+" BasicObj or BasicWidget.")}e.a=i;var o=n(3),a=n(32),s=n(1),u=n(41)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(0),p=(n.n(h),n(13)),v=n.n(p),y=n(87),m=n(135),b=n(17),g=n(72),w=n(14),_=n(349),k=n(350),O=n(352),E=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){switch(this.props.field.type()){case"html":return this._renderHtml();case"float":case"integer":case"string":return this._renderAsString();case"widgetlist":return this._renderWidgetlist();default:return this._renderContent({children:this.props.children})}}},{key:"_renderHtml",value:function(){if(this.props.children)return this._renderContent({children:this.props.children});var t=Object(m.a)(this._attributeValue()),e={dangerouslySetInnerHTML:{__html:t},onClick:this._onClick};return this._renderContent({props:e})}},{key:"_onClick",value:function(t){var e=Object(_.a)(t);e&&(e.openInNewWindow?this._openInNewWindow(t,e):this._openInCurrentWindow(t,e))}},{key:"_openInNewWindow",value:function(t,e){var n=e.openInNewWindow;b.b&&(t.preventDefault(),t.stopPropagation(),b.b.openInNewWindow(n))}},{key:"_openInCurrentWindow",value:function(t,e){var n=e.openInCurrentWindow;t.preventDefault(),t.stopPropagation(),Object(g.c)(n)}},{key:"_renderAsString",value:function(){var t=this.props.children||this._attributeValue();return this._renderContent({children:t})}},{key:"_renderWidgetlist",value:function(){var t,e=this._attributeValue();return e.length?t=e.map(function(t){return v.a.createElement(k.a,{key:t.id(),widget:t})}):Object(y.a)()&&(t=v.a.createElement(O.a,{field:this.props.field})),this._renderContent({children:t})}},{key:"_renderContent",value:function(t){var e=t.props,n=t.children,r=Object(h.extend)({},this.props.customProps,e,this._editingProps());return v.a.createElement(this.props.tag,r,n)}},{key:"_editingProps",value:function(){return this.props.onClick?{onClick:this.props.onClick,"data-scrivito-is-clickable":!0}:{}}},{key:"_attributeValue",value:function(){return this.props.field.get()}}]),a(e,t),e}(v.a.Component);E.displayName="Scrivito.ContentTag.AttributeValue",e.a=Object(w.a)(E)},function(t,e){t.exports=PropTypes},function(t,e,n){"use strict";function r(t){t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain",t.target.id)}catch(t){}}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(14),y=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){var t="scrivito_option_marker scrivito_".concat(this.props.position);return this.props.isAlwaysShown&&(t+=" scrivito_visible"),p.a.createElement("span",{className:t,onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},p.a.createElement("i",{className:"scrivito_icon scrivito_icon_marker_plus"}))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)}}]),a(e,t),e}(p.a.Component);y.displayName="Scrivito.OptionMarker",e.a=Object(v.a)(y)},function(t,e,n){"use strict";function r(){i=!0}n.d(e,"b",function(){return i}),e.a=r;var i=!1},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(t,e){"content"===t&&document.addEventListener("DOMContentLoaded",function(){return e(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}e.a=r},function(t,e,n){"use strict";function r(t){if(t){t.setAppAdapter("1.2.0-rc2-8-gc9ddb6bb",new u.a);var e=t.uiAdapter();Object(l.a)(e),Object(c.b)(e)}scrivito.client.init({ui:t});var n=new i.a;Object(o.b)(n.promise),document.addEventListener("DOMContentLoaded",n.resolve)}e.a=r;var i=(n(162),n(291),n(292),n(316),n(12)),o=n(81),a=n(319),s=n(228),u=n(210),c=n(43),l=n(17);window.scrivito||(window.scrivito={}),window.scrivito.registerEditor=s.b,window.scrivito.openContentBrowser=a.a},function(t,e,n){"use strict";var r=n(127);n.n(r)},function(t,e,n){"use strict";var r=n(293);n.n(r),n(210),n(72),n(315)},function(t,e){window.scrivito||(window.scrivito={}),window.scrivito.AppSupport={}},function(t,e,n){"use strict";function r(){window.scrollTo(0,0)}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return h});var s=n(296),u=n(297),c=n(298),l=n(133),f=n(301),d=n(302),h=function(){function t(){i(this,t),this._registry=new c.a,this._registry.defaultClassForLinks=Object(u.a)(this._registry),this._registry.ObjSearch=Object(s.a)(this._registry),this.appModelAccessor=new l.a(this._registry)}return a(t,null,[{key:"init",value: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(){return n.provideObjClass.apply(n,arguments)},e.provideWidgetClass=function(){return n.provideWidgetClass.apply(n,arguments)},e.createObjClass=function(){return n.createObjClass.apply(n,arguments)},e.createWidgetClass=function(){return n.createWidgetClass.apply(n,arguments)},e.getClass=function(){return n.getClass.apply(n,arguments)},e.allObjClasses=function(){return n.allObjClasses()},e.allWidgetClasses=function(){return n.allWidgetClasses()},e._privateRealm=n,n}}]),a(t,[{key:"provideObjClass",value:function(t,e){return Object(d.c)(t,e),Object(f.c)(this._registry,t,e)}},{key:"provideWidgetClass",value:function(t,e){return Object(d.d)(t,e),Object(f.d)(this._registry,t,e)}},{key:"createObjClass",value:function(t){return Object(d.a)(t),Object(f.a)(this._registry,t)}},{key:"createWidgetClass",value:function(t){return Object(d.b)(t),Object(f.b)(this._registry,t)}},{key:"getClass",value:function(t){return this._registry.getClass(t)}},{key:"allObjClasses",value:function(){return this._registry.allObjClasses()}},{key:"allWidgetClasses",value:function(){return this._registry.allWidgetClasses()}},{key:"setInitialContentFor",value:function(t){this._registry.setInitialContentFor(t)}},{key:"Obj",get:function(){return this._registry.defaultClassForObjs}},{key:"Widget",get:function(){return this._registry.defaultClassForWidgets}},{key:"Link",get:function(){return this._registry.defaultClassForLinks}},{key:"ObjSearch",get:function(){return this._registry.ObjSearch}}]),t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){var e=function(){function e(t){i(this,e),this._scrivitoPrivateContent=new c.b(t)}return a(e,[{key:"and",value:function(t,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(r(t,e))this._scrivitoPrivateContent.and(t._scrivitoPrivateContent);else{var a=Object(f.d)(i);this._scrivitoPrivateContent.and(t,n,a,o)}return this}},{key:"andNot",value:function(t,e,n){var r=Object(f.d)(n);return this._scrivitoPrivateContent.andNot(t,e,r),this}},{key:"facet",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this._scrivitoPrivateContent.facet(e,n);return h.a.map(r,function(e){return new l.a(t,e)})}},{key:"take",value:function(e){return this._scrivitoPrivateContent.batchSize(e),Object(u.a)(this._scrivitoPrivateContent,e).map(function(e){return Object(f.e)(t,e)})}},{key:"offset",value:function(t){return this._scrivitoPrivateContent.offset(t),this}},{key:"order",value:function(t,e){return this._scrivitoPrivateContent.order(t,e),this}},{key:"count",value:function(){return this._scrivitoPrivateContent.count()}}]),e}();if("function"==typeof window.Symbol){var n=window.Symbol.iterator;if(n){e.prototype[n]=function(){var e=this._scrivitoPrivateContent.iterator();return{next:function(){var n=e.next(),r=n.done,i=n.value;return r?{done:r}:{done:r,value:Object(f.e)(t,i)}}}}}}return e}e.a=s;var u=n(121),c=n(54),l=n(218),f=n(22),d=n(0),h=n.n(d)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function v(t){return function(e){function n(t){return o(this,n),l(this,p(n).call(this,t))}return c(n,[{key:"obj",value:function(){return Object(m.e)(t,d(p(n.prototype),"obj",this).call(this))}},{key:"fetchObj",value:function(e){return d(p(n.prototype),"fetchObj",this).call(this,e).then(function(e){return Object(m.e)(t,e)})}},{key:"_scrivitoPrivateContent",get:function(){return y.a.build(this.buildAttributes())}}]),a(n,e),n}(y.a)}e.a=v;var y=n(34),m=n(22)},function(t,e,n){"use strict";var r=n(0),i=(n.n(r),n(299)),o=n(300),a=function(){function t(){this.mapping={},this.defaultClassForObjs=Object(o.a)(this),this.defaultClassForWidgets=Object(i.a)(this)}return t.prototype.register=function(t,e){this.mapping[t]=e},t.prototype.getClass=function(t){return this.mapping[t]},t.prototype.allObjClasses=function(){return this.allForBaseClass(this.defaultClassForObjs)},t.prototype.allWidgetClasses=function(){return this.allForBaseClass(this.defaultClassForWidgets)},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.prototype.allForBaseClass=function(t){return r.pick(this.mapping,function(e){return t.isPrototypeOf(e)})},t}();e.a=a},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e=new g.a(t);return function(e){function n(e){var r;o(this,n),r=l(this,f(n).call(this));var i=y.a.forInstance(d(d(r))),a=t.objClassNameFor(r.constructor),s=r._prepareAttributesForConstructor(e,i,a),u=new m.a(s);return u.onDidPersist(function(e){var n=Object(k.e)(t,e),r=Object(_.a)(s,t,i,a);n.update(r)}),r._scrivitoPrivateContent=u,r}return c(n,[{key:"obj",value:function(){var e=this._scrivitoPrivateContent.obj();return Object(k.e)(t,e)}},{key:"copy",value:function(){var e=t.widgetClassFor(this.objClass()),n=this._scrivitoPrivateContent.copy();return Object(k.a)(n,e)}},{key:"_prepareAttributesForConstructor",value:function(t,e,n){p(n,t);var r={_objClass:n},i=Object(v.extend)({},t,r);return Object(k.b)(i,e,n)}}]),a(n,e),n}(Object(w.a)(e))}function p(t,e){if(!t)throw new b.ArgumentError("Creating widgets is not supported for the class Widget or abstract classes.");if(e.constructor!==Object)throw new b.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new b.ArgumentError('Invalid attribute "_objClass". '+'"new '.concat(e._objClass,'" will automatically set the CMS object class correctly.'))}e.a=h;var v=n(0),y=(n.n(v),n(42)),m=n(32),b=n(1),g=n(133),w=n(219),_=n(220),k=n(22)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function h(t){function e(e,n){var r=new t.ObjSearch;return e&&r.and("_objClass","equals",e),n&&r._scrivitoPrivateContent.batchSize(n),r}function n(e){return Object(w.e)(t,e)}var r=new g.a(t);return function(i){function s(){return o(this,s),l(this,d(s).apply(this,arguments))}return c(s,[{key:"lastChanged",value:function(){return this._scrivitoPrivateContent.lastChanged()}},{key:"path",value:function(){return this._scrivitoPrivateContent.path()}},{key:"parent",value:function(){return n(this._scrivitoPrivateContent.parent())}},{key:"ancestors",value:function(){return n(this._scrivitoPrivateContent.ancestors())}},{key:"backlinks",value:function(){return n(this._scrivitoPrivateContent.backlinks())}},{key:"children",value:function(){return n(this._scrivitoPrivateContent.children())}},{key:"orderedChildren",value:function(){return n(this._scrivitoPrivateContent.orderedChildren())}},{key:"permalink",value:function(){return this._scrivitoPrivateContent.permalink()}},{key:"slug",value:function(){return this._scrivitoPrivateContent.slug()}},{key:"isBinary",value:function(){var t=m.a.forInstance(this);return!!t&&t.isBinary()}},{key:"contentLength",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0}},{key:"contentType",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""}},{key:"contentUrl",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""}},{key:"metadata",value:function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new _.a}},{key:"destroy",value:function(){this._scrivitoPrivateContent.destroy()}},{key:"widget",value:function(t){return n(this._scrivitoPrivateContent.widget(t))}},{key:"widgets",value:function(){return n(this._scrivitoPrivateContent.widgets())}}],[{key:"get",value:function(t){return r.getObj(this,t)}},{key:"getIncludingDeleted",value:function(t){return r.getObjIncludingDeleted(this,t)}},{key:"getByPath",value:function(t){return n(y.default.getByPath(t))}},{key:"getByPermalink",value:function(t){return n(y.default.getByPermalink(t))}},{key:"all",value:function(){return e(t.objClassNameFor(this),1e3)}},{key:"root",value:function(){return n(y.default.root())}},{key:"where",value:function(n,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e(t.objClassNameFor(this)).and(n,r,i,o)}},{key:"create",value:function(t){var e=this._prepareAttributesForCreate(t);return n(y.default.create(e))}},{key:"_prepareAttributesForCreate",value:function(e){var n=t.objClassNameFor(this),r=m.a.forClass(this);p(e,n);var i=Object(O.a)(e,t,r,n),o={_objClass:n},a=Object(v.extend)({},e,i,o);return Object(w.b)(a,r,n)}}]),a(s,i),s}(Object(k.a)(r))}function p(t,e){if(!e)throw new b.ArgumentError("Creating CMS objects is not supported for the class Obj or abstract classes.");if(t.constructor!==Object)throw new b.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(t._objClass)throw new b.ArgumentError('Invalid attribute "_objClass". '+'"'.concat(t._objClass,'.create" will automatically set the CMS object class ')+"correctly.")}e.a=h;var v=n(0),y=(n.n(v),n(3)),m=n(42),b=n(1),g=n(133),w=n(22),_=n(130),k=n(219),O=n(220)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(e.extend&&!f(e.extend,t.defaultClassForObjs))throw new h.ArgumentError('Invalid value for "extend": not a Scrivito Obj class');var n=e.extend||t.defaultClassForObjs,r=new p.a(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function o(t,e){if(e.extend&&!f(e.extend,t.defaultClassForWidgets))throw new h.ArgumentError('Invalid value for "extend": not a Scrivito Widget class');var n=e.extend||t.defaultClassForWidgets,r=new p.a(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function a(t,e,n){var r=s(t,e,n);return t.register(e,r),r}function s(t,e,n){return l(n)?n:i(t,Object(d.extend)({},n,{name:e}))}function u(t,e,n){var r=c(t,e,n);return t.register(e,r),r}function c(t,e,n){return l(n)?n:o(t,Object(d.extend)({},n,{name:e}))}function l(t){return!(!t||!t._scrivitoPrivateSchema)}function f(t,e){return!!t&&(t===e||r(t.prototype,e))}e.a=i,e.b=o,e.c=a,e.d=u;var d=n(0),h=(n.n(d),n(1)),p=n(42),v=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()},function(t,e,n){"use strict";function r(t){return/^[a-z](_+[A-Z0-9]|[A-Za-z0-9])*$/.test(t)}function i(t){return t&&t._scrivitoPrivateSchema}n.d(e,"a",function(){return d}),n.d(e,"b",function(){return h}),n.d(e,"c",function(){return v}),n.d(e,"d",function(){return m});var o=n(24),a=n(39),s=o.a.refinement(o.a.Function,i,"ObjClass"),u=o.a.interface({attributes:o.a.maybe(o.a.dict(o.a.refinement(o.a.String,r,"String (alphanumeric, starting with a lower-case character)"),o.a.union([o.a.enums.of(["binary","date","float","html","integer","link","linklist","reference","referencelist","string","stringlist","widgetlist"]),o.a.union([o.a.tuple([o.a.enums.of(["enum","multienum"]),o.a.interface({values:o.a.list(o.a.String)})]),o.a.tuple([o.a.enums.of(["widgetlist"]),o.a.interface({only:o.a.union([o.a.String,o.a.list(o.a.String)])})])])]),"Attributes Specification")),extend:o.a.maybe(s)}),c=u.meta.props.attributes,l=o.a.refinement(o.a.Function,i,"WidgetClass"),f=o.a.interface({attributes:c,extend:o.a.maybe(l),onlyInside:o.a.maybe(o.a.String)}),d=Object(a.a)("createObjClass",[["options",u]],{docPermalink:"js-sdk/createObjClass"}),h=Object(a.a)("createWidgetClass",[["options",f]],{docPermalink:"js-sdk/createWidgetClass"}),p=o.a.union([u,s]),v=Object(a.a)("provideObjClass",[["name",o.a.String],["objClassOrDefinition",p]],{docPermalink:"js-sdk/provideObjClass"}),y=o.a.union([f,l]),m=Object(a.a)("provideWidgetClass",[["name",o.a.String],["widgetClassOrDefinition",y]],{docPermalink:"js-sdk/provideWidgetClass"})},function(t,e,n){"use strict";var r=n(304);n.d(e,"a",function(){return r.a});n(307),n(308),n(93),n(84)},function(t,e,n){"use strict";var r=n(83),i=n.n(r),o=n(38),a=n.n(o),s=n(93),u=n(84),c=n(134),l=n(222),f="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},d=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},h=function(){try{return window.history.state||{}}catch(t){return{}}},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(l.b,"Browser history needs a DOM");var e=window.history,n=Object(l.g)(),r=!Object(l.h)(),o=t.forceRefresh,p=void 0!==o&&o,v=t.getUserConfirmation,y=void 0===v?l.c:v,m=t.keyLength,b=void 0===m?6:m,g=t.basename?Object(u.g)(Object(u.a)(t.basename)):"",w=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,a=o.pathname,c=o.search,l=o.hash,f=a+c+l;return i()(!g||Object(u.c)(f,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+f+'" to begin with "'+g+'".'),g&&(f=Object(u.e)(f,g)),Object(s.a)(f,r,n)},_=function(){return Math.random().toString(36).substr(2,b)},k=Object(c.a)(),O=function(t){d(U,t),U.length=e.length,k.notifyListeners(U.location,U.action)},E=function(t){Object(l.d)(t)||j(w(t.state))},x=function(){j(w(h()))},C=!1,j=function(t){if(C)C=!1,O();else{k.confirmTransitionTo(t,"POP",y,function(e){e?O({action:"POP",location:t}):S(t)})}},S=function(t){var e=U.location,n=T.indexOf(e.key);-1===n&&(n=0);var r=T.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(C=!0,I(i))},A=w(h()),T=[A.key],N=function(t){return g+Object(u.b)(t)},P=function(t,r){i()(!("object"===(void 0===t?"undefined":f(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 o=Object(s.a)(t,r,_(),U.location);k.confirmTransitionTo(o,"PUSH",y,function(t){if(t){var r=N(o),a=o.key,s=o.state;if(n)if(e.pushState({key:a,state:s},null,r),p)window.location.href=r;else{var u=T.indexOf(U.location.key),c=T.slice(0,-1===u?0:u+1);c.push(o.key),T=c,O({action:"PUSH",location:o})}else i()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},L=function(t,r){i()(!("object"===(void 0===t?"undefined":f(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 o=Object(s.a)(t,r,_(),U.location);k.confirmTransitionTo(o,"REPLACE",y,function(t){if(t){var r=N(o),a=o.key,s=o.state;if(n)if(e.replaceState({key:a,state:s},null,r),p)window.location.replace(r);else{var u=T.indexOf(U.location.key);-1!==u&&(T[u]=o.key),O({action:"REPLACE",location:o})}else i()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},I=function(t){e.go(t)},D=function(){return I(-1)},q=function(){return I(1)},R=0,M=function(t){R+=t,1===R?(Object(l.a)(window,"popstate",E),r&&Object(l.a)(window,"hashchange",x)):0===R&&(Object(l.e)(window,"popstate",E),r&&Object(l.e)(window,"hashchange",x))},B=!1,F=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=k.setPrompt(t);return B||(M(1),B=!0),function(){return B&&(B=!1,M(-1)),e()}},z=function(t){var e=k.appendListener(t);return M(1),function(){M(-1),e()}},U={length:e.length,action:"POP",location:A,createHref:N,push:P,replace:L,go:I,goBack:D,goForward:q,block:F,listen:z};return U};e.a=p},function(t,e,n){"use strict";function r(t){return"/"===t.charAt(0)}function i(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],o=e&&e.split("/")||[],a=t&&r(t),s=e&&r(e),u=a||s;if(t&&r(t)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var l=o[o.length-1];c="."===l||".."===l||""===l}else c=!1;for(var f=0,d=o.length;d>=0;d--){var h=o[d];"."===h?i(o,d):".."===h?(i(o,d),f++):f&&(i(o,d),f--)}if(!u)for(;f--;f)o.unshift("..");!u||""===o[0]||o[0]&&r(o[0])||o.unshift("");var p=o.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}e.a=o},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return r(t,e[n])});var n=void 0===t?"undefined":i(t);if(n!==(void 0===e?"undefined":i(e)))return!1;if("object"===n){var o=t.valueOf(),a=e.valueOf();if(o!==t||a!==e)return r(o,a);var s=Object.keys(t),u=Object.keys(e);return s.length===u.length&&s.every(function(n){return r(t[n],e[n])})}return!1}var i="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};e.a=r},function(t,e,n){"use strict";var r=n(83),i=(n.n(r),n(38)),o=(n.n(i),n(93),n(84));n(134),n(222),Object.assign,o.f,o.a,o.a,o.a},function(t,e,n){"use strict";var r=n(83);n.n(r),n(84),n(93),n(134),"function"==typeof Symbol&&Symbol.iterator,Object.assign},function(t,e,n){"use strict";function r(t,e){if(!y){var n=Object(f.b)(t);if(!n)throw new l.ArgumentError('Component with ID "'.concat(t,'" not found. ')+'Please make sure you registered it using "Scrivito.registerComponent".');var r,o,a=u.default.get(e.objId);if(e.widgetId){var s=a.widget(e.widgetId);o=Object(p.e)(Object(h.a)(),s)}else r=Object(p.e)(Object(h.a)(),a);y=!0;var m=i(Object(d.b)(),n,{obj:r,widget:o});Object(c.a)(m,function(){return v.b.notifyDocumentResize()}),v.b.notifyDocumentResize()}}function i(t,e,n){var r=t.createElement("div");return t.body.innerHTML="",t.body.appendChild(r),Object(s.render)(a.a.createElement(e,n),r),r}n.d(e,"a",function(){return r});var o=n(13),a=n.n(o),s=n(85),u=(n.n(s),n(3)),c=n(310),l=n(1),f=n(86),d=n(70),h=n(62),p=n(22),v=n(17),y=!1},function(t,e,n){"use strict";function r(t,e){if(!t._scrivitoResizeListeners){t._scrivitoResizeListeners=[],t.style.position="relative";var n=i();n.resizeElement=t,t._scrivitoResizeTrigger=n,Object(s.a)()&&t.appendChild(n),n.data="about:blank",Object(s.a)()||t.appendChild(n)}t._scrivitoResizeListeners.push(e)}function i(){var t=document.createElement("object");return t.type="text/html",t.onload=o,t.style.display="block",t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex=-1,t}function o(){this.contentDocument.defaultView._scrivitoResizeTrigger=this.resizeElement,this.contentDocument.defaultView.addEventListener("resize",a)}function a(t){var e=t.target||t.srcElement,n=e._scrivitoResizeTrigger;n._scrivitoResizeListeners.forEach(function(e){return e(n,t)})}e.a=r;var s=n(311)},function(t,e,n){"use strict";function r(){var t=window.navigator.userAgent;return t.indexOf("MSIE")>=0||t.indexOf("Trident")>=0}e.a=r},function(t,e,n){"use strict";function r(t){var e=o()(t);return Object(u.b)()?Object(s.a)(function(){return Object(c.h)(t)}).then(function(t){return t.path?Object(a.include)(["/",""],t.path)?null:{obj:t.obj,url:e}:null}):scrivito.Promise.resolve(null)}var i=n(33),o=n.n(i),a=n(0),s=(n.n(a),n(7)),u=n(225),c=n(63);e.a=r},function(t,e,n){"use strict";function r(t){var e=o.default.get(t);return i(e?Object(a.a)(e):Object(s.d)({path:t}))}e.a=r;var i=n(33),o=(n.n(i),n(3)),a=n(136),s=n(63)},function(t,e,n){"use strict";function r(t,e){i[t]=e}e.a=r;var i={}},function(t,e,n){"use strict";var r=n(17);!function(){function t(t){r.b?r.b.navigateToExternalUrl(t):scrivito.setWindowLocation(t)}function e(t){window.location.assign(t)}function n(t,e){window.open(t,e)}function i(t){n(t,"_blank")}scrivito.setWindowLocation=e,scrivito.changeLocation=t,scrivito.openLocation=n,scrivito.openInNewWindow=i}()},function(t,e,n){"use strict";var r=n(317),i=(n.n(r),n(318));n.n(i)},function(t,e){window.scrivito||(window.scrivito={})},function(t,e){!function(){var t,e=0,n={},r={subscribe:function(t){var r=t.onFocus,i=t.onBlur,o=e;return n[o]={onFocus:r,onBlur:i},e+=1,o},unsubscribe:function(t){delete n[t]},notifyFocus:function(e){t=e,n[t].onFocus()},notifyBlur:function(e){e===t&&n[e].onBlur()},get handlers(){return n},reset:function(){t=void 0,e=0,n={}}};scrivito.WidgetFocus=r}()},function(t,e,n){"use strict";function r(t){return s.b.openContentBrowser(Object(o.a)(Object(i.extend)({},Object(a.b)(),Object(i.pick)(t,"selection","selectionMode"))))}e.a=r;var i=n(0),o=(n.n(i),n(138)),a=n(137),s=n(17)},function(t,e,n){"use strict";function r(){scrivito.registerEditor(i.a),scrivito.registerEditor(o.a),scrivito.registerEditor(a.a)}e.a=r;var i=n(321),o=n(336),a=n(337)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(139),p=n(322),v=n.n(p),y=n(325),m=n(229),b=n(230),g=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"contentDidChange",value:function(){this._updateContent&&this._updateContent()}},{key:"editorWillBeActivated",value:function(){this._controller.setDomMode("Replace")}},{key:"editorDomWasMounted",value:function(t){var e=this;if(Object(m.a)(t),"yes"===window.top.localStorage.getItem("__scrivito_enable_quill")){var n=Object(y.a)(t,this._controller);this._updateContent=function(){var t=n.getSelection();n.clipboard.dangerouslyPasteHTML(e._controller.getContent()),n.setSelection(t)}}else{t.innerHTML=this._controller.getContent();var r=new b.a(t,this._controller),i=v()(r);this._updateContent=function(){var n=i.exportSelection();t.innerHTML=e._controller.getContent(),i.importSelection(n)}}}},{key:"editorDomWasUnmounted",value:function(){this._updateContent=void 0}}],[{key:"canEdit",value:function(t){return"html"===t.type}}]),a(e,t),e}(h.a);e.a=g},function(t,e,n){var r,i,o,a,s,u;i=n(323),r=n(324),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},handleClick:function(t){var e,n,r,o,a;return t.preventDefault(),t.stopPropagation(),this.isDisplayed()||(o=i.selection.getSelectionRange(this.document),r=i.selection.getSelectedParentElement(o),n=i.util.getClosestTag(r,"a"),e=a=null,n&&(n=this.proxy.edQuery(n),e=n.attr("href")||null,a=n.attr("target")||null),this.showForm({value:e,target:a})),!1},getTemplate:function(){var t;return t="",this.targetCheckbox&&(t="<div class='medium-editor-toolbar-form-row medium-editor-toolbar-anchor-target-toggle'>\n <label>\n <input type='checkbox' class='medium-editor-toolbar-anchor-target'>\n <i class='scrivito_customer_icon sci_inv_check'></i>\n <i class='scrivito_customer_icon sci_rounded_square'></i>\n "+this.targetCheckboxText+"\n </label>\n</div>"),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection'></i>\n<input type='text' class='medium-editor-toolbar-input' placeholder='"+this.placeholderText+"'>\n<i class='medium-editor-toolbar-save scrivito_customer_icon sci_check'></i>\n<i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross'></i>\n"+t).replace(/\n\s*/g,"")},attachFormEvents:function(t){var e;return i.extensions.anchor.prototype.attachFormEvents.call(this,t),t=this.proxy.edQuery(t),e=t.find(".medium-editor-toolbar-input"),t.find(".medium-editor-toolbar-browse").on("click",function(t){return function(){var n,r;return r=(n=t.proxy.idFromPath(e.val()))?[n]:[],scrivito.openContentBrowser({selection:r,selectionMode:"single"}).catch(function(t){throw e.focus(),t}).then(function(n){var r,i;if(r=n.isSelected,i=n.selection,r)return e.focus(),i.length?e.val(t.proxy.pathForId(i[0])):e.val("")}),!1}}(this))},completeFormSave:function(t){return this.base.restoreSelection(),t.value?this.execAction(this.action,t):this.execAction("unlink"),this.base.checkSelection()}}),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(),n=u(),null!=(r=n.extensions.scrivito_anchor)&&(r.proxy=t),new i(e,n).subscribe("editableInput",function(){return t.save(e.html())})},t.exports=a},function(t,e,n){(function(r){var i;/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
79
- "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;e<n;e++)if(e in this&&this[e]===t)return e;return-1},o=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new o("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new o("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(t,e)},s=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],i=0,o=n.length;i<o;i++)this.push(n[i]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=s.prototype=[],c=function(){return new s(this)};if(o.prototype=Error.prototype,u.item=function(t){return this[t]||null},u.contains=function(t){return t+="",-1!==a(this,t)},u.add=function(){var t,e=arguments,n=0,r=e.length,i=!1;do{t=e[n]+"",-1===a(this,t)&&(this.push(t),i=!0)}while(++n<r);i&&this._updateClassName()},u.remove=function(){var t,e,n=arguments,r=0,i=n.length,o=!1;do{for(t=n[r]+"",e=a(this,t);-1!==e;)this.splice(e,1),o=!0,e=a(this,t)}while(++r<i);o&&this._updateClassName()},u.toggle=function(t,e){t+="";var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},u.toString=function(){return this.join(" ")},n.defineProperty){var l={get:c,enumerable:!0,configurable:!0};try{n.defineProperty(e,"classList",l)}catch(t){-2146823252===t.number&&(l.enumerable=!1,n.defineProperty(e,"classList",l))}}else n.prototype.__defineGetter__&&e.__defineGetter__("classList",c)}}(self),/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
80
- function(t){"use strict";if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},i=n.prototype,o=r.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},u="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=u.length,l=t.URL||t.webkitURL||t,f=l.createObjectURL,d=l.revokeObjectURL,h=l,p=t.btoa,v=t.atob,y=t.ArrayBuffer,m=t.Uint8Array,b=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=o.fake=!0;c--;)s.prototype[u[c]]=c+1;return l.createObjectURL||(h=t.URL=function(t){var e,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=t,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(e=t.match(b),n.origin=e&&e[1])),n}),h.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof r?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):p?e+";base64,"+p(t.data):e+","+encodeURIComponent(t.data)):f?f.call(l,t):void 0},h.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&d&&d.call(l,t)},i.append=function(t){var n=this.data;if(m&&(t instanceof y||t instanceof m)){for(var i="",o=new m(t),u=0,c=o.length;u<c;u++)i+=String.fromCharCode(o[u]);n.push(i)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var l=new a;n.push(l.readAsBinaryString(t))}else t instanceof r?"base64"===t.encoding&&v?n.push(v(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},i.getBlob=function(t){return arguments.length||(t=null),new r(this.data.join(""),t,"raw")},i.toString=function(){return"[object BlobBuilder]"},o.slice=function(t,e,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(t,i>1?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<a;o++)Uint8Array&&t[o]instanceof Uint8Array?i.append(t[o].buffer):i.append(t[o]);var s=i.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=n(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(o,a){"use strict";"object"==typeof t&&void 0!==r&&r&&r.versions&&r.versions.electron||"object"!=typeof t?void 0!==(i=function(){return a}.call(e,n,e,t))&&(t.exports=i):t.exports=a}(0,function(){"use strict";function t(t,e){return this.init(t,e)}return t.extensions={},function(e){function n(t,e){var n,r=Array.prototype.slice.call(arguments,2);e=e||{};for(var i=0;i<r.length;i++){var o=r[i];if(o)for(n in o)o.hasOwnProperty(n)&&void 0!==o[n]&&(t||!1===e.hasOwnProperty(n))&&(e[n]=o[n])}return e}var r=!1;try{var i=document.createElement("div"),o=document.createTextNode(" ");i.appendChild(o),r=i.contains(o)}catch(t){}var a={isIE:"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent),isEdge:null!==/Edge\/\d+/.exec(navigator.userAgent),isFF:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMac: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,c=null;null!==(u=r.nextNode());)if(!(u.nodeType>3))if(3===u.nodeType){if(!s&&n.start<o+u.nodeValue.length&&(s=!0,c=a.splitStartNodeIfNeeded(u,n.start,o)),s&&a.splitEndNodeIfNeeded(u,c,n.end,o),s&&o===n.end)break;if(s&&o>n.end+1)throw new Error("PerformLinking overshot the target!");s&&i.push(c||u),o+=u.nodeValue.length,null!==c&&(o+=c.nodeValue.length,r.nextNode()),c=null}else"img"===u.tagName.toLowerCase()&&(!s&&n.start<=o&&(s=!0),s&&i.push(u));return i},splitStartNodeIfNeeded:function(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(r).length)return[e];for(var i=0;i<e.childNodes.length;i++){var o=e.childNodes[i];if(3===o.nodeType)n.push(o);else if(1===o.nodeType){var a=o.querySelectorAll(r);0===a.length?n.push(o):n=n.concat(t.util.splitByBlockElements(o))}}return n},findAdjacentTextNodeWithContent:function(t,e,n){var r,i=!1,o=n.createNodeIterator(t,NodeFilter.SHOW_TEXT,null,!1);for(r=o.nextNode();r;){if(r===e)i=!0;else if(i&&3===r.nodeType&&r.nodeValue&&r.nodeValue.trim().length>0)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);)t=t.parentNode,e=t.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(),c=e-(u-a);return n=this,r=arguments,c<=0||c>e?(o&&(clearTimeout(o),o=null),a=u,i=t.apply(n,r),o||(n=r=null)):o||(o=setTimeout(s,c)),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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},insertHTMLCommand:function(e,n){var r,i,o,s,u,c,l,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(),r.rangeCount){if(i=r.getRangeAt(0),l=i.commonAncestorContainer,a.isMediumEditorElement(l)&&!l.firstChild)i.selectNode(l.appendChild(e.createTextNode("")));else if(3===l.nodeType&&0===i.startOffset&&i.endOffset===l.nodeValue.length||3!==l.nodeType&&l.innerHTML===i.toString()){for(;!a.isMediumEditorElement(l)&&l.parentNode&&1===l.parentNode.childNodes.length&&!a.isMediumEditorElement(l.parentNode);)l=l.parentNode;i.selectNode(l)}for(i.deleteContents(),o=e.createElement("div"),o.innerHTML=n,s=e.createDocumentFragment();o.firstChild;)u=o.firstChild,c=s.appendChild(u);i.insertNode(s),c&&(i=i.cloneRange(),i.setStartAfter(c),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,i=a.getTopBlockContainer(t.selection.getSelectionStart(e));if("blockquote"===n){if(i&&(r=Array.prototype.slice.call(i.childNodes),r.some(function(t){return a.isBlockContainer(t)})))return e.execCommand("outdent",!1,null);if(a.isIE)return e.execCommand("indent",!1,n)}if(i&&n===i.nodeName.toLowerCase()&&(n="p"),a.isIE&&(n="<"+n+">"),i&&"blockquote"===i.nodeName.toLowerCase()){if(a.isIE&&"<p>"===n)return e.execCommand("outdent",!1,n);if((a.isFF||a.isEdge)&&"p"===n)return r=Array.prototype.slice.call(i.childNodes),r.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;n<t.length;n+=1)!1!==r&&r!==t[n].attributes.href.value||(t[n].target="_blank",t[n].rel="noopener noreferrer")},removeTargetBlank:function(t,e){var n;if("a"===t.nodeName.toLowerCase())t.removeAttribute("target"),t.removeAttribute("rel");else for(t=t.getElementsByTagName("a"),n=0;n<t.length;n+=1)e===t[n].attributes.href.value&&(t[n].removeAttribute("target"),t[n].removeAttribute("rel"))},addClassToAnchors:function(t,e){var n,r,i=e.split(" ");if("a"===t.nodeName.toLowerCase())for(r=0;r<i.length;r+=1)t.classList.add(i[r]);else{var o=t.getElementsByTagName("a");if(0===o.length){var s=a.getClosestTag(t,"a");t=s?[s]:[]}else t=o;for(n=0;n<t.length;n+=1)for(r=0;r<i.length;r+=1)t[n].classList.add(i[r])}},isListItem:function(t){if(!t)return!1;if("li"===t.nodeName.toLowerCase())return!0;for(var e=t.parentNode,n=e.nodeName.toLowerCase();"li"===n||!a.isBlockContainer(e)&&"div"!==n;){if("li"===n)return!0;if(!(e=e.parentNode))return!1;n=e.nodeName.toLowerCase()}return!1},cleanListDOM:function(e,n){if("li"===n.nodeName.toLowerCase()){var r=n.parentElement;"p"===r.parentElement.nodeName.toLowerCase()&&(a.unwrap(r.parentElement,e),t.selection.moveCursor(e,n.firstChild,n.firstChild.textContent.length))}},splitOffDOMTree:function(t,e,n){for(var r=e,i=null,o=!n;r!==t;){var a,s=r.parentNode,u=s.cloneNode(!1),c=o?r:s.firstChild;for(i&&(o?u.appendChild(i):a=i),i=u;c;){var l=c.nextSibling;c===r?(c.hasChildNodes()?c=c.cloneNode(!1):c.parentNode.removeChild(c),c.textContent&&i.appendChild(c),c=o?l:null):(c.parentNode.removeChild(c),(c.hasChildNodes()||c.textContent)&&i.appendChild(c),c=l)}a&&i.appendChild(a),r=s}return i},moveTextRangeIntoElement:function(t,e,n){if(!t||!e)return!1;var r=a.findCommonRoot(t,e);if(!r)return!1;if(e===t){var i=t.parentNode,o=t.nextSibling;return i.removeChild(t),n.appendChild(t),o?i.insertBefore(n,o):i.appendChild(n),n.hasChildNodes()}for(var s,u,c,l=[],f=0;f<r.childNodes.length;f++)if(c=r.childNodes[f],s){if(a.isDescendant(c,e,!0)){u=c;break}l.push(c)}else a.isDescendant(c,t,!0)&&(s=c);var d=u.nextSibling,h=r.ownerDocument.createDocumentFragment();return s===t?(s.parentNode.removeChild(s),h.appendChild(s)):h.appendChild(a.splitOffDOMTree(s,t)),l.forEach(function(t){t.parentNode.removeChild(t),h.appendChild(t)}),u===e?(u.parentNode.removeChild(u),h.appendChild(u)):h.appendChild(a.splitOffDOMTree(u,e,!0)),n.appendChild(h),u.parentNode===r?r.insertBefore(n,u):d?r.insertBefore(n,d):r.appendChild(n),n.hasChildNodes()},depthOfNode:function(t){for(var e=0,n=t;null!==n.parentNode;)n=n.parentNode,e++;return e},findCommonRoot:function(t,e){for(var n=a.depthOfNode(t),r=a.depthOfNode(e),i=t,o=e;n!==r;)n>r?(i=i.parentNode,n-=1):(o=o.parentNode,r-=1);for(;i!==o;)i=i.parentNode,o=o.parentNode;return i},isElementAtBeginningOfBlock:function(t){for(var e,n;!a.isBlockContainer(t)&&!a.isMediumEditorElement(t);){for(n=t;n=n.previousSibling;)if(e=3===n.nodeType?n.nodeValue:n.textContent,e.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(t=a.traverseUp(t,function(t){return-1===a.emptyElementNames.indexOf(t.nodeName.toLowerCase())}),"table"===t.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;e<t.childNodes.length;e++){var n=a._getFirstTextNode(t.childNodes[e]);if(null!==n)return n}return null},ensureUrlHasProtocol:function(t){return-1===t.indexOf("://")?"http://"+t:t},warn:function(){void 0!==e.console&&"function"==typeof e.console.warn&&e.console.warn.apply(e.console,arguments)},deprecated:function(t,e,n){var r=t+" is deprecated, please use "+e+" instead.";n&&(r+=" Will be removed in "+n),a.warn(r)},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;i<r.length;i++)n.appendChild(r[i]);n.childNodes.length?t.parentNode.replaceChild(n,t):t.parentNode.removeChild(t)},guid:function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};t.util=a}(window),function(){var e=function(e){t.util.extend(this,e)};e.extend=function(e){var n,r=this;n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},t.util.extend(n,r);var i=function(){this.constructor=n};return i.prototype=r.prototype,n.prototype=new i,e&&t.util.extend(n.prototype,e),n},e.prototype={init:function(){},base:void 0,name:void 0,checkState:void 0,destroy:void 0,queryCommandState:void 0,isActive:void 0,isAlreadyApplied:void 0,setActive:void 0,setInactive:void 0,getInteractionElements:void 0,window:void 0,document:void 0,getEditorElements:function(){return this.base.elements},getEditorId:function(){return this.base.id},getEditorOption:function(t){return this.base.options[t]}},["execAction","on","off","subscribe","trigger"].forEach(function(t){e.prototype[t]=function(){return this.base[t].apply(this.base,arguments)}}),t.Extension=e}(),function(){function e(e){return t.util.isBlockContainer(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}var n={findMatchingSelectionParent:function(e,n){var r,i,o=n.getSelection();return 0!==o.rangeCount&&(r=o.getRangeAt(0),i=r.commonAncestorContainer,t.util.traverseUp(i,e))},getSelectionElement:function(e){return this.findMatchingSelectionParent(function(e){return t.util.isMediumEditorElement(e)},e)},exportSelection:function(t,e){if(!t)return null;var n=null,r=e.getSelection();if(r.rangeCount>0){var i,o=r.getRangeAt(0),a=o.cloneRange();a.selectNodeContents(t),a.setEnd(o.startContainer,o.startOffset),i=a.toString().length,n={start:i,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,c=!1,l=!1,f=0,d=!1,h=!1,p=null;for((r||t.startsWithImage||void 0!==t.emptyBlocksIndex)&&(h=!0);!d&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||l){if(t.trailingImageCount&&l&&("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 y=a.childNodes.length-1;y>=0;)s.push(a.childNodes[y]),y-=1}else o=u+a.length,!c&&t.start>=u&&t.start<=o&&(h||t.start<o?(i.setStart(a,t.start-u),c=!0):p=a),c&&t.end>=u&&t.end<=o&&(t.trailingImageCount?l=!0:(i.setEnd(a,t.end-u),d=!0)),u=o;d||(a=s.pop())}!c&&p&&(i.setStart(p,p.length),i.setEnd(p,p.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){var r=function(t){return"a"===t.nodeName.toLowerCase()};if(e.start===e.end&&3===n.startContainer.nodeType&&n.startOffset===n.startContainer.nodeValue.length&&t.util.traverseUp(n.startContainer,r)){for(var i=n.startContainer,o=n.startContainer.parentNode;null!==o&&"a"!==o.nodeName.toLowerCase();)o.childNodes[o.childNodes.length-1]!==i?o=null:(i=o,o=o.parentNode);if(null!==o&&"a"===o.nodeName.toLowerCase()){for(var a=null,s=0;null===a&&s<o.parentNode.childNodes.length;s++)o.parentNode.childNodes[s]===o&&(a=s);n.setStart(o.parentNode,a+1),n.collapse(!0)}}return n},importSelectionMoveCursorPastBlocks:function(n,r,i,o){var a,s,u=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),c=o.startContainer,l=0;for(i=i||1,a=3===c.nodeType&&t.util.isBlockContainer(c.previousSibling)?c.previousSibling:t.util.getClosestBlockContainer(c);u.nextNode();)if(s){if(s=u.currentNode,++l===i)break;if(s.textContent.length>0)break}else a===u.currentNode&&(s=u.currentNode);return s||(s=a),o.setStart(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),c=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),l=0;c.nextNode();){var f=""===c.currentNode.textContent;if((f||l>0)&&(l+=1),c.currentNode===u)return l;f||(l=0)}return l},doesRangeStartWithImages:function(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,c=!1,l=!1,f=!1,d=0;!f&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||l){if("img"===a.nodeName.toLowerCase()&&d++,a===i)f=!0;else if(1===a.nodeType)for(var h=a.childNodes.length-1;h>=0;)s.push(a.childNodes[h]),h-=1}else d=0,o=u+a.length,!c&&e.start>=u&&e.start<=o&&(c=!0),c&&e.end>=u&&e.end<=o&&(l=!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<n;e+=1)r.appendChild(o.getRangeAt(e).cloneContents());i=r.innerHTML}return i},getCaretOffsets:function(t,e){var n,r;return e||(e=window.getSelection().getRangeAt(0)),n=e.cloneRange(),r=e.cloneRange(),n.selectNodeContents(t),n.setEnd(e.endContainer,e.endOffset),r.selectNodeContents(t),r.setStart(e.endContainer,e.endOffset),{left:n.toString().length,right:r.toString().length}},rangeSelectsSingleNode:function(t){var e=t.startContainer;return e===t.endContainer&&e.hasChildNodes()&&t.endOffset===t.startOffset+1},getSelectedParentElement:function(t){return t?this.rangeSelectsSingleNode(t)&&3!==t.startContainer.childNodes[t.startOffset].nodeType?t.startContainer.childNodes[t.startOffset]:3===t.startContainer.nodeType?t.startContainer.parentNode:t.startContainer:null},getSelectedElements:function(t){var e,n,r,i=t.getSelection();if(!i.rangeCount||i.isCollapsed||!i.getRangeAt(0).commonAncestorContainer)return[];if(e=i.getRangeAt(0),3===e.commonAncestorContainer.nodeType){for(n=[],r=e.commonAncestorContainer;r.parentNode&&1===r.parentNode.childNodes.length;)n.push(r.parentNode),r=r.parentNode;return n}return[].filter.call(e.commonAncestorContainer.getElementsByTagName("*"),function(t){return"function"!=typeof i.containsNode||i.containsNode(t,!0)})},selectNode:function(t,e){var n=e.createRange();n.selectNodeContents(t),this.selectRange(e,n)},select:function(t,e,n,r,i){var o=t.createRange();return o.setStart(e,n),r?o.setEnd(r,i):o.collapse(!0),this.selectRange(t,o),o},clearSelection:function(t,e){e?t.getSelection().collapseToStart():t.getSelection().collapseToEnd()},moveCursor:function(t,e,n){this.select(t,e,n)},getSelectionRange:function(t){var e=t.getSelection();return 0===e.rangeCount?null:e.getRangeAt(0)},selectRange:function(t,e){var n=t.getSelection();n.removeAllRanges(),n.addRange(e)},getSelectionStart:function(t){var e=t.getSelection().anchorNode;return e&&3===e.nodeType?e.parentNode:e}};t.selection=n}(),function(){function e(e,n){return e.some(function(e){if("function"!=typeof e.getInteractionElements)return!1;var r=e.getInteractionElements();return!!r&&(Array.isArray(r)||(r=[r]),r.some(function(e){return t.util.isDescendant(e,n,!0)}))})}var n=function(t){this.base=t,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};n.prototype={InputEventOnContenteditableSupported:!t.util.isIE&&!t.util.isEdge,attachDOMEvent:function(e,n,r,i){var o=this.base.options.contentWindow,a=this.base.options.ownerDocument;e=t.util.isElement(e)||[o,a].indexOf(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],a[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;i<o;i+=1)if(a=this.events[i],a[0]===t&&a[1]===e&&a[2]===n&&a[3]===r)return i;return-1},detachAllDOMEvents:function(){for(var t=this.events.pop();t;)t[0].removeEventListener(t[1],t[2],t[3]),t=this.events.pop()},detachAllEventsFromElement:function(t){for(var e=this.events.filter(function(e){return e&&e[0].getAttribute&&e[0].getAttribute("medium-editor-index")===t.getAttribute("medium-editor-index")}),n=0,r=e.length;n<r;n++){var i=e[n];this.detachDOMEvent(i[0],i[1],i[2],i[3])}},attachAllEventsToElement:function(t){this.listeners.editableInput&&(this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML),this.eventsCache&&this.eventsCache.forEach(function(e){this.attachDOMEvent(t,e.name,e.handler.bind(this))},this)},enableCustomEvent:function(t){void 0!==this.disabledEvents[t]&&delete this.disabledEvents[t]},disableCustomEvent:function(t){this.disabledEvents[t]=!0},attachCustomEvent:function(t,e){this.setupListener(t),this.customEvents[t]||(this.customEvents[t]=[]),this.customEvents[t].push(e)},detachCustomEvent:function(t,e){var n=this.indexOfCustomListener(t,e);-1!==n&&this.customEvents[t].splice(n,1)},indexOfCustomListener:function(t,e){return this.customEvents[t]&&this.customEvents[t].length?this.customEvents[t].indexOf(e):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(t,e,n){this.customEvents[t]&&!this.disabledEvents[t]&&this.customEvents[t].forEach(function(t){t(e,n)})},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach(function(t){t.removeAttribute("data-medium-focused")})},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(t){this.handleDocumentExecCommand(t)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var t=this.options.ownerDocument;if(this.execCommandListener&&t.execCommand.listeners){var e=t.execCommand.listeners.indexOf(this.execCommandListener);-1!==e&&t.execCommand.listeners.splice(e,1),t.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var t=this.options.ownerDocument;if(!t.execCommand.listeners){var e=function(e,n){t.execCommand.listeners&&t.execCommand.listeners.forEach(function(t){t({command:e[0],value:e[2],args:e,result:n})})},n=function(){var n=t.execCommand.orig.apply(this,arguments);if(!t.execCommand.listeners)return n;var r=Array.prototype.slice.call(arguments);return e(r,n),n};n.orig=t.execCommand,n.listeners=[],n.callListeners=e,t.execCommand=n}},unwrapExecCommand:function(){var t=this.options.ownerDocument;t.execCommand.orig&&(t.execCommand=t.execCommand.orig)},setupListener:function(t){if(!this.listeners[t]){switch(t){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache={},this.base.elements.forEach(function(t){this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML},this),this.InputEventOnContenteditableSupported&&this.attachToEachElement("input",this.handleInput),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":case"editableKeydownEnter":case"editableKeydownTab":case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[t]=!0}},attachToEachElement:function(t,e){this.eventsCache||(this.eventsCache=[]),this.base.elements.forEach(function(n){this.attachDOMEvent(n,t,e.bind(this))},this),this.eventsCache.push({name:t,handler:e})},cleanupElement:function(t){var e=t.getAttribute("medium-editor-index");e&&(this.detachAllEventsFromElement(t),this.contentCache&&delete this.contentCache[e])},focusElement:function(t){t.focus(),this.updateFocus(t,{target:t,type:"focus"})},updateFocus:function(n,r){var i,o=this.base.getFocusedElement();o&&"click"===r.type&&this.lastMousedownTarget&&(t.util.isDescendant(o,this.lastMousedownTarget,!0)||e(this.base.extensions,this.lastMousedownTarget))&&(i=o),i||this.base.elements.some(function(e){return!i&&t.util.isDescendant(e,n,!0)&&(i=e),!!i},this);var a=!t.util.isDescendant(o,n,!0)&&!e(this.base.extensions,n);i!==o&&(o&&a&&(o.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",r,o)),i&&(i.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",r,i))),a&&this.triggerCustomEvent("externalInteraction",r)},updateInput:function(t,e){if(this.contentCache){var n=t.getAttribute("medium-editor-index"),r=t.innerHTML;r!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",e,t),this.contentCache[n]=r}},handleDocumentSelectionChange:function(e){if(e.currentTarget&&e.currentTarget.activeElement){var n,r=e.currentTarget.activeElement;this.base.elements.some(function(e){return!!t.util.isDescendant(e,r,!0)&&(n=e,!0)},this),n&&this.updateInput(n,{target:r,currentTarget:n})}},handleDocumentExecCommand:function(){var t=this.base.getFocusedElement();t&&this.updateInput(t,{target:t,currentTarget:t})},handleBodyClick:function(t){this.updateFocus(t.target,t)},handleBodyFocus:function(t){this.updateFocus(t.target,t)},handleBodyMousedown:function(t){this.lastMousedownTarget=t.target},handleInput:function(t){this.updateInput(t.currentTarget,t)},handleClick:function(t){this.triggerCustomEvent("editableClick",t,t.currentTarget)},handleBlur:function(t){this.triggerCustomEvent("editableBlur",t,t.currentTarget)},handleKeypress:function(t){if(this.triggerCustomEvent("editableKeypress",t,t.currentTarget),this.keypressUpdateInput){var e={target:t.target,currentTarget:t.currentTarget};setTimeout(function(){this.updateInput(e.currentTarget,e)}.bind(this),0)}},handleKeyup:function(t){this.triggerCustomEvent("editableKeyup",t,t.currentTarget)},handleMouseover:function(t){this.triggerCustomEvent("editableMouseover",t,t.currentTarget)},handleDragging:function(t){this.triggerCustomEvent("editableDrag",t,t.currentTarget)},handleDrop:function(t){this.triggerCustomEvent("editableDrop",t,t.currentTarget)},handlePaste:function(t){this.triggerCustomEvent("editablePaste",t,t.currentTarget)},handleKeydown:function(e){return this.triggerCustomEvent("editableKeydown",e,e.currentTarget),t.util.isKey(e,t.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.ENTER)||e.ctrlKey&&t.util.isKey(e,t.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",e,e.currentTarget):t.util.isKey(e,[t.util.keyCode.DELETE,t.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",e,e.currentTarget):void 0}},t.Events=n}(),function(){var e=t.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(n){e.isBuiltInButton(n)?t.Extension.call(this,this.defaults[n]):t.Extension.call(this,n)},init:function(){t.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var t=this.document.createElement("button"),e=this.contentDefault,n=this.getAria(),r=this.getEditorOption("buttonLabels");return t.classList.add("medium-editor-action"),t.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach(function(e){t.classList.add(e)}),t.setAttribute("data-action",this.getAction()),n&&(t.setAttribute("title",n),t.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach(function(e){t.setAttribute(e,this.attrs[e])},this),"fontawesome"===r&&this.contentFA&&(e=this.contentFA),t.innerHTML=e,t},handleClick:function(t){t.preventDefault(),t.stopPropagation();var e=this.getAction();e&&this.execAction(e)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")),delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var t=null;return this.useQueryState&&(t=this.base.queryCommandState(this.getAction())),t},isAlreadyApplied:function(t){var e,n,r=!1,i=this.getTagNames();return!1===this.knownState||!0===this.knownState?this.knownState:(i&&i.length>0&&(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)}});e.isBuiltInButton=function(e){return"string"==typeof e&&t.extensions.button.prototype.defaults.hasOwnProperty(e)},t.extensions.button=e}(),function(){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>B</b>",contentFA:'<i class="fa fa-bold"></i>'},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"<b><i>I</i></b>",contentFA:'<i class="fa fa-italic"></i>'},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"<b><u>U</u></b>",contentFA:'<i class="fa fa-underline"></i>'},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"<s>A</s>",contentFA:'<i class="fa fa-strikethrough"></i>'},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"<b>x<sup>1</sup></b>",contentFA:'<i class="fa fa-superscript"></i>'},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"<b>x<sub>1</sub></b>",contentFA:'<i class="fa fa-subscript"></i>'},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"<b>image</b>",contentFA:'<i class="fa fa-picture-o"></i>'},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"<b>html</b>",contentFA:'<i class="fa fa-code"></i>'},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"<b>1.</b>",contentFA:'<i class="fa fa-list-ol"></i>'},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"<b>&bull;</b>",contentFA:'<i class="fa fa-list-ul"></i>'},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"<b>&rarr;</b>",contentFA:'<i class="fa fa-indent"></i>'},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"<b>&larr;</b>",contentFA:'<i class="fa fa-outdent"></i>'},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"<b>C</b>",contentFA:'<i class="fa fa-align-center"></i>'},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"<b>J</b>",contentFA:'<i class="fa fa-align-justify"></i>'},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"<b>L</b>",contentFA:'<i class="fa fa-align-left"></i>'},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"<b>R</b>",contentFA:'<i class="fa fa-align-right"></i>'},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"<b>X</b>",contentFA:'<i class="fa fa-eraser"></i>'},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"<b>&ldquo;</b>",contentFA:'<i class="fa fa-quote-right"></i>'},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"<b>0101</b>",contentFA:'<i class="fa fa-code fa-lg"></i>'},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"<b>H1</b>",contentFA:'<i class="fa fa-header"><sup>1</sup>'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"<b>H2</b>",contentFA:'<i class="fa fa-header"><sup>2</sup>'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"<b>H3</b>",contentFA:'<i class="fa fa-header"><sup>3</sup>'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"<b>H4</b>",contentFA:'<i class="fa fa-header"><sup>4</sup>'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"<b>H5</b>",contentFA:'<i class="fa fa-header"><sup>5</sup>'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"<b>H6</b>",contentFA:'<i class="fa fa-header"><sup>6</sup>'}}}(),function(){var e=t.extensions.button.extend({init:function(){t.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"&#10003;",formCloseLabel:"&times;",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=e}(),function(){var e=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:"<b>#</b>",contentFA:'<i class="fa fa-link"></i>',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=['<input type="text" class="medium-editor-toolbar-input" placeholder="',this.placeholderText,'">'];return t.push('<a href="#" class="medium-editor-toolbar-save">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':this.formSaveLabel,"</a>"),t.push('<a href="#" class="medium-editor-toolbar-close">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':this.formCloseLabel,"</a>"),this.targetCheckbox&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-target" id="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">','<label for="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">',this.targetCheckboxText,"</label>","</div>"),this.customClassOption&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-button">',"<label>",this.customClassOptionText,"</label>","</div>"),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(e=e||{value:""},"string"==typeof e&&(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(r))},ensureEncodedQuery:function(t){return t.split("&").map(this.ensureEncodedParam.bind(this)).join("&")},checkLinkFormat:function(t){var e=/^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i,n=e.test(t),r="",i=/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/,o=t.match(/^(.*?)(?:\?(.*?))?(?:#(.*))?$/),a=o[1],s=o[2],u=o[3];if(i.test(t))return"tel:"+t;if(!n){var c=a.split("/")[0];(c.match(/.+(\.|:).+/)||"localhost"===c)&&(r="http://")}return r+this.ensureEncodedUri(a)+(void 0===s?"":"?"+this.ensureEncodedQuery(s))+(void 0===u?"":"#"+u)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(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,e=t.createElement("div");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),e.innerHTML=this.getTemplate(),this.attachFormEvents(e),e},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=e}(),function(){var e=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'<div class="medium-editor-toolbar-anchor-preview" id="medium-editor-toolbar-anchor-preview"> <a class="medium-editor-toolbar-anchor-preview-inner"></a></div>'},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(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(),c=this.diffLeft,l=this.diffTop,f=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,h={};e=this.anchorPreview.offsetWidth/2;var p=this.base.getExtensionByName("toolbar");p&&(c=p.diffLeft,l=p.diffTop),n=c-e,d?(i=f.getBoundingClientRect(),["top","left"].forEach(function(t){h[t]=u[t]-i[t]}),h.width=u.width,h.height=u.height,u=h,a=i.width,o=f.scrollTop):o=this.window.pageYOffset,r=u.left+u.width/2,o+=s+u.top+u.height-l-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(o)+"px",this.anchorPreview.style.right="initial",r<e?(this.anchorPreview.style.left=n+e+"px",this.anchorPreview.style.right="initial"):a-r<e?(this.anchorPreview.style.left="auto",this.anchorPreview.style.right=0):(this.anchorPreview.style.left=n+r+"px",this.anchorPreview.style.right="initial")},attachToEditables:function(){this.subscribe("editableMouseover",this.handleEditableMouseover.bind(this)),this.subscribe("positionedToolbar",this.handlePositionedToolbar.bind(this))},handlePositionedToolbar:function(){this.showWhenToolbarIsVisible||this.hidePreview()},handleClick:function(t){var e=this.base.getExtensionByName("anchor"),n=this.activeAnchor;e&&n&&(t.preventDefault(),this.base.selectElement(this.activeAnchor),this.base.delay(function(){if(n){var t={value:n.attributes.href.value,target:n.getAttribute("target"),buttonClass:n.getAttribute("class")};e.showForm(t),n=null}}.bind(this))),this.hidePreview()},handleAnchorMouseout:function(){this.anchorToPreview=null,this.off(this.activeAnchor,"mouseout",this.instanceHandleAnchorMouseout),this.instanceHandleAnchorMouseout=null},handleEditableMouseover:function(e){var n=t.util.getClosestTag(e.target,"a");if(!1!==n){if(!this.showOnEmptyLinks&&(!/href=["']\S+["']/.test(n.outerHTML)||/href=["']#\S+["']/.test(n.outerHTML)))return!0;var r=this.base.getExtensionByName("toolbar");if(!this.showWhenToolbarIsVisible&&r&&r.isDisplayed&&r.isDisplayed())return!0;this.activeAnchor&&this.activeAnchor!==n&&this.detachPreviewHandlers(),this.anchorToPreview=n,this.instanceHandleAnchorMouseout=this.handleAnchorMouseout.bind(this),this.on(this.anchorToPreview,"mouseout",this.instanceHandleAnchorMouseout),this.base.delay(function(){this.anchorToPreview&&this.showPreview(this.anchorToPreview)}.bind(this))}},handlePreviewMouseover:function(){this.lastOver=(new Date).getTime(),this.hovering=!0},handlePreviewMouseout:function(t){t.relatedTarget&&/anchor-preview/.test(t.relatedTarget.className)||(this.hovering=!1)},updatePreview:function(){if(this.hovering)return!0;(new Date).getTime()-this.lastOver>this.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}});t.extensions.anchorPreview=e}(),function(){function e(e){return!t.util.getClosestTag(e,"a")}var n,r,i,o,a;n=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],r="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw",i="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+r+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+r+"))",o=new RegExp("^("+r+")$","i"),a=new RegExp(i,"gi");var s=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[e];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,[t.util.keyCode.SPACE,t.util.keyCode.ENTER])&&(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=[e]);for(var i=0;i<n.length;i++)r=this.removeObsoleteAutoLinkSpans(n[i])||r,r=this.performLinkingWithinElement(n[i])||r;return this.base.events.updateInput(e,{target:e,currentTarget:e}),r},removeObsoleteAutoLinkSpans:function(n){if(!n||3===n.nodeType)return!1;for(var r=n.querySelectorAll('span[data-auto-link="true"]'),i=!1,o=0;o<r.length;o++){var a=r[o].textContent;if(-1===a.indexOf("://")&&(a=t.util.ensureUrlHasProtocol(a)),r[o].getAttribute("data-href")!==a&&e(r[o])){i=!0;var s=a.replace(/\s+$/,"");if(r[o].getAttribute("data-href")===s){var u=a.length-s.length,c=t.util.splitOffDOMTree(r[o],this.splitTextBeforeEnd(r[o],u));r[o].parentNode.insertBefore(c,r[o].nextSibling)}else t.util.unwrap(r[o],this.document)}}return i},splitTextBeforeEnd:function(t,e){for(var n=this.document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),r=!0;r;)r=null!==n.lastChild();for(var i,o,a;e>0&&null!==a;)i=n.currentNode,o=i.nodeValue,o.length>e?(a=i.splitText(o.length-e),e=0):(a=n.previousNode(),e-=o.length);return a},performLinkingWithinElement:function(e){for(var n=this.findLinkableText(e),r=0;r<n.length;r++){var i=t.util.findOrCreateMatchingTextNodes(this.document,e,n[r]);this.shouldNotLink(i)||this.createAutoLink(i,n[r].href)}return!1},shouldNotLink:function(e){for(var n=!1,r=0;r<e.length&&!1===n;r++)n=!!t.util.traverseUp(e[r],function(t){return"a"===t.nodeName.toLowerCase()||t.getAttribute&&"true"===t.getAttribute("data-auto-link")});return n},findLinkableText:function(t){for(var e=t.textContent,r=null,i=[];null!==(r=a.exec(e));){var s=!0,u=r.index+r[0].length;s=!(0!==r.index&&-1===n.indexOf(e[r.index-1])||u!==e.length&&-1===n.indexOf(e[u])),s=s&&(-1!==r[0].indexOf("/")||o.test(r[0].split(".").pop().split("?").shift())),s&&i.push({href:r[0],start:r.index,end:u})}return i},createAutoLink:function(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[1])}});t.extensions.autoLink=s}(),function(){function e(e){var r=t.util.getContainerEditorElement(e);Array.prototype.slice.call(r.parentElement.querySelectorAll("."+n)).forEach(function(t){t.classList.remove(n)})}var n="medium-editor-dragover",r=t.Extension.extend({name:"fileDragging",allowedTypes:["image"],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 r=t.target.classList?t.target:t.target.parentElement;e(r),"dragover"===t.type&&r.classList.add(n)},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=r}(),function(){var e=t.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){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[e]||(this.keys[e]=[]),this.keys[e].push(t)},this)},handleKeydown:function(e){var n=t.util.getKeyCode(e);if(this.keys[n]){var r=t.util.isMetaCtrlKey(e),i=!!e.shiftKey,o=!!e.altKey;this.keys[n].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=e}(),function(){var e=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<this.fonts.length;a++)t=e.createElement("option"),t.innerHTML=this.fonts[a],t.value=this.fonts[a],r.appendChild(t);return r.className="medium-editor-toolbar-select",n.appendChild(r),this.on(r,"change",this.handleFontChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#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=e}(),function(){var e=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(r),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=e}(),function(){function e(){return[[new RegExp(/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/<!--StartFragment-->|<!--EndFragment-->/g),""],[new RegExp(/<br>$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(<br[^>]*>)?$/gi),""],[new RegExp(/<span class="Apple-converted-space">\s+<\/span>/g)," "],[new RegExp(/<br class="Apple-interchange-newline">/g),"<br>"],[new RegExp(/<span[^>]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),'<span class="replace-with italic bold">'],[new RegExp(/<span[^>]*font-style:italic[^>]*>/gi),'<span class="replace-with italic">'],[new RegExp(/<span[^>]*font-weight:(bold|700)[^>]*>/gi),'<span class="replace-with bold">'],[new RegExp(/&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:[a-z]*>/gi),""],[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/gi),"$1"]]}function n(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["text/plain"]=o)}if(r.types)for(var a=0;a<r.types.length;a++){var s=r.types[a];i[s]=r.getData(s)}return i}var r=null,i=null,o=function(t){t.stopPropagation()},a=t.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],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 r=n(t,this.window,this.document),i=r["text/html"],o=r["text/plain"];this.window.clipboardData&&void 0===t.clipboardData&&!i&&(i=o),(i||o)&&(t.preventDefault(),this.doPaste(i,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(/[\r\n]+/g),i.length>1)for(o=0;o<i.length;o+=1)""!==i[o]&&(a+="<p>"+t.util.htmlEntities(i[o])+"</p>");else a=t.util.htmlEntities(i[0]);t.util.insertHTMLCommand(this.document,a)},handlePasteBinPaste:function(t){if(t.defaultPrevented)return void this.removePasteBin();var e=n(t,this.window,this.document),r=e["text/html"],o=e["text/plain"],a=i;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(e){var n,a=t.selection.getSelectionRange(this.document),s=this.window.pageYOffset;i=e,a&&(n=a.getClientRects(),n.length?s+=n[0].top:void 0!==a.startContainer.getBoundingClientRect?s+=a.startContainer.getBoundingClientRect().top:s+=a.getBoundingClientRect().top),r=a;var u=this.document.createElement("div");u.id=this.pasteBinId="medium-editor-pastebin-"+ +Date.now(),u.setAttribute("style","border: 1px red solid; position: absolute; top: "+s+"px; width: 10px; height: 10px; overflow: hidden; opacity: 0"),u.setAttribute("contentEditable",!0),u.innerHTML="%ME_PASTEBIN%",this.document.body.appendChild(u),this.on(u,"focus",o),this.on(u,"focusin",o),this.on(u,"focusout",o),u.focus(),t.selection.selectNode(u,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(u,"paste",this.boundHandlePaste)},removePasteBin:function(){null!==r&&(t.selection.selectRange(this.document,r),r=null),null!==i&&(i=null);var e=this.getPasteBin();e&&e&&(this.off(e,"focus",o),this.off(e,"focusin",o),this.off(e,"focusout",o),this.off(e,"paste",this.boundHandlePaste),e.parentElement.removeChild(e))},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 n,r,i,o,a=/<p|<br|<div/.test(t),s=[].concat(this.preCleanReplacements||[],e(),this.cleanReplacements||[]);for(n=0;n<s.length;n+=1)t=t.replace(s[n][0],s[n][1]);if(!a)return this.pasteHTML(t);for(i=this.document.createElement("div"),i.innerHTML="<p>"+t.split("<br><br>").join("</p><p>")+"</p>",r=i.querySelectorAll("a,p,div,br"),n=0;n<r.length;n+=1)switch(o=r[n],o.innerHTML=o.innerHTML.replace(/\n/gi," "),o.nodeName.toLowerCase()){case"p":case"div":this.filterCommonBlocks(o);break;case"br":this.filterLineBreak(o)}this.pasteHTML(i.innerHTML)},pasteHTML:function(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"),a.innerHTML=e,this.cleanupSpans(a),r=a.querySelectorAll("*"),o=0;o<r.length;o+=1)i=r[o],"a"===i.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<o.length;n+=1)r=o[n],i=this.document.createElement(r.classList.contains("bold")?"b":"i"),r.classList.contains("bold")&&r.classList.contains("italic")?i.innerHTML="<i>"+r.innerHTML+"</i>":i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=e.querySelectorAll("span"),n=0;n<o.length;n+=1){if(r=o[n],t.util.traverseUp(r,a))return!1;t.util.unwrap(r,this.document)}}});t.extensions.paste=a}(),function(){var e=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=e}(),function(){var e=t.Extension.extend({name:"toolbar",align:"center",allowMultiParagraphSelection:!0,buttons:["bold","italic","underline","anchor","h2","h3","quote"],diffLeft:0,diffTop:-10,firstButtonClass:"medium-editor-button-first",lastButtonClass:"medium-editor-button-last",standardizeSelectionStart:!1,static:!1,sticky:!1,stickyTopOffset:0,updateOnEmptySelection:!1,relativeContainer:null,init:function(){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(r){"string"==typeof r?(o=r,a=null):(o=r.name,a=r),(i=this.base.addBuiltInExtension(o,a))&&"function"==typeof i.getButton&&(n=i.getButton(this.base),e=this.document.createElement("li"),t.util.isElement(n)?e.appendChild(n):e.innerHTML=n,s.appendChild(e))},this),r=s.querySelectorAll("button"),r.length>0&&(r[0].classList.add(this.firstButtonClass),r[r.length-1].classList.add(this.lastButtonClass)),s},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=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=/<[^\/>][^>]*><\/[^>]+>/gim,n=new RegExp("<("+t.util.blockContainerElementNames.join("|")+")[^>]*>","g"),r=t.selection.getSelectionHtml(this.document).replace(e,""),i=r.match(n);return!!i&&i.length>1},modifySelection:function(){var e=this.window.getSelection(),n=e.getRangeAt(0);if(this.standardizeSelectionStart&&n.startContainer.nodeValue&&n.startOffset===n.startContainer.nodeValue.length){var r=t.util.findAdjacentTextNodeWithContent(t.selection.getSelectionElement(this.window),n.startContainer,this.document);if(r){for(var i=0;0===r.nodeValue.substr(i,1).trim().length;)i+=1;n=t.selection.select(this.document,r,i,n.endContainer,n.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||t.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var e=t.selection.getSelectionElement(this.window);return!e||-1===this.getEditorElements().indexOf(e)||e.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this.static?this.showAndUpdateToolbar():!t.selection.selectionContainsContent(this.document)||!1===this.allowMultiParagraphSelection&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension(function(t){"function"==typeof t.isActive&&"function"==typeof t.setInactive&&t.setInactive()}),this.checkActiveButtons()},checkActiveButtons:function(){var e,n=[],r=null,i=t.selection.getSelectionRange(this.document),o=function(t){"function"==typeof t.checkState?t.checkState(e):"function"==typeof t.isActive&&"function"==typeof t.isAlreadyApplied&&"function"==typeof t.setActive&&!t.isActive()&&t.isAlreadyApplied(e)&&t.setActive()};if(i&&(this.forEachExtension(function(t){if("function"==typeof t.queryCommandState&&null!==(r=t.queryCommandState()))return void(r&&"function"==typeof t.setActive&&t.setActive());n.push(t)}),e=t.selection.getSelectedParentElement(i),this.getEditorElements().some(function(n){return t.util.isDescendant(n,e,!0)})))for(;e&&(n.forEach(o),!t.util.isMediumEditorElement(e));)e=e.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var t=this.base.getFocusedElement(),e=this.window.getSelection();if(!t)return this;!this.static&&e.isCollapsed||(this.showToolbar(),this.relativeContainer||(this.static?this.positionStaticToolbar(t):this.positionToolbar(e)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))},positionStaticToolbar:function(t){this.getToolbarElement().style.left="0";var e,n=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,r=this.window.innerWidth,i=this.getToolbarElement(),o=t.getBoundingClientRect(),a=o.top+n,s=o.left+o.width/2,u=i.offsetHeight,c=i.offsetWidth,l=c/2;switch(this.sticky?n>a+t.offsetHeight-u-this.stickyTopOffset?(i.style.top=a+t.offsetHeight-u+"px",i.classList.remove("medium-editor-sticky-toolbar")):n>a-u-this.stickyTopOffset?(i.classList.add("medium-editor-sticky-toolbar"),i.style.top=this.stickyTopOffset+"px"):(i.classList.remove("medium-editor-sticky-toolbar"),i.style.top=a-u+"px"):i.style.top=a-u+"px",this.align){case"left":e=o.left;break;case"right":e=o.right-c;break;case"center":e=s-l}e<0?e=0:e+c>r&&(e=r-Math.ceil(c)-1),i.style.left=e+"px"},positionToolbar:function(t){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var e=t.getRangeAt(0),n=e.getBoundingClientRect();(!n||0===n.height&&0===n.width&&e.startContainer===e.endContainer)&&(n=1===e.startContainer.nodeType&&e.startContainer.querySelector("img")?e.startContainer.querySelector("img").getBoundingClientRect():e.startContainer.getBoundingClientRect());var r,i,o=this.window.innerWidth,a=this.getToolbarElement(),s=a.offsetHeight,u=a.offsetWidth,c=u/2,l=this.diffLeft-c,f=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,h={},p={};d?(i=f.getBoundingClientRect(),["top","left"].forEach(function(t){p[t]=n[t]-i[t]}),p.width=n.width,p.height=n.height,n=p,o=i.width,h.top=f.scrollTop):h.top=this.window.pageYOffset,r=n.left+n.width/2,h.top+=n.top-s,n.top<50?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),h.top+=50+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),h.top+=this.diffTop),r<c?(h.left=l+c,h.right="initial"):o-r<c?(h.left="auto",h.right=0):(h.left=l+r,h.right="initial"),["top","left","right"].forEach(function(t){a.style[t]=h[t]+(isNaN(h[t])?"":"px")})}});t.extensions.toolbar=e}(),function(){var e=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){var n;e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&(n=Array.prototype.slice.call(e.dataTransfer.files,0),n.some(function(e){if(e.type.match("image")){var n,r;n=new FileReader,n.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(r);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=e}(),function(){function e(e){var n=t.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,i=t.selection.getCaretOffsets(n);(void 0===r[i.left-1]||""===r[i.left-1].trim()||void 0!==r[i.left]&&""===r[i.left].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+|<br\/?>)?$/i,a=/h\d/i;t.util.isKey(e,[t.util.keyCode.BACKSPACE,t.util.keyCode.ENTER])&&r.previousElementSibling&&a.test(i)&&0===t.selection.getCaretOffsets(r).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"),n.innerHTML="<br>",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(r),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"),n.innerHTML="<br>",r.parentElement.parentElement.insertBefore(n,r.parentElement),t.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild(r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&!1!==t.util.getClosestTag(r,"blockquote")&&0===t.selection.getCaretOffsets(r).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(r).right?(n=this.options.ownerDocument.createElement("p"),n.innerHTML="<br>",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(r))}function o(e){var n,r=t.selection.getSelectionStart(this.options.ownerDocument);r&&(t.util.isMediumEditorElement(r)&&0===r.children.length&&!t.util.isBlockContainer(r)&&this.options.ownerDocument.execCommand("formatBlock",!1,"p"),!t.util.isKey(e,t.util.keyCode.ENTER)||t.util.isListItem(r)||t.util.isBlockContainer(r)||(n=r.nodeName.toLowerCase(),"a"===n?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[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]');n&&(n.value=e.innerHTML.trim())}function s(t){t._mediumEditors||(t._mediumEditors=[null]),this.id||(this.id=t._mediumEditors.length),t._mediumEditors[this.id]=this}function u(t){t._mediumEditors&&t._mediumEditors[this.id]&&(t._mediumEditors[this.id]=null)}function c(e,n,r){var i=[];if(e||(e=[]),"string"==typeof e&&(e=n.querySelectorAll(e)),t.util.isElement(e)&&(e=[e]),r)for(var o=0;o<e.length;o++){var a=e[o];!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 l(t){var e=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');e&&(e.classList.remove("medium-editor-hidden"),e.removeAttribute("medium-editor-textarea-id")),t.parentNode&&t.parentNode.removeChild(t)}function f(t,e){return Object.keys(e).forEach(function(n){void 0===t[n]&&(t[n]=e[n])}),t}function d(t,e,n){return t=f(t,{window:n.options.contentWindow,document:n.options.ownerDocument,base:n}),"function"==typeof t.init&&t.init(),t.name||(t.name=e),t}function h(){return!this.elements.every(function(t){return!!t.getAttribute("data-disable-toolbar")})&&!1!==this.options.toolbar}function p(){return!!h.call(this)&&!1!==this.options.anchorPreview}function v(){return!1!==this.options.placeholder}function y(){return!1!==this.options.autoLink}function m(){return!1!==this.options.imageDragging}function b(){return!1!==this.options.keyboardCommands}function g(){return!this.options.extensions.imageDragging}function w(t){for(var e=this.options.ownerDocument.createElement("div"),n=Date.now(),r="medium-editor-"+n,i=t.attributes;this.options.ownerDocument.getElementById(r);)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<a;o++)e.hasAttribute(i[o].nodeName)||e.setAttribute(i[o].nodeName,i[o].nodeValue);return t.form&&this.on(t.form,"reset",function(t){t.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById(r))}.bind(this)),t.classList.add("medium-editor-hidden"),t.parentNode.insertBefore(e,t),e}function _(e,r){if(!e.getAttribute("data-medium-editor-element")){"textarea"===e.nodeName.toLowerCase()&&(e=w.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),j[i]=e.innerHTML,this.events.attachAllEventsToElement(e)}return e}function k(){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[t]&&this.extensions.push(d(this.options.extensions[t],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:y.call(this),keyboardCommands:b.call(this),placeholder:v.call(this)};Object.keys(n).forEach(function(t){n[t]&&this.addBuiltInExtension(t)},this);var r=this.options.extensions.toolbar;if(!r&&h.call(this)){var i=t.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new t.extensions.toolbar(i)}r&&this.extensions.push(d(r,"toolbar",this))}function E(e,n){var r=[["allowMultiParagraphSelection","toolbar.allowMultiParagraphSelection"]];return n&&r.forEach(function(e){n.hasOwnProperty(e[0])&&void 0!==n[e[0]]&&t.util.deprecated(e[0],e[1],"v6.0.0")}),t.util.defaults({},n,e)}function x(e,n){var r,i,o=/^append-(.+)$/gi,a=/justify([A-Za-z]*)$/g;if(r=o.exec(e))return t.util.execFormatBlock(this.options.ownerDocument,r[1]);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 s=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand("insertImage",!1,s)}if("html"===e){var u=this.options.contentWindow.getSelection().toString().trim();return t.util.insertHTMLCommand(this.options.ownerDocument,u)}if(a.exec(e)){var c=this.options.ownerDocument.execCommand(e,!1,null),l=t.selection.getSelectedParentElement(t.selection.getSelectionRange(this.options.ownerDocument));return l&&C.call(this,t.util.getTopBlockContainer(l)),c}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(r){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 j={};t.prototype={init:function(t,e){return this.options=E.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),k.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")&&l(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={},r=this.elements.length;for(t=0;t<r;t+=1)e=""!==this.elements[t].id?this.elements[t].id:"element-"+t,n[e]={value:this.elements[t].innerHTML.trim()};return n},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(r);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[e]),i=new t.extensions.button(r)):i=new t.extensions.button(e))}return i&&this.extensions.push(d(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=/^full-(.+)$/gi,r=null;(e=n.exec(t))&&(t=e[1]);try{r=this.options.ownerDocument.queryCommandState(t)}catch(t){r=null}return r},execAction:function(e,n){var r,i,o=/^full-(.+)$/gi;return r=o.exec(e),r?(this.saveSelection(),this.selectAllContents(),i=x.call(this,r[1],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[0];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[e.editableElementIndex||0];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(r)){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,c,l=o.getRangeAt(0),f=l.commonAncestorContainer;if(3===l.endContainer.nodeType&&3!==l.startContainer.nodeType&&0===l.startOffset&&l.startContainer.firstChild===l.endContainer&&(f=l.endContainer),s=t.util.getClosestBlockContainer(l.startContainer),u=t.util.getClosestBlockContainer(l.endContainer),3!==f.nodeType&&0!==f.textContent.length&&s===u){var d=s||r,h=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),a=this.exportSelection(),h.appendChild(d.cloneNode(!0)),r===d?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 p=this.exportSelection();c=t.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,h,{start:a.start-p.start,end:a.end-p.start,editableElementIndex:a.editableElementIndex}),0===c.length&&(h=this.options.ownerDocument.createDocumentFragment(),h.appendChild(f.cloneNode(!0)),c=[h.firstChild.firstChild,h.firstChild.lastChild]),t.util.createLink(this.options.ownerDocument,c,n.trim());var v=(h.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;t.util.insertHTMLCommand(this.options.ownerDocument,h.firstChild.innerHTML.replace(/^\s+/,"")),a.start-=v,a.end-=v,this.importSelection(a)}else this.options.ownerDocument.execCommand("createLink",!1,n);this.options.targetBlank||"_blank"===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"),i.initEvent("input",!0,!0,this.options.contentWindow);for(var y=0,m=this.elements.length;y<m;y+=1)this.elements[y].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[e]){var n=this.elements[e];n.innerHTML=t,this.checkContentChanged(n)}},getContent:function(t){return t=t||0,this.elements[t]?this.elements[t].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);return void(-1!==e&&this.setContent(j[t.getAttribute("medium-editor-index")],e))}this.elements.forEach(function(t,e){this.setContent(j[t.getAttribute("medium-editor-index")],e)},this)},addElements:function(t){var e=c(t,this.options.ownerDocument,!0);if(0===e.length)return!1;e.forEach(function(t){t=_.call(this,t,this.id),this.elements.push(t),this.trigger("addElement",{target:t,currentTarget:t},t)},this)},removeElements:function(t){var e=c(t,this.options.ownerDocument),n=e.map(function(t){return t.getAttribute("medium-editor-textarea-id")&&t.parentNode?t.parentNode.querySelector('div[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]'):t});this.elements=this.elements.filter(function(t){return-1===n.indexOf(t)||(this.events.cleanupElement(t),t.getAttribute("medium-editor-textarea-id")&&l(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[e]?n._mediumEditors[e]:null}}(),function(){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[0].split("."),r=e.length>1?e[1]:"";return{major:parseInt(n[0],10),minor:parseInt(n[1],10),revision:parseInt(n[2],10),preRelease:r,toString:function(){return[n[0],n[1],n[2]].join(".")+(r?"-"+r:"")}}},t.version=t.parseVersionString.call(this,{version:"5.23.2"}.version),t}())}).call(e,n(91))},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)))return void console.error('[Custom-Button] You need to specify "label", "start" and "end" OR "label" and "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=i(),r=window.getSelection(),o=r.anchorNode.parentElement;void 0===t.start||-1==n.indexOf(t.start)&&-1==n.indexOf(t.end)?(void 0!=t.action&&(n=t.action(n,!0,o)),n=t.start+n+t.end):(void 0!=t.action&&(n=t.action(n,!1,o)),n=String(n).split(t.start).join(""),n=String(n).split(t.end).join(""));var a,s;if(r.getRangeAt&&r.rangeCount){if(a=window.getSelection().getRangeAt(0),a.deleteContents(),a.createContextualFragment)s=a.createContextualFragment(n);else{var u=document.createElement("div");for(u.innerHTML=n,s=document.createDocumentFragment();child=u.firstChild;)s.appendChild(child)}var c=s.firstChild,l=s.lastChild;a.insertNode(s),c&&(a.setStartBefore(c),a.setEndAfter(l)),r.removeAllRanges(),r.addRange(a)}e.base.checkContentChanged()}}function i(){var t,e="";if(void 0!==window.getSelection){if(t=window.getSelection(),t.rangeCount){for(var n=document.createElement("div"),r=0,i=t.rangeCount;r<i;++r)n.appendChild(t.getRangeAt(r).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")},void 0!==t&&t.exports&&(e=t.exports=r),e.MediumButton=r},function(t,e,n){"use strict";function r(t,e){var n=document.createElement("div");n.classList.add("ql-svt-container"),t.appendChild(n);var r=new a.a(n,i());return r.clipboard.dangerouslyPasteHTML(e.getContent()),r.history.clear(),r.on("text-change",function(){e.setContent(Object(s.a)(r))}),r.enable(),r}function i(){return{formats:["blockquote","bold","code","code-block","header","image","italic","link","list","script","strike","target","underline","video"],modules:{scrivitoApi:!0,scrivitoInternalLink:!0,scrivitoLinkTooltip:!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",readOnly:!0,theme:"scrivito"}}var o=n(73),a=n.n(o),s=n(330),u=n(331),c=(n(332),n(333));n(334),n(335);Object(u.a)(),Object(c.a)(),e.a=r},function(t,e,n){"use strict";(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(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 c(this,t)}return a(this,t,e,n)}function a(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?d(t,e,n,r):"string"==typeof e?l(t,e,n):h(t,e)}function s(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 u(t,e,n,r){return s(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function c(t,e){if(s(e),t=i(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(e,n);t=i(t,r);var a=t.write(e,n);return a!==r&&(t=t.slice(0,a)),t}function f(t,e){var n=e.length<0?0:0|p(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(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");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=f(t,e),t}function h(t,e){if(o.isBuffer(e)){var n=0|p(e.length);return t=i(t,n),0===t.length?t:(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||$(e.length)?i(t,0):f(t,e);if("Buffer"===e.type&&X(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.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 W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return W(t).length;e=(""+e).toLowerCase(),r=!0}}function m(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,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return j(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(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=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).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}var c;if(i){var l=-1;for(c=n;c<s;c++)if(o(t,c)===o(e,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===u)return l*a}else-1!==l&&(c-=c-l),l=-1}else for(n+u>s&&(n=s-u),c=n;c>=0;c--){for(var f=!0,d=0;d<u;d++)if(o(t,c+d)!==o(e,d)){f=!1;break}if(f)return c}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>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[n+a]=s}return a}function k(t,e,n,r){return Y(W(e,t.length-n),t,n,r)}function O(t,e,n,r){return Y(K(e),t,n,r)}function E(t,e,n,r){return O(t,e,n,r)}function x(t,e,n,r){return Y(Q(e),t,n,r)}function C(t,e,n,r){return Y(V(e,t.length-n),t,n,r)}function j(t,e,n){return 0===e&&n===t.length?Z.fromByteArray(t):Z.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,c,l,f;switch(s){case 1:o<128&&(a=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(a=f);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return A(r)}function A(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=J));return n}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function P(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<n;++o)i+=H(t[o]);return i}function L(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(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 D(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function q(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function R(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function M(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 B(t,e,n,r,i){return i||M(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),G.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,i){return i||M(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),G.write(t,e,n,r,52,8),n+8}function z(t){if(t=U(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function U(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function W(t,e){e=e||1/0;for(var n,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 K(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function V(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(r);return o}function Q(t){return Z.toByteArray(z(t))}function Y(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function $(t){return t!==t}/*!
140
+ var r=n(14);r.Any=n(79),r.Array=n(157),r.Boolean=n(103),r.Date=n(158),r.Error=n(159),r.Function=n(66),r.Nil=n(104),r.Number=n(105),r.Integer=n(160),r.IntegerT=r.Integer,r.Object=n(161),r.RegExp=n(162),r.String=n(81),r.Type=n(163),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(82),r.declare=n(164),r.enums=n(165),r.irreducible=n(31),r.list=n(108),r.maybe=n(166),r.refinement=n(80),r.struct=n(168),r.tuple=n(111),r.union=n(172),r.func=n(173),r.intersection=n(174),r.subtype=r.refinement,r.inter=n(175),r.interface=r.inter,r.assert=r,r.update=n(176),r.mixin=n(83),r.isType=n(27),r.is=n(47),r.getTypeName=n(22),r.match=n(177),t.exports=r},function(t,e){t.exports=function(t){throw new TypeError("[tcomb] "+t)}},function(t,e,n){var r=n(31),i=n(44);t.exports=r("Array",i)},function(t,e,n){var r=n(31);t.exports=r("Date",function(t){return t instanceof Date})},function(t,e,n){var r=n(31);t.exports=r("Error",function(t){return t instanceof Error})},function(t,e,n){var r=n(80),i=n(105);t.exports=r(i,function(t){return t%1==0},"Integer")},function(t,e,n){var r=n(31),i=n(43);t.exports=r("Object",i)},function(t,e,n){var r=n(31);t.exports=r("RegExp",function(t){return t instanceof RegExp})},function(t,e,n){var r=n(31),i=n(27);t.exports=r("Type",i)},function(t,e,n){n(14),n(36),n(27),n(41);var r=n(83),i=n(22),o=n(107),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}},function(t,e,n){var r=n(14),i=(n(36),n(58),n(64));n(43);function o(t){return Object.keys(t).map(function(t){return r.stringify(t)}).join(" | ")}function a(t,e){var n=e||o(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 t.hasOwnProperty(e)},r}a.of=function(t,e){var n={};return(t=i(t)?t.split(" "):t).forEach(function(t){n[t]=t}),a(n,e)},a.getDefaultName=o,t.exports=a},function(t,e,n){n(14),n(36),n(26);var r=n(167),i=n(45),o=n(79),a=n(46),s=n(104),u=(n(58),n(47)),l=n(22);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},function(t,e,n){var r=n(27);t.exports=function(t){return r(t)&&"maybe"===t.meta.kind}},function(t,e,n){var r=n(14),i=(n(36),n(81),n(66),n(65),n(43)),o=n(41),a=n(46),s=(n(22),n(82),n(109)),u=n(110);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(r)){var i=t[r],s=e[r];void 0===s&&(s=o[r]),this[r]=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([u].concat(t),e)},u}d.strict=!1,d.getOptions=f,d.getDefaultName=l,d.extend=c,t.exports=d},function(t,e,n){var r=n(27);t.exports=function(t){return r(t)&&"struct"===t.meta.kind}},function(t,e,n){var r=n(27);t.exports=function(t){return r(t)&&"interface"===t.meta.kind}},function(t,e,n){var r=n(27);function i(t){return r(t)&&"subtype"===t.meta.kind}t.exports=function(t){return{predicates:function t(e){return i(e)?[e.meta.predicate].concat(t(e.meta.type)):[]}(t),unrefinedType:function t(e){return i(e)?t(e.meta.type):e}(t)}}},function(t,e,n){var r=n(14),i=(n(36),n(26),n(22)),o=n(45),a=(n(44),n(46)),s=n(47),u=(n(58),n(107)),l=n(41);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<r;n++){var i=t[n];if(u(i)){var o=i.dispatch(e);if(!l(o))return o}else if(s(e,i))return i}},f.update=function(t,e){return f(r.update(t,e))},f}f.getDefaultName=c,t.exports=f},function(t,e,n){n(14),n(36);var r=n(66),i=n(44),o=(n(108),n(43)),a=n(46),s=(n(41),n(65),n(111),n(57)),u=n(22),l=n(27);function c(t,e){return"("+t.map(u).join(", ")+") => "+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&&s<o){0;var u=Function.prototype.bind.apply(n,[this].concat(i));return p(t.slice(s),e).of(u,!0)}return a(e,n.apply(this,i))}return i.instrumentation={domain:t,codomain:e,f:n},i.displayName=s(n),i},u}p.getDefaultName=c,p.getOptionalArgumentsIndex=d,t.exports=p},function(t,e,n){var r=n(14),i=(n(36),n(26),n(44),n(45),n(47)),o=n(22),a=n(45);function s(t){return t.map(o).join(" & ")}function u(t,e){var n=e||s(t),o=t.every(a);function u(t,e){return t}return u.meta={kind:"intersection",types:t,name:e,identity:o},u.displayName=n,u.is=function(e){return t.every(function(t){return i(e,t)})},u.update=function(t,e){return u(r.update(t,e))},u}u.getDefaultName=s,t.exports=u},function(t,e,n){var r=n(14),i=(n(36),n(81),n(66),n(65),n(43)),o=n(41),a=n(46),s=(n(22),n(82),n(109)),u=n(45),l=n(47),c=n(110),f=n(112);function d(t,e){return c(h,t,e)}function p(t){return i(t)||(t=o(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=h.strict),t}function h(t,e){var n=(e=p(e)).name,i=e.strict;var c=n||s(t),h=Object.keys(t).map(function(e){return t[e]}).every(u);function y(e,n){if(h)return e;var r=!0,i=h?{}:f({},e);for(var o in t){var s=t[o],u=e[o],l=a(s,u,null);r=r&&u===l,i[o]=l}return r&&(i=e),i}return y.meta={kind:"interface",props:t,name:n,identity:h,strict:i},y.displayName=c,y.is=function(e){if(o(e))return!1;if(i)for(var n in e)if(!t.hasOwnProperty(n))return!1;for(var r in t)if(!l(e[r],t[r]))return!1;return!0},y.update=function(t,e){return y(r.update(t,e))},y.extend=function(t,e){return d([y].concat(t),e)},y}h.strict=!1,h.getOptions=p,h.getDefaultName=s,h.extend=d,t.exports=h},function(t,e,n){n(14);var r=n(43),i=(n(26),n(44)),o=(n(106),n(112));function a(t){return r(t)?t instanceof Date||t instanceof RegExp?t:o({},t):i(t)?t.concat():t}function s(t){return l.commands.hasOwnProperty(t)}function u(t){return l.commands[t]}function l(t,e){var n,r=t,i=!1;for(var o in e)e.hasOwnProperty(o)&&(s(o)?(n=u(o)(e[o],r))!==t?(i=!0,r=n):r=t:(r===t&&(r=a(t)),n=l(r[o],e[o]),i=i||n!==r[o],r[o]=n));return i?r:t}l.commands={$apply:function(t,e){return t(e)},$push:function(t,e){return t.length>0?e.concat(t):e},$remove:function(t,e){if(t.length>0){e=a(e);for(var n=0,r=t.length;n<r;n++)delete e[t[n]]}return e},$set:function(t){return t},$splice:function(t,e){return t.length>0?(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},function(t,e,n){var r=n(14),i=n(26),o=n(27),a=n(79);t.exports=function(t){for(var e,n,s,u=1,l=arguments.length;u<l;)if(e=arguments[u],n=arguments[u+1],s=arguments[u+2],i(s)&&!o(s)?u+=3:(s=n,n=a.is,u+=2),e.is(t)&&n(t))return s(t);r.fail("Match error")}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(179),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(48))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i=1,o={},a=!1,s=t.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(t);u=u&&u.setTimeout?u:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){c(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}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&c(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),r=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){c(t.data)},r=function(e){t.port2.postMessage(e)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var t=s.documentElement;r=function(e){var n=s.createElement("script");n.onreadystatechange=function(){c(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():r=function(t){setTimeout(c,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var a={callback:t,args:e};return o[i]=a,r(i),i++},u.clearImmediate=l}function l(t){delete o[t]}function c(t){if(a)setTimeout(c,0,t);else{var e=o[t];if(e){a=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{l(t),a=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(48),n(93))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(62),i=n(247),o=n(127),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,y=e.direction,v=e.indent,m=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),y===r.DirectionType.Rtl&&(n.direction=y),v&&Number(v)&&(n.indent=Math.min(Number(v),30)),m&&g){var k=i.MentionSanitizer.sanitize(g);Object.keys(k).length>0&&(n.mentions=!!m,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},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)}},function(t,e,n){"use strict";
141
+ /** @license React v16.4.0
142
+ * react.production.min.js
143
+ *
144
+ * Copyright (c) 2013-present, Facebook, Inc.
145
+ *
146
+ * This source code is licensed under the MIT license found in the
147
+ * LICENSE file in the root directory of this source tree.
148
+ */var r=n(84),i=n(88),o=n(85),a=n(74),s="function"==typeof Symbol&&Symbol.for,u=s?Symbol.for("react.element"):60103,l=s?Symbol.for("react.portal"):60106,c=s?Symbol.for("react.fragment"):60107,f=s?Symbol.for("react.strict_mode"):60108,d=s?Symbol.for("react.profiler"):60114,p=s?Symbol.for("react.provider"):60109,h=s?Symbol.for("react.context"):60110,y=s?Symbol.for("react.async_mode"):60111,v=s?Symbol.for("react.forward_ref"):60112;s&&Symbol.for("react.timeout");var m="function"==typeof Symbol&&Symbol.iterator;function g(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]);i(!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 b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function w(t,e,n){this.props=t,this.context=e,this.refs=o,this.updater=n||b}function _(){}function k(t,e,n){this.props=t,this.context=e,this.refs=o,this.updater=n||b}w.prototype.isReactComponent={},w.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&g("85"),this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},_.prototype=w.prototype;var O=k.prototype=new _;O.constructor=k,r(O,w.prototype),O.isPureReactComponent=!0;var x={current:null},E=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function S(t,e,n){var r=void 0,i={},o=null,a=null;if(null!=e)for(r in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(o=""+e.key),e)E.call(e,r)&&!C.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in s=t.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:u,type:t,key:o,ref:a,props:i,_owner:x.current}}function j(t){return"object"==typeof t&&null!==t&&t.$$typeof===u}var T=/\/+/g,A=[];function N(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 P(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>A.length&&A.push(t)}function R(t,e,n,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var o=!1;if(null===t)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case u:case l:o=!0}}if(o)return n(r,t,""===e?"."+L(t,0):e),1;if(o=0,e=""===e?".":e+":",Array.isArray(t))for(var a=0;a<t.length;a++){var s=e+L(i=t[a],a);o+=R(i,s,n,r)}else if(null===t||void 0===t?s=null:s="function"==typeof(s=m&&t[m]||t["@@iterator"])?s:null,"function"==typeof s)for(t=s.call(t),a=0;!(i=t.next()).done;)o+=R(i=i.value,s=e+L(i,a++),n,r);else"object"===i&&g("31","[object Object]"===(n=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":n,"");return o}function L(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 I(t,e){t.func.call(t.context,e,t.count++)}function D(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,a.thatReturnsArgument):null!=t&&(j(t)&&(e=i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(T,"$&/")+"/")+n,t={$$typeof:u,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}),r.push(t))}function M(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(T,"$&/")+"/"),e=N(e,o,r,i),null==t||R(t,"",D,e),P(e)}var B={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;e=N(null,null,e,n),null==t||R(t,"",I,e),P(e)},count:function(t){return null==t?0:R(t,"",a.thatReturnsNull,null)},toArray:function(t){var e=[];return M(t,e,null,a.thatReturnsArgument),e},only:function(t){return j(t)||g("143"),t}},createRef:function(){return{current:null}},Component:w,PureComponent:k,createContext:function(t,e){return void 0===e&&(e=null),(t={$$typeof:h,_calculateChangedBits:e,_defaultValue:t,_currentValue:t,_currentValue2:t,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null}).Provider={$$typeof:p,_context:t},t.Consumer=t},forwardRef:function(t){return{$$typeof:v,render:t}},Fragment:c,StrictMode:f,unstable_AsyncMode:y,unstable_Profiler:d,createElement:S,cloneElement:function(t,e,n){(null===t||void 0===t)&&g("267",t);var i=void 0,o=r({},t.props),a=t.key,s=t.ref,l=t._owner;if(null!=e){void 0!==e.ref&&(s=e.ref,l=x.current),void 0!==e.key&&(a=""+e.key);var c=void 0;for(i in t.type&&t.type.defaultProps&&(c=t.type.defaultProps),e)E.call(e,i)&&!C.hasOwnProperty(i)&&(o[i]=void 0===e[i]&&void 0!==c?c[i]:e[i])}if(1===(i=arguments.length-2))o.children=n;else if(1<i){c=Array(i);for(var f=0;f<i;f++)c[f]=arguments[f+2];o.children=c}return{$$typeof:u,type:t.type,key:a,ref:s,props:o,_owner:l}},createFactory:function(t){var e=S.bind(null,t);return e.type=t,e},isValidElement:j,version:"16.4.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:x,assign:r}},q={default:B},F=q&&B||q;t.exports=F.default?F.default:F},function(t,e,n){"use strict";
149
+ /** @license React v16.4.0
150
+ * react-dom.production.min.js
151
+ *
152
+ * Copyright (c) 2013-present, Facebook, Inc.
153
+ *
154
+ * This source code is licensed under the MIT license found in the
155
+ * LICENSE file in the root directory of this source tree.
156
+ */var r=n(88),i=n(2),o=n(142),a=n(84),s=n(74),u=n(143),l=n(144),c=n(145),f=n(85);function d(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=0;i<e;i++)n+="&args[]="+encodeURIComponent(arguments[i+1]);r(!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)}i||d("227");var p={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(t,e,n,r,i,o,a,s,u){(function(t,e,n,r,i,o,a,s,u){this._hasCaughtError=!1,this._caughtError=null;var l=Array.prototype.slice.call(arguments,3);try{e.apply(n,l)}catch(t){this._caughtError=t,this._hasCaughtError=!0}}).apply(p,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,e,n,r,i,o,a,s,u){if(p.invokeGuardedCallback.apply(this,arguments),p.hasCaughtError()){var l=p.clearCaughtError();p._hasRethrowError||(p._hasRethrowError=!0,p._rethrowError=l)}},rethrowCaughtError:function(){return function(){if(p._hasRethrowError){var t=p._rethrowError;throw p._rethrowError=null,p._hasRethrowError=!1,t}}.apply(p,arguments)},hasCaughtError:function(){return p._hasCaughtError},clearCaughtError:function(){if(p._hasCaughtError){var t=p._caughtError;return p._caughtError=null,p._hasCaughtError=!1,t}d("198")}};var h=null,y={};function v(){if(h)for(var t in y){var e=y[t],n=h.indexOf(t);if(-1<n||d("96",t),!g[n])for(var r in e.extractEvents||d("97",t),g[n]=e,n=e.eventTypes){var i=void 0,o=n[r],a=e,s=r;b.hasOwnProperty(s)&&d("99",s),b[s]=o;var u=o.phasedRegistrationNames;if(u){for(i in u)u.hasOwnProperty(i)&&m(u[i],a,s);i=!0}else o.registrationName?(m(o.registrationName,a,s),i=!0):i=!1;i||d("98",r,t)}}}function m(t,e,n){w[t]&&d("100",t),w[t]=e,_[t]=e.eventTypes[n].dependencies}var g=[],b={},w={},_={};function k(t){h&&d("101"),h=Array.prototype.slice.call(t),v()}function O(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];y.hasOwnProperty(e)&&y[e]===r||(y[e]&&d("102",e),y[e]=r,n=!0)}n&&v()}var x={plugins:g,eventNameDispatchConfigs:b,registrationNameModules:w,registrationNameDependencies:_,possibleRegistrationNames:null,injectEventPluginOrder:k,injectEventPluginsByName:O},E=null,C=null,S=null;function j(t,e,n,r){e=t.type||"unknown-event",t.currentTarget=S(r),p.invokeGuardedCallbackAndCatchFirstError(e,n,void 0,t),t.currentTarget=null}function T(t,e){return null==e&&d("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 A(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var N=null;function P(t,e){if(t){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var i=0;i<n.length&&!t.isPropagationStopped();i++)j(t,e,n[i],r[i]);else n&&j(t,e,n,r);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function R(t){return P(t,!0)}function L(t){return P(t,!1)}var I={injectEventPluginOrder:k,injectEventPluginsByName:O};function D(t,e){var n=t.stateNode;if(!n)return null;var r=E(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&&d("231",e,typeof n),n)}function M(t,e){null!==t&&(N=T(N,t)),t=N,N=null,t&&(A(t,e?R:L),N&&d("95"),p.rethrowCaughtError())}function B(t,e,n,r){for(var i=null,o=0;o<g.length;o++){var a=g[o];a&&(a=a.extractEvents(t,e,n,r))&&(i=T(i,a))}M(i,!1)}var q={injection:I,getListener:D,runEventsInBatch:M,runExtractedEventsInBatch:B},F=Math.random().toString(36).slice(2),z="__reactInternalInstance$"+F,U="__reactEventHandlers$"+F;function H(t){if(t[z])return t[z];for(;!t[z];){if(!t.parentNode)return null;t=t.parentNode}return 5===(t=t[z]).tag||6===t.tag?t:null}function W(t){if(5===t.tag||6===t.tag)return t.stateNode;d("33")}function V(t){return t[U]||null}var K={precacheFiberNode:function(t,e){e[z]=t},getClosestInstanceFromNode:H,getInstanceFromNode:function(t){return!(t=t[z])||5!==t.tag&&6!==t.tag?null:t},getNodeFromInstance:W,getFiberCurrentPropsFromNode:V,updateFiberProps:function(t,e){t[U]=e}};function Q(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function $(t,e,n){for(var r=[];t;)r.push(t),t=Q(t);for(t=r.length;0<t--;)e(r[t],"captured",n);for(t=0;t<r.length;t++)e(r[t],"bubbled",n)}function G(t,e,n){(e=D(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=T(n._dispatchListeners,e),n._dispatchInstances=T(n._dispatchInstances,t))}function Y(t){t&&t.dispatchConfig.phasedRegistrationNames&&$(t._targetInst,G,t)}function Z(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst;$(e=e?Q(e):null,G,t)}}function X(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=D(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=T(n._dispatchListeners,e),n._dispatchInstances=T(n._dispatchInstances,t))}function J(t){t&&t.dispatchConfig.registrationName&&X(t._targetInst,null,t)}function tt(t){A(t,Y)}function et(t,e,n,r){if(n&&r)t:{for(var i=n,o=r,a=0,s=i;s;s=Q(s))a++;s=0;for(var u=o;u;u=Q(u))s++;for(;0<a-s;)i=Q(i),a--;for(;0<s-a;)o=Q(o),s--;for(;a--;){if(i===o||i===o.alternate)break t;i=Q(i),o=Q(o)}i=null}else i=null;for(o=i,i=[];n&&n!==o&&(null===(a=n.alternate)||a!==o);)i.push(n),n=Q(n);for(n=[];r&&r!==o&&(null===(a=r.alternate)||a!==o);)n.push(r),r=Q(r);for(r=0;r<i.length;r++)X(i[r],"bubbled",t);for(t=n.length;0<t--;)X(n[t],"captured",e)}var nt={accumulateTwoPhaseDispatches:tt,accumulateTwoPhaseDispatchesSkipTarget:function(t){A(t,Z)},accumulateEnterLeaveDispatches:et,accumulateDirectDispatches:function(t){A(t,J)}};function rt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n["ms"+t]="MS"+e,n["O"+t]="o"+e.toLowerCase(),n}var it={animationend:rt("Animation","AnimationEnd"),animationiteration:rt("Animation","AnimationIteration"),animationstart:rt("Animation","AnimationStart"),transitionend:rt("Transition","TransitionEnd")},ot={},at={};function st(t){if(ot[t])return ot[t];if(!it[t])return t;var e,n=it[t];for(e in n)if(n.hasOwnProperty(e)&&e in at)return ot[t]=n[e];return t}o.canUseDOM&&(at=document.createElement("div").style,"AnimationEvent"in window||(delete it.animationend.animation,delete it.animationiteration.animation,delete it.animationstart.animation),"TransitionEvent"in window||delete it.transitionend.transition);var ut=st("animationend"),lt=st("animationiteration"),ct=st("animationstart"),ft=st("transitionend"),dt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),pt=null;function ht(){return!pt&&o.canUseDOM&&(pt="textContent"in document.documentElement?"textContent":"innerText"),pt}var yt={_root:null,_startText:null,_fallbackText:null};function vt(){if(yt._fallbackText)return yt._fallbackText;var t,e,n=yt._startText,r=n.length,i=mt(),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 yt._fallbackText=i.slice(t,1<e?1-e:void 0),yt._fallbackText}function mt(){return"value"in yt._root?yt._root.value:yt._root[ht()]}var gt="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),bt={type:null,target:null,currentTarget:s.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function wt(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)?s.thatReturnsTrue:s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse,this}function _t(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 kt(t){t instanceof this||d("223"),t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function Ot(t){t.eventPool=[],t.getPooled=_t,t.release=kt}a(wt.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=s.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;for(e=0;e<gt.length;e++)this[gt[e]]=null}}),wt.Interface=bt,wt.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var i=new e;return a(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=a({},r.Interface,t),n.extend=r.extend,Ot(n),n},Ot(wt);var xt=wt.extend({data:null}),Et=wt.extend({data:null}),Ct=[9,13,27,32],St=o.canUseDOM&&"CompositionEvent"in window,jt=null;o.canUseDOM&&"documentMode"in document&&(jt=document.documentMode);var Tt=o.canUseDOM&&"TextEvent"in window&&!jt,At=o.canUseDOM&&(!St||jt&&8<jt&&11>=jt),Nt=String.fromCharCode(32),Pt={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(" ")}},Rt=!1;function Lt(t,e){switch(t){case"keyup":return-1!==Ct.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function It(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Dt=!1;var Mt={eventTypes:Pt,extractEvents:function(t,e,n,r){var i=void 0,o=void 0;if(St)t:{switch(t){case"compositionstart":i=Pt.compositionStart;break t;case"compositionend":i=Pt.compositionEnd;break t;case"compositionupdate":i=Pt.compositionUpdate;break t}i=void 0}else Dt?Lt(t,n)&&(i=Pt.compositionEnd):"keydown"===t&&229===n.keyCode&&(i=Pt.compositionStart);return i?(At&&(Dt||i!==Pt.compositionStart?i===Pt.compositionEnd&&Dt&&(o=vt()):(yt._root=r,yt._startText=mt(),Dt=!0)),i=xt.getPooled(i,e,n,r),o?i.data=o:null!==(o=It(n))&&(i.data=o),tt(i),o=i):o=null,(t=Tt?function(t,e){switch(t){case"compositionend":return It(e);case"keypress":return 32!==e.which?null:(Rt=!0,Nt);case"textInput":return(t=e.data)===Nt&&Rt?null:t;default:return null}}(t,n):function(t,e){if(Dt)return"compositionend"===t||!St&&Lt(t,e)?(t=vt(),yt._root=null,yt._startText=null,yt._fallbackText=null,Dt=!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 At?null:e.data;default:return null}}(t,n))?((e=Et.getPooled(Pt.beforeInput,e,n,r)).data=t,tt(e)):e=null,null===o?e:null===e?o:[o,e]}},Bt=null,qt={injectFiberControlledHostComponent:function(t){Bt=t}},Ft=null,zt=null;function Ut(t){if(t=C(t)){Bt&&"function"==typeof Bt.restoreControlledState||d("194");var e=E(t.stateNode);Bt.restoreControlledState(t.stateNode,t.type,e)}}function Ht(t){Ft?zt?zt.push(t):zt=[t]:Ft=t}function Wt(){return null!==Ft||null!==zt}function Vt(){if(Ft){var t=Ft,e=zt;if(zt=Ft=null,Ut(t),e)for(t=0;t<e.length;t++)Ut(e[t])}}var Kt={injection:qt,enqueueStateRestore:Ht,needsStateRestore:Wt,restoreStateIfNeeded:Vt};function Qt(t,e){return t(e)}function $t(t,e,n){return t(e,n)}function Gt(){}var Yt=!1;function Zt(t,e){if(Yt)return t(e);Yt=!0;try{return Qt(t,e)}finally{Yt=!1,Wt()&&(Gt(),Vt())}}var Xt={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 Jt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Xt[t.type]:"textarea"===e}function te(t){return(t=t.target||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function ee(t,e){return!(!o.canUseDOM||e&&!("addEventListener"in document))&&((e=(t="on"+t)in document)||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e)}function ne(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function re(t){t._valueTracker||(t._valueTracker=function(t){var e=ne(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 ie(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=ne(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}var oe=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ae="function"==typeof Symbol&&Symbol.for,se=ae?Symbol.for("react.element"):60103,ue=ae?Symbol.for("react.portal"):60106,le=ae?Symbol.for("react.fragment"):60107,ce=ae?Symbol.for("react.strict_mode"):60108,fe=ae?Symbol.for("react.profiler"):60114,de=ae?Symbol.for("react.provider"):60109,pe=ae?Symbol.for("react.context"):60110,he=ae?Symbol.for("react.async_mode"):60111,ye=ae?Symbol.for("react.forward_ref"):60112,ve=ae?Symbol.for("react.timeout"):60113,me="function"==typeof Symbol&&Symbol.iterator;function ge(t){return null===t||void 0===t?null:"function"==typeof(t=me&&t[me]||t["@@iterator"])?t:null}function be(t){var e=t.type;if("function"==typeof e)return e.displayName||e.name;if("string"==typeof e)return e;switch(e){case he:return"AsyncMode";case pe:return"Context.Consumer";case le:return"ReactFragment";case ue:return"ReactPortal";case fe:return"Profiler("+t.pendingProps.id+")";case de:return"Context.Provider";case ce:return"StrictMode";case ve:return"Timeout"}if("object"==typeof e&&null!==e)switch(e.$$typeof){case ye:return""!==(t=e.render.displayName||e.render.name||"")?"ForwardRef("+t+")":"ForwardRef"}return null}function we(t){var e="";do{t:switch(t.tag){case 0:case 1:case 2:case 5:var n=t._debugOwner,r=t._debugSource,i=be(t),o=null;n&&(o=be(n)),n=r,i="\n in "+(i||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":o?" (created by "+o+")":"");break t;default:i=""}e+=i,t=t.return}while(t);return e}var _e=/^[: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]*$/,ke={},Oe={};function xe(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 Ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ee[t]=new xe(t,0,!1,t,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ee[e]=new xe(e,1,!1,t[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ee[t]=new xe(t,2,!1,t.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(t){Ee[t]=new xe(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){Ee[t]=new xe(t,3,!1,t.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(t){Ee[t]=new xe(t,3,!0,t.toLowerCase(),null)}),["capture","download"].forEach(function(t){Ee[t]=new xe(t,4,!1,t.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(t){Ee[t]=new xe(t,6,!1,t.toLowerCase(),null)}),["rowSpan","start"].forEach(function(t){Ee[t]=new xe(t,5,!1,t.toLowerCase(),null)});var Ce=/[\-:]([a-z])/g;function Se(t){return t[1].toUpperCase()}function je(t,e,n,r){var i=Ee.hasOwnProperty(e)?Ee[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||void 0===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!!Oe.hasOwnProperty(t)||!ke.hasOwnProperty(t)&&(_e.test(t)?Oe[t]=!0:(ke[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 Te(t,e){var n=e.checked;return a({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Ae(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=Ie(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 Ne(t,e){null!=(e=e.checked)&&je(t,"checked",e,!1)}function Pe(t,e){Ne(t,e);var n=Ie(e.value);null!=n&&("number"===e.type?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n)),e.hasOwnProperty("value")?Le(t,e.type,n):e.hasOwnProperty("defaultValue")&&Le(t,e.type,Ie(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Re(t,e){(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue"))&&(""===t.value&&(t.value=""+t._wrapperState.initialValue),t.defaultValue=""+t._wrapperState.initialValue),""!==(e=t.name)&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!t.defaultChecked,""!==e&&(t.name=e)}function Le(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Ie(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}"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(Ce,Se);Ee[e]=new xe(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(Ce,Se);Ee[e]=new xe(e,1,!1,t,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Ce,Se);Ee[e]=new xe(e,1,!1,t,"http://www.w3.org/XML/1998/namespace")}),Ee.tabIndex=new xe("tabIndex",1,!1,"tabindex",null);var De={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Me(t,e,n){return(t=wt.getPooled(De.change,t,e,n)).type="change",Ht(n),tt(t),t}var Be=null,qe=null;function Fe(t){M(t,!1)}function ze(t){if(ie(W(t)))return t}function Ue(t,e){if("change"===t)return e}var He=!1;function We(){Be&&(Be.detachEvent("onpropertychange",Ve),qe=Be=null)}function Ve(t){"value"===t.propertyName&&ze(qe)&&Zt(Fe,t=Me(qe,t,te(t)))}function Ke(t,e,n){"focus"===t?(We(),qe=n,(Be=e).attachEvent("onpropertychange",Ve)):"blur"===t&&We()}function Qe(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return ze(qe)}function $e(t,e){if("click"===t)return ze(e)}function Ge(t,e){if("input"===t||"change"===t)return ze(e)}o.canUseDOM&&(He=ee("input")&&(!document.documentMode||9<document.documentMode));var Ye={eventTypes:De,_isInputEventSupported:He,extractEvents:function(t,e,n,r){var i=e?W(e):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=Ue:Jt(i)?He?o=Ge:(o=Qe,a=Ke):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=$e),o&&(o=o(t,e)))return Me(o,n,r);a&&a(t,i,e),"blur"===t&&null!=e&&(t=e._wrapperState||i._wrapperState)&&t.controlled&&"number"===i.type&&Le(i,"number",i.value)}},Ze=wt.extend({view:null,detail:null}),Xe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Je(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Xe[t])&&!!e[t]}function tn(){return Je}var en=Ze.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:tn,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)}}),nn=en.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),rn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},on={eventTypes:rn,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)?H(e):null):o=null,o===e)return null;var a=void 0,s=void 0,u=void 0,l=void 0;return"mouseout"===t||"mouseover"===t?(a=en,s=rn.mouseLeave,u=rn.mouseEnter,l="mouse"):"pointerout"!==t&&"pointerover"!==t||(a=nn,s=rn.pointerLeave,u=rn.pointerEnter,l="pointer"),t=null==o?i:W(o),i=null==e?i:W(e),(s=a.getPooled(s,o,n,r)).type=l+"leave",s.target=t,s.relatedTarget=i,(n=a.getPooled(u,e,n,r)).type=l+"enter",n.target=i,n.relatedTarget=t,et(s,n,o,e),[s,n]}};function an(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 sn(t){2!==an(t)&&d("188")}function un(t){var e=t.alternate;if(!e)return 3===(e=an(t))&&d("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 sn(i),t;if(a===r)return sn(i),e;a=a.sibling}d("188")}if(n.return!==r.return)n=i,r=o;else{a=!1;for(var s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}a||d("189")}}n.alternate!==r&&d("190")}return 3!==n.tag&&d("188"),n.stateNode.current===n?t:e}function ln(t){if(!(t=un(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 cn=wt.extend({animationName:null,elapsedTime:null,pseudoElement:null}),fn=wt.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),dn=Ze.extend({relatedTarget:null});function pn(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 hn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yn={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"},vn=Ze.extend({key:function(t){if(t.key){var e=hn[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=pn(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?yn[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:tn,charCode:function(t){return"keypress"===t.type?pn(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?pn(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),mn=en.extend({dataTransfer:null}),gn=Ze.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:tn}),bn=wt.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),wn=en.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}),_n=[["abort","abort"],[ut,"animationEnd"],[lt,"animationIteration"],[ct,"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"],[ft,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],kn={},On={};function xn(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},kn[t]=e,On[n]=e}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["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){xn(t,!0)}),_n.forEach(function(t){xn(t,!1)});var En={eventTypes:kn,isInteractiveTopLevelEventType:function(t){return void 0!==(t=On[t])&&!0===t.isInteractive},extractEvents:function(t,e,n,r){var i=On[t];if(!i)return null;switch(t){case"keypress":if(0===pn(n))return null;case"keydown":case"keyup":t=vn;break;case"blur":case"focus":t=dn;break;case"click":if(2===n.button)return null;case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=en;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=gn;break;case ut:case lt:case ct:t=cn;break;case ft:t=bn;break;case"scroll":t=Ze;break;case"wheel":t=wn;break;case"copy":case"cut":case"paste":t=fn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=nn;break;default:t=wt}return tt(e=t.getPooled(i,e,n,r)),e}},Cn=En.isInteractiveTopLevelEventType,Sn=[];function jn(t){var e=t.targetInst;do{if(!e){t.ancestors.push(e);break}var n;for(n=e;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;t.ancestors.push(e),e=H(n)}while(e);for(n=0;n<t.ancestors.length;n++)e=t.ancestors[n],B(t.topLevelType,e,t.nativeEvent,te(t.nativeEvent))}var Tn=!0;function An(t){Tn=!!t}function Nn(t,e){if(!e)return null;var n=(Cn(t)?Rn:Ln).bind(null,t);e.addEventListener(t,n,!1)}function Pn(t,e){if(!e)return null;var n=(Cn(t)?Rn:Ln).bind(null,t);e.addEventListener(t,n,!0)}function Rn(t,e){$t(Ln,t,e)}function Ln(t,e){if(Tn){var n=te(e);if(null===(n=H(n))||"number"!=typeof n.tag||2===an(n)||(n=null),Sn.length){var r=Sn.pop();r.topLevelType=t,r.nativeEvent=e,r.targetInst=n,t=r}else t={topLevelType:t,nativeEvent:e,targetInst:n,ancestors:[]};try{Zt(jn,t)}finally{t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>Sn.length&&Sn.push(t)}}}var In={get _enabled(){return Tn},setEnabled:An,isEnabled:function(){return Tn},trapBubbledEvent:Nn,trapCapturedEvent:Pn,dispatchEvent:Ln},Dn={},Mn=0,Bn="_reactListenersID"+(""+Math.random()).slice(2);function qn(t){return Object.prototype.hasOwnProperty.call(t,Bn)||(t[Bn]=Mn++,Dn[t[Bn]]={}),Dn[t[Bn]]}function Fn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function zn(t,e){var n,r=Fn(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=Fn(r)}}function Un(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)}var Hn=o.canUseDOM&&"documentMode"in document&&11>=document.documentMode,Wn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vn=null,Kn=null,Qn=null,$n=!1;function Gn(t,e){if($n||null==Vn||Vn!==u())return null;var n=Vn;return"selectionStart"in n&&Un(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?n={anchorNode:(n=window.getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}:n=void 0,Qn&&l(Qn,n)?null:(Qn=n,(t=wt.getPooled(Wn.select,Kn,t,e)).type="select",t.target=Vn,tt(t),t)}var Yn={eventTypes:Wn,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=qn(o),i=_.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?W(e):window,t){case"focus":(Jt(o)||"true"===o.contentEditable)&&(Vn=o,Kn=e,Qn=null);break;case"blur":Qn=Kn=Vn=null;break;case"mousedown":$n=!0;break;case"contextmenu":case"mouseup":return $n=!1,Gn(n,r);case"selectionchange":if(Hn)break;case"keydown":case"keyup":return Gn(n,r)}return null}};I.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),E=K.getFiberCurrentPropsFromNode,C=K.getInstanceFromNode,S=K.getNodeFromInstance,I.injectEventPluginsByName({SimpleEventPlugin:En,EnterLeaveEventPlugin:on,ChangeEventPlugin:Ye,SelectEventPlugin:Yn,BeforeInputEventPlugin:Mt});var Zn=void 0;Zn="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};var Xn=void 0,Jn=void 0;if(o.canUseDOM){var tr=[],er=0,nr={},rr=-1,ir=!1,or=!1,ar=0,sr=33,ur=33,lr={didTimeout:!1,timeRemaining:function(){var t=ar-Zn();return 0<t?t:0}},cr=function(t,e){if(nr[e])try{t(lr)}finally{delete nr[e]}},fr="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(t){if(t.source===window&&t.data===fr&&(ir=!1,0!==tr.length)){if(0!==tr.length&&(t=Zn(),!(-1===rr||rr>t))){rr=-1,lr.didTimeout=!0;for(var e=0,n=tr.length;e<n;e++){var r=tr[e],i=r.timeoutTime;-1!==i&&i<=t?cr(r.scheduledCallback,r.callbackId):-1!==i&&(-1===rr||i<rr)&&(rr=i)}}for(t=Zn();0<ar-t&&0<tr.length;)t=tr.shift(),lr.didTimeout=!1,cr(t.scheduledCallback,t.callbackId),t=Zn();0<tr.length&&!or&&(or=!0,requestAnimationFrame(dr))}},!1);var dr=function(t){or=!1;var e=t-ar+ur;e<ur&&sr<ur?(8>e&&(e=8),ur=e<sr?sr:e):sr=e,ar=t+ur,ir||(ir=!0,window.postMessage(fr,"*"))};Xn=function(t,e){var n=-1;return null!=e&&"number"==typeof e.timeout&&(n=Zn()+e.timeout),(-1===rr||-1!==n&&n<rr)&&(rr=n),e=++er,tr.push({scheduledCallback:t,callbackId:e,timeoutTime:n}),nr[e]=!0,or||(or=!0,requestAnimationFrame(dr)),e},Jn=function(t){delete nr[t]}}else{var pr=0,hr={};Xn=function(t){var e=pr++,n=setTimeout(function(){t({timeRemaining:function(){return 1/0},didTimeout:!1})});return hr[e]=n,e},Jn=function(t){var e=hr[t];delete hr[t],clearTimeout(e)}}function yr(t,e){return t=a({children:void 0},e),(e=function(t){var e="";return i.Children.forEach(t,function(t){null==t||"string"!=typeof t&&"number"!=typeof t||(e+=t)}),e}(e.children))&&(t.children=e),t}function vr(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=""+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 mr(t,e){var n=e.value;t._wrapperState={initialValue:null!=n?n:e.defaultValue,wasMultiple:!!e.multiple}}function gr(t,e){return null!=e.dangerouslySetInnerHTML&&d("91"),a({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function br(t,e){var n=e.value;null==n&&(n=e.defaultValue,null!=(e=e.children)&&(null!=n&&d("92"),Array.isArray(e)&&(1>=e.length||d("93"),e=e[0]),n=""+e),null==n&&(n="")),t._wrapperState={initialValue:""+n}}function wr(t,e){var n=e.value;null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&(t.defaultValue=n)),null!=e.defaultValue&&(t.defaultValue=e.defaultValue)}function _r(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}var kr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Or(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 xr(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Or(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Er=void 0,Cr=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!==kr.svg||"innerHTML"in t)t.innerHTML=e;else{for((Er=Er||document.createElement("div")).innerHTML="<svg>"+e+"</svg>",e=Er.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Sr(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 jr={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,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},Tr=["Webkit","ms","Moz","O"];function Ar(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,o=e[n];i=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||jr.hasOwnProperty(i)&&jr[i]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(jr).forEach(function(t){Tr.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),jr[e]=jr[t]})});var Nr=a({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 Pr(t,e,n){e&&(Nr[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&d("137",t,n()),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&d("60"),"object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||d("61")),null!=e.style&&"object"!=typeof e.style&&d("62",n()))}function Rr(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}}var Lr=s.thatReturns("");function Ir(t,e){var n=qn(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=_[e];for(var r=0;r<e.length;r++){var i=e[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":Pn("scroll",t);break;case"focus":case"blur":Pn("focus",t),Pn("blur",t),n.blur=!0,n.focus=!0;break;case"cancel":case"close":ee(i,!0)&&Pn(i,t);break;case"invalid":case"submit":case"reset":break;default:-1===dt.indexOf(i)&&Nn(i,t)}n[i]=!0}}}function Dr(t,e,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===kr.html&&(r=Or(t)),r===kr.html?"script"===t?((t=n.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):t="string"==typeof e.is?n.createElement(t,{is:e.is}):n.createElement(t):t=n.createElementNS(r,t),t}function Mr(t,e){return(9===e.nodeType?e:e.ownerDocument).createTextNode(t)}function Br(t,e,n,r){var i=Rr(e,n);switch(e){case"iframe":case"object":Nn("load",t);var o=n;break;case"video":case"audio":for(o=0;o<dt.length;o++)Nn(dt[o],t);o=n;break;case"source":Nn("error",t),o=n;break;case"img":case"image":case"link":Nn("error",t),Nn("load",t),o=n;break;case"form":Nn("reset",t),Nn("submit",t),o=n;break;case"details":Nn("toggle",t),o=n;break;case"input":Ae(t,n),o=Te(t,n),Nn("invalid",t),Ir(r,"onChange");break;case"option":o=yr(t,n);break;case"select":mr(t,n),o=a({},n,{value:void 0}),Nn("invalid",t),Ir(r,"onChange");break;case"textarea":br(t,n),o=gr(t,n),Nn("invalid",t),Ir(r,"onChange");break;default:o=n}Pr(e,o,Lr);var u,l=o;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];"style"===u?Ar(t,c):"dangerouslySetInnerHTML"===u?null!=(c=c?c.__html:void 0)&&Cr(t,c):"children"===u?"string"==typeof c?("textarea"!==e||""!==c)&&Sr(t,c):"number"==typeof c&&Sr(t,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(w.hasOwnProperty(u)?null!=c&&Ir(r,u):null!=c&&je(t,u,c,i))}switch(e){case"input":re(t),Re(t,n);break;case"textarea":re(t),_r(t);break;case"option":null!=n.value&&t.setAttribute("value",n.value);break;case"select":t.multiple=!!n.multiple,null!=(e=n.value)?vr(t,!!n.multiple,e,!1):null!=n.defaultValue&&vr(t,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(t.onclick=s)}}function qr(t,e,n,r,i){var o=null;switch(e){case"input":n=Te(t,n),r=Te(t,r),o=[];break;case"option":n=yr(t,n),r=yr(t,r),o=[];break;case"select":n=a({},n,{value:void 0}),r=a({},r,{value:void 0}),o=[];break;case"textarea":n=gr(t,n),r=gr(t,r),o=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(t.onclick=s)}Pr(e,r,Lr),e=t=void 0;var u=null;for(t in n)if(!r.hasOwnProperty(t)&&n.hasOwnProperty(t)&&null!=n[t])if("style"===t){var l=n[t];for(e in l)l.hasOwnProperty(e)&&(u||(u={}),u[e]="")}else"dangerouslySetInnerHTML"!==t&&"children"!==t&&"suppressContentEditableWarning"!==t&&"suppressHydrationWarning"!==t&&"autoFocus"!==t&&(w.hasOwnProperty(t)?o||(o=[]):(o=o||[]).push(t,null));for(t in r){var c=r[t];if(l=null!=n?n[t]:void 0,r.hasOwnProperty(t)&&c!==l&&(null!=c||null!=l))if("style"===t)if(l){for(e in l)!l.hasOwnProperty(e)||c&&c.hasOwnProperty(e)||(u||(u={}),u[e]="");for(e in c)c.hasOwnProperty(e)&&l[e]!==c[e]&&(u||(u={}),u[e]=c[e])}else u||(o||(o=[]),o.push(t,u)),u=c;else"dangerouslySetInnerHTML"===t?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(o=o||[]).push(t,""+c)):"children"===t?l===c||"string"!=typeof c&&"number"!=typeof c||(o=o||[]).push(t,""+c):"suppressContentEditableWarning"!==t&&"suppressHydrationWarning"!==t&&(w.hasOwnProperty(t)?(null!=c&&Ir(i,t),o||l===c||(o=[])):(o=o||[]).push(t,c))}return u&&(o=o||[]).push("style",u),o}function Fr(t,e,n,r,i){"input"===n&&"radio"===i.type&&null!=i.name&&Ne(t,i),Rr(n,r),r=Rr(n,i);for(var o=0;o<e.length;o+=2){var a=e[o],s=e[o+1];"style"===a?Ar(t,s):"dangerouslySetInnerHTML"===a?Cr(t,s):"children"===a?Sr(t,s):je(t,a,s,r)}switch(n){case"input":Pe(t,i);break;case"textarea":wr(t,i);break;case"select":t._wrapperState.initialValue=void 0,e=t._wrapperState.wasMultiple,t._wrapperState.wasMultiple=!!i.multiple,null!=(n=i.value)?vr(t,!!i.multiple,n,!1):e!==!!i.multiple&&(null!=i.defaultValue?vr(t,!!i.multiple,i.defaultValue,!0):vr(t,!!i.multiple,i.multiple?[]:"",!1))}}function zr(t,e,n,r,i){switch(e){case"iframe":case"object":Nn("load",t);break;case"video":case"audio":for(r=0;r<dt.length;r++)Nn(dt[r],t);break;case"source":Nn("error",t);break;case"img":case"image":case"link":Nn("error",t),Nn("load",t);break;case"form":Nn("reset",t),Nn("submit",t);break;case"details":Nn("toggle",t);break;case"input":Ae(t,n),Nn("invalid",t),Ir(i,"onChange");break;case"select":mr(t,n),Nn("invalid",t),Ir(i,"onChange");break;case"textarea":br(t,n),Nn("invalid",t),Ir(i,"onChange")}for(var o in Pr(e,n,Lr),r=null,n)if(n.hasOwnProperty(o)){var a=n[o];"children"===o?"string"==typeof a?t.textContent!==a&&(r=["children",a]):"number"==typeof a&&t.textContent!==""+a&&(r=["children",""+a]):w.hasOwnProperty(o)&&null!=a&&Ir(i,o)}switch(e){case"input":re(t),Re(t,n);break;case"textarea":re(t),_r(t);break;case"select":case"option":break;default:"function"==typeof n.onClick&&(t.onclick=s)}return r}function Ur(t,e){return t.nodeValue!==e}var Hr={createElement:Dr,createTextNode:Mr,setInitialProperties:Br,diffProperties:qr,updateProperties:Fr,diffHydratedProperties:zr,diffHydratedText:Ur,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(t,e,n){switch(e){case"input":if(Pe(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=V(r);i||d("90"),ie(r),Pe(r,i)}}}break;case"textarea":wr(t,n);break;case"select":null!=(e=n.value)&&vr(t,!!n.multiple,e,!1)}}},Wr=null,Vr=null;function Kr(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function Qr(t,e){return"textarea"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&"string"==typeof e.dangerouslySetInnerHTML.__html}var $r=Zn,Gr=Xn,Yr=Jn;function Zr(t){for(t=t.nextSibling;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}function Xr(t){for(t=t.firstChild;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}new Set;var Jr=[],ti=-1;function ei(t){return{current:t}}function ni(t){0>ti||(t.current=Jr[ti],Jr[ti]=null,ti--)}function ri(t,e){Jr[++ti]=t.current,t.current=e}var ii=ei(f),oi=ei(!1),ai=f;function si(t){return li(t)?ai:ii.current}function ui(t,e){var n=t.type.contextTypes;if(!n)return f;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 li(t){return 2===t.tag&&null!=t.type.childContextTypes}function ci(t){li(t)&&(ni(oi),ni(ii))}function fi(t){ni(oi),ni(ii)}function di(t,e,n){ii.current!==f&&d("168"),ri(ii,e),ri(oi,n)}function pi(t,e){var n=t.stateNode,r=t.type.childContextTypes;if("function"!=typeof n.getChildContext)return e;for(var i in n=n.getChildContext())i in r||d("108",be(t)||"Unknown",i);return a({},e,n)}function hi(t){if(!li(t))return!1;var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||f,ai=ii.current,ri(ii,e),ri(oi,oi.current),!0}function yi(t,e){var n=t.stateNode;if(n||d("169"),e){var r=pi(t,ai);n.__reactInternalMemoizedMergedChildContext=r,ni(oi),ni(ii),ri(ii,r)}else ni(oi);ri(oi,e)}function vi(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=e,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function mi(t,e,n){var r=t.alternate;return null===r?((r=new vi(t.tag,e,t.key,t.mode)).type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function gi(t,e,n){var r=t.type,i=t.key;if(t=t.props,"function"==typeof r)var o=r.prototype&&r.prototype.isReactComponent?2:0;else if("string"==typeof r)o=5;else switch(r){case le:return bi(t.children,e,n,i);case he:o=11,e|=3;break;case ce:o=11,e|=2;break;case fe:return(r=new vi(15,t,i,4|e)).type=fe,r.expirationTime=n,r;case ve:o=16,e|=2;break;default:t:{switch("object"==typeof r&&null!==r?r.$$typeof:null){case de:o=13;break t;case pe:o=12;break t;case ye:o=14;break t;default:d("130",null==r?r:typeof r,"")}o=void 0}}return(e=new vi(o,t,i,e)).type=r,e.expirationTime=n,e}function bi(t,e,n,r){return(t=new vi(10,t,r,e)).expirationTime=n,t}function wi(t,e,n){return(t=new vi(6,t,null,e)).expirationTime=n,t}function _i(t,e,n){return(e=new vi(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ki(t,e,n){return t={current:e=new vi(3,null,null,e?3:0),containerInfo:t,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},e.stateNode=t}var Oi=null,xi=null;function Ei(t){return function(e){try{return t(e)}catch(t){}}}function Ci(t){"function"==typeof Oi&&Oi(t)}function Si(t){"function"==typeof xi&&xi(t)}var ji=!1;function Ti(t){return{expirationTime:0,baseState:t,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ai(t){return{expirationTime:t.expirationTime,baseState:t.baseState,firstUpdate:t.firstUpdate,lastUpdate:t.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ni(t){return{expirationTime:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Pi(t,e,n){null===t.lastUpdate?t.firstUpdate=t.lastUpdate=e:(t.lastUpdate.next=e,t.lastUpdate=e),(0===t.expirationTime||t.expirationTime>n)&&(t.expirationTime=n)}function Ri(t,e,n){var r=t.alternate;if(null===r){var i=t.updateQueue,o=null;null===i&&(i=t.updateQueue=Ti(t.memoizedState))}else i=t.updateQueue,o=r.updateQueue,null===i?null===o?(i=t.updateQueue=Ti(t.memoizedState),o=r.updateQueue=Ti(r.memoizedState)):i=t.updateQueue=Ai(o):null===o&&(o=r.updateQueue=Ai(i));null===o||i===o?Pi(i,e,n):null===i.lastUpdate||null===o.lastUpdate?(Pi(i,e,n),Pi(o,e,n)):(Pi(i,e,n),o.lastUpdate=e)}function Li(t,e,n){var r=t.updateQueue;null===(r=null===r?t.updateQueue=Ti(t.memoizedState):Ii(t,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=e:(r.lastCapturedUpdate.next=e,r.lastCapturedUpdate=e),(0===r.expirationTime||r.expirationTime>n)&&(r.expirationTime=n)}function Ii(t,e){var n=t.alternate;return null!==n&&e===n.updateQueue&&(e=t.updateQueue=Ai(e)),e}function Di(t,e,n,r,i,o){switch(n.tag){case 1:return"function"==typeof(t=n.payload)?t.call(o,r,i):t;case 3:t.effectTag=-1025&t.effectTag|64;case 0:if(null===(i="function"==typeof(t=n.payload)?t.call(o,r,i):t)||void 0===i)break;return a({},r,i);case 2:ji=!0}return r}function Mi(t,e,n,r,i){if(ji=!1,!(0===e.expirationTime||e.expirationTime>i)){for(var o=(e=Ii(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),(0===s||s>c)&&(s=c)):(l=Di(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)),(0===s||s>f)&&(s=f)):(l=Di(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,e.expirationTime=s,t.memoizedState=l}}function Bi(t,e){"function"!=typeof t&&d("191",t),t.call(e)}function qi(t,e,n){for(null!==e.firstCapturedUpdate&&(null!==e.lastUpdate&&(e.lastUpdate.next=e.firstCapturedUpdate,e.lastUpdate=e.lastCapturedUpdate),e.firstCapturedUpdate=e.lastCapturedUpdate=null),t=e.firstEffect,e.firstEffect=e.lastEffect=null;null!==t;){var r=t.callback;null!==r&&(t.callback=null,Bi(r,n)),t=t.nextEffect}for(t=e.firstCapturedEffect,e.firstCapturedEffect=e.lastCapturedEffect=null;null!==t;)null!==(e=t.callback)&&(t.callback=null,Bi(e,n)),t=t.nextEffect}function Fi(t,e){return{value:t,source:e,stack:we(e)}}var zi=ei(null),Ui=ei(null),Hi=ei(0);function Wi(t){var e=t.type._context;ri(Hi,e._changedBits),ri(Ui,e._currentValue),ri(zi,t),e._currentValue=t.pendingProps.value,e._changedBits=t.stateNode}function Vi(t){var e=Hi.current,n=Ui.current;ni(zi),ni(Ui),ni(Hi),(t=t.type._context)._currentValue=n,t._changedBits=e}var Ki={},Qi=ei(Ki),$i=ei(Ki),Gi=ei(Ki);function Yi(t){return t===Ki&&d("174"),t}function Zi(t,e){ri(Gi,e),ri($i,t),ri(Qi,Ki);var n=e.nodeType;switch(n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:xr(null,"");break;default:e=xr(e=(n=8===n?e.parentNode:e).namespaceURI||null,n=n.tagName)}ni(Qi),ri(Qi,e)}function Xi(t){ni(Qi),ni($i),ni(Gi)}function Ji(t){$i.current===t&&(ni(Qi),ni($i))}function to(t,e,n){var r=t.memoizedState;r=null===(e=e(n,r))||void 0===e?r:a({},r,e),t.memoizedState=r,null!==(t=t.updateQueue)&&0===t.expirationTime&&(t.baseState=r)}var eo={isMounted:function(t){return!!(t=t._reactInternalFiber)&&2===an(t)},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=ha(),i=Ni(r=da(r,t));i.payload=e,void 0!==n&&null!==n&&(i.callback=n),Ri(t,i,r),pa(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=ha(),i=Ni(r=da(r,t));i.tag=1,i.payload=e,void 0!==n&&null!==n&&(i.callback=n),Ri(t,i,r),pa(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=ha(),r=Ni(n=da(n,t));r.tag=2,void 0!==e&&null!==e&&(r.callback=e),Ri(t,r,n),pa(t,n)}};function no(t,e,n,r,i,o){var a=t.stateNode;return t=t.type,"function"==typeof a.shouldComponentUpdate?a.shouldComponentUpdate(n,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!l(e,n)||!l(r,i))}function ro(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&&eo.enqueueReplaceState(e,e.state,null)}function io(t,e){var n=t.type,r=t.stateNode,i=t.pendingProps,o=si(t);r.props=i,r.state=t.memoizedState,r.refs=f,r.context=ui(t,o),null!==(o=t.updateQueue)&&(Mi(t,o,i,r,e),r.state=t.memoizedState),"function"==typeof(o=t.type.getDerivedStateFromProps)&&(to(t,o,i),r.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(n=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),n!==r.state&&eo.enqueueReplaceState(r,r.state,null),null!==(o=t.updateQueue)&&(Mi(t,o,i,r,e),r.state=t.memoizedState)),"function"==typeof r.componentDidMount&&(t.effectTag|=4)}var oo=Array.isArray;function ao(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){var r=void 0;(n=n._owner)&&(2!==n.tag&&d("110"),r=n.stateNode),r||d("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===f?r.refs={}:r.refs;null===t?delete e[i]:e[i]=t})._stringRef=i,e)}"string"!=typeof t&&d("148"),n._owner||d("254",t)}return t}function so(t,e){"textarea"!==t.type&&d("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function uo(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=mi(t,e,n)).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 s(t,e,n,r){return null===e||6!==e.tag?((e=wi(n,t.mode,r)).return=t,e):((e=i(e,n,r)).return=t,e)}function u(t,e,n,r){return null!==e&&e.type===n.type?((r=i(e,n.props,r)).ref=ao(t,e,n),r.return=t,r):((r=gi(n,t.mode,r)).ref=ao(t,e,n),r.return=t,r)}function l(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=_i(n,t.mode,r)).return=t,e):((e=i(e,n.children||[],r)).return=t,e)}function c(t,e,n,r,o){return null===e||10!==e.tag?((e=bi(n,t.mode,r,o)).return=t,e):((e=i(e,n,r)).return=t,e)}function f(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=wi(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case se:return(n=gi(e,t.mode,n)).ref=ao(t,null,e),n.return=t,n;case ue:return(e=_i(e,t.mode,n)).return=t,e}if(oo(e)||ge(e))return(e=bi(e,t.mode,n,null)).return=t,e;so(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:s(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case se:return n.key===i?n.type===le?c(t,e,n.props.children,r,i):u(t,e,n,r):null;case ue:return n.key===i?l(t,e,n,r):null}if(oo(n)||ge(n))return null!==i?null:c(t,e,n,r,null);so(t,n)}return null}function h(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return s(e,t=t.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case se:return t=t.get(null===r.key?n:r.key)||null,r.type===le?c(e,t,r.props.children,i,r.key):u(e,t,r,i);case ue:return l(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(oo(r)||ge(r))return c(e,t=t.get(n)||null,r,i,null);so(e,r)}return null}function y(i,a,s,u){for(var l=null,c=null,d=a,y=a=0,v=null;null!==d&&y<s.length;y++){d.index>y?(v=d,d=null):v=d.sibling;var m=p(i,d,s[y],u);if(null===m){null===d&&(d=v);break}t&&d&&null===m.alternate&&e(i,d),a=o(m,a,y),null===c?l=m:c.sibling=m,c=m,d=v}if(y===s.length)return n(i,d),l;if(null===d){for(;y<s.length;y++)(d=f(i,s[y],u))&&(a=o(d,a,y),null===c?l=d:c.sibling=d,c=d);return l}for(d=r(i,d);y<s.length;y++)(v=h(d,i,y,s[y],u))&&(t&&null!==v.alternate&&d.delete(null===v.key?y:v.key),a=o(v,a,y),null===c?l=v:c.sibling=v,c=v);return t&&d.forEach(function(t){return e(i,t)}),l}function v(i,a,s,u){var l=ge(s);"function"!=typeof l&&d("150"),null==(s=l.call(s))&&d("151");for(var c=l=null,y=a,v=a=0,m=null,g=s.next();null!==y&&!g.done;v++,g=s.next()){y.index>v?(m=y,y=null):m=y.sibling;var b=p(i,y,g.value,u);if(null===b){y||(y=m);break}t&&y&&null===b.alternate&&e(i,y),a=o(b,a,v),null===c?l=b:c.sibling=b,c=b,y=m}if(g.done)return n(i,y),l;if(null===y){for(;!g.done;v++,g=s.next())null!==(g=f(i,g.value,u))&&(a=o(g,a,v),null===c?l=g:c.sibling=g,c=g);return l}for(y=r(i,y);!g.done;v++,g=s.next())null!==(g=h(y,i,v,g.value,u))&&(t&&null!==g.alternate&&y.delete(null===g.key?v:g.key),a=o(g,a,v),null===c?l=g:c.sibling=g,c=g);return t&&y.forEach(function(t){return e(i,t)}),l}return function(t,r,o,s){"object"==typeof o&&null!==o&&o.type===le&&null===o.key&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case se:t:{var l=o.key;for(u=r;null!==u;){if(u.key===l){if(10===u.tag?o.type===le:u.type===o.type){n(t,u.sibling),(r=i(u,o.type===le?o.props.children:o.props,s)).ref=ao(t,u,o),r.return=t,t=r;break t}n(t,u);break}e(t,u),u=u.sibling}o.type===le?((r=bi(o.props.children,t.mode,s,o.key)).return=t,t=r):((s=gi(o,t.mode,s)).ref=ao(t,r,o),s.return=t,t=s)}return a(t);case ue:t:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[],s)).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=_i(o,t.mode,s)).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,s)).return=t,t=r):(n(t,r),(r=wi(o,t.mode,s)).return=t,t=r),a(t);if(oo(o))return y(t,r,o,s);if(ge(o))return v(t,r,o,s);if(u&&so(t,o),void 0===o)switch(t.tag){case 2:case 1:d("152",(s=t.type).displayName||s.name||"Component")}return n(t,r)}}var lo=uo(!0),co=uo(!1),fo=null,po=null,ho=!1;function yo(t,e){var n=new vi(5,null,null,0);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 vo(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 mo(t){if(ho){var e=po;if(e){var n=e;if(!vo(t,e)){if(!(e=Zr(n))||!vo(t,e))return t.effectTag|=2,ho=!1,void(fo=t);yo(fo,n)}fo=t,po=Xr(e)}else t.effectTag|=2,ho=!1,fo=t}}function go(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;fo=t}function bo(t){if(t!==fo)return!1;if(!ho)return go(t),ho=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!Qr(e,t.memoizedProps))for(e=po;e;)yo(t,e),e=Zr(e);return go(t),po=fo?Zr(t.stateNode):null,!0}function wo(){po=fo=null,ho=!1}function _o(t,e,n){ko(t,e,n,e.expirationTime)}function ko(t,e,n,r){e.child=null===t?co(e,null,n,r):lo(e,t.child,n,r)}function Oo(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function xo(t,e,n,r,i){Oo(t,e);var o=0!=(64&e.effectTag);if(!n&&!o)return r&&yi(e,!1),So(t,e);n=e.stateNode,oe.current=e;var a=o?null:n.render();return e.effectTag|=1,o&&(ko(t,e,null,i),e.child=null),ko(t,e,a,i),e.memoizedState=n.state,e.memoizedProps=n.props,r&&yi(e,!0),e.child}function Eo(t){var e=t.stateNode;e.pendingContext?di(0,e.pendingContext,e.pendingContext!==e.context):e.context&&di(0,e.context,!1),Zi(t,e.containerInfo)}function Co(t,e,n,r){var i=t.child;for(null!==i&&(i.return=t);null!==i;){switch(i.tag){case 12:var o=0|i.stateNode;if(i.type===e&&0!=(o&n)){for(o=i;null!==o;){var a=o.alternate;if(0===o.expirationTime||o.expirationTime>r)o.expirationTime=r,null!==a&&(0===a.expirationTime||a.expirationTime>r)&&(a.expirationTime=r);else{if(null===a||!(0===a.expirationTime||a.expirationTime>r))break;a.expirationTime=r}o=o.return}o=null}else o=i.child;break;case 13:o=i.type===t.type?null:i.child;break;default:o=i.child}if(null!==o)o.return=i;else for(o=i;null!==o;){if(o===t){o=null;break}if(null!==(i=o.sibling)){i.return=o.return,o=i;break}o=o.return}i=o}}function So(t,e){if(null!==t&&e.child!==t.child&&d("153"),null!==e.child){var n=mi(t=e.child,t.pendingProps,t.expirationTime);for(e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=mi(t,t.pendingProps,t.expirationTime)).return=e;n.sibling=null}return e.child}function jo(t,e,n){if(0===e.expirationTime||e.expirationTime>n){switch(e.tag){case 3:Eo(e);break;case 2:hi(e);break;case 4:Zi(e,e.stateNode.containerInfo);break;case 13:Wi(e)}return null}switch(e.tag){case 0:null!==t&&d("155");var r=e.type,i=e.pendingProps,o=si(e);return r=r(i,o=ui(e,o)),e.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(o=e.type,e.tag=2,e.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,"function"==typeof(o=o.getDerivedStateFromProps)&&to(e,o,i),i=hi(e),r.updater=eo,e.stateNode=r,r._reactInternalFiber=e,io(e,n),t=xo(t,e,!0,i,n)):(e.tag=1,_o(t,e,r),e.memoizedProps=i,t=e.child),t;case 1:return i=e.type,n=e.pendingProps,oi.current||e.memoizedProps!==n?(i=i(n,r=ui(e,r=si(e))),e.effectTag|=1,_o(t,e,i),e.memoizedProps=n,t=e.child):t=So(t,e),t;case 2:if(i=hi(e),null===t)if(null===e.stateNode){var a=e.pendingProps,s=e.type;r=si(e);var u=2===e.tag&&null!=e.type.contextTypes;a=new s(a,o=u?ui(e,r):f),e.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=eo,e.stateNode=a,a._reactInternalFiber=e,u&&((u=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,u.__reactInternalMemoizedMaskedChildContext=o),io(e,n),r=!0}else{s=e.type,r=e.stateNode,u=e.memoizedProps,o=e.pendingProps,r.props=u;var l=r.context;a=ui(e,a=si(e));var c=s.getDerivedStateFromProps;(s="function"==typeof c||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(u!==o||l!==a)&&ro(e,r,o,a),ji=!1;var p=e.memoizedState;l=r.state=p;var h=e.updateQueue;null!==h&&(Mi(e,h,o,r,n),l=e.memoizedState),u!==o||p!==l||oi.current||ji?("function"==typeof c&&(to(e,c,o),l=e.memoizedState),(u=ji||no(e,u,o,p,l,a))?(s||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(e.effectTag|=4)):("function"==typeof r.componentDidMount&&(e.effectTag|=4),e.memoizedProps=o,e.memoizedState=l),r.props=o,r.state=l,r.context=a,r=u):("function"==typeof r.componentDidMount&&(e.effectTag|=4),r=!1)}else s=e.type,r=e.stateNode,o=e.memoizedProps,u=e.pendingProps,r.props=o,l=r.context,a=ui(e,a=si(e)),(s="function"==typeof(c=s.getDerivedStateFromProps)||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(o!==u||l!==a)&&ro(e,r,u,a),ji=!1,l=e.memoizedState,p=r.state=l,null!==(h=e.updateQueue)&&(Mi(e,h,u,r,n),p=e.memoizedState),o!==u||l!==p||oi.current||ji?("function"==typeof c&&(to(e,c,u),p=e.memoizedState),(c=ji||no(e,o,u,l,p,a))?(s||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(u,p,a),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(u,p,a)),"function"==typeof r.componentDidUpdate&&(e.effectTag|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof r.componentDidUpdate||o===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),e.memoizedProps=u,e.memoizedState=p),r.props=u,r.state=p,r.context=a,r=c):("function"!=typeof r.componentDidUpdate||o===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),r=!1);return xo(t,e,r,i,n);case 3:return Eo(e),null!==(i=e.updateQueue)?(r=null!==(r=e.memoizedState)?r.element:null,Mi(e,i,e.pendingProps,null,n),(i=e.memoizedState.element)===r?(wo(),t=So(t,e)):(r=e.stateNode,(r=(null===t||null===t.child)&&r.hydrate)&&(po=Xr(e.stateNode.containerInfo),fo=e,r=ho=!0),r?(e.effectTag|=2,e.child=co(e,null,i,n)):(wo(),_o(t,e,i)),t=e.child)):(wo(),t=So(t,e)),t;case 5:return Yi(Gi.current),(i=Yi(Qi.current))!==(r=xr(i,e.type))&&(ri($i,e),ri(Qi,r)),null===t&&mo(e),i=e.type,u=e.memoizedProps,r=e.pendingProps,o=null!==t?t.memoizedProps:null,oi.current||u!==r||((u=1&e.mode&&!!r.hidden)&&(e.expirationTime=1073741823),u&&1073741823===n)?(u=r.children,Qr(i,r)?u=null:o&&Qr(i,o)&&(e.effectTag|=16),Oo(t,e),1073741823!==n&&1&e.mode&&r.hidden?(e.expirationTime=1073741823,e.memoizedProps=r,t=null):(_o(t,e,u),e.memoizedProps=r,t=e.child)):t=So(t,e),t;case 6:return null===t&&mo(e),e.memoizedProps=e.pendingProps,null;case 16:return null;case 4:return Zi(e,e.stateNode.containerInfo),i=e.pendingProps,oi.current||e.memoizedProps!==i?(null===t?e.child=lo(e,null,i,n):_o(t,e,i),e.memoizedProps=i,t=e.child):t=So(t,e),t;case 14:return i=e.type.render,n=e.pendingProps,r=e.ref,oi.current||e.memoizedProps!==n||r!==(null!==t?t.ref:null)?(_o(t,e,i=i(n,r)),e.memoizedProps=n,t=e.child):t=So(t,e),t;case 10:return n=e.pendingProps,oi.current||e.memoizedProps!==n?(_o(t,e,n),e.memoizedProps=n,t=e.child):t=So(t,e),t;case 11:return n=e.pendingProps.children,oi.current||null!==n&&e.memoizedProps!==n?(_o(t,e,n),e.memoizedProps=n,t=e.child):t=So(t,e),t;case 15:return n=e.pendingProps,e.memoizedProps===n?t=So(t,e):(_o(t,e,n.children),e.memoizedProps=n,t=e.child),t;case 13:return function(t,e,n){var r=e.type._context,i=e.pendingProps,o=e.memoizedProps,a=!0;if(oi.current)a=!1;else if(o===i)return e.stateNode=0,Wi(e),So(t,e);var s=i.value;if(e.memoizedProps=i,null===o)s=1073741823;else if(o.value===i.value){if(o.children===i.children&&a)return e.stateNode=0,Wi(e),So(t,e);s=0}else{var u=o.value;if(u===s&&(0!==u||1/u==1/s)||u!=u&&s!=s){if(o.children===i.children&&a)return e.stateNode=0,Wi(e),So(t,e);s=0}else if(s="function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,s):1073741823,0==(s|=0)){if(o.children===i.children&&a)return e.stateNode=0,Wi(e),So(t,e)}else Co(e,r,s,n)}return e.stateNode=s,Wi(e),_o(t,e,i.children),e.child}(t,e,n);case 12:t:if(r=e.type,o=e.pendingProps,u=e.memoizedProps,i=r._currentValue,a=r._changedBits,oi.current||0!==a||u!==o){if(e.memoizedProps=o,void 0!==(s=o.unstable_observedBits)&&null!==s||(s=1073741823),e.stateNode=s,0!=(a&s))Co(e,r,a,n);else if(u===o){t=So(t,e);break t}n=(n=o.children)(i),e.effectTag|=1,_o(t,e,n),t=e.child}else t=So(t,e);return t;default:d("156")}}function To(t){t.effectTag|=4}var Ao=void 0,No=void 0,Po=void 0;function Ro(t,e){var n=e.pendingProps;switch(e.tag){case 1:return null;case 2:return ci(e),null;case 3:Xi(),fi();var r=e.stateNode;return r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==t&&null!==t.child||(bo(e),e.effectTag&=-3),Ao(e),null;case 5:Ji(e),r=Yi(Gi.current);var i=e.type;if(null!==t&&null!=e.stateNode){var o=t.memoizedProps,a=e.stateNode,s=Yi(Qi.current);a=qr(a,i,o,n,r),No(t,e,a,i,o,n,r,s),t.ref!==e.ref&&(e.effectTag|=128)}else{if(!n)return null===e.stateNode&&d("166"),null;if(t=Yi(Qi.current),bo(e))n=e.stateNode,i=e.type,o=e.memoizedProps,n[z]=e,n[U]=o,r=zr(n,i,o,t,r),e.updateQueue=r,null!==r&&To(e);else{(t=Dr(i,n,r,t))[z]=e,t[U]=n;t:for(o=e.child;null!==o;){if(5===o.tag||6===o.tag)t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}Br(t,i,n,r),Kr(i,n)&&To(e),e.stateNode=t}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Po(t,e,t.memoizedProps,n);else{if("string"!=typeof n)return null===e.stateNode&&d("166"),null;r=Yi(Gi.current),Yi(Qi.current),bo(e)?(r=e.stateNode,n=e.memoizedProps,r[z]=e,Ur(r,n)&&To(e)):((r=Mr(n,r))[z]=e,e.stateNode=r)}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return Xi(),Ao(e),null;case 13:return Vi(e),null;case 12:return null;case 0:d("167");default:d("156")}}function Lo(t,e){var n=e.source;null===e.stack&&null!==n&&we(n),null!==n&&be(n),e=e.value,null!==t&&2===t.tag&&be(t);try{e&&e.suppressReactErrorLogging||console.error(e)}catch(t){t&&t.suppressReactErrorLogging||console.error(t)}}function Io(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){ca(t,e)}else e.current=null}function Do(t){switch(Si(t),t.tag){case 2:Io(t);var e=t.stateNode;if("function"==typeof e.componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ca(t,e)}break;case 5:Io(t);break;case 4:qo(t)}}function Mo(t){return 5===t.tag||3===t.tag||4===t.tag}function Bo(t){t:{for(var e=t.return;null!==e;){if(Mo(e)){var n=e;break t}e=e.return}d("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:d("161")}16&n.effectTag&&(Sr(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||Mo(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,s=n;8===o.nodeType?o.parentNode.insertBefore(a,s):o.insertBefore(a,s)}else e.insertBefore(i.stateNode,n);else r?(o=e,a=i.stateNode,8===o.nodeType?o.parentNode.insertBefore(a,o):o.appendChild(a)):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 qo(t){for(var e=t,n=!1,r=void 0,i=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&d("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(Do(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:Do(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 Fo(t,e){switch(e.tag){case 2:break;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps;t=null!==t?t.memoizedProps:r;var i=e.type,o=e.updateQueue;e.updateQueue=null,null!==o&&(n[U]=r,Fr(n,o,i,t,r))}break;case 6:null===e.stateNode&&d("162"),e.stateNode.nodeValue=e.memoizedProps;break;case 3:case 15:case 16:break;default:d("163")}}function zo(t,e,n){(n=Ni(n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Qa(r),Lo(t,e)},n}function Uo(t,e,n){(n=Ni(n)).tag=3;var r=t.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===oa?oa=new Set([this]):oa.add(this);var n=e.value,r=e.stack;Lo(t,e),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function Ho(t,e,n,r,i,o){n.effectTag|=512,n.firstEffect=n.lastEffect=null,r=Fi(r,n),t=e;do{switch(t.tag){case 3:return t.effectTag|=1024,void Li(t,r=zo(t,r,o),o);case 2:if(e=r,n=t.stateNode,0==(64&t.effectTag)&&null!==n&&"function"==typeof n.componentDidCatch&&(null===oa||!oa.has(n)))return t.effectTag|=1024,void Li(t,r=Uo(t,e,o),o)}t=t.return}while(null!==t)}function Wo(t){switch(t.tag){case 2:ci(t);var e=t.effectTag;return 1024&e?(t.effectTag=-1025&e|64,t):null;case 3:return Xi(),fi(),1024&(e=t.effectTag)?(t.effectTag=-1025&e|64,t):null;case 5:return Ji(t),null;case 16:return 1024&(e=t.effectTag)?(t.effectTag=-1025&e|64,t):null;case 4:return Xi(),null;case 13:return Vi(t),null;default:return null}}Ao=function(){},No=function(t,e,n){(e.updateQueue=n)&&To(e)},Po=function(t,e,n,r){n!==r&&To(e)};var Vo=$r(),Ko=2,Qo=Vo,$o=0,Go=0,Yo=!1,Zo=null,Xo=null,Jo=0,ta=-1,ea=!1,na=null,ra=!1,ia=!1,oa=null;function aa(){if(null!==Zo)for(var t=Zo.return;null!==t;){var e=t;switch(e.tag){case 2:ci(e);break;case 3:Xi(),fi();break;case 5:Ji(e);break;case 4:Xi();break;case 13:Vi(e)}t=t.return}Xo=null,Jo=0,ta=-1,ea=!1,Zo=null,ia=!1}function sa(t){for(;;){var e=t.alternate,n=t.return,r=t.sibling;if(0==(512&t.effectTag)){e=Ro(e,t);var i=t;if(1073741823===Jo||1073741823!==i.expirationTime){var o=0;switch(i.tag){case 3:case 2:var a=i.updateQueue;null!==a&&(o=a.expirationTime)}for(a=i.child;null!==a;)0!==a.expirationTime&&(0===o||o>a.expirationTime)&&(o=a.expirationTime),a=a.sibling;i.expirationTime=o}if(null!==e)return e;if(null!==n&&0==(512&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)),null!==r)return r;if(null===n){ia=!0;break}t=n}else{if(null!==(t=Wo(t)))return t.effectTag&=511,t;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==r)return r;if(null===n)break;t=n}}return null}function ua(t){var e=jo(t.alternate,t,Jo);return null===e&&(e=sa(t)),oe.current=null,e}function la(t,e,n){Yo&&d("243"),Yo=!0,e===Jo&&t===Xo&&null!==Zo||(aa(),Jo=e,ta=-1,Zo=mi((Xo=t).current,null,Jo),t.pendingCommitExpirationTime=0);var r=!1;for(ea=!n||Jo<=Ko;;){try{if(n)for(;null!==Zo&&!Ka();)Zo=ua(Zo);else for(;null!==Zo;)Zo=ua(Zo)}catch(e){if(null===Zo)r=!0,Qa(e);else{null===Zo&&d("271");var i=(n=Zo).return;if(null===i){r=!0,Qa(e);break}Ho(t,i,n,e,0,Jo),Zo=sa(n)}}break}if(Yo=!1,r)return null;if(null===Zo){if(ia)return t.pendingCommitExpirationTime=e,t.current.alternate;ea&&d("262"),0<=ta&&setTimeout(function(){var e=t.current.expirationTime;0!==e&&(0===t.remainingExpirationTime||t.remainingExpirationTime<e)&&Ma(t,e)},ta),function(t){null===ka&&d("246"),ka.remainingExpirationTime=t}(t.current.expirationTime)}return null}function ca(t,e){var n;t:{for(Yo&&!ra&&d("263"),n=t.return;null!==n;){switch(n.tag){case 2:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof r.componentDidCatch&&(null===oa||!oa.has(r))){Ri(n,t=Uo(n,t=Fi(e,t),1),1),pa(n,1),n=void 0;break t}break;case 3:Ri(n,t=zo(n,t=Fi(e,t),1),1),pa(n,1),n=void 0;break t}n=n.return}3===t.tag&&(Ri(t,n=zo(t,n=Fi(e,t),1),1),pa(t,1)),n=void 0}return n}function fa(){var t=2+25*(1+((ha()-2+500)/25|0));return t<=$o&&(t=$o+1),$o=t}function da(t,e){return t=0!==Go?Go:Yo?ra?1:Jo:1&e.mode?Na?2+10*(1+((t-2+15)/10|0)):2+25*(1+((t-2+500)/25|0)):1,Na&&(0===xa||t>xa)&&(xa=t),t}function pa(t,e){for(;null!==t;){if((0===t.expirationTime||t.expirationTime>e)&&(t.expirationTime=e),null!==t.alternate&&(0===t.alternate.expirationTime||t.alternate.expirationTime>e)&&(t.alternate.expirationTime=e),null===t.return){if(3!==t.tag)break;var n=t.stateNode;!Yo&&0!==Jo&&e<Jo&&aa();var r=n.current.expirationTime;Yo&&!ra&&Xo===n||Ma(n,r),La>Ra&&d("185")}t=t.return}}function ha(){return Qo=$r()-Vo,Ko=2+(Qo/10|0)}function ya(t){var e=Go;Go=2+25*(1+((ha()-2+500)/25|0));try{return t()}finally{Go=e}}function va(t,e,n,r,i){var o=Go;Go=1;try{return t(e,n,r,i)}finally{Go=o}}var ma=null,ga=null,ba=0,wa=-1,_a=!1,ka=null,Oa=0,xa=0,Ea=!1,Ca=!1,Sa=null,ja=null,Ta=!1,Aa=!1,Na=!1,Pa=null,Ra=1e3,La=0,Ia=1;function Da(t){if(0!==ba){if(t>ba)return;Yr(wa)}var e=$r()-Vo;ba=t,wa=Gr(qa,{timeout:10*(t-2)-e})}function Ma(t,e){if(null===t.nextScheduledRoot)t.remainingExpirationTime=e,null===ga?(ma=ga=t,t.nextScheduledRoot=t):(ga=ga.nextScheduledRoot=t).nextScheduledRoot=ma;else{var n=t.remainingExpirationTime;(0===n||e<n)&&(t.remainingExpirationTime=e)}_a||(Ta?Aa&&(ka=t,Oa=1,Wa(t,1,!1)):1===e?Fa():Da(e))}function Ba(){var t=0,e=null;if(null!==ga)for(var n=ga,r=ma;null!==r;){var i=r.remainingExpirationTime;if(0===i){if((null===n||null===ga)&&d("244"),r===r.nextScheduledRoot){ma=ga=r.nextScheduledRoot=null;break}if(r===ma)ma=i=r.nextScheduledRoot,ga.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===ga){(ga=n).nextScheduledRoot=ma,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===t||i<t)&&(t=i,e=r),r===ga)break;n=r,r=r.nextScheduledRoot}}null!==(n=ka)&&n===e&&1===t?La++:La=0,ka=e,Oa=t}function qa(t){za(0,!0,t)}function Fa(){za(1,!1,null)}function za(t,e,n){if(ja=n,Ba(),e)for(;null!==ka&&0!==Oa&&(0===t||t>=Oa)&&(!Ea||ha()>=Oa);)ha(),Wa(ka,Oa,!Ea),Ba();else for(;null!==ka&&0!==Oa&&(0===t||t>=Oa);)Wa(ka,Oa,!1),Ba();null!==ja&&(ba=0,wa=-1),0!==Oa&&Da(Oa),ja=null,Ea=!1,Ha()}function Ua(t,e){_a&&d("253"),ka=t,Oa=e,Wa(t,e,!1),Fa(),Ha()}function Ha(){if(La=0,null!==Pa){var t=Pa;Pa=null;for(var e=0;e<t.length;e++){var n=t[e];try{n._onComplete()}catch(t){Ca||(Ca=!0,Sa=t)}}}if(Ca)throw t=Sa,Sa=null,Ca=!1,t}function Wa(t,e,n){_a&&d("245"),_a=!0,n?null!==(n=t.finishedWork)?Va(t,n,e):(t.finishedWork=null,null!==(n=la(t,e,!0))&&(Ka()?t.finishedWork=n:Va(t,n,e))):null!==(n=t.finishedWork)?Va(t,n,e):(t.finishedWork=null,null!==(n=la(t,e,!1))&&Va(t,n,e)),_a=!1}function Va(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.remainingExpirationTime=0);if(t.finishedWork=null,ra=Yo=!0,(n=e.stateNode).current===e&&d("177"),0===(r=n.pendingCommitExpirationTime)&&d("261"),n.pendingCommitExpirationTime=0,ha(),oe.current=null,1<e.effectTag)if(null!==e.lastEffect){e.lastEffect.nextEffect=e;var i=e.firstEffect}else i=e;else i=e.firstEffect;Wr=Tn;var o=u();if(Un(o)){if("selectionStart"in o)var a={start:o.selectionStart,end:o.selectionEnd};else t:{var s=window.getSelection&&window.getSelection();if(s&&0!==s.rangeCount){a=s.anchorNode;var l=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{a.nodeType,f.nodeType}catch(t){a=null;break t}var p=0,h=-1,y=-1,v=0,m=0,g=o,b=null;e:for(;;){for(var w;g!==a||0!==l&&3!==g.nodeType||(h=p+l),g!==f||0!==s&&3!==g.nodeType||(y=p+s),3===g.nodeType&&(p+=g.nodeValue.length),null!==(w=g.firstChild);)b=g,g=w;for(;;){if(g===o)break e;if(b===a&&++v===l&&(h=p),b===f&&++m===s&&(y=p),null!==(w=g.nextSibling))break;b=(g=b).parentNode}g=w}a=-1===h||-1===y?null:{start:h,end:y}}else a=null}a=a||{start:0,end:0}}else a=null;for(Vr={focusedElem:o,selectionRange:a},An(!1),na=i;null!==na;){o=!1,a=void 0;try{for(;null!==na;){if(256&na.effectTag){var _=na.alternate;switch((l=na).tag){case 2:if(256&l.effectTag&&null!==_){var k=_.memoizedProps,O=_.memoizedState,x=l.stateNode;x.props=l.memoizedProps,x.state=l.memoizedState;var E=x.getSnapshotBeforeUpdate(k,O);x.__reactInternalSnapshotBeforeUpdate=E}break;case 3:case 5:case 6:case 4:break;default:d("163")}}na=na.nextEffect}}catch(t){o=!0,a=t}o&&(null===na&&d("178"),ca(na,a),null!==na&&(na=na.nextEffect))}for(na=i;null!==na;){_=!1,k=void 0;try{for(;null!==na;){var C=na.effectTag;if(16&C&&Sr(na.stateNode,""),128&C){var S=na.alternate;if(null!==S){var j=S.ref;null!==j&&("function"==typeof j?j(null):j.current=null)}}switch(14&C){case 2:Bo(na),na.effectTag&=-3;break;case 6:Bo(na),na.effectTag&=-3,Fo(na.alternate,na);break;case 4:Fo(na.alternate,na);break;case 8:qo(O=na),O.return=null,O.child=null,O.alternate&&(O.alternate.child=null,O.alternate.return=null)}na=na.nextEffect}}catch(t){_=!0,k=t}_&&(null===na&&d("178"),ca(na,k),null!==na&&(na=na.nextEffect))}if(j=Vr,S=u(),C=j.focusedElem,_=j.selectionRange,S!==C&&c(document.documentElement,C)){Un(C)&&(S=_.start,void 0===(j=_.end)&&(j=S),"selectionStart"in C?(C.selectionStart=S,C.selectionEnd=Math.min(j,C.value.length)):window.getSelection&&(S=window.getSelection(),k=C[ht()].length,j=Math.min(_.start,k),_=void 0===_.end?j:Math.min(_.end,k),!S.extend&&j>_&&(k=_,_=j,j=k),k=zn(C,j),O=zn(C,_),k&&O&&(1!==S.rangeCount||S.anchorNode!==k.node||S.anchorOffset!==k.offset||S.focusNode!==O.node||S.focusOffset!==O.offset)&&((x=document.createRange()).setStart(k.node,k.offset),S.removeAllRanges(),j>_?(S.addRange(x),S.extend(O.node,O.offset)):(x.setEnd(O.node,O.offset),S.addRange(x))))),S=[];for(j=C;j=j.parentNode;)1===j.nodeType&&S.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(C.focus(),C=0;C<S.length;C++)(j=S[C]).element.scrollLeft=j.left,j.element.scrollTop=j.top}for(Vr=null,An(Wr),Wr=null,n.current=e,na=i;null!==na;){i=!1,C=void 0;try{for(S=r;null!==na;){var T=na.effectTag;if(36&T){var A=na.alternate;switch(_=S,(j=na).tag){case 2:var N=j.stateNode;if(4&j.effectTag)if(null===A)N.props=j.memoizedProps,N.state=j.memoizedState,N.componentDidMount();else{var P=A.memoizedProps,R=A.memoizedState;N.props=j.memoizedProps,N.state=j.memoizedState,N.componentDidUpdate(P,R,N.__reactInternalSnapshotBeforeUpdate)}var L=j.updateQueue;null!==L&&(N.props=j.memoizedProps,N.state=j.memoizedState,qi(j,L,N));break;case 3:var I=j.updateQueue;if(null!==I){if(k=null,null!==j.child)switch(j.child.tag){case 5:k=j.child.stateNode;break;case 2:k=j.child.stateNode}qi(j,I,k)}break;case 5:var D=j.stateNode;null===A&&4&j.effectTag&&Kr(j.type,j.memoizedProps)&&D.focus();break;case 6:case 4:case 15:case 16:break;default:d("163")}}if(128&T){j=void 0;var M=na.ref;if(null!==M){var B=na.stateNode;switch(na.tag){case 5:j=B;break;default:j=B}"function"==typeof M?M(j):M.current=j}}var q=na.nextEffect;na.nextEffect=null,na=q}}catch(t){i=!0,C=t}i&&(null===na&&d("178"),ca(na,C),null!==na&&(na=na.nextEffect))}Yo=ra=!1,Ci(e.stateNode),0===(e=n.current.expirationTime)&&(oa=null),t.remainingExpirationTime=e}function Ka(){return!(null===ja||ja.timeRemaining()>Ia)&&(Ea=!0)}function Qa(t){null===ka&&d("246"),ka.remainingExpirationTime=0,Ca||(Ca=!0,Sa=t)}function $a(t,e){var n=Ta;Ta=!0;try{return t(e)}finally{(Ta=n)||_a||Fa()}}function Ga(t,e){if(Ta&&!Aa){Aa=!0;try{return t(e)}finally{Aa=!1}}return t(e)}function Ya(t,e){_a&&d("187");var n=Ta;Ta=!0;try{return va(t,e)}finally{Ta=n,Fa()}}function Za(t){var e=Ta;Ta=!0;try{va(t)}finally{(Ta=e)||_a||za(1,!1,null)}}function Xa(t,e,n,r,i){var o=e.current;if(n){var a;n=n._reactInternalFiber;t:{for(2===an(n)&&2===n.tag||d("170"),a=n;3!==a.tag;){if(li(a)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}(a=a.return)||d("171")}a=a.stateNode.context}n=li(n)?pi(n,a):a}else n=f;return null===e.context?e.context=n:e.pendingContext=n,e=i,(i=Ni(r)).payload={element:t},null!==(e=void 0===e?null:e)&&(i.callback=e),Ri(o,i,r),pa(o,r),r}function Ja(t){var e=t._reactInternalFiber;return void 0===e&&("function"==typeof t.render?d("188"):d("268",Object.keys(t))),null===(t=ln(e))?null:t.stateNode}function ts(t,e,n,r){var i=e.current;return Xa(t,e,n,i=da(ha(),i),r)}function es(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function ns(t){var e=t.findFiberByHostInstance;return 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);Oi=Ei(function(t){return e.onCommitFiberRoot(n,t)}),xi=Ei(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}return!0}(a({},t,{findHostInstanceByFiber:function(t){return null===(t=ln(t))?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null}}))}var rs=$a,is=function(t,e,n){if(Na)return t(e,n);Ta||_a||0===xa||(za(xa,!1,null),xa=0);var r=Na,i=Ta;Ta=Na=!0;try{return t(e,n)}finally{Na=r,(Ta=i)||_a||Fa()}},os=function(){_a||0===xa||(za(xa,!1,null),xa=0)};function as(t){this._expirationTime=fa(),this._root=t,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function ss(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function us(t,e,n){this._internalRoot=ki(t,e,n)}function ls(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function cs(t,e,n,r,i){ls(n)||d("200");var o=n._reactRootContainer;if(o){if("function"==typeof i){var a=i;i=function(){var t=es(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 us(t,!1,e)}(n,r),"function"==typeof i){var s=i;i=function(){var t=es(o._internalRoot);s.call(t)}}Ga(function(){null!=t?o.legacy_renderSubtreeIntoContainer(t,e,i):o.render(e,i)})}return es(o._internalRoot)}function fs(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return ls(e)||d("200"),function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ue,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}(t,e,null,n)}qt.injectFiberControlledHostComponent(Hr),as.prototype.render=function(t){this._defer||d("250"),this._hasChildren=!0,this._children=t;var e=this._root._internalRoot,n=this._expirationTime,r=new ss;return Xa(t,e,null,n,r._onCommit),r},as.prototype.then=function(t){if(this._didComplete)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},as.prototype.commit=function(){var t=this._root._internalRoot,e=t.firstBatch;if(this._defer&&null!==e||d("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&&d("251"),r._next=i._next,this._next=e,t.firstBatch=this}this._defer=!1,Ua(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},as.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])()}},ss.prototype.then=function(t){if(this._didCommit)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},ss.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&&d("191",n),n()}}},us.prototype.render=function(t,e){var n=this._internalRoot,r=new ss;return null!==(e=void 0===e?null:e)&&r.then(e),ts(t,n,null,r._onCommit),r},us.prototype.unmount=function(t){var e=this._internalRoot,n=new ss;return null!==(t=void 0===t?null:t)&&n.then(t),ts(null,e,null,n._onCommit),n},us.prototype.legacy_renderSubtreeIntoContainer=function(t,e,n){var r=this._internalRoot,i=new ss;return null!==(n=void 0===n?null:n)&&i.then(n),ts(e,r,t,i._onCommit),i},us.prototype.createBatch=function(){var t=new as(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},Qt=rs,$t=is,Gt=os;var ds={createPortal:fs,findDOMNode:function(t){return null==t?null:1===t.nodeType?t:Ja(t)},hydrate:function(t,e,n){return cs(null,t,e,!0,n)},render:function(t,e,n){return cs(null,t,e,!1,n)},unstable_renderSubtreeIntoContainer:function(t,e,n,r){return(null==t||void 0===t._reactInternalFiber)&&d("38"),cs(t,e,n,!1,r)},unmountComponentAtNode:function(t){return ls(t)||d("40"),!!t._reactRootContainer&&(Ga(function(){cs(null,null,t,!1,function(){t._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return fs.apply(void 0,arguments)},unstable_batchedUpdates:$a,unstable_deferredUpdates:ya,flushSync:Ya,unstable_flushControlled:Za,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:q,EventPluginRegistry:x,EventPropagators:nt,ReactControlledComponent:Kt,ReactDOMComponentTree:K,ReactDOMEventListener:In},unstable_createRoot:function(t,e){return new us(t,!0,null!=e&&!0===e.hydrate)}};ns({findFiberByHostInstance:H,bundleType:0,version:"16.4.0",rendererPackageName:"react-dom"});var ps={default:ds},hs=ps&&ds||ps;t.exports=hs.default?hs.default:hs},function(t,e,n){"use strict";var r=n(185);t.exports=function(t){return r(t)&&3==t.nodeType}},function(t,e,n){"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},,,,,,,,function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"alwaysShowOptionMarkers",function(){return S.j}),n.d(r,"isFetchingActive",function(){return c.g}),n.d(r,"enableForceVerification",function(){return gt}),n.d(r,"currentPublicAuthorizationState",function(){return bt});var i,o=n(3),a=n(10),s=n(5),u=n(0),l=n(13),c=n(8),f=n(21),d=n(55),p=n(52),h=n(11);function y(t,e){var n,r;Object(h.c)("Scrivito.urlFor"),g(t,e),e&&(n=e.query,r=e.hasOwnProperty("hash")?e.hash:e.fragment);var o=Object(a.e)(t);return Object(p.b)(o,{origin:i,query:n,hash:r})}var v=u.R.union([o.ObjType,o.LinkType,o.BinaryType]),m=u.R.struct({query:u.R.maybe(u.R.String),hash:u.R.maybe(u.R.String),fragment:u.R.maybe(u.R.String)}),g=Object(u.u)("urlFor",[["target",v],["options",u.R.maybe(m)]],{docPermalink:"js-sdk/urlFor"}),b=n(9),w=n(32),_=n(1),k=n(61),O=n(19),x=n(77),E=n(33),C=n(16),S=n(15);function j(t){var e=l(t);return z?Object(s.h)(function(){return Object(f.f)(t)}).then(function(t){return t.path?Object(_.include)(["/",""],t.path)?null:{obj:t.obj,url:e}:null}):u.p.resolve(null)}var T=n(23),A=n(56),N=n(70),P=n(71),R=n(67),L=n(78),I=[];function D(){return I}var M=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}(),B=function(){function t(){}return t.prototype.contentBrowserConfiguration=function(){return Object(P.a)(Object(N.b)())},t.prototype.titleForObj=function(t){return F("titleForContent",t)},t.prototype.descriptionForObj=function(t){return F("descriptionForContent",t)},t.prototype.executeCustomCommand=function(t){var e=function(t){var e=new M(t);return D().forEach(function(t){return t.call(null,e)}),e.onClickHandler()}(t);e&&e.call(null)},t.prototype.titleForWidget=function(t,e){return Object(L.a)(t,e)},t.prototype.initializeContentForObj=function(t){Object(R.b)(t)},t.prototype.initializeContentForWidget=function(t,e){Object(R.c)(t,e)},t.prototype.getClasses=function(){var t=Object(E.a)(),e=[];return Object(_.each)(t.allObjClasses(),function(t,n){return e.push(function(t,e){var n=a.b.forClass(e);return Object(_.pick)({name:t,type:"Obj",attributes:q(n.attributes,Object(O.a)(t,"attributes")),description:Object(O.a)(t,"description"),hideInSelectionDialogs:Object(O.a)(t,"hideInSelectionDialogs"),properties:Object(O.a)(t,"properties"),propertiesGroups:Object(O.a)(t,"propertiesGroups"),thumbnail:Object(O.a)(t,"thumbnail"),title:Object(O.a)(t,"title")},_.identity)}(n,t))}),Object(_.each)(t.allWidgetClasses(),function(t,n){return e.push(function(t,e){var n=a.b.forClass(e);return Object(_.pick)({name:t,type:"Widget",attributes:q(n.attributes,Object(O.a)(t,"attributes")),onlyInside:n.onlyInside,description:Object(O.a)(t,"description"),hideInSelectionDialogs:Object(O.a)(t,"hideInSelectionDialogs"),properties:Object(O.a)(t,"properties"),propertiesGroups:Object(O.a)(t,"propertiesGroups"),thumbnail:Object(O.a)(t,"thumbnail"),title:Object(O.a)(t,"title")},_.identity)}(n,t))}),e},t.prototype.navigateTo=function(t){Object(s.h)(function(){var e=o.BasicObj.get(t);if(e)return Object(a.f)(Object(C.a)(),e)}).then(function(t){t&&Object(k.a)(t)})},t.prototype.showCustomComponent=function(t,e){Object(S.p)(t,e)},t.prototype.urlFor=function(t){return Object(s.h)(function(){var e=o.BasicObj.getIncludingDeleted(t);return e?Object(p.b)(e):null})},t.prototype.resolveUrl=function(t){return j(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.getDocumentHeight=function(){return Object(T.b)().querySelector("html").getBoundingClientRect().height},t.prototype.replaceInternalLinks=function(t){return Object(A.a)(t)},t.prototype.getHomepageId=function(){var t=Object(d.a)();return t?t.id():null},t.prototype.getSiteIdForObj=function(t){var e=o.BasicObj.get(t);return e?Object(w.c)(e):null},t}();function q(t,e){var n=Object(_.map)(t,function(t,e){var n={name:e,type:t[0]};if(t.length>1){var r=t[1];"only"in r&&r.only&&(n.only=r.only),"values"in r&&r.values&&(n.values=r.values)}return n});return e&&Object.keys(e).forEach(function(t){var r=Object(_.findWhere)(n,{name:t});if(r){var i=e[t],o=i.title,a=i.description,s=i.values;s?Object(_.extend)(r,{title:o,description:a,valuesLocalization:s}):Object(_.extend)(r,{title:o,description:a})}}),n}function F(t,e){var n=o.BasicObj.getIncludingDeleted(e);if(n){var r=Object(a.f)(Object(C.a)(),n);return Object(x.a)(n.objClass(),t,r)}}var z=!1,U=u.R.refinement(u.R.String,function(t){return l(t).origin()===t}),H=u.R.struct({tenant:u.R.String,endpoint:u.R.maybe(u.R.String),homepage:u.R.maybe(u.R.Function),origin:u.R.maybe(U),routingBasePath:u.R.maybe(u.R.String),unstable:u.R.maybe(u.R.Object)}),W=Object(u.u)("configure",[["configuration",H]],{docPermalink:"js-sdk/configure"});function V(t){W(t);var e=t.tenant,n=t.homepage,r=t.routingBasePath,s=t.unstable,l=t.origin,p=t.endpoint||"api.scrivito.com";if(e===h.b)Object(h.q)(),h.l.disableReplication();else if(b.b){var y={tenant:e,endpoint:p};if(s){var v=s.useRailsAuth;v&&(y.useRailsAuth=v)}b.b.configureTenant(y),b.b.setAppAdapter(Object(u.A)(),new B)}else c.c.init(p,e);if(s){var m=s.getSiteIdForObj;m&&Object(w.d)(m)}var g=n?function(){return Object(a.e)(n())}:function(){return o.BasicObj.root()};Object(d.b)(g),Object(f.d)({routingBasePath:r}),function(t){i=t}(l||void 0),z=!0}var K,Q=n(37),$=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},G=function(){function t(){this.patch={insertIds:[],removeIds:[],items:{},modifyItems:{}}}return t.prototype.insert=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Z.apply(void 0,[t].concat(e)),this.patch.insertIds.push(t.id),this.patch.items[t.id]=Object(_.pick)(t,"description","enabled","group","icon","position","title")},t.prototype.modify=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];X.apply(void 0,[t].concat(e)),this.patch.modifyItems[t.id]=$({},this.patch.modifyItems[t.id],Object(_.pick)(t,"group","icon","position","title"))},t.prototype.remove=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];J.apply(void 0,[t].concat(e)),this.patch.removeIds.push(t)},t.prototype.getPatch=function(){return this.patch},t}(),Y=u.R.struct({after:u.R.maybe(u.R.String),before:u.R.maybe(u.R.String)}),Z=Object(u.u)("menu.insert",[["options",u.R.struct({id:u.R.String,description:u.R.maybe(u.R.String),enabled:u.R.maybe(u.R.Boolean),group:u.R.maybe(u.R.String),icon:u.R.maybe(u.R.String),onClick:u.R.maybe(u.R.Function),position:u.R.maybe(Y),title:u.R.maybe(u.R.String)})]],{docPermalink:"js-sdk/extendMenu"}),X=Object(u.u)("menu.modify",[["options",u.R.struct({id:u.R.String,group:u.R.maybe(u.R.String),icon:u.R.maybe(u.R.String),position:u.R.maybe(Y),title:u.R.maybe(u.R.String)})]],{docPermalink:"js-sdk/extendMenu"}),J=Object(u.u)("menu.remove",[["id",u.R.String]],{docPermalink:"js-sdk/extendMenu"});function tt(){var t=new G;return D().forEach(function(e){return e.call(null,t)}),t.getPatch()}function et(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];nt.apply(void 0,[t].concat(e)),b.b&&(K||(K=Object(s.m)(tt,function(t){t.allDataLoaded&&b.b&&b.b.updateMenu(t.result)})),function(t){I.push(t)}(t),K&&K.forceRefresh())}var nt=Object(u.u)("extendMenu",[["menuCallback",u.R.Function]],{docPermalink:"js-sdk/extendMenu"}),rt=n(53);function it(t){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ot(t){return function(t){return JSON.stringify(t)}({version:Object(u.A)(),recording:Object(s.f)(t)})}function at(t){var e=function(t){var e=function(t){try{return JSON.parse(t)}catch(t){return}}(t);if("object"!==it(e)||null===e||Array.isArray(e))return;if(function(t){return!!t.version}(e))return e}(t);e?!function(t){return t.version===Object(u.A)()}(e)?Object(u.I)("could not preload: dump is from version "+e.version+", this is version "+Object(u.A)()):Object(s.j)(e.recording):Object(u.I)("could not preload: parsing dump failed")}var st=n(63),ut=n(59);function lt(t,e){Object(h.c)("Scrivito.renderPage"),ct(t,e);var n=Object(a.e)(t);return Object(s.h)(function(){return Object(s.n)(function(){return function(t){Object(st.c)(function(){return Object(ut.b)(Object(ut.a)(t))})}(n),Object(Q.d)(n,function(){return Object(rt.b)(e)})})}).then(function(t){return{result:t.result,preloadDump:ot(t.usedData)}})}var ct=Object(u.u)("renderPage",[["page",o.ObjType],["render",u.R.Function]],{docPermalink:"js-sdk/renderPage"});function ft(t){return dt(t),u.p.resolve().then(function(){return b.b||at(t),Object(s.h)(function(){Object(Q.a)()})})}var dt=Object(u.u)("preload",[["preloadDump",u.R.String]],{docPermalink:"js-sdk/preload"}),pt=n(75);function ht(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];yt.apply(void 0,[t].concat(e)),b.b&&b.b.openCustomDialog(t)}var yt=Object(u.u)("openDialog",[["name",u.R.String]],{docPermalink:"js-sdk/openDialog"}),vt=n(34),mt=n(28);function gt(){c.c.enableForceVerification()}function bt(){return c.c.currentPublicAuthorizationState()}n.d(e,"Link",function(){return _t}),n.d(e,"Obj",function(){return kt}),n.d(e,"ObjSearch",function(){return Ot}),n.d(e,"Widget",function(){return xt}),n.d(e,"createObjClass",function(){return Et}),n.d(e,"createWidgetClass",function(){return Ct}),n.d(e,"getClass",function(){return St}),n.d(e,"provideObjClass",function(){return jt}),n.d(e,"provideWidgetClass",function(){return Tt}),n.d(e,"Binary",function(){return o.Binary}),n.d(e,"FutureBinary",function(){return o.FutureBinary}),n.d(e,"ObjFacetValue",function(){return a.a}),n.d(e,"load",function(){return s.h}),n.d(e,"ArgumentError",function(){return u.b}),n.d(e,"ScrivitoError",function(){return u.o}),n.d(e,"configure",function(){return V}),n.d(e,"configureContentBrowser",function(){return N.a}),n.d(e,"currentPage",function(){return Q.a}),n.d(e,"currentPageParams",function(){return Q.c}),n.d(e,"extendMenu",function(){return et}),n.d(e,"renderPage",function(){return lt}),n.d(e,"preload",function(){return ft}),n.d(e,"finishLoading",function(){return pt.a}),n.d(e,"openDialog",function(){return ht}),n.d(e,"isInPlaceEditingActive",function(){return vt.a}),n.d(e,"navigateTo",function(){return k.a}),n.d(e,"provideEditingConfig",function(){return O.b}),n.d(e,"urlFor",function(){return y}),n.d(e,"useHistory",function(){return mt.e}),n.d(e,"unstable_selectSiteId",function(){return w.e}),n.d(e,"BackgroundImageTag",function(){return S.a}),n.d(e,"ChildListTag",function(){return S.b}),n.d(e,"ContentTag",function(){return S.c}),n.d(e,"CurrentPage",function(){return S.d}),n.d(e,"ImageTag",function(){return S.e}),n.d(e,"LinkTag",function(){return S.f}),n.d(e,"NotFoundErrorPage",function(){return S.g}),n.d(e,"WidgetTag",function(){return S.i}),n.d(e,"connect",function(){return S.k}),n.d(e,"provideComponent",function(){return S.n}),n.d(e,"registerComponent",function(){return S.o}),n.d(e,"_internal",function(){return r});var wt=Object(E.a)(),_t=wt.Link,kt=wt.Obj,Ot=wt.ObjSearch,xt=wt.Widget,Et=wt.createObjClass,Ct=wt.createWidgetClass,St=wt.getClass,jt=wt.provideObjClass,Tt=wt.provideWidgetClass},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(120);function i(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(t,e){"content"===t&&Object(r.a)(document,function(){return e(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}},function(t,e,n){var r,i,o,a,s,u;i=n(239),r=n(240),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},handleClick:function(t){var e,n,r,o,a;return t.preventDefault(),t.stopPropagation(),this.isDisplayed()||(o=i.selection.getSelectionRange(this.document),r=i.selection.getSelectedParentElement(o),e=a=null,(n=i.util.getClosestTag(r,"a"))&&(e=(n=this.proxy.edQuery(n)).attr("href")||null,a=n.attr("target")||null),this.showForm({value:e,target:a})),!1},getTemplate:function(){var t;return t="",this.targetCheckbox&&(t="<div class='medium-editor-toolbar-form-row medium-editor-toolbar-anchor-target-toggle'>\n <label>\n <input type='checkbox' class='medium-editor-toolbar-anchor-target'>\n <i class='scrivito_customer_icon sci_inv_check'></i>\n <i class='scrivito_customer_icon sci_rounded_square'></i>\n "+this.targetCheckboxText+"\n </label>\n</div>"),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection'></i>\n<input type='text' class='medium-editor-toolbar-input' placeholder='"+this.placeholderText+"'>\n<i class='medium-editor-toolbar-save scrivito_customer_icon sci_check'></i>\n<i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross'></i>\n"+t).replace(/\n\s*/g,"")},attachFormEvents:function(t){var e;return i.extensions.anchor.prototype.attachFormEvents.call(this,t),t=this.proxy.edQuery(t),e=t.find(".medium-editor-toolbar-input"),t.find(".medium-editor-toolbar-browse").on("click",function(t){return function(){var n,r;return r=(n=t.proxy.idFromPath(e.val()))?[n]:[],scrivito.openContentBrowser({selection:r,selectionMode:"single"}).catch(function(t){throw e.focus(),t}).then(function(n){var r,i;if(r=n.isSelected,i=n.selection,r)return e.focus(),i.length?e.val(t.proxy.pathForId(i[0])):e.val("")}),!1}}(this))},completeFormSave:function(t){return this.base.restoreSelection(),t.value?this.execAction(this.action,t):this.execAction("unlink"),this.base.checkSelection()}}),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},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(245);e.QuillDeltaToHtmlConverter=r.QuillDeltaToHtmlConverter;var i=n(96);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(125);e.DeltaInsertOp=o.DeltaInsertOp;var a=n(126);e.InsertDataQuill=a.InsertDataQuill,e.InsertDataCustom=a.InsertDataCustom;var s=n(62);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},function(t,e,n){"use strict";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(195),o=n.n(i),a=n(25),s=n.n(a),u=n(196);var l=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}();var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(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")),f=function(){return 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"),d(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),d(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 d(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",f);var p=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),h=s.a.import("core/module"),y=s.a.import("formats/link"),v=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(y,t.index),r=n[0],i=n[1];return r?{index:t.index-i,length:r.length()}:void 0}},n}return p(e,t),e}(h);var m=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),g=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],r=t.getModule("scrivitoApi").getTooltip();r.edit("link","/"+n)}})}(e)},n}return m(e,t),e}(s.a.import("core/module"));s.a.register("modules/scrivitoInternalLink",g);var b=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),w=s.a.import("themes/bubble"),_=s.a.import("themes/snow"),k=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.snowTheme=new _(e,n),r}return b(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",O),this.tooltip.textbox.insertAdjacentHTML("afterend",x)},e}(w),O='\n <a class="ql-svt ql-svt-browse" title="Browse">\n <i class="scrivito_icon scrivito_icon_content_browser"></i>\n </a>\n',x='\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=function(){return 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":function(){var t=s.a.import("parchment");return new t.Attributor.Attribute("target","target",{scope:t.Scope.INLINE})}()}),s.a.register(c,!0),s.a.register("modules/scrivitoApi",v),s.a.register("modules/scrivitoZIndex",E);var C=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 S=function(t){t.getAttribute("data-scrivito-editors-placeholder")||t.setAttribute("data-scrivito-editors-placeholder","Click to edit")},j=n(60),T=n.n(j);function A(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var P=function(){function t(e,n){A(this,t),this.domNode=e,this.controller=n}return function(t,e,n){e&&N(t.prototype,e),n&&N(t,n)}(t,[{key:"content",value:function(){return this.controller.getContent()}},{key:"idFromPath",value:function(t){if(t.match(/^objid:/))return t.replace(/^objid:/,"")}},{key:"edQuery",value:function(){return T.a.apply(void 0,arguments)}},{key:"jQueryElement",value:function(){return this.edQuery(this.domNode)}},{key:"pathForId",value:function(t){return"objid:".concat(t)}},{key:"save",value:function(t){this.controller.setContent(t);var e={done:function(t){return t(),e}};return e}},{key:"trigger",value:function(){}}]),t}();function R(t){return(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})(t)}function L(t,e){if(!function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}(t,e))throw new TypeError("Cannot call a class as a function")}function I(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function D(t,e){return!e||"object"!==R(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function B(t,e){return(B=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var q=function(t){function e(){return L(this,e),D(this,M(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");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&B(t,e)}(e,r),function(t,e,n){e&&I(t.prototype,e),n&&I(t,n)}(e,[{key:"contentDidChange",value:function(){this._updateContent&&this._updateContent()}},{key:"editorWillBeActivated",value:function(){this._controller.setDomMode("Replace")}},{key:"editorDomWasMounted",value:function(t){var e=this;if(S(t),"yes"===window.top.localStorage.getItem("__scrivito_enable_quill")){var n=C(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 P(t,this._controller),i=o()(r);this._updateContent=function(){var n=i.exportSelection();t.innerHTML=e._controller.getContent(),i.importSelection(n)}}}},{key:"editorDomWasUnmounted",value:function(){this._updateContent=void 0}}],[{key:"canEdit",value:function(t){return"html"===t.type}}]),e}();var F=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(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"}).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 U(t,e){var n=e.jQueryElement();switch(t.keyCode||t.which){case 13:K(n)||(t.preventDefault(),n.blur());break;case 27:t.stopPropagation(),n.blur()}}function H(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 W(t){var e=function(t){return V(t),t[0].innerText.replace(/\r\n/g,"\n").replace(/\n+$/,"")}(t.jQueryElement());return t.save(e).done(function(){return t.trigger("scrivito_editors:save")})}function V(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 K(t){return!0===t.data("scrivitoEditorsMultiline")||!1!==t.data("scrivitoEditorsMultiline")&&t.css("white-space").match(/pre/)}function Q(t){if(K(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 $=300;var G=function(t){var e=t.jQueryElement();e.attr("contenteditable","true").blur(function(){return function(t){W(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),Q(t.jQueryElement())}(t)}).click(function(){return H(t)}).focus(function(){return function(t){Q(t.jQueryElement())}(t)}).keypress(function(e){return U(e,t)}).keyup(function(e){return U(e,t)}),"false"!==e.attr("data-scrivito-editors-autosave")&&e.on("cut input keypress keyup paste",function(){return function(t){W(t)}(t)}),Q(e),e.on("click",function(t){e.attr("contenteditable","true"),V(e),t.timeStamp-e.data("scrivito_editors_last_click")>=$&&t.preventDefault(),e.data("scrivito_editors_last_click",t.timeStamp)})};var Y=function(){var t=Object.setPrototypeOf||function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Y(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,S(t);var e=new P(t,this._controller);this._setCurrentContent(),G(e)},e.prototype.editorDomWasUnmounted=function(){this._currentDomNode=void 0},e.prototype._setCurrentContent=function(){this._currentDomNode&&(this._currentDomNode.textContent=this._controller.getContent())},e}(r);function X(){scrivito.registerEditor(q),scrivito.registerEditor(z),scrivito.registerEditor(Z)}n.d(e,"a",function(){return X})},function(t,e,n){"use strict";var r=n(1),i=n(71),o=n(70),a=n(9);var s,u=n(76),l=n(6),c=n(13),f=n(3),d=n(5),p=n(28),h=n(21),y=n(35);function v(t){var e;Object(l.i)(function(){return Object(d.e)(y.a).result},function(n){void 0!==n&&(void 0!==e&&function(t,e){if(Object(y.c)(t))return!!Object(y.c)(e)&&(t.objId===e.objId&&t.location===e.location);if(Object(y.c)(e))return!1;return Object(y.b)(t)===Object(y.b)(e)}(e,n)||(e=n,t(n)))})}function m(t){if(Object(y.c)(t)){var e=t.location;Object(d.h)(function(){if(p.a()===e){var n=f.BasicObj.get(t.objId),r=h.c({obj:n});return c(e).path(r).toString()}}).then(function(t){if(t){var n=p.a();e===n&&t!==n&&p.d(t)}})}}function g(t){if(a.b){var e=Object(y.c)(t)?t.objId:null;s!==e&&(s=e,a.b.setCurrentPageId(e))}}function b(t){(Object(y.c)(t)||Object(y.b)(t))&&window.scrollTo(0,0)}var w=n(8),_=n(11);function k(t){if(t){var e=t.uiAdapter();Object(a.a)(e),Object(w.h)(e),Object(w.i)(e.currentWorkspaceId()),Object(f.setBinaryHandler)(e),Object(f.setLinkHandler)(e),Object(_.m)(t.getObjReplicationPool())}Object(l.h)(t),v(m),s=void 0,v(g),v(b)}n.d(e,"a",function(){return k}),window.scrivito||(window.scrivito={}),window.scrivito.registerEditor=u.b,window.scrivito.openContentBrowser=function(t){if(!a.b)throw new Error("Cannot open ContentBrowser without UI present");return a.b.openContentBrowser(Object(i.a)(Object(r.extend)({},Object(o.b)(),Object(r.pick)(t,"selection","selectionMode"))))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){(function(r){var i;
157
+ /*! @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;e<n;e++)if(e in this&&this[e]===t)return e;return-1},o=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new o("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new o("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(t,e)},s=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],i=0,o=n.length;i<o;i++)this.push(n[i]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=s.prototype=[],l=function(){return new s(this)};if(o.prototype=Error.prototype,u.item=function(t){return this[t]||null},u.contains=function(t){return-1!==a(this,t+="")},u.add=function(){var t,e=arguments,n=0,r=e.length,i=!1;do{t=e[n]+"",-1===a(this,t)&&(this.push(t),i=!0)}while(++n<r);i&&this._updateClassName()},u.remove=function(){var t,e,n=arguments,r=0,i=n.length,o=!1;do{for(t=n[r]+"",e=a(this,t);-1!==e;)this.splice(e,1),o=!0,e=a(this,t)}while(++r<i);o&&this._updateClassName()},u.toggle=function(t,e){t+="";var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},u.toString=function(){return this.join(" ")},n.defineProperty){var c={get:l,enumerable:!0,configurable:!0};try{n.defineProperty(e,"classList",c)}catch(t){-2146823252===t.number&&(c.enumerable=!1,n.defineProperty(e,"classList",c))}}else n.prototype.__defineGetter__&&e.__defineGetter__("classList",l)}}(self)
158
+ /*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */,
159
+ /*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
160
+ function(t){"use strict";if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},i=n.prototype,o=r.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},u="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),l=u.length,c=t.URL||t.webkitURL||t,f=c.createObjectURL,d=c.revokeObjectURL,p=c,h=t.btoa,y=t.atob,v=t.ArrayBuffer,m=t.Uint8Array,g=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=o.fake=!0;l--;)s.prototype[u[l]]=l+1;return c.createObjectURL||(p=t.URL=function(t){var e,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=t,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(e=t.match(g),n.origin=e&&e[1])),n}),p.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof r?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):h?e+";base64,"+h(t.data):e+","+encodeURIComponent(t.data)):f?f.call(c,t):void 0},p.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&d&&d.call(c,t)},i.append=function(t){var n=this.data;if(m&&(t instanceof v||t instanceof m)){for(var i="",o=new m(t),u=0,l=o.length;u<l;u++)i+=String.fromCharCode(o[u]);n.push(i)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var c=new a;n.push(c.readAsBinaryString(t))}else t instanceof r?"base64"===t.encoding&&y?n.push(y(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},i.getBlob=function(t){return arguments.length||(t=null),new r(this.data.join(""),t,"raw")},i.toString=function(){return"[object BlobBuilder]"},o.slice=function(t,e,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(t,i>1?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<a;o++)Uint8Array&&t[o]instanceof Uint8Array?i.append(t[o].buffer):i.append(t[o]);var s=i.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=n(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(o,a){"use strict";"object"==typeof t&&void 0!==r&&r&&r.versions&&r.versions.electron||"object"!=typeof t?void 0===(i=function(){return a}.call(e,n,e,t))||(t.exports=i):t.exports=a}(0,function(){"use strict";function t(t,e){return this.init(t,e)}return t.extensions={},function(e){function n(t,e){var n,r=Array.prototype.slice.call(arguments,2);e=e||{};for(var i=0;i<r.length;i++){var o=r[i];if(o)for(n in o)o.hasOwnProperty(n)&&void 0!==o[n]&&(t||!1===e.hasOwnProperty(n))&&(e[n]=o[n])}return e}var r=!1;try{var i=document.createElement("div"),o=document.createTextNode(" ");i.appendChild(o),r=i.contains(o)}catch(t){}var a={isIE:"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent),isEdge:null!==/Edge\/\d+/.exec(navigator.userAgent),isFF:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMac: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.start<o+u.nodeValue.length&&(s=!0,l=a.splitStartNodeIfNeeded(u,n.start,o)),s&&a.splitEndNodeIfNeeded(u,l,n.end,o),s&&o===n.end)break;if(s&&o>n.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(r).length)return[e];for(var i=0;i<e.childNodes.length;i++){var o=e.childNodes[i];if(3===o.nodeType)n.push(o);else if(1===o.nodeType){0===o.querySelectorAll(r).length?n.push(o):n=n.concat(t.util.splitByBlockElements(o))}}return n},findAdjacentTextNodeWithContent:function(t,e,n){var r,i=!1,o=n.createNodeIterator(t,NodeFilter.SHOW_TEXT,null,!1);for(r=o.nextNode();r;){if(r===e)i=!0;else if(i&&3===r.nodeType&&r.nodeValue&&r.nodeValue.trim().length>0)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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},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)&&!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)&&c.parentNode&&1===c.parentNode.childNodes.length&&!a.isMediumEditorElement(c.parentNode);)c=c.parentNode;i.selectNode(c)}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&&"<p>"===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;n<t.length;n+=1)!1!==r&&r!==t[n].attributes.href.value||(t[n].target="_blank",t[n].rel="noopener noreferrer")},removeTargetBlank:function(t,e){var n;if("a"===t.nodeName.toLowerCase())t.removeAttribute("target"),t.removeAttribute("rel");else for(t=t.getElementsByTagName("a"),n=0;n<t.length;n+=1)e===t[n].attributes.href.value&&(t[n].removeAttribute("target"),t[n].removeAttribute("rel"))},addClassToAnchors:function(t,e){var n,r,i=e.split(" ");if("a"===t.nodeName.toLowerCase())for(r=0;r<i.length;r+=1)t.classList.add(i[r]);else{var o=t.getElementsByTagName("a");if(0===o.length){var s=a.getClosestTag(t,"a");t=s?[s]:[]}else t=o;for(n=0;n<t.length;n+=1)for(r=0;r<i.length;r+=1)t[n].classList.add(i[r])}},isListItem:function(t){if(!t)return!1;if("li"===t.nodeName.toLowerCase())return!0;for(var e=t.parentNode,n=e.nodeName.toLowerCase();"li"===n||!a.isBlockContainer(e)&&"div"!==n;){if("li"===n)return!0;if(!(e=e.parentNode))return!1;n=e.nodeName.toLowerCase()}return!1},cleanListDOM:function(e,n){if("li"===n.nodeName.toLowerCase()){var r=n.parentElement;"p"===r.parentElement.nodeName.toLowerCase()&&(a.unwrap(r.parentElement,e),t.selection.moveCursor(e,n.firstChild,n.firstChild.textContent.length))}},splitOffDOMTree:function(t,e,n){for(var r=e,i=null,o=!n;r!==t;){var a,s=r.parentNode,u=s.cloneNode(!1),l=o?r:s.firstChild;for(i&&(o?u.appendChild(i):a=i),i=u;l;){var c=l.nextSibling;l===r?(l.hasChildNodes()?l=l.cloneNode(!1):l.parentNode.removeChild(l),l.textContent&&i.appendChild(l),l=o?c:null):(l.parentNode.removeChild(l),(l.hasChildNodes()||l.textContent)&&i.appendChild(l),l=c)}a&&i.appendChild(a),r=s}return i},moveTextRangeIntoElement:function(t,e,n){if(!t||!e)return!1;var r=a.findCommonRoot(t,e);if(!r)return!1;if(e===t){var i=t.parentNode,o=t.nextSibling;return i.removeChild(t),n.appendChild(t),o?i.insertBefore(n,o):i.appendChild(n),n.hasChildNodes()}for(var s,u,l,c=[],f=0;f<r.childNodes.length;f++)if(l=r.childNodes[f],s){if(a.isDescendant(l,e,!0)){u=l;break}c.push(l)}else a.isDescendant(l,t,!0)&&(s=l);var d=u.nextSibling,p=r.ownerDocument.createDocumentFragment();return s===t?(s.parentNode.removeChild(s),p.appendChild(s)):p.appendChild(a.splitOffDOMTree(s,t)),c.forEach(function(t){t.parentNode.removeChild(t),p.appendChild(t)}),u===e?(u.parentNode.removeChild(u),p.appendChild(u)):p.appendChild(a.splitOffDOMTree(u,e,!0)),n.appendChild(p),u.parentNode===r?r.insertBefore(n,u):d?r.insertBefore(n,d):r.appendChild(n),n.hasChildNodes()},depthOfNode:function(t){for(var e=0,n=t;null!==n.parentNode;)n=n.parentNode,e++;return e},findCommonRoot:function(t,e){for(var n=a.depthOfNode(t),r=a.depthOfNode(e),i=t,o=e;n!==r;)n>r?(i=i.parentNode,n-=1):(o=o.parentNode,r-=1);for(;i!==o;)i=i.parentNode,o=o.parentNode;return i},isElementAtBeginningOfBlock:function(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;e<t.childNodes.length;e++){var n=a._getFirstTextNode(t.childNodes[e]);if(null!==n)return n}return null},ensureUrlHasProtocol:function(t){return-1===t.indexOf("://")?"http://"+t:t},warn:function(){void 0!==e.console&&"function"==typeof e.console.warn&&e.console.warn.apply(e.console,arguments)},deprecated:function(t,e,n){var r=t+" is deprecated, please use "+e+" instead.";n&&(r+=" Will be removed in "+n),a.warn(r)},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;i<r.length;i++)n.appendChild(r[i]);n.childNodes.length?t.parentNode.replaceChild(n,t):t.parentNode.removeChild(t)},guid:function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};t.util=a}(window),function(){var e=function(e){t.util.extend(this,e)};e.extend=function(e){var n,r=this;n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},t.util.extend(n,r);var i=function(){this.constructor=n};return i.prototype=r.prototype,n.prototype=new i,e&&t.util.extend(n.prototype,e),n},e.prototype={init:function(){},base:void 0,name:void 0,checkState:void 0,destroy:void 0,queryCommandState:void 0,isActive:void 0,isAlreadyApplied:void 0,setActive:void 0,setInactive:void 0,getInteractionElements:void 0,window:void 0,document:void 0,getEditorElements:function(){return this.base.elements},getEditorId:function(){return this.base.id},getEditorOption:function(t){return this.base.options[t]}},["execAction","on","off","subscribe","trigger"].forEach(function(t){e.prototype[t]=function(){return this.base[t].apply(this.base,arguments)}}),t.Extension=e}(),function(){function e(e){return t.util.isBlockContainer(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}var n={findMatchingSelectionParent:function(e,n){var r,i=n.getSelection();return 0!==i.rangeCount&&(r=i.getRangeAt(0).commonAncestorContainer,t.util.traverseUp(r,e))},getSelectionElement:function(e){return this.findMatchingSelectionParent(function(e){return t.util.isMediumEditorElement(e)},e)},exportSelection:function(t,e){if(!t)return null;var n=null,r=e.getSelection();if(r.rangeCount>0){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 y=0;a.parentNode.childNodes[y]!==a;)y++;i.setEnd(a.parentNode,y+1),d=!0}if(!d&&1===a.nodeType)for(var v=a.childNodes.length-1;v>=0;)s.push(a.childNodes[v]),v-=1}else o=u+a.length,!l&&t.start>=u&&t.start<=o&&(p||t.start<o?(i.setStart(a,t.start-u),l=!0):h=a),l&&t.end>=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&&a<i.parentNode.childNodes.length;a++)i.parentNode.childNodes[a]===i&&(o=a);n.setStart(i.parentNode,o+1),n.collapse(!0)}}return n},importSelectionMoveCursorPastBlocks:function(n,r,i,o){var a,s,u=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),l=o.startContainer,c=0;for(i=i||1,a=3===l.nodeType&&t.util.isBlockContainer(l.previousSibling)?l.previousSibling:t.util.getClosestBlockContainer(l);u.nextNode();)if(s){if(s=u.currentNode,++c===i)break;if(s.textContent.length>0)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<n;e+=1)r.appendChild(o.getRangeAt(e).cloneContents());i=r.innerHTML}return i},getCaretOffsets:function(t,e){var n,r;return e||(e=window.getSelection().getRangeAt(0)),n=e.cloneRange(),r=e.cloneRange(),n.selectNodeContents(t),n.setEnd(e.endContainer,e.endOffset),r.selectNodeContents(t),r.setStart(e.endContainer,e.endOffset),{left:n.toString().length,right:r.toString().length}},rangeSelectsSingleNode:function(t){var e=t.startContainer;return e===t.endContainer&&e.hasChildNodes()&&t.endOffset===t.startOffset+1},getSelectedParentElement:function(t){return t?this.rangeSelectsSingleNode(t)&&3!==t.startContainer.childNodes[t.startOffset].nodeType?t.startContainer.childNodes[t.startOffset]:3===t.startContainer.nodeType?t.startContainer.parentNode:t.startContainer:null},getSelectedElements:function(t){var e,n,r,i=t.getSelection();if(!i.rangeCount||i.isCollapsed||!i.getRangeAt(0).commonAncestorContainer)return[];if(3===(e=i.getRangeAt(0)).commonAncestorContainer.nodeType){for(n=[],r=e.commonAncestorContainer;r.parentNode&&1===r.parentNode.childNodes.length;)n.push(r.parentNode),r=r.parentNode;return n}return[].filter.call(e.commonAncestorContainer.getElementsByTagName("*"),function(t){return"function"!=typeof i.containsNode||i.containsNode(t,!0)})},selectNode:function(t,e){var n=e.createRange();n.selectNodeContents(t),this.selectRange(e,n)},select:function(t,e,n,r,i){var o=t.createRange();return o.setStart(e,n),r?o.setEnd(r,i):o.collapse(!0),this.selectRange(t,o),o},clearSelection:function(t,e){e?t.getSelection().collapseToStart():t.getSelection().collapseToEnd()},moveCursor:function(t,e,n){this.select(t,e,n)},getSelectionRange:function(t){var e=t.getSelection();return 0===e.rangeCount?null:e.getRangeAt(0)},selectRange:function(t,e){var n=t.getSelection();n.removeAllRanges(),n.addRange(e)},getSelectionStart:function(t){var e=t.getSelection().anchorNode;return e&&3===e.nodeType?e.parentNode:e}};t.selection=n}(),function(){function e(e,n){return e.some(function(e){if("function"!=typeof e.getInteractionElements)return!1;var r=e.getInteractionElements();return!!r&&(Array.isArray(r)||(r=[r]),r.some(function(e){return t.util.isDescendant(e,n,!0)}))})}var n=function(t){this.base=t,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};n.prototype={InputEventOnContenteditableSupported:!t.util.isIE&&!t.util.isEdge,attachDOMEvent:function(e,n,r,i){var o=this.base.options.contentWindow,a=this.base.options.ownerDocument;e=t.util.isElement(e)||[o,a].indexOf(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;i<o;i+=1)if((a=this.events[i])[0]===t&&a[1]===e&&a[2]===n&&a[3]===r)return i;return-1},detachAllDOMEvents:function(){for(var t=this.events.pop();t;)t[0].removeEventListener(t[1],t[2],t[3]),t=this.events.pop()},detachAllEventsFromElement:function(t){for(var e=this.events.filter(function(e){return e&&e[0].getAttribute&&e[0].getAttribute("medium-editor-index")===t.getAttribute("medium-editor-index")}),n=0,r=e.length;n<r;n++){var i=e[n];this.detachDOMEvent(i[0],i[1],i[2],i[3])}},attachAllEventsToElement:function(t){this.listeners.editableInput&&(this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML),this.eventsCache&&this.eventsCache.forEach(function(e){this.attachDOMEvent(t,e.name,e.handler.bind(this))},this)},enableCustomEvent:function(t){void 0!==this.disabledEvents[t]&&delete this.disabledEvents[t]},disableCustomEvent:function(t){this.disabledEvents[t]=!0},attachCustomEvent:function(t,e){this.setupListener(t),this.customEvents[t]||(this.customEvents[t]=[]),this.customEvents[t].push(e)},detachCustomEvent:function(t,e){var n=this.indexOfCustomListener(t,e);-1!==n&&this.customEvents[t].splice(n,1)},indexOfCustomListener:function(t,e){return this.customEvents[t]&&this.customEvents[t].length?this.customEvents[t].indexOf(e):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(t,e,n){this.customEvents[t]&&!this.disabledEvents[t]&&this.customEvents[t].forEach(function(t){t(e,n)})},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach(function(t){t.removeAttribute("data-medium-focused")})},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(t){this.handleDocumentExecCommand(t)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var t=this.options.ownerDocument;if(this.execCommandListener&&t.execCommand.listeners){var e=t.execCommand.listeners.indexOf(this.execCommandListener);-1!==e&&t.execCommand.listeners.splice(e,1),t.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var t=this.options.ownerDocument;if(!t.execCommand.listeners){var e=function(e,n){t.execCommand.listeners&&t.execCommand.listeners.forEach(function(t){t({command:e[0],value:e[2],args:e,result:n})})},n=function(){var n=t.execCommand.orig.apply(this,arguments);if(!t.execCommand.listeners)return n;var r=Array.prototype.slice.call(arguments);return e(r,n),n};n.orig=t.execCommand,n.listeners=[],n.callListeners=e,t.execCommand=n}},unwrapExecCommand:function(){var t=this.options.ownerDocument;t.execCommand.orig&&(t.execCommand=t.execCommand.orig)},setupListener:function(t){if(!this.listeners[t]){switch(t){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache={},this.base.elements.forEach(function(t){this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML},this),this.InputEventOnContenteditableSupported&&this.attachToEachElement("input",this.handleInput),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":case"editableKeydownEnter":case"editableKeydownTab":case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[t]=!0}},attachToEachElement:function(t,e){this.eventsCache||(this.eventsCache=[]),this.base.elements.forEach(function(n){this.attachDOMEvent(n,t,e.bind(this))},this),this.eventsCache.push({name:t,handler:e})},cleanupElement:function(t){var e=t.getAttribute("medium-editor-index");e&&(this.detachAllEventsFromElement(t),this.contentCache&&delete this.contentCache[e])},focusElement:function(t){t.focus(),this.updateFocus(t,{target:t,type:"focus"})},updateFocus:function(n,r){var i,o=this.base.getFocusedElement();o&&"click"===r.type&&this.lastMousedownTarget&&(t.util.isDescendant(o,this.lastMousedownTarget,!0)||e(this.base.extensions,this.lastMousedownTarget))&&(i=o),i||this.base.elements.some(function(e){return!i&&t.util.isDescendant(e,n,!0)&&(i=e),!!i},this);var a=!t.util.isDescendant(o,n,!0)&&!e(this.base.extensions,n);i!==o&&(o&&a&&(o.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",r,o)),i&&(i.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",r,i))),a&&this.triggerCustomEvent("externalInteraction",r)},updateInput:function(t,e){if(this.contentCache){var n=t.getAttribute("medium-editor-index"),r=t.innerHTML;r!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",e,t),this.contentCache[n]=r}},handleDocumentSelectionChange:function(e){if(e.currentTarget&&e.currentTarget.activeElement){var n,r=e.currentTarget.activeElement;this.base.elements.some(function(e){return!!t.util.isDescendant(e,r,!0)&&(n=e,!0)},this),n&&this.updateInput(n,{target:r,currentTarget:n})}},handleDocumentExecCommand:function(){var t=this.base.getFocusedElement();t&&this.updateInput(t,{target:t,currentTarget:t})},handleBodyClick:function(t){this.updateFocus(t.target,t)},handleBodyFocus:function(t){this.updateFocus(t.target,t)},handleBodyMousedown:function(t){this.lastMousedownTarget=t.target},handleInput:function(t){this.updateInput(t.currentTarget,t)},handleClick:function(t){this.triggerCustomEvent("editableClick",t,t.currentTarget)},handleBlur:function(t){this.triggerCustomEvent("editableBlur",t,t.currentTarget)},handleKeypress:function(t){if(this.triggerCustomEvent("editableKeypress",t,t.currentTarget),this.keypressUpdateInput){var e={target:t.target,currentTarget:t.currentTarget};setTimeout(function(){this.updateInput(e.currentTarget,e)}.bind(this),0)}},handleKeyup:function(t){this.triggerCustomEvent("editableKeyup",t,t.currentTarget)},handleMouseover:function(t){this.triggerCustomEvent("editableMouseover",t,t.currentTarget)},handleDragging:function(t){this.triggerCustomEvent("editableDrag",t,t.currentTarget)},handleDrop:function(t){this.triggerCustomEvent("editableDrop",t,t.currentTarget)},handlePaste:function(t){this.triggerCustomEvent("editablePaste",t,t.currentTarget)},handleKeydown:function(e){return this.triggerCustomEvent("editableKeydown",e,e.currentTarget),t.util.isKey(e,t.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.ENTER)||e.ctrlKey&&t.util.isKey(e,t.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",e,e.currentTarget):t.util.isKey(e,[t.util.keyCode.DELETE,t.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",e,e.currentTarget):void 0}},t.Events=n}(),function(){var e=t.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(n){e.isBuiltInButton(n)?t.Extension.call(this,this.defaults[n]):t.Extension.call(this,n)},init:function(){t.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var t=this.document.createElement("button"),e=this.contentDefault,n=this.getAria(),r=this.getEditorOption("buttonLabels");return t.classList.add("medium-editor-action"),t.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach(function(e){t.classList.add(e)}),t.setAttribute("data-action",this.getAction()),n&&(t.setAttribute("title",n),t.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach(function(e){t.setAttribute(e,this.attrs[e])},this),"fontawesome"===r&&this.contentFA&&(e=this.contentFA),t.innerHTML=e,t},handleClick:function(t){t.preventDefault(),t.stopPropagation();var e=this.getAction();e&&this.execAction(e)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")),delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var t=null;return this.useQueryState&&(t=this.base.queryCommandState(this.getAction())),t},isAlreadyApplied:function(t){var e,n,r=!1,i=this.getTagNames();return!1===this.knownState||!0===this.knownState?this.knownState:(i&&i.length>0&&(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)}});e.isBuiltInButton=function(e){return"string"==typeof e&&t.extensions.button.prototype.defaults.hasOwnProperty(e)},t.extensions.button=e}(),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>B</b>",contentFA:'<i class="fa fa-bold"></i>'},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"<b><i>I</i></b>",contentFA:'<i class="fa fa-italic"></i>'},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"<b><u>U</u></b>",contentFA:'<i class="fa fa-underline"></i>'},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"<s>A</s>",contentFA:'<i class="fa fa-strikethrough"></i>'},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"<b>x<sup>1</sup></b>",contentFA:'<i class="fa fa-superscript"></i>'},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"<b>x<sub>1</sub></b>",contentFA:'<i class="fa fa-subscript"></i>'},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"<b>image</b>",contentFA:'<i class="fa fa-picture-o"></i>'},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"<b>html</b>",contentFA:'<i class="fa fa-code"></i>'},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"<b>1.</b>",contentFA:'<i class="fa fa-list-ol"></i>'},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"<b>&bull;</b>",contentFA:'<i class="fa fa-list-ul"></i>'},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"<b>&rarr;</b>",contentFA:'<i class="fa fa-indent"></i>'},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"<b>&larr;</b>",contentFA:'<i class="fa fa-outdent"></i>'},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"<b>C</b>",contentFA:'<i class="fa fa-align-center"></i>'},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"<b>J</b>",contentFA:'<i class="fa fa-align-justify"></i>'},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"<b>L</b>",contentFA:'<i class="fa fa-align-left"></i>'},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"<b>R</b>",contentFA:'<i class="fa fa-align-right"></i>'},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"<b>X</b>",contentFA:'<i class="fa fa-eraser"></i>'},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"<b>&ldquo;</b>",contentFA:'<i class="fa fa-quote-right"></i>'},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"<b>0101</b>",contentFA:'<i class="fa fa-code fa-lg"></i>'},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"<b>H1</b>",contentFA:'<i class="fa fa-header"><sup>1</sup>'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"<b>H2</b>",contentFA:'<i class="fa fa-header"><sup>2</sup>'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"<b>H3</b>",contentFA:'<i class="fa fa-header"><sup>3</sup>'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"<b>H4</b>",contentFA:'<i class="fa fa-header"><sup>4</sup>'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"<b>H5</b>",contentFA:'<i class="fa fa-header"><sup>5</sup>'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"<b>H6</b>",contentFA:'<i class="fa fa-header"><sup>6</sup>'}},function(){var e=t.extensions.button.extend({init:function(){t.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"&#10003;",formCloseLabel:"&times;",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=e}(),function(){var e=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:"<b>#</b>",contentFA:'<i class="fa fa-link"></i>',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=['<input type="text" class="medium-editor-toolbar-input" placeholder="',this.placeholderText,'">'];return t.push('<a href="#" class="medium-editor-toolbar-save">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':this.formSaveLabel,"</a>"),t.push('<a href="#" class="medium-editor-toolbar-close">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':this.formCloseLabel,"</a>"),this.targetCheckbox&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-target" id="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">','<label for="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">',this.targetCheckboxText,"</label>","</div>"),this.customClassOption&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-button">',"<label>",this.customClassOptionText,"</label>","</div>"),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(r))},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?\(?(?:\d\s?\-?\)?){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=e}(),function(){var e=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'<div class="medium-editor-toolbar-anchor-preview" id="medium-editor-toolbar-anchor-preview"> <a class="medium-editor-toolbar-anchor-preview-inner"></a></div>'},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(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",r<e?(this.anchorPreview.style.left=n+e+"px",this.anchorPreview.style.right="initial"):a-r<e?(this.anchorPreview.style.left="auto",this.anchorPreview.style.right=0):(this.anchorPreview.style.left=n+r+"px",this.anchorPreview.style.right="initial")},attachToEditables:function(){this.subscribe("editableMouseover",this.handleEditableMouseover.bind(this)),this.subscribe("positionedToolbar",this.handlePositionedToolbar.bind(this))},handlePositionedToolbar:function(){this.showWhenToolbarIsVisible||this.hidePreview()},handleClick:function(t){var e=this.base.getExtensionByName("anchor"),n=this.activeAnchor;e&&n&&(t.preventDefault(),this.base.selectElement(this.activeAnchor),this.base.delay(function(){if(n){var t={value:n.attributes.href.value,target:n.getAttribute("target"),buttonClass:n.getAttribute("class")};e.showForm(t),n=null}}.bind(this))),this.hidePreview()},handleAnchorMouseout:function(){this.anchorToPreview=null,this.off(this.activeAnchor,"mouseout",this.instanceHandleAnchorMouseout),this.instanceHandleAnchorMouseout=null},handleEditableMouseover:function(e){var n=t.util.getClosestTag(e.target,"a");if(!1!==n){if(!this.showOnEmptyLinks&&(!/href=["']\S+["']/.test(n.outerHTML)||/href=["']#\S+["']/.test(n.outerHTML)))return!0;var r=this.base.getExtensionByName("toolbar");if(!this.showWhenToolbarIsVisible&&r&&r.isDisplayed&&r.isDisplayed())return!0;this.activeAnchor&&this.activeAnchor!==n&&this.detachPreviewHandlers(),this.anchorToPreview=n,this.instanceHandleAnchorMouseout=this.handleAnchorMouseout.bind(this),this.on(this.anchorToPreview,"mouseout",this.instanceHandleAnchorMouseout),this.base.delay(function(){this.anchorToPreview&&this.showPreview(this.anchorToPreview)}.bind(this))}},handlePreviewMouseover:function(){this.lastOver=(new Date).getTime(),this.hovering=!0},handlePreviewMouseout:function(t){t.relatedTarget&&/anchor-preview/.test(t.relatedTarget.className)||(this.hovering=!1)},updatePreview:function(){if(this.hovering)return!0;(new Date).getTime()-this.lastOver>this.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}});t.extensions.anchorPreview=e}(),function(){var e,n,r,i,o;function a(e){return!t.util.getClosestTag(e,"a")}e=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],r="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+(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")+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+n+"))",i=new RegExp("^("+n+")$","i"),o=new RegExp(r,"gi");var s=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[e];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,[t.util.keyCode.SPACE,t.util.keyCode.ENTER])&&(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=[e]);for(var i=0;i<n.length;i++)r=this.removeObsoleteAutoLinkSpans(n[i])||r,r=this.performLinkingWithinElement(n[i])||r;return this.base.events.updateInput(e,{target:e,currentTarget:e}),r},removeObsoleteAutoLinkSpans:function(e){if(!e||3===e.nodeType)return!1;for(var n=e.querySelectorAll('span[data-auto-link="true"]'),r=!1,i=0;i<n.length;i++){var o=n[i].textContent;if(-1===o.indexOf("://")&&(o=t.util.ensureUrlHasProtocol(o)),n[i].getAttribute("data-href")!==o&&a(n[i])){r=!0;var s=o.replace(/\s+$/,"");if(n[i].getAttribute("data-href")===s){var u=o.length-s.length,l=t.util.splitOffDOMTree(n[i],this.splitTextBeforeEnd(n[i],u));n[i].parentNode.insertBefore(l,n[i].nextSibling)}else t.util.unwrap(n[i],this.document)}}return r},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[r]);this.shouldNotLink(i)||this.createAutoLink(i,n[r].href)}return!1},shouldNotLink:function(e){for(var n=!1,r=0;r<e.length&&!1===n;r++)n=!!t.util.traverseUp(e[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,r=null,a=[];null!==(r=o.exec(n));){var s=r.index+r[0].length;!(0!==r.index&&-1===e.indexOf(n[r.index-1])||s!==n.length&&-1===e.indexOf(n[s]))&&(-1!==r[0].indexOf("/")||i.test(r[0].split(".").pop().split("?").shift()))&&a.push({href:r[0],start:r.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[1])}});t.extensions.autoLink=s}(),function(){var e="medium-editor-dragover";function n(n){var r=t.util.getContainerEditorElement(n);Array.prototype.slice.call(r.parentElement.querySelectorAll("."+e)).forEach(function(t){t.classList.remove(e)})}var r=t.Extension.extend({name:"fileDragging",allowedTypes:["image"],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 r=t.target.classList?t.target:t.target.parentElement;n(r),"dragover"===t.type&&r.classList.add(e)},handleDrop:function(t){t.preventDefault(),t.stopPropagation(),this.base.selectElement(t.target);var e=this.base.exportSelection();e.start=e.end,this.base.importSelection(e),t.dataTransfer.files&&Array.prototype.slice.call(t.dataTransfer.files).forEach(function(t){this.isAllowedFile(t)&&t.type.match("image")&&this.insertImageFile(t)},this),n(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=r}(),function(){var e=t.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){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[e]||(this.keys[e]=[]),this.keys[e].push(t)},this)},handleKeydown:function(e){var n=t.util.getKeyCode(e);if(this.keys[n]){var r=t.util.isMetaCtrlKey(e),i=!!e.shiftKey,o=!!e.altKey;this.keys[n].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=e}(),function(){var e=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<this.fonts.length;a++)(t=e.createElement("option")).innerHTML=this.fonts[a],t.value=this.fonts[a],r.appendChild(t);return r.className="medium-editor-toolbar-select",n.appendChild(r),this.on(r,"change",this.handleFontChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#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=e}(),function(){var e=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(r),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=e}(),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["text/plain"]=o)}if(r.types)for(var a=0;a<r.types.length;a++){var s=r.types[a];i[s]=r.getData(s)}return i}var o=t.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],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["text/html"],o=n["text/plain"];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(/[\r\n]+/g)).length>1)for(o=0;o<i.length;o+=1)""!==i[o]&&(a+="<p>"+t.util.htmlEntities(i[o])+"</p>");else a=t.util.htmlEntities(i[0]);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["text/html"],o=e["text/plain"],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[0].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=/<p|<br|<div/.test(t),a=[].concat(this.preCleanReplacements||[],[[new RegExp(/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/<!--StartFragment-->|<!--EndFragment-->/g),""],[new RegExp(/<br>$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(<br[^>]*>)?$/gi),""],[new RegExp(/<span class="Apple-converted-space">\s+<\/span>/g)," "],[new RegExp(/<br class="Apple-interchange-newline">/g),"<br>"],[new RegExp(/<span[^>]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),'<span class="replace-with italic bold">'],[new RegExp(/<span[^>]*font-style:italic[^>]*>/gi),'<span class="replace-with italic">'],[new RegExp(/<span[^>]*font-weight:(bold|700)[^>]*>/gi),'<span class="replace-with bold">'],[new RegExp(/&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:[a-z]*>/gi),""],[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/gi),"$1"]],this.cleanReplacements||[]);for(e=0;e<a.length;e+=1)t=t.replace(a[e][0],a[e][1]);if(!o)return this.pasteHTML(t);for((r=this.document.createElement("div")).innerHTML="<p>"+t.split("<br><br>").join("</p><p>")+"</p>",n=r.querySelectorAll("a,p,div,br"),e=0;e<n.length;e+=1)switch((i=n[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<r.length;o+=1)"a"===(i=r[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<o.length;n+=1)r=o[n],i=this.document.createElement(r.classList.contains("bold")?"b":"i"),r.classList.contains("bold")&&r.classList.contains("italic")?i.innerHTML="<i>"+r.innerHTML+"</i>":i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=e.querySelectorAll("span"),n=0;n<o.length;n+=1){if(r=o[n],t.util.traverseUp(r,a))return!1;t.util.unwrap(r,this.document)}}});t.extensions.paste=o}(),function(){var e=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=e}(),function(){var e=t.Extension.extend({name:"toolbar",align:"center",allowMultiParagraphSelection:!0,buttons:["bold","italic","underline","anchor","h2","h3","quote"],diffLeft:0,diffTop:-10,firstButtonClass:"medium-editor-button-first",lastButtonClass:"medium-editor-button-last",standardizeSelectionStart:!1,static:!1,sticky:!1,stickyTopOffset:0,updateOnEmptySelection:!1,relativeContainer:null,init:function(){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(r){"string"==typeof r?(o=r,a=null):(o=r.name,a=r),(i=this.base.addBuiltInExtension(o,a))&&"function"==typeof i.getButton&&(n=i.getButton(this.base),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[0].classList.add(this.firstButtonClass),r[r.length-1].classList.add(this.lastButtonClass)),s},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=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 RegExp("<("+t.util.blockContainerElementNames.join("|")+")[^>]*>","g"),n=t.selection.getSelectionHtml(this.document).replace(/<[^\/>][^>]*><\/[^>]+>/gim,"").match(e);return!!n&&n.length>1},modifySelection:function(){var e=this.window.getSelection().getRangeAt(0);if(this.standardizeSelectionStart&&e.startContainer.nodeValue&&e.startOffset===e.startContainer.nodeValue.length){var n=t.util.findAdjacentTextNodeWithContent(t.selection.getSelectionElement(this.window),e.startContainer,this.document);if(n){for(var r=0;0===n.nodeValue.substr(r,1).trim().length;)r+=1;e=t.selection.select(this.document,n,r,e.endContainer,e.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||t.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var e=t.selection.getSelectionElement(this.window);return!e||-1===this.getEditorElements().indexOf(e)||e.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this.static?this.showAndUpdateToolbar():!t.selection.selectionContainsContent(this.document)||!1===this.allowMultiParagraphSelection&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension(function(t){"function"==typeof t.isActive&&"function"==typeof t.setInactive&&t.setInactive()}),this.checkActiveButtons()},checkActiveButtons:function(){var e,n=[],r=null,i=t.selection.getSelectionRange(this.document),o=function(t){"function"==typeof t.checkState?t.checkState(e):"function"==typeof t.isActive&&"function"==typeof t.isAlreadyApplied&&"function"==typeof t.setActive&&!t.isActive()&&t.isAlreadyApplied(e)&&t.setActive()};if(i&&(this.forEachExtension(function(t){"function"!=typeof t.queryCommandState||null===(r=t.queryCommandState())?n.push(t):r&&"function"==typeof t.setActive&&t.setActive()}),e=t.selection.getSelectedParentElement(i),this.getEditorElements().some(function(n){return t.util.isDescendant(n,e,!0)})))for(;e&&(n.forEach(o),!t.util.isMediumEditorElement(e));)e=e.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var t=this.base.getFocusedElement(),e=this.window.getSelection();if(!t)return this;!this.static&&e.isCollapsed||(this.showToolbar(),this.relativeContainer||(this.static?this.positionStaticToolbar(t):this.positionToolbar(e)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))},positionStaticToolbar:function(t){this.getToolbarElement().style.left="0";var e,n=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,r=this.window.innerWidth,i=this.getToolbarElement(),o=t.getBoundingClientRect(),a=o.top+n,s=o.left+o.width/2,u=i.offsetHeight,l=i.offsetWidth,c=l/2;switch(this.sticky?n>a+t.offsetHeight-u-this.stickyTopOffset?(i.style.top=a+t.offsetHeight-u+"px",i.classList.remove("medium-editor-sticky-toolbar")):n>a-u-this.stickyTopOffset?(i.classList.add("medium-editor-sticky-toolbar"),i.style.top=this.stickyTopOffset+"px"):(i.classList.remove("medium-editor-sticky-toolbar"),i.style.top=a-u+"px"):i.style.top=a-u+"px",this.align){case"left":e=o.left;break;case"right":e=o.right-l;break;case"center":e=s-c}e<0?e=0:e+l>r&&(e=r-Math.ceil(l)-1),i.style.left=e+"px"},positionToolbar:function(t){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var e=t.getRangeAt(0),n=e.getBoundingClientRect();(!n||0===n.height&&0===n.width&&e.startContainer===e.endContainer)&&(n=1===e.startContainer.nodeType&&e.startContainer.querySelector("img")?e.startContainer.querySelector("img").getBoundingClientRect():e.startContainer.getBoundingClientRect());var 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={},d={};["absolute","fixed"].indexOf(window.getComputedStyle(c).getPropertyValue("position"))>-1?(i=c.getBoundingClientRect(),["top","left"].forEach(function(t){d[t]=n[t]-i[t]}),d.width=n.width,d.height=n.height,n=d,o=i.width,f.top=c.scrollTop):f.top=this.window.pageYOffset,r=n.left+n.width/2,f.top+=n.top-s,n.top<50?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),f.top+=50+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),f.top+=this.diffTop),r<u?(f.left=l+u,f.right="initial"):o-r<u?(f.left="auto",f.right=0):(f.left=l+r,f.right="initial"),["top","left","right"].forEach(function(t){a.style[t]=f[t]+(isNaN(f[t])?"":"px")})}});t.extensions.toolbar=e}(),function(){var e=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(r);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=e}(),function(){function e(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 n(e){var n,r=t.selection.getSelectionStart(this.options.ownerDocument),i=r.nodeName.toLowerCase(),o=/^(\s+|<br\/?>)?$/i,a=/h\d/i;t.util.isKey(e,[t.util.keyCode.BACKSPACE,t.util.keyCode.ENTER])&&r.previousElementSibling&&a.test(i)&&0===t.selection.getCaretOffsets(r).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="<br>",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(r),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="<br>",r.parentElement.parentElement.insertBefore(n,r.parentElement),t.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild(r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&!1!==t.util.getClosestTag(r,"blockquote")&&0===t.selection.getCaretOffsets(r).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(r).right?((n=this.options.ownerDocument.createElement("p")).innerHTML="<br>",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(r))}function r(e,n,r){var i=[];if(e||(e=[]),"string"==typeof e&&(e=n.querySelectorAll(e)),t.util.isElement(e)&&(e=[e]),r)for(var o=0;o<e.length;o++){var a=e[o];!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 i(t){var e=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');e&&(e.classList.remove("medium-editor-hidden"),e.removeAttribute("medium-editor-textarea-id")),t.parentNode&&t.parentNode.removeChild(t)}function o(t,e,n){return"function"==typeof(t=function(t,e){return Object.keys(e).forEach(function(n){void 0===t[n]&&(t[n]=e[n])}),t}(t,{window:n.options.contentWindow,document:n.options.ownerDocument,base:n})).init&&t.init(),t.name||(t.name=e),t}function a(){return!this.elements.every(function(t){return!!t.getAttribute("data-disable-toolbar")})&&!1!==this.options.toolbar}function s(n,r){if(!n.getAttribute("data-medium-editor-element")){"textarea"===n.nodeName.toLowerCase()&&(n=function(t){for(var e=this.options.ownerDocument.createElement("div"),n=Date.now(),r="medium-editor-"+n,i=t.attributes;this.options.ownerDocument.getElementById(r);)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<a;o++)e.hasAttribute(i[o].nodeName)||e.setAttribute(i[o].nodeName,i[o].nodeValue);return t.form&&this.on(t.form,"reset",function(t){t.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById(r))}.bind(this)),t.classList.add("medium-editor-hidden"),t.parentNode.insertBefore(e,t),e}.call(this,n),this.instanceHandleEditableInput||(this.instanceHandleEditableInput=function(t,e){var n=e.parentNode.querySelector('textarea[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]');n&&(n.value=e.innerHTML.trim())}.bind(this),this.subscribe("editableInput",this.instanceHandleEditableInput))),this.options.disableEditing||n.getAttribute("data-disable-editing")||(n.setAttribute("contentEditable",!0),n.setAttribute("spellcheck",this.options.spellcheck)),this.instanceHandleEditableKeydownEnter||(n.getAttribute("data-disable-return")||n.getAttribute("data-disable-double-return"))&&(this.instanceHandleEditableKeydownEnter=e.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter)),this.options.disableReturn||n.getAttribute("data-disable-return")||this.on(n,"keyup",function(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")))}.bind(this));var i=t.util.guid();n.setAttribute("data-medium-editor-element",!0),n.classList.add("medium-editor-element"),n.setAttribute("role","textbox"),n.setAttribute("aria-multiline",!0),n.setAttribute("data-medium-editor-editor-index",r),n.setAttribute("medium-editor-index",i),f[i]=n.innerHTML,this.events.attachAllEventsToElement(n)}return n}function u(){this.subscribe("editableKeydownTab",function(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))}.bind(this)),this.subscribe("editableKeydownDelete",n.bind(this)),this.subscribe("editableKeydownEnter",n.bind(this)),this.options.disableExtraSpaces&&this.subscribe("editableKeydownSpace",function(e){var n=t.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,i=t.selection.getCaretOffsets(n);(void 0===r[i.left-1]||""===r[i.left-1].trim()||void 0!==r[i.left]&&""===r[i.left].trim())&&e.preventDefault()}.bind(this)),this.instanceHandleEditableKeydownEnter||(this.options.disableReturn||this.options.disableDoubleReturn)&&(this.instanceHandleEditableKeydownEnter=e.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter))}function l(){if(this.extensions=[],Object.keys(this.options.extensions).forEach(function(t){"toolbar"!==t&&this.options.extensions[t]&&this.extensions.push(o(this.options.extensions[t],t,this))},this),function(){return!this.options.extensions.imageDragging}.call(this)){var e=this.options.fileDragging;e||(e={},function(){return!1!==this.options.imageDragging}.call(this)||(e.allowedTypes=[])),this.addBuiltInExtension("fileDragging",e)}var n={paste:!0,"anchor-preview":function(){return!!a.call(this)&&!1!==this.options.anchorPreview}.call(this),autoLink:function(){return!1!==this.options.autoLink}.call(this),keyboardCommands:function(){return!1!==this.options.keyboardCommands}.call(this),placeholder:function(){return!1!==this.options.placeholder}.call(this)};Object.keys(n).forEach(function(t){n[t]&&this.addBuiltInExtension(t)},this);var r=this.options.extensions.toolbar;if(!r&&a.call(this)){var i=t.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new t.extensions.toolbar(i)}r&&this.extensions.push(o(r,"toolbar",this))}function c(e,n){var r,i;if(r=/^append-(.+)$/gi.exec(e))return t.util.execFormatBlock(this.options.ownerDocument,r[1]);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([A-Za-z]*)$/g.exec(e)){var s=this.options.ownerDocument.execCommand(e,!1,null),u=t.selection.getSelectedParentElement(t.selection.getSelectionRange(this.options.ownerDocument));return u&&function(e){if(!e)return;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(r){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())}.call(this,t.util.getTopBlockContainer(u)),s}return i=n&&n.value,this.options.ownerDocument.execCommand(e,!1,i)}var f={};t.prototype={init:function(e,n){return this.options=function(e,n){return n&&[["allowMultiParagraphSelection","toolbar.allowMultiParagraphSelection"]].forEach(function(e){n.hasOwnProperty(e[0])&&void 0!==n[e[0]]&&t.util.deprecated(e[0],e[1],"v6.0.0")}),t.util.defaults({},n,e)}.call(this,this.defaults,n),this.origElements=e,this.options.elementsContainer||(this.options.elementsContainer=this.options.ownerDocument.body),this.setup()},setup:function(){this.isActive||(function(t){t._mediumEditors||(t._mediumEditors=[null]),this.id||(this.id=t._mediumEditors.length),t._mediumEditors[this.id]=this}.call(this,this.options.contentWindow),this.events=new t.Events(this),this.elements=[],this.addElements(this.origElements),0!==this.elements.length&&(this.isActive=!0,l.call(this),u.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")&&i(t)},this),this.elements=[],this.instanceHandleEditableKeydownEnter=null,this.instanceHandleEditableInput=null,function(t){t._mediumEditors&&t._mediumEditors[this.id]&&(t._mediumEditors[this.id]=null)}.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<n;t+=1)e[""!==this.elements[t].id?this.elements[t].id:"element-"+t]={value:this.elements[t].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(r);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[e]),i=new t.extensions.button(r)):i=new t.extensions.button(e))}return i&&this.extensions.push(o(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[1]);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=c.call(this,r[1],n),this.restoreSelection()):i=c.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[0];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[e.editableElementIndex||0];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(r)){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=[p.firstChild.firstChild,p.firstChild.lastChild]),t.util.createLink(this.options.ownerDocument,l,n.trim());var y=(p.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;t.util.insertHTMLCommand(this.options.ownerDocument,p.firstChild.innerHTML.replace(/^\s+/,"")),a.start-=y,a.end-=y,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 v=0,m=this.elements.length;v<m;v+=1)this.elements[v].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[e]){var n=this.elements[e];n.innerHTML=t,this.checkContentChanged(n)}},getContent:function(t){return t=t||0,this.elements[t]?this.elements[t].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(f[t.getAttribute("medium-editor-index")],e)}else this.elements.forEach(function(t,e){this.setContent(f[t.getAttribute("medium-editor-index")],e)},this)},addElements:function(t){var e=r(t,this.options.ownerDocument,!0);if(0===e.length)return!1;e.forEach(function(t){t=s.call(this,t,this.id),this.elements.push(t),this.trigger("addElement",{target:t,currentTarget:t},t)},this)},removeElements:function(t){var e=r(t,this.options.ownerDocument).map(function(t){return t.getAttribute("medium-editor-textarea-id")&&t.parentNode?t.parentNode.querySelector('div[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]'):t});this.elements=this.elements.filter(function(t){return-1===e.indexOf(t)||(this.events.cleanupElement(t),t.getAttribute("medium-editor-textarea-id")&&i(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[e]?n._mediumEditors[e]: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[0].split("."),r=e.length>1?e[1]:"";return{major:parseInt(n[0],10),minor:parseInt(n[1],10),revision:parseInt(n[2],10),preRelease:r,toString:function(){return[n[0],n[1],n[2]].join(".")+(r?"-"+r:"")}}},t.version=t.parseVersionString.call(this,"5.23.2"),t}())}).call(this,n(93))},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)?(void 0!=t.action&&(o=t.action(o,!0,s)),o=t.start+o+t.end):(void 0!=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(r),l&&(n.setStartBefore(l),n.setEndAfter(c)),a.removeAllRanges(),a.addRange(n)}e.base.checkContentChanged()}}else console.error('[Custom-Button] 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(r).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")},void 0!==t&&t.exports&&(e=t.exports=r),e.MediumButton=r},function(t,e,n){"use strict";(function(t){
161
+ /*!
81
162
  * The buffer module from node.js, for the browser.
82
163
  *
83
164
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
84
165
  * @license MIT
85
166
  */
86
- var Z=n(327),G=n(328),X=n(329);e.Buffer=o,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,o.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=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.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}},o.concat=function(t,e){if(!X(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=y,o.prototype._isBuffer=!0,o.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)b(this,e,e+1);return this},o.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)b(this,e,e+3),b(this,e+1,e+2);return this},o.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)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.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+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.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(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,u=Math.min(a,s),c=this.slice(r,i),l=t.slice(e,n),f=0;f<u;++f)if(c[f]!==l[f]){a=c[f],s=l[f];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},o.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(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return O(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),G.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),G.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),G.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),G.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){D(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){D(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):R(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):R(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.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,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.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&&!o.isEncoding(r))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;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:W(new o(t,r).toString()),u=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(40))},function(t,e,n){"use strict";function r(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),[n,n===e?0:4-n%4]}function i(t){var e=r(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function o(t,e,n){return 3*(e+n)/4-n}function a(t){for(var e,n=r(t),i=n[0],a=n[1],s=new d(o(t,i,a)),u=0,c=a>0?i-4:i,l=0;l<c;l+=4)e=f[t.charCodeAt(l)]<<18|f[t.charCodeAt(l+1)]<<12|f[t.charCodeAt(l+2)]<<6|f[t.charCodeAt(l+3)],s[u++]=e>>16&255,s[u++]=e>>8&255,s[u++]=255&e;return 2===a&&(e=f[t.charCodeAt(l)]<<2|f[t.charCodeAt(l+1)]>>4,s[u++]=255&e),1===a&&(e=f[t.charCodeAt(l)]<<10|f[t.charCodeAt(l+1)]<<4|f[t.charCodeAt(l+2)]>>2,s[u++]=e>>8&255,s[u++]=255&e),s}function s(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function u(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(s(r));return i.join("")}function c(t){for(var e,n=t.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(u(t,o,o+16383>a?a:o+16383));return 1===r?(e=t[n-1],i.push(l[e>>2]+l[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),i.join("")}e.byteLength=i,e.toByteArray=a,e.fromByteArray=c;for(var l=[],f=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=h.length;p<v;++p)l[p]=h[p],f[h.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=t[e+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=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=l):(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),e*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):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[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[n+h]=255&a,h+=p,a/=256,c-=8);t[n+h-p]|=128*v}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";function r(t){return"\n"===t.getText()?"":t.root.innerHTML}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(){s.a.register({"formats/target":o()}),s.a.register(c,!0)}function o(){var t=s.a.import("parchment");return new t.Attributor.Attribute("target","target",{scope:t.Scope.INLINE})}e.a=i;var a=n(73),s=n.n(a),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(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"))},function(t,e,n){"use strict";function r(t,e,n){t.linkRange=e,t.root.setAttribute("data-svt-target",n)}function i(t){t.root.setAttribute("data-mode",""),t.root.setAttribute("data-svt-target",""),delete t.linkRange}var o=n(73),a=n.n(o),s=function(){function t(t){t.on("selection-change",function(e){if(e){var n=t.getModule("scrivitoApi").getTooltip(),o=t.getFormat(e).link,a=t.getModule("scrivitoApi").getLinkRange(e);if(a&&o){r(n,a,t.getFormat(a).target||"")}else i(n)}}),t.on("text-change",function(){var e=t.getModule("scrivitoApi").getTooltip(),n=e.linkRange;n&&e.root.setAttribute("data-svt-target",t.getFormat(n).target||"")})}return t}();a.a.register("modules/scrivitoLinkTooltip",s)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(){a.a.register("modules/scrivitoApi",l)}e.a=i;var o=n(73),a=n.n(o),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),u=a.a.import("core/module"),c=a.a.import("formats/link"),l=function(t){function e(e){var n=t.call(this,e)||this;return n.getTooltip=function(){return e.theme.tooltip},n.getLinkRange=function(t){if(t){var n=e.scroll.scroll.descendant(c,t.index),r=n[0],i=n[1];return r?{index:t.index-i,length:r.length()}:void 0}},n}return s(e,t),e}(u)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){var e={selection:[],selectionMode:"single"};scrivito.openContentBrowser(e).then(function(e){if(e.selection&&e.selection.length){var n=e.selection[0];t.getModule("scrivitoApi").getTooltip().edit("link","/"+n)}})}var o=n(73),a=n.n(o),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),u=a.a.import("core/module"),c=function(t){function e(e){var n=t.call(this,e)||this;return n.fromContentBrowser=function(){return i(e)},n}return s(e,t),e}(u);a.a.register("modules/scrivitoInternalLink",c)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(73),o=n.n(i),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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=o.a.import("themes/bubble"),u=o.a.import("themes/snow"),c=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.snowTheme=new u(e,n),r}return a(e,t),e.prototype.extendToolbar=function(e){var n=this;this.snowTheme.extendToolbar(e),this.snowTheme.tooltip.root.classList.add("ql-svt-tooltip-snow"),t.prototype.extendToolbar.call(this,e),this.tooltip=this.snowTheme.tooltip,this.tooltip.textbox.setAttribute("data-link","Paste or type a link"),this.tooltip.textbox.insertAdjacentHTML("beforebegin",l),this.tooltip.textbox.insertAdjacentHTML("afterend",f);var r=this.tooltip.root.querySelector("a.ql-svt-browse"),i=this.tooltip.root.querySelector("a.ql-svt-target");r.addEventListener("click",function(t){n.quill.getModule("scrivitoInternalLink").fromContentBrowser(),t.preventDefault()}),i.addEventListener("click",function(t){var e=n.tooltip.linkRange;if(e){var r=n.quill.getFormat(e).target;n.quill.formatText(e.index,e.length,"target",r?"":"_blank","user")}t.preventDefault()})},e}(s),l='\n <a class="ql-svt ql-svt-browse" title="Browse">\n <i class="scrivito_icon scrivito_icon_content_browser"></i>\n </a>\n',f='\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';o.a.register("themes/scrivito",c)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(139),p=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"onClick",value:function(){var t=this;scrivito.openContentBrowser({selection:this._currentSelection(),selectionMode:"single"}).then(function(e){var n=e.isSelected,r=e.selection;n&&t._saveContentBrowserSelection(r)})}},{key:"_currentSelection",value:function(){var t=this._controller.getContent();return t?[t.id()]:[]}},{key:"_saveContentBrowserSelection",value:function(t){this._controller.setContent(t[0]||null)}}],[{key:"canEdit",value:function(t){return"reference"===t.type}}]),a(e,t),e}(h.a);e.a=p},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(139),o=n(338),a=n(229),s=n(230),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(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,Object(a.a)(t);var e=new s.a(t,this._controller);this._setCurrentContent(),Object(o.a)(e)},e.prototype.editorDomWasUnmounted=function(){this._currentDomNode=void 0},e.prototype._setCurrentContent=function(){this._currentDomNode&&(this._currentDomNode.textContent=this._controller.getContent())},e}(i.a);e.a=c},function(t,e,n){"use strict";function r(t,e){var n=e.jQueryElement();switch(t.keyCode||t.which){case 13:d(n)||(t.preventDefault(),n.blur());break;case 27:t.stopPropagation(),n.blur()}}function i(t){u(t)}function o(t){h(t.jQueryElement())}function a(t){v(t.jQueryElement())}function s(t){u(t).done(function(){return t.trigger("scrivito_editors:blur")}),p(t),h(t.jQueryElement())}function u(t){var e=c(t.jQueryElement());return t.save(e).done(function(){return t.trigger("scrivito_editors:save")})}function c(t){return l(t),t[0].innerText.replace(/\r\n/g,"\n").replace(/\n+$/,"")}function l(t){var e=f(t),n=e.not(t);n.length>0&&(n.remove(),t.text(e.text()))}function f(t){var e=t.data("scrivito_editors_siblings_before_edit"),n=t.siblings();return!e||n.filter(e).length<e.length?t.data("scrivito_editors_siblings_before_edit",n):t.siblings().addBack().not(e)}function d(t){return!0===t.data("scrivitoEditorsMultiline")||!1!==t.data("scrivitoEditorsMultiline")&&t.css("white-space").match(/pre/)}function h(t){if(d(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)}}function p(t){var e=t.jQueryElement();e.data("scrivito_editors_prepared_for_editing",!1),e.text(t.content())}function v(t){var e=document.getSelection();e.anchorNode&&e.focusNode&&(t.find(e.anchorNode).addBack(e.anchorNode).length&&t.find(e.focusNode).addBack(e.focusNode).length||e.selectAllChildren(t[0]))}function y(t){var e=t.jQueryElement();e.attr("contenteditable","true").blur(function(){return s(t)}).click(function(){return a(t)}).focus(function(){return o(t)}).keypress(function(e){return r(e,t)}).keyup(function(e){return r(e,t)}),"false"!==e.attr("data-scrivito-editors-autosave")&&e.on("cut input keypress keyup paste",function(){return i(t)}),h(e),e.on("click",function(t){e.attr("contenteditable","true"),l(e),t.timeStamp-e.data("scrivito_editors_last_click")>=m&&t.preventDefault(),e.data("scrivito_editors_last_click",t.timeStamp)})}var m=300;e.a=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Link",function(){return P}),n.d(e,"Obj",function(){return L}),n.d(e,"ObjSearch",function(){return I}),n.d(e,"Widget",function(){return D}),n.d(e,"createObjClass",function(){return q}),n.d(e,"createWidgetClass",function(){return R}),n.d(e,"getClass",function(){return M}),n.d(e,"provideObjClass",function(){return B}),n.d(e,"provideWidgetClass",function(){return F});var r=n(26);n.d(e,"Binary",function(){return r.a});var i=n(71);n.d(e,"FutureBinary",function(){return i.a});var o=n(218);n.d(e,"ObjFacetValue",function(){return o.a});var a=n(7);n.d(e,"load",function(){return a.a});var s=n(1);n.d(e,"ArgumentError",function(){return s.ArgumentError}),n.d(e,"ScrivitoError",function(){return s.ScrivitoError});var u=n(225);n.d(e,"configure",function(){return u.a});var c=n(137);n.d(e,"configureContentBrowser",function(){return c.a});var l=n(60);n.d(e,"currentPage",function(){return l.a}),n.d(e,"currentPageParams",function(){return l.c});var f=n(340);n.d(e,"withPage",function(){return f.a});var d=n(81);n.d(e,"finishLoading",function(){return d.a});var h=n(341);n.d(e,"isInPlaceEditingActive",function(){return h.a});var p=n(129);n.d(e,"navigateTo",function(){return p.a});var v=n(82);n.d(e,"provideEditingConfig",function(){return v.b});var y=n(342);n.d(e,"urlFor",function(){return y.a});var m=n(72);n.d(e,"useHistory",function(){return m.f});var b=n(343);n.d(e,"BackgroundImageTag",function(){return b.a});var g=n(344);n.d(e,"ChildListTag",function(){return g.a});var w=n(234);n.d(e,"ContentTag",function(){return w.a});var _=n(356);n.d(e,"CurrentPage",function(){return _.a});var k=n(358);n.d(e,"ImageTag",function(){return k.a});var O=n(232);n.d(e,"LinkTag",function(){return O.a});var E=n(360);n.d(e,"NotFoundErrorPage",function(){return E.a});var x=n(140);n.d(e,"WidgetTag",function(){return x.b});var C=n(14);n.d(e,"connect",function(){return C.a});var j=n(361);n.d(e,"provideComponent",function(){return j.a});var S=n(362);n.d(e,"registerComponent",function(){return S.a});var A=n(61),T=n(363);n.d(e,"_internal",function(){return T});var N=Object(A.a)(),P=N.Link,L=N.Obj,I=N.ObjSearch,D=N.Widget,q=N.createObjClass,R=N.createWidgetClass,M=N.getClass,B=N.provideObjClass,F=N.provideWidgetClass},function(t,e,n){"use strict";function r(t,e){return Object(i.f)(t,e)}e.a=r;var i=n(60)},function(t,e,n){"use strict";function r(){return"published"!==scrivito.currentWorkspaceId()&&(!!i.b&&i.b.isEditingMode())}e.a=r;var i=n(17)},function(t,e,n){"use strict";function r(t,e){f(t,e);var n=e||{},r=n.query,a=n.fragment,s=Object(i.c)(t),u=r?"?".concat(r):"",c=a?"#".concat(a):"";return Object(o.a)(s).concat(u).concat(c)}e.a=r;var i=n(22),o=n(136),a=n(24),s=n(39),u=n(59),c=a.a.union([u.d,u.b,u.a]),l=a.a.struct({query:a.a.maybe(a.a.String),fragment:a.a.maybe(a.a.String)}),f=Object(s.a)("urlFor",[["target",c],["options",a.a.maybe(l)]],{docPermalink:"js-sdk/urlFor"})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){var e=o(t),n=e.backgrounds,r=e.passThroughStyle,i=a(n);return Object(f.extend)(i,r)}function o(t){var e={backgrounds:[],passThroughStyle:{}};for(var n in t)if(0!==n.indexOf("background"))e.passThroughStyle[n]=t[n];else if("background"===n){var r=t[n];e.backgrounds=Object(f.isArray)(r)?r:[r]}return e}function a(t){var e=t.map(s);return{backgroundAttachment:Object(f.pluck)(e,"backgroundAttachment").join(", "),backgroundImage:Object(f.pluck)(e,"backgroundImage").join(", "),backgroundOrigin:Object(f.pluck)(e,"backgroundOrigin").join(", "),backgroundPosition:Object(f.pluck)(e,"backgroundPosition").join(", "),backgroundRepeat:Object(f.pluck)(e,"backgroundRepeat").join(", "),backgroundSize:Object(f.pluck)(e,"backgroundSize").join(", ")}}function s(t){if(u(t))return c(t.image);if(r(t.image,h.a))return l(t.image);if(Object(v.a)(t.image)){var e=Object(m.c)(t.image).get("blob","binary");if(e)return l(e)}return c("none")}function u(t){return Object(f.isString)(t.image)}function c(t){return{backgroundAttachment:"scroll",backgroundImage:t,backgroundOrigin:"padding-box",backgroundPosition:"0% 0%",backgroundRepeat:"repeat",backgroundSize:"auto"}}function l(t){return{backgroundAttachment:"scroll",backgroundImage:"url("+Object(y.a)(t).url()+")",backgroundOrigin:"padding-box",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}}var f=n(0),d=(n.n(f),n(13)),h=(n.n(d),n(26)),p=n(14),v=n(226),y=n(231),m=n(22),b=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),g=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.render=function(){var t=this.props.style,e=this.props.tag||"div",n=Object(f.omit)(this.props,"style","tag");return d.createElement(e,g({},n,{style:i(t)}))},e.displayName="Scrivito.BackgroundImageTag",e}(d.Component);e.a=Object(p.a)(w)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return u(t)||s(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function c(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");f(t.prototype,e&&e.prototype),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}function p(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?y(t):e}function v(t){return(v=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var m=n(87),b=n(0),g=(n.n(b),n(13)),w=n.n(g),_=n(60),k=n(14),O=n(345),E=n(348),x=function(t){function e(t){var n;return c(this,e),n=p(this,v(e).call(this,t)),n.state={hasFocus:!1},n._onMouseOver=n._onMouseOver.bind(y(y(n))),n._onMouseOut=n._onMouseOut.bind(y(y(n))),n}return h(e,[{key:"render",value:function(){var t=this,e=this.props.parent||Object(_.a)();if(!e)return null;e=e._scrivitoPrivateContent;var n,r=Object(b.omit)(this.props,"parent","tag","renderChild");return Object(m.a)()&&(r.onMouseOver=this._onMouseOver,r.onMouseOut=this._onMouseOut,r["data-scrivito-private-child-list-path"]=!0,this.state.hasFocus&&(r.className="scrivito_active scrivito_entered ".concat(r.className)),n=w.a.createElement(E.a,{key:"menuMarker",parent:e})),w.a.createElement(this.props.tag,r,[n].concat(o(e.orderedChildren().map(function(e){return w.a.createElement(O.a,{key:e.id(),child:e,renderChild:t.props.renderChild})}))))}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),this.setState({hasFocus:!0})}},{key:"_onMouseOut",value:function(t){t.stopPropagation(),this.setState({hasFocus:!1})}}]),l(e,t),e}(w.a.Component);x.displayName="Scrivito.ChildListTag",x.defaultProps={tag:"ul"},e.a=Object(k.a)(x)},function(t,e,n){"use strict";function r(t){var e=t.child,n=t.renderChild,r=Object(a.a)().appModelAccessor.wrapInAppClass(e);return n?n(r):o.a.createElement("li",null,o.a.createElement(u.a,{to:r},e.get("title","string")))}var i=n(13),o=n.n(i),a=n(61),s=n(14),u=n(232);r.displayName="Scrivito.ChildListTag.ChildItem",e.a=Object(s.a)(r)},function(t,e,n){"use strict";var r=n(24),i=n(347);n.d(e,"b",function(){return r.a}),n.d(e,"a",function(){return i.a})},function(t,e,n){"use strict";function r(t,e,n,r){return["Invalid ".concat(e," supplied to ").concat(n,", should be a ").concat(a.a.getTypeName(r),"."),"Detected errors (".concat(t.length,"):")].concat(t.map(function(t,e){return" ".concat(e+1,". ").concat(t.message)})).join("\n")}function i(t){return a.a.Object.is(t)?a.a.struct(t):t}function o(t,e){var n=i(t),o="subtype"===n.meta.kind;a.a.assert(a.a.isType(n),"Invalid argument type supplied to propTypes()");var s={},u=o?n.meta.type:n;if("struct"===u.meta.kind||"interface"===u.meta.kind){var c=u.meta.props;Object.keys(c).forEach(function(t){var e=c[t],n=function t(n,i,o){var s=n[i],u=a.a.validate(s,e);if(!u.isValid()){var c=r(u.errors,"prop ".concat(a.a.stringify(i)),o,e);t.displayName=c,a.a.fail(c)}};n.tcomb=e,s[t]=n}),e&&!1===e.strict||(s.__strict__=function(t,e,n){var r=[];for(var i in t)"__strict__"!==i&&"__subtype__"!==i&&t.hasOwnProperty(i)&&!c.hasOwnProperty(i)&&r.push(i);if(r.length>0){var o=a.a.stringify(r);a.a.fail("Invalid additional prop(s):\n\n".concat(o,"\n\nsupplied to ").concat(n,"."))}})}else s.__generictype__=function(t,e,n){var i=a.a.validate(t,u);i.isValid()||a.a.fail(r(i.errors,"props",n,u))};return o&&(s.__subtype__=function(t,e,r){n.meta.predicate(t)||a.a.fail("Invalid props:\n\n ".concat(a.a.stringify(t),"\n\nsupplied to ").concat(r)+", should be a ".concat(a.a.getTypeName(n),"."))},s.__subtype__.predicate=n.meta.predicate),s}n.d(e,"a",function(){return s});var a=n(24),s=o},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(85),y=(n.n(v),n(14)),m=n(17),b=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){var t=this;return p.a.createElement("span",{ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick},p.a.createElement("i",{className:"scrivito_icon"}),p.a.createElement("span",{className:"scrivito_editing_marker_title"},this.props.parent.objClass()))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this._menuMarker&&m.b.showChildListMenu(Object(v.findDOMNode)(this._menuMarker),this.props.parent.id())}}]),a(e,t),e}(p.a.Component);b.displayName="Scrivito.ChildListTag.MenuMarker",e.a=Object(y.a)(b)},function(t,e,n){"use strict";function r(t){return i(t.target,t.currentTarget,Object(s.a)(t))}function i(t,e,n){if(t===e)return null;if("A"===t.nodeName){var r=t.href,s=o(r);return Object(a.f)(s)?n||"_blank"===t.getAttribute("target")?{openInNewWindow:r}:{openInCurrentWindow:s.resource()}:null}return i(t.parentNode,e,n)}e.a=r;var o=n(33),a=(n.n(o),n(63)),s=n(233)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");u(t.prototype,e&&e.prototype),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var p=n(237),v=n.n(p),y=n(13),m=n.n(y),b=n(1),g=n(22),w=n(87),_=n(62),k=n(86),O=n(14),E=n(140),x=function(t){function e(t){var n;return a(this,e),n=f(this,h(e).call(this,t)),n.state={hasError:!1},n}return l(e,[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"shouldComponentUpdate",value:function(t){return this.props.widget.equals(t.widget)}},{key:"getChildContext",value:function(){return o({},E.a,this.props.widget)}},{key:"render",value:function(){return this.state.hasError?Object(w.a)()?m.a.createElement(E.b,null,m.a.createElement("div",{className:"content_error"},"Widget could not be rendered due to application error.")):m.a.createElement(E.b,null):m.a.createElement(C,{widget:this.props.widget})}}]),s(e,t),e}(m.a.Component),C=function(t){function e(){return a(this,e),f(this,h(e).apply(this,arguments))}return l(e,[{key:"render",value:function(){var t=Object(g.e)(Object(_.a)(),this.props.widget);return m.a.createElement(this._getAppWidgetComponent(),{widget:t})}},{key:"_getAppWidgetComponent",value:function(){var t=this.props.widget.objClass(),e=Object(k.a)(t);if(!e)throw new b.ArgumentError('No component registered for widget class "'.concat(t,'"'));return e}}]),s(e,t),e}(m.a.Component);x.displayName="Scrivito.ContentTag.WidgetContent",x.childContextTypes=o({},E.a,v.a.object),e.a=Object(O.a)(x)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(13),o=(n.n(i),n(14)),a=n(141),s=n(238),u=n(227),c=n(17),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),f=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 l(e,t),e.prototype.render=function(){var t=this;return i.createElement("span",{ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,onDragStart:this._onDragStart,onDragEnd:this._onDragEnd,draggable:!0},i.createElement("i",{className:"scrivito_icon"}),i.createElement("span",{className:"scrivito_editing_marker_title"},this._title()))},e.prototype._onClick=function(t){if(t.preventDefault(),t.stopPropagation(),this._menuMarker){var e=Object(a.a)(this.props.widget),n=e.objId,r=e.widgetId;c.b.showWidgetMenu(this._menuMarker,n,r)}},e.prototype._onDragStart=function(t){Object(s.a)(t);var e=Object(a.a)(this.props.widget),n=e.objId,r=e.widgetId;c.b.onDragStart(n,r),this.props.setDragState(!0)},e.prototype._onDragEnd=function(){c.b.onDragEnd(),this.props.setDragState(!1)},e.prototype._title=function(){var t=Object(a.a)(this.props.widget),e=t.objId,n=t.widgetId;return Object(u.a)(e,n)},e.displayName="Scrivito.ContentTag.MenuMarker",e}(i.Component);e.a=Object(o.a)(f)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(85),y=(n.n(v),n(141)),m=n(14),b=n(17),g=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"componentDidMount",value:function(){if(this._widgetPlaceholder){var t=Object(v.findDOMNode)(this._widgetPlaceholder),e=Object(y.a)(this.props.field.container()),n=e.objId,r=e.widgetId,i=this.props.field.name();b.b.registerEmptyWidgetlistDropZoneInDom({domNode:t,objId:n,widgetId:r,attributeName:i})}}},{key:"render",value:function(){var t=this;return p.a.createElement("div",{ref:function(e){return t._widgetPlaceholder=e},className:"scrivito_empty_widget_field","data-scrivito-private-dropzone":"true",onClick:this._onClick})}},{key:"_onClick",value:function(t){if(t.preventDefault(),t.stopPropagation(),this._widgetPlaceholder){var e=this.props.field.name(),n=Object(y.a)(this.props.field.container()),r=n.objId,i=n.widgetId;b.b.showWidgetlistMenu(Object(v.findDOMNode)(this._widgetPlaceholder),{objId:r,widgetId:i,attributeName:e,mousePosition:{x:t.pageX,y:t.pageY}})}}}]),a(e,t),e}(p.a.Component);g.displayName="Scrivito.ContentTag.WidgetlistPlaceholder",e.a=Object(m.a)(g)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(13),o=(n.n(i),n(85)),a=(n.n(o),n(0)),s=(n.n(a),n(236)),u=n(18),c=n(14),l=n(354),f=n(355),d=n(4),h=n(135),p=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y=function(t){function e(e){var n=t.call(this,e)||this;return n._field=n.props.field,n.state={domMode:"None"},n._isPendingUpdate=!1,n._getContent=n._getContent.bind(n),n._setContent=n._setContent.bind(n),n._setDomMode=n._setDomMode.bind(n),n}return p(e,t),e.prototype.componentWillMount=function(){var t=this,e=this.props.editorClass;if(e){var n={getContent:this._getContent,setContent:this._setContent,setDomMode:this._setDomMode};this._editor=new e({controller:n}),this._editorWillBeActivated();var r=this._getContent();this._unsubscribe=d.g(function(){var e=t._getContent();if(!Object(f.a)(r,e)){if(r=e,t._isPendingUpdate&&t._pendingUpdateValue===e)return t._isPendingUpdate=!1,void(t._pendingUpdateValue=void 0);t._contentDidChange()}})}},e.prototype.componentDidMount=function(){"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=this;if("Replace"===this.state.domMode)return i.createElement(this.props.tag,v({},Object(a.omit)(this.props.customProps,"children"),{ref:function(e){t._editorComponent=e}}));var e,n=this._editor;n&&n.onClick&&(e=function(t){return n.onClick(new l.a(t))});var r={ref:function(e){t._editorComponent=e},children:this.props.children,customProps:this.props.customProps,field:this.props.field,key:this.state.domMode,tag:this.props.tag,onClick:e};return i.createElement(s.a,r)},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(o.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(u.a)(function(){var e=t._field.get();if("html"===t._field.type()){var n=e;e=Object(h.a)(n)}return e}).result},e.prototype._setContent=function(t){this._isPendingUpdate=!0,this._pendingUpdateValue=t,this._field.update(t)},e.displayName="Scrivito.ContentTag.Editor",e}(i.Component);e.a=Object(c.a)(y)},function(t,e,n){"use strict";var r=function(){function t(t){this._internalEvent=t}return t.prototype.preventDefault=function(){this._internalEvent.preventDefault()},t.prototype.stopPropagation=function(){this._internalEvent.stopPropagation()},t}();e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){return!!o(t,e)||!(!Array.isArray(t)||!Array.isArray(e))&&(t.length===e.length&&Object(a.every)(Object(a.zip)(t,e),function(t){return o(t[0],t[1])}))}function o(t,e){return!Array.isArray(t)&&!Array.isArray(e)&&(r(t,s.a)?t.equals(e):r(t,u.default)?t.equals(e):r(t,l.a)?t.equals(e):r(t,c.a)?t.equals(e):Object(a.isEqual)(t,e))}e.a=i;var a=n(0),s=(n.n(a),n(26)),u=n(3),c=n(34),l=n(32)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(13),p=n.n(h),v=n(60),y=n(357),m=n(1),b=n(86),g=n(14),w=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"componentDidMount",value:function(){Object(y.a)()}},{key:"componentWillUnmount",value:function(){Object(y.b)()}},{key:"render",value:function(){var t=Object(v.a)(),e=Object(v.c)();if(!t)return null;var n=t.objClass(),r=Object(b.a)(n);if(!r)throw new m.ArgumentError('No component registered for obj class "'.concat(n,'"'));return p.a.createElement(r,{page:t,params:e})}}]),a(e,t),e}(p.a.Component);w.displayName="Scrivito.CurrentPage",e.a=Object(g.a)(w)},function(t,e,n){"use strict";function r(){a+=1,Object(o.a)()}function i(){0!==a&&0===(a-=1)&&Object(o.b)()}e.a=r,e.b=i;var o=n(72),a=0},function(t,e,n){"use strict";function r(t){return(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})(t)}function i(){return i=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},i.apply(this,arguments)}function o(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function a(t,e){if(!o(t,e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");u(t.prototype,e&&e.prototype),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var p=n(13),v=n.n(p),y=n(0),m=(n.n(y),n(26)),b=n(234),g=n(42),w=n(14),_=n(359),k=n(231),O=n(1),E=n(37),x=function(t){function e(){return a(this,e),f(this,h(e).apply(this,arguments))}return l(e,[{key:"render",value:function(){if(!this.props.content)return null;var t=Object(y.omit)(this.props,"content","attribute");if(o(this.props.content,m.a))return v.a.createElement("img",i({src:Object(k.a)(this.props.content).url()},t));var e=this._getBinary();if(void 0===e)return null;var n;return null===e?(n=_.a,t["data-scrivito-image-placeholder"]=!0):n=Object(k.a)(e).url(),v.a.createElement(b.a,i({attribute:this.props.attribute,content:this.props.content,tag:"img",src:n},t))}},{key:"_getBinary",value:function(){var t=g.a.forInstance(this.props.content);if(t){var e=t.attributes[this.props.attribute];if(!e)return void Object(E.b)(new O.ArgumentError('Component "Scrivito.ImageTag" received prop "content"'+' with an object missing attribute "'.concat(this.props.attribute,'".')));var n=e[0];return"binary"===n?this.props.content.get(this.props.attribute):"reference"===n?this._getReferencedBinary():void Object(E.b)(new O.ArgumentError('Component "Scrivito.ImageTag" received prop "content"'+' with an object, whose attribute "'.concat(this.props.attribute,'"')+' is of unexpected type "'.concat(n,'".')+' Valid attribute types are "binary" and "reference".'))}}},{key:"_getReferencedBinary",value:function(){var t=this.props.content.get(this.props.attribute);if(t){var e=t.get("blob");if(e)return e}return null}}]),s(e,t),e}(v.a.Component);x.displayName="Scrivito.ImageTag",x.defaultProps={attribute:"blob"},e.a=Object(w.a)(x)},function(t,e,n){"use strict";e.a="data:image/gif;base64,R0lGODlhyADIAIAAAP///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU0OTExLCAyMDEzLzEwLzI5LTExOjQ3OjE2ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDBEQjBEMDdFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDBEQjBEMDhFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMERCMEQwNUU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMERCMEQwNkU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAAALAAAAADIAMgAAAL/hI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8aNBhw7eixTAAA7"},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(13),o=(n.n(i),n(60)),a=n(1),s=n(14),u=function(t){var e=t.children;return r(Object(o.b)(),a.CurrentPageNotFoundError)?e?i.createElement("div",null,e):i.createElement("div",null,i.createElement("h1",null,"The page you were looking for doesn't exist."),i.createElement("p",null,"You may have mistyped the address or the page may have moved.")):null};u.displayName="Scrivito.NotFoundErrorPage",e.a=Object(s.a)(u)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function v(t,e){y(e),m(e),g(e)&&(e.displayName=t);var n=Object(x.a)(e),r=b(n);Object(E.c)(t,r)}function y(t){if("function"!=typeof t)throw new O.ArgumentError("Scrivito.provideComponent expected a valid React component"+", but received ".concat(Object(C.a)(t)))}function m(t){if(t.propTypes)throw new O.ArgumentError("Custom props are not allowed when providing a component.")}function b(t){var e=function(t){function e(){return o(this,e),l(this,p(e).apply(this,arguments))}return c(e,[{key:"render",value:function(){if(this.props.widget){var t=d(p(e.prototype),"render",this).call(this);return Object(k.isArray)(t)||Object(k.isBoolean)(t)||Object(k.isNumber)(t)||Object(k.isString)(t)||null===t||t&&t.type!==j.b?_.a.createElement(j.b,{children:t}):t}return d(p(e.prototype),"render",this).call(this)}}]),a(e,t),e}(t);return e.displayName=Object(S.a)(t),e}function g(t){return!(t.displayName||t.name&&"_class"!==t.name)}e.a=v;var w=n(13),_=n.n(w),k=n(0),O=(n.n(k),n(1)),E=n(86),x=n(14),C=n(41),j=n(140),S=n(122)},function(t,e,n){"use strict";function r(t,e){Object(o.d)(t,Object(i.a)(e))}e.a=r;var i=n(14),o=n(86)},function(t,e,n){"use strict";function r(){o.a.enableForceVerification()}function i(){return o.a.currentPublicAuthorizationState()}Object.defineProperty(e,"__esModule",{value:!0}),e.enableForceVerification=r,e.currentPublicAuthorizationState=i;var o=n(21),a=n(240);n.d(e,"alwaysShowOptionMarkers",function(){return a.a});var s=n(101);n.d(e,"isFetchingActive",function(){return s.b})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(289),i=n(290),o=n(161),a=n(320),s=n(339);window.Scrivito=s;var u=Object(o.a)();u?u.installRailsApi():Object(r.a)(),Object(i.a)(u),Object(a.a)()}]);
167
+ var r=n(242),i=n(243),o=n(244);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?t:(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||function(t){return t!=t}(e.length)?s(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}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<e;++n)t[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<n;r+=1)t[r]=255&e[r];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(r)return F(t).length;e=(""+e).toLowerCase(),r=!0}}function y(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(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:m(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):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).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[e]: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 g(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>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[n+a]=s}return a}function b(t,e,n,r){return U(F(e,t.length-n),t,n,r)}function w(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 _(t,e,n,r){return w(t,e,n,r)}function k(t,e,n,r){return U(z(e),t,n,r)}function O(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(r);return o}(e,t.length-n),t,n,r)}function x(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[i],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[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],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[i+1],a=t[i+2],s=t[i+3],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(c),i+=f}return function(t){var e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=C));return n}(r)}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[Symbol.species]===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<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];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<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];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)y(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)y(this,e,e+3),y(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)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(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):function(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 S(this,e,n);case"latin1":case"binary":return j(this,e,n);case"base64":return x(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.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(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],a=c[f];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 v(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return v(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(r){case"hex":return g(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return _(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(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)}};var C=4096;function S(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function j(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[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<n;++o)i+=q(t[o]);return i}function A(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function N(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 P(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 R(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function I(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 D(t,e,n,r,o){return o||I(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function M(t,e,n,r,o){return o||I(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,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=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<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+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||N(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||N(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)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(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);P(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(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);P(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return D(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<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];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(r))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<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:F(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/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<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(48))},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){for(var e,n=l(t),r=n[0],a=n[1],s=new o(function(t,e,n){return 3*(e+n)/4-n}(0,r,a)),u=0,c=a>0?r-4:r,f=0;f<c;f+=4)e=i[t.charCodeAt(f)]<<18|i[t.charCodeAt(f+1)]<<12|i[t.charCodeAt(f+2)]<<6|i[t.charCodeAt(f+3)],s[u++]=e>>16&255,s[u++]=e>>8&255,s[u++]=255&e;2===a&&(e=i[t.charCodeAt(f)]<<2|i[t.charCodeAt(f+1)]>>4,s[u++]=255&e);1===a&&(e=i[t.charCodeAt(f)]<<10|i[t.charCodeAt(f+1)]<<4|i[t.charCodeAt(f+2)]>>2,s[u++]=e>>8&255,s[u++]=255&e);return s},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(f(t,a,a+16383>s?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=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),[n,n===e?0:4-n%4]}function c(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function f(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(c(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=t[e+f];for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+f],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<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,y=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[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+p]=255&a,p+=h,a/=256,l-=8);t[n+p-h]|=128*y}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(246),i=n(250),o=n(251),a=n(96),s=n(252),u=n(181),l=n(128),c=n(62),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()?this.options.bulletListTag+"":t.isCheckedList()?this.options.bulletListTag+"":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,[t,e]):"")||(r=n());var o=this.callbacks.afterRender_cb;return r="function"==typeof o?o.apply(null,[t,r]):r},t.prototype._renderList=function(t){var e=this,n=t.items[0];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,e]):""},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},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(125),i=n(62),o=n(126),a=n(180),s=n(248),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[u];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.Image]):i.DataType.Video in t?new o.InsertDataQuill(i.DataType.Video,t[i.DataType.Video]):i.DataType.Formula in t?new o.InsertDataQuill(i.DataType.Formula,t[i.DataType.Formula]):new o.InsertDataCustom(e[0],t[e[0]]):null},t}();e.InsertOpsConverter=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(127),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["end-point"]&&(n["end-point"]=r.sanitize(e["end-point"]+"")),e.slug&&(n.slug=e.slug+""),n):n},t.IsValidClass=function(t){return!!t.match(/^[a-zA-Z0-9_\-]{1,500}$/i)},t.IsValidId=function(t){return!!t.match(/^[a-zA-Z0-9_\-\:\.]{1,500}$/i)},t.IsValidTarget=function(t){return["_self","_blank","_parent","_top"].indexOf(t)>-1},t}();e.MentionSanitizer=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(62),i=n(249),o=n(128),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[t];var e=i.tokenizeWithNewLines(t.insert+"");if(1===e.length)return[t];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},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tokenizeWithNewLines=function(t){if("\n"===t)return[t];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},[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(181),i=n(62),o=n(127),a=n(128),s=n(129),u=n(180),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[a];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=["indent","align","direction","font","size"];return this.options.allowBackgroundClasses&&e.push("background"),e.filter(function(e){return!!t[e]}).filter(function(e){return"background"!==e||u.OpAttributeSanitizer.IsValidColorLiteral(t[e])}).map(function(e){return e+"-"+t[e]}).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=[["color"]];return this.options.allowBackgroundClasses||e.push(["background","background-color"]),e.filter(function(e){return!!t[e[0]]}).map(function(e){return s.preferSecond(e)+":"+t[e[0]]})},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["end-point"]&&a.slug?i.concat(e("href",r.encodeLink(a["end-point"]+"/"+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?[e("style",s.join(";"))]:[];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[this.op.isVideo()?"iframe":this.op.isImage()?"img":"span"];for(var e=this.options.paragraphTag||"p",n=0,r=[["blockquote"],["code-block","pre"],["list",this.options.listItemTag],["header"],["align",e],["direction",e],["indent",e]];n<r.length;n++){var o=r[n],a=o[0];if(t[a])return"header"===a?["h"+t[a]]:[s.preferSecond(o)]}return[["link","a"],["mentions","a"],["script"],["bold","strong"],["italic","em"],["strike","s"],["underline","u"],["code"]].filter(function(e){return!!t[e[0]]}).map(function(e){return"script"===e[0]?t[e[0]]===i.ScriptType.Sub?"sub":"sup":s.preferSecond(e)})},t.IsValidRel=function(t){return!!t.match(/^[a-z\s]{1,50}$/i)},t}();e.OpToHtmlConverter=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(125),i=n(129),o=n(96),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[s];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[0].ops=i.flatten(t.map(function(t,r){return t.ops.length?t.ops.concat(r<n?[e]:[]):[e]})),t[0]})},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},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(96),i=n(129),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[0].item.op.isSameListAs(e.items[0].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(r){n[r].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[0].item.op.attributes.indent;return n&&(t[n]=t[n]||[],t[n].push(e)),t},{})},t.prototype.placeUnderParent=function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(t.items[0].item.op.hasHigherIndentThan(r.items[0].item.op)){var i=r.items[r.items.length-1];return i.innerList?i.innerList.items=i.innerList.items.concat(t.items):i.innerList=t,!0}}return!1},t}();e.ListNester=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var r=n(194),i=n(198),o=n(121),a=n(197),s=n(193);window.Scrivito=s;var u=Object(o.a)();u?u.installRailsApi():Object(r.a)(),Object(i.a)(u),Object(a.a)()}]);