diff --git a/src/assets/js/met-wc/met-web-component.0.1.0.js b/src/assets/js/met-wc/met-web-component.0.1.0.js index da7c91e8..d678d894 100644 --- a/src/assets/js/met-wc/met-web-component.0.1.0.js +++ b/src/assets/js/met-wc/met-web-component.0.1.0.js @@ -1,3 +1,3 @@ /*! For license information please see met-web-component.0.1.0.js.LICENSE.txt */ -(function(){var __webpack_modules__={5194:function(e,t,n){e.exports=n(8917)},6267:function(e,t,n){"use strict";var r=n(400),o=n(2525),i=n(621),a=n(2881),c=n(9743),u=n(4899),l=n(4301),s=n(3964),f=n(6369),p=n(2202);e.exports=function(e){return new Promise((function(t,n){var d,h=e.data,y=e.headers,g=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}r.isFormData(h)&&delete y["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(b+":"+w)}var S=c(e.baseURL,e.url);function k(){if(v){var r="getAllResponseHeaders"in v?u(v.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};o((function(e){t(e),m()}),(function(e){n(e),m()}),i),v=null}}if(v.open(e.method.toUpperCase(),a(S,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=k:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(k)},v.onabort=function(){v&&(n(s("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(s("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(s(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||l(S))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(y[e.xsrfHeaderName]=E)}"setRequestHeader"in v&&r.forEach(y,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete y[t]:v.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),g&&"json"!==g&&(v.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){v&&(n(!e||e&&e.type?new p("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),h||(h=null),v.send(h)}))}},8917:function(e,t,n){"use strict";var r=n(400),o=n(7410),i=n(5660),a=n(5451);var c=function e(t){var n=new i(t),c=o(i.prototype.request,n);return r.extend(c,i.prototype,n),r.extend(c,n),c.create=function(n){return e(a(t,n))},c}(n(8489));c.Axios=i,c.Cancel=n(2202),c.CancelToken=n(2261),c.isCancel=n(8102),c.VERSION=n(3223).version,c.all=function(e){return Promise.all(e)},c.spread=n(8320),c.isAxiosError=n(1145),e.exports=c,e.exports.default=c},2202:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},2261:function(e,t,n){"use strict";var r=n(2202);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){s.headers[e]=o.merge(u)})),e.exports=s},6369:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3223:function(e){e.exports={version:"0.26.1"}},7410:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8320:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},3198:function(e,t,n){"use strict";var r=n(3223).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],u=void 0===c||a(c,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},400:function(e,t,n){"use strict";var r=n(7410),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function a(e){return"undefined"===typeof e}function c(e){return"[object ArrayBuffer]"===o.call(e)}function u(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n=t?e:""+Array(t+1-r.length).join(n)+e},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var c=t.name;w[c]=t,o=c}return!r&&o&&(b=o),o||!r&&b},E=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},x=v;x.l=k,x.i=S,x.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function g(e){this.$L=k(e.locale,null,!0),this.parse(e)}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return x},m.isValid=function(){return!(this.$d.toString()===d)},m.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return E(e)=0||(o[n]=e[n]);return o}(e,["leaves"]);return new p(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(s(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=i.prototype;return c.getKey=function(){return this.get("key")},c.getType=function(){return this.get("type")},c.getText=function(){return this.get("text")},c.getCharacterList=function(){return this.get("characterList")},c.getLength=function(){return this.getText().length},c.getDepth=function(){return this.get("depth")},c.getData=function(){return this.get("data")},c.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},c.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},c.getChildKeys=function(){return this.get("children")},c.getParentKey=function(){return this.get("parent")},c.getPrevSiblingKey=function(){return this.get("prevSibling")},c.getNextSiblingKey=function(){return this.get("nextSibling")},c.findStyleRanges=function(e,t){o(this.getCharacterList(),d,e,t)},c.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i}(l(p));e.exports=y},5607:function(e,t,n){"use strict";function r(e){for(var t=1;t1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},c.createEntity=function(e,t,n){return l.__create(e,t,n),this},c.mergeEntityData=function(e,t){return l.__mergeData(e,t),this},c.replaceEntityData=function(e,t){return l.__replaceData(e,t),this},c.addEntity=function(e){return l.__add(e),this},c.getEntity=function(e){return l.__get(e)},c.getAllEntities=function(){return l.__getAll()},c.loadWithEntities=function(e){return l.__loadWithEntities(e)},o.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=i.createFromArray(n),a=r.isEmpty()?new s:s.createEmpty(r.first().getKey());return new o({blockMap:r,entityMap:t||l,selectionBefore:a,selectionAfter:a})},o.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=y(e),new k({key:f(),text:e,type:"unstyled",characterList:g(v(a.EMPTY,e.length))})}));return o.createFromBlockArray(n)},o.fromJS=function(e){return new o(r({},e,{blockMap:w(e.blockMap).map(o.createContentBlockFromJS),selectionBefore:new s(e.selectionBefore),selectionAfter:new s(e.selectionAfter)}))},o.createContentBlockFromJS=function(e){var t=e.characterList;return new k(r({},e,{data:b(e.data),characterList:null!=t?g((Array.isArray(t)?t:p(t)).map((function(e){return a.fromJS(e)}))):void 0}))},o}(S);e.exports=E},2942:function(e,t,n){"use strict";var r=n(7294),o=n(3323).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),c=t.getStartKey(),u=t.getStartOffset(),l=t.getEndKey(),s=t.getEndOffset(),f=a.skipUntil((function(e,t){return t===c})).takeUntil((function(e,t){return t===l})).concat(o([[l,a.get(l)]])).map((function(e,t){var o,a;c===l?(o=u,a=s):(o=t===c?u:0,a=t===l?s:e.getLength());for(var f,p=e.getCharacterList();o0&&window.scrollTo(i.x,i.y+r+10)}else{m(n)||g(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&u.setTop(o,u.getTop(o)+r+10)}}}}},w._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),u=this.props.tree.size-1,l=b(this.props.selection,n);return this.props.tree.map((function(p,d){var h=p.get("leaves");if(0===h.size)return null;var y=h.size-1,g=h.map((function(o,s){var f=a.encode(n,d,s),p=o.get("start"),h=o.get("end");return c.createElement(i,{key:f,offsetKey:f,block:t,start:p,selection:l?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(p,h),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===u&&s===y})})).toArray(),m=p.get("decoratorKey");if(null==m)return g;if(!e.props.decorator)return g;var b=v(e.props.decorator),w=b.getComponentForKey(m);if(!w)return g;var S=b.getPropsForKey(m),k=a.encode(n,d,0),E=h.first().get("start"),x=h.last().get("end"),_=r.slice(E,x),O=t.getEntityAt(p.get("start")),C=f.getHTMLDirIfDifferent(s.getDirection(_),e.props.direction),M={contentState:e.props.contentState,decoratedText:_,dir:C,start:E,end:x,blockKey:n,entityKey:O,offsetKey:k};return c.createElement(w,o({},S,M,{key:k}),g)})).toArray()},w.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return c.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(c.Component);e.exports=w},2514:function(e,t,n){"use strict";var r=n(7155);function o(){return o=r||function(e){for(var t=1;t0&&window.scrollTo(i.x,i.y+r+10)}else{m(n)||g(!1);var c=n;(r=c.offsetHeight+c.offsetTop-(o.offsetHeight+i.y))>0&&s.setTop(o,s.getTop(o)+r+10)}}}},y.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,s=t.blockRendererFn,f=t.blockStyleFn,p=t.contentState,d=t.decorator,h=t.editorKey,y=t.editorState,g=t.customStyleFn,m=t.customStyleMap,k=t.direction,E=t.forceSelection,x=t.selection,_=t.tree,O=null;n.children.size&&(O=n.children.reduce((function(t,n){var o=u.encode(n,0,0),c=p.getBlockForKey(n),d=w(c,s),g=d.CustomComponent||r,m=b(c,a),v=m.Element,k=m.wrapperTemplate,E=S(c,h,o,f,d,null),x=i({},e.props,{tree:y.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:c});return t.push(l.createElement(v,E,l.createElement(g,x))),!k||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(c,p)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var c,s=n.reverse()[Symbol.iterator]();!(o=(c=s.next()).done);o=!0){var f=c.value;if(f.type!==t)break;r.push(f)}}catch(h){i=!0,a=h}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(l.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":u.encode(d,0,0)},p))}(k,v,t),t}),[]));var C=n.getKey(),M=u.encode(C,0,0),j=w(n,s),T=j.CustomComponent,D=null!=T?l.createElement(T,o({},this.props,{tree:y.getBlockTree(C),blockProps:j.customProps,offsetKey:M,block:n})):l.createElement(c,{block:n,children:O,contentState:p,customStyleFn:g,customStyleMap:m,decorator:d,direction:k,forceSelection:E,hasSelection:v(x,C),selection:x,tree:_});if(n.getParentKey())return D;var A=b(n,a).Element,L=S(n,h,M,f,j,this.wrapperRef);return l.createElement(A,L,D)},r}(l.Component);e.exports=k},9556:function(e,t,n){"use strict";var r=n(5756),o=n(4230),i=n(8083),a=n(588),c=n(8709),u=n(7515),l=n(1919),s=n(8090),f=n(8),p=n(401),d=n(2242),h=u.isBrowser("IE"),y=!1,g=!1,m=null;var v={onCompositionStart:function(e){g=!0,function(e){m||(m=new r(s(e))).start()}(e)},onCompositionEnd:function(e){y=!1,g=!1,setTimeout((function(){y||v.resolveComposition(e)}),20)},onSelect:l,onKeyDown:function(e,t){if(!g)return v.resolveComposition(e),void e._onKeyDown(t);t.which!==c.RIGHT&&t.which!==c.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===c.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!g){var t=d(m).stopAndFlushMutations();m=null,y=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var c=i.decode(t),u=c.blockKey,l=c.decoratorKey,s=c.leafKey,f=n.getBlockTree(u).getIn([l,"leaves",s]),d=f.start,h=f.end,y=n.getSelection().merge({anchorKey:u,focusKey:u,anchorOffset:d,focusOffset:h,isBackward:!1}),g=p(r,y),m=r.getBlockForKey(u).getInlineStyleAt(d);r=o.replaceText(r,y,e,m,g),n=a.set(n,{currentContent:r})}));var c=f(n,s(e)).selectionState;e.restoreEditorDOM();var u=h?a.forceSelection(n,c):a.acceptSelection(n,c);e.update(a.push(u,r,"insert-characters"))}else e.update(n)}}};e.exports=v},8890:function(e,t,n){"use strict";var r=n(7155);function o(){return o=r||function(e){for(var t=1;t=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),c=n.getCurrentContent(),u=t.getDecorator(),l=n.getDecorator();return o!==i||a!==c||u!==l||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,s=e.customStyleFn,h=e.editorState,y=e.editorKey,g=e.preventScroll,m=e.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),S=h.getDecorator(),k=p(h.getDirectionMap()),E=v.getBlocksAsArray(),x=[],_=null,O=null,C=0;C_,P));var K=A||c,W={className:H,"data-block":!0,"data-editor":y,"data-offset-key":I,key:j};void 0!==N&&(W=i({},W,{contentEditable:N,suppressContentEditableWarning:!0}));var q=l.createElement(B,W,l.createElement(K,o({},R,{key:j})));x.push({block:q,wrapperTemplate:U,key:j,offsetKey:I}),_=U?M.getDepth():null,O=U}for(var Y=[],V=0;V0){if(e.props.handleDroppedFiles&&f(e.props.handleDroppedFiles(d,g)))return;u(g,(function(t){t&&e.update(y(s,d,t))}))}else{var m=e._internalDrag?"internal":"external";e.props.handleDrop&&f(e.props.handleDrop(d,n,m))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(s,d)):e.update(y(s,d,n.getText()))),h(e)}}}};function h(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:s(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function y(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=d},844:function(e,t,n){"use strict";var r=n(7515),o=n(9159),i=n(2246),a=n(9569),c=n(6676),u=n(9796),l=n(9675),s=n(1070),f=n(1273),p=n(9472),d=n(4076),h=n(4871),y=n(1919),g=r.isBrowser("Chrome"),m=r.isBrowser("Firefox"),v=g||m?y:function(e){},b={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:c,onCut:u,onDragOver:l,onDragStart:s,onFocus:f,onInput:p,onKeyDown:d,onPaste:h,onSelect:y,onMouseUp:v,onKeyUp:v};e.exports=b},6341:function(e,t,n){"use strict";var r=n(456).unstable_flushControlled;e.exports=r},1747:function(e,t,n){"use strict";var r=n(7155);var o=n(4245),i=n(1233),a=n(3402),c=n(5876),u=n(6849).setDraftEditorSelection,l=function(e){var t,n;function l(){for(var t,n,r,o,i=arguments.length,a=new Array(i),c=0;c0)return" "+e}else if(t3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=d(e,t),i=h(o,t);return l(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,c;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),c=e.getBlockForKey(o);var u=t.getStartOffset(),l=t.getEndOffset(),s=i.getEntityAt(u),f=c.getEntityAt(l-1);if(r===o&&s&&s===f){var p=a(e.getEntityMap(),i,c,t,n);return h(e,p)}var y=d(e,t);return h(y,t)},splitBlock:function(e,t){var n=d(e,t),r=h(n,t);return y(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=d(e,t);return i(r,t,n)}};e.exports=m},8083:function(e){"use strict";var t="-",n={encode:function(e,n,r){return e+t+n+t+r},decode:function(e){var n=e.split(t).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(t),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};e.exports=n},6749:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(5958),i=n(421),a=n(9419),c=n(2453),u=n(1517),l=n(330),s=n(3323),f=n(327),p=s.List,d=s.Repeat,h=l("draft_tree_data_support"),y=h?i:o,g={processHTML:function(e,t){return a(e,u,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=f(o);var a=c(),u={key:a,type:n,text:o,characterList:p(d(t,o.length))};if(h&&0!==i){var l=i-1;u=function(e){for(var t=1;t0)||(delete t.children,n.push(t))})),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=c(e),a=e.depth||0,u=r({},e,{children:[]});if(o){var l=n[0];if(null==l&&0===a)t.push(u);else if(null==l||l.depth=a;)n.shift(),l=n[0];a>0?l.children.push(u):t.push(u)}}else t.push(u)})),r({},e,{blocks:t})}};e.exports=u},3684:function(e,t,n){"use strict";n(7694);e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var i=e.getNextSiblingKey();if(null!=i&&t.get(i).getPrevSiblingKey()!==n)return!1;return(null===i||null===o||o!==i)&&!(""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),c=i.getNextSiblingKey();if(a.size>0){null!=c&&o.unshift(c);var u=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}},6305:function(e,t,n){"use strict";var r,o=n(3001),i=n(3323),a=n(2242),c=i.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),u=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),l=c(n.keySeq().zip(u));return null!=t&&i.is(t,l)?t:l}};e.exports=u},588:function(e,t,n){"use strict";function r(e){for(var t=1;t0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return b(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r0)return o.getInlineStyleAt(r-1);return b(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return m(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),m(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new u({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=c.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),u=e.getCurrentContent(),l=e.getUndoStack(),s=n;a!==u.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(l=l.push(u),s=s.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(s=s.set("selectionBefore",u.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(f=null);var d={currentContent:s,directionMap:i,undoStack:l,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=c.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=c.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function m(e,t,n){return g.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function v(e,t){return e.getBlockMap().map((function(n){return i.generate(e,n,t)})).toOrderedMap()}function b(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):s()}e.exports=g},5595:function(e,t,n){"use strict";var r=n(7515),o=n(427),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},8643:function(){},5140:function(e,t,n){"use strict";var r=n(4230),o=n(588),i=n(6162),a=n(2242),c={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return c.toggleInlineStyle(e,"BOLD");case"italic":return c.toggleInlineStyle(e,"ITALIC");case"underline":return c.toggleInlineStyle(e,"UNDERLINE");case"code":return c.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return c.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return c.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),u=n.merge({blockMap:a,selectionAfter:t});if(u!==n)return o.push(e,u,"remove-range")}var l=c.tryToRemoveBlockStyle(e);return l?o.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()=c},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(3323).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},6162:function(e){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),c=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(c),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},7509:function(e,t,n){"use strict";var r=n(7294);e.exports=function(e,t,n,o){for(var i=t,a=e.getCharacterList();i1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(P).some((function(n){e.classList.contains(n)&&(t=P[n])})),t},U=function(e){if(!w(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new f(t.href);return!0}catch(n){return!1}},B=function(e){if(!E(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},F=function(e,t){if(!k(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){D.indexOf(r)>=0?e.add("BOLD"):A.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},H=function(e){return"ul"===e||"ol"===e},K=function(){function e(e,t){i(this,"characterList",m()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",s),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=m(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=s,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(x?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:m(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=m(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=m()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(C,"")).replace(O," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){S(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(E(e)){var n=e,r={};N.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),y("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("\ud83d\udcf7",t):this._appendText("\ud83d\udcf7",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(w(e)){var r=e,o={};L.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new f(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r2&&void 0!==arguments[2]?arguments[2]:l,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(e=e.trim().replace(_,"").replace(M," ").replace(j,"").replace(T,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"===typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),v(t)}(t);return new K(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},7474:function(e,t,n){"use strict";function r(e){for(var t=1;t0})),o=v&&!n?l.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!v)return function(e,t){return S(e.map((function(e){var n=new i(k(e,t));return[n.getKey(),n]})))}(n?l.fromRawTreeStateToRawState(e).blocks:o,t);var c=function(e,t){return e.map(x).reduce((function(n,o,i){Array.isArray(o.children)||m(!1);var c=o.children.map(x),u=new a(r({},k(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:b(c.map((function(e){return e.key})))}));n=n.set(u.getKey(),u);for(var l=_([],c,u);l.length>0;){var s=l.pop(),f=s.parentRef,p=f.getChildKeys(),d=p.indexOf(s.key),h=Array.isArray(s.children);if(!h){h||m(!1);break}var y=s.children.map(x),g=new a(r({},k(s,t),{parent:f.getKey(),children:b(y.map((function(e){return e.key}))),prevSibling:0===d?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)}));n=n.set(g.getKey(),g),l=_(l,y,g)}return n}),S())}(o,t);return c};e.exports=function(e){Array.isArray(e.blocks)||m(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=u.__create(o,i,a||{})})),n}(e),n=O(e,t),r=n.isEmpty()?new s:s.createEmpty(n.first().getKey());return new c({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},4411:function(e,t,n){"use strict";var r=n(7294),o=n(3323).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},5121:function(e,t,n){"use strict";var r=n(6241).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a=y?r.length:0),a=t.get("end"),c=a+(a>=y?r.length:0),u=n.get("start"),l=n.get("end"),s=n.get("decoratorKey");return t.get("decoratorKey")!==s||t.get("leaves").size!==n.get("leaves").size||i!==u||c!==l||null!=s&&l-u!==a-o}))}if(b||(m=r,b=d&&(m==f||m==p)),b||(b=l(v.getDirectionMap()).get(g)!==l(n.getDirectionMap()).get(g)),b)return t.preventDefault(),v=o.set(v,{forceSelection:!0}),void e.update(v);v=o.set(v,{nativelyRenderedContent:v.getCurrentContent()}),e._pendingStateFromBeforeInput=v,s((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},2246:function(e,t,n){"use strict";var r=n(588),o=n(8420),i=n(8069);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),c=e.editor;1===a.rangeCount&&o(c,a.anchorNode)&&o(c,a.focusNode)&&a.removeAllRanges()}var u=e._latestEditorState,l=u.getSelection();if(l.getHasFocus()){var s=l.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(u,s))}}},9569:function(e,t,n){"use strict";var r=n(588);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},6676:function(e,t,n){"use strict";var r=n(1072);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},9796:function(e,t,n){"use strict";var r=n(4230),o=n(588),i=n(3741),a=n(1072),c=n(1420),u=n(7751);e.exports=function(e,t){var n,l=e._latestEditorState,s=l.getSelection(),f=t.target;if(s.isCollapsed())t.preventDefault();else{if(u(f)){var p=f;n=c(i.getScrollParent(p))}var d=a(l);e.setClipboard(d),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(l))}),0)}}},9675:function(e){"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},1070:function(e){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},1273:function(e,t,n){"use strict";var r=n(588),o=n(7515);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},9472:function(e,t,n){"use strict";var r=n(4230),o=n(8083),i=n(588),a=n(7515),c=n(2754).notEmptyKey,u=n(2688),l=n(4688),s=n(2242),f=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,p=n.isCollapsed,d=(null===a||void 0===a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null===a||void 0===a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!d){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var y=h.firstChild;null!=y;y=y.nextSibling)y!==a&&h.removeChild(y)}var g=a.textContent,m=e._latestEditorState,v=s(u(a)),b=o.decode(v),w=b.blockKey,S=b.decoratorKey,k=b.leafKey,E=m.getBlockTree(w).getIn([S,"leaves",k]),x=E.start,_=E.end,O=m.getCurrentContent(),C=O.getBlockForKey(w),M=C.getText().slice(x,_);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g!==M){var j,T,D,A,L=m.getSelection(),N=L.merge({anchorOffset:x,focusOffset:_,isBackward:!1}),P=C.getEntityAt(x),I=c(P)?O.getEntity(P):null,R="MUTABLE"===(null!=I?I.getMutability():null),z=R?"spellcheck-change":"apply-entity",U=r.replaceText(O,N,g,C.getInlineStyleAt(x),R?C.getEntityAt(x):null);if(f)j=n.anchorOffset,T=n.focusOffset,A=(D=x+Math.min(j,T))+Math.abs(j-T),j=D,T=A;else{var B=g.length-M.length;D=L.getStartOffset(),A=L.getEndOffset(),j=p?A+B:D,T=A+B}var F=U.merge({selectionBefore:O.getSelectionAfter(),selectionAfter:L.merge({anchorOffset:j,focusOffset:T})});e.update(i.push(m,F,z))}else{var H=t.nativeEvent.inputType;if(H){var K=function(e,t){return"deleteContentBackward"===e?l(t):t}(H,m);if(K!==m)return e.restoreEditorDOM(),void e.update(K)}}}}},4076:function(e,t,n){"use strict";var r=n(4230),o=n(588),i=n(5595),a=n(8709),c=n(7819),u=n(7515),l=n(2964),s=n(627),f=n(1404),p=n(667),d=n(6856),h=n(5584),y=n(8098),g=n(4688),m=n(225),v=n(2927),b=n(9362),w=i.isOptionKeyCommand,S=u.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function u(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&l(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),u("onEscape"))return;break;case a.TAB:if(u("onTab"))return;break;case a.UP:if(u("onUpArrow"))return;break;case a.RIGHT:if(u("onRightArrow"))return;break;case a.DOWN:if(u("onDownArrow"))return;break;case a.LEFT:if(u("onLeftArrow"))return;break;case a.SPACE:S&&w(t)&&t.preventDefault()}var k=e.props.keyBindingFn(t);if(null!=k&&""!==k)if("undo"!==k){if(t.preventDefault(),!e.props.handleKeyCommand||!l(e.props.handleKeyCommand(k,i,t.timeStamp))){var E=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return m(t);case"delete-word":return p(t);case"backspace":return g(t);case"backspace-word":return f(t);case"backspace-to-start-of-line":return s(t,n);case"split-block":return d(t);case"transpose-characters":return v(t);case"move-selection-to-start-of-block":return y(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return c.cut(t);case"secondary-paste":return c.paste(t);default:return t}}(k,i,t);E!==i&&e.update(E)}}else b(t,i,e.update);else if(n===a.SPACE&&S&&w(t)){var x=r.replaceText(i.getCurrentContent(),i.getSelection(),"\xa0");e.update(o.push(i,x,"insert-characters"))}}},4871:function(e,t,n){"use strict";var r=n(511),o=n(7294),i=n(7530),a=n(4230),c=n(6749),u=n(588),l=n(5140),s=n(401),f=n(4561),p=n(2964),d=n(6930);function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return u.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var y=n.getFiles(),g=n.getText();if(y.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(y)))return;return void f(y,(function(t){if(t=t||g){var n=e._latestEditorState,i=d(t),f=o.create({style:n.getCurrentInlineStyle(),entity:s(n.getCurrentContent(),n.getSelection())}),p=l.getCurrentBlockType(n),h=c.processText(i,f,p),y=r.createFromArray(h),m=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),y);e.update(u.push(n,m,"insert-fragment"))}}))}}var m=[],v=n.getText(),b=n.getHTML(),w=e._latestEditorState;if(e.props.formatPastedText){var S=e.props.formatPastedText(v,b);v=S.text,b=S.html}if(!e.props.handlePastedText||!p(e.props.handlePastedText(v,b,w))){if(v&&(m=d(v)),!e.props.stripPastedStyles){var k,E=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&E){if(-1!==(null===(k=b)||void 0===k?void 0:k.indexOf(e.getEditorKey()))||1===m.length&&1===E.size&&E.first().getText()===v)return void e.update(h(e._latestEditorState,E))}else if(E&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(m,E))return void e.update(h(e._latestEditorState,E));if(b){var x=c.processHTML(b,e.props.blockRenderMap);if(x){var _=x.contentBlocks,O=x.entityMap;if(_){var C=r.createFromArray(_);return void e.update(h(e._latestEditorState,C,O))}}}e.setClipboard(null)}if(m.length){var M=o.create({style:w.getCurrentInlineStyle(),entity:s(w.getCurrentContent(),w.getSelection())}),j=l.getCurrentBlockType(w),T=c.processText(m,M,j),D=r.createFromArray(T);e.update(h(e._latestEditorState,D))}}}},1919:function(e,t,n){"use strict";var r=n(4275),o=n(588),i=n(8090),a=n(8);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,c=a(n,i(e)),u=c.selectionState;u!==n.getSelection()&&(n=c.needsRecovery?o.forceSelection(n,u):o.acceptSelection(n,u),e.update(n))}}},7408:function(e,t,n){"use strict";var r=n(3633),o=n(6241).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var c=e.getText(),u=e.getEntityAt(i);n.push({offset:o(c.slice(0,i)),length:o(c.slice(i,a)),key:Number(t[r.stringify(u)])})})),n}},1482:function(e,t,n){"use strict";var r=n(6241),o=n(8424),i=function(e,t){return e===t},a=function(e){return!!e},c=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var c=[],u=t.map((function(e){return e.has(n)})).toList();return o(u,i,a,(function(t,o){var i=e.getText();c.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),c}(e,t,n)}));return Array.prototype.concat.apply(c,n.toJS())}},2403:function(e,t,n){"use strict";var r=n(6241),o=n(2206),i=n(8200),a=n(3402);function c(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a=0;h--)if(!(null!=d&&h>0&&r.isSurrogatePair(d,h-1))){if(e.setStart(f,h),!c(i(e),n))break;l=f,s=h}if(-1===h||0===f.childNodes.length)break;p=u(f=f.childNodes[h])}return e.setStart(l,s),e}},2688:function(e,t,n){"use strict";var r=n(2206),o=n(8210);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=o(t);if(null!=n)return n;t=t.parentNode}return null}},8424:function(e){"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},2453:function(e){"use strict";var t={},n=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},3361:function(e,t,n){"use strict";var r=n(2499),o=n(5865),i=n(3402);function a(e,t,n,a,c,u,l){var s=n.getStartOffset(),f=n.getEndOffset(),p=e.__get(c).getMutability(),d=l?s:f;if("MUTABLE"===p)return n;var h=o(t,c).filter((function(e){return d<=e.end&&d>=e.start}));1!=h.length&&i(!1);var y=h[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1});u||(l?f=y.end:s=y.start);var g=r.getRemovalRange(s,f,t.getText().slice(y.start,y.end),y.start,a);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),c=r.getEndOffset(),u=t.getEntityAt(i),l=n.getEntityAt(c-1);if(!u&&!l)return r;var s=r;if(u&&u===l)s=a(e,t,s,o,u,!0,!0);else if(u&&l){var f=a(e,t,s,o,u,!1,!0),p=a(e,n,s,o,l,!1,!1);s=s.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(u){var d=a(e,t,s,o,u,!1,!0);s=s.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(l){var h=a(e,n,s,o,l,!1,!1);s=s.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return s}},8090:function(e,t,n){"use strict";var r=n(3402),o=n(170);e.exports=function(e){var t=e.editorContainer;return t||r(!1),o(t.firstChild)||r(!1),t.firstChild}},6604:function(e,t,n){"use strict";var r=n(1303),o=n(5049);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),c=t.getEndOffset(),u=o(e,t).getBlockMap(),l=u.keySeq(),s=l.indexOf(n),f=l.indexOf(a)+1;return r(u.slice(s,f).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,c),characterList:o.slice(i,c)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,c),characterList:o.slice(0,c)}):e})))}},2206:function(e){"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},727:function(e,t,n){"use strict";var r=n(5595),o=n(8709),i=n(7515),a=i.isPlatform("Mac OS X"),c=a&&i.isBrowser("Firefox < 29"),u=r.hasCommandModifier,l=r.isCtrlKeyCommand;function s(e){return a&&e.altKey||l(e)}e.exports=function(e){switch(e.keyCode){case 66:return u(e)?"bold":null;case 68:return l(e)?"delete":null;case 72:return l(e)?"backspace":null;case 73:return u(e)?"italic":null;case 74:return u(e)?"code":null;case 75:return a&&l(e)?"secondary-cut":null;case 77:case 79:return l(e)?"split-block":null;case 84:return a&&l(e)?"transpose-characters":null;case 85:return u(e)?"underline":null;case 87:return a&&l(e)?"backspace-word":null;case 89:return l(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return u(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:s(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return u(e)&&a?"backspace-to-start-of-line":s(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&u(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&u(e)?"move-selection-to-end-of-block":null;default:return null}}},8:function(e,t,n){"use strict";var r=n(9611);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,c=n.focusOffset;return 0===n.rangeCount||null==o||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o,i,a,c)}},9611:function(e,t,n){"use strict";var r=n(2688),o=n(8210),i=n(1364),a=n(3402),c=n(546),u=n(2242);function l(e,t,n){var i=t,l=r(i);(null!=l||e&&(e===i||e.firstChild===i)||a(!1),e===i)&&(i=i.firstChild,c(i)||a(!1),"true"!==(i=i).getAttribute("data-contents")&&a(!1),n>0&&(n=i.childNodes.length));if(0===n){var f=null;if(null!=l)f=l;else{var p=function(e){for(;e.firstChild&&(c(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);f=u(o(p))}return{key:f,offset:0}}var d=i.childNodes[n-1],h=null,y=null;if(o(d)){var g=function(e){for(;e.lastChild&&(c(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(d);h=u(o(g)),y=s(g)}else h=u(l),y=s(d);return{key:h,offset:y}}function s(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,c){var s=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(s&&f)return{selectionState:i(e,u(r(n)),o,u(r(a)),c),needsRecovery:!1};var p=null,d=null,h=!0;return s?(p={key:u(r(n)),offset:o},d=l(t,a,c)):f?(d={key:u(r(a)),offset:c},p=l(t,n,o)):(p=l(t,n,o),d=l(t,a,c),n===a&&o===c&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,p.key,p.offset,d.key,d.offset),needsRecovery:h}}},401:function(e,t,n){"use strict";var r=n(2754).notEmptyKey;function o(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(r).getEntityAt(i-1))!==e.getBlockForKey(r).getEntityAt(i)?null:o(e.getEntityMap(),n):null}var a=t.getStartKey(),c=t.getStartOffset(),u=e.getBlockForKey(a);return n=c===u.getLength()?null:u.getEntityAt(c),o(e.getEntityMap(),n)}},1072:function(e,t,n){"use strict";var r=n(6604);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},4760:function(e,t,n){"use strict";var r=n(421);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},5317:function(e){"use strict";e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},3698:function(e,t,n){"use strict";var r=n(8200);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var c=t[1];n=c.top,o=c.right,i=c.bottom,a=c.left}else{var u=t[0];n=u.top,o=u.right,i=u.bottom,a=u.left}for(var l=1;l3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||c(!1);var i=e.getBlockMap(),l=u(n),f=t.getStartKey(),p=t.getStartOffset(),d=i.get(f);return d instanceof o&&(d.getChildKeys().isEmpty()||c(!1)),1===l.size?function(e,t,n,r,o,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",u=n.get(o),l=u.getText(),s=u.getCharacterList(),f=o,p=i+r.getText().length,d=null;switch(c){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(u.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var h=u.getType();l&&"unstyled"===h&&(h=r.getType());var y=u.merge({text:l.slice(0,i)+r.getText()+l.slice(i),characterList:a(s,r.getCharacterList(),i),type:h,data:d});return e.merge({blockMap:n.set(o,y),selectionBefore:t,selectionAfter:t.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})}(e,t,i,l.first(),f,p,r):s(e,t,i,l,f,p)}},3919:function(e){"use strict";e.exports=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r}},479:function(e,t,n){"use strict";var r=n(3323),o=n(3919),i=n(3402),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1);var c=null;if(null!=n&&(c=n.length),null==c||0===c)return e;var u=e.getBlockMap(),l=t.getStartKey(),s=t.getStartOffset(),f=u.get(l),p=f.getText(),d=f.merge({text:p.slice(0,s)+n+p.slice(s,f.getLength()),characterList:o(f.getCharacterList(),a(r,c).toList(),s)}),h=s+c;return e.merge({blockMap:u.set(l,d),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},546:function(e){"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},2964:function(e){"use strict";e.exports=function(e){return"handled"===e||!0===e}},197:function(e,t,n){"use strict";var r=n(546);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"A"===e.nodeName)}},5876:function(e,t,n){"use strict";var r=n(546);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"BR"===e.nodeName)}},170:function(e){"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},2529:function(e,t,n){"use strict";var r=n(546);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"IMG"===e.nodeName)}},7751:function(e){"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},7843:function(e){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):oi){var u=r.getKeyBefore(o);if(null==u)a=o;else a=u,c=r.getBlockForKey(u).getText().length}else c=i-t;return n.merge({focusKey:a,focusOffset:c,isBackward:!0})}},6900:function(e,t,n){"use strict";n(7694);e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),c=o;return t>a.getBlockForKey(o).getText().length-i?(c=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:c,focusOffset:n})}},1303:function(e,t,n){"use strict";var r=n(421),o=n(2453),i=n(3323).OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t,n={};return i(e.withMutations((function(e){e.forEach((function(r,i){var a=r.getKey(),c=r.getNextSiblingKey(),u=r.getPrevSiblingKey(),l=r.getChildKeys(),s=r.getParentKey(),f=o();if(n[a]=f,c&&(e.get(c)?e.setIn([c,"prevSibling"],f):e.setIn([a,"nextSibling"],null)),u&&(e.get(u)?e.setIn([u,"nextSibling"],f):e.setIn([a,"prevSibling"],null)),s&&e.get(s)){var p=e.get(s).getChildKeys();e.setIn([s,"children"],p.set(p.indexOf(r.getKey()),f))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],f),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a);l.forEach((function(t){e.get(t)?e.setIn([t,"parent"],f):e.setIn([a,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return i(e.toArray().map((function(e){var t=o();return[t,e.set("key",t)]})))}(e)}},5049:function(e,t,n){"use strict";var r=n(7294),o=n(8424),i=n(3402);function a(e,t,n){var a=t.getCharacterList(),c=n>0?a.get(n-1):void 0,u=n=n&&(r={start:e,end:t})})),"object"!==typeof r&&i(!1),r}(a,s,n),d=p.start,h=p.end;dt;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var n,i=e.getBlockMap(),c=t.getStartKey(),l=t.getStartOffset(),s=t.getEndKey(),d=t.getEndOffset(),h=i.get(c),y=i.get(s),g=h instanceof r,m=[];if(g){var v=y.getChildKeys(),b=u(s,i);y.getNextSiblingKey()&&(m=m.concat(b)),v.isEmpty()||(m=m.concat(b.concat([s]))),m=m.concat(u(o(y,i),i))}n=h===y?p(h.getCharacterList(),l,d):h.getCharacterList().slice(0,l).concat(y.getCharacterList().slice(d));var w=h.merge({text:h.getText().slice(0,l)+y.getText().slice(d),characterList:n}),S=g&&0===l&&0===d&&y.getParentKey()===c&&null==y.getPrevSiblingKey()?a([[c,null]]):i.toSeq().skipUntil((function(e,t){return t===c})).takeUntil((function(e,t){return t===s})).filter((function(e,t){return-1===m.indexOf(t)})).concat(a([[s,null]])).map((function(e,t){return t===c?w:null})),k=i.merge(S).filter((function(e){return!!e}));return g&&h!==y&&(k=f(k,h,y,i)),e.merge({blockMap:k,selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:l,focusKey:c,focusOffset:l,isBackward:!1})})}},9954:function(e,t,n){"use strict";var r=n(4230),o=n(330)("draft_tree_data_support");e.exports=function(e,t,n){var i=e.getSelection(),a=e.getCurrentContent(),c=i,u=i.getAnchorKey(),l=i.getFocusKey(),s=a.getBlockForKey(u);if(o&&"forward"===n&&u!==l)return a;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return a;if(o)if(i.getAnchorOffset()===a.getBlockForKey(u).getLength()){var f=a.getBlockForKey(s.nextSibling);if(!f||0===f.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((c=t(e))===i)return a}return r.removeRange(a,c,n)}},327:function(e){"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},6849:function(e,t,n){"use strict";var r=n(4792),o=n(4275),i=n(7515),a=n(8420),c=n(8069),u=n(2206),l=n(3402),s=n(546),f=i.isBrowser("IE");function p(e,t){if(!e)return"[empty]";var n=d(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(s(n)||l(!1),n.outerHTML)}function d(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return u(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;ay(t)&&o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var u=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(s){throw o.logSelectionStateFailure({anonymizedDom:h(t,(function(t){var n=[];return t===i&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:u,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:s?""+s:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),s}}else if(t&&e.rangeCount>0){var l=e.getRangeAt(0);l.setEnd(t,n),e.addRange(l.cloneRange())}}function m(e,t,n,i){var a=u(t).createRange();if(n>y(t)&&(o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),f)try{e.addRange(a)}catch(c){0}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var i=u(t);if(a(i.documentElement,t)){var c=i.defaultView.getSelection(),l=e.getAnchorKey(),s=e.getAnchorOffset(),f=e.getFocusKey(),p=e.getFocusOffset(),d=e.getIsBackward();if(!c.extend&&d){var h=l,y=s;l=f,s=p,f=h,p=y,d=!1}var v=l===n&&r<=s&&o>=s,b=f===n&&r<=p&&o>=p;if(v&&b)return c.removeAllRanges(),m(c,t,s-r,e),void g(c,t,p-r,e);if(d){if(b&&(c.removeAllRanges(),m(c,t,p-r,e)),v){var w=c.focusNode,S=c.focusOffset;c.removeAllRanges(),m(c,t,s-r,e),g(c,w,S,e)}}else v&&(c.removeAllRanges(),m(c,t,s-r,e)),b&&g(c,t,p-r,e)}},addFocusToSelection:g}},5201:function(e,t,n){"use strict";var r=n(421),o=n(2453),i=n(3323),a=n(3402),c=n(7304),u=i.List,l=i.Map,s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),i=e.getBlockMap(),f=i.get(n),p=f.getText();if(!p){var d=f.getType();if("unordered-list-item"===d||"ordered-list-item"===d)return c(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),y=f.getCharacterList(),g=o(),m=f instanceof r,v=f.merge({text:p.slice(0,h),characterList:y.slice(0,h)}),b=v.merge({key:g,text:p.slice(h),characterList:y.slice(h),data:l()}),w=i.toSeq().takeUntil((function(e){return e===f})),S=i.toSeq().skipUntil((function(e){return e===f})).rest(),k=w.concat([[n,v],[g,b]],S).toOrderedMap();return m&&(f.getChildKeys().isEmpty()||a(!1),k=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();s(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:u(i)})})),s(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),s(r,e,(function(e){return e.merge({nextSibling:o})})),s(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(k,v,b)),e.merge({blockMap:k,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},6930:function(e){"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},3467:function(e){"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},7530:function(e,t,n){"use strict";var r=n(8626),o=n(8289),i=n(1164),a=new RegExp("\r\n","g"),c={"text/rtf":1,"text/html":1};function u(e){if("file"==e.kind)return e.getAsFile()}var l=function(){function e(e){this.data=e,this.types=e.types?o(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return c[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=l},8709:function(e){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},8626:function(e){"use strict";var t={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var r=n(e);return t.isImage(e)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(e){return e.split("/")}e.exports=t},2772:function(e){"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n={getTop:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollTop||n.documentElement.scrollTop:e.scrollTop},setTop:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollTop=r.documentElement.scrollTop=n:e.scrollTop=n},getLeft:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollLeft||n.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:e.scrollLeft=n}};e.exports=n},3741:function(e,t,n){"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(4816),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},3570:function(e){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;\u30fb\u3001\u3002\u3008-\u3011\u3014-\u301f\uff1a-\uff1f\uff01-\uff0f\uff3b-\uff40\uff5b-\uff65\u2e2e\u061f\u066a-\u066c\u061b\u060c\u060d\ufd3e\ufd3f\u1801\u0964\u104a\u104b\u2010-\u2027\u2030-\u205e\xa1-\xb1\xb4-\xb8\xba\xbb\xbf]"}}},7621:function(e){"use strict";var t=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},2549:function(e,t,n){"use strict";var r=n(820),o=n(3402),i="\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05cf\u05d0-\u05ea\u05eb-\u05ef\u05f0-\u05f2\u05f3-\u05f4\u05f5-\u05ff\u07c0-\u07c9\u07ca-\u07ea\u07f4-\u07f5\u07fa\u07fb-\u07ff\u0800-\u0815\u081a\u0824\u0828\u082e-\u082f\u0830-\u083e\u083f\u0840-\u0858\u085c-\u085d\u085e\u085f-\u089f\u200f\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb37\ufb38-\ufb3c\ufb3d\ufb3e\ufb3f\ufb40-\ufb41\ufb42\ufb43-\ufb44\ufb45\ufb46-\ufb4f",a="\u0608\u060b\u060d\u061b\u061c\u061d\u061e-\u061f\u0620-\u063f\u0640\u0641-\u064a\u066d\u066e-\u066f\u0671-\u06d3\u06d4\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06fd-\u06fe\u06ff\u0700-\u070d\u070e\u070f\u0710\u0712-\u072f\u074b-\u074c\u074d-\u07a5\u07b1\u07b2-\u07bf\u08a0-\u08b2\u08b3-\u08e3\ufb50-\ufbb1\ufbb2-\ufbc1\ufbc2-\ufbd2\ufbd3-\ufd3d\ufd40-\ufd4f\ufd50-\ufd8f\ufd90-\ufd91\ufd92-\ufdc7\ufdc8-\ufdcf\ufdf0-\ufdfb\ufdfc\ufdfe-\ufdff\ufe70-\ufe74\ufe75\ufe76-\ufefc\ufefd-\ufefe",c=new RegExp("["+"A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u01ba\u01bb\u01bc-\u01bf\u01c0-\u01c3\u01c4-\u0293\u0294\u0295-\u02af\u02b0-\u02b8\u02bb-\u02c1\u02d0-\u02d1\u02e0-\u02e4\u02ee\u0370-\u0373\u0376-\u0377\u037a\u037b-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0482\u048a-\u052f\u0531-\u0556\u0559\u055a-\u055f\u0561-\u0587\u0589\u0903\u0904-\u0939\u093b\u093d\u093e-\u0940\u0949-\u094c\u094e-\u094f\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096f\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09be-\u09c0\u09c7-\u09c8\u09cb-\u09cc\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e1\u09e6-\u09ef\u09f0-\u09f1\u09f4-\u09f9\u09fa\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3e-\u0a40\u0a59-\u0a5c\u0a5e\u0a66-\u0a6f\u0a72-\u0a74\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0abe-\u0ac0\u0ac9\u0acb-\u0acc\u0ad0\u0ae0-\u0ae1\u0ae6-\u0aef\u0af0\u0b02-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b3e\u0b40\u0b47-\u0b48\u0b4b-\u0b4c\u0b57\u0b5c-\u0b5d\u0b5f-\u0b61\u0b66-\u0b6f\u0b70\u0b71\u0b72-\u0b77\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bbf\u0bc1-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0be6-\u0bef\u0bf0-\u0bf2\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c41-\u0c44\u0c58-\u0c59\u0c60-\u0c61\u0c66-\u0c6f\u0c7f\u0c82-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cbe\u0cbf\u0cc0-\u0cc4\u0cc6\u0cc7-\u0cc8\u0cca-\u0ccb\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce1\u0ce6-\u0cef\u0cf1-\u0cf2\u0d02-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d57\u0d60-\u0d61\u0d66-\u0d6f\u0d70-\u0d75\u0d79\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd1\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0df4\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e45\u0e46\u0e4f\u0e50-\u0e59\u0e5a-\u0e5b\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f01-\u0f03\u0f04-\u0f12\u0f13\u0f14\u0f15-\u0f17\u0f1a-\u0f1f\u0f20-\u0f29\u0f2a-\u0f33\u0f34\u0f36\u0f38\u0f3e-\u0f3f\u0f40-\u0f47\u0f49-\u0f6c\u0f7f\u0f85\u0f88-\u0f8c\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce-\u0fcf\u0fd0-\u0fd4\u0fd5-\u0fd8\u0fd9-\u0fda\u1000-\u102a\u102b-\u102c\u1031\u1038\u103b-\u103c\u103f\u1040-\u1049\u104a-\u104f\u1050-\u1055\u1056-\u1057\u105a-\u105d\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106d\u106e-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108c\u108e\u108f\u1090-\u1099\u109a-\u109c\u109e-\u109f\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fb\u10fc\u10fd-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1360-\u1368\u1369-\u137c\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166d-\u166e\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16eb-\u16ed\u16ee-\u16f0\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17b6\u17be-\u17c5\u17c7-\u17c8\u17d4-\u17d6\u17d7\u17d8-\u17da\u17dc\u17e0-\u17e9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1923-\u1926\u1929-\u192b\u1930-\u1931\u1933-\u1938\u1946-\u194f\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c0\u19c1-\u19c7\u19c8-\u19c9\u19d0-\u19d9\u19da\u1a00-\u1a16\u1a19-\u1a1a\u1a1e-\u1a1f\u1a20-\u1a54\u1a55\u1a57\u1a61\u1a63-\u1a64\u1a6d-\u1a72\u1a80-\u1a89\u1a90-\u1a99\u1aa0-\u1aa6\u1aa7\u1aa8-\u1aad\u1b04\u1b05-\u1b33\u1b35\u1b3b\u1b3d-\u1b41\u1b43-\u1b44\u1b45-\u1b4b\u1b50-\u1b59\u1b5a-\u1b60\u1b61-\u1b6a\u1b74-\u1b7c\u1b82\u1b83-\u1ba0\u1ba1\u1ba6-\u1ba7\u1baa\u1bae-\u1baf\u1bb0-\u1bb9\u1bba-\u1be5\u1be7\u1bea-\u1bec\u1bee\u1bf2-\u1bf3\u1bfc-\u1bff\u1c00-\u1c23\u1c24-\u1c2b\u1c34-\u1c35\u1c3b-\u1c3f\u1c40-\u1c49\u1c4d-\u1c4f\u1c50-\u1c59\u1c5a-\u1c77\u1c78-\u1c7d\u1c7e-\u1c7f\u1cc0-\u1cc7\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf1\u1cf2-\u1cf3\u1cf5-\u1cf6\u1d00-\u1d2b\u1d2c-\u1d6a\u1d6b-\u1d77\u1d78\u1d79-\u1d9a\u1d9b-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u200e\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2134\u2135-\u2138\u2139\u213c-\u213f\u2145-\u2149\u214e\u214f\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237a\u2395\u249c-\u24e9\u26ac\u2800-\u28ff\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2c7b\u2c7c-\u2c7d\u2c7e-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d70\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005\u3006\u3007\u3021-\u3029\u302e-\u302f\u3031-\u3035\u3038-\u303a\u303b\u303c\u3041-\u3096\u309d-\u309e\u309f\u30a1-\u30fa\u30fc-\u30fe\u30ff\u3105-\u312d\u3131-\u318e\u3190-\u3191\u3192-\u3195\u3196-\u319f\u31a0-\u31ba\u31f0-\u31ff\u3200-\u321c\u3220-\u3229\u322a-\u3247\u3248-\u324f\u3260-\u327b\u327f\u3280-\u3289\u328a-\u32b0\u32c0-\u32cb\u32d0-\u32fe\u3300-\u3376\u337b-\u33dd\u33e0-\u33fe\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua014\ua015\ua016-\ua48c\ua4d0-\ua4f7\ua4f8-\ua4fd\ua4fe-\ua4ff\ua500-\ua60b\ua60c\ua610-\ua61f\ua620-\ua629\ua62a-\ua62b\ua640-\ua66d\ua66e\ua680-\ua69b\ua69c-\ua69d\ua6a0-\ua6e5\ua6e6-\ua6ef\ua6f2-\ua6f7\ua722-\ua76f\ua770\ua771-\ua787\ua789-\ua78a\ua78b-\ua78e\ua790-\ua7ad\ua7b0-\ua7b1\ua7f7\ua7f8-\ua7f9\ua7fa\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua823-\ua824\ua827\ua830-\ua835\ua836-\ua837\ua840-\ua873\ua880-\ua881\ua882-\ua8b3\ua8b4-\ua8c3\ua8ce-\ua8cf\ua8d0-\ua8d9\ua8f2-\ua8f7\ua8f8-\ua8fa\ua8fb\ua900-\ua909\ua90a-\ua925\ua92e-\ua92f\ua930-\ua946\ua952-\ua953\ua95f\ua960-\ua97c\ua983\ua984-\ua9b2\ua9b4-\ua9b5\ua9ba-\ua9bb\ua9bd-\ua9c0\ua9c1-\ua9cd\ua9cf\ua9d0-\ua9d9\ua9de-\ua9df\ua9e0-\ua9e4\ua9e6\ua9e7-\ua9ef\ua9f0-\ua9f9\ua9fa-\ua9fe\uaa00-\uaa28\uaa2f-\uaa30\uaa33-\uaa34\uaa40-\uaa42\uaa44-\uaa4b\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f\uaa60-\uaa6f\uaa70\uaa71-\uaa76\uaa77-\uaa79\uaa7a\uaa7b\uaa7d\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadc\uaadd\uaade-\uaadf\uaae0-\uaaea\uaaeb\uaaee-\uaaef\uaaf0-\uaaf1\uaaf2\uaaf3-\uaaf4\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5b\uab5c-\uab5f\uab64-\uab65\uabc0-\uabe2\uabe3-\uabe4\uabe6-\uabe7\uabe9-\uabea\uabeb\uabec\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ue000-\uf8ff\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\uff21-\uff3a\uff41-\uff5a\uff66-\uff6f\uff70\uff71-\uff9d\uff9e-\uff9f\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"+i+a+"]"),u=new RegExp("["+i+a+"]");function l(e){var t=c.exec(e);return null==t?null:t[0]}function s(e){var t=l(e);return null==t?r.NEUTRAL:u.exec(t)?r.RTL:r.LTR}function f(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=s(e);return n===r.NEUTRAL?t:n}function p(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),f(e,t)}var d={firstStrongChar:l,firstStrongCharDir:s,resolveBlockDir:f,getDirection:p,isDirectionLTR:function(e,t){return p(e,t)===r.LTR},isDirectionRTL:function(e,t){return p(e,t)===r.RTL}};e.exports=d},820:function(e,t,n){"use strict";var r=n(3402),o="LTR",i="RTL",a=null;function c(e){return e===o||e===i}function u(e){return c(e)||r(!1),e===o?"ltr":"rtl"}function l(e){a=e}var s={NEUTRAL:"NEUTRAL",LTR:o,RTL:i,isStrong:c,getHTMLDir:u,getHTMLDirIfDifferent:function(e,t){return c(e)||r(!1),c(t)||r(!1),e===t?null:u(e)},setGlobalDir:l,initGlobalDir:function(){l(o)},getGlobalDir:function(){return a||this.initGlobalDir(),a||r(!1),a}};e.exports=s},3001:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(2549),i=n(820),a=n(3402),c=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=c},6241:function(e,t,n){"use strict";var r=n(3402),o=55296,i=57343,a=/[\uD800-\uDFFF]/;function c(e){return o<=e&&e<=i}function u(e){return a.test(e)}function l(e,t){return 1+c(e.charCodeAt(t))}function s(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!u(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o=r)return""}else if(t<0){for(o=r;t<0&&00&&i=|~>|~|>|)?\s*(.+)/,u=/^(\d*)(.*)/;function l(e,t){var n=e.split(i);return n.length>1?n.some((function(e){return w.contains(e,t)})):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return s(n[0],t);var o=n[0],i=n[1];return y(o)&&y(i)||r(!1),s(">="+o,t)&&s("<="+i,t)}(e=n[0].trim(),t)}function s(e,t){if(""===(e=e.trim()))return!0;var n=t.split(o),r=d(e),i=r.modifier,a=r.rangeComponents;switch(i){case"<":return f(n,a);case"<=":return function(e,t){var n=b(e,t);return-1===n||0===n}(n,a);case">=":return p(n,a);case">":return 1===b(n,a);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);h(i)&&(r[o]=i+1+"");return p(e,n)&&f(e,r)}(n,a);default:return function(e,t){return 0===b(e,t)}(n,a)}}function f(e,t){return-1===b(e,t)}function p(e,t){var n=b(e,t);return 1===n||0===n}function d(e){var t=e.split(o),n=t[0].match(c);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function h(e){return!isNaN(e)&&isFinite(e)}function y(e){return!d(e).modifier}function g(e,t){for(var n=e.length;nt?1:e-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},1837:function(e,t,n){"use strict";var r=n(3791);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},3791:function(e,t,n){"use strict";var r=n(8420);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},1420:function(e,t,n){"use strict";var r=n(1526),o=n(1651);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,c=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,c)),n}},4816:function(e,t,n){"use strict";var r=n(2910),o=n(3163);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},1651:function(e){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},449:function(e){"use strict";function t(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function n(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function r(){return{width:window.innerWidth||t(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:t(),height:n()}},e.exports=r},3163:function(e){"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},3402:function(e){"use strict";var t=function(e){};e.exports=function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i1)for(var r=1;r>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?O(e)+t:t}function M(){return!0}function j(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return A(e,t,0)}function D(e,t){return A(e,t,t)}function A(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var L=0,N=1,P=2,I="function"===typeof Symbol&&Symbol.iterator,R="@@iterator",z=I||R;function U(e){this.next=e}function B(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function F(){return{value:void 0,done:!0}}function H(e){return!!q(e)}function K(e){return e&&"function"===typeof e.next}function W(e){var t=q(e);return t&&t.call(e)}function q(e){var t=e&&(I&&e[I]||e[R]);if("function"===typeof t)return t}function Y(e){return e&&"number"===typeof e.length}function V(e){return null===e||void 0===e?ae():a(e)?e.toSeq():le(e)}function Q(e){return null===e||void 0===e?ae().toKeyedSeq():a(e)?c(e)?e.toSeq():e.fromEntrySeq():ce(e)}function G(e){return null===e||void 0===e?ae():a(e)?c(e)?e.entrySeq():e.toIndexedSeq():ue(e)}function $(e){return(null===e||void 0===e?ae():a(e)?c(e)?e.entrySeq():e:ue(e)).toSetSeq()}U.prototype.toString=function(){return"[Iterator]"},U.KEYS=L,U.VALUES=N,U.ENTRIES=P,U.prototype.inspect=U.prototype.toSource=function(){return this.toString()},U.prototype[z]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},V.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(Q,V),Q.prototype.toKeyedSeq=function(){return this},t(G,V),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},G.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t($,V),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},V.isSeq=ie,V.Keyed=Q,V.Set=$,V.Indexed=G;var Z,X,J,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return Z||(Z=new te([]))}function ce(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():K(e)?new oe(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"===typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ue(e){var t=se(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function le(e){var t=se(e)||"object"===typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function se(e){return Y(e)?new te(e):K(e)?new oe(e):H(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var c=o[n?i-a:a];if(!1===t(c[1],r?c[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new U((function(){var e=o[n?i-a:a];return a++>i?F():B(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function de(e,t){return t?he(t,e,"",{"":e}):ye(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):ge(t)?e.call(r,n,Q(t).map((function(n,r){return he(e,n,r,t)}))):t}function ye(e){return Array.isArray(e)?G(e).map(ye).toList():ge(e)?Q(e).map(ye).toMap():e}function ge(e){return e&&(e.constructor===Object||void 0===e.constructor)}function me(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function ve(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||c(e)!==c(t)||u(e)!==u(t)||s(e)!==s(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(s(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&me(o[1],e)&&(n||me(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!me(t,e.get(r,b)):!me(e.get(r,b),t))return f=!1,!1}));return f&&e.size===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(X)return X;X=this}}function we(e,t){if(!e)throw new Error(t)}function Se(e,t,n){if(!(this instanceof Se))return new Se(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?F():B(e,o,n[t?r-o++:o++])}))},t(ne,Q),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new U((function(){var a=r[t?o-i:i];return i++>o?F():B(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=W(this._iterable),r=0;if(K(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=W(this._iterable);if(!K(n))return new U(F);var r=0;return new U((function(){var t=n.next();return t.done?t:B(e,r++,t.value)}))},t(oe,G),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return B(e,o,r[o++])}))},t(be,G),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return me(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:new be(this._value,D(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return me(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return me(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},Se.prototype.get=function(e,t){return this.has(e)?this._start+C(this,e)*this._step:t},Se.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?F():B(e,i++,a)}))},Se.prototype.equals=function(e){return e instanceof Se?this._start===e._start&&this._end===e._end&&this._step===e._step:ve(this,e)},t(ke,n),t(Ee,ke),t(xe,ke),t(_e,ke),ke.Keyed=Ee,ke.Indexed=xe,ke.Set=_e;var Oe="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ce(e){return e>>>1&1073741824|3221225471&e}function Me(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ce(n)}if("string"===t)return e.length>Ue?je(e):Te(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return De(e);if("function"===typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function je(e){var t=He[e];return void 0===t&&(t=Te(e),Fe===Be&&(Fe=0,He={}),Fe++,He[e]=t),t}function Te(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Pe,Ie="function"===typeof WeakMap;Ie&&(Pe=new WeakMap);var Re=0,ze="__immutablehash__";"function"===typeof Symbol&&(ze=Symbol(ze));var Ue=16,Be=255,Fe=0,He={};function Ke(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function We(e){return null===e||void 0===e?ot():qe(e)&&!s(e)?e:ot().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function qe(e){return!(!e||!e[Ve])}t(We,Ee),We.prototype.toString=function(){return this.__toString("Map {","}")},We.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},We.prototype.set=function(e,t){return it(this,e,t)},We.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},We.prototype.remove=function(e){return it(this,e,b)},We.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},We.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},We.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=gt(this,kn(e),t,n);return r===b?void 0:r},We.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},We.prototype.merge=function(){return pt(this,void 0,arguments)},We.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},We.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"===typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},We.prototype.mergeDeep=function(){return pt(this,dt,arguments)},We.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,ht(t),n)},We.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},We.prototype.sort=function(e){return Ht(fn(this,e))},We.prototype.sortBy=function(e,t){return Ht(fn(this,t,e))},We.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},We.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)},We.prototype.asImmutable=function(){return this.__ensureOwner()},We.prototype.wasAltered=function(){return this.__altered},We.prototype.__iterator=function(e,t){return new et(this,e,t)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},We.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},We.isMap=qe;var Ye,Ve="@@__IMMUTABLE_MAP__@@",Qe=We.prototype;function Ge(e,t){this.ownerID=e,this.entries=t}function $e(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ze(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return B(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Qe);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return Ye||(Ye=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=k(w),a=k(S);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ge(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,c){return e?e.update(t,n,r,o,i,a,c):i===b?e:(E(c),E(a),new Je(t,r,[o,i]))}function ct(e){return e.constructor===Je||e.constructor===Xe}function ut(e,t,n,r,o){if(e.keyHash===r)return new Xe(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&v,c=(0===n?r:r>>>n)&v;return new $e(t,1<>>=1)a[c]=1&n?t[i++]:void 0;return a[r]=o,new Ze(e,i+1,a)}function pt(e,t,n){for(var o=[],i=0;i>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function vt(e,t,n,r){var o=r?e:_(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,c=0;c=St)return lt(e,u,r,o);var p=e&&e===this.ownerID,d=p?u:_(u);return f?c?l===s-1?d.pop():d[l]=d.pop():d[l]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ge(e,d)}},$e.prototype.get=function(e,t,n,r){void 0===t&&(t=Me(n));var o=1<<((0===e?t:t>>>e)&v),i=this.bitmap;return 0===(i&o)?r:this.nodes[mt(i&o-1)].get(e+g,t,n,r)},$e.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Me(r));var c=(0===t?n:n>>>t)&v,u=1<=kt)return ft(e,p,l,c,h);if(s&&!h&&2===p.length&&ct(p[1^f]))return p[1^f];if(s&&h&&1===p.length&&ct(h))return h;var y=e&&e===this.ownerID,m=s?h?l:l^u:l|u,w=s?h?vt(p,f,h,y):wt(p,f,y):bt(p,f,h,y);return y?(this.bitmap=m,this.nodes=w,this):new $e(e,m,w)},Ze.prototype.get=function(e,t,n,r){void 0===t&&(t=Me(n));var o=(0===e?t:t>>>e)&v,i=this.nodes[o];return i?i.get(e+g,t,n,r):r},Ze.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Me(r));var c=(0===t?n:n>>>t)&v,u=o===b,l=this.nodes,s=l[c];if(u&&!s)return this;var f=at(s,e,t+g,n,r,o,i,a);if(f===s)return this;var p=this.count;if(s){if(!f&&--p0&&r=0&&e>>t&v;if(r>=this.array.length)return new Mt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-g,n))===a&&i)return this}if(i&&!o)return this;var c=Rt(this,e);if(!i)for(var u=0;u>>t&v;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-g,n))===i&&o===this.array.length-1)return this}var a=Rt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var jt,Tt,Dt={};function At(e,t){var n=e._origin,r=e._capacity,o=Ft(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?c(e,n):u(e,t,n)}function c(e,a){var c=a===o?i&&i.array:e&&e.array,u=a>n?0:n-a,l=r-a;return l>m&&(l=m),function(){if(u===l)return Dt;var e=t?--l:u++;return c&&c[e]}}function u(e,o,i){var c,u=e&&e.array,l=i>n?0:n-i>>o,s=1+(r-i>>o);return s>m&&(s=m),function(){for(;;){if(c){var e=c();if(e!==Dt)return e;c=null}if(l===s)return Dt;var n=t?--s:l++;c=a(u&&u[n],o-g,i+(n<=e.size||t<0)return e.withMutations((function(e){t<0?Ut(e,t).set(0,n):Ut(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=k(S);return t>=Ft(e._capacity)?r=It(r,e.__ownerID,0,t,n,i):o=It(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Lt(e._origin,e._capacity,e._level,o,r):e}function It(e,t,n,r,o,i){var a,c=r>>>n&v,u=e&&c0){var l=e&&e.array[c],s=It(l,t,n-g,r,o,i);return s===l?e:((a=Rt(e,t)).array[c]=s,a)}return u&&e.array[c]===o?e:(E(i),a=Rt(e,t),void 0===o&&c===a.array.length-1?a.array.pop():a.array[c]=o,a)}function Rt(e,t){return t&&e&&t===e.ownerID?e:new Mt(e?e.array.slice():[],t)}function zt(e,t){if(t>=Ft(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&v],r-=g;return n}}function Ut(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new x,o=e._origin,i=e._capacity,a=o+t,c=void 0===n?i:n<0?i+n:o+n;if(a===o&&c===i)return e;if(a>=c)return e.clear();for(var u=e._level,l=e._root,s=0;a+s<0;)l=new Mt(l&&l.array.length?[void 0,l]:[],r),s+=1<<(u+=g);s&&(a+=s,o+=s,c+=s,i+=s);for(var f=Ft(i),p=Ft(c);p>=1<f?new Mt([],r):d;if(d&&p>f&&ag;m-=g){var b=f>>>m&v;y=y.array[b]=Rt(y.array[b],r)}y.array[f>>>g&v]=d}if(c=p)a-=p,c-=p,u=g,l=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p>>u&v;if(w!==p>>>u&v)break;w&&(s+=(1<o&&(l=l.removeBefore(r,u,a-s)),l&&pi&&(i=l.size),a(u)||(l=l.map((function(e){return de(e)}))),r.push(l)}return i>e.size&&(e=e.setSize(i)),yt(e,t,r)}function Ft(e){return e>>g<=m&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=c===a.size-1?a.pop():a.set(c,void 0))}else if(u){if(n===a.get(c)[1])return e;r=i,o=a.set(c,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Wt(r,o)}function Vt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Qt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function $t(e){this._iter=e,this.size=e.size}function Zt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===P){var r=e.__iterator(t,n);return new U((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===N?L:N,n)},t}function Xt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(P,o);return new U((function(){var o=i.next();if(o.done)return o;var a=o.value,c=a[0];return B(r,c,t.call(n,a[1],c,e),o)}))},r}function Jt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Zt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,c=0;return e.__iterate((function(e,i,u){if(t.call(n,e,i,u))return c++,o(e,r?i:c-1,a)}),i),c},o.__iteratorUncached=function(o,i){var a=e.__iterator(P,i),c=0;return new U((function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],s=u[1];if(t.call(n,s,l,e))return B(o,r?l:c++,s,i)}}))},o}function tn(e,t,n){var r=We().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=c(e),o=(s(e)?Ht():We()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=vn(e);return o.map((function(t){return yn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),j(t,n,o))return e;var i=T(t,o),a=D(n,o);if(i!==i||a!==a)return rn(e.toSeq().cacheResult(),t,n,r);var c,u=a-i;u===u&&(c=u<0?0:u);var l=bn(e);return l.size=0===c?c:e.size&&c||void 0,!r&&ie(e)&&c>=0&&(l.get=function(t,n){return(t=C(this,t))>=0&&tc)return F();var e=o.next();return r||t===N?e:B(t,u-1,t===L?void 0:e.value[1],e)}))},l}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,c){return t.call(n,e,o,c)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(P,o),c=!0;return new U((function(){if(!c)return F();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===P?e:B(r,u,l,e):(c=!1,F())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var c=!0,u=0;return e.__iterate((function(e,i,l){if(!c||!(c=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)})),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var c=e.__iterator(P,i),u=!0,l=0;return new U((function(){var e,i,s;do{if((e=c.next()).done)return r||o===N?e:B(o,l++,o===L?void 0:e.value[1],e);var f=e.value;i=f[0],s=f[1],u&&(u=t.call(n,s,i,a))}while(u);return o===P?e:B(o,i,s,e)}))},o}function cn(e,t){var n=c(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?ce(e):ue(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&c(i)||u(e)&&u(i))return i}var l=new te(o);return n?l=l.toKeyedSeq():u(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function un(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,c=!1;function u(e,l){var s=this;e.__iterate((function(e,o){return(!t||l0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(N,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),W(o?e.reverse():e)})),a=0,c=!1;return new U((function(){var n;return c||(n=i.map((function(e){return e.next()})),c=n.some((function(e){return e.done}))),c?F():B(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function yn(e,t){return ie(e)?t:e.constructor(t)}function gn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function mn(e){return Ke(e.size),O(e)}function vn(e){return c(e)?r:u(e)?o:i}function bn(e){return Object.create((c(e)?Q:u(e)?G:$).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function Sn(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Qn(e,t)},Kn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ke(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Qn(t,n)},Kn.prototype.pop=function(){return this.slice(1)},Kn.prototype.unshift=function(){return this.push.apply(this,arguments)},Kn.prototype.unshiftAll=function(e){return this.pushAll(e)},Kn.prototype.shift=function(){return this.pop.apply(this,arguments)},Kn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Kn.prototype.slice=function(e,t){if(j(e,t,this.size))return this;var n=T(e,this.size);if(D(t,this.size)!==this.size)return xe.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Qn(r,o)},Kn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Qn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Kn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Kn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new U((function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return F()}))},Kn.isStack=Wn;var qn,Yn="@@__IMMUTABLE_STACK__@@",Vn=Kn.prototype;function Qn(e,t,n,r){var o=Object.create(Vn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return qn||(qn=Qn(0))}function $n(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Vn[Yn]=!0,Vn.withMutations=Qe.withMutations,Vn.asMutable=Qe.asMutable,Vn.asImmutable=Qe.asImmutable,Vn.wasAltered=Qe.wasAltered,n.Iterator=U,$n(n,{toArray:function(){Ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Qt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Vt(this,!0)},toMap:function(){return We(this.toKeyedSeq())},toObject:function(){Ke(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return Rn(c(this)?this.valueSeq():this)},toSet:function(){return jn(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return u(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Kn(c(this)?this.valueSeq():this)},toList:function(){return xt(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return yn(this,cn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return me(t,e)}))},entries:function(){return this.__iterator(P)},every:function(e,t){Ke(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return yn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ke(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""})),t},keys:function(){return this.__iterator(L)},map:function(e,t){return yn(this,Xt(this,e,t))},reduce:function(e,t,n){var r,o;return Ke(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return yn(this,Jt(this,!0))},slice:function(e,t){return yn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return yn(this,fn(this,e))},values:function(){return this.__iterator(N)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ve(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(M)},flatMap:function(e,t){return yn(this,ln(this,e,t))},flatten:function(e){return yn(this,un(this,e,!0))},fromEntrySeq:function(){return new $t(this)},get:function(e,t){return this.find((function(t,n){return me(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=kn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"===typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Jn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return yn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return yn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return yn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return yn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return yn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Zn=n.prototype;Zn[f]=!0,Zn[z]=Zn.values,Zn.__toJS=Zn.toArray,Zn.__toStringMapper=rr,Zn.inspect=Zn.toSource=function(){return this.toString()},Zn.chain=Zn.flatMap,Zn.contains=Zn.includes,function(){try{Object.defineProperty(Zn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),$n(r,{flip:function(){return yn(this,Zt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return me(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return me(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return yn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return yn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Xn=r.prototype;function Jn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"===typeof e?JSON.stringify(e):e}function or(){return _(arguments)}function ir(e,t){return et?-1:0}function ar(e){if(e.size===1/0)return 0;var t=s(e),n=c(e),r=t?1:0;return cr(e.__iterate(n?t?function(e,t){r=31*r+ur(Me(e),Me(t))|0}:function(e,t){r=r+ur(Me(e),Me(t))|0}:t?function(e){r=31*r+Me(e)|0}:function(e){r=r+Me(e)|0}),r)}function cr(e,t){return t=Oe(t,3432918353),t=Oe(t<<15|t>>>-15,461845907),t=Oe(t<<13|t>>>-13,5),t=Oe((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ce((t=Oe(t^t>>>13,3266489909))^t>>>16)}function ur(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Xn[p]=!0,Xn[z]=Zn.entries,Xn.__toJS=Zn.toObject,Xn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},$n(o,{toKeyedSeq:function(){return new Vt(this,!1)},filter:function(e,t){return yn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return yn(this,Jt(this,!1))},slice:function(e,t){return yn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return yn(this,1===n?r:r.concat(_(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return yn(this,un(this,e,!1))},get:function(e,t){return(e=C(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=C(this,e))>=0&&(void 0!==this.size?this.size===1/0||e>6,a[u++]=128|63&i):i<55296||i>=57344?(a[u++]=224|i>>12,a[u++]=128|i>>6&63,a[u++]=128|63&i):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++r)),a[u++]=240|i>>18,a[u++]=128|i>>12&63,a[u++]=128|i>>6&63,a[u++]=128|63&i);e=a}else{if("object"!==o)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var l=[],s=[];for(r=0;r<64;++r){var f=e[r]||0;l[r]=92^f,s[r]=54^f}Sha256.call(this,t,n),this.update(s),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,o,i=0,a=e.length,c=this.blocks;i>2]|=e[i]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(c[o>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=64?(this.block=c[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,o,i,a,c,u,l=this.h0,s=this.h1,f=this.h2,p=this.h3,d=this.h4,h=this.h5,y=this.h6,g=this.h7,m=this.blocks;for(e=16;e<64;++e)t=((o=m[e-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,n=((o=m[e-2])>>>17|o<<15)^(o>>>19|o<<13)^o>>>10,m[e]=m[e-16]+t+m[e-7]+n<<0;for(u=s&f,e=0;e<64;e+=4)this.first?(this.is224?(i=300032,g=(o=m[0]-1413257819)-150054599<<0,p=o+24177077<<0):(i=704751109,g=(o=m[0]-210244248)-1521486534<<0,p=o+143694565<<0),this.first=!1):(t=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),r=(i=l&s)^l&f^u,g=p+(o=g+(n=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&y)+K[e]+m[e])<<0,p=o+(t+r)<<0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(a=p&l)^p&s^i,y=f+(o=y+(n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&d^~g&h)+K[e+1]+m[e+1])<<0,t=((f=o+(t+r)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(c=f&p)^f&l^a,h=s+(o=h+(n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&g^~y&d)+K[e+2]+m[e+2])<<0,t=((s=o+(t+r)<<0)>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10),r=(u=s&f)^s&p^c,d=l+(o=d+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&y^~h&g)+K[e+3]+m[e+3])<<0,l=o+(t+r)<<0;this.h0=this.h0+l<<0,this.h1=this.h1+s<<0,this.h2=this.h2+f<<0,this.h3=this.h3+p<<0,this.h4=this.h4+d<<0,this.h5=this.h5+h<<0,this.h6=this.h6+y<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4,i=this.h5,a=this.h6,c=this.h7,u=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(u+=HEX_CHARS[c>>28&15]+HEX_CHARS[c>>24&15]+HEX_CHARS[c>>20&15]+HEX_CHARS[c>>16&15]+HEX_CHARS[c>>12&15]+HEX_CHARS[c>>8&15]+HEX_CHARS[c>>4&15]+HEX_CHARS[15&c]),u},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4,i=this.h5,a=this.h6,c=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,i>>24&255,i>>16&255,i>>8&255,255&i,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||u.push(c>>24&255,c>>16&255,c>>8&255,255&c),u},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},9073:function(e,t,n){window,e.exports=function(e,t){if("undefined"===typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");var n=!1;function r(){n||(n=!0,console.warn("[KEYCLOAK] Usage of legacy style promise methods such as `.error()` and `.success()` has been deprecated and support will be removed in future versions. Use standard style promise methods such as `.then() and `.catch()` instead."))}function o(e){return e.__proto__=i.prototype,e}function i(e){return o(new Promise(e))}function a(n){if(!(this instanceof a))return new a(n);for(var r,o,c=this,u=[],l={enable:!0,callbackList:[],interval:5},s=document.getElementsByTagName("script"),f=0;f=0;--n){var r=t[n];"error"==e.data?r.setError():r.setSuccess("unchanged"==e.data)}}};return window.addEventListener("message",r,!1),e.promise}function A(){l.enable&&c.token&&setTimeout((function(){L().then((function(e){e&&A()}))}),1e3*l.interval)}function L(){var e=T();if(l.iframe&&l.iframeOrigin){var t=c.clientId+" "+(c.sessionId?c.sessionId:"");l.callbackList.push(e);var n=l.iframeOrigin;1==l.callbackList.length&&l.iframe.contentWindow.postMessage(t,n)}else e.setSuccess();return e.promise}function N(e){if(!e||"default"==e)return{login:function(e){return window.location.replace(c.createLoginUrl(e)),T().promise},logout:function(e){return window.location.replace(c.createLogoutUrl(e)),T().promise},register:function(e){return window.location.replace(c.createRegisterUrl(e)),T().promise},accountManagement:function(){var e=c.createAccountUrl();if("undefined"===typeof e)throw"Not supported by the OIDC server";return window.location.href=e,T().promise},redirectUri:function(e,t){return 1==arguments.length&&(t=!0),e&&e.redirectUri?e.redirectUri:c.redirectUri?c.redirectUri:location.href}};if("cordova"==e){l.enable=!1;var t=function(e,t,n){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,t,n):window.open(e,t,n)},n=function(e){return e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce((function(t,n){return t[n]=e.cordovaOptions[n],t}),{}):{}},r=function(e){return Object.keys(e).reduce((function(t,n){return t.push(n+"="+e[n]),t}),[]).join(",")},o=function(e){var t=n(e);return t.location="no",e&&"none"==e.prompt&&(t.hidden="yes"),r(t)};return{login:function(e){var n=T(),r=o(e),i=c.createLoginUrl(e),a=t(i,"_blank",r),u=!1,l=!1,s=function(){l=!0,a.close()};return a.addEventListener("loadstart",(function(e){0==e.url.indexOf("http://localhost")&&(S(C(e.url),n),s(),u=!0)})),a.addEventListener("loaderror",(function(e){u||(0==e.url.indexOf("http://localhost")?(S(C(e.url),n),s(),u=!0):(n.setError(),s()))})),a.addEventListener("exit",(function(e){l||n.setError({reason:"closed_by_user"})})),n.promise},logout:function(e){var n,r=T(),o=c.createLogoutUrl(e),i=t(o,"_blank","location=no,hidden=yes");return i.addEventListener("loadstart",(function(e){0==e.url.indexOf("http://localhost")&&i.close()})),i.addEventListener("loaderror",(function(e){0==e.url.indexOf("http://localhost")||(n=!0),i.close()})),i.addEventListener("exit",(function(e){n?r.setError():(c.clearToken(),r.setSuccess())})),r.promise},register:function(e){var n=T(),r=c.createRegisterUrl(),i=o(e),a=t(r,"_blank",i);return a.addEventListener("loadstart",(function(e){0==e.url.indexOf("http://localhost")&&(a.close(),S(C(e.url),n))})),n.promise},accountManagement:function(){var e=c.createAccountUrl();if("undefined"===typeof e)throw"Not supported by the OIDC server";var n=t(e,"_blank","location=no");n.addEventListener("loadstart",(function(e){0==e.url.indexOf("http://localhost")&&n.close()}))},redirectUri:function(e){return"http://localhost"}}}if("cordova-native"==e)return l.enable=!1,{login:function(e){var t=T(),n=c.createLoginUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),S(C(e.url),t)})),window.cordova.plugins.browsertab.openUrl(n),t.promise},logout:function(e){var t=T(),n=c.createLogoutUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),c.clearToken(),t.setSuccess()})),window.cordova.plugins.browsertab.openUrl(n),t.promise},register:function(e){var t=T(),n=c.createRegisterUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),S(C(e.url),t)})),window.cordova.plugins.browsertab.openUrl(n),t.promise},accountManagement:function(){var e=c.createAccountUrl();if("undefined"===typeof e)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(e)},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:c.redirectUri?c.redirectUri:"http://localhost"}};throw"invalid adapter type: "+e}c.init=function(e){if(c.authenticated=!1,o=R(),r=e&&["default","cordova","cordova-native"].indexOf(e.adapter)>-1?N(e.adapter):e&&"object"===typeof e.adapter?e.adapter:window.Cordova||window.cordova?N("cordova"):N(),e){if("undefined"!==typeof e.useNonce&&(p=e.useNonce),"undefined"!==typeof e.checkLoginIframe&&(l.enable=e.checkLoginIframe),e.checkLoginIframeInterval&&(l.interval=e.checkLoginIframeInterval),"login-required"===e.onLoad&&(c.loginRequired=!0),e.responseMode){if("query"!==e.responseMode&&"fragment"!==e.responseMode)throw"Invalid value for responseMode";c.responseMode=e.responseMode}if(e.flow){switch(e.flow){case"standard":c.responseType="code";break;case"implicit":c.responseType="id_token token";break;case"hybrid":c.responseType="code id_token token";break;default:throw"Invalid value for flow"}c.flow=e.flow}if(null!=e.timeSkew&&(c.timeSkew=e.timeSkew),e.redirectUri&&(c.redirectUri=e.redirectUri),e.silentCheckSsoRedirectUri&&(c.silentCheckSsoRedirectUri=e.silentCheckSsoRedirectUri),e.pkceMethod){if("S256"!==e.pkceMethod)throw"Invalid value for pkceMethod";c.pkceMethod=e.pkceMethod}"boolean"===typeof e.enableLogging?c.enableLogging=e.enableLogging:c.enableLogging=!1}c.responseMode||(c.responseMode="fragment"),c.responseType||(c.responseType="code",c.flow="standard");var t=T(),i=T();i.promise.then((function(){c.onReady&&c.onReady(c.authenticated),t.setSuccess(c.authenticated)})).catch((function(e){t.setError(e)}));var a=k(n);function u(){var t=function(e){e||(r.prompt="none"),c.login(r).then((function(){i.setSuccess()})).catch((function(){i.setError()}))},n=function(){var e=document.createElement("iframe"),t=c.createLoginUrl({prompt:"none",redirectUri:c.silentCheckSsoRedirectUri});e.setAttribute("src",t),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);var n=function t(n){n.origin===window.location.origin&&e.contentWindow===n.source&&(S(C(n.data),i),document.body.removeChild(e),window.removeEventListener("message",t))};window.addEventListener("message",n)},r={};switch(e.onLoad){case"check-sso":l.enable?D().then((function(){L().then((function(e){e?i.setSuccess():c.silentCheckSsoRedirectUri?n():t(!1)})).catch((function(){i.setError()}))})):c.silentCheckSsoRedirectUri?n():t(!1);break;case"login-required":t(!0);break;default:throw"Invalid value for onLoad"}}function s(){var t=C(window.location.href);if(t&&window.history.replaceState(window.history.state,null,t.newUrl),t&&t.valid)return D().then((function(){S(t,i)})).catch((function(e){i.setError()}));e?e.token&&e.refreshToken?(x(e.token,e.refreshToken,e.idToken),l.enable?D().then((function(){L().then((function(e){e?(c.onAuthSuccess&&c.onAuthSuccess(),i.setSuccess(),A()):i.setSuccess()})).catch((function(){i.setError()}))})):c.updateToken(-1).then((function(){c.onAuthSuccess&&c.onAuthSuccess(),i.setSuccess()})).catch((function(){c.onAuthError&&c.onAuthError(),e.onLoad?u():i.setError()}))):e.onLoad?u():i.setSuccess():i.setSuccess()}return a.then(s),a.catch((function(){t.setError()})),t.promise},c.login=function(e){return r.login(e)},c.createLoginUrl=function(e){var t,n,i=O(),a=O(),u=r.redirectUri(e),l={state:i,nonce:a,redirectUri:encodeURIComponent(u)};e&&e.prompt&&(l.prompt=e.prompt),t=e&&"register"==e.action?c.endpoints.register():c.endpoints.authorize(),n=e&&e.scope?-1!=e.scope.indexOf("openid")?e.scope:"openid "+e.scope:"openid";var s=t+"?client_id="+encodeURIComponent(c.clientId)+"&redirect_uri="+encodeURIComponent(u)+"&state="+encodeURIComponent(i)+"&response_mode="+encodeURIComponent(c.responseMode)+"&response_type="+encodeURIComponent(c.responseType)+"&scope="+encodeURIComponent(n);if(p&&(s=s+"&nonce="+encodeURIComponent(a)),e&&e.prompt&&(s+="&prompt="+encodeURIComponent(e.prompt)),e&&e.maxAge&&(s+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(s+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(s+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.action&&"register"!=e.action&&(s+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(s+="&ui_locales="+encodeURIComponent(e.locale)),c.pkceMethod){var f=g(96);l.pkceCodeVerifier=f,s+="&code_challenge="+v(c.pkceMethod,f),s+="&code_challenge_method="+c.pkceMethod}return o.add(l),s},c.logout=function(e){return r.logout(e)},c.createLogoutUrl=function(e){return c.endpoints.logout()+"?redirect_uri="+encodeURIComponent(r.redirectUri(e,!1))},c.register=function(e){return r.register(e)},c.createRegisterUrl=function(e){return e||(e={}),e.action="register",c.createLoginUrl(e)},c.createAccountUrl=function(e){var t=b(),n=void 0;return"undefined"!==typeof t&&(n=t+"/account?referrer="+encodeURIComponent(c.clientId)+"&referrer_uri="+encodeURIComponent(r.redirectUri(e))),n},c.accountManagement=function(){return r.accountManagement()},c.hasRealmRole=function(e){var t=c.realmAccess;return!!t&&t.roles.indexOf(e)>=0},c.hasResourceRole=function(e,t){if(!c.resourceAccess)return!1;var n=c.resourceAccess[t||c.clientId];return!!n&&n.roles.indexOf(e)>=0},c.loadUserProfile=function(){var e=b()+"/account",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+c.token);var n=T();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(c.profile=JSON.parse(t.responseText),n.setSuccess(c.profile)):n.setError())},t.send(),n.promise},c.loadUserInfo=function(){var e=c.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+c.token);var n=T();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(c.userInfo=JSON.parse(t.responseText),n.setSuccess(c.userInfo)):n.setError())},t.send(),n.promise},c.isTokenExpired=function(e){if(!c.tokenParsed||!c.refreshToken&&"implicit"!=c.flow)throw"Not authenticated";if(null==c.timeSkew)return d("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=c.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+c.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";t-=e}return t<0},c.updateToken=function(e){var t=T();if(!c.refreshToken)return t.setError(),t.promise;e=e||5;var n=function(){var n=!1;if(-1==e?(n=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):c.tokenParsed&&!c.isTokenExpired(e)||(n=!0,d("[KEYCLOAK] Refreshing token: token expired")),n){var r="grant_type=refresh_token&refresh_token="+c.refreshToken,o=c.endpoints.token();if(u.push(t),1==u.length){var i=new XMLHttpRequest;i.open("POST",o,!0),i.setRequestHeader("Content-type","application/x-www-form-urlencoded"),i.withCredentials=!0,r+="&client_id="+encodeURIComponent(c.clientId);var a=(new Date).getTime();i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status){d("[KEYCLOAK] Token refreshed"),a=(a+(new Date).getTime())/2;var e=JSON.parse(i.responseText);x(e.access_token,e.refresh_token,e.id_token,a),c.onAuthRefreshSuccess&&c.onAuthRefreshSuccess();for(var t=u.pop();null!=t;t=u.pop())t.setSuccess(!0)}else for(h("[KEYCLOAK] Failed to refresh token"),400==i.status&&c.clearToken(),c.onAuthRefreshError&&c.onAuthRefreshError(),t=u.pop();null!=t;t=u.pop())t.setError(!0)},i.send(r)}}else t.setSuccess(!1)};return l.enable?L().then((function(){n()})).catch((function(){t.setError()})):n(),t.promise},c.clearToken=function(){c.token&&(x(null,null,null),c.onAuthLogout&&c.onAuthLogout(),c.loginRequired&&c.login())};var P=function e(){if(!(this instanceof e))return new e;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var t=this;function n(){for(var e=(new Date).getTime(),t=0;t0?a-4:a;for(n=0;n>16&255,l[s++]=t>>8&255,l[s++]=255&t;2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[s++]=255&t);1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[s++]=t>>8&255,l[s++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,c=0,l=r-o;cl?l:c+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var o,i,a=[],c=t;c>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},3127:function(e){function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function n(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,r,o){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"===typeof r&&(o=r,r={}),r=r||{},o=o||function(){},a.type=r.type||"text/javascript",a.charset=r.charset||"utf8",a.async=!("async"in r)||!!r.async,a.src=e,r.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(a,r.attrs),r.text&&(a.text=""+r.text),("onload"in a?t:n)(a,o),a.onload||t(a,o),i.appendChild(a)}},7155:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,a,c=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u1)for(var n=1;n