sykpcomposer 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +32854 -5068
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +117 -24
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/wave.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,58 +1,151 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(os,an){typeof exports=="object"&&typeof module<"u"?an(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],an):(os=typeof globalThis<"u"?globalThis:os||self,an(os.ViteButton={},os.React,os.ReactDOM))})(this,function(os,an,qc){"use strict";function gm(o){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const e=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(a,t,e.get?e:{enumerable:!0,get:()=>o[t]})}}return a.default=o,Object.freeze(a)}const bl=gm(an);function Wc(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var td={exports:{}},_l={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
5
|
-
*/var
|
|
5
|
+
*/var ed,ep;function Vc(){if(ep)return ed;ep=1;var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function e(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var r={},l=0;l<10;l++)r["_"+String.fromCharCode(l)]=l;var n=Object.getOwnPropertyNames(r).map(function(d){return r[d]});if(n.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ed=s()?Object.assign:function(i,r){for(var l,n=e(i),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var u in l)a.call(l,u)&&(n[u]=l[u]);if(o){c=o(l);for(var f=0;f<c.length;f++)t.call(l,c[f])&&(n[c[f]]=l[c[f]])}}return n},ed}/** @license React v17.0.2
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var
|
|
12
|
+
*/var np;function mm(){if(np)return _l;np=1,Vc();var o=an,a=60103;if(_l.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;a=t("react.element"),_l.Fragment=t("react.fragment")}var e=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function r(l,n,c){var d,u={},f=null,g=null;c!==void 0&&(f=""+c),n.key!==void 0&&(f=""+n.key),n.ref!==void 0&&(g=n.ref);for(d in n)s.call(n,d)&&!i.hasOwnProperty(d)&&(u[d]=n[d]);if(l&&l.defaultProps)for(d in n=l.defaultProps,n)u[d]===void 0&&(u[d]=n[d]);return{$$typeof:a,type:l,key:f,ref:g,props:u,_owner:e.current}}return _l.jsx=r,_l.jsxs=r,_l}var nd={};/** @license React v17.0.2
|
|
13
13
|
* react-jsx-runtime.development.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var
|
|
20
|
-
`+
|
|
21
|
-
`),
|
|
22
|
-
`),
|
|
23
|
-
`+
|
|
19
|
+
*/var rp;function ym(){return rp||(rp=1,function(o){process.env.NODE_ENV!=="production"&&function(){var a=an,t=Vc(),e=60103,s=60106;o.Fragment=60107;var i=60108,r=60114,l=60109,n=60110,c=60112,d=60113,u=60120,f=60115,g=60116,m=60121,h=60122,v=60117,b=60129,_=60131;if(typeof Symbol=="function"&&Symbol.for){var R=Symbol.for;e=R("react.element"),s=R("react.portal"),o.Fragment=R("react.fragment"),i=R("react.strict_mode"),r=R("react.profiler"),l=R("react.provider"),n=R("react.context"),c=R("react.forward_ref"),d=R("react.suspense"),u=R("react.suspense_list"),f=R("react.memo"),g=R("react.lazy"),m=R("react.block"),h=R("react.server.block"),v=R("react.fundamental"),R("react.scope"),R("react.opaque.id"),b=R("react.debug_trace_mode"),R("react.offscreen"),_=R("react.legacy_hidden")}var x=typeof Symbol=="function"&&Symbol.iterator,w="@@iterator";function O(kt){if(kt===null||typeof kt!="object")return null;var be=x&&kt[x]||kt[w];return typeof be=="function"?be:null}var I=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function L(kt){{for(var be=arguments.length,de=new Array(be>1?be-1:0),Ye=1;Ye<be;Ye++)de[Ye-1]=arguments[Ye];M("error",kt,de)}}function M(kt,be,de){{var Ye=I.ReactDebugCurrentFrame,cn=Ye.getStackAddendum();cn!==""&&(be+="%s",de=de.concat([cn]));var We=de.map(function(At){return""+At});We.unshift("Warning: "+be),Function.prototype.apply.call(console[kt],console,We)}}var A=!1;function k(kt){return!!(typeof kt=="string"||typeof kt=="function"||kt===o.Fragment||kt===r||kt===b||kt===i||kt===d||kt===u||kt===_||A||typeof kt=="object"&&kt!==null&&(kt.$$typeof===g||kt.$$typeof===f||kt.$$typeof===l||kt.$$typeof===n||kt.$$typeof===c||kt.$$typeof===v||kt.$$typeof===m||kt[0]===h))}function J(kt,be,de){var Ye=be.displayName||be.name||"";return kt.displayName||(Ye!==""?de+"("+Ye+")":de)}function G(kt){return kt.displayName||"Context"}function U(kt){if(kt==null)return null;if(typeof kt.tag=="number"&&L("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof kt=="function")return kt.displayName||kt.name||null;if(typeof kt=="string")return kt;switch(kt){case o.Fragment:return"Fragment";case s:return"Portal";case r:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if(typeof kt=="object")switch(kt.$$typeof){case n:var be=kt;return G(be)+".Consumer";case l:var de=kt;return G(de._context)+".Provider";case c:return J(kt,kt.render,"ForwardRef");case f:return U(kt.type);case m:return U(kt._render);case g:{var Ye=kt,cn=Ye._payload,We=Ye._init;try{return U(We(cn))}catch{return null}}}return null}var D=0,W,Q,E,B,$,C,N;function Y(){}Y.__reactDisabledLog=!0;function tt(){{if(D===0){W=console.log,Q=console.info,E=console.warn,B=console.error,$=console.group,C=console.groupCollapsed,N=console.groupEnd;var kt={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:kt,log:kt,warn:kt,error:kt,group:kt,groupCollapsed:kt,groupEnd:kt})}D++}}function F(){{if(D--,D===0){var kt={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},kt,{value:W}),info:t({},kt,{value:Q}),warn:t({},kt,{value:E}),error:t({},kt,{value:B}),group:t({},kt,{value:$}),groupCollapsed:t({},kt,{value:C}),groupEnd:t({},kt,{value:N})})}D<0&&L("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=I.ReactCurrentDispatcher,P;function j(kt,be,de){{if(P===void 0)try{throw Error()}catch(cn){var Ye=cn.stack.trim().match(/\n( *(at )?)/);P=Ye&&Ye[1]||""}return`
|
|
20
|
+
`+P+kt}}var V=!1,K;{var rt=typeof WeakMap=="function"?WeakMap:Map;K=new rt}function T(kt,be){if(!kt||V)return"";{var de=K.get(kt);if(de!==void 0)return de}var Ye;V=!0;var cn=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var We;We=z.current,z.current=null,tt();try{if(be){var At=function(){throw Error()};if(Object.defineProperty(At.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(At,[])}catch(Te){Ye=Te}Reflect.construct(kt,[],At)}else{try{At.call()}catch(Te){Ye=Te}kt.call(At.prototype)}}else{try{throw Error()}catch(Te){Ye=Te}kt()}}catch(Te){if(Te&&Ye&&typeof Te.stack=="string"){for(var Zt=Te.stack.split(`
|
|
21
|
+
`),xt=Ye.stack.split(`
|
|
22
|
+
`),Wt=Zt.length-1,re=xt.length-1;Wt>=1&&re>=0&&Zt[Wt]!==xt[re];)re--;for(;Wt>=1&&re>=0;Wt--,re--)if(Zt[Wt]!==xt[re]){if(Wt!==1||re!==1)do if(Wt--,re--,re<0||Zt[Wt]!==xt[re]){var je=`
|
|
23
|
+
`+Zt[Wt].replace(" at new "," at ");return typeof kt=="function"&&K.set(kt,je),je}while(Wt>=1&&re>=0);break}}}finally{V=!1,z.current=We,F(),Error.prepareStackTrace=cn}var Gt=kt?kt.displayName||kt.name:"",Ge=Gt?j(Gt):"";return typeof kt=="function"&&K.set(kt,Ge),Ge}function ot(kt,be,de){return T(kt,!1)}function at(kt){var be=kt.prototype;return!!(be&&be.isReactComponent)}function q(kt,be,de){if(kt==null)return"";if(typeof kt=="function")return T(kt,at(kt));if(typeof kt=="string")return j(kt);switch(kt){case d:return j("Suspense");case u:return j("SuspenseList")}if(typeof kt=="object")switch(kt.$$typeof){case c:return ot(kt.render);case f:return q(kt.type,be,de);case m:return ot(kt._render);case g:{var Ye=kt,cn=Ye._payload,We=Ye._init;try{return q(We(cn),be,de)}catch{}}}return""}var ht={},lt=I.ReactDebugCurrentFrame;function bt(kt){if(kt){var be=kt._owner,de=q(kt.type,kt._source,be?be.type:null);lt.setExtraStackFrame(de)}else lt.setExtraStackFrame(null)}function _t(kt,be,de,Ye,cn){{var We=Function.call.bind(Object.prototype.hasOwnProperty);for(var At in kt)if(We(kt,At)){var Zt=void 0;try{if(typeof kt[At]!="function"){var xt=Error((Ye||"React class")+": "+de+" type `"+At+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof kt[At]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xt.name="Invariant Violation",xt}Zt=kt[At](be,At,Ye,de,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Wt){Zt=Wt}Zt&&!(Zt instanceof Error)&&(bt(cn),L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ye||"React class",de,At,typeof Zt),bt(null)),Zt instanceof Error&&!(Zt.message in ht)&&(ht[Zt.message]=!0,bt(cn),L("Failed %s type: %s",de,Zt.message),bt(null))}}}var Dt=I.ReactCurrentOwner,Ft=Object.prototype.hasOwnProperty,Qt={key:!0,ref:!0,__self:!0,__source:!0},ue,ae,se;se={};function Ne(kt){if(Ft.call(kt,"ref")){var be=Object.getOwnPropertyDescriptor(kt,"ref").get;if(be&&be.isReactWarning)return!1}return kt.ref!==void 0}function ce(kt){if(Ft.call(kt,"key")){var be=Object.getOwnPropertyDescriptor(kt,"key").get;if(be&&be.isReactWarning)return!1}return kt.key!==void 0}function qt(kt,be){if(typeof kt.ref=="string"&&Dt.current&&be&&Dt.current.stateNode!==be){var de=U(Dt.current.type);se[de]||(L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',U(Dt.current.type),kt.ref),se[de]=!0)}}function Nt(kt,be){{var de=function(){ue||(ue=!0,L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",be))};de.isReactWarning=!0,Object.defineProperty(kt,"key",{get:de,configurable:!0})}}function It(kt,be){{var de=function(){ae||(ae=!0,L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",be))};de.isReactWarning=!0,Object.defineProperty(kt,"ref",{get:de,configurable:!0})}}var me=function(kt,be,de,Ye,cn,We,At){var Zt={$$typeof:e,type:kt,key:be,ref:de,props:At,_owner:We};return Zt._store={},Object.defineProperty(Zt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Zt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ye}),Object.defineProperty(Zt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:cn}),Object.freeze&&(Object.freeze(Zt.props),Object.freeze(Zt)),Zt};function Vt(kt,be,de,Ye,cn){{var We,At={},Zt=null,xt=null;de!==void 0&&(Zt=""+de),ce(be)&&(Zt=""+be.key),Ne(be)&&(xt=be.ref,qt(be,cn));for(We in be)Ft.call(be,We)&&!Qt.hasOwnProperty(We)&&(At[We]=be[We]);if(kt&&kt.defaultProps){var Wt=kt.defaultProps;for(We in Wt)At[We]===void 0&&(At[We]=Wt[We])}if(Zt||xt){var re=typeof kt=="function"?kt.displayName||kt.name||"Unknown":kt;Zt&&Nt(At,re),xt&&It(At,re)}return me(kt,Zt,xt,cn,Ye,Dt.current,At)}}var ge=I.ReactCurrentOwner,De=I.ReactDebugCurrentFrame;function _e(kt){if(kt){var be=kt._owner,de=q(kt.type,kt._source,be?be.type:null);De.setExtraStackFrame(de)}else De.setExtraStackFrame(null)}var Ht;Ht=!1;function yn(kt){return typeof kt=="object"&&kt!==null&&kt.$$typeof===e}function ee(){{if(ge.current){var kt=U(ge.current.type);if(kt)return`
|
|
24
24
|
|
|
25
|
-
Check the render method of \``+
|
|
25
|
+
Check the render method of \``+kt+"`."}return""}}function Qe(kt){{if(kt!==void 0){var be=kt.fileName.replace(/^.*[\\\/]/,""),de=kt.lineNumber;return`
|
|
26
26
|
|
|
27
|
-
Check your code at `+
|
|
27
|
+
Check your code at `+be+":"+de+"."}return""}}var on={};function wn(kt){{var be=ee();if(!be){var de=typeof kt=="string"?kt:kt.displayName||kt.name;de&&(be=`
|
|
28
28
|
|
|
29
|
-
Check the top-level render call using <`+
|
|
29
|
+
Check the top-level render call using <`+de+">.")}return be}}function Ve(kt,be){{if(!kt._store||kt._store.validated||kt.key!=null)return;kt._store.validated=!0;var de=wn(be);if(on[de])return;on[de]=!0;var Ye="";kt&&kt._owner&&kt._owner!==ge.current&&(Ye=" It was passed a child from "+U(kt._owner.type)+"."),_e(kt),L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',de,Ye),_e(null)}}function Ue(kt,be){{if(typeof kt!="object")return;if(Array.isArray(kt))for(var de=0;de<kt.length;de++){var Ye=kt[de];yn(Ye)&&Ve(Ye,be)}else if(yn(kt))kt._store&&(kt._store.validated=!0);else if(kt){var cn=O(kt);if(typeof cn=="function"&&cn!==kt.entries)for(var We=cn.call(kt),At;!(At=We.next()).done;)yn(At.value)&&Ve(At.value,be)}}}function Ze(kt){{var be=kt.type;if(be==null||typeof be=="string")return;var de;if(typeof be=="function")de=be.propTypes;else if(typeof be=="object"&&(be.$$typeof===c||be.$$typeof===f))de=be.propTypes;else return;if(de){var Ye=U(be);_t(de,kt.props,"prop",Ye,kt)}else if(be.PropTypes!==void 0&&!Ht){Ht=!0;var cn=U(be);L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",cn||"Unknown")}typeof be.getDefaultProps=="function"&&!be.getDefaultProps.isReactClassApproved&&L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gn(kt){{for(var be=Object.keys(kt.props),de=0;de<be.length;de++){var Ye=be[de];if(Ye!=="children"&&Ye!=="key"){_e(kt),L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ye),_e(null);break}}kt.ref!==null&&(_e(kt),L("Invalid attribute `ref` supplied to `React.Fragment`."),_e(null))}}function fn(kt,be,de,Ye,cn,We){{var At=k(kt);if(!At){var Zt="";(kt===void 0||typeof kt=="object"&&kt!==null&&Object.keys(kt).length===0)&&(Zt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xt=Qe(cn);xt?Zt+=xt:Zt+=ee();var Wt;kt===null?Wt="null":Array.isArray(kt)?Wt="array":kt!==void 0&&kt.$$typeof===e?(Wt="<"+(U(kt.type)||"Unknown")+" />",Zt=" Did you accidentally export a JSX literal instead of a component?"):Wt=typeof kt,L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Wt,Zt)}var re=Vt(kt,be,de,cn,We);if(re==null)return re;if(At){var je=be.children;if(je!==void 0)if(Ye)if(Array.isArray(je)){for(var Gt=0;Gt<je.length;Gt++)Ue(je[Gt],kt);Object.freeze&&Object.freeze(je)}else L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ue(je,kt)}return kt===o.Fragment?gn(re):Ze(re),re}}function On(kt,be,de){return fn(kt,be,de,!0)}function bn(kt,be,de){return fn(kt,be,de,!1)}var Xe=bn,$e=On;o.jsx=Xe,o.jsxs=$e}()}(nd)),nd}process.env.NODE_ENV==="production"?td.exports=mm():td.exports=ym();var ze=td.exports;function vm(o){return{}}const $c={},bm={},op={},nl={},wl={},Jc={},xl={},rd={},od={},tc={},ec={},ta={},Kc={},Gc={},_m={},ip={},wm={},ap={},xm={},sp={},lp={},Yc={},Sm={},cp={},up={},dp={},Em={},Cm={},km={},fp={},pp={},nc={},hp={},gp={},Om={},Xc={},id={},ad={},Tm={},Pm={},rc={},oc={},jm={},Am={},Rm={},la=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Im=la&&"documentMode"in document?document.documentMode:null,ca=la&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ps=la&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Qc=!(!la||!("InputEvent"in window)||Im)&&"getTargetRanges"in new window.InputEvent("input"),sd=la&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Zc=la&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Nm=la&&/Android/.test(navigator.userAgent),mp=la&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Mm=la&&Nm&&mp,ld=la&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!mp,ic=1,js=3,rl=0,yp=1,Sl=2,Dm=0,Lm=1,Bm=2,tu=4,eu=8,cd=128,Fm=112|(3|tu|eu)|cd,ud=1,dd=2,fd=3,pd=4,hd=5,gd=6,nu=sd||Zc||ld?" ":"",is=`
|
|
30
30
|
|
|
31
|
-
`,ga=st?" ":Fn,yi="֑-߿יִ-﷽ﹰ-ﻼ",vi="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",ma=new RegExp("^[^"+vi+"]*["+yi+"]"),_a=new RegExp("^[^"+yi+"]*["+vi+"]"),Xe={bold:1,code:16,highlight:Ir,italic:2,strikethrough:Ln,subscript:32,superscript:64,underline:jn},ya={directionless:1,unmergeable:2},xi={center:Dr,end:Fr,justify:Lr,left:Rr,right:Mr,start:jr},va={[Dr]:"center",[Fr]:"end",[Lr]:"justify",[Rr]:"left",[Mr]:"right",[jr]:"start"},xa={normal:0,segmented:2,token:1},Ta={[fa]:"normal",[ha]:"segmented",[da]:"token"};function ba(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var R=ba(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function Bn(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const Ca=100;let Br=!1,Wr=0;function Ea(n){Wr=n.timeStamp}function $r(n,e,t){return e.__lexicalLineBreak===n||n[`__lexicalKey_${t._key}`]!==void 0}function Sa(n,e,t){const r=Ye(t._window);let o=null,i=null;r!==null&&r.anchorNode===n&&(o=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&qr(e,s,o,i,!1)}function wa(n,e,t){if(I(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return e.nodeType===lt&&t.isAttached()}function Ti(n,e,t){Br=!0;const r=performance.now()-Wr>Ca;try{Re(n,()=>{const o=B()||function(f){return f.getEditorState().read(()=>{const h=B();return h!==null?h.clone():null})}(n),i=new Map,s=n.getRootElement(),l=n._editorState,a=n._blockCursorElement;let c=!1,u="";for(let f=0;f<e.length;f++){const h=e[f],p=h.type,g=h.target;let m=_t(g,l);if(!(m===null&&g!==s||se(m))){if(p==="characterData")r&&D(m)&&wa(o,g,m)&&Sa(g,m,n);else if(p==="childList"){c=!0;const T=h.addedNodes;for(let b=0;b<T.length;b++){const x=T[b],C=Oi(x),N=x.parentNode;if(N!=null&&x!==a&&C===null&&(x.nodeName!=="BR"||!$r(x,N,n))){if(st){const w=x.innerText||x.nodeValue;w&&(u+=w)}N.removeChild(x)}}const v=h.removedNodes,y=v.length;if(y>0){let b=0;for(let x=0;x<y;x++){const C=v[x];(C.nodeName==="BR"&&$r(C,g,n)||a===C)&&(g.appendChild(C),b++)}y!==b&&(g===s&&(m=Ri(l)),i.set(g,m))}}}}if(i.size>0)for(const[f,h]of i)if(E(h)){const p=h.getChildrenKeys();let g=f.firstChild;for(let m=0;m<p.length;m++){const T=p[m],v=n.getElementByKey(T);v!==null&&(g==null?(f.appendChild(v),g=v):g!==v&&f.replaceChild(v,g),g=g.nextSibling)}}else D(h)&&h.markDirty();const d=t.takeRecords();if(d.length>0){for(let f=0;f<d.length;f++){const h=d[f],p=h.addedNodes,g=h.target;for(let m=0;m<p.length;m++){const T=p[m],v=T.parentNode;v==null||T.nodeName!=="BR"||$r(T,g,n)||v.removeChild(T)}}t.takeRecords()}o!==null&&(c&&(o.dirty=!0,He(o)),st&&Ui(n)&&o.insertRawText(u))})}finally{Br=!1}}function bi(n){const e=n._observer;e!==null&&Ti(n,e.takeRecords(),e)}function Ci(n){(function(e){Wr===0&&Kn(e).addEventListener("textInput",Ea,!0)})(n),n._observer=new MutationObserver((e,t)=>{Ti(n,e,t)})}function Ei(n,e){const t=n.__mode,r=n.__format,o=n.__style,i=e.__mode,s=e.__format,l=e.__style;return!(t!==null&&t!==i||r!==null&&r!==s||o!==null&&o!==l)}function Si(n,e){const t=n.mergeWithSibling(e),r=pe()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function wi(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&D(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(Ei(e,r)){r=Si(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&D(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Ei(r,t)){r=Si(r,t);break}break}t.remove()}}else r.remove()}function ki(n){return Pi(n.anchor),Pi(n.focus),n}function Pi(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,o;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),o=!0):(r=e.getChildAtIndex(t),o=!1),D(r)){n.set(r.__key,o?r.getTextContentSize():0,"text");break}if(!E(r))break;n.set(r.__key,o?r.getChildrenSize():0,"element")}}let ka=1;const Pa=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function zr(n){const e=document.activeElement;if(e===null)return!1;const t=e.nodeName;return se(_t(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&Wn(e)==null)}function Zt(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!zr(e)&&Ni(e)===n}catch{return!1}}function Ur(n){return n instanceof ur}function Ni(n){let e=n;for(;e!=null;){const t=Wn(e);if(Ur(t))return t;e=Yn(e)}return null}function Wn(n){return n?n.__lexicalEditor:null}function Ot(n){return n.isToken()||n.isSegmented()}function Na(n){return n.nodeType===lt}function $n(n){let e=n;for(;e!=null;){if(Na(e))return e;e=e.firstChild}return null}function Hr(n,e,t){const r=Xe[e];if(t!==null&&(n&r)==(t&r))return n;let o=n^r;return e==="subscript"?o&=~Xe.superscript:e==="superscript"&&(o&=~Xe.subscript),o}function Oa(n,e){if(e!=null)return void(n.__key=e);Ae(),ks();const t=pe(),r=et(),o=""+ka++;r._nodeMap.set(o,n),E(n)?t._dirtyElements.set(o,!0):t._dirtyLeaves.add(o),t._cloneNotNeeded.add(o),t._dirtyType=_i,n.__key=o}function mt(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),o=n.getPreviousSibling(),i=n.getNextSibling();if(o===null)if(i!==null){const s=i.getWritable();r.__first=i.__key,s.__prev=null}else r.__first=null;else{const s=o.getWritable();if(i!==null){const l=i.getWritable();l.__prev=s.__key,s.__next=l.__key}else s.__next=null;t.__prev=null}if(i===null)if(o!==null){const s=o.getWritable();r.__last=o.__key,s.__next=null}else r.__last=null;else{const s=i.getWritable();if(o!==null){const l=o.getWritable();l.__next=s.__key,s.__prev=l.__key}else s.__prev=null;t.__next=null}r.__size--,t.__parent=null}}function zn(n){ks();const e=n.getLatest(),t=e.__parent,r=et(),o=pe(),i=r._nodeMap,s=o._dirtyElements;t!==null&&function(a,c,u){let d=a;for(;d!==null;){if(u.has(d))return;const f=c.get(d);if(f===void 0)break;u.set(d,!1),d=f.__parent}}(t,i,s);const l=e.__key;o._dirtyType=_i,E(n)?s.set(l,!0):o._dirtyLeaves.add(l)}function Te(n){Ae();const e=pe(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=we(t);r!==null&&r.getWritable()}if(n!==null){const r=we(n);r!==null&&r.getWritable()}}}function at(){return _n()?null:pe()._compositionKey}function we(n,e){const t=(e||et())._nodeMap.get(n);return t===void 0?null:t}function Oi(n,e){const t=n[`__lexicalKey_${pe()._key}`];return t!==void 0?we(t,e):null}function _t(n,e){let t=n;for(;t!=null;){const r=Oi(t,e);if(r!==null)return r;t=Yn(t)}return null}function Ai(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function Ii(n){return n.read(()=>ge().getTextContent())}function ge(){return Ri(et())}function Ri(n){return n._nodeMap.get("root")}function He(n){Ae();const e=et();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function At(n){const e=pe(),t=function(r,o){let i=r;for(;i!=null;){const s=i[`__lexicalKey_${o._key}`];if(s!==void 0)return s;i=Yn(i)}return null}(n,e);return t===null?n===e.getRootElement()?we("root"):null:we(t)}function Di(n,e){return e?n.getTextContentSize():0}function Mi(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function Yr(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function Li(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function ji(n){return n.nodeType===lt?n.nodeValue:null}function Kr(n,e,t){const r=Ye(e._window);if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let l=ji(o);const a=_t(o);if(l!==null&&D(a)){if(l===Fn&&t){const c=t.length;l=t,i=c,s=c}l!==null&&qr(a,l,i,s,n)}}}function qr(n,e,t,r,o){let i=n;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let l=e;(s||o)&&e[e.length-1]===Fn&&(l=e.slice(0,-1));const a=i.getTextContent();if(o||l!==a){if(l===""){if(Te(null),Or||Mn||Ar)i.remove();else{const g=pe();setTimeout(()=>{g.update(()=>{i.isAttached()&&i.remove()})},20)}return}const c=i.getParent(),u=mn(),d=i.getTextContentSize(),f=at(),h=i.getKey();if(i.isToken()||f!==null&&h===f&&!s||I(u)&&(c!==null&&!c.canInsertTextBefore()&&u.anchor.offset===0||u.anchor.key===n.__key&&u.anchor.offset===0&&!i.canInsertTextBefore()&&!s||u.focus.key===n.__key&&u.focus.offset===d&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=B();if(!I(p)||t===null||r===null)return void i.setTextContent(l);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const g=Ce(i.getTextContent());i.replace(g),i=g}i.setTextContent(l)}}}function Aa(n,e){if(e.isSegmented())return!0;if(!n.isCollapsed())return!1;const t=n.anchor.offset,r=e.getParentOrThrow(),o=e.isToken();return t===0?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||o||function(i){const s=i.getPreviousSibling();return(D(s)||E(s)&&s.isInline())&&!s.canInsertTextAfter()}(e):t===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||o)}function Fi(n){return n==="ArrowLeft"}function Bi(n){return n==="ArrowRight"}function en(n,e){return Fe?n:e}function Wi(n){return n==="Enter"}function tn(n){return n==="Backspace"}function nn(n){return n==="Delete"}function $i(n,e,t){return n.toLowerCase()==="a"&&en(e,t)}function Ia(){const n=ge();He(ki(n.select(0,n.getChildrenSize())))}function rn(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const o=n[e];if(typeof o=="string"){const i=Bn(o);return t[e]=i,i}return o}function Vr(n,e,t,r,o){if(t.size===0)return;const i=r.__type,s=r.__key,l=e.get(i);l===void 0&&R(33,i);const a=l.klass;let c=n.get(a);c===void 0&&(c=new Map,n.set(a,c));const u=c.get(s),d=u==="destroyed"&&o==="created";(u===void 0||d)&&c.set(s,d?"updated":o)}function zi(n,e,t){const r=n.getParent();let o=t,i=n;return r!==null&&(e&&t===0?(o=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?o-1:o)}function on(n,e){const t=n.offset;if(n.type==="element")return zi(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const o=e?r.getPreviousSibling():r.getNextSibling();return o===null?zi(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):o}}return null}function Ui(n){const e=Kn(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function j(n,e,t){return Is(n,e,t)}function Un(n){return!Ee(n)&&!n.isLastChild()&&!n.isInline()}function Hn(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&R(75,e),t}function Yn(n){const e=n.assignedSlot||n.parentElement;return e!==null&&e.nodeType===11?e.host:e}function Jr(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Kn(n){const e=n._window;return e===null&&R(78),e}function Ra(n){let e=n.getParentOrThrow();for(;e!==null;){if(It(e))return e;e=e.getParentOrThrow()}return e}function It(n){return Ee(n)||E(n)&&n.isShadowRoot()}function qn(n){const e=pe(),t=n.constructor.getType(),r=e._nodes.get(t);r===void 0&&R(97);const o=r.replace;if(o!==null){const i=o(n);return i instanceof n.constructor||R(98),i}return n}function Gr(n,e){!Ee(n.getParent())||E(e)||se(e)||R(99)}function Xr(n){return(se(n)||E(n)&&!n.canBeEmpty())&&!n.isInline()}function Qr(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function Da(n,e,t){let r=n._blockCursorElement;if(I(t)&&t.isCollapsed()&&t.anchor.type==="element"&&e.contains(document.activeElement)){const o=t.anchor,i=o.getNode(),s=o.offset;let l=!1,a=null;if(s===i.getChildrenSize())Xr(i.getChildAtIndex(s-1))&&(l=!0);else{const c=i.getChildAtIndex(s);if(Xr(c)){const u=c.getPreviousSibling();(u===null||Xr(u))&&(l=!0,a=n.getElementByKey(c.__key))}}if(l){const c=n.getElementByKey(i.__key);return r===null&&(n._blockCursorElement=r=function(u){const d=u.theme,f=document.createElement("div");f.contentEditable="false",f.setAttribute("data-lexical-cursor","true");let h=d.blockCursor;if(h!==void 0){if(typeof h=="string"){const p=Bn(h);h=d.blockCursor=p}h!==void 0&&f.classList.add(...h)}return f}(n._config)),e.style.caretColor="transparent",void(a===null?c.appendChild(r):c.insertBefore(r,a))}}r!==null&&Qr(r,n,e)}function Ye(n){return je?(n||window).getSelection():null}function Zr(n){return n.nodeType===1}function eo(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function Vn(n){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(e)!==null}function Rt(n){if(Ee(n)||se(n)&&!n.isInline())return!0;if(!E(n)||It(n))return!1;const e=n.getFirstChild(),t=e===null||Lt(e)||D(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function to(n,e){let t=n;for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}function Ma(){return pe()}const Hi=new WeakMap,La=new Map;function ja(n){if(!n._readOnly&&n.isEmpty())return La;n._readOnly||R(192);let e=Hi.get(n);if(!e){e=new Map,Hi.set(n,e);for(const[t,r]of n._nodeMap){const o=r.__type;let i=e.get(o);i||(i=new Map,e.set(o,i)),i.set(t,r)}}return e}function no(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function Yi(n,e,t,r,o,i){let s=n.getFirstChild();for(;s!==null;){const l=s.__key;s.__parent===e&&(E(s)&&Yi(s,l,t,r,o,i),t.has(l)||i.delete(l),o.push(l)),s=s.getNextSibling()}}let ct,ke,sn,Jn,ro,oo,yt,Be,io,ln,ye="",Pe="",Ke=null,We="",Qe="",Ki=!1,an=!1,Gn=null;function Xn(n,e){const t=yt.get(n);if(e!==null){const r=co(n);r.parentNode===e&&e.removeChild(r)}if(Be.has(n)||ke._keyToDOMMap.delete(n),E(t)){const r=Zn(t,yt);so(r,0,r.length-1,null)}t!==void 0&&Vr(ln,sn,Jn,t,"destroyed")}function so(n,e,t,r){let o=e;for(;o<=t;++o){const i=n[o];i!==void 0&&Xn(i,r)}}function vt(n,e){n.setProperty("text-align",e)}const Fa="40px";function qi(n,e){const t=ct.theme.indent;if(typeof t=="string"){const o=n.classList.contains(t);e>0&&!o?n.classList.add(t):e<1&&o&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||Fa;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function Vi(n,e){const t=n.style;e===0?vt(t,""):e===Rr?vt(t,"left"):e===Dr?vt(t,"center"):e===Mr?vt(t,"right"):e===Lr?vt(t,"justify"):e===jr?vt(t,"start"):e===Fr&&vt(t,"end")}function Qn(n,e,t){const r=Be.get(n);r===void 0&&R(60);const o=r.createDOM(ct,ke);if(function(i,s,l){const a=l._keyToDOMMap;s["__lexicalKey_"+l._key]=i,a.set(i,s)}(n,o,ke),D(r)?o.setAttribute("data-lexical-text","true"):se(r)&&o.setAttribute("data-lexical-decorator","true"),E(r)){const i=r.__indent,s=r.__size;if(i!==0&&qi(o,i),s!==0){const a=s-1;(function(c,u,d,f){const h=Pe;Pe="",lo(c,d,0,u,f,null),Xi(d,f),Pe=h})(Zn(r,Be),a,r,o)}const l=r.__format;l!==0&&Vi(o,l),r.isInline()||Gi(null,r,o),Un(r)&&(ye+=Ge,Qe+=Ge)}else{const i=r.getTextContent();if(se(r)){const s=r.decorate(ke,ct);s!==null&&Qi(n,s),o.contentEditable="false"}else D(r)&&(r.isDirectionless()||(Pe+=i));ye+=i,Qe+=i}if(e!==null)if(t!=null)e.insertBefore(o,t);else{const i=e.__lexicalLineBreak;i!=null?e.insertBefore(o,i):e.appendChild(o)}return Vr(ln,sn,Jn,r,"created"),o}function lo(n,e,t,r,o,i){const s=ye;ye="";let l=t;for(;l<=r;++l){Qn(n[l],o,i);const a=Be.get(n[l]);a!==null&&D(a)&&(Ke===null&&(Ke=a.getFormat()),We===""&&(We=a.getStyle()))}Un(e)&&(ye+=Ge),o.__lexicalTextContent=ye,ye=s+ye}function Ji(n,e){const t=e.get(n);return Lt(t)||se(t)&&t.isInline()}function Gi(n,e,t){const r=n!==null&&(n.__size===0||Ji(n.__last,yt)),o=e.__size===0||Ji(e.__last,Be);if(r){if(!o){const i=t.__lexicalLineBreak;if(i!=null)try{t.removeChild(i)}catch(s){if(typeof s=="object"&&s!=null){const l=`${s.toString()} Parent: ${t.tagName}, child: ${i.tagName}.`;throw new Error(l)}throw s}t.__lexicalLineBreak=null}}else if(o){const i=document.createElement("br");t.__lexicalLineBreak=i,t.appendChild(i)}}function Xi(n,e){const t=e.__lexicalDirTextContent,r=e.__lexicalDir;if(t!==Pe||r!==Gn){const i=Pe==="",s=i?Gn:(o=Pe,ma.test(o)?"rtl":_a.test(o)?"ltr":null);if(s!==r){const l=e.classList,a=ct.theme;let c=r!==null?a[r]:void 0,u=s!==null?a[s]:void 0;if(c!==void 0){if(typeof c=="string"){const d=Bn(c);c=a[r]=d}l.remove(...c)}if(s===null||i&&s==="ltr")e.removeAttribute("dir");else{if(u!==void 0){if(typeof u=="string"){const d=Bn(u);u=a[s]=d}u!==void 0&&l.add(...u)}e.dir=s}an||(n.getWritable().__dir=s)}Gn=s,e.__lexicalDirTextContent=Pe,e.__lexicalDir=s}var o}function Ba(n,e,t){const r=Pe;var o;Pe="",Ke=null,We="",function(i,s,l){const a=ye,c=i.__size,u=s.__size;if(ye="",c===1&&u===1){const d=i.__first,f=s.__first;if(d===f)cn(d,l);else{const p=co(d),g=Qn(f,null,null);try{l.replaceChild(g,p)}catch(m){if(typeof m=="object"&&m!=null){const T=`${m.toString()} Parent: ${l.tagName}, new child: {tag: ${g.tagName} key: ${f}}, old child: {tag: ${p.tagName}, key: ${d}}.`;throw new Error(T)}throw m}Xn(d,null)}const h=Be.get(f);D(h)&&(Ke===null&&(Ke=h.getFormat()),We===""&&(We=h.getStyle()))}else{const d=Zn(i,yt),f=Zn(s,Be);if(c===0)u!==0&&lo(f,s,0,u-1,l,null);else if(u===0){if(c!==0){const h=l.__lexicalLineBreak==null;so(d,0,c-1,h?null:l),h&&(l.textContent="")}}else(function(h,p,g,m,T,v){const y=m-1,b=T-1;let x,C,N=(z=v,z.firstChild),w=0,O=0;for(var z;w<=y&&O<=b;){const le=p[w],H=g[O];if(le===H)N=ao(cn(H,v)),w++,O++;else{x===void 0&&(x=new Set(p)),C===void 0&&(C=new Set(g));const ue=C.has(le),be=x.has(H);if(ue)if(be){const De=Hn(ke,H);De===N?N=ao(cn(H,v)):(N!=null?v.insertBefore(De,N):v.appendChild(De),cn(H,v)),w++,O++}else Qn(H,v,N),O++;else N=ao(co(le)),Xn(le,v),w++}const ie=Be.get(H);ie!==null&&D(ie)&&(Ke===null&&(Ke=ie.getFormat()),We===""&&(We=ie.getStyle()))}const X=w>y,he=O>b;if(X&&!he){const le=g[b+1];lo(g,h,O,b,v,le===void 0?null:ke.getElementByKey(le))}else he&&!X&&so(p,w,y,v)})(s,d,f,c,u,l)}Un(s)&&(ye+=Ge),l.__lexicalTextContent=ye,ye=a+ye}(n,e,t),Xi(e,t),No(o=e)&&Ke!=null&&Ke!==o.__textFormat&&!an&&(o.setTextFormat(Ke),o.setTextStyle(We)),function(i){No(i)&&We!==""&&We!==i.__textStyle&&!an&&i.setTextStyle(We)}(e),Pe=r}function Zn(n,e){const t=[];let r=n.__first;for(;r!==null;){const o=e.get(r);o===void 0&&R(101),t.push(r),r=o.__next}return t}function cn(n,e){const t=yt.get(n);let r=Be.get(n);t!==void 0&&r!==void 0||R(61);const o=Ki||oo.has(n)||ro.has(n),i=Hn(ke,n);if(t===r&&!o){if(E(t)){const s=i.__lexicalTextContent;s!==void 0&&(ye+=s,Qe+=s);const l=i.__lexicalDirTextContent;l!==void 0&&(Pe+=l)}else{const s=t.getTextContent();D(t)&&!t.isDirectionless()&&(Pe+=s),Qe+=s,ye+=s}return i}if(t!==r&&o&&Vr(ln,sn,Jn,r,"updated"),r.updateDOM(t,i,ct)){const s=Qn(n,null,null);return e===null&&R(62),e.replaceChild(s,i),Xn(n,null),s}if(E(t)&&E(r)){const s=r.__indent;s!==t.__indent&&qi(i,s);const l=r.__format;l!==t.__format&&Vi(i,l),o&&(Ba(t,r,i),Ee(r)||r.isInline()||Gi(t,r,i)),Un(r)&&(ye+=Ge,Qe+=Ge)}else{const s=r.getTextContent();if(se(r)){const l=r.decorate(ke,ct);l!==null&&Qi(n,l)}else D(r)&&!r.isDirectionless()&&(Pe+=s);ye+=s,Qe+=s}if(!an&&Ee(r)&&r.__cachedText!==Qe){const s=r.getWritable();s.__cachedText=Qe,r=s}return i}function Qi(n,e){let t=ke._pendingDecorators;const r=ke._decorators;if(t===null){if(r[n]===e)return;t=Ai(ke)}t[n]=e}function ao(n){let e=n.nextSibling;return e!==null&&e===ke._blockCursorElement&&(e=e.nextSibling),e}function Wa(n,e,t,r,o,i){ye="",Qe="",Pe="",Ki=r===Nt,Gn=null,ke=t,ct=t._config,sn=t._nodes,Jn=ke._listeners.mutation,ro=o,oo=i,yt=n._nodeMap,Be=e._nodeMap,an=e._readOnly,io=new Map(t._keyToDOMMap);const s=new Map;return ln=s,cn("root",null),ke=void 0,sn=void 0,ro=void 0,oo=void 0,yt=void 0,Be=void 0,ct=void 0,io=void 0,ln=void 0,s}function co(n){const e=io.get(n);return e===void 0&&R(75,n),e}const Ze=Object.freeze({}),uo=30,fo=[["keydown",function(n,e){if(un=n.timeStamp,Zi=n.key,e.isComposing())return;const{key:t,shiftKey:r,ctrlKey:o,metaKey:i,altKey:s}=n;j(e,Jl,n)||t!=null&&(function(l,a,c,u){return Bi(l)&&!a&&!u&&!c}(t,o,s,i)?j(e,ii,n):function(l,a,c,u,d){return Bi(l)&&!u&&!c&&(a||d)}(t,o,r,s,i)?j(e,Gl,n):function(l,a,c,u){return Fi(l)&&!a&&!u&&!c}(t,o,s,i)?j(e,si,n):function(l,a,c,u,d){return Fi(l)&&!u&&!c&&(a||d)}(t,o,r,s,i)?j(e,Xl,n):function(l,a,c){return function(u){return u==="ArrowUp"}(l)&&!a&&!c}(t,o,i)?j(e,li,n):function(l,a,c){return function(u){return u==="ArrowDown"}(l)&&!a&&!c}(t,o,i)?j(e,ai,n):function(l,a){return Wi(l)&&a}(t,r)?(fn=!0,j(e,In,n)):function(l){return l===" "}(t)?j(e,Ql,n):function(l,a){return Fe&&a&&l.toLowerCase()==="o"}(t,o)?(n.preventDefault(),fn=!0,j(e,kt,!0)):function(l,a){return Wi(l)&&!a}(t,r)?(fn=!1,j(e,In,n)):function(l,a,c,u){return Fe?!a&&!c&&(tn(l)||l.toLowerCase()==="h"&&u):!(u||a||c)&&tn(l)}(t,s,i,o)?tn(t)?j(e,ci,n):(n.preventDefault(),j(e,pt,!0)):function(l){return l==="Escape"}(t)?j(e,ui,n):function(l,a,c,u,d){return Fe?!(c||u||d)&&(nn(l)||l.toLowerCase()==="d"&&a):!(a||u||d)&&nn(l)}(t,o,r,s,i)?nn(t)?j(e,fi,n):(n.preventDefault(),j(e,pt,!1)):function(l,a,c){return tn(l)&&(Fe?a:c)}(t,s,o)?(n.preventDefault(),j(e,qt,!0)):function(l,a,c){return nn(l)&&(Fe?a:c)}(t,s,o)?(n.preventDefault(),j(e,qt,!1)):function(l,a){return Fe&&a&&tn(l)}(t,i)?(n.preventDefault(),j(e,Vt,!0)):function(l,a){return Fe&&a&&nn(l)}(t,i)?(n.preventDefault(),j(e,Vt,!1)):function(l,a,c,u){return l.toLowerCase()==="b"&&!a&&en(c,u)}(t,s,i,o)?(n.preventDefault(),j(e,Le,"bold")):function(l,a,c,u){return l.toLowerCase()==="u"&&!a&&en(c,u)}(t,s,i,o)?(n.preventDefault(),j(e,Le,"underline")):function(l,a,c,u){return l.toLowerCase()==="i"&&!a&&en(c,u)}(t,s,i,o)?(n.preventDefault(),j(e,Le,"italic")):function(l,a,c,u){return l==="Tab"&&!a&&!c&&!u}(t,s,o,i)?j(e,Zl,n):function(l,a,c,u){return l.toLowerCase()==="z"&&!a&&en(c,u)}(t,r,i,o)?(n.preventDefault(),j(e,On,void 0)):function(l,a,c,u){return Fe?l.toLowerCase()==="z"&&c&&a:l.toLowerCase()==="y"&&u||l.toLowerCase()==="z"&&u&&a}(t,r,i,o)?(n.preventDefault(),j(e,An,void 0)):$e(e._editorState._selection)?function(l,a,c,u){return!a&&l.toLowerCase()==="c"&&(Fe?c:u)}(t,r,i,o)?(n.preventDefault(),j(e,Rn,n)):function(l,a,c,u){return!a&&l.toLowerCase()==="x"&&(Fe?c:u)}(t,r,i,o)?(n.preventDefault(),j(e,Pr,n)):$i(t,i,o)&&(n.preventDefault(),j(e,Nr,n)):!st&&$i(t,i,o)&&(n.preventDefault(),j(e,Nr,n)),function(l,a,c,u){return l||a||c||u}(o,r,s,i)&&j(e,la,n))}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;t instanceof Node&&r!=="touch"&&Re(e,()=>{se(_t(t))||(po=!0)})}],["compositionstart",function(n,e){Re(e,()=>{const t=B();if(I(t)&&!e.isComposing()){const r=t.anchor,o=t.anchor.getNode();Te(r.key),(n.timeStamp<un+uo||r.type==="element"||!t.isCollapsed()||o.getFormat()!==t.format||D(o)&&o.getStyle()!==t.style)&&j(e,Pt,ga)}})}],["compositionend",function(n,e){st?dn=!0:Re(e,()=>{go(e,n.data)})}],["input",function(n,e){n.stopPropagation(),Re(e,()=>{const t=B(),r=n.data,o=is(n);if(r!=null&&I(t)&&ns(t,o,r,n.timeStamp,!1)){dn&&(go(e,r),dn=!1);const i=t.anchor.getNode(),s=Ye(e._window);if(s===null)return;const l=t.isBackward(),a=l?t.anchor.offset:t.focus.offset,c=l?t.focus.offset:t.anchor.offset;Dn&&!t.isCollapsed()&&D(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+c)===ji(s.anchorNode)||j(e,Pt,r);const u=r.length;st&&u>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=u),Or||Mn||Ar||!e.isComposing()||(un=0,Te(null))}else Kr(!1,e,r!==null?r:void 0),dn&&(go(e,r||void 0),dn=!1);Ae(),bi(pe())}),Dt=null}],["click",function(n,e){Re(e,()=>{const t=B(),r=Ye(e._window),o=mn();if(r){if(I(t)){const i=t.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&t.isCollapsed()&&!Ee(s)&&ge().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&t.is(o)?(r.removeAllRanges(),t.dirty=!0):n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()&&(E(s)?s.select(0):s.getParentOrThrow().select(0))}else if(n.pointerType==="touch"){const i=r.anchorNode;if(i!==null){const s=i.nodeType;(s===Qt||s===lt)&&He(Co(o,r,e,n))}}}j(e,oi,n)})}],["cut",Ze],["copy",Ze],["dragstart",Ze],["dragover",Ze],["dragend",Ze],["paste",Ze],["focus",Ze],["blur",Ze],["drop",Ze]];Dn&&fo.push(["beforeinput",(n,e)=>function(t,r){const o=t.inputType,i=is(t);o==="deleteCompositionText"||st&&Ui(r)||o!=="insertCompositionText"&&Re(r,()=>{const s=B();if(o==="deleteContentBackward"){if(s===null){const h=mn();if(!I(h))return;He(h.clone())}if(I(s)){const h=s.anchor.key===s.focus.key;if(l=t.timeStamp,Zi==="MediaLast"&&l<un+uo&&r.isComposing()&&h){if(Te(null),un=0,setTimeout(()=>{Re(r,()=>{Te(null)})},uo),I(s)){const p=s.anchor.getNode();p.markDirty(),s.format=p.getFormat(),D(p)||R(142),s.style=p.getStyle()}}else{Te(null),t.preventDefault();const p=s.anchor.getNode().getTextContent(),g=s.anchor.offset===0&&s.focus.offset===p.length;ua&&h&&!g||j(r,pt,!0)}return}}var l;if(!I(s))return;const a=t.data;Dt!==null&&Kr(!1,r,Dt),s.dirty&&Dt===null||!s.isCollapsed()||Ee(s.anchor.getNode())||i===null||s.applyDOMRange(i),Dt=null;const c=s.anchor,u=s.focus,d=c.getNode(),f=u.getNode();if(o!=="insertText"&&o!=="insertTranspose")switch(t.preventDefault(),o){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":j(r,Pt,t);break;case"insertFromComposition":Te(null),j(r,Pt,t);break;case"insertLineBreak":Te(null),j(r,kt,!1);break;case"insertParagraph":Te(null),fn&&!Mn?(fn=!1,j(r,kt,!1)):j(r,Nn,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":j(r,wr,t);break;case"deleteByComposition":(function(h,p){return h!==p||E(h)||E(p)||!h.isToken()||!p.isToken()})(d,f)&&j(r,kr,t);break;case"deleteByDrag":case"deleteByCut":j(r,kr,t);break;case"deleteContent":j(r,pt,!1);break;case"deleteWordBackward":j(r,qt,!0);break;case"deleteWordForward":j(r,qt,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":j(r,Vt,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":j(r,Vt,!1);break;case"formatStrikeThrough":j(r,Le,"strikethrough");break;case"formatBold":j(r,Le,"bold");break;case"formatItalic":j(r,Le,"italic");break;case"formatUnderline":j(r,Le,"underline");break;case"historyUndo":j(r,On,void 0);break;case"historyRedo":j(r,An,void 0)}else{if(a===`
|
|
32
|
-
`)t.preventDefault(),
|
|
33
|
-
`){const
|
|
34
|
-
`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:
|
|
31
|
+
`,zm=Ps?" ":nu,vp="֑-߿יִ-﷽ﹰ-ﻼ",bp="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",Um=new RegExp("^[^"+bp+"]*["+vp+"]"),Hm=new RegExp("^[^"+vp+"]*["+bp+"]"),as={bold:1,code:16,highlight:cd,italic:2,strikethrough:tu,subscript:32,superscript:64,underline:eu},qm={directionless:1,unmergeable:2},_p={center:dd,end:gd,justify:pd,left:ud,right:fd,start:hd},Wm={[dd]:"center",[gd]:"end",[pd]:"justify",[ud]:"left",[fd]:"right",[hd]:"start"},Vm={normal:0,segmented:2,token:1},$m={[Dm]:"normal",[Bm]:"segmented",[Lm]:"token"};function Jm(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var pn=Jm(function(o){const a=new URLSearchParams;a.append("code",o);for(let t=1;t<arguments.length;t++)a.append("v",arguments[t]);throw Error(`Minified Lexical error #${o}; visit https://lexical.dev/docs/error?${a} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function ru(...o){const a=[];for(const t of o)if(t&&typeof t=="string")for(const[e]of t.matchAll(/\S+/g))a.push(e);return a}const Km=100;let md=!1,yd=0;function Gm(o){yd=o.timeStamp}function vd(o,a,t){return a.__lexicalLineBreak===o||o[`__lexicalKey_${t._key}`]!==void 0}function Ym(o,a,t){const e=Ra(t._window);let s=null,i=null;e!==null&&e.anchorNode===o&&(s=e.anchorOffset,i=e.focusOffset);const r=o.nodeValue;r!==null&&Ed(a,r,s,i,!1)}function Xm(o,a,t){if(sn(o)){const e=o.anchor.getNode();if(e.is(t)&&o.format!==e.getFormat())return!1}return a.nodeType===js&&t.isAttached()}function wp(o,a,t){md=!0;const e=performance.now()-yd>Km;try{Ii(o,()=>{const s=Pn()||function(f){return f.getEditorState().read(()=>{const g=Pn();return g!==null?g.clone():null})}(o),i=new Map,r=o.getRootElement(),l=o._editorState,n=o._blockCursorElement;let c=!1,d="";for(let f=0;f<a.length;f++){const g=a[f],m=g.type,h=g.target;let v=il(h,l);if(!(v===null&&h!==r||Tr(v))){if(m==="characterData")e&&hn(v)&&Xm(s,h,v)&&Ym(h,v,o);else if(m==="childList"){c=!0;const b=g.addedNodes;for(let x=0;x<b.length;x++){const w=b[x],O=jp(w),I=w.parentNode;if(I!=null&&w!==n&&O===null&&(w.nodeName!=="BR"||!vd(w,I,o))){if(Ps){const L=w.innerText||w.nodeValue;L&&(d+=L)}I.removeChild(w)}}const _=g.removedNodes,R=_.length;if(R>0){let x=0;for(let w=0;w<R;w++){const O=_[w];(O.nodeName==="BR"&&vd(O,h,o)||n===O)&&(h.appendChild(O),x++)}R!==x&&(h===r&&(v=Ip(l)),i.set(h,v))}}}}if(i.size>0)for(const[f,g]of i)if(Fe(g)){const m=g.getChildrenKeys();let h=f.firstChild;for(let v=0;v<m.length;v++){const b=m[v],_=o.getElementByKey(b);_!==null&&(h==null?(f.appendChild(_),h=_):h!==_&&f.replaceChild(_,h),h=h.nextSibling)}}else hn(g)&&g.markDirty();const u=t.takeRecords();if(u.length>0){for(let f=0;f<u.length;f++){const g=u[f],m=g.addedNodes,h=g.target;for(let v=0;v<m.length;v++){const b=m[v],_=b.parentNode;_==null||b.nodeName!=="BR"||vd(b,h,o)||_.removeChild(b)}}t.takeRecords()}s!==null&&(c&&(s.dirty=!0,Aa(s)),Ps&&qp(o)&&s.insertRawText(d))})}finally{md=!1}}function xp(o){const a=o._observer;a!==null&&wp(o,a.takeRecords(),a)}function Sp(o){(function(a){yd===0&&uu(a).addEventListener("textInput",Gm,!0)})(o),o._observer=new MutationObserver((a,t)=>{wp(o,a,t)})}function Ep(o,a){const t=o.__mode,e=o.__format,s=o.__style,i=a.__mode,r=a.__format,l=a.__style;return!(t!==null&&t!==i||e!==null&&e!==r||s!==null&&s!==l)}function Cp(o,a){const t=o.mergeWithSibling(a),e=Xr()._normalizedNodes;return e.add(o.__key),e.add(a.__key),t}function kp(o){let a,t,e=o;if(e.__text!==""||!e.isSimpleText()||e.isUnmergeable()){for(;(a=e.getPreviousSibling())!==null&&hn(a)&&a.isSimpleText()&&!a.isUnmergeable();){if(a.__text!==""){if(Ep(a,e)){e=Cp(a,e);break}break}a.remove()}for(;(t=e.getNextSibling())!==null&&hn(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Ep(e,t)){e=Cp(e,t);break}break}t.remove()}}else e.remove()}function Op(o){return Tp(o.anchor),Tp(o.focus),o}function Tp(o){for(;o.type==="element";){const a=o.getNode(),t=o.offset;let e,s;if(t===a.getChildrenSize()?(e=a.getChildAtIndex(t-1),s=!0):(e=a.getChildAtIndex(t),s=!1),hn(e)){o.set(e.__key,s?e.getTextContentSize():0,"text");break}if(!Fe(e))break;o.set(e.__key,s?e.getChildrenSize():0,"element")}}let Qm=1;const Zm=typeof queueMicrotask=="function"?queueMicrotask:o=>{Promise.resolve().then(o)};function bd(o){const a=document.activeElement;if(a===null)return!1;const t=a.nodeName;return Tr(il(o))&&(t==="INPUT"||t==="TEXTAREA"||a.contentEditable==="true"&&ou(a)==null)}function ac(o,a,t){const e=o.getRootElement();try{return e!==null&&e.contains(a)&&e.contains(t)&&a!==null&&!bd(a)&&Pp(a)===o}catch{return!1}}function _d(o){return o instanceof Tu}function Pp(o){let a=o;for(;a!=null;){const t=ou(a);if(_d(t))return t;a=cu(a)}return null}function ou(o){return o?o.__lexicalEditor:null}function El(o){return o.isToken()||o.isSegmented()}function t0(o){return o.nodeType===js}function iu(o){let a=o;for(;a!=null;){if(t0(a))return a;a=a.firstChild}return null}function wd(o,a,t){const e=as[a];if(t!==null&&(o&e)==(t&e))return o;let s=o^e;return a==="subscript"?s&=~as.superscript:a==="superscript"&&(s&=~as.subscript),s}function e0(o,a){if(a!=null)return void(o.__key=a);yi(),Oh();const t=Xr(),e=cs(),s=""+Qm++;e._nodeMap.set(s,o),Fe(o)?t._dirtyElements.set(s,!0):t._dirtyLeaves.add(s),t._cloneNotNeeded.add(s),t._dirtyType=yp,o.__key=s}function ol(o){const a=o.getParent();if(a!==null){const t=o.getWritable(),e=a.getWritable(),s=o.getPreviousSibling(),i=o.getNextSibling();if(s===null)if(i!==null){const r=i.getWritable();e.__first=i.__key,r.__prev=null}else e.__first=null;else{const r=s.getWritable();if(i!==null){const l=i.getWritable();l.__prev=r.__key,r.__next=l.__key}else r.__next=null;t.__prev=null}if(i===null)if(s!==null){const r=s.getWritable();e.__last=s.__key,r.__next=null}else e.__last=null;else{const r=i.getWritable();if(s!==null){const l=s.getWritable();l.__next=r.__key,r.__prev=l.__key}else r.__prev=null;t.__next=null}e.__size--,t.__parent=null}}function au(o){Oh();const a=o.getLatest(),t=a.__parent,e=cs(),s=Xr(),i=e._nodeMap,r=s._dirtyElements;t!==null&&function(n,c,d){let u=n;for(;u!==null;){if(d.has(u))return;const f=c.get(u);if(f===void 0)break;d.set(u,!1),u=f.__parent}}(t,i,r);const l=a.__key;s._dirtyType=yp,Fe(o)?r.set(l,!0):s._dirtyLeaves.add(l)}function Ao(o){yi();const a=Xr(),t=a._compositionKey;if(o!==t){if(a._compositionKey=o,t!==null){const e=Qo(t);e!==null&&e.getWritable()}if(o!==null){const e=Qo(o);e!==null&&e.getWritable()}}}function As(){return Sc()?null:Xr()._compositionKey}function Qo(o,a){const t=(a||cs())._nodeMap.get(o);return t===void 0?null:t}function jp(o,a){const t=o[`__lexicalKey_${Xr()._key}`];return t!==void 0?Qo(t,a):null}function il(o,a){let t=o;for(;t!=null;){const e=jp(t,a);if(e!==null)return e;t=cu(t)}return null}function Ap(o){const a=o._decorators,t=Object.assign({},a);return o._pendingDecorators=t,t}function Rp(o){return o.read(()=>ro().getTextContent())}function ro(){return Ip(cs())}function Ip(o){return o._nodeMap.get("root")}function Aa(o){yi();const a=cs();o!==null&&(o.dirty=!0,o.setCachedNodes(null)),a._selection=o}function Cl(o){const a=Xr(),t=function(e,s){let i=e;for(;i!=null;){const r=i[`__lexicalKey_${s._key}`];if(r!==void 0)return r;i=cu(i)}return null}(o,a);return t===null?o===a.getRootElement()?Qo("root"):null:Qo(t)}function Np(o,a){return a?o.getTextContentSize():0}function Mp(o){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(o)}function xd(o){const a=[];let t=o;for(;t!==null;)a.push(t),t=t._parentEditor;return a}function Dp(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Lp(o){return o.nodeType===js?o.nodeValue:null}function Sd(o,a,t){const e=Ra(a._window);if(e===null)return;const s=e.anchorNode;let{anchorOffset:i,focusOffset:r}=e;if(s!==null){let l=Lp(s);const n=il(s);if(l!==null&&hn(n)){if(l===nu&&t){const c=t.length;l=t,i=c,r=c}l!==null&&Ed(n,l,i,r,o)}}}function Ed(o,a,t,e,s){let i=o;if(i.isAttached()&&(s||!i.isDirty())){const r=i.isComposing();let l=a;(r||s)&&a[a.length-1]===nu&&(l=a.slice(0,-1));const n=i.getTextContent();if(s||l!==n){if(l===""){if(Ao(null),sd||Zc||ld)i.remove();else{const h=Xr();setTimeout(()=>{h.update(()=>{i.isAttached()&&i.remove()})},20)}return}const c=i.getParent(),d=xc(),u=i.getTextContentSize(),f=As(),g=i.getKey();if(i.isToken()||f!==null&&g===f&&!r||sn(d)&&(c!==null&&!c.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===o.__key&&d.anchor.offset===0&&!i.canInsertTextBefore()&&!r||d.focus.key===o.__key&&d.focus.offset===u&&!i.canInsertTextAfter()&&!r))return void i.markDirty();const m=Pn();if(!sn(m)||t===null||e===null)return void i.setTextContent(l);if(m.setTextNodeRange(i,t,i,e),i.isSegmented()){const h=zo(i.getTextContent());i.replace(h),i=h}i.setTextContent(l)}}}function n0(o,a){if(a.isSegmented())return!0;if(!o.isCollapsed())return!1;const t=o.anchor.offset,e=a.getParentOrThrow(),s=a.isToken();return t===0?!a.canInsertTextBefore()||!e.canInsertTextBefore()&&!a.isComposing()||s||function(i){const r=i.getPreviousSibling();return(hn(r)||Fe(r)&&r.isInline())&&!r.canInsertTextAfter()}(a):t===a.getTextContentSize()&&(!a.canInsertTextAfter()||!e.canInsertTextAfter()&&!a.isComposing()||s)}function Bp(o){return o==="ArrowLeft"}function Fp(o){return o==="ArrowRight"}function sc(o,a){return ca?o:a}function zp(o){return o==="Enter"}function lc(o){return o==="Backspace"}function cc(o){return o==="Delete"}function Up(o,a,t){return o.toLowerCase()==="a"&&sc(a,t)}function r0(){const o=ro();Aa(Op(o.select(0,o.getChildrenSize())))}function uc(o,a){o.__lexicalClassNameCache===void 0&&(o.__lexicalClassNameCache={});const t=o.__lexicalClassNameCache,e=t[a];if(e!==void 0)return e;const s=o[a];if(typeof s=="string"){const i=ru(s);return t[a]=i,i}return s}function Cd(o,a,t,e,s){if(t.size===0)return;const i=e.__type,r=e.__key,l=a.get(i);l===void 0&&pn(33,i);const n=l.klass;let c=o.get(n);c===void 0&&(c=new Map,o.set(n,c));const d=c.get(r),u=d==="destroyed"&&s==="created";(d===void 0||u)&&c.set(r,u?"updated":s)}function Hp(o,a,t){const e=o.getParent();let s=t,i=o;return e!==null&&(a&&t===0?(s=i.getIndexWithinParent(),i=e):a||t!==i.getChildrenSize()||(s=i.getIndexWithinParent()+1,i=e)),i.getChildAtIndex(a?s-1:s)}function dc(o,a){const t=o.offset;if(o.type==="element")return Hp(o.getNode(),a,t);{const e=o.getNode();if(a&&t===0||!a&&t===e.getTextContentSize()){const s=a?e.getPreviousSibling():e.getNextSibling();return s===null?Hp(e.getParentOrThrow(),a,e.getIndexWithinParent()+(a?0:1)):s}}return null}function qp(o){const a=uu(o).event,t=a&&a.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function mn(o,a,t){return Rh(o,a,t)}function su(o){return!Uo(o)&&!o.isLastChild()&&!o.isInline()}function lu(o,a){const t=o._keyToDOMMap.get(a);return t===void 0&&pn(75,a),t}function cu(o){const a=o.assignedSlot||o.parentElement;return a!==null&&a.nodeType===11?a.host:a}function kd(o,a){let t=o.getParent();for(;t!==null;){if(t.is(a))return!0;t=t.getParent()}return!1}function uu(o){const a=o._window;return a===null&&pn(78),a}function o0(o){let a=o.getParentOrThrow();for(;a!==null;){if(kl(a))return a;a=a.getParentOrThrow()}return a}function kl(o){return Uo(o)||Fe(o)&&o.isShadowRoot()}function du(o){const a=Xr(),t=o.constructor.getType(),e=a._nodes.get(t);e===void 0&&pn(97);const s=e.replace;if(s!==null){const i=s(o);return i instanceof o.constructor||pn(98),i}return o}function Od(o,a){!Uo(o.getParent())||Fe(a)||Tr(a)||pn(99)}function Td(o){return(Tr(o)||Fe(o)&&!o.canBeEmpty())&&!o.isInline()}function Pd(o,a,t){t.style.removeProperty("caret-color"),a._blockCursorElement=null;const e=o.parentElement;e!==null&&e.removeChild(o)}function i0(o,a,t){let e=o._blockCursorElement;if(sn(t)&&t.isCollapsed()&&t.anchor.type==="element"&&a.contains(document.activeElement)){const s=t.anchor,i=s.getNode(),r=s.offset;let l=!1,n=null;if(r===i.getChildrenSize())Td(i.getChildAtIndex(r-1))&&(l=!0);else{const c=i.getChildAtIndex(r);if(Td(c)){const d=c.getPreviousSibling();(d===null||Td(d))&&(l=!0,n=o.getElementByKey(c.__key))}}if(l){const c=o.getElementByKey(i.__key);return e===null&&(o._blockCursorElement=e=function(d){const u=d.theme,f=document.createElement("div");f.contentEditable="false",f.setAttribute("data-lexical-cursor","true");let g=u.blockCursor;if(g!==void 0){if(typeof g=="string"){const m=ru(g);g=u.blockCursor=m}g!==void 0&&f.classList.add(...g)}return f}(o._config)),a.style.caretColor="transparent",void(n===null?c.appendChild(e):c.insertBefore(e,n))}}e!==null&&Pd(e,o,a)}function Ra(o){return la?(o||window).getSelection():null}function jd(o){return o.nodeType===1}function Ad(o){const a=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return o.nodeName.match(a)!==null}function fu(o){const a=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return o.nodeName.match(a)!==null}function Ol(o){if(Uo(o)||Tr(o)&&!o.isInline())return!0;if(!Fe(o)||kl(o))return!1;const a=o.getFirstChild(),t=a===null||jl(a)||hn(a)||a.isInline();return!o.isInline()&&o.canBeEmpty()!==!1&&t}function Rd(o,a){let t=o;for(;t!==null&&t.getParent()!==null&&!a(t);)t=t.getParentOrThrow();return a(t)?t:null}function a0(){return Xr()}const Wp=new WeakMap,s0=new Map;function l0(o){if(!o._readOnly&&o.isEmpty())return s0;o._readOnly||pn(192);let a=Wp.get(o);if(!a){a=new Map,Wp.set(o,a);for(const[t,e]of o._nodeMap){const s=e.__type;let i=a.get(s);i||(i=new Map,a.set(s,i)),i.set(t,e)}}return a}function Id(o){const a=o.constructor.clone(o);return a.afterCloneFrom(o),a}function Vp(o,a,t,e,s,i){let r=o.getFirstChild();for(;r!==null;){const l=r.__key;r.__parent===a&&(Fe(r)&&Vp(r,l,t,e,s,i),t.has(l)||i.delete(l),s.push(l)),r=r.getNextSibling()}}let Rs,Zo,fc,pu,Nd,Md,al,ua,Dd,pc,bo="",ti="",Ia=null,da="",ss="",$p=!1,hc=!1,hu=null;function gu(o,a){const t=al.get(o);if(a!==null){const e=zd(o);e.parentNode===a&&a.removeChild(e)}if(ua.has(o)||Zo._keyToDOMMap.delete(o),Fe(t)){const e=yu(t,al);Ld(e,0,e.length-1,null)}t!==void 0&&Cd(pc,fc,pu,t,"destroyed")}function Ld(o,a,t,e){let s=a;for(;s<=t;++s){const i=o[s];i!==void 0&&gu(i,e)}}function sl(o,a){o.setProperty("text-align",a)}const c0="40px";function Jp(o,a){const t=Rs.theme.indent;if(typeof t=="string"){const s=o.classList.contains(t);a>0&&!s?o.classList.add(t):a<1&&s&&o.classList.remove(t)}const e=getComputedStyle(o).getPropertyValue("--lexical-indent-base-value")||c0;o.style.setProperty("padding-inline-start",a===0?"":`calc(${a} * ${e})`)}function Kp(o,a){const t=o.style;a===0?sl(t,""):a===ud?sl(t,"left"):a===dd?sl(t,"center"):a===fd?sl(t,"right"):a===pd?sl(t,"justify"):a===hd?sl(t,"start"):a===gd&&sl(t,"end")}function mu(o,a,t){const e=ua.get(o);e===void 0&&pn(60);const s=e.createDOM(Rs,Zo);if(function(i,r,l){const n=l._keyToDOMMap;r["__lexicalKey_"+l._key]=i,n.set(i,r)}(o,s,Zo),hn(e)?s.setAttribute("data-lexical-text","true"):Tr(e)&&s.setAttribute("data-lexical-decorator","true"),Fe(e)){const i=e.__indent,r=e.__size;if(i!==0&&Jp(s,i),r!==0){const n=r-1;(function(c,d,u,f){const g=ti;ti="",Bd(c,u,0,d,f,null),Xp(u,f),ti=g})(yu(e,ua),n,e,s)}const l=e.__format;l!==0&&Kp(s,l),e.isInline()||Yp(null,e,s),su(e)&&(bo+=is,ss+=is)}else{const i=e.getTextContent();if(Tr(e)){const r=e.decorate(Zo,Rs);r!==null&&Qp(o,r),s.contentEditable="false"}else hn(e)&&(e.isDirectionless()||(ti+=i));bo+=i,ss+=i}if(a!==null)if(t!=null)a.insertBefore(s,t);else{const i=a.__lexicalLineBreak;i!=null?a.insertBefore(s,i):a.appendChild(s)}return Cd(pc,fc,pu,e,"created"),s}function Bd(o,a,t,e,s,i){const r=bo;bo="";let l=t;for(;l<=e;++l){mu(o[l],s,i);const n=ua.get(o[l]);n!==null&&hn(n)&&(Ia===null&&(Ia=n.getFormat()),da===""&&(da=n.getStyle()))}su(a)&&(bo+=is),s.__lexicalTextContent=bo,bo=r+bo}function Gp(o,a){const t=a.get(o);return jl(t)||Tr(t)&&t.isInline()}function Yp(o,a,t){const e=o!==null&&(o.__size===0||Gp(o.__last,al)),s=a.__size===0||Gp(a.__last,ua);if(e){if(!s){const i=t.__lexicalLineBreak;if(i!=null)try{t.removeChild(i)}catch(r){if(typeof r=="object"&&r!=null){const l=`${r.toString()} Parent: ${t.tagName}, child: ${i.tagName}.`;throw new Error(l)}throw r}t.__lexicalLineBreak=null}}else if(s){const i=document.createElement("br");t.__lexicalLineBreak=i,t.appendChild(i)}}function Xp(o,a){const t=a.__lexicalDirTextContent,e=a.__lexicalDir;if(t!==ti||e!==hu){const i=ti==="",r=i?hu:(s=ti,Um.test(s)?"rtl":Hm.test(s)?"ltr":null);if(r!==e){const l=a.classList,n=Rs.theme;let c=e!==null?n[e]:void 0,d=r!==null?n[r]:void 0;if(c!==void 0){if(typeof c=="string"){const u=ru(c);c=n[e]=u}l.remove(...c)}if(r===null||i&&r==="ltr")a.removeAttribute("dir");else{if(d!==void 0){if(typeof d=="string"){const u=ru(d);d=n[r]=u}d!==void 0&&l.add(...d)}a.dir=r}hc||(o.getWritable().__dir=r)}hu=r,a.__lexicalDirTextContent=ti,a.__lexicalDir=r}var s}function u0(o,a,t){const e=ti;var s;ti="",Ia=null,da="",function(i,r,l){const n=bo,c=i.__size,d=r.__size;if(bo="",c===1&&d===1){const u=i.__first,f=r.__first;if(u===f)gc(u,l);else{const m=zd(u),h=mu(f,null,null);try{l.replaceChild(h,m)}catch(v){if(typeof v=="object"&&v!=null){const b=`${v.toString()} Parent: ${l.tagName}, new child: {tag: ${h.tagName} key: ${f}}, old child: {tag: ${m.tagName}, key: ${u}}.`;throw new Error(b)}throw v}gu(u,null)}const g=ua.get(f);hn(g)&&(Ia===null&&(Ia=g.getFormat()),da===""&&(da=g.getStyle()))}else{const u=yu(i,al),f=yu(r,ua);if(c===0)d!==0&&Bd(f,r,0,d-1,l,null);else if(d===0){if(c!==0){const g=l.__lexicalLineBreak==null;Ld(u,0,c-1,g?null:l),g&&(l.textContent="")}}else(function(g,m,h,v,b,_){const R=v-1,x=b-1;let w,O,I=(A=_,A.firstChild),L=0,M=0;for(var A;L<=R&&M<=x;){const G=m[L],U=h[M];if(G===U)I=Fd(gc(U,_)),L++,M++;else{w===void 0&&(w=new Set(m)),O===void 0&&(O=new Set(h));const W=O.has(G),Q=w.has(U);if(W)if(Q){const E=lu(Zo,U);E===I?I=Fd(gc(U,_)):(I!=null?_.insertBefore(E,I):_.appendChild(E),gc(U,_)),L++,M++}else mu(U,_,I),M++;else I=Fd(zd(G)),gu(G,_),L++}const D=ua.get(U);D!==null&&hn(D)&&(Ia===null&&(Ia=D.getFormat()),da===""&&(da=D.getStyle()))}const k=L>R,J=M>x;if(k&&!J){const G=h[x+1];Bd(h,g,M,x,_,G===void 0?null:Zo.getElementByKey(G))}else J&&!k&&Ld(m,L,R,_)})(r,u,f,c,d,l)}su(r)&&(bo+=is),l.__lexicalTextContent=bo,bo=n+bo}(o,a,t),Xp(a,t),af(s=a)&&Ia!=null&&Ia!==s.__textFormat&&!hc&&(s.setTextFormat(Ia),s.setTextStyle(da)),function(i){af(i)&&da!==""&&da!==i.__textStyle&&!hc&&i.setTextStyle(da)}(a),ti=e}function yu(o,a){const t=[];let e=o.__first;for(;e!==null;){const s=a.get(e);s===void 0&&pn(101),t.push(e),e=s.__next}return t}function gc(o,a){const t=al.get(o);let e=ua.get(o);t!==void 0&&e!==void 0||pn(61);const s=$p||Md.has(o)||Nd.has(o),i=lu(Zo,o);if(t===e&&!s){if(Fe(t)){const r=i.__lexicalTextContent;r!==void 0&&(bo+=r,ss+=r);const l=i.__lexicalDirTextContent;l!==void 0&&(ti+=l)}else{const r=t.getTextContent();hn(t)&&!t.isDirectionless()&&(ti+=r),ss+=r,bo+=r}return i}if(t!==e&&s&&Cd(pc,fc,pu,e,"updated"),e.updateDOM(t,i,Rs)){const r=mu(o,null,null);return a===null&&pn(62),a.replaceChild(r,i),gu(o,null),r}if(Fe(t)&&Fe(e)){const r=e.__indent;r!==t.__indent&&Jp(i,r);const l=e.__format;l!==t.__format&&Kp(i,l),s&&(u0(t,e,i),Uo(e)||e.isInline()||Yp(t,e,i)),su(e)&&(bo+=is,ss+=is)}else{const r=e.getTextContent();if(Tr(e)){const l=e.decorate(Zo,Rs);l!==null&&Qp(o,l)}else hn(e)&&!e.isDirectionless()&&(ti+=r);bo+=r,ss+=r}if(!hc&&Uo(e)&&e.__cachedText!==ss){const r=e.getWritable();r.__cachedText=ss,e=r}return i}function Qp(o,a){let t=Zo._pendingDecorators;const e=Zo._decorators;if(t===null){if(e[o]===a)return;t=Ap(Zo)}t[o]=a}function Fd(o){let a=o.nextSibling;return a!==null&&a===Zo._blockCursorElement&&(a=a.nextSibling),a}function d0(o,a,t,e,s,i){bo="",ss="",ti="",$p=e===Sl,hu=null,Zo=t,Rs=t._config,fc=t._nodes,pu=Zo._listeners.mutation,Nd=s,Md=i,al=o._nodeMap,ua=a._nodeMap,hc=a._readOnly,Dd=new Map(t._keyToDOMMap);const r=new Map;return pc=r,gc("root",null),Zo=void 0,fc=void 0,Nd=void 0,Md=void 0,al=void 0,ua=void 0,Rs=void 0,Dd=void 0,pc=void 0,r}function zd(o){const a=Dd.get(o);return a===void 0&&pn(75,o),a}const ls=Object.freeze({}),Ud=30,Hd=[["keydown",function(o,a){if(mc=o.timeStamp,Zp=o.key,a.isComposing())return;const{key:t,shiftKey:e,ctrlKey:s,metaKey:i,altKey:r}=o;mn(a,_m,o)||t!=null&&(function(l,n,c,d){return Fp(l)&&!n&&!d&&!c}(t,s,r,i)?mn(a,ip,o):function(l,n,c,d,u){return Fp(l)&&!d&&!c&&(n||u)}(t,s,e,r,i)?mn(a,wm,o):function(l,n,c,d){return Bp(l)&&!n&&!d&&!c}(t,s,r,i)?mn(a,ap,o):function(l,n,c,d,u){return Bp(l)&&!d&&!c&&(n||u)}(t,s,e,r,i)?mn(a,xm,o):function(l,n,c){return function(d){return d==="ArrowUp"}(l)&&!n&&!c}(t,s,i)?mn(a,sp,o):function(l,n,c){return function(d){return d==="ArrowDown"}(l)&&!n&&!c}(t,s,i)?mn(a,lp,o):function(l,n){return zp(l)&&n}(t,e)?(yc=!0,mn(a,Yc,o)):function(l){return l===" "}(t)?mn(a,Sm,o):function(l,n){return ca&&n&&l.toLowerCase()==="o"}(t,s)?(o.preventDefault(),yc=!0,mn(a,wl,!0)):function(l,n){return zp(l)&&!n}(t,e)?(yc=!1,mn(a,Yc,o)):function(l,n,c,d){return ca?!n&&!c&&(lc(l)||l.toLowerCase()==="h"&&d):!(d||n||c)&&lc(l)}(t,r,i,s)?lc(t)?mn(a,cp,o):(o.preventDefault(),mn(a,nl,!0)):function(l){return l==="Escape"}(t)?mn(a,up,o):function(l,n,c,d,u){return ca?!(c||d||u)&&(cc(l)||l.toLowerCase()==="d"&&n):!(n||d||u)&&cc(l)}(t,s,e,r,i)?cc(t)?mn(a,dp,o):(o.preventDefault(),mn(a,nl,!1)):function(l,n,c){return lc(l)&&(ca?n:c)}(t,r,s)?(o.preventDefault(),mn(a,tc,!0)):function(l,n,c){return cc(l)&&(ca?n:c)}(t,r,s)?(o.preventDefault(),mn(a,tc,!1)):function(l,n){return ca&&n&&lc(l)}(t,i)?(o.preventDefault(),mn(a,ec,!0)):function(l,n){return ca&&n&&cc(l)}(t,i)?(o.preventDefault(),mn(a,ec,!1)):function(l,n,c,d){return l.toLowerCase()==="b"&&!n&&sc(c,d)}(t,r,i,s)?(o.preventDefault(),mn(a,ta,"bold")):function(l,n,c,d){return l.toLowerCase()==="u"&&!n&&sc(c,d)}(t,r,i,s)?(o.preventDefault(),mn(a,ta,"underline")):function(l,n,c,d){return l.toLowerCase()==="i"&&!n&&sc(c,d)}(t,r,i,s)?(o.preventDefault(),mn(a,ta,"italic")):function(l,n,c,d){return l==="Tab"&&!n&&!c&&!d}(t,r,s,i)?mn(a,Em,o):function(l,n,c,d){return l.toLowerCase()==="z"&&!n&&sc(c,d)}(t,e,i,s)?(o.preventDefault(),mn(a,Kc,void 0)):function(l,n,c,d){return ca?l.toLowerCase()==="z"&&c&&n:l.toLowerCase()==="y"&&d||l.toLowerCase()==="z"&&d&&n}(t,e,i,s)?(o.preventDefault(),mn(a,Gc,void 0)):fa(a._editorState._selection)?function(l,n,c,d){return!n&&l.toLowerCase()==="c"&&(ca?c:d)}(t,e,i,s)?(o.preventDefault(),mn(a,Xc,o)):function(l,n,c,d){return!n&&l.toLowerCase()==="x"&&(ca?c:d)}(t,e,i,s)?(o.preventDefault(),mn(a,id,o)):Up(t,i,s)&&(o.preventDefault(),mn(a,ad,o)):!Ps&&Up(t,i,s)&&(o.preventDefault(),mn(a,ad,o)),function(l,n,c,d){return l||n||c||d}(s,e,r,i)&&mn(a,Rm,o))}],["pointerdown",function(o,a){const t=o.target,e=o.pointerType;t instanceof Node&&e!=="touch"&&Ii(a,()=>{Tr(il(t))||(Wd=!0)})}],["compositionstart",function(o,a){Ii(a,()=>{const t=Pn();if(sn(t)&&!a.isComposing()){const e=t.anchor,s=t.anchor.getNode();Ao(e.key),(o.timeStamp<mc+Ud||e.type==="element"||!t.isCollapsed()||s.getFormat()!==t.format||hn(s)&&s.getStyle()!==t.style)&&mn(a,xl,zm)}})}],["compositionend",function(o,a){Ps?vc=!0:Ii(a,()=>{Vd(a,o.data)})}],["input",function(o,a){o.stopPropagation(),Ii(a,()=>{const t=Pn(),e=o.data,s=ih(o);if(e!=null&&sn(t)&&nh(t,s,e,o.timeStamp,!1)){vc&&(Vd(a,e),vc=!1);const i=t.anchor.getNode(),r=Ra(a._window);if(r===null)return;const l=t.isBackward(),n=l?t.anchor.offset:t.focus.offset,c=l?t.focus.offset:t.anchor.offset;Qc&&!t.isCollapsed()&&hn(i)&&r.anchorNode!==null&&i.getTextContent().slice(0,n)+e+i.getTextContent().slice(n+c)===Lp(r.anchorNode)||mn(a,xl,e);const d=e.length;Ps&&d>1&&o.inputType==="insertCompositionText"&&!a.isComposing()&&(t.anchor.offset-=d),sd||Zc||ld||!a.isComposing()||(mc=0,Ao(null))}else Sd(!1,a,e!==null?e:void 0),vc&&(Vd(a,e||void 0),vc=!1);yi(),xp(Xr())}),Tl=null}],["click",function(o,a){Ii(a,()=>{const t=Pn(),e=Ra(a._window),s=xc();if(e){if(sn(t)){const i=t.anchor,r=i.getNode();i.type==="element"&&i.offset===0&&t.isCollapsed()&&!Uo(r)&&ro().getChildrenSize()===1&&r.getTopLevelElementOrThrow().isEmpty()&&s!==null&&t.is(s)?(e.removeAllRanges(),t.dirty=!0):o.detail===3&&!t.isCollapsed()&&r!==t.focus.getNode()&&(Fe(r)?r.select(0):r.getParentOrThrow().select(0))}else if(o.pointerType==="touch"){const i=e.anchorNode;if(i!==null){const r=i.nodeType;(r===ic||r===js)&&Aa(Zd(s,e,a,o))}}}mn(a,op,o)})}],["cut",ls],["copy",ls],["dragstart",ls],["dragover",ls],["dragend",ls],["paste",ls],["focus",ls],["blur",ls],["drop",ls]];Qc&&Hd.push(["beforeinput",(o,a)=>function(t,e){const s=t.inputType,i=ih(t);s==="deleteCompositionText"||Ps&&qp(e)||s!=="insertCompositionText"&&Ii(e,()=>{const r=Pn();if(s==="deleteContentBackward"){if(r===null){const g=xc();if(!sn(g))return;Aa(g.clone())}if(sn(r)){const g=r.anchor.key===r.focus.key;if(l=t.timeStamp,Zp==="MediaLast"&&l<mc+Ud&&e.isComposing()&&g){if(Ao(null),mc=0,setTimeout(()=>{Ii(e,()=>{Ao(null)})},Ud),sn(r)){const m=r.anchor.getNode();m.markDirty(),r.format=m.getFormat(),hn(m)||pn(142),r.style=m.getStyle()}}else{Ao(null),t.preventDefault();const m=r.anchor.getNode().getTextContent(),h=r.anchor.offset===0&&r.focus.offset===m.length;Mm&&g&&!h||mn(e,nl,!0)}return}}var l;if(!sn(r))return;const n=t.data;Tl!==null&&Sd(!1,e,Tl),r.dirty&&Tl===null||!r.isCollapsed()||Uo(r.anchor.getNode())||i===null||r.applyDOMRange(i),Tl=null;const c=r.anchor,d=r.focus,u=c.getNode(),f=d.getNode();if(s!=="insertText"&&s!=="insertTranspose")switch(t.preventDefault(),s){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":mn(e,xl,t);break;case"insertFromComposition":Ao(null),mn(e,xl,t);break;case"insertLineBreak":Ao(null),mn(e,wl,!1);break;case"insertParagraph":Ao(null),yc&&!Zc?(yc=!1,mn(e,wl,!1)):mn(e,Jc,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":mn(e,rd,t);break;case"deleteByComposition":(function(g,m){return g!==m||Fe(g)||Fe(m)||!g.isToken()||!m.isToken()})(u,f)&&mn(e,od,t);break;case"deleteByDrag":case"deleteByCut":mn(e,od,t);break;case"deleteContent":mn(e,nl,!1);break;case"deleteWordBackward":mn(e,tc,!0);break;case"deleteWordForward":mn(e,tc,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":mn(e,ec,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":mn(e,ec,!1);break;case"formatStrikeThrough":mn(e,ta,"strikethrough");break;case"formatBold":mn(e,ta,"bold");break;case"formatItalic":mn(e,ta,"italic");break;case"formatUnderline":mn(e,ta,"underline");break;case"historyUndo":mn(e,Kc,void 0);break;case"historyRedo":mn(e,Gc,void 0)}else{if(n===`
|
|
32
|
+
`)t.preventDefault(),mn(e,wl,!1);else if(n===is)t.preventDefault(),mn(e,Jc,void 0);else if(n==null&&t.dataTransfer){const g=t.dataTransfer.getData("text/plain");t.preventDefault(),r.insertRawText(g)}else n!=null&&nh(r,i,n,t.timeStamp,!0)?(t.preventDefault(),mn(e,xl,n)):Tl=n;th=t.timeStamp}})}(o,a)]);let mc=0,Zp=null,th=0,Tl=null;const vu=new WeakMap;let qd=!1,Wd=!1,yc=!1,vc=!1,eh=[0,"",0,"root",0];function nh(o,a,t,e,s){const i=o.anchor,r=o.focus,l=i.getNode(),n=Xr(),c=Ra(n._window),d=c!==null?c.anchorNode:null,u=i.key,f=n.getElementByKey(u),g=t.length;return u!==r.key||!hn(l)||(!s&&(!Qc||th<e+50)||l.isDirty()&&g<2||Mp(t))&&i.offset!==r.offset&&!l.isComposing()||El(l)||l.isDirty()&&g>1||(s||!Qc)&&f!==null&&!l.isComposing()&&d!==iu(f)||c!==null&&a!==null&&(!a.collapsed||a.startContainer!==c.anchorNode||a.startOffset!==c.anchorOffset)||l.getFormat()!==o.format||l.getStyle()!==o.style||n0(o,l)}function rh(o,a){return o!==null&&o.nodeValue!==null&&o.nodeType===js&&a!==0&&a!==o.nodeValue.length}function oh(o,a,t){const{anchorNode:e,anchorOffset:s,focusNode:i,focusOffset:r}=o;qd&&(qd=!1,rh(e,s)&&rh(i,r))||Ii(a,()=>{if(!t)return void Aa(null);if(!ac(a,e,i))return;const l=Pn();if(sn(l)){const n=l.anchor,c=n.getNode();if(l.isCollapsed()){o.type==="Range"&&o.anchorNode===o.focusNode&&(l.dirty=!0);const d=uu(a).event,u=d?d.timeStamp:performance.now(),[f,g,m,h,v]=eh,b=ro(),_=a.isComposing()===!1&&b.getTextContent()==="";if(u<v+200&&n.offset===m&&n.key===h)l.format=f,l.style=g;else if(n.type==="text")hn(c)||pn(141),l.format=c.getFormat(),l.style=c.getStyle();else if(n.type==="element"&&!_){const R=n.getNode();l.style="",R instanceof Rl&&R.getChildrenSize()===0?(l.format=R.getTextFormat(),l.style=R.getTextStyle()):l.format=0}}else{const d=n.key,u=l.focus.key,f=l.getNodes(),g=f.length,m=l.isBackward(),h=m?r:s,v=m?s:r,b=m?u:d,_=m?d:u;let R=Fm,x=!1;for(let w=0;w<g;w++){const O=f[w],I=O.getTextContentSize();if(hn(O)&&I!==0&&!(w===0&&O.__key===b&&h===I||w===g-1&&O.__key===_&&v===0)&&(x=!0,R&=O.getFormat(),R===0))break}l.format=x?R:0}}mn(a,$c,void 0)})}function ih(o){if(!o.getTargetRanges)return null;const a=o.getTargetRanges();return a.length===0?null:a[0]}function Vd(o,a){const t=o._compositionKey;if(Ao(null),t!==null&&a!=null){if(a===""){const e=Qo(t),s=iu(o.getElementByKey(t));return void(s!==null&&s.nodeValue!==null&&hn(e)&&Ed(e,s.nodeValue,null,null,!0))}if(a[a.length-1]===`
|
|
33
|
+
`){const e=Pn();if(sn(e)){const s=e.focus;return e.anchor.set(s.key,s.offset,s.type),void mn(o,Yc,null)}}}Sd(!0,o,a)}function ah(o){let a=o.__lexicalEventHandles;return a===void 0&&(a=[],o.__lexicalEventHandles=a),a}const Pl=new Map;function sh(o){const a=o.target,t=Ra(a==null?null:a.nodeType===9?a.defaultView:a.ownerDocument.defaultView);if(t===null)return;const e=Pp(t.anchorNode);if(e===null)return;Wd&&(Wd=!1,Ii(e,()=>{const c=xc(),d=t.anchorNode;if(d===null)return;const u=d.nodeType;u!==ic&&u!==js||Aa(Zd(c,t,e,o))}));const s=xd(e),i=s[s.length-1],r=i._key,l=Pl.get(r),n=l||i;n!==e&&oh(t,n,!1),oh(t,e,!0),e!==i?Pl.set(r,e):l&&Pl.delete(r)}function lh(o){o._lexicalHandled=!0}function ch(o){return o._lexicalHandled===!0}function f0(o){const a=o.ownerDocument,t=vu.get(a);t===void 0&&pn(162);const e=t-1;e>=0||pn(164),vu.set(a,e),e===0&&a.removeEventListener("selectionchange",sh);const s=ou(o);_d(s)?(function(r){if(r._parentEditor!==null){const l=xd(r),n=l[l.length-1]._key;Pl.get(n)===r&&Pl.delete(n)}else Pl.delete(r._key)}(s),o.__lexicalEditor=null):s&&pn(198);const i=ah(o);for(let r=0;r<i.length;r++)i[r]();o.__lexicalEventHandles=[]}function $d(o,a,t){yi();const e=o.__key,s=o.getParent();if(s===null)return;const i=function(l){const n=Pn();if(!sn(n)||!Fe(l))return n;const{anchor:c,focus:d}=n,u=c.getNode(),f=d.getNode();return kd(u,l)&&c.set(l.__key,0,"element"),kd(f,l)&&d.set(l.__key,0,"element"),n}(o);let r=!1;if(sn(i)&&a){const l=i.anchor,n=i.focus;l.key===e&&(Eu(l,o,s,o.getPreviousSibling(),o.getNextSibling()),r=!0),n.key===e&&(Eu(n,o,s,o.getPreviousSibling(),o.getNextSibling()),r=!0)}else fa(i)&&a&&o.isSelected()&&o.selectPrevious();if(sn(i)&&a&&!r){const l=o.getIndexWithinParent();ol(o),Su(i,s,l,-1)}else ol(o);t||kl(s)||s.canBeEmpty()||!s.isEmpty()||$d(s,a),a&&Uo(s)&&s.isEmpty()&&s.selectEnd()}class bu{static getType(){pn(64,this.name)}static clone(a){pn(65,this.name)}afterCloneFrom(a){this.__parent=a.__parent,this.__next=a.__next,this.__prev=a.__prev}constructor(a){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,e0(this,a)}getType(){return this.__type}isInline(){pn(137,this.constructor.name)}isAttached(){let a=this.__key;for(;a!==null;){if(a==="root")return!0;const t=Qo(a);if(t===null)break;a=t.__parent}return!1}isSelected(a){const t=a||Pn();if(t==null)return!1;const e=t.getNodes().some(s=>s.__key===this.__key);if(hn(this))return e;if(sn(t)&&t.anchor.type==="element"&&t.focus.type==="element"){if(t.isCollapsed())return!1;const s=this.getParent();if(Tr(this)&&this.isInline()&&s){const i=t.isBackward()?t.focus:t.anchor,r=i.getNode();if(i.offset===r.getChildrenSize()&&r.is(s)&&r.getLastChildOrThrow().is(this))return!1}}return e}getKey(){return this.__key}getIndexWithinParent(){const a=this.getParent();if(a===null)return-1;let t=a.getFirstChild(),e=0;for(;t!==null;){if(this.is(t))return e;e++,t=t.getNextSibling()}return-1}getParent(){const a=this.getLatest().__parent;return a===null?null:Qo(a)}getParentOrThrow(){const a=this.getParent();return a===null&&pn(66,this.__key),a}getTopLevelElement(){let a=this;for(;a!==null;){const t=a.getParent();if(kl(t))return Fe(a)||a===this&&Tr(a)||pn(194),a;a=t}return null}getTopLevelElementOrThrow(){const a=this.getTopLevelElement();return a===null&&pn(67,this.__key),a}getParents(){const a=[];let t=this.getParent();for(;t!==null;)a.push(t),t=t.getParent();return a}getParentKeys(){const a=[];let t=this.getParent();for(;t!==null;)a.push(t.__key),t=t.getParent();return a}getPreviousSibling(){const a=this.getLatest().__prev;return a===null?null:Qo(a)}getPreviousSiblings(){const a=[],t=this.getParent();if(t===null)return a;let e=t.getFirstChild();for(;e!==null&&!e.is(this);)a.push(e),e=e.getNextSibling();return a}getNextSibling(){const a=this.getLatest().__next;return a===null?null:Qo(a)}getNextSiblings(){const a=[];let t=this.getNextSibling();for(;t!==null;)a.push(t),t=t.getNextSibling();return a}getCommonAncestor(a){const t=this.getParents(),e=a.getParents();Fe(this)&&t.unshift(this),Fe(a)&&e.unshift(a);const s=t.length,i=e.length;if(s===0||i===0||t[s-1]!==e[i-1])return null;const r=new Set(e);for(let l=0;l<s;l++){const n=t[l];if(r.has(n))return n}return null}is(a){return a!=null&&this.__key===a.__key}isBefore(a){if(this===a)return!1;if(a.isParentOf(this))return!0;if(this.isParentOf(a))return!1;const t=this.getCommonAncestor(a);let e=0,s=0,i=this;for(;;){const r=i.getParentOrThrow();if(r===t){e=i.getIndexWithinParent();break}i=r}for(i=a;;){const r=i.getParentOrThrow();if(r===t){s=i.getIndexWithinParent();break}i=r}return e<s}isParentOf(a){const t=this.__key;if(t===a.__key)return!1;let e=a;for(;e!==null;){if(e.__key===t)return!0;e=e.getParent()}return!1}getNodesBetween(a){const t=this.isBefore(a),e=[],s=new Set;let i=this;for(;i!==null;){const r=i.__key;if(s.has(r)||(s.add(r),e.push(i)),i===a)break;const l=Fe(i)?t?i.getFirstChild():i.getLastChild():null;if(l!==null){i=l;continue}const n=t?i.getNextSibling():i.getPreviousSibling();if(n!==null){i=n;continue}const c=i.getParentOrThrow();if(s.has(c.__key)||e.push(c),c===a)break;let d=null,u=c;do{if(u===null&&pn(68),d=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),u===null)break;d!==null||s.has(u.__key)||e.push(u)}while(d===null);i=d}return t||e.reverse(),e}isDirty(){const a=Xr()._dirtyLeaves;return a!==null&&a.has(this.__key)}getLatest(){const a=Qo(this.__key);return a===null&&pn(113),a}getWritable(){yi();const a=cs(),t=Xr(),e=a._nodeMap,s=this.__key,i=this.getLatest(),r=t._cloneNotNeeded,l=Pn();if(l!==null&&l.setCachedNodes(null),r.has(s))return au(i),i;const n=Id(i);return r.add(s),au(n),e.set(s,n),n}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(a,t){pn(70)}updateDOM(a,t,e){pn(71)}exportDOM(a){return{element:this.createDOM(a._config,a)}}exportJSON(){pn(72)}static importJSON(a){pn(18,this.name)}static transform(){return null}remove(a){$d(this,!0,a)}replace(a,t){yi();let e=Pn();e!==null&&(e=e.clone()),Od(this,a);const s=this.getLatest(),i=this.__key,r=a.__key,l=a.getWritable(),n=this.getParentOrThrow().getWritable(),c=n.__size;ol(l);const d=s.getPreviousSibling(),u=s.getNextSibling(),f=s.__prev,g=s.__next,m=s.__parent;if($d(s,!1,!0),d===null?n.__first=r:d.getWritable().__next=r,l.__prev=f,u===null?n.__last=r:u.getWritable().__prev=r,l.__next=g,l.__parent=m,n.__size=c,t&&(Fe(this)&&Fe(l)||pn(139),this.getChildren().forEach(h=>{l.append(h)})),sn(e)){Aa(e);const h=e.anchor,v=e.focus;h.key===i&&gh(h,l),v.key===i&&gh(v,l)}return As()===i&&Ao(r),l}insertAfter(a,t=!0){yi(),Od(this,a);const e=this.getWritable(),s=a.getWritable(),i=s.getParent(),r=Pn();let l=!1,n=!1;if(i!==null){const g=a.getIndexWithinParent();if(ol(s),sn(r)){const m=i.__key,h=r.anchor,v=r.focus;l=h.type==="element"&&h.key===m&&h.offset===g+1,n=v.type==="element"&&v.key===m&&v.offset===g+1}}const c=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),u=s.__key,f=e.__next;if(c===null?d.__last=u:c.getWritable().__prev=u,d.__size++,e.__next=u,s.__next=f,s.__prev=e.__key,s.__parent=e.__parent,t&&sn(r)){const g=this.getIndexWithinParent();Su(r,d,g+1);const m=d.__key;l&&r.anchor.set(m,g+2,"element"),n&&r.focus.set(m,g+2,"element")}return a}insertBefore(a,t=!0){yi(),Od(this,a);const e=this.getWritable(),s=a.getWritable(),i=s.__key;ol(s);const r=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),n=e.__prev,c=this.getIndexWithinParent();r===null?l.__first=i:r.getWritable().__next=i,l.__size++,e.__prev=i,s.__prev=n,s.__next=e.__key,s.__parent=e.__parent;const d=Pn();return t&&sn(d)&&Su(d,this.getParentOrThrow(),c),a}isParentRequired(){return!1}createParentElementNode(){return Ma()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(a,t){yi();const e=this.getPreviousSibling(),s=this.getParentOrThrow();if(e===null)return s.select(0,0);if(Fe(e))return e.select();if(!hn(e)){const i=e.getIndexWithinParent()+1;return s.select(i,i)}return e.select(a,t)}selectNext(a,t){yi();const e=this.getNextSibling(),s=this.getParentOrThrow();if(e===null)return s.select();if(Fe(e))return e.select(0,0);if(!hn(e)){const i=e.getIndexWithinParent();return s.select(i,i)}return e.select(a,t)}markDirty(){this.getWritable()}}class bc extends bu{static getType(){return"linebreak"}static clone(a){return new bc(a.__key)}constructor(a){super(a)}getTextContent(){return`
|
|
34
|
+
`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:a=>function(t){const e=t.parentElement;if(e!==null&&fu(e)){const s=e.firstChild;if(s===t||s.nextSibling===t&&_u(s)){const i=e.lastChild;if(i===t||i.previousSibling===t&&_u(i))return!0}}return!1}(a)||function(t){const e=t.parentElement;if(e!==null&&fu(e)){const s=e.firstChild;if(s===t||s.nextSibling===t&&_u(s))return!1;const i=e.lastChild;if(i===t||i.previousSibling===t&&_u(i))return!0}return!1}(a)?null:{conversion:p0,priority:0}}}static importJSON(a){return ll()}exportJSON(){return{type:"linebreak",version:1}}}function p0(o){return{node:ll()}}function ll(){return du(new bc)}function jl(o){return o instanceof bc}function _u(o){return o.nodeType===js&&/^( |\t|\r?\n)+$/.test(o.textContent||"")}function Jd(o,a){return 16&a?"code":a&cd?"mark":32&a?"sub":64&a?"sup":null}function Kd(o,a){return 1&a?"strong":2&a?"em":"span"}function uh(o,a,t,e,s){const i=e.classList;let r=uc(s,"base");r!==void 0&&i.add(...r),r=uc(s,"underlineStrikethrough");let l=!1;const n=a&eu&&a&tu;r!==void 0&&(t&eu&&t&tu?(l=!0,n||i.add(...r)):n&&i.remove(...r));for(const c in as){const d=as[c];if(r=uc(s,c),r!==void 0)if(t&d){if(l&&(c==="underline"||c==="strikethrough")){a&d&&i.remove(...r);continue}a&d&&(!n||c!=="underline")&&c!=="strikethrough"||i.add(...r)}else a&d&&i.remove(...r)}}function dh(o,a,t){const e=a.firstChild,s=t.isComposing(),i=o+(s?nu:"");if(e==null)a.textContent=i;else{const r=e.nodeValue;if(r!==i)if(s||Ps){const[l,n,c]=function(d,u){const f=d.length,g=u.length;let m=0,h=0;for(;m<f&&m<g&&d[m]===u[m];)m++;for(;h+m<f&&h+m<g&&d[f-h-1]===u[g-h-1];)h++;return[m,f-m-h,u.slice(m,g-h)]}(r,i);n!==0&&e.deleteData(l,n),e.insertData(l,c)}else e.nodeValue=i}}function fh(o,a,t,e,s,i){dh(s,o,a);const r=i.theme.text;r!==void 0&&uh(0,0,e,o,r)}function wu(o,a){const t=document.createElement(a);return t.appendChild(o),t}class Al extends bu{static getType(){return"text"}static clone(a){return new Al(a.__text,a.__key)}afterCloneFrom(a){super.afterCloneFrom(a),this.__format=a.__format,this.__style=a.__style,this.__mode=a.__mode,this.__detail=a.__detail}constructor(a,t){super(t),this.__text=a,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const a=this.getLatest();return $m[a.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===As()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(a){const t=as[a];return!!(this.getFormat()&t)}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(a,t){return wd(this.getLatest().__format,a,t)}canHaveFormat(){return!0}createDOM(a,t){const e=this.__format,s=Jd(0,e),i=Kd(0,e),r=s===null?i:s,l=document.createElement(r);let n=l;this.hasFormat("code")&&l.setAttribute("spellcheck","false"),s!==null&&(n=document.createElement(i),l.appendChild(n)),fh(n,this,0,e,this.__text,a);const c=this.__style;return c!==""&&(l.style.cssText=c),l}updateDOM(a,t,e){const s=this.__text,i=a.__format,r=this.__format,l=Jd(0,i),n=Jd(0,r),c=Kd(0,i),d=Kd(0,r);if((l===null?c:l)!==(n===null?d:n))return!0;if(l===n&&c!==d){const h=t.firstChild;h==null&&pn(48);const v=document.createElement(d);return fh(v,this,0,r,s,e),t.replaceChild(v,h),!1}let u=t;n!==null&&l!==null&&(u=t.firstChild,u==null&&pn(49)),dh(s,u,this);const f=e.theme.text;f!==void 0&&i!==r&&uh(0,i,r,u,f);const g=a.__style,m=this.__style;return g!==m&&(t.style.cssText=m),!1}static importDOM(){return{"#text":()=>({conversion:y0,priority:0}),b:()=>({conversion:g0,priority:0}),code:()=>({conversion:Is,priority:0}),em:()=>({conversion:Is,priority:0}),i:()=>({conversion:Is,priority:0}),s:()=>({conversion:Is,priority:0}),span:()=>({conversion:h0,priority:0}),strong:()=>({conversion:Is,priority:0}),sub:()=>({conversion:Is,priority:0}),sup:()=>({conversion:Is,priority:0}),u:()=>({conversion:Is,priority:0})}}static importJSON(a){const t=zo(a.text);return t.setFormat(a.format),t.setDetail(a.detail),t.setMode(a.mode),t.setStyle(a.style),t}exportDOM(a){let{element:t}=super.exportDOM(a);return t!==null&&jd(t)||pn(132),t.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(t=wu(t,"b")),this.hasFormat("italic")&&(t=wu(t,"i")),this.hasFormat("strikethrough")&&(t=wu(t,"s")),this.hasFormat("underline")&&(t=wu(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(a,t){}setFormat(a){const t=this.getWritable();return t.__format=typeof a=="string"?as[a]:a,t}setDetail(a){const t=this.getWritable();return t.__detail=typeof a=="string"?qm[a]:a,t}setStyle(a){const t=this.getWritable();return t.__style=a,t}toggleFormat(a){const t=wd(this.getFormat(),a,null);return this.setFormat(t)}toggleDirectionless(){const a=this.getWritable();return a.__detail^=1,a}toggleUnmergeable(){const a=this.getWritable();return a.__detail^=2,a}setMode(a){const t=Vm[a];if(this.__mode===t)return this;const e=this.getWritable();return e.__mode=t,e}setTextContent(a){if(this.__text===a)return this;const t=this.getWritable();return t.__text=a,t}select(a,t){yi();let e=a,s=t;const i=Pn(),r=this.getTextContent(),l=this.__key;if(typeof r=="string"){const n=r.length;e===void 0&&(e=n),s===void 0&&(s=n)}else e=0,s=0;if(!sn(i))return xh(l,e,l,s,"text","text");{const n=As();n!==i.anchor.key&&n!==i.focus.key||Ao(l),i.setTextNodeRange(this,e,this,s)}return i}selectStart(){return this.select(0,0)}selectEnd(){const a=this.getTextContentSize();return this.select(a,a)}spliceText(a,t,e,s){const i=this.getWritable(),r=i.__text,l=e.length;let n=a;n<0&&(n=l+n,n<0&&(n=0));const c=Pn();if(s&&sn(c)){const u=a+l;c.setTextNodeRange(i,u,i,u)}const d=r.slice(0,n)+e+r.slice(n+t);return i.__text=d,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...a){yi();const t=this.getLatest(),e=t.getTextContent(),s=t.__key,i=As(),r=new Set(a),l=[],n=e.length;let c="";for(let w=0;w<n;w++)c!==""&&r.has(w)&&(l.push(c),c=""),c+=e[w];c!==""&&l.push(c);const d=l.length;if(d===0)return[];if(l[0]===e)return[t];const u=l[0],f=t.getParent();let g;const m=t.getFormat(),h=t.getStyle(),v=t.__detail;let b=!1;t.isSegmented()?(g=zo(u),g.__format=m,g.__style=h,g.__detail=v,b=!0):(g=t.getWritable(),g.__text=u);const _=Pn(),R=[g];let x=u.length;for(let w=1;w<d;w++){const O=l[w],I=O.length,L=zo(O).getWritable();L.__format=m,L.__style=h,L.__detail=v;const M=L.__key,A=x+I;if(sn(_)){const k=_.anchor,J=_.focus;k.key===s&&k.type==="text"&&k.offset>x&&k.offset<=A&&(k.key=M,k.offset-=x,_.dirty=!0),J.key===s&&J.type==="text"&&J.offset>x&&J.offset<=A&&(J.key=M,J.offset-=x,_.dirty=!0)}i===s&&Ao(M),x=A,R.push(L)}if(f!==null){(function(I){const L=I.getPreviousSibling(),M=I.getNextSibling();L!==null&&au(L),M!==null&&au(M)})(this);const w=f.getWritable(),O=this.getIndexWithinParent();b?(w.splice(O,0,R),this.remove()):w.splice(O,1,R),sn(_)&&Su(_,f,O,d-1)}return R}mergeWithSibling(a){const t=a===this.getPreviousSibling();t||a===this.getNextSibling()||pn(50);const e=this.__key,s=a.__key,i=this.__text,r=i.length;As()===s&&Ao(e);const l=Pn();if(sn(l)){const u=l.anchor,f=l.focus;u!==null&&u.key===s&&(Ch(u,t,e,a,r),l.dirty=!0),f!==null&&f.key===s&&(Ch(f,t,e,a,r),l.dirty=!0)}const n=a.__text,c=t?n+i:i+n;this.setTextContent(c);const d=this.getWritable();return a.remove(),d}isTextEntity(){return!1}}function h0(o){return{forChild:Gd(o.style),node:null}}function g0(o){const a=o,t=a.style.fontWeight==="normal";return{forChild:Gd(a.style,t?void 0:"bold"),node:null}}const ph=new WeakMap;function m0(o){return o.nodeName==="PRE"||o.nodeType===ic&&o.style!==void 0&&o.style.whiteSpace!==void 0&&o.style.whiteSpace.startsWith("pre")}function y0(o){const a=o;o.parentElement===null&&pn(129);let t=a.textContent||"";if(function(e){let s,i=e.parentNode;const r=[e];for(;i!==null&&(s=ph.get(i))===void 0&&!m0(i);)r.push(i),i=i.parentNode;const l=s===void 0?i:s;for(let n=0;n<r.length;n++)ph.set(r[n],l);return l}(a)!==null){const e=t.split(/(\r?\n|\t)/),s=[],i=e.length;for(let r=0;r<i;r++){const l=e[r];l===`
|
|
35
35
|
`||l===`\r
|
|
36
|
-
`?
|
|
37
|
-
`),
|
|
38
|
-
`||
|
|
39
|
-
`?r.push(xt()):s===" "?r.push(gn()):r.push(Ce(s))}this.insertNodes(r)}insertText(e){const t=this.anchor,r=this.focus,o=this.format,i=this.style;let s=t,l=r;!this.isCollapsed()&&r.isBefore(t)&&(s=r,l=t),s.type==="element"&&function(m,T,v,y){const b=m.getNode(),x=b.getChildAtIndex(m.offset),C=Ce(),N=Ee(b)?Ve().append(C):C;C.setFormat(v),C.setStyle(y),x===null?b.append(N):x.insertBefore(N),m.is(T)&&T.set(C.__key,0,"text"),m.set(C.__key,0,"text")}(s,l,o,i);const a=s.offset;let c=l.offset;const u=this.getNodes(),d=u.length;let f=u[0];D(f)||R(26);const h=f.getTextContent().length,p=f.getParentOrThrow();let g=u[d-1];if(d===1&&l.type==="element"&&(c=h,l.set(s.key,c,"text")),this.isCollapsed()&&a===h&&(f.isSegmented()||f.isToken()||!f.canInsertTextAfter()||!p.canInsertTextAfter()&&f.getNextSibling()===null)){let m=f.getNextSibling();if(D(m)&&m.canInsertTextBefore()&&!Ot(m)||(m=Ce(),m.setFormat(o),m.setStyle(i),p.canInsertTextAfter()?f.insertAfter(m):p.insertAfter(m)),m.select(0,0),f=m,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&a===0&&(f.isSegmented()||f.isToken()||!f.canInsertTextBefore()||!p.canInsertTextBefore()&&f.getPreviousSibling()===null)){let m=f.getPreviousSibling();if(D(m)&&!Ot(m)||(m=Ce(),m.setFormat(o),p.canInsertTextBefore()?f.insertBefore(m):p.insertBefore(m)),m.select(),f=m,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&a!==h){const m=Ce(f.getTextContent());m.setFormat(o),f.replace(m),f=m}else if(!this.isCollapsed()&&e!==""){const m=g.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||E(m)&&(!m.canInsertTextBefore()||!m.canInsertTextAfter()))return this.insertText(""),xs(this.anchor,this.focus,null),void this.insertText(e)}if(d===1){if(f.isToken()){const y=Ce(e);return y.select(),void f.replace(y)}const m=f.getFormat(),T=f.getStyle();if(a!==c||m===o&&T===i){if(Va(f)){const y=Ce(e);return y.setFormat(o),y.setStyle(i),y.select(),void f.replace(y)}}else{if(f.getTextContent()!==""){const y=Ce(e);if(y.setFormat(o),y.setStyle(i),y.select(),a===0)f.insertBefore(y,!1);else{const[b]=f.splitText(a);b.insertAfter(y,!1)}return void(y.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(o),f.setStyle(i)}const v=c-a;f=f.spliceText(a,v,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=m,this.style=T))}else{const m=new Set([...f.getParentKeys(),...g.getParentKeys()]),T=E(f)?f:f.getParentOrThrow();let v=E(g)?g:g.getParentOrThrow(),y=g;if(!T.is(v)&&v.isInline())do y=v,v=v.getParentOrThrow();while(v.isInline());if(l.type==="text"&&(c!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<c)if(D(g)&&!g.isToken()&&c!==g.getTextContentSize()){if(g.isSegmented()){const w=Ce(g.getTextContent());g.replace(w),g=w}Ee(l.getNode())||l.type!=="text"||(g=g.spliceText(0,c,"")),m.add(g.__key)}else{const w=g.getParentOrThrow();w.canBeEmpty()||w.getChildrenSize()!==1?g.remove():w.remove()}else m.add(g.__key);const b=v.getChildren(),x=new Set(u),C=T.is(v),N=T.isInline()&&f.getNextSibling()===null?T:f;for(let w=b.length-1;w>=0;w--){const O=b[w];if(O.is(f)||E(O)&&O.isParentOf(f))break;O.isAttached()&&(!x.has(O)||O.is(y)?C||N.insertAfter(O,!1):O.remove())}if(!C){let w=v,O=null;for(;w!==null;){const z=w.getChildren(),X=z.length;(X===0||z[X-1].is(O))&&(m.delete(w.__key),O=w),w=w.getParent()}}if(f.isToken())if(a===h)f.select();else{const w=Ce(e);w.select(),f.replace(w)}else f=f.spliceText(a,h-a,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let w=1;w<d;w++){const O=u[w],z=O.__key;m.has(z)||O.remove()}}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())return this.toggleFormat(e),void Te(null);const t=this.getNodes(),r=[];for(const v of t)D(v)&&r.push(v);const o=r.length;if(o===0)return this.toggleFormat(e),void Te(null);const i=this.anchor,s=this.focus,l=this.isBackward(),a=l?s:i,c=l?i:s;let u=0,d=r[0],f=a.type==="element"?0:a.offset;if(a.type==="text"&&f===d.getTextContentSize()&&(u=1,d=r[1],f=0),d==null)return;const h=d.getFormatFlags(e,null),p=o-1;let g=r[p];const m=c.type==="text"?c.offset:g.getTextContentSize();if(d.is(g)){if(f===m)return;if(Ot(d)||f===0&&m===d.getTextContentSize())d.setFormat(h);else{const v=d.splitText(f,m),y=f===0?v[0]:v[1];y.setFormat(h),a.type==="text"&&a.set(y.__key,0,"text"),c.type==="text"&&c.set(y.__key,m-f,"text")}return void(this.format=h)}f===0||Ot(d)||([,d]=d.splitText(f),f=0),d.setFormat(h);const T=g.getFormatFlags(e,h);m>0&&(m===g.getTextContentSize()||Ot(g)||([g]=g.splitText(m)),g.setFormat(T));for(let v=u+1;v<p;v++){const y=r[v],b=y.getFormatFlags(e,T);y.setFormat(b)}a.type==="text"&&a.set(d.__key,f,"text"),c.type==="text"&&c.set(g.__key,m,"text"),this.format=h|T}insertNodes(e){if(e.length===0)return;if(this.anchor.key==="root"){this.insertParagraph();const h=B();return I(h)||R(134),h.insertNodes(e)}const t=to((this.isBackward()?this.focus:this.anchor).getNode(),Rt),r=e[e.length-1];if("__language"in t&&E(t)){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Eo(this);t.splice(h,0,e),r.selectEnd()}return}if(!e.some(h=>(E(h)||se(h))&&!h.isInline())){E(t)||R(135);const h=Eo(this);return t.splice(h,0,e),void r.selectEnd()}const o=function(h){const p=Ve();let g=null;for(let m=0;m<h.length;m++){const T=h[m],v=Lt(T);if(v||se(T)&&T.isInline()||E(T)&&T.isInline()||D(T)||T.isParentRequired()){if(g===null&&(g=T.createParentElementNode(),p.append(g),v))continue;g!==null&&g.append(T)}else p.append(T),g=null}return p}(e),i=o.getLastDescendant(),s=o.getChildren(),l=!E(t)||!t.isEmpty()?this.insertParagraph():null,a=s[s.length-1];let c=s[0];var u;E(u=c)&&Rt(u)&&!u.isEmpty()&&E(t)&&(!t.isEmpty()||t.canMergeWhenEmpty())&&(E(t)||R(135),t.append(...c.getChildren()),c=s[1]),c&&function(h,p,g){const m=p.getParentOrThrow().getLastChild();let T=p;const v=[p];for(;T!==m;)T.getNextSibling()||R(140),T=T.getNextSibling(),v.push(T);let y=h;for(const b of v)y=y.insertAfter(b)}(t,c);const d=to(i,Rt);l&&E(d)&&(l.canMergeWhenEmpty()||Rt(a))&&(d.append(...l.getChildren()),l.remove()),E(t)&&t.isEmpty()&&t.remove(),i.selectEnd();const f=E(t)?t.getLastChild():null;Lt(f)&&d!==t&&f.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Ve();return ge().splice(this.anchor.offset,0,[s]),s.select(),s}const e=Eo(this),t=to(this.anchor.getNode(),Rt);E(t)||R(136);const r=t.getChildAtIndex(e),o=r?[r,...r.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(e){const t=xt();if(this.insertNodes([t]),e){const r=t.getParentOrThrow(),o=t.getIndexWithinParent();r.select(o,o)}}extract(){const e=this.getNodes(),t=e.length,r=t-1,o=this.anchor,i=this.focus;let s=e[0],l=e[r];const[a,c]=To(this);if(t===0)return[];if(t===1){if(D(s)&&!this.isCollapsed()){const d=a>c?c:a,f=a>c?a:c,h=s.splitText(d,f),p=d===0?h[0]:h[1];return p!=null?[p]:[]}return[s]}const u=o.isBefore(i);if(D(s)){const d=u?a:c;d===s.getTextContentSize()?e.shift():d!==0&&([,s]=s.splitText(d),e[0]=s)}if(D(l)){const d=l.getTextContent().length,f=u?c:a;f===0?e.pop():f!==d&&([l]=l.splitText(f),e[r]=l)}return e}modify(e,t,r){const o=this.focus,i=this.anchor,s=e==="move",l=on(o,t);if(se(l)&&!l.isIsolated()){if(s&&l.isKeyboardSelectable()){const h=Cs();return h.add(l.__key),void He(h)}const f=t?l.getPreviousSibling():l.getNextSibling();if(D(f)){const h=f.__key,p=t?f.getTextContent().length:0;return o.set(h,p,"text"),void(s&&i.set(h,p,"text"))}{const h=l.getParentOrThrow();let p,g;return E(f)?(g=f.__key,p=t?f.getChildrenSize():0):(p=l.getIndexWithinParent(),g=h.__key,t||p++),o.set(g,p,"element"),void(s&&i.set(g,p,"element"))}}const a=pe(),c=Ye(a._window);if(!c)return;const u=a._blockCursorElement,d=a._rootElement;if(d===null||u===null||!E(l)||l.isInline()||l.canBeEmpty()||Qr(u,a,d),function(f,h,p,g){f.modify(h,p,g)}(c,e,t?"backward":"forward",r),c.rangeCount>0){const f=c.getRangeAt(0),h=this.anchor.getNode(),p=Ee(h)?h:Ra(h);if(this.applyDOMRange(f),this.dirty=!0,!s){const g=this.getNodes(),m=[];let T=!1;for(let v=0;v<g.length;v++){const y=g[v];Jr(y,p)?m.push(y):T=!0}if(T&&m.length>0)if(t){const v=m[0];E(v)?v.selectStart():v.getParentOrThrow().selectStart()}else{const v=m[m.length-1];E(v)?v.selectEnd():v.getParentOrThrow().selectEnd()}c.anchorNode===f.startContainer&&c.anchorOffset===f.startOffset||function(v){const y=v.focus,b=v.anchor,x=b.key,C=b.offset,N=b.type;ft(b,y.key,y.offset,y.type),ft(y,x,C,N),v._cachedNodes=null}(this)}}}forwardDeletion(e,t,r){if(!r&&(e.type==="element"&&E(t)&&e.offset===t.getChildrenSize()||e.type==="text"&&e.offset===t.getTextContentSize())){const o=t.getParent(),i=t.getNextSibling()||(o===null?null:o.getNextSibling());if(E(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,e))return;const i=this.focus,s=on(i,e);if(se(s)&&!s.isIsolated()){if(s.isKeyboardSelectable()&&E(o)&&o.getChildrenSize()===0){o.remove();const l=Cs();l.add(s.__key),He(l)}else s.remove(),pe().dispatchCommand(Pn,void 0);return}if(!e&&E(s)&&E(o)&&o.isEmpty())return o.remove(),void s.selectStart();if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&(r.type==="element"?r.getNode():r.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const l=i.type==="text"?i.getNode():null;if(o=r.type==="text"?r.getNode():null,l!==null&&l.isSegmented()){const a=i.offset,c=l.getTextContentSize();if(l.is(o)||e&&a!==c||!e&&a!==0)return void _s(l,e,a)}else if(o!==null&&o.isSegmented()){const a=r.offset,c=o.getTextContentSize();if(o.is(l)||e&&a!==0||!e&&a!==c)return void _s(o,e,a)}(function(a,c){const u=a.anchor,d=a.focus,f=u.getNode(),h=d.getNode();if(f===h&&u.type==="text"&&d.type==="text"){const p=u.offset,g=d.offset,m=p<g,T=m?p:g,v=m?g:p,y=v-1;T!==y&&(Mi(f.getTextContent().slice(T,v))||(c?d.offset=y:u.offset=y))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Ee(r.getParent())&&r.getIndexWithinParent()===0&&r.collapseAtStart(this)}}deleteLine(e){if(this.isCollapsed()){const t=this.anchor.type==="element";if(t&&this.insertText(" "),this.modify("extend",e,"lineboundary"),(e?this.focus:this.anchor).offset===0&&this.modify("extend",e,"character"),t){const r=e?this.anchor:this.focus;r.set(r.key,r.offset+1,r.type)}}this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function $e(n){return n instanceof or}function ms(n){const e=n.offset;if(n.type==="text")return e;const t=n.getNode();return e===t.getChildrenSize()?t.getTextContent().length:0}function To(n){const e=n.getStartEndPoints();if(e===null)return[0,0];const[t,r]=e;return t.type==="element"&&r.type==="element"&&t.key===r.key&&t.offset===r.offset?[0,0]:[ms(t),ms(r)]}function _s(n,e,t){const r=n,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,l=0;for(let c=0;c<i;c++){const u=c===i-1;if(l=s,s+=o[c].length,e&&s===t||s>t||u){o.splice(c,1),u&&(l=void 0);break}}const a=o.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(l,l))}function ys(n,e,t,r){let o,i=e;if(n.nodeType===Qt){let s=!1;const l=n.childNodes,a=l.length,c=r._blockCursorElement;i===a&&(s=!0,i=a-1);let u=l[i],d=!1;if(u===c)u=l[i+1],d=!0;else if(c!==null){const f=c.parentNode;n===f&&e>Array.prototype.indexOf.call(f.children,c)&&i--}if(o=At(u),D(o))i=Di(o,s);else{let f=At(n);if(f===null)return null;if(E(f)){i=Math.min(f.getChildrenSize(),i);let h=f.getChildAtIndex(i);if(E(h)&&function(p,g,m){const T=p.getParent();return m===null||T===null||!T.canBeEmpty()||T!==m.getNode()}(h,0,t)){const p=s?h.getLastDescendant():h.getFirstDescendant();p===null?f=h:(h=p,f=E(h)?h:h.getParentOrThrow()),i=0}D(h)?(o=h,f=null,i=Di(h,s)):h!==f&&s&&!d&&i++}else{const h=f.getIndexWithinParent();i=e===0&&se(f)&&At(n)===f?h:h+1,f=f.getParentOrThrow()}if(E(f))return qe(f.__key,i,"element")}}else o=At(n);return D(o)?qe(o.__key,i,"text"):null}function vs(n,e,t){const r=n.offset,o=n.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(e){if((t||!e)&&i===null&&E(s)&&s.isInline()){const l=s.getPreviousSibling();D(l)&&(n.key=l.__key,n.offset=l.getTextContent().length)}}else E(i)&&!t&&i.isInline()?(n.key=i.__key,n.offset=i.getChildrenSize(),n.type="element"):D(i)&&(n.key=i.__key,n.offset=i.getTextContent().length)}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(e&&E(i)&&i.isInline())n.key=i.__key,n.offset=0,n.type="element";else if((t||e)&&i===null&&E(s)&&s.isInline()&&!s.canInsertTextAfter()){const l=s.getNextSibling();D(l)&&(n.key=l.__key,n.offset=0)}}}function xs(n,e,t){if(n.type==="text"&&e.type==="text"){const r=n.isBefore(e),o=n.is(e);vs(n,r,o),vs(e,!r,o),o&&(e.key=n.key,e.offset=n.offset,e.type=n.type);const i=pe();if(i.isComposing()&&i._compositionKey!==n.key&&I(t)){const s=t.anchor,l=t.focus;ft(n,s.key,s.offset,s.type),ft(e,l.key,l.offset,l.type)}}}function Ts(n,e,t,r,o,i){if(n===null||t===null||!Zt(o,n,t))return null;const s=ys(n,e,I(i)?i.anchor:null,o);if(s===null)return null;const l=ys(t,r,I(i)?i.focus:null,o);if(l===null)return null;if(s.type==="element"&&l.type==="element"){const a=At(n),c=At(t);if(se(a)&&se(c))return null}return xs(s,l,i),[s,l]}function bo(n){return E(n)&&!n.isInline()}function bs(n,e,t,r,o,i){const s=et(),l=new dt(qe(n,e,o),qe(t,r,i),0,"");return l.dirty=!0,s._selection=l,l}function Ga(){const n=qe("root",0,"element"),e=qe("root",0,"element");return new dt(n,e,0,"")}function Cs(){return new or(new Set)}function Co(n,e,t,r){const o=t._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,l=s==="selectionchange",a=!Br&&(l||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let c,u,d,f;if(I(n)&&!a)return n.clone();if(e===null)return null;if(c=e.anchorNode,u=e.focusNode,d=e.anchorOffset,f=e.focusOffset,l&&I(n)&&!Zt(t,c,u))return n.clone();const h=Ts(c,d,u,f,t,n);if(h===null)return null;const[p,g]=h;return new dt(p,g,I(n)?n.format:0,I(n)?n.style:"")}function B(){return et()._selection}function mn(){return pe()._editorState._selection}function ir(n,e,t,r=1){const o=n.anchor,i=n.focus,s=o.getNode(),l=i.getNode();if(!e.is(s)&&!e.is(l))return;const a=e.__key;if(n.isCollapsed()){const c=o.offset;if(t<=c&&r>0||t<c&&r<0){const u=Math.max(0,c+r);o.set(a,u,"element"),i.set(a,u,"element"),Es(n)}}else{const c=n.isBackward(),u=c?i:o,d=u.getNode(),f=c?o:i,h=f.getNode();if(e.is(d)){const p=u.offset;(t<=p&&r>0||t<p&&r<0)&&u.set(a,Math.max(0,p+r),"element")}if(e.is(h)){const p=f.offset;(t<=p&&r>0||t<p&&r<0)&&f.set(a,Math.max(0,p+r),"element")}}Es(n)}function Es(n){const e=n.anchor,t=e.offset,r=n.focus,o=r.offset,i=e.getNode(),s=r.getNode();if(n.isCollapsed()){if(!E(i))return;const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(D(c)){let u=0;a&&(u=c.getTextContentSize()),e.set(c.__key,u,"text"),r.set(c.__key,u,"text")}}else{if(E(i)){const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(D(c)){let u=0;a&&(u=c.getTextContentSize()),e.set(c.__key,u,"text")}}if(E(s)){const l=s.getChildrenSize(),a=o>=l,c=a?s.getChildAtIndex(l-1):s.getChildAtIndex(o);if(D(c)){let u=0;a&&(u=c.getTextContentSize()),r.set(c.__key,u,"text")}}}}function sr(n,e,t,r,o){let i=null,s=0,l=null;r!==null?(i=r.__key,D(r)?(s=r.getTextContentSize(),l="text"):E(r)&&(s=r.getChildrenSize(),l="element")):o!==null&&(i=o.__key,D(o)?l="text":E(o)&&(l="element")),i!==null&&l!==null?n.set(i,s,l):(s=e.getIndexWithinParent(),s===-1&&(s=t.getChildrenSize()),n.set(t.__key,s,"element"))}function Ss(n,e,t,r,o){n.type==="text"?(n.key=t,e||(n.offset+=o)):n.offset>r.getIndexWithinParent()&&(n.offset-=1)}function Xa(n,e,t,r,o,i,s){const l=r.anchorNode,a=r.focusNode,c=r.anchorOffset,u=r.focusOffset,d=document.activeElement;if(o.has("collaboration")&&d!==i||d!==null&&zr(d))return;if(!I(e))return void(n!==null&&Zt(t,l,a)&&r.removeAllRanges());const f=e.anchor,h=e.focus,p=f.key,g=h.key,m=Hn(t,p),T=Hn(t,g),v=f.offset,y=h.offset,b=e.format,x=e.style,C=e.isCollapsed();let N=m,w=T,O=!1;if(f.type==="text"){N=$n(m);const ie=f.getNode();O=ie.getFormat()!==b||ie.getStyle()!==x}else I(n)&&n.anchor.type==="text"&&(O=!0);var z,X,he,le,H;if(h.type==="text"&&(w=$n(T)),N!==null&&w!==null&&(C&&(n===null||O||I(n)&&(n.format!==b||n.style!==x))&&(z=b,X=x,he=v,le=p,H=performance.now(),ts=[z,X,he,le,H]),c!==v||u!==y||l!==N||a!==w||r.type==="Range"&&C||(d!==null&&i.contains(d)||i.focus({preventScroll:!0}),f.type==="element"))){try{r.setBaseAndExtent(N,v,w,y)}catch{}if(!o.has("skip-scroll-into-view")&&e.isCollapsed()&&i!==null&&i===document.activeElement){const ie=e instanceof dt&&e.anchor.type==="element"?N.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(ie!==null){let ue;if(ie instanceof Text){const be=document.createRange();be.selectNode(ie),ue=be.getBoundingClientRect()}else ue=ie.getBoundingClientRect();(function(be,De,nt){const k=nt.ownerDocument,F=k.defaultView;if(F===null)return;let{top:J,bottom:q}=De,$=0,Q=0,W=nt;for(;W!==null;){const Y=W===k.body;if(Y)$=0,Q=Kn(be).innerHeight;else{const Z=W.getBoundingClientRect();$=Z.top,Q=Z.bottom}let V=0;if(J<$?V=-($-J):q>Q&&(V=q-Q),V!==0)if(Y)F.scrollBy(0,V);else{const Z=W.scrollTop;W.scrollTop+=V;const G=W.scrollTop-Z;J-=G,q-=G}if(Y)break;W=Yn(W)}})(t,ue,i)}}ho=!0}}function Qa(n){let e=B()||mn();e===null&&(e=ge().selectEnd()),e.insertNodes(n)}function Eo(n){let e=n;n.isCollapsed()||e.removeText();const t=B();I(t)&&(e=t),I(e)||R(161);const r=e.anchor;let o=r.getNode(),i=r.offset;for(;!Rt(o);)[o,i]=Za(o,i);return i}function Za(n,e){const t=n.getParent();if(!t){const o=Ve();return ge().append(o),o.select(),[ge(),0]}if(D(n)){const o=n.splitText(e);if(o.length===0)return[t,n.getIndexWithinParent()];const i=e===0?0:1;return[t,o[0].getIndexWithinParent()+i]}if(!E(n)||e===0)return[t,n.getIndexWithinParent()];const r=n.getChildAtIndex(e);if(r){const o=new dt(qe(n.__key,e,"element"),qe(n.__key,e,"element"),0,""),i=n.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[t,n.getIndexWithinParent()+1]}let ve=null,xe=null,Oe=!1,So=!1,lr=0;const ws={characterData:!0,childList:!0,subtree:!0};function _n(){return Oe||ve!==null&&ve._readOnly}function Ae(){Oe&&R(13)}function ks(){lr>99&&R(14)}function et(){return ve===null&&R(195,Ps()),ve}function pe(){return xe===null&&R(196,Ps()),xe}function Ps(){let n=0;const e=new Set,t=ur.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=Wn(o);if(Ur(i))n++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===t&&(s+=" (separately built, likely a bundler configuration issue)"),e.add(s)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${t}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function ec(){return xe}function Ns(n,e,t){const r=e.__type,o=function(l,a){const c=l._nodes.get(a);return c===void 0&&R(30,a),c}(n,r);let i=t.get(r);i===void 0&&(i=Array.from(o.transforms),t.set(r,i));const s=i.length;for(let l=0;l<s&&(i[l](e),e.isAttached());l++);}function Os(n,e){return n!==void 0&&n.__key!==e&&n.isAttached()}function tc(n){return wo(n,pe()._nodes)}function wo(n,e){const t=n.type,r=e.get(t);r===void 0&&R(17,t);const o=r.klass;n.type!==o.getType()&&R(18,o.name);const i=o.importJSON(n),s=n.children;if(E(i)&&Array.isArray(s))for(let l=0;l<s.length;l++){const a=wo(s[l],e);i.append(a)}return i}function As(n,e,t){const r=ve,o=Oe,i=xe;ve=e,Oe=!0,xe=n;try{return t()}finally{ve=r,Oe=o,xe=i}}function ht(n,e){const t=n._pendingEditorState,r=n._rootElement,o=n._headless||r===null;if(t===null)return;const i=n._editorState,s=i._selection,l=t._selection,a=n._dirtyType!==gt,c=ve,u=Oe,d=xe,f=n._updating,h=n._observer;let p=null;if(n._pendingEditorState=null,n._editorState=t,!o&&a&&h!==null){xe=n,ve=t,Oe=!1,n._updating=!0;try{const C=n._dirtyType,N=n._dirtyElements,w=n._dirtyLeaves;h.disconnect(),p=Wa(i,t,n,C,N,w)}catch(C){if(C instanceof Error&&n._onError(C),So)throw C;return js(n,null,r,t),Ci(n),n._dirtyType=Nt,So=!0,ht(n,i),void(So=!1)}finally{h.observe(r,ws),n._updating=f,ve=c,Oe=u,xe=d}}t._readOnly||(t._readOnly=!0);const g=n._dirtyLeaves,m=n._dirtyElements,T=n._normalizedNodes,v=n._updateTags,y=n._deferred;a&&(n._dirtyType=gt,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements=new Map,n._normalizedNodes=new Set,n._updateTags=new Set),function(C,N){const w=C._decorators;let O=C._pendingDecorators||w;const z=N._nodeMap;let X;for(X in O)z.has(X)||(O===w&&(O=Ai(C)),delete O[X])}(n,t);const b=o?null:Ye(n._window);if(n._editable&&b!==null&&(a||l===null||l.dirty)){xe=n,ve=t;try{if(h!==null&&h.disconnect(),a||l===null||l.dirty){const C=n._blockCursorElement;C!==null&&Qr(C,n,r),Xa(s,l,n,b,v,r)}Da(n,r,l),h!==null&&h.observe(r,ws)}finally{xe=d,ve=c}}p!==null&&function(C,N,w,O,z){const X=Array.from(C._listeners.mutation),he=X.length;for(let le=0;le<he;le++){const[H,ie]=X[le],ue=N.get(ie);ue!==void 0&&H(ue,{dirtyLeaves:O,prevEditorState:z,updateTags:w})}}(n,p,v,g,i),I(l)||l===null||s!==null&&s.is(l)||n.dispatchCommand(Pn,void 0);const x=n._pendingDecorators;x!==null&&(n._decorators=x,n._pendingDecorators=null,yn("decorator",n,!0,x)),function(C,N,w){const O=Ii(N),z=Ii(w);O!==z&&yn("textcontent",C,!0,z)}(n,e||i,t),yn("update",n,!0,{dirtyElements:m,dirtyLeaves:g,editorState:t,normalizedNodes:T,prevEditorState:e||i,tags:v}),function(C,N){if(C._deferred=[],N.length!==0){const w=C._updating;C._updating=!0;try{for(let O=0;O<N.length;O++)N[O]()}finally{C._updating=w}}}(n,y),function(C){const N=C._updates;if(N.length!==0){const w=N.shift();if(w){const[O,z]=w;Ds(C,O,z)}}}(n)}function yn(n,e,t,...r){const o=e._updating;e._updating=t;try{const i=Array.from(e._listeners[n]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{e._updating=o}}function Is(n,e,t){if(n._updating===!1||xe!==n){let o=!1;return n.update(()=>{o=Is(n,e,t)}),o}const r=Yr(n);for(let o=4;o>=0;o--)for(let i=0;i<r.length;i++){const s=r[i]._commands.get(e);if(s!==void 0){const l=s[o];if(l!==void 0){const a=Array.from(l),c=a.length;for(let u=0;u<c;u++)if(a[u](t,n)===!0)return!0}}}return!1}function Rs(n,e){const t=n._updates;let r=e||!1;for(;t.length!==0;){const o=t.shift();if(o){const[i,s]=o;let l,a;if(s!==void 0){if(l=s.onUpdate,a=s.tag,s.skipTransforms&&(r=!0),s.discrete){const c=n._pendingEditorState;c===null&&R(191),c._flushSync=!0}l&&n._deferred.push(l),a&&n._updateTags.add(a)}i()}}return r}function Ds(n,e,t){const r=n._updateTags;let o,i,s=!1,l=!1;t!==void 0&&(o=t.onUpdate,i=t.tag,i!=null&&r.add(i),s=t.skipTransforms||!1,l=t.discrete||!1),o&&n._deferred.push(o);const a=n._editorState;let c=n._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=n._pendingEditorState=new cr(new Map((c||a)._nodeMap)),u=!0),c._flushSync=l;const d=ve,f=Oe,h=xe,p=n._updating;ve=c,Oe=!1,n._updating=!0,xe=n;try{u&&(n._headless?a._selection!==null&&(c._selection=a._selection.clone()):c._selection=function(v){const y=v.getEditorState()._selection,b=Ye(v._window);return I(y)||y==null?Co(y,b,v,null):y.clone()}(n));const m=n._compositionKey;e(),s=Rs(n,s),function(v,y){const b=y.getEditorState()._selection,x=v._selection;if(I(x)){const C=x.anchor,N=x.focus;let w;if(C.type==="text"&&(w=C.getNode(),w.selectionTransform(b,x)),N.type==="text"){const O=N.getNode();w!==O&&O.selectionTransform(b,x)}}}(c,n),n._dirtyType!==gt&&(s?function(v,y){const b=y._dirtyLeaves,x=v._nodeMap;for(const C of b){const N=x.get(C);D(N)&&N.isAttached()&&N.isSimpleText()&&!N.isUnmergeable()&&wi(N)}}(c,n):function(v,y){const b=y._dirtyLeaves,x=y._dirtyElements,C=v._nodeMap,N=at(),w=new Map;let O=b,z=O.size,X=x,he=X.size;for(;z>0||he>0;){if(z>0){y._dirtyLeaves=new Set;for(const le of O){const H=C.get(le);D(H)&&H.isAttached()&&H.isSimpleText()&&!H.isUnmergeable()&&wi(H),H!==void 0&&Os(H,N)&&Ns(y,H,w),b.add(le)}if(O=y._dirtyLeaves,z=O.size,z>0){lr++;continue}}y._dirtyLeaves=new Set,y._dirtyElements=new Map;for(const le of X){const H=le[0],ie=le[1];if(H!=="root"&&!ie)continue;const ue=C.get(H);ue!==void 0&&Os(ue,N)&&Ns(y,ue,w),x.set(H,ie)}O=y._dirtyLeaves,z=O.size,X=y._dirtyElements,he=X.size,lr++}y._dirtyLeaves=b,y._dirtyElements=x}(c,n),Rs(n),function(v,y,b,x){const C=v._nodeMap,N=y._nodeMap,w=[];for(const[O]of x){const z=N.get(O);z!==void 0&&(z.isAttached()||(E(z)&&Yi(z,O,C,N,w,x),C.has(O)||x.delete(O),w.push(O)))}for(const O of w)N.delete(O);for(const O of b){const z=N.get(O);z===void 0||z.isAttached()||(C.has(O)||b.delete(O),N.delete(O))}}(a,c,n._dirtyLeaves,n._dirtyElements)),m!==n._compositionKey&&(c._flushSync=!0);const T=c._selection;if(I(T)){const v=c._nodeMap,y=T.anchor.key,b=T.focus.key;v.get(y)!==void 0&&v.get(b)!==void 0||R(19)}else $e(T)&&T._nodes.size===0&&(c._selection=null)}catch(m){return m instanceof Error&&n._onError(m),n._pendingEditorState=a,n._dirtyType=Nt,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void ht(n)}finally{ve=d,Oe=f,xe=h,n._updating=p,lr=0}n._dirtyType!==gt||function(m,T){const v=T.getEditorState()._selection,y=m._selection;if(y!==null){if(y.dirty||!y.is(v))return!0}else if(v!==null)return!0;return!1}(c,n)?c._flushSync?(c._flushSync=!1,ht(n)):u&&Pa(()=>{ht(n)}):(c._flushSync=!1,u&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function Re(n,e,t){n._updating?n._updates.push([e,t]):Ds(n,e,t)}class ar extends tr{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return va[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const e=pe()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;t!==null;){if(D(t)&&e.push(t),E(t)){const r=t.getAllTextNodes();e.push(...r)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;E(e);){const t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;E(e);){const t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),r=t.length;if(e>=r){const i=t[r-1];return E(i)&&i.getLastDescendant()||i||null}const o=t[e];return E(o)&&o.getFirstDescendant()||o||null}getFirstChild(){const e=this.getLatest().__first;return e===null?null:we(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return e===null&&R(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return e===null?null:we(e)}getLastChildOrThrow(){const e=this.getLastChild();return e===null&&R(96,this.__key),e}getChildAtIndex(e){const t=this.getChildrenSize();let r,o;if(e<t/2){for(r=this.getFirstChild(),o=0;r!==null&&o<=e;){if(o===e)return r;r=r.getNextSibling(),o++}return null}for(r=this.getLastChild(),o=t-1;r!==null&&o>=e;){if(o===e)return r;r=r.getPreviousSibling(),o--}return null}getTextContent(){let e="";const t=this.getChildren(),r=t.length;for(let o=0;o<r;o++){const i=t[o];e+=i.getTextContent(),E(i)&&o!==r-1&&!i.isInline()&&(e+=Ge)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),r=t.length;for(let o=0;o<r;o++){const i=t[o];e+=i.getTextContentSize(),E(i)&&o!==r-1&&!i.isInline()&&(e+=Ge.length)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){if(e!==""){const t=xi[e];return!!(this.getFormat()&t)}return!1}select(e,t){Ae();const r=B();let o=e,i=t;const s=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&t===0){const a=this.getFirstChild();if(D(a)||E(a))return a.select(0,0)}else if(!(e!==void 0&&e!==s||t!==void 0&&t!==s)){const a=this.getLastChild();if(D(a)||E(a))return a.select()}}o===void 0&&(o=s),i===void 0&&(i=s);const l=this.__key;return I(r)?(r.anchor.set(l,o,"element"),r.focus.set(l,i,"element"),r.dirty=!0,r):bs(l,o,l,i,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(t=>t.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=e!==""?xi[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,r){const o=r.length,i=this.getChildrenSize(),s=this.getWritable(),l=s.__key,a=[],c=[],u=this.getChildAtIndex(e+t);let d=null,f=i-t+o;if(e!==0)if(e===i)d=this.getLastChild();else{const p=this.getChildAtIndex(e);p!==null&&(d=p.getPreviousSibling())}if(t>0){let p=d===null?this.getFirstChild():d.getNextSibling();for(let g=0;g<t;g++){p===null&&R(100);const m=p.getNextSibling(),T=p.__key;mt(p.getWritable()),c.push(T),p=m}}let h=d;for(let p=0;p<o;p++){const g=r[p];h!==null&&g.is(h)&&(d=h=h.getPreviousSibling());const m=g.getWritable();m.__parent===l&&f--,mt(m);const T=g.__key;if(h===null)s.__first=T,m.__prev=null;else{const v=h.getWritable();v.__next=T,m.__prev=v.__key}g.__key===l&&R(76),m.__parent=l,a.push(T),h=g}if(e+t===i)h!==null&&(h.getWritable().__next=null,s.__last=h.__key);else if(u!==null){const p=u.getWritable();if(h!==null){const g=h.getWritable();p.__prev=h.__key,g.__next=u.__key}else p.__prev=null}if(s.__size=f,c.length){const p=B();if(I(p)){const g=new Set(c),m=new Set(a),{anchor:T,focus:v}=p;Ms(T,g,m)&&sr(T,T.getNode(),this,d,u),Ms(v,g,m)&&sr(v,v.getNode(),this,d,u),f!==0||this.canBeEmpty()||It(this)||this.remove()}}return s}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,r){return!1}canMergeWhenEmpty(){return!1}}function E(n){return n instanceof ar}function Ms(n,e,t){let r=n.getNode();for(;r;){const o=r.__key;if(e.has(o)&&!t.has(o))return!0;r=r.getParent()}return!1}class nc extends tr{constructor(e){super(e)}decorate(e,t){R(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function se(n){return n instanceof nc}class vn extends ar{static getType(){return"root"}static clone(){return new vn}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){R(51)}getTextContent(){const e=this.__cachedText;return!_n()&&pe()._dirtyType!==gt||e===null?super.getTextContent():e}remove(){R(52)}replace(e){R(53)}insertBefore(e){R(54)}insertAfter(e){R(55)}updateDOM(e,t){return!1}append(...e){for(let t=0;t<e.length;t++){const r=e[t];E(r)||se(r)||R(56)}return super.append(...e)}static importJSON(e){const t=ge();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function Ee(n){return n instanceof vn}function ko(){return new cr(new Map([["root",new vn]]))}function Ls(n){const e=n.exportJSON(),t=n.constructor;if(e.type!==t.getType()&&R(130,t.name),E(n)){const r=e.children;Array.isArray(r)||R(59,t.name);const o=n.getChildren();for(let i=0;i<o.length;i++){const s=Ls(o[i]);r.push(s)}}return e}class cr{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return As(t&&t.editor||null,this,e)}clone(e){const t=new cr(this._nodeMap,e===void 0?this._selection:e);return t._readOnly=!0,t}toJSON(){return As(null,this,()=>({root:Ls(ge())}))}}class Po extends ar{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class Ft extends ar{constructor(e){super(e),this.__textFormat=0,this.__textStyle=""}static getType(){return"paragraph"}getTextFormat(){return this.getLatest().__textFormat}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}hasTextFormat(e){const t=Xe[e];return!!(this.getTextFormat()&t)}getTextStyle(){return this.getLatest().__textStyle}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}static clone(e){return new Ft(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}createDOM(e){const t=document.createElement("p"),r=rn(e.theme,"paragraph");return r!==void 0&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:rc,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(t&&Zr(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();t.style.textAlign=r;const o=this.getDirection();o&&(t.dir=o);const i=this.getIndent();i>0&&(t.style.textIndent=20*i+"px")}return{element:t}}static importJSON(e){const t=Ve();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t.setTextFormat(e.textFormat),t}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle(),type:"paragraph",version:1}}insertNewAfter(e,t){const r=Ve();r.setTextFormat(e.format),r.setTextStyle(e.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getTextStyle()),this.insertAfter(r,t),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||D(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function rc(n){const e=Ve();if(n.style){e.setFormat(n.style.textAlign);const t=parseInt(n.style.textIndent,10)/20;t>0&&e.setIndent(t)}return{node:e}}function Ve(){return qn(new Ft)}function No(n){return n instanceof Ft}const ne=0,oc=4;function js(n,e,t,r){const o=n._keyToDOMMap;o.clear(),n._editorState=ko(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=gt,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,n._updateTags=new Set,n._updates=[],n._blockCursorElement=null;const i=n._observer;i!==null&&(i.disconnect(),n._observer=null),e!==null&&(e.textContent=""),t!==null&&(t.textContent="",o.set("root",t))}function Fs(n){const e=n||{},t=ec(),r=e.theme||{},o=n===void 0?t:e.parentEditor||null,i=e.disableEvents||!1,s=ko(),l=e.namespace||(o!==null?o._config.namespace:Li()),a=e.editorState,c=[vn,jt,hn,pn,Ft,Po,...e.nodes||[]],{onError:u,html:d}=e,f=e.editable===void 0||e.editable;let h;if(n===void 0&&t!==null)h=t._nodes;else{h=new Map;for(let g=0;g<c.length;g++){let m=c[g],T=null,v=null;if(typeof m!="function"){const C=m;m=C.replace,T=C.with,v=C.withKlass||null}const y=m.getType(),b=m.transform(),x=new Set;b!==null&&x.add(b),h.set(y,{exportDOM:d&&d.export?d.export.get(m):void 0,klass:m,replace:T,replaceWithKlass:v,transforms:x})}}const p=new ur(s,o,h,{disableEvents:i,namespace:l,theme:r},u||console.error,function(g,m){const T=new Map,v=new Set,y=b=>{Object.keys(b).forEach(x=>{let C=T.get(x);C===void 0&&(C=[],T.set(x,C)),C.push(b[x])})};return g.forEach(b=>{const x=b.klass.importDOM;if(x==null||v.has(x))return;v.add(x);const C=x.call(b.klass);C!==null&&y(C)}),m&&y(m),T}(h,d?d.import:void 0),f);return a!==void 0&&(p._pendingEditorState=a,p._dirtyType=Nt),p}class ur{constructor(e,t,r,o,i,s,l){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=gt,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Li(),this._onError=i,this._htmlConversions=s,this._editable=l,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){r===void 0&&R(35);const o=this._commands;o.has(e)||o.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(e);i===void 0&&R(36,String(e));const s=i[r];return s.add(t),()=>{s.delete(t),i.every(l=>l.size===0)&&o.delete(e)}}registerMutationListener(e,t,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;i.set(t,o);const s=r&&r.skipInitialization;return s===void 0||s||this.initializeMutationListener(t,o),()=>{i.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return t===void 0&&R(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const r=this._editorState,o=ja(r).get(t.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){const r=this.registerNodeTransformToKlass(e,t),o=[r],i=r.replaceWithKlass;if(i!=null){const a=this.registerNodeTransformToKlass(i,t);o.push(a)}var s,l;return s=this,l=e.getType(),Re(s,()=>{const a=et();if(a.isEmpty())return;if(l==="root")return void ge().markDirty();const c=a._nodeMap;for(const[,u]of c)u.markDirty()},s._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{o.forEach(a=>a.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return j(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const r=rn(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=e,js(this,t,e,o),t!==null&&(this._config.disableEvents||$a(t),r!=null&&t.classList.remove(...r)),e!==null){const i=function(l){const a=l.ownerDocument;return a&&a.defaultView||null}(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=Nt,Ci(this),this._updateTags.add("history-merge"),ht(this),this._config.disableEvents||function(l,a){const c=l.ownerDocument,u=er.get(c);(u===void 0||u<1)&&c.addEventListener("selectionchange",ls),er.set(c,(u||0)+1),l.__lexicalEditor=a;const d=ss(l);for(let f=0;f<fo.length;f++){const[h,p]=fo[f],g=typeof p=="function"?m=>{cs(m)||(as(m),(a.isEditable()||h==="click")&&p(m,a))}:m=>{if(cs(m))return;as(m);const T=a.isEditable();switch(h){case"cut":return T&&j(a,Pr,m);case"copy":return j(a,Rn,m);case"paste":return T&&j(a,wr,m);case"dragstart":return T&&j(a,pi,m);case"dragover":return T&&j(a,gi,m);case"dragend":return T&&j(a,na,m);case"focus":return T&&j(a,ia,m);case"blur":return T&&j(a,sa,m);case"drop":return T&&j(a,hi,m)}};l.addEventListener(h,g),d.push(()=>{l.removeEventListener(h,g)})}}(e,this),r!=null&&e.classList.add(...r)}else this._editorState=o,this._pendingEditorState=null,this._window=null;yn("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&R(38),bi(this);const r=this._pendingEditorState,o=this._updateTags,i=t!==void 0?t.tag:null;r===null||r.isEmpty()||(i!=null&&o.add(i),ht(this)),this._pendingEditorState=e,this._dirtyType=Nt,this._dirtyElements.set("root",!1),this._compositionKey=null,i!=null&&o.add(i),ht(this)}parseEditorState(e,t){return function(r,o,i){const s=ko(),l=ve,a=Oe,c=xe,u=o._dirtyElements,d=o._dirtyLeaves,f=o._cloneNotNeeded,h=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,ve=s,Oe=!1,xe=o;try{const p=o._nodes;wo(r.root,p),i&&i(),s._readOnly=!0}catch(p){p instanceof Error&&o._onError(p)}finally{o._dirtyElements=u,o._dirtyLeaves=d,o._cloneNotNeeded=f,o._dirtyType=h,ve=l,Oe=a,xe=c}return s}(typeof e=="string"?JSON.parse(e):e,this,t)}read(e){return ht(this),this.getEditorState().read(e,{editor:this})}update(e,t){Re(this,e,t)}focus(e,t={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Re(this,()=>{const o=B(),i=ge();o!==null?o.dirty=!0:i.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?i.selectStart():i.selectEnd())},{onUpdate:()=>{r.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const t=Ye(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,yn("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}ur.version="0.17.1+prod.esm";const zf="";function ic(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var sc=ic(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const Bs=A.createContext(null);function lc(n,e){let t=null;return n!=null&&(t=n[1]),{getTheme:function(){return e??(t!=null?t.getTheme():null)}}}function Tt(){const n=A.useContext(Bs);return n==null&&sc(8),n}const Ws=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ac=Ws?A.useLayoutEffect:A.useEffect,fr={tag:"history-merge"};function cc({initialConfig:n,children:e}){const t=A.useMemo(()=>{const{theme:r,namespace:o,nodes:i,onError:s,editorState:l,html:a}=n,c=lc(null,r),u=Fs({editable:n.editable,html:a,namespace:o,nodes:i,onError:d=>s(d,u),theme:r});return function(d,f){if(f!==null){if(f===void 0)d.update(()=>{const h=ge();if(h.isEmpty()){const p=Ve();h.append(p);const g=Ws?document.activeElement:null;(B()!==null||g!==null&&g===d.getRootElement())&&p.select()}},fr);else if(f!==null)switch(typeof f){case"string":{const h=d.parseEditorState(f);d.setEditorState(h,fr);break}case"object":d.setEditorState(f,fr);break;case"function":d.update(()=>{ge().isEmpty()&&f(d)},fr)}}}(u,l),[u,c]},[]);return ac(()=>{const r=n.editable,[o]=t;o.setEditable(r===void 0||r)},[]),S.jsx(Bs.Provider,{value:t,children:e})}function uc({defaultSelection:n}){const[e]=Tt();return A.useEffect(()=>{e.focus(()=>{const t=document.activeElement,r=e.getRootElement();r===null||t!==null&&r.contains(t)||r.focus({preventScroll:!0})},{defaultSelection:n})},[n,e]),null}function fc(){return ge().getTextContent()}function dc(n,e=!0){if(n)return!1;let t=fc();return e&&(t=t.trim()),t===""}function hc(n){if(!dc(n,!1))return!1;const e=ge().getChildren(),t=e.length;if(t>1)return!1;for(let r=0;r<t;r++){const o=e[r];if(se(o))return!1;if(E(o)){if(!No(o)||o.__indent!==0)return!1;const i=o.getChildren(),s=i.length;for(let l=0;l<s;l++){const a=i[r];if(!D(a))return!1}}}return!0}function $s(n){return()=>hc(n)}function pc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}pc(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function gc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var mc=gc(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const _c=new Map;function yc(n){const e={},t=n.split(";");for(const r of t)if(r!==""){const[o,i]=r.split(/:([^]+)/);o&&i&&(e[o.trim()]=i.trim())}return e}function zs(n,e){const t=n.getStartEndPoints();if(e.isSelected(n)&&!e.isSegmented()&&!e.isToken()&&t!==null){const[r,o]=t,i=n.isBackward(),s=r.getNode(),l=o.getNode(),a=e.is(s),c=e.is(l);if(a||c){const[u,d]=To(n),f=s.is(l),h=e.is(i?l:s),p=e.is(i?s:l);let g,m=0;return f?(m=u>d?d:u,g=u>d?u:d):h?(m=i?d:u,g=void 0):p&&(m=0,g=i?u:d),e.__text=e.__text.slice(m,g),e}}return e}function Us(n){if(n.type==="text")return n.offset===n.getNode().getTextContentSize();const e=n.getNode();return E(e)||mc(177),n.offset===e.getChildrenSize()}function vc(n){const e=n.getStyle(),t=yc(e);_c.set(e,t)}function Hs(n,e){const t=on(n.focus,e);return se(t)&&!t.isIsolated()||E(t)&&!t.isInline()&&!t.canBeEmpty()}function xc(n,e,t,r){n.modify(e?"extend":"move",t,r)}function Tc(n){const e=n.anchor.getNode();return(Ee(e)?e:e.getParentOrThrow()).getDirection()==="rtl"}function Ys(n,e,t){const r=Tc(n);xc(n,e,t?!r:r,"character")}function bc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Cc=bc(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const Ks=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Ec=Ks&&"documentMode"in document?document.documentMode:null;!(!Ks||!("InputEvent"in window)||Ec)&&"getTargetRanges"in new window.InputEvent("input");function Bt(...n){return()=>{for(let e=n.length-1;e>=0;e--)n[e]();n.length=0}}function Sc(n){const e=Oo(n,t=>E(t)&&!t.isInline());return E(e)||Cc(4,n.__key),e}const Oo=(n,e)=>{let t=n;for(;t!==ge()&&t!=null;){if(e(t))return t;t=t.getParent()}return null};function bt(n,e){return n!==null&&Object.getPrototypeOf(n).constructor.name===e.name}const qs=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?A.useLayoutEffect:A.useEffect;function wc({editor:n,ariaActiveDescendant:e,ariaAutoComplete:t,ariaControls:r,ariaDescribedBy:o,ariaExpanded:i,ariaLabel:s,ariaLabelledBy:l,ariaMultiline:a,ariaOwns:c,ariaRequired:u,autoCapitalize:d,className:f,id:h,role:p="textbox",spellCheck:g=!0,style:m,tabIndex:T,"data-testid":v,...y},b){const[x,C]=A.useState(n.isEditable()),N=A.useCallback(O=>{O&&O.ownerDocument&&O.ownerDocument.defaultView?n.setRootElement(O):n.setRootElement(null)},[n]),w=A.useMemo(()=>function(...O){return z=>{O.forEach(X=>{typeof X=="function"?X(z):X!=null&&(X.current=z)})}}(b,N),[N,b]);return qs(()=>(C(n.isEditable()),n.registerEditableListener(O=>{C(O)})),[n]),S.jsx("div",{...y,"aria-activedescendant":x?e:void 0,"aria-autocomplete":x?t:"none","aria-controls":x?r:void 0,"aria-describedby":o,"aria-expanded":x&&p==="combobox"?!!i:void 0,"aria-label":s,"aria-labelledby":l,"aria-multiline":a,"aria-owns":x?c:void 0,"aria-readonly":!x||void 0,"aria-required":u,autoCapitalize:d,className:f,contentEditable:x,"data-testid":v,id:h,ref:w,role:x?p:void 0,spellCheck:g,style:m,tabIndex:T})}const kc=A.forwardRef(wc);function Vs(n){return n.getEditorState().read($s(n.isComposing()))}const Pc=A.forwardRef(Nc);function Nc(n,e){const{placeholder:t,...r}=n,[o]=Tt();return S.jsxs(S.Fragment,{children:[S.jsx(kc,{editor:o,...r,ref:e}),t!=null&&S.jsx(Oc,{editor:o,content:t})]})}function Oc({content:n,editor:e}){const t=function(s){const[l,a]=A.useState(()=>Vs(s));return qs(()=>{function c(){const u=Vs(s);a(u)}return c(),Bt(s.registerUpdateListener(()=>{c()}),s.registerEditableListener(()=>{c()}))},[s]),l}(e),[r,o]=A.useState(e.isEditable());if(A.useLayoutEffect(()=>(o(e.isEditable()),e.registerEditableListener(s=>{o(s)})),[e]),!t)return null;let i=null;return typeof n=="function"?i=n(r):n!==null&&(i=n),i===null?null:S.jsx("div",{"aria-hidden":!0,children:i})}const dr=0,Ao=1,Io=2,ze=0,Ac=1,Js=2,Ic=3,Rc=4;function Dc(n,e,t,r,o){if(n===null||t.size===0&&r.size===0&&!o)return ze;const i=e._selection,s=n._selection;if(o)return Ac;if(!(I(i)&&I(s)&&s.isCollapsed()&&i.isCollapsed()))return ze;const l=function(T,v,y){const b=T._nodeMap,x=[];for(const C of v){const N=b.get(C);N!==void 0&&x.push(N)}for(const[C,N]of y){if(!N)continue;const w=b.get(C);w===void 0||Ee(w)||x.push(w)}return x}(e,t,r);if(l.length===0)return ze;if(l.length>1){const T=e._nodeMap,v=T.get(i.anchor.key),y=T.get(s.anchor.key);return v&&y&&!n._nodeMap.has(v.__key)&&D(v)&&v.__text.length===1&&i.anchor.offset===1?Js:ze}const a=l[0],c=n._nodeMap.get(a.__key);if(!D(c)||!D(a)||c.__mode!==a.__mode)return ze;const u=c.__text,d=a.__text;if(u===d)return ze;const f=i.anchor,h=s.anchor;if(f.key!==h.key||f.type!=="text")return ze;const p=f.offset,g=h.offset,m=d.length-u.length;return m===1&&g===p-1?Js:m===-1&&g===p+1?Ic:m===-1&&g===p?Rc:ze}function Mc(n,e){let t=Date.now(),r=ze;return(o,i,s,l,a,c)=>{const u=Date.now();if(c.has("historic"))return r=ze,t=u,Io;const d=Dc(o,i,l,a,n.isComposing()),f=(()=>{const h=s===null||s.editor===n,p=c.has("history-push");if(!p&&h&&c.has("history-merge"))return dr;if(o===null)return Ao;const g=i._selection;return l.size>0||a.size>0?p===!1&&d!==ze&&d===r&&u<t+e&&h||l.size===1&&function(m,T,v){const y=T._nodeMap.get(m),b=v._nodeMap.get(m),x=T._selection,C=v._selection;return!(I(x)&&I(C)&&x.anchor.type==="element"&&x.focus.type==="element"&&C.anchor.type==="text"&&C.focus.type==="text"||!D(y)||!D(b)||y.__parent!==b.__parent)&&JSON.stringify(T.read(()=>y.exportJSON()))===JSON.stringify(v.read(()=>b.exportJSON()))}(Array.from(l)[0],o,i)?dr:Ao:g!==null?dr:Io})();return t=u,r=d,f}}function Gs(n){n.undoStack=[],n.redoStack=[],n.current=null}function Lc(n,e,t){const r=Mc(n,t);return Bt(n.registerCommand(On,()=>(function(i,s){const l=s.redoStack,a=s.undoStack;if(a.length!==0){const c=s.current,u=a.pop();c!==null&&(l.push(c),i.dispatchCommand(Gt,!0)),a.length===0&&i.dispatchCommand(Xt,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:"historic"})}}(n,e),!0),ne),n.registerCommand(An,()=>(function(i,s){const l=s.redoStack,a=s.undoStack;if(l.length!==0){const c=s.current;c!==null&&(a.push(c),i.dispatchCommand(Xt,!0));const u=l.pop();l.length===0&&i.dispatchCommand(Gt,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:"historic"})}}(n,e),!0),ne),n.registerCommand(ra,()=>(Gs(e),!1),ne),n.registerCommand(oa,()=>(Gs(e),n.dispatchCommand(Gt,!1),n.dispatchCommand(Xt,!1),!0),ne),n.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:l,dirtyElements:a,tags:c})=>{const u=e.current,d=e.redoStack,f=e.undoStack,h=u===null?null:u.editorState;if(u!==null&&i===h)return;const p=r(s,i,u,l,a,c);if(p===Ao)d.length!==0&&(e.redoStack=[],n.dispatchCommand(Gt,!1)),u!==null&&(f.push({...u}),n.dispatchCommand(Xt,!0));else if(p===Io)return;e.current={editor:n,editorState:i}}))}function jc(){return{current:null,redoStack:[],undoStack:[]}}function Fc({delay:n,externalHistoryState:e}){const[t]=Tt();return function(r,o,i=1e3){const s=A.useMemo(()=>o||jc(),[o]);A.useEffect(()=>Lc(r,s,i),[i,r,s])}(t,e,n),null}const Bc=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?A.useLayoutEffect:A.useEffect;function Wc(n){return{initialValueFn:()=>n.isEditable(),subscribe:e=>n.registerEditableListener(e)}}function $c(){return function(n){const[e]=Tt(),t=A.useMemo(()=>n(e),[e,n]),r=A.useRef(t.initialValueFn()),[o,i]=A.useState(r.current);return Bc(()=>{const{initialValueFn:s,subscribe:l}=t,a=s();return r.current!==a&&(r.current=a,i(a)),l(c=>{r.current=c,i(c)})},[t,n]),o}(Wc)}function zc(n){const e=window.location.origin,t=r=>{if(r.origin!==e)return;const o=n.getRootElement();if(document.activeElement!==o)return;const i=r.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const l=s.payload;if(l&&l.functionId==="makeChanges"){const a=l.args;if(a){const[c,u,d,f,h,p]=a;n.update(()=>{const g=B();if(I(g)){const m=g.anchor;let T=m.getNode(),v=0,y=0;if(D(T)&&c>=0&&u>=0&&(v=c,y=c+u,g.setTextNodeRange(T,v,T,y)),v===y&&d===""||(g.insertRawText(d),T=m.getNode()),D(T)){v=f,y=f+h;const b=T.getTextContentSize();v=v>b?b:v,y=y>b?b:y,g.setTextNodeRange(T,v,T,y)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",t,!0),()=>{window.removeEventListener("message",t,!0)}}function Uc(n,e){const t=e.body?e.body.childNodes:[];let r=[];const o=[];for(let i=0;i<t.length;i++){const s=t[i];if(!Qs.has(s.nodeName)){const l=Zs(s,n,o,!1);l!==null&&(r=r.concat(l))}}return function(i){for(const s of i)s.getNextSibling()instanceof Po&&s.insertAfter(xt());for(const s of i){const l=s.getChildren();for(const a of l)s.insertBefore(a);s.remove()}}(o),r}function Hc(n,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const t=document.createElement("div"),r=ge().getChildren();for(let o=0;o<r.length;o++)Xs(n,r[o],t,e);return t.innerHTML}function Xs(n,e,t,r=null){let o=r===null||e.isSelected(r);const i=E(e)&&e.excludeFromCopy("html");let s=e;if(r!==null){let h=no(e);h=D(h)&&r!==null?zs(r,h):h,s=h}const l=E(s)?s.getChildren():[],a=n._nodes.get(s.getType());let c;c=a&&a.exportDOM!==void 0?a.exportDOM(n,s):s.exportDOM(n);const{element:u,after:d}=c;if(!u)return!1;const f=document.createDocumentFragment();for(let h=0;h<l.length;h++){const p=l[h],g=Xs(n,p,f,r);!o&&E(e)&&g&&e.extractWithChild(p,r,"html")&&(o=!0)}if(o&&!i){if(Zr(u)&&u.append(f),t.append(u),d){const h=d.call(s,u);h&&u.replaceWith(h)}}else t.append(f);return o}const Qs=new Set(["STYLE","SCRIPT"]);function Zs(n,e,t,r,o=new Map,i){let s=[];if(Qs.has(n.nodeName))return s;let l=null;const a=function(p,g){const{nodeName:m}=p,T=g._htmlConversions.get(m.toLowerCase());let v=null;if(T!==void 0)for(const y of T){const b=y(p);b!==null&&(v===null||(v.priority||0)<(b.priority||0))&&(v=b)}return v!==null?v.conversion:null}(n,e),c=a?a(n):null;let u=null;if(c!==null){u=c.after;const p=c.node;if(l=Array.isArray(p)?p[p.length-1]:p,l!==null){for(const[,g]of o)if(l=g(l,i),!l)break;l&&s.push(...Array.isArray(p)?p:[l])}c.forChild!=null&&o.set(n.nodeName,c.forChild)}const d=n.childNodes;let f=[];const h=(l==null||!It(l))&&(l!=null&&bo(l)||r);for(let p=0;p<d.length;p++)f.push(...Zs(d[p],e,t,h,new Map(o),l));return u!=null&&(f=u(f)),Vn(n)&&(f=Yc(n,f,h?()=>{const p=new Po;return t.push(p),p}:Ve)),l==null?f.length>0?s=s.concat(f):Vn(n)&&function(p){return p.nextSibling==null||p.previousSibling==null?!1:eo(p.nextSibling)&&eo(p.previousSibling)}(n)&&(s=s.concat(xt())):E(l)&&l.append(...f),s}function Yc(n,e,t){const r=n.style.textAlign,o=[];let i=[];for(let s=0;s<e.length;s++){const l=e[s];if(bo(l))r&&!l.getFormat()&&l.setFormat(r),o.push(l);else if(i.push(l),s===e.length-1||s<e.length-1&&bo(e[s+1])){const a=t();a.setFormat(r),a.append(...i),o.push(a),i=[]}}return o}function Kc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var hr=Kc(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const qc=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,el=n=>qc?(n||window).getSelection():null;function Vc(n,e=B()){return e==null&&hr(166),I(e)&&e.isCollapsed()||e.getNodes().length===0?"":Hc(n,e)}function Jc(n,e=B()){return e==null&&hr(166),I(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Gc(n,e))}function tl(n,e,t){const r=n.getData("application/x-lexical-editor");if(r)try{const s=JSON.parse(r);if(s.namespace===t._config.namespace&&Array.isArray(s.nodes))return nl(t,Xc(s.nodes),e)}catch{}const o=n.getData("text/html");if(o)try{const s=new DOMParser().parseFromString(o,"text/html");return nl(t,Uc(t,s),e)}catch{}const i=n.getData("text/plain")||n.getData("text/uri-list");if(i!=null)if(I(e)){const s=i.split(/(\r?\n|\t)/);s[s.length-1]===""&&s.pop();for(let l=0;l<s.length;l++){const a=B();if(I(a)){const c=s[l];c===`
|
|
36
|
+
`?s.push(ll()):l===" "?s.push(wc()):l!==""&&s.push(zo(l))}return{node:s}}if(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," "),t==="")return{node:null};if(t[0]===" "){let e=a,s=!0;for(;e!==null&&(e=hh(e,!1))!==null;){const i=e.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(t=t.slice(1)),s=!1;break}}s&&(t=t.slice(1))}if(t[t.length-1]===" "){let e=a,s=!0;for(;e!==null&&(e=hh(e,!0))!==null;)if((e.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){s=!1;break}s&&(t=t.slice(0,t.length-1))}return t===""?{node:null}:{node:zo(t)}}function hh(o,a){let t=o;for(;;){let e;for(;(e=a?t.nextSibling:t.previousSibling)===null;){const i=t.parentElement;if(i===null)return null;t=i}if(t=e,t.nodeType===ic){const i=t.style.display;if(i===""&&!Ad(t)||i!==""&&!i.startsWith("inline"))return null}let s=t;for(;(s=a?t.firstChild:t.lastChild)!==null;)t=s;if(t.nodeType===js)return t;if(t.nodeName==="BR")return null}}const v0={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Is(o){const a=v0[o.nodeName.toLowerCase()];return a===void 0?{node:null}:{forChild:Gd(o.style,a),node:null}}function zo(o=""){return du(new Al(o))}function hn(o){return o instanceof Al}function Gd(o,a){const t=o.fontWeight,e=o.textDecoration.split(" "),s=t==="700"||t==="bold",i=e.includes("line-through"),r=o.fontStyle==="italic",l=e.includes("underline"),n=o.verticalAlign;return c=>(hn(c)&&(s&&!c.hasFormat("bold")&&c.toggleFormat("bold"),i&&!c.hasFormat("strikethrough")&&c.toggleFormat("strikethrough"),r&&!c.hasFormat("italic")&&c.toggleFormat("italic"),l&&!c.hasFormat("underline")&&c.toggleFormat("underline"),n!=="sub"||c.hasFormat("subscript")||c.toggleFormat("subscript"),n!=="super"||c.hasFormat("superscript")||c.toggleFormat("superscript"),a&&!c.hasFormat(a)&&c.toggleFormat(a)),c)}class _c extends Al{static getType(){return"tab"}static clone(a){return new _c(a.__key)}afterCloneFrom(a){super.afterCloneFrom(a),this.__text=a.__text}constructor(a){super(" ",a),this.__detail=2}static importDOM(){return null}static importJSON(a){const t=wc();return t.setFormat(a.format),t.setStyle(a.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(a){pn(126)}setDetail(a){pn(127)}setMode(a){pn(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function wc(){return du(new _c)}function b0(o){return o instanceof _c}class _0{constructor(a,t,e){this._selection=null,this.key=a,this.offset=t,this.type=e}is(a){return this.key===a.key&&this.offset===a.offset&&this.type===a.type}isBefore(a){let t=this.getNode(),e=a.getNode();const s=this.offset,i=a.offset;if(Fe(t)){const r=t.getDescendantByIndex(s);t=r??t}if(Fe(e)){const r=e.getDescendantByIndex(i);e=r??e}return t===e?s<i:t.isBefore(e)}getNode(){const a=Qo(this.key);return a===null&&pn(20),a}set(a,t,e){const s=this._selection,i=this.key;this.key=a,this.offset=t,this.type=e,Sc()||(As()===i&&Ao(a),s!==null&&(s.setCachedNodes(null),s.dirty=!0))}}function Na(o,a,t){return new _0(o,a,t)}function Yd(o,a){let t=a.__key,e=o.offset,s="element";if(hn(a)){s="text";const i=a.getTextContentSize();e>i&&(e=i)}else if(!Fe(a)){const i=a.getNextSibling();if(hn(i))t=i.__key,e=0,s="text";else{const r=a.getParent();r&&(t=r.__key,e=a.getIndexWithinParent()+1)}}o.set(t,e,s)}function gh(o,a){if(Fe(a)){const t=a.getLastDescendant();Fe(t)||hn(t)?Yd(o,t):Yd(o,a)}else Yd(o,a)}function Ns(o,a,t,e){o.key=a,o.offset=t,o.type=e}class xu{constructor(a){this._cachedNodes=null,this._nodes=a,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(a){this._cachedNodes=a}is(a){if(!fa(a))return!1;const t=this._nodes,e=a._nodes;return t.size===e.size&&Array.from(t).every(s=>e.has(s))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(a){this.dirty=!0,this._nodes.add(a),this._cachedNodes=null}delete(a){this.dirty=!0,this._nodes.delete(a),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(a){return this._nodes.has(a)}clone(){return new xu(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(a){}insertText(){}insertNodes(a){const t=this.getNodes(),e=t.length,s=t[e-1];let i;if(hn(s))i=s.select();else{const r=s.getIndexWithinParent()+1;i=s.getParentOrThrow().select(r,r)}i.insertNodes(a);for(let r=0;r<e;r++)t[r].remove()}getNodes(){const a=this._cachedNodes;if(a!==null)return a;const t=this._nodes,e=[];for(const s of t){const i=Qo(s);i!==null&&e.push(i)}return Sc()||(this._cachedNodes=e),e}getTextContent(){const a=this.getNodes();let t="";for(let e=0;e<a.length;e++)t+=a[e].getTextContent();return t}}function sn(o){return o instanceof Ms}class Ms{constructor(a,t,e,s){this.anchor=a,this.focus=t,a._selection=this,t._selection=this,this._cachedNodes=null,this.format=e,this.style=s,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(a){this._cachedNodes=a}is(a){return!!sn(a)&&this.anchor.is(a.anchor)&&this.focus.is(a.focus)&&this.format===a.format&&this.style===a.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const a=this._cachedNodes;if(a!==null)return a;const t=this.anchor,e=this.focus,s=t.isBefore(e),i=s?t:e,r=s?e:t;let l=i.getNode(),n=r.getNode();const c=i.offset,d=r.offset;if(Fe(l)){const f=l.getDescendantByIndex(c);l=f??l}if(Fe(n)){let f=n.getDescendantByIndex(d);f!==null&&f!==l&&n.getChildAtIndex(d)===f&&(f=f.getPreviousSibling()),n=f??n}let u;return u=l.is(n)?Fe(l)&&l.getChildrenSize()>0?[]:[l]:l.getNodesBetween(n),Sc()||(this._cachedNodes=u),u}setTextNodeRange(a,t,e,s){Ns(this.anchor,a.__key,t,"text"),Ns(this.focus,e.__key,s,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const a=this.getNodes();if(a.length===0)return"";const t=a[0],e=a[a.length-1],s=this.anchor,i=this.focus,r=s.isBefore(i),[l,n]=Xd(this);let c="",d=!0;for(let u=0;u<a.length;u++){const f=a[u];if(Fe(f)&&!f.isInline())d||(c+=`
|
|
37
|
+
`),d=!f.isEmpty();else if(d=!1,hn(f)){let g=f.getTextContent();f===t?f===e?s.type==="element"&&i.type==="element"&&i.offset!==s.offset||(g=l<n?g.slice(l,n):g.slice(n,l)):g=r?g.slice(l):g.slice(n):f===e&&(g=r?g.slice(0,n):g.slice(0,l)),c+=g}else!Tr(f)&&!jl(f)||f===e&&this.isCollapsed()||(c+=f.getTextContent())}return c}applyDOMRange(a){const t=Xr(),e=t.getEditorState()._selection,s=wh(a.startContainer,a.startOffset,a.endContainer,a.endOffset,t,e);if(s===null)return;const[i,r]=s;Ns(this.anchor,i.key,i.offset,i.type),Ns(this.focus,r.key,r.offset,r.type),this._cachedNodes=null}clone(){const a=this.anchor,t=this.focus;return new Ms(Na(a.key,a.offset,a.type),Na(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(a){this.format=wd(this.format,a,null),this.dirty=!0}setStyle(a){this.style=a,this.dirty=!0}hasFormat(a){const t=as[a];return!!(this.format&t)}insertRawText(a){const t=a.split(/(\r?\n|\t)/),e=[],s=t.length;for(let i=0;i<s;i++){const r=t[i];r===`
|
|
38
|
+
`||r===`\r
|
|
39
|
+
`?e.push(ll()):r===" "?e.push(wc()):e.push(zo(r))}this.insertNodes(e)}insertText(a){const t=this.anchor,e=this.focus,s=this.format,i=this.style;let r=t,l=e;!this.isCollapsed()&&e.isBefore(t)&&(r=e,l=t),r.type==="element"&&function(v,b,_,R){const x=v.getNode(),w=x.getChildAtIndex(v.offset),O=zo(),I=Uo(x)?Ma().append(O):O;O.setFormat(_),O.setStyle(R),w===null?x.append(I):w.insertBefore(I),v.is(b)&&b.set(O.__key,0,"text"),v.set(O.__key,0,"text")}(r,l,s,i);const n=r.offset;let c=l.offset;const d=this.getNodes(),u=d.length;let f=d[0];hn(f)||pn(26);const g=f.getTextContent().length,m=f.getParentOrThrow();let h=d[u-1];if(u===1&&l.type==="element"&&(c=g,l.set(r.key,c,"text")),this.isCollapsed()&&n===g&&(f.isSegmented()||f.isToken()||!f.canInsertTextAfter()||!m.canInsertTextAfter()&&f.getNextSibling()===null)){let v=f.getNextSibling();if(hn(v)&&v.canInsertTextBefore()&&!El(v)||(v=zo(),v.setFormat(s),v.setStyle(i),m.canInsertTextAfter()?f.insertAfter(v):m.insertAfter(v)),v.select(0,0),f=v,a!=="")return void this.insertText(a)}else if(this.isCollapsed()&&n===0&&(f.isSegmented()||f.isToken()||!f.canInsertTextBefore()||!m.canInsertTextBefore()&&f.getPreviousSibling()===null)){let v=f.getPreviousSibling();if(hn(v)&&!El(v)||(v=zo(),v.setFormat(s),m.canInsertTextBefore()?f.insertBefore(v):m.insertBefore(v)),v.select(),f=v,a!=="")return void this.insertText(a)}else if(f.isSegmented()&&n!==g){const v=zo(f.getTextContent());v.setFormat(s),f.replace(v),f=v}else if(!this.isCollapsed()&&a!==""){const v=h.getParent();if(!m.canInsertTextBefore()||!m.canInsertTextAfter()||Fe(v)&&(!v.canInsertTextBefore()||!v.canInsertTextAfter()))return this.insertText(""),_h(this.anchor,this.focus,null),void this.insertText(a)}if(u===1){if(f.isToken()){const R=zo(a);return R.select(),void f.replace(R)}const v=f.getFormat(),b=f.getStyle();if(n!==c||v===s&&b===i){if(b0(f)){const R=zo(a);return R.setFormat(s),R.setStyle(i),R.select(),void f.replace(R)}}else{if(f.getTextContent()!==""){const R=zo(a);if(R.setFormat(s),R.setStyle(i),R.select(),n===0)f.insertBefore(R,!1);else{const[x]=f.splitText(n);x.insertAfter(R,!1)}return void(R.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=a.length))}f.setFormat(s),f.setStyle(i)}const _=c-n;f=f.spliceText(n,_,a,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=a.length:(this.format=v,this.style=b))}else{const v=new Set([...f.getParentKeys(),...h.getParentKeys()]),b=Fe(f)?f:f.getParentOrThrow();let _=Fe(h)?h:h.getParentOrThrow(),R=h;if(!b.is(_)&&_.isInline())do R=_,_=_.getParentOrThrow();while(_.isInline());if(l.type==="text"&&(c!==0||h.getTextContent()==="")||l.type==="element"&&h.getIndexWithinParent()<c)if(hn(h)&&!h.isToken()&&c!==h.getTextContentSize()){if(h.isSegmented()){const L=zo(h.getTextContent());h.replace(L),h=L}Uo(l.getNode())||l.type!=="text"||(h=h.spliceText(0,c,"")),v.add(h.__key)}else{const L=h.getParentOrThrow();L.canBeEmpty()||L.getChildrenSize()!==1?h.remove():L.remove()}else v.add(h.__key);const x=_.getChildren(),w=new Set(d),O=b.is(_),I=b.isInline()&&f.getNextSibling()===null?b:f;for(let L=x.length-1;L>=0;L--){const M=x[L];if(M.is(f)||Fe(M)&&M.isParentOf(f))break;M.isAttached()&&(!w.has(M)||M.is(R)?O||I.insertAfter(M,!1):M.remove())}if(!O){let L=_,M=null;for(;L!==null;){const A=L.getChildren(),k=A.length;(k===0||A[k-1].is(M))&&(v.delete(L.__key),M=L),L=L.getParent()}}if(f.isToken())if(n===g)f.select();else{const L=zo(a);L.select(),f.replace(L)}else f=f.spliceText(n,g-n,a,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=a.length);for(let L=1;L<u;L++){const M=d[L],A=M.__key;v.has(A)||M.remove()}}}removeText(){this.insertText("")}formatText(a){if(this.isCollapsed())return this.toggleFormat(a),void Ao(null);const t=this.getNodes(),e=[];for(const _ of t)hn(_)&&e.push(_);const s=e.length;if(s===0)return this.toggleFormat(a),void Ao(null);const i=this.anchor,r=this.focus,l=this.isBackward(),n=l?r:i,c=l?i:r;let d=0,u=e[0],f=n.type==="element"?0:n.offset;if(n.type==="text"&&f===u.getTextContentSize()&&(d=1,u=e[1],f=0),u==null)return;const g=u.getFormatFlags(a,null),m=s-1;let h=e[m];const v=c.type==="text"?c.offset:h.getTextContentSize();if(u.is(h)){if(f===v)return;if(El(u)||f===0&&v===u.getTextContentSize())u.setFormat(g);else{const _=u.splitText(f,v),R=f===0?_[0]:_[1];R.setFormat(g),n.type==="text"&&n.set(R.__key,0,"text"),c.type==="text"&&c.set(R.__key,v-f,"text")}return void(this.format=g)}f===0||El(u)||([,u]=u.splitText(f),f=0),u.setFormat(g);const b=h.getFormatFlags(a,g);v>0&&(v===h.getTextContentSize()||El(h)||([h]=h.splitText(v)),h.setFormat(b));for(let _=d+1;_<m;_++){const R=e[_],x=R.getFormatFlags(a,b);R.setFormat(x)}n.type==="text"&&n.set(u.__key,f,"text"),c.type==="text"&&c.set(h.__key,v,"text"),this.format=g|b}insertNodes(a){if(a.length===0)return;if(this.anchor.key==="root"){this.insertParagraph();const g=Pn();return sn(g)||pn(134),g.insertNodes(a)}const t=Rd((this.isBackward()?this.focus:this.anchor).getNode(),Ol),e=a[a.length-1];if("__language"in t&&Fe(t)){if("__language"in a[0])this.insertText(a[0].getTextContent());else{const g=tf(this);t.splice(g,0,a),e.selectEnd()}return}if(!a.some(g=>(Fe(g)||Tr(g))&&!g.isInline())){Fe(t)||pn(135);const g=tf(this);return t.splice(g,0,a),void e.selectEnd()}const s=function(g){const m=Ma();let h=null;for(let v=0;v<g.length;v++){const b=g[v],_=jl(b);if(_||Tr(b)&&b.isInline()||Fe(b)&&b.isInline()||hn(b)||b.isParentRequired()){if(h===null&&(h=b.createParentElementNode(),m.append(h),_))continue;h!==null&&h.append(b)}else m.append(b),h=null}return m}(a),i=s.getLastDescendant(),r=s.getChildren(),l=!Fe(t)||!t.isEmpty()?this.insertParagraph():null,n=r[r.length-1];let c=r[0];var d;Fe(d=c)&&Ol(d)&&!d.isEmpty()&&Fe(t)&&(!t.isEmpty()||t.canMergeWhenEmpty())&&(Fe(t)||pn(135),t.append(...c.getChildren()),c=r[1]),c&&function(g,m,h){const v=m.getParentOrThrow().getLastChild();let b=m;const _=[m];for(;b!==v;)b.getNextSibling()||pn(140),b=b.getNextSibling(),_.push(b);let R=g;for(const x of _)R=R.insertAfter(x)}(t,c);const u=Rd(i,Ol);l&&Fe(u)&&(l.canMergeWhenEmpty()||Ol(n))&&(u.append(...l.getChildren()),l.remove()),Fe(t)&&t.isEmpty()&&t.remove(),i.selectEnd();const f=Fe(t)?t.getLastChild():null;jl(f)&&u!==t&&f.remove()}insertParagraph(){if(this.anchor.key==="root"){const r=Ma();return ro().splice(this.anchor.offset,0,[r]),r.select(),r}const a=tf(this),t=Rd(this.anchor.getNode(),Ol);Fe(t)||pn(136);const e=t.getChildAtIndex(a),s=e?[e,...e.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...s),i.selectStart(),i):null}insertLineBreak(a){const t=ll();if(this.insertNodes([t]),a){const e=t.getParentOrThrow(),s=t.getIndexWithinParent();e.select(s,s)}}extract(){const a=this.getNodes(),t=a.length,e=t-1,s=this.anchor,i=this.focus;let r=a[0],l=a[e];const[n,c]=Xd(this);if(t===0)return[];if(t===1){if(hn(r)&&!this.isCollapsed()){const u=n>c?c:n,f=n>c?n:c,g=r.splitText(u,f),m=u===0?g[0]:g[1];return m!=null?[m]:[]}return[r]}const d=s.isBefore(i);if(hn(r)){const u=d?n:c;u===r.getTextContentSize()?a.shift():u!==0&&([,r]=r.splitText(u),a[0]=r)}if(hn(l)){const u=l.getTextContent().length,f=d?c:n;f===0?a.pop():f!==u&&([l]=l.splitText(f),a[e]=l)}return a}modify(a,t,e){const s=this.focus,i=this.anchor,r=a==="move",l=dc(s,t);if(Tr(l)&&!l.isIsolated()){if(r&&l.isKeyboardSelectable()){const g=Sh();return g.add(l.__key),void Aa(g)}const f=t?l.getPreviousSibling():l.getNextSibling();if(hn(f)){const g=f.__key,m=t?f.getTextContent().length:0;return s.set(g,m,"text"),void(r&&i.set(g,m,"text"))}{const g=l.getParentOrThrow();let m,h;return Fe(f)?(h=f.__key,m=t?f.getChildrenSize():0):(m=l.getIndexWithinParent(),h=g.__key,t||m++),s.set(h,m,"element"),void(r&&i.set(h,m,"element"))}}const n=Xr(),c=Ra(n._window);if(!c)return;const d=n._blockCursorElement,u=n._rootElement;if(u===null||d===null||!Fe(l)||l.isInline()||l.canBeEmpty()||Pd(d,n,u),function(f,g,m,h){f.modify(g,m,h)}(c,a,t?"backward":"forward",e),c.rangeCount>0){const f=c.getRangeAt(0),g=this.anchor.getNode(),m=Uo(g)?g:o0(g);if(this.applyDOMRange(f),this.dirty=!0,!r){const h=this.getNodes(),v=[];let b=!1;for(let _=0;_<h.length;_++){const R=h[_];kd(R,m)?v.push(R):b=!0}if(b&&v.length>0)if(t){const _=v[0];Fe(_)?_.selectStart():_.getParentOrThrow().selectStart()}else{const _=v[v.length-1];Fe(_)?_.selectEnd():_.getParentOrThrow().selectEnd()}c.anchorNode===f.startContainer&&c.anchorOffset===f.startOffset||function(_){const R=_.focus,x=_.anchor,w=x.key,O=x.offset,I=x.type;Ns(x,R.key,R.offset,R.type),Ns(R,w,O,I),_._cachedNodes=null}(this)}}}forwardDeletion(a,t,e){if(!e&&(a.type==="element"&&Fe(t)&&a.offset===t.getChildrenSize()||a.type==="text"&&a.offset===t.getTextContentSize())){const s=t.getParent(),i=t.getNextSibling()||(s===null?null:s.getNextSibling());if(Fe(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(a){const t=this.isCollapsed();if(this.isCollapsed()){const e=this.anchor;let s=e.getNode();if(this.forwardDeletion(e,s,a))return;const i=this.focus,r=dc(i,a);if(Tr(r)&&!r.isIsolated()){if(r.isKeyboardSelectable()&&Fe(s)&&s.getChildrenSize()===0){s.remove();const l=Sh();l.add(r.__key),Aa(l)}else r.remove(),Xr().dispatchCommand($c,void 0);return}if(!a&&Fe(r)&&Fe(s)&&s.isEmpty())return s.remove(),void r.selectStart();if(this.modify("extend",a,"character"),this.isCollapsed()){if(a&&e.offset===0&&(e.type==="element"?e.getNode():e.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const l=i.type==="text"?i.getNode():null;if(s=e.type==="text"?e.getNode():null,l!==null&&l.isSegmented()){const n=i.offset,c=l.getTextContentSize();if(l.is(s)||a&&n!==c||!a&&n!==0)return void yh(l,a,n)}else if(s!==null&&s.isSegmented()){const n=e.offset,c=s.getTextContentSize();if(s.is(l)||a&&n!==0||!a&&n!==c)return void yh(s,a,n)}(function(n,c){const d=n.anchor,u=n.focus,f=d.getNode(),g=u.getNode();if(f===g&&d.type==="text"&&u.type==="text"){const m=d.offset,h=u.offset,v=m<h,b=v?m:h,_=v?h:m,R=_-1;b!==R&&(Mp(f.getTextContent().slice(b,_))||(c?u.offset=R:d.offset=R))}})(this,a)}}if(this.removeText(),a&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const e=this.anchor.getNode();e.isEmpty()&&Uo(e.getParent())&&e.getIndexWithinParent()===0&&e.collapseAtStart(this)}}deleteLine(a){if(this.isCollapsed()){const t=this.anchor.type==="element";if(t&&this.insertText(" "),this.modify("extend",a,"lineboundary"),(a?this.focus:this.anchor).offset===0&&this.modify("extend",a,"character"),t){const e=a?this.anchor:this.focus;e.set(e.key,e.offset+1,e.type)}}this.removeText()}deleteWord(a){if(this.isCollapsed()){const t=this.anchor,e=t.getNode();if(this.forwardDeletion(t,e,a))return;this.modify("extend",a,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function fa(o){return o instanceof xu}function mh(o){const a=o.offset;if(o.type==="text")return a;const t=o.getNode();return a===t.getChildrenSize()?t.getTextContent().length:0}function Xd(o){const a=o.getStartEndPoints();if(a===null)return[0,0];const[t,e]=a;return t.type==="element"&&e.type==="element"&&t.key===e.key&&t.offset===e.offset?[0,0]:[mh(t),mh(e)]}function yh(o,a,t){const e=o,s=e.getTextContent().split(/(?=\s)/g),i=s.length;let r=0,l=0;for(let c=0;c<i;c++){const d=c===i-1;if(l=r,r+=s[c].length,a&&r===t||r>t||d){s.splice(c,1),d&&(l=void 0);break}}const n=s.join("").trim();n===""?e.remove():(e.setTextContent(n),e.select(l,l))}function vh(o,a,t,e){let s,i=a;if(o.nodeType===ic){let r=!1;const l=o.childNodes,n=l.length,c=e._blockCursorElement;i===n&&(r=!0,i=n-1);let d=l[i],u=!1;if(d===c)d=l[i+1],u=!0;else if(c!==null){const f=c.parentNode;o===f&&a>Array.prototype.indexOf.call(f.children,c)&&i--}if(s=Cl(d),hn(s))i=Np(s,r);else{let f=Cl(o);if(f===null)return null;if(Fe(f)){i=Math.min(f.getChildrenSize(),i);let g=f.getChildAtIndex(i);if(Fe(g)&&function(m,h,v){const b=m.getParent();return v===null||b===null||!b.canBeEmpty()||b!==v.getNode()}(g,0,t)){const m=r?g.getLastDescendant():g.getFirstDescendant();m===null?f=g:(g=m,f=Fe(g)?g:g.getParentOrThrow()),i=0}hn(g)?(s=g,f=null,i=Np(g,r)):g!==f&&r&&!u&&i++}else{const g=f.getIndexWithinParent();i=a===0&&Tr(f)&&Cl(o)===f?g:g+1,f=f.getParentOrThrow()}if(Fe(f))return Na(f.__key,i,"element")}}else s=Cl(o);return hn(s)?Na(s.__key,i,"text"):null}function bh(o,a,t){const e=o.offset,s=o.getNode();if(e===0){const i=s.getPreviousSibling(),r=s.getParent();if(a){if((t||!a)&&i===null&&Fe(r)&&r.isInline()){const l=r.getPreviousSibling();hn(l)&&(o.key=l.__key,o.offset=l.getTextContent().length)}}else Fe(i)&&!t&&i.isInline()?(o.key=i.__key,o.offset=i.getChildrenSize(),o.type="element"):hn(i)&&(o.key=i.__key,o.offset=i.getTextContent().length)}else if(e===s.getTextContent().length){const i=s.getNextSibling(),r=s.getParent();if(a&&Fe(i)&&i.isInline())o.key=i.__key,o.offset=0,o.type="element";else if((t||a)&&i===null&&Fe(r)&&r.isInline()&&!r.canInsertTextAfter()){const l=r.getNextSibling();hn(l)&&(o.key=l.__key,o.offset=0)}}}function _h(o,a,t){if(o.type==="text"&&a.type==="text"){const e=o.isBefore(a),s=o.is(a);bh(o,e,s),bh(a,!e,s),s&&(a.key=o.key,a.offset=o.offset,a.type=o.type);const i=Xr();if(i.isComposing()&&i._compositionKey!==o.key&&sn(t)){const r=t.anchor,l=t.focus;Ns(o,r.key,r.offset,r.type),Ns(a,l.key,l.offset,l.type)}}}function wh(o,a,t,e,s,i){if(o===null||t===null||!ac(s,o,t))return null;const r=vh(o,a,sn(i)?i.anchor:null,s);if(r===null)return null;const l=vh(t,e,sn(i)?i.focus:null,s);if(l===null)return null;if(r.type==="element"&&l.type==="element"){const n=Cl(o),c=Cl(t);if(Tr(n)&&Tr(c))return null}return _h(r,l,i),[r,l]}function Qd(o){return Fe(o)&&!o.isInline()}function xh(o,a,t,e,s,i){const r=cs(),l=new Ms(Na(o,a,s),Na(t,e,i),0,"");return l.dirty=!0,r._selection=l,l}function w0(){const o=Na("root",0,"element"),a=Na("root",0,"element");return new Ms(o,a,0,"")}function Sh(){return new xu(new Set)}function Zd(o,a,t,e){const s=t._window;if(s===null)return null;const i=e||s.event,r=i?i.type:void 0,l=r==="selectionchange",n=!md&&(l||r==="beforeinput"||r==="compositionstart"||r==="compositionend"||r==="click"&&i&&i.detail===3||r==="drop"||r===void 0);let c,d,u,f;if(sn(o)&&!n)return o.clone();if(a===null)return null;if(c=a.anchorNode,d=a.focusNode,u=a.anchorOffset,f=a.focusOffset,l&&sn(o)&&!ac(t,c,d))return o.clone();const g=wh(c,u,d,f,t,o);if(g===null)return null;const[m,h]=g;return new Ms(m,h,sn(o)?o.format:0,sn(o)?o.style:"")}function Pn(){return cs()._selection}function xc(){return Xr()._editorState._selection}function Su(o,a,t,e=1){const s=o.anchor,i=o.focus,r=s.getNode(),l=i.getNode();if(!a.is(r)&&!a.is(l))return;const n=a.__key;if(o.isCollapsed()){const c=s.offset;if(t<=c&&e>0||t<c&&e<0){const d=Math.max(0,c+e);s.set(n,d,"element"),i.set(n,d,"element"),Eh(o)}}else{const c=o.isBackward(),d=c?i:s,u=d.getNode(),f=c?s:i,g=f.getNode();if(a.is(u)){const m=d.offset;(t<=m&&e>0||t<m&&e<0)&&d.set(n,Math.max(0,m+e),"element")}if(a.is(g)){const m=f.offset;(t<=m&&e>0||t<m&&e<0)&&f.set(n,Math.max(0,m+e),"element")}}Eh(o)}function Eh(o){const a=o.anchor,t=a.offset,e=o.focus,s=e.offset,i=a.getNode(),r=e.getNode();if(o.isCollapsed()){if(!Fe(i))return;const l=i.getChildrenSize(),n=t>=l,c=n?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(hn(c)){let d=0;n&&(d=c.getTextContentSize()),a.set(c.__key,d,"text"),e.set(c.__key,d,"text")}}else{if(Fe(i)){const l=i.getChildrenSize(),n=t>=l,c=n?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(hn(c)){let d=0;n&&(d=c.getTextContentSize()),a.set(c.__key,d,"text")}}if(Fe(r)){const l=r.getChildrenSize(),n=s>=l,c=n?r.getChildAtIndex(l-1):r.getChildAtIndex(s);if(hn(c)){let d=0;n&&(d=c.getTextContentSize()),e.set(c.__key,d,"text")}}}}function Eu(o,a,t,e,s){let i=null,r=0,l=null;e!==null?(i=e.__key,hn(e)?(r=e.getTextContentSize(),l="text"):Fe(e)&&(r=e.getChildrenSize(),l="element")):s!==null&&(i=s.__key,hn(s)?l="text":Fe(s)&&(l="element")),i!==null&&l!==null?o.set(i,r,l):(r=a.getIndexWithinParent(),r===-1&&(r=t.getChildrenSize()),o.set(t.__key,r,"element"))}function Ch(o,a,t,e,s){o.type==="text"?(o.key=t,a||(o.offset+=s)):o.offset>e.getIndexWithinParent()&&(o.offset-=1)}function x0(o,a,t,e,s,i,r){const l=e.anchorNode,n=e.focusNode,c=e.anchorOffset,d=e.focusOffset,u=document.activeElement;if(s.has("collaboration")&&u!==i||u!==null&&bd(u))return;if(!sn(a))return void(o!==null&&ac(t,l,n)&&e.removeAllRanges());const f=a.anchor,g=a.focus,m=f.key,h=g.key,v=lu(t,m),b=lu(t,h),_=f.offset,R=g.offset,x=a.format,w=a.style,O=a.isCollapsed();let I=v,L=b,M=!1;if(f.type==="text"){I=iu(v);const D=f.getNode();M=D.getFormat()!==x||D.getStyle()!==w}else sn(o)&&o.anchor.type==="text"&&(M=!0);var A,k,J,G,U;if(g.type==="text"&&(L=iu(b)),I!==null&&L!==null&&(O&&(o===null||M||sn(o)&&(o.format!==x||o.style!==w))&&(A=x,k=w,J=_,G=m,U=performance.now(),eh=[A,k,J,G,U]),c!==_||d!==R||l!==I||n!==L||e.type==="Range"&&O||(u!==null&&i.contains(u)||i.focus({preventScroll:!0}),f.type==="element"))){try{e.setBaseAndExtent(I,_,L,R)}catch{}if(!s.has("skip-scroll-into-view")&&a.isCollapsed()&&i!==null&&i===document.activeElement){const D=a instanceof Ms&&a.anchor.type==="element"?I.childNodes[_]||null:e.rangeCount>0?e.getRangeAt(0):null;if(D!==null){let W;if(D instanceof Text){const Q=document.createRange();Q.selectNode(D),W=Q.getBoundingClientRect()}else W=D.getBoundingClientRect();(function(Q,E,B){const $=B.ownerDocument,C=$.defaultView;if(C===null)return;let{top:N,bottom:Y}=E,tt=0,F=0,z=B;for(;z!==null;){const P=z===$.body;if(P)tt=0,F=uu(Q).innerHeight;else{const V=z.getBoundingClientRect();tt=V.top,F=V.bottom}let j=0;if(N<tt?j=-(tt-N):Y>F&&(j=Y-F),j!==0)if(P)C.scrollBy(0,j);else{const V=z.scrollTop;z.scrollTop+=j;const K=z.scrollTop-V;N-=K,Y-=K}if(P)break;z=cu(z)}})(t,W,i)}}qd=!0}}function S0(o){let a=Pn()||xc();a===null&&(a=ro().selectEnd()),a.insertNodes(o)}function tf(o){let a=o;o.isCollapsed()||a.removeText();const t=Pn();sn(t)&&(a=t),sn(a)||pn(161);const e=a.anchor;let s=e.getNode(),i=e.offset;for(;!Ol(s);)[s,i]=E0(s,i);return i}function E0(o,a){const t=o.getParent();if(!t){const s=Ma();return ro().append(s),s.select(),[ro(),0]}if(hn(o)){const s=o.splitText(a);if(s.length===0)return[t,o.getIndexWithinParent()];const i=a===0?0:1;return[t,s[0].getIndexWithinParent()+i]}if(!Fe(o)||a===0)return[t,o.getIndexWithinParent()];const e=o.getChildAtIndex(a);if(e){const s=new Ms(Na(o.__key,a,"element"),Na(o.__key,a,"element"),0,""),i=o.insertNewAfter(s);i&&i.append(e,...e.getNextSiblings())}return[t,o.getIndexWithinParent()+1]}let So=null,Eo=null,mi=!1,ef=!1,Cu=0;const kh={characterData:!0,childList:!0,subtree:!0};function Sc(){return mi||So!==null&&So._readOnly}function yi(){mi&&pn(13)}function Oh(){Cu>99&&pn(14)}function cs(){return So===null&&pn(195,Th()),So}function Xr(){return Eo===null&&pn(196,Th()),Eo}function Th(){let o=0;const a=new Set,t=Tu.version;if(typeof window<"u")for(const s of document.querySelectorAll("[contenteditable]")){const i=ou(s);if(_d(i))o++;else if(i){let r=String(i.constructor.version||"<0.17.1");r===t&&(r+=" (separately built, likely a bundler configuration issue)"),a.add(r)}}let e=` Detected on the page: ${o} compatible editor(s) with version ${t}`;return a.size&&(e+=` and incompatible editors with versions ${Array.from(a).join(", ")}`),e}function C0(){return Eo}function Ph(o,a,t){const e=a.__type,s=function(l,n){const c=l._nodes.get(n);return c===void 0&&pn(30,n),c}(o,e);let i=t.get(e);i===void 0&&(i=Array.from(s.transforms),t.set(e,i));const r=i.length;for(let l=0;l<r&&(i[l](a),a.isAttached());l++);}function jh(o,a){return o!==void 0&&o.__key!==a&&o.isAttached()}function k0(o){return nf(o,Xr()._nodes)}function nf(o,a){const t=o.type,e=a.get(t);e===void 0&&pn(17,t);const s=e.klass;o.type!==s.getType()&&pn(18,s.name);const i=s.importJSON(o),r=o.children;if(Fe(i)&&Array.isArray(r))for(let l=0;l<r.length;l++){const n=nf(r[l],a);i.append(n)}return i}function Ah(o,a,t){const e=So,s=mi,i=Eo;So=a,mi=!0,Eo=o;try{return t()}finally{So=e,mi=s,Eo=i}}function Ds(o,a){const t=o._pendingEditorState,e=o._rootElement,s=o._headless||e===null;if(t===null)return;const i=o._editorState,r=i._selection,l=t._selection,n=o._dirtyType!==rl,c=So,d=mi,u=Eo,f=o._updating,g=o._observer;let m=null;if(o._pendingEditorState=null,o._editorState=t,!s&&n&&g!==null){Eo=o,So=t,mi=!1,o._updating=!0;try{const O=o._dirtyType,I=o._dirtyElements,L=o._dirtyLeaves;g.disconnect(),m=d0(i,t,o,O,I,L)}catch(O){if(O instanceof Error&&o._onError(O),ef)throw O;return Lh(o,null,e,t),Sp(o),o._dirtyType=Sl,ef=!0,Ds(o,i),void(ef=!1)}finally{g.observe(e,kh),o._updating=f,So=c,mi=d,Eo=u}}t._readOnly||(t._readOnly=!0);const h=o._dirtyLeaves,v=o._dirtyElements,b=o._normalizedNodes,_=o._updateTags,R=o._deferred;n&&(o._dirtyType=rl,o._cloneNotNeeded.clear(),o._dirtyLeaves=new Set,o._dirtyElements=new Map,o._normalizedNodes=new Set,o._updateTags=new Set),function(O,I){const L=O._decorators;let M=O._pendingDecorators||L;const A=I._nodeMap;let k;for(k in M)A.has(k)||(M===L&&(M=Ap(O)),delete M[k])}(o,t);const x=s?null:Ra(o._window);if(o._editable&&x!==null&&(n||l===null||l.dirty)){Eo=o,So=t;try{if(g!==null&&g.disconnect(),n||l===null||l.dirty){const O=o._blockCursorElement;O!==null&&Pd(O,o,e),x0(r,l,o,x,_,e)}i0(o,e,l),g!==null&&g.observe(e,kh)}finally{Eo=u,So=c}}m!==null&&function(O,I,L,M,A){const k=Array.from(O._listeners.mutation),J=k.length;for(let G=0;G<J;G++){const[U,D]=k[G],W=I.get(D);W!==void 0&&U(W,{dirtyLeaves:M,prevEditorState:A,updateTags:L})}}(o,m,_,h,i),sn(l)||l===null||r!==null&&r.is(l)||o.dispatchCommand($c,void 0);const w=o._pendingDecorators;w!==null&&(o._decorators=w,o._pendingDecorators=null,Ec("decorator",o,!0,w)),function(O,I,L){const M=Rp(I),A=Rp(L);M!==A&&Ec("textcontent",O,!0,A)}(o,a||i,t),Ec("update",o,!0,{dirtyElements:v,dirtyLeaves:h,editorState:t,normalizedNodes:b,prevEditorState:a||i,tags:_}),function(O,I){if(O._deferred=[],I.length!==0){const L=O._updating;O._updating=!0;try{for(let M=0;M<I.length;M++)I[M]()}finally{O._updating=L}}}(o,R),function(O){const I=O._updates;if(I.length!==0){const L=I.shift();if(L){const[M,A]=L;Nh(O,M,A)}}}(o)}function Ec(o,a,t,...e){const s=a._updating;a._updating=t;try{const i=Array.from(a._listeners[o]);for(let r=0;r<i.length;r++)i[r].apply(null,e)}finally{a._updating=s}}function Rh(o,a,t){if(o._updating===!1||Eo!==o){let s=!1;return o.update(()=>{s=Rh(o,a,t)}),s}const e=xd(o);for(let s=4;s>=0;s--)for(let i=0;i<e.length;i++){const r=e[i]._commands.get(a);if(r!==void 0){const l=r[s];if(l!==void 0){const n=Array.from(l),c=n.length;for(let d=0;d<c;d++)if(n[d](t,o)===!0)return!0}}}return!1}function Ih(o,a){const t=o._updates;let e=a||!1;for(;t.length!==0;){const s=t.shift();if(s){const[i,r]=s;let l,n;if(r!==void 0){if(l=r.onUpdate,n=r.tag,r.skipTransforms&&(e=!0),r.discrete){const c=o._pendingEditorState;c===null&&pn(191),c._flushSync=!0}l&&o._deferred.push(l),n&&o._updateTags.add(n)}i()}}return e}function Nh(o,a,t){const e=o._updateTags;let s,i,r=!1,l=!1;t!==void 0&&(s=t.onUpdate,i=t.tag,i!=null&&e.add(i),r=t.skipTransforms||!1,l=t.discrete||!1),s&&o._deferred.push(s);const n=o._editorState;let c=o._pendingEditorState,d=!1;(c===null||c._readOnly)&&(c=o._pendingEditorState=new Ou(new Map((c||n)._nodeMap)),d=!0),c._flushSync=l;const u=So,f=mi,g=Eo,m=o._updating;So=c,mi=!1,o._updating=!0,Eo=o;try{d&&(o._headless?n._selection!==null&&(c._selection=n._selection.clone()):c._selection=function(_){const R=_.getEditorState()._selection,x=Ra(_._window);return sn(R)||R==null?Zd(R,x,_,null):R.clone()}(o));const v=o._compositionKey;a(),r=Ih(o,r),function(_,R){const x=R.getEditorState()._selection,w=_._selection;if(sn(w)){const O=w.anchor,I=w.focus;let L;if(O.type==="text"&&(L=O.getNode(),L.selectionTransform(x,w)),I.type==="text"){const M=I.getNode();L!==M&&M.selectionTransform(x,w)}}}(c,o),o._dirtyType!==rl&&(r?function(_,R){const x=R._dirtyLeaves,w=_._nodeMap;for(const O of x){const I=w.get(O);hn(I)&&I.isAttached()&&I.isSimpleText()&&!I.isUnmergeable()&&kp(I)}}(c,o):function(_,R){const x=R._dirtyLeaves,w=R._dirtyElements,O=_._nodeMap,I=As(),L=new Map;let M=x,A=M.size,k=w,J=k.size;for(;A>0||J>0;){if(A>0){R._dirtyLeaves=new Set;for(const G of M){const U=O.get(G);hn(U)&&U.isAttached()&&U.isSimpleText()&&!U.isUnmergeable()&&kp(U),U!==void 0&&jh(U,I)&&Ph(R,U,L),x.add(G)}if(M=R._dirtyLeaves,A=M.size,A>0){Cu++;continue}}R._dirtyLeaves=new Set,R._dirtyElements=new Map;for(const G of k){const U=G[0],D=G[1];if(U!=="root"&&!D)continue;const W=O.get(U);W!==void 0&&jh(W,I)&&Ph(R,W,L),w.set(U,D)}M=R._dirtyLeaves,A=M.size,k=R._dirtyElements,J=k.size,Cu++}R._dirtyLeaves=x,R._dirtyElements=w}(c,o),Ih(o),function(_,R,x,w){const O=_._nodeMap,I=R._nodeMap,L=[];for(const[M]of w){const A=I.get(M);A!==void 0&&(A.isAttached()||(Fe(A)&&Vp(A,M,O,I,L,w),O.has(M)||w.delete(M),L.push(M)))}for(const M of L)I.delete(M);for(const M of x){const A=I.get(M);A===void 0||A.isAttached()||(O.has(M)||x.delete(M),I.delete(M))}}(n,c,o._dirtyLeaves,o._dirtyElements)),v!==o._compositionKey&&(c._flushSync=!0);const b=c._selection;if(sn(b)){const _=c._nodeMap,R=b.anchor.key,x=b.focus.key;_.get(R)!==void 0&&_.get(x)!==void 0||pn(19)}else fa(b)&&b._nodes.size===0&&(c._selection=null)}catch(v){return v instanceof Error&&o._onError(v),o._pendingEditorState=n,o._dirtyType=Sl,o._cloneNotNeeded.clear(),o._dirtyLeaves=new Set,o._dirtyElements.clear(),void Ds(o)}finally{So=u,mi=f,Eo=g,o._updating=m,Cu=0}o._dirtyType!==rl||function(v,b){const _=b.getEditorState()._selection,R=v._selection;if(R!==null){if(R.dirty||!R.is(_))return!0}else if(_!==null)return!0;return!1}(c,o)?c._flushSync?(c._flushSync=!1,Ds(o)):d&&Zm(()=>{Ds(o)}):(c._flushSync=!1,d&&(e.clear(),o._deferred=[],o._pendingEditorState=null))}function Ii(o,a,t){o._updating?o._updates.push([a,t]):Nh(o,a,t)}class ku extends bu{constructor(a){super(a),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null}afterCloneFrom(a){super.afterCloneFrom(a),this.__first=a.__first,this.__last=a.__last,this.__size=a.__size,this.__indent=a.__indent,this.__format=a.__format,this.__style=a.__style,this.__dir=a.__dir}getFormat(){return this.getLatest().__format}getFormatType(){const a=this.getFormat();return Wm[a]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const a=[];let t=this.getFirstChild();for(;t!==null;)a.push(t),t=t.getNextSibling();return a}getChildrenKeys(){const a=[];let t=this.getFirstChild();for(;t!==null;)a.push(t.__key),t=t.getNextSibling();return a}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const a=Xr()._dirtyElements;return a!==null&&a.has(this.__key)}isLastChild(){const a=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(a)}getAllTextNodes(){const a=[];let t=this.getFirstChild();for(;t!==null;){if(hn(t)&&a.push(t),Fe(t)){const e=t.getAllTextNodes();a.push(...e)}t=t.getNextSibling()}return a}getFirstDescendant(){let a=this.getFirstChild();for(;Fe(a);){const t=a.getFirstChild();if(t===null)break;a=t}return a}getLastDescendant(){let a=this.getLastChild();for(;Fe(a);){const t=a.getLastChild();if(t===null)break;a=t}return a}getDescendantByIndex(a){const t=this.getChildren(),e=t.length;if(a>=e){const i=t[e-1];return Fe(i)&&i.getLastDescendant()||i||null}const s=t[a];return Fe(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const a=this.getLatest().__first;return a===null?null:Qo(a)}getFirstChildOrThrow(){const a=this.getFirstChild();return a===null&&pn(45,this.__key),a}getLastChild(){const a=this.getLatest().__last;return a===null?null:Qo(a)}getLastChildOrThrow(){const a=this.getLastChild();return a===null&&pn(96,this.__key),a}getChildAtIndex(a){const t=this.getChildrenSize();let e,s;if(a<t/2){for(e=this.getFirstChild(),s=0;e!==null&&s<=a;){if(s===a)return e;e=e.getNextSibling(),s++}return null}for(e=this.getLastChild(),s=t-1;e!==null&&s>=a;){if(s===a)return e;e=e.getPreviousSibling(),s--}return null}getTextContent(){let a="";const t=this.getChildren(),e=t.length;for(let s=0;s<e;s++){const i=t[s];a+=i.getTextContent(),Fe(i)&&s!==e-1&&!i.isInline()&&(a+=is)}return a}getTextContentSize(){let a=0;const t=this.getChildren(),e=t.length;for(let s=0;s<e;s++){const i=t[s];a+=i.getTextContentSize(),Fe(i)&&s!==e-1&&!i.isInline()&&(a+=is.length)}return a}getDirection(){return this.getLatest().__dir}hasFormat(a){if(a!==""){const t=_p[a];return!!(this.getFormat()&t)}return!1}select(a,t){yi();const e=Pn();let s=a,i=t;const r=this.getChildrenSize();if(!this.canBeEmpty()){if(a===0&&t===0){const n=this.getFirstChild();if(hn(n)||Fe(n))return n.select(0,0)}else if(!(a!==void 0&&a!==r||t!==void 0&&t!==r)){const n=this.getLastChild();if(hn(n)||Fe(n))return n.select()}}s===void 0&&(s=r),i===void 0&&(i=r);const l=this.__key;return sn(e)?(e.anchor.set(l,s,"element"),e.focus.set(l,i,"element"),e.dirty=!0,e):xh(l,s,l,i,"element","element")}selectStart(){const a=this.getFirstDescendant();return a?a.selectStart():this.select()}selectEnd(){const a=this.getLastDescendant();return a?a.selectEnd():this.select()}clear(){const a=this.getWritable();return this.getChildren().forEach(t=>t.remove()),a}append(...a){return this.splice(this.getChildrenSize(),0,a)}setDirection(a){const t=this.getWritable();return t.__dir=a,t}setFormat(a){return this.getWritable().__format=a!==""?_p[a]:0,this}setStyle(a){return this.getWritable().__style=a||"",this}setIndent(a){return this.getWritable().__indent=a,this}splice(a,t,e){const s=e.length,i=this.getChildrenSize(),r=this.getWritable(),l=r.__key,n=[],c=[],d=this.getChildAtIndex(a+t);let u=null,f=i-t+s;if(a!==0)if(a===i)u=this.getLastChild();else{const m=this.getChildAtIndex(a);m!==null&&(u=m.getPreviousSibling())}if(t>0){let m=u===null?this.getFirstChild():u.getNextSibling();for(let h=0;h<t;h++){m===null&&pn(100);const v=m.getNextSibling(),b=m.__key;ol(m.getWritable()),c.push(b),m=v}}let g=u;for(let m=0;m<s;m++){const h=e[m];g!==null&&h.is(g)&&(u=g=g.getPreviousSibling());const v=h.getWritable();v.__parent===l&&f--,ol(v);const b=h.__key;if(g===null)r.__first=b,v.__prev=null;else{const _=g.getWritable();_.__next=b,v.__prev=_.__key}h.__key===l&&pn(76),v.__parent=l,n.push(b),g=h}if(a+t===i)g!==null&&(g.getWritable().__next=null,r.__last=g.__key);else if(d!==null){const m=d.getWritable();if(g!==null){const h=g.getWritable();m.__prev=g.__key,h.__next=d.__key}else m.__prev=null}if(r.__size=f,c.length){const m=Pn();if(sn(m)){const h=new Set(c),v=new Set(n),{anchor:b,focus:_}=m;Mh(b,h,v)&&Eu(b,b.getNode(),this,u,d),Mh(_,h,v)&&Eu(_,_.getNode(),this,u,d),f!==0||this.canBeEmpty()||kl(this)||this.remove()}}return r}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(a,t){return null}canIndent(){return!0}collapseAtStart(a){return!1}excludeFromCopy(a){return!1}canReplaceWith(a){return!0}canInsertAfter(a){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(a){return!1}extractWithChild(a,t,e){return!1}canMergeWhenEmpty(){return!1}}function Fe(o){return o instanceof ku}function Mh(o,a,t){let e=o.getNode();for(;e;){const s=e.__key;if(a.has(s)&&!t.has(s))return!0;e=e.getParent()}return!1}class O0 extends bu{constructor(a){super(a)}decorate(a,t){pn(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Tr(o){return o instanceof O0}class Cc extends ku{static getType(){return"root"}static clone(){return new Cc}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){pn(51)}getTextContent(){const a=this.__cachedText;return!Sc()&&Xr()._dirtyType!==rl||a===null?super.getTextContent():a}remove(){pn(52)}replace(a){pn(53)}insertBefore(a){pn(54)}insertAfter(a){pn(55)}updateDOM(a,t){return!1}append(...a){for(let t=0;t<a.length;t++){const e=a[t];Fe(e)||Tr(e)||pn(56)}return super.append(...a)}static importJSON(a){const t=ro();return t.setFormat(a.format),t.setIndent(a.indent),t.setDirection(a.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function Uo(o){return o instanceof Cc}function rf(){return new Ou(new Map([["root",new Cc]]))}function Dh(o){const a=o.exportJSON(),t=o.constructor;if(a.type!==t.getType()&&pn(130,t.name),Fe(o)){const e=a.children;Array.isArray(e)||pn(59,t.name);const s=o.getChildren();for(let i=0;i<s.length;i++){const r=Dh(s[i]);e.push(r)}}return a}class Ou{constructor(a,t){this._nodeMap=a,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(a,t){return Ah(t&&t.editor||null,this,a)}clone(a){const t=new Ou(this._nodeMap,a===void 0?this._selection:a);return t._readOnly=!0,t}toJSON(){return Ah(null,this,()=>({root:Dh(ro())}))}}class of extends ku{static getType(){return"artificial"}createDOM(a){return document.createElement("div")}}class Rl extends ku{constructor(a){super(a),this.__textFormat=0,this.__textStyle=""}static getType(){return"paragraph"}getTextFormat(){return this.getLatest().__textFormat}setTextFormat(a){const t=this.getWritable();return t.__textFormat=a,t}hasTextFormat(a){const t=as[a];return!!(this.getTextFormat()&t)}getTextStyle(){return this.getLatest().__textStyle}setTextStyle(a){const t=this.getWritable();return t.__textStyle=a,t}static clone(a){return new Rl(a.__key)}afterCloneFrom(a){super.afterCloneFrom(a),this.__textFormat=a.__textFormat,this.__textStyle=a.__textStyle}createDOM(a){const t=document.createElement("p"),e=uc(a.theme,"paragraph");return e!==void 0&&t.classList.add(...e),t}updateDOM(a,t,e){return!1}static importDOM(){return{p:a=>({conversion:T0,priority:0})}}exportDOM(a){const{element:t}=super.exportDOM(a);if(t&&jd(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();t.style.textAlign=e;const s=this.getDirection();s&&(t.dir=s);const i=this.getIndent();i>0&&(t.style.textIndent=20*i+"px")}return{element:t}}static importJSON(a){const t=Ma();return t.setFormat(a.format),t.setIndent(a.indent),t.setDirection(a.direction),t.setTextFormat(a.textFormat),t}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle(),type:"paragraph",version:1}}insertNewAfter(a,t){const e=Ma();e.setTextFormat(a.format),e.setTextStyle(a.style);const s=this.getDirection();return e.setDirection(s),e.setFormat(this.getFormatType()),e.setStyle(this.getTextStyle()),this.insertAfter(e,t),e}collapseAtStart(){const a=this.getChildren();if(a.length===0||hn(a[0])&&a[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function T0(o){const a=Ma();if(o.style){a.setFormat(o.style.textAlign);const t=parseInt(o.style.textIndent,10)/20;t>0&&a.setIndent(t)}return{node:a}}function Ma(){return du(new Rl)}function af(o){return o instanceof Rl}const mr=0,P0=4;function Lh(o,a,t,e){const s=o._keyToDOMMap;s.clear(),o._editorState=rf(),o._pendingEditorState=e,o._compositionKey=null,o._dirtyType=rl,o._cloneNotNeeded.clear(),o._dirtyLeaves=new Set,o._dirtyElements.clear(),o._normalizedNodes=new Set,o._updateTags=new Set,o._updates=[],o._blockCursorElement=null;const i=o._observer;i!==null&&(i.disconnect(),o._observer=null),a!==null&&(a.textContent=""),t!==null&&(t.textContent="",s.set("root",t))}function Bh(o){const a=o||{},t=C0(),e=a.theme||{},s=o===void 0?t:a.parentEditor||null,i=a.disableEvents||!1,r=rf(),l=a.namespace||(s!==null?s._config.namespace:Dp()),n=a.editorState,c=[Cc,Al,bc,_c,Rl,of,...a.nodes||[]],{onError:d,html:u}=a,f=a.editable===void 0||a.editable;let g;if(o===void 0&&t!==null)g=t._nodes;else{g=new Map;for(let h=0;h<c.length;h++){let v=c[h],b=null,_=null;if(typeof v!="function"){const O=v;v=O.replace,b=O.with,_=O.withKlass||null}const R=v.getType(),x=v.transform(),w=new Set;x!==null&&w.add(x),g.set(R,{exportDOM:u&&u.export?u.export.get(v):void 0,klass:v,replace:b,replaceWithKlass:_,transforms:w})}}const m=new Tu(r,s,g,{disableEvents:i,namespace:l,theme:e},d||console.error,function(h,v){const b=new Map,_=new Set,R=x=>{Object.keys(x).forEach(w=>{let O=b.get(w);O===void 0&&(O=[],b.set(w,O)),O.push(x[w])})};return h.forEach(x=>{const w=x.klass.importDOM;if(w==null||_.has(w))return;_.add(w);const O=w.call(x.klass);O!==null&&R(O)}),v&&R(v),b}(g,u?u.import:void 0),f);return n!==void 0&&(m._pendingEditorState=n,m._dirtyType=Sl),m}class Tu{constructor(a,t,e,s,i,r,l){this._parentEditor=t,this._rootElement=null,this._editorState=a,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=s,this._nodes=e,this._decorators={},this._pendingDecorators=null,this._dirtyType=rl,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Dp(),this._onError=i,this._htmlConversions=r,this._editable=l,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(a){const t=this._listeners.update;return t.add(a),()=>{t.delete(a)}}registerEditableListener(a){const t=this._listeners.editable;return t.add(a),()=>{t.delete(a)}}registerDecoratorListener(a){const t=this._listeners.decorator;return t.add(a),()=>{t.delete(a)}}registerTextContentListener(a){const t=this._listeners.textcontent;return t.add(a),()=>{t.delete(a)}}registerRootListener(a){const t=this._listeners.root;return a(this._rootElement,null),t.add(a),()=>{a(null,this._rootElement),t.delete(a)}}registerCommand(a,t,e){e===void 0&&pn(35);const s=this._commands;s.has(a)||s.set(a,[new Set,new Set,new Set,new Set,new Set]);const i=s.get(a);i===void 0&&pn(36,String(a));const r=i[e];return r.add(t),()=>{r.delete(t),i.every(l=>l.size===0)&&s.delete(a)}}registerMutationListener(a,t,e){const s=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(a)).klass,i=this._listeners.mutation;i.set(t,s);const r=e&&e.skipInitialization;return r===void 0||r||this.initializeMutationListener(t,s),()=>{i.delete(t)}}getRegisteredNode(a){const t=this._nodes.get(a.getType());return t===void 0&&pn(37,a.name),t}resolveRegisteredNodeAfterReplacements(a){for(;a.replaceWithKlass;)a=this.getRegisteredNode(a.replaceWithKlass);return a}initializeMutationListener(a,t){const e=this._editorState,s=l0(e).get(t.getType());if(!s)return;const i=new Map;for(const r of s.keys())i.set(r,"created");i.size>0&&a(i,{dirtyLeaves:new Set,prevEditorState:e,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(a,t){const e=this.getRegisteredNode(a);return e.transforms.add(t),e}registerNodeTransform(a,t){const e=this.registerNodeTransformToKlass(a,t),s=[e],i=e.replaceWithKlass;if(i!=null){const n=this.registerNodeTransformToKlass(i,t);s.push(n)}var r,l;return r=this,l=a.getType(),Ii(r,()=>{const n=cs();if(n.isEmpty())return;if(l==="root")return void ro().markDirty();const c=n._nodeMap;for(const[,d]of c)d.markDirty()},r._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{s.forEach(n=>n.transforms.delete(t))}}hasNode(a){return this._nodes.has(a.getType())}hasNodes(a){return a.every(this.hasNode.bind(this))}dispatchCommand(a,t){return mn(this,a,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(a){const t=this._rootElement;if(a!==t){const e=uc(this._config.theme,"root"),s=this._pendingEditorState||this._editorState;if(this._rootElement=a,Lh(this,t,a,s),t!==null&&(this._config.disableEvents||f0(t),e!=null&&t.classList.remove(...e)),a!==null){const i=function(l){const n=l.ownerDocument;return n&&n.defaultView||null}(a),r=a.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",a.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=Sl,Sp(this),this._updateTags.add("history-merge"),Ds(this),this._config.disableEvents||function(l,n){const c=l.ownerDocument,d=vu.get(c);(d===void 0||d<1)&&c.addEventListener("selectionchange",sh),vu.set(c,(d||0)+1),l.__lexicalEditor=n;const u=ah(l);for(let f=0;f<Hd.length;f++){const[g,m]=Hd[f],h=typeof m=="function"?v=>{ch(v)||(lh(v),(n.isEditable()||g==="click")&&m(v,n))}:v=>{if(ch(v))return;lh(v);const b=n.isEditable();switch(g){case"cut":return b&&mn(n,id,v);case"copy":return mn(n,Xc,v);case"paste":return b&&mn(n,rd,v);case"dragstart":return b&&mn(n,hp,v);case"dragover":return b&&mn(n,gp,v);case"dragend":return b&&mn(n,Om,v);case"focus":return b&&mn(n,jm,v);case"blur":return b&&mn(n,Am,v);case"drop":return b&&mn(n,pp,v)}};l.addEventListener(g,h),u.push(()=>{l.removeEventListener(g,h)})}}(a,this),e!=null&&a.classList.add(...e)}else this._editorState=s,this._pendingEditorState=null,this._window=null;Ec("root",this,!1,a,t)}}getElementByKey(a){return this._keyToDOMMap.get(a)||null}getEditorState(){return this._editorState}setEditorState(a,t){a.isEmpty()&&pn(38),xp(this);const e=this._pendingEditorState,s=this._updateTags,i=t!==void 0?t.tag:null;e===null||e.isEmpty()||(i!=null&&s.add(i),Ds(this)),this._pendingEditorState=a,this._dirtyType=Sl,this._dirtyElements.set("root",!1),this._compositionKey=null,i!=null&&s.add(i),Ds(this)}parseEditorState(a,t){return function(e,s,i){const r=rf(),l=So,n=mi,c=Eo,d=s._dirtyElements,u=s._dirtyLeaves,f=s._cloneNotNeeded,g=s._dirtyType;s._dirtyElements=new Map,s._dirtyLeaves=new Set,s._cloneNotNeeded=new Set,s._dirtyType=0,So=r,mi=!1,Eo=s;try{const m=s._nodes;nf(e.root,m),i&&i(),r._readOnly=!0}catch(m){m instanceof Error&&s._onError(m)}finally{s._dirtyElements=d,s._dirtyLeaves=u,s._cloneNotNeeded=f,s._dirtyType=g,So=l,mi=n,Eo=c}return r}(typeof a=="string"?JSON.parse(a):a,this,t)}read(a){return Ds(this),this.getEditorState().read(a,{editor:this})}update(a,t){Ii(this,a,t)}focus(a,t={}){const e=this._rootElement;e!==null&&(e.setAttribute("autocapitalize","off"),Ii(this,()=>{const s=Pn(),i=ro();s!==null?s.dirty=!0:i.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?i.selectStart():i.selectEnd())},{onUpdate:()=>{e.removeAttribute("autocapitalize"),a&&a()},tag:"focus"}),this._pendingEditorState===null&&e.removeAttribute("autocapitalize"))}blur(){const a=this._rootElement;a!==null&&a.blur();const t=Ra(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(a){this._editable!==a&&(this._editable=a,Ec("editable",this,!0,a))}toJSON(){return{editorState:this._editorState.toJSON()}}}Tu.version="0.17.1+prod.esm";const pb="";function j0(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var A0=j0(function(o){const a=new URLSearchParams;a.append("code",o);for(let t=1;t<arguments.length;t++)a.append("v",arguments[t]);throw Error(`Minified Lexical error #${o}; visit https://lexical.dev/docs/error?${a} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const Fh=an.createContext(null);function R0(o,a){let t=null;return o!=null&&(t=o[1]),{getTheme:function(){return a??(t!=null?t.getTheme():null)}}}function cl(){const o=an.useContext(Fh);return o==null&&A0(8),o}const zh=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,I0=zh?an.useLayoutEffect:an.useEffect,Pu={tag:"history-merge"};function N0({initialConfig:o,children:a}){const t=an.useMemo(()=>{const{theme:e,namespace:s,nodes:i,onError:r,editorState:l,html:n}=o,c=R0(null,e),d=Bh({editable:o.editable,html:n,namespace:s,nodes:i,onError:u=>r(u,d),theme:e});return function(u,f){if(f!==null){if(f===void 0)u.update(()=>{const g=ro();if(g.isEmpty()){const m=Ma();g.append(m);const h=zh?document.activeElement:null;(Pn()!==null||h!==null&&h===u.getRootElement())&&m.select()}},Pu);else if(f!==null)switch(typeof f){case"string":{const g=u.parseEditorState(f);u.setEditorState(g,Pu);break}case"object":u.setEditorState(f,Pu);break;case"function":u.update(()=>{ro().isEmpty()&&f(u)},Pu)}}}(d,l),[d,c]},[]);return I0(()=>{const e=o.editable,[s]=t;s.setEditable(e===void 0||e)},[]),ze.jsx(Fh.Provider,{value:t,children:a})}function M0({defaultSelection:o}){const[a]=cl();return an.useEffect(()=>{a.focus(()=>{const t=document.activeElement,e=a.getRootElement();e===null||t!==null&&e.contains(t)||e.focus({preventScroll:!0})},{defaultSelection:o})},[o,a]),null}function D0(){return ro().getTextContent()}function L0(o,a=!0){if(o)return!1;let t=D0();return a&&(t=t.trim()),t===""}function B0(o){if(!L0(o,!1))return!1;const a=ro().getChildren(),t=a.length;if(t>1)return!1;for(let e=0;e<t;e++){const s=a[e];if(Tr(s))return!1;if(Fe(s)){if(!af(s)||s.__indent!==0)return!1;const i=s.getChildren(),r=i.length;for(let l=0;l<r;l++){const n=i[e];if(!hn(n))return!1}}}return!0}function Uh(o){return()=>B0(o)}function F0(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}F0(function(o){const a=new URLSearchParams;a.append("code",o);for(let t=1;t<arguments.length;t++)a.append("v",arguments[t]);throw Error(`Minified Lexical error #${o}; visit https://lexical.dev/docs/error?${a} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function z0(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var U0=z0(function(o){const a=new URLSearchParams;a.append("code",o);for(let t=1;t<arguments.length;t++)a.append("v",arguments[t]);throw Error(`Minified Lexical error #${o}; visit https://lexical.dev/docs/error?${a} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const H0=new Map;function q0(o){const a={},t=o.split(";");for(const e of t)if(e!==""){const[s,i]=e.split(/:([^]+)/);s&&i&&(a[s.trim()]=i.trim())}return a}function Hh(o,a){const t=o.getStartEndPoints();if(a.isSelected(o)&&!a.isSegmented()&&!a.isToken()&&t!==null){const[e,s]=t,i=o.isBackward(),r=e.getNode(),l=s.getNode(),n=a.is(r),c=a.is(l);if(n||c){const[d,u]=Xd(o),f=r.is(l),g=a.is(i?l:r),m=a.is(i?r:l);let h,v=0;return f?(v=d>u?u:d,h=d>u?d:u):g?(v=i?u:d,h=void 0):m&&(v=0,h=i?d:u),a.__text=a.__text.slice(v,h),a}}return a}function qh(o){if(o.type==="text")return o.offset===o.getNode().getTextContentSize();const a=o.getNode();return Fe(a)||U0(177),o.offset===a.getChildrenSize()}function W0(o){const a=o.getStyle(),t=q0(a);H0.set(a,t)}function Wh(o,a){const t=dc(o.focus,a);return Tr(t)&&!t.isIsolated()||Fe(t)&&!t.isInline()&&!t.canBeEmpty()}function V0(o,a,t,e){o.modify(a?"extend":"move",t,e)}function $0(o){const a=o.anchor.getNode();return(Uo(a)?a:a.getParentOrThrow()).getDirection()==="rtl"}function Vh(o,a,t){const e=$0(o);V0(o,a,t?!e:e,"character")}function J0(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var K0=J0(function(o){const a=new URLSearchParams;a.append("code",o);for(let t=1;t<arguments.length;t++)a.append("v",arguments[t]);throw Error(`Minified Lexical error #${o}; visit https://lexical.dev/docs/error?${a} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const $h=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,G0=$h&&"documentMode"in document?document.documentMode:null;!(!$h||!("InputEvent"in window)||G0)&&"getTargetRanges"in new window.InputEvent("input");function Il(...o){return()=>{for(let a=o.length-1;a>=0;a--)o[a]();o.length=0}}function Y0(o){const a=sf(o,t=>Fe(t)&&!t.isInline());return Fe(a)||K0(4,o.__key),a}const sf=(o,a)=>{let t=o;for(;t!==ro()&&t!=null;){if(a(t))return t;t=t.getParent()}return null};function ul(o,a){return o!==null&&Object.getPrototypeOf(o).constructor.name===a.name}const Jh=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?an.useLayoutEffect:an.useEffect;function X0({editor:o,ariaActiveDescendant:a,ariaAutoComplete:t,ariaControls:e,ariaDescribedBy:s,ariaExpanded:i,ariaLabel:r,ariaLabelledBy:l,ariaMultiline:n,ariaOwns:c,ariaRequired:d,autoCapitalize:u,className:f,id:g,role:m="textbox",spellCheck:h=!0,style:v,tabIndex:b,"data-testid":_,...R},x){const[w,O]=an.useState(o.isEditable()),I=an.useCallback(M=>{M&&M.ownerDocument&&M.ownerDocument.defaultView?o.setRootElement(M):o.setRootElement(null)},[o]),L=an.useMemo(()=>function(...M){return A=>{M.forEach(k=>{typeof k=="function"?k(A):k!=null&&(k.current=A)})}}(x,I),[I,x]);return Jh(()=>(O(o.isEditable()),o.registerEditableListener(M=>{O(M)})),[o]),ze.jsx("div",{...R,"aria-activedescendant":w?a:void 0,"aria-autocomplete":w?t:"none","aria-controls":w?e:void 0,"aria-describedby":s,"aria-expanded":w&&m==="combobox"?!!i:void 0,"aria-label":r,"aria-labelledby":l,"aria-multiline":n,"aria-owns":w?c:void 0,"aria-readonly":!w||void 0,"aria-required":d,autoCapitalize:u,className:f,contentEditable:w,"data-testid":_,id:g,ref:L,role:w?m:void 0,spellCheck:h,style:v,tabIndex:b})}const Q0=an.forwardRef(X0);function Kh(o){return o.getEditorState().read(Uh(o.isComposing()))}const Z0=an.forwardRef(ty);function ty(o,a){const{placeholder:t,...e}=o,[s]=cl();return ze.jsxs(ze.Fragment,{children:[ze.jsx(Q0,{editor:s,...e,ref:a}),t!=null&&ze.jsx(ey,{editor:s,content:t})]})}function ey({content:o,editor:a}){const t=function(r){const[l,n]=an.useState(()=>Kh(r));return Jh(()=>{function c(){const d=Kh(r);n(d)}return c(),Il(r.registerUpdateListener(()=>{c()}),r.registerEditableListener(()=>{c()}))},[r]),l}(a),[e,s]=an.useState(a.isEditable());if(an.useLayoutEffect(()=>(s(a.isEditable()),a.registerEditableListener(r=>{s(r)})),[a]),!t)return null;let i=null;return typeof o=="function"?i=o(e):o!==null&&(i=o),i===null?null:ze.jsx("div",{"aria-hidden":!0,children:i})}const ju=0,lf=1,cf=2,pa=0,ny=1,Gh=2,ry=3,oy=4;function iy(o,a,t,e,s){if(o===null||t.size===0&&e.size===0&&!s)return pa;const i=a._selection,r=o._selection;if(s)return ny;if(!(sn(i)&&sn(r)&&r.isCollapsed()&&i.isCollapsed()))return pa;const l=function(b,_,R){const x=b._nodeMap,w=[];for(const O of _){const I=x.get(O);I!==void 0&&w.push(I)}for(const[O,I]of R){if(!I)continue;const L=x.get(O);L===void 0||Uo(L)||w.push(L)}return w}(a,t,e);if(l.length===0)return pa;if(l.length>1){const b=a._nodeMap,_=b.get(i.anchor.key),R=b.get(r.anchor.key);return _&&R&&!o._nodeMap.has(_.__key)&&hn(_)&&_.__text.length===1&&i.anchor.offset===1?Gh:pa}const n=l[0],c=o._nodeMap.get(n.__key);if(!hn(c)||!hn(n)||c.__mode!==n.__mode)return pa;const d=c.__text,u=n.__text;if(d===u)return pa;const f=i.anchor,g=r.anchor;if(f.key!==g.key||f.type!=="text")return pa;const m=f.offset,h=g.offset,v=u.length-d.length;return v===1&&h===m-1?Gh:v===-1&&h===m+1?ry:v===-1&&h===m?oy:pa}function ay(o,a){let t=Date.now(),e=pa;return(s,i,r,l,n,c)=>{const d=Date.now();if(c.has("historic"))return e=pa,t=d,cf;const u=iy(s,i,l,n,o.isComposing()),f=(()=>{const g=r===null||r.editor===o,m=c.has("history-push");if(!m&&g&&c.has("history-merge"))return ju;if(s===null)return lf;const h=i._selection;return l.size>0||n.size>0?m===!1&&u!==pa&&u===e&&d<t+a&&g||l.size===1&&function(v,b,_){const R=b._nodeMap.get(v),x=_._nodeMap.get(v),w=b._selection,O=_._selection;return!(sn(w)&&sn(O)&&w.anchor.type==="element"&&w.focus.type==="element"&&O.anchor.type==="text"&&O.focus.type==="text"||!hn(R)||!hn(x)||R.__parent!==x.__parent)&&JSON.stringify(b.read(()=>R.exportJSON()))===JSON.stringify(_.read(()=>x.exportJSON()))}(Array.from(l)[0],s,i)?ju:lf:h!==null?ju:cf})();return t=d,e=u,f}}function Yh(o){o.undoStack=[],o.redoStack=[],o.current=null}function sy(o,a,t){const e=ay(o,t);return Il(o.registerCommand(Kc,()=>(function(i,r){const l=r.redoStack,n=r.undoStack;if(n.length!==0){const c=r.current,d=n.pop();c!==null&&(l.push(c),i.dispatchCommand(rc,!0)),n.length===0&&i.dispatchCommand(oc,!1),r.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(o,a),!0),mr),o.registerCommand(Gc,()=>(function(i,r){const l=r.redoStack,n=r.undoStack;if(l.length!==0){const c=r.current;c!==null&&(n.push(c),i.dispatchCommand(oc,!0));const d=l.pop();l.length===0&&i.dispatchCommand(rc,!1),r.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(o,a),!0),mr),o.registerCommand(Tm,()=>(Yh(a),!1),mr),o.registerCommand(Pm,()=>(Yh(a),o.dispatchCommand(rc,!1),o.dispatchCommand(oc,!1),!0),mr),o.registerUpdateListener(({editorState:i,prevEditorState:r,dirtyLeaves:l,dirtyElements:n,tags:c})=>{const d=a.current,u=a.redoStack,f=a.undoStack,g=d===null?null:d.editorState;if(d!==null&&i===g)return;const m=e(r,i,d,l,n,c);if(m===lf)u.length!==0&&(a.redoStack=[],o.dispatchCommand(rc,!1)),d!==null&&(f.push({...d}),o.dispatchCommand(oc,!0));else if(m===cf)return;a.current={editor:o,editorState:i}}))}function ly(){return{current:null,redoStack:[],undoStack:[]}}function cy({delay:o,externalHistoryState:a}){const[t]=cl();return function(e,s,i=1e3){const r=an.useMemo(()=>s||ly(),[s]);an.useEffect(()=>sy(e,r,i),[i,e,r])}(t,a,o),null}const uy=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?an.useLayoutEffect:an.useEffect;function dy(o){return{initialValueFn:()=>o.isEditable(),subscribe:a=>o.registerEditableListener(a)}}function fy(){return function(o){const[a]=cl(),t=an.useMemo(()=>o(a),[a,o]),e=an.useRef(t.initialValueFn()),[s,i]=an.useState(e.current);return uy(()=>{const{initialValueFn:r,subscribe:l}=t,n=r();return e.current!==n&&(e.current=n,i(n)),l(c=>{e.current=c,i(c)})},[t,o]),s}(dy)}function py(o){const a=window.location.origin,t=e=>{if(e.origin!==a)return;const s=o.getRootElement();if(document.activeElement!==s)return;const i=e.data;if(typeof i=="string"){let r;try{r=JSON.parse(i)}catch{return}if(r&&r.protocol==="nuanria_messaging"&&r.type==="request"){const l=r.payload;if(l&&l.functionId==="makeChanges"){const n=l.args;if(n){const[c,d,u,f,g,m]=n;o.update(()=>{const h=Pn();if(sn(h)){const v=h.anchor;let b=v.getNode(),_=0,R=0;if(hn(b)&&c>=0&&d>=0&&(_=c,R=c+d,h.setTextNodeRange(b,_,b,R)),_===R&&u===""||(h.insertRawText(u),b=v.getNode()),hn(b)){_=f,R=f+g;const x=b.getTextContentSize();_=_>x?x:_,R=R>x?x:R,h.setTextNodeRange(b,_,b,R)}e.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",t,!0),()=>{window.removeEventListener("message",t,!0)}}function hy(o,a){const t=a.body?a.body.childNodes:[];let e=[];const s=[];for(let i=0;i<t.length;i++){const r=t[i];if(!Qh.has(r.nodeName)){const l=Zh(r,o,s,!1);l!==null&&(e=e.concat(l))}}return function(i){for(const r of i)r.getNextSibling()instanceof of&&r.insertAfter(ll());for(const r of i){const l=r.getChildren();for(const n of l)r.insertBefore(n);r.remove()}}(s),e}function gy(o,a){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const t=document.createElement("div"),e=ro().getChildren();for(let s=0;s<e.length;s++)Xh(o,e[s],t,a);return t.innerHTML}function Xh(o,a,t,e=null){let s=e===null||a.isSelected(e);const i=Fe(a)&&a.excludeFromCopy("html");let r=a;if(e!==null){let g=Id(a);g=hn(g)&&e!==null?Hh(e,g):g,r=g}const l=Fe(r)?r.getChildren():[],n=o._nodes.get(r.getType());let c;c=n&&n.exportDOM!==void 0?n.exportDOM(o,r):r.exportDOM(o);const{element:d,after:u}=c;if(!d)return!1;const f=document.createDocumentFragment();for(let g=0;g<l.length;g++){const m=l[g],h=Xh(o,m,f,e);!s&&Fe(a)&&h&&a.extractWithChild(m,e,"html")&&(s=!0)}if(s&&!i){if(jd(d)&&d.append(f),t.append(d),u){const g=u.call(r,d);g&&d.replaceWith(g)}}else t.append(f);return s}const Qh=new Set(["STYLE","SCRIPT"]);function Zh(o,a,t,e,s=new Map,i){let r=[];if(Qh.has(o.nodeName))return r;let l=null;const n=function(m,h){const{nodeName:v}=m,b=h._htmlConversions.get(v.toLowerCase());let _=null;if(b!==void 0)for(const R of b){const x=R(m);x!==null&&(_===null||(_.priority||0)<(x.priority||0))&&(_=x)}return _!==null?_.conversion:null}(o,a),c=n?n(o):null;let d=null;if(c!==null){d=c.after;const m=c.node;if(l=Array.isArray(m)?m[m.length-1]:m,l!==null){for(const[,h]of s)if(l=h(l,i),!l)break;l&&r.push(...Array.isArray(m)?m:[l])}c.forChild!=null&&s.set(o.nodeName,c.forChild)}const u=o.childNodes;let f=[];const g=(l==null||!kl(l))&&(l!=null&&Qd(l)||e);for(let m=0;m<u.length;m++)f.push(...Zh(u[m],a,t,g,new Map(s),l));return d!=null&&(f=d(f)),fu(o)&&(f=my(o,f,g?()=>{const m=new of;return t.push(m),m}:Ma)),l==null?f.length>0?r=r.concat(f):fu(o)&&function(m){return m.nextSibling==null||m.previousSibling==null?!1:Ad(m.nextSibling)&&Ad(m.previousSibling)}(o)&&(r=r.concat(ll())):Fe(l)&&l.append(...f),r}function my(o,a,t){const e=o.style.textAlign,s=[];let i=[];for(let r=0;r<a.length;r++){const l=a[r];if(Qd(l))e&&!l.getFormat()&&l.setFormat(e),s.push(l);else if(i.push(l),r===a.length-1||r<a.length-1&&Qd(a[r+1])){const n=t();n.setFormat(e),n.append(...i),s.push(n),i=[]}}return s}function yy(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Au=yy(function(o){const a=new URLSearchParams;a.append("code",o);for(let t=1;t<arguments.length;t++)a.append("v",arguments[t]);throw Error(`Minified Lexical error #${o}; visit https://lexical.dev/docs/error?${a} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const vy=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,tg=o=>vy?(o||window).getSelection():null;function by(o,a=Pn()){return a==null&&Au(166),sn(a)&&a.isCollapsed()||a.getNodes().length===0?"":gy(o,a)}function _y(o,a=Pn()){return a==null&&Au(166),sn(a)&&a.isCollapsed()||a.getNodes().length===0?null:JSON.stringify(wy(o,a))}function eg(o,a,t){const e=o.getData("application/x-lexical-editor");if(e)try{const r=JSON.parse(e);if(r.namespace===t._config.namespace&&Array.isArray(r.nodes))return ng(t,xy(r.nodes),a)}catch{}const s=o.getData("text/html");if(s)try{const r=new DOMParser().parseFromString(s,"text/html");return ng(t,hy(t,r),a)}catch{}const i=o.getData("text/plain")||o.getData("text/uri-list");if(i!=null)if(sn(a)){const r=i.split(/(\r?\n|\t)/);r[r.length-1]===""&&r.pop();for(let l=0;l<r.length;l++){const n=Pn();if(sn(n)){const c=r[l];c===`
|
|
40
40
|
`||c===`\r
|
|
41
|
-
`?a.insertParagraph():c===" "?a.insertNodes([gn()]):a.insertText(c)}}}else e.insertRawText(i)}function nl(n,e,t){n.dispatchCommand(Vl,{nodes:e,selection:t})||t.insertNodes(e)}function rl(n,e,t,r=[]){let o=e===null||t.isSelected(e);const i=E(t)&&t.excludeFromCopy("html");let s=t;if(e!==null){let c=no(t);c=D(c)&&e!==null?zs(e,c):c,s=c}const l=E(s)?s.getChildren():[],a=function(c){const u=c.exportJSON(),d=c.constructor;if(u.type!==d.getType()&&hr(58,d.name),E(c)){const f=u.children;Array.isArray(f)||hr(59,d.name)}return u}(s);if(D(s)){const c=s.__text;c.length>0?a.text=c:o=!1}for(let c=0;c<l.length;c++){const u=l[c],d=rl(n,e,u,a.children);!o&&E(t)&&d&&t.extractWithChild(u,e,"clone")&&(o=!0)}if(o&&!i)r.push(a);else if(Array.isArray(a.children))for(let c=0;c<a.children.length;c++){const u=a.children[c];r.push(u)}return o}function Gc(n,e){const t=[],r=ge().getChildren();for(let o=0;o<r.length;o++)rl(n,e,r[o],t);return{namespace:n._config.namespace,nodes:t}}function Xc(n){const e=[];for(let t=0;t<n.length;t++){const r=n[t],o=tc(r);D(o)&&vc(o),e.push(o)}return e}let Wt=null;async function ol(n,e,t){if(Wt!==null)return!1;if(e!==null)return new Promise((a,c)=>{n.update(()=>{a(il(n,e,t))})});const r=n.getRootElement(),o=n._window==null?window.document:n._window.document,i=el(n._window);if(r===null||i===null)return!1;const s=o.createElement("span");s.style.cssText="position: fixed; top: -1000px;",s.append(o.createTextNode("#")),r.append(s);const l=new Range;return l.setStart(s,0),l.setEnd(s,1),i.removeAllRanges(),i.addRange(l),new Promise((a,c)=>{const u=n.registerCommand(Rn,d=>(bt(d,ClipboardEvent)&&(u(),Wt!==null&&(window.clearTimeout(Wt),Wt=null),a(il(n,d,t))),!0),oc);Wt=window.setTimeout(()=>{u(),Wt=null,a(!1)},50),o.execCommand("copy"),s.remove()})}function il(n,e,t){if(t===void 0){const o=el(n._window);if(!o)return!1;const i=o.anchorNode,s=o.focusNode;if(i!==null&&s!==null&&!Zt(n,i,s))return!1;const l=B();if(l===null)return!1;t=Zc(l)}e.preventDefault();const r=e.clipboardData;return r!==null&&(eu(r,t),!0)}const Qc=[["text/html",Vc],["application/x-lexical-editor",Jc]];function Zc(n=B()){const e={"text/plain":n?n.getTextContent():""};if(n){const t=Ma();for(const[r,o]of Qc){const i=o(t,n);i!==null&&(e[r]=i)}}return e}function eu(n,e){for(const t in e){const r=e[t];r!==void 0&&n.setData(t,r)}}function sl(n,e){if(document.caretRangeFromPoint!==void 0){const t=document.caretRangeFromPoint(n,e);return t===null?null:{node:t.startContainer,offset:t.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const t=document.caretPositionFromPoint(n,e);return t===null?null:{node:t.offsetNode,offset:t.offset}}return null}const $t=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,tu=$t&&"documentMode"in document?document.documentMode:null,nu=!(!$t||!("InputEvent"in window)||tu)&&"getTargetRanges"in new window.InputEvent("input"),ru=$t&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ou=$t&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,iu=$t&&/^(?=.*Chrome).*/i.test(navigator.userAgent),su=$t&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!iu,ll=ql();function pr(n){let e=null;if(bt(n,DragEvent)?e=n.dataTransfer:bt(n,ClipboardEvent)&&(e=n.clipboardData),e===null)return[!1,[],!1];const t=e.types,r=t.includes("Files"),o=t.includes("text/html")||t.includes("text/plain");return[r,Array.from(e.files),o]}function al(n){const e=B();if(!I(e))return!1;const t=new Set,r=e.getNodes();for(let o=0;o<r.length;o++){const i=r[o],s=i.getKey();if(t.has(s))continue;const l=Oo(i,c=>E(c)&&!c.isInline());if(l===null)continue;const a=l.getKey();l.canIndent()&&!t.has(a)&&(t.add(a),n(l))}return t.size>0}function gr(n){const e=_t(n);return se(e)}function lu(n){return Bt(n.registerCommand(oi,e=>{const t=B();return!!$e(t)&&(t.clear(),!0)},0),n.registerCommand(pt,e=>{const t=B();return!!I(t)&&(t.deleteCharacter(e),!0)},ne),n.registerCommand(qt,e=>{const t=B();return!!I(t)&&(t.deleteWord(e),!0)},ne),n.registerCommand(Vt,e=>{const t=B();return!!I(t)&&(t.deleteLine(e),!0)},ne),n.registerCommand(Pt,e=>{const t=B();if(typeof e=="string")t!==null&&t.insertText(e);else{if(t===null)return!1;const r=e.dataTransfer;if(r!=null)tl(r,t,n);else if(I(t)){const o=e.data;return o&&t.insertText(o),!0}}return!0},ne),n.registerCommand(kr,()=>{const e=B();return!!I(e)&&(e.removeText(),!0)},ne),n.registerCommand(Le,e=>{const t=B();return!!I(t)&&(t.formatText(e),!0)},ne),n.registerCommand(Jt,e=>{const t=B();if(!I(t)&&!$e(t))return!1;const r=t.getNodes();for(const o of r){const i=Oo(o,s=>E(s)&&!s.isInline());i!==null&&i.setFormat(e)}return!0},ne),n.registerCommand(kt,e=>{const t=B();return!!I(t)&&(t.insertLineBreak(e),!0)},ne),n.registerCommand(Nn,()=>{const e=B();return!!I(e)&&(e.insertParagraph(),!0)},ne),n.registerCommand(ea,()=>(Qa([gn()]),!0),ne),n.registerCommand(ta,()=>al(e=>{const t=e.getIndent();e.setIndent(t+1)}),ne),n.registerCommand(di,()=>al(e=>{const t=e.getIndent();t>0&&e.setIndent(t-1)}),ne),n.registerCommand(li,e=>{const t=B();if($e(t)&&!gr(e.target)){const r=t.getNodes();if(r.length>0)return r[0].selectPrevious(),!0}else if(I(t)){const r=on(t.focus,!0);if(!e.shiftKey&&se(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),e.preventDefault(),!0}return!1},ne),n.registerCommand(ai,e=>{const t=B();if($e(t)){const r=t.getNodes();if(r.length>0)return r[0].selectNext(0,0),!0}else if(I(t)){if(function(o){const i=o.focus;return i.key==="root"&&i.offset===ge().getChildrenSize()}(t))return e.preventDefault(),!0;const r=on(t.focus,!1);if(!e.shiftKey&&se(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),e.preventDefault(),!0}return!1},ne),n.registerCommand(si,e=>{const t=B();if($e(t)){const r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectPrevious(),!0}if(!I(t))return!1;if(Hs(t,!0)){const r=e.shiftKey;return e.preventDefault(),Ys(t,r,!0),!0}return!1},ne),n.registerCommand(ii,e=>{const t=B();if($e(t)&&!gr(e.target)){const o=t.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}if(!I(t))return!1;const r=e.shiftKey;return!!Hs(t,!1)&&(e.preventDefault(),Ys(t,r,!1),!0)},ne),n.registerCommand(ci,e=>{if(gr(e.target))return!1;const t=B();if(!I(t))return!1;e.preventDefault();const{anchor:r}=t,o=r.getNode();return t.isCollapsed()&&r.offset===0&&!Ee(o)&&Sc(o).getIndent()>0?n.dispatchCommand(di,void 0):n.dispatchCommand(pt,!0)},ne),n.registerCommand(fi,e=>{if(gr(e.target))return!1;const t=B();return!!I(t)&&(e.preventDefault(),n.dispatchCommand(pt,!1))},ne),n.registerCommand(In,e=>{const t=B();if(!I(t))return!1;if(e!==null){if((ou||ru||su)&&nu)return!1;if(e.preventDefault(),e.shiftKey)return n.dispatchCommand(kt,!1)}return n.dispatchCommand(Nn,void 0)},ne),n.registerCommand(ui,()=>{const e=B();return!!I(e)&&(n.blur(),!0)},ne),n.registerCommand(hi,e=>{const[,t]=pr(e);if(t.length>0){const o=sl(e.clientX,e.clientY);if(o!==null){const{offset:i,node:s}=o,l=_t(s);if(l!==null){const a=Ga();if(D(l))a.anchor.set(l.getKey(),i,"text"),a.focus.set(l.getKey(),i,"text");else{const u=l.getParentOrThrow().getKey(),d=l.getIndexWithinParent()+1;a.anchor.set(u,d,"element"),a.focus.set(u,d,"element")}const c=ki(a);He(c)}n.dispatchCommand(ll,t)}return e.preventDefault(),!0}const r=B();return!!I(r)},ne),n.registerCommand(pi,e=>{const[t]=pr(e),r=B();return!(t&&!I(r))},ne),n.registerCommand(gi,e=>{const[t]=pr(e),r=B();if(t&&!I(r))return!1;const o=sl(e.clientX,e.clientY);if(o!==null){const i=_t(o.node);se(i)&&e.preventDefault()}return!0},ne),n.registerCommand(Nr,()=>(Ia(),!0),ne),n.registerCommand(Rn,e=>(ol(n,bt(e,ClipboardEvent)?e:null),!0),ne),n.registerCommand(Pr,e=>(async function(t,r){await ol(r,bt(t,ClipboardEvent)?t:null),r.update(()=>{const o=B();I(o)?o.removeText():$e(o)&&o.getNodes().forEach(i=>i.remove())})}(e,n),!0),ne),n.registerCommand(wr,e=>{const[,t,r]=pr(e);return t.length>0&&!r?(n.dispatchCommand(ll,t),!0):zr(e.target)?!1:B()!==null&&(function(o,i){o.preventDefault(),i.update(()=>{const s=B(),l=bt(o,InputEvent)||bt(o,KeyboardEvent)?null:o.clipboardData;l!=null&&s!==null&&tl(l,s,i)},{tag:"paste"})}(e,n),!0)},ne))}const Ro=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?A.useLayoutEffect:A.useEffect;function cl(n){return n.getEditorState().read($s(n.isComposing()))}function au({contentEditable:n,placeholder:e=null,ErrorBoundary:t}){const[r]=Tt(),o=function(i,s){const[l,a]=A.useState(()=>i.getDecorators());return Ro(()=>i.registerDecoratorListener(c=>{Sn.flushSync(()=>{a(c)})}),[i]),A.useEffect(()=>{a(i.getDecorators())},[i]),A.useMemo(()=>{const c=[],u=Object.keys(l);for(let d=0;d<u.length;d++){const f=u[d],h=S.jsx(s,{onError:g=>i._onError(g),children:S.jsx(A.Suspense,{fallback:null,children:l[f]})}),p=i.getElementByKey(f);p!==null&&c.push(Sn.createPortal(h,p,f))}return c},[s,l,i])}(r,t);return function(i){Ro(()=>Bt(lu(i),zc(i)),[i])}(r),S.jsxs(S.Fragment,{children:[n,S.jsx(cu,{content:e}),o]})}function cu({content:n}){const[e]=Tt(),t=function(o){const[i,s]=A.useState(()=>cl(o));return Ro(()=>{function l(){const a=cl(o);s(a)}return l(),Bt(o.registerUpdateListener(()=>{l()}),o.registerEditableListener(()=>{l()}))},[o]),i}(e),r=$c();return t?typeof n=="function"?n(r):n:null}function Do(n,e){return Do=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Do(n,e)}var ul={error:null},uu=function(n){var e,t;function r(){for(var i,s=arguments.length,l=new Array(s),a=0;a<s;a++)l[a]=arguments[a];return(i=n.call.apply(n,[this].concat(l))||this).state=ul,i.resetErrorBoundary=function(){for(var c,u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];i.props.onReset==null||(c=i.props).onReset.apply(c,d),i.reset()},i}t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,Do(e,t),r.getDerivedStateFromError=function(i){return{error:i}};var o=r.prototype;return o.reset=function(){this.setState(ul)},o.componentDidCatch=function(i,s){var l,a;(l=(a=this.props).onError)==null||l.call(a,i,s)},o.componentDidUpdate=function(i,s){var l,a,c,u,d=this.state.error,f=this.props.resetKeys;d!==null&&s.error!==null&&((c=i.resetKeys)===void 0&&(c=[]),(u=f)===void 0&&(u=[]),c.length!==u.length||c.some(function(h,p){return!Object.is(h,u[p])}))&&((l=(a=this.props).onResetKeysChange)==null||l.call(a,i.resetKeys,f),this.reset())},o.render=function(){var i=this.state.error,s=this.props,l=s.fallbackRender,a=s.FallbackComponent,c=s.fallback;if(i!==null){var u={error:i,resetErrorBoundary:this.resetErrorBoundary};if(St.isValidElement(c))return c;if(typeof l=="function")return l(u);if(a)return St.createElement(a,u);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},r}(St.Component);function fu({children:n,onError:e}){return S.jsx(uu,{fallback:S.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:e,children:n})}var Je=(n=>(n.normal="96px",n.narrow="48px",n.moderate="96px 72px",n.wide="96px 192px",n))(Je||{});const du=A.createContext({margin:{bottom:"",left:"",right:"",top:""},pageMarginValue:"",updateCustomMargin:(n,e)=>{},updatePageMarginValue:n=>{}}),mr=()=>A.useContext(du),Uf="";function hu({onClose:n,children:e,title:t,closeOnClickOutside:r}){const o=A.useRef(null);return A.useEffect(()=>{o.current!==null&&o.current.focus()},[]),A.useEffect(()=>{let i=null;const s=c=>{c.key==="Escape"&&n()},l=c=>{const u=c.target;o.current!==null&&!o.current.contains(u)&&r&&n()},a=o.current;return a!==null&&(i=a.parentElement,i!==null&&i.addEventListener("click",l)),window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s),i!==null&&(i==null||i.removeEventListener("click",l))}},[r,n]),S.jsx("div",{className:"Modal__overlay",role:"dialog",children:S.jsxs("div",{className:"Modal__modal",tabIndex:-1,ref:o,children:[S.jsx("h2",{className:"Modal__title",children:t}),S.jsx("button",{className:"Modal__closeButton","aria-label":"Close modal",type:"button",onClick:n,children:"X"}),S.jsx("div",{className:"Modal__content",children:e})]})})}function pu({onClose:n,children:e,title:t,closeOnClickOutside:r=!1}){return Sn.createPortal(S.jsx(hu,{onClose:n,title:t,closeOnClickOutside:r,children:e}),document.body)}function gu(){const[n,e]=A.useState(null),t=A.useCallback(()=>{e(null)},[]),r=A.useMemo(()=>{if(n===null)return null;const{title:i,content:s,closeOnClickOutside:l}=n;return S.jsx(pu,{onClose:t,title:i,closeOnClickOutside:l,children:s})},[n,t]),o=A.useCallback((i,s,l=!1)=>{e({closeOnClickOutside:l,content:s(t),title:i})},[t]);return[r,o]}const fl=St.createContext(null),dl=4;function xn({children:n,className:e,onClick:t,title:r}){const o=A.useRef(null),i=St.useContext(fl);if(i===null)throw new Error("DropDownItem must be used within a DropDown");const{registerItem:s}=i;return A.useEffect(()=>{o&&o.current&&s(o)},[o,s]),S.jsx("button",{className:e,onClick:t,ref:o,title:r,type:"button",children:n})}function mu({children:n,dropDownRef:e,onClose:t}){const[r,o]=A.useState(),[i,s]=A.useState(),l=A.useCallback(u=>{o(d=>d?[...d,u]:[u])},[o]),a=u=>{if(!r)return;const d=u.key;["Escape","ArrowUp","ArrowDown","Tab"].includes(d)&&u.preventDefault(),d==="Escape"||d==="Tab"?t():d==="ArrowUp"?s(f=>{if(!f)return r[0];const h=r.indexOf(f)-1;return r[h===-1?r.length-1:h]}):d==="ArrowDown"&&s(f=>f?r[r.indexOf(f)+1]:r[0])},c=A.useMemo(()=>({registerItem:l}),[l]);return A.useEffect(()=>{r&&!i&&s(r[0]),i&&i.current&&i.current.focus()},[r,i]),S.jsx(fl.Provider,{value:c,children:S.jsx("div",{className:"dropdown",ref:e,onKeyDown:a,children:n})})}function _u({disabled:n=!1,buttonLabel:e,buttonAriaLabel:t,buttonClassName:r,buttonIconClassName:o,children:i,stopCloseOnClickSelf:s}){const l=A.useRef(null),a=A.useRef(null),[c,u]=A.useState(!1),d=()=>{u(!1),a&&a.current&&a.current.focus()};return A.useEffect(()=>{const f=a.current,h=l.current;if(c&&f!==null&&h!==null){const{top:p,left:g}=f.getBoundingClientRect();h.style.top=`${p+f.offsetHeight+dl}px`,h.style.left=`${Math.min(g,window.innerWidth-h.offsetWidth-20)}px`}},[l,a,c]),A.useEffect(()=>{const f=a.current;if(f!==null&&c){const h=p=>{const g=p.target;s&&l.current&&l.current.contains(g)||f.contains(g)||u(!1)};return document.addEventListener("click",h),()=>{document.removeEventListener("click",h)}}},[l,a,c,s]),A.useEffect(()=>{const f=()=>{if(c){const h=a.current,p=l.current;if(h!==null&&p!==null){const{top:g}=h.getBoundingClientRect(),m=g+h.offsetHeight+dl;m!==p.getBoundingClientRect().top&&(p.style.top=`${m}px`)}}};return document.addEventListener("scroll",f),()=>{document.removeEventListener("scroll",f)}},[a,l,c]),S.jsxs(S.Fragment,{children:[S.jsxs("button",{type:"button",disabled:n,"aria-label":t||e,className:r,onClick:()=>u(!c),ref:a,children:[o&&S.jsx("span",{className:o}),e&&S.jsx("span",{className:"text dropdown-button-text",children:e}),S.jsx("i",{className:"chevron-down"})]}),c&&Sn.createPortal(S.jsx(mu,{dropDownRef:l,onClose:d,children:i}),document.body)]})}const Hf="";function yu(...n){return n.filter(Boolean).join(" ")}function vu({"data-test-id":n,children:e,className:t,onClick:r,disabled:o,small:i,title:s}){return S.jsx("button",{disabled:o,className:yu("Button__root",o&&"Button__disabled",i&&"Button__small",t),onClick:r,title:s,"aria-label":s,...n&&{"data-test-id":n},children:e})}const Yf="";function xu({"data-test-id":n,children:e}){return S.jsx("div",{className:"DialogActions","data-test-id":n,children:e})}const Kf="";function _r({label:n,value:e,onChange:t,placeholder:r="","data-test-id":o,type:i="text",name:s=""}){return S.jsxs("div",{className:"Input__wrapper",children:[S.jsx("label",{className:"Input__label",children:n}),S.jsx("input",{type:i,className:"Input__input",placeholder:r,value:e,name:s,onChange:l=>{t(l.target.value,l.target.name)},"data-test-id":o})]})}const Tu=({onClose:n})=>{const{margin:e,updatePageMarginValue:t,updateCustomMargin:r}=mr(),[o,i]=St.useState(""),s=()=>{const{top:d,right:f,bottom:h,left:p}=e,g=(816-100)/2,m=(1156-25)/2,T=[];if(+d*96>m&&T.push(`*Top margin is too large, maximum allowed is ${(m/96).toFixed(2)} inches.`),+f*96>g&&T.push(`*Right margin is too large, maximum allowed is ${(g/96).toFixed(2)} inches.`),+h*96>m&&T.push(`*Bottom margin is too large, maximum allowed is ${(m/96).toFixed(2)} inches.`),+p*96>g&&T.push(`*Left margin is too large, maximum allowed is ${(g/96).toFixed(2)} inches.`),T!=null&&T.length){i(T.join(`
|
|
42
|
-
`));return}else{const
|
|
41
|
+
`?n.insertParagraph():c===" "?n.insertNodes([wc()]):n.insertText(c)}}}else a.insertRawText(i)}function ng(o,a,t){o.dispatchCommand(bm,{nodes:a,selection:t})||t.insertNodes(a)}function rg(o,a,t,e=[]){let s=a===null||t.isSelected(a);const i=Fe(t)&&t.excludeFromCopy("html");let r=t;if(a!==null){let c=Id(t);c=hn(c)&&a!==null?Hh(a,c):c,r=c}const l=Fe(r)?r.getChildren():[],n=function(c){const d=c.exportJSON(),u=c.constructor;if(d.type!==u.getType()&&Au(58,u.name),Fe(c)){const f=d.children;Array.isArray(f)||Au(59,u.name)}return d}(r);if(hn(r)){const c=r.__text;c.length>0?n.text=c:s=!1}for(let c=0;c<l.length;c++){const d=l[c],u=rg(o,a,d,n.children);!s&&Fe(t)&&u&&t.extractWithChild(d,a,"clone")&&(s=!0)}if(s&&!i)e.push(n);else if(Array.isArray(n.children))for(let c=0;c<n.children.length;c++){const d=n.children[c];e.push(d)}return s}function wy(o,a){const t=[],e=ro().getChildren();for(let s=0;s<e.length;s++)rg(o,a,e[s],t);return{namespace:o._config.namespace,nodes:t}}function xy(o){const a=[];for(let t=0;t<o.length;t++){const e=o[t],s=k0(e);hn(s)&&W0(s),a.push(s)}return a}let Nl=null;async function og(o,a,t){if(Nl!==null)return!1;if(a!==null)return new Promise((n,c)=>{o.update(()=>{n(ig(o,a,t))})});const e=o.getRootElement(),s=o._window==null?window.document:o._window.document,i=tg(o._window);if(e===null||i===null)return!1;const r=s.createElement("span");r.style.cssText="position: fixed; top: -1000px;",r.append(s.createTextNode("#")),e.append(r);const l=new Range;return l.setStart(r,0),l.setEnd(r,1),i.removeAllRanges(),i.addRange(l),new Promise((n,c)=>{const d=o.registerCommand(Xc,u=>(ul(u,ClipboardEvent)&&(d(),Nl!==null&&(window.clearTimeout(Nl),Nl=null),n(ig(o,u,t))),!0),P0);Nl=window.setTimeout(()=>{d(),Nl=null,n(!1)},50),s.execCommand("copy"),r.remove()})}function ig(o,a,t){if(t===void 0){const s=tg(o._window);if(!s)return!1;const i=s.anchorNode,r=s.focusNode;if(i!==null&&r!==null&&!ac(o,i,r))return!1;const l=Pn();if(l===null)return!1;t=Ey(l)}a.preventDefault();const e=a.clipboardData;return e!==null&&(Cy(e,t),!0)}const Sy=[["text/html",by],["application/x-lexical-editor",_y]];function Ey(o=Pn()){const a={"text/plain":o?o.getTextContent():""};if(o){const t=a0();for(const[e,s]of Sy){const i=s(t,o);i!==null&&(a[e]=i)}}return a}function Cy(o,a){for(const t in a){const e=a[t];e!==void 0&&o.setData(t,e)}}function ag(o,a){if(document.caretRangeFromPoint!==void 0){const t=document.caretRangeFromPoint(o,a);return t===null?null:{node:t.startContainer,offset:t.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const t=document.caretPositionFromPoint(o,a);return t===null?null:{node:t.offsetNode,offset:t.offset}}return null}const Ml=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ky=Ml&&"documentMode"in document?document.documentMode:null,Oy=!(!Ml||!("InputEvent"in window)||ky)&&"getTargetRanges"in new window.InputEvent("input"),Ty=Ml&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Py=Ml&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,jy=Ml&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Ay=Ml&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!jy,sg=vm();function Ru(o){let a=null;if(ul(o,DragEvent)?a=o.dataTransfer:ul(o,ClipboardEvent)&&(a=o.clipboardData),a===null)return[!1,[],!1];const t=a.types,e=t.includes("Files"),s=t.includes("text/html")||t.includes("text/plain");return[e,Array.from(a.files),s]}function lg(o){const a=Pn();if(!sn(a))return!1;const t=new Set,e=a.getNodes();for(let s=0;s<e.length;s++){const i=e[s],r=i.getKey();if(t.has(r))continue;const l=sf(i,c=>Fe(c)&&!c.isInline());if(l===null)continue;const n=l.getKey();l.canIndent()&&!t.has(n)&&(t.add(n),o(l))}return t.size>0}function Iu(o){const a=il(o);return Tr(a)}function Ry(o){return Il(o.registerCommand(op,a=>{const t=Pn();return!!fa(t)&&(t.clear(),!0)},0),o.registerCommand(nl,a=>{const t=Pn();return!!sn(t)&&(t.deleteCharacter(a),!0)},mr),o.registerCommand(tc,a=>{const t=Pn();return!!sn(t)&&(t.deleteWord(a),!0)},mr),o.registerCommand(ec,a=>{const t=Pn();return!!sn(t)&&(t.deleteLine(a),!0)},mr),o.registerCommand(xl,a=>{const t=Pn();if(typeof a=="string")t!==null&&t.insertText(a);else{if(t===null)return!1;const e=a.dataTransfer;if(e!=null)eg(e,t,o);else if(sn(t)){const s=a.data;return s&&t.insertText(s),!0}}return!0},mr),o.registerCommand(od,()=>{const a=Pn();return!!sn(a)&&(a.removeText(),!0)},mr),o.registerCommand(ta,a=>{const t=Pn();return!!sn(t)&&(t.formatText(a),!0)},mr),o.registerCommand(nc,a=>{const t=Pn();if(!sn(t)&&!fa(t))return!1;const e=t.getNodes();for(const s of e){const i=sf(s,r=>Fe(r)&&!r.isInline());i!==null&&i.setFormat(a)}return!0},mr),o.registerCommand(wl,a=>{const t=Pn();return!!sn(t)&&(t.insertLineBreak(a),!0)},mr),o.registerCommand(Jc,()=>{const a=Pn();return!!sn(a)&&(a.insertParagraph(),!0)},mr),o.registerCommand(Cm,()=>(S0([wc()]),!0),mr),o.registerCommand(km,()=>lg(a=>{const t=a.getIndent();a.setIndent(t+1)}),mr),o.registerCommand(fp,()=>lg(a=>{const t=a.getIndent();t>0&&a.setIndent(t-1)}),mr),o.registerCommand(sp,a=>{const t=Pn();if(fa(t)&&!Iu(a.target)){const e=t.getNodes();if(e.length>0)return e[0].selectPrevious(),!0}else if(sn(t)){const e=dc(t.focus,!0);if(!a.shiftKey&&Tr(e)&&!e.isIsolated()&&!e.isInline())return e.selectPrevious(),a.preventDefault(),!0}return!1},mr),o.registerCommand(lp,a=>{const t=Pn();if(fa(t)){const e=t.getNodes();if(e.length>0)return e[0].selectNext(0,0),!0}else if(sn(t)){if(function(s){const i=s.focus;return i.key==="root"&&i.offset===ro().getChildrenSize()}(t))return a.preventDefault(),!0;const e=dc(t.focus,!1);if(!a.shiftKey&&Tr(e)&&!e.isIsolated()&&!e.isInline())return e.selectNext(),a.preventDefault(),!0}return!1},mr),o.registerCommand(ap,a=>{const t=Pn();if(fa(t)){const e=t.getNodes();if(e.length>0)return a.preventDefault(),e[0].selectPrevious(),!0}if(!sn(t))return!1;if(Wh(t,!0)){const e=a.shiftKey;return a.preventDefault(),Vh(t,e,!0),!0}return!1},mr),o.registerCommand(ip,a=>{const t=Pn();if(fa(t)&&!Iu(a.target)){const s=t.getNodes();if(s.length>0)return a.preventDefault(),s[0].selectNext(0,0),!0}if(!sn(t))return!1;const e=a.shiftKey;return!!Wh(t,!1)&&(a.preventDefault(),Vh(t,e,!1),!0)},mr),o.registerCommand(cp,a=>{if(Iu(a.target))return!1;const t=Pn();if(!sn(t))return!1;a.preventDefault();const{anchor:e}=t,s=e.getNode();return t.isCollapsed()&&e.offset===0&&!Uo(s)&&Y0(s).getIndent()>0?o.dispatchCommand(fp,void 0):o.dispatchCommand(nl,!0)},mr),o.registerCommand(dp,a=>{if(Iu(a.target))return!1;const t=Pn();return!!sn(t)&&(a.preventDefault(),o.dispatchCommand(nl,!1))},mr),o.registerCommand(Yc,a=>{const t=Pn();if(!sn(t))return!1;if(a!==null){if((Py||Ty||Ay)&&Oy)return!1;if(a.preventDefault(),a.shiftKey)return o.dispatchCommand(wl,!1)}return o.dispatchCommand(Jc,void 0)},mr),o.registerCommand(up,()=>{const a=Pn();return!!sn(a)&&(o.blur(),!0)},mr),o.registerCommand(pp,a=>{const[,t]=Ru(a);if(t.length>0){const s=ag(a.clientX,a.clientY);if(s!==null){const{offset:i,node:r}=s,l=il(r);if(l!==null){const n=w0();if(hn(l))n.anchor.set(l.getKey(),i,"text"),n.focus.set(l.getKey(),i,"text");else{const d=l.getParentOrThrow().getKey(),u=l.getIndexWithinParent()+1;n.anchor.set(d,u,"element"),n.focus.set(d,u,"element")}const c=Op(n);Aa(c)}o.dispatchCommand(sg,t)}return a.preventDefault(),!0}const e=Pn();return!!sn(e)},mr),o.registerCommand(hp,a=>{const[t]=Ru(a),e=Pn();return!(t&&!sn(e))},mr),o.registerCommand(gp,a=>{const[t]=Ru(a),e=Pn();if(t&&!sn(e))return!1;const s=ag(a.clientX,a.clientY);if(s!==null){const i=il(s.node);Tr(i)&&a.preventDefault()}return!0},mr),o.registerCommand(ad,()=>(r0(),!0),mr),o.registerCommand(Xc,a=>(og(o,ul(a,ClipboardEvent)?a:null),!0),mr),o.registerCommand(id,a=>(async function(t,e){await og(e,ul(t,ClipboardEvent)?t:null),e.update(()=>{const s=Pn();sn(s)?s.removeText():fa(s)&&s.getNodes().forEach(i=>i.remove())})}(a,o),!0),mr),o.registerCommand(rd,a=>{const[,t,e]=Ru(a);return t.length>0&&!e?(o.dispatchCommand(sg,t),!0):bd(a.target)?!1:Pn()!==null&&(function(s,i){s.preventDefault(),i.update(()=>{const r=Pn(),l=ul(s,InputEvent)||ul(s,KeyboardEvent)?null:s.clipboardData;l!=null&&r!==null&&eg(l,r,i)},{tag:"paste"})}(a,o),!0)},mr))}const uf=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?an.useLayoutEffect:an.useEffect;function cg(o){return o.getEditorState().read(Uh(o.isComposing()))}function Iy({contentEditable:o,placeholder:a=null,ErrorBoundary:t}){const[e]=cl(),s=function(i,r){const[l,n]=an.useState(()=>i.getDecorators());return uf(()=>i.registerDecoratorListener(c=>{qc.flushSync(()=>{n(c)})}),[i]),an.useEffect(()=>{n(i.getDecorators())},[i]),an.useMemo(()=>{const c=[],d=Object.keys(l);for(let u=0;u<d.length;u++){const f=d[u],g=ze.jsx(r,{onError:h=>i._onError(h),children:ze.jsx(an.Suspense,{fallback:null,children:l[f]})}),m=i.getElementByKey(f);m!==null&&c.push(qc.createPortal(g,m,f))}return c},[r,l,i])}(e,t);return function(i){uf(()=>Il(Ry(i),py(i)),[i])}(e),ze.jsxs(ze.Fragment,{children:[o,ze.jsx(Ny,{content:a}),s]})}function Ny({content:o}){const[a]=cl(),t=function(s){const[i,r]=an.useState(()=>cg(s));return uf(()=>{function l(){const n=cg(s);r(n)}return l(),Il(s.registerUpdateListener(()=>{l()}),s.registerEditableListener(()=>{l()}))},[s]),i}(a),e=fy();return t?typeof o=="function"?o(e):o:null}function df(o,a){return df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},df(o,a)}var ug={error:null},My=function(o){var a,t;function e(){for(var i,r=arguments.length,l=new Array(r),n=0;n<r;n++)l[n]=arguments[n];return(i=o.call.apply(o,[this].concat(l))||this).state=ug,i.resetErrorBoundary=function(){for(var c,d=arguments.length,u=new Array(d),f=0;f<d;f++)u[f]=arguments[f];i.props.onReset==null||(c=i.props).onReset.apply(c,u),i.reset()},i}t=o,(a=e).prototype=Object.create(t.prototype),a.prototype.constructor=a,df(a,t),e.getDerivedStateFromError=function(i){return{error:i}};var s=e.prototype;return s.reset=function(){this.setState(ug)},s.componentDidCatch=function(i,r){var l,n;(l=(n=this.props).onError)==null||l.call(n,i,r)},s.componentDidUpdate=function(i,r){var l,n,c,d,u=this.state.error,f=this.props.resetKeys;u!==null&&r.error!==null&&((c=i.resetKeys)===void 0&&(c=[]),(d=f)===void 0&&(d=[]),c.length!==d.length||c.some(function(g,m){return!Object.is(g,d[m])}))&&((l=(n=this.props).onResetKeysChange)==null||l.call(n,i.resetKeys,f),this.reset())},s.render=function(){var i=this.state.error,r=this.props,l=r.fallbackRender,n=r.FallbackComponent,c=r.fallback;if(i!==null){var d={error:i,resetErrorBoundary:this.resetErrorBoundary};if(bl.isValidElement(c))return c;if(typeof l=="function")return l(d);if(n)return bl.createElement(n,d);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},e}(bl.Component);function Dy({children:o,onError:a}){return ze.jsx(My,{fallback:ze.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:a,children:o})}var Da=(o=>(o.normal="96px",o.narrow="48px",o.moderate="96px 72px",o.wide="96px 192px",o))(Da||{});const Ly=an.createContext({margin:{bottom:"",left:"",right:"",top:""},pageMarginValue:"",updateCustomMargin:(o,a)=>{},updatePageMarginValue:o=>{}}),Nu=()=>an.useContext(Ly),hb="";function By({onClose:o,children:a,title:t,closeOnClickOutside:e}){const s=an.useRef(null);return an.useEffect(()=>{s.current!==null&&s.current.focus()},[]),an.useEffect(()=>{let i=null;const r=c=>{c.key==="Escape"&&o()},l=c=>{const d=c.target;s.current!==null&&!s.current.contains(d)&&e&&o()},n=s.current;return n!==null&&(i=n.parentElement,i!==null&&i.addEventListener("click",l)),window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r),i!==null&&(i==null||i.removeEventListener("click",l))}},[e,o]),ze.jsx("div",{className:"Modal__overlay",role:"dialog",children:ze.jsxs("div",{className:"Modal__modal",tabIndex:-1,ref:s,children:[ze.jsx("h2",{className:"Modal__title",children:t}),ze.jsx("button",{className:"Modal__closeButton","aria-label":"Close modal",type:"button",onClick:o,children:"X"}),ze.jsx("div",{className:"Modal__content",children:a})]})})}function Fy({onClose:o,children:a,title:t,closeOnClickOutside:e=!1}){return qc.createPortal(ze.jsx(By,{onClose:o,title:t,closeOnClickOutside:e,children:a}),document.body)}function zy(){const[o,a]=an.useState(null),t=an.useCallback(()=>{a(null)},[]),e=an.useMemo(()=>{if(o===null)return null;const{title:i,content:r,closeOnClickOutside:l}=o;return ze.jsx(Fy,{onClose:t,title:i,closeOnClickOutside:l,children:r})},[o,t]),s=an.useCallback((i,r,l=!1)=>{a({closeOnClickOutside:l,content:r(t),title:i})},[t]);return[e,s]}const dg=bl.createContext(null),fg=4;function kc({children:o,className:a,onClick:t,title:e}){const s=an.useRef(null),i=bl.useContext(dg);if(i===null)throw new Error("DropDownItem must be used within a DropDown");const{registerItem:r}=i;return an.useEffect(()=>{s&&s.current&&r(s)},[s,r]),ze.jsx("button",{className:a,onClick:t,ref:s,title:e,type:"button",children:o})}function Uy({children:o,dropDownRef:a,onClose:t}){const[e,s]=an.useState(),[i,r]=an.useState(),l=an.useCallback(d=>{s(u=>u?[...u,d]:[d])},[s]),n=d=>{if(!e)return;const u=d.key;["Escape","ArrowUp","ArrowDown","Tab"].includes(u)&&d.preventDefault(),u==="Escape"||u==="Tab"?t():u==="ArrowUp"?r(f=>{if(!f)return e[0];const g=e.indexOf(f)-1;return e[g===-1?e.length-1:g]}):u==="ArrowDown"&&r(f=>f?e[e.indexOf(f)+1]:e[0])},c=an.useMemo(()=>({registerItem:l}),[l]);return an.useEffect(()=>{e&&!i&&r(e[0]),i&&i.current&&i.current.focus()},[e,i]),ze.jsx(dg.Provider,{value:c,children:ze.jsx("div",{className:"dropdown",ref:a,onKeyDown:n,children:o})})}function Hy({disabled:o=!1,buttonLabel:a,buttonAriaLabel:t,buttonClassName:e,buttonIconClassName:s,children:i,stopCloseOnClickSelf:r}){const l=an.useRef(null),n=an.useRef(null),[c,d]=an.useState(!1),u=()=>{d(!1),n&&n.current&&n.current.focus()};return an.useEffect(()=>{const f=n.current,g=l.current;if(c&&f!==null&&g!==null){const{top:m,left:h}=f.getBoundingClientRect();g.style.top=`${m+f.offsetHeight+fg}px`,g.style.left=`${Math.min(h,window.innerWidth-g.offsetWidth-20)}px`}},[l,n,c]),an.useEffect(()=>{const f=n.current;if(f!==null&&c){const g=m=>{const h=m.target;r&&l.current&&l.current.contains(h)||f.contains(h)||d(!1)};return document.addEventListener("click",g),()=>{document.removeEventListener("click",g)}}},[l,n,c,r]),an.useEffect(()=>{const f=()=>{if(c){const g=n.current,m=l.current;if(g!==null&&m!==null){const{top:h}=g.getBoundingClientRect(),v=h+g.offsetHeight+fg;v!==m.getBoundingClientRect().top&&(m.style.top=`${v}px`)}}};return document.addEventListener("scroll",f),()=>{document.removeEventListener("scroll",f)}},[n,l,c]),ze.jsxs(ze.Fragment,{children:[ze.jsxs("button",{type:"button",disabled:o,"aria-label":t||a,className:e,onClick:()=>d(!c),ref:n,children:[s&&ze.jsx("span",{className:s}),a&&ze.jsx("span",{className:"text dropdown-button-text",children:a}),ze.jsx("i",{className:"chevron-down"})]}),c&&qc.createPortal(ze.jsx(Uy,{dropDownRef:l,onClose:u,children:i}),document.body)]})}const gb="";function qy(...o){return o.filter(Boolean).join(" ")}function Wy({"data-test-id":o,children:a,className:t,onClick:e,disabled:s,small:i,title:r}){return ze.jsx("button",{disabled:s,className:qy("Button__root",s&&"Button__disabled",i&&"Button__small",t),onClick:e,title:r,"aria-label":r,...o&&{"data-test-id":o},children:a})}const mb="";function Vy({"data-test-id":o,children:a}){return ze.jsx("div",{className:"DialogActions","data-test-id":o,children:a})}const yb="";function Mu({label:o,value:a,onChange:t,placeholder:e="","data-test-id":s,type:i="text",name:r=""}){return ze.jsxs("div",{className:"Input__wrapper",children:[ze.jsx("label",{className:"Input__label",children:o}),ze.jsx("input",{type:i,className:"Input__input",placeholder:e,value:a,name:r,onChange:l=>{t(l.target.value,l.target.name)},"data-test-id":s})]})}const $y=({onClose:o})=>{const{margin:a,updatePageMarginValue:t,updateCustomMargin:e}=Nu(),[s,i]=bl.useState(""),r=()=>{const{top:u,right:f,bottom:g,left:m}=a,h=(816-100)/2,v=(1156-25)/2,b=[];if(+u*96>v&&b.push(`*Top margin is too large, maximum allowed is ${(v/96).toFixed(2)} inches.`),+f*96>h&&b.push(`*Right margin is too large, maximum allowed is ${(h/96).toFixed(2)} inches.`),+g*96>v&&b.push(`*Bottom margin is too large, maximum allowed is ${(v/96).toFixed(2)} inches.`),+m*96>h&&b.push(`*Left margin is too large, maximum allowed is ${(h/96).toFixed(2)} inches.`),b!=null&&b.length){i(b.join(`
|
|
42
|
+
`));return}else{const _=`${+u*96}px ${+f*96}px ${+g*96}px ${+m*96}px`;t(_),o()}};return ze.jsxs(ze.Fragment,{children:[ze.jsx(Mu,{label:"Top",onChange:e,value:a.top,"data-test-id":"custom-margin-top",type:"number",name:"top"}),ze.jsx(Mu,{label:"Right",onChange:e,value:a.right,"data-test-id":"table-modal-right",type:"number",name:"right"}),ze.jsx(Mu,{label:"Bottom",onChange:e,value:a.bottom,"data-test-id":"table-modal-bottom",type:"number",name:"bottom"}),ze.jsx(Mu,{label:"Left",onChange:e,value:a.left,"data-test-id":"table-modal-left",type:"number",name:"left"}),ze.jsx("div",{style:{color:"red",whiteSpace:"pre-line"},children:s}),ze.jsx(Vy,{"data-test-id":"table-model-confirm-insert",children:ze.jsx(Wy,{onClick:r,children:"Confirm"})})]})},Du=o=>o?"active dropdown-item-active":"",Jy=({isEditable:o})=>{const{pageMarginValue:a,updatePageMarginValue:t}=Nu(),[e,s]=zy();return ze.jsxs(ze.Fragment,{children:[ze.jsxs(Hy,{disabled:!o,buttonClassName:"toolbar-item spaced",buttonLabel:"Page Margin",buttonAriaLabel:"Page margin",buttonIconClassName:" plus",children:[ze.jsx(kc,{onClick:()=>t(Da.normal),className:"item "+Du(a===Da.normal),children:ze.jsx("span",{className:"text",children:"Normal"})}),ze.jsx(kc,{onClick:()=>t(Da.narrow),className:"item "+Du(a===Da.narrow),children:ze.jsx("span",{className:"text",children:"Narrow"})}),ze.jsx(kc,{onClick:()=>t(Da.moderate),className:"item "+Du(a===Da.moderate),children:ze.jsx("span",{className:"text",children:"Moderate"})}),ze.jsx(kc,{onClick:()=>t(Da.wide),className:"item "+Du(a===Da.wide),children:ze.jsx("span",{className:"text",children:"Wide"})}),ze.jsx(kc,{onClick:()=>{s("Custom Margin",i=>ze.jsx($y,{onClose:i}))},className:"item ",children:ze.jsx("span",{className:"text",children:"Custom"})})]}),e]})},Ky=(o,a)=>{let t=o;for(;t!==ro()&&t!=null;){if(a(t))return t;t=t.getParent()}return null};function Gy(o){const a=o.anchor,t=o.focus,e=o.anchor.getNode(),s=o.focus.getNode();return e===s?e:o.isBackward()?qh(t)?e:s:qh(a)?e:s}const ff=1;function pf(){return ze.jsx("div",{className:"divider"})}function Yy(){const[o]=cl(),{updatePageMarginValue:a}=Nu(),t=an.useRef(null),[e,s]=an.useState(!1),[i,r]=an.useState(!1),[l,n]=an.useState(!1),[c,d]=an.useState(!1),[u,f]=an.useState(!1),[g,m]=an.useState(!1),[h,v]=an.useState(()=>o.isEditable());function b(R){}const _=an.useCallback(()=>{const R=Pn();if(sn(R)){const x=Gy(R),w=x.getParent();n(R.hasFormat("bold")),d(R.hasFormat("italic")),f(R.hasFormat("underline")),m(R.hasFormat("strikethrough"));let O;jl(w)&&(O=Ky(x,I=>Fe(I)&&!I.isInline())),Fe(O)?O.getFormatType():Fe(x)?x.getFormatType():w!=null&&w.getFormatType(),a(Da)}},[]);return an.useEffect(()=>Il(o.registerUpdateListener(({editorState:R})=>{R.read(()=>{_()})}),o.registerCommand($c,(R,x)=>(_(),!1),ff),o.registerCommand(oc,R=>(s(R),!1),ff),o.registerCommand(rc,R=>(r(R),!1),ff)),[o,_]),ze.jsxs("div",{className:"toolbar",ref:t,children:[ze.jsx("button",{disabled:!e,onClick:()=>{o.dispatchCommand(Kc,void 0)},className:"toolbar-item spaced","aria-label":"Undo",children:ze.jsx("i",{className:"format undo"})}),ze.jsx("button",{disabled:!i,onClick:()=>{o.dispatchCommand(Gc,void 0)},className:"toolbar-item","aria-label":"Redo",children:ze.jsx("i",{className:"format redo"})}),ze.jsx(pf,{}),ze.jsx("button",{onClick:()=>{o.dispatchCommand(ta,"bold")},className:"toolbar-item spaced "+(l?"active":""),"aria-label":"Format Bold",children:ze.jsx("i",{className:"format bold"})}),ze.jsx("button",{onClick:()=>{o.dispatchCommand(ta,"italic")},className:"toolbar-item spaced "+(c?"active":""),"aria-label":"Format Italics",children:ze.jsx("i",{className:"format italic"})}),ze.jsx("button",{onClick:()=>{o.dispatchCommand(ta,"underline")},className:"toolbar-item spaced "+(u?"active":""),"aria-label":"Format Underline",children:ze.jsx("i",{className:"format underline"})}),ze.jsx("button",{onClick:()=>{o.dispatchCommand(ta,"strikethrough")},className:"toolbar-item spaced "+(g?"active":""),"aria-label":"Format Strikethrough",children:ze.jsx("i",{className:"format strikethrough"})}),ze.jsx(pf,{}),ze.jsx("button",{onClick:()=>{o.dispatchCommand(nc,"left")},className:"toolbar-item spaced","aria-label":"Left Align",children:ze.jsx("i",{className:"format left-align"})}),ze.jsx("button",{onClick:()=>{o.dispatchCommand(nc,"center")},className:"toolbar-item spaced","aria-label":"Center Align",children:ze.jsx("i",{className:"format center-align"})}),ze.jsx("button",{onClick:()=>{o.dispatchCommand(nc,"right")},className:"toolbar-item spaced","aria-label":"Right Align",children:ze.jsx("i",{className:"format right-align"})}),ze.jsx("button",{onClick:()=>{o.dispatchCommand(nc,"justify")},className:"toolbar-item","aria-label":"Justify Align",children:ze.jsx("i",{className:"format justify-align"})})," ",ze.jsx(pf,{}),ze.jsx(Jy,{isEditable:h})]})}var hf={exports:{}},Lu={exports:{}},vr={};/** @license React v16.13.1
|
|
43
43
|
* react-is.production.min.js
|
|
44
44
|
*
|
|
45
45
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the MIT license found in the
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var
|
|
49
|
+
*/var pg;function Xy(){if(pg)return vr;pg=1;var o=typeof Symbol=="function"&&Symbol.for,a=o?Symbol.for("react.element"):60103,t=o?Symbol.for("react.portal"):60106,e=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,i=o?Symbol.for("react.profiler"):60114,r=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,n=o?Symbol.for("react.async_mode"):60111,c=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,u=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,g=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,h=o?Symbol.for("react.block"):60121,v=o?Symbol.for("react.fundamental"):60117,b=o?Symbol.for("react.responder"):60118,_=o?Symbol.for("react.scope"):60119;function R(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case a:switch(w=w.type,w){case n:case c:case e:case i:case s:case u:return w;default:switch(w=w&&w.$$typeof,w){case l:case d:case m:case g:case r:return w;default:return O}}case t:return O}}}function x(w){return R(w)===c}return vr.AsyncMode=n,vr.ConcurrentMode=c,vr.ContextConsumer=l,vr.ContextProvider=r,vr.Element=a,vr.ForwardRef=d,vr.Fragment=e,vr.Lazy=m,vr.Memo=g,vr.Portal=t,vr.Profiler=i,vr.StrictMode=s,vr.Suspense=u,vr.isAsyncMode=function(w){return x(w)||R(w)===n},vr.isConcurrentMode=x,vr.isContextConsumer=function(w){return R(w)===l},vr.isContextProvider=function(w){return R(w)===r},vr.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===a},vr.isForwardRef=function(w){return R(w)===d},vr.isFragment=function(w){return R(w)===e},vr.isLazy=function(w){return R(w)===m},vr.isMemo=function(w){return R(w)===g},vr.isPortal=function(w){return R(w)===t},vr.isProfiler=function(w){return R(w)===i},vr.isStrictMode=function(w){return R(w)===s},vr.isSuspense=function(w){return R(w)===u},vr.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===e||w===c||w===i||w===s||w===u||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===g||w.$$typeof===r||w.$$typeof===l||w.$$typeof===d||w.$$typeof===v||w.$$typeof===b||w.$$typeof===_||w.$$typeof===h)},vr.typeOf=R,vr}var br={};/** @license React v16.13.1
|
|
50
50
|
* react-is.development.js
|
|
51
51
|
*
|
|
52
52
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the MIT license found in the
|
|
55
55
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var pl;function ku(){return pl||(pl=1,process.env.NODE_ENV!=="production"&&function(){var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,a=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,u=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,p=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,T=n?Symbol.for("react.responder"):60118,v=n?Symbol.for("react.scope"):60119;function y(M){return typeof M=="string"||typeof M=="function"||M===r||M===c||M===i||M===o||M===d||M===f||typeof M=="object"&&M!==null&&(M.$$typeof===p||M.$$typeof===h||M.$$typeof===s||M.$$typeof===l||M.$$typeof===u||M.$$typeof===m||M.$$typeof===T||M.$$typeof===v||M.$$typeof===g)}function b(M){if(typeof M=="object"&&M!==null){var Me=M.$$typeof;switch(Me){case e:var Ht=M.type;switch(Ht){case a:case c:case r:case i:case o:case d:return Ht;default:var Et=Ht&&Ht.$$typeof;switch(Et){case l:case u:case p:case h:case s:return Et;default:return Me}}case t:return Me}}}var x=a,C=c,N=l,w=s,O=e,z=u,X=r,he=p,le=h,H=t,ie=i,ue=o,be=d,De=!1;function nt(M){return De||(De=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(M)||b(M)===a}function k(M){return b(M)===c}function F(M){return b(M)===l}function J(M){return b(M)===s}function q(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function $(M){return b(M)===u}function Q(M){return b(M)===r}function W(M){return b(M)===p}function Y(M){return b(M)===h}function V(M){return b(M)===t}function Z(M){return b(M)===i}function G(M){return b(M)===o}function Se(M){return b(M)===d}oe.AsyncMode=x,oe.ConcurrentMode=C,oe.ContextConsumer=N,oe.ContextProvider=w,oe.Element=O,oe.ForwardRef=z,oe.Fragment=X,oe.Lazy=he,oe.Memo=le,oe.Portal=H,oe.Profiler=ie,oe.StrictMode=ue,oe.Suspense=be,oe.isAsyncMode=nt,oe.isConcurrentMode=k,oe.isContextConsumer=F,oe.isContextProvider=J,oe.isElement=q,oe.isForwardRef=$,oe.isFragment=Q,oe.isLazy=W,oe.isMemo=Y,oe.isPortal=V,oe.isProfiler=Z,oe.isStrictMode=G,oe.isSuspense=Se,oe.isValidElementType=y,oe.typeOf=b}()),oe}var gl;function ml(){return gl||(gl=1,process.env.NODE_ENV==="production"?vr.exports=wu():vr.exports=ku()),vr.exports}var Fo,_l;function Bo(){if(_l)return Fo;_l=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fo=n,Fo}var Wo,yl;function vl(){return yl||(yl=1,Wo=Function.call.bind(Object.prototype.hasOwnProperty)),Wo}var $o,xl;function Pu(){if(xl)return $o;xl=1;var n=function(){};if(process.env.NODE_ENV!=="production"){var e=Bo(),t={},r=vl();n=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,l,a,c){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var d;try{if(typeof i[u]!="function"){var f=Error((a||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[u](s,u,a,l,null,e)}catch(p){d=p}if(d&&!(d instanceof Error)&&n((a||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var h=c?c():"";n("Failed "+l+" type: "+d.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},$o=o,$o}var zo,Tl;function Nu(){if(Tl)return zo;Tl=1;var n=ml(),e=kn(),t=Bo(),r=vl(),o=Pu(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var a="Warning: "+l;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}});function s(){return null}return zo=function(l,a){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(k){var F=k&&(c&&k[c]||k[u]);if(typeof F=="function")return F}var f="<<anonymous>>",h={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:v(),arrayOf:y,element:b(),elementType:x(),instanceOf:C,node:z(),objectOf:w,oneOf:N,oneOfType:O,shape:he,exact:le};function p(k,F){return k===F?k!==0||1/k===1/F:k!==k&&F!==F}function g(k,F){this.message=k,this.data=F&&typeof F=="object"?F:{},this.stack=""}g.prototype=Error.prototype;function m(k){if(process.env.NODE_ENV!=="production")var F={},J=0;function q(Q,W,Y,V,Z,G,Se){if(V=V||f,G=G||Y,Se!==t){if(a){var M=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw M.name="Invariant Violation",M}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Me=V+":"+Y;!F[Me]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+V+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),F[Me]=!0,J++)}}return W[Y]==null?Q?W[Y]===null?new g("The "+Z+" `"+G+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new g("The "+Z+" `"+G+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:k(W,Y,V,Z,G)}var $=q.bind(null,!1);return $.isRequired=q.bind(null,!0),$}function T(k){function F(J,q,$,Q,W,Y){var V=J[q],Z=ue(V);if(Z!==k){var G=be(V);return new g("Invalid "+Q+" `"+W+"` of type "+("`"+G+"` supplied to `"+$+"`, expected ")+("`"+k+"`."),{expectedType:k})}return null}return m(F)}function v(){return m(s)}function y(k){function F(J,q,$,Q,W){if(typeof k!="function")return new g("Property `"+W+"` of component `"+$+"` has invalid PropType notation inside arrayOf.");var Y=J[q];if(!Array.isArray(Y)){var V=ue(Y);return new g("Invalid "+Q+" `"+W+"` of type "+("`"+V+"` supplied to `"+$+"`, expected an array."))}for(var Z=0;Z<Y.length;Z++){var G=k(Y,Z,$,Q,W+"["+Z+"]",t);if(G instanceof Error)return G}return null}return m(F)}function b(){function k(F,J,q,$,Q){var W=F[J];if(!l(W)){var Y=ue(W);return new g("Invalid "+$+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return m(k)}function x(){function k(F,J,q,$,Q){var W=F[J];if(!n.isValidElementType(W)){var Y=ue(W);return new g("Invalid "+$+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return m(k)}function C(k){function F(J,q,$,Q,W){if(!(J[q]instanceof k)){var Y=k.name||f,V=nt(J[q]);return new g("Invalid "+Q+" `"+W+"` of type "+("`"+V+"` supplied to `"+$+"`, expected ")+("instance of `"+Y+"`."))}return null}return m(F)}function N(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function F(J,q,$,Q,W){for(var Y=J[q],V=0;V<k.length;V++)if(p(Y,k[V]))return null;var Z=JSON.stringify(k,function(Se,M){var Me=be(M);return Me==="symbol"?String(M):M});return new g("Invalid "+Q+" `"+W+"` of value `"+String(Y)+"` "+("supplied to `"+$+"`, expected one of "+Z+"."))}return m(F)}function w(k){function F(J,q,$,Q,W){if(typeof k!="function")return new g("Property `"+W+"` of component `"+$+"` has invalid PropType notation inside objectOf.");var Y=J[q],V=ue(Y);if(V!=="object")return new g("Invalid "+Q+" `"+W+"` of type "+("`"+V+"` supplied to `"+$+"`, expected an object."));for(var Z in Y)if(r(Y,Z)){var G=k(Y,Z,$,Q,W+"."+Z,t);if(G instanceof Error)return G}return null}return m(F)}function O(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var F=0;F<k.length;F++){var J=k[F];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+De(J)+" at index "+F+"."),s}function q($,Q,W,Y,V){for(var Z=[],G=0;G<k.length;G++){var Se=k[G],M=Se($,Q,W,Y,V,t);if(M==null)return null;M.data&&r(M.data,"expectedType")&&Z.push(M.data.expectedType)}var Me=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new g("Invalid "+Y+" `"+V+"` supplied to "+("`"+W+"`"+Me+"."))}return m(q)}function z(){function k(F,J,q,$,Q){return H(F[J])?null:new g("Invalid "+$+" `"+Q+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return m(k)}function X(k,F,J,q,$){return new g((k||"React class")+": "+F+" type `"+J+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+$+"`.")}function he(k){function F(J,q,$,Q,W){var Y=J[q],V=ue(Y);if(V!=="object")return new g("Invalid "+Q+" `"+W+"` of type `"+V+"` "+("supplied to `"+$+"`, expected `object`."));for(var Z in k){var G=k[Z];if(typeof G!="function")return X($,Q,W,Z,be(G));var Se=G(Y,Z,$,Q,W+"."+Z,t);if(Se)return Se}return null}return m(F)}function le(k){function F(J,q,$,Q,W){var Y=J[q],V=ue(Y);if(V!=="object")return new g("Invalid "+Q+" `"+W+"` of type `"+V+"` "+("supplied to `"+$+"`, expected `object`."));var Z=e({},J[q],k);for(var G in Z){var Se=k[G];if(r(k,G)&&typeof Se!="function")return X($,Q,W,G,be(Se));if(!Se)return new g("Invalid "+Q+" `"+W+"` key `"+G+"` supplied to `"+$+"`.\nBad object: "+JSON.stringify(J[q],null," ")+`
|
|
57
|
-
Valid keys: `+JSON.stringify(Object.keys(k),null," "));var M=Se(Y,G,$,Q,W+"."+G,t);if(M)return M}return null}return m(F)}function H(k){switch(typeof k){case"number":case"string":case"undefined":return!0;case"boolean":return!k;case"object":if(Array.isArray(k))return k.every(H);if(k===null||l(k))return!0;var F=d(k);if(F){var J=F.call(k),q;if(F!==k.entries){for(;!(q=J.next()).done;)if(!H(q.value))return!1}else for(;!(q=J.next()).done;){var $=q.value;if($&&!H($[1]))return!1}}else return!1;return!0;default:return!1}}function ie(k,F){return k==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function ue(k){var F=typeof k;return Array.isArray(k)?"array":k instanceof RegExp?"object":ie(F,k)?"symbol":F}function be(k){if(typeof k>"u"||k===null)return""+k;var F=ue(k);if(F==="object"){if(k instanceof Date)return"date";if(k instanceof RegExp)return"regexp"}return F}function De(k){var F=be(k);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function nt(k){return!k.constructor||!k.constructor.name?f:k.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},zo}var Uo,bl;function Ou(){if(bl)return Uo;bl=1;var n=Bo();function e(){}function t(){}return t.resetWarningCache=e,Uo=function(){function r(s,l,a,c,u,d){if(d!==n){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:e};return i.PropTypes=i,i},Uo}if(process.env.NODE_ENV!=="production"){var Au=ml(),Iu=!0;jo.exports=Nu()(Au.isElement,Iu)}else jo.exports=Ou()();var Ru=jo.exports;const fe=wn(Ru);function Du(n){return n&&typeof n=="object"&&"default"in n?n.default:n}var Cl=A,Mu=Du(Cl);function El(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Lu(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}var ju=!!(typeof window<"u"&&window.document&&window.document.createElement);function Fu(n,e,t){if(typeof n!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof t<"u"&&typeof t!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],l;function a(){l=n(s.map(function(u){return u.props})),c.canUseDOM?e(l):t&&(l=t(l))}var c=function(u){Lu(d,u);function d(){return u.apply(this,arguments)||this}d.peek=function(){return l},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var p=l;return l=void 0,s=[],p};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){s.push(this),a()},f.componentDidUpdate=function(){a()},f.componentWillUnmount=function(){var p=s.indexOf(this);s.splice(p,1),a()},f.render=function(){return Mu.createElement(i,this.props)},d}(Cl.PureComponent);return El(c,"displayName","SideEffect("+r(i)+")"),El(c,"canUseDOM",ju),c}}var Bu=Fu;const Wu=wn(Bu);var $u=typeof Element<"u",zu=typeof Map=="function",Uu=typeof Set=="function",Hu=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function xr(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){if(n.constructor!==e.constructor)return!1;var t,r,o;if(Array.isArray(n)){if(t=n.length,t!=e.length)return!1;for(r=t;r--!==0;)if(!xr(n[r],e[r]))return!1;return!0}var i;if(zu&&n instanceof Map&&e instanceof Map){if(n.size!==e.size)return!1;for(i=n.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;for(i=n.entries();!(r=i.next()).done;)if(!xr(r.value[1],e.get(r.value[0])))return!1;return!0}if(Uu&&n instanceof Set&&e instanceof Set){if(n.size!==e.size)return!1;for(i=n.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(Hu&&ArrayBuffer.isView(n)&&ArrayBuffer.isView(e)){if(t=n.length,t!=e.length)return!1;for(r=t;r--!==0;)if(n[r]!==e[r])return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf&&typeof n.valueOf=="function"&&typeof e.valueOf=="function")return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString&&typeof n.toString=="function"&&typeof e.toString=="function")return n.toString()===e.toString();if(o=Object.keys(n),t=o.length,t!==Object.keys(e).length)return!1;for(r=t;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;if($u&&n instanceof Element)return!1;for(r=t;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&n.$$typeof)&&!xr(n[o[r]],e[o[r]]))return!1;return!0}return n!==n&&e!==e}var Yu=function(e,t){try{return xr(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Ku=wn(Yu);var qu=kn();const Vu=wn(qu);var Ct={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},K={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Sl=Object.keys(K).map(function(n){return K[n]}),de={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Tr={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Tn={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},Ju=Object.keys(Tr).reduce(function(n,e){return n[Tr[e]]=e,n},{}),Gu=[K.NOSCRIPT,K.SCRIPT,K.STYLE],Ue="data-react-helmet",Xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qu=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},Zu=function(){function n(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),Ie=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},ef=function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)},wl=function(n,e){var t={};for(var r in n)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},tf=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n},Ho=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},nf=function(e){var t=zt(e,K.TITLE),r=zt(e,Tn.TITLE_TEMPLATE);if(r&&t)return r.replace(/%s/g,function(){return Array.isArray(t)?t.join(""):t});var o=zt(e,Tn.DEFAULT_TITLE);return t||o||void 0},rf=function(e){return zt(e,Tn.ON_CHANGE_CLIENT_STATE)||function(){}},Yo=function(e,t){return t.filter(function(r){return typeof r[e]<"u"}).map(function(r){return r[e]}).reduce(function(r,o){return Ie({},r,o)},{})},of=function(e,t){return t.filter(function(r){return typeof r[K.BASE]<"u"}).map(function(r){return r[K.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),s=0;s<i.length;s++){var l=i[s],a=l.toLowerCase();if(e.indexOf(a)!==-1&&o[a])return r.concat(o)}return r},[])},bn=function(e,t,r){var o={};return r.filter(function(i){return Array.isArray(i[e])?!0:(typeof i[e]<"u"&&qo("Helmet: "+e+' should be of type "Array". Instead found type "'+Xu(i[e])+'"'),!1)}).map(function(i){return i[e]}).reverse().reduce(function(i,s){var l={};s.filter(function(f){for(var h=void 0,p=Object.keys(f),g=0;g<p.length;g++){var m=p[g],T=m.toLowerCase();t.indexOf(T)!==-1&&!(h===de.REL&&f[h].toLowerCase()==="canonical")&&!(T===de.REL&&f[T].toLowerCase()==="stylesheet")&&(h=T),t.indexOf(m)!==-1&&(m===de.INNER_HTML||m===de.CSS_TEXT||m===de.ITEM_PROP)&&(h=m)}if(!h||!f[h])return!1;var v=f[h].toLowerCase();return o[h]||(o[h]={}),l[h]||(l[h]={}),o[h][v]?!1:(l[h][v]=!0,!0)}).reverse().forEach(function(f){return i.push(f)});for(var a=Object.keys(l),c=0;c<a.length;c++){var u=a[c],d=Vu({},o[u],l[u]);o[u]=d}return i},[]).reverse()},zt=function(e,t){for(var r=e.length-1;r>=0;r--){var o=e[r];if(o.hasOwnProperty(t))return o[t]}return null},sf=function(e){return{baseTag:of([de.HREF,de.TARGET],e),bodyAttributes:Yo(Ct.BODY,e),defer:zt(e,Tn.DEFER),encode:zt(e,Tn.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Yo(Ct.HTML,e),linkTags:bn(K.LINK,[de.REL,de.HREF],e),metaTags:bn(K.META,[de.NAME,de.CHARSET,de.HTTPEQUIV,de.PROPERTY,de.ITEM_PROP],e),noscriptTags:bn(K.NOSCRIPT,[de.INNER_HTML],e),onChangeClientState:rf(e),scriptTags:bn(K.SCRIPT,[de.SRC,de.INNER_HTML],e),styleTags:bn(K.STYLE,[de.CSS_TEXT],e),title:nf(e),titleAttributes:Yo(Ct.TITLE,e)}},Ko=function(){var n=Date.now();return function(e){var t=Date.now();t-n>16?(n=t,e(t)):setTimeout(function(){Ko(e)},0)}}(),kl=function(e){return clearTimeout(e)},lf=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Ko:global.requestAnimationFrame||Ko,af=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||kl:global.cancelAnimationFrame||kl,qo=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},Cn=null,cf=function(e){Cn&&af(Cn),e.defer?Cn=lf(function(){Pl(e,function(){Cn=null})}):(Pl(e),Cn=null)},Pl=function(e,t){var r=e.baseTag,o=e.bodyAttributes,i=e.htmlAttributes,s=e.linkTags,l=e.metaTags,a=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,d=e.styleTags,f=e.title,h=e.titleAttributes;Vo(K.BODY,o),Vo(K.HTML,i),uf(f,h);var p={baseTag:Ut(K.BASE,r),linkTags:Ut(K.LINK,s),metaTags:Ut(K.META,l),noscriptTags:Ut(K.NOSCRIPT,a),scriptTags:Ut(K.SCRIPT,u),styleTags:Ut(K.STYLE,d)},g={},m={};Object.keys(p).forEach(function(T){var v=p[T],y=v.newTags,b=v.oldTags;y.length&&(g[T]=y),b.length&&(m[T]=p[T].oldTags)}),t&&t(),c(e,g,m)},Nl=function(e){return Array.isArray(e)?e.join(""):e},uf=function(e,t){typeof e<"u"&&document.title!==e&&(document.title=Nl(e)),Vo(K.TITLE,t)},Vo=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var o=r.getAttribute(Ue),i=o?o.split(","):[],s=[].concat(i),l=Object.keys(t),a=0;a<l.length;a++){var c=l[a],u=t[c]||"";r.getAttribute(c)!==u&&r.setAttribute(c,u),i.indexOf(c)===-1&&i.push(c);var d=s.indexOf(c);d!==-1&&s.splice(d,1)}for(var f=s.length-1;f>=0;f--)r.removeAttribute(s[f]);i.length===s.length?r.removeAttribute(Ue):r.getAttribute(Ue)!==l.join(",")&&r.setAttribute(Ue,l.join(","))}},Ut=function(e,t){var r=document.head||document.querySelector(K.HEAD),o=r.querySelectorAll(e+"["+Ue+"]"),i=Array.prototype.slice.call(o),s=[],l=void 0;return t&&t.length&&t.forEach(function(a){var c=document.createElement(e);for(var u in a)if(a.hasOwnProperty(u))if(u===de.INNER_HTML)c.innerHTML=a.innerHTML;else if(u===de.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=a.cssText:c.appendChild(document.createTextNode(a.cssText));else{var d=typeof a[u]>"u"?"":a[u];c.setAttribute(u,d)}c.setAttribute(Ue,"true"),i.some(function(f,h){return l=h,c.isEqualNode(f)})?i.splice(l,1):s.push(c)}),i.forEach(function(a){return a.parentNode.removeChild(a)}),s.forEach(function(a){return r.appendChild(a)}),{oldTags:i,newTags:s}},Ol=function(e){return Object.keys(e).reduce(function(t,r){var o=typeof e[r]<"u"?r+'="'+e[r]+'"':""+r;return t?t+" "+o:o},"")},ff=function(e,t,r,o){var i=Ol(r),s=Nl(t);return i?"<"+e+" "+Ue+'="true" '+i+">"+Ho(s,o)+"</"+e+">":"<"+e+" "+Ue+'="true">'+Ho(s,o)+"</"+e+">"},df=function(e,t,r){return t.reduce(function(o,i){var s=Object.keys(i).filter(function(c){return!(c===de.INNER_HTML||c===de.CSS_TEXT)}).reduce(function(c,u){var d=typeof i[u]>"u"?u:u+'="'+Ho(i[u],r)+'"';return c?c+" "+d:d},""),l=i.innerHTML||i.cssText||"",a=Gu.indexOf(e)===-1;return o+"<"+e+" "+Ue+'="true" '+s+(a?"/>":">"+l+"</"+e+">")},"")},Al=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(r,o){return r[Tr[o]||o]=e[o],r},t)},hf=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(r,o){return r[Ju[o]||o]=e[o],r},t)},pf=function(e,t,r){var o,i=(o={key:t},o[Ue]=!0,o),s=Al(r,i);return[A.createElement(K.TITLE,s,t)]},gf=function(e,t){return t.map(function(r,o){var i,s=(i={key:o},i[Ue]=!0,i);return Object.keys(r).forEach(function(l){var a=Tr[l]||l;if(a===de.INNER_HTML||a===de.CSS_TEXT){var c=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:c}}else s[a]=r[l]}),A.createElement(e,s)})},tt=function(e,t,r){switch(e){case K.TITLE:return{toComponent:function(){return pf(e,t.title,t.titleAttributes)},toString:function(){return ff(e,t.title,t.titleAttributes,r)}};case Ct.BODY:case Ct.HTML:return{toComponent:function(){return Al(t)},toString:function(){return Ol(t)}};default:return{toComponent:function(){return gf(e,t)},toString:function(){return df(e,t,r)}}}},Il=function(e){var t=e.baseTag,r=e.bodyAttributes,o=e.encode,i=e.htmlAttributes,s=e.linkTags,l=e.metaTags,a=e.noscriptTags,c=e.scriptTags,u=e.styleTags,d=e.title,f=d===void 0?"":d,h=e.titleAttributes;return{base:tt(K.BASE,t,o),bodyAttributes:tt(Ct.BODY,r,o),htmlAttributes:tt(Ct.HTML,i,o),link:tt(K.LINK,s,o),meta:tt(K.META,l,o),noscript:tt(K.NOSCRIPT,a,o),script:tt(K.SCRIPT,c,o),style:tt(K.STYLE,u,o),title:tt(K.TITLE,{title:f,titleAttributes:h},o)}},mf=function(e){var t,r;return r=t=function(o){ef(i,o);function i(){return Qu(this,i),tf(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!Ku(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,a){if(!a)return null;switch(l.type){case K.SCRIPT:case K.NOSCRIPT:return{innerHTML:a};case K.STYLE:return{cssText:a}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var a,c=l.child,u=l.arrayTypeChildren,d=l.newChildProps,f=l.nestedChildren;return Ie({},u,(a={},a[c.type]=[].concat(u[c.type]||[],[Ie({},d,this.mapNestedChildrenToProps(c,f))]),a))},i.prototype.mapObjectTypeChildren=function(l){var a,c,u=l.child,d=l.newProps,f=l.newChildProps,h=l.nestedChildren;switch(u.type){case K.TITLE:return Ie({},d,(a={},a[u.type]=h,a.titleAttributes=Ie({},f),a));case K.BODY:return Ie({},d,{bodyAttributes:Ie({},f)});case K.HTML:return Ie({},d,{htmlAttributes:Ie({},f)})}return Ie({},d,(c={},c[u.type]=Ie({},f),c))},i.prototype.mapArrayTypeChildrenToProps=function(l,a){var c=Ie({},a);return Object.keys(l).forEach(function(u){var d;c=Ie({},c,(d={},d[u]=l[u],d))}),c},i.prototype.warnOnInvalidChildren=function(l,a){if(process.env.NODE_ENV!=="production"){if(!Sl.some(function(c){return l.type===c}))return typeof l.type=="function"?qo("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information."):qo("Only elements types "+Sl.join(", ")+" are allowed. Helmet does not support rendering <"+l.type+"> elements. Refer to our API for more information.");if(a&&typeof a!="string"&&(!Array.isArray(a)||a.some(function(c){return typeof c!="string"})))throw new Error("Helmet expects a string as a child of <"+l.type+">. Did you forget to wrap your children in braces? ( <"+l.type+">{``}</"+l.type+"> ) Refer to our API for more information.")}return!0},i.prototype.mapChildrenToProps=function(l,a){var c=this,u={};return A.Children.forEach(l,function(d){if(!(!d||!d.props)){var f=d.props,h=f.children,p=wl(f,["children"]),g=hf(p);switch(c.warnOnInvalidChildren(d,h),d.type){case K.LINK:case K.META:case K.NOSCRIPT:case K.SCRIPT:case K.STYLE:u=c.flattenArrayTypeChildren({child:d,arrayTypeChildren:u,newChildProps:g,nestedChildren:h});break;default:a=c.mapObjectTypeChildren({child:d,newProps:a,newChildProps:g,nestedChildren:h});break}}}),a=this.mapArrayTypeChildrenToProps(u,a),a},i.prototype.render=function(){var l=this.props,a=l.children,c=wl(l,["children"]),u=Ie({},c);return a&&(u=this.mapChildrenToProps(a,u)),A.createElement(e,u)},Zu(i,null,[{key:"canUseDOM",set:function(l){e.canUseDOM=l}}]),i}(A.Component),t.propTypes={base:fe.object,bodyAttributes:fe.object,children:fe.oneOfType([fe.arrayOf(fe.node),fe.node]),defaultTitle:fe.string,defer:fe.bool,encodeSpecialCharacters:fe.bool,htmlAttributes:fe.object,link:fe.arrayOf(fe.object),meta:fe.arrayOf(fe.object),noscript:fe.arrayOf(fe.object),onChangeClientState:fe.func,script:fe.arrayOf(fe.object),style:fe.arrayOf(fe.object),title:fe.string,titleAttributes:fe.object,titleTemplate:fe.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var o=e.rewind();return o||(o=Il({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},_f=function(){return null},yf=Wu(sf,cf,Il)(_f),Jo=mf(yf);Jo.renderStatic=Jo.rewind;const vf=Fs({namespace:"MyEditor",theme:{}});function xf({ckey:n}){const e=A.useRef(null);return A.useEffect(()=>{const t=()=>{if(window.Codox){const r=new window.Codox,o={docId:"mydoc",app:"text",editor:e.current,apiKey:n,user:{name:`Tarun_${Math.floor(Math.random()*10)}`}};r.start(o)}else console.error("Codox library is not loaded")};setTimeout(()=>{t()},4e3)},[]),A.useEffect(()=>{const t=document.getElementById("editor");vf.setRootElement(t)},[]),S.jsxs("div",{className:"aa",children:[S.jsxs(Jo,{children:[S.jsx("script",{src:"https://cdn1.codox.io/lib/2.x/api/wave.client.js",type:"text/javascript"}),S.jsx("link",{href:"https://cdn1.codox.io/lib/2.x/css/wave.client.css",rel:"stylesheet"})]}),S.jsx("textarea",{id:"editor",rows:10,column:10,ref:e,children:S.jsx("div",{children:"sdsd"})})]})}const Tf={};function bf(n){console.error(n)}function Cf(){return S.jsx("div",{className:"divider-horizontal"})}function Ef({ckey:n,isCollab:e}){const{pageMarginValue:t}=mr();console.log("11111"),console.log("734344",n,e),console.log("222222");const r={namespace:"MyEditor",theme:Tf,onError:bf};function o(){return S.jsx("div",{className:"editor-placeholder",children:"Enter some rich text..."})}return S.jsxs(cc,{initialConfig:r,children:[S.jsx("div",{className:"editor-container",children:S.jsx(Su,{})}),S.jsxs("div",{className:"editor-container",children:[S.jsx(Cf,{}),S.jsxs("div",{className:"editor-inner",children:[S.jsx(au,{contentEditable:e==="yes"?S.jsx(xf,{ckey:n}):S.jsx(Pc,{style:{margin:`${t}`},className:"editor-input"}),placeholder:S.jsx(o,{}),ErrorBoundary:fu}),S.jsx(Fc,{}),S.jsx(uc,{})]})]})]})}it.Editor=Ef,Object.defineProperty(it,Symbol.toStringTag,{value:"Module"})});
|
|
56
|
+
*/var hg;function Qy(){return hg||(hg=1,process.env.NODE_ENV!=="production"&&function(){var o=typeof Symbol=="function"&&Symbol.for,a=o?Symbol.for("react.element"):60103,t=o?Symbol.for("react.portal"):60106,e=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,i=o?Symbol.for("react.profiler"):60114,r=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,n=o?Symbol.for("react.async_mode"):60111,c=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,u=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,g=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,h=o?Symbol.for("react.block"):60121,v=o?Symbol.for("react.fundamental"):60117,b=o?Symbol.for("react.responder"):60118,_=o?Symbol.for("react.scope"):60119;function R(T){return typeof T=="string"||typeof T=="function"||T===e||T===c||T===i||T===s||T===u||T===f||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===g||T.$$typeof===r||T.$$typeof===l||T.$$typeof===d||T.$$typeof===v||T.$$typeof===b||T.$$typeof===_||T.$$typeof===h)}function x(T){if(typeof T=="object"&&T!==null){var ot=T.$$typeof;switch(ot){case a:var at=T.type;switch(at){case n:case c:case e:case i:case s:case u:return at;default:var q=at&&at.$$typeof;switch(q){case l:case d:case m:case g:case r:return q;default:return ot}}case t:return ot}}}var w=n,O=c,I=l,L=r,M=a,A=d,k=e,J=m,G=g,U=t,D=i,W=s,Q=u,E=!1;function B(T){return E||(E=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(T)||x(T)===n}function $(T){return x(T)===c}function C(T){return x(T)===l}function N(T){return x(T)===r}function Y(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function tt(T){return x(T)===d}function F(T){return x(T)===e}function z(T){return x(T)===m}function P(T){return x(T)===g}function j(T){return x(T)===t}function V(T){return x(T)===i}function K(T){return x(T)===s}function rt(T){return x(T)===u}br.AsyncMode=w,br.ConcurrentMode=O,br.ContextConsumer=I,br.ContextProvider=L,br.Element=M,br.ForwardRef=A,br.Fragment=k,br.Lazy=J,br.Memo=G,br.Portal=U,br.Profiler=D,br.StrictMode=W,br.Suspense=Q,br.isAsyncMode=B,br.isConcurrentMode=$,br.isContextConsumer=C,br.isContextProvider=N,br.isElement=Y,br.isForwardRef=tt,br.isFragment=F,br.isLazy=z,br.isMemo=P,br.isPortal=j,br.isProfiler=V,br.isStrictMode=K,br.isSuspense=rt,br.isValidElementType=R,br.typeOf=x}()),br}var gg;function mg(){return gg||(gg=1,process.env.NODE_ENV==="production"?Lu.exports=Xy():Lu.exports=Qy()),Lu.exports}var gf,yg;function mf(){if(yg)return gf;yg=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return gf=o,gf}var yf,vg;function bg(){return vg||(vg=1,yf=Function.call.bind(Object.prototype.hasOwnProperty)),yf}var vf,_g;function Zy(){if(_g)return vf;_g=1;var o=function(){};if(process.env.NODE_ENV!=="production"){var a=mf(),t={},e=bg();o=function(i){var r="Warning: "+i;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}}}function s(i,r,l,n,c){if(process.env.NODE_ENV!=="production"){for(var d in i)if(e(i,d)){var u;try{if(typeof i[d]!="function"){var f=Error((n||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=i[d](r,d,n,l,null,a)}catch(m){u=m}if(u&&!(u instanceof Error)&&o((n||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in t)){t[u.message]=!0;var g=c?c():"";o("Failed "+l+" type: "+u.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},vf=s,vf}var bf,wg;function tv(){if(wg)return bf;wg=1;var o=mg(),a=Vc(),t=mf(),e=bg(),s=Zy(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var n="Warning: "+l;typeof console<"u"&&console.error(n);try{throw new Error(n)}catch{}});function r(){return null}return bf=function(l,n){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u($){var C=$&&(c&&$[c]||$[d]);if(typeof C=="function")return C}var f="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:_(),arrayOf:R,element:x(),elementType:w(),instanceOf:O,node:A(),objectOf:L,oneOf:I,oneOfType:M,shape:J,exact:G};function m($,C){return $===C?$!==0||1/$===1/C:$!==$&&C!==C}function h($,C){this.message=$,this.data=C&&typeof C=="object"?C:{},this.stack=""}h.prototype=Error.prototype;function v($){if(process.env.NODE_ENV!=="production")var C={},N=0;function Y(F,z,P,j,V,K,rt){if(j=j||f,K=K||P,rt!==t){if(n){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ot=j+":"+P;!C[ot]&&N<3&&(i("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+j+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),C[ot]=!0,N++)}}return z[P]==null?F?z[P]===null?new h("The "+V+" `"+K+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new h("The "+V+" `"+K+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:$(z,P,j,V,K)}var tt=Y.bind(null,!1);return tt.isRequired=Y.bind(null,!0),tt}function b($){function C(N,Y,tt,F,z,P){var j=N[Y],V=W(j);if(V!==$){var K=Q(j);return new h("Invalid "+F+" `"+z+"` of type "+("`"+K+"` supplied to `"+tt+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return v(C)}function _(){return v(r)}function R($){function C(N,Y,tt,F,z){if(typeof $!="function")return new h("Property `"+z+"` of component `"+tt+"` has invalid PropType notation inside arrayOf.");var P=N[Y];if(!Array.isArray(P)){var j=W(P);return new h("Invalid "+F+" `"+z+"` of type "+("`"+j+"` supplied to `"+tt+"`, expected an array."))}for(var V=0;V<P.length;V++){var K=$(P,V,tt,F,z+"["+V+"]",t);if(K instanceof Error)return K}return null}return v(C)}function x(){function $(C,N,Y,tt,F){var z=C[N];if(!l(z)){var P=W(z);return new h("Invalid "+tt+" `"+F+"` of type "+("`"+P+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return v($)}function w(){function $(C,N,Y,tt,F){var z=C[N];if(!o.isValidElementType(z)){var P=W(z);return new h("Invalid "+tt+" `"+F+"` of type "+("`"+P+"` supplied to `"+Y+"`, expected a single ReactElement type."))}return null}return v($)}function O($){function C(N,Y,tt,F,z){if(!(N[Y]instanceof $)){var P=$.name||f,j=B(N[Y]);return new h("Invalid "+F+" `"+z+"` of type "+("`"+j+"` supplied to `"+tt+"`, expected ")+("instance of `"+P+"`."))}return null}return v(C)}function I($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),r;function C(N,Y,tt,F,z){for(var P=N[Y],j=0;j<$.length;j++)if(m(P,$[j]))return null;var V=JSON.stringify($,function(rt,T){var ot=Q(T);return ot==="symbol"?String(T):T});return new h("Invalid "+F+" `"+z+"` of value `"+String(P)+"` "+("supplied to `"+tt+"`, expected one of "+V+"."))}return v(C)}function L($){function C(N,Y,tt,F,z){if(typeof $!="function")return new h("Property `"+z+"` of component `"+tt+"` has invalid PropType notation inside objectOf.");var P=N[Y],j=W(P);if(j!=="object")return new h("Invalid "+F+" `"+z+"` of type "+("`"+j+"` supplied to `"+tt+"`, expected an object."));for(var V in P)if(e(P,V)){var K=$(P,V,tt,F,z+"."+V,t);if(K instanceof Error)return K}return null}return v(C)}function M($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var C=0;C<$.length;C++){var N=$[C];if(typeof N!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+E(N)+" at index "+C+"."),r}function Y(tt,F,z,P,j){for(var V=[],K=0;K<$.length;K++){var rt=$[K],T=rt(tt,F,z,P,j,t);if(T==null)return null;T.data&&e(T.data,"expectedType")&&V.push(T.data.expectedType)}var ot=V.length>0?", expected one of type ["+V.join(", ")+"]":"";return new h("Invalid "+P+" `"+j+"` supplied to "+("`"+z+"`"+ot+"."))}return v(Y)}function A(){function $(C,N,Y,tt,F){return U(C[N])?null:new h("Invalid "+tt+" `"+F+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return v($)}function k($,C,N,Y,tt){return new h(($||"React class")+": "+C+" type `"+N+"."+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+tt+"`.")}function J($){function C(N,Y,tt,F,z){var P=N[Y],j=W(P);if(j!=="object")return new h("Invalid "+F+" `"+z+"` of type `"+j+"` "+("supplied to `"+tt+"`, expected `object`."));for(var V in $){var K=$[V];if(typeof K!="function")return k(tt,F,z,V,Q(K));var rt=K(P,V,tt,F,z+"."+V,t);if(rt)return rt}return null}return v(C)}function G($){function C(N,Y,tt,F,z){var P=N[Y],j=W(P);if(j!=="object")return new h("Invalid "+F+" `"+z+"` of type `"+j+"` "+("supplied to `"+tt+"`, expected `object`."));var V=a({},N[Y],$);for(var K in V){var rt=$[K];if(e($,K)&&typeof rt!="function")return k(tt,F,z,K,Q(rt));if(!rt)return new h("Invalid "+F+" `"+z+"` key `"+K+"` supplied to `"+tt+"`.\nBad object: "+JSON.stringify(N[Y],null," ")+`
|
|
57
|
+
Valid keys: `+JSON.stringify(Object.keys($),null," "));var T=rt(P,K,tt,F,z+"."+K,t);if(T)return T}return null}return v(C)}function U($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(U);if($===null||l($))return!0;var C=u($);if(C){var N=C.call($),Y;if(C!==$.entries){for(;!(Y=N.next()).done;)if(!U(Y.value))return!1}else for(;!(Y=N.next()).done;){var tt=Y.value;if(tt&&!U(tt[1]))return!1}}else return!1;return!0;default:return!1}}function D($,C){return $==="symbol"?!0:C?C["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&C instanceof Symbol:!1}function W($){var C=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":D(C,$)?"symbol":C}function Q($){if(typeof $>"u"||$===null)return""+$;var C=W($);if(C==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return C}function E($){var C=Q($);switch(C){case"array":case"object":return"an "+C;case"boolean":case"date":case"regexp":return"a "+C;default:return C}}function B($){return!$.constructor||!$.constructor.name?f:$.constructor.name}return g.checkPropTypes=s,g.resetWarningCache=s.resetWarningCache,g.PropTypes=g,g},bf}var _f,xg;function ev(){if(xg)return _f;xg=1;var o=mf();function a(){}function t(){}return t.resetWarningCache=a,_f=function(){function e(r,l,n,c,d,u){if(u!==o){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function s(){return e}var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:s,element:e,elementType:e,instanceOf:s,node:e,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:a};return i.PropTypes=i,i},_f}if(process.env.NODE_ENV!=="production"){var nv=mg(),rv=!0;hf.exports=tv()(nv.isElement,rv)}else hf.exports=ev()();var ov=hf.exports;const Hr=Wc(ov);function iv(o){return o&&typeof o=="object"&&"default"in o?o.default:o}var Sg=an,av=iv(Sg);function Eg(o,a,t){return a in o?Object.defineProperty(o,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[a]=t,o}function sv(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,o.__proto__=a}var lv=!!(typeof window<"u"&&window.document&&window.document.createElement);function cv(o,a,t){if(typeof o!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof a!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof t<"u"&&typeof t!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function e(s){return s.displayName||s.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var r=[],l;function n(){l=o(r.map(function(d){return d.props})),c.canUseDOM?a(l):t&&(l=t(l))}var c=function(d){sv(u,d);function u(){return d.apply(this,arguments)||this}u.peek=function(){return l},u.rewind=function(){if(u.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var m=l;return l=void 0,r=[],m};var f=u.prototype;return f.UNSAFE_componentWillMount=function(){r.push(this),n()},f.componentDidUpdate=function(){n()},f.componentWillUnmount=function(){var m=r.indexOf(this);r.splice(m,1),n()},f.render=function(){return av.createElement(i,this.props)},u}(Sg.PureComponent);return Eg(c,"displayName","SideEffect("+e(i)+")"),Eg(c,"canUseDOM",lv),c}}var uv=cv;const dv=Wc(uv);var fv=typeof Element<"u",pv=typeof Map=="function",hv=typeof Set=="function",gv=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bu(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var t,e,s;if(Array.isArray(o)){if(t=o.length,t!=a.length)return!1;for(e=t;e--!==0;)if(!Bu(o[e],a[e]))return!1;return!0}var i;if(pv&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(i=o.entries();!(e=i.next()).done;)if(!a.has(e.value[0]))return!1;for(i=o.entries();!(e=i.next()).done;)if(!Bu(e.value[1],a.get(e.value[0])))return!1;return!0}if(hv&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(i=o.entries();!(e=i.next()).done;)if(!a.has(e.value[0]))return!1;return!0}if(gv&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(t=o.length,t!=a.length)return!1;for(e=t;e--!==0;)if(o[e]!==a[e])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof a.valueOf=="function")return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof a.toString=="function")return o.toString()===a.toString();if(s=Object.keys(o),t=s.length,t!==Object.keys(a).length)return!1;for(e=t;e--!==0;)if(!Object.prototype.hasOwnProperty.call(a,s[e]))return!1;if(fv&&o instanceof Element)return!1;for(e=t;e--!==0;)if(!((s[e]==="_owner"||s[e]==="__v"||s[e]==="__o")&&o.$$typeof)&&!Bu(o[s[e]],a[s[e]]))return!1;return!0}return o!==o&&a!==a}var mv=function(a,t){try{return Bu(a,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};const yv=Wc(mv);var vv=Vc();const bv=Wc(vv);var dl={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},Jn={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Cg=Object.keys(Jn).map(function(o){return Jn[o]}),qr={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Fu={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Oc={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},_v=Object.keys(Fu).reduce(function(o,a){return o[Fu[a]]=a,o},{}),wv=[Jn.NOSCRIPT,Jn.SCRIPT,Jn.STYLE],ha="data-react-helmet",xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Sv=function(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")},Ev=function(){function o(a,t){for(var e=0;e<t.length;e++){var s=t[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}return function(a,t,e){return t&&o(a.prototype,t),e&&o(a,e),a}}(),vi=Object.assign||function(o){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}return o},Cv=function(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)},kg=function(o,a){var t={};for(var e in o)a.indexOf(e)>=0||Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e]);return t},kv=function(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o},wf=function(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t===!1?String(a):String(a).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Ov=function(a){var t=Dl(a,Jn.TITLE),e=Dl(a,Oc.TITLE_TEMPLATE);if(e&&t)return e.replace(/%s/g,function(){return Array.isArray(t)?t.join(""):t});var s=Dl(a,Oc.DEFAULT_TITLE);return t||s||void 0},Tv=function(a){return Dl(a,Oc.ON_CHANGE_CLIENT_STATE)||function(){}},xf=function(a,t){return t.filter(function(e){return typeof e[a]<"u"}).map(function(e){return e[a]}).reduce(function(e,s){return vi({},e,s)},{})},Pv=function(a,t){return t.filter(function(e){return typeof e[Jn.BASE]<"u"}).map(function(e){return e[Jn.BASE]}).reverse().reduce(function(e,s){if(!e.length)for(var i=Object.keys(s),r=0;r<i.length;r++){var l=i[r],n=l.toLowerCase();if(a.indexOf(n)!==-1&&s[n])return e.concat(s)}return e},[])},Tc=function(a,t,e){var s={};return e.filter(function(i){return Array.isArray(i[a])?!0:(typeof i[a]<"u"&&Ef("Helmet: "+a+' should be of type "Array". Instead found type "'+xv(i[a])+'"'),!1)}).map(function(i){return i[a]}).reverse().reduce(function(i,r){var l={};r.filter(function(f){for(var g=void 0,m=Object.keys(f),h=0;h<m.length;h++){var v=m[h],b=v.toLowerCase();t.indexOf(b)!==-1&&!(g===qr.REL&&f[g].toLowerCase()==="canonical")&&!(b===qr.REL&&f[b].toLowerCase()==="stylesheet")&&(g=b),t.indexOf(v)!==-1&&(v===qr.INNER_HTML||v===qr.CSS_TEXT||v===qr.ITEM_PROP)&&(g=v)}if(!g||!f[g])return!1;var _=f[g].toLowerCase();return s[g]||(s[g]={}),l[g]||(l[g]={}),s[g][_]?!1:(l[g][_]=!0,!0)}).reverse().forEach(function(f){return i.push(f)});for(var n=Object.keys(l),c=0;c<n.length;c++){var d=n[c],u=bv({},s[d],l[d]);s[d]=u}return i},[]).reverse()},Dl=function(a,t){for(var e=a.length-1;e>=0;e--){var s=a[e];if(s.hasOwnProperty(t))return s[t]}return null},jv=function(a){return{baseTag:Pv([qr.HREF,qr.TARGET],a),bodyAttributes:xf(dl.BODY,a),defer:Dl(a,Oc.DEFER),encode:Dl(a,Oc.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:xf(dl.HTML,a),linkTags:Tc(Jn.LINK,[qr.REL,qr.HREF],a),metaTags:Tc(Jn.META,[qr.NAME,qr.CHARSET,qr.HTTPEQUIV,qr.PROPERTY,qr.ITEM_PROP],a),noscriptTags:Tc(Jn.NOSCRIPT,[qr.INNER_HTML],a),onChangeClientState:Tv(a),scriptTags:Tc(Jn.SCRIPT,[qr.SRC,qr.INNER_HTML],a),styleTags:Tc(Jn.STYLE,[qr.CSS_TEXT],a),title:Ov(a),titleAttributes:xf(dl.TITLE,a)}},Sf=function(){var o=Date.now();return function(a){var t=Date.now();t-o>16?(o=t,a(t)):setTimeout(function(){Sf(a)},0)}}(),Og=function(a){return clearTimeout(a)},Av=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Sf:global.requestAnimationFrame||Sf,Rv=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Og:global.cancelAnimationFrame||Og,Ef=function(a){return console&&typeof console.warn=="function"&&console.warn(a)},Pc=null,Iv=function(a){Pc&&Rv(Pc),a.defer?Pc=Av(function(){Tg(a,function(){Pc=null})}):(Tg(a),Pc=null)},Tg=function(a,t){var e=a.baseTag,s=a.bodyAttributes,i=a.htmlAttributes,r=a.linkTags,l=a.metaTags,n=a.noscriptTags,c=a.onChangeClientState,d=a.scriptTags,u=a.styleTags,f=a.title,g=a.titleAttributes;Cf(Jn.BODY,s),Cf(Jn.HTML,i),Nv(f,g);var m={baseTag:Ll(Jn.BASE,e),linkTags:Ll(Jn.LINK,r),metaTags:Ll(Jn.META,l),noscriptTags:Ll(Jn.NOSCRIPT,n),scriptTags:Ll(Jn.SCRIPT,d),styleTags:Ll(Jn.STYLE,u)},h={},v={};Object.keys(m).forEach(function(b){var _=m[b],R=_.newTags,x=_.oldTags;R.length&&(h[b]=R),x.length&&(v[b]=m[b].oldTags)}),t&&t(),c(a,h,v)},Pg=function(a){return Array.isArray(a)?a.join(""):a},Nv=function(a,t){typeof a<"u"&&document.title!==a&&(document.title=Pg(a)),Cf(Jn.TITLE,t)},Cf=function(a,t){var e=document.getElementsByTagName(a)[0];if(e){for(var s=e.getAttribute(ha),i=s?s.split(","):[],r=[].concat(i),l=Object.keys(t),n=0;n<l.length;n++){var c=l[n],d=t[c]||"";e.getAttribute(c)!==d&&e.setAttribute(c,d),i.indexOf(c)===-1&&i.push(c);var u=r.indexOf(c);u!==-1&&r.splice(u,1)}for(var f=r.length-1;f>=0;f--)e.removeAttribute(r[f]);i.length===r.length?e.removeAttribute(ha):e.getAttribute(ha)!==l.join(",")&&e.setAttribute(ha,l.join(","))}},Ll=function(a,t){var e=document.head||document.querySelector(Jn.HEAD),s=e.querySelectorAll(a+"["+ha+"]"),i=Array.prototype.slice.call(s),r=[],l=void 0;return t&&t.length&&t.forEach(function(n){var c=document.createElement(a);for(var d in n)if(n.hasOwnProperty(d))if(d===qr.INNER_HTML)c.innerHTML=n.innerHTML;else if(d===qr.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=n.cssText:c.appendChild(document.createTextNode(n.cssText));else{var u=typeof n[d]>"u"?"":n[d];c.setAttribute(d,u)}c.setAttribute(ha,"true"),i.some(function(f,g){return l=g,c.isEqualNode(f)})?i.splice(l,1):r.push(c)}),i.forEach(function(n){return n.parentNode.removeChild(n)}),r.forEach(function(n){return e.appendChild(n)}),{oldTags:i,newTags:r}},jg=function(a){return Object.keys(a).reduce(function(t,e){var s=typeof a[e]<"u"?e+'="'+a[e]+'"':""+e;return t?t+" "+s:s},"")},Mv=function(a,t,e,s){var i=jg(e),r=Pg(t);return i?"<"+a+" "+ha+'="true" '+i+">"+wf(r,s)+"</"+a+">":"<"+a+" "+ha+'="true">'+wf(r,s)+"</"+a+">"},Dv=function(a,t,e){return t.reduce(function(s,i){var r=Object.keys(i).filter(function(c){return!(c===qr.INNER_HTML||c===qr.CSS_TEXT)}).reduce(function(c,d){var u=typeof i[d]>"u"?d:d+'="'+wf(i[d],e)+'"';return c?c+" "+u:u},""),l=i.innerHTML||i.cssText||"",n=wv.indexOf(a)===-1;return s+"<"+a+" "+ha+'="true" '+r+(n?"/>":">"+l+"</"+a+">")},"")},Ag=function(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(a).reduce(function(e,s){return e[Fu[s]||s]=a[s],e},t)},Lv=function(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(a).reduce(function(e,s){return e[_v[s]||s]=a[s],e},t)},Bv=function(a,t,e){var s,i=(s={key:t},s[ha]=!0,s),r=Ag(e,i);return[an.createElement(Jn.TITLE,r,t)]},Fv=function(a,t){return t.map(function(e,s){var i,r=(i={key:s},i[ha]=!0,i);return Object.keys(e).forEach(function(l){var n=Fu[l]||l;if(n===qr.INNER_HTML||n===qr.CSS_TEXT){var c=e.innerHTML||e.cssText;r.dangerouslySetInnerHTML={__html:c}}else r[n]=e[l]}),an.createElement(a,r)})},us=function(a,t,e){switch(a){case Jn.TITLE:return{toComponent:function(){return Bv(a,t.title,t.titleAttributes)},toString:function(){return Mv(a,t.title,t.titleAttributes,e)}};case dl.BODY:case dl.HTML:return{toComponent:function(){return Ag(t)},toString:function(){return jg(t)}};default:return{toComponent:function(){return Fv(a,t)},toString:function(){return Dv(a,t,e)}}}},Rg=function(a){var t=a.baseTag,e=a.bodyAttributes,s=a.encode,i=a.htmlAttributes,r=a.linkTags,l=a.metaTags,n=a.noscriptTags,c=a.scriptTags,d=a.styleTags,u=a.title,f=u===void 0?"":u,g=a.titleAttributes;return{base:us(Jn.BASE,t,s),bodyAttributes:us(dl.BODY,e,s),htmlAttributes:us(dl.HTML,i,s),link:us(Jn.LINK,r,s),meta:us(Jn.META,l,s),noscript:us(Jn.NOSCRIPT,n,s),script:us(Jn.SCRIPT,c,s),style:us(Jn.STYLE,d,s),title:us(Jn.TITLE,{title:f,titleAttributes:g},s)}},zv=function(a){var t,e;return e=t=function(s){Cv(i,s);function i(){return Sv(this,i),kv(this,s.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!yv(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,n){if(!n)return null;switch(l.type){case Jn.SCRIPT:case Jn.NOSCRIPT:return{innerHTML:n};case Jn.STYLE:return{cssText:n}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var n,c=l.child,d=l.arrayTypeChildren,u=l.newChildProps,f=l.nestedChildren;return vi({},d,(n={},n[c.type]=[].concat(d[c.type]||[],[vi({},u,this.mapNestedChildrenToProps(c,f))]),n))},i.prototype.mapObjectTypeChildren=function(l){var n,c,d=l.child,u=l.newProps,f=l.newChildProps,g=l.nestedChildren;switch(d.type){case Jn.TITLE:return vi({},u,(n={},n[d.type]=g,n.titleAttributes=vi({},f),n));case Jn.BODY:return vi({},u,{bodyAttributes:vi({},f)});case Jn.HTML:return vi({},u,{htmlAttributes:vi({},f)})}return vi({},u,(c={},c[d.type]=vi({},f),c))},i.prototype.mapArrayTypeChildrenToProps=function(l,n){var c=vi({},n);return Object.keys(l).forEach(function(d){var u;c=vi({},c,(u={},u[d]=l[d],u))}),c},i.prototype.warnOnInvalidChildren=function(l,n){if(process.env.NODE_ENV!=="production"){if(!Cg.some(function(c){return l.type===c}))return typeof l.type=="function"?Ef("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information."):Ef("Only elements types "+Cg.join(", ")+" are allowed. Helmet does not support rendering <"+l.type+"> elements. Refer to our API for more information.");if(n&&typeof n!="string"&&(!Array.isArray(n)||n.some(function(c){return typeof c!="string"})))throw new Error("Helmet expects a string as a child of <"+l.type+">. Did you forget to wrap your children in braces? ( <"+l.type+">{``}</"+l.type+"> ) Refer to our API for more information.")}return!0},i.prototype.mapChildrenToProps=function(l,n){var c=this,d={};return an.Children.forEach(l,function(u){if(!(!u||!u.props)){var f=u.props,g=f.children,m=kg(f,["children"]),h=Lv(m);switch(c.warnOnInvalidChildren(u,g),u.type){case Jn.LINK:case Jn.META:case Jn.NOSCRIPT:case Jn.SCRIPT:case Jn.STYLE:d=c.flattenArrayTypeChildren({child:u,arrayTypeChildren:d,newChildProps:h,nestedChildren:g});break;default:n=c.mapObjectTypeChildren({child:u,newProps:n,newChildProps:h,nestedChildren:g});break}}}),n=this.mapArrayTypeChildrenToProps(d,n),n},i.prototype.render=function(){var l=this.props,n=l.children,c=kg(l,["children"]),d=vi({},c);return n&&(d=this.mapChildrenToProps(n,d)),an.createElement(a,d)},Ev(i,null,[{key:"canUseDOM",set:function(l){a.canUseDOM=l}}]),i}(an.Component),t.propTypes={base:Hr.object,bodyAttributes:Hr.object,children:Hr.oneOfType([Hr.arrayOf(Hr.node),Hr.node]),defaultTitle:Hr.string,defer:Hr.bool,encodeSpecialCharacters:Hr.bool,htmlAttributes:Hr.object,link:Hr.arrayOf(Hr.object),meta:Hr.arrayOf(Hr.object),noscript:Hr.arrayOf(Hr.object),onChangeClientState:Hr.func,script:Hr.arrayOf(Hr.object),style:Hr.arrayOf(Hr.object),title:Hr.string,titleAttributes:Hr.object,titleTemplate:Hr.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=a.peek,t.rewind=function(){var s=a.rewind();return s||(s=Rg({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),s},e},Uv=function(){return null},Hv=dv(jv,Iv,Rg)(Uv),Ig=zv(Hv);Ig.renderStatic=Ig.rewind,function(o){typeof os=="object"&&typeof module<"u"?module.exports=o():typeof define=="function"&&define.amd?define([],o):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).codoxlib=o()}(function(){return function o(a,t,e){function s(l,n){if(!t[l]){if(!a[l]){var c=typeof require=="function"&&require;if(!n&&c)return c(l,!0);if(i)return i(l,!0);throw(n=new Error("Cannot find module '"+l+"'")).code="MODULE_NOT_FOUND",n}c=t[l]={exports:{}},a[l][0].call(c.exports,function(d){return s(a[l][1][d]||d)},c,c.exports,o,a,t,e)}return t[l].exports}for(var i=typeof require=="function"&&require,r=0;r<e.length;r++)s(e[r]);return s}({1:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=e(o("@babel/runtime/helpers/createClass")),i=e(o("@babel/runtime/helpers/classCallCheck")),r=e(o("@babel/runtime/helpers/defineProperty"));function l(c,d){var u,f=Object.keys(c);return Object.getOwnPropertySymbols&&(u=Object.getOwnPropertySymbols(c),d&&(u=u.filter(function(g){return Object.getOwnPropertyDescriptor(c,g).enumerable})),f.push.apply(f,u)),f}function n(c){for(var d=1;d<arguments.length;d++){var u=arguments[d]!=null?arguments[d]:{};d%2?l(Object(u),!0).forEach(function(f){(0,r.default)(c,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(u)):l(Object(u)).forEach(function(f){Object.defineProperty(c,f,Object.getOwnPropertyDescriptor(u,f))})}return c}e=(0,s.default)(function c(){(0,i.default)(this,c)}),(0,r.default)(e,"all",["agustina","agustina-codox","david","scz","staging","staging-dsm","staging-testing","production","clickup","local-clickup","local-staging","local-production","development","stage2"]),(0,r.default)(e,"allMap",e.all.reduce(function(c,d){return n(n({},c),{},(0,r.default)({},d,d))},{})),(0,r.default)(e,"dev",["agustina","agustina-codox","scz","david","local-clickup","local-staging","local-production","development","stage2"]),(0,r.default)(e,"npm",["clickup"]),(0,r.default)(e,"prod",["staging","clickup","production"]),a.exports=e},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13}],2:[function(o,a,t){a.exports=function(e,s){(s==null||s>e.length)&&(s=e.length);for(var i=0,r=new Array(s);i<s;i++)r[i]=e[i];return r},a.exports.__esModule=!0,a.exports.default=a.exports},{}],3:[function(o,a,t){a.exports=function(e){if(Array.isArray(e))return e},a.exports.__esModule=!0,a.exports.default=a.exports},{}],4:[function(o,a,t){a.exports=function(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},a.exports.__esModule=!0,a.exports.default=a.exports},{}],5:[function(o,a,t){function e(s,i,r,l,n,c,d){try{var u=s[c](d),f=u.value}catch(g){return void r(g)}u.done?i(f):Promise.resolve(f).then(l,n)}a.exports=function(s){return function(){var i=this,r=arguments;return new Promise(function(l,n){var c=s.apply(i,r);function d(f){e(c,l,n,d,u,"next",f)}function u(f){e(c,l,n,d,u,"throw",f)}d(void 0)})}},a.exports.__esModule=!0,a.exports.default=a.exports},{}],6:[function(o,a,t){a.exports=function(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")},a.exports.__esModule=!0,a.exports.default=a.exports},{}],7:[function(o,a,t){var e=o("./setPrototypeOf.js"),s=o("./isNativeReflectConstruct.js");function i(r,l,n){return s()?a.exports=i=Reflect.construct:a.exports=i=function(c,d,u){var f=[null];return f.push.apply(f,d),d=new(Function.bind.apply(c,f)),u&&e(d,u.prototype),d},a.exports.__esModule=!0,a.exports.default=a.exports,i.apply(null,arguments)}a.exports=i,a.exports.__esModule=!0,a.exports.default=a.exports},{"./isNativeReflectConstruct.js":15,"./setPrototypeOf.js":19}],8:[function(o,a,t){function e(s,i){for(var r=0;r<i.length;r++){var l=i[r];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}a.exports=function(s,i,r){return i&&e(s.prototype,i),r&&e(s,r),Object.defineProperty(s,"prototype",{writable:!1}),s},a.exports.__esModule=!0,a.exports.default=a.exports},{}],9:[function(o,a,t){a.exports=function(e,s,i){return s in e?Object.defineProperty(e,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[s]=i,e},a.exports.__esModule=!0,a.exports.default=a.exports},{}],10:[function(o,a,t){function e(){return a.exports=e=Object.assign||function(s){for(var i=1;i<arguments.length;i++){var r,l=arguments[i];for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(s[r]=l[r])}return s},a.exports.__esModule=!0,a.exports.default=a.exports,e.apply(this,arguments)}a.exports=e,a.exports.__esModule=!0,a.exports.default=a.exports},{}],11:[function(o,a,t){function e(s){return a.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},a.exports.__esModule=!0,a.exports.default=a.exports,e(s)}a.exports=e,a.exports.__esModule=!0,a.exports.default=a.exports},{}],12:[function(o,a,t){var e=o("./setPrototypeOf.js");a.exports=function(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(i&&i.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),i&&e(s,i)},a.exports.__esModule=!0,a.exports.default=a.exports},{"./setPrototypeOf.js":19}],13:[function(o,a,t){a.exports=function(e){return e&&e.__esModule?e:{default:e}},a.exports.__esModule=!0,a.exports.default=a.exports},{}],14:[function(o,a,t){a.exports=function(e){return Function.toString.call(e).indexOf("[native code]")!==-1},a.exports.__esModule=!0,a.exports.default=a.exports},{}],15:[function(o,a,t){a.exports=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}},a.exports.__esModule=!0,a.exports.default=a.exports},{}],16:[function(o,a,t){a.exports=function(e,s){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var r,l,n=[],c=!0,d=!1;try{for(i=i.call(e);!(c=(r=i.next()).done)&&(n.push(r.value),!s||n.length!==s);c=!0);}catch(u){d=!0,l=u}finally{try{c||i.return==null||i.return()}finally{if(d)throw l}}return n}},a.exports.__esModule=!0,a.exports.default=a.exports},{}],17:[function(o,a,t){a.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},a.exports.__esModule=!0,a.exports.default=a.exports},{}],18:[function(o,a,t){var e=o("./typeof.js").default,s=o("./assertThisInitialized.js");a.exports=function(i,r){if(r&&(e(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(i)},a.exports.__esModule=!0,a.exports.default=a.exports},{"./assertThisInitialized.js":4,"./typeof.js":22}],19:[function(o,a,t){function e(s,i){return a.exports=e=Object.setPrototypeOf||function(r,l){return r.__proto__=l,r},a.exports.__esModule=!0,a.exports.default=a.exports,e(s,i)}a.exports=e,a.exports.__esModule=!0,a.exports.default=a.exports},{}],20:[function(o,a,t){var e=o("./arrayWithHoles.js"),s=o("./iterableToArrayLimit.js"),i=o("./unsupportedIterableToArray.js"),r=o("./nonIterableRest.js");a.exports=function(l,n){return e(l)||s(l,n)||i(l,n)||r()},a.exports.__esModule=!0,a.exports.default=a.exports},{"./arrayWithHoles.js":3,"./iterableToArrayLimit.js":16,"./nonIterableRest.js":17,"./unsupportedIterableToArray.js":23}],21:[function(o,a,t){a.exports=function(e,s){return s=s||e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(s)}}))},a.exports.__esModule=!0,a.exports.default=a.exports},{}],22:[function(o,a,t){function e(s){return a.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},a.exports.__esModule=!0,a.exports.default=a.exports,e(s)}a.exports=e,a.exports.__esModule=!0,a.exports.default=a.exports},{}],23:[function(o,a,t){var e=o("./arrayLikeToArray.js");a.exports=function(s,i){if(s){if(typeof s=="string")return e(s,i);var r=Object.prototype.toString.call(s).slice(8,-1);return(r=r==="Object"&&s.constructor?s.constructor.name:r)==="Map"||r==="Set"?Array.from(s):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(s,i):void 0}},a.exports.__esModule=!0,a.exports.default=a.exports},{"./arrayLikeToArray.js":2}],24:[function(o,a,t){var e=o("./getPrototypeOf.js"),s=o("./setPrototypeOf.js"),i=o("./isNativeFunction.js"),r=o("./construct.js");function l(n){var c=typeof Map=="function"?new Map:void 0;return a.exports=l=function(d){if(d===null||!i(d))return d;if(typeof d!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(d))return c.get(d);c.set(d,u)}function u(){return r(d,arguments,e(this).constructor)}return u.prototype=Object.create(d.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s(u,d)},a.exports.__esModule=!0,a.exports.default=a.exports,l(n)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports},{"./construct.js":7,"./getPrototypeOf.js":11,"./isNativeFunction.js":14,"./setPrototypeOf.js":19}],25:[function(o,a,t){a.exports=o("regenerator-runtime")},{"regenerator-runtime":172}],26:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.numberInputToObject=t.parseIntFromHex=t.convertHexToDecimal=t.convertDecimalToHex=t.rgbaToArgbHex=t.rgbaToHex=t.rgbToHex=t.hsvToRgb=t.rgbToHsv=t.hslToRgb=t.rgbToHsl=t.rgbToRgb=void 0;var e=o("./util.js");function s(l,n,c){return c<0&&(c+=1),1<c&&--c,c<1/6?l+6*c*(n-l):c<.5?n:c<2/3?l+(n-l)*(2/3-c)*6:l}function i(l){return Math.round(255*parseFloat(l)).toString(16)}function r(l){return parseInt(l,16)}t.rgbToRgb=function(l,n,c){return{r:255*(0,e.bound01)(l,255),g:255*(0,e.bound01)(n,255),b:255*(0,e.bound01)(c,255)}},t.rgbToHsl=function(l,n,c){l=(0,e.bound01)(l,255),n=(0,e.bound01)(n,255),c=(0,e.bound01)(c,255);var d=Math.max(l,n,c),u=Math.min(l,n,c),f=0,g=0,m=(d+u)/2;if(d===u)f=g=0;else{var h=d-u,g=.5<m?h/(2-d-u):h/(d+u);switch(d){case l:f=(n-c)/h+(n<c?6:0);break;case n:f=(c-l)/h+2;break;case c:f=(l-n)/h+4}f/=6}return{h:f,s:g,l:m}},t.hslToRgb=function(l,n,c){var d,u,f;return l=(0,e.bound01)(l,360),n=(0,e.bound01)(n,100),c=(0,e.bound01)(c,100),n===0?d=f=u=c:(d=s(n=2*c-(c=c<.5?c*(1+n):c+n-c*n),c,l+1/3),u=s(n,c,l),f=s(n,c,l-1/3)),{r:255*d,g:255*u,b:255*f}},t.rgbToHsv=function(l,n,c){l=(0,e.bound01)(l,255),n=(0,e.bound01)(n,255),c=(0,e.bound01)(c,255);var d=Math.max(l,n,c),u=Math.min(l,n,c),f=0,g=d,m=d-u,h=d===0?0:m/d;if(d===u)f=0;else{switch(d){case l:f=(n-c)/m+(n<c?6:0);break;case n:f=(c-l)/m+2;break;case c:f=(l-n)/m+4}f/=6}return{h:f,s:h,v:g}},t.hsvToRgb=function(l,n,c){l=6*(0,e.bound01)(l,360),n=(0,e.bound01)(n,100),c=(0,e.bound01)(c,100);var d=Math.floor(l),u=c*(1-n),f=c*(1-(l=l-d)*n);return{r:255*[c,f,u,u,l=c*(1-(1-l)*n),c][n=d%6],g:255*[l,c,c,f,u,u][n],b:255*[u,u,l,c,c,f][n]}},t.rgbToHex=function(l,n,c,d){return l=[(0,e.pad2)(Math.round(l).toString(16)),(0,e.pad2)(Math.round(n).toString(16)),(0,e.pad2)(Math.round(c).toString(16))],d&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")},t.rgbaToHex=function(l,n,c,d,u){return l=[(0,e.pad2)(Math.round(l).toString(16)),(0,e.pad2)(Math.round(n).toString(16)),(0,e.pad2)(Math.round(c).toString(16)),(0,e.pad2)(i(d))],u&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")},t.rgbaToArgbHex=function(l,n,c,d){return[(0,e.pad2)(i(d)),(0,e.pad2)(Math.round(l).toString(16)),(0,e.pad2)(Math.round(n).toString(16)),(0,e.pad2)(Math.round(c).toString(16))].join("")},t.convertDecimalToHex=i,t.convertHexToDecimal=function(l){return r(l)/255},t.parseIntFromHex=r,t.numberInputToObject=function(l){return{r:l>>16,g:(65280&l)>>8,b:255&l}}},{"./util.js":36}],27:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.names=void 0,t.names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},{}],28:[function(r,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isValidCSSUnit=t.stringInputToObject=t.inputToRGB=void 0;var e=r("./conversion.js"),s=r("./css-color-names.js"),i=r("./util.js");t.inputToRGB=function(f){var g,m={r:0,g:0,b:0},h=1,v=null,b=!1,_=!1;return typeof(f=typeof f=="string"?d(f):f)=="object"&&(u(f.r)&&u(f.g)&&u(f.b)?(m=(0,e.rgbToRgb)(f.r,f.g,f.b),b=!0,_=String(f.r).substr(-1)==="%"?"prgb":"rgb"):u(f.h)&&u(f.s)&&u(f.v)?(v=(0,i.convertToPercentage)(f.s),g=(0,i.convertToPercentage)(f.v),m=(0,e.hsvToRgb)(f.h,v,g),b=!0,_="hsv"):u(f.h)&&u(f.s)&&u(f.l)&&(v=(0,i.convertToPercentage)(f.s),g=(0,i.convertToPercentage)(f.l),m=(0,e.hslToRgb)(f.h,v,g),b=!0,_="hsl"),Object.prototype.hasOwnProperty.call(f,"a")&&(h=f.a)),h=(0,i.boundAlpha)(h),{ok:b,format:f.format||_,r:Math.min(255,Math.max(m.r,0)),g:Math.min(255,Math.max(m.g,0)),b:Math.min(255,Math.max(m.b,0)),a:h}};var r="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),l="[\\s|\\(]+(".concat(r,")[,|\\s]+(").concat(r,")[,|\\s]+(").concat(r,")\\s*\\)?"),n="[\\s|\\(]+(".concat(r,")[,|\\s]+(").concat(r,")[,|\\s]+(").concat(r,")[,|\\s]+(").concat(r,")\\s*\\)?"),c={CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+l),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+l),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+l),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(f){if((f=f.trim().toLowerCase()).length===0)return!1;var g=!1;if(s.names[f])f=s.names[f],g=!0;else if(f==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var m=c.rgb.exec(f);return m?{r:m[1],g:m[2],b:m[3]}:(m=c.rgba.exec(f))?{r:m[1],g:m[2],b:m[3],a:m[4]}:(m=c.hsl.exec(f))?{h:m[1],s:m[2],l:m[3]}:(m=c.hsla.exec(f))?{h:m[1],s:m[2],l:m[3],a:m[4]}:(m=c.hsv.exec(f))?{h:m[1],s:m[2],v:m[3]}:(m=c.hsva.exec(f))?{h:m[1],s:m[2],v:m[3],a:m[4]}:(m=c.hex8.exec(f))?{r:(0,e.parseIntFromHex)(m[1]),g:(0,e.parseIntFromHex)(m[2]),b:(0,e.parseIntFromHex)(m[3]),a:(0,e.convertHexToDecimal)(m[4]),format:g?"name":"hex8"}:(m=c.hex6.exec(f))?{r:(0,e.parseIntFromHex)(m[1]),g:(0,e.parseIntFromHex)(m[2]),b:(0,e.parseIntFromHex)(m[3]),format:g?"name":"hex"}:(m=c.hex4.exec(f))?{r:(0,e.parseIntFromHex)(m[1]+m[1]),g:(0,e.parseIntFromHex)(m[2]+m[2]),b:(0,e.parseIntFromHex)(m[3]+m[3]),a:(0,e.convertHexToDecimal)(m[4]+m[4]),format:g?"name":"hex8"}:!!(m=c.hex3.exec(f))&&{r:(0,e.parseIntFromHex)(m[1]+m[1]),g:(0,e.parseIntFromHex)(m[2]+m[2]),b:(0,e.parseIntFromHex)(m[3]+m[3]),format:g?"name":"hex"}}function u(f){return!!c.CSS_UNIT.exec(String(f))}t.stringInputToObject=d,t.isValidCSSUnit=u},{"./conversion.js":26,"./css-color-names.js":27,"./util.js":36}],29:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.legacyRandom=t.fromRatio=void 0;var e=o("./index.js"),s=o("./util.js");t.fromRatio=function(i,r){var l={r:(0,s.convertToPercentage)(i.r),g:(0,s.convertToPercentage)(i.g),b:(0,s.convertToPercentage)(i.b)};return i.a!==void 0&&(l.a=Number(i.a)),new e.TinyColor(l,r)},t.legacyRandom=function(){return new e.TinyColor({r:Math.random(),g:Math.random(),b:Math.random()})}},{"./index.js":30,"./util.js":36}],30:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tinycolor=t.TinyColor=void 0;var e=o("./conversion.js"),s=o("./css-color-names.js"),i=o("./format-input"),r=o("./util.js"),l=(n.prototype.isDark=function(){return this.getBrightness()<128},n.prototype.isLight=function(){return!this.isDark()},n.prototype.getBrightness=function(){var c=this.toRgb();return(299*c.r+587*c.g+114*c.b)/1e3},n.prototype.getLuminance=function(){var u=this.toRgb(),c=u.r/255,d=u.g/255,u=u.b/255,c=c<=.03928?c/12.92:Math.pow((.055+c)/1.055,2.4),d=d<=.03928?d/12.92:Math.pow((.055+d)/1.055,2.4),u=u<=.03928?u/12.92:Math.pow((.055+u)/1.055,2.4);return .2126*c+.7152*d+.0722*u},n.prototype.getAlpha=function(){return this.a},n.prototype.setAlpha=function(c){return this.a=(0,r.boundAlpha)(c),this.roundA=Math.round(100*this.a)/100,this},n.prototype.isMonochrome=function(){return this.toHsl().s===0},n.prototype.toHsv=function(){var c=(0,e.rgbToHsv)(this.r,this.g,this.b);return{h:360*c.h,s:c.s,v:c.v,a:this.a}},n.prototype.toHsvString=function(){var u=(0,e.rgbToHsv)(this.r,this.g,this.b),c=Math.round(360*u.h),d=Math.round(100*u.s),u=Math.round(100*u.v);return this.a===1?"hsv(".concat(c,", ").concat(d,"%, ").concat(u,"%)"):"hsva(".concat(c,", ").concat(d,"%, ").concat(u,"%, ").concat(this.roundA,")")},n.prototype.toHsl=function(){var c=(0,e.rgbToHsl)(this.r,this.g,this.b);return{h:360*c.h,s:c.s,l:c.l,a:this.a}},n.prototype.toHslString=function(){var u=(0,e.rgbToHsl)(this.r,this.g,this.b),c=Math.round(360*u.h),d=Math.round(100*u.s),u=Math.round(100*u.l);return this.a===1?"hsl(".concat(c,", ").concat(d,"%, ").concat(u,"%)"):"hsla(".concat(c,", ").concat(d,"%, ").concat(u,"%, ").concat(this.roundA,")")},n.prototype.toHex=function(c){return(0,e.rgbToHex)(this.r,this.g,this.b,c=c===void 0?!1:c)},n.prototype.toHexString=function(c){return"#"+this.toHex(c=c===void 0?!1:c)},n.prototype.toHex8=function(c){return(0,e.rgbaToHex)(this.r,this.g,this.b,this.a,c=c===void 0?!1:c)},n.prototype.toHex8String=function(c){return"#"+this.toHex8(c=c===void 0?!1:c)},n.prototype.toHexShortString=function(c){return c===void 0&&(c=!1),this.a===1?this.toHexString(c):this.toHex8String(c)},n.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},n.prototype.toRgbString=function(){var c=Math.round(this.r),d=Math.round(this.g),u=Math.round(this.b);return this.a===1?"rgb(".concat(c,", ").concat(d,", ").concat(u,")"):"rgba(".concat(c,", ").concat(d,", ").concat(u,", ").concat(this.roundA,")")},n.prototype.toPercentageRgb=function(){function c(d){return"".concat(Math.round(100*(0,r.bound01)(d,255)),"%")}return{r:c(this.r),g:c(this.g),b:c(this.b),a:this.a}},n.prototype.toPercentageRgbString=function(){function c(d){return Math.round(100*(0,r.bound01)(d,255))}return this.a===1?"rgb(".concat(c(this.r),"%, ").concat(c(this.g),"%, ").concat(c(this.b),"%)"):"rgba(".concat(c(this.r),"%, ").concat(c(this.g),"%, ").concat(c(this.b),"%, ").concat(this.roundA,")")},n.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var c="#"+(0,e.rgbToHex)(this.r,this.g,this.b,!1),d=0,u=Object.entries(s.names);d<u.length;d++){var f=u[d],g=f[0];if(c===f[1])return g}return!1},n.prototype.toString=function(c){var d=!!c,u=(c=c??this.format,!1),f=this.a<1&&0<=this.a;return d||!f||!c.startsWith("hex")&&c!=="name"?(c==="rgb"&&(u=this.toRgbString()),c==="prgb"&&(u=this.toPercentageRgbString()),c!=="hex"&&c!=="hex6"||(u=this.toHexString()),c==="hex3"&&(u=this.toHexString(!0)),c==="hex4"&&(u=this.toHex8String(!0)),c==="hex8"&&(u=this.toHex8String()),c==="name"&&(u=this.toName()),c==="hsl"&&(u=this.toHslString()),(u=c==="hsv"?this.toHsvString():u)||this.toHexString()):c==="name"&&this.a===0?this.toName():this.toRgbString()},n.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},n.prototype.clone=function(){return new n(this.toString())},n.prototype.lighten=function(c){c===void 0&&(c=10);var d=this.toHsl();return d.l+=c/100,d.l=(0,r.clamp01)(d.l),new n(d)},n.prototype.brighten=function(c){c===void 0&&(c=10);var d=this.toRgb();return d.r=Math.max(0,Math.min(255,d.r-Math.round(-c/100*255))),d.g=Math.max(0,Math.min(255,d.g-Math.round(-c/100*255))),d.b=Math.max(0,Math.min(255,d.b-Math.round(-c/100*255))),new n(d)},n.prototype.darken=function(c){c===void 0&&(c=10);var d=this.toHsl();return d.l-=c/100,d.l=(0,r.clamp01)(d.l),new n(d)},n.prototype.tint=function(c){return this.mix("white",c=c===void 0?10:c)},n.prototype.shade=function(c){return this.mix("black",c=c===void 0?10:c)},n.prototype.desaturate=function(c){c===void 0&&(c=10);var d=this.toHsl();return d.s-=c/100,d.s=(0,r.clamp01)(d.s),new n(d)},n.prototype.saturate=function(c){c===void 0&&(c=10);var d=this.toHsl();return d.s+=c/100,d.s=(0,r.clamp01)(d.s),new n(d)},n.prototype.greyscale=function(){return this.desaturate(100)},n.prototype.spin=function(u){var d=this.toHsl(),u=(d.h+u)%360;return d.h=u<0?360+u:u,new n(d)},n.prototype.mix=function(f,g){g===void 0&&(g=50);var u=this.toRgb(),f=new n(f).toRgb(),g=g/100;return new n({r:(f.r-u.r)*g+u.r,g:(f.g-u.g)*g+u.g,b:(f.b-u.b)*g+u.b,a:(f.a-u.a)*g+u.a})},n.prototype.analogous=function(c,d){c===void 0&&(c=6),d===void 0&&(d=30);var u=this.toHsl(),f=360/d,g=[this];for(u.h=(u.h-(f*c>>1)+720)%360;--c;)u.h=(u.h+f)%360,g.push(new n(u));return g},n.prototype.complement=function(){var c=this.toHsl();return c.h=(c.h+180)%360,new n(c)},n.prototype.monochromatic=function(c){c===void 0&&(c=6);for(var d=this.toHsv(),u=d.h,f=d.s,g=d.v,m=[],h=1/c;c--;)m.push(new n({h:u,s:f,v:g})),g=(g+h)%1;return m},n.prototype.splitcomplement=function(){var c=this.toHsl(),d=c.h;return[this,new n({h:(d+72)%360,s:c.s,l:c.l}),new n({h:(d+216)%360,s:c.s,l:c.l})]},n.prototype.onBackground=function(u){var d=this.toRgb(),u=new n(u).toRgb(),f=d.a+u.a*(1-d.a);return new n({r:(d.r*d.a+u.r*u.a*(1-d.a))/f,g:(d.g*d.a+u.g*u.a*(1-d.a))/f,b:(d.b*d.a+u.b*u.a*(1-d.a))/f,a:f})},n.prototype.triad=function(){return this.polyad(3)},n.prototype.tetrad=function(){return this.polyad(4)},n.prototype.polyad=function(c){for(var d=this.toHsl(),u=d.h,f=[this],g=360/c,m=1;m<c;m++)f.push(new n({h:(u+m*g)%360,s:d.s,l:d.l}));return f},n.prototype.equals=function(c){return this.toRgbString()===new n(c).toRgbString()},n);function n(c,d){if(d===void 0&&(d={}),(c=c===void 0?"":c)instanceof n)return c;typeof c=="number"&&(c=(0,e.numberInputToObject)(c)),this.originalInput=c;var u=(0,i.inputToRGB)(c);this.originalInput=c,this.r=u.r,this.g=u.g,this.b=u.b,this.a=u.a,this.roundA=Math.round(100*this.a)/100,this.format=(c=d.format)!=null?c:u.format,this.gradientType=d.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=u.ok}t.TinyColor=l,t.tinycolor=function(c,d){return new l(c=c===void 0?"":c,d=d===void 0?{}:d)}},{"./conversion.js":26,"./css-color-names.js":27,"./format-input":28,"./util.js":36}],31:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0})},{}],32:[function(o,a,t){var e=this&&this.__createBinding||(Object.create?function(r,l,n,c){c===void 0&&(c=n);var d=Object.getOwnPropertyDescriptor(l,n);d&&("get"in d?l.__esModule:!d.writable&&!d.configurable)||(d={enumerable:!0,get:function(){return l[n]}}),Object.defineProperty(r,c,d)}:function(r,l,n,c){r[c=c===void 0?n:c]=l[n]}),s=this&&this.__exportStar||function(r,l){for(var n in r)n==="default"||Object.prototype.hasOwnProperty.call(l,n)||e(l,r,n)},i=(Object.defineProperty(t,"__esModule",{value:!0}),o("./index.js"));s(o("./index.js"),t),s(o("./css-color-names.js"),t),s(o("./readability.js"),t),s(o("./to-ms-filter.js"),t),s(o("./from-ratio.js"),t),s(o("./format-input.js"),t),s(o("./random.js"),t),s(o("./interfaces.js"),t),s(o("./conversion.js"),t),t.default=i.tinycolor},{"./conversion.js":26,"./css-color-names.js":27,"./format-input.js":28,"./from-ratio.js":29,"./index.js":30,"./interfaces.js":31,"./random.js":33,"./readability.js":34,"./to-ms-filter.js":35}],33:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.bounds=t.random=void 0;var e=o("./index.js");function s(l){334<=l&&l<=360&&(l-=360);for(var n=0,c=t.bounds;n<c.length;n++){var d=r(c[n]);if(d.hueRange&&l>=d.hueRange[0]&&l<=d.hueRange[1])return d}throw Error("Color not found")}function i(d,u){if(u===void 0)return Math.floor(d[0]+Math.random()*(d[1]+1-d[0]));var c=d[1]||1,d=d[0]||0,u=(u=(9301*u+49297)%233280)/233280;return Math.floor(d+u*(c-d))}function r(l){var n=l.lowerBounds[0][0],c=l.lowerBounds[l.lowerBounds.length-1][0],d=l.lowerBounds[l.lowerBounds.length-1][1],u=l.lowerBounds[0][1];return{name:l.name,hueRange:l.hueRange,lowerBounds:l.lowerBounds,saturationRange:[n,c],brightnessRange:[d,u]}}t.random=function l(n){if((n=n===void 0?{}:n).count!==void 0&&n.count!==null){var c=n.count,d=[];for(n.count=void 0;c>d.length;)n.count=null,n.seed&&(n.seed+=1),d.push(l(n));return n.count=c,d}var f=function(g,m){return g=(g=i(function(h){var v=parseInt(h,10);if(!Number.isNaN(v)&&v<360&&0<v)return[v,v];if(typeof h=="string"){if((v=t.bounds.find(function(b){return b.name===h}))&&(v=r(v)).hueRange)return v.hueRange;if((v=new e.TinyColor(h)).isValid)return[v=v.toHsv().h,v]}return[0,360]}(g),m))<0?360+g:g}(n.hue,n.seed),u=function(g,m){if(m.hue==="monochrome")return 0;if(m.luminosity==="random")return i([0,100],m.seed);var h=(g=s(g).saturationRange)[0],v=g[1];switch(m.luminosity){case"bright":h=55;break;case"dark":h=v-10;break;case"light":v=55}return i([h,v],m.seed)}(f,n),f={h:f,s:u,v:function(g,m,h){var v=function(_,R){for(var x=s(_).lowerBounds,w=0;w<x.length-1;w++){var O=x[w][0],I=x[w][1],L=x[w+1][0],M=x[w+1][1];if(O<=R&&R<=L)return(M=(M-I)/(L-O))*R+(I-M*O)}return 0}(g,m),b=100;switch(h.luminosity){case"dark":b=v+20;break;case"light":v=(b+v)/2;break;case"random":v=0,b=100}return i([v,b],h.seed)}(f,u,n)};return n.alpha!==void 0&&(f.a=n.alpha),new e.TinyColor(f)},t.bounds=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}]},{"./index.js":30}],34:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.mostReadable=t.isReadable=t.readability=void 0;var e=o("./index.js");function s(r,l){return r=new e.TinyColor(r),l=new e.TinyColor(l),(Math.max(r.getLuminance(),l.getLuminance())+.05)/(Math.min(r.getLuminance(),l.getLuminance())+.05)}function i(r,l,n){n===void 0&&(n={level:"AA",size:"small"});var c=s(r,l);switch(((r=n.level)!=null?r:"AA")+((l=n.size)!=null?l:"small")){case"AAsmall":case"AAAlarge":return 4.5<=c;case"AAlarge":return 3<=c;case"AAAsmall":return 7<=c;default:return!1}}t.readability=s,t.isReadable=i,t.mostReadable=function r(l,n,c){for(var d=null,u=0,f=(c=c===void 0?{includeFallbackColors:!1,level:"AA",size:"small"}:c).includeFallbackColors,g=c.level,m=c.size,h=0,v=n;h<v.length;h++){var b=v[h],_=s(l,b);u<_&&(u=_,d=new e.TinyColor(b))}return i(l,d,{level:g,size:m})||!f?d:(c.includeFallbackColors=!1,r(l,["#fff","#000"],c))}},{"./index.js":30}],35:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toMsFilter=void 0;var e=o("./conversion.js"),s=o("./index.js");t.toMsFilter=function(c,r){var c=new s.TinyColor(c),l="#"+(0,e.rgbaToArgbHex)(c.r,c.g,c.b,c.a),n=l,c=c.gradientType?"GradientType = 1, ":"";return r&&(r=new s.TinyColor(r),n="#"+(0,e.rgbaToArgbHex)(r.r,r.g,r.b,r.a)),"progid:DXImageTransform.Microsoft.gradient(".concat(c,"startColorstr=").concat(l,",endColorstr=").concat(n,")")}},{"./conversion.js":26,"./index.js":30}],36:[function(o,a,t){function e(i){return typeof i=="string"&&i.indexOf(".")!==-1&&parseFloat(i)===1}function s(i){return typeof i=="string"&&i.indexOf("%")!==-1}Object.defineProperty(t,"__esModule",{value:!0}),t.pad2=t.convertToPercentage=t.boundAlpha=t.isPercentage=t.isOnePointZero=t.clamp01=t.bound01=void 0,t.bound01=function(i,r){var l=s(i=e(i)?"100%":i);return i=r===360?i:Math.min(r,Math.max(0,parseFloat(i))),l&&(i=parseInt(String(i*r),10)/100),Math.abs(i-r)<1e-6?1:r===360?(i<0?i%r+r:i%r)/parseFloat(String(r)):i%r/parseFloat(String(r))},t.clamp01=function(i){return Math.min(1,Math.max(0,i))},t.isOnePointZero=e,t.isPercentage=s,t.boundAlpha=function(i){return i=parseFloat(i),i=isNaN(i)||i<0||1<i?1:i},t.convertToPercentage=function(i){return i<=1?"".concat(100*Number(i),"%"):i},t.pad2=function(i){return i.length===1?"0"+i:String(i)}},{}],37:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),o=o("@emotion/memoize");function e(i){return i&&i.__esModule?i:{default:i}}var s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;t.default=e(o).default(function(i){return s.test(i)||i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&i.charCodeAt(2)<91})},{"@emotion/memoize":38}],38:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var s=Object.create(null);return function(i){return s[i]===void 0&&(s[i]=e(i)),s[i]}}},{}],39:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function s(N,Y,tt){var F=Y.trim().split(b),z=(Y=F).length,P=N.length;switch(P){case 0:case 1:var j=0;for(N=P===0?"":N[0]+" ";j<z;++j)Y[j]=i(N,Y[j],tt).trim();break;default:var V=j=0;for(Y=[];j<z;++j)for(var K=0;K<P;++K)Y[V++]=i(N[K]+" ",F[j],tt).trim()}return Y}function i(N,Y,tt){var F=Y.charCodeAt(0);switch(F=F<33?(Y=Y.trim()).charCodeAt(0):F){case 38:return Y.replace(_,"$1"+N.trim());case 58:return N.trim()+Y.replace(_,"$1"+N.trim());default:if(0<+tt&&0<Y.indexOf("\f"))return Y.replace(_,(N.charCodeAt(0)===58?"":"$1")+N.trim())}return N+Y}function r(N,Y,tt,F){var z,P=N+";",j=2*Y+3*tt+4*F;if(j==944)return N=P.indexOf(":",9)+1,z=P.substring(N,P.length-1).trim(),z=P.substring(0,N).trim()+z+";",W===1||W===2&&l(z,1)?"-webkit-"+z+z:z;if(W===0||W===2&&!l(P,1))return P;switch(j){case 1015:return P.charCodeAt(10)===97?"-webkit-"+P+P:P;case 951:return P.charCodeAt(3)===116?"-webkit-"+P+P:P;case 963:return P.charCodeAt(5)===110?"-webkit-"+P+P:P;case 1009:if(P.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+P+P;case 978:return"-webkit-"+P+"-moz-"+P+P;case 1019:case 983:return"-webkit-"+P+"-moz-"+P+"-ms-"+P+P;case 883:if(P.charCodeAt(8)===45)return"-webkit-"+P+P;if(0<P.indexOf("image-set(",11))return P.replace(J,"$1-webkit-$2")+P;break;case 932:if(P.charCodeAt(4)===45)switch(P.charCodeAt(5)){case 103:return"-webkit-box-"+P.replace("-grow","")+"-webkit-"+P+"-ms-"+P.replace("grow","positive")+P;case 115:return"-webkit-"+P+"-ms-"+P.replace("shrink","negative")+P;case 98:return"-webkit-"+P+"-ms-"+P.replace("basis","preferred-size")+P}return"-webkit-"+P+"-ms-"+P+P;case 964:return"-webkit-"+P+"-ms-flex-"+P+P;case 1023:if(P.charCodeAt(8)!==99)break;return"-webkit-box-pack"+(z=P.substring(P.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+P+"-ms-flex-pack"+z+P;case 1005:return h.test(P)?P.replace(m,":-webkit-")+P.replace(m,":-moz-")+P:P;case 1e3:switch(Y=(z=P.substring(13).trim()).indexOf("-")+1,z.charCodeAt(0)+z.charCodeAt(Y)){case 226:z=P.replace(O,"tb");break;case 232:z=P.replace(O,"tb-rl");break;case 220:z=P.replace(O,"lr");break;default:return P}return"-webkit-"+P+"-ms-"+z+P;case 1017:if(P.indexOf("sticky",9)===-1)break;case 975:switch(Y=(P=N).length-10,j=(z=(P.charCodeAt(Y)===33?P.substring(0,Y):P).substring(N.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|z.charCodeAt(7))){case 203:if(z.charCodeAt(8)<111)break;case 115:P=P.replace(z,"-webkit-"+z)+";"+P;break;case 207:case 102:P=P.replace(z,"-webkit-"+(102<j?"inline-":"")+"box")+";"+P.replace(z,"-webkit-"+z)+";"+P.replace(z,"-ms-"+z+"box")+";"+P}return P+";";case 938:if(P.charCodeAt(5)===45)switch(P.charCodeAt(6)){case 105:return z=P.replace("-items",""),"-webkit-"+P+"-webkit-box-"+z+"-ms-flex-"+z+P;case 115:return"-webkit-"+P+"-ms-flex-item-"+P.replace(M,"")+P;default:return"-webkit-"+P+"-ms-flex-line-pack"+P.replace("align-content","").replace(M,"")+P}break;case 973:case 989:if(P.charCodeAt(3)!==45||P.charCodeAt(4)===122)break;case 931:case 953:if(k.test(N)===!0)return(z=N.substring(N.indexOf(":")+1)).charCodeAt(0)===115?r(N.replace("stretch","fill-available"),Y,tt,F).replace(":fill-available",":stretch"):P.replace(z,"-webkit-"+z)+P.replace(z,"-moz-"+z.replace("fill-",""))+P;break;case 962:if(P="-webkit-"+P+(P.charCodeAt(5)===102?"-ms-"+P:"")+P,tt+F===211&&P.charCodeAt(13)===105&&0<P.indexOf("transform",10))return P.substring(0,P.indexOf(";",27)+1).replace(v,"$1-webkit-$2")+P}return P}function l(N,Y){var F=N.indexOf(Y===1?":":"{"),tt=N.substring(0,Y!==3?F:10),F=N.substring(F+1,N.length-1);return $(Y!==2?tt:tt.replace(A,"$1"),F,Y)}function n(N,Y){var tt=r(Y,Y.charCodeAt(0),Y.charCodeAt(1),Y.charCodeAt(2));return tt!==Y+";"?tt.replace(L," or ($1)").substring(4):"("+Y+")"}function c(N,Y,tt,F,z,P,j,V,K,rt){for(var T,ot=0,at=Y;ot<B;++ot)switch(T=E[ot].call(u,N,at,tt,F,z,P,j,V,K,rt)){case void 0:case!1:case!0:case null:break;default:at=T}if(at!==Y)return at}function d(N){return(N=N.prefix)!==void 0&&($=null,N?typeof N!="function"?W=1:(W=2,$=N):W=0),d}function u(N,F){N=[N=N.charCodeAt(0)<33?N.trim():N],0<B&&(tt=c(-1,F,N,N,U,G,0,0,0,0))!==void 0&&typeof tt=="string"&&(F=tt);var tt,F=function z(P,j,V,K,rt){for(var T,ot,at,q,ht,lt=0,bt=0,_t=0,Dt=0,Ft=0,Qt=0,ue=at=T=0,ae=0,se=0,Ne=0,ce=0,qt=V.length,Nt=qt-1,It="",me="",Vt="",ge="";ae<qt;){if(ot=V.charCodeAt(ae),ae===Nt&&bt+Dt+_t+lt!==0&&(bt!==0&&(ot=bt===47?10:47),Dt=_t=lt=0,qt++,Nt++),bt+Dt+_t+lt===0){if(ae===Nt&&0<(It=0<se?It.replace(g,""):It).trim().length){switch(ot){case 32:case 9:case 59:case 13:case 10:break;default:It+=V.charAt(ae)}ot=59}switch(ot){case 123:for(T=(It=It.trim()).charCodeAt(0),at=1,ce=++ae;ae<qt;){switch(ot=V.charCodeAt(ae)){case 123:at++;break;case 125:at--;break;case 47:switch(ot=V.charCodeAt(ae+1)){case 42:case 47:t:{for(ue=ae+1;ue<Nt;++ue)switch(V.charCodeAt(ue)){case 47:if(ot!==42||V.charCodeAt(ue-1)!==42||ae+2===ue)break;ae=ue+1;break t;case 10:if(ot===47){ae=ue+1;break t}}ae=ue}}break;case 91:ot++;case 40:ot++;case 34:case 39:for(;ae++<Nt&&V.charCodeAt(ae)!==ot;);}if(at===0)break;ae++}if(at=V.substring(ce,ae),(T=T===0?(It=It.replace(f,"").trim()).charCodeAt(0):T)===64){switch(ot=(It=0<se?It.replace(g,""):It).charCodeAt(1)){case 100:case 109:case 115:case 45:se=j;break;default:se=Q}if(ce=(at=z(j,se,at,ot,rt+1)).length,0<B&&(ht=c(3,at,se=s(Q,It,Ne),j,U,G,ce,ot,rt,K),It=se.join(""),ht!==void 0&&(ce=(at=ht.trim()).length)===0&&(ot=0,at="")),0<ce)switch(ot){case 115:It=It.replace(I,n);case 100:case 109:case 45:at=It+"{"+at+"}";break;case 107:at=(It=It.replace(R,"$1 $2"))+"{"+at+"}",at=W===1||W===2&&l("@"+at,3)?"@-webkit-"+at+"@"+at:"@"+at;break;default:at=It+at,K===112&&(me+=at,at="")}else at=""}else at=z(j,s(j,It,Ne),at,K,rt+1);Vt+=at,at=Ne=se=ue=T=0,It="",ot=V.charCodeAt(++ae);break;case 125:case 59:if(1<(ce=(It=(0<se?It.replace(g,""):It).trim()).length))switch(ue===0&&(T=It.charCodeAt(0),T===45||96<T&&T<123)&&(ce=(It=It.replace(" ",":")).length),0<B&&(ht=c(1,It,j,P,U,G,me.length,K,rt,K))!==void 0&&(ce=(It=ht.trim()).length)===0&&(It="\0\0"),T=It.charCodeAt(0),ot=It.charCodeAt(1),T){case 0:break;case 64:if(ot===105||ot===99){ge+=It+V.charAt(ae);break}default:It.charCodeAt(ce-1)!==58&&(me+=r(It,T,ot,It.charCodeAt(2)))}Ne=se=ue=T=0,It="",ot=V.charCodeAt(++ae)}}switch(ot){case 13:case 10:bt===47?bt=0:1+T===0&&K!==107&&0<It.length&&(se=1,It+="\0"),0<B*C&&c(0,It,j,P,U,G,me.length,K,rt,K),G=1,U++;break;case 59:case 125:if(bt+Dt+_t+lt===0){G++;break}default:switch(G++,q=V.charAt(ae),ot){case 9:case 32:if(Dt+lt+bt===0)switch(Ft){case 44:case 58:case 9:case 32:q="";break;default:ot!==32&&(q=" ")}break;case 0:q="\\0";break;case 12:q="\\f";break;case 11:q="\\v";break;case 38:Dt+bt+lt===0&&(se=Ne=1,q="\f"+q);break;case 108:if(Dt+bt+lt+D===0&&0<ue)switch(ae-ue){case 2:Ft===112&&V.charCodeAt(ae-3)===58&&(D=Ft);case 8:Qt===111&&(D=Qt)}break;case 58:Dt+bt+lt===0&&(ue=ae);break;case 44:bt+_t+Dt+lt===0&&(se=1,q+="\r");break;case 34:case 39:bt===0&&(Dt=Dt===ot?0:Dt===0?ot:Dt);break;case 91:Dt+bt+_t===0&<++;break;case 93:Dt+bt+_t===0&<--;break;case 41:Dt+bt+lt===0&&_t--;break;case 40:Dt+bt+lt===0&&(T===0&&2*Ft+3*Qt!=533&&(T=1),_t++);break;case 64:bt+_t+Dt+lt+ue+at===0&&(at=1);break;case 42:case 47:if(!(0<Dt+lt+_t))switch(bt){case 0:switch(2*ot+3*V.charCodeAt(ae+1)){case 235:bt=47;break;case 220:ce=ae,bt=42}break;case 42:ot===47&&Ft===42&&ce+2!==ae&&(V.charCodeAt(ce+2)===33&&(me+=V.substring(ce,ae+1)),q="",bt=0)}}bt===0&&(It+=q)}Qt=Ft,Ft=ot,ae++}if(0<(ce=me.length)){if(se=j,0<B&&(ht=c(2,me,se,P,U,G,ce,K,rt,K))!==void 0&&(me=ht).length===0)return ge+me+Vt;if(me=se.join(",")+"{"+me+"}",W*D!=0){switch(D=W!==2||l(me,2)?D:0){case 111:me=me.replace(w,":-moz-$1")+me;break;case 112:me=me.replace(x,"::-webkit-input-$1")+me.replace(x,"::-moz-$1")+me.replace(x,":-ms-input-$1")+me}D=0}}return ge+me+Vt}(Q,N,F,0,0);return 0<B&&(tt=c(-2,F,N,N,U,G,F.length,0,0,0))!==void 0&&(F=tt),D=0,G=U=1,F}var f=/^\0+/g,g=/[\0\r\f]/g,m=/: */g,h=/zoo|gra/,v=/([,: ])(transform)/g,b=/,\r+?/g,_=/([\t\r\n ])*\f?&/g,R=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,w=/:(read-only)/g,O=/[svh]\w+-[tblr]{2}/,I=/\(\s*(.*)\s*\)/g,L=/([\s\S]*?);/g,M=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,J=/([^-])(image-set\()/,G=1,U=1,D=0,W=1,Q=[],E=[],B=0,$=null,C=0;return u.use=function N(Y){switch(Y){case void 0:case null:B=E.length=0;break;default:if(typeof Y=="function")E[B++]=Y;else if(typeof Y=="object")for(var tt=0,F=Y.length;tt<F;++tt)N(Y[tt]);else C=0|!!Y}return N},u.set=d,e!==void 0&&d(e),u}},{}],40:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},{}],41:[function(d,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e,s=d("tslib"),i=d("@sentry/core"),r=d("@sentry/types"),l=d("@sentry/utils"),n=d("./eventbuilder"),c=d("./transports"),d=(e=i.BaseBackend,s.__extends(u,e),u.prototype.eventFromException=function(f,g){return n.eventFromException(this._options,f,g)},u.prototype.eventFromMessage=function(f,g,m){return g===void 0&&(g=r.Severity.Info),n.eventFromMessage(this._options,f,g,m)},u.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var f=s.__assign(s.__assign({},this._options.transportOptions),{dsn:this._options.dsn});return new(this._options.transport||(l.supportsFetch()?c.FetchTransport:c.XHRTransport))(f)},u);function u(){return e!==null&&e.apply(this,arguments)||this}t.BrowserBackend=d},{"./eventbuilder":43,"./transports":58,"@sentry/core":64,"@sentry/types":77,"@sentry/utils":87,tslib:181}],42:[function(u,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e,s=u("tslib"),i=u("@sentry/core"),r=u("@sentry/utils"),l=u("./backend"),n=u("./helpers"),c=u("./integrations"),d=u("./version"),u=(e=i.BaseClient,s.__extends(f,e),f.prototype.showReportDialog=function(g){g===void 0&&(g={}),r.getGlobalObject().document&&(this._isEnabled()?n.injectReportDialog(s.__assign(s.__assign({},g),{dsn:g.dsn||this.getDsn()})):r.logger.error("Trying to call showReportDialog with Sentry Client disabled"))},f.prototype._prepareEvent=function(g,m,h){return g.platform=g.platform||"javascript",g.sdk=s.__assign(s.__assign({},g.sdk),{name:d.SDK_NAME,packages:s.__spread(g.sdk&&g.sdk.packages||[],[{name:"npm:@sentry/browser",version:d.SDK_VERSION}]),version:d.SDK_VERSION}),e.prototype._prepareEvent.call(this,g,m,h)},f.prototype._sendEvent=function(g){var m=this.getIntegration(c.Breadcrumbs);m&&m.addSentryBreadcrumb(g),e.prototype._sendEvent.call(this,g)},f);function f(g){return e.call(this,l.BrowserBackend,g=g===void 0?{}:g)||this}t.BrowserClient=u},{"./backend":41,"./helpers":45,"./integrations":49,"./version":60,"@sentry/core":64,"@sentry/utils":87,tslib:181}],43:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/types"),i=o("@sentry/utils"),r=o("./parsers"),l=o("./tracekit");function n(d,u,f){var g,m,h;return f===void 0&&(f={}),i.isErrorEvent(d)&&d.error?(d=d.error,r.eventFromStacktrace(l.computeStackTrace(d))):i.isDOMError(d)||i.isDOMException(d)?(h=(g=d).name||(i.isDOMError(g)?"DOMError":"DOMException"),m=c(h=g.message?h+": "+g.message:h,u,f),i.addExceptionTypeValue(m,h),"code"in g&&(m.tags=e.__assign(e.__assign({},m.tags),{"DOMException.code":""+g.code})),m):i.isError(d)?r.eventFromStacktrace(l.computeStackTrace(d)):(i.isPlainObject(d)||i.isEvent(d)?(h=d,m=r.eventFromPlainObject(h,u,f.rejection)):(m=c(d,u,f),i.addExceptionTypeValue(m,""+d,void 0)),i.addExceptionMechanism(m,{synthetic:!0}),m)}function c(d,u,f){return d={message:d},(f=f===void 0?{}:f).attachStacktrace&&u&&(f=l.computeStackTrace(u),u=r.prepareFramesForEvent(f.stack),d.stacktrace={frames:u}),d}t.eventFromException=function(d,u,f){return u=n(u,f&&f.syntheticException||void 0,{attachStacktrace:d.attachStacktrace}),i.addExceptionMechanism(u,{handled:!0,type:"generic"}),u.level=s.Severity.Error,f&&f.event_id&&(u.event_id=f.event_id),i.SyncPromise.resolve(u)},t.eventFromMessage=function(d,u,f,g){return f===void 0&&(f=s.Severity.Info),(u=c(u,g&&g.syntheticException||void 0,{attachStacktrace:d.attachStacktrace})).level=f,g&&g.event_id&&(u.event_id=g.event_id),i.SyncPromise.resolve(u)},t.eventFromUnknownInput=n,t.eventFromString=c},{"./parsers":53,"./tracekit":55,"@sentry/types":77,"@sentry/utils":87,tslib:181}],44:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("@sentry/types"),e=(t.Severity=e.Severity,t.Status=e.Status,o("@sentry/core")),e=(t.addGlobalEventProcessor=e.addGlobalEventProcessor,t.addBreadcrumb=e.addBreadcrumb,t.captureException=e.captureException,t.captureEvent=e.captureEvent,t.captureMessage=e.captureMessage,t.configureScope=e.configureScope,t.getHubFromCarrier=e.getHubFromCarrier,t.getCurrentHub=e.getCurrentHub,t.Hub=e.Hub,t.makeMain=e.makeMain,t.Scope=e.Scope,t.startTransaction=e.startTransaction,t.setContext=e.setContext,t.setExtra=e.setExtra,t.setExtras=e.setExtras,t.setTag=e.setTag,t.setTags=e.setTags,t.setUser=e.setUser,t.withScope=e.withScope,o("./client")),e=(t.BrowserClient=e.BrowserClient,o("./helpers")),e=(t.injectReportDialog=e.injectReportDialog,o("./eventbuilder")),e=(t.eventFromException=e.eventFromException,t.eventFromMessage=e.eventFromMessage,o("./sdk")),e=(t.defaultIntegrations=e.defaultIntegrations,t.forceLoad=e.forceLoad,t.init=e.init,t.lastEventId=e.lastEventId,t.onLoad=e.onLoad,t.showReportDialog=e.showReportDialog,t.flush=e.flush,t.close=e.close,t.wrap=e.wrap,o("./version"));t.SDK_NAME=e.SDK_NAME,t.SDK_VERSION=e.SDK_VERSION},{"./client":42,"./eventbuilder":43,"./helpers":45,"./sdk":54,"./version":60,"@sentry/core":64,"@sentry/types":77}],45:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/core"),i=o("@sentry/utils"),r=0;function l(){r+=1,setTimeout(function(){--r})}t.shouldIgnoreOnError=function(){return 0<r},t.ignoreNextOnError=l,t.wrap=function n(c,d,u){if(d===void 0&&(d={}),typeof c!="function")return c;try{if(c.__sentry__)return c;if(c.__sentry_wrapped__)return c.__sentry_wrapped__}catch{return c}function f(){var m=Array.prototype.slice.call(arguments);try{u&&typeof u=="function"&&u.apply(this,arguments);var h=m.map(function(v){return n(v,d)});return(c.handleEvent||c).apply(this,h)}catch(v){throw l(),s.withScope(function(b){b.addEventProcessor(function(_){return _=e.__assign({},_),d.mechanism&&(i.addExceptionTypeValue(_,void 0,void 0),i.addExceptionMechanism(_,d.mechanism)),_.extra=e.__assign(e.__assign({},_.extra),{arguments:m}),_}),s.captureException(v)}),v}}try{for(var g in c)Object.prototype.hasOwnProperty.call(c,g)&&(f[g]=c[g])}catch{}c.prototype=c.prototype||{},f.prototype=c.prototype,Object.defineProperty(c,"__sentry_wrapped__",{enumerable:!1,value:f}),Object.defineProperties(f,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:c}});try{Object.getOwnPropertyDescriptor(f,"name").configurable&&Object.defineProperty(f,"name",{get:function(){return c.name}})}catch{}return f},t.injectReportDialog=function(n){var c;(n=n===void 0?{}:n).eventId?n.dsn?((c=document.createElement("script")).async=!0,c.src=new s.API(n.dsn).getReportDialogEndpoint(n),n.onLoad&&(c.onload=n.onLoad),(document.head||document.body).appendChild(c)):i.logger.error("Missing dsn option in showReportDialog call"):i.logger.error("Missing eventId option in showReportDialog call")}},{"@sentry/core":64,"@sentry/utils":87,tslib:181}],46:[function(r,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=r("tslib"),s=(e.__exportStar(r("./exports"),t),r("@sentry/core")),l=r("@sentry/utils"),i=r("./integrations"),r=r("./transports"),r=(t.Transports=r,{}),l=l.getGlobalObject(),l=(l.Sentry&&l.Sentry.Integrations&&(r=l.Sentry.Integrations),e.__assign(e.__assign(e.__assign({},r),s.Integrations),i));t.Integrations=l},{"./exports":44,"./integrations":49,"./transports":58,"@sentry/core":64,"@sentry/utils":87,tslib:181}],47:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/core"),i=o("@sentry/types"),r=o("@sentry/utils");function l(n){this.name=l.id,this._options=e.__assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}l.prototype.addSentryBreadcrumb=function(n){this._options.sentry&&s.getCurrentHub().addBreadcrumb({category:"sentry."+(n.type==="transaction"?"transaction":"event"),event_id:n.event_id,level:n.level,message:r.getEventDescription(n)},{event:n})},l.prototype.setupOnce=function(){var n=this;this._options.console&&r.addInstrumentationHandler({callback:function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n._consoleBreadcrumb.apply(n,e.__spread(c))},type:"console"}),this._options.dom&&r.addInstrumentationHandler({callback:function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n._domBreadcrumb.apply(n,e.__spread(c))},type:"dom"}),this._options.xhr&&r.addInstrumentationHandler({callback:function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n._xhrBreadcrumb.apply(n,e.__spread(c))},type:"xhr"}),this._options.fetch&&r.addInstrumentationHandler({callback:function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n._fetchBreadcrumb.apply(n,e.__spread(c))},type:"fetch"}),this._options.history&&r.addInstrumentationHandler({callback:function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n._historyBreadcrumb.apply(n,e.__spread(c))},type:"history"})},l.prototype._consoleBreadcrumb=function(n){var c={category:"console",data:{arguments:n.args,logger:"console"},level:i.Severity.fromString(n.level),message:r.safeJoin(n.args," ")};if(n.level==="assert"){if(n.args[0]!==!1)return;c.message="Assertion failed: "+(r.safeJoin(n.args.slice(1)," ")||"console.assert"),c.data.arguments=n.args.slice(1)}s.getCurrentHub().addBreadcrumb(c,{input:n.args,level:n.level})},l.prototype._domBreadcrumb=function(n){var c;try{c=n.event.target?r.htmlTreeAsString(n.event.target):r.htmlTreeAsString(n.event)}catch{c="<unknown>"}c.length!==0&&s.getCurrentHub().addBreadcrumb({category:"ui."+n.name,message:c},{event:n.event,name:n.name})},l.prototype._xhrBreadcrumb=function(n){var c,d,u,f;n.endTimestamp&&!n.xhr.__sentry_own_request__&&(c=(f=n.xhr.__sentry_xhr__||{}).method,d=f.url,u=f.status_code,f=f.body,s.getCurrentHub().addBreadcrumb({category:"xhr",data:{method:c,url:d,status_code:u},type:"http"},{xhr:n.xhr,input:f}))},l.prototype._fetchBreadcrumb=function(n){!n.endTimestamp||n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"||(n.error?s.getCurrentHub().addBreadcrumb({category:"fetch",data:n.fetchData,level:i.Severity.Error,type:"http"},{data:n.error,input:n.args}):s.getCurrentHub().addBreadcrumb({category:"fetch",data:e.__assign(e.__assign({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response}))},l.prototype._historyBreadcrumb=function(d){var u=r.getGlobalObject(),c=d.from,d=d.to,u=r.parseUrl(u.location.href),f=r.parseUrl(c),g=r.parseUrl(d);f.path||(f=u),u.protocol===g.protocol&&u.host===g.host&&(d=g.relative),u.protocol===f.protocol&&u.host===f.host&&(c=f.relative),s.getCurrentHub().addBreadcrumb({category:"navigation",data:{from:c,to:d}})},l.id="Breadcrumbs",t.Breadcrumbs=l},{"@sentry/core":64,"@sentry/types":77,"@sentry/utils":87,tslib:181}],48:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/core"),i=o("@sentry/types"),r=o("@sentry/utils"),l=o("../eventbuilder"),n=o("../helpers");function c(d){this.name=c.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=e.__assign({onerror:!0,onunhandledrejection:!0},d)}c.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(r.logger.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(r.logger.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},c.prototype._installGlobalOnErrorHandler=function(){var d=this;this._onErrorHandlerInstalled||(r.addInstrumentationHandler({callback:function(u){var f=u.error,g=s.getCurrentHub(),m=g.getIntegration(c),h=f&&f.__sentry_own_request__===!0;!m||n.shouldIgnoreOnError()||h||(m=g.getClient(),h=r.isPrimitive(f)?d._eventFromIncompleteOnError(u.msg,u.url,u.line,u.column):d._enhanceEventWithInitialFrame(l.eventFromUnknownInput(f,void 0,{attachStacktrace:m&&m.getOptions().attachStacktrace,rejection:!1}),u.url,u.line,u.column),r.addExceptionMechanism(h,{handled:!1,type:"onerror"}),g.captureEvent(h,{originalException:f}))},type:"error"}),this._onErrorHandlerInstalled=!0)},c.prototype._installGlobalOnUnhandledRejectionHandler=function(){var d=this;this._onUnhandledRejectionHandlerInstalled||(r.addInstrumentationHandler({callback:function(g){var f=g;try{"reason"in g?f=g.reason:"detail"in g&&"reason"in g.detail&&(f=g.detail.reason)}catch{}var g=s.getCurrentHub(),m=g.getIntegration(c),h=f&&f.__sentry_own_request__===!0;if(!m||n.shouldIgnoreOnError()||h)return!0;m=g.getClient(),h=r.isPrimitive(f)?d._eventFromRejectionWithPrimitive(f):l.eventFromUnknownInput(f,void 0,{attachStacktrace:m&&m.getOptions().attachStacktrace,rejection:!0}),h.level=i.Severity.Error,r.addExceptionMechanism(h,{handled:!1,type:"onunhandledrejection"}),g.captureEvent(h,{originalException:f})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},c.prototype._eventFromIncompleteOnError=function(h,u,f,g){var m,h=r.isErrorEvent(h)?h.message:h,v=(!r.isString(h)||(v=h.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i))&&(m=v[1],h=v[2]),{exception:{values:[{type:m||"Error",value:h}]}});return this._enhanceEventWithInitialFrame(v,u,f,g)},c.prototype._eventFromRejectionWithPrimitive=function(d){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(d)}]}}},c.prototype._enhanceEventWithInitialFrame=function(d,u,f,g){return d.exception=d.exception||{},d.exception.values=d.exception.values||[],d.exception.values[0]=d.exception.values[0]||{},d.exception.values[0].stacktrace=d.exception.values[0].stacktrace||{},d.exception.values[0].stacktrace.frames=d.exception.values[0].stacktrace.frames||[],g=isNaN(parseInt(g,10))?void 0:g,f=isNaN(parseInt(f,10))?void 0:f,u=r.isString(u)&&0<u.length?u:r.getLocationHref(),d.exception.values[0].stacktrace.frames.length===0&&d.exception.values[0].stacktrace.frames.push({colno:g,filename:u,function:"?",in_app:!0,lineno:f}),d},c.id="GlobalHandlers",t.GlobalHandlers=c},{"../eventbuilder":43,"../helpers":45,"@sentry/core":64,"@sentry/types":77,"@sentry/utils":87,tslib:181}],49:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("./globalhandlers"),e=(t.GlobalHandlers=e.GlobalHandlers,o("./trycatch")),e=(t.TryCatch=e.TryCatch,o("./breadcrumbs")),e=(t.Breadcrumbs=e.Breadcrumbs,o("./linkederrors")),e=(t.LinkedErrors=e.LinkedErrors,o("./useragent"));t.UserAgent=e.UserAgent},{"./breadcrumbs":47,"./globalhandlers":48,"./linkederrors":50,"./trycatch":51,"./useragent":52}],50:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/core"),i=o("@sentry/utils"),r=o("../parsers"),l=o("../tracekit");function n(c){c===void 0&&(c={}),this.name=n.id,this._key=c.key||"cause",this._limit=c.limit||5}n.prototype.setupOnce=function(){s.addGlobalEventProcessor(function(c,d){var u=s.getCurrentHub().getIntegration(n);return u?u._handler(c,d):c})},n.prototype._handler=function(c,d){return c.exception&&c.exception.values&&d&&i.isInstanceOf(d.originalException,Error)?(d=this._walkErrorTree(d.originalException,this._key),c.exception.values=e.__spread(d,c.exception.values),c):c},n.prototype._walkErrorTree=function(c,d,u){if(u===void 0&&(u=[]),!i.isInstanceOf(c[d],Error)||u.length+1>=this._limit)return u;var f=l.computeStackTrace(c[d]),f=r.exceptionFromStacktrace(f);return this._walkErrorTree(c[d],d,e.__spread([f],u))},n.id="LinkedErrors",t.LinkedErrors=n},{"../parsers":53,"../tracekit":55,"@sentry/core":64,"@sentry/utils":87,tslib:181}],51:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/utils"),i=o("../helpers"),r=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];function l(n){this.name=l.id,this._options=e.__assign({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}l.prototype.setupOnce=function(){var n=s.getGlobalObject();this._options.setTimeout&&s.fill(n,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&s.fill(n,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&s.fill(n,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in n&&s.fill(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:r).forEach(this._wrapEventTarget.bind(this))},l.prototype._wrapTimeFunction=function(n){return function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var u=c[0];return c[0]=i.wrap(u,{mechanism:{data:{function:s.getFunctionName(n)},handled:!0,type:"instrument"}}),n.apply(this,c)}},l.prototype._wrapRAF=function(n){return function(c){return n.call(this,i.wrap(c,{mechanism:{data:{function:"requestAnimationFrame",handler:s.getFunctionName(n)},handled:!0,type:"instrument"}}))}},l.prototype._wrapEventTarget=function(n){var c=s.getGlobalObject(),c=c[n]&&c[n].prototype;c&&c.hasOwnProperty&&c.hasOwnProperty("addEventListener")&&(s.fill(c,"addEventListener",function(d){return function(u,f,g){try{typeof f.handleEvent=="function"&&(f.handleEvent=i.wrap(f.handleEvent.bind(f),{mechanism:{data:{function:"handleEvent",handler:s.getFunctionName(f),target:n},handled:!0,type:"instrument"}}))}catch{}return d.call(this,u,i.wrap(f,{mechanism:{data:{function:"addEventListener",handler:s.getFunctionName(f),target:n},handled:!0,type:"instrument"}}),g)}}),s.fill(c,"removeEventListener",function(d){return function(u,f,g){var m;try{var h=(m=f)==null?void 0:m.__sentry_wrapped__;h&&d.call(this,u,h,g)}catch{}return d.call(this,u,f,g)}}))},l.prototype._wrapXHR=function(n){return function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var u=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(f){f in u&&typeof u[f]=="function"&&s.fill(u,f,function(g){var m={mechanism:{data:{function:f,handler:s.getFunctionName(g)},handled:!0,type:"instrument"}};return g.__sentry_original__&&(m.mechanism.data.handler=s.getFunctionName(g.__sentry_original__)),i.wrap(g,m)})}),n.apply(this,c)}},l.id="TryCatch",t.TryCatch=l},{"../helpers":45,"@sentry/utils":87,tslib:181}],52:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/core"),i=o("@sentry/utils").getGlobalObject();function r(){this.name=r.id}r.prototype.setupOnce=function(){s.addGlobalEventProcessor(function(l){if(s.getCurrentHub().getIntegration(r)){if(!i.navigator&&!i.location&&!i.document)return l;var n=((n=l.request)==null?void 0:n.url)||((n=i.location)==null?void 0:n.href),u=(i.document||{}).referrer,c=(i.navigator||{}).userAgent,d=e.__assign(e.__assign(e.__assign({},(d=l.request)==null?void 0:d.headers),u&&{Referer:u}),c&&{"User-Agent":c}),u=e.__assign(e.__assign({},n&&{url:n}),{headers:d});return e.__assign(e.__assign({},l),{request:u})}return l})},r.id="UserAgent",t.UserAgent=r},{"@sentry/core":64,"@sentry/utils":87,tslib:181}],53:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("@sentry/utils"),s=o("./tracekit"),i=50;function r(d){var c=l(d.stack),d={type:d.name,value:d.message};return c&&c.length&&(d.stacktrace={frames:c}),d.type===void 0&&d.value===""&&(d.value="Unrecoverable error caught"),d}function l(d){if(!d||!d.length)return[];var c=d,d=c[0].func||"",u=c[c.length-1].func||"";return d.indexOf("captureMessage")===-1&&d.indexOf("captureException")===-1||(c=c.slice(1)),(c=u.indexOf("sentryWrapped")!==-1?c.slice(0,-1):c).slice(0,i).map(function(f){return{colno:f.column===null?void 0:f.column,filename:f.url||c[0].url,function:f.func||"?",in_app:!0,lineno:f.line===null?void 0:f.line}}).reverse()}t.exceptionFromStacktrace=r,t.eventFromPlainObject=function(n,c,d){return d={exception:{values:[{type:e.isEvent(n)?n.constructor.name:d?"UnhandledRejection":"Error",value:"Non-Error "+(d?"promise rejection":"exception")+" captured with keys: "+e.extractExceptionKeysForMessage(n)}]},extra:{__serialized__:e.normalizeToSize(n)}},c&&(n=l(s.computeStackTrace(c).stack),d.stacktrace={frames:n}),d},t.eventFromStacktrace=function(n){return{exception:{values:[r(n)]}}},t.prepareFramesForEvent=l},{"./tracekit":55,"@sentry/utils":87}],54:[function(l,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=l("@sentry/core"),s=l("@sentry/utils"),i=l("./client"),r=l("./helpers"),l=l("./integrations");t.defaultIntegrations=[new e.Integrations.InboundFilters,new e.Integrations.FunctionToString,new l.TryCatch,new l.Breadcrumbs,new l.GlobalHandlers,new l.LinkedErrors,new l.UserAgent],t.init=function(n){var c;if((n=n===void 0?{}:n).defaultIntegrations===void 0&&(n.defaultIntegrations=t.defaultIntegrations),n.release!==void 0||(c=s.getGlobalObject()).SENTRY_RELEASE&&c.SENTRY_RELEASE.id&&(n.release=c.SENTRY_RELEASE.id),n.autoSessionTracking===void 0&&(n.autoSessionTracking=!1),e.initAndBind(i.BrowserClient,n),n.autoSessionTracking){let v=function(){g&&f&&u.endSession()},b=function(){f=!0,v(),d.removeEventListener("load",b)};var d=s.getGlobalObject(),u=e.getCurrentHub(),f=document.readyState==="complete",g=!1;u.startSession(),f||d.addEventListener("load",b);try{var m=new PerformanceObserver(function(_,R){_.getEntries().forEach(function(x){x.name==="first-contentful-paint"&&x.startTime<h&&(R.disconnect(),g=!0,v())})}),h=document.visibilityState==="hidden"?0:1/0;document.addEventListener("visibilitychange",function(_){h=Math.min(h,_.timeStamp)},{once:!0}),m.observe({type:"paint",buffered:!0})}catch{g=!0,v()}}},t.showReportDialog=function(n){(n=n===void 0?{}:n).eventId||(n.eventId=e.getCurrentHub().lastEventId());var c=e.getCurrentHub().getClient();c&&c.showReportDialog(n)},t.lastEventId=function(){return e.getCurrentHub().lastEventId()},t.forceLoad=function(){},t.onLoad=function(n){n()},t.flush=function(n){var c=e.getCurrentHub().getClient();return c?c.flush(n):s.SyncPromise.reject(!1)},t.close=function(n){var c=e.getCurrentHub().getClient();return c?c.close(n):s.SyncPromise.reject(!1)},t.wrap=function(n){return r.wrap(n)()}},{"./client":42,"./helpers":45,"./integrations":49,"@sentry/core":64,"@sentry/utils":87}],55:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s="?",i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,l=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,n=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,d=/Minified React error #\d+;/i;function u(g,m){try{return e.__assign(e.__assign({},g),{stack:g.stack.slice(m)})}catch{return g}}function f(g){return g=g&&g.message,g?g.error&&typeof g.error.message=="string"?g.error.message:g:"No error message"}t.computeStackTrace=function(g){var m=null,h=0;g&&(typeof g.framesToPop=="number"?h=g.framesToPop:d.test(g.message)&&(h=1));try{if(m=function(v){if(!v||!v.stacktrace)return null;for(var b,_=v.stacktrace,R=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,x=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,w=_.split(`
|
|
59
|
+
`),O=[],I=0;I<w.length;I+=2){var L=null;(b=R.exec(w[I]))?L={url:b[2],func:b[3],args:[],line:+b[1],column:null}:(b=x.exec(w[I]))&&(L={url:b[6],func:b[3]||b[4],args:b[5]?b[5].split(","):[],line:+b[1],column:+b[2]}),L&&(!L.func&&L.line&&(L.func=s),O.push(L))}return O.length?{message:f(v),name:v.name,stack:O}:null}(g))return u(m,h)}catch{}try{if(m=function(v){if(!v||!v.stack)return null;for(var b,_,R=[],x=v.stack.split(`
|
|
60
|
+
`),w=0;w<x.length;++w){if(_=i.exec(x[w])){var O=_[2]&&_[2].indexOf("native")===0;_[2]&&_[2].indexOf("eval")===0&&(b=c.exec(_[2]))&&(_[2]=b[1],_[3]=b[2],_[4]=b[3]),O={url:_[2]&&_[2].indexOf("address at ")===0?_[2].substr(11):_[2],func:_[1]||s,args:O?[_[2]]:[],line:_[3]?+_[3]:null,column:_[4]?+_[4]:null}}else if(_=l.exec(x[w]))O={url:_[2],func:_[1]||s,args:[],line:+_[3],column:_[4]?+_[4]:null};else{if(!(_=r.exec(x[w])))continue;_[3]&&-1<_[3].indexOf(" > eval")&&(b=n.exec(_[3]))?(_[1]=_[1]||"eval",_[3]=b[1],_[4]=b[2],_[5]=""):w!==0||_[5]||v.columnNumber===void 0||(R[0].column=v.columnNumber+1),O={url:_[3],func:_[1]||s,args:_[2]?_[2].split(","):[],line:_[4]?+_[4]:null,column:_[5]?+_[5]:null}}!O.func&&O.line&&(O.func=s),R.push(O)}return R.length?{message:f(v),name:v.name,stack:R}:null}(g))return u(m,h)}catch{}return{message:f(g),name:g&&g.name,stack:[],failed:!0}}},{tslib:181}],56:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/core"),i=o("@sentry/types"),r=o("@sentry/utils");function l(n){this.options=n,this._buffer=new r.PromiseBuffer(30),this._rateLimits={},this._api=new s.API(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}l.prototype.sendEvent=function(n){throw new r.SentryError("Transport Class has to implement `sendEvent` method")},l.prototype.close=function(n){return this._buffer.drain(n)},l.prototype._handleResponse=function(g){var c=g.requestType,d=g.response,u=g.headers,f=g.resolve,g=g.reject,m=i.Status.fromHttpCode(d.status);this._handleRateLimit(u)&&r.logger.warn("Too many requests, backing off until: "+this._disabledUntil(c)),m===i.Status.Success?f({status:m}):g(d)},l.prototype._disabledUntil=function(n){return this._rateLimits[n]||this._rateLimits.all},l.prototype._isRateLimited=function(n){return this._disabledUntil(n)>new Date(Date.now())},l.prototype._handleRateLimit=function(h){var c,d,u,f,g=Date.now(),m=h["x-sentry-rate-limits"],h=h["retry-after"];if(m){try{for(var v=e.__values(m.trim().split(",")),b=v.next();!b.done;b=v.next()){var _=b.value.split(":",2),R=parseInt(_[0],10),x=1e3*(isNaN(R)?60:R);try{u=void 0;for(var w=e.__values(_[1].split(";")),O=w.next();!O.done;O=w.next()){var I=O.value;this._rateLimits[I||"all"]=new Date(g+x)}}catch(L){u={error:L}}finally{try{O&&!O.done&&(f=w.return)&&f.call(w)}finally{if(u)throw u.error}}}}catch(L){c={error:L}}finally{try{b&&!b.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}return!0}return!!h&&(this._rateLimits.all=new Date(g+r.parseRetryAfterHeader(g,h)),!0)},t.BaseTransport=l},{"@sentry/core":64,"@sentry/types":77,"@sentry/utils":87,tslib:181}],57:[function(n,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e,s=n("tslib"),i=n("@sentry/core"),r=n("@sentry/utils"),n=n("./base"),l=r.getGlobalObject(),n=(e=n.BaseTransport,s.__extends(c,e),c.prototype.sendEvent=function(d){return this._sendRequest(i.eventToSentryRequest(d,this._api),d)},c.prototype.sendSession=function(d){return this._sendRequest(i.sessionToSentryRequest(d,this._api),d)},c.prototype._sendRequest=function(d,u){var f=this;if(this._isRateLimited(d.type))return Promise.reject({event:u,type:d.type,reason:"Transport locked till "+this._disabledUntil(d.type)+" due to too many requests.",status:429});var g={body:d.body,method:"POST",referrerPolicy:r.supportsReferrerPolicy()?"origin":""};return this.options.fetchParameters!==void 0&&Object.assign(g,this.options.fetchParameters),this.options.headers!==void 0&&(g.headers=this.options.headers),this._buffer.add(new r.SyncPromise(function(m,h){l.fetch(d.url,g).then(function(v){var b={"x-sentry-rate-limits":v.headers.get("X-Sentry-Rate-Limits"),"retry-after":v.headers.get("Retry-After")};f._handleResponse({requestType:d.type,response:v,headers:b,resolve:m,reject:h})}).catch(h)}))},c);function c(){return e!==null&&e.apply(this,arguments)||this}t.FetchTransport=n},{"./base":56,"@sentry/core":64,"@sentry/utils":87,tslib:181}],58:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("./base"),e=(t.BaseTransport=e.BaseTransport,o("./fetch")),e=(t.FetchTransport=e.FetchTransport,o("./xhr"));t.XHRTransport=e.XHRTransport},{"./base":56,"./fetch":57,"./xhr":59}],59:[function(l,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e,s=l("tslib"),i=l("@sentry/core"),r=l("@sentry/utils"),l=l("./base"),l=(e=l.BaseTransport,s.__extends(n,e),n.prototype.sendEvent=function(c){return this._sendRequest(i.eventToSentryRequest(c,this._api),c)},n.prototype.sendSession=function(c){return this._sendRequest(i.sessionToSentryRequest(c,this._api),c)},n.prototype._sendRequest=function(c,d){var u=this;return this._isRateLimited(c.type)?Promise.reject({event:d,type:c.type,reason:"Transport locked till "+this._disabledUntil(c.type)+" due to too many requests.",status:429}):this._buffer.add(new r.SyncPromise(function(f,g){var m,h=new XMLHttpRequest;for(m in h.onreadystatechange=function(){var v;h.readyState===4&&(v={"x-sentry-rate-limits":h.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":h.getResponseHeader("Retry-After")},u._handleResponse({requestType:c.type,response:h,headers:v,resolve:f,reject:g}))},h.open("POST",c.url),u.options.headers)u.options.headers.hasOwnProperty(m)&&h.setRequestHeader(m,u.options.headers[m]);h.send(c.body)}))},n);function n(){return e!==null&&e.apply(this,arguments)||this}t.XHRTransport=l},{"./base":56,"@sentry/core":64,"@sentry/utils":87,tslib:181}],60:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SDK_NAME="sentry.javascript.browser",t.SDK_VERSION="5.30.0"},{}],61:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("@sentry/utils");function s(i){this.dsn=i,this._dsnObject=new e.Dsn(i)}s.prototype.getDsn=function(){return this._dsnObject},s.prototype.getBaseApiEndpoint=function(){var i=this._dsnObject,r=i.protocol?i.protocol+":":"",l=i.port?":"+i.port:"";return r+"//"+i.host+l+(i.path?"/"+i.path:"")+"/api/"},s.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},s.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},s.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},s.prototype.getStoreEndpointPath=function(){var i=this._dsnObject;return(i.path?"/"+i.path:"")+"/api/"+i.projectId+"/store/"},s.prototype.getRequestHeaders=function(i,r){var l=this._dsnObject,n=["Sentry sentry_version=7"];return n.push("sentry_client="+i+"/"+r),n.push("sentry_key="+l.user),l.pass&&n.push("sentry_secret="+l.pass),{"Content-Type":"application/json","X-Sentry-Auth":n.join(", ")}},s.prototype.getReportDialogEndpoint=function(i){i===void 0&&(i={});var r,l=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",c=[];for(r in c.push("dsn="+l.toString()),i)r!=="dsn"&&(r==="user"?i.user&&(i.user.name&&c.push("name="+encodeURIComponent(i.user.name)),i.user.email&&c.push("email="+encodeURIComponent(i.user.email))):c.push(encodeURIComponent(r)+"="+encodeURIComponent(i[r])));return c.length?n+"?"+c.join("&"):n},s.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},s.prototype._getIngestEndpoint=function(i){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+i+"/"},s.prototype._encodedAuth=function(){var i={sentry_key:this._dsnObject.user,sentry_version:"7"};return e.urlEncode(i)},t.API=s},{"@sentry/utils":87}],62:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("@sentry/utils"),s=o("./transports/noop");function i(r){this._options=r,this._options.dsn||e.logger.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}i.prototype.eventFromException=function(r,l){throw new e.SentryError("Backend has to implement `eventFromException` method")},i.prototype.eventFromMessage=function(r,l,n){throw new e.SentryError("Backend has to implement `eventFromMessage` method")},i.prototype.sendEvent=function(r){this._transport.sendEvent(r).then(null,function(l){e.logger.error("Error while sending event: "+l)})},i.prototype.sendSession=function(r){this._transport.sendSession?this._transport.sendSession(r).then(null,function(l){e.logger.error("Error while sending session: "+l)}):e.logger.warn("Dropping session because custom transport doesn't implement sendSession")},i.prototype.getTransport=function(){return this._transport},i.prototype._setupTransport=function(){return new s.NoopTransport},t.BaseBackend=i},{"./transports/noop":71,"@sentry/utils":87}],63:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/hub"),i=o("@sentry/types"),r=o("@sentry/utils"),l=o("./integration");function n(c,d){this._integrations={},this._processing=0,this._backend=new c(d),(this._options=d).dsn&&(this._dsn=new r.Dsn(d.dsn))}n.prototype.captureException=function(c,d,u){var f=this,g=d&&d.event_id;return this._process(this._getBackend().eventFromException(c,d).then(function(m){return f._captureEvent(m,d,u)}).then(function(m){g=m})),g},n.prototype.captureMessage=function(c,h,u,f){var g=this,m=u&&u.event_id,h=r.isPrimitive(c)?this._getBackend().eventFromMessage(String(c),h,u):this._getBackend().eventFromException(c,u);return this._process(h.then(function(v){return g._captureEvent(v,u,f)}).then(function(v){m=v})),m},n.prototype.captureEvent=function(c,d,u){var f=d&&d.event_id;return this._process(this._captureEvent(c,d,u).then(function(g){f=g})),f},n.prototype.captureSession=function(c){c.release?this._sendSession(c):r.logger.warn("Discarded session because of missing release")},n.prototype.getDsn=function(){return this._dsn},n.prototype.getOptions=function(){return this._options},n.prototype.flush=function(c){var d=this;return this._isClientProcessing(c).then(function(u){return d._getBackend().getTransport().close(c).then(function(f){return u&&f})})},n.prototype.close=function(c){var d=this;return this.flush(c).then(function(u){return d.getOptions().enabled=!1,u})},n.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=l.setupIntegrations(this._options))},n.prototype.getIntegration=function(c){try{return this._integrations[c.id]||null}catch{return r.logger.warn("Cannot retrieve integration "+c.id+" from the current Client"),null}},n.prototype._updateSessionFromEvent=function(c,d){var u,f,g,m=!1,h=!1,v=d.exception&&d.exception.values;if(v){h=!0;try{for(var b=e.__values(v),_=b.next();!_.done;_=b.next()){var R=_.value.mechanism;if(R&&R.handled===!1){m=!0;break}}}catch(O){u={error:O}}finally{try{_&&!_.done&&(f=b.return)&&f.call(b)}finally{if(u)throw u.error}}}if(v=d.user,!c.userAgent){var x,w=d.request?d.request.headers:{};for(x in w)if(x.toLowerCase()==="user-agent"){g=w[x];break}}c.update(e.__assign(e.__assign({},m&&{status:i.SessionStatus.Crashed}),{user:v,userAgent:g,errors:c.errors+Number(h||m)}))},n.prototype._sendSession=function(c){this._getBackend().sendSession(c)},n.prototype._isClientProcessing=function(c){var d=this;return new r.SyncPromise(function(u){var f=0,g=setInterval(function(){d._processing==0?(clearInterval(g),u(!0)):(f+=1,c&&c<=f&&(clearInterval(g),u(!1)))},1)})},n.prototype._getBackend=function(){return this._backend},n.prototype._isEnabled=function(){return this.getOptions().enabled!==!1&&this._dsn!==void 0},n.prototype._prepareEvent=function(h,v,u){var f=this,m=this.getOptions().normalizeDepth,g=m===void 0?3:m,m=e.__assign(e.__assign({},h),{event_id:h.event_id||(u&&u.event_id?u.event_id:r.uuid4()),timestamp:h.timestamp||r.dateTimestampInSeconds()}),h=(this._applyClientOptions(m),this._applyIntegrationsMetadata(m),v),v=(u&&u.captureContext&&(h=s.Scope.clone(h).update(u.captureContext)),r.SyncPromise.resolve(m));return(v=h?h.applyToEvent(m,u):v).then(function(b){return typeof g=="number"&&0<g?f._normalizeEvent(b,g):b})},n.prototype._normalizeEvent=function(c,d){if(!c)return null;var u=e.__assign(e.__assign(e.__assign(e.__assign(e.__assign({},c),c.breadcrumbs&&{breadcrumbs:c.breadcrumbs.map(function(f){return e.__assign(e.__assign({},f),f.data&&{data:r.normalize(f.data,d)})})}),c.user&&{user:r.normalize(c.user,d)}),c.contexts&&{contexts:r.normalize(c.contexts,d)}),c.extra&&{extra:r.normalize(c.extra,d)});return c.contexts&&c.contexts.trace&&(u.contexts.trace=c.contexts.trace),u},n.prototype._applyClientOptions=function(c){var g=this.getOptions(),m=g.environment,d=g.release,u=g.dist,f=g.maxValueLength,f=f===void 0?250:f,g=("environment"in c||(c.environment="environment"in g?m:"production"),c.release===void 0&&d!==void 0&&(c.release=d),c.dist===void 0&&u!==void 0&&(c.dist=u),c.message&&(c.message=r.truncate(c.message,f)),c.exception&&c.exception.values&&c.exception.values[0]),m=(g&&g.value&&(g.value=r.truncate(g.value,f)),c.request);m&&m.url&&(m.url=r.truncate(m.url,f))},n.prototype._applyIntegrationsMetadata=function(d){var d=d.sdk,u=Object.keys(this._integrations);d&&0<u.length&&(d.integrations=u)},n.prototype._sendEvent=function(c){this._getBackend().sendEvent(c)},n.prototype._captureEvent=function(c,d,u){return this._processEvent(c,d,u).then(function(f){return f.event_id},function(f){r.logger.error(f)})},n.prototype._processEvent=function(c,d,u){var f=this,m=this.getOptions(),g=m.beforeSend,m=m.sampleRate;if(!this._isEnabled())return r.SyncPromise.reject(new r.SentryError("SDK not enabled, will not send event."));var h=c.type==="transaction";return!h&&typeof m=="number"&&Math.random()>m?r.SyncPromise.reject(new r.SentryError("Discarding event because it's not included in the random sample (sampling rate = "+m+")")):this._prepareEvent(c,u,d).then(function(v){if(v===null)throw new r.SentryError("An event processor returned null, will not send event.");if(d&&d.data&&d.data.__sentry__===!0||h||!g)return v;if(v=g(v,d),v===void 0)throw new r.SentryError("`beforeSend` method has to return `null` or a valid event.");return r.isThenable(v)?v.then(function(b){return b},function(b){throw new r.SentryError("beforeSend rejected with "+b)}):v}).then(function(v){if(v===null)throw new r.SentryError("`beforeSend` returned `null`, will not send event.");var b=u&&u.getSession&&u.getSession();return!h&&b&&f._updateSessionFromEvent(b,v),f._sendEvent(v),v}).then(null,function(v){throw v instanceof r.SentryError?v:(f.captureException(v,{data:{__sentry__:!0},originalException:v}),new r.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
61
|
+
Reason: `+v))})},n.prototype._process=function(c){var d=this;this._processing+=1,c.then(function(u){return--d._processing,u},function(u){return--d._processing,u})},t.BaseClient=n},{"./integration":65,"@sentry/hub":73,"@sentry/types":77,"@sentry/utils":87,tslib:181}],64:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("@sentry/minimal"),e=(t.addBreadcrumb=e.addBreadcrumb,t.captureException=e.captureException,t.captureEvent=e.captureEvent,t.captureMessage=e.captureMessage,t.configureScope=e.configureScope,t.startTransaction=e.startTransaction,t.setContext=e.setContext,t.setExtra=e.setExtra,t.setExtras=e.setExtras,t.setTag=e.setTag,t.setTags=e.setTags,t.setUser=e.setUser,t.withScope=e.withScope,o("@sentry/hub")),e=(t.addGlobalEventProcessor=e.addGlobalEventProcessor,t.getCurrentHub=e.getCurrentHub,t.getHubFromCarrier=e.getHubFromCarrier,t.Hub=e.Hub,t.makeMain=e.makeMain,t.Scope=e.Scope,o("./api")),e=(t.API=e.API,o("./baseclient")),e=(t.BaseClient=e.BaseClient,o("./basebackend")),e=(t.BaseBackend=e.BaseBackend,o("./request")),e=(t.eventToSentryRequest=e.eventToSentryRequest,t.sessionToSentryRequest=e.sessionToSentryRequest,o("./sdk")),e=(t.initAndBind=e.initAndBind,o("./transports/noop")),e=(t.NoopTransport=e.NoopTransport,o("./integrations"));t.Integrations=e},{"./api":61,"./basebackend":62,"./baseclient":63,"./integrations":68,"./request":69,"./sdk":70,"./transports/noop":71,"@sentry/hub":73,"@sentry/minimal":76}],65:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/hub"),i=o("@sentry/utils");function r(g){var c,d,u=g.defaultIntegrations&&e.__spread(g.defaultIntegrations)||[],g=g.integrations,f=[],g=(Array.isArray(g)?(c=g.map(function(m){return m.name}),d=[],u.forEach(function(m){c.indexOf(m.name)===-1&&d.indexOf(m.name)===-1&&(f.push(m),d.push(m.name))}),g.forEach(function(m){d.indexOf(m.name)===-1&&(f.push(m),d.push(m.name))})):f=typeof g=="function"?(f=g(u),Array.isArray(f)?f:[f]):e.__spread(u),f.map(function(m){return m.name}));return g.indexOf("Debug")!==-1&&f.push.apply(f,e.__spread(f.splice(g.indexOf("Debug"),1))),f}function l(n){t.installedIntegrations.indexOf(n.name)===-1&&(n.setupOnce(s.addGlobalEventProcessor,s.getCurrentHub),t.installedIntegrations.push(n.name),i.logger.log("Integration installed: "+n.name))}t.installedIntegrations=[],t.getIntegrationsToSetup=r,t.setupIntegration=l,t.setupIntegrations=function(n){var c={};return r(n).forEach(function(d){l(c[d.name]=d)}),c}},{"@sentry/hub":73,"@sentry/utils":87,tslib:181}],66:[function(o,a,t){var e;function s(){this.name=s.id}Object.defineProperty(t,"__esModule",{value:!0}),s.prototype.setupOnce=function(){e=Function.prototype.toString,Function.prototype.toString=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var l=this.__sentry_original__||this;return e.apply(l,i)}},s.id="FunctionToString",t.FunctionToString=s},{}],67:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/hub"),i=o("@sentry/utils"),r=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];function l(n){this._options=n=n===void 0?{}:n,this.name=l.id}l.prototype.setupOnce=function(){s.addGlobalEventProcessor(function(n){var c=s.getCurrentHub();if(!c)return n;var d=c.getIntegration(l);return d&&(c=c.getClient(),c=c?c.getOptions():{},c=d._mergeOptions(c),d._shouldDropEvent(n,c))?null:n})},l.prototype._shouldDropEvent=function(n,c){return this._isSentryError(n,c)?(i.logger.warn(`Event dropped due to being internal Sentry Error.
|
|
62
|
+
Event: `+i.getEventDescription(n)),!0):this._isIgnoredError(n,c)?(i.logger.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+i.getEventDescription(n)),!0):this._isDeniedUrl(n,c)?(i.logger.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+i.getEventDescription(n)+`.
|
|
63
|
+
Url: `+this._getEventFilterUrl(n)),!0):!this._isAllowedUrl(n,c)&&(i.logger.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+i.getEventDescription(n)+`.
|
|
64
|
+
Url: `+this._getEventFilterUrl(n)),!0)},l.prototype._isSentryError=function(n,c){if(!c.ignoreInternal)return!1;try{return n&&n.exception&&n.exception.values&&n.exception.values[0]&&n.exception.values[0].type==="SentryError"||!1}catch{return!1}},l.prototype._isIgnoredError=function(n,c){return!(!c.ignoreErrors||!c.ignoreErrors.length)&&this._getPossibleEventMessages(n).some(function(d){return c.ignoreErrors.some(function(u){return i.isMatchingPattern(d,u)})})},l.prototype._isDeniedUrl=function(n,c){if(!c.denyUrls||!c.denyUrls.length)return!1;var d=this._getEventFilterUrl(n);return!!d&&c.denyUrls.some(function(u){return i.isMatchingPattern(d,u)})},l.prototype._isAllowedUrl=function(n,c){if(!c.allowUrls||!c.allowUrls.length)return!0;var d=this._getEventFilterUrl(n);return!d||c.allowUrls.some(function(u){return i.isMatchingPattern(d,u)})},l.prototype._mergeOptions=function(n){return{allowUrls:e.__spread(this._options.whitelistUrls||[],this._options.allowUrls||[],(n=n===void 0?{}:n).whitelistUrls||[],n.allowUrls||[]),denyUrls:e.__spread(this._options.blacklistUrls||[],this._options.denyUrls||[],n.blacklistUrls||[],n.denyUrls||[]),ignoreErrors:e.__spread(this._options.ignoreErrors||[],n.ignoreErrors||[],r),ignoreInternal:this._options.ignoreInternal===void 0||this._options.ignoreInternal}},l.prototype._getPossibleEventMessages=function(n){if(n.message)return[n.message];if(n.exception)try{var c=n.exception.values&&n.exception.values[0]||{},d=c.type,u=d===void 0?"":d,f=c.value,g=f===void 0?"":f;return[""+g,u+": "+g]}catch{return i.logger.error("Cannot extract message for event "+i.getEventDescription(n)),[]}return[]},l.prototype._getEventFilterUrl=function(n){try{var c,d;return n.stacktrace?(c=n.stacktrace.frames)&&c[c.length-1].filename||null:n.exception&&(d=n.exception.values&&n.exception.values[0].stacktrace&&n.exception.values[0].stacktrace.frames)&&d[d.length-1].filename||null}catch{return i.logger.error("Cannot extract url for event "+i.getEventDescription(n)),null}},l.id="InboundFilters",t.InboundFilters=l},{"@sentry/hub":73,"@sentry/utils":87,tslib:181}],68:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("./functiontostring"),e=(t.FunctionToString=e.FunctionToString,o("./inboundfilters"));t.InboundFilters=e.InboundFilters},{"./functiontostring":66,"./inboundfilters":67}],69:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib");t.sessionToSentryRequest=function(s,i){return{body:JSON.stringify({sent_at:new Date().toISOString()})+`
|
|
65
|
+
`+JSON.stringify({type:"session"})+`
|
|
66
|
+
`+JSON.stringify(s),type:"session",url:i.getEnvelopeEndpointWithUrlEncodedAuth()}},t.eventToSentryRequest=function(s,c){var r=(n=s.tags||{}).__sentry_samplingMethod,l=n.__sentry_sampleRate,n=e.__rest(n,["__sentry_samplingMethod","__sentry_sampleRate"]),n=(s.tags=n,s.type==="transaction"),c={body:JSON.stringify(s),type:s.type||"event",url:n?c.getEnvelopeEndpointWithUrlEncodedAuth():c.getStoreEndpointWithUrlEncodedAuth()};return n&&(n=JSON.stringify({event_id:s.event_id,sent_at:new Date().toISOString()})+`
|
|
67
|
+
`+JSON.stringify({type:s.type,sample_rates:[{id:r,rate:l}]})+`
|
|
68
|
+
`+c.body,c.body=n),c}},{tslib:181}],70:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("@sentry/hub"),s=o("@sentry/utils");t.initAndBind=function(n,r){r.debug===!0&&s.logger.enable();var l=e.getCurrentHub(),n=new n(r);l.bindClient(n)}},{"@sentry/hub":73,"@sentry/utils":87}],71:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("@sentry/types"),s=o("@sentry/utils");function i(){}i.prototype.sendEvent=function(r){return s.SyncPromise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:e.Status.Skipped})},i.prototype.close=function(r){return s.SyncPromise.resolve(!0)},t.NoopTransport=i},{"@sentry/types":77,"@sentry/utils":87}],72:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/utils"),i=o("./scope"),r=o("./session"),l=(t.API_VERSION=3,n.prototype.isOlderThan=function(h){return this._version<h},n.prototype.bindClient=function(h){(this.getStackTop().client=h)&&h.setupIntegrations&&h.setupIntegrations()},n.prototype.pushScope=function(){var h=i.Scope.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:h}),h},n.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},n.prototype.withScope=function(h){var v=this.pushScope();try{h(v)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this._stack},n.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},n.prototype.captureException=function(h,v){var b=this._lastEventId=s.uuid4(),_=v;if(!v){v=void 0;try{throw new Error("Sentry syntheticException")}catch(R){v=R}_={originalException:h,syntheticException:v}}return this._invokeClient("captureException",h,e.__assign(e.__assign({},_),{event_id:b})),b},n.prototype.captureMessage=function(h,v,b){var _=this._lastEventId=s.uuid4(),R=b;if(!b){b=void 0;try{throw new Error(h)}catch(x){b=x}R={originalException:h,syntheticException:b}}return this._invokeClient("captureMessage",h,v,e.__assign(e.__assign({},R),{event_id:_})),_},n.prototype.captureEvent=function(h,v){var b=this._lastEventId=s.uuid4();return this._invokeClient("captureEvent",h,e.__assign(e.__assign({},v),{event_id:b})),b},n.prototype.lastEventId=function(){return this._lastEventId},n.prototype.addBreadcrumb=function(h,v){var b,_,R,w=this.getStackTop(),x=w.scope,w=w.client;x&&w&&(R=(w=w.getOptions&&w.getOptions()||{}).beforeBreadcrumb,b=R===void 0?null:R,(w=(R=w.maxBreadcrumbs)===void 0?100:R)<=0||(R=s.dateTimestampInSeconds(),_=e.__assign({timestamp:R},h),(R=b?s.consoleSandbox(function(){return b(_,v)}):_)!==null&&x.addBreadcrumb(R,Math.min(w,100))))},n.prototype.setUser=function(h){var v=this.getScope();v&&v.setUser(h)},n.prototype.setTags=function(h){var v=this.getScope();v&&v.setTags(h)},n.prototype.setExtras=function(h){var v=this.getScope();v&&v.setExtras(h)},n.prototype.setTag=function(h,v){var b=this.getScope();b&&b.setTag(h,v)},n.prototype.setExtra=function(h,v){var b=this.getScope();b&&b.setExtra(h,v)},n.prototype.setContext=function(h,v){var b=this.getScope();b&&b.setContext(h,v)},n.prototype.configureScope=function(h){var b=this.getStackTop(),v=b.scope,b=b.client;v&&b&&h(v)},n.prototype.run=function(h){var v=d(this);try{h(this)}finally{d(v)}},n.prototype.getIntegration=function(h){var v=this.getClient();if(!v)return null;try{return v.getIntegration(h)}catch{return s.logger.warn("Cannot retrieve integration "+h.id+" from the current Hub"),null}},n.prototype.startSpan=function(h){return this._callExtensionMethod("startSpan",h)},n.prototype.startTransaction=function(h,v){return this._callExtensionMethod("startTransaction",h,v)},n.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},n.prototype.startSession=function(h){this.endSession();var b=this.getStackTop(),v=b.scope,b=b.client,b=b&&b.getOptions()||{},_=b.release,b=b.environment,_=new r.Session(e.__assign(e.__assign({release:_,environment:b},v&&{user:v.getUser()}),h));return v&&v.setSession(_),_},n.prototype.endSession=function(){var h,b=this.getStackTop(),v=b.scope,b=b.client;!v||(h=v.getSession&&v.getSession())&&(h.close(),b&&b.captureSession&&b.captureSession(h),v.setSession())},n.prototype._invokeClient=function(h){for(var v=[],b=1;b<arguments.length;b++)v[b-1]=arguments[b];var R=this.getStackTop(),_=R.scope,R=R.client;R&&R[h]&&R[h].apply(R,e.__spread(v,[_]))},n.prototype._callExtensionMethod=function(h){for(var v=[],b=1;b<arguments.length;b++)v[b-1]=arguments[b];var _=c().__SENTRY__;if(_&&_.extensions&&typeof _.extensions[h]=="function")return _.extensions[h].apply(this,v);s.logger.warn("Extension method "+h+" couldn't be found, doing nothing.")},n);function n(h,v,b){v===void 0&&(v=new i.Scope),b===void 0&&(b=t.API_VERSION),this._version=b,this._stack=[{}],this.getStackTop().scope=v,this.bindClient(h)}function c(){var h=s.getGlobalObject();return h.__SENTRY__=h.__SENTRY__||{extensions:{},hub:void 0},h}function d(h){var v=c(),b=g(v);return m(v,h),b}function u(){var h=c().__SENTRY__;return h&&h.extensions&&h.extensions.domain&&h.extensions.domain.active}function f(h){return h&&h.__SENTRY__&&h.__SENTRY__.hub}function g(h){return h&&h.__SENTRY__&&h.__SENTRY__.hub||(h.__SENTRY__=h.__SENTRY__||{},h.__SENTRY__.hub=new l),h.__SENTRY__.hub}function m(h,v){return!!h&&(h.__SENTRY__=h.__SENTRY__||{},h.__SENTRY__.hub=v,!0)}t.Hub=l,t.getMainCarrier=c,t.makeMain=d,t.getCurrentHub=function(){var h=c();if(f(h)&&!g(h).isOlderThan(t.API_VERSION)||m(h,new l),!s.isNodeEnv())return g(h);try{var v,b=u();return b?(f(b)&&!g(b).isOlderThan(t.API_VERSION)||(v=g(h).getStackTop(),m(b,new l(v.client,i.Scope.clone(v.scope)))),g(b)):g(h)}catch{return g(h)}},t.getActiveDomain=u,t.getHubFromCarrier=g,t.setHubOnCarrier=m},{"./scope":74,"./session":75,"@sentry/utils":87,tslib:181}],73:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("./scope"),e=(t.addGlobalEventProcessor=e.addGlobalEventProcessor,t.Scope=e.Scope,o("./session")),e=(t.Session=e.Session,o("./hub"));t.getActiveDomain=e.getActiveDomain,t.getCurrentHub=e.getCurrentHub,t.getHubFromCarrier=e.getHubFromCarrier,t.getMainCarrier=e.getMainCarrier,t.Hub=e.Hub,t.makeMain=e.makeMain,t.setHubOnCarrier=e.setHubOnCarrier},{"./hub":72,"./scope":74,"./session":75}],74:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/utils");function i(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}function r(){var l=s.getGlobalObject();return l.__SENTRY__=l.__SENTRY__||{},l.__SENTRY__.globalEventProcessors=l.__SENTRY__.globalEventProcessors||[],l.__SENTRY__.globalEventProcessors}i.clone=function(l){var n=new i;return l&&(n._breadcrumbs=e.__spread(l._breadcrumbs),n._tags=e.__assign({},l._tags),n._extra=e.__assign({},l._extra),n._contexts=e.__assign({},l._contexts),n._user=l._user,n._level=l._level,n._span=l._span,n._session=l._session,n._transactionName=l._transactionName,n._fingerprint=l._fingerprint,n._eventProcessors=e.__spread(l._eventProcessors)),n},i.prototype.addScopeListener=function(l){this._scopeListeners.push(l)},i.prototype.addEventProcessor=function(l){return this._eventProcessors.push(l),this},i.prototype.setUser=function(l){return this._user=l||{},this._session&&this._session.update({user:l}),this._notifyScopeListeners(),this},i.prototype.getUser=function(){return this._user},i.prototype.setTags=function(l){return this._tags=e.__assign(e.__assign({},this._tags),l),this._notifyScopeListeners(),this},i.prototype.setTag=function(l,n){var c;return this._tags=e.__assign(e.__assign({},this._tags),((c={})[l]=n,c)),this._notifyScopeListeners(),this},i.prototype.setExtras=function(l){return this._extra=e.__assign(e.__assign({},this._extra),l),this._notifyScopeListeners(),this},i.prototype.setExtra=function(l,n){var c;return this._extra=e.__assign(e.__assign({},this._extra),((c={})[l]=n,c)),this._notifyScopeListeners(),this},i.prototype.setFingerprint=function(l){return this._fingerprint=l,this._notifyScopeListeners(),this},i.prototype.setLevel=function(l){return this._level=l,this._notifyScopeListeners(),this},i.prototype.setTransactionName=function(l){return this._transactionName=l,this._notifyScopeListeners(),this},i.prototype.setTransaction=function(l){return this.setTransactionName(l)},i.prototype.setContext=function(l,n){var c;return n===null?delete this._contexts[l]:this._contexts=e.__assign(e.__assign({},this._contexts),((c={})[l]=n,c)),this._notifyScopeListeners(),this},i.prototype.setSpan=function(l){return this._span=l,this._notifyScopeListeners(),this},i.prototype.getSpan=function(){return this._span},i.prototype.getTransaction=function(){var l,n=this.getSpan();return(l=n)!=null&&l.transaction?(l=n)==null?void 0:l.transaction:(l=(l=n)==null?void 0:l.spanRecorder)!=null&&l.spans[0]?n.spanRecorder.spans[0]:void 0},i.prototype.setSession=function(l){return l?this._session=l:delete this._session,this._notifyScopeListeners(),this},i.prototype.getSession=function(){return this._session},i.prototype.update=function(l){return l?typeof l=="function"?(n=l(this))instanceof i?n:this:(l instanceof i?(this._tags=e.__assign(e.__assign({},this._tags),l._tags),this._extra=e.__assign(e.__assign({},this._extra),l._extra),this._contexts=e.__assign(e.__assign({},this._contexts),l._contexts),l._user&&Object.keys(l._user).length&&(this._user=l._user),l._level&&(this._level=l._level),l._fingerprint&&(this._fingerprint=l._fingerprint)):s.isPlainObject(l)&&(this._tags=e.__assign(e.__assign({},this._tags),l.tags),this._extra=e.__assign(e.__assign({},this._extra),l.extra),this._contexts=e.__assign(e.__assign({},this._contexts),l.contexts),l.user&&(this._user=l.user),l.level&&(this._level=l.level),l.fingerprint&&(this._fingerprint=l.fingerprint)),this):this;var n},i.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},i.prototype.addBreadcrumb=function(l,n){return l=e.__assign({timestamp:s.dateTimestampInSeconds()},l),this._breadcrumbs=n!==void 0&&0<=n?e.__spread(this._breadcrumbs,[l]).slice(-n):e.__spread(this._breadcrumbs,[l]),this._notifyScopeListeners(),this},i.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},i.prototype.applyToEvent=function(l,n){var c;return this._extra&&Object.keys(this._extra).length&&(l.extra=e.__assign(e.__assign({},this._extra),l.extra)),this._tags&&Object.keys(this._tags).length&&(l.tags=e.__assign(e.__assign({},this._tags),l.tags)),this._user&&Object.keys(this._user).length&&(l.user=e.__assign(e.__assign({},this._user),l.user)),this._contexts&&Object.keys(this._contexts).length&&(l.contexts=e.__assign(e.__assign({},this._contexts),l.contexts)),this._level&&(l.level=this._level),this._transactionName&&(l.transaction=this._transactionName),this._span&&(l.contexts=e.__assign({trace:this._span.getTraceContext()},l.contexts),(c=(c=this._span.transaction)==null?void 0:c.name)&&(l.tags=e.__assign({transaction:c},l.tags))),this._applyFingerprint(l),l.breadcrumbs=e.__spread(l.breadcrumbs||[],this._breadcrumbs),l.breadcrumbs=0<l.breadcrumbs.length?l.breadcrumbs:void 0,this._notifyEventProcessors(e.__spread(r(),this._eventProcessors),l,n)},i.prototype._notifyEventProcessors=function(l,n,c,d){var u=this;return d===void 0&&(d=0),new s.SyncPromise(function(f,g){var m=l[d];n===null||typeof m!="function"?f(n):(m=m(e.__assign({},n),c),(s.isThenable(m)?m.then(function(h){return u._notifyEventProcessors(l,h,c,d+1).then(f)}):u._notifyEventProcessors(l,m,c,d+1).then(f)).then(null,g))})},i.prototype._notifyScopeListeners=function(){var l=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(n){n(l)}),this._notifyingListeners=!1)},i.prototype._applyFingerprint=function(l){l.fingerprint=l.fingerprint?Array.isArray(l.fingerprint)?l.fingerprint:[l.fingerprint]:[],this._fingerprint&&(l.fingerprint=l.fingerprint.concat(this._fingerprint)),l.fingerprint&&!l.fingerprint.length&&delete l.fingerprint},t.Scope=i,t.addGlobalEventProcessor=function(l){r().push(l)}},{"@sentry/utils":87,tslib:181}],75:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("@sentry/types"),s=o("@sentry/utils");function i(r){this.errors=0,this.sid=s.uuid4(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=e.SessionStatus.Ok,r&&this.update(r)}i.prototype.update=function(r){(r=r===void 0?{}:r).user&&(r.user.ip_address&&(this.ipAddress=r.user.ip_address),r.did||(this.did=r.user.id||r.user.email||r.user.username)),this.timestamp=r.timestamp||Date.now(),r.sid&&(this.sid=r.sid.length===32?r.sid:s.uuid4()),r.did&&(this.did=""+r.did),typeof r.started=="number"&&(this.started=r.started),typeof r.duration=="number"?this.duration=r.duration:this.duration=this.timestamp-this.started,r.release&&(this.release=r.release),r.environment&&(this.environment=r.environment),r.ipAddress&&(this.ipAddress=r.ipAddress),r.userAgent&&(this.userAgent=r.userAgent),typeof r.errors=="number"&&(this.errors=r.errors),r.status&&(this.status=r.status)},i.prototype.close=function(r){r?this.update({status:r}):this.status===e.SessionStatus.Ok?this.update({status:e.SessionStatus.Exited}):this.update()},i.prototype.toJSON=function(){return s.dropUndefinedKeys({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:typeof this.did=="number"||typeof this.did=="string"?""+this.did:void 0,duration:this.duration,attrs:s.dropUndefinedKeys({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t.Session=i},{"@sentry/types":77,"@sentry/utils":87}],76:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("@sentry/hub");function i(r){for(var l=[],n=1;n<arguments.length;n++)l[n-1]=arguments[n];var c=s.getCurrentHub();if(c&&c[r])return c[r].apply(c,e.__spread(l));throw new Error("No hub defined or "+r+" was not found on the hub, please open a bug report.")}t.captureException=function(r,l){var n;try{throw new Error("Sentry syntheticException")}catch(c){n=c}return i("captureException",r,{captureContext:l,originalException:r,syntheticException:n})},t.captureMessage=function(r,l){var n;try{throw new Error(r)}catch(c){n=c}return i("captureMessage",r,typeof l=="string"?l:void 0,e.__assign({originalException:r,syntheticException:n},typeof l!="string"?{captureContext:l}:void 0))},t.captureEvent=function(r){return i("captureEvent",r)},t.configureScope=function(r){i("configureScope",r)},t.addBreadcrumb=function(r){i("addBreadcrumb",r)},t.setContext=function(r,l){i("setContext",r,l)},t.setExtras=function(r){i("setExtras",r)},t.setTags=function(r){i("setTags",r)},t.setExtra=function(r,l){i("setExtra",r,l)},t.setTag=function(r,l){i("setTag",r,l)},t.setUser=function(r){i("setUser",r)},t.withScope=function(r){i("withScope",r)},t._callOnClient=function(r){for(var l=[],n=1;n<arguments.length;n++)l[n-1]=arguments[n];i.apply(void 0,e.__spread(["_invokeClient",r],l))},t.startTransaction=function(r,l){return i("startTransaction",e.__assign({},r),l)}},{"@sentry/hub":73,tslib:181}],77:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("./loglevel"),e=(t.LogLevel=e.LogLevel,o("./session")),e=(t.SessionStatus=e.SessionStatus,o("./severity")),e=(t.Severity=e.Severity,o("./status")),e=(t.Status=e.Status,o("./transaction"));t.TransactionSamplingMethod=e.TransactionSamplingMethod},{"./loglevel":78,"./session":79,"./severity":80,"./status":81,"./transaction":82}],78:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),(t=t.LogLevel||(t.LogLevel={}))[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"},{}],79:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),(t=t.SessionStatus||(t.SessionStatus={})).Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"},{}],80:[function(o,a,t){var e,s;Object.defineProperty(t,"__esModule",{value:!0}),(e=t.Severity||(t.Severity={})).Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical",(s=t.Severity||(t.Severity={})).fromString=function(i){switch(i){case"debug":return s.Debug;case"info":return s.Info;case"warn":case"warning":return s.Warning;case"error":return s.Error;case"fatal":return s.Fatal;case"critical":return s.Critical;default:return s.Log}}},{}],81:[function(o,a,t){var e,s;Object.defineProperty(t,"__esModule",{value:!0}),(e=t.Status||(t.Status={})).Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed",(s=t.Status||(t.Status={})).fromHttpCode=function(i){return 200<=i&&i<300?s.Success:i===429?s.RateLimit:400<=i&&i<500?s.Invalid:500<=i?s.Failed:s.Unknown}},{}],82:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),(t=t.TransactionSamplingMethod||(t.TransactionSamplingMethod={})).Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"},{}],83:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.forget=function(e){e.then(null,function(s){console.error(s)})}},{}],84:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("./is");t.htmlTreeAsString=function(s){try{for(var i,r=s,l=[],n=0,c=0,d=3;r&&n++<5&&!((i=function(u){var f,g,m,h,v=u,b=[];if(!v||!v.tagName)return"";if(b.push(v.tagName.toLowerCase()),v.id&&b.push("#"+v.id),(u=v.className)&&e.isString(u))for(f=u.split(/\s+/),h=0;h<f.length;h++)b.push("."+f[h]);var _=["type","name","title","alt"];for(h=0;h<_.length;h++)g=_[h],(m=v.getAttribute(g))&&b.push("["+g+'="'+m+'"]');return b.join("")}(r))==="html"||1<n&&80<=c+l.length*d+i.length);)l.push(i),c+=i.length,r=r.parentNode;return l.reverse().join(" > ")}catch{return"<unknown>"}}},{"./is":89}],85:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib"),s=o("./error"),i=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,r="Invalid Dsn";function l(n){typeof n=="string"?this._fromString(n):this._fromComponents(n),this._validate()}l.prototype.toString=function(n){var c=this,d=c.host,u=c.path,f=c.pass,g=c.port,m=c.projectId;return c.protocol+"://"+c.user+((n=n===void 0?!1:n)&&f?":"+f:"")+"@"+d+(g?":"+g:"")+"/"+(u&&u+"/")+m},l.prototype._fromString=function(h){if(h=i.exec(h),!h)throw new s.SentryError(r);var h=e.__read(h.slice(1),6),c=h[0],d=h[1],u=h[2],u=u===void 0?"":u,f=h[3],g=h[4],g=g===void 0?"":g,m="",h=h[5],v=h.split("/");1<v.length&&(m=v.slice(0,-1).join("/"),h=v.pop()),h&&(v=h.match(/^\d+/))&&(h=v[0]),this._fromComponents({host:f,pass:u,path:m,projectId:h,port:g,protocol:c,user:d})},l.prototype._fromComponents=function(n){this.protocol=n.protocol,this.user=n.user,this.pass=n.pass||"",this.host=n.host,this.port=n.port||"",this.path=n.path||"",this.projectId=n.projectId},l.prototype._validate=function(){var n=this;if(["protocol","user","host","projectId"].forEach(function(c){if(!n[c])throw new s.SentryError(r+": "+c+" missing")}),!this.projectId.match(/^\d+$/))throw new s.SentryError(r+": Invalid projectId "+this.projectId);if(this.protocol!=="http"&&this.protocol!=="https")throw new s.SentryError(r+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new s.SentryError(r+": Invalid port "+this.port)},t.Dsn=l},{"./error":86,tslib:181}],86:[function(r,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e,s=r("tslib"),i=r("./polyfill"),r=(e=Error,s.__extends(l,e),l);function l(n){var c=this.constructor,d=e.call(this,n)||this;return d.message=n,d.name=c.prototype.constructor.name,i.setPrototypeOf(d,c.prototype),d}t.SentryError=r},{"./polyfill":96,tslib:181}],87:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("tslib");e.__exportStar(o("./async"),t),e.__exportStar(o("./browser"),t),e.__exportStar(o("./dsn"),t),e.__exportStar(o("./error"),t),e.__exportStar(o("./instrument"),t),e.__exportStar(o("./is"),t),e.__exportStar(o("./logger"),t),e.__exportStar(o("./memo"),t),e.__exportStar(o("./misc"),t),e.__exportStar(o("./node"),t),e.__exportStar(o("./object"),t),e.__exportStar(o("./path"),t),e.__exportStar(o("./promisebuffer"),t),e.__exportStar(o("./stacktrace"),t),e.__exportStar(o("./string"),t),e.__exportStar(o("./supports"),t),e.__exportStar(o("./syncpromise"),t),e.__exportStar(o("./time"),t)},{"./async":83,"./browser":84,"./dsn":85,"./error":86,"./instrument":88,"./is":89,"./logger":90,"./memo":91,"./misc":92,"./node":93,"./object":94,"./path":95,"./promisebuffer":97,"./stacktrace":98,"./string":99,"./supports":100,"./syncpromise":101,"./time":102,tslib:181}],88:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e,s=o("tslib"),i=o("./is"),r=o("./logger"),l=o("./misc"),n=o("./object"),c=o("./stacktrace"),d=o("./supports"),u=l.getGlobalObject(),f={},g={};function m(L){var M,A,k,J;if(!g[L])switch(g[L]=!0,L){case"console":"console"in u&&["debug","info","warn","error","log","assert"].forEach(function(U){U in u.console&&n.fill(u.console,U,function(D){return function(){for(var W=[],Q=0;Q<arguments.length;Q++)W[Q]=arguments[Q];h("console",{args:W,level:U}),D&&Function.prototype.apply.call(D,u.console,W)}})});break;case"dom":"document"in u&&(u.document.addEventListener("click",x("click",h.bind(null,"dom")),!1),u.document.addEventListener("keypress",w(h.bind(null,"dom")),!1),["EventTarget","Node"].forEach(function(U){U=u[U]&&u[U].prototype,U&&U.hasOwnProperty&&U.hasOwnProperty("addEventListener")&&(n.fill(U,"addEventListener",function(D){return function(W,Q,E){return Q&&Q.handleEvent?(W==="click"&&n.fill(Q,"handleEvent",function(B){return function($){return x("click",h.bind(null,"dom"))($),B.call(this,$)}}),W==="keypress"&&n.fill(Q,"handleEvent",function(B){return function($){return w(h.bind(null,"dom"))($),B.call(this,$)}})):(W==="click"&&x("click",h.bind(null,"dom"),!0)(this),W==="keypress"&&w(h.bind(null,"dom"))(this)),D.call(this,W,Q,E)}}),n.fill(U,"removeEventListener",function(D){return function(W,Q,E){try{D.call(this,W,Q.__sentry_wrapped__,E)}catch{}return D.call(this,W,Q,E)}}))}));break;case"xhr":"XMLHttpRequest"in u&&(A=[],k=[],J=XMLHttpRequest.prototype,n.fill(J,"open",function(U){return function(){for(var D=[],W=0;W<arguments.length;W++)D[W]=arguments[W];function Q(){if(E.readyState===4){try{E.__sentry_xhr__&&(E.__sentry_xhr__.status_code=E.status)}catch{}try{var $,C=A.indexOf(E);C!==-1&&(A.splice(C),$=k.splice(C)[0],E.__sentry_xhr__&&$[0]!==void 0&&(E.__sentry_xhr__.body=$[0]))}catch{}h("xhr",{args:D,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:E})}}var E=this,B=D[1];return E.__sentry_xhr__={method:i.isString(D[0])?D[0].toUpperCase():D[0],url:D[1]},i.isString(B)&&E.__sentry_xhr__.method==="POST"&&B.match(/sentry_key/)&&(E.__sentry_own_request__=!0),"onreadystatechange"in E&&typeof E.onreadystatechange=="function"?n.fill(E,"onreadystatechange",function($){return function(){for(var C=[],N=0;N<arguments.length;N++)C[N]=arguments[N];return Q(),$.apply(E,C)}}):E.addEventListener("readystatechange",Q),U.apply(E,D)}}),n.fill(J,"send",function(U){return function(){for(var D=[],W=0;W<arguments.length;W++)D[W]=arguments[W];return A.push(this),k.push(D),h("xhr",{args:D,startTimestamp:Date.now(),xhr:this}),U.apply(this,D)}}));break;case"fetch":d.supportsNativeFetch()&&n.fill(u,"fetch",function(U){return function(){for(var D=[],W=0;W<arguments.length;W++)D[W]=arguments[W];var Q={args:D,fetchData:{method:function(E){return E===void 0&&(E=[]),"Request"in u&&i.isInstanceOf(E[0],Request)&&E[0].method?String(E[0].method).toUpperCase():E[1]&&E[1].method?String(E[1].method).toUpperCase():"GET"}(D),url:function(E){return E===void 0&&(E=[]),typeof E[0]=="string"?E[0]:"Request"in u&&i.isInstanceOf(E[0],Request)?E[0].url:String(E[0])}(D)},startTimestamp:Date.now()};return h("fetch",s.__assign({},Q)),U.apply(u,D).then(function(E){return h("fetch",s.__assign(s.__assign({},Q),{endTimestamp:Date.now(),response:E})),E},function(E){throw h("fetch",s.__assign(s.__assign({},Q),{endTimestamp:Date.now(),error:E})),E})}});break;case"history":d.supportsHistory()&&(M=u.onpopstate,u.onpopstate=function(){for(var U=[],D=0;D<arguments.length;D++)U[D]=arguments[D];var W=u.location.href;if(h("history",{from:e,to:e=W}),M)return M.apply(this,U)},n.fill(u.history,"pushState",G),n.fill(u.history,"replaceState",G));break;case"error":O=u.onerror,u.onerror=function(U,D,W,Q,E){return h("error",{column:Q,error:E,line:W,msg:U,url:D}),!!O&&O.apply(this,arguments)};break;case"unhandledrejection":I=u.onunhandledrejection,u.onunhandledrejection=function(U){return h("unhandledrejection",U),!I||I.apply(this,arguments)};break;default:r.logger.warn("unknown instrumentation type:",L)}function G(U){return function(){for(var D=[],W=0;W<arguments.length;W++)D[W]=arguments[W];var Q,E=2<D.length?D[2]:void 0;return E&&(Q=e,E=String(E),h("history",{from:Q,to:e=E})),U.apply(this,D)}}}function h(L,M){var A,k;if(L&&f[L])try{for(var J=s.__values(f[L]||[]),G=J.next();!G.done;G=J.next()){var U=G.value;try{U(M)}catch(D){r.logger.error(`Error while triggering instrumentation handler.
|
|
69
|
+
Type: `+L+`
|
|
70
|
+
Name: `+c.getFunctionName(U)+`
|
|
71
|
+
Error: `+D)}}}catch(D){A={error:D}}finally{try{G&&!G.done&&(k=J.return)&&k.call(J)}finally{if(A)throw A.error}}}t.addInstrumentationHandler=function(L){L&&typeof L.type=="string"&&typeof L.callback=="function"&&(f[L.type]=f[L.type]||[],f[L.type].push(L.callback),m(L.type))};var v,b,_=1e3,R=0;function x(L,M,A){return A===void 0&&(A=!1),function(k){v=void 0,k&&b!==k&&(b=k,R&&clearTimeout(R),A?R=setTimeout(function(){M({event:k,name:L})}):M({event:k,name:L}))}}function w(L){return function(M){var A;try{A=M.target}catch{return}var k=A&&A.tagName;k&&(k==="INPUT"||k==="TEXTAREA"||A.isContentEditable)&&(v||x("input",L)(M),clearTimeout(v),v=setTimeout(function(){v=void 0},_))}}var O=null,I=null},{"./is":89,"./logger":90,"./misc":92,"./object":94,"./stacktrace":98,"./supports":100,tslib:181}],89:[function(o,a,t){function e(i){return Object.prototype.toString.call(i)==="[object Object]"}function s(i,r){try{return i instanceof r}catch{return!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(i){switch(Object.prototype.toString.call(i)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return s(i,Error)}},t.isErrorEvent=function(i){return Object.prototype.toString.call(i)==="[object ErrorEvent]"},t.isDOMError=function(i){return Object.prototype.toString.call(i)==="[object DOMError]"},t.isDOMException=function(i){return Object.prototype.toString.call(i)==="[object DOMException]"},t.isString=function(i){return Object.prototype.toString.call(i)==="[object String]"},t.isPrimitive=function(i){return i===null||typeof i!="object"&&typeof i!="function"},t.isPlainObject=e,t.isEvent=function(i){return typeof Event<"u"&&s(i,Event)},t.isElement=function(i){return typeof Element<"u"&&s(i,Element)},t.isRegExp=function(i){return Object.prototype.toString.call(i)==="[object RegExp]"},t.isThenable=function(i){return!!(i&&i.then&&typeof i.then=="function")},t.isSyntheticEvent=function(i){return e(i)&&"nativeEvent"in i&&"preventDefault"in i&&"stopPropagation"in i},t.isInstanceOf=s},{}],90:[function(r,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=r("./misc"),s=e.getGlobalObject(),i="Sentry Logger ",r=(l.prototype.disable=function(){this._enabled=!1},l.prototype.enable=function(){this._enabled=!0},l.prototype.log=function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];this._enabled&&e.consoleSandbox(function(){s.console.log(i+"[Log]: "+n.join(" "))})},l.prototype.warn=function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];this._enabled&&e.consoleSandbox(function(){s.console.warn(i+"[Warn]: "+n.join(" "))})},l.prototype.error=function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];this._enabled&&e.consoleSandbox(function(){s.console.error(i+"[Error]: "+n.join(" "))})},l);function l(){this._enabled=!1}s.__SENTRY__=s.__SENTRY__||{},r=s.__SENTRY__.logger||(s.__SENTRY__.logger=new r),t.logger=r},{"./misc":92}],91:[function(o,a,t){function e(){this._hasWeakSet=typeof WeakSet=="function",this._inner=this._hasWeakSet?new WeakSet:[]}Object.defineProperty(t,"__esModule",{value:!0}),e.prototype.memoize=function(s){if(this._hasWeakSet)return!!this._inner.has(s)||(this._inner.add(s),!1);for(var i=0;i<this._inner.length;i++)if(this._inner[i]===s)return!0;return this._inner.push(s),!1},e.prototype.unmemoize=function(s){if(this._hasWeakSet)this._inner.delete(s);else for(var i=0;i<this._inner.length;i++)if(this._inner[i]===s){this._inner.splice(i,1);break}},t.Memo=e},{}],92:[function(o,a,t){(function(e){(function(){Object.defineProperty(t,"__esModule",{value:!0});var s=o("./node"),i=o("./string"),r={};function l(){return s.isNodeEnv()?e:typeof window<"u"?window:typeof self<"u"?self:r}t.getGlobalObject=l,t.uuid4=function(){var c,d=l();return(d=d.crypto||d.msCrypto)!==void 0&&d.getRandomValues?(c=new Uint16Array(8),d.getRandomValues(c),c[3]=4095&c[3]|16384,c[4]=16383&c[4]|32768,(d=function(u){for(var f=u.toString(16);f.length<4;)f="0"+f;return f})(c[0])+d(c[1])+d(c[2])+d(c[3])+d(c[4])+d(c[5])+d(c[6])+d(c[7])):"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(u){var f=16*Math.random()|0;return(u==="x"?f:3&f|8).toString(16)})},t.parseUrl=function(c){if(!c)return{};if(!(c=c.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/)))return{};var d=c[6]||"",u=c[8]||"";return{host:c[4],path:c[5],protocol:c[2],relative:c[5]+d+u}},t.getEventDescription=function(c){return c.message||(c.exception&&c.exception.values&&c.exception.values[0]?(d=c.exception.values[0]).type&&d.value?d.type+": "+d.value:d.type||d.value||c.event_id||"<unknown>":c.event_id||"<unknown>");var d},t.consoleSandbox=function(g){var d=l();if(!("console"in d))return g();var u=d.console,f={},g=(["debug","info","warn","error","log","assert"].forEach(function(m){m in d.console&&u[m].__sentry_original__&&(f[m]=u[m],u[m]=u[m].__sentry_original__)}),g());return Object.keys(f).forEach(function(m){u[m]=f[m]}),g},t.addExceptionTypeValue=function(c,d,u){c.exception=c.exception||{},c.exception.values=c.exception.values||[],c.exception.values[0]=c.exception.values[0]||{},c.exception.values[0].value=c.exception.values[0].value||d||"",c.exception.values[0].type=c.exception.values[0].type||u||"Error"},t.addExceptionMechanism=function(c,d){d===void 0&&(d={});try{c.exception.values[0].mechanism=c.exception.values[0].mechanism||{},Object.keys(d).forEach(function(u){c.exception.values[0].mechanism[u]=d[u]})}catch{}},t.getLocationHref=function(){try{return document.location.href}catch{return""}};var n=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;t.parseSemver=function(d){var d=d.match(n)||[],u=parseInt(d[1],10),f=parseInt(d[2],10),g=parseInt(d[3],10);return{buildmetadata:d[5],major:isNaN(u)?void 0:u,minor:isNaN(f)?void 0:f,patch:isNaN(g)?void 0:g,prerelease:d[4]}},t.parseRetryAfterHeader=function(c,d){if(!d)return 6e4;var u=parseInt(""+d,10);return isNaN(u)?(u=Date.parse(""+d),isNaN(u)?6e4:u-c):1e3*u},t.addContextToFrame=function(c,d,u){u===void 0&&(u=5);var g=d.lineno||0,f=c.length,g=Math.max(Math.min(f,g-1),0);d.pre_context=c.slice(Math.max(0,g-u),g).map(function(m){return i.snipLine(m,0)}),d.context_line=i.snipLine(c[Math.min(f-1,g)],d.colno||0),d.post_context=c.slice(Math.min(g+1,f),g+1+u).map(function(m){return i.snipLine(m,0)})},t.stripUrlQueryAndFragment=function(c){return c.split(/[\?#]/,1)[0]}}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"./node":93,"./string":99}],93:[function(o,a,t){(function(e){(function(){Object.defineProperty(t,"__esModule",{value:!0});var s=o("./is"),i=o("./object");function r(){return Object.prototype.toString.call(e!==void 0?e:0)==="[object process]"}function l(c,d){return c.require(d)}t.isNodeEnv=r,t.dynamicRequire=l;var n=["cookies","data","headers","method","query_string","url"];t.extractNodeRequestData=function(c,d){if(d===void 0&&(d=n),!r())throw new Error("Can't get node request data outside of a node environment");var u={},f=c.headers||c.header||{},g=c.method,m=c.hostname||c.host||f.host||"<no host>",h=c.protocol==="https"||c.secure||(c.socket||{}).encrypted?"https":"http",v=c.originalUrl||c.url||"",b=h+"://"+m+v;return d.forEach(function(_){switch(_){case"headers":u.headers=f;break;case"method":u.method=g;break;case"url":u.url=b;break;case"cookies":u.cookies=c.cookies||l(a,"cookie").parse(f.cookie||"");break;case"query_string":u.query_string=l(a,"url").parse(v||"",!1).query;break;case"data":if(g==="GET"||g==="HEAD")break;c.body!==void 0&&(u.data=s.isString(c.body)?c.body:JSON.stringify(i.normalize(c.body)));break;default:!{}.hasOwnProperty.call(c,_)||(u[_]=c[_])}}),u}}).call(this)}).call(this,o("_process"))},{"./is":89,"./object":94,_process:149}],94:[function(o,a,t){(function(e){(function(){Object.defineProperty(t,"__esModule",{value:!0});var s=o("tslib"),i=o("./browser"),r=o("./is"),l=o("./memo"),n=o("./stacktrace"),c=o("./string");function d(h){if(r.isError(h)){var v=h,b={message:v.message,name:v.name,stack:v.stack};for(_ in v)Object.prototype.hasOwnProperty.call(v,_)&&(b[_]=v[_]);return b}if(r.isEvent(h)){var _,R=h,x={};x.type=R.type;try{x.target=r.isElement(R.target)?i.htmlTreeAsString(R.target):Object.prototype.toString.call(R.target)}catch{x.target="<unknown>"}try{x.currentTarget=r.isElement(R.currentTarget)?i.htmlTreeAsString(R.currentTarget):Object.prototype.toString.call(R.currentTarget)}catch{x.currentTarget="<unknown>"}for(_ in typeof CustomEvent<"u"&&r.isInstanceOf(h,CustomEvent)&&(x.detail=R.detail),R)Object.prototype.hasOwnProperty.call(R,_)&&(x[_]=R);return x}return h}function u(h){return h=JSON.stringify(h),~-encodeURI(h).split(/%..|./).length}function f(h,v){return v==="domain"&&h&&typeof h=="object"&&h._events?"[Domain]":v==="domainEmitter"?"[DomainEmitter]":e!==void 0&&h===e?"[Global]":typeof window<"u"&&h===window?"[Window]":typeof document<"u"&&h===document?"[Document]":r.isSyntheticEvent(h)?"[SyntheticEvent]":typeof h=="number"&&h!=h?"[NaN]":h===void 0?"[undefined]":typeof h=="function"?"[Function: "+n.getFunctionName(h)+"]":typeof h=="symbol"?"["+String(h)+"]":typeof h=="bigint"?"[BigInt: "+String(h)+"]":h}function g(h,v,b,_){if(b===void 0&&(b=1/0),_===void 0&&(_=new l.Memo),b===0)return x=v,R=Object.prototype.toString.call(x),typeof x=="string"?x:R==="[object Object]"?"[Object]":R==="[object Array]"?"[Array]":(x=f(x),r.isPrimitive(x)?x:R);var R;if(v!=null&&typeof v.toJSON=="function")return v.toJSON();var x=f(v,h);if(r.isPrimitive(x))return x;var w,O=d(v),I=Array.isArray(v)?[]:{};if(_.memoize(v))return"[Circular ~]";for(w in O)Object.prototype.hasOwnProperty.call(O,w)&&(I[w]=g(w,O[w],b-1,_));return _.unmemoize(v),I}function m(h,v){try{return JSON.parse(JSON.stringify(h,function(b,_){return g(b,_,v)}))}catch{return"**non-serializable**"}}t.fill=function(h,v,b){if(v in h){var _=h[v],b=b(_);if(typeof b=="function")try{b.prototype=b.prototype||{},Object.defineProperties(b,{__sentry_original__:{enumerable:!1,value:_}})}catch{}h[v]=b}},t.urlEncode=function(h){return Object.keys(h).map(function(v){return encodeURIComponent(v)+"="+encodeURIComponent(h[v])}).join("&")},t.normalizeToSize=function h(v,b,_){_===void 0&&(_=102400);var R=m(v,b=b===void 0?3:b);return u(R)>_?h(v,b-1,_):R},t.walk=g,t.normalize=m,t.extractExceptionKeysForMessage=function(h,v){v===void 0&&(v=40);var b=Object.keys(d(h));if(b.sort(),!b.length)return"[object has no keys]";if(b[0].length>=v)return c.truncate(b[0],v);for(var _=b.length;0<_;_--){var R=b.slice(0,_).join(", ");if(!(R.length>v))return _===b.length?R:c.truncate(R,v)}return""},t.dropUndefinedKeys=function h(v){var b,_;if(r.isPlainObject(v)){var R=v,x={};try{for(var w=s.__values(Object.keys(R)),O=w.next();!O.done;O=w.next()){var I=O.value;R[I]!==void 0&&(x[I]=h(R[I]))}}catch(L){b={error:L}}finally{try{O&&!O.done&&(_=w.return)&&_.call(w)}finally{if(b)throw b.error}}return x}return Array.isArray(v)?v.map(h):v}}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"./browser":84,"./is":89,"./memo":91,"./stacktrace":98,"./string":99,tslib:181}],95:[function(o,a,t){function e(d,u){for(var f=0,g=d.length-1;0<=g;g--){var m=d[g];m==="."?d.splice(g,1):m===".."?(d.splice(g,1),f++):f&&(d.splice(g,1),f--)}if(u)for(;f--;)d.unshift("..");return d}Object.defineProperty(t,"__esModule",{value:!0});var s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function i(d){return d=s.exec(d),d?d.slice(1):[]}function r(){for(var d=[],u=0;u<arguments.length;u++)d[u]=arguments[u];for(var f="",g=!1,m=d.length-1;-1<=m&&!g;m--){var h=0<=m?d[m]:"/";h&&(f=h+"/"+f,g=h.charAt(0)==="/")}return(g?"/":"")+(f=e(f.split("/").filter(function(v){return!!v}),!g).join("/"))||"."}function l(d){for(var u=0;u<d.length&&d[u]==="";u++);for(var f=d.length-1;0<=f&&d[f]==="";f--);return f<u?[]:d.slice(u,f-u+1)}function n(g){var u=c(g),f=g.substr(-1)==="/",g=e(g.split("/").filter(function(m){return!!m}),!u).join("/");return(g=g||u?g:".")&&f&&(g+="/"),(u?"/":"")+g}function c(d){return d.charAt(0)==="/"}t.resolve=r,t.relative=function(d,u){d=r(d).substr(1),u=r(u).substr(1);for(var f=l(d.split("/")),g=l(u.split("/")),m=Math.min(f.length,g.length),h=m,v=0;v<m;v++)if(f[v]!==g[v]){h=v;break}for(var b=[],v=h;v<f.length;v++)b.push("..");return(b=b.concat(g.slice(h))).join("/")},t.normalizePath=n,t.isAbsolute=c,t.join=function(){for(var d=[],u=0;u<arguments.length;u++)d[u]=arguments[u];return n(d.join("/"))},t.dirname=function(f){var u=(f=i(f))[0],f=f[1];return u||f?u+(f=f&&f.substr(0,f.length-1)):"."},t.basename=function(d,u){return d=i(d)[2],d=u&&d.substr(-1*u.length)===u?d.substr(0,d.length-u.length):d}},{}],96:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setPrototypeOf=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,s){return e.__proto__=s,e}:function(e,s){for(var i in s)e.hasOwnProperty(i)||(e[i]=s[i]);return e})},{}],97:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("./error"),s=o("./syncpromise");function i(r){this._limit=r,this._buffer=[]}i.prototype.isReady=function(){return this._limit===void 0||this.length()<this._limit},i.prototype.add=function(r){var l=this;return this.isReady()?(this._buffer.indexOf(r)===-1&&this._buffer.push(r),r.then(function(){return l.remove(r)}).then(null,function(){return l.remove(r).then(null,function(){})}),r):s.SyncPromise.reject(new e.SentryError("Not adding Promise due to buffer limit reached."))},i.prototype.remove=function(r){return this._buffer.splice(this._buffer.indexOf(r),1)[0]},i.prototype.length=function(){return this._buffer.length},i.prototype.drain=function(r){var l=this;return new s.SyncPromise(function(n){var c=setTimeout(function(){r&&0<r&&n(!1)},r);s.SyncPromise.all(l._buffer).then(function(){clearTimeout(c),n(!0)}).then(null,function(){n(!0)})})},t.PromiseBuffer=i},{"./error":86,"./syncpromise":101}],98:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e="<anonymous>";t.getFunctionName=function(s){try{return s&&typeof s=="function"&&s.name||e}catch{return e}}},{}],99:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("./is");t.truncate=function(s,i){return i===void 0&&(i=0),typeof s!="string"||i===0||s.length<=i?s:s.substr(0,i)+"..."},t.snipLine=function(s,i){var r=s.length;if(r<=150)return s;r<i&&(i=r),(i=Math.max(i-60,0))<5&&(i=0);var l=Math.min(i+140,r);return(l=r-5<l?r:l)===r&&(i=Math.max(l-140,0)),s=s.slice(i,l),0<i&&(s="'{snip} "+s),l<r&&(s+=" {snip}"),s},t.safeJoin=function(s,i){if(!Array.isArray(s))return"";for(var r=[],l=0;l<s.length;l++){var n=s[l];try{r.push(String(n))}catch{r.push("[value cannot be serialized]")}}return r.join(i)},t.isMatchingPattern=function(s,i){return!!e.isString(s)&&(e.isRegExp(i)?i.test(s):typeof i=="string"&&s.indexOf(i)!==-1)}},{"./is":89}],100:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=o("./logger"),s=o("./misc");function i(){if(!("fetch"in s.getGlobalObject()))return!1;try{return new Headers,new Request(""),new Response,!0}catch{return!1}}function r(l){return l&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(l.toString())}t.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch{return!1}},t.supportsDOMError=function(){try{return new DOMError(""),!0}catch{return!1}},t.supportsDOMException=function(){try{return new DOMException(""),!0}catch{return!1}},t.supportsFetch=i,t.supportsNativeFetch=function(){if(!i())return!1;var l=s.getGlobalObject();if(r(l.fetch))return!0;var n=!1;if((l=l.document)&&typeof l.createElement=="function")try{var c=l.createElement("iframe");c.hidden=!0,l.head.appendChild(c),c.contentWindow&&c.contentWindow.fetch&&(n=r(c.contentWindow.fetch)),l.head.removeChild(c)}catch(d){e.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",d)}return n},t.supportsReportingObserver=function(){return"ReportingObserver"in s.getGlobalObject()},t.supportsReferrerPolicy=function(){if(!i())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}},t.supportsHistory=function(){var n=s.getGlobalObject(),l=(l=n.chrome)&&l.app&&l.app.runtime,n="history"in n&&!!n.history.pushState&&!!n.history.replaceState;return!l&&n}},{"./logger":90,"./misc":92}],101:[function(i,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e,s=i("./is"),i=((i=e=e||{}).PENDING="PENDING",i.RESOLVED="RESOLVED",i.REJECTED="REJECTED",r.resolve=function(l){return new r(function(n){n(l)})},r.reject=function(l){return new r(function(n,c){c(l)})},r.all=function(l){return new r(function(n,c){var d,u;Array.isArray(l)?l.length===0?n([]):(d=l.length,u=[],l.forEach(function(f,g){r.resolve(f).then(function(m){u[g]=m,--d==0&&n(u)}).then(null,c)})):c(new TypeError("Promise.all requires an array as input."))})},r.prototype.then=function(l,n){var c=this;return new r(function(d,u){c._attachHandler({done:!1,onfulfilled:function(f){if(l)try{return void d(l(f))}catch(g){return void u(g)}else d(f)},onrejected:function(f){if(n)try{return void d(n(f))}catch(g){return void u(g)}else u(f)}})})},r.prototype.catch=function(l){return this.then(function(n){return n},l)},r.prototype.finally=function(l){var n=this;return new r(function(c,d){var u,f;n.then(function(g){f=!1,u=g,l&&l()},function(g){f=!0,u=g,l&&l()}).then(function(){(f?d:c)(u)})})},r.prototype.toString=function(){return"[object SyncPromise]"},r);function r(l){var n=this;this._state=e.PENDING,this._handlers=[],this._resolve=function(c){n._setResult(e.RESOLVED,c)},this._reject=function(c){n._setResult(e.REJECTED,c)},this._setResult=function(c,d){n._state===e.PENDING&&(s.isThenable(d)?d.then(n._resolve,n._reject):(n._state=c,n._value=d,n._executeHandlers()))},this._attachHandler=function(c){n._handlers=n._handlers.concat(c),n._executeHandlers()},this._executeHandlers=function(){var c;n._state!==e.PENDING&&(c=n._handlers.slice(),n._handlers=[],c.forEach(function(d){d.done||(n._state===e.RESOLVED&&d.onfulfilled&&d.onfulfilled(n._value),n._state===e.REJECTED&&d.onrejected&&d.onrejected(n._value),d.done=!0)}))};try{l(this._resolve,this._reject)}catch(c){this._reject(c)}}t.SyncPromise=i},{"./is":89}],102:[function(i,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=i("./misc"),s=i("./node"),i={nowSeconds:function(){return Date.now()/1e3}},r=(s.isNodeEnv()?function(){try{return s.dynamicRequire(a,"perf_hooks").performance}catch{return}}:function(){var n=e.getGlobalObject().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}})(),l=r===void 0?i:{nowSeconds:function(){return(r.timeOrigin+r.now())/1e3}};t.dateTimestampInSeconds=i.nowSeconds.bind(i),t.timestampInSeconds=l.nowSeconds.bind(l),t.timestampWithMs=t.timestampInSeconds,t.usingPerformanceAPI=r!==void 0,t.browserPerformanceTimeOrigin=function(){var n=e.getGlobalObject().performance;if(n)return n.timeOrigin||n.timing&&n.timing.navigationStart||Date.now()}()},{"./misc":92,"./node":93}],103:[function(o,a,t){a.exports=o("./lib/axios")},{"./lib/axios":105}],104:[function(o,a,t){var e=o("./../utils"),s=o("./../core/settle"),i=o("./../helpers/cookies"),r=o("./../helpers/buildURL"),l=o("../core/buildFullPath"),n=o("./../helpers/parseHeaders"),c=o("./../helpers/isURLSameOrigin"),d=o("../core/createError");a.exports=function(u){return new Promise(function(f,g){var m,h=u.data,v=u.headers,b=u.responseType,_=(e.isFormData(h)&&delete v["Content-Type"],new XMLHttpRequest),R=(u.auth&&(R=u.auth.username||"",m=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"",v.Authorization="Basic "+btoa(R+":"+m)),l(u.baseURL,u.url));function x(){var w;_&&(w="getAllResponseHeaders"in _?n(_.getAllResponseHeaders()):null,w={data:b&&b!=="text"&&b!=="json"?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:w,config:u,request:_},s(f,g,w),_=null)}_.open(u.method.toUpperCase(),r(R,u.params,u.paramsSerializer),!0),_.timeout=u.timeout,"onloadend"in _?_.onloadend=x:_.onreadystatechange=function(){_&&_.readyState===4&&(_.status!==0||_.responseURL&&_.responseURL.indexOf("file:")===0)&&setTimeout(x)},_.onabort=function(){_&&(g(d("Request aborted",u,"ECONNABORTED",_)),_=null)},_.onerror=function(){g(d("Network Error",u,null,_)),_=null},_.ontimeout=function(){var w="timeout of "+u.timeout+"ms exceeded";u.timeoutErrorMessage&&(w=u.timeoutErrorMessage),g(d(w,u,u.transitional&&u.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},e.isStandardBrowserEnv()&&(m=(u.withCredentials||c(R))&&u.xsrfCookieName?i.read(u.xsrfCookieName):void 0)&&(v[u.xsrfHeaderName]=m),"setRequestHeader"in _&&e.forEach(v,function(w,O){h===void 0&&O.toLowerCase()==="content-type"?delete v[O]:_.setRequestHeader(O,w)}),e.isUndefined(u.withCredentials)||(_.withCredentials=!!u.withCredentials),b&&b!=="json"&&(_.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&_.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",u.onUploadProgress),u.cancelToken&&u.cancelToken.promise.then(function(w){_&&(_.abort(),g(w),_=null)}),h=h||null,_.send(h)})}},{"../core/buildFullPath":111,"../core/createError":112,"./../core/settle":116,"./../helpers/buildURL":120,"./../helpers/cookies":122,"./../helpers/isURLSameOrigin":125,"./../helpers/parseHeaders":127,"./../utils":130}],105:[function(o,a,t){var e=o("./utils"),s=o("./helpers/bind"),i=o("./core/Axios"),r=o("./core/mergeConfig");function l(d){var d=new i(d),u=s(i.prototype.request,d);return e.extend(u,i.prototype,d),e.extend(u,d),u}var n=l(o("./defaults"));n.Axios=i,n.create=function(c){return l(r(n.defaults,c))},n.Cancel=o("./cancel/Cancel"),n.CancelToken=o("./cancel/CancelToken"),n.isCancel=o("./cancel/isCancel"),n.all=function(c){return Promise.all(c)},n.spread=o("./helpers/spread"),n.isAxiosError=o("./helpers/isAxiosError"),a.exports=n,a.exports.default=n},{"./cancel/Cancel":106,"./cancel/CancelToken":107,"./cancel/isCancel":108,"./core/Axios":109,"./core/mergeConfig":115,"./defaults":118,"./helpers/bind":119,"./helpers/isAxiosError":124,"./helpers/spread":128,"./utils":130}],106:[function(o,a,t){function e(s){this.message=s}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,a.exports=e},{}],107:[function(o,a,t){var e=o("./Cancel");function s(i){if(typeof i!="function")throw new TypeError("executor must be a function.");this.promise=new Promise(function(n){r=n});var r,l=this;i(function(n){l.reason||(l.reason=new e(n),r(l.reason))})}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.source=function(){var i;return{token:new s(function(r){i=r}),cancel:i}},a.exports=s},{"./Cancel":106}],108:[function(o,a,t){a.exports=function(e){return!(!e||!e.__CANCEL__)}},{}],109:[function(o,a,t){var e=o("./../utils"),s=o("../helpers/buildURL"),i=o("./InterceptorManager"),r=o("./dispatchRequest"),l=o("./mergeConfig"),n=o("../helpers/validator"),c=n.validators;function d(u){this.defaults=u,this.interceptors={request:new i,response:new i}}d.prototype.request=function(u){typeof u=="string"?(u=arguments[1]||{}).url=arguments[0]:u=u||{},(u=l(this.defaults,u)).method?u.method=u.method.toLowerCase():this.defaults.method?u.method=this.defaults.method.toLowerCase():u.method="get";var f,g=u.transitional,m=(g!==void 0&&n.assertOptions(g,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1),[]),h=!0,v=(this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(u)===!1||(h=h&&w.synchronous,m.unshift(w.fulfilled,w.rejected))}),[]);if(this.interceptors.response.forEach(function(w){v.push(w.fulfilled,w.rejected)}),!h){var b=[r,void 0];for(Array.prototype.unshift.apply(b,m),b=b.concat(v),f=Promise.resolve(u);b.length;)f=f.then(b.shift(),b.shift());return f}for(var _=u;m.length;){var R=m.shift(),x=m.shift();try{_=R(_)}catch(w){x(w);break}}try{f=r(_)}catch(w){return Promise.reject(w)}for(;v.length;)f=f.then(v.shift(),v.shift());return f},d.prototype.getUri=function(u){return u=l(this.defaults,u),s(u.url,u.params,u.paramsSerializer).replace(/^\?/,"")},e.forEach(["delete","get","head","options"],function(u){d.prototype[u]=function(f,g){return this.request(l(g||{},{method:u,url:f,data:(g||{}).data}))}}),e.forEach(["post","put","patch"],function(u){d.prototype[u]=function(f,g,m){return this.request(l(m||{},{method:u,url:f,data:g}))}}),a.exports=d},{"../helpers/buildURL":120,"../helpers/validator":129,"./../utils":130,"./InterceptorManager":110,"./dispatchRequest":113,"./mergeConfig":115}],110:[function(o,a,t){var e=o("./../utils");function s(){this.handlers=[]}s.prototype.use=function(i,r,l){return this.handlers.push({fulfilled:i,rejected:r,synchronous:!!l&&l.synchronous,runWhen:l?l.runWhen:null}),this.handlers.length-1},s.prototype.eject=function(i){this.handlers[i]&&(this.handlers[i]=null)},s.prototype.forEach=function(i){e.forEach(this.handlers,function(r){r!==null&&i(r)})},a.exports=s},{"./../utils":130}],111:[function(o,a,t){var e=o("../helpers/isAbsoluteURL"),s=o("../helpers/combineURLs");a.exports=function(i,r){return i&&!e(r)?s(i,r):r}},{"../helpers/combineURLs":121,"../helpers/isAbsoluteURL":123}],112:[function(o,a,t){var e=o("./enhanceError");a.exports=function(s,i,r,l,n){return s=new Error(s),e(s,i,r,l,n)}},{"./enhanceError":114}],113:[function(o,a,t){var e=o("./../utils"),s=o("./transformData"),i=o("../cancel/isCancel"),r=o("../defaults");function l(n){n.cancelToken&&n.cancelToken.throwIfRequested()}a.exports=function(n){return l(n),n.headers=n.headers||{},n.data=s.call(n,n.data,n.headers,n.transformRequest),n.headers=e.merge(n.headers.common||{},n.headers[n.method]||{},n.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(c){delete n.headers[c]}),(n.adapter||r.adapter)(n).then(function(c){return l(n),c.data=s.call(n,c.data,c.headers,n.transformResponse),c},function(c){return i(c)||(l(n),c&&c.response&&(c.response.data=s.call(n,c.response.data,c.response.headers,n.transformResponse))),Promise.reject(c)})}},{"../cancel/isCancel":108,"../defaults":118,"./../utils":130,"./transformData":117}],114:[function(o,a,t){a.exports=function(e,s,i,r,l){return e.config=s,i&&(e.code=i),e.request=r,e.response=l,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},{}],115:[function(o,a,t){var e=o("../utils");a.exports=function(s,i){i=i||{};var r={},g=["url","method","data"],l=["headers","auth","proxy","params"],n=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],c=["validateStatus"];function d(m,h){return e.isPlainObject(m)&&e.isPlainObject(h)?e.merge(m,h):e.isPlainObject(h)?e.merge({},h):e.isArray(h)?h.slice():h}function u(m){e.isUndefined(i[m])?e.isUndefined(s[m])||(r[m]=d(void 0,s[m])):r[m]=d(s[m],i[m])}e.forEach(g,function(m){e.isUndefined(i[m])||(r[m]=d(void 0,i[m]))}),e.forEach(l,u),e.forEach(n,function(m){e.isUndefined(i[m])?e.isUndefined(s[m])||(r[m]=d(void 0,s[m])):r[m]=d(void 0,i[m])}),e.forEach(c,function(m){m in i?r[m]=d(s[m],i[m]):m in s&&(r[m]=d(void 0,s[m]))});var f=g.concat(l).concat(n).concat(c),g=Object.keys(s).concat(Object.keys(i)).filter(function(m){return f.indexOf(m)===-1});return e.forEach(g,u),r}},{"../utils":130}],116:[function(o,a,t){var e=o("./createError");a.exports=function(s,i,r){var l=r.config.validateStatus;r.status&&l&&!l(r.status)?i(e("Request failed with status code "+r.status,r.config,null,r.request,r)):s(r)}},{"./createError":112}],117:[function(o,a,t){var e=o("./../utils"),s=o("./../defaults");a.exports=function(i,r,l){var n=this||s;return e.forEach(l,function(c){i=c.call(n,i,r)}),i}},{"./../defaults":118,"./../utils":130}],118:[function(o,a,t){(function(e){(function(){var s=o("./utils"),i=o("./helpers/normalizeHeaderName"),r=o("./core/enhanceError"),l={"Content-Type":"application/x-www-form-urlencoded"};function n(u,f){!s.isUndefined(u)&&s.isUndefined(u["Content-Type"])&&(u["Content-Type"]=f)}var c,d={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(typeof XMLHttpRequest<"u"?c=o("./adapters/xhr"):e!==void 0&&Object.prototype.toString.call(e)==="[object process]"&&(c=o("./adapters/http")),c),transformRequest:[function(u,f){if(i(f,"Accept"),i(f,"Content-Type"),s.isFormData(u)||s.isArrayBuffer(u)||s.isBuffer(u)||s.isStream(u)||s.isFile(u)||s.isBlob(u))return u;if(s.isArrayBufferView(u))return u.buffer;if(s.isURLSearchParams(u))return n(f,"application/x-www-form-urlencoded;charset=utf-8"),u.toString();if(s.isObject(u)||f&&f["Content-Type"]==="application/json"){n(f,"application/json");var f=u,g=void 0,m=void 0;if(s.isString(f))try{return(g||JSON.parse)(f),s.trim(f)}catch(v){if(v.name!=="SyntaxError")throw v}return(m||JSON.stringify)(f)}return u}],transformResponse:[function(u){var f=this.transitional,g=f&&f.silentJSONParsing,f=f&&f.forcedJSONParsing,g=!g&&this.responseType==="json";if(g||f&&s.isString(u)&&u.length)try{return JSON.parse(u)}catch(m){if(g)throw m.name==="SyntaxError"?r(m,this,"E_JSON_PARSE"):m}return u}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(u){return 200<=u&&u<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};s.forEach(["delete","get","head"],function(u){d.headers[u]={}}),s.forEach(["post","put","patch"],function(u){d.headers[u]=s.merge(l)}),a.exports=d}).call(this)}).call(this,o("_process"))},{"./adapters/http":104,"./adapters/xhr":104,"./core/enhanceError":114,"./helpers/normalizeHeaderName":126,"./utils":130,_process:149}],119:[function(o,a,t){a.exports=function(e,s){return function(){for(var i=new Array(arguments.length),r=0;r<i.length;r++)i[r]=arguments[r];return e.apply(s,i)}}},{}],120:[function(o,a,t){var e=o("./../utils");function s(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}a.exports=function(i,r,c){if(!r)return i;var n,c=c?c(r):e.isURLSearchParams(r)?r.toString():(n=[],e.forEach(r,function(d,u){d!=null&&(e.isArray(d)?u+="[]":d=[d],e.forEach(d,function(f){e.isDate(f)?f=f.toISOString():e.isObject(f)&&(f=JSON.stringify(f)),n.push(s(u)+"="+s(f))}))}),n.join("&"));return c&&((r=i.indexOf("#"))!==-1&&(i=i.slice(0,r)),i+=(i.indexOf("?")===-1?"?":"&")+c),i}},{"./../utils":130}],121:[function(o,a,t){a.exports=function(e,s){return s?e.replace(/\/+$/,"")+"/"+s.replace(/^\/+/,""):e}},{}],122:[function(o,a,t){var e=o("./../utils");a.exports=e.isStandardBrowserEnv()?{write:function(s,i,r,l,n,c){var d=[];d.push(s+"="+encodeURIComponent(i)),e.isNumber(r)&&d.push("expires="+new Date(r).toGMTString()),e.isString(l)&&d.push("path="+l),e.isString(n)&&d.push("domain="+n),c===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(s){return s=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)")),s?decodeURIComponent(s[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},{"./../utils":130}],123:[function(o,a,t){a.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},{}],124:[function(o,a,t){a.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}},{}],125:[function(o,a,t){var e,s,i,r=o("./../utils");function l(n){return s&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}a.exports=r.isStandardBrowserEnv()?(s=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),e=l(window.location.href),function(n){return n=r.isString(n)?l(n):n,n.protocol===e.protocol&&n.host===e.host}):function(){return!0}},{"./../utils":130}],126:[function(o,a,t){var e=o("../utils");a.exports=function(s,i){e.forEach(s,function(r,l){l!==i&&l.toUpperCase()===i.toUpperCase()&&(s[i]=r,delete s[l])})}},{"../utils":130}],127:[function(o,a,t){var e=o("./../utils"),s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];a.exports=function(i){var r,l,n={};return i&&e.forEach(i.split(`
|
|
72
|
+
`),function(c){l=c.indexOf(":"),r=e.trim(c.substr(0,l)).toLowerCase(),l=e.trim(c.substr(l+1)),!r||n[r]&&0<=s.indexOf(r)||(n[r]=r==="set-cookie"?(n[r]||[]).concat([l]):n[r]?n[r]+", "+l:l)}),n}},{"./../utils":130}],128:[function(o,a,t){a.exports=function(e){return function(s){return e.apply(null,s)}}},{}],129:[function(o,a,t){var e=o("./../../package.json"),s={},i=(["object","boolean","number","function","string","symbol"].forEach(function(n,c){s[n]=function(d){return typeof d===n||"a"+(c<1?"n ":" ")+n}}),{}),r=e.version.split(".");function l(n,c){for(var d=c?c.split("."):r,u=n.split("."),f=0;f<3;f++){if(d[f]>u[f])return!0;if(d[f]<u[f])return!1}return!1}s.transitional=function(n,c,d){var u=c&&l(c);function f(g,m){return"[Axios v"+e.version+"] Transitional option '"+g+"'"+m+(d?". "+d:"")}return function(g,m,h){if(n===!1)throw new Error(f(m," has been removed in "+c));return u&&!i[m]&&(i[m]=!0,f(m," has been deprecated since v"+c+" and will be removed in the near future")),!n||n(g,m,h)}},a.exports={isOlderVersion:l,assertOptions:function(n,c,d){if(typeof n!="object")throw new TypeError("options must be an object");for(var u=Object.keys(n),f=u.length;0<f--;){var g=u[f],m=c[g];if(m){var h=n[g],m=h===void 0||m(h,g,n);if(m!==!0)throw new TypeError("option "+g+" must be "+m)}else if(d!==!0)throw Error("Unknown option "+g)}},validators:s}},{"./../../package.json":131}],130:[function(o,a,t){var e=o("./helpers/bind"),s=Object.prototype.toString;function i(u){return s.call(u)==="[object Array]"}function r(u){return u===void 0}function l(u){return u!==null&&typeof u=="object"}function n(u){return s.call(u)!=="[object Object]"?!1:(u=Object.getPrototypeOf(u),u===null||u===Object.prototype)}function c(u){return s.call(u)==="[object Function]"}function d(u,f){if(u!=null)if(i(u=typeof u!="object"?[u]:u))for(var g=0,m=u.length;g<m;g++)f.call(null,u[g],g,u);else for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&f.call(null,u[h],h,u)}a.exports={isArray:i,isArrayBuffer:function(u){return s.call(u)==="[object ArrayBuffer]"},isBuffer:function(u){return u!==null&&!r(u)&&u.constructor!==null&&!r(u.constructor)&&typeof u.constructor.isBuffer=="function"&&u.constructor.isBuffer(u)},isFormData:function(u){return typeof FormData<"u"&&u instanceof FormData},isArrayBufferView:function(u){return u=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(u):u&&u.buffer&&u.buffer instanceof ArrayBuffer},isString:function(u){return typeof u=="string"},isNumber:function(u){return typeof u=="number"},isObject:l,isPlainObject:n,isUndefined:r,isDate:function(u){return s.call(u)==="[object Date]"},isFile:function(u){return s.call(u)==="[object File]"},isBlob:function(u){return s.call(u)==="[object Blob]"},isFunction:c,isStream:function(u){return l(u)&&c(u.pipe)},isURLSearchParams:function(u){return typeof URLSearchParams<"u"&&u instanceof URLSearchParams},isStandardBrowserEnv:function(){return(typeof navigator>"u"||navigator.product!=="ReactNative"&&navigator.product!=="NativeScript"&&navigator.product!=="NS")&&typeof window<"u"&&typeof document<"u"},forEach:d,merge:function u(){var f={};function g(v,b){n(f[b])&&n(v)?f[b]=u(f[b],v):n(v)?f[b]=u({},v):i(v)?f[b]=v.slice():f[b]=v}for(var m=0,h=arguments.length;m<h;m++)d(arguments[m],g);return f},extend:function(u,f,g){return d(f,function(m,h){u[h]=g&&typeof m=="function"?e(m,g):m}),u},trim:function(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")},stripBOM:function(u){return u=u.charCodeAt(0)===65279?u.slice(1):u}}},{"./helpers/bind":119}],131:[function(o,a,t){a.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}},{}],132:[function(o,a,t){t.byteLength=function(f){var f=c(f),u=f[0],f=f[1];return 3*(u+f)/4-f},t.toByteArray=function(d){var u,f,m=c(d),g=m[0],m=m[1],h=new i(function(_,R){return 3*(_+R)/4-R}(g,m)),v=0,b=0<m?g-4:g;for(f=0;f<b;f+=4)u=s[d.charCodeAt(f)]<<18|s[d.charCodeAt(f+1)]<<12|s[d.charCodeAt(f+2)]<<6|s[d.charCodeAt(f+3)],h[v++]=u>>16&255,h[v++]=u>>8&255,h[v++]=255&u;return m===2&&(u=s[d.charCodeAt(f)]<<2|s[d.charCodeAt(f+1)]>>4,h[v++]=255&u),m===1&&(u=s[d.charCodeAt(f)]<<10|s[d.charCodeAt(f+1)]<<4|s[d.charCodeAt(f+2)]>>2,h[v++]=u>>8&255,h[v++]=255&u),h},t.fromByteArray=function(d){for(var u,f=d.length,g=f%3,m=[],h=0,v=f-g;h<v;h+=16383)m.push(function(b,_,R){for(var x,w=[],O=_;O<R;O+=3)x=(b[O]<<16&16711680)+(b[O+1]<<8&65280)+(255&b[O+2]),w.push(function(I){return e[I>>18&63]+e[I>>12&63]+e[I>>6&63]+e[63&I]}(x));return w.join("")}(d,h,v<h+16383?v:h+16383));return g==1?(u=d[f-1],m.push(e[u>>2]+e[u<<4&63]+"==")):g==2&&(u=(d[f-2]<<8)+d[f-1],m.push(e[u>>10]+e[u>>4&63]+e[u<<2&63]+"=")),m.join("")};for(var e=[],s=[],i=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,n=r.length;l<n;++l)e[l]=r[l],s[r.charCodeAt(l)]=l;function c(d){var u=d.length;if(0<u%4)throw new Error("Invalid string. Length must be a multiple of 4");return d=d.indexOf("="),u=(d=d===-1?u:d)===u?0:4-d%4,[d,u]}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],133:[function(o,a,t){var e=Object.create||function(b){function _(){}return _.prototype=b,new _},s=Object.keys||function(b){var _,R=[];for(_ in b)Object.prototype.hasOwnProperty.call(b,_)&&R.push(_);return _},i=Function.prototype.bind||function(b){var _=this;return function(){return _.apply(b,arguments)}};function r(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=e(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((a.exports=r).EventEmitter=r).prototype._events=void 0,r.prototype._maxListeners=void 0;var l,n=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),l=c.x===0}catch{l=!1}function d(b){return b._maxListeners===void 0?r.defaultMaxListeners:b._maxListeners}function u(b,_,R,x){var w,O;if(typeof R!="function")throw new TypeError('"listener" argument must be a function');return(w=b._events)?(w.newListener&&(b.emit("newListener",_,R.listener||R),w=b._events),O=w[_]):(w=b._events=e(null),b._eventsCount=0),O?(typeof O=="function"?O=w[_]=x?[R,O]:[O,R]:x?O.unshift(R):O.push(R),O.warned||(x=d(b))&&0<x&&O.length>x&&(O.warned=!0,(x=new Error("Possible EventEmitter memory leak detected. "+O.length+' "'+String(_)+'" listeners added. Use emitter.setMaxListeners() to increase limit.')).name="MaxListenersExceededWarning",x.emitter=b,x.type=_,x.count=O.length,typeof console=="object"&&console.warn&&(x.name,x.message))):(O=w[_]=R,++b._eventsCount),b}function f(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var b=new Array(arguments.length),_=0;_<b.length;++_)b[_]=arguments[_];this.listener.apply(this.target,b)}}function g(b,_,R){return b={fired:!1,wrapFn:void 0,target:b,type:_,listener:R},_=i.call(f,b),_.listener=R,b.wrapFn=_}function m(b,_,R){if(b=b._events,!b)return[];if(b=b[_],b){if(typeof b=="function")return R?[b.listener||b]:[b];if(R){for(var x=b,w=new Array(x.length),O=0;O<w.length;++O)w[O]=x[O].listener||x[O];return w}else return v(b,b.length)}return[]}function h(b){var _=this._events;if(_){if(_=_[b],typeof _=="function")return 1;if(_)return _.length}return 0}function v(b,_){for(var R=new Array(_),x=0;x<_;++x)R[x]=b[x];return R}l?Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return n},set:function(b){if(typeof b!="number"||b<0||b!=b)throw new TypeError('"defaultMaxListeners" must be a positive number');n=b}}):r.defaultMaxListeners=n,r.prototype.setMaxListeners=function(b){if(typeof b!="number"||b<0||isNaN(b))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=b,this},r.prototype.getMaxListeners=function(){return d(this)},r.prototype.emit=function(b){var _,R,x,w,O=b==="error",I=this._events;if(I)O=O&&I.error==null;else if(!O)return!1;if(O)throw(_=1<arguments.length?arguments[1]:_)instanceof Error?_:((O=new Error('Unhandled "error" event. ('+_+")")).context=_,O);if(!(R=I[b]))return!1;var L,M=typeof R=="function";switch(L=arguments.length){case 1:var D=R,U=M,A=this;if(U)D.call(A);else for(var k=D.length,J=v(D,k),G=0;G<k;++G)J[G].call(A);break;case 2:var U=R,D=M,W=this,Q=arguments[1];if(D)U.call(W,Q);else for(var E=U.length,B=v(U,E),$=0;$<E;++$)B[$].call(W,Q);break;case 3:var j=R,P=M,C=this,N=arguments[1],Y=arguments[2];if(P)j.call(C,N,Y);else for(var tt=j.length,F=v(j,tt),z=0;z<tt;++z)F[z].call(C,N,Y);break;case 4:var P=R,j=M,V=this,K=arguments[1],rt=arguments[2],T=arguments[3];if(j)P.call(V,K,rt,T);else for(var ot=P.length,at=v(P,ot),q=0;q<ot;++q)at[q].call(V,K,rt,T);break;default:for(x=new Array(L-1),w=1;w<L;w++)x[w-1]=arguments[w];var ht=R,lt=M,bt=this,_t=x;if(lt)ht.apply(bt,_t);else for(var Dt=ht.length,Ft=v(ht,Dt),Qt=0;Qt<Dt;++Qt)Ft[Qt].apply(bt,_t)}return!0},r.prototype.on=r.prototype.addListener=function(b,_){return u(this,b,_,!1)},r.prototype.prependListener=function(b,_){return u(this,b,_,!0)},r.prototype.once=function(b,_){if(typeof _!="function")throw new TypeError('"listener" argument must be a function');return this.on(b,g(this,b,_)),this},r.prototype.prependOnceListener=function(b,_){if(typeof _!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(b,g(this,b,_)),this},r.prototype.removeListener=function(b,_){var R,x,w,O,I;if(typeof _!="function")throw new TypeError('"listener" argument must be a function');if(!(x=this._events))return this;if(!(R=x[b]))return this;if(R===_||R.listener===_)--this._eventsCount==0?this._events=e(null):(delete x[b],x.removeListener&&this.emit("removeListener",b,R.listener||_));else if(typeof R!="function"){for(w=-1,O=R.length-1;0<=O;O--)if(R[O]===_||R[O].listener===_){I=R[O].listener,w=O;break}if(w<0)return this;if(w===0)R.shift();else{for(var L=R,M=w,A=M+1,k=L.length;A<k;M+=1,A+=1)L[M]=L[A];L.pop()}R.length===1&&(x[b]=R[0]),x.removeListener&&this.emit("removeListener",b,I||_)}return this},r.prototype.removeAllListeners=function(b){var _,R=this._events;if(!R)return this;if(!R.removeListener)return arguments.length===0?(this._events=e(null),this._eventsCount=0):R[b]&&(--this._eventsCount==0?this._events=e(null):delete R[b]),this;if(arguments.length===0){for(var x,w=s(R),O=0;O<w.length;++O)(x=w[O])!=="removeListener"&&this.removeAllListeners(x);return this.removeAllListeners("removeListener"),this._events=e(null),this._eventsCount=0,this}if(typeof(_=R[b])=="function")this.removeListener(b,_);else if(_)for(O=_.length-1;0<=O;O--)this.removeListener(b,_[O]);return this},r.prototype.listeners=function(b){return m(this,b,!0)},r.prototype.rawListeners=function(b){return m(this,b,!1)},r.listenerCount=function(b,_){return typeof b.listenerCount=="function"?b.listenerCount(_):h.call(b,_)},r.prototype.listenerCount=h,r.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],134:[function(o,a,t){(function(e){(function(){var s=this,i=typeof t=="object"&&t&&!t.nodeType&&t,r=typeof a=="object"&&a&&!a.nodeType&&a,l=typeof e=="object"&&e;l.global!==l&&l.window!==l&&l.self!==l||(s=l);var n,c,d=2147483647,u=36,f=26,g=38,m=700,h=/^xn--/,v=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},R=u-1,x=Math.floor,w=String.fromCharCode;function O(D){throw new RangeError(_[D])}function I(D,W){for(var Q=D.length,E=[];Q--;)E[Q]=W(D[Q]);return E}function L(D,W){var E=D.split("@"),Q="",E=(1<E.length&&(Q=E[0]+"@",D=E[1]),(D=D.replace(b,".")).split("."));return Q+I(E,W).join(".")}function M(D){for(var W,Q,E=[],B=0,$=D.length;B<$;)55296<=(W=D.charCodeAt(B++))&&W<=56319&&B<$?(64512&(Q=D.charCodeAt(B++)))==56320?E.push(((1023&W)<<10)+(1023&Q)+65536):(E.push(W),B--):E.push(W);return E}function A(D){return I(D,function(W){var Q="";return 65535<W&&(Q+=w((W-=65536)>>>10&1023|55296),W=56320|1023&W),Q+=w(W)}).join("")}function k(D,W){return D+22+75*(D<26)-((W!=0)<<5)}function J(D,W,Q){var E=0;for(D=Q?x(D/m):D>>1,D+=x(D/W);R*f>>1<D;E+=u)D=x(D/R);return x(E+(R+1)*D/(D+g))}function G(D){var W,Q,E,B,$,C,N,Y=[],tt=D.length,F=0,z=128,P=72,j=D.lastIndexOf("-");for(j<0&&(j=0),Q=0;Q<j;++Q)128<=D.charCodeAt(Q)&&O("not-basic"),Y.push(D.charCodeAt(Q));for(E=0<j?j+1:0;E<tt;){for(B=F,$=1,C=u;tt<=E&&O("invalid-input"),N=D.charCodeAt(E++),(u<=(N=N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:u)||N>x((d-F)/$))&&O("overflow"),F+=N*$,!(N<(N=C<=P?1:P+f<=C?f:C-P));C+=u)$>x(d/(N=u-N))&&O("overflow"),$*=N;P=J(F-B,W=Y.length+1,B==0),x(F/W)>d-z&&O("overflow"),z+=x(F/W),F%=W,Y.splice(F++,0,z)}return A(Y)}function U(D){for(var W,Q,E,B,$,C,N,Y,tt,F,z=[],P=(D=M(D)).length,j=128,V=72,K=W=0;K<P;++K)(N=D[K])<128&&z.push(w(N));for(Q=E=z.length,E&&z.push("-");Q<P;){for(B=d,K=0;K<P;++K)j<=(N=D[K])&&N<B&&(B=N);for(B-j>x((d-W)/(Y=Q+1))&&O("overflow"),W+=(B-j)*Y,j=B,K=0;K<P;++K)if((N=D[K])<j&&++W>d&&O("overflow"),N==j){for($=W,C=u;!($<(tt=C<=V?1:V+f<=C?f:C-V));C+=u)z.push(w(k(tt+(F=$-tt)%(tt=u-tt),0))),$=x(F/tt);z.push(w(k($,0))),V=J(W,Y,Q==E),W=0,++Q}++W,++j}return z.join("")}if(n={version:"1.4.1",ucs2:{decode:M,encode:A},decode:G,encode:U,toASCII:function(D){return L(D,function(W){return v.test(W)?"xn--"+U(W):W})},toUnicode:function(D){return L(D,function(W){return h.test(W)?G(W.slice(4).toLowerCase()):W})}},i&&r)if(a.exports==i)r.exports=n;else for(c in n)n.hasOwnProperty(c)&&(i[c]=n[c]);else s.punycode=n}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],135:[function(o,a,t){(function(e){(function(){var s=o("base64-js"),i=o("ieee754"),r=(t.Buffer=n,t.SlowBuffer=function(E){return+E!=E&&(E=0),n.alloc(+E)},t.INSPECT_MAX_BYTES=50,2147483647);function l(E){if(r<E)throw new RangeError('The value "'+E+'" is invalid for option "size"');return E=new Uint8Array(E),E.__proto__=n.prototype,E}function n(E,B,$){if(typeof E!="number")return c(E,B,$);if(typeof B=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(E)}function c(E,B,$){if(typeof E=="string"){var C=E,N=B;if(!n.isEncoding(N=typeof N=="string"&&N!==""?N:"utf8"))throw new TypeError("Unknown encoding: "+N);var Y=0|m(C,N),tt=l(Y);return tt=(C=tt.write(C,N))!==Y?tt.slice(0,C):tt}if(ArrayBuffer.isView(E))return f(E);if(E==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(W(E,ArrayBuffer)||E&&W(E.buffer,ArrayBuffer)){if(N=E,Y=B,C=$,Y<0||N.byteLength<Y)throw new RangeError('"offset" is outside of buffer bounds');if(N.byteLength<Y+(C||0))throw new RangeError('"length" is outside of buffer bounds');return(N=Y===void 0&&C===void 0?new Uint8Array(N):C===void 0?new Uint8Array(N,Y):new Uint8Array(N,Y,C)).__proto__=n.prototype,N}if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');if(tt=E.valueOf&&E.valueOf(),tt!=null&&tt!==E)return n.from(tt,B,$);var F=function(z){{var P,j;if(n.isBuffer(z))return P=0|g(z.length),(j=l(P)).length===0||z.copy(j,0,0,P),j}if(z.length!==void 0)return typeof z.length!="number"||Q(z.length)?l(0):f(z);if(z.type==="Buffer"&&Array.isArray(z.data))return f(z.data)}(E);if(F)return F;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return n.from(E[Symbol.toPrimitive]("string"),B,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}function d(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function u(E){return d(E),l(E<0?0:0|g(E))}function f(E){for(var B=E.length<0?0:0|g(E.length),$=l(B),C=0;C<B;C+=1)$[C]=255&E[C];return $}function g(E){if(r<=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|E}function m(E,B){if(n.isBuffer(E))return E.length;if(ArrayBuffer.isView(E)||W(E,ArrayBuffer))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);var $=E.length,C=2<arguments.length&&arguments[2]===!0;if(!C&&$===0)return 0;for(var N=!1;;)switch(B){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return G(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*$;case"hex":return $>>>1;case"base64":return U(E).length;default:if(N)return C?-1:G(E).length;B=(""+B).toLowerCase(),N=!0}}function h(E,B,$){var C,N=!1;if((B=B===void 0||B<0?0:B)>this.length||($=$===void 0||$>this.length?this.length:$)<=0||($>>>=0)<=(B>>>=0))return"";for(E=E||"utf8";;)switch(E){case"hex":var Y=this,ot=B,tt=$,j=Y.length;(!tt||tt<0||j<tt)&&(tt=j);for(var F="",z=ot=!ot||ot<0?0:ot;z<tt;++z)F+=function(Qt){return Qt<16?"0"+Qt.toString(16):Qt.toString(16)}(Y[z]);return F;case"utf8":case"utf-8":return w(this,B,$);case"ascii":var P=this,j=B,V=$,K="";V=Math.min(P.length,V);for(var rt=j;rt<V;++rt)K+=String.fromCharCode(127&P[rt]);return K;case"latin1":case"binary":var T=this,ot=B,at=$,q="";at=Math.min(T.length,at);for(var ht=ot;ht<at;++ht)q+=String.fromCharCode(T[ht]);return q;case"base64":return lt=this,C=$,(bt=B)===0&&C===lt.length?s.fromByteArray(lt):s.fromByteArray(lt.slice(bt,C));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var lt=B,bt=$,_t=this.slice(lt,bt),Dt="",Ft=0;Ft<_t.length;Ft+=2)Dt+=String.fromCharCode(_t[Ft]+256*_t[Ft+1]);return Dt;default:if(N)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),N=!0}}function v(E,B,$){var C=E[B];E[B]=E[$],E[$]=C}function b(E,B,$,C,N){if(E.length===0)return-1;if(typeof $=="string"?(C=$,$=0):2147483647<$?$=2147483647:$<-2147483648&&($=-2147483648),($=($=Q($=+$)?N?0:E.length-1:$)<0?E.length+$:$)>=E.length){if(N)return-1;$=E.length-1}else if($<0){if(!N)return-1;$=0}if(typeof B=="string"&&(B=n.from(B,C)),n.isBuffer(B))return B.length===0?-1:_(E,B,$,C,N);if(typeof B=="number")return B&=255,typeof Uint8Array.prototype.indexOf=="function"?(N?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(E,B,$):_(E,[B],$,C,N);throw new TypeError("val must be string, number or Buffer")}function _(E,B,$,C,N){var Y=1,tt=E.length,F=B.length;if(C!==void 0&&((C=String(C).toLowerCase())==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(E.length<2||B.length<2)return-1;tt/=Y=2,F/=2,$/=2}function z(rt,T){return Y===1?rt[T]:rt.readUInt16BE(T*Y)}if(N)for(var P=-1,j=$;j<tt;j++)if(z(E,j)===z(B,P===-1?0:j-P)){if(j-(P=P===-1?j:P)+1===F)return P*Y}else P!==-1&&(j-=j-P),P=-1;else for(j=$=tt<$+F?tt-F:$;0<=j;j--){for(var V=!0,K=0;K<F;K++)if(z(E,j+K)!==z(B,K)){V=!1;break}if(V)return j}return-1}function R(E,B,$,C){return D(function(N){for(var Y=[],tt=0;tt<N.length;++tt)Y.push(255&N.charCodeAt(tt));return Y}(B),E,$,C)}function x(E,B,$,C){return D(function(N,Y){for(var tt,F,z=[],P=0;P<N.length&&!((Y-=2)<0);++P)F=N.charCodeAt(P),tt=F>>8,F=F%256,z.push(F),z.push(tt);return z}(B,E.length-$),E,$,C)}function w(E,B,$){$=Math.min(E.length,$);for(var C=[],N=B;N<$;){var Y,tt,F,z,P=E[N],j=null,V=239<P?4:223<P?3:191<P?2:1;if(N+V<=$)switch(V){case 1:P<128&&(j=P);break;case 2:(192&(Y=E[N+1]))==128&&127<(z=(31&P)<<6|63&Y)&&(j=z);break;case 3:Y=E[N+1],tt=E[N+2],(192&Y)==128&&(192&tt)==128&&2047<(z=(15&P)<<12|(63&Y)<<6|63&tt)&&(z<55296||57343<z)&&(j=z);break;case 4:Y=E[N+1],tt=E[N+2],F=E[N+3],(192&Y)==128&&(192&tt)==128&&(192&F)==128&&65535<(z=(15&P)<<18|(63&Y)<<12|(63&tt)<<6|63&F)&&z<1114112&&(j=z)}j===null?(j=65533,V=1):65535<j&&(j-=65536,C.push(j>>>10&1023|55296),j=56320|1023&j),C.push(j),N+=V}var K=C,rt=K.length;if(rt<=O)return String.fromCharCode.apply(String,K);for(var T="",ot=0;ot<rt;)T+=String.fromCharCode.apply(String,K.slice(ot,ot+=O));return T}t.kMaxLength=r,(n.TYPED_ARRAY_SUPPORT=function(){try{var E=new Uint8Array(1);return E.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},E.foo()===42}catch{return!1}}())||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),n.poolSize=8192,n.from=c,n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,n.alloc=function(E,B,$){return B=B,$=$,d(E=E),!(E<=0)&&B!==void 0?typeof $=="string"?l(E).fill(B,$):l(E).fill(B):l(E)},n.allocUnsafe=u,n.allocUnsafeSlow=u,n.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==n.prototype},n.compare=function(E,B){if(W(E,Uint8Array)&&(E=n.from(E,E.offset,E.byteLength)),W(B,Uint8Array)&&(B=n.from(B,B.offset,B.byteLength)),!n.isBuffer(E)||!n.isBuffer(B))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===B)return 0;for(var $=E.length,C=B.length,N=0,Y=Math.min($,C);N<Y;++N)if(E[N]!==B[N]){$=E[N],C=B[N];break}return $<C?-1:C<$?1:0},n.isEncoding=function(E){switch(String(E).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(E,B){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return n.alloc(0);if(B===void 0)for(N=B=0;N<E.length;++N)B+=E[N].length;for(var $=n.allocUnsafe(B),C=0,N=0;N<E.length;++N){var Y=E[N];if(W(Y,Uint8Array)&&(Y=n.from(Y)),!n.isBuffer(Y))throw new TypeError('"list" argument must be an Array of Buffers');Y.copy($,C),C+=Y.length}return $},n.byteLength=m,n.prototype._isBuffer=!0,n.prototype.swap16=function(){var E=this.length;if(E%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var B=0;B<E;B+=2)v(this,B,B+1);return this},n.prototype.swap32=function(){var E=this.length;if(E%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var B=0;B<E;B+=4)v(this,B,B+3),v(this,B+1,B+2);return this},n.prototype.swap64=function(){var E=this.length;if(E%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var B=0;B<E;B+=8)v(this,B,B+7),v(this,B+1,B+6),v(this,B+2,B+5),v(this,B+3,B+4);return this},n.prototype.toLocaleString=n.prototype.toString=function(){var E=this.length;return E===0?"":arguments.length===0?w(this,0,E):h.apply(this,arguments)},n.prototype.equals=function(E){if(n.isBuffer(E))return this===E||n.compare(this,E)===0;throw new TypeError("Argument must be a Buffer")},n.prototype.inspect=function(){var B="",E=t.INSPECT_MAX_BYTES,B=this.toString("hex",0,E).replace(/(.{2})/g,"$1 ").trim();return this.length>E&&(B+=" ... "),"<Buffer "+B+">"},n.prototype.compare=function(E,B,$,C,N){if(W(E,Uint8Array)&&(E=n.from(E,E.offset,E.byteLength)),!n.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if($===void 0&&($=E?E.length:0),C===void 0&&(C=0),N===void 0&&(N=this.length),(B=B===void 0?0:B)<0||$>E.length||C<0||N>this.length)throw new RangeError("out of range index");if(N<=C&&$<=B)return 0;if(N<=C)return-1;if($<=B)return 1;if(this===E)return 0;for(var Y=(N>>>=0)-(C>>>=0),tt=($>>>=0)-(B>>>=0),F=Math.min(Y,tt),z=this.slice(C,N),P=E.slice(B,$),j=0;j<F;++j)if(z[j]!==P[j]){Y=z[j],tt=P[j];break}return Y<tt?-1:tt<Y?1:0},n.prototype.includes=function(E,B,$){return this.indexOf(E,B,$)!==-1},n.prototype.indexOf=function(E,B,$){return b(this,E,B,$,!0)},n.prototype.lastIndexOf=function(E,B,$){return b(this,E,B,$,!1)},n.prototype.write=function(E,B,$,C){if(B===void 0)C="utf8",$=this.length,B=0;else if($===void 0&&typeof B=="string")C=B,$=this.length,B=0;else{if(!isFinite(B))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");B>>>=0,isFinite($)?($>>>=0,C===void 0&&(C="utf8")):(C=$,$=void 0)}var N=this.length-B;if(($===void 0||N<$)&&($=N),0<E.length&&($<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");C=C||"utf8";for(var Y,tt,F,z=!1;;)switch(C){case"hex":var P=this,j=E,V=B,K=$,rt=(V=Number(V)||0,P.length-V);(!K||rt<(K=Number(K)))&&(K=rt),(rt=j.length)/2<K&&(K=rt/2);for(var T=0;T<K;++T){var ot=parseInt(j.substr(2*T,2),16);if(Q(ot))return T;P[V+T]=ot}return T;case"utf8":case"utf-8":return rt=B,F=$,D(G(E,(tt=this).length-rt),tt,rt,F);case"ascii":return R(this,E,B,$);case"latin1":case"binary":return R(this,E,B,$);case"base64":return tt=this,F=B,Y=$,D(U(E),tt,F,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,E,B,$);default:if(z)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),z=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function I(E,B,$){if(E%1!=0||E<0)throw new RangeError("offset is not uint");if($<E+B)throw new RangeError("Trying to access beyond buffer length")}function L(E,B,$,C,N,Y){if(!n.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(N<B||B<Y)throw new RangeError('"value" argument is out of bounds');if($+C>E.length)throw new RangeError("Index out of range")}function M(E,B,$,C){if($+C>E.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function A(E,B,$,C,N){return B=+B,$>>>=0,N||M(E,0,$,4),i.write(E,B,$,C,23,4),$+4}function k(E,B,$,C,N){return B=+B,$>>>=0,N||M(E,0,$,8),i.write(E,B,$,C,52,8),$+8}n.prototype.slice=function(E,B){var $=this.length,$=((E=~~E)<0?(E+=$)<0&&(E=0):$<E&&(E=$),(B=B===void 0?$:~~B)<0?(B+=$)<0&&(B=0):$<B&&(B=$),B<E&&(B=E),this.subarray(E,B));return $.__proto__=n.prototype,$},n.prototype.readUIntLE=function(E,B,$){E>>>=0,B>>>=0,$||I(E,B,this.length);for(var C=this[E],N=1,Y=0;++Y<B&&(N*=256);)C+=this[E+Y]*N;return C},n.prototype.readUIntBE=function(E,B,$){E>>>=0,B>>>=0,$||I(E,B,this.length);for(var C=this[E+--B],N=1;0<B&&(N*=256);)C+=this[E+--B]*N;return C},n.prototype.readUInt8=function(E,B){return E>>>=0,B||I(E,1,this.length),this[E]},n.prototype.readUInt16LE=function(E,B){return E>>>=0,B||I(E,2,this.length),this[E]|this[E+1]<<8},n.prototype.readUInt16BE=function(E,B){return E>>>=0,B||I(E,2,this.length),this[E]<<8|this[E+1]},n.prototype.readUInt32LE=function(E,B){return E>>>=0,B||I(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+16777216*this[E+3]},n.prototype.readUInt32BE=function(E,B){return E>>>=0,B||I(E,4,this.length),16777216*this[E]+(this[E+1]<<16|this[E+2]<<8|this[E+3])},n.prototype.readIntLE=function(E,B,$){E>>>=0,B>>>=0,$||I(E,B,this.length);for(var C=this[E],N=1,Y=0;++Y<B&&(N*=256);)C+=this[E+Y]*N;return(N*=128)<=C&&(C-=Math.pow(2,8*B)),C},n.prototype.readIntBE=function(E,B,$){E>>>=0,B>>>=0,$||I(E,B,this.length);for(var C=B,N=1,Y=this[E+--C];0<C&&(N*=256);)Y+=this[E+--C]*N;return(N*=128)<=Y&&(Y-=Math.pow(2,8*B)),Y},n.prototype.readInt8=function(E,B){return E>>>=0,B||I(E,1,this.length),128&this[E]?-1*(255-this[E]+1):this[E]},n.prototype.readInt16LE=function(E,B){return E>>>=0,B||I(E,2,this.length),B=this[E]|this[E+1]<<8,32768&B?4294901760|B:B},n.prototype.readInt16BE=function(E,B){return E>>>=0,B||I(E,2,this.length),B=this[E+1]|this[E]<<8,32768&B?4294901760|B:B},n.prototype.readInt32LE=function(E,B){return E>>>=0,B||I(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},n.prototype.readInt32BE=function(E,B){return E>>>=0,B||I(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},n.prototype.readFloatLE=function(E,B){return E>>>=0,B||I(E,4,this.length),i.read(this,E,!0,23,4)},n.prototype.readFloatBE=function(E,B){return E>>>=0,B||I(E,4,this.length),i.read(this,E,!1,23,4)},n.prototype.readDoubleLE=function(E,B){return E>>>=0,B||I(E,8,this.length),i.read(this,E,!0,52,8)},n.prototype.readDoubleBE=function(E,B){return E>>>=0,B||I(E,8,this.length),i.read(this,E,!1,52,8)},n.prototype.writeUIntLE=function(E,B,$,C){E=+E,B>>>=0,$>>>=0,C||L(this,E,B,$,Math.pow(2,8*$)-1,0);var N=1,Y=0;for(this[B]=255&E;++Y<$&&(N*=256);)this[B+Y]=E/N&255;return B+$},n.prototype.writeUIntBE=function(E,B,$,C){E=+E,B>>>=0,$>>>=0,C||L(this,E,B,$,Math.pow(2,8*$)-1,0);var N=$-1,Y=1;for(this[B+N]=255&E;0<=--N&&(Y*=256);)this[B+N]=E/Y&255;return B+$},n.prototype.writeUInt8=function(E,B,$){return E=+E,B>>>=0,$||L(this,E,B,1,255,0),this[B]=255&E,B+1},n.prototype.writeUInt16LE=function(E,B,$){return E=+E,B>>>=0,$||L(this,E,B,2,65535,0),this[B]=255&E,this[B+1]=E>>>8,B+2},n.prototype.writeUInt16BE=function(E,B,$){return E=+E,B>>>=0,$||L(this,E,B,2,65535,0),this[B]=E>>>8,this[B+1]=255&E,B+2},n.prototype.writeUInt32LE=function(E,B,$){return E=+E,B>>>=0,$||L(this,E,B,4,4294967295,0),this[B+3]=E>>>24,this[B+2]=E>>>16,this[B+1]=E>>>8,this[B]=255&E,B+4},n.prototype.writeUInt32BE=function(E,B,$){return E=+E,B>>>=0,$||L(this,E,B,4,4294967295,0),this[B]=E>>>24,this[B+1]=E>>>16,this[B+2]=E>>>8,this[B+3]=255&E,B+4},n.prototype.writeIntLE=function(E,B,$,C){E=+E,B>>>=0,C||L(this,E,B,$,(C=Math.pow(2,8*$-1))-1,-C);var N=0,Y=1,tt=0;for(this[B]=255&E;++N<$&&(Y*=256);)E<0&&tt===0&&this[B+N-1]!==0&&(tt=1),this[B+N]=(E/Y>>0)-tt&255;return B+$},n.prototype.writeIntBE=function(E,B,$,C){E=+E,B>>>=0,C||L(this,E,B,$,(C=Math.pow(2,8*$-1))-1,-C);var N=$-1,Y=1,tt=0;for(this[B+N]=255&E;0<=--N&&(Y*=256);)E<0&&tt===0&&this[B+N+1]!==0&&(tt=1),this[B+N]=(E/Y>>0)-tt&255;return B+$},n.prototype.writeInt8=function(E,B,$){return E=+E,B>>>=0,$||L(this,E,B,1,127,-128),this[B]=255&(E=E<0?255+E+1:E),B+1},n.prototype.writeInt16LE=function(E,B,$){return E=+E,B>>>=0,$||L(this,E,B,2,32767,-32768),this[B]=255&E,this[B+1]=E>>>8,B+2},n.prototype.writeInt16BE=function(E,B,$){return E=+E,B>>>=0,$||L(this,E,B,2,32767,-32768),this[B]=E>>>8,this[B+1]=255&E,B+2},n.prototype.writeInt32LE=function(E,B,$){return E=+E,B>>>=0,$||L(this,E,B,4,2147483647,-2147483648),this[B]=255&E,this[B+1]=E>>>8,this[B+2]=E>>>16,this[B+3]=E>>>24,B+4},n.prototype.writeInt32BE=function(E,B,$){return E=+E,B>>>=0,$||L(this,E,B,4,2147483647,-2147483648),this[B]=(E=E<0?4294967295+E+1:E)>>>24,this[B+1]=E>>>16,this[B+2]=E>>>8,this[B+3]=255&E,B+4},n.prototype.writeFloatLE=function(E,B,$){return A(this,E,B,!0,$)},n.prototype.writeFloatBE=function(E,B,$){return A(this,E,B,!1,$)},n.prototype.writeDoubleLE=function(E,B,$){return k(this,E,B,!0,$)},n.prototype.writeDoubleBE=function(E,B,$){return k(this,E,B,!1,$)},n.prototype.copy=function(E,B,$,C){if(!n.isBuffer(E))throw new TypeError("argument should be a Buffer");if($=$||0,C||C===0||(C=this.length),B>=E.length&&(B=E.length),(C=0<C&&C<$?$:C)===$||E.length===0||this.length===0)return 0;if((B=B||0)<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length);var N=(C=E.length-B<C-$?E.length-B+$:C)-$;if(this===E&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(B,$,C);else if(this===E&&$<B&&B<C)for(var Y=N-1;0<=Y;--Y)E[Y+B]=this[Y+$];else Uint8Array.prototype.set.call(E,this.subarray($,C),B);return N},n.prototype.fill=function(E,B,$,C){if(typeof E=="string"){if(typeof B=="string"?(C=B,B=0,$=this.length):typeof $=="string"&&(C=$,$=this.length),C!==void 0&&typeof C!="string")throw new TypeError("encoding must be a string");if(typeof C=="string"&&!n.isEncoding(C))throw new TypeError("Unknown encoding: "+C);var N;E.length===1&&(N=E.charCodeAt(0),(C==="utf8"&&N<128||C==="latin1")&&(E=N))}else typeof E=="number"&&(E&=255);if(B<0||this.length<B||this.length<$)throw new RangeError("Out of range index");if($<=B)return this;var Y;if(B>>>=0,$=$===void 0?this.length:$>>>0,typeof(E=E||0)=="number")for(Y=B;Y<$;++Y)this[Y]=E;else{var tt=n.isBuffer(E)?E:n.from(E,C),F=tt.length;if(F===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(Y=0;Y<$-B;++Y)this[Y+B]=tt[Y%F]}return this};var J=/[^+/0-9A-Za-z-_]/g;function G(E,B){B=B||1/0;for(var $,C=E.length,N=null,Y=[],tt=0;tt<C;++tt){if(55295<($=E.charCodeAt(tt))&&$<57344){if(!N){if(56319<$){-1<(B-=3)&&Y.push(239,191,189);continue}if(tt+1===C){-1<(B-=3)&&Y.push(239,191,189);continue}N=$;continue}if($<56320){-1<(B-=3)&&Y.push(239,191,189),N=$;continue}$=65536+(N-55296<<10|$-56320)}else N&&-1<(B-=3)&&Y.push(239,191,189);if(N=null,$<128){if(--B<0)break;Y.push($)}else if($<2048){if((B-=2)<0)break;Y.push($>>6|192,63&$|128)}else if($<65536){if((B-=3)<0)break;Y.push($>>12|224,$>>6&63|128,63&$|128)}else{if(!($<1114112))throw new Error("Invalid code point");if((B-=4)<0)break;Y.push($>>18|240,$>>12&63|128,$>>6&63|128,63&$|128)}}return Y}function U(E){return s.toByteArray(function(B){if((B=(B=B.split("=")[0]).trim().replace(J,"")).length<2)return"";for(;B.length%4!=0;)B+="=";return B}(E))}function D(E,B,$,C){for(var N=0;N<C&&!(N+$>=B.length||N>=E.length);++N)B[N+$]=E[N];return N}function W(E,B){return E instanceof B||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===B.name}function Q(E){return E!=E}}).call(this)}).call(this,o("buffer").Buffer)},{"base64-js":132,buffer:135,ieee754:145}],136:[function(o,a,t){(function(){var e={}.hasOwnProperty;function s(){for(var i=[],r=0;r<arguments.length;r++){var l=arguments[r];if(l){var n,c=typeof l;if(c=="string"||c=="number")i.push(l);else if(Array.isArray(l))!l.length||(n=s.apply(null,l))&&i.push(n);else if(c=="object")if(l.toString===Object.prototype.toString)for(var d in l)e.call(l,d)&&l[d]&&i.push(d);else i.push(l.toString())}}return i.join(" ")}a!==void 0&&a.exports?a.exports=s.default=s:window.classNames=s})()},{}],137:[function(o,a,t){function e(u){return!(!(f=u)||typeof f!="object"||(f=u,(u=Object.prototype.toString.call(f))==="[object RegExp]"||u==="[object Date]"||function(g){return g.$$typeof===s}(f)));var f}var s=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function i(u,f){return f.clone!==!1&&f.isMergeableObject(u)?d(Array.isArray(u)?[]:{},u,f):u}function r(u,f,g){return u.concat(f).map(function(m){return i(m,g)})}function l(u){return Object.keys(u).concat((f=u,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(f).filter(function(g){return f.propertyIsEnumerable(g)}):[]));var f}function n(u,f){try{return f in u}catch{return!1}}function c(u,f,g){var m={};return g.isMergeableObject(u)&&l(u).forEach(function(h){m[h]=i(u[h],g)}),l(f).forEach(function(h){var v,b;(!n(v=u,b=h)||Object.hasOwnProperty.call(v,b)&&Object.propertyIsEnumerable.call(v,b))&&(n(u,h)&&g.isMergeableObject(f[h])?m[h]=(v=h,((b=g).customMerge&&typeof(b=b.customMerge(v))=="function"?b:d)(u[h],f[h],g)):m[h]=i(f[h],g))}),m}function d(u,f,g){(g=g||{}).arrayMerge=g.arrayMerge||r,g.isMergeableObject=g.isMergeableObject||e,g.cloneUnlessOtherwiseSpecified=i;var m=Array.isArray(f);return m===Array.isArray(u)?m?g.arrayMerge(u,f,g):c(u,f,g):i(f,g)}d.all=function(u,f){if(Array.isArray(u))return u.reduce(function(g,m){return d(g,m,f)},{});throw new Error("first argument should be an array")},a.exports=d},{}],138:[function(o,a,t){a.exports=function(e,s,i,r,l,n,c,d){var u,f,g;if(!e)throw s===void 0?g=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(u=[i,r,l,n,c,d],f=0,(g=new Error(s.replace(/%s/g,function(){return u[f++]}))).name="Invariant Violation"),g.framesToPop=1,g}},{}],139:[function(o,a,t){a.exports.Dispatcher=o("./lib/Dispatcher")},{"./lib/Dispatcher":140}],140:[function(o,a,t){(function(e){(function(){t.__esModule=!0;var s=o("fbjs/lib/invariant");function i(){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}i.prototype.register=function(r){var l="ID_"+this._lastID++;return this._callbacks[l]=r,l},i.prototype.unregister=function(r){this._callbacks[r]||(e.env.NODE_ENV!=="production"?s(!1,"Dispatcher.unregister(...): `%s` does not map to a registered callback.",r):s(!1)),delete this._callbacks[r]},i.prototype.waitFor=function(r){this._isDispatching||(e.env.NODE_ENV!=="production"?s(!1,"Dispatcher.waitFor(...): Must be invoked while dispatching."):s(!1));for(var l=0;l<r.length;l++){var n=r[l];this._isPending[n]?this._isHandled[n]||(e.env.NODE_ENV!=="production"?s(!1,"Dispatcher.waitFor(...): Circular dependency detected while waiting for `%s`.",n):s(!1)):(this._callbacks[n]||(e.env.NODE_ENV!=="production"?s(!1,"Dispatcher.waitFor(...): `%s` does not map to a registered callback.",n):s(!1)),this._invokeCallback(n))}},i.prototype.dispatch=function(r){this._isDispatching&&(e.env.NODE_ENV!=="production"?s(!1,"Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch."):s(!1)),this._startDispatching(r);try{for(var l in this._callbacks)this._isPending[l]||this._invokeCallback(l)}finally{this._stopDispatching()}},i.prototype.isDispatching=function(){return this._isDispatching},i.prototype._invokeCallback=function(r){this._isPending[r]=!0,this._callbacks[r](this._pendingPayload),this._isHandled[r]=!0},i.prototype._startDispatching=function(r){for(var l in this._callbacks)this._isPending[l]=!1,this._isHandled[l]=!1;this._pendingPayload=r,this._isDispatching=!0},i.prototype._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},a.exports=i}).call(this)}).call(this,o("_process"))},{_process:149,"fbjs/lib/invariant":138}],141:[function(o,a,t){var e=o("react-is"),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function n(h){return e.isMemo(h)?r:l[h.$$typeof]||s}l[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[e.Memo]=r;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;a.exports=function h(v,b,_){if(typeof b!="string"){m&&(R=g(b))&&R!==m&&h(v,R,_);for(var R,x=d(b),w=(u&&(x=x.concat(u(b))),n(v)),O=n(b),I=0;I<x.length;++I){var L=x[I];if(!(i[L]||_&&_[L]||O&&O[L]||w&&w[L])){var M=f(b,L);try{c(v,L,M)}catch{}}}}return v}},{"react-is":144}],142:[function(o,a,t){(function(e){(function(){function s($){if(typeof $=="object"&&$!==null){var C=$.$$typeof;switch(C){case l:var N=$.type;switch(N){case m:case h:case c:case u:case d:case b:return N;default:var Y=N&&N.$$typeof;switch(Y){case g:case v:case x:case R:case f:return Y;default:return C}}case n:return C}}}function i($){return s($)===h}var r,l,n,c,d,u,f,g,m,h,v,b,_,R,x,w,O,I,L,M,A,k,J,G,U,D,W,Q,E,B;e.env.NODE_ENV!=="production"&&(r=typeof Symbol=="function"&&Symbol.for,l=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,c=r?Symbol.for("react.fragment"):60107,d=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,f=r?Symbol.for("react.provider"):60109,g=r?Symbol.for("react.context"):60110,m=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,v=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,_=r?Symbol.for("react.suspense_list"):60120,R=r?Symbol.for("react.memo"):60115,x=r?Symbol.for("react.lazy"):60116,w=r?Symbol.for("react.block"):60121,O=r?Symbol.for("react.fundamental"):60117,I=r?Symbol.for("react.responder"):60118,L=r?Symbol.for("react.scope"):60119,r=h,M=g,A=f,k=l,J=v,G=c,U=x,D=R,W=n,Q=u,E=d,B=b,t.AsyncMode=m,t.ConcurrentMode=r,t.ContextConsumer=M,t.ContextProvider=A,t.Element=k,t.ForwardRef=J,t.Fragment=G,t.Lazy=U,t.Memo=D,t.Portal=W,t.Profiler=Q,t.StrictMode=E,t.Suspense=B,t.isAsyncMode=function($){return i($)||s($)===m},t.isConcurrentMode=i,t.isContextConsumer=function($){return s($)===g},t.isContextProvider=function($){return s($)===f},t.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===l},t.isForwardRef=function($){return s($)===v},t.isFragment=function($){return s($)===c},t.isLazy=function($){return s($)===x},t.isMemo=function($){return s($)===R},t.isPortal=function($){return s($)===n},t.isProfiler=function($){return s($)===u},t.isStrictMode=function($){return s($)===d},t.isSuspense=function($){return s($)===b},t.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===c||$===h||$===u||$===d||$===b||$===_||typeof $=="object"&&$!==null&&($.$$typeof===x||$.$$typeof===R||$.$$typeof===f||$.$$typeof===g||$.$$typeof===v||$.$$typeof===O||$.$$typeof===I||$.$$typeof===L||$.$$typeof===w)},t.typeOf=s)}).call(this)}).call(this,o("_process"))},{_process:149}],143:[function(o,a,t){var e=typeof Symbol=="function"&&Symbol.for,s=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function O(L){if(typeof L=="object"&&L!==null){var M=L.$$typeof;switch(M){case s:switch(L=L.type){case u:case f:case r:case n:case l:case m:return L;default:switch(L=L&&L.$$typeof){case d:case g:case b:case v:case c:return L;default:return M}}case i:return M}}}function I(L){return O(L)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=d,t.ContextProvider=c,t.Element=s,t.ForwardRef=g,t.Fragment=r,t.Lazy=b,t.Memo=v,t.Portal=i,t.Profiler=n,t.StrictMode=l,t.Suspense=m,t.isAsyncMode=function(L){return I(L)||O(L)===u},t.isConcurrentMode=I,t.isContextConsumer=function(L){return O(L)===d},t.isContextProvider=function(L){return O(L)===c},t.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===s},t.isForwardRef=function(L){return O(L)===g},t.isFragment=function(L){return O(L)===r},t.isLazy=function(L){return O(L)===b},t.isMemo=function(L){return O(L)===v},t.isPortal=function(L){return O(L)===i},t.isProfiler=function(L){return O(L)===n},t.isStrictMode=function(L){return O(L)===l},t.isSuspense=function(L){return O(L)===m},t.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===r||L===f||L===n||L===l||L===m||L===h||typeof L=="object"&&L!==null&&(L.$$typeof===b||L.$$typeof===v||L.$$typeof===c||L.$$typeof===d||L.$$typeof===g||L.$$typeof===R||L.$$typeof===x||L.$$typeof===w||L.$$typeof===_)},t.typeOf=O},{}],144:[function(o,a,t){(function(e){(function(){e.env.NODE_ENV==="production"?a.exports=o("./cjs/react-is.production.min.js"):a.exports=o("./cjs/react-is.development.js")}).call(this)}).call(this,o("_process"))},{"./cjs/react-is.development.js":142,"./cjs/react-is.production.min.js":143,_process:149}],145:[function(o,a,t){t.read=function(e,s,i,r,v){var n,c,d=8*v-r-1,u=(1<<d)-1,f=u>>1,g=-7,m=i?v-1:0,h=i?-1:1,v=e[s+m];for(m+=h,n=v&(1<<-g)-1,v>>=-g,g+=d;0<g;n=256*n+e[s+m],m+=h,g-=8);for(c=n&(1<<-g)-1,n>>=-g,g+=r;0<g;c=256*c+e[s+m],m+=h,g-=8);if(n===0)n=1-f;else{if(n===u)return c?NaN:1/0*(v?-1:1);c+=Math.pow(2,r),n-=f}return(v?-1:1)*c*Math.pow(2,n-r)},t.write=function(e,s,i,r,l,b){var c,d,u=8*b-l-1,f=(1<<u)-1,g=f>>1,m=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:b-1,v=r?1:-1,b=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,c=f):(c=Math.floor(Math.log(s)/Math.LN2),s*(r=Math.pow(2,-c))<1&&(c--,r*=2),2<=(s+=1<=c+g?m/r:m*Math.pow(2,1-g))*r&&(c++,r/=2),f<=c+g?(d=0,c=f):1<=c+g?(d=(s*r-1)*Math.pow(2,l),c+=g):(d=s*Math.pow(2,g-1)*Math.pow(2,l),c=0));8<=l;e[i+h]=255&d,h+=v,d/=256,l-=8);for(c=c<<l|d,u+=l;0<u;e[i+h]=255&c,h+=v,c/=256,u-=8);e[i+h-v]|=128*b}},{}],146:[function(u,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},s=function(g,m){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g)){var h=m,v=[],b=!0,m=!1,_=void 0;try{for(var R,x=g[Symbol.iterator]();!(b=(R=x.next()).done)&&(v.push(R.value),!h||v.length!==h);b=!0);}catch(O){m=!0,_=O}finally{try{!b&&x.return&&x.return()}finally{if(m)throw _}}return v}throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var h,v=arguments[m];for(h in v)Object.prototype.hasOwnProperty.call(v,h)&&(g[h]=v[h])}return g},r=function(g,m,h){return m&&l(g.prototype,m),h&&l(g,h),g};function l(g,m){for(var h=0;h<m.length;h++){var v=m[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}var n=function(g){{if(g&&g.__esModule)return g;var m={};if(g!=null)for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(m[h]=g[h]);return m.default=g,m}}(u("./utils")),c=/(\{[\d|\w]+\})/,d=/(\$ref\{[\w|.]+\})/,u=(r(f,[{key:"setContent",value:function(g){var m=this,h=Object.keys(g),h=s(h,1)[0];this._defaultLanguage=h,this._defaultLanguageFirstLevelKeys=[],this._props=g,n.validateTranslationKeys(Object.keys(g[this._defaultLanguage])),Object.keys(this._props[this._defaultLanguage]).forEach(function(v){typeof m._props[m._defaultLanguage][v]=="string"&&m._defaultLanguageFirstLevelKeys.push(v)}),this.setLanguage(this._interfaceLanguage),this._opts.pseudo&&this._pseudoAllValues(this._props)}},{key:"_pseudoAllValues",value:function(g){var m=this;Object.keys(g).forEach(function(h){if(e(g[h])==="object")m._pseudoAllValues(g[h]);else if(typeof g[h]=="string"&&(g[h].indexOf("[")!==0||g[h].lastIndexOf("]")!==g[h].length-1)){for(var v,b=g[h].split(" "),_=0;_<b.length;_+=1)b[_].match(c)||b[_].match(d)||(v=b[_].length,m._opts.pseudoMultipleLanguages&&(v=parseInt(1.4*v,10)),b[_]=n.randomPseudo(v));g[h]="["+b.join(" ")+"]"}})}},{key:"setLanguage",value:function(h){var m=this,h=n.getBestMatchingLanguage(h,this._props),v=Object.keys(this._props)[0];if(this._language=h,this._props[h]){for(var b=0;b<this._defaultLanguageFirstLevelKeys.length;b+=1)delete this[this._defaultLanguageFirstLevelKeys[b]];var _=i({},this._props[this._language]);Object.keys(_).forEach(function(R){m[R]=_[R]}),v!==this._language&&(_=this._props[v],this._fallbackValues(_,this))}}},{key:"_fallbackValues",value:function(g,m){var h=this;Object.keys(g).forEach(function(v){Object.prototype.hasOwnProperty.call(g,v)&&!m[v]&&m[v]!==""?(m[v]=g[v],h._opts.logsEnabled&&console.log("🚧 👷 key '"+v+"' not found in localizedStrings for language "+h._language+" 🚧")):typeof m[v]!="string"&&h._fallbackValues(g[v],m[v])})}},{key:"getLanguage",value:function(){return this._language}},{key:"getInterfaceLanguage",value:function(){return this._interfaceLanguage}},{key:"getAvailableLanguages",value:function(){var g=this;return this._availableLanguages||(this._availableLanguages=[],Object.keys(this._props).forEach(function(m){g._availableLanguages.push(m)})),this._availableLanguages}},{key:"formatString",value:function(g){for(var m=this,h=arguments.length,v=Array(1<h?h-1:0),b=1;b<h;b++)v[b-1]=arguments[b];var _=g||"";return(_=typeof _=="string"&&this.getString(g,null,!0)||_).split(d).filter(function(R){return!!R}).map(function(R){var x;return R.match(d)?(x=R.slice(5,-1),m.getString(x)||(m._opts.logsEnabled&&console.log("No Localization ref found for '"+R+"' in string '"+g+"'"),"$ref(id:"+x+")")):R}).join("").split(c).filter(function(R){return!!R}).map(function(R){if(R.match(c)){var x=R.slice(1,-1),w=v[x];if(w===void 0){if(x=v[0][x],x===void 0)return w;w=x}return w}return R}).join("")}},{key:"getString",value:function(g,m){var h=2<arguments.length&&arguments[2]!==void 0&&arguments[2];try{for(var v=this._props[m||this._language],b=g.split("."),_=0;_<b.length;_+=1){if(v[b[_]]===void 0)throw Error(b[_]);v=v[b[_]]}return v}catch(R){!h&&this._opts.logsEnabled&&console.log("No localization found for key '"+g+"' and language '"+m+"', failed on "+R.message)}return null}},{key:"getContent",value:function(){return this._props}}]),f);function f(g,m){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");this._opts=i({},{customLanguageInterface:n.getInterfaceLanguage,pseudo:!1,pseudoMultipleLanguages:!1,logsEnabled:!0},m=typeof m=="function"?{customLanguageInterface:m}:m),this._interfaceLanguage=this._opts.customLanguageInterface(),this._language=this._interfaceLanguage,this.setContent(g)}t.default=u},{"./utils":147}],147:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getInterfaceLanguage=function(){if(typeof navigator>"u")return"en-US";var e=navigator;if(e){if(e.language)return e.language;if(e.languages&&e.languages[0])return e.languages[0];if(e.userLanguage)return e.userLanguage;if(e.browserLanguage)return e.browserLanguage}return"en-US"},t.getBestMatchingLanguage=function(e,s){if(s[e])return e;var i=e.indexOf("-"),i=0<=i?e.substring(0,i):e;return s[i]?i:Object.keys(s)[0]},t.validateTranslationKeys=function(e){var s=["_interfaceLanguage","_language","_defaultLanguage","_defaultLanguageFirstLevelKeys","_props"];e.forEach(function(i){if(s.indexOf(i)!==-1)throw new Error(i+" cannot be used as a key. It is a reserved word.")})},t.randomPseudo=function(e){for(var s="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<e;r+=1)s+=i.charAt(Math.floor(Math.random()*i.length));return s}},{}],148:[function(o,a,t){var e=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;a.exports=function(){try{if(!Object.assign)return;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return;for(var l={},n=0;n<10;n++)l["_"+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(l).map(function(d){return l[d]}).join("")!=="0123456789")return;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")!=="abcdefghijklmnopqrst"?void 0:1}catch{return}}()?Object.assign:function(r,l){for(var n,c=function(m){if(m==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(m)}(r),d=1;d<arguments.length;d++){for(var u in n=Object(arguments[d]))s.call(n,u)&&(c[u]=n[u]);if(e)for(var f=e(n),g=0;g<f.length;g++)i.call(n,f[g])&&(c[f[g]]=n[f[g]])}return c}},{}],149:[function(o,i,t){var e,s,i=i.exports={};function r(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}try{e=typeof setTimeout=="function"?setTimeout:r}catch{e=r}try{s=typeof clearTimeout=="function"?clearTimeout:l}catch{s=l}function n(b){if(e===setTimeout)return setTimeout(b,0);if((e===r||!e)&&setTimeout)return(e=setTimeout)(b,0);try{return e(b,0)}catch{try{return e.call(null,b,0)}catch{return e.call(this,b,0)}}}var c,d=[],u=!1,f=-1;function g(){u&&c&&(u=!1,c.length?d=c.concat(d):f=-1,d.length&&m())}function m(){if(!u){for(var b=n(g),_=(u=!0,d.length);_;){for(c=d,d=[];++f<_;)c&&c[f].run();f=-1,_=d.length}c=null,u=!1,function(R){if(s===clearTimeout)return clearTimeout(R);if((s===l||!s)&&clearTimeout)return(s=clearTimeout)(R);try{s(R)}catch{try{return s.call(null,R)}catch{return s.call(this,R)}}}(b)}}function h(b,_){this.fun=b,this.array=_}function v(){}i.nextTick=function(b){var _=new Array(arguments.length-1);if(1<arguments.length)for(var R=1;R<arguments.length;R++)_[R-1]=arguments[R];d.push(new h(b,_)),d.length!==1||u||n(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(b){return[]},i.binding=function(b){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(b){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],150:[function(o,a,t){function e(s,i,r,l,n){}e.resetWarningCache=function(){},a.exports=e},{"./lib/ReactPropTypesSecret":154,"./lib/has":155}],151:[function(o,a,t){var e=o("./lib/ReactPropTypesSecret");function s(){}function i(){}i.resetWarningCache=s,a.exports=function(){function r(c,d,u,f,g,m){if(m!==e)throw m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"),m.name="Invariant Violation",m}function l(){return r}var n={array:r.isRequired=r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:l,element:r,elementType:r,instanceOf:l,node:r,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:i,resetWarningCache:s};return n.PropTypes=n}},{"./lib/ReactPropTypesSecret":154}],152:[function(o,a,t){var e=o("react-is"),s=o("object-assign"),i=o("./lib/ReactPropTypesSecret"),r=o("./lib/has"),l=o("./checkPropTypes"),n=function(){};function c(){return null}a.exports=function(d,u){var f=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator",m="<<anonymous>>",h={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:b(c),arrayOf:function(I){return b(function(L,M,A,k,J){if(typeof I!="function")return new v("Property `"+J+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var G=L[M];if(!Array.isArray(G))return new v("Invalid "+k+" `"+J+"` of type `"+w(G)+"` supplied to `"+A+"`, expected an array.");for(var U=0;U<G.length;U++){var D=I(G,U,A,k,J+"["+U+"]",i);if(D instanceof Error)return D}return null})},element:b(function(I,L,M,A,k){return I=I[L],d(I)?null:new v("Invalid "+A+" `"+k+"` of type `"+w(I)+"` supplied to `"+M+"`, expected a single ReactElement.")}),elementType:b(function(I,L,M,A,k){return I=I[L],e.isValidElementType(I)?null:new v("Invalid "+A+" `"+k+"` of type `"+w(I)+"` supplied to `"+M+"`, expected a single ReactElement type.")}),instanceOf:function(I){return b(function(L,M,A,k,J){var G;return L[M]instanceof I?null:(G=I.name||m,new v("Invalid "+k+" `"+J+"` of type `"+((k=L[M]).constructor&&k.constructor.name?k.constructor.name:m)+"` supplied to `"+A+"`, expected instance of `"+G+"`."))})},node:b(function(I,L,M,A,k){return x(I[L])?null:new v("Invalid "+A+" `"+k+"` supplied to `"+M+"`, expected a ReactNode.")}),objectOf:function(I){return b(function(L,M,A,k,J){if(typeof I!="function")return new v("Property `"+J+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var G,U=L[M];if((L=w(U))!=="object")return new v("Invalid "+k+" `"+J+"` of type `"+L+"` supplied to `"+A+"`, expected an object.");for(G in U)if(r(U,G)){var D=I(U,G,A,k,J+"."+G,i);if(D instanceof Error)return D}return null})},oneOf:function(I){return Array.isArray(I)?b(function(L,M,A,k,J){for(var G=L[M],U=0;U<I.length;U++)if(function(D,W){return D===W?D!==0||1/D==1/W:D!=D&&W!=W}(G,I[U]))return null;return L=JSON.stringify(I,function(D,W){return O(W)==="symbol"?String(W):W}),new v("Invalid "+k+" `"+J+"` of value `"+String(G)+"` supplied to `"+A+"`, expected one of "+L+".")}):c},oneOfType:function(I){if(!Array.isArray(I))return c;for(var L=0;L<I.length;L++){var M=I[L];if(typeof M!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+function(A){var k=O(A);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}(M)+" at index "+L+"."),c}return b(function(A,k,J,G,U){for(var D=[],W=0;W<I.length;W++){var Q=(0,I[W])(A,k,J,G,U,i);if(Q==null)return null;Q.data&&r(Q.data,"expectedType")&&D.push(Q.data.expectedType)}return new v("Invalid "+G+" `"+U+"` supplied to `"+J+"`"+(0<D.length?", expected one of type ["+D.join(", ")+"]":"")+".")})},shape:function(I){return b(function(L,M,A,k,J){var G,U=L[M];if((L=w(U))!=="object")return new v("Invalid "+k+" `"+J+"` of type `"+L+"` supplied to `"+A+"`, expected `object`.");for(G in I){var D=I[G];if(typeof D!="function")return R(A,k,J,G,O(D));if(D=D(U,G,A,k,J+"."+G,i),D)return D}return null})},exact:function(I){return b(function(L,M,A,k,J){var G,U=L[M],D=w(U);if(D!=="object")return new v("Invalid "+k+" `"+J+"` of type `"+D+"` supplied to `"+A+"`, expected `object`.");for(G in s({},L[M],I)){var W=I[G];if(r(I,G)&&typeof W!="function")return R(A,k,J,G,O(W));if(!W)return new v("Invalid "+k+" `"+J+"` key `"+G+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(L[M],null," ")+`
|
|
73
|
+
Valid keys: `+JSON.stringify(Object.keys(I),null," "));if(W=W(U,G,A,k,J+"."+G,i),W)return W}return null})}};function v(I,L){this.message=I,this.data=L&&typeof L=="object"?L:{},this.stack=""}function b(I){function L(A,k,J,G,U,D,W){if(G=G||m,D=D||J,W!==i&&u)throw(W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",W;return k[J]==null?A?k[J]===null?new v("The "+U+" `"+D+"` is marked as required in `"+G+"`, but its value is `null`."):new v("The "+U+" `"+D+"` is marked as required in `"+G+"`, but its value is `undefined`."):null:I(k,J,G,U,D)}var M=L.bind(null,!1);return M.isRequired=L.bind(null,!0),M}function _(I){return b(function(L,M,A,k,J,G){return w(L=L[M])!==I?new v("Invalid "+k+" `"+J+"` of type `"+O(L)+"` supplied to `"+A+"`, expected `"+I+"`.",{expectedType:I}):null})}function R(I,L,M,A,k){return new v((I||"React class")+": "+L+" type `"+M+"."+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+k+"`.")}function x(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(x);if(I===null||d(I))return!0;var L=function(J){if(typeof(J=J&&(f&&J[f]||J[g]))=="function")return J}(I);if(!L)return!1;var M,A=L.call(I);if(L!==I.entries){for(;!(M=A.next()).done;)if(!x(M.value))return!1}else for(;!(M=A.next()).done;){var k=M.value;if(k&&!x(k[1]))return!1}return!0;default:return!1}}function w(I){var L=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":(I=I,L==="symbol"||I&&(I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol)?"symbol":L)}function O(I){if(I==null)return""+I;var L=w(I);if(L==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return L}return v.prototype=Error.prototype,h.checkPropTypes=l,h.resetWarningCache=l.resetWarningCache,h.PropTypes=h}},{"./checkPropTypes":150,"./lib/ReactPropTypesSecret":154,"./lib/has":155,"object-assign":148,"react-is":158}],153:[function(o,a,t){a.exports=o("./factoryWithThrowingShims")()},{"./factoryWithThrowingShims":151,"./factoryWithTypeCheckers":152,"react-is":158}],154:[function(o,a,t){a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}],155:[function(o,a,t){a.exports=Function.call.bind(Object.prototype.hasOwnProperty)},{}],156:[function(o,a,t){arguments[4][142][0].apply(t,arguments)},{_process:149,dup:142}],157:[function(o,a,t){arguments[4][143][0].apply(t,arguments)},{dup:143}],158:[function(o,a,t){arguments[4][144][0].apply(t,arguments)},{"./cjs/react-is.development.js":156,"./cjs/react-is.production.min.js":157,_process:149,dup:144}],159:[function(o,a,t){a.exports=function(s,d,r,l){r=r||"=";var n={};if(typeof s!="string"||s.length===0)return n;var c=/\+/g,d=(s=s.split(d=d||"&"),1e3),u=(l&&typeof l.maxKeys=="number"&&(d=l.maxKeys),s.length);0<d&&d<u&&(u=d);for(var f=0;f<u;++f){var g,m=s[f].replace(c,"%20"),h=m.indexOf(r),h=0<=h?(g=m.substr(0,h),m.substr(h+1)):(g=m,""),m=decodeURIComponent(g),h=decodeURIComponent(h);Object.prototype.hasOwnProperty.call(n,m)?e(n[m])?n[m].push(h):n[m]=[n[m],h]:n[m]=h}return n};var e=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"}},{}],160:[function(o,a,t){function e(l){switch(typeof l){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}}a.exports=function(l,n,c,d){return n=n||"&",c=c||"=",typeof(l=l===null?void 0:l)=="object"?i(r(l),function(u){var f=encodeURIComponent(e(u))+c;return s(l[u])?i(l[u],function(g){return f+encodeURIComponent(e(g))}).join(n):f+encodeURIComponent(e(l[u]))}).join(n):d?encodeURIComponent(e(d))+c+encodeURIComponent(e(l)):""};var s=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,n){if(l.map)return l.map(n);for(var c=[],d=0;d<l.length;d++)c.push(n(l[d],d));return c}var r=Object.keys||function(l){var n,c=[];for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&c.push(n);return c}},{}],161:[function(o,a,t){t.decode=t.parse=o("./decode"),t.encode=t.stringify=o("./encode")},{"./decode":159,"./encode":160}],162:[function(o,a,t){},{"object-assign":148,react:171,scheduler:177,"scheduler/tracing":178}],163:[function(xo,a,t){var e=xo("react"),s=xo("object-assign"),i=xo("scheduler");function r(p){for(var y="https://reactjs.org/docs/error-decoder.html?invariant="+p,S=1;S<arguments.length;S++)y+="&args[]="+encodeURIComponent(arguments[S]);return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!e)throw Error(r(227));var l=new Set,n={};function c(p,y){d(p,y),d(p+"Capture",y)}function d(p,y){for(n[p]=y,p=0;p<y.length;p++)l.add(y[p])}var xo=!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0),u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f=Object.prototype.hasOwnProperty,g={},m={};function h(p,y,S,et){if(y==null||function(nt,st,ft,Pt){if(ft===null||ft.type!==0)switch(typeof st){case"function":case"symbol":return 1;case"boolean":return Pt?void 0:ft!==null?!ft.acceptsBooleans:(nt=nt.toLowerCase().slice(0,5))!=="data-"&&nt!=="aria-";default:return}}(p,y,S,et))return 1;if(!et&&S!==null)switch(S.type){case 3:return!y;case 4:return y===!1;case 5:return isNaN(y);case 6:return isNaN(y)||y<1}}function v(p,y,S,et,nt,st,ft){this.acceptsBooleans=y===2||y===3||y===4,this.attributeName=et,this.attributeNamespace=nt,this.mustUseProperty=S,this.propertyName=p,this.type=y,this.sanitizeURL=st,this.removeEmptyString=ft}var b={},_=("children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){b[p]=new v(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var y=p[0];b[y]=new v(y,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){b[p]=new v(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){b[p]=new v(p,2,!1,p,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){b[p]=new v(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){b[p]=new v(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){b[p]=new v(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){b[p]=new v(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){b[p]=new v(p,5,!1,p.toLowerCase(),null,!1,!1)}),/[\-:]([a-z])/g);function R(p){return p[1].toUpperCase()}function x(p,y,S,et){var nt,st=b.hasOwnProperty(y)?b[y]:null;(st!==null?st.type!==0:et||!(2<y.length)||y[0]!=="o"&&y[0]!=="O"||y[1]!=="n"&&y[1]!=="N")&&(h(y,S,st,et)&&(S=null),et||st===null?(nt=y,(f.call(m,nt)||!f.call(g,nt)&&(u.test(nt)?m[nt]=!0:void(g[nt]=!0)))&&(S===null?p.removeAttribute(y):p.setAttribute(y,""+S))):st.mustUseProperty?p[st.propertyName]=S===null?st.type!==3&&"":S:(y=st.attributeName,et=st.attributeNamespace,S===null?p.removeAttribute(y):(S=(st=st.type)===3||st===4&&S===!0?"":""+S,et?p.setAttributeNS(et,y,S):p.setAttribute(y,S))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var y=p.replace(_,R);b[y]=new v(y,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var y=p.replace(_,R);b[y]=new v(y,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var y=p.replace(_,R);b[y]=new v(y,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){b[p]=new v(p,1,!1,p.toLowerCase(),null,!1,!1)}),b.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){b[p]=new v(p,1,!1,p.toLowerCase(),null,!0,!0)});var w,O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=60103,L=60106,M=60107,A=60108,k=60114,J=60109,G=60110,U=60112,D=60113,W=60120,Q=60115,E=60116,B=60121,$=60128,C=60129,N=60130,Y=60131,tt=(typeof Symbol=="function"&&Symbol.for&&(I=(co=Symbol.for)("react.element"),L=co("react.portal"),M=co("react.fragment"),A=co("react.strict_mode"),k=co("react.profiler"),J=co("react.provider"),G=co("react.context"),U=co("react.forward_ref"),D=co("react.suspense"),W=co("react.suspense_list"),Q=co("react.memo"),E=co("react.lazy"),B=co("react.block"),co("react.scope"),$=co("react.opaque.id"),C=co("react.debug_trace_mode"),N=co("react.offscreen"),Y=co("react.legacy_hidden")),typeof Symbol=="function"&&Symbol.iterator);function F(p){return p!==null&&typeof p=="object"&&typeof(p=tt&&p[tt]||p["@@iterator"])=="function"?p:null}function z(p){if(w===void 0)try{throw Error()}catch(S){var y=S.stack.trim().match(/\n( *(at )?)/);w=y&&y[1]||""}return`
|
|
74
|
+
`+w+p}var P=!1;function j(p,y){if(!p||P)return"";P=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(y)if(y=function(){throw Error()},Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(Ot){var et=Ot}Reflect.construct(p,[],y)}else{try{y.call()}catch(Ot){et=Ot}p.call(y.prototype)}else{try{throw Error()}catch(Ot){et=Ot}p()}}catch(Ot){if(Ot&&et&&typeof Ot.stack=="string"){for(var nt=Ot.stack.split(`
|
|
75
|
+
`),st=et.stack.split(`
|
|
76
|
+
`),ft=nt.length-1,Pt=st.length-1;1<=ft&&0<=Pt&&nt[ft]!==st[Pt];)Pt--;for(;1<=ft&&0<=Pt;ft--,Pt--)if(nt[ft]!==st[Pt]){if(ft!==1||Pt!==1)do if(ft--,--Pt<0||nt[ft]!==st[Pt])return`
|
|
77
|
+
`+nt[ft].replace(" at new "," at ");while(1<=ft&&0<=Pt);break}}}finally{P=!1,Error.prepareStackTrace=S}return(p=p?p.displayName||p.name:"")?z(p):""}function V(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case M:return"Fragment";case L:return"Portal";case k:return"Profiler";case A:return"StrictMode";case D:return"Suspense";case W:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case G:return(p.displayName||"Context")+".Consumer";case J:return(p._context.displayName||"Context")+".Provider";case U:var y=(y=p.render).displayName||y.name||"";return p.displayName||(y!==""?"ForwardRef("+y+")":"ForwardRef");case Q:return V(p.type);case B:return V(p._render);case E:y=p._payload,p=p._init;try{return V(p(y))}catch{}}return null}function K(p){switch(typeof p){case"boolean":case"number":case"object":case"string":case"undefined":return p;default:return""}}function rt(p){var y=p.type;return(p=p.nodeName)&&p.toLowerCase()==="input"&&(y==="checkbox"||y==="radio")}function T(p){p._valueTracker||(p._valueTracker=function(y){var S,et,nt=rt(y)?"checked":"value",st=Object.getOwnPropertyDescriptor(y.constructor.prototype,nt),ft=""+y[nt];if(!y.hasOwnProperty(nt)&&st!==void 0&&typeof st.get=="function"&&typeof st.set=="function")return S=st.get,et=st.set,Object.defineProperty(y,nt,{configurable:!0,get:function(){return S.call(this)},set:function(Pt){ft=""+Pt,et.call(this,Pt)}}),Object.defineProperty(y,nt,{enumerable:st.enumerable}),{getValue:function(){return ft},setValue:function(Pt){ft=""+Pt},stopTracking:function(){y._valueTracker=null,delete y[nt]}}}(p))}function ot(p){if(p){var y=p._valueTracker;if(!y)return 1;var S=y.getValue(),et="";return(p=et=p?rt(p)?p.checked?"true":"false":p.value:et)!==S&&(y.setValue(p),1)}}function at(p){if((p=p||(typeof document<"u"?document:void 0))===void 0)return null;try{return p.activeElement||p.body}catch{return p.body}}function q(p,y){var S=y.checked;return s({},y,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:S??p._wrapperState.initialChecked})}function ht(p,y){var et=y.defaultValue==null?"":y.defaultValue,S=y.checked!=null?y.checked:y.defaultChecked,et=K(y.value!=null?y.value:et);p._wrapperState={initialChecked:S,initialValue:et,controlled:y.type==="checkbox"||y.type==="radio"?y.checked!=null:y.value!=null}}function lt(p,y){(y=y.checked)!=null&&x(p,"checked",y,!1)}function bt(p,y){lt(p,y);var S=K(y.value),et=y.type;if(S!=null)et==="number"?(S===0&&p.value===""||p.value!=S)&&(p.value=""+S):p.value!==""+S&&(p.value=""+S);else if(et==="submit"||et==="reset")return void p.removeAttribute("value");y.hasOwnProperty("value")?Dt(p,y.type,S):y.hasOwnProperty("defaultValue")&&Dt(p,y.type,K(y.defaultValue)),y.checked==null&&y.defaultChecked!=null&&(p.defaultChecked=!!y.defaultChecked)}function _t(p,y,S){if(y.hasOwnProperty("value")||y.hasOwnProperty("defaultValue")){var et=y.type;if(!(et!=="submit"&&et!=="reset"||y.value!==void 0&&y.value!==null))return;y=""+p._wrapperState.initialValue,S||y===p.value||(p.value=y),p.defaultValue=y}(S=p.name)!==""&&(p.name=""),p.defaultChecked=!!p._wrapperState.initialChecked,S!==""&&(p.name=S)}function Dt(p,y,S){y==="number"&&at(p.ownerDocument)===p||(S==null?p.defaultValue=""+p._wrapperState.initialValue:p.defaultValue!==""+S&&(p.defaultValue=""+S))}function Ft(p,y){var S,et;return p=s({children:void 0},y),S=y.children,et="",e.Children.forEach(S,function(nt){nt!=null&&(et+=nt)}),(y=et)&&(p.children=y),p}function Qt(p,y,S,et){if(p=p.options,y){y={};for(var nt=0;nt<S.length;nt++)y["$"+S[nt]]=!0;for(S=0;S<p.length;S++)nt=y.hasOwnProperty("$"+p[S].value),p[S].selected!==nt&&(p[S].selected=nt),nt&&et&&(p[S].defaultSelected=!0)}else{for(S=""+K(S),y=null,nt=0;nt<p.length;nt++){if(p[nt].value===S)return p[nt].selected=!0,void(et&&(p[nt].defaultSelected=!0));y!==null||p[nt].disabled||(y=p[nt])}y!==null&&(y.selected=!0)}}function ue(p,y){if(y.dangerouslySetInnerHTML!=null)throw Error(r(91));return s({},y,{value:void 0,defaultValue:void 0,children:""+p._wrapperState.initialValue})}function ae(p,y){var S=y.value;if(S==null){if(S=y.children,y=y.defaultValue,S!=null){if(y!=null)throw Error(r(92));if(Array.isArray(S)){if(!(S.length<=1))throw Error(r(93));S=S[0]}y=S}S=y=y??""}p._wrapperState={initialValue:K(S)}}function se(p,y){var S=K(y.value),et=K(y.defaultValue);S!=null&&((S=""+S)!==p.value&&(p.value=S),y.defaultValue==null&&p.defaultValue!==S&&(p.defaultValue=S)),et!=null&&(p.defaultValue=""+et)}function Ne(p){var y=p.textContent;y===p._wrapperState.initialValue&&y!==""&&y!==null&&(p.value=y)}var ce="http://www.w3.org/1999/xhtml",qt="http://www.w3.org/2000/svg";function Nt(p){switch(p){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function It(p,y){return p==null||p==="http://www.w3.org/1999/xhtml"?Nt(y):p==="http://www.w3.org/2000/svg"&&y==="foreignObject"?"http://www.w3.org/1999/xhtml":p}Vt=function(p,y){if(p.namespaceURI!==qt||"innerHTML"in p)p.innerHTML=y;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+y.valueOf().toString()+"</svg>",y=me.firstChild;p.firstChild;)p.removeChild(p.firstChild);for(;y.firstChild;)p.appendChild(y.firstChild)}};var me,Vt,ge=typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(p,y,S,et){MSApp.execUnsafeLocalFunction(function(){return Vt(p,y)})}:Vt;function De(p,y){if(y){var S=p.firstChild;if(S&&S===p.lastChild&&S.nodeType===3)return void(S.nodeValue=y)}p.textContent=y}var _e={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ht=["Webkit","ms","Moz","O"];function yn(p,y,S){return y==null||typeof y=="boolean"||y===""?"":S||typeof y!="number"||y===0||_e.hasOwnProperty(p)&&_e[p]?(""+y).trim():y+"px"}function ee(p,y){for(var S in p=p.style,y){var et,nt;y.hasOwnProperty(S)&&(et=S.indexOf("--")===0,nt=yn(S,y[S],et),S==="float"&&(S="cssFloat"),et?p.setProperty(S,nt):p[S]=nt)}}Object.keys(_e).forEach(function(p){Ht.forEach(function(y){y=y+p.charAt(0).toUpperCase()+p.substring(1),_e[y]=_e[p]})});var Qe=s({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(p,y){if(y){if(Qe[p]&&(y.children!=null||y.dangerouslySetInnerHTML!=null))throw Error(r(137,p));if(y.dangerouslySetInnerHTML!=null){if(y.children!=null)throw Error(r(60));if(!(typeof y.dangerouslySetInnerHTML=="object"&&"__html"in y.dangerouslySetInnerHTML))throw Error(r(61))}if(y.style!=null&&typeof y.style!="object")throw Error(r(62))}}function wn(p,y){if(p.indexOf("-")===-1)return typeof y.is=="string";switch(p){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ve(p){return(p=(p=p.target||p.srcElement||window).correspondingUseElement?p.correspondingUseElement:p).nodeType===3?p.parentNode:p}var Ue=null,Ze=null,gn=null;function fn(p){if(p=si(p)){if(typeof Ue!="function")throw Error(r(280));var y=p.stateNode;y&&(y=qi(y),Ue(p.stateNode,p.type,y))}}function On(p){Ze?gn?gn.push(p):gn=[p]:Ze=p}function bn(){if(Ze){var p=Ze,y=gn;if(gn=Ze=null,fn(p),y)for(p=0;p<y.length;p++)fn(y[p])}}function Xe(p,y){return p(y)}function $e(p,y,S,et,nt){return p(y,S,et,nt)}function kt(){}var be=!1,de=!1;function Ye(){Ze===null&&gn===null||(kt(),bn())}function cn(p,y){var S=p.stateNode;if(S===null)return null;var et=qi(S);if(et===null)return null;switch(S=et[y],y){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":p=!(et=(et=!et.disabled)?et:!((p=p.type)==="button"||p==="input"||p==="select"||p==="textarea"));break;default:p=!1}if(p)return null;if(S&&typeof S!="function")throw Error(r(231,y,typeof S));return S}var We=!1;if(xo)try{var we={};Object.defineProperty(we,"passive",{get:function(){We=!0}}),window.addEventListener("test",we,we),window.removeEventListener("test",we,we)}catch{We=!1}var At=!1,Zt=null,xt=!1,Wt=null,re={onError:function(p){At=!0,Zt=p}};function je(p,y,S,et,nt,st,ft,Pt,Ot){At=!1,Zt=null,(function(te,xe,Oe,rn,hr,ne,pe,Ce,Ke){var Je=Array.prototype.slice.call(arguments,3);try{xe.apply(Oe,Je)}catch(Sn){this.onError(Sn)}}).apply(re,arguments)}function Gt(p){var y=p,S=p;if(p.alternate)for(;y.return;)y=y.return;else for(p=y;1026&(y=p).flags&&(S=y.return),p=y.return;);return y.tag===3?S:null}function Ge(p){if(p.tag===13){var y=p.memoizedState;if(y===null&&(p=p.alternate)!==null&&(y=p.memoizedState),y!==null)return y.dehydrated}return null}function Te(p){if(Gt(p)!==p)throw Error(r(188))}function yt(p){if(!(p=function(S){var et=S.alternate;if(!et){if((et=Gt(S))===null)throw Error(r(188));return et!==S?null:S}for(var nt=S,st=et;;){var ft=nt.return;if(ft===null)break;var Pt=ft.alternate;if(Pt===null){if((st=ft.return)===null)break;nt=st}else{if(ft.child===Pt.child){for(Pt=ft.child;Pt;){if(Pt===nt)return Te(ft),S;if(Pt===st)return Te(ft),et;Pt=Pt.sibling}throw Error(r(188))}if(nt.return!==st.return)nt=ft,st=Pt;else{for(var Ot=!1,te=ft.child;te;){if(te===nt){Ot=!0,nt=ft,st=Pt;break}if(te===st){Ot=!0,st=ft,nt=Pt;break}te=te.sibling}if(!Ot){for(te=Pt.child;te;){if(te===nt){Ot=!0,nt=Pt,st=ft;break}if(te===st){Ot=!0,st=Pt,nt=ft;break}te=te.sibling}if(!Ot)throw Error(r(189))}}if(nt.alternate!==st)throw Error(r(190))}}if(nt.tag!==3)throw Error(r(188));return nt.stateNode.current===nt?S:et}(p)))return null;for(var y=p;;){if(y.tag===5||y.tag===6)return y;if(y.child)y=(y.child.return=y).child;else{if(y===p)break;for(;!y.sibling;){if(!y.return||y.return===p)return null;y=y.return}y.sibling.return=y.return,y=y.sibling}}return null}function zt(p,y){for(var S=p.alternate;y!==null;){if(y===p||y===S)return 1;y=y.return}}var Tt,Rt,Ut,Yt=!1,ie=[],X=null,dt=null,wt=null,Bt=new Map,St=new Map,Se=[],oe="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ve(p,y,S,et,nt){return{blockedOn:p,domEventName:y,eventSystemFlags:16|S,nativeEvent:nt,targetContainers:[et]}}function Ie(p,y){switch(p){case"focusin":case"focusout":X=null;break;case"dragenter":case"dragleave":dt=null;break;case"mouseover":case"mouseout":wt=null;break;case"pointerover":case"pointerout":Bt.delete(y.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(y.pointerId)}}function ke(p,y,S,et,nt,st){return p===null||p.nativeEvent!==st?(p=ve(y,S,et,nt,st),y===null||(y=si(y))!==null&&Rt(y)):(p.eventSystemFlags|=et,y=p.targetContainers,nt!==null&&y.indexOf(nt)===-1&&y.push(nt)),p}function nn(p){if(p.blockedOn===null){for(var y=p.targetContainers;0<y.length;){var S=La(p.domEventName,p.eventSystemFlags,y[0],p.nativeEvent);if(S!==null)return(y=si(S))!==null&&Rt(y),p.blockedOn=S,0;y.shift()}return 1}}function dn(p,y,S){nn(p)&&S.delete(y)}function En(){for(Yt=!1;0<ie.length;){var p=ie[0];if(p.blockedOn!==null){(p=si(p.blockedOn))!==null&&Tt(p);break}for(var y=p.targetContainers;0<y.length;){var S=La(p.domEventName,p.eventSystemFlags,y[0],p.nativeEvent);if(S!==null){p.blockedOn=S;break}y.shift()}p.blockedOn===null&&ie.shift()}X!==null&&nn(X)&&(X=null),dt!==null&&nn(dt)&&(dt=null),wt!==null&&nn(wt)&&(wt=null),Bt.forEach(dn),St.forEach(dn)}function Ln(p,y){p.blockedOn===y&&(p.blockedOn=null,Yt||(Yt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,En)))}function tr(p){function y(nt){return Ln(nt,p)}if(0<ie.length){Ln(ie[0],p);for(var S=1;S<ie.length;S++){var et=ie[S];et.blockedOn===p&&(et.blockedOn=null)}}for(X!==null&&Ln(X,p),dt!==null&&Ln(dt,p),wt!==null&&Ln(wt,p),Bt.forEach(y),St.forEach(y),S=0;S<Se.length;S++)(et=Se[S]).blockedOn===p&&(et.blockedOn=null);for(;0<Se.length&&(S=Se[0]).blockedOn===null;)(function(nt){var st=Ti(nt.target);if(st!==null){var ft=Gt(st);if(ft!==null){if((st=ft.tag)===13){if((st=Ge(ft))!==null)return nt.blockedOn=st,nt.lanePriority,i.unstable_runWithPriority(nt.priority,function(){Ut(ft)})}else if(st===3&&ft.stateNode.hydrate)return nt.blockedOn=ft.tag===3?ft.stateNode.containerInfo:null}}nt.blockedOn=null})(S),S.blockedOn===null&&Se.shift()}function jn(p,y){var S={};return S[p.toLowerCase()]=y.toLowerCase(),S["Webkit"+p]="webkit"+y,S["Moz"+p]="moz"+y,S}var Rn={animationend:jn("Animation","AnimationEnd"),animationiteration:jn("Animation","AnimationIteration"),animationstart:jn("Animation","AnimationStart"),transitionend:jn("Transition","TransitionEnd")},$n={},Wr={};function uo(p){if($n[p])return $n[p];if(!Rn[p])return p;var y,S=Rn[p];for(y in S)if(S.hasOwnProperty(y)&&y in Wr)return $n[p]=S[y];return p}xo&&(Wr=document.createElement("div").style,"AnimationEvent"in window||(delete Rn.animationend.animation,delete Rn.animationiteration.animation,delete Rn.animationstart.animation),"TransitionEvent"in window||delete Rn.transitionend.transition);var xr=uo("animationend"),fo=uo("animationiteration"),Sr=uo("animationstart"),Mr=uo("transitionend"),Ni=new Map,bi=new Map,co=["abort","abort",xr,"animationEnd",fo,"animationIteration",Sr,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Mr,"transitionEnd","waiting","waiting"];function ea(p,y){for(var S=0;S<p.length;S+=2){var et=p[S],nt="on"+((nt=p[S+1])[0].toUpperCase()+nt.slice(1));bi.set(et,y),Ni.set(et,nt),c(nt,[et])}}(0,i.unstable_now)();var ar=8;function po(p){if(1&p)return ar=15,1;if(2&p)return ar=14,2;if(4&p)return ar=13,4;var y=24&p;return y!==0?(ar=12,y):32&p?(ar=11,32):(y=192&p)!==0?(ar=10,y):256&p?(ar=9,256):(y=3584&p)!==0?(ar=8,y):4096&p?(ar=7,4096):(y=4186112&p)!==0?(ar=6,y):(y=62914560&p)!==0?(ar=5,y):67108864&p?(ar=4,67108864):134217728&p?(ar=3,134217728):(y=805306368&p)!==0?(ar=2,y):1073741824&p?(ar=1,1073741824):(ar=8,p)}function _i(p,y){var S=p.pendingLanes;if(S===0)return ar=0;var et,nt=0,st=0,ft=p.expiredLanes,Pt=p.suspendedLanes,Ot=p.pingedLanes;if(ft!==0?(nt=ft,st=ar=15):(ft=134217727&S)!==0?(et=ft&~Pt)!=0?(nt=po(et),st=ar):(Ot&=ft)!==0&&(nt=po(Ot),st=ar):(ft=S&~Pt)!==0?(nt=po(ft),st=ar):Ot!==0&&(nt=po(Ot),st=ar),nt===0)return 0;if(nt=S&(((nt=31-ei(nt))<0?0:1<<nt)<<1)-1,y!==0&&y!==nt&&(y&Pt)==0){if(po(y),st<=ar)return y;ar=st}if((y=p.entangledLanes)!==0)for(p=p.entanglements,y&=nt;0<y;)nt|=p[S=31-ei(y)],y&=~(st=1<<S);return nt}function Ro(p){return(p=-1073741825&p.pendingLanes)!==0?p:1073741824&p?1073741824:0}function Ho(p,y){switch(p){case 15:return 1;case 14:return 2;case 12:return(p=Jr(24&~y))===0?Ho(10,y):p;case 10:return(p=Jr(192&~y))===0?Ho(8,y):p;case 8:return(p=Jr(3584&~y))===0&&(p=Jr(4186112&~y))===0&&(p=512),p;case 2:return y=(y=Jr(805306368&~y))===0?268435456:y}throw Error(r(358,p))}function Jr(p){return p&-p}function Io(p){for(var y=[],S=0;S<31;S++)y.push(p);return y}function wi(p,y,S){p.pendingLanes|=y;var et=y-1;p.suspendedLanes&=et,p.pingedLanes&=et,(p=p.eventTimes)[y=31-ei(y)]=S}var ei=Math.clz32||function(p){return p===0?32:31-(ds(p)/qo|0)|0},ds=Math.log,qo=Math.LN2,Mi=i.unstable_UserBlockingPriority,fs=i.unstable_runWithPriority,na=!0;function Ls(p,y,S,et){be||kt();var nt=ga,st=be;be=!0;try{$e(nt,p,y,S,et)}finally{(be=st)||Ye()}}function ps(p,y,S,et){fs(Mi,ga.bind(null,p,y,S,et))}function ga(p,y,S,et){var nt;if(na)if((nt=(4&y)==0)&&0<ie.length&&-1<oe.indexOf(p))p=ve(null,p,y,S,et),ie.push(p);else{var st=La(p,y,S,et);if(st===null)nt&&Ie(p,et);else{if(nt){if(-1<oe.indexOf(p))return p=ve(st,p,y,S,et),void ie.push(p);if(function(ft,Pt,Ot,te,xe){switch(Pt){case"focusin":return X=ke(X,ft,Pt,Ot,te,xe),1;case"dragenter":return dt=ke(dt,ft,Pt,Ot,te,xe),1;case"mouseover":return wt=ke(wt,ft,Pt,Ot,te,xe),1;case"pointerover":var Oe=xe.pointerId;return Bt.set(Oe,ke(Bt.get(Oe)||null,ft,Pt,Ot,te,xe)),1;case"gotpointercapture":return Oe=xe.pointerId,St.set(Oe,ke(St.get(Oe)||null,ft,Pt,Ot,te,xe)),1}}(st,p,y,S,et))return;Ie(p,et)}$a(p,y,et,null,S)}}}function La(p,y,S,et){var nt=Ve(et);if((nt=Ti(nt))!==null){var st=Gt(nt);if(st===null)nt=null;else{var ft=st.tag;if(ft===13){if((nt=Ge(st))!==null)return nt;nt=null}else if(ft===3){if(st.stateNode.hydrate)return st.tag===3?st.stateNode.containerInfo:null;nt=null}else st!==nt&&(nt=null)}}return $a(p,y,et,nt,S),null}var Wo=null,Ba=null,Fa=null;function Be(){if(Fa)return Fa;for(var p=Ba,y=p.length,S=("value"in Wo)?Wo.value:Wo.textContent,et=S.length,nt=0;nt<y&&p[nt]===S[nt];nt++);for(var st=y-nt,ft=1;ft<=st&&p[y-ft]===S[et-ft];ft++);return Fa=S.slice(nt,1<ft?1-ft:void 0)}function Ae(p){var y=p.keyCode;return"charCode"in p?(p=p.charCode)===0&&y===13&&(p=13):p=y,32<=(p=p===10?13:p)||p===13?p:0}function Pe(){return!0}function _n(){return!1}function kn(p){function y(S,et,nt,st,ft){for(var Pt in this._reactName=S,this._targetInst=nt,this.type=et,this.nativeEvent=st,this.target=ft,this.currentTarget=null,p)p.hasOwnProperty(Pt)&&(S=p[Pt],this[Pt]=S?S(st):st[Pt]);return this.isDefaultPrevented=(st.defaultPrevented!=null?st.defaultPrevented:st.returnValue===!1)?Pe:_n,this.isPropagationStopped=_n,this}return s(y.prototype,{preventDefault:function(){this.defaultPrevented=!0;var S=this.nativeEvent;S&&(S.preventDefault?S.preventDefault():typeof S.returnValue!="unknown"&&(S.returnValue=!1),this.isDefaultPrevented=Pe)},stopPropagation:function(){var S=this.nativeEvent;S&&(S.stopPropagation?S.stopPropagation():typeof S.cancelBubble!="unknown"&&(S.cancelBubble=!0),this.isPropagationStopped=Pe)},persist:function(){},isPersistent:Pe}),y}var qn,Dr,fr,we={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(p){return p.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kn=kn(we),gi=s({},we,{view:0,detail:0}),Pr=kn(gi),Gr=s({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bn,button:0,buttons:0,relatedTarget:function(p){return p.relatedTarget===void 0?p.fromElement===p.srcElement?p.toElement:p.fromElement:p.relatedTarget},movementX:function(p){return"movementX"in p?p.movementX:(p!==fr&&(Dr=fr&&p.type==="mousemove"?(qn=p.screenX-fr.screenX,p.screenY-fr.screenY):qn=0,fr=p),qn)},movementY:function(p){return"movementY"in p?p.movementY:Dr}}),ho=kn(Gr),ma=kn(s({},Gr,{dataTransfer:0})),xi=kn(s({},gi,{relatedTarget:0})),ya=kn(s({},we,{animationName:0,elapsedTime:0,pseudoElement:0})),Le=kn(s({},we,{clipboardData:function(p){return("clipboardData"in p?p:window).clipboardData}})),go=kn(s({},we,{data:0})),va={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Me={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Qr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ni(p){var y=this.nativeEvent;return y.getModifierState?y.getModifierState(p):!!(p=Qr[p])&&!!y[p]}function Bn(){return ni}var Lr=kn(s({},gi,{key:function(p){if(p.key){var y=va[p.key]||p.key;if(y!=="Unidentified")return y}return p.type==="keypress"?(p=Ae(p))===13?"Enter":String.fromCharCode(p):p.type==="keydown"||p.type==="keyup"?Me[p.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bn,charCode:function(p){return p.type==="keypress"?Ae(p):0},keyCode:function(p){return p.type==="keydown"||p.type==="keyup"?p.keyCode:0},which:function(p){return p.type==="keypress"?Ae(p):p.type==="keydown"||p.type==="keyup"?p.keyCode:0}})),pr=kn(s({},Gr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Di=kn(s({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bn})),Li=kn(s({},we,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bs=kn(s({},Gr,{deltaX:function(p){return"deltaX"in p?p.deltaX:"wheelDeltaX"in p?-p.wheelDeltaX:0},deltaY:function(p){return"deltaY"in p?p.deltaY:"wheelDeltaY"in p?-p.wheelDeltaY:"wheelDelta"in p?-p.wheelDelta:0},deltaZ:0,deltaMode:0})),fl=[9,13,27,32],Bi=xo&&"CompositionEvent"in window,gi=null,jc=(xo&&"documentMode"in document&&(gi=document.documentMode),xo&&"TextEvent"in window&&!gi),Bl=xo&&(!Bi||gi&&8<gi&&gi<=11),Fl=String.fromCharCode(32),zl=!1;function Ul(p,y){switch(p){case"keyup":return fl.indexOf(y.keyCode)!==-1;case"keydown":return y.keyCode!==229;case"keypress":case"mousedown":case"focusout":return 1;default:return}}function Hl(p){return typeof(p=p.detail)=="object"&&"data"in p?p.data:null}var yr=!1,ri={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ql(p){var y=p&&p.nodeName&&p.nodeName.toLowerCase();return y==="input"?ri[p.type]:y==="textarea"}function pl(p,y,S,et){On(et),0<(y=Ja(y,"onChange")).length&&(S=new Kn("onChange","change",null,S,et),p.push({event:S,listeners:y}))}var Fs=null,za=null;function Ir(p){Wa(p,0)}function Br(p){if(ot($o(p)))return p}function Gn(p,y){if(p==="change")return y}var Si=!1;function No(){Fs&&(Fs.detachEvent("onpropertychange",hl),za=Fs=null)}function hl(p){if(p.propertyName==="value"&&Br(za)){var y=[];if(pl(y,za,p,Ve(p)),p=Ir,be)p(y);else{be=!0;try{Xe(p,y)}finally{be=!1,Ye()}}}}function Ac(p,y,S){p==="focusin"?(No(),za=S,(Fs=y).attachEvent("onpropertychange",hl)):p==="focusout"&&No()}function gl(p){if(p==="selectionchange"||p==="keyup"||p==="keydown")return Br(za)}function cr(p,y){if(p==="click")return Br(y)}function zs(p,y){if(p==="input"||p==="change")return Br(y)}xo&&(gi=xo&&((we="oninput"in document)||((Gr=document.createElement("div")).setAttribute("oninput","return;"),we=typeof Gr.oninput=="function"),we),Si=gi&&(!document.documentMode||9<document.documentMode));var zn=typeof Object.is=="function"?Object.is:function(p,y){return p===y&&(p!==0||1/p==1/y)||p!=p&&y!=y},Mo=Object.prototype.hasOwnProperty;function ba(p,y){if(zn(p,y))return!0;if(typeof p!="object"||p===null||typeof y!="object"||y===null)return!1;var S=Object.keys(p),et=Object.keys(y);if(S.length!==et.length)return!1;for(et=0;et<S.length;et++)if(!Mo.call(y,S[et])||!zn(p[S[et]],y[S[et]]))return!1;return!0}function hs(p){for(;p&&p.firstChild;)p=p.firstChild;return p}function gs(p,y){var S,et=hs(p);for(p=0;et;){if(et.nodeType===3){if(S=p+et.textContent.length,p<=y&&y<=S)return{node:et,offset:y-p};p=S}t:{for(;et;){if(et.nextSibling){et=et.nextSibling;break t}et=et.parentNode}et=void 0}et=hs(et)}}function Ua(){for(var p=window,y=at();y instanceof p.HTMLIFrameElement;){try{var S=typeof y.contentWindow.location.href=="string"}catch{S=!1}if(!S)break;y=at((p=y.contentWindow).document)}return y}function Vr(p){var y=p&&p.nodeName&&p.nodeName.toLowerCase();return y&&(y==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||y==="textarea"||p.contentEditable==="true")}var Ha=xo&&"documentMode"in document&&document.documentMode<=11,Fr=null,qa=null,Fn=null,Fi=!1;function zi(p,y,S){var et=S.window===S?S.document:S.nodeType===9?S:S.ownerDocument;Fi||Fr==null||Fr!==at(et)||(et="selectionStart"in(et=Fr)&&Vr(et)?{start:et.selectionStart,end:et.selectionEnd}:{anchorNode:(et=(et.ownerDocument&&et.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:et.anchorOffset,focusNode:et.focusNode,focusOffset:et.focusOffset},Fn&&ba(Fn,et)||(Fn=et,0<(et=Ja(qa,"onSelect")).length&&(y=new Kn("onSelect","select",null,y,S),p.push({event:y,listeners:et}),y.target=Fr)))}ea("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),ea("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),ea(co,2);for(var ms="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ei=0;Ei<ms.length;Ei++)bi.set(ms[Ei],0);d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ui=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vo));function Wn(p,y,S){var et=p.type||"unknown-event";p.currentTarget=S,function(){var nt;je.apply(this,arguments),At&&(nt=Zt,At=!1,Zt=null,xt||(xt=!0,Wt=nt))}(et,y,void 0,p),p.currentTarget=null}function Wa(p,y){y=(4&y)!=0;for(var S=0;S<p.length;S++){var et=(nt=p[S]).event,nt=nt.listeners;t:{var st=void 0;if(y)for(var ft=nt.length-1;0<=ft;ft--){var Pt=(te=nt[ft]).instance,Ot=te.currentTarget,te=te.listener;if(Pt!==st&&et.isPropagationStopped())break t;Wn(et,te,Ot),st=Pt}else for(ft=0;ft<nt.length;ft++){if(Pt=(te=nt[ft]).instance,Ot=te.currentTarget,te=te.listener,Pt!==st&&et.isPropagationStopped())break t;Wn(et,te,Ot),st=Pt}}}if(xt)throw p=Wt,xt=!1,Wt=null,p}function dr(p,y){var S=Pi(y),et=p+"__bubble";S.has(et)||(Co(y,p,2,!1),S.add(et))}var Ci="_reactListening"+Math.random().toString(36).slice(2);function Va(p){p[Ci]||(p[Ci]=!0,l.forEach(function(y){Ui.has(y)||jr(y,!1,p,null),jr(y,!0,p,null)}))}function jr(p,y,S,et,st){var st=4<arguments.length&&st!==void 0?st:0,ft=S;if(p==="selectionchange"&&S.nodeType!==9&&(ft=S.ownerDocument),et!==null&&!y&&Ui.has(p)){if(p!=="scroll")return;st|=2,ft=et}S=Pi(ft),et=p+"__"+(y?"capture":"bubble"),S.has(et)||(y&&(st|=4),Co(ft,p,st,y),S.add(et))}function Co(p,y,S,et){var nt=bi.get(y);switch(nt===void 0?2:nt){case 0:nt=Ls;break;case 1:nt=ps;break;default:nt=ga}S=nt.bind(null,y,S,p),nt=!We||y!=="touchstart"&&y!=="touchmove"&&y!=="wheel"?void 0:!0,et?nt!==void 0?p.addEventListener(y,S,{capture:!0,passive:nt}):p.addEventListener(y,S,!0):nt!==void 0?p.addEventListener(y,S,{passive:nt}):p.addEventListener(y,S,!1)}function $a(p,y,S,et,nt){var st=et;if(!(1&y)&&!(2&y)&&et!==null)t:for(;;){if(et===null)return;var ft=et.tag;if(ft===3||ft===4){var Pt=et.stateNode.containerInfo;if(Pt===nt||Pt.nodeType===8&&Pt.parentNode===nt)break;if(ft===4)for(ft=et.return;ft!==null;){var Ot=ft.tag;if((Ot===3||Ot===4)&&((Ot=ft.stateNode.containerInfo)===nt||Ot.nodeType===8&&Ot.parentNode===nt))return;ft=ft.return}for(;Pt!==null;){if((ft=Ti(Pt))===null)return;if((Ot=ft.tag)===5||Ot===6){et=st=ft;continue t}Pt=Pt.parentNode}}et=et.return}var te=function(){var Oe,rn,hr,ne=st,pe=Ve(S),Ce=[];t:{var Ke=Ni.get(p);if(Ke!==void 0){var Je=Kn,Sn=p;switch(p){case"keypress":if(Ae(S)===0)break t;case"keydown":case"keyup":Je=Lr;break;case"focusin":Sn="focus",Je=xi;break;case"focusout":Sn="blur",Je=xi;break;case"beforeblur":case"afterblur":Je=xi;break;case"click":if(S.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Je=ho;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Je=ma;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Je=Di;break;case xr:case fo:case Sr:Je=ya;break;case Mr:Je=Li;break;case"scroll":Je=Pr;break;case"wheel":Je=Bs;break;case"copy":case"cut":case"paste":Je=Le;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Je=pr}for(var Un=!(Cn=(4&y)!=0)&&p==="scroll",Tn=Cn?Ke!==null?Ke+"Capture":null:Ke,Cn=[],gr=ne;gr!==null;){var Or,Rr=(Or=gr).stateNode;if(Or.tag===5&&Rr!==null&&(Or=Rr,Tn!==null&&(Rr=cn(gr,Tn))!=null&&Cn.push(_a(gr,Rr,Or))),Un)break;gr=gr.return}0<Cn.length&&(Ke=new Je(Ke,Sn,null,S,pe),Ce.push({event:Ke,listeners:Cn}))}}if(!(7&y)){if(Je=p==="mouseout"||p==="pointerout",(!(Ke=p==="mouseover"||p==="pointerover")||(16&y)!=0||!(Sn=S.relatedTarget||S.fromElement)||!Ti(Sn)&&!Sn[ai])&&(Je||Ke)&&(Ke=pe.window===pe?pe:(Ke=pe.ownerDocument)?Ke.defaultView||Ke.parentWindow:window,Je?(Je=ne,(Sn=(Sn=S.relatedTarget||S.toElement)?Ti(Sn):null)!==null&&(Sn!==(Un=Gt(Sn))||Sn.tag!==5&&Sn.tag!==6)&&(Sn=null)):(Je=null,Sn=ne),Je!==Sn)){if(Cn=ho,Rr="onMouseLeave",Tn="onMouseEnter",gr="mouse",p!=="pointerout"&&p!=="pointerover"||(Cn=pr,Rr="onPointerLeave",Tn="onPointerEnter",gr="pointer"),Un=Je==null?Ke:$o(Je),Or=Sn==null?Ke:$o(Sn),(Ke=new Cn(Rr,gr+"leave",Je,S,pe)).target=Un,Ke.relatedTarget=Or,Rr=null,Ti(pe)===ne&&((Cn=new Cn(Tn,gr+"enter",Sn,S,pe)).target=Or,Cn.relatedTarget=Un,Rr=Cn),Un=Rr,Je&&Sn)t:{for(Tn=Sn,gr=0,Or=Cn=Je;Or;Or=wr(Or))gr++;for(Or=0,Rr=Tn;Rr;Rr=wr(Rr))Or++;for(;0<gr-Or;)Cn=wr(Cn),gr--;for(;0<Or-gr;)Tn=wr(Tn),Or--;for(;gr--;){if(Cn===Tn||Tn!==null&&Cn===Tn.alternate)break t;Cn=wr(Cn),Tn=wr(Tn)}Cn=null}else Cn=null;Je!==null&&Us(Ce,Ke,Je,Cn,!1),Sn!==null&&Un!==null&&Us(Ce,Un,Sn,Cn,!0)}switch((Je=(Ke=ne?$o(ne):window).nodeName&&Ke.nodeName.toLowerCase())==="select"||Je==="input"&&Ke.type==="file"?Oe=Gn:ql(Ke)?Si?Oe=zs:(Oe=gl,rn=Ac):!(Je=Ke.nodeName)||Je.toLowerCase()!=="input"||Ke.type!=="checkbox"&&Ke.type!=="radio"||(Oe=cr),(Oe=Oe&&Oe(p,ne))?pl(Ce,Oe,S,pe):(rn&&rn(p,Ke,ne),p==="focusout"&&(rn=Ke._wrapperState)&&rn.controlled&&Ke.type==="number"&&Dt(Ke,"number",Ke.value)),rn=ne?$o(ne):window,p){case"focusin":!ql(rn)&&rn.contentEditable!=="true"||(Fr=rn,qa=ne,Fn=null);break;case"focusout":Fn=qa=Fr=null;break;case"mousedown":Fi=!0;break;case"contextmenu":case"mouseup":case"dragend":Fi=!1,zi(Ce,S,pe);break;case"selectionchange":if(Ha)break;case"keydown":case"keyup":zi(Ce,S,pe)}if(Bi)t:{switch(p){case"compositionstart":var Yn="onCompositionStart";break t;case"compositionend":Yn="onCompositionEnd";break t;case"compositionupdate":Yn="onCompositionUpdate";break t}Yn=void 0}else yr?Ul(p,S)&&(Yn="onCompositionEnd"):p==="keydown"&&S.keyCode===229&&(Yn="onCompositionStart");Yn&&(Bl&&S.locale!=="ko"&&(yr||Yn!=="onCompositionStart"?Yn==="onCompositionEnd"&&yr&&(hr=Be()):(Ba="value"in(Wo=pe)?Wo.value:Wo.textContent,yr=!0)),0<(rn=Ja(ne,Yn)).length&&(Yn=new go(Yn,p,null,S,pe),Ce.push({event:Yn,listeners:rn}),(hr||(hr=Hl(S))!==null)&&(Yn.data=hr))),(hr=(jc?function(or,Xn){switch(or){case"compositionend":return Hl(Xn);case"keypress":return Xn.which!==32?null:(zl=!0,Fl);case"textInput":return(or=Xn.data)===Fl&&zl?null:or;default:return null}}:function(or,Xn){if(yr)return or==="compositionend"||!Bi&&Ul(or,Xn)?(or=Be(),Fa=Ba=Wo=null,yr=!1,or):null;switch(or){case"paste":return null;case"keypress":if(!(Xn.ctrlKey||Xn.altKey||Xn.metaKey)||Xn.ctrlKey&&Xn.altKey){if(Xn.char&&1<Xn.char.length)return Xn.char;if(Xn.which)return String.fromCharCode(Xn.which)}return null;case"compositionend":return Bl&&Xn.locale!=="ko"?null:Xn.data;default:return null}})(p,S))&&0<(ne=Ja(ne,"onBeforeInput")).length&&(pe=new go("onBeforeInput","beforeinput",null,S,pe),Ce.push({event:pe,listeners:ne}),pe.data=hr)}Wa(Ce,y)},xe=void 0;if(de)te();else{de=!0;try{fb(te,xe)}finally{de=!1,Ye()}}}function _a(p,y,S){return{instance:p,listener:y,currentTarget:S}}function Ja(p,y){for(var S=y+"Capture",et=[];p!==null;){var nt=p,st=nt.stateNode;nt.tag===5&&st!==null&&(nt=st,(st=cn(p,S))!=null&&et.unshift(_a(p,st,nt)),(st=cn(p,y))!=null&&et.push(_a(p,st,nt))),p=p.return}return et}function wr(p){if(p===null)return null;for(;(p=p.return)&&p.tag!==5;);return p||null}function Us(p,y,S,et,nt){for(var st=y._reactName,ft=[];S!==null&&S!==et;){var Pt=S,Ot=Pt.alternate,te=Pt.stateNode;if(Ot!==null&&Ot===et)break;Pt.tag===5&&te!==null&&(Pt=te,nt?(Ot=cn(S,st))!=null&&ft.unshift(_a(S,Ot,Pt)):(Ot=cn(S,st))!=null&&ft.push(_a(S,Ot,Pt))),S=S.return}ft.length!==0&&p.push({event:y,listeners:ft})}function Kr(){}var oi=null,ra=null;function ys(p,y){switch(p){case"button":case"input":case"select":case"textarea":return y.autoFocus}}function Ka(p,y){return p==="textarea"||p==="option"||p==="noscript"||typeof y.children=="string"||typeof y.children=="number"||typeof y.dangerouslySetInnerHTML=="object"&&y.dangerouslySetInnerHTML!==null&&y.dangerouslySetInnerHTML.__html!=null}var oo=typeof setTimeout=="function"?setTimeout:void 0,wa=typeof clearTimeout=="function"?clearTimeout:void 0;function oa(p){(p.nodeType===1||p.nodeType===9&&(p=p.body)!=null)&&(p.textContent="")}function mo(p){for(;p!=null;p=p.nextSibling){var y=p.nodeType;if(y===1||y===3)break}return p}function Hs(p){p=p.previousSibling;for(var y=0;p;){if(p.nodeType===8){var S=p.data;if(S==="$"||S==="$!"||S==="$?"){if(y===0)return p;y--}else S==="/$"&&y++}p=p.previousSibling}return null}var Hi=0,Gr=Math.random().toString(36).slice(2),ii="__reactFiber$"+Gr,ki="__reactProps$"+Gr,ai="__reactContainer$"+Gr,Oi="__reactEvents$"+Gr;function Ti(p){var y=p[ii];if(y)return y;for(var S=p.parentNode;S;){if(y=S[ai]||S[ii]){if(S=y.alternate,y.child!==null||S!==null&&S.child!==null)for(p=Hs(p);p!==null;){if(S=p[ii])return S;p=Hs(p)}return y}S=(p=S).parentNode}return null}function si(p){return!(p=p[ii]||p[ai])||p.tag!==5&&p.tag!==6&&p.tag!==13&&p.tag!==3?null:p}function $o(p){if(p.tag===5||p.tag===6)return p.stateNode;throw Error(r(33))}function qi(p){return p[ki]||null}function Pi(p){var y=p[Oi];return y=y===void 0?p[Oi]=new Set:y}var xa=[],Sa=-1;function Vn(p){return{current:p}}function Mn(p){Sa<0||(p.current=xa[Sa],xa[Sa]=null,Sa--)}function un(p,y){xa[++Sa]=p.current,p.current=y}var Zr={},Er=Vn(Zr),Ar=Vn(!1),Wi=Zr;function er(p,y){var S=p.type.contextTypes;if(!S)return Zr;var et=p.stateNode;if(et&&et.__reactInternalMemoizedUnmaskedChildContext===y)return et.__reactInternalMemoizedMaskedChildContext;var nt,st={};for(nt in S)st[nt]=y[nt];return et&&((p=p.stateNode).__reactInternalMemoizedUnmaskedChildContext=y,p.__reactInternalMemoizedMaskedChildContext=st),st}function nr(p){return(p=p.childContextTypes)!=null}function An(){Mn(Ar),Mn(Er)}function Vi(p,y,S){if(Er.current!==Zr)throw Error(r(168));un(Er,y),un(Ar,S)}function Ga(p,y,S){var et,nt=p.stateNode;if(p=y.childContextTypes,typeof nt.getChildContext!="function")return S;for(et in nt=nt.getChildContext())if(!(et in p))throw Error(r(108,V(y)||"Unknown",et));return s({},S,nt)}function zr(p){p=(p=p.stateNode)&&p.__reactInternalMemoizedMergedChildContext||Zr,Wi=Er.current,un(Er,p),un(Ar,Ar.current)}function qs(p,y,S){var et=p.stateNode;if(!et)throw Error(r(169));S?(p=Ga(p,y,Wi),et.__reactInternalMemoizedMergedChildContext=p,Mn(Ar),Mn(Er),un(Er,p)):Mn(Ar),un(Ar,S)}var Do=null,ur=null,Ws=i.unstable_runWithPriority,In=i.unstable_scheduleCallback,io=i.unstable_cancelCallback,Jo=i.unstable_shouldYield,we=i.unstable_requestPaint,ao=i.unstable_now,_r=i.unstable_getCurrentPriorityLevel,Ea=i.unstable_ImmediatePriority,Dn=i.unstable_UserBlockingPriority,ko=i.unstable_NormalPriority,vs=i.unstable_LowPriority,Re=i.unstable_IdlePriority,so={},$i=we!==void 0?we:function(){},Ko=null,Oo=null,Ca=!1,Vs=ao(),Cr=Vs<1e4?ao:function(){return ao()-Vs};function rr(){switch(_r()){case Ea:return 99;case Dn:return 98;case ko:return 97;case vs:return 96;case Re:return 95;default:throw Error(r(332))}}function li(p){switch(p){case 99:return Ea;case 98:return Dn;case 97:return ko;case 96:return vs;case 95:return Re;default:throw Error(r(332))}}function To(p,y){return p=li(p),Ws(p,y)}function ji(p,y,S){return p=li(p),In(p,y,S)}function Hn(){var p;Oo!==null&&(p=Oo,Oo=null,io(p)),ml()}function ml(){if(!Ca&&Ko!==null){Ca=!0;var p=0;try{var y=Ko;To(99,function(){for(;p<y.length;p++)for(var S=y[p];(S=S(!0))!==null;);}),Ko=null}catch(S){throw Ko!==null&&(Ko=Ko.slice(p+1)),In(Ea,Hn),S}finally{Ca=!1}}}var Ji=O.ReactCurrentBatchConfig;function ir(p,y){if(p&&p.defaultProps){for(var S in y=s({},y),p=p.defaultProps)y[S]===void 0&&(y[S]=p[S]);return y}return y}var Lo=Vn(null),_o=null,yo=null,sr=null;function Bo(){sr=yo=_o=null}function ci(p){var y=Lo.current;Mn(Lo),p.type._context._currentValue=y}function $s(p,y){for(;p!==null;){var S=p.alternate;if((p.childLanes&y)===y){if(S===null||(S.childLanes&y)===y)break;S.childLanes|=y}else p.childLanes|=y,S!==null&&(S.childLanes|=y);p=p.return}}function lo(p,y){(sr=yo=null)!==(p=(_o=p).dependencies)&&p.firstContext!==null&&(p.lanes&y&&(ja=!0),p.firstContext=null)}function to(p,y){if(sr!==p&&y!==!1&&y!==0)if(typeof y=="number"&&y!==1073741823||(sr=p,y=1073741823),y={context:p,observedBits:y,next:null},yo===null){if(_o===null)throw Error(r(308));yo=y,_o.dependencies={lanes:0,firstContext:y,responders:null}}else yo=yo.next=y;return p._currentValue}var eo=!1;function ka(p){p.updateQueue={baseState:p.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Go(p,y){p=p.updateQueue,y.updateQueue===p&&(y.updateQueue={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,effects:p.effects})}function Yo(p,y){return{eventTime:p,lane:y,tag:0,payload:null,callback:null,next:null}}function ui(p,y){var S;(p=p.updateQueue)!==null&&((S=(p=p.shared).pending)===null?y.next=y:(y.next=S.next,S.next=y),p.pending=y)}function bs(p,y){var S=p.updateQueue,et=p.alternate;if(et!==null&&S===(et=et.updateQueue)){var nt=null,st=null;if((S=S.firstBaseUpdate)!==null){do var ft={eventTime:S.eventTime,lane:S.lane,tag:S.tag,payload:S.payload,callback:S.callback,next:null};while(st===null?nt=st=ft:st=st.next=ft,(S=S.next)!==null);st===null?nt=st=y:st=st.next=y}else nt=st=y;return S={baseState:et.baseState,firstBaseUpdate:nt,lastBaseUpdate:st,shared:et.shared,effects:et.effects},void(p.updateQueue=S)}(p=S.lastBaseUpdate)===null?S.firstBaseUpdate=y:p.next=y,S.lastBaseUpdate=y}function Ki(p,y,S,et){var nt,st,ft,Pt,Ot=p.updateQueue,te=(eo=!1,Ot.firstBaseUpdate),xe=Ot.lastBaseUpdate;if((ne=Ot.shared.pending)!==null&&(Ot.shared.pending=null,st=(nt=ne).next,(nt.next=null)===xe?te=st:xe.next=st,xe=nt,(ft=p.alternate)!==null&&(Pt=(ft=ft.updateQueue).lastBaseUpdate)!==xe&&(Pt===null?ft.firstBaseUpdate=st:Pt.next=st,ft.lastBaseUpdate=nt)),te!==null){for(Pt=Ot.baseState,xe=0,ft=st=nt=null;;){ne=te.lane;var Oe=te.eventTime;if((et&ne)===ne){ft!==null&&(ft=ft.next={eventTime:Oe,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});t:{var rn=p,hr=te,ne=y,Oe=S;switch(hr.tag){case 1:if(typeof(rn=hr.payload)=="function"){Pt=rn.call(Oe,Pt,ne);break t}Pt=rn;break t;case 3:rn.flags=-4097&rn.flags|64;case 0:if((ne=typeof(rn=hr.payload)=="function"?rn.call(Oe,Pt,ne):rn)==null)break t;Pt=s({},Pt,ne);break t;case 2:eo=!0}}te.callback!==null&&(p.flags|=32,(ne=Ot.effects)===null?Ot.effects=[te]:ne.push(te))}else Oe={eventTime:Oe,lane:ne,tag:te.tag,payload:te.payload,callback:te.callback,next:null},ft===null?(st=ft=Oe,nt=Pt):ft=ft.next=Oe,xe|=ne;if((te=te.next)===null){if((ne=Ot.shared.pending)===null)break;te=ne.next,ne.next=null,Ot.lastBaseUpdate=ne,Ot.shared.pending=null}}ft===null&&(nt=Pt),Ot.baseState=nt,Ot.firstBaseUpdate=st,Ot.lastBaseUpdate=ft,Dc|=xe,p.lanes=xe,p.memoizedState=Pt}}function Oa(p,y,S){if(p=y.effects,(y.effects=null)!==p)for(y=0;y<p.length;y++){var et=p[y],nt=et.callback;if(nt!==null){if(et.callback=null,et=S,typeof nt!="function")throw Error(r(191,nt));nt.call(et)}}}var Gi=new e.Component().refs;function Ya(p,y,S,et){S=(S=S(et,y=p.memoizedState))==null?y:s({},y,S),p.memoizedState=S,p.lanes===0&&(p.updateQueue.baseState=S)}var di={isMounted:function(p){return!!(p=p._reactInternals)&&Gt(p)===p},enqueueSetState:function(p,y,S){p=p._reactInternals;var et=Zi(),nt=Xs(p),st=Yo(et,nt);st.payload=y,S!=null&&(st.callback=S),ui(p,st),Qs(p,nt,et)},enqueueReplaceState:function(p,y,S){p=p._reactInternals;var et=Zi(),nt=Xs(p),st=Yo(et,nt);st.tag=1,st.payload=y,S!=null&&(st.callback=S),ui(p,st),Qs(p,nt,et)},enqueueForceUpdate:function(p,y){p=p._reactInternals;var S=Zi(),et=Xs(p),nt=Yo(S,et);nt.tag=2,y!=null&&(nt.callback=y),ui(p,nt),Qs(p,et,S)}};function _s(p,y,S,et,nt,st,ft){return typeof(p=p.stateNode).shouldComponentUpdate=="function"?p.shouldComponentUpdate(et,st,ft):!y.prototype||!y.prototype.isPureReactComponent||!ba(S,et)||!ba(nt,st)}function Js(p,y,S){var et=!1,nt=Zr,st=y.contextType;y=new y(S,st=typeof st=="object"&&st!==null?to(st):(nt=nr(y)?Wi:Er.current,(et=(et=y.contextTypes)!=null)?er(p,nt):Zr)),p.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=di,(p.stateNode=y)._reactInternals=p,et&&((p=p.stateNode).__reactInternalMemoizedUnmaskedChildContext=nt,p.__reactInternalMemoizedMaskedChildContext=st)}function Wl(p,y,S,et){p=y.state,typeof y.componentWillReceiveProps=="function"&&y.componentWillReceiveProps(S,et),typeof y.UNSAFE_componentWillReceiveProps=="function"&&y.UNSAFE_componentWillReceiveProps(S,et),y.state!==p&&di.enqueueReplaceState(y,y.state,null)}function Xa(p,y,S,et){var nt=p.stateNode,st=(nt.props=S,nt.state=p.memoizedState,nt.refs=Gi,ka(p),y.contextType);typeof st=="object"&&st!==null?nt.context=to(st):(st=nr(y)?Wi:Er.current,nt.context=er(p,st)),Ki(p,S,nt,et),nt.state=p.memoizedState,typeof(st=y.getDerivedStateFromProps)=="function"&&(Ya(p,0,st,S),nt.state=p.memoizedState),typeof y.getDerivedStateFromProps=="function"||typeof nt.getSnapshotBeforeUpdate=="function"||typeof nt.UNSAFE_componentWillMount!="function"&&typeof nt.componentWillMount!="function"||(y=nt.state,typeof nt.componentWillMount=="function"&&nt.componentWillMount(),typeof nt.UNSAFE_componentWillMount=="function"&&nt.UNSAFE_componentWillMount(),y!==nt.state&&di.enqueueReplaceState(nt,nt.state,null),Ki(p,S,nt,et),nt.state=p.memoizedState),typeof nt.componentDidMount=="function"&&(p.flags|=4)}var Qa=Array.isArray;function Yi(p,y,S){if((p=S.ref)!==null&&typeof p!="function"&&typeof p!="object"){if(S._owner){if(S=S._owner){if(S.tag!==1)throw Error(r(309));var et=S.stateNode}if(!et)throw Error(r(147,p));var nt=""+p;return y!==null&&y.ref!==null&&typeof y.ref=="function"&&y.ref._stringRef===nt?y.ref:((y=function(st){var ft=et.refs;ft===Gi&&(ft=et.refs={}),st===null?delete ft[nt]:ft[nt]=st})._stringRef=nt,y)}if(typeof p!="string")throw Error(r(284));if(!S._owner)throw Error(r(290,p))}return p}function fi(p,y){if(p.type!=="textarea")throw Error(r(31,Object.prototype.toString.call(y)==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":y))}function Ta(p){function y(ne,pe){var Ce;p&&((Ce=ne.lastEffect)!==null?(Ce.nextEffect=pe,ne.lastEffect=pe):ne.firstEffect=ne.lastEffect=pe,pe.nextEffect=null,pe.flags=8)}function S(ne,pe){if(!p)return null;for(;pe!==null;)y(ne,pe),pe=pe.sibling;return null}function et(ne,pe){for(ne=new Map;pe!==null;)pe.key!==null?ne.set(pe.key,pe):ne.set(pe.index,pe),pe=pe.sibling;return ne}function nt(ne,pe){return(ne=el(ne,pe)).index=0,ne.sibling=null,ne}function st(ne,pe,Ce){return ne.index=Ce,p?(Ce=ne.alternate)===null||(Ce=Ce.index)<pe?(ne.flags=2,pe):Ce:pe}function ft(ne){return p&&ne.alternate===null&&(ne.flags=2),ne}function Pt(ne,pe,Ce,Ke){return pe===null||pe.tag!==6?(pe=Kf(Ce,ne.mode,Ke)).return=ne:(pe=nt(pe,Ce)).return=ne,pe}function Ot(ne,pe,Ce,Ke){return pe!==null&&pe.elementType===Ce.type?(Ke=nt(pe,Ce.props)).ref=Yi(0,pe,Ce):(Ke=Yu(Ce.type,Ce.key,Ce.props,null,ne.mode,Ke)).ref=Yi(0,pe,Ce),Ke.return=ne,Ke}function te(ne,pe,Ce,Ke){return pe===null||pe.tag!==4||pe.stateNode.containerInfo!==Ce.containerInfo||pe.stateNode.implementation!==Ce.implementation?(pe=Gf(Ce,ne.mode,Ke)).return=ne:(pe=nt(pe,Ce.children||[])).return=ne,pe}function xe(ne,pe,Ce,Ke,Je){return pe===null||pe.tag!==7?(pe=Ql(Ce,ne.mode,Ke,Je)).return=ne:(pe=nt(pe,Ce)).return=ne,pe}function Oe(ne,pe,Ce){if(typeof pe=="string"||typeof pe=="number")return(pe=Kf(""+pe,ne.mode,Ce)).return=ne,pe;if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case I:return(Ce=Yu(pe.type,pe.key,pe.props,null,ne.mode,Ce)).ref=Yi(0,null,pe),Ce.return=ne,Ce;case L:return(pe=Gf(pe,ne.mode,Ce)).return=ne,pe}if(Qa(pe)||F(pe))return(pe=Ql(pe,ne.mode,Ce,null)).return=ne,pe;fi(ne,pe)}return null}function rn(ne,pe,Ce,Ke){var Je=pe!==null?pe.key:null;if(typeof Ce=="string"||typeof Ce=="number")return Je!==null?null:Pt(ne,pe,""+Ce,Ke);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case I:return Ce.key===Je?Ce.type===M?xe(ne,pe,Ce.props.children,Ke,Je):Ot(ne,pe,Ce,Ke):null;case L:return Ce.key===Je?te(ne,pe,Ce,Ke):null}if(Qa(Ce)||F(Ce))return Je!==null?null:xe(ne,pe,Ce,Ke,null);fi(ne,Ce)}return null}function hr(ne,pe,Ce,Ke,Je){if(typeof Ke=="string"||typeof Ke=="number")return Pt(pe,ne=ne.get(Ce)||null,""+Ke,Je);if(typeof Ke=="object"&&Ke!==null){switch(Ke.$$typeof){case I:return ne=ne.get(Ke.key===null?Ce:Ke.key)||null,Ke.type===M?xe(pe,ne,Ke.props.children,Je,Ke.key):Ot(pe,ne,Ke,Je);case L:return te(pe,ne=ne.get(Ke.key===null?Ce:Ke.key)||null,Ke,Je)}if(Qa(Ke)||F(Ke))return xe(pe,ne=ne.get(Ce)||null,Ke,Je,null);fi(pe,Ke)}return null}return function(ne,pe,Ce,Ke){var Je=typeof Ce=="object"&&Ce!==null&&Ce.type===M&&Ce.key===null,Sn=typeof(Ce=Je?Ce.props.children:Ce)=="object"&&Ce!==null;if(Sn)switch(Ce.$$typeof){case I:t:{for(Sn=Ce.key,Je=pe;Je!==null;){if(Je.key===Sn){switch(Je.tag){case 7:if(Ce.type!==M)break;S(ne,Je.sibling),(pe=nt(Je,Ce.props.children)).return=ne,ne=pe;break t;default:if(Je.elementType===Ce.type){S(ne,Je.sibling),(pe=nt(Je,Ce.props)).ref=Yi(0,Je,Ce),pe.return=ne,ne=pe;break t}}S(ne,Je);break}y(ne,Je),Je=Je.sibling}ne=Ce.type===M?((pe=Ql(Ce.props.children,ne.mode,Ke,Ce.key)).return=ne,pe):((Ke=Yu(Ce.type,Ce.key,Ce.props,null,ne.mode,Ke)).ref=Yi(0,pe,Ce),Ke.return=ne,Ke)}return ft(ne);case L:t:{for(Je=Ce.key;pe!==null;){if(pe.key===Je){if(pe.tag===4&&pe.stateNode.containerInfo===Ce.containerInfo&&pe.stateNode.implementation===Ce.implementation){S(ne,pe.sibling),(pe=nt(pe,Ce.children||[])).return=ne,ne=pe;break t}S(ne,pe);break}y(ne,pe),pe=pe.sibling}(pe=Gf(Ce,ne.mode,Ke)).return=ne,ne=pe}return ft(ne)}if(typeof Ce=="string"||typeof Ce=="number")return Ce=""+Ce,(pe=pe!==null&&pe.tag===6?(S(ne,pe.sibling),nt(pe,Ce)):(S(ne,pe),Kf(Ce,ne.mode,Ke))).return=ne,ft(ne=pe);if(Qa(Ce)){for(var Un=ne,Tn=pe,Cn=Ce,gr=Ke,Or=null,Rr=null,Yn=Tn,or=Tn=0,Xn=null;Yn!==null&&or<Cn.length;or++){Yn.index>or?(Xn=Yn,Yn=null):Xn=Yn.sibling;var Ur=rn(Un,Yn,Cn[or],gr);if(Ur===null){Yn===null&&(Yn=Xn);break}p&&Yn&&Ur.alternate===null&&y(Un,Yn),Tn=st(Ur,Tn,or),Rr===null?Or=Ur:Rr.sibling=Ur,Rr=Ur,Yn=Xn}if(or===Cn.length)return S(Un,Yn),Or;if(Yn===null){for(;or<Cn.length;or++)(Yn=Oe(Un,Cn[or],gr))!==null&&(Tn=st(Yn,Tn,or),Rr===null?Or=Yn:Rr.sibling=Yn,Rr=Yn);return Or}for(Yn=et(Un,Yn);or<Cn.length;or++)(Xn=hr(Yn,Un,or,Cn[or],gr))!==null&&(p&&Xn.alternate!==null&&Yn.delete(Xn.key===null?or:Xn.key),Tn=st(Xn,Tn,or),Rr===null?Or=Xn:Rr.sibling=Xn,Rr=Xn);return p&&Yn.forEach(function(tp){return y(Un,tp)}),Or}if(F(Ce)){var no=ne,sa=pe,rs=Ce,Zf=Ke,ks=F(rs);if(typeof ks!="function")throw Error(r(150));if((rs=ks.call(rs))==null)throw Error(r(151));for(var Os=ks=null,jo=sa,Ts=sa=0,Zu=null,Yr=rs.next();jo!==null&&!Yr.done;Ts++,Yr=rs.next()){jo.index>Ts?(Zu=jo,jo=null):Zu=jo.sibling;var Zl=rn(no,jo,Yr.value,Zf);if(Zl===null){jo===null&&(jo=Zu);break}p&&jo&&Zl.alternate===null&&y(no,jo),sa=st(Zl,sa,Ts),Os===null?ks=Zl:Os.sibling=Zl,Os=Zl,jo=Zu}if(Yr.done)return S(no,jo),ks;if(jo===null){for(;!Yr.done;Ts++,Yr=rs.next())(Yr=Oe(no,Yr.value,Zf))!==null&&(sa=st(Yr,sa,Ts),Os===null?ks=Yr:Os.sibling=Yr,Os=Yr);return ks}for(jo=et(no,jo);!Yr.done;Ts++,Yr=rs.next())(Yr=hr(jo,no,Ts,Yr.value,Zf))!==null&&(p&&Yr.alternate!==null&&jo.delete(Yr.key===null?Ts:Yr.key),sa=st(Yr,sa,Ts),Os===null?ks=Yr:Os.sibling=Yr,Os=Yr);return p&&jo.forEach(function(tp){return y(no,tp)}),ks}if(Sn&&fi(ne,Ce),Ce===void 0&&!Je)switch(ne.tag){case 1:case 22:case 0:case 11:case 15:throw Error(r(152,V(ne.type)||"Component"))}return S(ne,pe)}}var Za=Ta(!0),Nr=Ta(!1),Z={},pt=Vn(Z),mt=Vn(Z),vt=Vn(Z);function Lt(p){if(p===Z)throw Error(r(174));return p}function Jt(p,y){switch(un(vt,y),un(mt,p),un(pt,Z),p=y.nodeType){case 9:case 11:y=(y=y.documentElement)?y.namespaceURI:It(null,"");break;default:y=It(y=(p=p===8?y.parentNode:y).namespaceURI||null,p=p.tagName)}Mn(pt),un(pt,y)}function Xt(){Mn(pt),Mn(mt),Mn(vt)}function H(p){Lt(vt.current);var y=Lt(pt.current),S=It(y,p.type);y!==S&&(un(mt,p),un(pt,S))}function it(p){mt.current===p&&(Mn(pt),Mn(mt))}var ct=Vn(0);function ut(p){for(var y=p;y!==null;){if(y.tag===13){var S=y.memoizedState;if(S!==null&&((S=S.dehydrated)===null||S.data==="$?"||S.data==="$!"))return y}else if(y.tag===19&&y.memoizedProps.revealOrder!==void 0){if(64&y.flags)return y}else if(y.child!==null){y=(y.child.return=y).child;continue}if(y===p)break;for(;y.sibling===null;){if(y.return===null||y.return===p)return null;y=y.return}y.sibling.return=y.return,y=y.sibling}return null}var gt=null,Et=null,jt=!1;function Ct(p,y){var S=aa(5,null,null,0);S.elementType="DELETED",S.type="DELETED",S.stateNode=y,S.return=p,S.flags=8,p.lastEffect!==null?(p.lastEffect.nextEffect=S,p.lastEffect=S):p.firstEffect=p.lastEffect=S}function Mt(p,y){switch(p.tag){case 5:var S=p.type;return(y=y.nodeType!==1||S.toLowerCase()!==y.nodeName.toLowerCase()?null:y)!==null&&(p.stateNode=y,1);case 6:return(y=p.pendingProps===""||y.nodeType!==3?null:y)!==null&&(p.stateNode=y,1);default:return}}function Kt(p){if(jt){var y=Et;if(y){var S=y;if(!Mt(p,y)){if(!(y=mo(S.nextSibling))||!Mt(p,y))return p.flags=-1025&p.flags|2,jt=!1,void(gt=p);Ct(gt,S)}gt=p,Et=mo(y.firstChild)}else p.flags=-1025&p.flags|2,jt=!1,gt=p}}function $t(p){for(p=p.return;p!==null&&p.tag!==5&&p.tag!==3&&p.tag!==13;)p=p.return;gt=p}function le(p){if(p===gt){if(!jt)return $t(p),jt=!0,0;var y=p.type;if(p.tag!==5||y!=="head"&&y!=="body"&&!Ka(y,p.memoizedProps))for(y=Et;y;)Ct(p,y),y=mo(y.nextSibling);if($t(p),p.tag===13){if(!(p=(p=p.memoizedState)!==null?p.dehydrated:null))throw Error(r(317));t:{for(p=p.nextSibling,y=0;p;){if(p.nodeType===8){var S=p.data;if(S==="/$"){if(y===0){Et=mo(p.nextSibling);break t}y--}else S!=="$"&&S!=="$!"&&S!=="$?"||y++}p=p.nextSibling}Et=null}}else Et=gt?mo(p.stateNode.nextSibling):null;return 1}}function fe(){Et=gt=null,jt=!1}var he=[];function Ee(){for(var p=0;p<he.length;p++)he[p]._workInProgressVersionPrimary=null;he.length=0}var He=O.ReactCurrentDispatcher,ye=O.ReactCurrentBatchConfig,qe=0,tn=null,ln=null,vn=null,Nn=!1,Qn=!1;function en(){throw Error(r(321))}function pi(p,y){if(y!==null){for(var S=0;S<y.length&&S<p.length;S++)if(!zn(p[S],y[S]))return;return 1}}function Ai(p,y,S,et,nt,st){if(qe=st,(tn=y).memoizedState=null,y.updateQueue=null,y.lanes=0,He.current=p===null||p.memoizedState===null?Gv:Yv,p=S(et,nt),Qn){st=0;do if(Qn=!1,!(st<25))throw Error(r(301));while(st+=1,vn=ln=null,y.updateQueue=null,He.current=Xv,p=S(et,nt),Qn)}if(He.current=Uu,y=ln!==null&&ln.next!==null,qe=0,vn=ln=tn=null,Nn=!1,y)throw Error(r(300));return p}function $r(){var p={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vn===null?tn.memoizedState=vn=p:vn=vn.next=p,vn}function vo(){p=ln===null?(p=tn.alternate)!==null?p.memoizedState:null:ln.next;var p,y=vn===null?tn.memoizedState:vn.next;if(y!==null)vn=y,ln=p;else{if(p===null)throw Error(r(310));p={memoizedState:(ln=p).memoizedState,baseState:ln.baseState,baseQueue:ln.baseQueue,queue:ln.queue,next:null},vn===null?tn.memoizedState=vn=p:vn=vn.next=p}return vn}function kr(p,y){return typeof y=="function"?y(p):y}function lr(p){var y=vo(),S=y.queue;if(S===null)throw Error(r(311));S.lastRenderedReducer=p;var et,nt=(ft=ln).baseQueue,st=S.pending;if(st!==null&&(nt!==null&&(et=nt.next,nt.next=st.next,st.next=et),ft.baseQueue=nt=st,S.pending=null),nt!==null){var nt=nt.next,ft=ft.baseState,Pt=et=st=null,Ot=nt;do var te,xe=Ot.lane;while((qe&xe)===xe?(Pt!==null&&(Pt=Pt.next={lane:0,action:Ot.action,eagerReducer:Ot.eagerReducer,eagerState:Ot.eagerState,next:null}),ft=Ot.eagerReducer===p?Ot.eagerState:p(ft,Ot.action)):(te={lane:xe,action:Ot.action,eagerReducer:Ot.eagerReducer,eagerState:Ot.eagerState,next:null},Pt===null?(et=Pt=te,st=ft):Pt=Pt.next=te,tn.lanes|=xe,Dc|=xe),(Ot=Ot.next)!==null&&Ot!==nt);Pt===null?st=ft:Pt.next=et,zn(ft,y.memoizedState)||(ja=!0),y.memoizedState=ft,y.baseState=st,y.baseQueue=Pt,S.lastRenderedState=ft}return[y.memoizedState,S.dispatch]}function Ks(p){var y=vo(),S=y.queue;if(S===null)throw Error(r(311));S.lastRenderedReducer=p;var et=S.dispatch,nt=S.pending,st=y.memoizedState;if(nt!==null){S.pending=null;for(var ft=nt=nt.next;st=p(st,ft.action),(ft=ft.next)!==nt;);zn(st,y.memoizedState)||(ja=!0),y.memoizedState=st,y.baseQueue===null&&(y.baseState=st),S.lastRenderedState=st}return[st,et]}function Po(p,y,S){var et=(et=y._getVersion)(y._source),nt=y._workInProgressVersionPrimary;if(nt!==null?p=nt===et:(p=p.mutableReadLanes,(p=(qe&p)===p)&&(y._workInProgressVersionPrimary=et,he.push(y))),p)return S(y._source);throw he.push(y),Error(r(350))}function Rc(p,y,S,et){var nt=hi;if(nt===null)throw Error(r(349));var st=y._getVersion,ft=st(y._source),Pt=He.current,Ot=(xe=Pt.useState(function(){return Po(nt,y,S)}))[1],te=xe[0],xe=vn,Oe=(ne=p.memoizedState).refs,rn=Oe.getSnapshot,hr=ne.source,ne=ne.subscribe,pe=tn;return p.memoizedState={refs:Oe,source:y,subscribe:et},Pt.useEffect(function(){Oe.getSnapshot=S,Oe.setSnapshot=Ot;var Ce=st(y._source);if(!zn(ft,Ce)){Ce=S(y._source),zn(te,Ce)||(Ot(Ce),Ce=Xs(pe),nt.mutableReadLanes|=Ce&nt.pendingLanes),Ce=nt.mutableReadLanes,nt.entangledLanes|=Ce;for(var Ke=nt.entanglements,Je=Ce;0<Je;){var Sn=31-ei(Je),Un=1<<Sn;Ke[Sn]|=Ce,Je&=~Un}}},[S,y,et]),Pt.useEffect(function(){return et(y._source,function(){var Ce=Oe.getSnapshot,Ke=Oe.setSnapshot;try{Ke(Ce(y._source));var Je=Xs(pe);nt.mutableReadLanes|=Je&nt.pendingLanes}catch(Sn){Ke(function(){throw Sn})}})},[y,et]),zn(rn,S)&&zn(hr,y)&&zn(ne,et)||((p={pending:null,dispatch:null,lastRenderedReducer:kr,lastRenderedState:te}).dispatch=Ot=kf.bind(null,tn,p),xe.queue=p,xe.baseQueue=null,te=Po(nt,y,S),xe.memoizedState=xe.baseState=te),te}function Vl(p,y,S){return Rc(vo(),p,y,S)}function ws(p){var y=$r();return typeof p=="function"&&(p=p()),y.memoizedState=y.baseState=p,p=(p=y.queue={pending:null,dispatch:null,lastRenderedReducer:kr,lastRenderedState:p}).dispatch=kf.bind(null,tn,p),[y.memoizedState,p]}function Gs(p,y,S,et){return p={tag:p,create:y,destroy:S,deps:et,next:null},(y=tn.updateQueue)===null?(tn.updateQueue=y={lastEffect:null}).lastEffect=p.next=p:(S=y.lastEffect)===null?y.lastEffect=p.next=p:(et=S.next,(S.next=p).next=et,y.lastEffect=p),p}function Ic(p){return $r().memoizedState=p={current:p}}function Pa(){return vo().memoizedState}function Xi(p,y,S,et){var nt=$r();tn.flags|=p,nt.memoizedState=Gs(1|y,S,void 0,et===void 0?null:et)}function xs(p,y,S,et){var nt=vo(),st=(et=et===void 0?null:et,void 0);if(ln!==null){var ft=ln.memoizedState,st=ft.destroy;if(et!==null&&pi(et,ft.deps))return void Gs(y,S,st,et)}tn.flags|=p,nt.memoizedState=Gs(1|y,S,st,et)}function Ri(p,y){return Xi(516,4,p,y)}function ts(p,y){return xs(516,4,p,y)}function zu(p,y){return xs(4,2,p,y)}function Nc(p,y){return typeof y=="function"?(p=p(),y(p),function(){y(null)}):y!=null?(p=p(),y.current=p,function(){y.current=null}):void 0}function $l(p,y,S){return S=S!=null?S.concat([p]):null,xs(4,2,Nc.bind(null,y,p),S)}function es(){}function Ng(p,y){var S=vo(),et=(y=y===void 0?null:y,S.memoizedState);return et!==null&&y!==null&&pi(y,et[1])?et[0]:(S.memoizedState=[p,y],p)}function Mg(p,y){var S=vo(),et=(y=y===void 0?null:y,S.memoizedState);return et!==null&&y!==null&&pi(y,et[1])?et[0]:(p=p(),S.memoizedState=[p,y],p)}function kf(p,y,S){var et=Zi(),nt=Xs(p),st={lane:nt,action:S,eagerReducer:null,eagerState:null,next:null},ft=y.pending;if(ft===null?st.next=st:(st.next=ft.next,ft.next=st),y.pending=st,ft=p.alternate,p===tn||ft!==null&&ft===tn)Qn=Nn=!0;else{if(p.lanes===0&&(ft===null||ft.lanes===0)&&(ft=y.lastRenderedReducer)!==null)try{var Pt=y.lastRenderedState,Ot=ft(Pt,S);if(st.eagerReducer=ft,st.eagerState=Ot,zn(Ot,Pt))return}catch{}Qs(p,nt,et)}}var Uu={readContext:to,useCallback:en,useContext:en,useEffect:en,useImperativeHandle:en,useLayoutEffect:en,useMemo:en,useReducer:en,useRef:en,useState:en,useDebugValue:en,useDeferredValue:en,useTransition:en,useMutableSource:en,useOpaqueIdentifier:en,unstable_isNewReconciler:!1},Gv={readContext:to,useCallback:function(p,y){return $r().memoizedState=[p,y===void 0?null:y],p},useContext:to,useEffect:Ri,useImperativeHandle:function(p,y,S){return S=S!=null?S.concat([p]):null,Xi(4,2,Nc.bind(null,y,p),S)},useLayoutEffect:function(p,y){return Xi(4,2,p,y)},useMemo:function(p,y){var S=$r();return y=y===void 0?null:y,p=p(),S.memoizedState=[p,y],p},useReducer:function(p,y,S){var et=$r();return y=S!==void 0?S(y):y,et.memoizedState=et.baseState=y,p=(p=et.queue={pending:null,dispatch:null,lastRenderedReducer:p,lastRenderedState:y}).dispatch=kf.bind(null,tn,p),[et.memoizedState,p]},useRef:Ic,useState:ws,useDebugValue:es,useDeferredValue:function(p){var y=ws(p),S=y[0],et=y[1];return Ri(function(){var nt=ye.transition;ye.transition=1;try{et(p)}finally{ye.transition=nt}},[p]),S},useTransition:function(){var p=ws(!1),y=p[0];return Ic(p=(function(S,et){var nt=rr();To(nt<98?98:nt,function(){S(!0)}),To(97<nt?97:nt,function(){var st=ye.transition;ye.transition=1;try{S(!1),et()}finally{ye.transition=st}})}).bind(null,p[1])),[p,y]},useMutableSource:function(p,y,S){var et=$r();return et.memoizedState={refs:{getSnapshot:y,setSnapshot:null},source:p,subscribe:S},Rc(et,p,y,S)},useOpaqueIdentifier:function(){var p,y,S;return jt?(p=!1,S={$$typeof:$,toString:S=function(){throw p||(p=!0,y("r:"+(Hi++).toString(36))),Error(r(355))},valueOf:S},y=ws(S)[1],!(2&tn.mode)&&(tn.flags|=516,Gs(5,function(){y("r:"+(Hi++).toString(36))},void 0,null))):ws(S="r:"+(Hi++).toString(36)),S},unstable_isNewReconciler:!1},Yv={readContext:to,useCallback:Ng,useContext:to,useEffect:ts,useImperativeHandle:$l,useLayoutEffect:zu,useMemo:Mg,useReducer:lr,useRef:Pa,useState:function(){return lr(kr)},useDebugValue:es,useDeferredValue:function(p){var y=lr(kr),S=y[0],et=y[1];return ts(function(){var nt=ye.transition;ye.transition=1;try{et(p)}finally{ye.transition=nt}},[p]),S},useTransition:function(){var p=lr(kr)[0];return[Pa().current,p]},useMutableSource:Vl,useOpaqueIdentifier:function(){return lr(kr)[0]},unstable_isNewReconciler:!1},Xv={readContext:to,useCallback:Ng,useContext:to,useEffect:ts,useImperativeHandle:$l,useLayoutEffect:zu,useMemo:Mg,useReducer:Ks,useRef:Pa,useState:function(){return Ks(kr)},useDebugValue:es,useDeferredValue:function(p){var y=Ks(kr),S=y[0],et=y[1];return ts(function(){var nt=ye.transition;ye.transition=1;try{et(p)}finally{ye.transition=nt}},[p]),S},useTransition:function(){var p=Ks(kr)[0];return[Pa().current,p]},useMutableSource:Vl,useOpaqueIdentifier:function(){return Ks(kr)[0]},unstable_isNewReconciler:!1},Qv=O.ReactCurrentOwner,ja=!1;function Qi(p,y,S,et){y.child=p===null?Nr(y,null,S,et):Za(y,p.child,S,et)}function Dg(p,y,S,et,nt){S=S.render;var st=y.ref;return lo(y,nt),et=Ai(p,y,S,et,st,nt),p===null||ja?(y.flags|=1,Qi(p,y,et,nt),y.child):(y.updateQueue=p.updateQueue,y.flags&=-517,p.lanes&=~nt,Ss(p,y,nt))}function Lg(p,y,S,et,nt,st){var ft;return p===null?typeof(ft=S.type)!="function"||$f(ft)||ft.defaultProps!==void 0||S.compare!==null||S.defaultProps!==void 0?((p=Yu(S.type,null,et,y,y.mode,st)).ref=y.ref,(p.return=y).child=p):(y.tag=15,y.type=ft,Bg(p,y,ft,et,nt,st)):(ft=p.child,!(nt&st)&&(nt=ft.memoizedProps,(S=(S=S.compare)!==null?S:ba)(nt,et)&&p.ref===y.ref)?Ss(p,y,st):(y.flags|=1,(p=el(ft,et)).ref=y.ref,(p.return=y).child=p))}function Bg(p,y,S,et,nt,st){if(p!==null&&ba(p.memoizedProps,et)&&p.ref===y.ref){if(ja=!1,(st&nt)==0)return y.lanes=p.lanes,Ss(p,y,st);16384&p.flags&&(ja=!0)}return Of(p,y,S,et,st)}function Fg(p,y,S){var et=y.pendingProps,nt=et.children,st=p!==null?p.memoizedState:null;if(et.mode==="hidden"||et.mode==="unstable-defer-without-hiding")if(!(4&y.mode))y.memoizedState={baseLanes:0},Gu(0,S);else{if(!(1073741824&S))return p=st!==null?st.baseLanes|S:S,y.lanes=y.childLanes=1073741824,y.memoizedState={baseLanes:p},Gu(0,p),null;y.memoizedState={baseLanes:0},Gu(0,st!==null?st.baseLanes:S)}else st!==null?(et=st.baseLanes|S,y.memoizedState=null):et=S,Gu(0,et);return Qi(p,y,nt,S),y.child}function zg(p,y){var S=y.ref;(p===null&&S!==null||p!==null&&p.ref!==S)&&(y.flags|=128)}function Of(p,y,S,et,nt){var st=er(y,nr(S)?Wi:Er.current);return lo(y,nt),S=Ai(p,y,S,et,st,nt),p===null||ja?(y.flags|=1,Qi(p,y,S,nt),y.child):(y.updateQueue=p.updateQueue,y.flags&=-517,p.lanes&=~nt,Ss(p,y,nt))}function Ug(p,y,S,et,nt){var st,ft,Pt,Ot,te,xe,Oe,rn,hr,ne;return nr(S)?(st=!0,zr(y)):st=!1,lo(y,nt),et=y.stateNode===null?(p!==null&&(p.alternate=null,y.alternate=null,y.flags|=2),Js(y,S,et),Xa(y,S,et,nt),!0):p===null?(ft=y.stateNode,Pt=y.memoizedProps,ft.props=Pt,rn=ft.context,Ot=typeof(Ot=S.contextType)=="object"&&Ot!==null?to(Ot):er(y,Ot=nr(S)?Wi:Er.current),(xe=typeof(te=S.getDerivedStateFromProps)=="function"||typeof ft.getSnapshotBeforeUpdate=="function")||typeof ft.UNSAFE_componentWillReceiveProps!="function"&&typeof ft.componentWillReceiveProps!="function"||Pt===et&&rn===Ot||Wl(0,ft,et,Ot),eo=!1,Oe=y.memoizedState,ft.state=Oe,Ki(y,et,ft,nt),rn=y.memoizedState,Pt!==et||Oe!==rn||Ar.current||eo?(typeof te=="function"&&(Ya(y,0,te,et),rn=y.memoizedState),(Pt=eo||_s(y,S,Pt,et,Oe,rn,Ot))?(xe||typeof ft.UNSAFE_componentWillMount!="function"&&typeof ft.componentWillMount!="function"||(typeof ft.componentWillMount=="function"&&ft.componentWillMount(),typeof ft.UNSAFE_componentWillMount=="function"&&ft.UNSAFE_componentWillMount()),typeof ft.componentDidMount=="function"&&(y.flags|=4)):(typeof ft.componentDidMount=="function"&&(y.flags|=4),y.memoizedProps=et,y.memoizedState=rn),ft.props=et,ft.state=rn,ft.context=Ot,Pt):(typeof ft.componentDidMount=="function"&&(y.flags|=4),!1)):(ft=y.stateNode,Go(p,y),Pt=y.memoizedProps,Ot=y.type===y.elementType?Pt:ir(y.type,Pt),ft.props=Ot,xe=y.pendingProps,Oe=ft.context,rn=typeof(rn=S.contextType)=="object"&&rn!==null?to(rn):er(y,rn=nr(S)?Wi:Er.current),(te=typeof(hr=S.getDerivedStateFromProps)=="function"||typeof ft.getSnapshotBeforeUpdate=="function")||typeof ft.UNSAFE_componentWillReceiveProps!="function"&&typeof ft.componentWillReceiveProps!="function"||Pt===xe&&Oe===rn||Wl(0,ft,et,rn),eo=!1,Oe=y.memoizedState,ft.state=Oe,Ki(y,et,ft,nt),ne=y.memoizedState,Pt!==xe||Oe!==ne||Ar.current||eo?(typeof hr=="function"&&(Ya(y,0,hr,et),ne=y.memoizedState),(Ot=eo||_s(y,S,Ot,et,Oe,ne,rn))?(te||typeof ft.UNSAFE_componentWillUpdate!="function"&&typeof ft.componentWillUpdate!="function"||(typeof ft.componentWillUpdate=="function"&&ft.componentWillUpdate(et,ne,rn),typeof ft.UNSAFE_componentWillUpdate=="function"&&ft.UNSAFE_componentWillUpdate(et,ne,rn)),typeof ft.componentDidUpdate=="function"&&(y.flags|=4),typeof ft.getSnapshotBeforeUpdate=="function"&&(y.flags|=256)):(typeof ft.componentDidUpdate!="function"||Pt===p.memoizedProps&&Oe===p.memoizedState||(y.flags|=4),typeof ft.getSnapshotBeforeUpdate!="function"||Pt===p.memoizedProps&&Oe===p.memoizedState||(y.flags|=256),y.memoizedProps=et,y.memoizedState=ne),ft.props=et,ft.state=ne,ft.context=rn,Ot):(typeof ft.componentDidUpdate!="function"||Pt===p.memoizedProps&&Oe===p.memoizedState||(y.flags|=4),typeof ft.getSnapshotBeforeUpdate!="function"||Pt===p.memoizedProps&&Oe===p.memoizedState||(y.flags|=256),!1)),Tf(p,y,S,et,st,nt)}function Tf(p,y,S,et,nt,st){zg(p,y);var ft=(64&y.flags)!=0;if(!et&&!ft)return nt&&qs(y,S,!1),Ss(p,y,st);et=y.stateNode,Qv.current=y;var Pt=ft&&typeof S.getDerivedStateFromError!="function"?null:et.render();return y.flags|=1,p!==null&&ft?(y.child=Za(y,p.child,null,st),y.child=Za(y,null,Pt,st)):Qi(p,y,Pt,st),y.memoizedState=et.state,nt&&qs(y,S,!0),y.child}function Hg(p){var y=p.stateNode;y.pendingContext?Vi(0,y.pendingContext,y.pendingContext!==y.context):y.context&&Vi(0,y.context,!1),Jt(p,y.containerInfo)}var Pf={dehydrated:null,retryLane:0};function qg(p,y,S){var et,nt=y.pendingProps,st=ct.current,ft=!1;return(et=(et=(64&y.flags)!=0)?et:(p===null||p.memoizedState!==null)&&(2&st)!=0)?(ft=!0,y.flags&=-65):p!==null&&p.memoizedState===null||nt.fallback===void 0||nt.unstable_avoidThisFallback===!0||(st|=1),un(ct,1&st),p===null?(nt.fallback!==void 0&&Kt(y),p=nt.children,st=nt.fallback,ft?(p=Wg(y,p,st,S),y.child.memoizedState={baseLanes:S},y.memoizedState=Pf,p):typeof nt.unstable_expectedLoadTime=="number"?(p=Wg(y,p,st,S),y.child.memoizedState={baseLanes:S},y.memoizedState=Pf,y.lanes=33554432,p):((S=Jf({mode:"visible",children:p},y.mode,S,null)).return=y).child=S):(p.memoizedState,ft?(nt=tb(p,y,nt.children,nt.fallback,S),ft=y.child,st=p.child.memoizedState,ft.memoizedState=st===null?{baseLanes:S}:{baseLanes:st.baseLanes|S},ft.childLanes=p.childLanes&~S,y.memoizedState=Pf,nt):(S=Zv(p,y,nt.children,S),y.memoizedState=null,S))}function Wg(p,y,S,et){var nt=p.mode,st=p.child;return y={mode:"hidden",children:y},!(2&nt)&&st!==null?(st.childLanes=0,st.pendingProps=y):st=Jf(y,nt,0,null),S=Ql(S,nt,et,null),st.return=p,S.return=p,st.sibling=S,p.child=st,S}function Zv(p,y,S,et){var nt=p.child;return p=nt.sibling,S=el(nt,{mode:"visible",children:S}),!(2&y.mode)&&(S.lanes=et),S.return=y,(S.sibling=null)!==p&&(p.nextEffect=null,p.flags=8,y.firstEffect=y.lastEffect=p),y.child=S}function tb(p,y,S,et,nt){var st=y.mode,ft=p.child,Pt=(p=ft.sibling,{mode:"hidden",children:S});return!(2&st)&&y.child!==ft?((S=y.child).childLanes=0,S.pendingProps=Pt,(ft=S.lastEffect)!==null?(y.firstEffect=S.firstEffect,(y.lastEffect=ft).nextEffect=null):y.firstEffect=y.lastEffect=null):S=el(ft,Pt),p!==null?et=el(p,et):(et=Ql(et,st,nt,null)).flags|=2,et.return=y,S.return=y,S.sibling=et,y.child=S,et}function Vg(p,y){p.lanes|=y;var S=p.alternate;S!==null&&(S.lanes|=y),$s(p.return,y)}function jf(p,y,S,et,nt,st){var ft=p.memoizedState;ft===null?p.memoizedState={isBackwards:y,rendering:null,renderingStartTime:0,last:et,tail:S,tailMode:nt,lastEffect:st}:(ft.isBackwards=y,ft.rendering=null,ft.renderingStartTime=0,ft.last=et,ft.tail=S,ft.tailMode=nt,ft.lastEffect=st)}function $g(p,y,S){var et=y.pendingProps,nt=et.revealOrder,st=et.tail;if(Qi(p,y,et.children,S),(2&(et=ct.current))!=0)et=1&et|2,y.flags|=64;else{if(p!==null&&64&p.flags)t:for(p=y.child;p!==null;){if(p.tag===13)p.memoizedState!==null&&Vg(p,S);else if(p.tag===19)Vg(p,S);else if(p.child!==null){p=(p.child.return=p).child;continue}if(p===y)break;for(;p.sibling===null;){if(p.return===null||p.return===y)break t;p=p.return}p.sibling.return=p.return,p=p.sibling}et&=1}if(un(ct,et),(2&y.mode)==0)y.memoizedState=null;else switch(nt){case"forwards":for(S=y.child,nt=null;S!==null;)(p=S.alternate)!==null&&ut(p)===null&&(nt=S),S=S.sibling;(S=nt)===null?(nt=y.child,y.child=null):(nt=S.sibling,S.sibling=null),jf(y,!1,nt,S,st,y.lastEffect);break;case"backwards":for(nt=y.child,y.child=S=null;nt!==null;){if((p=nt.alternate)!==null&&ut(p)===null){y.child=nt;break}p=nt.sibling,nt.sibling=S,S=nt,nt=p}jf(y,!0,S,null,st,y.lastEffect);break;case"together":jf(y,!1,null,null,void 0,y.lastEffect);break;default:y.memoizedState=null}return y.child}function Ss(p,y,S){if(p!==null&&(y.dependencies=p.dependencies),Dc|=y.lanes,(S&y.childLanes)==0)return null;if(p!==null&&y.child!==p.child)throw Error(r(153));if(y.child!==null){for(S=el(p=y.child,p.pendingProps),(y.child=S).return=y;p.sibling!==null;)p=p.sibling,(S=S.sibling=el(p,p.pendingProps)).return=y;S.sibling=null}return y.child}function Mc(p,y){if(!jt)switch(p.tailMode){case"hidden":y=p.tail;for(var S=null;y!==null;)y.alternate!==null&&(S=y),y=y.sibling;S===null?p.tail=null:S.sibling=null;break;case"collapsed":for(var S=p.tail,et=null;S!==null;)S.alternate!==null&&(et=S),S=S.sibling;et===null?y||p.tail===null?p.tail=null:p.tail.sibling=null:et.sibling=null}}function Af(p,y){try{for(var S="",et=y;S+=function(st){switch(st.tag){case 5:return z(st.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return st=j(st.type,!1);case 11:return st=j(st.type.render,!1);case 22:return st=j(st.type._render,!1);case 1:return st=j(st.type,!0);default:return""}}(et),et=et.return;);var nt=S}catch(st){nt=`
|
|
78
|
+
Error generating stack: `+st.message+`
|
|
79
|
+
`+st.stack}return{value:p,source:y,stack:nt}}function Rf(p,y){try{console.error(y.value)}catch(S){setTimeout(function(){throw S})}}var eb=function(p,y){for(var S=y.child;S!==null;){if(S.tag===5||S.tag===6)p.appendChild(S.stateNode);else if(S.tag!==4&&S.child!==null){S=(S.child.return=S).child;continue}if(S===y)break;for(;S.sibling===null;){if(S.return===null||S.return===y)return;S=S.return}S.sibling.return=S.return,S=S.sibling}},nb=function(p,y,S,et){var nt=p.memoizedProps;if(nt!==et){p=y.stateNode,Lt(pt.current);var st,ft=null;switch(S){case"input":nt=q(p,nt),et=q(p,et),ft=[];break;case"option":nt=Ft(p,nt),et=Ft(p,et),ft=[];break;case"select":nt=s({},nt,{value:void 0}),et=s({},et,{value:void 0}),ft=[];break;case"textarea":nt=ue(p,nt),et=ue(p,et),ft=[];break;default:typeof nt.onClick!="function"&&typeof et.onClick=="function"&&(p.onclick=Kr)}for(te in on(S,et),S=null,nt)if(!et.hasOwnProperty(te)&&nt.hasOwnProperty(te)&&nt[te]!=null)if(te==="style"){var Pt=nt[te];for(st in Pt)Pt.hasOwnProperty(st)&&(S=S||{},S[st]="")}else te!=="dangerouslySetInnerHTML"&&te!=="children"&&te!=="suppressContentEditableWarning"&&te!=="suppressHydrationWarning"&&te!=="autoFocus"&&(n.hasOwnProperty(te)?ft=ft||[]:(ft=ft||[]).push(te,null));for(te in et){var Ot=et[te],Pt=nt!=null?nt[te]:void 0;if(et.hasOwnProperty(te)&&Ot!==Pt&&(Ot!=null||Pt!=null))if(te==="style")if(Pt){for(st in Pt)!Pt.hasOwnProperty(st)||Ot&&Ot.hasOwnProperty(st)||(S=S||{},S[st]="");for(st in Ot)Ot.hasOwnProperty(st)&&Pt[st]!==Ot[st]&&(S=S||{},S[st]=Ot[st])}else S||(ft=ft||[]).push(te,S),S=Ot;else te==="dangerouslySetInnerHTML"?(Ot=Ot?Ot.__html:void 0,Pt=Pt?Pt.__html:void 0,Ot!=null&&Pt!==Ot&&(ft=ft||[]).push(te,Ot)):te==="children"?typeof Ot!="string"&&typeof Ot!="number"||(ft=ft||[]).push(te,""+Ot):te!=="suppressContentEditableWarning"&&te!=="suppressHydrationWarning"&&(n.hasOwnProperty(te)?(Ot!=null&&te==="onScroll"&&dr("scroll",p),ft||Pt===Ot||(ft=[])):typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===$?Ot.toString():(ft=ft||[]).push(te,Ot))}S&&(ft=ft||[]).push("style",S);var te=ft;(y.updateQueue=te)&&(y.flags|=4)}},rb=function(p,y,S,et){S!==et&&(y.flags|=4)},ob=typeof WeakMap=="function"?WeakMap:Map;function Jg(p,y,S){(S=Yo(-1,S)).tag=3,S.payload={element:null};var et=y.value;return S.callback=function(){Wu||(Wu=!0,zf=et),Rf(0,y)},S}function Kg(st,y,S){(S=Yo(-1,S)).tag=3;var et,nt=st.type.getDerivedStateFromError,st=(typeof nt=="function"&&(et=y.value,S.payload=function(){return Rf(0,y),nt(et)}),st.stateNode);return st!==null&&typeof st.componentDidCatch=="function"&&(S.callback=function(){typeof nt!="function"&&(ns===null?ns=new Set([this]):ns.add(this),Rf(0,y));var ft=y.stack;this.componentDidCatch(y.value,{componentStack:ft!==null?ft:""})}),S}var ib=typeof WeakSet=="function"?WeakSet:Set;function Gg(p){var y=p.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(S){tl(p,S)}else y.current=null}function ab(p,y,S){switch(S.tag){case 0:case 11:case 15:case 22:if((y=(y=S.updateQueue)!==null?y.lastEffect:null)!==null){p=y=y.next;do;while((3&p.tag)==3&&(nt=p.create,p.destroy=nt()),(p=p.next)!==y)}if((y=(y=S.updateQueue)!==null?y.lastEffect:null)!==null){p=y=y.next;do{var et=p,nt=et.next;4&(et=et.tag)&&1&et&&(dm(S,p),et=S,st=p,Uf.push(st,et),Ys||(Ys=!0,ji(97,function(){return Zs(),null}))),p=nt}while(p!==y)}return;case 1:return p=S.stateNode,4&S.flags&&(y===null?p.componentDidMount():(nt=S.elementType===S.type?y.memoizedProps:ir(S.type,y.memoizedProps),p.componentDidUpdate(nt,y.memoizedState,p.__reactInternalSnapshotBeforeUpdate))),void((y=S.updateQueue)!==null&&Oa(0,y,p));case 3:if((y=S.updateQueue)!==null){if((p=null)!==S.child)switch(S.child.tag){case 5:case 1:p=S.child.stateNode}Oa(0,y,p)}return;case 5:return p=S.stateNode,void(y===null&&4&S.flags&&ys(S.type,S.memoizedProps)&&p.focus());case 6:case 4:case 12:return;case 13:return void(S.memoizedState===null&&(S=S.alternate)!==null&&(S=S.memoizedState)!==null&&(S=S.dehydrated)!==null&&tr(S));case 19:case 17:case 20:case 21:case 23:case 24:return}var st;throw Error(r(163))}function Yg(p,y){for(var S=p;;){if(S.tag===5){var et,nt=S.stateNode;y?typeof(nt=nt.style).setProperty=="function"?nt.setProperty("display","none","important"):nt.display="none":(nt=S.stateNode,et=(et=S.memoizedProps.style)!=null&&et.hasOwnProperty("display")?et.display:null,nt.style.display=yn("display",et))}else if(S.tag===6)S.stateNode.nodeValue=y?"":S.memoizedProps;else if((S.tag!==23&&S.tag!==24||S.memoizedState===null||S===p)&&S.child!==null){S=(S.child.return=S).child;continue}if(S===p)break;for(;S.sibling===null;){if(S.return===null||S.return===p)return;S=S.return}S.sibling.return=S.return,S=S.sibling}}function Xg(p,y){if(ur&&typeof ur.onCommitFiberUnmount=="function")try{ur.onCommitFiberUnmount(Do,y)}catch{}switch(y.tag){case 0:case 11:case 14:case 15:case 22:if((p=y.updateQueue)!==null&&(p=p.lastEffect)!==null){var S=p=p.next;do{var et=(nt=S).destroy,nt=nt.tag;if(et!==void 0)if(4&nt)dm(y,S);else{nt=y;try{et()}catch(st){tl(nt,st)}}}while((S=S.next)!==p)}break;case 1:if(Gg(y),typeof(p=y.stateNode).componentWillUnmount=="function")try{p.props=y.memoizedProps,p.state=y.memoizedState,p.componentWillUnmount()}catch(st){tl(y,st)}break;case 5:Gg(y);break;case 4:em(p,y)}}function Qg(p){p.alternate=null,p.child=null,p.dependencies=null,p.firstEffect=null,p.lastEffect=null,p.memoizedProps=null,p.memoizedState=null,p.pendingProps=null,p.return=null,p.updateQueue=null}function Zg(p){return p.tag===5||p.tag===3||p.tag===4}function tm(p){t:{for(var S=p.return;S!==null;){if(Zg(S))break t;S=S.return}throw Error(r(160))}var y=S,S=y.stateNode;switch(y.tag){case 5:var et=!1;break;case 3:case 4:S=S.containerInfo,et=!0;break;default:throw Error(r(161))}16&y.flags&&(De(S,""),y.flags&=-17);t:e:for(y=p;;){for(;y.sibling===null;){if(y.return===null||Zg(y.return)){y=null;break t}y=y.return}for(y.sibling.return=y.return,y=y.sibling;y.tag!==5&&y.tag!==6&&y.tag!==18;){if(2&y.flags||y.child===null||y.tag===4)continue e;y=(y.child.return=y).child}if(!(2&y.flags)){y=y.stateNode;break t}}(et?function nt(st,ft,Pt){var Ot=st.tag,te=Ot===5||Ot===6;if(te)st=te?st.stateNode:st.stateNode.instance,ft?(Pt.nodeType===8?Pt.parentNode:Pt).insertBefore(st,ft):(Pt.nodeType===8?(ft=Pt.parentNode,ft.insertBefore(st,Pt)):(ft=Pt,ft.appendChild(st)),Pt=Pt._reactRootContainer,Pt==null&&ft.onclick===null&&(ft.onclick=Kr));else if(Ot!==4&&(st=st.child,st!==null))for(nt(st,ft,Pt),st=st.sibling;st!==null;)nt(st,ft,Pt),st=st.sibling}:function nt(st,ft,Pt){var Ot=st.tag,te=Ot===5||Ot===6;if(te)st=te?st.stateNode:st.stateNode.instance,ft?Pt.insertBefore(st,ft):Pt.appendChild(st);else if(Ot!==4&&(st=st.child,st!==null))for(nt(st,ft,Pt),st=st.sibling;st!==null;)nt(st,ft,Pt),st=st.sibling})(p,y,S)}function em(p,y){for(var S,et,nt=y,st=!1;;){if(!st){st=nt.return;t:for(;;){if(st===null)throw Error(r(160));switch(S=st.stateNode,st.tag){case 5:et=!1;break t;case 3:case 4:S=S.containerInfo,et=!0;break t}st=st.return}st=!0}if(nt.tag===5||nt.tag===6){t:for(var ft=p,Pt=nt,Ot=Pt;;)if(Xg(ft,Ot),Ot.child!==null&&Ot.tag!==4)Ot.child.return=Ot,Ot=Ot.child;else{if(Ot===Pt)break;for(;Ot.sibling===null;){if(Ot.return===null||Ot.return===Pt)break t;Ot=Ot.return}Ot.sibling.return=Ot.return,Ot=Ot.sibling}et?(ft=S,Pt=nt.stateNode,(ft.nodeType===8?ft.parentNode:ft).removeChild(Pt)):S.removeChild(nt.stateNode)}else if(nt.tag===4){if(nt.child!==null){S=nt.stateNode.containerInfo,et=!0,nt=(nt.child.return=nt).child;continue}}else if(Xg(p,nt),nt.child!==null){nt=(nt.child.return=nt).child;continue}if(nt===y)break;for(;nt.sibling===null;){if(nt.return===null||nt.return===y)return;(nt=nt.return).tag===4&&(st=!1)}nt.sibling.return=nt.return,nt=nt.sibling}}function If(p,y){switch(y.tag){case 0:case 11:case 14:case 15:case 22:var S=y.updateQueue;if((S=S!==null?S.lastEffect:null)!==null)for(var et=S=S.next;(3&et.tag)==3&&(p=et.destroy,(et.destroy=void 0)!==p&&p()),(et=et.next)!==S;);return;case 1:return;case 5:if((S=y.stateNode)!=null){var et=y.memoizedProps,nt=p!==null?p.memoizedProps:et,st=(p=y.type,y.updateQueue);if((y.updateQueue=null)!==st){for(S[ki]=et,p==="input"&&et.type==="radio"&&et.name!=null&<(S,et),wn(p,nt),y=wn(p,et),nt=0;nt<st.length;nt+=2){var ft=st[nt],Pt=st[nt+1];ft==="style"?ee(S,Pt):ft==="dangerouslySetInnerHTML"?ge(S,Pt):ft==="children"?De(S,Pt):x(S,ft,Pt,y)}switch(p){case"input":bt(S,et);break;case"textarea":se(S,et);break;case"select":p=S._wrapperState.wasMultiple,S._wrapperState.wasMultiple=!!et.multiple,(st=et.value)!=null?Qt(S,!!et.multiple,st,!1):p!==!!et.multiple&&(et.defaultValue!=null?Qt(S,!!et.multiple,et.defaultValue,!0):Qt(S,!!et.multiple,et.multiple?[]:"",!1))}}}return;case 6:if(y.stateNode===null)throw Error(r(162));return void(y.stateNode.nodeValue=y.memoizedProps);case 3:return void((S=y.stateNode).hydrate&&(S.hydrate=!1,tr(S.containerInfo)));case 12:return;case 13:return y.memoizedState!==null&&(Bf=Cr(),Yg(y.child,!0)),void nm(y);case 19:return void nm(y);case 17:return;case 23:case 24:return void Yg(y,y.memoizedState!==null)}throw Error(r(163))}function nm(p){var y,S=p.updateQueue;S!==null&&((p.updateQueue=null)===(y=p.stateNode)&&(y=p.stateNode=new ib),S.forEach(function(et){var nt=(function(st,ft){var Pt=st.stateNode;Pt!==null&&Pt.delete(ft),(ft=0)===ft&&(2&(ft=st.mode)?4&ft?(ft=Jr(62914560&~(Cs=Cs===0?Jl:Cs)))===0&&(ft=4194304):ft=rr()===99?1:2:ft=1),Pt=Zi(),(st=Ku(st,ft))!==null&&(wi(st,ft,Pt),ia(st,Pt))}).bind(null,p,et);y.has(et)||(y.add(et),et.then(nt,nt))}))}var sb=Math.ceil,Hu=O.ReactCurrentDispatcher,Nf=O.ReactCurrentOwner,Zn=0,hi=null,wo=null,Xo=0,yl=0,Mf=Vn(0),Fo=0,qu=null,Jl=0,Dc=0,Kl=0,Df=0,Lf=null,Bf=0,Ff=1/0;function Gl(){Ff=Cr()+500}var rm,xn=null,Wu=!1,zf=null,ns=null,Ys=!1,Lc=null,Bc=90,Uf=[],Hf=[],Es=null,Fc=0,qf=null,Vu=-1,Cs=0,$u=0,zc=null,Ju=!1;function Zi(){return 48&Zn?Cr():Vu!==-1?Vu:Vu=Cr()}function Xs(p){return 2&(p=p.mode)?4&p?(Cs===0&&(Cs=Jl),Ji.transition!==0?($u!==0&&($u=Lf!==null?Lf.pendingLanes:0),p=Cs,y=4186112&~$u,(y&=-y)!==0||(y=(p=4186112&~p)&-p)===0&&(y=8192),y):(p=rr(),4&Zn&&p===98?Ho(12,Cs):Ho(p=function(S){switch(S){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(p),Cs))):rr()===99?1:2:1;var y}function Qs(p,y,S){if(50<Fc)throw Fc=0,qf=null,Error(r(185));var et;(p=Ku(p,y))!==null&&(wi(p,y,S),p===hi&&(Kl|=y,Fo===4&&Yl(p,Xo)),et=rr(),y===1?8&Zn&&!(48&Zn)?Wf(p):(ia(p,S),Zn===0&&(Gl(),Hn())):(!(4&Zn)||et!==98&&et!==99||(Es===null?Es=new Set([p]):Es.add(p)),ia(p,S)),Lf=p)}function Ku(p,y){p.lanes|=y;var S=p.alternate;for(S!==null&&(S.lanes|=y),p=(S=p).return;p!==null;)p.childLanes|=y,(S=p.alternate)!==null&&(S.childLanes|=y),p=(S=p).return;return S.tag===3?S.stateNode:null}function ia(p,y){for(var S=p.callbackNode,et=p.suspendedLanes,nt=p.pingedLanes,st=p.expirationTimes,ft=p.pendingLanes;0<ft;){var Pt,Ot=31-ei(ft),te=1<<Ot,xe=st[Ot];xe===-1?te&et&&!(te&nt)||(xe=y,po(te),Pt=ar,st[Ot]=10<=Pt?xe+250:6<=Pt?xe+5e3:-1):xe<=y&&(p.expiredLanes|=te),ft&=~te}if(et=_i(p,p===hi?Xo:0),y=ar,et===0)S!==null&&(S!==so&&io(S),p.callbackNode=null,p.callbackPriority=0);else{if(S!==null){if(p.callbackPriority===y)return;S!==so&&io(S)}S=y===15?(S=Wf.bind(null,p),Ko===null?(Ko=[S],Oo=In(Ea,ml)):Ko.push(S),so):y===14?ji(99,Wf.bind(null,p)):ji(S=function(Oe){switch(Oe){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(r(358,Oe))}}(y),om.bind(null,p)),p.callbackPriority=y,p.callbackNode=S}}function om(p){if(Vu=-1,($u=Cs=0)!=(48&Zn))throw Error(r(327));var y=p.callbackNode;if(Zs()&&p.callbackNode!==y)return null;var S=_i(p,p===hi?Xo:0);if(S===0)return null;var et=S,nt=Zn,st=(Zn|=16,lm());for(hi===p&&Xo===et||(Gl(),Xl(p,et));;)try{for(;wo!==null&&!Jo();)cm(wo);break}catch(Pt){sm(p,Pt)}if(Bo(),Hu.current=st,Zn=nt,et=wo!==null?0:(hi=null,Xo=0,Fo),(Jl&Kl)!=0)Xl(p,0);else if(et!==0){if(et===2&&(Zn|=64,p.hydrate&&(p.hydrate=!1,oa(p.containerInfo)),(S=Ro(p))!==0&&(et=Uc(p,S))),et===1)throw y=qu,Xl(p,0),Yl(p,S),ia(p,Cr()),y;switch(p.finishedWork=p.current.alternate,p.finishedLanes=S,et){case 0:case 1:throw Error(r(345));case 2:vl(p);break;case 3:if(Yl(p,S),(62914560&S)===S&&10<(et=Bf+500-Cr())){if(_i(p,0)!==0)break;if(((nt=p.suspendedLanes)&S)!==S){Zi(),p.pingedLanes|=p.suspendedLanes&nt;break}p.timeoutHandle=oo(vl.bind(null,p),et);break}vl(p);break;case 4:if(Yl(p,S),(4186112&S)===S)break;for(et=p.eventTimes,nt=-1;0<S;){var ft=31-ei(S),st=1<<ft;nt<(ft=et[ft])&&(nt=ft),S&=~st}if(S=nt,10<(S=((S=Cr()-S)<120?120:S<480?480:S<1080?1080:S<1920?1920:S<3e3?3e3:S<4320?4320:1960*sb(S/1960))-S)){p.timeoutHandle=oo(vl.bind(null,p),S);break}vl(p);break;case 5:vl(p);break;default:throw Error(r(329))}}return ia(p,Cr()),p.callbackNode===y?om.bind(null,p):null}function Yl(p,y){for(y=y&~Df&~Kl,p.suspendedLanes|=y,p.pingedLanes&=~y,p=p.expirationTimes;0<y;){var S=31-ei(y),et=1<<S;p[S]=-1,y&=~et}}function Wf(p){if(48&Zn)throw Error(r(327));var y,S;if(Zs(),p===hi&&p.expiredLanes&Xo?(S=Uc(p,y=Xo),Jl&Kl&&(S=Uc(p,y=_i(p,y)))):S=Uc(p,y=_i(p,0)),p.tag!==0&&S===2&&(Zn|=64,p.hydrate&&(p.hydrate=!1,oa(p.containerInfo)),(y=Ro(p))!==0&&(S=Uc(p,y))),S===1)throw S=qu,Xl(p,0),Yl(p,y),ia(p,Cr()),S;return p.finishedWork=p.current.alternate,p.finishedLanes=y,vl(p),ia(p,Cr()),null}function im(p,y){var S=Zn;Zn|=1;try{return p(y)}finally{(Zn=S)===0&&(Gl(),Hn())}}function am(p,y){var S=Zn;Zn=-2&Zn|8;try{p(y)}finally{(Zn=S)===0&&(Gl(),Hn())}}function Gu(p,y){un(Mf,yl),yl|=y,Jl|=y}function Vf(){yl=Mf.current,Mn(Mf)}function Xl(p,y){p.finishedWork=null,p.finishedLanes=0;var S=p.timeoutHandle;if(S!==-1&&(p.timeoutHandle=-1,wa(S)),wo!==null)for(S=wo.return;S!==null;){var et=S;switch(et.tag){case 1:(et=et.type.childContextTypes)!=null&&An();break;case 3:Xt(),Mn(Ar),Mn(Er),Ee();break;case 5:it(et);break;case 4:Xt();break;case 13:case 19:Mn(ct);break;case 10:ci(et);break;case 23:case 24:Vf()}S=S.return}wo=el((hi=p).current,null),Xo=yl=Jl=y,qu=null,Df=Kl=Dc=Fo=0}function sm(p,y){do{var S=wo;try{if(Bo(),He.current=Uu,Nn){for(var et=tn.memoizedState;et!==null;){var nt=et.queue;nt!==null&&(nt.pending=null),et=et.next}Nn=!1}if(qe=0,vn=ln=tn=null,Qn=!1,(Nf.current=null)===S||S.return===null){Fo=1,qu=y,wo=null;break}t:{var st=p,ft=S.return,Pt=y;if(y=Xo,(Sn=S).flags|=2048,(Sn.firstEffect=Sn.lastEffect=null)!==Pt&&typeof Pt=="object"&&typeof Pt.then=="function"){var Ot,te,xe,Oe,rn=Pt,hr=(!(2&Sn.mode)&&((Ot=Sn.alternate)?(Sn.updateQueue=Ot.updateQueue,Sn.memoizedState=Ot.memoizedState,Sn.lanes=Ot.lanes):(Sn.updateQueue=null,Sn.memoizedState=null)),(1&ct.current)!=0),ne=ft;do if(Oe=(Oe=ne.tag===13)?(te=ne.memoizedState)!==null?te.dehydrated!==null:(xe=ne.memoizedProps).fallback!==void 0&&(xe.unstable_avoidThisFallback!==!0||!hr):Oe){var pe,Ce,Ke=ne.updateQueue;if(Ke===null?((pe=new Set).add(rn),ne.updateQueue=pe):Ke.add(rn),(2&ne.mode)==0){ne.flags|=64,Sn.flags|=16384,Sn.flags&=-2981,Sn.tag===1&&(Sn.alternate===null?Sn.tag=17:((Ce=Yo(-1,1)).tag=2,ui(Sn,Ce))),Sn.lanes|=1;break t}var Je,Pt=void 0,Sn=y,Un=st.pingCache;Un===null?(Un=st.pingCache=new ob,Pt=new Set,Un.set(rn,Pt)):(Pt=Un.get(rn))===void 0&&(Pt=new Set,Un.set(rn,Pt)),Pt.has(Sn)||(Pt.add(Sn),Je=cb.bind(null,st,rn,Sn),rn.then(Je,Je)),ne.flags|=4096,ne.lanes=y;break t}while((ne=ne.return)!==null);Pt=Error((V(Sn.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
80
|
+
|
|
81
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Fo!==5&&(Fo=2),Pt=Af(Pt,Sn),ne=ft;do switch(ne.tag){case 3:st=Pt,ne.flags|=4096,y&=-y,ne.lanes|=y,bs(ne,Jg(0,st,y));break t;case 1:st=Pt;var Tn=ne.type,Cn=ne.stateNode;if(!(64&ne.flags)&&(typeof Tn.getDerivedStateFromError=="function"||Cn!==null&&typeof Cn.componentDidCatch=="function"&&(ns===null||!ns.has(Cn)))){ne.flags|=4096,y&=-y,ne.lanes|=y,bs(ne,Kg(ne,st,y));break t}}while((ne=ne.return)!==null)}um(S)}catch(gr){y=gr,wo===S&&S!==null&&(wo=S=S.return);continue}break}while(1)}function lm(){var p=Hu.current;return Hu.current=Uu,p===null?Uu:p}function Uc(p,y){var S=Zn,et=(Zn|=16,lm());for(hi===p&&Xo===y||Xl(p,y);;)try{for(;wo!==null;)cm(wo);break}catch(nt){sm(p,nt)}if(Bo(),Zn=S,Hu.current=et,wo!==null)throw Error(r(261));return hi=null,Xo=0,Fo}function cm(p){var y=rm(p.alternate,p,yl);p.memoizedProps=p.pendingProps,y===null?um(p):wo=y,Nf.current=null}function um(p){var y=p;do{var S=y.alternate;if(p=y.return,(2048&y.flags)==0){if((S=function(st,ft,Pt){var Ot=ft.pendingProps;switch(ft.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return nr(ft.type)&&An(),null;case 3:return Xt(),Mn(Ar),Mn(Er),Ee(),(Ot=ft.stateNode).pendingContext&&(Ot.context=Ot.pendingContext,Ot.pendingContext=null),st!==null&&st.child!==null||(le(ft)?ft.flags|=4:Ot.hydrate||(ft.flags|=256)),null;case 5:it(ft);var te=Lt(vt.current);if(Pt=ft.type,st!==null&&ft.stateNode!=null)nb(st,ft,Pt,Ot),st.ref!==ft.ref&&(ft.flags|=128);else{if(!Ot){if(ft.stateNode===null)throw Error(r(166));return null}if(st=Lt(pt.current),le(ft)){Ot=ft.stateNode,Pt=ft.type;var xe,Oe=ft.memoizedProps;switch(Ot[ii]=ft,Ot[ki]=Oe,Pt){case"dialog":dr("cancel",Ot),dr("close",Ot);break;case"iframe":case"object":case"embed":dr("load",Ot);break;case"video":case"audio":for(st=0;st<Vo.length;st++)dr(Vo[st],Ot);break;case"source":dr("error",Ot);break;case"img":case"image":case"link":dr("error",Ot),dr("load",Ot);break;case"details":dr("toggle",Ot);break;case"input":ht(Ot,Oe),dr("invalid",Ot);break;case"select":Ot._wrapperState={wasMultiple:!!Oe.multiple},dr("invalid",Ot);break;case"textarea":ae(Ot,Oe),dr("invalid",Ot)}for(xe in on(Pt,Oe),st=null,Oe)Oe.hasOwnProperty(xe)&&(te=Oe[xe],xe==="children"?typeof te=="string"?Ot.textContent!==te&&(st=["children",te]):typeof te=="number"&&Ot.textContent!==""+te&&(st=["children",""+te]):n.hasOwnProperty(xe)&&te!=null&&xe==="onScroll"&&dr("scroll",Ot));switch(Pt){case"input":T(Ot),_t(Ot,Oe,!0);break;case"textarea":T(Ot),Ne(Ot);break;case"select":case"option":break;default:typeof Oe.onClick=="function"&&(Ot.onclick=Kr)}Ot=st,(ft.updateQueue=Ot)!==null&&(ft.flags|=4)}else{switch(xe=te.nodeType===9?te:te.ownerDocument,(st=st===ce?Nt(Pt):st)===ce?Pt==="script"?((st=xe.createElement("div")).innerHTML="<script><\/script>",st=st.removeChild(st.firstChild)):typeof Ot.is=="string"?st=xe.createElement(Pt,{is:Ot.is}):(st=xe.createElement(Pt),Pt==="select"&&(xe=st,Ot.multiple?xe.multiple=!0:Ot.size&&(xe.size=Ot.size))):st=xe.createElementNS(st,Pt),st[ii]=ft,st[ki]=Ot,eb(st,ft),ft.stateNode=st,xe=wn(Pt,Ot),Pt){case"dialog":dr("cancel",st),dr("close",st),te=Ot;break;case"iframe":case"object":case"embed":dr("load",st),te=Ot;break;case"video":case"audio":for(te=0;te<Vo.length;te++)dr(Vo[te],st);te=Ot;break;case"source":dr("error",st),te=Ot;break;case"img":case"image":case"link":dr("error",st),dr("load",st),te=Ot;break;case"details":dr("toggle",st),te=Ot;break;case"input":ht(st,Ot),te=q(st,Ot),dr("invalid",st);break;case"option":te=Ft(st,Ot);break;case"select":st._wrapperState={wasMultiple:!!Ot.multiple},te=s({},Ot,{value:void 0}),dr("invalid",st);break;case"textarea":ae(st,Ot),te=ue(st,Ot),dr("invalid",st);break;default:te=Ot}on(Pt,te);var rn,hr=te;for(Oe in hr)hr.hasOwnProperty(Oe)&&(rn=hr[Oe],Oe==="style"?ee(st,rn):Oe==="dangerouslySetInnerHTML"?(rn=rn?rn.__html:void 0)!=null&&ge(st,rn):Oe==="children"?typeof rn=="string"?Pt==="textarea"&&rn===""||De(st,rn):typeof rn=="number"&&De(st,""+rn):Oe!=="suppressContentEditableWarning"&&Oe!=="suppressHydrationWarning"&&Oe!=="autoFocus"&&(n.hasOwnProperty(Oe)?rn!=null&&Oe==="onScroll"&&dr("scroll",st):rn!=null&&x(st,Oe,rn,xe)));switch(Pt){case"input":T(st),_t(st,Ot,!1);break;case"textarea":T(st),Ne(st);break;case"option":Ot.value!=null&&st.setAttribute("value",""+K(Ot.value));break;case"select":st.multiple=!!Ot.multiple,(Oe=Ot.value)!=null?Qt(st,!!Ot.multiple,Oe,!1):Ot.defaultValue!=null&&Qt(st,!!Ot.multiple,Ot.defaultValue,!0);break;default:typeof te.onClick=="function"&&(st.onclick=Kr)}ys(Pt,Ot)&&(ft.flags|=4)}ft.ref!==null&&(ft.flags|=128)}return null;case 6:if(st&&ft.stateNode!=null)rb(0,ft,st.memoizedProps,Ot);else{if(typeof Ot!="string"&&ft.stateNode===null)throw Error(r(166));Pt=Lt(vt.current),Lt(pt.current),le(ft)?(Ot=ft.stateNode,Pt=ft.memoizedProps,Ot[ii]=ft,Ot.nodeValue!==Pt&&(ft.flags|=4)):((Ot=(Pt.nodeType===9?Pt:Pt.ownerDocument).createTextNode(Ot))[ii]=ft).stateNode=Ot}return null;case 13:return Mn(ct),Ot=ft.memoizedState,(64&ft.flags)!=0?(ft.lanes=Pt,ft):(Ot=Ot!==null,Pt=!1,st===null?ft.memoizedProps.fallback!==void 0&&le(ft):Pt=st.memoizedState!==null,Ot&&!Pt&&2&ft.mode&&(st===null&&ft.memoizedProps.unstable_avoidThisFallback!==!0||1&ct.current?Fo===0&&(Fo=3):(Fo!==0&&Fo!==3||(Fo=4),hi===null||!(134217727&Dc)&&!(134217727&Kl)||Yl(hi,Xo))),(Ot||Pt)&&(ft.flags|=4),null);case 4:return Xt(),st===null&&Va(ft.stateNode.containerInfo),null;case 10:return ci(ft),null;case 17:return nr(ft.type)&&An(),null;case 19:if(Mn(ct),(Ot=ft.memoizedState)===null)return null;if(Oe=(64&ft.flags)!=0,(xe=Ot.rendering)===null)if(Oe)Mc(Ot,!1);else{if(Fo!==0||st!==null&&64&st.flags)for(st=ft.child;st!==null;){if((xe=ut(st))!==null){for(ft.flags|=64,Mc(Ot,!1),(Oe=xe.updateQueue)!==null&&(ft.updateQueue=Oe,ft.flags|=4),Ot.lastEffect===null&&(ft.firstEffect=null),ft.lastEffect=Ot.lastEffect,Ot=Pt,Pt=ft.child;Pt!==null;)st=Ot,(Oe=Pt).flags&=2,Oe.nextEffect=null,Oe.firstEffect=null,(Oe.lastEffect=null)===(xe=Oe.alternate)?(Oe.childLanes=0,Oe.lanes=st,Oe.child=null,Oe.memoizedProps=null,Oe.memoizedState=null,Oe.updateQueue=null,Oe.dependencies=null,Oe.stateNode=null):(Oe.childLanes=xe.childLanes,Oe.lanes=xe.lanes,Oe.child=xe.child,Oe.memoizedProps=xe.memoizedProps,Oe.memoizedState=xe.memoizedState,Oe.updateQueue=xe.updateQueue,Oe.type=xe.type,st=xe.dependencies,Oe.dependencies=st===null?null:{lanes:st.lanes,firstContext:st.firstContext}),Pt=Pt.sibling;return un(ct,1&ct.current|2),ft.child}st=st.sibling}Ot.tail!==null&&Cr()>Ff&&(ft.flags|=64,Mc(Ot,!(Oe=!0)),ft.lanes=33554432)}else{if(!Oe)if((st=ut(xe))!==null){if(ft.flags|=64,Oe=!0,(Pt=st.updateQueue)!==null&&(ft.updateQueue=Pt,ft.flags|=4),Mc(Ot,!0),Ot.tail===null&&Ot.tailMode==="hidden"&&!xe.alternate&&!jt)return(ft=ft.lastEffect=Ot.lastEffect)!==null&&(ft.nextEffect=null),null}else 2*Cr()-Ot.renderingStartTime>Ff&&Pt!==1073741824&&(ft.flags|=64,Mc(Ot,!(Oe=!0)),ft.lanes=33554432);Ot.isBackwards?(xe.sibling=ft.child,ft.child=xe):((Pt=Ot.last)!==null?Pt.sibling=xe:ft.child=xe,Ot.last=xe)}return Ot.tail!==null?(Pt=Ot.tail,Ot.rendering=Pt,Ot.tail=Pt.sibling,Ot.lastEffect=ft.lastEffect,Ot.renderingStartTime=Cr(),Pt.sibling=null,ft=ct.current,un(ct,Oe?1&ft|2:1&ft),Pt):null;case 23:case 24:return Vf(),st!==null&&st.memoizedState!==null!=(ft.memoizedState!==null)&&Ot.mode!=="unstable-defer-without-hiding"&&(ft.flags|=4),null}throw Error(r(156,ft.tag))}(S,y,yl))!==null)return void(wo=S);if((S=y).tag!==24&&S.tag!==23||S.memoizedState===null||1073741824&yl||!(4&S.mode)){for(var et=0,nt=S.child;nt!==null;)et|=nt.lanes|nt.childLanes,nt=nt.sibling;S.childLanes=et}p!==null&&!(2048&p.flags)&&(p.firstEffect===null&&(p.firstEffect=y.firstEffect),y.lastEffect!==null&&(p.lastEffect!==null&&(p.lastEffect.nextEffect=y.firstEffect),p.lastEffect=y.lastEffect),1<y.flags&&(p.lastEffect!==null?p.lastEffect.nextEffect=y:p.firstEffect=y,p.lastEffect=y))}else{if((S=function(st){switch(st.tag){case 1:nr(st.type)&&An();var ft=st.flags;return 4096&ft?(st.flags=-4097&ft|64,st):null;case 3:if(Xt(),Mn(Ar),Mn(Er),Ee(),(64&(ft=st.flags))!=0)throw Error(r(285));return st.flags=-4097&ft|64,st;case 5:return it(st),null;case 13:return Mn(ct),4096&(ft=st.flags)?(st.flags=-4097&ft|64,st):null;case 19:return Mn(ct),null;case 4:return Xt(),null;case 10:return ci(st),null;case 23:case 24:return Vf(),null;default:return null}}(y))!==null)return S.flags&=2047,void(wo=S);p!==null&&(p.firstEffect=p.lastEffect=null,p.flags|=2048)}if((y=y.sibling)!==null)return void(wo=y)}while(wo=y=p,y!==null);Fo===0&&(Fo=5)}function vl(p){var y=rr();return To(99,(function(S,et){for(;Zs(),Lc!==null;);if(48&Zn)throw Error(r(327));var nt=S.finishedWork;if(nt===null)return null;if(S.finishedWork=null,S.finishedLanes=0,nt===S.current)throw Error(r(177));S.callbackNode=null;var st=nt.lanes|nt.childLanes,ft=st,Pt=S.pendingLanes&~ft;S.pendingLanes=ft,S.suspendedLanes=0,S.pingedLanes=0,S.expiredLanes&=ft,S.mutableReadLanes&=ft,S.entangledLanes&=ft,ft=S.entanglements;for(var Ot,te=S.eventTimes,xe=S.expirationTimes;0<Pt;){var Oe=31-ei(Pt),rn=1<<Oe;ft[Oe]=0,te[Oe]=-1,xe[Oe]=-1,Pt&=~rn}if(Es!==null&&!(24&st)&&Es.has(S)&&Es.delete(S),S===hi&&(wo=hi=null,Xo=0),st=1<nt.flags?nt.lastEffect!==null?(nt.lastEffect.nextEffect=nt,nt.firstEffect):nt:nt.firstEffect,st!==null){if(ft=Zn,Zn|=32,Nf.current=null,oi=na,Vr(te=Ua())){if("selectionStart"in te)xe={start:te.selectionStart,end:te.selectionEnd};else t:if(xe=(xe=te.ownerDocument)&&xe.defaultView||window,(rn=xe.getSelection&&xe.getSelection())&&rn.rangeCount!==0){xe=rn.anchorNode,Pt=rn.anchorOffset,Oe=rn.focusNode,rn=rn.focusOffset;try{xe.nodeType,Oe.nodeType}catch{xe=null;break t}var hr=0,ne=-1,pe=-1,Ce=0,Ke=0,Je=te,Sn=null;e:for(;;){for(;Je!==xe||Pt!==0&&Je.nodeType!==3||(ne=hr+Pt),Je!==Oe||rn!==0&&Je.nodeType!==3||(pe=hr+rn),Je.nodeType===3&&(hr+=Je.nodeValue.length),(Ot=Je.firstChild)!==null;)Sn=Je,Je=Ot;for(;;){if(Je===te)break e;if(Sn===xe&&++Ce===Pt&&(ne=hr),Sn===Oe&&++Ke===rn&&(pe=hr),(Ot=Je.nextSibling)!==null)break;Sn=(Je=Sn).parentNode}Je=Ot}xe=ne===-1||pe===-1?null:{start:ne,end:pe}}else xe=null;xe=xe||{start:0,end:0}}else xe=null;zc=null,Ju=na=!(ra={focusedElem:te,selectionRange:xe}),xn=st;do try{(function(){for(;xn!==null;){var or=xn.alternate,Xn=(Ju||zc===null||(8&xn.flags?zt(xn,zc)&&(Ju=!0):xn.tag===13&&function(Ur,no){return Ur!==null&&((Ur=Ur.memoizedState)===null||Ur.dehydrated!==null)&&(no=no.memoizedState)!==null&&no.dehydrated===null}(or,xn)&&zt(xn,zc)&&(Ju=!0)),xn.flags);256&Xn&&function(Ur,no){switch(no.tag){case 0:case 11:case 15:case 22:return;case 1:var sa,rs;return 256&no.flags&&Ur!==null&&(sa=Ur.memoizedProps,rs=Ur.memoizedState,no=(Ur=no.stateNode).getSnapshotBeforeUpdate(no.elementType===no.type?sa:ir(no.type,sa),rs),Ur.__reactInternalSnapshotBeforeUpdate=no);case 3:return 256&no.flags&&oa(no.stateNode.containerInfo);case 5:case 6:case 4:case 17:return}throw Error(r(163))}(or,xn),!(512&Xn)||Ys||(Ys=!0,ji(97,function(){return Zs(),null})),xn=xn.nextEffect}})()}catch(or){if(xn===null)throw Error(r(330));tl(xn,or),xn=xn.nextEffect}while(xn!==null);zc=null,xn=st;do try{for(te=S;xn!==null;){var Un,Tn,Cn=xn.flags;switch(16&Cn&&De(xn.stateNode,""),128&Cn&&(Un=xn.alternate)!==null&&(Tn=Un.ref)!==null&&(typeof Tn=="function"?Tn(null):Tn.current=null),1038&Cn){case 2:tm(xn),xn.flags&=-3;break;case 6:tm(xn),xn.flags&=-3,If(xn.alternate,xn);break;case 1024:xn.flags&=-1025;break;case 1028:xn.flags&=-1025,If(xn.alternate,xn);break;case 4:If(xn.alternate,xn);break;case 8:em(te,xe=xn);var gr=xe.alternate;Qg(xe),gr!==null&&Qg(gr)}xn=xn.nextEffect}}catch(or){if(xn===null)throw Error(r(330));tl(xn,or),xn=xn.nextEffect}while(xn!==null);if(Tn=ra,Un=Ua(),Cn=Tn.focusedElem,te=Tn.selectionRange,Un!==Cn&&Cn&&Cn.ownerDocument&&function or(Xn,Ur){return!(!Xn||!Ur)&&(Xn===Ur||(!Xn||Xn.nodeType!==3)&&(Ur&&Ur.nodeType===3?or(Xn,Ur.parentNode):"contains"in Xn?Xn.contains(Ur):!!Xn.compareDocumentPosition&&!!(16&Xn.compareDocumentPosition(Ur))))}(Cn.ownerDocument.documentElement,Cn)){for(te!==null&&Vr(Cn)&&(Un=te.start,(Tn=te.end)===void 0&&(Tn=Un),"selectionStart"in Cn?(Cn.selectionStart=Un,Cn.selectionEnd=Math.min(Tn,Cn.value.length)):(Tn=(Un=Cn.ownerDocument||document)&&Un.defaultView||window).getSelection&&(Tn=Tn.getSelection(),xe=Cn.textContent.length,gr=Math.min(te.start,xe),te=te.end===void 0?gr:Math.min(te.end,xe),!Tn.extend&&te<gr&&(xe=te,te=gr,gr=xe),xe=gs(Cn,gr),Pt=gs(Cn,te),xe&&Pt&&(Tn.rangeCount!==1||Tn.anchorNode!==xe.node||Tn.anchorOffset!==xe.offset||Tn.focusNode!==Pt.node||Tn.focusOffset!==Pt.offset)&&((Un=Un.createRange()).setStart(xe.node,xe.offset),Tn.removeAllRanges(),te<gr?(Tn.addRange(Un),Tn.extend(Pt.node,Pt.offset)):(Un.setEnd(Pt.node,Pt.offset),Tn.addRange(Un))))),Un=[],Tn=Cn;Tn=Tn.parentNode;)Tn.nodeType===1&&Un.push({element:Tn,left:Tn.scrollLeft,top:Tn.scrollTop});for(typeof Cn.focus=="function"&&Cn.focus(),Cn=0;Cn<Un.length;Cn++)(Tn=Un[Cn]).element.scrollLeft=Tn.left,Tn.element.scrollTop=Tn.top}na=!!oi,ra=oi=null,S.current=nt,xn=st;do try{for(Cn=S;xn!==null;){var Or,Rr,Yn=xn.flags;36&Yn&&ab(Cn,xn.alternate,xn),128&Yn&&(Un=void 0,(Or=xn.ref)!==null&&(Rr=xn.stateNode,xn.tag,Un=Rr,typeof Or=="function"?Or(Un):Or.current=Un)),xn=xn.nextEffect}}catch(or){if(xn===null)throw Error(r(330));tl(xn,or),xn=xn.nextEffect}while(xn!==null);xn=null,$i(),Zn=ft}else S.current=nt;if(Ys)Ys=!1,Lc=S,Bc=et;else for(xn=st;xn!==null;)et=xn.nextEffect,xn.nextEffect=null,8&xn.flags&&((Yn=xn).sibling=null,Yn.stateNode=null),xn=et;if((st=S.pendingLanes)===0&&(ns=null),st===1?S===qf?Fc++:(Fc=0,qf=S):Fc=0,nt=nt.stateNode,ur&&typeof ur.onCommitFiberRoot=="function")try{ur.onCommitFiberRoot(Do,nt,void 0,(64&nt.current.flags)==64)}catch{}if(ia(S,Cr()),Wu)throw Wu=!1,S=zf,zf=null,S;return 8&Zn||Hn(),null}).bind(null,p,y)),null}function Zs(){var p;return Bc!==90&&(p=97<Bc?97:Bc,Bc=90,To(p,lb))}function dm(p,y){Hf.push(y,p),Ys||(Ys=!0,ji(97,function(){return Zs(),null}))}function lb(){if(Lc===null)return!1;var p=Lc;if(Lc=null,(48&Zn)!=0)throw Error(r(331));var y=Zn,S=(Zn|=32,Hf);Hf=[];for(var et=0;et<S.length;et+=2){var nt=S[et],st=S[et+1],ft=nt.destroy;if(nt.destroy=void 0,typeof ft=="function")try{ft()}catch(Ot){if(st===null)throw Error(r(330));tl(st,Ot)}}for(S=Uf,Uf=[],et=0;et<S.length;et+=2){nt=S[et],st=S[et+1];try{var Pt=nt.create;nt.destroy=Pt()}catch(Ot){if(st===null)throw Error(r(330));tl(st,Ot)}}for(Pt=p.current.firstEffect;Pt!==null;)p=Pt.nextEffect,Pt.nextEffect=null,8&Pt.flags&&(Pt.sibling=null,Pt.stateNode=null),Pt=p;return Zn=y,Hn(),!0}function fm(p,y,S){ui(p,y=Jg(0,y=Af(S,y),1)),y=Zi(),(p=Ku(p,1))!==null&&(wi(p,1,y),ia(p,y))}function tl(p,y){if(p.tag===3)fm(p,p,y);else for(var S=p.return;S!==null;){if(S.tag===3){fm(S,p,y);break}if(S.tag===1){var et,nt=S.stateNode;if(typeof S.type.getDerivedStateFromError=="function"||typeof nt.componentDidCatch=="function"&&(ns===null||!ns.has(nt))){if(ui(S,Kg(S,p=Af(y,p),1)),et=Zi(),(S=Ku(S,1))!==null)wi(S,1,et),ia(S,et);else if(typeof nt.componentDidCatch=="function"&&(ns===null||!ns.has(nt)))try{nt.componentDidCatch(y,p)}catch{}break}}S=S.return}}function cb(p,y,S){var et=p.pingCache;et!==null&&et.delete(y),y=Zi(),p.pingedLanes|=p.suspendedLanes&S,hi===p&&(Xo&S)===S&&(Fo===4||Fo===3&&(62914560&Xo)===Xo&&Cr()-Bf<500?Xl(p,0):Df|=S),ia(p,y)}function ub(p,y,S,et){this.tag=p,this.key=S,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=y,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=et,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function aa(p,y,S,et){return new ub(p,y,S,et)}function $f(p){return(p=p.prototype)&&p.isReactComponent}function el(p,y){var S=p.alternate;return S===null?((S=aa(p.tag,y,p.key,p.mode)).elementType=p.elementType,S.type=p.type,S.stateNode=p.stateNode,(S.alternate=p).alternate=S):(S.pendingProps=y,S.type=p.type,S.flags=0,S.nextEffect=null,S.firstEffect=null,S.lastEffect=null),S.childLanes=p.childLanes,S.lanes=p.lanes,S.child=p.child,S.memoizedProps=p.memoizedProps,S.memoizedState=p.memoizedState,S.updateQueue=p.updateQueue,y=p.dependencies,S.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext},S.sibling=p.sibling,S.index=p.index,S.ref=p.ref,S}function Yu(p,y,S,et,nt,st){var ft=2;if(typeof(et=p)=="function")$f(p)&&(ft=1);else if(typeof p=="string")ft=5;else t:switch(p){case M:return Ql(S.children,nt,st,y);case C:ft=8,nt|=16;break;case A:ft=8,nt|=1;break;case k:return(p=aa(12,S,y,8|nt)).elementType=k,p.type=k,p.lanes=st,p;case D:return(p=aa(13,S,y,nt)).type=D,p.elementType=D,p.lanes=st,p;case W:return(p=aa(19,S,y,nt)).elementType=W,p.lanes=st,p;case N:return Jf(S,nt,st,y);case Y:return(p=aa(24,S,y,nt)).elementType=Y,p.lanes=st,p;default:if(typeof p=="object"&&p!==null)switch(p.$$typeof){case J:ft=10;break t;case G:ft=9;break t;case U:ft=11;break t;case Q:ft=14;break t;case E:ft=16,et=null;break t;case B:ft=22;break t}throw Error(r(130,p==null?p:typeof p,""))}return(y=aa(ft,S,y,nt)).elementType=p,y.type=et,y.lanes=st,y}function Ql(p,y,S,et){return(p=aa(7,p,et,y)).lanes=S,p}function Jf(p,y,S,et){return(p=aa(23,p,et,y)).elementType=N,p.lanes=S,p}function Kf(p,y,S){return(p=aa(6,p,null,y)).lanes=S,p}function Gf(p,y,S){return(y=aa(4,p.children!==null?p.children:[],p.key,y)).lanes=S,y.stateNode={containerInfo:p.containerInfo,pendingChildren:null,implementation:p.implementation},y}function db(p,y,S){this.tag=y,this.containerInfo=p,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=S,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Io(0),this.expirationTimes=Io(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Io(0),this.mutableSourceEagerHydrationData=null}function Xu(p,y,S,et){var nt=y.current,st=Zi(),ft=Xs(nt);t:if(S){e:{if(Gt(S=S._reactInternals)!==S||S.tag!==1)throw Error(r(170));var Pt=S;do switch(Pt.tag){case 3:Pt=Pt.stateNode.context;break e;case 1:if(nr(Pt.type)){Pt=Pt.stateNode.__reactInternalMemoizedMergedChildContext;break e}}while((Pt=Pt.return)!==null);throw Error(r(171))}if(S.tag===1){var Ot=S.type;if(nr(Ot)){S=Ga(S,Ot,Pt);break t}}S=Pt}else S=Zr;y.context===null?y.context=S:y.pendingContext=S,(y=Yo(st,ft)).payload={element:p},(et=et===void 0?null:et)!==null&&(y.callback=et),ui(nt,y),Qs(nt,ft,st)}function Yf(p){return(p=p.current).child?(p.child.tag,p.child.stateNode):null}function pm(p,y){var S;(p=p.memoizedState)!==null&&p.dehydrated!==null&&(S=p.retryLane,p.retryLane=S!==0&&S<y?S:y)}function Xf(p,y){pm(p,y),(p=p.alternate)&&pm(p,y)}function Qf(p,y,S){var et=S!=null&&S.hydrationOptions!=null&&S.hydrationOptions.mutableSources||null;if(S=new db(p,y,S!=null&&S.hydrate===!0),y=aa(3,null,null,y===2?7:y===1?3:0),(S.current=y).stateNode=S,ka(y),p[ai]=S.current,Va(p.nodeType===8?p.parentNode:p),et)for(p=0;p<et.length;p++){var nt=(nt=(y=et[p])._getVersion)(y._source);S.mutableSourceEagerHydrationData==null?S.mutableSourceEagerHydrationData=[y,nt]:S.mutableSourceEagerHydrationData.push(y,nt)}this._internalRoot=S}function Hc(p){return p&&(p.nodeType===1||p.nodeType===9||p.nodeType===11||p.nodeType===8&&p.nodeValue===" react-mount-point-unstable ")}function Qu(p,y,S,et,nt){var st,ft,Pt,Ot=S._reactRootContainer;return Ot?(Pt=Ot._internalRoot,typeof nt=="function"&&(st=nt,nt=function(){var te=Yf(Pt);st.call(te)}),Xu(y,Pt,p,nt)):(Pt=(Ot=S._reactRootContainer=function(te,xe){if(!(xe=xe||!(!(xe=te?te.nodeType===9?te.documentElement:te.firstChild:null)||xe.nodeType!==1||!xe.hasAttribute("data-reactroot"))))for(var Oe;Oe=te.lastChild;)te.removeChild(Oe);return new Qf(te,0,xe?{hydrate:!0}:void 0)}(S,et))._internalRoot,typeof nt=="function"&&(ft=nt,nt=function(){var te=Yf(Pt);ft.call(te)}),am(function(){Xu(y,Pt,p,nt)})),Yf(Pt)}function hm(p,y){if(Hc(y))return function(S,et,nt,st){return{$$typeof:L,key:(st=3<arguments.length&&st!==void 0?st:null)==null?null:""+st,children:S,containerInfo:et,implementation:nt}}(p,y,null,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null);throw Error(r(200))}rm=function(p,y,S){var et=y.lanes;if(p!==null)if(p.memoizedProps!==y.pendingProps||Ar.current)ja=!0;else{if(!(S&et)){switch(ja=!1,y.tag){case 3:Hg(y),fe();break;case 5:H(y);break;case 1:nr(y.type)&&zr(y);break;case 4:Jt(y,y.stateNode.containerInfo);break;case 10:var et=y.memoizedProps.value,nt=y.type._context;un(Lo,nt._currentValue),nt._currentValue=et;break;case 13:if(y.memoizedState!==null)return S&y.child.childLanes?qg(p,y,S):(un(ct,1&ct.current),(y=Ss(p,y,S))!==null?y.sibling:null);un(ct,1&ct.current);break;case 19:if(et=(S&y.childLanes)!=0,(64&p.flags)!=0){if(et)return $g(p,y,S);y.flags|=64}if((nt=y.memoizedState)!==null&&(nt.rendering=null,nt.tail=null,nt.lastEffect=null),un(ct,ct.current),et)break;return null;case 23:case 24:return y.lanes=0,Fg(p,y,S)}return Ss(p,y,S)}ja=(16384&p.flags)!=0}else ja=!1;switch(y.lanes=0,y.tag){case 2:return et=y.type,p!==null&&(p.alternate=null,y.alternate=null,y.flags|=2),p=y.pendingProps,nt=er(y,Er.current),lo(y,S),nt=Ai(null,y,et,p,nt,S),y.flags|=1,y=typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(y.tag=1,y.memoizedState=null,y.updateQueue=null,nr(et)?(st=!0,zr(y)):st=!1,y.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,ka(y),typeof(Ot=et.getDerivedStateFromProps)=="function"&&Ya(y,0,Ot,p),nt.updater=di,Xa((y.stateNode=nt)._reactInternals=y,et,p,S),Tf(null,y,et,!0,st,S)):(y.tag=0,Qi(null,y,nt,S),y.child);case 16:nt=y.elementType;t:{switch(p!==null&&(p.alternate=null,y.alternate=null,y.flags|=2),p=y.pendingProps,nt=(st=nt._init)(nt._payload),y.type=nt,st=y.tag=function(xe){if(typeof xe=="function")return $f(xe)?1:0;if(xe!=null){if((xe=xe.$$typeof)===U)return 11;if(xe===Q)return 14}return 2}(nt),p=ir(nt,p),st){case 0:y=Of(null,y,nt,p,S);break t;case 1:y=Ug(null,y,nt,p,S);break t;case 11:y=Dg(null,y,nt,p,S);break t;case 14:y=Lg(null,y,nt,ir(nt.type,p),et,S);break t}throw Error(r(306,nt,""))}return y;case 0:return et=y.type,nt=y.pendingProps,Of(p,y,et,nt=y.elementType===et?nt:ir(et,nt),S);case 1:return et=y.type,nt=y.pendingProps,Ug(p,y,et,nt=y.elementType===et?nt:ir(et,nt),S);case 3:if(Hg(y),et=y.updateQueue,p===null||et===null)throw Error(r(282));if(et=y.pendingProps,nt=(nt=y.memoizedState)!==null?nt.element:null,Go(p,y),Ki(y,et,null,S),(et=y.memoizedState.element)===nt)fe(),y=Ss(p,y,S);else{if((st=(nt=y.stateNode).hydrate)&&(Et=mo(y.stateNode.containerInfo.firstChild),gt=y,st=jt=!0),st){if((p=nt.mutableSourceEagerHydrationData)!=null)for(nt=0;nt<p.length;nt+=2)(st=p[nt])._workInProgressVersionPrimary=p[nt+1],he.push(st);for(S=Nr(y,null,et,S),y.child=S;S;)S.flags=-3&S.flags|1024,S=S.sibling}else Qi(p,y,et,S),fe();y=y.child}return y;case 5:return H(y),p===null&&Kt(y),et=y.type,nt=y.pendingProps,st=p!==null?p.memoizedProps:null,Ot=nt.children,Ka(et,nt)?Ot=null:st!==null&&Ka(et,st)&&(y.flags|=16),zg(p,y),Qi(p,y,Ot,S),y.child;case 6:return p===null&&Kt(y),null;case 13:return qg(p,y,S);case 4:return Jt(y,y.stateNode.containerInfo),et=y.pendingProps,p===null?y.child=Za(y,null,et,S):Qi(p,y,et,S),y.child;case 11:return et=y.type,nt=y.pendingProps,Dg(p,y,et,nt=y.elementType===et?nt:ir(et,nt),S);case 7:return Qi(p,y,y.pendingProps,S),y.child;case 8:case 12:return Qi(p,y,y.pendingProps.children,S),y.child;case 10:t:{et=y.type._context,nt=y.pendingProps,Ot=y.memoizedProps;var st=nt.value,ft=y.type._context;if(un(Lo,ft._currentValue),ft._currentValue=st,Ot!==null)if(ft=Ot.value,(st=zn(ft,st)?0:0|(typeof et._calculateChangedBits=="function"?et._calculateChangedBits(ft,st):1073741823))===0){if(Ot.children===nt.children&&!Ar.current){y=Ss(p,y,S);break t}}else for((ft=y.child)!==null&&(ft.return=y);ft!==null;){var Pt=ft.dependencies;if(Pt!==null)for(var Ot=ft.child,te=Pt.firstContext;te!==null;){if(te.context===et&&te.observedBits&st){ft.tag===1&&((te=Yo(-1,S&-S)).tag=2,ui(ft,te)),ft.lanes|=S,(te=ft.alternate)!==null&&(te.lanes|=S),$s(ft.return,S),Pt.lanes|=S;break}te=te.next}else Ot=ft.tag===10&&ft.type===y.type?null:ft.child;if(Ot!==null)Ot.return=ft;else for(Ot=ft;Ot!==null;){if(Ot===y){Ot=null;break}if((ft=Ot.sibling)!==null){ft.return=Ot.return,Ot=ft;break}Ot=Ot.return}ft=Ot}Qi(p,y,nt.children,S),y=y.child}return y;case 9:return nt=y.type,et=(st=y.pendingProps).children,lo(y,S),et=et(nt=to(nt,st.unstable_observedBits)),y.flags|=1,Qi(p,y,et,S),y.child;case 14:return st=ir(nt=y.type,y.pendingProps),Lg(p,y,nt,st=ir(nt.type,st),et,S);case 15:return Bg(p,y,y.type,y.pendingProps,et,S);case 17:return et=y.type,nt=y.pendingProps,nt=y.elementType===et?nt:ir(et,nt),p!==null&&(p.alternate=null,y.alternate=null,y.flags|=2),y.tag=1,nr(et)?(p=!0,zr(y)):p=!1,lo(y,S),Js(y,et,nt),Xa(y,et,nt,S),Tf(null,y,et,!0,p,S);case 19:return $g(p,y,S);case 23:case 24:return Fg(p,y,S)}throw Error(r(156,y.tag))},Qf.prototype.render=function(p){Xu(p,this._internalRoot,null,null)},Qf.prototype.unmount=function(){var p=this._internalRoot,y=p.containerInfo;Xu(null,p,null,function(){y[ai]=null})},Tt=function(p){p.tag===13&&(Qs(p,4,Zi()),Xf(p,4))},Rt=function(p){p.tag===13&&(Qs(p,67108864,Zi()),Xf(p,67108864))},Ut=function(p){var y,S;p.tag===13&&(y=Zi(),Qs(p,S=Xs(p),y),Xf(p,S))},Ue=function(p,y,S){switch(y){case"input":if(bt(p,S),y=S.name,S.type==="radio"&&y!=null){for(S=p;S.parentNode;)S=S.parentNode;for(S=S.querySelectorAll("input[name="+JSON.stringify(""+y)+'][type="radio"]'),y=0;y<S.length;y++){var et=S[y];if(et!==p&&et.form===p.form){var nt=qi(et);if(!nt)throw Error(r(90));ot(et),bt(et,nt)}}}break;case"textarea":se(p,S);break;case"select":(y=S.value)!=null&&Qt(p,!!S.multiple,y,!1)}},Xe=im,$e=function(p,y,S,et,nt){var st=Zn;Zn|=4;try{return To(98,p.bind(null,y,S,et,nt))}finally{(Zn=st)===0&&(Gl(),Hn())}};var fb=function(p,y){var S=Zn;Zn|=2;try{return p(y)}finally{(Zn=S)===0&&(Gl(),Hn())}},gi={Events:[si,$o,qi,On,bn,Zs,{current:!(kt=function(){var p;!(49&Zn)&&(Es!==null&&(p=Es,Es=null,p.forEach(function(y){y.expiredLanes|=24&y.pendingLanes,ia(y,Cr())})),Hn(),Zs())})}]},xo={findFiberByHostInstance:Ti,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},co={bundleType:xo.bundleType,version:xo.version,rendererPackageName:xo.rendererPackageName,rendererConfig:xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(p){return(p=yt(p))===null?null:p.stateNode},findFiberByHostInstance:xo.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Gr=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Gr.isDisabled&&Gr.supportsFiber))try{Do=Gr.inject(co),ur=Gr}catch{}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gi,t.createPortal=hm,t.findDOMNode=function(p){if(p==null)return null;if(p.nodeType===1)return p;var y=p._reactInternals;if(y!==void 0)return p=(p=yt(y))===null?null:p.stateNode;throw typeof p.render=="function"?Error(r(188)):Error(r(268,Object.keys(p)))},t.flushSync=function(p,y){var S=Zn;if(48&S)return p(y);Zn|=1;try{if(p)return To(99,p.bind(null,y))}finally{Zn=S,Hn()}},t.hydrate=function(p,y,S){if(Hc(y))return Qu(null,p,y,!0,S);throw Error(r(200))},t.render=function(p,y,S){if(Hc(y))return Qu(null,p,y,!1,S);throw Error(r(200))},t.unmountComponentAtNode=function(p){if(Hc(p))return!!p._reactRootContainer&&(am(function(){Qu(null,null,p,!1,function(){p._reactRootContainer=null,p[ai]=null})}),!0);throw Error(r(40))},t.unstable_batchedUpdates=im,t.unstable_createPortal=function(p,y){return hm(p,y,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(p,y,S,et){if(!Hc(S))throw Error(r(200));if(p==null||p._reactInternals===void 0)throw Error(r(38));return Qu(p,y,S,!1,et)},t.version="17.0.2"},{"object-assign":148,react:171,scheduler:177}],164:[function(o,a,t){(function e(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE=="function")try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(s){console.error(s)}})(),a.exports=o("./cjs/react-dom.production.min.js")},{"./cjs/react-dom.development.js":162,"./cjs/react-dom.production.min.js":163}],165:[function(o,a,t){(function(e){(function(){function s(Q){if(typeof Q=="object"&&Q!==null){var E=Q.$$typeof;switch(E){case i:var B=Q.type;switch(B){case l:case c:case n:case g:case m:return B;default:var $=B&&B.$$typeof;switch($){case u:case f:case v:case h:case d:return $;default:return E}}case r:return E}}}var i,r,l,n,c,d,u,f,g,m,h,v,b,_,R,x,w,O,I,L,M,A,k,J,G,U,D,W;e.env.NODE_ENV!=="production"&&(i=60103,r=60106,l=60107,n=60108,c=60114,d=60109,u=60110,f=60112,g=60113,m=60120,h=60115,v=60116,b=60121,_=60122,R=60117,x=60129,w=60131,typeof Symbol=="function"&&Symbol.for&&(i=(O=Symbol.for)("react.element"),r=O("react.portal"),l=O("react.fragment"),n=O("react.strict_mode"),c=O("react.profiler"),d=O("react.provider"),u=O("react.context"),f=O("react.forward_ref"),g=O("react.suspense"),m=O("react.suspense_list"),h=O("react.memo"),v=O("react.lazy"),b=O("react.block"),_=O("react.server.block"),R=O("react.fundamental"),O("react.scope"),O("react.opaque.id"),x=O("react.debug_trace_mode"),O("react.offscreen"),w=O("react.legacy_hidden")),O=u,I=d,L=i,M=f,A=l,k=v,J=h,G=r,U=c,D=n,W=g,t.ContextConsumer=O,t.ContextProvider=I,t.Element=L,t.ForwardRef=M,t.Fragment=A,t.Lazy=k,t.Memo=J,t.Portal=G,t.Profiler=U,t.StrictMode=D,t.Suspense=W,t.isAsyncMode=function(Q){return!1},t.isConcurrentMode=function(Q){return!1},t.isContextConsumer=function(Q){return s(Q)===u},t.isContextProvider=function(Q){return s(Q)===d},t.isElement=function(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===i},t.isForwardRef=function(Q){return s(Q)===f},t.isFragment=function(Q){return s(Q)===l},t.isLazy=function(Q){return s(Q)===v},t.isMemo=function(Q){return s(Q)===h},t.isPortal=function(Q){return s(Q)===r},t.isProfiler=function(Q){return s(Q)===c},t.isStrictMode=function(Q){return s(Q)===n},t.isSuspense=function(Q){return s(Q)===g},t.isValidElementType=function(Q){return typeof Q=="string"||typeof Q=="function"||Q===l||Q===c||Q===x||Q===n||Q===g||Q===m||Q===w||typeof Q=="object"&&Q!==null&&(Q.$$typeof===v||Q.$$typeof===h||Q.$$typeof===d||Q.$$typeof===u||Q.$$typeof===f||Q.$$typeof===R||Q.$$typeof===b||Q[0]===_)},t.typeOf=s)}).call(this)}).call(this,o("_process"))},{_process:149}],166:[function(o,a,t){var e=60103,s=60106,i=60107,r=60108,l=60114,n=60109,c=60110,d=60112,u=60113,f=60120,g=60115,m=60116,h=60121,v=60122,b=60117,_=60129,R=60131;function x(D){if(typeof D=="object"&&D!==null){var W=D.$$typeof;switch(W){case e:switch(D=D.type){case i:case l:case r:case u:case f:return D;default:switch(D=D&&D.$$typeof){case c:case d:case m:case g:case n:return D;default:return W}}case s:return W}}}typeof Symbol=="function"&&Symbol.for&&(e=(w=Symbol.for)("react.element"),s=w("react.portal"),i=w("react.fragment"),r=w("react.strict_mode"),l=w("react.profiler"),n=w("react.provider"),c=w("react.context"),d=w("react.forward_ref"),u=w("react.suspense"),f=w("react.suspense_list"),g=w("react.memo"),m=w("react.lazy"),h=w("react.block"),v=w("react.server.block"),b=w("react.fundamental"),_=w("react.debug_trace_mode"),R=w("react.legacy_hidden"));var w=n,O=e,I=d,L=i,M=m,A=g,k=s,J=l,G=r,U=u;t.ContextConsumer=c,t.ContextProvider=w,t.Element=O,t.ForwardRef=I,t.Fragment=L,t.Lazy=M,t.Memo=A,t.Portal=k,t.Profiler=J,t.StrictMode=G,t.Suspense=U,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(D){return x(D)===c},t.isContextProvider=function(D){return x(D)===n},t.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===e},t.isForwardRef=function(D){return x(D)===d},t.isFragment=function(D){return x(D)===i},t.isLazy=function(D){return x(D)===m},t.isMemo=function(D){return x(D)===g},t.isPortal=function(D){return x(D)===s},t.isProfiler=function(D){return x(D)===l},t.isStrictMode=function(D){return x(D)===r},t.isSuspense=function(D){return x(D)===u},t.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===i||D===l||D===_||D===r||D===u||D===f||D===R||typeof D=="object"&&D!==null&&(D.$$typeof===m||D.$$typeof===g||D.$$typeof===n||D.$$typeof===c||D.$$typeof===d||D.$$typeof===b||D.$$typeof===h||D[0]===v)},t.typeOf=x},{}],167:[function(o,a,t){arguments[4][144][0].apply(t,arguments)},{"./cjs/react-is.development.js":165,"./cjs/react-is.production.min.js":166,_process:149,dup:144}],168:[function(i,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e=Object.assign||function(n){for(var c=1;c<arguments.length;c++){var d,u=arguments[c];for(d in u)Object.prototype.hasOwnProperty.call(u,d)&&(n[d]=u[d])}return n},s=r(i("react")),i=r(i("localized-strings"));function r(n){return n&&n.__esModule?n:{default:n}}var l=/(\{[\d|\w]+\})/;i.default.prototype.formatString=function(g){for(var c=arguments.length,d=Array(1<c?c-1:0),u=1;u<c;u++)d[u-1]=arguments[u];var f=!1,g=(g||"").split(l).filter(function(m){return!!m}).map(function(m,h){if(m.match(l)){var v=m.slice(1,-1),b=d[v];if(b==null){if(v=d[0][v],v===void 0)return b;b=v}return s.default.isValidElement(b)?(f=!0,s.default.Children.toArray(b).map(function(_){return e({},_,{key:h.toString()})})):b}return m});return f?g:g.join("")},t.default=i.default},{"localized-strings":146,react:171}],169:[function(o,a,t){},{"object-assign":148}],170:[function(_,a,t){var e=_("object-assign"),s=60103,i=60106,r=(t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114,60109),l=60110,n=60112,c=(t.Suspense=60113,60115),d=60116,u=(typeof Symbol=="function"&&Symbol.for&&(s=(_=Symbol.for)("react.element"),i=_("react.portal"),t.Fragment=_("react.fragment"),t.StrictMode=_("react.strict_mode"),t.Profiler=_("react.profiler"),r=_("react.provider"),l=_("react.context"),n=_("react.forward_ref"),t.Suspense=_("react.suspense"),c=_("react.memo"),d=_("react.lazy")),typeof Symbol=="function"&&Symbol.iterator);function f(D){for(var W="https://reactjs.org/docs/error-decoder.html?invariant="+D,Q=1;Q<arguments.length;Q++)W+="&args[]="+encodeURIComponent(arguments[Q]);return"Minified React error #"+D+"; visit "+W+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function h(D,W,Q){this.props=D,this.context=W,this.refs=m,this.updater=Q||g}function v(){}function b(D,W,Q){this.props=D,this.context=W,this.refs=m,this.updater=Q||g}h.prototype.isReactComponent={},h.prototype.setState=function(D,W){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error(f(85));this.updater.enqueueSetState(this,D,W,"setState")},h.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")},v.prototype=h.prototype;var _=b.prototype=new v,R=(_.constructor=b,e(_,h.prototype),_.isPureReactComponent=!0,{current:null}),x=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function O(D,W,Q){var E,B={},$=null,C=null;if(W!=null)for(E in W.ref!==void 0&&(C=W.ref),W.key!==void 0&&($=""+W.key),W)x.call(W,E)&&!w.hasOwnProperty(E)&&(B[E]=W[E]);var N=arguments.length-2;if(N===1)B.children=Q;else if(1<N){for(var Y=Array(N),tt=0;tt<N;tt++)Y[tt]=arguments[tt+2];B.children=Y}if(D&&D.defaultProps)for(E in N=D.defaultProps)B[E]===void 0&&(B[E]=N[E]);return{$$typeof:s,type:D,key:$,ref:C,props:B,_owner:R.current}}function I(D){return typeof D=="object"&&D!==null&&D.$$typeof===s}var L=/\/+/g;function M(D,W){return typeof D=="object"&&D!==null&&D.key!=null?(D=""+D.key,Q={"=":"=0",":":"=2"},"$"+D.replace(/[=:]/g,function(E){return Q[E]})):W.toString(36);var Q}function A(D,W,Q,E,B){var $,C,N=!1;if((D=(tt=typeof D)!="undefined"&&tt!=="boolean"?D:null)===null)N=!0;else switch(tt){case"string":case"number":N=!0;break;case"object":switch(D.$$typeof){case s:case i:N=!0}}if(N)return B=B(N=D),D=E===""?"."+M(N,0):E,Array.isArray(B)?(Q="",A(B,W,Q=D!=null?D.replace(L,"$&/")+"/":Q,"",function(z){return z})):B!=null&&(I(B)&&(C=Q+(!($=B).key||N&&N.key===B.key?"":(""+B.key).replace(L,"$&/")+"/")+D,B={$$typeof:s,type:$.type,key:C,ref:$.ref,props:$.props,_owner:$._owner}),W.push(B)),1;if(N=0,E=E===""?".":E+":",Array.isArray(D))for(var Y=0;Y<D.length;Y++){var tt,F=E+M(tt=D[Y],Y);N+=A(tt,W,Q,F,B)}else if(typeof(F=(C=D)!==null&&typeof C=="object"&&typeof(C=u&&C[u]||C["@@iterator"])=="function"?C:null)=="function")for(D=F.call(D),Y=0;!(tt=D.next()).done;)N+=A(tt=tt.value,W,Q,F=E+M(tt,Y++),B);else if(tt==="object")throw W=""+D,Error(f(31,W==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":W));return N}function k(D,W,Q){if(D==null)return D;var E=[],B=0;return A(D,E,"","",function($){return W.call(Q,$,B++)}),E}function J(D){var W;if(D._status===-1&&(W=(W=D._result)(),D._status=0,(D._result=W).then(function(Q){D._status===0&&(Q=Q.default,D._status=1,D._result=Q)},function(Q){D._status===0&&(D._status=2,D._result=Q)})),D._status===1)return D._result;throw D._result}var G={current:null};function U(){var D=G.current;if(D===null)throw Error(f(321));return D}_={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:R,IsSomeRendererActing:{current:!1},assign:e},t.Children={map:k,forEach:function(D,W,Q){k(D,function(){W.apply(this,arguments)},Q)},count:function(D){var W=0;return k(D,function(){W++}),W},toArray:function(D){return k(D,function(W){return W})||[]},only:function(D){if(I(D))return D;throw Error(f(143))}},t.Component=h,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_,t.cloneElement=function(D,W,Q){if(D==null)throw Error(f(267,D));var E=e({},D.props),B=D.key,$=D.ref,C=D._owner;if(W!=null)for(N in W.ref!==void 0&&($=W.ref,C=R.current),W.key!==void 0&&(B=""+W.key),D.type&&D.type.defaultProps&&(Y=D.type.defaultProps),W)x.call(W,N)&&!w.hasOwnProperty(N)&&(E[N]=(W[N]===void 0&&Y!==void 0?Y:W)[N]);var N=arguments.length-2;if(N===1)E.children=Q;else if(1<N){for(var Y=Array(N),tt=0;tt<N;tt++)Y[tt]=arguments[tt+2];E.children=Y}return{$$typeof:s,type:D.type,key:B,ref:$,props:E,_owner:C}},t.createContext=function(D,W){return(D={$$typeof:l,_calculateChangedBits:W=W===void 0?null:W,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:D},D.Consumer=D},t.createElement=O,t.createFactory=function(D){var W=O.bind(null,D);return W.type=D,W},t.createRef=function(){return{current:null}},t.forwardRef=function(D){return{$$typeof:n,render:D}},t.isValidElement=I,t.lazy=function(D){return{$$typeof:d,_payload:{_status:-1,_result:D},_init:J}},t.memo=function(D,W){return{$$typeof:c,type:D,compare:W===void 0?null:W}},t.useCallback=function(D,W){return U().useCallback(D,W)},t.useContext=function(D,W){return U().useContext(D,W)},t.useDebugValue=function(){},t.useEffect=function(D,W){return U().useEffect(D,W)},t.useImperativeHandle=function(D,W,Q){return U().useImperativeHandle(D,W,Q)},t.useLayoutEffect=function(D,W){return U().useLayoutEffect(D,W)},t.useMemo=function(D,W){return U().useMemo(D,W)},t.useReducer=function(D,W,Q){return U().useReducer(D,W,Q)},t.useRef=function(D){return U().useRef(D)},t.useState=function(D){return U().useState(D)},t.version="17.0.2"},{"object-assign":148}],171:[function(o,a,t){a.exports=o("./cjs/react.production.min.js")},{"./cjs/react.development.js":169,"./cjs/react.production.min.js":170}],172:[function(o,a,t){a=function(e){var s,i=Object.prototype,r=i.hasOwnProperty,w=typeof Symbol=="function"?Symbol:{},l=w.iterator||"@@iterator",n=w.asyncIterator||"@@asyncIterator",c=w.toStringTag||"@@toStringTag";function d(D,W,Q){return Object.defineProperty(D,W,{value:Q,enumerable:!0,configurable:!0,writable:!0}),D[W]}try{d({},"")}catch{d=function(W,Q,E){return W[Q]=E}}function u(D,Y,Q,tt){var B,$,C,N,Y=Y&&Y.prototype instanceof _?Y:_,Y=Object.create(Y.prototype),tt=new J(tt||[]);return Y._invoke=(B=D,$=Q,C=tt,N=g,function(F,z){if(N===h)throw new Error("Generator is already running");if(N===v){if(F==="throw")throw z;return U()}for(C.method=F,C.arg=z;;){var P=C.delegate;if(P&&(P=function j(V,K){var rt=V.iterator[K.method];if(rt===s){if(K.delegate=null,K.method==="throw"){if(V.iterator.return&&(K.method="return",K.arg=s,j(V,K),K.method==="throw"))return b;K.method="throw",K.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}if(rt=f(rt,V.iterator,K.arg),rt.type==="throw")return K.method="throw",K.arg=rt.arg,K.delegate=null,b;if(rt=rt.arg,!rt)return K.method="throw",K.arg=new TypeError("iterator result is not an object"),K.delegate=null,b;{if(!rt.done)return rt;K[V.resultName]=rt.value,K.next=V.nextLoc,K.method!=="return"&&(K.method="next",K.arg=s)}return K.delegate=null,b}(P,C),P)){if(P===b)continue;return P}if(C.method==="next")C.sent=C._sent=C.arg;else if(C.method==="throw"){if(N===g)throw N=v,C.arg;C.dispatchException(C.arg)}else C.method==="return"&&C.abrupt("return",C.arg);if(N=h,P=f(B,$,C),P.type==="normal"){if(N=C.done?v:m,P.arg!==b)return{value:P.arg,done:C.done}}else P.type==="throw"&&(N=v,C.method="throw",C.arg=P.arg)}}),Y}function f(D,W,Q){try{return{type:"normal",arg:D.call(W,Q)}}catch(E){return{type:"throw",arg:E}}}e.wrap=u;var g="suspendedStart",m="suspendedYield",h="executing",v="completed",b={};function _(){}function R(){}function x(){}var w={},O=(d(w,l,function(){return this}),Object.getPrototypeOf),O=O&&O(O(G([]))),I=(O&&O!==i&&r.call(O,l)&&(w=O),x.prototype=_.prototype=Object.create(w));function L(D){["next","throw","return"].forEach(function(W){d(D,W,function(Q){return this._invoke(W,Q)})})}function M(D,W){var Q;this._invoke=function(E,B){function $(){return new W(function(C,N){(function Y(V,F,z,P){var j,V=f(D[V],D,F);if(V.type!=="throw")return(F=(j=V.arg).value)&&typeof F=="object"&&r.call(F,"__await")?W.resolve(F.__await).then(function(K){Y("next",K,z,P)},function(K){Y("throw",K,z,P)}):W.resolve(F).then(function(K){j.value=K,z(j)},function(K){return Y("throw",K,z,P)});P(V.arg)})(E,B,C,N)})}return Q=Q?Q.then($,$):$()}}function A(D){var W={tryLoc:D[0]};1 in D&&(W.catchLoc=D[1]),2 in D&&(W.finallyLoc=D[2],W.afterLoc=D[3]),this.tryEntries.push(W)}function k(D){var W=D.completion||{};W.type="normal",delete W.arg,D.completion=W}function J(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(A,this),this.reset(!0)}function G(D){if(D){var W,Q=D[l];if(Q)return Q.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length))return W=-1,(Q=function E(){for(;++W<D.length;)if(r.call(D,W))return E.value=D[W],E.done=!1,E;return E.value=s,E.done=!0,E}).next=Q}return{next:U}}function U(){return{value:s,done:!0}}return d(I,"constructor",R.prototype=x),d(x,"constructor",R),R.displayName=d(x,c,"GeneratorFunction"),e.isGeneratorFunction=function(D){return D=typeof D=="function"&&D.constructor,!!D&&(D===R||(D.displayName||D.name)==="GeneratorFunction")},e.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,x):(D.__proto__=x,d(D,c,"GeneratorFunction")),D.prototype=Object.create(I),D},e.awrap=function(D){return{__await:D}},L(M.prototype),d(M.prototype,n,function(){return this}),e.AsyncIterator=M,e.async=function(D,W,Q,E,B){B===void 0&&(B=Promise);var $=new M(u(D,W,Q,E),B);return e.isGeneratorFunction(W)?$:$.next().then(function(C){return C.done?C.value:$.next()})},L(I),d(I,c,"Generator"),d(I,l,function(){return this}),d(I,"toString",function(){return"[object Generator]"}),e.keys=function(D){var W,Q=[];for(W in D)Q.push(W);return Q.reverse(),function E(){for(;Q.length;){var B=Q.pop();if(B in D)return E.value=B,E.done=!1,E}return E.done=!0,E}},e.values=G,J.prototype={constructor:J,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(k),!D)for(var W in this)W.charAt(0)==="t"&&r.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=s)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var W=this;function Q(Y,tt){return $.type="throw",$.arg=D,W.next=Y,tt&&(W.method="next",W.arg=s),!!tt}for(var E=this.tryEntries.length-1;0<=E;--E){var B=this.tryEntries[E],$=B.completion;if(B.tryLoc==="root")return Q("end");if(B.tryLoc<=this.prev){var C=r.call(B,"catchLoc"),N=r.call(B,"finallyLoc");if(C&&N){if(this.prev<B.catchLoc)return Q(B.catchLoc,!0);if(this.prev<B.finallyLoc)return Q(B.finallyLoc)}else if(C){if(this.prev<B.catchLoc)return Q(B.catchLoc,!0)}else{if(!N)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return Q(B.finallyLoc)}}}},abrupt:function(D,W){for(var Q=this.tryEntries.length-1;0<=Q;--Q){var E=this.tryEntries[Q];if(E.tryLoc<=this.prev&&r.call(E,"finallyLoc")&&this.prev<E.finallyLoc){var B=E;break}}var $=(B=B&&(D==="break"||D==="continue")&&B.tryLoc<=W&&W<=B.finallyLoc?null:B)?B.completion:{};return $.type=D,$.arg=W,B?(this.method="next",this.next=B.finallyLoc,b):this.complete($)},complete:function(D,W){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&W&&(this.next=W),b},finish:function(D){for(var W=this.tryEntries.length-1;0<=W;--W){var Q=this.tryEntries[W];if(Q.finallyLoc===D)return this.complete(Q.completion,Q.afterLoc),k(Q),b}},catch:function(D){for(var W=this.tryEntries.length-1;0<=W;--W){var Q,E,B=this.tryEntries[W];if(B.tryLoc===D)return(Q=B.completion).type==="throw"&&(E=Q.arg,k(B)),E}throw new Error("illegal catch attempt")},delegateYield:function(D,W,Q){return this.delegate={iterator:G(D),resultName:W,nextLoc:Q},this.method==="next"&&(this.arg=s),b}},e}(typeof a=="object"?a.exports:{});try{regeneratorRuntime=a}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},{}],173:[function(o,a,t){},{}],174:[function(o,a,t){var e=0;t.__interactionsRef=null,t.__subscriberRef=null,t.unstable_clear=function(s){return s()},t.unstable_getCurrent=function(){return null},t.unstable_getThreadID=function(){return++e},t.unstable_subscribe=function(){},t.unstable_trace=function(s,i,r){return r()},t.unstable_unsubscribe=function(){},t.unstable_wrap=function(s){return s}},{}],175:[function(o,a,t){},{}],176:[function(o,a,t){var e,s,i,r,l,n,c,d,u,f,g,m,h,v,b,_,R,x;function w(C,N){var Y=C.length;for(C.push(N);;){var tt=Y-1>>>1,F=C[tt];if(!(F!==void 0&&0<L(F,N)))break;C[tt]=N,C[Y]=F,Y=tt}}function O(C){return(C=C[0])===void 0?null:C}function I(C){var N=C[0];if(N!==void 0){var Y=C.pop();if(Y!==N){C[0]=Y;for(var tt=0,F=C.length;tt<F;){var z=2*(tt+1)-1,P=C[z],j=1+z,V=C[j];if(P!==void 0&&L(P,Y)<0)tt=V!==void 0&&L(V,P)<0?(C[tt]=V,C[j]=Y,j):(C[tt]=P,C[z]=Y,z);else{if(!(V!==void 0&&L(V,Y)<0))break;C[tt]=V,C[j]=Y,tt=j}}}}}function L(C,N){var Y=C.sortIndex-N.sortIndex;return Y!=0?Y:C.id-N.id}typeof performance=="object"&&typeof performance.now=="function"?(s=performance,t.unstable_now=function(){return s.now()}):(i=Date,r=i.now(),t.unstable_now=function(){return i.now()-r}),typeof window>"u"||typeof MessageChannel!="function"?(n=l=null,c=function(){if(l!==null)try{var C=t.unstable_now();l(!0,C),l=null}catch(N){throw setTimeout(c,0),N}},d=function(C){l!==null?setTimeout(d,0,C):(l=C,setTimeout(c,0))},u=function(C,N){n=setTimeout(C,N)},f=function(){clearTimeout(n)},t.unstable_shouldYield=function(){return!1},e=t.unstable_forceFrameRate=function(){}):(g=window.setTimeout,m=window.clearTimeout,typeof console<"u"&&($=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof $!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),h=!1,v=null,b=-1,_=5,R=0,t.unstable_shouldYield=function(){return t.unstable_now()>=R},e=function(){},t.unstable_forceFrameRate=function(C){C<0||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<C?Math.floor(1e3/C):5},$=new MessageChannel,x=$.port2,$.port1.onmessage=function(){if(v!==null){var C=t.unstable_now();R=C+_;try{v(!0,C)?x.postMessage(null):(h=!1,v=null)}catch(N){throw x.postMessage(null),N}}else h=!1},d=function(C){v=C,h||(h=!0,x.postMessage(null))},u=function(C,N){b=g(function(){C(t.unstable_now())},N)},f=function(){m(b),b=-1});var M=[],A=[],k=1,J=null,G=3,U=!1,D=!1,W=!1;function Q(C){for(var N=O(A);N!==null;){if(N.callback===null)I(A);else{if(!(N.startTime<=C))break;I(A),N.sortIndex=N.expirationTime,w(M,N)}N=O(A)}}function E(C){var N;W=!1,Q(C),D||(O(M)!==null?(D=!0,d(B)):(N=O(A))!==null&&u(E,N.startTime-C))}function B(C,N){D=!1,W&&(W=!1,f()),U=!0;var Y=G;try{for(Q(N),J=O(M);J!==null&&(!(J.expirationTime>N)||C&&!t.unstable_shouldYield());){var tt,F=J.callback;typeof F=="function"?(J.callback=null,G=J.priorityLevel,tt=F(J.expirationTime<=N),N=t.unstable_now(),typeof tt=="function"?J.callback=tt:J===O(M)&&I(M),Q(N)):I(M),J=O(M)}var z,P=J!==null||((z=O(A))!==null&&u(E,z.startTime-N),!1);return P}finally{J=null,G=Y,U=!1}}var $=e;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(C){C.callback=null},t.unstable_continueExecution=function(){D||U||(D=!0,d(B))},t.unstable_getCurrentPriorityLevel=function(){return G},t.unstable_getFirstCallbackNode=function(){return O(M)},t.unstable_next=function(C){switch(G){case 1:case 2:case 3:var N=3;break;default:N=G}var Y=G;G=N;try{return C()}finally{G=Y}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=$,t.unstable_runWithPriority=function(C,N){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var Y=G;G=C;try{return N()}finally{G=Y}},t.unstable_scheduleCallback=function(C,N,Y){var tt=t.unstable_now();switch(Y=typeof Y=="object"&&Y!==null&&typeof(Y=Y.delay)=="number"&&0<Y?tt+Y:tt,C){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return C={id:k++,callback:N,priorityLevel:C,startTime:Y,expirationTime:F=Y+F,sortIndex:-1},tt<Y?(C.sortIndex=Y,w(A,C),O(M)===null&&C===O(A)&&(W?f():W=!0,u(E,Y-tt))):(C.sortIndex=F,w(M,C),D||U||(D=!0,d(B))),C},t.unstable_wrapCallback=function(C){var N=G;return function(){var Y=G;G=N;try{return C.apply(this,arguments)}finally{G=Y}}}},{}],177:[function(o,a,t){a.exports=o("./cjs/scheduler.production.min.js")},{"./cjs/scheduler.development.js":175,"./cjs/scheduler.production.min.js":176}],178:[function(o,a,t){a.exports=o("./cjs/scheduler-tracing.production.min.js")},{"./cjs/scheduler-tracing.development.js":173,"./cjs/scheduler-tracing.production.min.js":174}],179:[function(o,a,t){a.exports=function(e,s,i,r){if((f=i?i.call(r,e,s):void 0)!==void 0)return!!f;if(e===s)return!0;if(typeof e!="object"||!e||typeof s!="object"||!s)return!1;var l=Object.keys(e),n=Object.keys(s);if(l.length!==n.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(s),d=0;d<l.length;d++){var u=l[d];if(!c(u))return!1;var f,g=e[u],m=s[u];if((f=i?i.call(r,g,m,u):void 0)===!1||f===void 0&&g!==m)return!1}return!0}},{}],180:[function(o,a,t){(function(e){(function(){function s(yt){return yt&&typeof yt=="object"&&"default"in yt?yt.default:yt}Object.defineProperty(t,"__esModule",{value:!0});var i=o("react-is"),r=o("react"),l=s(r),n=s(o("shallowequal")),c=s(o("@emotion/stylis")),d=s(o("@emotion/unitless")),u=s(o("@emotion/is-prop-valid")),f=s(o("hoist-non-react-statics"));function g(){return(g=Object.assign||function(yt){for(var zt=1;zt<arguments.length;zt++){var Tt,Rt=arguments[zt];for(Tt in Rt)Object.prototype.hasOwnProperty.call(Rt,Tt)&&(yt[Tt]=Rt[Tt])}return yt}).apply(this,arguments)}var m=function(yt,zt){for(var Tt=[yt[0]],Rt=0,Ut=zt.length;Rt<Ut;Rt+=1)Tt.push(zt[Rt],yt[Rt+1]);return Tt},h=function(yt){return yt!==null&&typeof yt=="object"&&(yt.toString?yt.toString():Object.prototype.toString.call(yt))==="[object Object]"&&!i.typeOf(yt)},v=Object.freeze([]),b=Object.freeze({});function _(yt){return typeof yt=="function"}function R(yt){return e.env.NODE_ENV!=="production"&&typeof yt=="string"&&yt||yt.displayName||yt.name||"Component"}function x(yt){return yt&&typeof yt.styledComponentId=="string"}var w=e!==void 0&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",O=typeof window<"u"&&"HTMLElement"in window,Ne=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:e!==void 0&&e.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&e.env.REACT_APP_SC_DISABLE_SPEEDY!==""?e.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&e.env.REACT_APP_SC_DISABLE_SPEEDY:e!==void 0&&e.env.SC_DISABLE_SPEEDY!==void 0&&e.env.SC_DISABLE_SPEEDY!==""?e.env.SC_DISABLE_SPEEDY!=="false"&&e.env.SC_DISABLE_SPEEDY:e.env.NODE_ENV!=="production"),I={},L=e.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
82
|
+
|
|
83
|
+
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
84
|
+
|
|
85
|
+
- Are you trying to reuse it across renders?
|
|
86
|
+
- Are you accidentally calling collectStyles twice?
|
|
87
|
+
|
|
88
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
89
|
+
|
|
90
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
91
|
+
|
|
92
|
+
- Does this error occur on the client and is your target falsy?
|
|
93
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
94
|
+
|
|
95
|
+
`,5:`The clone method cannot be used on the client!
|
|
96
|
+
|
|
97
|
+
- Are you running in a client-like environment on the server?
|
|
98
|
+
- Are you trying to run SSR on the client?
|
|
99
|
+
|
|
100
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
101
|
+
|
|
102
|
+
- Are you using a custom target that isn't mounted?
|
|
103
|
+
- Does your document not have a valid head element?
|
|
104
|
+
- Have you accidentally removed a style tag manually?
|
|
105
|
+
|
|
106
|
+
`,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
|
|
107
|
+
|
|
108
|
+
`,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
109
|
+
|
|
110
|
+
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
111
|
+
|
|
112
|
+
`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
113
|
+
|
|
114
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
115
|
+
|
|
116
|
+
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
117
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
118
|
+
as for instance in your render method then you may be running into this limitation.
|
|
119
|
+
|
|
120
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
121
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
122
|
+
`}:{};function M(){for(var yt=arguments.length<=0?void 0:arguments[0],zt=[],Tt=1,Rt=arguments.length;Tt<Rt;Tt+=1)zt.push(Tt<0||arguments.length<=Tt?void 0:arguments[Tt]);return zt.forEach(function(Ut){yt=yt.replace(/%[a-z]/,Ut)}),yt}function A(yt){for(var zt=arguments.length,Tt=new Array(1<zt?zt-1:0),Rt=1;Rt<zt;Rt++)Tt[Rt-1]=arguments[Rt];throw e.env.NODE_ENV==="production"?new Error("An error occurred. See https://git.io/JUIaE#"+yt+" for more information."+(0<Tt.length?" Args: "+Tt.join(", "):"")):new Error(M.apply(void 0,[L[yt]].concat(Tt)).trim())}function k(yt){if(D.has(yt))return D.get(yt);for(;W.has(Q);)Q++;var zt=Q++;return e.env.NODE_ENV!=="production"&&((0|zt)<0||1<<30<zt)&&A(16,""+zt),D.set(yt,zt),W.set(zt,yt),zt}function J(Tt){var Rt=document.head,zt=Tt||Rt,Tt=document.createElement("style"),Rt=(Rt=function(){for(var Yt=zt.childNodes,ie=Yt.length;0<=ie;ie--){var X=Yt[ie];if(X&&X.nodeType===1&&X.hasAttribute(w))return X}}())!==void 0?Rt.nextSibling:null,Ut=(Tt.setAttribute(w,"active"),Tt.setAttribute("data-styled-version","5.3.5"),N());return Ut&&Tt.setAttribute("nonce",Ut),zt.insertBefore(Tt,Rt),Tt}function G(yt){return String.fromCharCode(yt+(25<yt?39:97))}(At=at.prototype).indexOfGroup=function(yt){for(var zt=0,Tt=0;Tt<yt;Tt++)zt+=this.groupSizes[Tt];return zt},At.insertRules=function(yt,zt){if(yt>=this.groupSizes.length){for(var Tt=this.groupSizes,Rt=Tt.length,Ut=Rt;Ut<=yt;)(Ut<<=1)<0&&A(16,""+yt);this.groupSizes=new Uint32Array(Ut),this.groupSizes.set(Tt),this.length=Ut;for(var Yt=Rt;Yt<Ut;Yt++)this.groupSizes[Yt]=0}for(var ie=this.indexOfGroup(yt+1),X=0,dt=zt.length;X<dt;X++)this.tag.insertRule(ie,zt[X])&&(this.groupSizes[yt]++,ie++)},At.clearGroup=function(yt){if(yt<this.length){var zt=this.groupSizes[yt],Tt=this.indexOfGroup(yt),Rt=Tt+zt;this.groupSizes[yt]=0;for(var Ut=Tt;Ut<Rt;Ut++)this.tag.deleteRule(Tt)}},At.getGroup=function(yt){var zt="";if(yt>=this.length||this.groupSizes[yt]===0)return zt;for(var Tt=this.groupSizes[yt],yt=this.indexOfGroup(yt),Rt=yt+Tt,Ut=yt;Ut<Rt;Ut++)zt+=this.tag.getRule(Ut)+`/*!sc*/
|
|
123
|
+
`;return zt};var U=at,D=new Map,W=new Map,Q=1,E=function(yt,zt){Q<=zt&&(Q=zt+1),D.set(yt,zt),W.set(zt,yt)},B="style["+w+'][data-styled-version="5.3.5"]',$=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),C=function(yt,zt,Tt){for(var Rt,Ut=Tt.split(","),Yt=0,ie=Ut.length;Yt<ie;Yt++)(Rt=Ut[Yt])&&yt.registerName(zt,Rt)},N=function(){return typeof window<"u"&&window.__webpack_nonce__!==void 0?window.__webpack_nonce__:null},Y=((At=ot.prototype).insertRule=function(yt,zt){try{return this.sheet.insertRule(zt,yt),this.length++,!0}catch{return!1}},At.deleteRule=function(yt){this.sheet.deleteRule(yt),this.length--},At.getRule=function(yt){return yt=this.sheet.cssRules[yt],yt!==void 0&&typeof yt.cssText=="string"?yt.cssText:""},ot),tt=((At=T.prototype).insertRule=function(yt,zt){return yt<=this.length&&0<=yt&&(zt=document.createTextNode(zt),yt=this.nodes[yt],this.element.insertBefore(zt,yt||null),this.length++,!0)},At.deleteRule=function(yt){this.element.removeChild(this.nodes[yt]),this.length--},At.getRule=function(yt){return yt<this.length?this.nodes[yt].textContent:""},T),F=((At=rt.prototype).insertRule=function(yt,zt){return yt<=this.length&&(this.rules.splice(yt,0,zt),this.length++,!0)},At.deleteRule=function(yt){this.rules.splice(yt,1),this.length--},At.getRule=function(yt){return yt<this.length?this.rules[yt]:""},rt),z=O,P={isServer:!O,useCSSOMInjection:!Ne},j=(K.registerId=k,(At=K.prototype).reconstructWithOptions=function(yt,zt){return zt===void 0&&(zt=!0),new K(g({},this.options,{},yt),this.gs,zt&&this.names||void 0)},At.allocateGSInstance=function(yt){return this.gs[yt]=(this.gs[yt]||0)+1},At.getTag=function(){return this.tag||(this.tag=(yt=(Tt=this.options).isServer,zt=Tt.useCSSOMInjection,Tt=Tt.target,yt=new(yt?F:zt?Y:tt)(Tt),new U(yt)));var yt,zt,Tt},At.hasNameForId=function(yt,zt){return this.names.has(yt)&&this.names.get(yt).has(zt)},At.registerName=function(yt,zt){var Tt;k(yt),this.names.has(yt)?this.names.get(yt).add(zt):((Tt=new Set).add(zt),this.names.set(yt,Tt))},At.insertRules=function(yt,zt,Tt){this.registerName(yt,zt),this.getTag().insertRules(k(yt),Tt)},At.clearNames=function(yt){this.names.has(yt)&&this.names.get(yt).clear()},At.clearRules=function(yt){this.getTag().clearGroup(k(yt)),this.clearNames(yt)},At.clearTag=function(){this.tag=void 0},At.toString=function(){for(var yt=this,zt=yt.getTag(),Tt=zt.length,Rt="",Ut=0;Ut<Tt;Ut++){dt=Ut;var Yt,ie,X,dt=W.get(dt);dt!==void 0&&(Yt=yt.names.get(dt),ie=zt.getGroup(Ut),Yt&&ie&&Yt.size&&(dt=w+".g"+Ut+'[id="'+dt+'"]',X="",Yt!==void 0&&Yt.forEach(function(wt){0<wt.length&&(X+=wt+",")}),Rt+=ie+dt+'{content:"'+X+`"}/*!sc*/
|
|
124
|
+
`))}return Rt},K),V=/(a)(d)/gi;function K(yt,zt,Tt){if(yt===void 0&&(yt=b),zt===void 0&&(zt={}),this.options=g({},P,{},yt),this.gs=zt,this.names=new Map(Tt),this.server=!!yt.isServer,!this.server&&O&&z){z=!1;for(var Rt=this,Ut=document.querySelectorAll(B),Yt=0,ie=Ut.length;Yt<ie;Yt++){var X=Ut[Yt];if(X&&X.getAttribute(w)!=="active"){{Bt=void 0,St=void 0,Se=void 0,oe=void 0,nn=void 0,ve=void 0,Ie=void 0,ke=void 0;for(var dt=Rt,wt=X,Bt=(wt.textContent||"").split(`/*!sc*/
|
|
125
|
+
`),St=[],Se=0,oe=Bt.length;Se<oe;Se++){var ve,Ie,ke,nn=Bt[Se].trim();nn&&((ve=nn.match($))?(Ie=0|parseInt(ve[1],10),ke=ve[2],Ie!=0&&(E(ke,Ie),C(dt,ke,ve[3]),dt.getTag().insertRules(Ie,St)),St.length=0):St.push(nn))}}X.parentNode&&X.parentNode.removeChild(X)}}}}function rt(yt){this.rules=[],this.length=0}function T(yt){yt=this.element=J(yt),this.nodes=yt.childNodes,this.length=0}function ot(yt){yt=this.element=J(yt),yt.appendChild(document.createTextNode("")),this.sheet=function(zt){if(zt.sheet)return zt.sheet;for(var Tt=document.styleSheets,Rt=0,Ut=Tt.length;Rt<Ut;Rt++){var Yt=Tt[Rt];if(Yt.ownerNode===zt)return Yt}A(17)}(yt),this.length=0}function at(yt){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=yt}function q(yt){for(var zt="",Tt=Math.abs(yt);52<Tt;Tt=Tt/52|0)zt=G(Tt%52)+zt;return(G(Tt%52)+zt).replace(V,"$1-$2")}function ht(yt,zt){for(var Tt=zt.length;Tt;)yt=33*yt^zt.charCodeAt(--Tt);return yt}function lt(yt){return ht(5381,yt)}function bt(yt){for(var zt=0;zt<yt.length;zt+=1){var Tt=yt[zt];if(_(Tt)&&!x(Tt))return!1}return!0}var _t=lt("5.3.5"),Dt=(ue.prototype.generateAndInjectStyles=function(yt,zt,Tt){var Rt=this.componentId,Ut=[];if(this.baseStyle&&Ut.push(this.baseStyle.generateAndInjectStyles(yt,zt,Tt)),this.isStatic&&!Tt.hash)this.staticRulesId&&zt.hasNameForId(Rt,this.staticRulesId)?Ut.push(this.staticRulesId):(Yt=wn(this.rules,yt,zt,Tt).join(""),ie=q(ht(this.baseHash,Yt)>>>0),zt.hasNameForId(Rt,ie)||(Yt=Tt(Yt,"."+ie,void 0,Rt),zt.insertRules(Rt,ie,Yt)),Ut.push(ie),this.staticRulesId=ie);else{for(var Yt,ie,X=this.rules.length,dt=ht(this.baseHash,Tt.hash),wt="",Bt=0;Bt<X;Bt++){var St=this.rules[Bt];typeof St=="string"?(wt+=St,e.env.NODE_ENV!=="production"&&(dt=ht(dt,St+Bt))):St&&(St=wn(St,yt,zt,Tt),St=Array.isArray(St)?St.join(""):St,dt=ht(dt,St+Bt),wt+=St)}wt&&(Yt=q(dt>>>0),zt.hasNameForId(Rt,Yt)||(ie=Tt(wt,"."+Yt,void 0,Rt),zt.insertRules(Rt,Yt,ie)),Ut.push(Yt))}return Ut.join(" ")},ue),Ft=/^\s*\/\/.*$/gm,Qt=[":","[",".","#"];function ue(yt,zt,Tt){this.rules=yt,this.staticRulesId="",this.isStatic=e.env.NODE_ENV==="production"&&(Tt===void 0||Tt.isStatic)&&bt(yt),this.componentId=zt,this.baseHash=ht(_t,zt),this.baseStyle=Tt,j.registerId(zt)}function ae(wt){function zt(ve,Ie,ke,nn,dn,En,Ln,tr,jn,Rn){switch(ve){case 1:if(jn===0&&Ie.charCodeAt(0)===64)return X(Ie+";"),"";break;case 2:if(tr===0)return Ie+"/*|*/";break;case 3:switch(tr){case 102:case 112:return X(ke[0]+Ie),"";default:return Ie+(Rn===0?"/*|*/":"")}case-2:Ie.split("/*|*/}").forEach(Se)}}function Tt(ve,Ie,ke){return Ie===0&&Qt.indexOf(ke[Ut.length])!==-1||ke.match(ie)?ve:"."+Rt}var Rt,Ut,Yt,ie,X,wt=wt===void 0?b:wt,dt=wt.options,dt=dt===void 0?b:dt,wt=wt.plugins,wt=wt===void 0?v:wt,Bt=new c(dt),St=[];X=function(ve){St.push(ve)};function Se(ve){if(ve)try{X(ve+"}")}catch{}}function oe(ve,Ie,ke,nn){return nn===void 0&&(nn="&"),ve=ve.replace(Ft,""),ve=Ie&&ke?ke+" "+Ie+" { "+ve+" }":ve,Rt=nn,Ut=Ie,Yt=new RegExp("\\"+Ut+"\\b","g"),ie=new RegExp("(\\"+Ut+"\\b){2,}"),Bt(ke||!Ie?"":Ie,ve)}return Bt.use([].concat(wt,[function(ve,Ie,ke){ve===2&&ke.length&&0<ke[0].lastIndexOf(Ut)&&(ke[0]=ke[0].replace(Yt,Tt))},zt,function(ve){if(ve===-2)return ve=St,St=[],ve}])),oe.hash=wt.length?wt.reduce(function(ve,Ie){return Ie.name||A(15),ht(ve,Ie.name)},5381).toString():"",oe}var se=l.createContext(),Ne=se.Consumer,ce=l.createContext(),qt=(ce.Consumer,new j),Nt=ae();function It(){return r.useContext(se)||qt}function me(){return r.useContext(ce)||Nt}function Vt(yt){var Ut=r.useState(yt.stylisPlugins),zt=Ut[0],Tt=Ut[1],Rt=It(),Ut=r.useMemo(function(){var ie=Rt;return yt.sheet?ie=yt.sheet:yt.target&&(ie=ie.reconstructWithOptions({target:yt.target},!1)),ie=yt.disableCSSOMInjection?ie.reconstructWithOptions({useCSSOMInjection:!1}):ie},[yt.disableCSSOMInjection,yt.sheet,yt.target]),Yt=r.useMemo(function(){return ae({options:{prefix:!yt.disableVendorPrefixes},plugins:zt})},[yt.disableVendorPrefixes,zt]);return r.useEffect(function(){n(zt,yt.stylisPlugins)||Tt(yt.stylisPlugins)},[yt.stylisPlugins]),l.createElement(se.Provider,{value:Ut},l.createElement(ce.Provider,{value:Yt},e.env.NODE_ENV!=="production"?l.Children.only(yt.children):yt.children))}ee.prototype.getName=function(yt){return yt===void 0&&(yt=Nt),this.name+yt.hash};var ge=ee,De=/([A-Z])/,_e=/([A-Z])/g,Ht=/^ms-/,yn=function(yt){return"-"+yt.toLowerCase()};function ee(yt,zt){var Tt=this;this.inject=function(Rt,Ut){Ut===void 0&&(Ut=Nt);var Yt=Tt.name+Ut.hash;Rt.hasNameForId(Tt.id,Yt)||Rt.insertRules(Tt.id,Yt,Ut(Tt.rules,Yt,"@keyframes"))},this.toString=function(){return A(12,String(Tt.name))},this.name=yt,this.id="sc-keyframes-"+yt,this.rules=zt}function Qe(yt){return De.test(yt)?yt.replace(_e,yn).replace(Ht,"-ms-"):yt}var on=function(yt){return yt==null||yt===!1||yt===""};function wn(yt,zt,Tt,Rt){if(Array.isArray(yt)){for(var Ut,Yt=[],ie=0,X=yt.length;ie<X;ie+=1)(Ut=wn(yt[ie],zt,Tt,Rt))!==""&&(Array.isArray(Ut)?Yt.push.apply(Yt,Ut):Yt.push(Ut));return Yt}if(on(yt))return"";if(x(yt))return"."+yt.styledComponentId;if(_(yt)){if(typeof yt!="function"||yt.prototype&&yt.prototype.isReactComponent||!zt)return yt;var dt=yt(zt);return e.env.NODE_ENV!=="production"&&i.isElement(dt)&&R(yt),wn(dt,zt,Tt,Rt)}return yt instanceof ge?Tt?(yt.inject(Tt,Rt),yt.getName(Rt)):yt:h(yt)?function wt(Bt,St){var Se,oe,ve,Ie=[];for(ve in Bt)Bt.hasOwnProperty(ve)&&!on(Bt[ve])&&(Array.isArray(Bt[ve])&&Bt[ve].isCss||_(Bt[ve])?Ie.push(Qe(ve)+":",Bt[ve],";"):h(Bt[ve])?Ie.push.apply(Ie,wt(Bt[ve],ve)):Ie.push(Qe(ve)+": "+(Se=ve,(oe=Bt[ve])==null||typeof oe=="boolean"||oe===""?"":typeof oe!="number"||oe===0||Se in d?String(oe).trim():oe+"px")+";"));return St?[St+" {"].concat(Ie,["}"]):Ie}(yt):yt.toString()}var Ve=function(yt){return Array.isArray(yt)&&(yt.isCss=!0),yt};function Ue(yt){for(var zt=arguments.length,Tt=new Array(1<zt?zt-1:0),Rt=1;Rt<zt;Rt++)Tt[Rt-1]=arguments[Rt];return _(yt)||h(yt)?Ve(wn(m(v,[yt].concat(Tt)))):Tt.length===0&&yt.length===1&&typeof yt[0]=="string"?yt:Ve(wn(m(yt,Tt)))}var Ze=/invalid hook call/i,gn=new Set,fn=function(yt,zt){if(e.env.NODE_ENV!=="production"){var Tt="The component "+yt+(zt?' with the id of "'+zt+'"':"")+` has been created dynamically.
|
|
126
|
+
You may see this warning because you've called styled inside another component.
|
|
127
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,Rt=console.error;try{var Ut=!0;console.error=function(Yt){if(Ze.test(Yt))Ut=!1,gn.delete(Tt);else{for(var ie=arguments.length,X=new Array(1<ie?ie-1:0),dt=1;dt<ie;dt++)X[dt-1]=arguments[dt];Rt.apply(void 0,[Yt].concat(X))}},r.useRef(),Ut&&!gn.has(Tt)&&gn.add(Tt)}catch(Yt){Ze.test(Yt.message)&&gn.delete(Tt)}finally{console.error=Rt}}},On=function(yt,zt,Tt){return Tt===void 0&&(Tt=b),yt.theme!==Tt.theme&&yt.theme||zt||Tt.theme},bn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Xe=/(^-|-$)/g;function $e(yt){return yt.replace(bn,"-").replace(Xe,"")}var kt=function(yt){return q(lt(yt)>>>0)};function be(yt){return typeof yt=="string"&&(e.env.NODE_ENV==="production"||yt.charAt(0)===yt.charAt(0).toLowerCase())}var de=function(yt){return typeof yt=="function"||typeof yt=="object"&&yt!==null&&!Array.isArray(yt)},Ye=function(yt){return yt!=="__proto__"&&yt!=="constructor"&&yt!=="prototype"};function cn(yt){for(var zt=arguments.length,Tt=new Array(1<zt?zt-1:0),Rt=1;Rt<zt;Rt++)Tt[Rt-1]=arguments[Rt];for(var Ut,Yt,ie,X=0,dt=Tt;X<dt.length;X++){var wt=dt[X];if(de(wt))for(var Bt in wt)Ye(Bt)&&(Ut=yt,Yt=wt[Bt],Bt=Bt,ie=void 0,ie=Ut[Bt],de(Yt)&&de(ie)?cn(ie,Yt):Ut[Bt]=Yt)}return yt}var We=l.createContext(),At=We.Consumer,Zt={};function xt(yt,zt,Tt){var Rt=x(yt),Ut=!be(yt),Yt=zt.attrs,Yt=Yt===void 0?v:Yt,wt=zt.componentId,wt=wt===void 0?function(ke,nn){return ke=typeof ke!="string"?"sc":$e(ke),Zt[ke]=(Zt[ke]||0)+1,ke=ke+"-"+kt("5.3.5"+ke+Zt[ke]),nn?nn+"-"+ke:ke}(zt.displayName,zt.parentComponentId):wt,X=zt.displayName,ie=X===void 0?be(ie=yt)?"styled."+ie:"Styled("+R(ie)+")":X,X=zt.displayName&&zt.componentId?$e(zt.displayName)+"-"+zt.componentId:zt.componentId||wt,dt=Rt&&yt.attrs?Array.prototype.concat(yt.attrs,Yt).filter(Boolean):Yt,wt=zt.shouldForwardProp;Rt&&yt.shouldForwardProp&&(wt=zt.shouldForwardProp?function(ke,nn,dn){return yt.shouldForwardProp(ke,nn,dn)&&zt.shouldForwardProp(ke,nn,dn)}:yt.shouldForwardProp);function Bt(ke,nn){var dn,En,Ln,tr,jn=St,Rn=Ie,Sr=jn.attrs,$n=jn.componentStyle,Mr=jn.defaultProps,Wr=jn.foldedComponentIds,uo=jn.shouldForwardProp,xr=jn.styledComponentId,fo=jn.target,Sr=(e.env.NODE_ENV!=="production"&&r.useDebugValue(xr),Mr=On(ke,r.useContext(We),Mr)||b,Sr=Sr,En=g({},ke,{theme:Mr=Mr===void 0?b:Mr}),Ln={},Sr.forEach(function(_i){var Ro,Ho,Jr,Io=_i;for(Ro in Io=_(Io)?Io(En):Io)En[Ro]=Ln[Ro]=Ro==="className"?(Ho=Ln[Ro],Jr=Io[Ro],Ho&&Jr?Ho+" "+Jr:Ho||Jr):Io[Ro]}),(Mr=[En,Ln])[1]),Mr=($n=$n,Rn=Rn,Mr=Mr[0],jn=e.env.NODE_ENV!=="production"?jn.warnTooManyClasses:void 0,Ni=It(),dn=me(),$n=Rn?$n.generateAndInjectStyles(b,Ni,dn):$n.generateAndInjectStyles(Mr,Ni,dn),e.env.NODE_ENV!=="production"&&r.useDebugValue($n),e.env.NODE_ENV!=="production"&&!Rn&&jn&&jn($n),$n),Ni=nn,bi=Sr.$as||ke.$as||Sr.as||ke.as||fo,ea=be(bi),ar=Sr!==ke?g({},ke,{},Sr):ke,po={};for(tr in ar)tr[0]!=="$"&&tr!=="as"&&(tr==="forwardedAs"?po.as=ar[tr]:(uo?uo(tr,u,bi):!ea||u(tr))&&(po[tr]=ar[tr]));return ke.style&&Sr.style!==ke.style&&(po.style=g({},ke.style,{},Sr.style)),po.className=Array.prototype.concat(Wr,xr,Mr!==xr?Mr:null,ke.className,Sr.className).filter(Boolean).join(" "),po.ref=Ni,r.createElement(bi,po)}var St,Se,oe,ve=new Dt(Tt,X,Rt?yt.componentStyle:void 0),Ie=ve.isStatic&&Yt.length===0;return Bt.displayName=ie,(St=l.forwardRef(Bt)).attrs=dt,St.componentStyle=ve,St.displayName=ie,St.shouldForwardProp=wt,St.foldedComponentIds=Rt?Array.prototype.concat(yt.foldedComponentIds,yt.styledComponentId):v,St.styledComponentId=X,St.target=Rt?yt.target:yt,St.withComponent=function(ke){var dn=zt.componentId,nn=function(En,Ln){if(En==null)return{};for(var tr,jn={},Rn=Object.keys(En),$n=0;$n<Rn.length;$n++)tr=Rn[$n],0<=Ln.indexOf(tr)||(jn[tr]=En[tr]);return jn}(zt,["componentId"]),dn=dn&&dn+"-"+(be(ke)?ke:$e(R(ke)));return xt(ke,g({},nn,{attrs:dt,componentId:dn}),Tt)},Object.defineProperty(St,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(ke){this._foldedDefaultProps=Rt?cn({},yt.defaultProps,ke):ke}}),e.env.NODE_ENV!=="production"&&(fn(ie,X),St.warnTooManyClasses=(oe=!(Se={}),function(ke){!oe&&(Se[ke]=!0,200<=Object.keys(Se).length)&&(oe=!0,Se={})})),St.toString=function(){return"."+St.styledComponentId},Ut&&f(St,yt,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),St}function Wt(yt){return function zt(Tt,Rt,Ut){if(Ut===void 0&&(Ut=b),!i.isValidElementType(Rt))return A(1,String(Rt));function Yt(){return Tt(Rt,Ut,Ue.apply(void 0,arguments))}return Yt.withConfig=function(ie){return zt(Tt,Rt,g({},Ut,{},ie))},Yt.attrs=function(ie){return zt(Tt,Rt,g({},Ut,{attrs:Array.prototype.concat(Ut.attrs,ie).filter(Boolean)}))},Yt}(xt,yt)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(yt){Wt[yt]=Wt(yt)}),(je=Te.prototype).createStyles=function(yt,zt,Tt,Rt){zt=Rt(wn(this.rules,zt,Tt,Rt).join(""),""),Rt=this.componentId+yt,Tt.insertRules(Rt,Rt,zt)},je.removeStyles=function(yt,zt){zt.clearRules(this.componentId+yt)},je.renderStyles=function(yt,zt,Tt,Rt){2<yt&&j.registerId(this.componentId+yt),this.removeStyles(yt,Tt),this.createStyles(yt,zt,Tt,Rt)};var re=Te,je=((je=Ge.prototype).collectStyles=function(yt){return this.sealed?A(2):l.createElement(Vt,{sheet:this.instance},yt)},je.interleaveWithNodeStream=function(yt){return A(3)},Ge),Gt={StyleSheet:j,masterSheet:qt};function Ge(){var yt=this;this._emitSheetCSS=function(){var zt=yt.instance.toString();if(!zt)return"";var Tt=N();return"<style "+[Tt&&'nonce="'+Tt+'"',w+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+zt+"</style>"},this.getStyleTags=function(){return yt.sealed?A(2):yt._emitSheetCSS()},this.getStyleElement=function(){if(yt.sealed)return A(2);(zt={})[w]="",zt["data-styled-version"]="5.3.5",zt.dangerouslySetInnerHTML={__html:yt.instance.toString()};var zt,Tt=N();return Tt&&(zt.nonce=Tt),[l.createElement("style",g({},zt,{key:"sc-0-0"}))]},this.seal=function(){yt.sealed=!0},this.instance=new j({isServer:!0}),this.sealed=!1}function Te(yt,zt){this.rules=yt,this.componentId=zt,this.isStatic=bt(yt),j.registerId(this.componentId+1)}e.env.NODE_ENV,e.env.NODE_ENV!=="production"&&e.env.NODE_ENV!=="test"&&typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]+=1),t.ServerStyleSheet=je,t.StyleSheetConsumer=Ne,t.StyleSheetContext=se,t.StyleSheetManager=Vt,t.ThemeConsumer=At,t.ThemeContext=We,t.ThemeProvider=function(yt){var zt=r.useContext(We),Tt=r.useMemo(function(){return Rt=yt.theme,Ut=zt,Rt?_(Rt)?(Yt=Rt(Ut),e.env.NODE_ENV==="production"||Yt!==null&&!Array.isArray(Yt)&&typeof Yt=="object"?Yt:A(7)):Array.isArray(Rt)||typeof Rt!="object"?A(8):Ut?g({},Ut,{},Rt):Rt:A(14);var Rt,Ut,Yt},[yt.theme,zt]);return yt.children?l.createElement(We.Provider,{value:Tt},yt.children):null},t.__PRIVATE__=Gt,t.createGlobalStyle=function(yt){for(var zt=arguments.length,Tt=new Array(1<zt?zt-1:0),Rt=1;Rt<zt;Rt++)Tt[Rt-1]=arguments[Rt];var Ut=Ue.apply(void 0,[yt].concat(Tt)),Yt="sc-global-"+kt(JSON.stringify(Ut)),ie=new re(Ut,Yt);function X(wt){var Bt=It(),St=me(),Se=r.useContext(We),oe=r.useRef(Bt.allocateGSInstance(Yt)).current;return e.env.NODE_ENV!=="production"&&l.Children.count(wt.children),e.env.NODE_ENV!=="production"&&Ut.some(function(ve){return typeof ve=="string"&&ve.indexOf("@import")!==-1}),Bt.server&&dt(oe,wt,Bt,Se,St),r.useLayoutEffect(function(){if(!Bt.server)return dt(oe,wt,Bt,Se,St),function(){return ie.removeStyles(oe,Bt)}},[oe,wt,Bt,Se,St]),null}function dt(wt,Bt,St,Se,oe){ie.isStatic?ie.renderStyles(wt,I,St,oe):(Bt=g({},Bt,{theme:On(Bt,Se,X.defaultProps)}),ie.renderStyles(wt,Bt,St,oe))}return e.env.NODE_ENV!=="production"&&fn(Yt),l.memo(X)},t.css=Ue,t.default=Wt,t.isStyledComponent=x,t.keyframes=function(Ut){e.env.NODE_ENV;for(var zt=arguments.length,Tt=new Array(1<zt?zt-1:0),Rt=1;Rt<zt;Rt++)Tt[Rt-1]=arguments[Rt];var Ut=Ue.apply(void 0,[Ut].concat(Tt)).join(""),Yt=kt(Ut);return new ge(Yt,Ut)},t.useTheme=function(){return r.useContext(We)},t.version="5.3.5",t.withTheme=function(yt){var zt=l.forwardRef(function(Tt,Rt){var Yt=r.useContext(We),Ut=yt.defaultProps,Yt=On(Tt,Yt,Ut);return e.env.NODE_ENV!=="production"&&Yt===void 0&&R(yt),l.createElement(yt,g({},Tt,{theme:Yt,ref:Rt}))});return f(zt,yt),zt.displayName="WithTheme("+R(yt)+")",zt}}).call(this)}).call(this,o("_process"))},{"@emotion/is-prop-valid":37,"@emotion/stylis":39,"@emotion/unitless":40,_process:149,"hoist-non-react-statics":141,react:171,"react-is":167,shallowequal:179}],181:[function(o,a,t){(function(e){(function(){var s,i,r,l,n,c,d,u,f,g,m,h,v,b,_,R,x,w,O,I,L,M,A;(function(k){var J=typeof e=="object"?e:typeof self=="object"?self:typeof this=="object"?this:{};function G(U,D){return U!==J&&(typeof Object.create=="function"?Object.defineProperty(U,"__esModule",{value:!0}):U.__esModule=!0),function(W,Q){return U[W]=D?D(W,Q):Q}}typeof a=="object"&&typeof a.exports=="object"?k(G(J,G(a.exports))):k(G(J))})(function(k){var J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,U){G.__proto__=U}||function(G,U){for(var D in U)U.hasOwnProperty(D)&&(G[D]=U[D])};s=function(G,U){function D(){this.constructor=G}J(G,U),G.prototype=U===null?Object.create(U):(D.prototype=U.prototype,new D)},i=Object.assign||function(G){for(var U,D=1,W=arguments.length;D<W;D++)for(var Q in U=arguments[D])Object.prototype.hasOwnProperty.call(U,Q)&&(G[Q]=U[Q]);return G},r=function(G,U){var D={};for(Q in G)Object.prototype.hasOwnProperty.call(G,Q)&&U.indexOf(Q)<0&&(D[Q]=G[Q]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,Q=Object.getOwnPropertySymbols(G);W<Q.length;W++)U.indexOf(Q[W])<0&&Object.prototype.propertyIsEnumerable.call(G,Q[W])&&(D[Q[W]]=G[Q[W]]);return D},l=function(G,U,D,W){var Q,E=arguments.length,B=E<3?U:W===null?W=Object.getOwnPropertyDescriptor(U,D):W;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(G,U,D,W);else for(var $=G.length-1;0<=$;$--)(Q=G[$])&&(B=(E<3?Q(B):3<E?Q(U,D,B):Q(U,D))||B);return 3<E&&B&&Object.defineProperty(U,D,B),B},n=function(G,U){return function(D,W){U(D,W,G)}},c=function(G,U){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(G,U)},d=function(G,U,D,W){return new(D=D||Promise)(function(Q,E){function B(N){try{C(W.next(N))}catch(Y){E(Y)}}function $(N){try{C(W.throw(N))}catch(Y){E(Y)}}function C(N){var Y;N.done?Q(N.value):((Y=N.value)instanceof D?Y:new D(function(tt){tt(Y)})).then(B,$)}C((W=W.apply(G,U||[])).next())})},u=function(G,U){var D,W,Q,E={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]},B={next:$(0),throw:$(1),return:$(2)};return typeof Symbol=="function"&&(B[Symbol.iterator]=function(){return this}),B;function $(C){return function(N){var Y=[C,N];if(D)throw new TypeError("Generator is already executing.");for(;E;)try{if(D=1,W&&(Q=2&Y[0]?W.return:Y[0]?W.throw||((Q=W.return)&&Q.call(W),0):W.next)&&!(Q=Q.call(W,Y[1])).done)return Q;switch(W=0,(Y=Q?[2&Y[0],Q.value]:Y)[0]){case 0:case 1:Q=Y;break;case 4:return E.label++,{value:Y[1],done:!1};case 5:E.label++,W=Y[1],Y=[0];continue;case 7:Y=E.ops.pop(),E.trys.pop();continue;default:if(!(Q=0<(Q=E.trys).length&&Q[Q.length-1])&&(Y[0]===6||Y[0]===2)){E=0;continue}if(Y[0]===3&&(!Q||Y[1]>Q[0]&&Y[1]<Q[3])){E.label=Y[1];break}if(Y[0]===6&&E.label<Q[1]){E.label=Q[1],Q=Y;break}if(Q&&E.label<Q[2]){E.label=Q[2],E.ops.push(Y);break}Q[2]&&E.ops.pop(),E.trys.pop();continue}Y=U.call(G,E)}catch(tt){Y=[6,tt],W=0}finally{D=Q=0}if(5&Y[0])throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}}},A=function(G,U,D,W){G[W=W===void 0?D:W]=U[D]},f=function(G,U){for(var D in G)D==="default"||U.hasOwnProperty(D)||(U[D]=G[D])},g=function(G){var U=typeof Symbol=="function"&&Symbol.iterator,D=U&&G[U],W=0;if(D)return D.call(G);if(G&&typeof G.length=="number")return{next:function(){return{value:(G=G&&W>=G.length?void 0:G)&&G[W++],done:!G}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(G,U){var D=typeof Symbol=="function"&&G[Symbol.iterator];if(!D)return G;var W,Q,E=D.call(G),B=[];try{for(;(U===void 0||0<U--)&&!(W=E.next()).done;)B.push(W.value)}catch($){Q={error:$}}finally{try{W&&!W.done&&(D=E.return)&&D.call(E)}finally{if(Q)throw Q.error}}return B},h=function(){for(var G=[],U=0;U<arguments.length;U++)G=G.concat(m(arguments[U]));return G},v=function(){for(var G=0,U=0,D=arguments.length;U<D;U++)G+=arguments[U].length;for(var W=Array(G),Q=0,U=0;U<D;U++)for(var E=arguments[U],B=0,$=E.length;B<$;B++,Q++)W[Q]=E[B];return W},b=function(G){return this instanceof b?(this.v=G,this):new b(G)},_=function(G,U,D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W=D.apply(G,U||[]),Q=[],E={};return B("next"),B("throw"),B("return"),E[Symbol.asyncIterator]=function(){return this},E;function B(tt){W[tt]&&(E[tt]=function(F){return new Promise(function(z,P){1<Q.push([tt,F,z,P])||$(tt,F)})})}function $(tt,F){try{(z=W[tt](F)).value instanceof b?Promise.resolve(z.value.v).then(C,N):Y(Q[0][2],z)}catch(P){Y(Q[0][3],P)}var z}function C(tt){$("next",tt)}function N(tt){$("throw",tt)}function Y(tt,F){tt(F),Q.shift(),Q.length&&$(Q[0][0],Q[0][1])}},R=function(G){var U,D={};return W("next"),W("throw",function(Q){throw Q}),W("return"),D[Symbol.iterator]=function(){return this},D;function W(Q,E){D[Q]=G[Q]?function(B){return(U=!U)?{value:b(G[Q](B)),done:Q==="return"}:E?E(B):B}:E}},x=function(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,D=G[Symbol.asyncIterator];return D?D.call(G):(G=g(G),U={},W("next"),W("throw"),W("return"),U[Symbol.asyncIterator]=function(){return this},U);function W(Q){U[Q]=G[Q]&&function(E){return new Promise(function(B,$){var C,N;E=G[Q](E),C=B,B=$,N=E.done,$=E.value,Promise.resolve($).then(function(Y){C({value:Y,done:N})},B)})}}},w=function(G,U){return Object.defineProperty?Object.defineProperty(G,"raw",{value:U}):G.raw=U,G},O=function(G){if(G&&G.__esModule)return G;var U={};if(G!=null)for(var D in G)Object.hasOwnProperty.call(G,D)&&(U[D]=G[D]);return U.default=G,U},I=function(G){return G&&G.__esModule?G:{default:G}},L=function(G,U){if(U.has(G))return U.get(G);throw new TypeError("attempted to get private field on non-instance")},M=function(G,U,D){if(U.has(G))return U.set(G,D),D;throw new TypeError("attempted to set private field on non-instance")},k("__extends",s),k("__assign",i),k("__rest",r),k("__decorate",l),k("__param",n),k("__metadata",c),k("__awaiter",d),k("__generator",u),k("__exportStar",f),k("__createBinding",A),k("__values",g),k("__read",m),k("__spread",h),k("__spreadArrays",v),k("__await",b),k("__asyncGenerator",_),k("__asyncDelegator",R),k("__asyncValues",x),k("__makeTemplateObject",w),k("__importStar",O),k("__importDefault",I),k("__classPrivateFieldGet",L),k("__classPrivateFieldSet",M)})}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],182:[function(o,a,c){var e=o("punycode"),s=o("./util");function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}c.parse=R,c.resolve=function(x,w){return R(x,!1,!0).resolve(w)},c.resolveObject=function(x,w){return x?R(x,!1,!0).resolveObject(w):w},c.format=function(x){return s.isString(x)&&(x=R(x)),x instanceof i?x.format():i.prototype.format.call(x)},c.Url=i;var r=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,n=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
128
|
+
`," "]),d=["'"].concat(c),u=["%","/","?",";","#"].concat(d),f=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=o("querystring");function R(x,w,O){if(x&&s.isObject(x)&&x instanceof i)return x;var I=new i;return I.parse(x,w,O),I}i.prototype.parse=function(x,w,O){if(!s.isString(x))throw new TypeError("Parameter 'url' must be a string, not "+typeof x);var A=x.indexOf("?"),A=A!==-1&&A<x.indexOf("#")?"?":"#",I=x.split(A);I[0]=I[0].replace(/\\/g,"/");var L=(L=x=I.join(A)).trim();if(!O&&x.split("#").length===1&&(I=n.exec(L),I))return this.path=L,this.href=L,this.pathname=I[1],I[2]?(this.search=I[2],this.query=w?_.parse(this.search.substr(1)):this.search.substr(1)):w&&(this.search="",this.query={}),this;var M,A=r.exec(L);if(A&&(M=(A=A[0]).toLowerCase(),this.protocol=M,L=L.substr(A.length)),!(O||A||L.match(/^\/\/[^@\/]+@[^@\/]+/))||!(tt=L.substr(0,2)==="//")||A&&v[A]||(L=L.substr(2),this.slashes=!0),!v[A]&&(tt||A&&!b[A])){for(var k=-1,J=0;J<f.length;J++)(G=L.indexOf(f[J]))!==-1&&(k===-1||G<k)&&(k=G);(x=k===-1?L.lastIndexOf("@"):L.lastIndexOf("@",k))!==-1&&(I=L.slice(0,x),L=L.slice(x+1),this.auth=decodeURIComponent(I));for(var G,k=-1,J=0;J<u.length;J++)(G=L.indexOf(u[J]))!==-1&&(k===-1||G<k)&&(k=G);if(k===-1&&(k=L.length),this.host=L.slice(0,k),L=L.slice(k),this.parseHost(),this.hostname=this.hostname||"",O=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]",!O)for(var U=this.hostname.split(/\./),J=0,D=U.length;J<D;J++){var W=U[J];if(W&&!W.match(g)){for(var Q="",E=0,B=W.length;E<B;E++)127<W.charCodeAt(E)?Q+="x":Q+=W[E];if(!Q.match(g)){var $=U.slice(0,J),C=U.slice(J+1),N=W.match(m);N&&($.push(N[1]),C.unshift(N[2])),C.length&&(L="/"+C.join(".")+L),this.hostname=$.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=e.toASCII(this.hostname));var Y=this.port?":"+this.port:"",tt=this.hostname||"";this.host=tt+Y,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/"&&(L="/"+L))}if(!h[M])for(J=0,D=d.length;J<D;J++){var F,z=d[J];L.indexOf(z)!==-1&&((F=encodeURIComponent(z))===z&&(F=escape(z)),L=L.split(z).join(F))}return A=L.indexOf("#"),A!==-1&&(this.hash=L.substr(A),L=L.slice(0,A)),x=L.indexOf("?"),x!==-1?(this.search=L.substr(x),this.query=L.substr(x+1),w&&(this.query=_.parse(this.query)),L=L.slice(0,x)):w&&(this.search="",this.query={}),L&&(this.pathname=L),b[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(Y=this.pathname||"",I=this.search||"",this.path=Y+I),this.href=this.format(),this},i.prototype.format=function(){var M=this.auth||"",x=(M&&(M=(M=encodeURIComponent(M)).replace(/%3A/i,":"),M+="@"),this.protocol||""),w=this.pathname||"",O=this.hash||"",I=!1,L="",M=(this.host?I=M+this.host:this.hostname&&(I=M+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(I+=":"+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(L=_.stringify(this.query)),this.search||L&&"?"+L||"");return x&&x.substr(-1)!==":"&&(x+=":"),this.slashes||(!x||b[x])&&I!==!1?(I="//"+(I||""),w&&w.charAt(0)!=="/"&&(w="/"+w)):I=I||"",O&&O.charAt(0)!=="#"&&(O="#"+O),M&&M.charAt(0)!=="?"&&(M="?"+M),x+I+(w=w.replace(/[?#]/g,function(A){return encodeURIComponent(A)}))+(M=M.replace("#","%23"))+O},i.prototype.resolve=function(x){return this.resolveObject(R(x,!1,!0)).format()},i.prototype.resolveObject=function(x){s.isString(x)&&((W=new i).parse(x,!1,!0),x=W);for(var w=new i,O=Object.keys(this),I=0;I<O.length;I++){var L=O[I];w[L]=this[L]}if(w.hash=x.hash,x.href==="")return w.href=w.format(),w;if(x.slashes&&!x.protocol){for(var M=Object.keys(x),A=0;A<M.length;A++){var k=M[A];k!=="protocol"&&(w[k]=x[k])}return b[w.protocol]&&w.hostname&&!w.pathname&&(w.path=w.pathname="/"),w.href=w.format(),w}if(x.protocol&&x.protocol!==w.protocol){if(!b[x.protocol]){for(var J=Object.keys(x),G=0;G<J.length;G++){var U=J[G];w[U]=x[U]}return w.href=w.format(),w}if(w.protocol=x.protocol,x.host||v[x.protocol])w.pathname=x.pathname;else{for(var E=(x.pathname||"").split("/");E.length&&!(x.host=E.shift()););x.host||(x.host=""),x.hostname||(x.hostname=""),E[0]!==""&&E.unshift(""),E.length<2&&E.unshift(""),w.pathname=E.join("/")}return w.search=x.search,w.query=x.query,w.host=x.host||"",w.auth=x.auth,w.hostname=x.hostname||x.host,w.port=x.port,(w.pathname||w.search)&&(W=w.pathname||"",D=w.search||"",w.path=W+D),w.slashes=w.slashes||x.slashes,w.href=w.format(),w}var W=w.pathname&&w.pathname.charAt(0)==="/",D=x.host||x.pathname&&x.pathname.charAt(0)==="/",W=D||W||w.host&&x.pathname,tt=W,Q=w.pathname&&w.pathname.split("/")||[],E=x.pathname&&x.pathname.split("/")||[],B=w.protocol&&!b[w.protocol];if(B&&(w.hostname="",w.port=null,w.host&&(Q[0]===""?Q[0]=w.host:Q.unshift(w.host)),w.host="",x.protocol&&(x.hostname=null,x.port=null,x.host&&(E[0]===""?E[0]=x.host:E.unshift(x.host)),x.host=null),W=W&&(E[0]===""||Q[0]==="")),D)w.host=(x.host||x.host===""?x:w).host,w.hostname=(x.hostname||x.hostname===""?x:w).hostname,w.search=x.search,w.query=x.query,Q=E;else if(E.length)(Q=Q||[]).pop(),Q=Q.concat(E),w.search=x.search,w.query=x.query;else if(!s.isNullOrUndefined(x.search))return B&&(w.hostname=w.host=Q.shift(),(Y=!!(w.host&&0<w.host.indexOf("@"))&&w.host.split("@"))&&(w.auth=Y.shift(),w.host=w.hostname=Y.shift())),w.search=x.search,w.query=x.query,s.isNull(w.pathname)&&s.isNull(w.search)||(w.path=(w.pathname||"")+(w.search||"")),w.href=w.format(),w;if(!Q.length)return w.pathname=null,w.search?w.path="/"+w.search:w.path=null,w.href=w.format(),w;for(var $=Q.slice(-1)[0],D=(w.host||x.host||1<Q.length)&&($==="."||$==="..")||$==="",C=0,N=Q.length;0<=N;N--)($=Q[N])==="."?Q.splice(N,1):$===".."?(Q.splice(N,1),C++):C&&(Q.splice(N,1),C--);if(!W&&!tt)for(;C--;)Q.unshift("..");!W||Q[0]===""||Q[0]&&Q[0].charAt(0)==="/"||Q.unshift(""),D&&Q.join("/").substr(-1)!=="/"&&Q.push("");var Y,tt=Q[0]===""||Q[0]&&Q[0].charAt(0)==="/";return B&&(w.hostname=w.host=!tt&&Q.length?Q.shift():"",(Y=!!(w.host&&0<w.host.indexOf("@"))&&w.host.split("@"))&&(w.auth=Y.shift(),w.host=w.hostname=Y.shift())),(W=W||w.host&&Q.length)&&!tt&&Q.unshift(""),Q.length?w.pathname=Q.join("/"):(w.pathname=null,w.path=null),s.isNull(w.pathname)&&s.isNull(w.search)||(w.path=(w.pathname||"")+(w.search||"")),w.auth=x.auth||w.auth,w.slashes=w.slashes||x.slashes,w.href=w.format(),w},i.prototype.parseHost=function(){var x=this.host,w=l.exec(x);w&&((w=w[0])!==":"&&(this.port=w.substr(1)),x=x.substr(0,x.length-w.length)),x&&(this.hostname=x)}},{"./util":183,punycode:134,querystring:161}],183:[function(o,a,t){a.exports={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}}},{}],184:[function(o,a,t){typeof Object.create=="function"?a.exports=function(e,s){e.super_=s,e.prototype=Object.create(s.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:a.exports=function(e,s){e.super_=s;function i(){}i.prototype=s.prototype,e.prototype=new i,e.prototype.constructor=e}},{}],185:[function(o,a,t){a.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}},{}],186:[function(o,a,t){(function(e,s){(function(){var i,r=/%[sdj%]/g,l=(t.format=function(G){if(!_(G)){for(var U=[],D=0;D<arguments.length;D++)U.push(n(arguments[D]));return U.join(" ")}for(var D=1,W=arguments,Q=W.length,E=String(G).replace(r,function(C){if(C==="%%")return"%";if(Q<=D)return C;switch(C){case"%s":return String(W[D++]);case"%d":return Number(W[D++]);case"%j":try{return JSON.stringify(W[D++])}catch{return"[Circular]"}default:return C}}),B=W[D];D<Q;B=W[++D])v(B)||!w(B)?E+=" "+B:E+=" "+n(B);return E},t.deprecate=function(G,U){if(R(s.process))return function(){return t.deprecate(G,U).apply(this,arguments)};if(e.noDeprecation===!0)return G;var D=!1;return function(){if(!D){if(e.throwDeprecation)throw new Error(U);e.traceDeprecation?console.trace(U):console.error(U),D=!0}return G.apply(this,arguments)}},{});function n(G,U){var D={seen:[],stylize:d};return 3<=arguments.length&&(D.depth=arguments[2]),4<=arguments.length&&(D.colors=arguments[3]),h(U)?D.showHidden=U:U&&t._extend(D,U),R(D.showHidden)&&(D.showHidden=!1),R(D.depth)&&(D.depth=2),R(D.colors)&&(D.colors=!1),R(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),u(D,G,D.depth)}function c(G,U){return U=n.styles[U],U?"\x1B["+n.colors[U][0]+"m"+G+"\x1B["+n.colors[U][1]+"m":G}function d(G,U){return G}function u(G,U,D){if(G.customInspect&&U&&L(U.inspect)&&U.inspect!==t.inspect&&(!U.constructor||U.constructor.prototype!==U))return _(Q=U.inspect(D,G))?Q:u(G,Q,D);var Q=function(Y,tt){if(R(tt))return Y.stylize("undefined","undefined");{var F;if(_(tt))return F="'"+JSON.stringify(tt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",Y.stylize(F,"string")}return b(tt)?Y.stylize(""+tt,"number"):h(tt)?Y.stylize(""+tt,"boolean"):v(tt)?Y.stylize("null","null"):void 0}(G,U);if(Q)return Q;var W,Q=Object.keys(U),E=(W={},Q.forEach(function(Y,tt){W[Y]=!0}),W);if(G.showHidden&&(Q=Object.getOwnPropertyNames(U)),I(U)&&(0<=Q.indexOf("message")||0<=Q.indexOf("description")))return f(U);if(Q.length===0){if(L(U))return B=U.name?": "+U.name:"",G.stylize("[Function"+B+"]","special");if(x(U))return G.stylize(RegExp.prototype.toString.call(U),"regexp");if(O(U))return G.stylize(Date.prototype.toString.call(U),"date");if(I(U))return f(U)}var B="",$=!1,C=["{","}"];if(m(U)&&($=!0,C=["[","]"]),L(U)&&(B=" [Function"+(U.name?": "+U.name:"")+"]"),x(U)&&(B=" "+RegExp.prototype.toString.call(U)),O(U)&&(B=" "+Date.prototype.toUTCString.call(U)),I(U)&&(B=" "+f(U)),Q.length===0&&(!$||U.length==0))return C[0]+B+C[1];if(D<0)return x(U)?G.stylize(RegExp.prototype.toString.call(U),"regexp"):G.stylize("[Object]","special");G.seen.push(U),N=$?function(Y,tt,F,z,P){for(var j=[],V=0,K=tt.length;V<K;++V)J(tt,String(V))?j.push(g(Y,tt,F,z,String(V),!0)):j.push("");return P.forEach(function(rt){rt.match(/^\d+$/)||j.push(g(Y,tt,F,z,rt,!0))}),j}(G,U,D,E,Q):Q.map(function(Y){return g(G,U,D,E,Y,$)}),G.seen.pop();var N;return 60<N.reduce(function(Y,tt){return 0<=tt.indexOf(`
|
|
129
|
+
`),Y+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0)?C[0]+(B===""?"":B+`
|
|
130
|
+
`)+" "+N.join(`,
|
|
131
|
+
`)+" "+C[1]:C[0]+B+" "+N.join(", ")+" "+C[1]}function f(G){return"["+Error.prototype.toString.call(G)+"]"}function g(G,C,D,W,Q,E){var B,$,C=Object.getOwnPropertyDescriptor(C,Q)||{value:C[Q]};if(C.get?$=C.set?G.stylize("[Getter/Setter]","special"):G.stylize("[Getter]","special"):C.set&&($=G.stylize("[Setter]","special")),J(W,Q)||(B="["+Q+"]"),$||(G.seen.indexOf(C.value)<0?-1<($=v(D)?u(G,C.value,null):u(G,C.value,D-1)).indexOf(`
|
|
132
|
+
`)&&($=E?$.split(`
|
|
133
|
+
`).map(function(N){return" "+N}).join(`
|
|
134
|
+
`).substr(2):`
|
|
135
|
+
`+$.split(`
|
|
136
|
+
`).map(function(N){return" "+N}).join(`
|
|
137
|
+
`)):$=G.stylize("[Circular]","special")),R(B)){if(E&&Q.match(/^\d+$/))return $;B=(B=JSON.stringify(""+Q)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(B=B.substr(1,B.length-2),G.stylize(B,"name")):(B=B.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G.stylize(B,"string"))}return B+": "+$}function m(G){return Array.isArray(G)}function h(G){return typeof G=="boolean"}function v(G){return G===null}function b(G){return typeof G=="number"}function _(G){return typeof G=="string"}function R(G){return G===void 0}function x(G){return w(G)&&M(G)==="[object RegExp]"}function w(G){return typeof G=="object"&&G!==null}function O(G){return w(G)&&M(G)==="[object Date]"}function I(G){return w(G)&&(M(G)==="[object Error]"||G instanceof Error)}function L(G){return typeof G=="function"}function M(G){return Object.prototype.toString.call(G)}function A(G){return G<10?"0"+G.toString(10):G.toString(10)}t.debuglog=function(G){var U;return R(i)&&(i=e.env.NODE_DEBUG||""),G=G.toUpperCase(),l[G]||(new RegExp("\\b"+G+"\\b","i").test(i)?(U=e.pid,l[G]=function(){var D=t.format.apply(t,arguments);console.error("%s %d: %s",G,U,D)}):l[G]=function(){}),l[G]},(t.inspect=n).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},n.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=m,t.isBoolean=h,t.isNull=v,t.isNullOrUndefined=function(G){return G==null},t.isNumber=b,t.isString=_,t.isSymbol=function(G){return typeof G=="symbol"},t.isUndefined=R,t.isRegExp=x,t.isObject=w,t.isDate=O,t.isError=I,t.isFunction=L,t.isPrimitive=function(G){return G===null||typeof G=="boolean"||typeof G=="number"||typeof G=="string"||typeof G=="symbol"||G===void 0},t.isBuffer=o("./support/isBuffer");var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function J(G,U){return Object.prototype.hasOwnProperty.call(G,U)}t.log=function(){var G,U;console.log("%s - %s",(G=new Date,U=[A(G.getHours()),A(G.getMinutes()),A(G.getSeconds())].join(":"),[G.getDate(),k[G.getMonth()],U].join(" ")),t.format.apply(t,arguments))},t.inherits=o("inherits"),t._extend=function(G,U){if(!U||!w(U))return G;for(var D=Object.keys(U),W=D.length;W--;)G[D[W]]=U[D[W]];return G}}).call(this)}).call(this,o("_process"),typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":185,_process:149,inherits:184}],187:[function(s,a,t){var e=s("./v1"),s=s("./v4"),i=s;i.v1=e,i.v4=s,a.exports=i},{"./v1":190,"./v4":191}],188:[function(o,a,t){for(var e=[],s=0;s<256;++s)e[s]=(s+256).toString(16).substr(1);a.exports=function(i,l){var l=l||0,n=e;return[n[i[l++]],n[i[l++]],n[i[l++]],n[i[l++]],"-",n[i[l++]],n[i[l++]],"-",n[i[l++]],n[i[l++]],"-",n[i[l++]],n[i[l++]],"-",n[i[l++]],n[i[l++]],n[i[l++]],n[i[l++]],n[i[l++]],n[i[+l]]].join("")}},{}],189:[function(o,a,t){var e,s,i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);i?(e=new Uint8Array(16),a.exports=function(){return i(e),e}):(s=new Array(16),a.exports=function(){for(var r,l=0;l<16;l++)!(3&l)&&(r=4294967296*Math.random()),s[l]=r>>>((3&l)<<3)&255;return s})},{}],190:[function(o,a,t){var e,s,i=o("./lib/rng"),r=o("./lib/bytesToUuid"),l=0,n=0;a.exports=function(c,d,h){var f=d&&h||0,g=d||[],m=(c=c||{}).node||e,h=c.clockseq!==void 0?c.clockseq:s,v=(m!=null&&h!=null||(v=i(),m==null&&(m=e=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),h==null&&(h=s=16383&(v[6]<<8|v[7]))),c.msecs!==void 0?c.msecs:new Date().getTime()),b=c.nsecs!==void 0?c.nsecs:n+1,_=v-l+(b-n)/1e4;if(_<0&&c.clockseq===void 0&&(h=h+1&16383),1e4<=(b=(_<0||l<v)&&c.nsecs===void 0?0:b))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=v,s=h,_=(1e4*(268435455&(v+=122192928e5))+(n=b))%4294967296,g[f++]=_>>>24&255,g[f++]=_>>>16&255,g[f++]=_>>>8&255,g[f++]=255&_,c=v/4294967296*1e4&268435455,g[f++]=c>>>8&255,g[f++]=255&c,g[f++]=c>>>24&15|16,g[f++]=c>>>16&255,g[f++]=h>>>8|128,g[f++]=255&h;for(var R=0;R<6;++R)g[f+R]=m[R];return d||r(g)}},{"./lib/bytesToUuid":188,"./lib/rng":189}],191:[function(o,a,t){var e=o("./lib/rng"),s=o("./lib/bytesToUuid");a.exports=function(i,r,l){var n=r&&l||0,c=(typeof i=="string"&&(r=i==="binary"?new Array(16):null,i=null),(i=i||{}).random||(i.rng||e)());if(c[6]=15&c[6]|64,c[8]=63&c[8]|128,r)for(var d=0;d<16;++d)r[n+d]=c[d];return r||s(c)}},{"./lib/bytesToUuid":188,"./lib/rng":189}],192:[function(o,a,t){var e=arguments[3],s=arguments[4],i=arguments[5],r=JSON.stringify;a.exports=function(l,n){for(var c=Object.keys(i),d=0,u=c.length;d<u;d++){var f=c[d],g=i[f].exports;if(g===l||g&&g.default===l){m=f;break}}if(!m){for(var m=Math.floor(Math.pow(16,8)*Math.random()).toString(16),h={},d=0,u=c.length;d<u;d++)h[f=c[d]]=f;s[m]=["function(require,module,exports){"+l+"(self); }",h]}var v=Math.floor(Math.pow(16,8)*Math.random()).toString(16),b={},_=(b[m]=m,s[v]=["function(require,module,exports){var f = require("+r(m)+");(f.default ? f.default : f)(self);}",b],{});return function R(x){_[x]=!0;for(var w in s[x][1])w=s[x][1][w],_[w]||R(w)}(v),b="("+e+")({"+Object.keys(_).map(function(R){return r(R)+":["+s[R][0]+","+r(s[R][1])+"]"}).join(",")+"},{},["+r(v)+"])",v=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([b],{type:"text/javascript"}),n&&n.bare?b:(n=v.createObjectURL(b),v=new Worker(n),v.objectURL=n,v)}},{}],193:[function(o,a,t){var e;e=this,function(s){var i,r,l=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||l!==void 0&&l,n="URLSearchParams"in l,c="Symbol"in l&&"iterator"in Symbol,d="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch{return!1}}(),u="FormData"in l,f="ArrayBuffer"in l;function g(J){if(typeof J!="string"&&(J=String(J)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(J)||J==="")throw new TypeError('Invalid character in header field name: "'+J+'"');return J.toLowerCase()}function m(J){return J=typeof J!="string"?String(J):J}function h(J){var G={next:function(){var U=J.shift();return{done:U===void 0,value:U}}};return c&&(G[Symbol.iterator]=function(){return G}),G}function v(J){this.map={},J instanceof v?J.forEach(function(G,U){this.append(U,G)},this):Array.isArray(J)?J.forEach(function(G){this.append(G[0],G[1])},this):J&&Object.getOwnPropertyNames(J).forEach(function(G){this.append(G,J[G])},this)}function b(J){if(J.bodyUsed)return Promise.reject(new TypeError("Already read"));J.bodyUsed=!0}function _(J){return new Promise(function(G,U){J.onload=function(){G(J.result)},J.onerror=function(){U(J.error)}})}function R(J){var G=new FileReader,U=_(G);return G.readAsArrayBuffer(J),U}function x(J){var G;return J.slice?J.slice(0):((G=new Uint8Array(J.byteLength)).set(new Uint8Array(J)),G.buffer)}function w(){return this.bodyUsed=!1,this._initBody=function(J){var G;this.bodyUsed=this.bodyUsed,(this._bodyInit=J)?typeof J=="string"?this._bodyText=J:d&&Blob.prototype.isPrototypeOf(J)?this._bodyBlob=J:u&&FormData.prototype.isPrototypeOf(J)?this._bodyFormData=J:n&&URLSearchParams.prototype.isPrototypeOf(J)?this._bodyText=J.toString():f&&d&&(G=J)&&DataView.prototype.isPrototypeOf(G)?(this._bodyArrayBuffer=x(J.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f&&(ArrayBuffer.prototype.isPrototypeOf(J)||r(J))?this._bodyArrayBuffer=x(J):this._bodyText=J=Object.prototype.toString.call(J):this._bodyText="",this.headers.get("content-type")||(typeof J=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(J)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d&&(this.blob=function(){var J=b(this);if(J)return J;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?b(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(R)}),this.text=function(){var J,G,U=b(this);if(U)return U;if(this._bodyBlob)return U=this._bodyBlob,J=new FileReader,G=_(J),J.readAsText(U),G;if(this._bodyArrayBuffer)return Promise.resolve(function(D){for(var W=new Uint8Array(D),Q=new Array(W.length),E=0;E<W.length;E++)Q[E]=String.fromCharCode(W[E]);return Q.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(L)}),this.json=function(){return this.text().then(JSON.parse)},this}f&&(i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(J){return J&&-1<i.indexOf(Object.prototype.toString.call(J))}),v.prototype.append=function(J,G){J=g(J),G=m(G);var U=this.map[J];this.map[J]=U?U+", "+G:G},v.prototype.delete=function(J){delete this.map[g(J)]},v.prototype.get=function(J){return J=g(J),this.has(J)?this.map[J]:null},v.prototype.has=function(J){return this.map.hasOwnProperty(g(J))},v.prototype.set=function(J,G){this.map[g(J)]=m(G)},v.prototype.forEach=function(J,G){for(var U in this.map)this.map.hasOwnProperty(U)&&J.call(G,this.map[U],U,this)},v.prototype.keys=function(){var J=[];return this.forEach(function(G,U){J.push(U)}),h(J)},v.prototype.values=function(){var J=[];return this.forEach(function(G){J.push(G)}),h(J)},v.prototype.entries=function(){var J=[];return this.forEach(function(G,U){J.push([U,G])}),h(J)},c&&(v.prototype[Symbol.iterator]=v.prototype.entries);var O=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function I(J,G){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var U,D=(G=G||{}).body;if(J instanceof I){if(J.bodyUsed)throw new TypeError("Already read");this.url=J.url,this.credentials=J.credentials,G.headers||(this.headers=new v(J.headers)),this.method=J.method,this.mode=J.mode,this.signal=J.signal,D||J._bodyInit==null||(D=J._bodyInit,J.bodyUsed=!0)}else this.url=String(J);if(this.credentials=G.credentials||this.credentials||"same-origin",!G.headers&&this.headers||(this.headers=new v(G.headers)),this.method=(J=G.method||this.method||"GET",U=J.toUpperCase(),-1<O.indexOf(U)?U:J),this.mode=G.mode||this.mode||null,this.signal=G.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(D),this.method!=="GET"&&this.method!=="HEAD"||G.cache!=="no-store"&&G.cache!=="no-cache"||((U=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(U,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime())}function L(J){var G=new FormData;return J.trim().split("&").forEach(function(U){var D;U&&(D=(U=U.split("=")).shift().replace(/\+/g," "),U=U.join("=").replace(/\+/g," "),G.append(decodeURIComponent(D),decodeURIComponent(U)))}),G}function M(J,G){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');G=G||{},this.type="default",this.status=G.status===void 0?200:G.status,this.ok=200<=this.status&&this.status<300,this.statusText=G.statusText===void 0?"":""+G.statusText,this.headers=new v(G.headers),this.url=G.url||"",this._initBody(J)}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})},w.call(I.prototype),w.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},M.error=function(){var J=new M(null,{status:0,statusText:""});return J.type="error",J};var A=[301,302,303,307,308];M.redirect=function(J,G){if(A.indexOf(G)===-1)throw new RangeError("Invalid status code");return new M(null,{status:G,headers:{location:J}})},s.DOMException=l.DOMException;try{new s.DOMException}catch{s.DOMException=function(G,U){this.message=G,this.name=U,U=Error(G),this.stack=U.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function k(J,G){return new Promise(function(U,D){var W=new I(J,G);if(W.signal&&W.signal.aborted)return D(new s.DOMException("Aborted","AbortError"));var Q=new XMLHttpRequest;function E(){Q.abort()}Q.onload=function(){var B,$,C={status:Q.status,statusText:Q.statusText,headers:(B=Q.getAllResponseHeaders()||"",$=new v,B.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(Y){return Y.indexOf(`
|
|
138
|
+
`)===0?Y.substr(1,Y.length):Y}).forEach(function(tt){var tt=tt.split(":"),F=tt.shift().trim();F&&(tt=tt.join(":").trim(),$.append(F,tt))}),$)},N=(C.url="responseURL"in Q?Q.responseURL:C.headers.get("X-Request-URL"),"response"in Q?Q.response:Q.responseText);setTimeout(function(){U(new M(N,C))},0)},Q.onerror=function(){setTimeout(function(){D(new TypeError("Network request failed"))},0)},Q.ontimeout=function(){setTimeout(function(){D(new TypeError("Network request failed"))},0)},Q.onabort=function(){setTimeout(function(){D(new s.DOMException("Aborted","AbortError"))},0)},Q.open(W.method,function(B){try{return B===""&&l.location.href?l.location.href:B}catch{return B}}(W.url),!0),W.credentials==="include"?Q.withCredentials=!0:W.credentials==="omit"&&(Q.withCredentials=!1),"responseType"in Q&&(d?Q.responseType="blob":f&&W.headers.get("Content-Type")&&W.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Q.responseType="arraybuffer")),!G||typeof G.headers!="object"||G.headers instanceof v?W.headers.forEach(function(B,$){Q.setRequestHeader($,B)}):Object.getOwnPropertyNames(G.headers).forEach(function(B){Q.setRequestHeader(B,m(G.headers[B]))}),W.signal&&(W.signal.addEventListener("abort",E),Q.onreadystatechange=function(){Q.readyState===4&&W.signal.removeEventListener("abort",E)}),Q.send(W._bodyInit===void 0?null:W._bodyInit)})}k.polyfill=!0,l.fetch||(l.fetch=k,l.Headers=v,l.Request=I,l.Response=M),s.Headers=v,s.Request=I,s.Response=M,s.fetch=k,Object.defineProperty(s,"__esModule",{value:!0})}(typeof t=="object"&&a!==void 0?t:e.WHATWGFetch={})},{}],194:[function(o,a,t){function e(c){var d=c.currentRteId,u=c.cid,f=r(c);if(f)return(f=new f).init&&(f.init(c),"[codox][".concat(u,"][").concat(d,"][init] after init app adapter")),n(f,c),f;throw new Error("[codox][".concat(u,"][").concat(d,"]app adapter not initialized for ").concat(c.app))}var s=o("@babel/runtime/helpers/interopRequireDefault"),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.initAdapter=t.default=void 0,o("./adapters/config"),s(o("./sentry")),o("./adapters")),r=(t.initAdapter=e,function(c){return l(c)}),l=function(c){var d=c.app,u=c.cid,f=c.currentRteId;switch(d){case"tinymce":return i.Tiny;case"froala":return i.Fr;case"quilljs":return i.Qjs;case"text":return i.Textarea;case"codemirror":return i.Cm;default:throw new Error("[codox][".concat(u,"][").concat(f,"]unrecongized API: ").concat(d))}},n=function(c,d){try{var u=d.currentRteId,f=d.cid,g=c.getDocument&&c.getDocument()||document;if("[codox][".concat(f,"][").concat(u,"][validateDOM] root dom: "),!g)throw new Error("Cannot find editor root element");var m=c.findUIParent(g),h=("[codox][".concat(f,"][").concat(u,"][validateDOM] uiParent: "),c.findEditorParent(g)),v=("[codox][".concat(f,"][").concat(u,"][validateDOM] editorParent: "),h&&c.findEditor(h));if("[codox][".concat(f,"][").concat(u,"][validateDOM] editor: "),!m)throw new Error("Cannot find UI parent");if(!h)throw new Error("Cannot find editor parent ");if(!v)throw new Error("Cannot find editor")}catch(b){throw console.error(b),new Error("DOM validation failed: ".concat(b.message))}};t.default={initAdapter:e}},{"./adapters":208,"./adapters/config":207,"./sentry":251,"@babel/runtime/helpers/interopRequireDefault":13}],195:[function(o,a,t){(function(e){(function(){var Y=o("@babel/runtime/helpers/interopRequireDefault"),s=o("@babel/runtime/helpers/typeof"),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,Y(o("@babel/runtime/regenerator"))),r=Y(o("@babel/runtime/helpers/asyncToGenerator")),l=Y(o("@babel/runtime/helpers/classCallCheck")),n=Y(o("@babel/runtime/helpers/createClass")),c=Y(o("@babel/runtime/helpers/defineProperty")),d=Y(o("uuid")),u=o("./adapters/config"),f=function(F,z){if(!z&&F&&F.__esModule)return F;if(F===null||s(F)!=="object"&&typeof F!="function")return{default:F};if(z=I(z),z&&z.has(F))return z.get(F);var P,j={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(P in F){var K;P!=="default"&&Object.prototype.hasOwnProperty.call(F,P)&&((K=V?Object.getOwnPropertyDescriptor(F,P):null)&&(K.get||K.set)?Object.defineProperty(j,P,K):j[P]=F[P])}return j.default=F,z&&z.set(F,j),j}(o("./actions")),g=o("./lib"),m=Y(o("./sentry")),h=o("./constants"),v=Y(o("./services/RTEService")),b=o("./services/errors"),_=Y(o("./enver")),R=o("./AdapterFactory"),x=o("./ContainerManager"),w=o("./access/AccessPermissions"),O=o("./lib/validation");function I(F){if(typeof WeakMap!="function")return null;var z=new WeakMap,P=new WeakMap;return(I=function(j){return j?P:z})(F)}function L(F,z){var P,j=Object.keys(F);return Object.getOwnPropertySymbols&&(P=Object.getOwnPropertySymbols(F),z&&(P=P.filter(function(V){return Object.getOwnPropertyDescriptor(F,V).enumerable})),j.push.apply(j,P)),j}function M(F){for(var z=1;z<arguments.length;z++){var P=arguments[z]!=null?arguments[z]:{};z%2?L(Object(P),!0).forEach(function(j){(0,c.default)(F,j,P[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(P)):L(Object(P)).forEach(function(j){Object.defineProperty(F,j,Object.getOwnPropertyDescriptor(P,j))})}return F}var A,k,J,G,U,D,W=g.utils.clearProperty,Q=g.utils.parseAndValidate,E=g.utils.pause,B=g.utils.getContentLengthInBytes,$=null,C=(e.env.JEST_TEST||($=o("webworkify")(o("./worker").default)),1e5),N=(e.env.TEST&&(C=2),500),Y=(_.default.isStagingCU&&(N=100),(0,n.default)(tt,[{key:"setState",value:function(F){this.clientState!=="STOPPED"&&this.getState()!==F&&(m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"][setState] from ").concat(this.clientState," to ").concat(F)),this.clientState=F)}},{key:"getState",value:function(){return this.clientState}},{key:"canInit",value:function(){return this.clientState==="INITED"||this.clientState==="INIT"||this.clientState==="STOPPED"||this.clientState==="NETWORK_OFF"}},{key:"canStart",value:function(){return this.clientState!=="STARTED"}},{key:"isStarted",value:function(){return this.clientState==="STARTED"}},{key:"isStopped",value:function(){return this.clientState==="NETWORK_OFF"||this.clientState==="STOPPED"}},{key:"startHealthMonitor",value:function(){$&&($.addEventListener("message",this.hb),$.postMessage(["start",this.cid,1e3]))}},{key:"stopHealthMonitor",value:function(){$&&($.postMessage(["stop",this.cid]),$.removeEventListener("message",this.hb))}},{key:"handleOffline",value:function(){"[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") handleOffline invoked"),this.setState("NETWORK_OFF"),this.appAdapter.disableEditor(),this.rteService&&(m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") stop() calling rteService.stop()")),this.rteService.stop()),m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") stop() calling this.cleanup()")),this.cleanup(this.currentRteId)}},{key:"addNetworkOfflineHandler",value:function(){window.removeEventListener("offline",this.networkOfflineHandler),window.addEventListener("offline",this.networkOfflineHandler)}},{key:"initState",value:function(F){var j=F.app,z=F.docId,V=F.user,j=u.adapterConfig[j],P=j.domainType,j=j.appType,V=Object.assign({},V);return{session:{cid:this.cid,docId:z,app:j,domainType:P},user:V,config:{domain:F.domain,apiKey:F.apiKey,app:F.app},ui:{showSessionInfo:F.showUI,showRemoteCursor:F.showCursor,cursorAlwaysOn:F.cursorAlwaysOn,showRemotePointer:F.showPointer,avatars:F.avatars,pointers:F.pointers}}}},{key:"initStore",value:function(){var F=this.initState(this.waveConfig);f.init({id:this.currentRteId,data:F})}},{key:"preEmit",value:function(F){var z=this.waveConfig.hooks;if(z){var P=z.contentChanged,j=z.setContent,V=z.usersUpdate;switch(F.type){case"content_changed":if(P)return P(F.data);break;case"set_content":if(j)return j(F.data);break;case"users_update":if(V)return V(F.data)}}}},{key:"rteStart",value:(D=(0,r.default)(i.default.mark(function F(){return i.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(z.prev=0,this.isStopped())return _.default.isProd||"[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") [rteStart] codox stopped before rteStart is called!"),z.abrupt("return");z.next=4;break;case 4:return m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,")[rteStart] invoke rteService.start")),z.next=7,this.rteService.start();case 7:return this.session=z.sent,this.isStopped()||m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") session connected")),z.abrupt("return",this.session);case 12:throw z.prev=12,z.t0=z.catch(0),_.default.isProd||console.error(z.t0),z.t0;case 16:case"end":return z.stop()}},F,this,[[0,12]])})),function(){return D.apply(this,arguments)})},{key:"setContext",value:function(F){var z=this,P=F.docId,j=window&&window.location&&window.location.href;m.default.configureScope(function(V){V.setTag("docId",P),V.setTag("this.cid",z.cid),V.setTag("uri",j)})}},{key:"isError",value:function(F){return F&&F.stack&&F.message&&typeof F.stack=="string"&&typeof F.message=="string"}},{key:"promiseWithTimeout",value:function(F,z,P){var j,V=new Promise(function(K,rt){j=setTimeout(function(){rt(new Error(P))},F)});return Promise.race([z(),V]).then(function(K){return clearTimeout(j),K})}},{key:"fetchDocWithRetry",value:(U=(0,r.default)(i.default.mark(function F(){var z,P,j,V,K,rt;return i.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(P=z=null,V=this.waveConfig,j=V.app,V=V.hooks,V=V&&V.fetchDocOnNetworkReconnect){T.next=7;break}throw P=new Error("fetchDocOnNetworkReconnect is undefined");case 7:K=0;case 8:if(K<C)return rt=P=null,T.prev=11,T.next=14,E(N*(K+1));T.next=34;break;case 14:if(this.isStopped())throw new b.InvalidStateError("[fetchDocWithRetry][".concat(this.currentRteId,"](").concat(this.clientState,") Already in ").concat(this.clientState));T.next=16;break;case 16:return 0<K&&console.log("[codox] fetchDocWithRetry attempt: "+K),T.next=19,V();case 19:return rt=T.sent,z=Q(j,rt),T.abrupt("return",z);case 24:if(T.prev=24,T.t0=T.catch(11),(P=T.t0)instanceof b.InvalidStateError)throw m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,")[fetchDocOnNetworkReconnect] invalid state, message = ").concat(P.message)),P;T.next=30;break;case 30:P instanceof b.DocValidationError?(m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,")[fetchDocOnNetworkReconnect] parse failed, doc = ").concat(P.state)),console.error(P)):(m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,")[fetchDocOnNetworkReconnect] fetch failed")),P=new b.FetchError("fetchDocOnNetworkReconnect failed to return valid data, err:"+JSON.stringify(T.t0)));case 31:K++,T.next=8;break;case 34:throw P;case 35:case"end":return T.stop()}},F,this,[[11,24]])})),function(){return U.apply(this,arguments)})},{key:"fetchable",value:function(F){return!!_.default.isClickUp}},{key:"docFetch",value:(G=(0,r.default)(i.default.mark(function F(){var z,P,j,V,K,rt;return i.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(P=z=null,this.isStopped())throw new b.InvalidStateError("[docFetch] client in stopped state");T.next=4;break;case 4:if(V=this.waveConfig,rt=V.refetch,K=V.hooks,V.editorInstance,j=V.docId,V=V.permission,K=K&&K.fetchDocOnNetworkReconnect,(rt||this.fetchable(j))&&K)return this.appAdapter.disableEditor(),console.log("[codox] fetchDoc..."),T.prev=11,T.next=14,this.fetchDocWithRetry();T.next=25;break;case 14:(rt=T.sent)&&(z=rt.content,P=rt.timestamp,console.log("[codox] fetchDoc...",z,P)),T.next=23;break;case 18:throw T.prev=18,T.t0=T.catch(11),m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,")[docFetch] failed to fetch")),this.appAdapter.enableEditor(),T.t0;case 23:T.next=27;break;case 25:z=this.appAdapter.getContent(),P=this.waveConfig.timestamp;case 27:if(B(JSON.stringify(z)),h.THRESHOLD,V.level===w.PERMISSIONS_ENUM.WRITE?this.appAdapter&&this.appAdapter.enableEditor():this.appAdapter&&this.appAdapter.disableEditor(),this.isStopped())throw new b.InvalidStateError("[docFetch][".concat(this.currentRteId,"](").concat(this.clientState,") Already in ").concat(this.clientState));T.next=31;break;case 31:return T.abrupt("return",{initContent:z,timestamp:P});case 32:case"end":return T.stop()}},F,this,[[11,18]])})),function(){return G.apply(this,arguments)})},{key:"setAccess",value:function(F){if(this.isStopped())throw new b.InvalidStateError("[setAccess][".concat(this.currentRteId,"](").concat(this.clientState,") Already in ").concat(this.clientState),!0);F&&w.AccessPermissionValidator.validate(F)?(F===w.PERMISSIONS_ENUM.WRITE?this.appAdapter&&this.appAdapter.enableEditor():this.appAdapter&&this.appAdapter.disableEditor(),this.rteService.updatePermission({level:F})):this.appAdapter&&this.appAdapter.disableEditor()}},{key:"initAsync",value:(J=(0,r.default)(i.default.mark(function F(z){var P,j,V;return i.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(P=z.initContent,j=z.timestamp,m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,")[initAsync] called with this.currentRteId = ").concat(this.currentRteId,", timestamp = ").concat(j)),this.isStopped())throw new b.InvalidStateError("[initAsync][".concat(this.currentRteId,"](").concat(this.clientState,") Already in ").concat(this.clientState));K.next=4;break;case 4:if(K.prev=4,V=this.waveConfig&&this.waveConfig.timestamp,O.validateTimestamp.apply(this,[+j,+V,P]),P=this.appAdapter.getContent(),"[codox][".concat(this.cid,"][").concat(this.currentRteId,"]((").concat(this.clientState,") [initAsync] init content"),this.rteService.setInitContent(P),this.rteService.setAdapter(this.appAdapter),this.initStore(),this.UI.mount(this.currentRteId,this.appAdapter),this.rteService.isStarted()){K.next=16;break}return K.next=16,this.rteStart();case 16:if(this.isStopped())throw new b.InvalidStateError("[initAsync][".concat(this.currentRteId,"](").concat(this.clientState,") Already in ").concat(this.clientState));K.next=18;break;case 18:return"[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") client state ").concat(this.clientState),K.abrupt("return",P);case 22:throw K.prev=22,K.t0=K.catch(4),_.default.isProd||console.error(K.t0),m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") initAsync() encountered error code=").concat(K.t0.code," message=").concat(K.t0.message,", calling this.cleanup()")),this.rteService&&(m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") initAsync() calling rteService.stop()")),this.rteService.stop()),this.cleanup(this.currentRteId),K.t0;case 29:case"end":return K.stop()}},F,this,[[4,22]])})),function(F){return J.apply(this,arguments)})},{key:"initCodox",value:function(F){navigator.onLine?(this.UI=new x.ContainerManager(this.waveConfig),this.appAdapter=(0,R.initAdapter)(Object.assign({},this.waveConfig,this.UI.config())),this.addNetworkOfflineHandler(),this.setContext(F),this.rteService=new v.default(M(M({},this.waveConfig),{},{cid:this.cid,emitEvent:this._emitEvent,cleanup:this.cleanup,forcePermissionUpdate:this.updatePermission.bind(this),rteId:this.currentRteId,prevRteId:this.prevRteId})),this.setState("INITED")):this.setState("NETWORK_OFF")}},{key:"launchCollab",value:(k=(0,r.default)(i.default.mark(function F(){var z=this;return i.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",this.docFetch().then(function(j){return z.initAsync(j)}).then(function(j){return z.setState("STARTED"),Promise.resolve(j)}));case 1:case"end":return P.stop()}},F,this)})),function(){return k.apply(this,arguments)})},{key:"startCodox",value:function(){var F=this;if(navigator.onLine)return this.launchCollab().catch(function(z){if(m.default.log("[codox][".concat(F.cid,"][").concat(F.currentRteId,"](").concat(F.clientState,")[startCodox] ").concat(z.code," ").concat(z.message)),F.isStopped(),!(z instanceof b.InvalidStateError)&&z.code!=504&&z.code!==5)throw z}).catch(function(z){return m.default.captureException(z),F.stopHealthMonitor(),F.setState("STOPPED"),z instanceof b.FetchError?F._emitEvent({type:"error",data:{message:"fetch_on_reconnect_failure"}}):z instanceof b.DocValidationError?F._emitEvent({type:"error",data:{message:"doc_validation_error",content:z.content}}):(z.code!==b.RETRY_STOPPED&&z.code!==b.SOCKET_FAILURE&&F._emitEvent({type:"error",data:z}),Promise.reject(z))});this.setState("NETWORK_OFF")}},{key:"init",value:function(){this.prevRteId=this.waveConfig.prevRteId,this.currentRteId=this.waveConfig.currentRteId,console.log("[codox][".concat(this.cid,"] config:"),this.waveConfig);try{this.canInit()&&this.initCodox(this.waveConfig)}catch(F){return this.stopHealthMonitor(),F.sentryDisabled||m.default.captureException(F),this.setState("STOPPED"),Promise.reject(F)}}},{key:"start",value:function(){try{if(this.canStart())return this.startCodox()}catch(F){return this.setState("STOPPED"),Promise.reject(F)}}},{key:"stop",value:function(){var F=0<arguments.length&&arguments[0]!==void 0&&arguments[0],z=1<arguments.length&&arguments[1]!==void 0&&arguments[1];this.setState("STOPPED"),m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") stop() api invoked")),this.clientState!=="INIT"&&("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") codox.stop() invoked"),this.rteService&&(m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") stop() calling rteService.stop()")),this.rteService.stop()),m.default.log("[codox][".concat(this.cid,"][").concat(this.currentRteId,"](").concat(this.clientState,") stop() calling this.cleanup()")),this.cleanup(this.currentRteId,F,z),window.removeEventListener("offline",this.networkOfflineHandler))}},{key:"forceSync",value:function(){if(this.isStopped())throw new b.InvalidStateError("[forceSync][".concat(this.currentRteId,"](").concat(this.clientState,") Already in ").concat(this.clientState));for(var F=arguments.length,z=new Array(F),P=0;P<F;P++)z[P]=arguments[P];var j=z[0];z.slice(1),this.rteService&&((0,O.validateForceSyncArgs)(j,this.waveConfig.app),(j=this.rteService).forceSync.apply(j,z))}},{key:"updateVersion",value:function(){if(this.isStopped())throw new b.InvalidStateError("[updateVersion][".concat(this.currentRteId,"](").concat(this.clientState,") Already in ").concat(this.clientState));var F;this.rteService&&(F=this.rteService).updateVersion.apply(F,arguments)}},{key:"awarenessRepaint",value:function(){if(this.isStopped())throw new b.InvalidStateError("[updateVersion][".concat(this.currentRteId,"](").concat(this.clientState,") Already in ").concat(this.clientState));var F;this.rteService&&(F=this.rteService).awarenessRepaint.apply(F,arguments)}},{key:"updatePermission",value:(A=(0,r.default)(i.default.mark(function F(){var z;return i.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return z=this.waveConfig.enforceAccess,console.log("updatePermission right here"),P.abrupt("return",z(this.waveConfig));case 3:case"end":return P.stop()}},F,this)})),function(){return A.apply(this,arguments)})}]),tt);function tt(F){var z=this;(0,l.default)(this,tt),(0,c.default)(this,"networkOfflineHandler",function(){z.clientState!=="STOPPED"&&(m.default.log("[codox][".concat(z.cid,"][").concat(z.currentRteId,"](").concat(z.clientState,") offline, stopping...")),z.handleOffline())}),(0,c.default)(this,"hb",function(P){if(P&&P.data&&(P.data[0],P.data[1]===z.cid)){if(P=Date.now(),2e4<P-z.selfHB)return console.log("[codox][".concat(z.cid,"][").concat(z.currentRteId,"](").concat(z.clientState,") health "),P),z.stop(!0,!0);z.selfHB=P}}),(0,c.default)(this,"customOfflineHandler",function(){z.clientState!=="STARTED"&&z._emitEvent({type:"content_changed",data:{source:"local"}})}),(0,c.default)(this,"addOfflineCustom",function(){z.waveConfig&&z.waveConfig.editorInstance&&z.waveConfig.app==="froala"&&(z.waveConfig.editorInstance.$el.off("froalaEditor.contentChanged"),z.waveConfig.editorInstance.$el.on("froalaEditor.contentChanged",z.customOfflineHandler))}),(0,c.default)(this,"cleanup",function(P){var j=1<arguments.length&&arguments[1]!==void 0&&arguments[1],V=2<arguments.length&&arguments[2]!==void 0&&arguments[2];"[codox][".concat(z.cid,"](").concat(z.clientState,") [cleanup] "),m.default.log("[codox][".concat(z.cid,"][").concat(P,"](").concat(z.clientState,") this.cleanup() called rte/threadId = ").concat(P,", restart = ").concat(j,", refetch=").concat(V)),z.setState("STOPPED"),z.stopHealthMonitor(),f.cleanup({id:P});try{z.appAdapter&&z.appAdapter.reset&&(m.default.log("[codox][".concat(z.cid,"][").concat(P,"](").concat(z.clientState,") this.cleanup() resetting appAdapter ")),z.appAdapter.reset(),W(z.appAdapter))}catch(K){m.default.captureException(K)}if("[codox][".concat(z.cid,"](").concat(z.clientState,") [cleanup] clean state"),delete z.appAdapter,delete z.rteService,z.currentRteId===P){try{"[codox][".concat(z.cid,"][").concat(P,"](").concat(z.clientState,") this.cleanup() resetting Store state"),f.reset({id:P}),"[codox][".concat(z.cid,"][").concat(P,"](").concat(z.clientState,") [cleanup] remove DOM: "),z.UI&&z.UI.unmount(),delete z.UI}catch(K){m.default.captureException(K)}if(j)return m.default.log("[codox][".concat(z.cid,"][").concat(P,"](").concat(z.clientState,") this.cleanup() calling restart")),j=Object.assign({},z.waveConfig),V&&(j.refetch=!0),z.waveConfig.restartHandler(j)}else m.default.error("[codox][".concat(z.cid,"][").concat(P,"](").concat(z.clientState,") this.cleanup() called by thread/rte ").concat(P," ignored. activeRTE ").concat(z.currentRteId))}),(0,c.default)(this,"_emitEvent",function(P){"[codox][".concat(z.cid,"][").concat(z.currentRteId,"](").concat(z.clientState,") [emitEvent]");var j=P.type,V=P.data;z.preEmit(P),z.waveConfig.emitter.emit(j,V)}),this.cid=d.default.v4(),this.waveConfig=F,this.waveConfig.cid=this.cid,this.currentRteId=-1,this.prevRteId=-1,this.appAdapter=null,this.rteService=null,this.UI=null,this.clientState="INIT",this.selfHB=Date.now(),this.startHealthMonitor()}t.default=Y}).call(this)}).call(this,o("_process"))},{"./AdapterFactory":194,"./ContainerManager":197,"./access/AccessPermissions":199,"./actions":201,"./adapters/config":207,"./constants":237,"./enver":239,"./lib":242,"./lib/validation":245,"./sentry":251,"./services/RTEService":252,"./services/errors":254,"./worker":259,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":22,"@babel/runtime/regenerator":25,_process:149,uuid:187,webworkify:192}],196:[function(o,a,t){function e(b){throw b?new Error(b):new Error("[throwError function] please provide a message")}function s(b){if(!b)throw new Error("[showWarning function] please provide a message")}var i=o("@babel/runtime/helpers/interopRequireDefault"),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.validateHooks=t.validateConfig=t.throwError=t.showWarning=t.normalizeConfig=void 0,i(o("@babel/runtime/helpers/typeof"))),l=o("./lib"),n=o("./constants"),c=i(o("./sentry")),d=i(o("./enver")),u=o("./access/AccessPermissions"),f=l.utils.isString,g=l.utils.isStringOrNumber,m=l.utils.isNullOrWhitespace,h=l.utils.isFunction,v=(t.throwError=e,t.showWarning=s,t.validateConfig=function(b){b||e("A configuration JSON object is needed to initialize Codox. See Codox.init() and Codox.start()");var _=b.app,R=b.docId,x=b.user,w=b.username,O=b.apiKey,I=b.hooks,L=b.language,M=(b.token,b.permission),A=b.editor,k=b.editorInstance,J=(b.session,n.Integrations.integrations);if(typeof O!="string"||m(b.apiKey)){if(d.default.isClickUp||d.default.isStagingDsm)return void(b.apiKey="8b1e21f3-6534-4877-9090-dbb9e61993eb");e("You need to specify a valid 'apiKey' in Codox config")}return[{notValid:function(){return!f(_)||m(_)||!J.find(function(G){return G===_})},msg:"You need to specify a valid 'app' attribute in Codox config."},{notValid:function(){return!g(R)||m(R)},msg:"You need to specify a 'docId' attribute in Codox config"},{notValid:function(){return!w&&!x},msg:"Codox config requires a 'user' attribute"},{notValid:function(){return!w&&x&&!x.name&&!x.email},msg:"Codox config requires a 'user.name' or 'user.email' attribute"},{notValid:function(){return(M==null?void 0:M.interval)&&typeof M.interval!="number"},msg:"interval must be a number"},{notValid:function(){return(M==null?void 0:M.token)&&typeof M.token!="string"},msg:"token must be a string"},{notValid:function(){return(M==null?void 0:M.url)&&typeof M.url!="string"},msg:"url must be a string"},{notValid:function(){return(M==null?void 0:M.token)&&!(I!=null&&I.fetchDocOnNetworkReconnect)},msg:"fetchDocOnNetworkReconnect is required for fetching access functionality"},{notValid:function(){return(M==null?void 0:M.token)&&!(M!=null&&M.url)},msg:"url is required for fetching access functionality"},{notValid:function(){return L&&typeof L!="string"},msg:"language must be a string"},{notValid:function(){return!1},msg:"Codox config requires a dispatch 'token' and 'session' object"},{notValid:function(){return!A&&!k},msg:"Codox config requires a reference to an editor instance"}].forEach(function(D){var U=D.notValid,D=D.msg;return U()&&e(D)}),v(I),[{notValid:function(){return(M==null?void 0:M.url)&&!(M!=null&&M.token)},msg:"Error: an access url was provided without corresponding bear token"}].forEach(function(D){var U=D.notValid,D=D.msg;return U()&&s(D)}),!0},function(b){if(b&&((0,r.default)(b)!=="object"||Array.isArray(b)))e("hooks must be object data type");else for(var _ in b){var R;Object.prototype.hasOwnProperty.call(b,_)&&(R=b[_],{}.hasOwnProperty.call(b,_)&&!h(R)&&e("Hook callback for '".concat(_,"' is not a function")))}});t.validateHooks=v,t.normalizeConfig=function(b){var _=Object.assign({},b),M=_.user,M=M===void 0?{}:M,A=_.username,A=A===void 0?"":A,I=_.docId,I=I===void 0?"":I,R=_.editorInstance,R=R===void 0?null:R,x=_.editor,w=_.avatars,w=w===void 0?{}:w,O=_.pointers,O=O===void 0?{}:O,I=(_.docId=I.toString().trim(),_.autoStart=typeof _.autoStart!="boolean"||_.autoStart,_.showUI=typeof _.showUI!="boolean"||_.showUI,_.showCursor=typeof _.showCursor!="boolean"||_.showCursor,_.cursorAlwaysOn=typeof _.cursorAlwaysOn=="boolean"&&_.cursorAlwaysOn,_.showPointer=typeof _.showPointer=="boolean"&&_.showPointer,M.color),L=M.name,k=M.email,J=M.avatar,M=M.id,A=(_.user={},_.user.name=L?L.toString().trim():A?A.toString().trim():k?k.split("@")[0]:null,_.user.email=k?k.toString().trim():void 0,_.user.avatar=J?(L=J.toString())?decodeURI(L)==L&&decodeURIComponent(L)==L?encodeURI(L):L:null:void 0,_.user.id=M?M.toString().trim():void 0,_.user.color=I||void 0,!R&&x&&(_.editorInstance=_.editor),w.vertical),k=w.left,J=(_.avatars={},_.avatars.vertical=A||!1,_.avatars.left=k||!1,_.avatars.useGravatar=!1,O.shape);return _.pointers={},_.pointers.shape=J||"arrow",_.hooks=b.hooks||{},_.timestamp=b.timestamp||-1,_.permission=b.permission||{},_.permission.level=(L=b.permission)!=null&&L.token&&(M=b.permission)!=null&&M.url?u.PERMISSIONS_ENUM.NO_ACCESS:((I=b.permission)==null?void 0:I.level)||u.PERMISSIONS_ENUM.WRITE,_.permission.interval=((R=b.permission)==null?void 0:R.interval)||1e4,_.permission.url=((x=b.permission)==null?void 0:x.url)||"",_.checksum=Object.assign({},b.checksum),_.debug=b.debug||!d.default.isProd,c.default.setDebug(_.debug),_}},{"./access/AccessPermissions":199,"./constants":237,"./enver":239,"./lib":242,"./sentry":251,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":22}],197:[function(o,a,t){(function(e){(function(){var s=o("@babel/runtime/helpers/interopRequireDefault"),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerManager=m,t.default=void 0,s(o("@babel/runtime/helpers/defineProperty"))),r=s(o("react-dom")),l=s(o("react")),n=(s(o("uuid")),s(o("classnames"))),c=(s(o("./sentry")),o("./components")),d=s(o("./localization/LocalizationProvider.jsx")),u=s(o("./localization/localizations.js"));function f(h,v){var b,_=Object.keys(h);return Object.getOwnPropertySymbols&&(b=Object.getOwnPropertySymbols(h),v&&(b=b.filter(function(R){return Object.getOwnPropertyDescriptor(h,R).enumerable})),_.push.apply(_,b)),_}function g(h){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{};v%2?f(Object(b),!0).forEach(function(_){(0,i.default)(h,_,b[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(b)):f(Object(b)).forEach(function(_){Object.defineProperty(h,_,Object.getOwnPropertyDescriptor(b,_))})}return h}function m(h){var v=h.cid,b="codox-root-"+v,_="codox-container-"+v,R="codox-session-"+v,x="codox-carets-"+v,w="codox-awareness-"+v,O="codox-pointer-"+v,I="codox-notify-"+v,L="codox-session-notify-"+v,M="codox-swal-"+v;h.currentRteId,this.mount=function(A,k){var J,G,U,D;J=k,document.getElementById(b)||(U=h.avatars,(G=document.createElement("div")).id=b,G.className+="codox-styles",(D=document.createElement("div")).id=_,U=(0,n.default)("codox-container",{left:U.left}),D.className=U,G.appendChild(D),U=document.createElement("div"),D.appendChild(U),U.id=R,e.env.APP_BUILD&&((U=document.createElement("div")).className+="codox-notify",D.appendChild(U),U.id=I,(U=document.createElement("div")).className+="codox-session-notify",D.appendChild(U),U.id=L,(U=document.createElement("div")).id=M,D.appendChild(U)),typeof J.addRoot=="function"?J.addRoot(G):(D=J.getContainerParent())&&D.prepend(G)),r.default.render(l.default.createElement(d.default,{localizationObject:g(g({},u.default),{},{defaultLanguage:h.language})},l.default.createElement(c.SessionInfo,{appAdapter:k,rteId:A})),document.getElementById(R)),k.createAwarenessContainer&&r.default.render(l.default.createElement(c.Awareness,{appAdapter:k,rteId:A}),k.createAwarenessContainer(A)),k.createPointerContainer&&r.default.render(l.default.createElement(c.PointerLayer,{appAdapter:k,rteId:A}),k.createPointerContainer(A)),r.default.render(l.default.createElement(c.CaretLayer,{appAdapter:k,rteId:A}),k.createCaretContainer(A))},this.unmount=function(){var A=document.getElementById(R),A=(A&&r.default.unmountComponentAtNode(A),document.getElementById(I)),A=(A&&r.default.unmountComponentAtNode(A),document.getElementById(L)),A=(A&&r.default.unmountComponentAtNode(A),document.getElementById(M)),A=(A&&r.default.unmountComponentAtNode(A),document.getElementById(b)),A=(A&&A.remove(),document.getElementById(x)),A=(A&&(r.default.unmountComponentAtNode(A),A.remove()),document.getElementById(w)),A=(A&&(r.default.unmountComponentAtNode(A),A.remove()),document.getElementById(O));A&&(r.default.unmountComponentAtNode(A),A.remove())},this.config=function(){return{rootId:b,containerId:_,contentId:R,caretContainerId:x,awarenessContainerId:w,pointerContainerId:O,notifyId:I,swalId:M}}}t.default=m}).call(this)}).call(this,o("_process"))},{"./components":227,"./localization/LocalizationProvider.jsx":246,"./localization/localizations.js":248,"./sentry":251,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13,_process:149,classnames:136,react:171,"react-dom":164,uuid:187}],198:[function(o,a,t){var x=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,x(o("@babel/runtime/regenerator"))),s=x(o("@babel/runtime/helpers/defineProperty")),i=x(o("@babel/runtime/helpers/asyncToGenerator")),r=x(o("@babel/runtime/helpers/classCallCheck")),l=x(o("@babel/runtime/helpers/createClass")),n=x(o("@babel/runtime/helpers/inherits")),c=x(o("@babel/runtime/helpers/possibleConstructorReturn")),d=x(o("@babel/runtime/helpers/getPrototypeOf")),u=x(o("axios")),f=o("./AccessPermissions"),x=x(o("./AccessSettings"));function g(O,I){var L,M=Object.keys(O);return Object.getOwnPropertySymbols&&(L=Object.getOwnPropertySymbols(O),I&&(L=L.filter(function(A){return Object.getOwnPropertyDescriptor(O,A).enumerable})),M.push.apply(M,L)),M}function m(O){for(var I=1;I<arguments.length;I++){var L=arguments[I]!=null?arguments[I]:{};I%2?g(Object(L),!0).forEach(function(M){(0,s.default)(O,M,L[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(L)):g(Object(L)).forEach(function(M){Object.defineProperty(O,M,Object.getOwnPropertyDescriptor(L,M))})}return O}function h(O){var I=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,M=(0,d.default)(O);return L=I?(L=(0,d.default)(this).constructor,Reflect.construct(M,arguments,L)):M.apply(this,arguments),(0,c.default)(this,L)}}o=x.default,(0,n.default)(w,o),R=h(w),(0,l.default)(w,[{key:"_fetchCurrentAccess",value:(_=(0,i.default)(e.default.mark(function O(){var I,L,M;return e.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.prev=0,this.fetchAccessCancelToken&&this.fetchAccessCancelToken.cancel(),this.fetchAccessCancelToken=u.default.CancelToken.source(),I=this._currentFetchAccessParams.url,A.next=6,u.default.get(I,{headers:this._constructFetchAccessHeaders(),cancelToken:this.fetchAccessCancelToken.token});case 6:return I=A.sent,L=I.data,A.abrupt("return",L.permission);case 11:if(A.prev=11,A.t0=A.catch(0),u.default.isCancel(A.t0))return A.abrupt("return",this._currentAccess);A.next=15;break;case 15:if(L=A.t0.response,M=(L=L===void 0?{}:L).status,[400,401].includes(M))return A.abrupt("return",this._handleUnauthorizedAccess(A.t0));A.next=20;break;case 20:this._defaultHandleFetchAccessError(A.t0);case 21:case"end":return A.stop()}},O,this,[[0,11]])})),function(){return _.apply(this,arguments)})},{key:"updateCurrentFetchAccessParams",value:function(){var L=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},O=L.token,I=L.url,L=L.docId;this._currentFetchAccessParams=m(m(m({},this._currentFetchAccessParams),O&&{token:O}),!!I&&!!L&&{url:this._normalizeAccessUrl(I,L)})}},{key:"compareAndRedefineCurrentFetchAccessUrl",value:function(){var I=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},O=I.url,I=I.docId;this._currentFetchAccessParams.url!==this._normalizeAccessUrl(O,I)&&this.updateCurrentFetchAccessParams({url:O,docId:I})}},{key:"validateAccess",value:function(O){return f.AccessPermissionValidator.validate(O)}},{key:"isNoAccess",value:function(O){return f.AccessPermissionValidator.isNoAccess(O)}},{key:"checkCurrentAccess",value:(b=(0,i.default)(e.default.mark(function O(){var I;return e.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this._fetchCurrentAccess();case 2:return I=L.sent,this._lastAccess=this._currentAccess,this._currentAccess=I,I=this.validateAccess(this._currentAccess),L.abrupt("return",I);case 7:case"end":return L.stop()}},O,this)})),function(){return b.apply(this,arguments)})},{key:"enforceCurrentAccess",value:(v=(0,i.default)(e.default.mark(function O(){return e.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.checkCurrentAccess();case 2:return I.abrupt("return",{isSameAccess:this.currentAccess===this.lastAccess,lastAccess:this.lastAccess,newAccess:this.currentAccess});case 3:case"end":return I.stop()}},O,this)})),function(){return v.apply(this,arguments)})},{key:"updateLastAccess",value:function(O){this._lastAccess=O}},{key:"incrementFailedAccessAttempts",value:function(){this._attemptsCount++}},{key:"launchAccessCheckPing",value:function(O){var I,L,M=this,A=O.interval,k=O.callback;this._isFetchAccessPossible()&&(L=(0,i.default)(e.default.mark(function J(){return e.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(M._pingIntervalId&&M._isFetchAccessPossible()){G.next=2;break}return G.abrupt("return");case 2:return G.next=4,k();case 4:M._pingIntervalId=setTimeout(I,A);case 5:case"end":return G.stop()}},J)})),I=function(){return L.apply(this,arguments)},this.cleanUpAccessCheckPing(),this._pingIntervalId=setTimeout(I.bind(this),A))}},{key:"cleanUpAccessCheckPing",value:function(){this._pingIntervalId&&(clearTimeout(this._pingIntervalId),this._pingIntervalId=null)}},{key:"cleanupCurrentFetchAccess",value:function(){this.fetchAccessCancelToken&&this.fetchAccessCancelToken.cancel(),this.cleanUpAccessCheckPing(),this._lastAccess=null,this._currentAccess=f.PERMISSIONS_ENUM.NO_ACCESS,this._currentFetchAccessParams=m({},this._defaultFetchAccessParams)}}]);var v,b,_,R,x=w;function w(){var O;return(0,r.default)(this,w),(O=R.call(this)).fetchAccessCancelToken=null,O}t.default=x},{"./AccessPermissions":199,"./AccessSettings":200,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,"@babel/runtime/regenerator":25,axios:103}],199:[function(l,a,t){var i=l("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.PERMISSIONS_ENUM=t.AccessPermissionValidator=void 0,i(l("@babel/runtime/helpers/createClass"))),s=i(l("@babel/runtime/helpers/classCallCheck")),i=i(l("@babel/runtime/helpers/defineProperty")),r=(0,e.default)(function c(){(0,s.default)(this,c)}),l=(t.PERMISSIONS_ENUM=r,(0,i.default)(r,"READ","read"),(0,i.default)(r,"WRITE","write"),(0,i.default)(r,"COMMENT_ONLY","commentOnly"),(0,i.default)(r,"NO_ACCESS","no_access"),(0,e.default)(n,null,[{key:"validate",value:function(c){return n.validList.includes(c)}},{key:"isNoAccess",value:function(c){return c===r.NO_ACCESS}}]),n);function n(){(0,s.default)(this,n)}t.AccessPermissionValidator=l,(0,i.default)(l,"validList",[r.READ,r.WRITE,r.COMMENT_ONLY])},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13}],200:[function(v,a,t){var h=v("@babel/runtime/helpers/interopRequireDefault"),b=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,h(v("@babel/runtime/helpers/inherits"))),e=h(v("@babel/runtime/helpers/possibleConstructorReturn")),s=h(v("@babel/runtime/helpers/getPrototypeOf")),i=h(v("@babel/runtime/helpers/defineProperty")),r=h(v("@babel/runtime/helpers/classCallCheck")),l=h(v("@babel/runtime/helpers/createClass")),n=h(v("../enver")),c=v("./AccessPermissions"),d=v("../services/errors");function u(x){var w=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var O,I=(0,s.default)(x);return O=w?(O=(0,s.default)(this).constructor,Reflect.construct(I,arguments,O)):I.apply(this,arguments),(0,e.default)(this,O)}}function f(x,w){var O,I=Object.keys(x);return Object.getOwnPropertySymbols&&(O=Object.getOwnPropertySymbols(x),w&&(O=O.filter(function(L){return Object.getOwnPropertyDescriptor(x,L).enumerable})),I.push.apply(I,O)),I}function g(x){for(var w=1;w<arguments.length;w++){var O=arguments[w]!=null?arguments[w]:{};w%2?f(Object(O),!0).forEach(function(I){(0,i.default)(x,I,O[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(O)):f(Object(O)).forEach(function(I){Object.defineProperty(x,I,Object.getOwnPropertyDescriptor(O,I))})}return x}(0,l.default)(R,[{key:"currentAccess",get:function(){return this._currentAccess}},{key:"lastAccess",get:function(){return this._lastAccess}},{key:"_normalizeAccessUrl",value:function(){var x=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",w=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"";return x.endsWith(w)?x:"".concat(x,"/").concat(w)}},{key:"_constructFetchAccessHeaders",value:function(){return g({Authorization:"Bearer ".concat(this._currentFetchAccessParams.token)},n.default.isDev&&g({},this.EXTRA_HEADERS))}},{key:"_isFetchAccessPossible",value:function(){return!!this._currentFetchAccessParams.token&&!!this._currentFetchAccessParams.url}},{key:"_defaultHandleFetchAccessError",value:function(){var w=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},x=w.response,x=(x=x===void 0?{}:x).status,w=w.message;throw new d.FetchAccessError("Fetch access request failed",{status:x||w})}},{key:"_handleUnauthorizedAccess",value:function(x){return c.PERMISSIONS_ENUM.NO_ACCESS}}]);var m,h=R,v=((0,b.default)(_,h),m=u(_),(0,l.default)(_,[{key:"_handleUnauthorizedAccess",value:function(){var x=(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).response,x=(x===void 0?{}:x).data,x=(x===void 0?{}:x).ECODE;if((x===void 0?"":x).includes("JWT_047"))throw new d.FetchAccessError("Token is expired",{status:{tokenExpired:!0}});return c.PERMISSIONS_ENUM.NO_ACCESS}},{key:"_constructFetchAccessHeaders",value:function(){return g({Authorization:"Bearer ".concat(this._currentFetchAccessParams.token)},this.EXTRA_HEADERS)}}]),_),b=n.default.isClickUp?v:h;function _(){return(0,r.default)(this,_),m.call(this)}function R(){(0,r.default)(this,R),this.EXTRA_HEADERS={"x-partner":"codox","x-signature":"1234567890"},this._defaultFetchAccessParams={token:null,url:null},this._currentFetchAccessParams=g({},this._defaultFetchAccessParams),this._currentAccess=c.PERMISSIONS_ENUM.NO_ACCESS,this._lastAccess=null,this._pingIntervalId=null,this._attemptsCount=0}t.default=b},{"../enver":239,"../services/errors":254,"./AccessPermissions":199,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18}],201:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.viewResize=t.sessionSubscribeSuccess=t.sessionQuit=t.sessionMembersUpdate=t.sessionInfoVisibilityUpdate=t.sessionDispatchSuccess=t.sessionDispatch=t.reset=t.remotePointerVisibilityUpdate=t.remotePointerUpdate=t.remoteCursorVisibilityUpdate=t.remoteCursorUpdate=t.remoteCursorRepaint=t.networkOffline=t.init=t.cleanup=t.VIEW_RESIZE=t.SESSION_SUBSCRIBE_SUCCESS=t.SESSION_SUBSCRIBE_ERROR=t.SESSION_QUIT=t.SESSION_MEMBERS_UPDATE=t.SESSION_INFO_VISIBILITY_UPDATE=t.SESSION_DISPATCH_SUCCESS=t.SESSION_DISPATCH_REQUEST=t.SESSION_DISPATCH_ERROR=t.RESET=t.REMOTE_POINTER_VISIBILITY_UPDATE=t.REMOTE_POINTER_UPDATE=t.REMOTE_CURSOR_VISIBILITY_UPDATE=t.REMOTE_CURSOR_UPDATE=t.REMOTE_CURSOR_REPAINT=t.NETWORK_OFFLINE=t.INIT=t.CLEANUP=void 0,o("./../dispatchers/AppDispatcher.js")),i=e(o("./../services/SessionService")),r=(t.INIT="INIT",t.RESET="RESET","SESSION_DISPATCH_REQUEST"),l=(t.SESSION_DISPATCH_REQUEST=r,"SESSION_DISPATCH_SUCCESS"),n=(t.SESSION_DISPATCH_SUCCESS=l,"SESSION_DISPATCH_ERROR"),c=(t.SESSION_DISPATCH_ERROR=n,"SESSION_SUBSCRIBE_SUCCESS"),d=(t.SESSION_SUBSCRIBE_SUCCESS=c,t.SESSION_SUBSCRIBE_ERROR="SESSION_SUBSCRIBE_ERROR","SESSION_QUIT"),u=(t.SESSION_QUIT=d,"SESSION_MEMBERS_UPDATE"),f=(t.SESSION_MEMBERS_UPDATE=u,"SESSION_INFO_VISIBILITY_UPDATE"),g=(t.SESSION_INFO_VISIBILITY_UPDATE=f,"REMOTE_CURSOR_UPDATE"),m=(t.REMOTE_CURSOR_UPDATE=g,"REMOTE_CURSOR_REPAINT"),h=(t.REMOTE_CURSOR_REPAINT=m,"REMOTE_CURSOR_VISIBILITY_UPDATE"),v=(t.REMOTE_CURSOR_VISIBILITY_UPDATE=h,"REMOTE_POINTER_UPDATE"),b=(t.REMOTE_POINTER_UPDATE=v,"REMOTE_POINTER_VISIBILITY_UPDATE"),_=(t.REMOTE_POINTER_VISIBILITY_UPDATE=b,t.CLEANUP="CLEANUP","NETWORK_OFFLINE"),R=(t.NETWORK_OFFLINE=_,"VIEW_RESIZE");t.VIEW_RESIZE=R,t.viewResize=function(){return(0,s.dispatch)(R)},t.networkOffline=function(x){return(0,s.dispatch)(_,x)},t.init=function(x){return(0,s.dispatch)("INIT",x)},t.reset=function(x){return(0,s.dispatch)("RESET",x)},t.remoteCursorUpdate=function(x){return(0,s.dispatch)(g,x)},t.remoteCursorRepaint=function(x){return(0,s.dispatch)(m,x)},t.remotePointerUpdate=function(x){return(0,s.dispatch)(v,x)},t.sessionSubscribeSuccess=function(x){(0,s.dispatch)(c,x)},t.sessionQuit=function(x){(0,s.dispatch)(d,x)},t.sessionMembersUpdate=function(x){(0,s.dispatch)(u,x)},t.sessionDispatch=function(x){var w=i.default.dispatch(x);(0,s.dispatchAsync)(w,{request:r,success:l,failure:n},x)},t.sessionDispatchSuccess=function(x){(0,s.dispatch)(l,x)},t.cleanup=function(x){(0,s.dispatch)("CLEANUP",x)},t.sessionInfoVisibilityUpdate=function(x){(0,s.dispatch)(f,x)},t.remoteCursorVisibilityUpdate=function(x){(0,s.dispatch)(h,x)},t.remotePointerVisibilityUpdate=function(x){return(0,s.dispatch)(b,x)}},{"./../dispatchers/AppDispatcher.js":238,"./../services/SessionService":253,"@babel/runtime/helpers/interopRequireDefault":13}],202:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Adapter=i;var e=o("./../permissions"),s=(o("./../lib/utils"),o("../actions"));function i(){this.setContent=function(r){return!1}}i.prototype.addCaretContainer=function(r){if(!r)throw new Error("Caret container not found");r.style.position="relative";var l=r.ownerDocument.createElement("div");return l.id=this.config.caretContainerId,l.className="codox-styles codox-caret-layer",this.caretContainer=l,r.appendChild(l),l},i.prototype.addAwarenessContainer=function(r){if(!r)throw new Error("Awareness container not found");r.style.position="relative";var l=r.ownerDocument.createElement("div");return l.id=this.config.awarenessContainerId,l.className="codox-styles codox-awareness-layer",r.appendChild(l),l},i.prototype.handleViewChange=function(){var r=this.config.cid;(0,s.remoteCursorRepaint)({id:r})},i.prototype.setPermission=function(r){this.config&&(this.config.permission=r),r==e.READ&&this.disableEditor(),r==e.WRITE&&this.enableEditor()},i.prototype.enableEditor=function(){return!1},i.prototype.disableEditor=function(){return!1},i.prototype.init=function(r,l){if(this.config=r,this.editorInstance=r.editorInstance,!this.editorInstance)throw new Error("Codox did not receive a valid editorinstance");l&&this.setContent(l)},i.prototype.findEditor=function(){var r=this.config.editorInstance;if(r)return r}},{"../actions":201,"./../lib/utils":244,"./../permissions":250}],203:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Cm=r,o("../actions");var e=o("@ctrl/tinycolor"),s=o("./../lib/utils"),i=o("./Adapter");function r(){var l=this;this.type="codemirror",this.classNames={},this.selections={},this.findEditorParent=function(){return this.config.editorInstance.getScrollerElement().parentNode},this.findUIParent=function(){return this.findEditorParent()},this.getContainerParent=function(){return this.findUIParent()},this.findNotificationParent=function(n){return document.body},this.findResizeParent=function(){return this.findEditorParent()},this.createCaretContainer=function(){var n=this.findResizeParent().getElementsByClassName("CodeMirror-lines")[0].parentNode;return this.addCaretContainer(n)},this.createAwarenessContainer=function(){var n=this.findResizeParent();return this.addAwarenessContainer(n)},this.attachEventListeners=function(n){var c=this.config,d=c.editorInstance;c.cid,d.on("scroll",this.handleViewChange.bind(this)),d.on("refresh",this.handleViewChange.bind(this))},this.getScrollDim=function(){return null},this.getCurrentVisibleRegion=function(){var n=this.config.editorInstance.getBoundingClientRect(),c=n.top,d=(n.left,n.bottom),u=(n.right,n.width);return n.height,{top:c,bottom:d,left:0,right:u}},this.boundsVisible=function(n){return!0},this.relativePositionToView=function(f,c){var d=this.config.editorInstance,u=f.start,f=(f.end,d.cursorCoords(u,"local"));return{left:f.left,right:f.right,bottom:f.bottom,top:f.top,height:f.bottom-f.top}},this.caretAdjustment=function(n){var c=n.left;return{top:n.top,left:c,height:n.height}},this.clearSelections=function(){if(this.selections)for(var n in this.selections)this.selections[n]&&this.selections[n].clear()},this.renderSelection=function(n,c,d){var u=this,f=this.config.editorInstance,g=(0,s.keyBy)(c,"siteId");JSON.stringify(g),n.forEach(function(x,h){var v=x.siteId,b=x.color;if(x.name,v===d)return!1;var _,R,x=g[v];x&&x.selection?(u.classNames[v]||(_="codox-selection-".concat(v),R=_,b=b,b=new e.TinyColor(b).setAlpha(.3).toRgbString(),R=".".concat(R," {background-color: ").concat(b,";}").trim(),(b=document.createElement("style")).innerText=R,document.head.appendChild(b),u.classNames[v]=_),u.selections[v]&&u.selections[v].clear(),b=(R=x.selection).start,_=R.end,x=u.classNames[v],b&&_&&(b=f.markText(b,_,{className:x}),u.selections[v]=b)):u.clearSelections()})},this.init=function(n,c){i.Adapter.prototype.init.call(this,n,c)},this.setContent=function(n){this.editorInstance.setValue(n)},this.getContent=function(){return this.editorInstance.getValue()},this.disableEditor=function(){l.editorInstance.options.readOnly=!0},this.enableEditor=function(){l.editorInstance.options.readOnly=!1},this.setEmpty=function(){l.editorInstance.setValue("")}}(0,s.extendClass)(r,i.Adapter)},{"../actions":201,"./../lib/utils":244,"./Adapter":202,"@ctrl/tinycolor":32}],204:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Fr=function(){function r(l,n){(0,e.remoteCursorRepaint)({id:l})}this.type="froala",this.froalaElem=null,this.findEditor=function(){return this.froalaElem},this.isContentEditable=function(l){return l&&(l.contentEditable==="true"||l.contentEditable==="plaintext-only")},this.findUIParent=function(){var l=this.froalaElem.closest(".fr-box");if(l)return l;throw new Error("[Froala] .fr-box element not found")},this.getContainerParent=function(){return this.findUIParent()},this.findNotificationParent=function(){return this.findUIParent()},this.findEditorParent=function(){return this.froalaElem.closest(".fr-wrapper")},this.findResizeParent=function(){return this.findEditorParent()},this.createCaretContainer=function(){var l=this.froalaElem.closest(".fr-wrapper");if(!l)throw new Error("[Froala] .fr-wrapper component not found");l.style.position="relative";var n=l.ownerDocument.createElement("div");return n.id=this.config.caretContainerId,n.className="codox-styles codox-caret-layer",this.caretContainer=n,l.appendChild(n),n},this.createPointerContainer=function(){var l=this.findResizeParent();if(!l)throw new Error("resize parent not found");l.style.position="relative";var n=l.ownerDocument.createElement("div");return n.id=this.config.pointerContainerId,n.className="codox-styles codox-pointer-layer",l.appendChild(n),n},this.relativePositionToView=function(l,n){if(l){if(!n)return l;var c=n.top,n=n.left,l=Object.assign({},l);return l.top-=c,l.bottom-=c,l.left-=n,l.right-=n,l}},this.getCurrentVisibleRegion=function(){var l=this.getViewBounds(),n=l.width;return{top:0,bottom:l.height,left:0,right:n}},this.getViewBounds=function(){return this.froalaElem.closest(".fr-wrapper").getBoundingClientRect()},this.getScrollDim=function(){var l=this.froalaElem.closest(".fr-wrapper"),n=l&&l.getBoundingClientRect();return{top:n&&n.top||0,bottom:n&&n.bottom||0,left:n&&n.left||0,right:n&&n.right||0,height:n&&n.height||0,width:n&&n.width||0,scrollTop:l&&l.scrollTop||0,scrollLeft:l&&l.scrollLeft||0}},this.createAwarenessContainer=function(){var l=this.froalaElem.closest(".fr-wrapper"),n=l.ownerDocument.createElement("div");return n.id=this.config.awarenessContainerId,n.className="codox-styles codox-awareness-layer",l.appendChild(n),this.awarenessContainer=n},this.boundsVisible=function(l){return!0},this.caretAdjustment=function(d){var n=d.left,c=d.top,d=d.lineHeight;return{top:c-d+2,left:n-1,height:1.1*d}},this.getDocument=function(){return this.froalaElem},this.showAwareness=function(){this.caretContainer&&(this.caretContainer.style.display="block"),this.awarenessContainer&&(this.awarenessContainer.style.display="block")},this.hideAwareness=function(){this.caretContainer&&(this.caretContainer.style.display="none"),this.awarenessContainer&&(this.awarenessContainer.style.display="none")},this.attachEventListeners=function(l){var n=this,d=this.config,c=d.editorInstance,d=d.cid,u=this.froalaElem.closest(".fr-wrapper");u&&u.addEventListener("scroll",r.bind(null,d)),c.events.on("commands.after",function(f,g){f=="html"&&(c.codeView.isActive()?l&&(l.i(),n.hideAwareness()):l&&(l.h(),n.showAwareness()))})},this.setPermission=function(l){this.config&&(this.config.permission=l),l==i.READ&&this.disableEditor(),l==i.WRITE&&this.enableEditor()},this.enableEditor=function(){this.config.editorInstance.edit.on()},this.disableEditor=function(){this.config.editorInstance.edit.off()},this.init=function(l,n){if(l=(this.config=l).editorInstance,l&&(l.placeholder,this.froalaElem=l.el),!this.froalaElem)throw new Error("[Froala] Did not receive a valid Froala editor instance. Have you instantiated a Froala editor?");n&&(l.el.innerHTML=n),this.froalaElem},this.getContent=function(){return this.froalaElem&&this.froalaElem.innerHTML},this.reset=function(){var l;this.config&&(0,s.clearProperty)(this.config),this.froalaElem&&(l=this.froalaElem.closest(".fr-wrapper"))&&l.removeEventListener("scroll",r)},this.setContent=function(l){var n=this.config.editorInstance;l&&n&&(n.el.innerHTML=l)},this.setEmpty=function(){var l=this.config.editorInstance;l&&(l.el.innerHTML="")}};var e=o("../actions"),s=o("../lib/utils"),i=o("./../permissions")},{"../actions":201,"../lib/utils":244,"./../permissions":250}],205:[function(o,a,t){function e(g,m){return!(!g||!g.retain||m&&g.retain!==m)}function s(g,m){return!(!g||!g.delete||m&&g.delete!==m)}var i=o("@babel/runtime/helpers/interopRequireDefault"),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.Qjs=function(){this.type="quilljs",this.findEditor=function(m){return this.findEditorDOM()},this.findUIParent=function(m){return m=(m=m||this.document).getElementsByClassName("ql-container"),m.length&&m[0].parentNode?m[0].parentNode:this.document},this.findNotificationParent=function(m){return this.findUIParent(this.getDocument())},this.getContainerParent=function(){return this.findUIParent(this.getDocument())},this.getDocument=function(){return this.document},this.attachEventListeners=function(m){var h,v=this.config.cid;(h=this.findEditorDOM())&&(h.onscroll=function(b){(0,r.remoteCursorRepaint)({id:v})})},this.findEditorParent=function(m){var h=this.config.editorInstance;if(h)return h.container;throw new Error("Editor instance is null")},this.findResizeParent=function(m){return this.findEditorParent(m)},this.creatVisualContainer=function(){var m=this.findResizeParent(this.document);if(!m)throw new Error("parent not found");m.style.position="relative";var h=m.ownerDocument.createElement("div");return h.id=this.config.visualContainerId,h.className="codox-styles",m.appendChild(h),h},this.createCaretContainer=function(){var m=this.findResizeParent(this.document);if(!m)throw new Error("Failed to create remote carets");m.style.position="relative";var h=m.ownerDocument.createElement("div");return h.id=this.config.caretContainerId,h.className="codox-styles codox-caret-layer",m.appendChild(h),h},this.findEditorDOM=function(){var m=this.config.editorInstance;if(m)return m.root;throw new Error("Editor instance is null")},this.getCurrentVisibleRegionRelativeToScroll=function(){var m=this.findEditorDOM();return m?{top:m.scrollTop,bottom:m.scrollTop+m.clientHeight,left:m.scrollLeft,right:m.scrollLeft+m.clientWidth,height:m.clientHeight,width:m.clientWidth}:null},this.boundsVisible=function(b){var h=b.top,v=b.left,b=b.bottom,_=this.getCurrentVisibleRegionRelativeToScroll();return!!_&&0<h&&h<=_.height&&0<=v&&v<=_.width&&b<=_.height},this.setPermission=function(m){this.config&&(this.config.permission=m),m==n.READ&&this.disableEditor(),m==n.WRITE&&this.enableEditor()},this.createAwarenessContainer=function(){var m=this.findResizeParent(this.document);if(!m)throw new Error("resize parent not found");m.style.position="relative";var h=m.ownerDocument.createElement("div");return h.id=this.config.awarenessContainerId,h.className="codox-styles codox-awareness-layer",m.appendChild(h),h},this.createPointerContainer=function(){var m=this.findResizeParent(this.document);if(!m)throw new Error("resize parent not found");m.style.position="relative";var h=m.ownerDocument.createElement("div");return h.id=this.config.pointerContainerId,h.className="codox-styles codox-pointer-layer",m.appendChild(h),h},this.caretAdjustment=function(m){return m=Object.assign({},m),m.left-=2,m},this.getScrollDim=function(){var m,h=this.findEditorDOM();return h?{top:(m=h&&h.getBoundingClientRect())&&m.top||0,bottom:m&&m.bottom||0,left:m&&m.left||0,right:m&&m.right||0,height:m&&m.height||0,width:m&&m.width||0,scrollTop:h.scrollTop,scrollLeft:h.scrollLeft}:{width:0,height:0,scrollTop:0,scrollLeft:0}},this.relativePositionToView=function(v,_){var v=Object.assign({},v),b=_.scrollTop,_=_.scrollLeft;return v.top-=b,v.bottom-=b,v.left-=_,v.right-=_,v},this.enableEditor=function(){var m=this.config.editorInstance;m&&Object.getPrototypeOf(m).enable.bind(m)(!0)},this.disableEditor=function(){var m=this.config.editorInstance;m&&Object.getPrototypeOf(m).enable.bind(m)(!1)},this.getContent=function(){var m=this.config.editorInstance;return m?m.getContents():null},this.setEmpty=function(){this.setContent({})},this.setContent=function(m){var h=this.config.editorInstance;if(h){var v=Object.getPrototypeOf(h).setContents.bind(h),h=h.getContents();if(h&&h.diff){var b=new h.constructor(m),h=h.diff(b);if(h&&h.ops&&h.ops.length&&!g(h))return console.log("[codox] update,",m,h),void v(m,"silent");console.log("[codox] there is no change to content, skip set")}}};var g=function(m){return m=m.ops,u(JSON.parse(JSON.stringify(m)))||f(JSON.parse(JSON.stringify(m)))};this.init=function(m,h){if(m=(this.config=m).editorInstance,console.log("[codox] local state ",m.getContents()),this.document=m&&m.container&&m.container.parentElement,!this.document)throw new c.SilentError("Wave did not receive a valid Quill instance. Have you instantiated a Quill editor?");if(h&&this.setContent(h),l.default.isClickUp){h=m;try{h&&(h.setContents=function(v,b){l.default.isProd||console.log("[codox] Quill setContents called",v)},h.enable=function(){l.default.isProd||console.log("[quill] Enable called")})}catch(v){console.error(v)}}},this.reset=function(){var m;(m=this.config.editorInstance).hasOwnProperty("setContents")&&delete m.setContents,m.hasOwnProperty("enable")&&delete m.enable,this.config.editorInstance=null,this.config.editor=null}},t.filterTaskMention=t.filterBookmark=void 0,o("../actions")),l=i(o("../enver")),n=o("./../permissions"),c=o("../services/errors"),d=function(g,m){return 2<arguments.length&&arguments[2]!==void 0&&!arguments[2]?!!g&&!!g.insert&&!!g.insert[m]:!(!g||!g.insert||m&&g.insert!==m)},u=function g(m){var h,v,b;return!(0<m.length)||(h=function(_,R){for(var x=0,w=1;w<_.length&&d(_[w],R,!1);w++)++x;return x}(m,"task_mention"),v=e(m[0])&&h&&s(m[h+1],h),b=d(m[0],"task_mention",!1)&&s(m[1],1),v?(m.splice(0,h+2),g(m)):!!b&&(m.splice(0,2),g(m)))},f=(t.filterTaskMention=u,function g(m){return!(0<m.length)||e(m[0])&&d(m[1],"bookmark",!1)&&s(m[2])&&(m.splice(0,3),g(m))});t.filterBookmark=f},{"../actions":201,"../enver":239,"../services/errors":254,"./../permissions":250,"@babel/runtime/helpers/interopRequireDefault":13}],206:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Tiny=function(){this.type="tinymce",this.init=function(r,l){if(this.config=Object.assign({},r),r=this.config.editorInstance,!r)throw new Error("TinyMCE editor instance is null");this.config.inline?this.document=r.getBody().parentNode:this.document=r.getContainer().parentNode,l&&r.setContent(l),this.document},this.setContent=function(r){var l=this.config.editorInstance;r&&l&&l.setContent(r)},this.setEmpty=function(){var r=this.config.editorInstance;r&&r.setContent("")},this.getDocument=function(){return this.document},this.addRoot=function(r){var l;this.config.editorInstance.settings.inline?(l=this.config.editorInstance.getBody()).parentNode.insertBefore(r,l):(l=this.findUIParent(this.document))&&l.parentNode.insertBefore(r,l)},this.attachEventListeners=function(r){var l=this.config,n=l.editorInstance,c=l.cid;(l=n.getBody())&&(l.onscroll=function(d){(0,e.remoteCursorRepaint)({id:c})})},this.findEditor=function(r){return this.config.editorInstance.getBody()},this.isContentEditable=function(r){return r},this.findUIParent=function(r){return this.config.inline?this.config.editorInstance.getBody().parentNode:this.config.editorInstance.getContainer()},this.getContainerParent=function(){return this.document},this.findNotificationParent=function(r){return this.document},this.findEditorParent=function(r){return this.config.inline,this.config.editorInstance.getBody().parentNode},this.findResizeParent=function(r){return this.config.inline?this.config.editorInstance.getContentAreaContainer().parentNode:this.config.editorInstance.getContentAreaContainer()},this.caretAdjustment=function(c){var l=c.left,n=c.top,c=c.lineHeight;return this.config.inline?{top:n,left:l,height:c}:{top:n+2,left:l,height:1.1*c}},this.relativePositionToView=function(r,l){if(r){if(!l)return r;var r=Object.assign({},r),n=l.scrollTop,l=l.scrollLeft;return r.top-=n,r.left-=l,r.right-=l,r.bottom-=n,r}},this.createCaretContainer=function(){var r=this.config,l=r.editorInstance,r=r.inline,l=l.getContentAreaContainer();if(!(l=r?l.parentNode:l))throw new Error("Failed to caret container parent");return l.style.position="relative",r=l.ownerDocument.createElement("div"),r.id=this.config.caretContainerId,r.className="codox-styles codox-caret-layer",(0,s.hideOverflow)(l),l.appendChild(r),this.caretContainer=r},this.createAwarenessContainer=function(){var l=this.config,r=l.inline,l=l.editorInstance.getContentAreaContainer();if(!(l=r?l.parentNode:l))throw new Error("Failed to caret container parent");return l.style.position="relative",r=l.ownerDocument.createElement("div"),r.id=this.config.awarenessContainerId,r.className="codox-styles codox-awareness-layer",l.appendChild(r),this.awarenessContainer=r},this.createPointerContainer=function(){var r=this.findResizeParent();if(!r)throw new Error("resize parent not found");r.style.position="relative";var l=r.ownerDocument.createElement("div");return l.id=this.config.pointerContainerId,l.className="codox-styles codox-pointer-layer",r.appendChild(l),l},this.getCurrentVisibleRegion=function(){var r=this.getViewBounds(),l=r.width;return{top:0,bottom:r.height,left:0,right:l}},this.getViewBounds=function(){return this.config.editorInstance.getContentAreaContainer().getBoundingClientRect()},this.setPermission=function(r){this.config&&(this.config.permission=r),r==i.READ&&this.disableEditor(),r==i.WRITE&&this.enableEditor()},this.enableEditor=function(){this.config.editorInstance.setMode("design")},this.disableEditor=function(){this.config.editorInstance.setMode("readonly")},this.getContent=function(){var r=this.config.editorInstance;return r&&r.getContent()},this.getScrollDim=function(){var r=this.config.editorInstance,r=r&&r.getBody();if(!r)return null;var r=(0,s.findScrollParent)(r),l=r&&r.getBoundingClientRect();return{top:l&&l.top||0,bottom:l&&l.bottom||0,left:l&&l.left||0,right:l&&l.right||0,height:l&&l.height||0,width:l&&l.width||0,scrollTop:r&&r.scrollTop||0,scrollLeft:r&&r.scrollLeft||0}},this.boundsVisible=function(r){return!0}};var e=o("../actions"),s=o("../lib/utils"),i=o("./../permissions")},{"../actions":201,"../lib/utils":244,"./../permissions":250}],207:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0});var e={zendesk:{uiAlert:!(t.default=t.adapterConfig=void 0),domainType:"zendesk",appType:"zendesk"},"wordpress-tinymce":{uiAlert:!0,domainType:"tinymce",appType:"wordpress"},"wordpress-ckeditor":{uiAlert:!0,domainType:"ckeditor",appType:"wordpress"},slate:{uiAlert:!1,domainType:"slate",appType:"slate"},tinymce:{uiAlert:!1,domainType:"tinymce",appType:"tinymce"},froala:{uiAlert:!1,domainType:"froala",appType:"froala"},quilljs:{uiAlert:!1,domainType:"quilljs",appType:"quilljs"},text:{uiAlert:!1,domainType:"text",appType:"text"},codemirror:{uiAlert:!1,domainType:"codemirror",appType:"codemirror"}},e={adapterConfig:t.adapterConfig=e};t.default=e},{}],208:[function(c,a,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Cm",{enumerable:!0,get:function(){return l.Cm}}),Object.defineProperty(t,"Fr",{enumerable:!0,get:function(){return r.Fr}}),Object.defineProperty(t,"Qjs",{enumerable:!0,get:function(){return i.Qjs}}),Object.defineProperty(t,"Textarea",{enumerable:!0,get:function(){return s.Textarea}}),Object.defineProperty(t,"Tiny",{enumerable:!0,get:function(){return e.Tiny}}),Object.defineProperty(t,"adapterConfig",{enumerable:!0,get:function(){return n.adapterConfig}}),t.default=void 0;var e=c("./TinyMCE"),s=c("./textarea"),i=c("./QuillJS"),r=c("./Froala"),l=c("./CM"),n=c("./config"),c={Tiny:e.Tiny,Textarea:s.Textarea,Qjs:i.Qjs,Fr:r.Fr,Cm:l.Cm,adapterConfig:n.adapterConfig};t.default=c},{"./CM":203,"./Froala":204,"./QuillJS":205,"./TinyMCE":206,"./config":207,"./textarea":209}],209:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Textarea=s;var e=o("./Adapter");function s(){var i=this;this.type="text",this.findEditor=function(){var r=this.config.editorInstance;if(r)return r},this.findEditorParent=function(){var r=this.config.editorInstance;if(r)return r.parentNode},this.findUIParent=function(){return this.findEditorParent()},this.getContainerParent=function(){return this.findUIParent()},this.findNotificationParent=function(r){return document.body},this.findResizeParent=function(){return this.findEditorParent()},this.createCaretContainer=function(){var r=this.findResizeParent();return this.addCaretContainer(r)},this.createAwarenessContainer=function(){var r=this.findResizeParent();return this.addAwarenessContainer(r)},this.attachEventListeners=function(r){var n=this.config,l=n.editorInstance,n=n.cid;l&&l.addEventListener("scroll",this.handleViewChange.bind(null,n))},this.getScrollDim=function(){var r=this.config.editorInstance,l=r.getBoundingClientRect();return{top:l&&l.top||0,bottom:l&&l.bottom||0,left:l&&l.left||0,right:l&&l.right||0,height:l&&l.height||0,width:l&&l.width||0,scrollTop:r.scrollTop||0,scrollLeft:r.scrollLeft||0}},this.getCurrentVisibleRegion=function(){var r=this.config.editorInstance.getBoundingClientRect(),l=r.top,n=(r.left,r.bottom),c=(r.right,r.width);return r.height,{top:l,bottom:n,left:0,right:c}},this.boundsVisible=function(u){var l=this.config.editorInstance.offsetParent.getBoundingClientRect(),n=u.top,c=u.left,d=u.bottom,u=(u.right,this.getCurrentVisibleRegion());return n>u.top-l.top&&d<u.bottom-l.top&&c>u.left&&c<u.right},this.relativePositionToView=function(r,l){var n=this.config.editorInstance;if(r){if(!l)return r;var c=l.scrollTop,l=l.scrollLeft,r=Object.assign({},r),n=n.offsetParent.getBoundingClientRect(),d=n.left,n=n.top;return r.top=r.top-c-n,r.bottom-=c,r.left+=l-d,r.right+=l-d,r}},this.caretAdjustment=function(r){var l=r.left;return{top:r.top,left:l-1,height:r.lineHeight}},this.disableEditor=function(){this.editorInstance.disabled=!0},this.enableEditor=function(){this.editorInstance.disabled=!1},this.init=function(r,l){e.Adapter.prototype.init.call(this,r,l)},this.setContent=function(r){this.editorInstance.value=r},this.getContent=function(){return this.editorInstance.value},this.setEmpty=function(){i.editorInstance.value=""}}(0,o("./../lib/utils").extendClass)(s,e.Adapter)},{"./../lib/utils":244,"./Adapter":202}],210:[function(o,a,t){(function(e){(function(){Object.defineProperty(t,"__esModule",{value:!0});var s=!(t.showBanner=function(){e.env.NODE_ENV==="development"||s||setTimeout(function(){console.group("Enjoy!"),console.log("Real-time coediting powered by Codox.io","version ".concat("2.5.2")),console.groupEnd(),s=!0},0)})}).call(this)}).call(this,o("_process"))},{_process:149}],211:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=o("@babel/runtime/helpers/typeof"),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.Codox=L,t.default=void 0,e(o("@babel/runtime/regenerator"))),r=e(o("@babel/runtime/helpers/asyncToGenerator")),l=e(o("@babel/runtime/helpers/defineProperty")),n=o("events"),c=e(o("uuid")),d=function(M,A){if(!A&&M&&M.__esModule)return M;if(M===null||s(M)!=="object"&&typeof M!="function")return{default:M};if(A=w(A),A&&A.has(M))return A.get(M);var k,J={},G=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(k in M){var U;k!=="default"&&Object.prototype.hasOwnProperty.call(M,k)&&((U=G?Object.getOwnPropertyDescriptor(M,k):null)&&(U.get||U.set)?Object.defineProperty(J,k,U):J[k]=M[k])}return J.default=M,A&&A.set(M,J),J}(o("./actions")),u=o("./lib"),f=e(o("./sentry")),g=e(o("./enver")),m=o("./ConfigValidator"),h=e(o("./Client")),v=o("./lib/validation"),b=o("./banner"),_=o("./services/errors"),R=e(o("./access/AccessLayer")),x=e(o("./codoxState/StateLayer"));function w(M){if(typeof WeakMap!="function")return null;var A=new WeakMap,k=new WeakMap;return(w=function(J){return J?k:A})(M)}function O(M,A){var k,J=Object.keys(M);return Object.getOwnPropertySymbols&&(k=Object.getOwnPropertySymbols(M),A&&(k=k.filter(function(G){return Object.getOwnPropertyDescriptor(M,G).enumerable})),J.push.apply(J,k)),J}function I(M){for(var A=1;A<arguments.length;A++){var k=arguments[A]!=null?arguments[A]:{};A%2?O(Object(k),!0).forEach(function(J){(0,l.default)(M,J,k[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(k)):O(Object(k)).forEach(function(J){Object.defineProperty(M,J,Object.getOwnPropertyDescriptor(k,J))})}return M}function L(){function M(N){N.prevRteId=E.currentRteId,E.incrementCurrentRteId(),N.currentRteId=E.currentRteId}function A(N){var Y=N.docId,tt=N.editor,F=new h.default(I(I({},N),{},{enforceAccess:B})),z=new R.default;E.createNewRecentStateEntity({client:F,config:N,accessLayer:z}),Y&&tt&&(f.default.log("[codox][".concat(E.currentRteId,"][register] start docId = ").concat(Y," editorId = ").concat(tt._id)),E.addEntityToGlobalState({id:tt._id,editor:tt,client:F,accessLayer:z}),f.default.log("[codox][".concat(E.currentRteId,"][register] out docId = ").concat(Y," editorId = ").concat(tt._id)))}function k(F,Y){var tt=(F=E.getStateEntityByRteId(F.currentRteId)).client,F=F.accessLayer;if(tt)return tt.init(),F.validateAccess(Y)?new Promise(function(z){z(tt.start())}).then(function(z){z&&tt.setAccess(Y)}):Promise.resolve()}function J(){f.default.log("[codox][".concat(E.currentRteId,"] back online, starting...")),E.recentStateEntity.config&&Q.start(I(I({},E.recentStateEntity.config),{},{refetch:!0}))}var G,U,D,W,Q=this,E=(n.EventEmitter.call(this),new x.default({exposeToGlobalScope:!g.default.isProd})),B=(u.utils.setTabId(),D=(0,r.default)(i.default.mark(function N(Y){var tt,F,z,P;return i.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return tt=Y.docId,F=Y.permission,z=Y.currentRteId,F=F.url,z=E.getStateEntityByRteId(z),(z=z.accessLayer).compareAndRedefineCurrentFetchAccessUrl({docId:tt,url:F}),j.prev=4,j.next=7,z.enforceCurrentAccess();case 7:if(tt=j.sent,F=tt.isSameAccess,z=tt.lastAccess,P=tt.newAccess,F){j.next=14;break}return j.next=14,$(P,z,Y);case 14:j.next=23;break;case 16:if(j.prev=16,j.t0=j.catch(4),j.t0 instanceof _.AccessValidationError)return P={name:j.t0.message,message:"access_validation_error",oldAccess:j.t0.content.oldAccess,newAccess:j.t0.content.newAccess},console.error(P),j.abrupt("return",Y.emitter.emit("error",P));j.next=22;break;case 22:j.t0 instanceof _.FetchAccessError&&Y.emitter.emit("error",{name:j.t0.message,status:j.t0.content.status,message:"fetch_access_error"});case 23:case"end":return j.stop()}},N,null,[[4,16]])})),function(N){return D.apply(this,arguments)}),$=(U=(0,r.default)(i.default.mark(function N(Y,tt,F){var z,P;return i.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(P=E.getStateEntityByRteId(F.currentRteId),z=P.client,P=P.accessLayer,F.emitter.emit("access_changed",{name:"access_changed",oldAccess:tt,newAccess:Y}),P.updateLastAccess(Y),!Y||!P.validateAccess(Y)){j.next=19;break}if(!z){j.next=16;break}if(j.t0=z.canInit(),j.t0)return j.next=9,z.init();j.next=9;break;case 9:if(j.t1=z.canStart(),j.t1)return j.next=13,z.start();j.next=13;break;case 13:z.isStarted()&&z.setAccess(Y),j.next=19;break;case 16:return A(F),j.next=19,k(F,Y);case 19:P.isNoAccess(Y)&&z&&(z.stop(),M(F));case 20:case"end":return j.stop()}},N)})),function(N,Y,tt){return U.apply(this,arguments)}),C=(G=(0,r.default)(i.default.mark(function N(Y){var tt,F,z,P,j,V,K,rt;return i.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(tt=Y.docId,j=Y.permission,F=Y.currentRteId,z=j.token,P=j.url,j=j.interval,K=E.getStateEntityByRteId(F),V=K.client,K=K.accessLayer,V&&K){T.next=5;break}return T.abrupt("return");case 5:return T.prev=5,K.updateCurrentFetchAccessParams({token:z,url:P,docId:tt}),T.next=9,K.checkCurrentAccess();case 9:if(rt=T.sent,E.noMatchedEntity(F))return T.abrupt("return");T.next=12;break;case 12:if(rt)return T.next=15,k(Y,K.currentAccess);T.next=15;break;case 15:T.next=20;break;case 17:T.prev=17,T.t0=T.catch(5),T.t0 instanceof _.FetchAccessError&&Q.emit("error",{name:T.t0.message,status:T.t0.content.status,message:"fetch_access_error"});case 20:if(E.noMatchedEntity(F))return T.abrupt("return");T.next=22;break;case 22:K&&K.launchAccessCheckPing({interval:j,callback:function(){var ot=(0,r.default)(i.default.mark(function at(){return i.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,B(Y);case 2:return q.abrupt("return",q.sent);case 3:case"end":return q.stop()}},at)}));return function(){return ot.apply(this,arguments)}}()});case 23:case"end":return T.stop()}},N,null,[[5,17]])})),function(N){return G.apply(this,arguments)});this.init=function(N){"[codox][".concat(E.currentRteId,"][cleanExistingClients] "),E.state,E.cleanupState({callback:function(){var K=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",rt=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},K=(f.default.log("[codox][".concat(E.currentRteId,"][cleanExistingClients] clean "),K),rt.client),rt=rt.accessLayer;K&&K.stop(),rt&&rt.cleanupCurrentFetchAccess()}});try{f.default.log("[codox][".concat(E.currentRteId,"][init] init() api invoked"),N),window.removeEventListener("online",J),window.addEventListener("online",J),(0,m.validateConfig)(N);var Y=(0,m.normalizeConfig)(N),tt=Y.editor,F=(j=Y.docId,V=tt,E.globalState,j&&V&&(f.default.log("[codox][".concat(E.currentRteId,"][uniq] start docId = ").concat(j," editorId = ").concat(V._id)),E.ensureGlobalStateUniques({id:V._id,callback:function(){var T=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},K=T.client,rt=T.editor,T=T.accessLayer;K&&(f.default.log("found existing mapping, cleaning up GlobalState ".concat(rt._id)),K.stop()),T&&T.cleanupCurrentFetchAccess(),rt&&(f.default.log("setting editor id to null"),rt._id=null)}})),tt._id||(tt._id=c.default.v4()),M(Y),Y.emitter=Q,Y.restartHandler=Q.restart,Y.permission),z=F.token,P=F.level;return A(Y),z?C(Y):k(Y,P)}catch(K){throw window.removeEventListener("online",J),K.sentryDisabled||f.default.captureException(K),K}var j,V},this.restart=function(N){f.default.log("[codox][".concat(E.currentRteId,"] restart() api invoked"));try{var Y,tt;if(N)return tt=(Y=E.recentStateEntity.config)===void 0?{}:Y,N.currentRteId!==tt.currentRteId||N.docId!==tt.docId?void 0:(N.autoStart=!0,Q.init(N))}catch(F){return f.default.captureException(F),Promise.reject(F)}},this.start=function(N){try{if(f.default.log("[codox][".concat(E.currentRteId,"] start() api invoked")),N)return N.autoStart=!0,Q.init(N);var Y=E.recentStateEntity,tt=Y.config,F=Y.client;return tt&&(0,m.validateConfig)(tt),F&&F.start()}catch(z){return f.default.captureException(z),Promise.reject(z)}},this.stop=function(){var N,Y,tt;f.default.log("[codox][".concat(E.currentRteId,"] stop() api invoked")),E.recentStateEntity&&(Y=(N=E.recentStateEntity).client,tt=N.config,(N=N.accessLayer)&&N.cleanupCurrentFetchAccess(),Y&&Y.stop.apply(Y,arguments),Y=(N=tt||{}).docId,tt=N.editor,Y&&tt&&(f.default.log("[codox][".concat(E.currentRteId,"][unregister] docId = ").concat(Y," editorId = ").concat(tt._id)),E.removeEntityFromGlobalState(tt._id),tt._id=null),g.default.isTestMode||E.cleanupState()),window.removeEventListener("online",J),this.removeAllListeners()},this.forceSync=function(){var N;E.recentStateEntity.client&&(N=E.recentStateEntity.client).forceSync.apply(N,arguments)},this.getState=function(){var N=E.recentStateEntity.client;return N?N.getState():{}},this.updateTimestamp=function(N){if(!N)throw new Error("timestamp cannot be null or undefined");E.recentStateEntity.client&&E.recentStateEntity.client.updateVersion(N)},this.updateToken=(W=(0,r.default)(i.default.mark(function N(Y){var tt,F;return i.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if((0,v.validateToken)(Y)){z.next=3;break}return f.default.log("[codox] [updateToken] token wasn't updated, please provide a valid token",Y),z.abrupt("return",Promise.reject(new Error("invalid token provided")));case 3:if(F=E.recentStateEntity,tt=F.config,(F=F.accessLayer)&&F.updateCurrentFetchAccessParams({token:Y}),z.t0=tt,z.t0)return z.next=9,B(tt);z.next=9;break;case 9:return z.abrupt("return",Promise.resolve());case 10:case"end":return z.stop()}},N)})),function(N){return W.apply(this,arguments)}),this.cursor={hide:function(){d.remoteCursorVisibilityUpdate({id:E.currentRteId,show:!1})},show:function(){d.remoteCursorVisibilityUpdate({id:E.currentRteId,show:!0})}},this.pointer={hide:function(){d.remotePointerVisibilityUpdate({id:E.currentRteId,show:!1})},show:function(){d.remotePointerVisibilityUpdate({id:E.currentRteId,show:!0})}},this.ui={hide:function(){d.sessionInfoVisibilityUpdate({id:E.currentRteId,show:!1})},show:function(){d.sessionInfoVisibilityUpdate({id:E.currentRteId,show:!0})}},this.awareness={repaint:function(){E.recentStateEntity.client.awarenessRepaint()}},this.setDebug=function(N){f.default.setDebug(N)},g.default.isTestMode&&(f.default.setDebug(!1),this.networkOnlineHandler=J,this.networkOfflineHandler=function(){var N=E.recentStateEntity.client;return N&&N.networkOfflineHandler()}),g.default.isJestTesting&&(this.testUtils={getGlobalMap:function(){return E.globalState},getStateMap:function(){return E.state},getCurrentRteId:function(){return E.currentRteId},getStateLayer:function(){return E}})}(0,u.polyfill)(),(0,b.showBanner)(),u.utils.extendClass(L,n.EventEmitter),window.Codox=L,t.default=L},{"./Client":195,"./ConfigValidator":196,"./access/AccessLayer":198,"./actions":201,"./banner":210,"./codoxState/StateLayer":214,"./enver":239,"./lib":242,"./lib/validation":245,"./sentry":251,"./services/errors":254,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":22,"@babel/runtime/regenerator":25,events:133,uuid:187}],212:[function(o,a,t){var i=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(o("@babel/runtime/helpers/defineProperty"))),s=i(o("@babel/runtime/helpers/classCallCheck")),i=i(o("@babel/runtime/helpers/createClass")),r=o("../lib/utils");function l(c,d){var u,f=Object.keys(c);return Object.getOwnPropertySymbols&&(u=Object.getOwnPropertySymbols(c),d&&(u=u.filter(function(g){return Object.getOwnPropertyDescriptor(c,g).enumerable})),f.push.apply(f,u)),f}(0,i.default)(n,[{key:"currentRteId",get:function(){return"".concat(this._currentRteId)}},{key:"recentStateEntity",get:function(){return this._state[this._currentRteId]||{}}},{key:"getStateEntityByRteId",value:function(c){return this._state[c]||{}}},{key:"state",get:function(){return this._state}},{key:"noMatchedEntity",value:function(c){return!this._state[c]}},{key:"incrementCurrentRteId",value:function(){this._currentRteId=this._currentRteId<=0?1:this._currentRteId+1}},{key:"createNewRecentStateEntity",value:function(){var u=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},c=u.client,d=u.config,u=u.accessLayer;this._state[this._currentRteId]={client:c,config:function(f){for(var g=1;g<arguments.length;g++){var m=arguments[g]!=null?arguments[g]:{};g%2?l(Object(m),!0).forEach(function(h){(0,e.default)(f,h,m[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(m)):l(Object(m)).forEach(function(h){Object.defineProperty(f,h,Object.getOwnPropertyDescriptor(m,h))})}return f}({},d),accessLayer:u}}},{key:"removeStateEntityById",value:function(){var c=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";c&&this._state[c]&&(this._state[c].client=this._defaultStateEntity.client,this._state[c].config=this._defaultStateEntity.config,this._state[c].accessLayer=this._defaultStateEntity.accessLayer,delete this._state[c])}},{key:"cleanupState",value:function(){var c,d=(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).callback,u=d===void 0?null:d;for(c in this._state)this._state.hasOwnProperty(c)&&((0,r.isFunction)(u)&&u(c,this._state[c]),this.removeStateEntityById(c))}}]),o=n;function n(){(0,s.default)(this,n),this._currentRteId=-1,this._state={},this._defaultStateEntity={client:null,config:null,accessLayer:null}}t.default=o},{"../lib/utils":244,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13}],213:[function(o,a,t){var l=o("@babel/runtime/helpers/interopRequireDefault"),e=l(o("@babel/runtime/helpers/defineProperty")),s=l(o("@babel/runtime/helpers/classCallCheck")),i=l(o("@babel/runtime/helpers/createClass")),r=o("../lib/utils"),l=l(o("../enver"));function n(u,f){var g,m=Object.keys(u);return Object.getOwnPropertySymbols&&(g=Object.getOwnPropertySymbols(u),f&&(g=g.filter(function(h){return Object.getOwnPropertyDescriptor(u,h).enumerable})),m.push.apply(m,g)),m}function c(u){for(var f=1;f<arguments.length;f++){var g=arguments[f]!=null?arguments[f]:{};f%2?n(Object(g),!0).forEach(function(m){(0,e.default)(u,m,g[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(g)):n(Object(g)).forEach(function(m){Object.defineProperty(u,m,Object.getOwnPropertyDescriptor(g,m))})}return u}(0,i.default)(d,[{key:"exposeToGlobalScope",value:function(){this._isExposedToGlobalScope||(window.cdx=this._state,this._isExposedToGlobalScope=!0)}},{key:"state",get:function(){return this._state}},{key:"ensureGlobalStateUniques",value:function(){var f=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},u=f.id,f=f.callback;u&&this._state[u]&&((0,r.isFunction)(f)&&f(this._state[u]),delete this._state[u])}},{key:"addEntityToGlobalState",value:function(){var m=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},u=m.id,u=u===void 0?"":u,f=m.client,g=m.editor,m=m.accessLayer;u&&(this._state[u]=c(c({},this._defaultStateEntity),{},{client:f,editor:g,accessLayer:m}))}},{key:"getEntityFromGlobalState",value:function(){return this._state[0<arguments.length&&arguments[0]!==void 0?arguments[0]:""]||{}}},{key:"removeEntityFromGlobalState",value:function(){var u=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";this._state[u]&&delete this._state[u]}}]),o=d;function d(){(0,s.default)(this,d),this._state={},this._isExposedToGlobalScope=!1,this._defaultStateEntity={editor:null,client:null,accessLayer:null}}l.default.isJestTesting?a.exports={GlobalCodoxStateClass:o,globalCodoxState:new o}:a.exports={globalCodoxState:new o}},{"../enver":239,"../lib/utils":244,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13}],214:[function(o,a,t){var u=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,u(o("@babel/runtime/helpers/createClass"))),s=u(o("@babel/runtime/helpers/classCallCheck")),i=u(o("@babel/runtime/helpers/inherits")),r=u(o("@babel/runtime/helpers/possibleConstructorReturn")),l=u(o("@babel/runtime/helpers/getPrototypeOf")),n=o("./GlobalCodoxState"),u=u(o("./CodoxInstanceState"));function c(g){var m=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,v=(0,l.default)(g);return h=m?(h=(0,l.default)(this).constructor,Reflect.construct(v,arguments,h)):v.apply(this,arguments),(0,r.default)(this,h)}}o=u.default,(0,i.default)(f,o),d=c(f);var d,u=(0,e.default)(f);function f(){var g,m=(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).exposeToGlobalScope,m=m!==void 0&&m;return(0,s.default)(this,f),(g=d.call(this)).globalState=n.globalCodoxState.state,m&&n.globalCodoxState.exposeToGlobalScope(),g.ensureGlobalStateUniques=n.globalCodoxState.ensureGlobalStateUniques.bind(n.globalCodoxState),g.addEntityToGlobalState=n.globalCodoxState.addEntityToGlobalState.bind(n.globalCodoxState),g.getEntityFromGlobalState=n.globalCodoxState.getEntityFromGlobalState.bind(n.globalCodoxState),g.removeEntityFromGlobalState=n.globalCodoxState.removeEntityFromGlobalState.bind(n.globalCodoxState),g}t.default=u},{"./CodoxInstanceState":212,"./GlobalCodoxState":213,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18}],215:[function(o,a,t){var d=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,d(o("@babel/runtime/helpers/classCallCheck"))),s=d(o("@babel/runtime/helpers/createClass")),g=d(o("@babel/runtime/helpers/inherits")),i=d(o("@babel/runtime/helpers/possibleConstructorReturn")),r=d(o("@babel/runtime/helpers/getPrototypeOf")),l=d(o("@babel/runtime/helpers/defineProperty")),n=d(o("react")),c=d(o("classnames")),d=o("../localization/LocalizationProvider.jsx");function u(h){var v=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var b,_=(0,r.default)(h);return b=v?(b=(0,r.default)(this).constructor,Reflect.construct(_,arguments,b)):_.apply(this,arguments),(0,i.default)(this,b)}}o=n.default.Component,(0,g.default)(m,o),f=u(m),(0,s.default)(m,[{key:"secondsToHM",value:function(b){b=Number(b);var v=Math.floor(b/3600),b=Math.floor(b%3600/60),v=0<v?"".concat(v,v==1?" hr":" hrs"):"",b=0<b?"".concat(b," m"):"";return"".concat(v," ").concat(b)}},{key:"ellapsedTime",value:function(){var h=new Date(this.props.jointime);return Math.floor((Date.now()-h)/1e3)}},{key:"tick",value:function(){this.setState({ellapsed:this.ellapsedTime()}),this.ellapsedTime()}},{key:"componentDidMount",value:function(){var h=this;this.interval=setInterval(function(){return h.tick()},6e4)}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"parseJoinTime",value:function(){function h(R){return b.joinedTimeAgo(R)}var v=this.state.ellapsed,b=this.context.labelStrings,_=b.justJoined;return 86400<v?h(Math.floor(v/86400)+"d"):60<v?h(this.secondsToHM(v)):_}},{key:"getStatus",value:function(){var h=this.context.labelStrings,v=null;return this.props.group?v="..and ".concat(this.props.count," others "):this.props.joined?this.props.jointime&&(v=this.parseJoinTime()):v=h.hasNotJoined,v}},{key:"render",value:function(){var h={},v=(h.backgroundColor=this.props.color,h.borderColor=this.props.color,(0,c.default)({"codox-session-tooltip":!0,disconnected:!this.props.joined})),b=this.getStatus();return n.default.createElement("div",{className:v,style:h},n.default.createElement("span",{className:"codox-session-tooltip-contact-name"},this.props.name),n.default.createElement("span",{className:"codox-session-tooltip-contact-status"},b))}}]);var f,g=m;function m(h){return(0,e.default)(this,m),(h=f.call(this,h)).state={ellapsed:h.ellapsedTime()},h}t.default=g,(0,l.default)(g,"contextType",d.LocalizationContext)},{"../localization/LocalizationProvider.jsx":246,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,classnames:136,react:171}],216:[function(m,a,t){var u=m("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,u(m("@babel/runtime/helpers/classCallCheck"))),s=u(m("@babel/runtime/helpers/createClass")),i=u(m("@babel/runtime/helpers/assertThisInitialized")),h=u(m("@babel/runtime/helpers/inherits")),r=u(m("@babel/runtime/helpers/possibleConstructorReturn")),l=u(m("@babel/runtime/helpers/getPrototypeOf")),n=u(m("react")),c=u(m("./SelectionLayer")),d=u(m("./../stores/GlobalStore")),u=u(m("prop-types"));function f(b){var _=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var R,x=(0,l.default)(b);return R=_?(R=(0,l.default)(this).constructor,Reflect.construct(x,arguments,R)):x.apply(this,arguments),(0,r.default)(this,R)}}var g,m={rteId:u.default.string,appAdapter:u.default.object},h=(u=n.default.Component,(0,h.default)(v,u),g=f(v),(0,s.default)(v,[{key:"updateState",value:function(){var b=this.props.rteId,R=d.default.getAwarenessState(b),_=R.session,R=R.awareness;_&&R&&(b=d.default.getUIState(b).showRemoteCursor,(R=R.selections)&&this.setState({type:_.datatype,mySiteId:_.siteId,users:_.members,selections:R,show:b}))}},{key:"componentWillUnmount",value:function(){d.default.removeChangeListener(this.updateState)}},{key:"adjustBounds",value:function(b,_){var R=_.getScrollDim();return b.map(function(x){var w=x.selection;return{siteId:x.siteId,selection:w.map(function(O){return O=_.relativePositionToView(O,R),O.visible=_.boundsVisible(O),O})}})}},{key:"render",value:function(){var x=this.state,b=x.show,_=x.users,R=x.mySiteId,x=x.selections;return!b||(b=this.props.appAdapter,!(b&&b.getScrollDim&&x&&x.length))?null:b.renderSelection?(b.renderSelection(_,x,R),null):(x=this.adjustBounds(x,b),n.default.createElement(c.default,{mySiteId:R,users:_,selections:x}))}}]),v);function v(O){(0,e.default)(this,v),_=g.call(this,O);var _,O=O.rteId,w=d.default.getSessionState(O),R=w.datatype,x=w.members,w=w.siteId,O=d.default.getUIState(O).showRemoteCursor;return _.state={type:R,users:x,selections:[],mySiteId:w,show:O},_.updateState=_.updateState.bind((0,i.default)(_)),d.default.addChangeListener(_.updateState),_}h.propTypes=m,h.defaultProps={rteId:"",appAdapter:{}},t.default=h},{"./../stores/GlobalStore":256,"./SelectionLayer":224,"@babel/runtime/helpers/assertThisInitialized":4,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,"prop-types":153,react:171}],217:[function(b,a,t){var g=b("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,g(b("@babel/runtime/helpers/extends"))),s=g(b("@babel/runtime/helpers/classCallCheck")),i=g(b("@babel/runtime/helpers/createClass")),r=g(b("@babel/runtime/helpers/assertThisInitialized")),_=g(b("@babel/runtime/helpers/inherits")),l=g(b("@babel/runtime/helpers/possibleConstructorReturn")),n=g(b("@babel/runtime/helpers/getPrototypeOf")),c=g(b("react")),d=g(b("./RemoteCaret")),u=g(b("classnames")),f=g(b("./../stores/GlobalStore")),g=g(b("prop-types")),m=b("./../lib/utils");function h(x){var w=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var O,I=(0,n.default)(x);return O=w?(O=(0,n.default)(this).constructor,Reflect.construct(I,arguments,O)):I.apply(this,arguments),(0,l.default)(this,O)}}var v,b={rteId:g.default.string},_=(g=c.default.Component,(0,_.default)(R,g),v=h(R),(0,i.default)(R,[{key:"updateState",value:function(){var x,w,L=this.props.rteId,I=f.default.getAwarenessState(L),O=I.session,I=I.awareness,L=f.default.getUIState(L).showRemoteCursor;I&&I.cursors&&(x=O.datatype,w=O.siteId,O=O.members,this.setState({type:x,mySiteId:w===void 0?"":w,users:O,cursors:I.cursors,show:L}))}},{key:"componentWillUnmount",value:function(){f.default.removeChangeListener(this.updateState)}},{key:"getVisuals",value:function(x){var w=this;if(!x.length)return[];var O=this.props.appAdapter;if(!O||!O.getScrollDim)return[];var I=O.getScrollDim();return x.map(function(A){var k=A.cursor,M=A.update,A=A.siteId,k=k?O.relativePositionToView(k,I):null;return{siteId:A,cursor:k?O.caretAdjustment(k):null,update:!!M,visible:!!k&&O.boundsVisible(k),on:w.state.on}})}},{key:"renderCarets",value:function(){var x=this,w=this.state,O=w.cursors,I=w.users,L=w.mySiteId;if(!O.length)return null;var M=(0,m.keyBy)(this.getVisuals(O),"siteId");return I.map(function(U,k){var J=U.color,G=U.name,U=U.siteId;return U!==L&&!!M[U]&&!!M[U].cursor&&c.default.createElement(d.default,(0,e.default)({color:J||x.props.defaultColor,name:G,key:"".concat(k+1)},M[U]))})}},{key:"render",value:function(){var x=(0,u.default)("codox-caret-layer");return this.state.show?c.default.createElement("div",{className:x},this.renderCarets()):null}}]),R);function R(A){(0,s.default)(this,R),w=v.call(this,A);var w,A=A.rteId,L=f.default.getSessionState(A),O=L.datatype,I=L.siteId,I=I===void 0?"":I,L=L.members,A=f.default.getUIState(A),M=A.showRemoteCursor,A=A.cursorAlwaysOn;return w.state={type:O,mySiteId:I,users:L,cursors:[],show:M,on:A},w.updateState=w.updateState.bind((0,r.default)(w)),f.default.addChangeListener(w.updateState),w}_.propTypes=b,_.defaultProps={rteId:"",defaultColor:"#6d6d6d"},t.default=_},{"./../lib/utils":244,"./../stores/GlobalStore":256,"./RemoteCaret":221,"@babel/runtime/helpers/assertThisInitialized":4,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/extends":10,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,classnames:136,"prop-types":153,react:171}],218:[function(f,a,i){var c=f("@babel/runtime/helpers/interopRequireDefault"),e=f("@babel/runtime/helpers/typeof");Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(v){var R=(0,r.useState)(null),R=(0,s.default)(R,2),b=R[0],_=R[1],R=((0,r.useEffect)(function(){var k=function(J,G){var U=2<arguments.length&&arguments[2]!==void 0?arguments[2]:.8;return J?{x:J.x*(1-U)+G.x*U,y:J.y*(1-U)+G.y*U}:G}(b,v.coord&&v.coord.pointer,.8);_(k)},[v.coord.pointer]),v.name),R=R===void 0?"":R,x=v.color,x=x===void 0?"#6d6d6d":x,w=v.showTip,w=w!==void 0&&w,O=v.coord,A=v.shape;if(!b)return null;var I=(0,l.default)("codox-user-pointer","codox-user-pointer-visible"),L=b.x,M=b.y,A=(0,n.default)(A);return r.default.createElement("div",{className:I,style:{left:L,top:M}},r.default.createElement(A,{className:"codox-user-pointer-svg",color:x}),r.default.createElement(h,{showTip:w,color:x},R),r.default.createElement(m,{color:x,pointer:O.pointer}))};var s=c(f("@babel/runtime/helpers/slicedToArray")),i=c(f("@babel/runtime/helpers/taggedTemplateLiteral")),r=u(f("react")),l=c(f("classnames")),n=c(f("./PointerFactory")),c=u(f("styled-components"));function d(v){if(typeof WeakMap!="function")return null;var b=new WeakMap,_=new WeakMap;return(d=function(R){return R?_:b})(v)}function u(v,b){if(!b&&v&&v.__esModule)return v;if(v===null||e(v)!=="object"&&typeof v!="function")return{default:v};if(b=d(b),b&&b.has(v))return b.get(v);var _,R,x={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(_ in v)_!=="default"&&Object.prototype.hasOwnProperty.call(v,_)&&((R=w?Object.getOwnPropertyDescriptor(v,_):null)&&(R.get||R.set)?Object.defineProperty(x,_,R):x[_]=v[_]);return x.default=v,b&&b.set(v,x),x}var f=(0,c.keyframes)((0,i.default)([`
|
|
139
|
+
0% { width: 0; height: 0; margin: 0; opacity: 1; }
|
|
140
|
+
80%{ width: 36px; height: 36px; margin: -18px 0 0 -18px; opacity: 0.2; }
|
|
141
|
+
100%{ width: 0; height: 0; opacity: 0; }
|
|
142
|
+
`])),g=c.default.div((0,i.default)([`
|
|
143
|
+
animation: `,` 300ms;
|
|
144
|
+
background-color: `,`
|
|
145
|
+
`]),f,function(v){return"".concat(v.color," !important")});function m(v){var _=v.pointer,b=_.l,_=_.t;return b?(b=(0,l.default)("codox-pointer-click"),r.default.createElement(g,{key:_,className:b,color:v.color})):null}function h(v){var b=v.color,_=v.showTip,_=(0,l.default)("codox-user-pointer-label",{"codox-user-pointer-label-visible":_});return r.default.createElement("span",{className:_,style:{color:b}}," ",v.children," ")}},{"./PointerFactory":219,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/slicedToArray":20,"@babel/runtime/helpers/taggedTemplateLiteral":21,"@babel/runtime/helpers/typeof":22,classnames:136,react:171,"styled-components":180}],219:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=o("./pointers");t.default=function(){switch(0<arguments.length&&arguments[0]!==void 0?arguments[0]:"arrow"){case"arrow":return e.Arrow;case"pointer":return e.Pointer;case"hand":return e.Hand;case"pointerSolid":return e.PointerSolid;default:return e.Arrow}}},{"./pointers":232}],220:[function(b,a,t){var e=b("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(b("@babel/runtime/helpers/defineProperty"))),i=e(b("@babel/runtime/helpers/classCallCheck")),r=e(b("@babel/runtime/helpers/createClass")),l=e(b("@babel/runtime/helpers/assertThisInitialized")),n=e(b("@babel/runtime/helpers/inherits")),c=e(b("@babel/runtime/helpers/possibleConstructorReturn")),d=e(b("@babel/runtime/helpers/getPrototypeOf")),u=e(b("react")),f=e(b("./RemotePointer")),g=e(b("classnames")),m=e(b("./../stores/GlobalStore"));function h(R){var x=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var w,O=(0,d.default)(R);return w=x?(w=(0,d.default)(this).constructor,Reflect.construct(O,arguments,w)):O.apply(this,arguments),(0,c.default)(this,w)}}e=u.default.Component,(0,n.default)(_,e),v=h(_),(0,r.default)(_,[{key:"updateState",value:function(){var x=m.default.getUIState(this.props.rteId),R=x.showRemotePointer,x=x.pointers,O=m.default.getAwarenessState(this.props.rteId),w=O.session,O=O.awareness;w&&O&&this.setState({type:w.datatype,mySiteId:w.siteId,users:w.members,show:R,shape:x.shape,pointers:R?O.pointers:[]})}},{key:"componentWillUnmount",value:function(){m.default.removeChangeListener(this.updateState)}},{key:"render",value:function(){var R=this,x=("[PointerLayer] telepointer render called ".concat(JSON.stringify(this.state.pointers)),this.state),w=x.show,O=x.users,I=x.pointers,L=x.mySiteId,M=x.shape;return!w||(x=this.props.appAdapter,!(x&&x.getScrollDim&&O&&O.length))?null:(w=(0,g.default)("codox-pointer-layer"),u.default.createElement("div",{className:w},O.map(function(U,k){var J=U.siteId,G=U.color,U=U.name;return!(J===L||!I[J]||!I[J].length)&&u.default.createElement(f.default,((0,s.default)(G={key:J,color:G||"#6d6d6d",name:U,shape:M},"key","value-".concat(k+1)),(0,s.default)(G,"coords",I[J]),(0,s.default)(G,"appAdapter",R.props.appAdapter),G))})))}}]);var v,b=_;function _(R){(0,i.default)(this,_),R=v.call(this,R);var O=m.default.getSessionState(R.props.rteId),x=O.datatype,w=O.members,O=O.siteId,I=m.default.getUIState(R.props.rteId).showRemotePointer;return R.state={type:x,users:w,pointers:{},mySiteId:O,show:I},R.updateState=R.updateState.bind((0,l.default)(R)),m.default.addChangeListener(R.updateState),R}b.propTypes={},b.defaultProps={},t.default=b},{"./../stores/GlobalStore":256,"./RemotePointer":222,"@babel/runtime/helpers/assertThisInitialized":4,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,classnames:136,react:171}],221:[function(h,a,t){var f=h("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,f(h("@babel/runtime/helpers/classCallCheck"))),s=f(h("@babel/runtime/helpers/createClass")),i=f(h("@babel/runtime/helpers/assertThisInitialized")),v=f(h("@babel/runtime/helpers/inherits")),r=f(h("@babel/runtime/helpers/possibleConstructorReturn")),l=f(h("@babel/runtime/helpers/getPrototypeOf")),n=f(h("@babel/runtime/helpers/defineProperty")),c=f(h("react")),d=f(h("classnames")),u=h("./../lib/utils"),f=f(h("prop-types"));function g(_){var R=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var x,w=(0,l.default)(_);return x=R?(x=(0,l.default)(this).constructor,Reflect.construct(w,arguments,x)):w.apply(this,arguments),(0,r.default)(this,x)}}var m,h={color:f.default.string.isRequired,name:f.default.string.isRequired,cursor:f.default.object.isRequired,visible:f.default.bool.isRequired,update:f.default.bool.isRequired,on:f.default.bool.isRequired},v=(f=c.default.Component,(0,v.default)(b,f),m=g(b),(0,s.default)(b,[{key:"componentWillUnmount",value:function(){this.timer&&this.timer.cancel()}},{key:"getSnapshotBeforeUpdate",value:function(_,R){return R.showtip}},{key:"componentDidUpdate",value:function(_,R){"'componentDidUpdate prevState.showtip=".concat(R.showtip,", this.props.update=").concat(this.props.update),this.props.on||this.props.update&&(R.showtip?this.timer&&this.timer.extend(1e3):(this.showTip(),this.timer&&this.timer.cancel(),this.timer=(0,u.createTimer)(this.hideTip,2e3)))}},{key:"render",value:function(){var R=this.props,_=R.name,w=R.color,O=R.cursor,R=R.visible;if(this.props,!R)return null;var R={left:O.left+"px",top:O.top+"px"},x={background:w,borderColor:w},w={borderColor:w,height:O.height},O=(0,d.default)("codox-user-caret-label",{"codox-user-caret-label-visible":this.state.showtip}),I=(0,d.default)("codox-user-caret","codox-user-caret-visible");return c.default.createElement("div",{className:I,style:R},c.default.createElement("span",{className:O,style:x},_),c.default.createElement("span",{className:"codox-user-caret-marker",style:w}," "))}}]),b);function b(){var _;(0,e.default)(this,b);for(var R=arguments.length,x=new Array(R),w=0;w<R;w++)x[w]=arguments[w];return _=m.call.apply(m,[this].concat(x)),(0,n.default)((0,i.default)(_),"state",{showtip:_.props.on}),(0,n.default)((0,i.default)(_),"hideTip",function(){_.setState({showtip:!1})}),(0,n.default)((0,i.default)(_),"showTip",function(){_.setState({showtip:!0})}),(0,n.default)((0,i.default)(_),"onMouseEnter",function(){_.props.on||_.showTip()}),(0,n.default)((0,i.default)(_),"onMouseLeave",function(){_.props.on||(_.timer&&_.timer.cancel(),_.timer=(0,u.createTimer)(_.hideTip,2e3))}),_}v.propTypes=h,v.defaultProps={color:"#6d6d6d",name:"",visible:!1,update:!1,on:!1},t.default=v},{"./../lib/utils":244,"@babel/runtime/helpers/assertThisInitialized":4,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,classnames:136,"prop-types":153,react:171}],222:[function(h,a,t){var e=h("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(h("@babel/runtime/helpers/createClass"))),i=e(h("@babel/runtime/helpers/classCallCheck")),r=e(h("@babel/runtime/helpers/assertThisInitialized")),l=e(h("@babel/runtime/helpers/inherits")),n=e(h("@babel/runtime/helpers/possibleConstructorReturn")),c=e(h("@babel/runtime/helpers/getPrototypeOf")),d=e(h("@babel/runtime/helpers/defineProperty")),u=e(h("react")),f=e(h("./Pointer.jsx"));function g(b){var _=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var R,x=(0,c.default)(b);return R=_?(R=(0,c.default)(this).constructor,Reflect.construct(x,arguments,R)):x.apply(this,arguments),(0,n.default)(this,R)}}e=u.default.Component,(0,l.default)(v,e),m=g(v);var m,h=(0,s.default)(v);function v(b){var _;return(0,i.default)(this,v),_=m.call(this,b),(0,d.default)((0,r.default)(_),"adjustPointers",function(){var x=_.props,R=x.appAdapter,x=x.coords;if(!R||!R.getScrollDim)return[];var w=R.getScrollDim();return x.map(function(O){return O.top=O.y,O.left=O.x,O.bottom=50,{pointer:R.relativePositionToView(O,w),visible:!0}})}),(0,d.default)((0,r.default)(_),"render",function(){var R=_.adjustPointers(),I=("[RemotePointer] telepointer render called ".concat(JSON.stringify(R)),_.props),x=I.name,w=I.color,O=I.showTip,I=I.shape;return u.default.createElement(f.default,{coord:R[0],name:x,color:w,showTip:O,shape:I})}),_}t.default=h},{"./Pointer.jsx":218,"@babel/runtime/helpers/assertThisInitialized":4,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,react:171}],223:[function(o,a,t){function e(l){var n=l.selection,c=(l.siteId,l.color),d=(0,s.default)("selection");return i.default.createElement("div",{className:"selections"},n.map(function(u,f){var g=u.left,m=u.top,h=u.height,v=u.width;return u.visible?i.default.createElement("span",{key:f,className:d,style:{left:g,top:m,height:h,width:v,background:c}}):null}))}var r=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(o("classnames"))),i=r(o("react")),r={selection:r(o("prop-types")).default.array.isRequired};e.propTypes=r,e.defaultProps={selection:[]},t.default=e},{"@babel/runtime/helpers/interopRequireDefault":13,classnames:136,"prop-types":153,react:171}],224:[function(d,a,t){function e(h){var f=h.users,g=h.selections,m=h.mySiteId,h=(h.scrollBounds,(0,l.default)("codox-selection-layer")),v=(0,n.keyBy)(g,"siteId");return i.default.createElement("div",{className:h},f.map(function(w,_){var R=w.siteId,x=w.color,w=w.name;return R!==m&&!!v[R]&&i.default.createElement(r.default,(0,s.default)({color:x||"#6d6d6d",name:w,key:"value-".concat(_+1)},v[R]))}))}var c=d("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,c(d("@babel/runtime/helpers/extends"))),i=c(d("react")),r=c(d("./RemoteSelection")),l=c(d("classnames")),n=d("./../lib/utils"),c=c(d("prop-types")),d={users:c.default.array.isRequired,selections:c.default.array.isRequired};e.propTypes=d,e.defaultProps={users:[],selections:[]},t.default=e},{"./../lib/utils":244,"./RemoteSelection":223,"@babel/runtime/helpers/extends":10,"@babel/runtime/helpers/interopRequireDefault":13,classnames:136,"prop-types":153,react:171}],225:[function(h,a,t){var f=h("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,f(h("@babel/runtime/helpers/classCallCheck"))),s=f(h("@babel/runtime/helpers/createClass")),i=f(h("@babel/runtime/helpers/assertThisInitialized")),v=f(h("@babel/runtime/helpers/inherits")),r=f(h("@babel/runtime/helpers/possibleConstructorReturn")),l=f(h("@babel/runtime/helpers/getPrototypeOf")),n=f(h("react")),c=f(h("./UserAvatar")),d=f(h("classnames")),u=f(h("./../stores/GlobalStore")),f=f(h("prop-types"));function g(_){var R=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var x,w=(0,l.default)(_);return x=R?(x=(0,l.default)(this).constructor,Reflect.construct(w,arguments,x)):w.apply(this,arguments),(0,r.default)(this,x)}}var m,h={rteId:f.default.string,appAdapter:f.default.object},v=(f=n.default.Component,(0,v.default)(b,f),m=g(b),(0,s.default)(b,[{key:"updateState",value:function(){var _=u.default.getUIState(this.props.rteId).showSessionInfo,R=u.default.getSessionState(this.props.rteId);this.setState({session:R,show:_})}},{key:"componentWillUnmount",value:function(){u.default.removeChangeListener(this.updateState)}},{key:"render",value:function(){var x=this.state,_=x.show,R=x.avatars,x=x.session;return _?(this.props,_=(0,d.default)({"codox-session-info-list":!0,vertical:R.vertical,horizontal:!R.vertical}),n.default.createElement("div",{className:_},x.members.map(function(w,O){return n.default.createElement("div",{className:"codox-session-info-avatar",key:w.siteId},n.default.createElement(c.default,w))}))):null}}]),b);function b(x){(0,e.default)(this,b),R=m.call(this,x);var R,x=u.default.getSessionState(x.rteId),O=u.default.getUIState(R.props.rteId),w=O.showSessionInfo,O=O.avatars;return R.state={session:x,show:w,avatars:O},R.updateState=R.updateState.bind((0,i.default)(R)),u.default.addChangeListener(R.updateState),R}(t.default=v).propTypes=h,v.defaultProps={rteId:"",appAdapter:{}}},{"./../stores/GlobalStore":256,"./UserAvatar":226,"@babel/runtime/helpers/assertThisInitialized":4,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,classnames:136,"prop-types":153,react:171}],226:[function(o,a,t){var R=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,R(o("@babel/runtime/helpers/classCallCheck"))),s=R(o("@babel/runtime/helpers/createClass")),i=R(o("@babel/runtime/helpers/inherits")),r=R(o("@babel/runtime/helpers/possibleConstructorReturn")),l=R(o("@babel/runtime/helpers/getPrototypeOf")),n=R(o("react")),c=R(o("classnames")),d=R(o("./AvatarTooltip"));function u(L){var M=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var A,k=(0,l.default)(L);return A=M?(A=(0,l.default)(this).constructor,Reflect.construct(k,arguments,A)):k.apply(this,arguments),(0,r.default)(this,A)}}R=n.default.PureComponent,(0,i.default)(I,R),h=u(I),(0,s.default)(I,[{key:"render",value:function(){return n.default.createElement("img",{className:"codox-avatar-img",src:this.props.src})}}]);var f,g,m,h,v=I,b=(o=n.default.PureComponent,(0,i.default)(O,o),m=u(O),(0,s.default)(O,[{key:"getInitials",value:function(L){for(var M=L.split(/\s/),A="",k=0;k<M.length&&k<2;k++)A+=M[k].substr(0,1).toUpperCase();return A}},{key:"render",value:function(){var M=this.props,k=M.color,J=M.group,J=J!==void 0&&J,L=M.name,M=M.email,A={},k=(A.backgroundColor=k,(0,c.default)({"codox-avatar-initials":!0,clickable:J})),J=L?this.getInitials(L):M;return n.default.createElement("span",{className:k,style:A},J," ")}}]),O),_=(R=n.default.PureComponent,(0,i.default)(w,R),g=u(w),(0,s.default)(w,[{key:"render",value:function(){var L=(0,c.default)({"codox-session-status-joined":this.props.joined});return n.default.createElement("i",{className:L})}}]),w),R=(o=n.default.Component,(0,i.default)(x,o),f=u(x),(0,s.default)(x,[{key:"render",value:function(){var k=this.props,L=k.avatar,M=k.name,M=M===void 0?"":M,A=k.email,k=k.color;return n.default.createElement("div",{className:"codox-avatar"},this.props.avatar?n.default.createElement(v,{src:L}):n.default.createElement(b,{name:M,email:A,color:k}),n.default.createElement(_,this.props),n.default.createElement(d.default,this.props))}}]),x);function x(L){return(0,e.default)(this,x),f.call(this,L)}function w(){return(0,e.default)(this,w),g.apply(this,arguments)}function O(){return(0,e.default)(this,O),m.apply(this,arguments)}function I(){return(0,e.default)(this,I),h.apply(this,arguments)}t.default=R},{"./AvatarTooltip":215,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,classnames:136,react:171}],227:[function(o,a,t){var n=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Awareness",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"CaretLayer",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"PointerLayer",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"SelectionLayer",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"SessionInfo",{enumerable:!0,get:function(){return r.default}}),t.default=void 0,n(o("./CaretLayer"))),s=n(o("./SelectionLayer")),i=n(o("./Awareness")),r=n(o("./SessionInfo")),l=n(o("./PointerLayer")),n={SelectionLayer:s.default,CaretLayer:e.default,Awareness:i.default,SessionInfo:r.default,PointerLayer:l.default};t.default=n},{"./Awareness":216,"./CaretLayer":217,"./PointerLayer":220,"./SelectionLayer":224,"./SessionInfo":225,"@babel/runtime/helpers/interopRequireDefault":13}],228:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(i){return s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25px",height:"25px",viewBox:"0 0 32 40",x:"0px",y:"0px"},s.default.createElement("g",null,s.default.createElement("path",{strokeWidth:1,stroke:i.color,d:"M28.19,13.54l-24-10a.5.5,0,0,0-.65.65l10,24a.5.5,0,0,0,.46.31h0a.49.49,0,0,0,.46-.31l3.92-9.81,9.81-3.92A.49.49,0,0,0,28.5,14,.5.5,0,0,0,28.19,13.54Zm-10.38,4a.51.51,0,0,0-.27.27L14,26.68,4.93,4.93,26.68,14Z"})))},e(o("react")))},{"@babel/runtime/helpers/interopRequireDefault":13,react:171}],229:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(i){return s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25px",height:"25px",viewBox:"0 0 32 40",x:"0px",y:"0px"},s.default.createElement("g",null,s.default.createElement("path",{stroke:i.color,"stroke-width":1,d:"M26.77,12.24A2.46,2.46,0,0,0,25,11.5a2.5,2.5,0,0,0-1.66.64,2.3,2.3,0,0,0-.57-.9A2.46,2.46,0,0,0,21,10.5a2.5,2.5,0,0,0-1.66.64,2.3,2.3,0,0,0-.57-.9A2.46,2.46,0,0,0,17,9.5a2.51,2.51,0,0,0-1.5.51V4a2.51,2.51,0,0,0-2.72-2.49,2.57,2.57,0,0,0-2.28,2.6V16.59a1,1,0,0,1-.73,1,1,1,0,0,1-1.12-.44L7.18,14.7A2.5,2.5,0,0,0,2.9,17.29L9,27.55a6,6,0,0,0,5.17,2.95H20A7.54,7.54,0,0,0,27.5,23V14A2.43,2.43,0,0,0,26.77,12.24ZM26.5,23A6.54,6.54,0,0,1,20,29.5H14.14A5,5,0,0,1,9.83,27L3.76,16.78a1.52,1.52,0,0,1,.5-2.07,1.56,1.56,0,0,1,2.06.51l1.47,2.41a2,2,0,0,0,3.71-1V4.11a1.56,1.56,0,0,1,1.37-1.6A1.51,1.51,0,0,1,14.5,4V14a.5.5,0,0,0,1,0V12A1.5,1.5,0,0,1,17,10.5,1.52,1.52,0,0,1,18.5,12v3a.5.5,0,0,0,1,0V13A1.5,1.5,0,0,1,21,11.5,1.52,1.52,0,0,1,22.5,13v3a.5.5,0,0,0,1,0V14A1.5,1.5,0,0,1,25,12.5,1.52,1.52,0,0,1,26.5,14Z"})))},e(o("react")))},{"@babel/runtime/helpers/interopRequireDefault":13,react:171}],230:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(o("react")));t.default=function(i){return s.default.createElement("svg",{version:"1.1",x:"0px",y:"0px",width:"25px",height:"25px",viewBox:"0 0 1024 1280",style:{enableBackground:"new 0 0 447.674 447.674"}},s.default.createElement("g",null,s.default.createElement("g",null,s.default.createElement("path",{style:{fill:i.color},d:"M655.3,561.7c25.6,25.6,51.1,51.1,76.7,76.7c40.6,40.6,81.2,81.2,121.7,121.7c9.3,9.3,18.6,18.6,27.9,27.9 c0-14.1,0-28.3,0-42.4c-15.4,15.4-30.8,30.8-46.1,46.1c-24.4,24.4-48.7,48.7-73.1,73.1c-5.6,5.6-11.2,11.2-16.8,16.8 c14.1,0,28.3,0,42.4,0c-25.6-25.6-51.1-51.1-76.7-76.7c-40.6-40.6-81.2-81.2-121.8-121.7c-9.3-9.3-18.6-18.6-27.9-27.9 c-11.5-11.5-30.9-11.5-42.4,0c-19.7,19.7-39.4,39.4-59.1,59.1c-31.4,31.4-62.9,62.9-94.3,94.3c-7.3,7.3-14.5,14.5-21.8,21.8 c16.7,4.4,33.4,8.8,50.1,13.2c-2.2-6.5-4.4-13.1-6.5-19.6c-5.9-17.8-11.9-35.5-17.8-53.3c-8.7-26.1-17.5-52.3-26.2-78.4 c-10.7-32-21.4-64-32.1-96c-11.7-34.9-23.3-69.8-35-104.7c-11.8-35.4-23.7-70.8-35.5-106.2c-11-33-22.1-66-33.1-99 c-9.3-27.9-18.6-55.8-28-83.7c-6.7-20-13.4-39.9-20-59.9c-3.2-9.5-6.2-19.1-9.5-28.5c-0.1-0.4-0.3-0.8-0.4-1.2 c-12.3,12.3-24.6,24.6-36.9,36.9c6.5,2.2,13.1,4.4,19.6,6.5c17.8,5.9,35.5,11.9,53.3,17.8c26.1,8.7,52.3,17.5,78.4,26.2 c32,10.7,64,21.4,96,32.1c34.9,11.7,69.8,23.3,104.7,35c35.4,11.8,70.8,23.7,106.2,35.5c33,11,66,22.1,99,33.1 c27.9,9.3,55.8,18.6,83.7,28c20,6.7,39.9,13.4,59.9,20c9.5,3.2,19,6.5,28.5,9.5c0.4,0.1,0.8,0.3,1.2,0.4 c-4.4-16.7-8.8-33.4-13.2-50.1c-19.7,19.7-39.4,39.4-59.1,59.1c-31.4,31.4-62.9,62.9-94.3,94.3c-7.3,7.3-14.5,14.5-21.8,21.8 C644.2,530.4,643.4,550.8,655.3,561.7c12,11,30.6,11.9,42.4,0c19.7-19.7,39.4-39.4,59.1-59.1c31.4-31.4,62.9-62.9,94.3-94.3 c7.3-7.3,14.5-14.5,21.8-21.8c7.6-7.6,10.6-18.9,7.7-29.2c-2.9-10.5-10.9-17.6-21-21c-6.5-2.2-13.1-4.4-19.6-6.5 c-17.8-5.9-35.5-11.9-53.3-17.8c-26.1-8.7-52.3-17.5-78.4-26.2c-32-10.7-64-21.4-96-32.1c-34.9-11.7-69.8-23.3-104.7-35 c-35.4-11.8-70.8-23.7-106.2-35.5c-33-11-66-22.1-99-33.1c-27.9-9.3-55.8-18.6-83.7-28c-20-6.7-39.9-13.4-59.9-20 c-9.5-3.2-19-6.6-28.5-9.5c-0.4-0.1-0.8-0.3-1.2-0.4c-21.2-7.1-44,15.7-36.9,36.9c2.2,6.5,4.4,13.1,6.5,19.6 c5.9,17.8,11.9,35.5,17.8,53.3c8.7,26.1,17.5,52.3,26.2,78.4c10.7,32,21.4,64,32.1,96c11.7,34.9,23.3,69.8,35,104.7 c11.8,35.4,23.7,70.8,35.5,106.2c11,33,22.1,66,33.1,99c9.3,27.9,18.6,55.8,28,83.7c6.7,20,13.4,39.9,20,59.9 c3.2,9.5,6.3,19,9.5,28.5c0.1,0.4,0.3,0.8,0.4,1.2c3.4,10.1,10.4,18.1,21,21c10.3,2.8,21.6-0.2,29.2-7.7 c19.7-19.7,39.4-39.4,59.1-59.1c31.4-31.4,62.9-62.9,94.3-94.3c7.3-7.3,14.5-14.5,21.8-21.8c-14.1,0-28.3,0-42.4,0 c25.6,25.6,51.1,51.1,76.7,76.7c40.6,40.6,81.2,81.2,121.8,121.7c9.3,9.3,18.6,18.6,27.9,27.9c11.5,11.5,30.9,11.5,42.4,0 c15.4-15.4,30.8-30.8,46.1-46.1c24.4-24.4,48.7-48.7,73.1-73.1c5.6-5.6,11.2-11.2,16.8-16.8c11.5-11.5,11.5-30.9,0-42.4 c-25.6-25.6-51.1-51.1-76.7-76.7c-40.6-40.6-81.2-81.2-121.7-121.7c-9.3-9.3-18.6-18.6-27.9-27.9c-11.1-11.1-31.5-11.9-42.4,0 C644.3,531.3,643.5,549.9,655.3,561.7z"}))))}},{"@babel/runtime/helpers/interopRequireDefault":13,react:171}],231:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(i){return s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25px",height:"25px",x:"0px",y:"0px",viewBox:"0 0 100 125",style:{enableBackground:"new 0 0 100 100"}},s.default.createElement("polygon",{style:{fill:i.color},points:"88.9,31.3 2.5,2.5 31.3,88.9 51.4,68.7 80.2,97.5 97.5,80.2 68.7,51.4 "}))},e(o("react")))},{"@babel/runtime/helpers/interopRequireDefault":13,react:171}],232:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Arrow",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Hand",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Pointer",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"PointerSolid",{enumerable:!0,get:function(){return r.default}}),e(o("./Hand.jsx"))),i=e(o("./Arrow.jsx")),r=e(o("./PointerSolid.jsx")),l=e(o("./Pointer.jsx"))},{"./Arrow.jsx":228,"./Hand.jsx":229,"./Pointer.jsx":230,"./PointerSolid.jsx":231,"@babel/runtime/helpers/interopRequireDefault":13}],233:[function(o,a,t){a.exports={Chrome:26,Safari:6,Firefox:14,Opera:15}},{}],234:[function(o,a,t){a.exports={development:{apiUrl:"https://127.0.0.1:9000/",proxyUrl:"wss://127.0.0.1/",preDsmApiUrl:"https://127.0.0.1:9000/",preDsmProxyUrl:"wss://127.0.0.1/",fetchAccessUrl:"https://staging.clickup.com"},json:{apiUrl:"https://127.0.0.1:9000/",proxyUrl:"wss://127.0.0.1/"},"local-clickup":{apiUrl:"https://alb.clickup.codox.io/",proxyUrl:"wss://proxy.clickup.codox.io/"},"local-staging":{apiUrl:"https://smd.stage.codox.io/",proxyUrl:"wss://proxy.stage.codox.io/"},"local-production-dsm":{apiUrl:"https://api.codox.io/",proxyUrl:"wss://dsm.codox.io/"},"local-production":{apiUrl:"https://app.codox.io/",proxyUrl:"wss://elb-sm.codox.io:4000/"},david:{apiUrl:"https://127.0.0.1:9000/",proxyUrl:"wss://127.0.0.1/",preDsmApiUrl:"https://127.0.0.1:9100/",preDsmProxyUrl:"wss://127.0.0.1/",fetchAccessUrl:"https://staging.clickup.com"},scz:{apiUrl:"https://192.168.86.31:9000",proxyUrl:"wss://192.168.86.31/",preDsmApiUrl:"https://192.168.86.31:9100",preDsmProxyUrl:"wss://192.168.86.31/"},agustina:{apiUrl:"https://127.0.0.1:9000/",proxyUrl:"wss://127.0.0.1/"},"staging-dsm":{apiUrl:"https://smd-dsm.stage.codox.io/",proxyUrl:"wss://sm-dsm.stage.codox.io/"},stage2:{apiUrl:"https://api.stage2.codox.io/",preDsmApiUrl:"https://ssc.stage2.codox.io",proxyUrl:"wss://proxy.stage2.codox.io/"},staging:{apiUrl:"https://smd.stage.codox.io/",proxyUrl:"wss://proxy.stage.codox.io/",fetchAccessUrl:"https://staging.clickup.com"},"staging-testing":{apiUrl:"https://smd.stage.codox.io/",proxyUrl:"wss://proxy.stage.codox.io:4000/"},production:{apiUrl:"https://api.codox.io/",proxyUrl:"wss://dsm.codox.io/",preDsmApiUrl:"https://ssc-smd.codox.io/",preDsmProxyUrl:"wss://ssc.codox.io/"},clickup:{apiUrl:"https://alb.clickup.codox.io/",proxyUrl:"wss://proxy.clickup.codox.io/",fetchAccessUrl:"https://app.clickup.com"}}},{}],235:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={integrations:["froala","zendesk","quilljs","tinymce","wordpress","text","codemirror"]}},{}],236:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSessionMessage=t.default=void 0;function e(r,l){return"".concat(s[l])}var s={wpPostDelete:"has deleted this post. Please manually make a copy!",zenSubmit:"has submitted the ticket"},i={getSessionMessage:t.getSessionMessage=e};t.default=i},{}],237:[function(o,a,t){var r=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BrowserSupport",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Integrations",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Messages",{enumerable:!0,get:function(){return s.default}}),t.default=t.THRESHOLD=void 0,r(o("./BrowserSupport"))),s=r(o("./Messages")),i=r(o("./Integrations")),r={THRESHOLD:t.THRESHOLD=1e6,BrowserSupport:e.default,Integrations:i.default,Messages:s.default};t.default=r},{"./BrowserSupport":233,"./Integrations":235,"./Messages":236,"@babel/runtime/helpers/interopRequireDefault":13}],238:[function(o,a,t){(function(e){(function(){var s=o("@babel/runtime/helpers/interopRequireDefault"),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.dispatch=c,t.dispatchAsync=function(d,u){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},g=u.request,m=u.success,h=u.failure;g&&c(g,f),d.then(function(v){return c(m,l(l({},f),{},{body:v}))},function(v){return c(h,l(l({},f),{},{error:v}))})},t.register=function(d){return n.register(d)},t.waitFor=function(d){return n.waitFor(d)},s(o("@babel/runtime/helpers/defineProperty")));function r(d,u){var f,g=Object.keys(d);return Object.getOwnPropertySymbols&&(f=Object.getOwnPropertySymbols(d),u&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),g.push.apply(g,f)),g}function l(d){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?r(Object(f),!0).forEach(function(g){(0,i.default)(d,g,f[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):r(Object(f)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(f,g))})}return d}var n=new(o("flux")).Dispatcher;function c(d){var u=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};if(!d)throw new Error("[AppDispatcher][dispatch] action type missing");e.env.NODE_ENV!=="production"&&u.error&&console.error("[AppDispatcher][dispatch]",d,u),n.dispatch(l({type:d},u))}}).call(this)}).call(this,o("_process"))},{"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13,_process:149,flux:139}],239:[function(o,a,t){(function(e){(function(){var s=o("@babel/runtime/helpers/interopRequireDefault"),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(o("@babel/runtime/helpers/classCallCheck"))),r=s(o("@babel/runtime/helpers/createClass")),l=s(o("url")),n=s(o("../envs")),c=s(o("./constants/EnvEndpoints"));(0,r.default)(d,[{key:"isProd",get:function(){return n.default.prod.includes(this.buildEnv)}},{key:"isClickUp",get:function(){return[n.default.allMap.clickup,n.default.allMap.staging].includes(this.buildEnv)}},{key:"isDev",get:function(){return this.buildEnv===n.default.allMap.development}},{key:"isStagingDsm",get:function(){return this.buildEnv===n.default.allMap["staging-dsm"]}},{key:"isStagingCU",get:function(){return this.buildEnv===n.default.allMap.staging}},{key:"isJestTesting",get:function(){return e.env.JEST_TEST==="true"}},{key:"isTestMode",get:function(){return!!e.env.TEST}},{key:"apiUrl",get:function(){return c.default[this.buildEnv].apiUrl}},{key:"preDsmApiUrl",get:function(){return c.default[this.buildEnv].preDsmApiUrl}},{key:"preDsmProxyUrl",get:function(){return c.default[this.buildEnv].preDsmProxyUrl}},{key:"proxyUrl",get:function(){return c.default[this.buildEnv].proxyUrl}},{key:"dispatchUrl",value:function(u){return l.default.resolve(u,"sessions/dispatch")}},{key:"fetchAccessUrl",get:function(){return c.default[this.buildEnv].fetchAccessUrl}}]),s=new d;function d(){(0,i.default)(this,d),this.buildEnv="production"}t.default=s}).call(this)}).call(this,o("_process"))},{"../envs":1,"./constants/EnvEndpoints":234,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/interopRequireDefault":13,_process:149,url:182}],240:[function(o,a,t){(function(e){(function(){var r=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BrowserDetect=void 0,r(o("@babel/runtime/helpers/classCallCheck"))),r=r(o("@babel/runtime/helpers/createClass")),i=[{string:navigator.userAgent,subString:"Edge",identity:"MS Edge"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer"},{string:navigator.userAgent,subString:"Trident",identity:"Explorer"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Opera",identity:"Opera"},{string:navigator.userAgent,subString:"OPR",identity:"Opera"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"Safari",identity:"Safari"}],r=((0,r.default)(l,[{key:"searchCommonName",value:function(n){for(var c=0;c<n.length;c++){var d=n[c].string;if(this.versionSearchString=n[c].subString,d.indexOf(n[c].subString)!==-1)return n[c].identity}}},{key:"searchVersion",value:function(n){var c,d=n.indexOf(this.versionSearchString);if(d!==-1)return c=n.indexOf("rv:"),this.versionSearchString==="Trident"&&c!==-1?parseFloat(n.substring(c+3)):parseFloat(n.substring(d+this.versionSearchString.length+1))}}]),l);function l(){(0,s.default)(this,l),this.browser=this.searchCommonName(i)||"Other",this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"Unknown",e.env.NODE_ENV!=="production"&&(this.browser,this.version)}t.BrowserDetect=r,t.default=r}).call(this)}).call(this,o("_process"))},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/interopRequireDefault":13,_process:149}],241:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.htmlParseValidate=function(c,d){if(d&&typeof d=="string"||(0,s.default)(d)==="object"&&!Array.isArray(d)&&d.content&&typeof d.content=="string")return d;throw new i.DocValidationError("[parseAndValidate] Invalid content type for ".concat(c," app"))},t.idGen=void 0,t.quillParseValidate=function(f){if(f===null)return f;if(!f)throw new i.DocValidationError("Invalid quill delta - undefined");var d=f,u=void 0,f=(f.content&&(d=f.content),f.timestamp&&(u=(0,r.parseTimestamp)(f.timestamp)),d);try{typeof d=="string"&&(f=JSON.parse(d))}catch{throw new i.DocValidationError("Invalid quill delta - string is not a validate quilljs delta")}if(!f.ops)throw new i.DocValidationError('Invalid quill delta - parsed object is not a valid delta object. Missing "ops" field');if(Array.isArray(f.ops))return{content:f,timestamp:u};throw new i.DocValidationError('Invalid quill delta - parsed object is not a valid delta object. "ops" field is not an array')},e(o("@babel/runtime/helpers/typeof"))),i=o("../services/errors"),r=o("./utils");function l(){return"".concat(++n)}var n;n=0,t.idGen=l},{"../services/errors":254,"./utils":244,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":22}],242:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=o("@babel/runtime/helpers/typeof"),i=(Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BrowserDetect",{enumerable:!0,get:function(){return l.default}}),t.default=void 0,Object.defineProperty(t,"polyfill",{enumerable:!0,get:function(){return r.default}}),t.utils=void 0,function(c,d){if(!d&&c&&c.__esModule)return c;if(c===null||s(c)!=="object"&&typeof c!="function")return{default:c};if(d=n(d),d&&d.has(c))return d.get(c);var u,f={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(u in c){var m;u!=="default"&&Object.prototype.hasOwnProperty.call(c,u)&&((m=g?Object.getOwnPropertyDescriptor(c,u):null)&&(m.get||m.set)?Object.defineProperty(f,u,m):f[u]=c[u])}return f.default=c,d&&d.set(c,f),f}(o("./utils"))),r=(t.utils=i,e(o("./polyfill"))),l=e(o("./browserdetect"));function n(c){if(typeof WeakMap!="function")return null;var d=new WeakMap,u=new WeakMap;return(n=function(f){return f?u:d})(c)}e={utils:i,polyfill:r.default,BrowserDetect:l.default},t.default=e},{"./browserdetect":240,"./polyfill":243,"./utils":244,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":22}],243:[function(o,a,t){function e(){window.crypto||(window.crypto=window.msCrypto),typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(s,i){if(s==null)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(s),l=1;l<arguments.length;l++){var n=arguments[l];if(n!=null)for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(r[c]=n[c])}return r},writable:!0,configurable:!0}),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(s){s.hasOwnProperty("prepend")||Object.defineProperty(s,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var i=Array.prototype.slice.call(arguments),r=document.createDocumentFragment();i.forEach(function(l){var n=l instanceof Node;r.appendChild(n?l:document.createTextNode(String(l)))}),this.insertBefore(r,this.firstChild)}})})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.polyfill=e,t.default=e},{}],244:[function(o,a,t){(function(e){(function(){var s=o("@babel/runtime/helpers/interopRequireDefault"),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.Profile=function(){var w,O;return{start:function(){return w=Date.now()},end:function(){return O=Date.now()},duration:function(){return w&&O?O-w:-1}}},t.attachEventHandlers=function(w){for(var O in w){var I,L,M;w.hasOwnProperty(O)&&(O=w[O],I=O.target,L=O.event,M=O.handlerFn,O=O.useCapture,I&&I.addEventListener&&L&&M&&I.addEventListener(L,M,O))}},t.backoff=void 0,t.bgPageReload=function(){R()&&window.chrome.runtime.reload()},t.cancelInterval=function(w){b(w)},t.chromeBgError=function(){return window.chrome&&window.chrome.runtime&&window.chrome.runtime.lastError},t.clearProperty=function(w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&delete w[O]},t.createTimer=function(w,O){function I(){L.called=!0,w()}var L={firetime:O+ +new Date,called:!1,canceled:!1,callback:w};return L.extend=function(M){return L.called||L.canceled?!1:(clearTimeout(L.timeout),L.firetime+=M,M=L.firetime-new Date,M<0&&(M=0),L.timeout=setTimeout(I,M),L)},L.cancel=function(){L.canceled=!0,clearTimeout(L.timeout)},L.timeout=setTimeout(I,O),L},t.debugError=function(){if(e.env.NODE_ENV!=="production"){for(var w=arguments.length,O=new Array(w),I=0;I<w;I++)O[I]=arguments[I];console.error(O),console.trace()}},t.extendClass=function(w,O){w.prototype=Object.create(O.prototype),Object.defineProperty(w.prototype,"constructor",{enumerable:!1,value:w,writable:!0}),w.prototype.super=function(){for(var I=arguments.length,L=new Array(I),M=0;M<I;M++)L[M]=arguments[M];O.call.apply(O,[this].concat(L))}},t.findScrollParent=function(w,O){if(w.ownerDocument!==document)return w.ownerDocument.scrollingElement;var I=getComputedStyle(w),L=I.position==="absolute",M=O?/(auto|scroll|hidden)/:/(auto|scroll)/;if(I.position==="fixed")return w.ownerDocument&&w.ownerDocument.body;for(var A=w;A=A.parentElement;)if(I=getComputedStyle(A),(!L||I.position!=="static")&&M.test(I.overflow+I.overflowY+I.overflowX))return A;return w.ownerDocument&&w.ownerDocument.body},t.formatDate=function(w){if(w&&(w=new Date(w),w.toString()!=="Invalid Date"))return x[w.getMonth()]+" "+w.getDate()+", "+w.getFullYear()},t.formatNumber=function(w){return w.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},t.formatTimestamp=function(w){if(w&&(w=new Date(w),w.toString()!=="Invalid Date"))return x[w.getMonth()]+" "+w.getDate()+", "+w.getFullYear()+" "+w.toLocaleTimeString()},t.get=function(w,O,I){var L=new XMLHttpRequest;L.onreadystatechange=function(){var M;L.readyState===4&&(L.status===200?(M=JSON.parse(L.responseText),O(M)):I(L.status))},L.open("GET",w,!0),L.send()},t.getBrowser=function(){return R()?"chrome":window.navigator.userAgent.indexOf("Firefox")!==-1?"firefox":/^((?!chrome).)*safari/i.test(navigator.userAgent)?"safari":"other"},t.getContentLengthInBytes=function(w){return new Blob([w]).size},t.getKeyfromValue=function(w,O){for(var I in w)if(w.hasOwnProperty(I)&&w[I]===O)return I},t.getParameterByName=function(w,O){return O?(w=w.replace(/[\[\]]/g,"\\$&"),w=new RegExp("[?&]"+w+"(=([^&#]*)|&|#|$)").exec(O),w?w[2]?decodeURIComponent(w[2].replace(/\+/g," ")):"":null):null},t.getProtocol=function(){return typeof window>"u"?"https:":window.location.protocol},t.getRandomIntInclusive=function(w,O){return Math.floor(Math.random()*(O-w+1))+w},t.getStyle=function(w,O){var I=(w.ownerDocument||document).defaultView;{if(I&&I.getComputedStyle)return O=O.replace(/([A-Z])/g,"-$1").toLowerCase(),I.getComputedStyle(w,null).getPropertyValue(O);var L,M;if(w.currentStyle)return O=O.replace(/\-(\w)/g,function(A,k){return k.toUpperCase()}),I=w.currentStyle[O],/^\d+(em|pt|%|ex)?$/i.test(I)?(O=I,L=w.style.left,M=w.runtimeStyle.left,w.runtimeStyle.left=w.currentStyle.left,w.style.left=O||0,O=w.style.pixelLeft+"px",w.style.left=L,w.runtimeStyle.left=M,O):I}},t.getUrl=void 0,t.guid=function(){return _()+_()+"-"+_()+"-"+_()+"-"+_()+"-"+_()+_()+_()},t.hideOverflow=function(w){w.style.overflow="hidden"},t.interval=b,t.isFunction=void 0,t.isGmail=function(w){{var O;if(w.location)return O=w.location.host==="mail.google.com",w=w.querySelector("iframe#js_frame")&&w.querySelector("iframe#sound_frame"),O||w}},t.isNullOrWhitespace=function(w){return w===void 0||w==null||w.toString().replace(/\s/g,"").length<1},t.isString=function(w){return(0,i.default)(w)==="string"},t.isStringOrNumber=function(w){var O=(0,i.default)(w);return O==="string"||O==="number"&&!isNaN(w)},t.isValidEmail=function(w){return/^[-!#$%&'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#$%&'*+\\/0-9=?A-Z^_`a-z{|}~]+\.[-!#$%&'*+\\./0-9=?A-Z^_`a-z{|}~]+$/.test(w)},t.isValidPassword=function(w){return/^[a-zA-Z0-9@#$&*^%!+=\/\\[\]|?.,<>)(;:'"~`{}_-]{7,15}$/.test(w)},t.isValidURL=function(w){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(w)},t.keyBy=void 0,t.ownify=function(w){return Object.keys(Object.getPrototypeOf(w)).reduce(function(O,I){return Object.assign(O,(0,r.default)({},I,w[I]))},Object.assign({},w))},t.parseAndValidate=function(w,O){if(g.includes(w))return w==="quilljs"?(0,d.quillParseValidate)(O):(0,d.htmlParseValidate)(w,O);throw new c.DocValidationError("[parseAndValidate] invalid app type")},t.parseDimStyle=function(w){return w?(w=w.trim(),w=parseFloat(w.substring(0,w.length-2)),!isNaN(w)&&isFinite(w)?w:null):null},t.parseTimestamp=function(w){var O=w;try{if(typeof(O=typeof w=="string"?parseInt(w):O)=="number"&&!function(I){return I instanceof Date&&!isNaN(I)}(new Date(O)))throw new Error}catch{return console.error("[codox] expects a numerical timestamp, but got ".concat((0,i.default)(w))),null}return O},t.pause=void 0,t.randomColor=function(){var w=["#d73d32","#7e3794","#4285f4","#67ae3f","#d61a7f","#ff4080"];return w[Math.floor(Math.random()*w.length)]},t.retry=void 0,t.setTabId=function(){window.sessionStorage&&window.sessionStorage.setItem("_cdxTabId",l.default.v4())},t.timeout=function w(O,I){{var L,M;I&&((M=(L=w.timers||{})[O])&&(clearTimeout(M),delete L[O]),function(){var A=setTimeout(function(){O()},I);L[O]=A}())}},t.xhrGet=function(w,O,I){return v(w,"get",O,I)},t.xhrPost=function(w,O,I){return v(w,"POST",O,I)},t.xhrRequest=v,s(o("@babel/runtime/helpers/typeof"))),r=s(o("@babel/runtime/helpers/defineProperty")),l=s(o("uuid")),n=o("whatwg-fetch"),c=o("../services/errors"),d=o("./helpers");function u(w,O){var I,L=Object.keys(w);return Object.getOwnPropertySymbols&&(I=Object.getOwnPropertySymbols(w),O&&(I=I.filter(function(M){return Object.getOwnPropertyDescriptor(w,M).enumerable})),L.push.apply(L,I)),L}function f(w){for(var O=1;O<arguments.length;O++){var I=arguments[O]!=null?arguments[O]:{};O%2?u(Object(I),!0).forEach(function(L){(0,r.default)(w,L,I[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(I)):u(Object(I)).forEach(function(L){Object.defineProperty(w,L,Object.getOwnPropertyDescriptor(I,L))})}return w}var g=s(o("../constants/Integrations")).default.integrations;function m(w){return new Promise(function(O){return setTimeout(O,w)})}function h(w){var O=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,I=2<arguments.length?arguments[2]:void 0;return I().catch(function(L){return 1<w?h(w-1,O+1,I):Promise.reject(L)})}t.isFunction=function(w){return w&&({}.toString.call(w)==="[object Function]"||{}.toString.call(w)==="[object AsyncFunction]")},t.getUrl=function(){return window&&window.location&&window.location.href||""},t.pause=m,t.retry=h,t.backoff=function w(O){var I=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,L=2<arguments.length?arguments[2]:void 0,M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:500,A=4<arguments.length&&arguments[4]!==void 0?arguments[4]:5e3,k=5<arguments.length?arguments[5]:void 0;return L().catch(function(J){return k&&!k(J)?J?Promise.reject(J):Promise.reject((0,c.errorFactory)(c.RETRY_STOPPED)):1<O?(G=Math.min(2*M,A),m(M).then(function(){return w(O-1,I+1,L,G,A,k)})):Promise.reject(J);var G})};function v(w,O,I,L){return L=L?{Authorization:"Bearer "+L}:{},O={method:O,headers:Object.assign({},L,{"Content-Type":"application/json"}),body:JSON.stringify(I)},(0,n.fetch)(w,O)}function b(w,O){var I=b.timers=b.timers||{},L=I[w];if(L||O){if(L&&!O)return clearTimeout(L),void delete I[w];A()}function M(){A(),w()}function A(){var k=setTimeout(M,O);I[w]=k}}function _(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function R(){return!!window.chrome}t.keyBy=function(w,O){return(w||[]).reduce(function(I,L){return f(f({},I),{},(0,r.default)({},O?L[O]:L,L))},{})};var x=["January","February","March","April","May","June","July","August","September","October","November","December"]}).call(this)}).call(this,o("_process"))},{"../constants/Integrations":235,"../services/errors":254,"./helpers":241,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":22,_process:149,uuid:187,"whatwg-fetch":193}],245:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.NO_ACCESS=void 0,t.isNoAccess=function(n){return n===r},t.validateForceSyncArgs=function(n,c){switch(c){case"tinymce":case"froala":if(typeof n!="string")throw new Error("[codox] forceSync() received an argument that is not a valid html string");return;case"quilljs":if(n&&(n.ops===null||Array.isArray(n.ops)&&n.ops.every(function(d){return(0,s.default)(d)==="object"&&d&&(d.insert||d.delete||d.retain)})))return;throw new Error("[codox] forceSync() received an argument that is not a Quilljs delta");default:throw new Error("[codox] unrecongized API: ".concat(c))}},t.validateTimestamp=function(n,c,d){if(!this.appAdapter)throw new i.DocValidationError("[codox] [initAsync] this.appAdapter is null",{appAdapter:this.appAdapter});if(!c&&n||!n&&c)return"[codox][".concat(this.cid,"][").concat(this.currentRteId,"]((").concat(this.clientState,") [initAsync] no ts info"),void(l(c||n)&&this.appAdapter.setContent(d));if(!n||!c)throw new i.DocValidationError("[codox][".concat(this.cid,"][").concat(this.currentRteId,"]((").concat(this.clientState,") [initAsync] no ts info"),{timestamp:n,initTs:c});if(!l(n)||!l(c))throw new i.DocValidationError("[codox][".concat(this.cid,"][").concat(this.currentRteId,"]((").concat(this.clientState,") [initAsync] received timestamp and initial timestamp need to be a numbers"),{timestamp:n,initTs:c});if(c<n)"[codox][".concat(this.cid,"][").concat(this.currentRteId,"]((").concat(this.clientState,") [initAsync] set content diff ts"),this.appAdapter.setContent(d);else{if(n<c)throw new i.DocValidationError("[codox][".concat(this.cid,"][").concat(this.currentRteId,"]((").concat(this.clientState,") [initAsync] received timestamp less than initial timestamp"),{timestamp:n,initTs:c});n===c&&"[codox][".concat(this.cid,"][").concat(this.currentRteId,"]((").concat(this.clientState,") [initAsync] skip set content same ts")}},t.validateToken=void 0,e(o("@babel/runtime/helpers/typeof"))),i=o("../services/errors"),r="no_access";t.NO_ACCESS=r;var l=function(n){return typeof n=="number"&&!isNaN(n)};t.validateToken=function(n){return n&&typeof n=="string"&&0<n.length}},{"../services/errors":254,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":22}],246:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=o("@babel/runtime/helpers/typeof"),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LocalizationContext=void 0,e(o("@babel/runtime/helpers/slicedToArray"))),r=function(f,g){if(!g&&f&&f.__esModule)return f;if(f===null||s(f)!=="object"&&typeof f!="function")return{default:f};if(g=c(g),g&&g.has(f))return g.get(f);var m,h={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(m in f){var b;m!=="default"&&Object.prototype.hasOwnProperty.call(f,m)&&((b=v?Object.getOwnPropertyDescriptor(f,m):null)&&(b.get||b.set)?Object.defineProperty(h,m,b):h[m]=f[m])}return h.default=f,g&&g.set(f,h),h}(o("react")),l=e(o("prop-types")),n=e(o("./availableLangs"));function c(f){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(c=function(h){return h?m:g})(f)}function d(h){var g=h.children,m=(h=h.localizationObject).localizations,h=(h=h.defaultLanguage)===void 0?n.default.en:h,v=m.getLanguage(),b=Object.values(n.default).includes(v),v=((R=Object.values(n.default).includes(h))&&h!==v&&m.setLanguage(h),b&&R||m.setLanguage(n.default.en),(0,r.useState)(m.getLanguage())),b=(h=(0,i.default)(v,2))[0],_=h[1],R={currentLang:b,changeCurrentLang:function(x){m.setLanguage(x),_(m.getLanguage())},labelStrings:m.labelStrings};return r.default.createElement(u.Provider,{value:R},g)}var u=r.default.createContext({currentLang:"",localizations:{},labelStrings:{},changeCurrentLang:function(){}});t.LocalizationContext=u,d.propTypes={children:l.default.oneOfType([l.default.arrayOf(l.default.node),l.default.node]).isRequired,localizationObject:l.default.object.isRequired},t.default=d},{"./availableLangs":247,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/slicedToArray":20,"@babel/runtime/helpers/typeof":22,"prop-types":153,react:171}],247:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={ar:"ar",de:"de",en:"en",es:"es",fr:"fr",it:"it",ko:"ko",ru:"ru",nl:"nl",pt:"pt",zh:"zh"}},{}],248:[function(o,a,t){var s=o("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t.localizations=t.default=void 0;var r=s(o("@babel/runtime/helpers/defineProperty")),i=s(o("react-localization")),e=s(o("./availableLangs")),s=s(o("./localizedLabelStrings")),i=new i.default(((0,r.default)(o={},e.default.ar,{labelStrings:s.default.ar}),(0,r.default)(o,e.default.de,{labelStrings:s.default.de}),(0,r.default)(o,e.default.en,{labelStrings:s.default.en}),(0,r.default)(o,e.default.es,{labelStrings:s.default.es}),(0,r.default)(o,e.default.fr,{labelStrings:s.default.fr}),(0,r.default)(o,e.default.it,{labelStrings:s.default.it}),(0,r.default)(o,e.default.ko,{labelStrings:s.default.ko}),(0,r.default)(o,e.default.nl,{labelStrings:s.default.nl}),(0,r.default)(o,e.default.ru,{labelStrings:s.default.ru}),(0,r.default)(o,e.default.pt,{labelStrings:s.default.pt}),(0,r.default)(o,e.default.zh,{labelStrings:s.default.zh}),o)),r={localizations:t.localizations=i};t.default=r},{"./availableLangs":247,"./localizedLabelStrings":249,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13,"react-localization":168}],249:[function(o,a,t){var s=o("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=s(o("@babel/runtime/helpers/defineProperty")),s=s(o("./availableLangs"));(0,e.default)(o={},s.default.ar,{joinedTimeAgo:function(i){return"انضم ".concat(i," قبل")},justJoined:"انضم للتو",hasNotJoined:"لم ينضم"}),(0,e.default)(o,s.default.de,{joinedTimeAgo:function(i){return"beigetreten vor ".concat(i)},justJoined:"gerade eben beigetreten",hasNotJoined:"ist nicht beigetreten"}),(0,e.default)(o,s.default.en,{joinedTimeAgo:function(i){return"joined ".concat(i," ago")},justJoined:"just joined",hasNotJoined:"has not joined"}),(0,e.default)(o,s.default.es,{joinedTimeAgo:function(i){return"se unió hace ".concat(i)},justJoined:"acaba de unirse",hasNotJoined:"no se ha unido"}),(0,e.default)(o,s.default.fr,{joinedTimeAgo:function(i){return"il y a ".concat(i," ans")},justJoined:"vient de rejoindre",hasNotJoined:"n'a pas rejoint"}),(0,e.default)(o,s.default.it,{joinedTimeAgo:function(i){return"iscritto ".concat(i," fa")},justJoined:"appena iscritto",hasNotJoined:"non ha aderito"}),(0,e.default)(o,s.default.ko,{joinedTimeAgo:function(i){return"".concat(i," ì „ì— ê°€ìž…")},justJoined:"방금 합류",hasNotJoined:"가입하지 않았습니다"}),(0,e.default)(o,s.default.nl,{joinedTimeAgo:function(i){return"".concat(i," geleden lid geworden")},justJoined:"net bijgekomen",hasNotJoined:"is niet lid geworden"}),(0,e.default)(o,s.default.ru,{joinedTimeAgo:function(i){return"приÑоединилÑÑ ".concat(i," назад")},justJoined:"только приÑоединилÑÑ",hasNotJoined:"не приÑоединилÑÑ"}),(0,e.default)(o,s.default.pt,{joinedTimeAgo:function(i){return"juntou-se há ".concat(i)},justJoined:"acabou de entrar",hasNotJoined:"não entrou"}),(0,e.default)(o,s.default.zh,{joinedTimeAgo:function(i){return"åŠ å…¥ ".concat(i," å‰")},justJoined:"å‰›åŠ å…¥",hasNotJoined:"é‚„æ²’æœ‰åŠ å…¥"}),t.default=o},{"./availableLangs":247,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13}],250:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WRITE=t.READ=t.COMMENT_ONLY=void 0,t.list=function(){return s},t.validate=function(i){return s.includes(i)};var e="commentOnly",s=[t.READ="read",t.WRITE="write",t.COMMENT_ONLY=e]},{}],251:[function(c,a,t){var e=c("@babel/runtime/helpers/typeof"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,function(f,g){if(!g&&f&&f.__esModule)return f;if(f===null||e(f)!=="object"&&typeof f!="function")return{default:f};if(g=r(g),g&&g.has(f))return g.get(f);var m,h={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(m in f){var b;m!=="default"&&Object.prototype.hasOwnProperty.call(f,m)&&((b=v?Object.getOwnPropertyDescriptor(f,m):null)&&(b.get||b.set)?Object.defineProperty(h,m,b):h[m]=f[m])}return h.default=f,g&&g.set(f,h),h}(c("@sentry/browser"))),i=c("./enver");function r(f){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(r=function(h){return h?m:g})(f)}var l=!1,n=[],c=(s.defaultIntegrations.forEach(function(f){f.name!=="GlobalHandlers"&&n.push(f)}),n.push(new s.Integrations.GlobalHandlers({onerror:!1,onunhandledrejection:!1})),{release:"2.5.2",dsn:"https://7aa9cc7f8c0249ec83b371fc03f659b2@sentry.io/2399185",ignoreError:{ignoreErrors:["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage","Script error.","null is not an object (evaluating 'e.scrollTop')","Cannot read property '_cacheOwnPosition' of undefined","Cannot read property 'scrollTop' of null","ResizeObserver loop completed with undelivered notifications.","a[b].target.className.indexOf is not a function","Non-Error exception captured with keys: ECODE, client_error, err, extra, logged","UnknownError: Unexpected internal error.","ResizeObserver loop limit exceeded","Cannot read property 'getBBox' of null","Timeout has occurred","InvalidAccessError: Entry already exists.","Object doesn't support property or method 'captureStackTrace'","Cannot read property 'appendChild' of null","Unable to get property 'ECODE' of undefined or null reference","leaf.position is not a function","TypeError: Cannot read property 'map' of undefined","You do not have access to this task"],ignoreUrls:[/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i]},defaultIntegrations:!1,environment:"production",beforeBreadcrumb:function(f,g){return f.category==="ui.click"&&(g=g.event.target).ariaLabel&&(f.message=g.ariaLabel),f},beforeSend:function(f){if(f.exception&&f.exception.values){var g=f.exception.values[0];if(g&&g.mechanism&&g.mechanism.type&&g.mechanism.type==="instrument")return null}return f}}),c=new s.BrowserClient(c),d=(0,s.getCurrentHub)(),u=(d.bindClient(c),d.configureScope(function(f){f.setTag("source","codox")}),{});s=d.withScope.bind(d),c=d.addBreadcrumb.bind(d),t.default={log:function(f){f&&d.addBreadcrumb({message:f,level:"info"})},captureException:function(f){var g;f&&(l&&console.error(f),(g=f.message)&&(u[g]=u[g]&&u[g]+1||1,2<u[g])||i.isDev||d.captureException(f))},configureScope:function(){d.configureScope.apply(d,arguments)},setTag:function(){d.setTag.apply(d,arguments)},withScope:s,addBreadcrumb:c,setDebug:function(f){l=f}}},{"./enver":239,"@babel/runtime/helpers/typeof":22,"@sentry/browser":46}],252:[function(o,a,t){var I=o("@babel/runtime/helpers/interopRequireDefault"),e=o("@babel/runtime/helpers/typeof"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,I(o("@babel/runtime/regenerator"))),i=I(o("@babel/runtime/helpers/asyncToGenerator")),r=I(o("@babel/runtime/helpers/classCallCheck")),l=I(o("@babel/runtime/helpers/createClass")),n=I(o("@babel/runtime/helpers/defineProperty")),c=I(o("./../services/SessionService")),d=I(o("../wave.js")),u=function(M,A){if(!A&&M&&M.__esModule)return M;if(M===null||e(M)!=="object"&&typeof M!="function")return{default:M};if(A=_(A),A&&A.has(M))return A.get(M);var k,J={},G=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(k in M){var U;k!=="default"&&Object.prototype.hasOwnProperty.call(M,k)&&((U=G?Object.getOwnPropertyDescriptor(M,k):null)&&(U.get||U.set)?Object.defineProperty(J,k,U):J[k]=M[k])}return J.default=M,A&&A.set(M,J),J}(o("./../actions")),f=(o("./../constants"),o("../lib")),g=o("./errors"),m=I(o("../sentry")),h=I(o("../stores/SessionStore")),v=I(o("../enver")),b=o("../access/AccessPermissions");function _(M){if(typeof WeakMap!="function")return null;var A=new WeakMap,k=new WeakMap;return(_=function(J){return J?k:A})(M)}var R=d.default.Bootstrap,x=d.default.AppAPI;d.default.Errors;function w(M){for(var A in M)Object.prototype.hasOwnProperty.call(M,A)&&delete M[A]}(0,l.default)(L,[{key:"setState",value:function(M){m.default.log("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[setState] from ").concat(this.state," to ").concat(M)),this.state=M}},{key:"setAdapter",value:function(M){this.appAdapter=M}},{key:"setInitContent",value:function(M){this.content=M,this.stringifyContent=JSON.stringify(M)}},{key:"isStopped",value:function(){return this.state==="STOP"}},{key:"isStarting",value:function(){return this.state==="STARTING"}},{key:"isStarted",value:function(){return this.state==="STARTED"}},{key:"updatePermission",value:function(M){M=M.level,this.config.permission.level=M,this.appAdapter&&this.appAdapter.setPermission(M),this.bs&&this.bs.sp(M)}},{key:"subscribePromise",value:(O=(0,i.default)(s.default.mark(function M(A){var k,J=this;return s.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return"[rte][".concat((k=this).uuid,"][").concat(this.rteId,"](").concat(this.state,")[subscribe] subscribing"),this.bs.j(A),G.abrupt("return",new Promise(function(U,D){return J.bs.b((W=(0,i.default)(s.default.mark(function Q(E,B){var $,C,N;return s.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!B){Y.next=9;break}if($=B.f,C=B.r,N=B.m,"[rte][".concat(k.uuid,"][").concat(k.rteId,"](").concat(k.state,")[subscribe] error f=").concat($," r=").concat(C," m=").concat(N),N)return Y.abrupt("return",D((0,g.errorFactory)(N)));Y.next=8;break;case 8:return Y.abrupt("return",D(B));case 9:return Y.abrupt("return",U(E));case 10:case"end":return Y.stop()}},Q)})),function(Q,E){return W.apply(this,arguments)}));var W}));case 5:case"end":return G.stop()}},M,this)})),function(M){return O.apply(this,arguments)})},{key:"runWithRetry",value:function(){return f.utils.backoff(1e3,0,this.run,200,5e3,this.shouldRetry)}},{key:"forceSync",value:function(){var M;m.default.log("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,") force sync called")),this.bs?(M=this.bs).fs.apply(M,arguments):m.default.captureException(new Error("force sync called, null"))}},{key:"updateVersion",value:function(){for(var M=arguments.length,A=new Array(M),k=0;k<M;k++)A[k]=arguments[k];var J=A[0];console.log("[codox] Updating doc timestamp",J),this.bs||m.default.captureException(new Error("update version called, null"))}},{key:"emit",value:function(M){var A=this.config.emitEvent;try{var k=M.type,J=M.data;switch("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[emit] new event"),k){case"cc":J.source&&(J.source=J.source==="l"?"local":"remote"),A({type:"content_changed",data:J});break;case"sc":A({type:"set_content"});break;case"us":var G=M.users.map(function(D){var D=D.userinfo,W=D.jointime,Q=D.name,E=D.email,B=D.avatar;return{name:Q,id:D.id,email:E,avatar:B,joinTime:new Date(W)}});m.default.log("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,") users ")+JSON.stringify(G)),A({type:"users_update",data:G});break;case"er":A({type:"error",data:M.data});break;case"info":A({type:"info",data:M.data})}}catch(U){v.default.isProd||console.error("[rte][".concat(this.uuid,"][emitEvent]"),U)}}},{key:"dispatchRequest",value:function(){var M=this.config,A=M.apiKey,k=M.domain,J=M.docId,G=M.user;return{apiKey:A,domain:k===void 0?null:k,docId:J,app:M.app,user:G.name,color:G.color}}},{key:"listenForWaveEvents",value:function(){var M,A=this.appAPI;if(!A)throw new Error("appAPI not defined");for(M in"[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[listenForWaveEvents] in events count ").concat(A._eventsCount),this.apiListenersMap)this.apiListenersMap.hasOwnProperty(M)&&A.on(M,this.apiListenersMap[M]);"[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[listenForWaveEvents] out events count ").concat(A._eventsCount)}},{key:"unlistenWaveEvents",value:function(){var M,A=this.appAPI;if(!A)throw new Error("appAPI not defined");for(M in"[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[unlistenForWaveEvents] in events count ").concat(A._eventsCount),this.apiListenersMap)this.apiListenersMap.hasOwnProperty(M)&&A.removeListener(M,this.apiListenersMap[M]);"[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[unlistenForWaveEvents] out events count ").concat(A._eventsCount)}},{key:"unlisten",value:function(){this.appAPI&&("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[unlisten] unsubscribing from appAPI"),this.unlistenWaveEvents(this.appAPI),delete this.appAPI)}},{key:"stop",value:function(){m.default.log("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,") stop called")),"[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[stop] stop in progress"),this.setState("STOP"),this.unlisten(),w(this.config),this.config=null,this.bs&&(m.default.log("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,") invoking wave stop")),"[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[stop] calling wave.stop"),this.bs.c(),"[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[stop] deleting wave object"),m.default.log("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,") delete wave object")),delete this.bs),"[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[stop] wave.stop returns")}},{key:"clean",value:function(){m.default.log("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[clean] clean in progress")),this.unlisten(),w(this.config),this.config=null,this.bs&&(m.default.log("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[clean] invoking core lib clean")),this.bs.cc(),m.default.log("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[clean] deleting wave object")),delete this.bs),m.default.log("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[clean] clean done"))}},{key:"subscribeRequest",value:function(){var D=this.config,M=D.rteId,A=D.app,k=D.editorInstance,E=D.user,J=D.docId,Q=D.prevRteId,G=D.permission,U=D.showCursor,D=(D.showPointer,h.default.getState(Q)),Q=this.session,W=Q.session,Q=Q.token,E=Object.assign({},E,{color:W.color,dispatchToken:W.dispatchToken}),B=f.utils.getUrl(),$=this._getSMEndpoint(A);return{ac:!0,cid:M,app:A,user:E,editorInstance:k,showCursor:U,showPointer:!0,appAPI:this.appAPI,datatype:"rt",root:this.relativeTo,proxy:$,session:W,sub:D,token:Q,docId:J,url:B,founder:!1,logger:this.logger,browser:new f.BrowserDetect().browser,Sentry:m.default,initContent:this.content,ver:"2.5.2",permission:G.level,env:"production"}}}]);var O,I=L;function L(M){var A=this;(0,r.default)(this,L),(0,n.default)(this,"load",(0,i.default)(s.default.mark(function k(){return s.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[load] called"),A.isStopped())throw new g.InvalidStateError("[rte][".concat(A.rteId,"](").concat(A.state,") Already in ").concat(A.state));J.next=3;break;case 3:J.prev=3,A.listenForWaveEvents(A.appAPI),A.appAdapter.attachEventListeners&&A.appAdapter.attachEventListeners(A.bs),"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[load] complete"),J.next=13;break;case 9:throw J.prev=9,J.t0=J.catch(3),"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[error] "),J.t0,J.t0;case 13:case"end":return J.stop()}},k,null,[[3,9]])}))),(0,n.default)(this,"subscribe",(0,i.default)(s.default.mark(function k(){var J,G,U,D;return s.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(W.prev=0,"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[subscribe] called"),A.isStopped())throw new g.InvalidStateError("[rte][".concat(A.rteId,"](").concat(A.state,") Already in ").concat(A.state));W.next=4;break;case 4:return J=A.config.rteId,G=A.session.session,U=A.subscribeRequest(),"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[subscribe] request"),W.next=10,A.subscribePromise(U);case 10:if(D=W.sent,m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") site ").concat(D)),A.isStopped())throw new g.InvalidStateError("[rte][".concat(A.rteId,"](").concat(A.state,") Already in ").concat(A.state));W.next=14;break;case 14:if(D){W.next=16;break}throw new g.SubscribeError("subscribe failed");case 16:return A.setState("STARTED"),m.default.setTag("siteId",D),m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") site ").concat(D)),u.sessionSubscribeSuccess({id:J,sessionId:G.sid,siteId:D}),W.abrupt("return",!0);case 23:if(W.prev=23,W.t0=W.catch(0),W.t0.code===g.SESSION_FULL)return A.emit({type:"er",data:W.t0}),W.abrupt("return");W.next=28;break;case 28:throw"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[subscribe]"),W.t0,W.t0;case 30:case"end":return W.stop()}},k,null,[[0,23]])}))),(0,n.default)(this,"dispatch",(0,i.default)(s.default.mark(function k(){var J,G,U,D,W;return s.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(`
|
|
146
|
+
[rte][`.concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[dispatch] called"),A.isStopped())throw new g.InvalidStateError("[rte][".concat(A.rteId,"](").concat(A.state,") Already in ").concat(A.state));Q.next=3;break;case 3:if(A.config.token&&A.config.session)return A.session={token:A.config.token,session:A.config.session},Q.abrupt("return");Q.next=6;break;case 6:if(J=A.dispatchRequest(),U=A.config,G=U.rteId,U.session,"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[dispatch] "),A.config,Q.prev=9,"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[dispatch] "),U=null,!A.config.session){Q.next=17;break}"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[dispatch] using prev dispatch res"),A.config.session,U=Object.assign({},A.config.session),Q.next=21;break;case 17:return Q.next=19,c.default.dispatch(J);case 19:U=Q.sent,"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[dispatch] getting new dispatch ");case 21:if(A.isStopped())throw new g.InvalidStateError("[rte][".concat(A.rteId,"](").concat(A.state,") Already in ").concat(A.state));Q.next=23;break;case 23:"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") dispatch success"),D=U.token,W=U.session,A.session={token:D,session:W},m.default.setTag("sessionId",W.sid),m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") session ").concat(W.sid)),u.sessionDispatchSuccess({id:G,data:U}),Q.next=35;break;case 31:throw Q.prev=31,Q.t0=Q.catch(9),"[rte][".concat(A.uuid,"] dispatch error"),Q.t0,Q.t0;case 35:case"end":return Q.stop()}},k,null,[[9,31]])}))),(0,n.default)(this,"shouldRetry",function(k){return m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") isStopped = ").concat(A.isStopped()," online=").concat(navigator.onLine)),k.hasOwnProperty("reconnect")?k.reconnect:!["max_sessions_exceeded","authentication_error","subscription_expired","subscription_stopped","trial_expired","validation_error"].includes(k.message)&&!A.isStopped()&&navigator.onLine}),(0,n.default)(this,"run",(0,i.default)(s.default.mark(function k(){return s.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.prev=0,m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") getting session...")),J.next=4,A.dispatch();case 4:return m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") subscribing to session...")),J.next=7,A.subscribe();case 7:A.config.permission.level===b.PERMISSIONS_ENUM.WRITE&&A.appAdapter.enableEditor(),J.next=16;break;case 10:throw J.prev=10,J.t0=J.catch(0),m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") run error: ").concat(J.t0.message)),v.default.isProd||console.error(J.t0),A.bs&&A.bs.c(),J.t0;case 16:case"end":return J.stop()}},k,null,[[0,10]])}))),(0,n.default)(this,"start",(0,i.default)(s.default.mark(function k(){return s.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") start called"),A.isStarting())throw m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") Already in STARTING")),new g.InvalidStateError("[rte][".concat(A.rteId,"](").concat(A.state,") Already in ").concat(A.state));J.next=5;break;case 5:if(A.isStarted())throw m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") Already in STARTED")),new g.InvalidStateError("[rte][".concat(A.rteId,"](").concat(A.state,") Already in ").concat(A.state));J.next=8;break;case 8:if(A.isStopped())throw m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,") Already in STOP")),new g.InvalidStateError("[rte][".concat(A.rteId,"](").concat(A.state,") Already in ").concat(A.state));J.next=11;break;case 11:return A.setState("STARTING"),A.bs=new R,A.appAPI=new x(m.default),J.prev=14,J.next=17,A.load();case 17:return J.next=19,A.runWithRetry();case 19:return J.abrupt("return",A.session);case 22:throw J.prev=22,J.t0=J.catch(14),A.setState("STOP"),J.t0;case 26:return J.prev=26,J.finish(26);case 28:case"end":return J.stop()}},k,null,[[14,22,26,28]])}))),(0,n.default)(this,"handleCleanup",function(k,J){if("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[handleCleanup]"),A.config&&!A.isStopped()){var U=A.config,G=U.rteId,U=U.cleanup;if(k!==G){if(k=new Error("[rte][".concat(A.uuid,"] handleCleanup ").concat(k," !== ").concat(G)),v.default.isProd)return void m.default.captureException(k);throw k}var k=J.f,D=J.r,J=J.m;if(m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[handleCleanup] ").concat(k," ").concat(D," ").concat(J)),k===0)return A.clean(),D?(m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[handleCleanup] reconn. internal code: ").concat(J)),A.setState("STOP"),U(G,!!D)):(m.default.log("[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[handleCleanup] no reconn. internal code: ").concat(J)),A.setState("STOP"),U(G),"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[handleCleanup] in progress"),k=(0,g.errorFactory)(J),D=k.code,U=k.message,"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[handleCleanup] emitting event"),void A.emit({type:"er",data:{code:D,message:U}}));"[rte][".concat(A.uuid,"][handleCleanup] called but event does not appear to be an error")}}),(0,n.default)(this,"sessionMembersUpdate",function(k,J){A.isStopped()||k===(A.config&&A.config.rteId)&&(A.emit({type:"us",users:J}),u.sessionMembersUpdate({id:k,users:J}))}),(0,n.default)(this,"handleContentChanged",function(k,J){var G;A.isStopped()||(G=A.config&&A.config.rteId,"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[handleContentChanged] ").concat(k),k===G&&A.emit({type:"cc",data:J}))}),(0,n.default)(this,"handleNotify",function(k,J,G,U){A.isStopped()||k===(A.config&&A.config.rteId)&&J.f!==0&&"[rte][".concat(A.uuid,"][").concat(A.rteId,"](").concat(A.state,")[handleNotify]")}),(0,n.default)(this,"cursorUpdate",function(k,J){A.isStopped()||k===(A.config&&A.config.rteId)&&u.remoteCursorUpdate({id:k,cursors:J})}),(0,n.default)(this,"pointerUpdate",function(k,J){A.isStopped()||k===(A.config&&A.config.rteId)&&u.remotePointerUpdate({id:k,pointers:J})}),(0,n.default)(this,"enableUR",function(k){A.isStopped()||k===(A.config&&A.config.rteId)&&A.bs&&A.bs.d()}),(0,n.default)(this,"disableUR",function(k){A.isStopped()||k===(A.config&&A.config.rteId)&&A.bs&&A.bs.e()}),(0,n.default)(this,"serverCommand",function(k){A.isStopped()||A.config&&A.config.forcePermissionUpdate()}),(0,n.default)(this,"awarenessRepaint",function(){A.bs&&A.bs.awarenessRepaint()}),(0,n.default)(this,"_getSMEndpoint",function(k){var J=v.default.proxyUrl;return J=k==="quilljs"?v.default.preDsmProxyUrl:J}),this.logger={},this.config=M,this.session=null,this.bs=null,this.appAPI=null,this.uuid=M.cid,this.rteId=M.rteId,this.state="INIT",this.apiListenersMap={cw:this.handleCleanup,cc:this.handleContentChanged,us:this.sessionMembersUpdate,nu:this.handleNotify,uc:this.cursorUpdate,urcs:this.cursorUpdate,eu:this.enableUR,du:this.disableUR,up:this.pointerUpdate,sc:this.serverCommand},m.default.log("[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,") constructor")),"[rte][".concat(this.uuid,"][").concat(this.rteId,"](").concat(this.state,")[constructor] config"),this.apiListenersMap}t.default=I},{"../access/AccessPermissions":199,"../enver":239,"../lib":242,"../sentry":251,"../stores/SessionStore":257,"../wave.js":258,"./../actions":201,"./../constants":237,"./../services/SessionService":253,"./errors":254,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":22,"@babel/runtime/regenerator":25}],253:[function(o,a,t){function e(u){return s.apply(this,arguments)}var s,i=o("@babel/runtime/helpers/interopRequireDefault"),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(o("@babel/runtime/regenerator"))),l=i(o("@babel/runtime/helpers/asyncToGenerator")),n=i(o("./../enver")),c=o("./../lib"),d=o("./errors");o("whatwg-fetch").Response,s=(0,l.default)(r.default.mark(function u(f){var g,m,h,v,b,_;return r.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return v=function(){var x=(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).app,w=n.default.apiUrl;return x==="quilljs"&&(w=n.default.preDsmApiUrl),n.default.dispatchUrl(w)}(f),g=null,R.prev=3,R.next=6,c.utils.xhrPost(v,Object.assign({},f));case 6:return g=R.sent,m=g.status,h=g.ok,R.next=11,g.json();case 11:if(v=R.sent,b=v.error,_=v.data,h)return R.abrupt("return",Promise.resolve(_));R.next=16;break;case 16:if(b)return _=b.type,R.abrupt("return",Promise.reject(new d.DispatchError(_,m,b)));R.next=20;break;case 20:throw g;case 23:if(R.prev=23,R.t0=R.catch(3),R.t0 instanceof Error)return R.abrupt("return",Promise.reject(new d.DispatchError(R.t0.message)));R.next=27;break;case 27:if(g)return R.abrupt("return",Promise.reject(new d.DispatchError(g.statusText||"Unknown Error",g.status,null)));R.next=29;break;case 29:case"end":return R.stop()}},u,null,[[3,23]])})),t.default={dispatch:e}},{"./../enver":239,"./../lib":242,"./errors":254,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/regenerator":25,"whatwg-fetch":193}],254:[function(m,a,t){var N=m("@babel/runtime/helpers/interopRequireDefault"),Y=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SubscribeError=t.SilentError=t.SOCKET_FAILURE=t.SESSION_FULL=t.RTEError=t.RETRY_STOPPED=t.InvalidStateError=t.FetchError=t.FetchAccessError=t.DocValidationError=t.DispatchError=t.CLIENT_STOPPED=t.AccessValidationError=void 0,t.errorFactory=z,N(m("@babel/runtime/helpers/createClass"))),e=N(m("@babel/runtime/helpers/classCallCheck")),s=N(m("@babel/runtime/helpers/assertThisInitialized")),B=N(m("@babel/runtime/helpers/inherits")),i=N(m("@babel/runtime/helpers/possibleConstructorReturn")),r=N(m("@babel/runtime/helpers/getPrototypeOf")),N=N(m("@babel/runtime/helpers/wrapNativeSuper"));function l(P){var j=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,K=(0,r.default)(P);return V=j?(V=(0,r.default)(this).constructor,Reflect.construct(K,arguments,V)):K.apply(this,arguments),(0,i.default)(this,V)}}m=(0,N.default)(Error),(0,B.default)(f,m),c=l(f);var n,c,N=(0,Y.default)(f),d=((0,B.default)(u,N),n=l(u),(0,Y.default)(u));function u(P,j){return(0,e.default)(this,u),(P=n.call(this,P)).code=j,P}function f(P){return(0,e.default)(this,f),(P=c.call(this,P)).name=P.constructor.name,Error.captureStackTrace&&Error.captureStackTrace((0,s.default)(P),P.constructor),P}t.RTEError=d,(0,B.default)(h,N),g=l(h);var g,m=(0,Y.default)(h);function h(P,j,V){var K;return(0,e.default)(this,h),(K=g.call(this,P)).type=P,K.code=j,K.data=V,K}t.DispatchError=m,(0,B.default)(_,N),v=l(_);var v,b=(0,Y.default)(_);function _(P){return(0,e.default)(this,_),v.call(this,P)}t.SubscribeError=b,(0,B.default)(w,N),R=l(w);var R,x=(0,Y.default)(w);function w(P,j){return(0,e.default)(this,w),(P=R.call(this,P)).data=j,P}t.FetchError=x,(0,B.default)(L,N),O=l(L);var O,I=(0,Y.default)(L);function L(P,j){return(0,e.default)(this,L),(P=O.call(this,P)).content=j,P}t.DocValidationError=I,(0,B.default)(k,N),M=l(k);var M,A=(0,Y.default)(k);function k(P,j){return(0,e.default)(this,k),(P=M.call(this,P)).sentryDisabled=j||!1,P}t.InvalidStateError=A,(0,B.default)(U,N),J=l(U);var J,G=(0,Y.default)(U);function U(P,j){return(0,e.default)(this,U),(P=J.call(this,P)).content=j,P}t.AccessValidationError=G,(0,B.default)(Q,N),D=l(Q);var D,W=(0,Y.default)(Q);function Q(P,j){return(0,e.default)(this,Q),(P=D.call(this,P)).content=j,P}t.FetchAccessError=W,(0,B.default)($,N),E=l($);var E,B=(0,Y.default)($);function $(P){return(0,e.default)(this,$),(P=E.call(this,P)).sentryDisabled=!0,P}t.SilentError=B,t.CLIENT_STOPPED=1,t.SOCKET_FAILURE=5,t.RETRY_STOPPED=19,t.SESSION_FULL=17;var C={1:"client_stopped",3:"connection_failure",4:"session_join_failure",5:"socket_failure",6:"oversized_error",7:"content_sync_error",16:"session_timeout",17:"session_full",18:"seat_occupied",19:"retry_stopped"},N=z(17),Y=z(1),tt=z(19),F=z(5);function z(P){if(!P)throw new Error("error code missing ".concat(P));var j=C[P];if(j)return new d(j,P);throw new Error("error code ".concat(P," not mapped to message"))}t.default={errorFactory:z,DocValidationError:I,InvalidStateError:A,RTEError:d,DispatchError:m,SubscribeError:b,FetchError:x,AccessValidationError:G,FetchAccessError:W,SilentError:B,SessionFull:N,ClientStopped:Y,RetryStopped:tt,SocketFailure:F,CLIENT_STOPPED:1,RETRY_STOPPED:19,SOCKET_FAILURE:5,SESSION_FULL:17}},{"@babel/runtime/helpers/assertThisInitialized":4,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,"@babel/runtime/helpers/wrapNativeSuper":24}],255:[function(o,a,t){var u=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,u(o("@babel/runtime/helpers/classCallCheck"))),s=u(o("@babel/runtime/helpers/createClass")),i=u(o("@babel/runtime/helpers/inherits")),r=u(o("@babel/runtime/helpers/possibleConstructorReturn")),l=u(o("@babel/runtime/helpers/getPrototypeOf")),u=o("events"),n=o("./../dispatchers/AppDispatcher");function c(g){var m=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,v=(0,l.default)(g);return h=m?(h=(0,l.default)(this).constructor,Reflect.construct(v,arguments,h)):v.apply(this,arguments),(0,r.default)(this,h)}}o=u.EventEmitter,(0,i.default)(f,o),d=c(f),(0,s.default)(f,[{key:"subscribe",value:function(g){this._dispatchToken=(0,n.register)(g())}},{key:"dispatchToken",get:function(){return this._dispatchToken}},{key:"emitChange",value:function(){this.emit("CHANGE")}},{key:"addChangeListener",value:function(g){this.on("CHANGE",g)}},{key:"removeChangeListener",value:function(g){this.removeListener("CHANGE",g)}},{key:"removeAllChangeListeners",value:function(){this.removeAllListeners("CHANGE")}}]);var d,u=f;function f(){return(0,e.default)(this,f),d.apply(this,arguments)}t.default=u},{"./../dispatchers/AppDispatcher":238,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,events:133}],256:[function(L,a,t){var e=L("@babel/runtime/helpers/interopRequireDefault"),s=L("@babel/runtime/helpers/typeof"),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(L("@babel/runtime/helpers/createClass"))),r=e(L("@babel/runtime/helpers/classCallCheck")),l=e(L("@babel/runtime/helpers/assertThisInitialized")),n=e(L("@babel/runtime/helpers/inherits")),c=e(L("@babel/runtime/helpers/possibleConstructorReturn")),d=e(L("@babel/runtime/helpers/getPrototypeOf")),u=e(L("@babel/runtime/helpers/defineProperty")),f=e(L("./BaseStore")),g=e(L("deepmerge")),m=function(A,k){if(!k&&A&&A.__esModule)return A;if(A===null||s(A)!=="object"&&typeof A!="function")return{default:A};if(k=h(k),k&&k.has(A))return k.get(A);var J,G={},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(J in A){var D;J!=="default"&&Object.prototype.hasOwnProperty.call(A,J)&&((D=U?Object.getOwnPropertyDescriptor(A,J):null)&&(D.get||D.set)?Object.defineProperty(G,J,D):G[J]=A[J])}return G.default=A,k&&k.set(A,G),G}(L("./../actions"));function h(A){if(typeof WeakMap!="function")return null;var k=new WeakMap,J=new WeakMap;return(h=function(G){return G?J:k})(A)}function v(A,k){var J,G=Object.keys(A);return Object.getOwnPropertySymbols&&(J=Object.getOwnPropertySymbols(A),k&&(J=J.filter(function(U){return Object.getOwnPropertyDescriptor(A,U).enumerable})),G.push.apply(G,J)),G}function b(A){for(var k=1;k<arguments.length;k++){var J=arguments[k]!=null?arguments[k]:{};k%2?v(Object(J),!0).forEach(function(G){(0,u.default)(A,G,J[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(J)):v(Object(J)).forEach(function(G){Object.defineProperty(A,G,Object.getOwnPropertyDescriptor(J,G))})}return A}function _(A){var k=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var J,G=(0,d.default)(A);return J=k?(J=(0,d.default)(this).constructor,Reflect.construct(G,arguments,J)):G.apply(this,arguments),(0,c.default)(this,J)}}var R={ac:!0,founder:!1,datatype:"rt",demo:!1,members:[]},x={cursors:[],selections:[],pointers:{}},w={showSessionInfo:!0,showRemotePointer:!0,showRemoteCursor:!0,cursorAlwaysOn:!1,avatars:{},pointers:{shape:"arrow"}},O={apiKey:"",domain:"",app:""};e=f.default,(0,n.default)(M,e),I=_(M);var I,L=new((0,i.default)(M));function M(){var A;return(0,r.default)(this,M),A=I.call(this),(0,u.default)((0,l.default)(A),"default",function(){return{session:Object.assign({},R),ui:Object.assign({},w),awareness:Object.assign({},x),config:Object.assign({},O)}}),(0,u.default)((0,l.default)(A),"registerToActions",function(k){var J=k.id;switch("[Store][".concat(k.type,"] prevState"),A.states,A.states[k.id],"[Store][".concat(k.type,"] payload"),k.type){case m.INIT:var G=k.data,G=g.default.all([A.default(),G,{initState:G}]);A.states[J]=G;break;case m.NETWORK_OFFLINE:var G=A.states[J].session,G=Object.assign({},G),U=(G.members=[],Object.assign({},A.states[J]));U.awareness={cursors:[],selections:[],pointers:{}},U.session=G,A.states=Object.assign({},A.states,(0,u.default)({},J,U)),A.emitChange();break;case m.VIEW_RESIZE:A.emitChange();break;case m.RESET:if(G=A.states[J],!G)break;U=G.initState,G=G.ui,U=Object.assign({},U,{ui:G}),U&&(G=g.default.all([{},A.default(),U,{initState:U}]),A.states=Object.assign({},A.states,(0,u.default)({},J,G))),A.emitChange();break;case m.SESSION_DISPATCH_SUCCESS:U=k.data,G=U.token,U=b(b({},U.session),{},{token:G}),A.states[J].session=Object.assign({},R,U),A.emitChange();break;case m.SESSION_DISPATCH_ERROR:break;case m.SESSION_SUBSCRIBE_SUCCESS:G=g.default.all([{},A.states[J],{session:{siteId:k.siteId}}]),A.states[J]=G,A.emitChange();break;case m.REMOTE_CURSOR_REPAINT:A.emitChange();break;case m.REMOTE_CURSOR_UPDATE:U=k.cursors.slice().reduce(function(W,C){var E=C.siteId,B=C.cursor,$=C.selection,C=C.update;return W.cursors.push({siteId:E,cursor:B,update:C}),W.selections.push({siteId:E,selection:$}),W},{cursors:[],selections:[]}),G=U.cursors,U=U.selections,A.states[J].awareness=Object.assign({},A.states[J].awareness,{cursors:G,selections:U}),A.emitChange();break;case m.REMOTE_POINTER_UPDATE:if(G=k.pointers,U=G.sid,G=G.coords,!G&&!A.state[J].awarenes.pointers)return;var D=JSON.parse(JSON.stringify(A.states[J].awareness.pointers));D[U]=G,A.states[J].awareness=Object.assign({},A.states[J].awareness,{pointers:D}),A.emitChange();break;case m.SESSION_MEMBERS_UPDATE:if(U=A.states[J].session,G=k.users,!G||!U)return;D=G.map(function(W){var Q=W.sid;return b(b({},W.userinfo),{},{siteId:Q,joined:!0})}),G=Object.assign({},U),G.members=D,A.states[J].session=G,A.emitChange();break;case m.CLEANUP:delete A.states[J];break;case m.SESSION_INFO_VISIBILITY_UPDATE:A.states[J].ui=Object.assign({},A.states[J].ui,{showSessionInfo:k.show}),A.emitChange();break;case m.REMOTE_CURSOR_VISIBILITY_UPDATE:A.states[J].ui=Object.assign({},A.states[J].ui,{showRemoteCursor:k.show}),A.emitChange();break;case m.REMOTE_POINTER_VISIBILITY_UPDATE:A.states[J].ui=Object.assign({},A.states[J].ui,{showRemotePointer:k.show}),A.emitChange()}"[Store][".concat(k.type,"] next state"),A.states,A.states[k.id]}),(0,u.default)((0,l.default)(A),"getState",function(k){return A.states[k]?{session:A.states[k].session,config:A.states[k].config}:{}}),(0,u.default)((0,l.default)(A),"getSessionState",function(k){return A.states[k]?A.states[k].session:{}}),(0,u.default)((0,l.default)(A),"getSessionMembers",function(k){return A.states[k]&&A.states[k].session&&A.states[k].session.members||{}}),(0,u.default)((0,l.default)(A),"getAwarenessState",function(k){return A.states[k]?{session:A.states[k].session,awareness:A.states[k].awareness}:{}}),(0,u.default)((0,l.default)(A),"getUIState",function(k){return A.states[k]?A.states[k].ui:{}}),A.subscribe(function(){return A.registerToActions.bind((0,l.default)(A))}),A.states={},A}t.default=L},{"./../actions":201,"./BaseStore":255,"@babel/runtime/helpers/assertThisInitialized":4,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,"@babel/runtime/helpers/typeof":22,deepmerge:137}],257:[function(o,a,t){var h=o("@babel/runtime/helpers/interopRequireDefault"),e=o("@babel/runtime/helpers/typeof"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,h(o("@babel/runtime/helpers/createClass"))),i=h(o("@babel/runtime/helpers/classCallCheck")),r=h(o("@babel/runtime/helpers/assertThisInitialized")),l=h(o("@babel/runtime/helpers/inherits")),n=h(o("@babel/runtime/helpers/possibleConstructorReturn")),c=h(o("@babel/runtime/helpers/getPrototypeOf")),d=h(o("@babel/runtime/helpers/defineProperty")),h=h(o("./BaseStore")),u=function(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||e(b)!=="object"&&typeof b!="function")return{default:b};if(_=f(_),_&&_.has(b))return _.get(b);var R,x={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(R in b){var O;R!=="default"&&Object.prototype.hasOwnProperty.call(b,R)&&((O=w?Object.getOwnPropertyDescriptor(b,R):null)&&(O.get||O.set)?Object.defineProperty(x,R,O):x[R]=b[R])}return x.default=b,_&&_.set(b,x),x}(o("./../actions"));function f(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,R=new WeakMap;return(f=function(x){return x?R:_})(b)}function g(b){var _=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var R,x=(0,c.default)(b);return R=_?(R=(0,c.default)(this).constructor,Reflect.construct(x,arguments,R)):x.apply(this,arguments),(0,n.default)(this,R)}}o=h.default,(0,l.default)(v,o),m=g(v);var m,h=new((0,s.default)(v));function v(){var b;return(0,i.default)(this,v),b=m.call(this),(0,d.default)((0,r.default)(b),"registerToActions",function(_){var R=_.id;switch("[SessionStore][".concat(_.type,"] prevState"),b.states,b.states[_.id],"[SessionStore][".concat(_.type,"] payload"),_.type){case u.SESSION_SUBSCRIBE_SUCCESS:var x={sessionId:_.sessionId,siteId:_.siteId,timeStamp:Date.now()};b.states[R]=x;break;case u.CLEANUP:}"[SessionStore][".concat(_.type,"] currState"),b.states,b.states[_.id]}),(0,d.default)((0,r.default)(b),"getState",function(_){var R=JSON.parse(JSON.stringify(b.states[_]||{}));return delete b.states[_],R}),b.subscribe(function(){return b.registerToActions.bind((0,r.default)(b))}),b.states={},b}t.default=h},{"./../actions":201,"./BaseStore":255,"@babel/runtime/helpers/assertThisInitialized":4,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/getPrototypeOf":11,"@babel/runtime/helpers/inherits":12,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/possibleConstructorReturn":18,"@babel/runtime/helpers/typeof":22}],258:[function(o,a,t){a.exports=o("../../wave/js/index.js")},{"../../wave/js/index.js":286}],259:[function(o,a,t){function e(s){var i={},r=(s.addEventListener("message",function(n){if(n&&n.data,n&&n.data){var c=n.data[0],d=n.data[1];if(c==="start")return n=n.data[2],n=parseInt(n),r(d,n);if(c==="stop")return l(d)}}),function(n,c){l(n),c=setInterval(function(){s.postMessage(["hb",n])},c),i[n]=c}),l=function(n){if(i[n])try{"[worker] existing hb timer exists, stopping. id ".concat(n,", ").concat(i[n]),clearInterval(i[n])}catch(c){console.err("[worker] clear interval timer error ".concat(n),c)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.worker=e,t.default=e},{}],260:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(o("events"))),i=e(o("util")),r=e(o("./messageMapper"));function l(n){var c=this;this.sentry=n,s.default.call(this),this.a=function(d,u){u=(0,r.default)(u),u&&c.emit("cw",d,u)},this.b=function(d,u){c.emit("us",d,u)},this.c=function(d,u){c.emit("uc",d,u)},this.d=function(d,u){c.emit("urcs",d,u)},this.e=function(d,u){},this.f=function(d){c.emit("du",d)},this.g=function(d){c.emit("eu",d)},this.h=function(d){c.emit("uvm",d)},this.i=function(d,u){c.emit("cc",d,u)},this.j=function(d,u){c.emit("up",d,u)},this.serverCommand=function(d,u){c.emit("sc",d,u)}}i.default.inherits(l,s.default),t.default=l},{"./messageMapper":263,"@babel/runtime/helpers/interopRequireDefault":297,events:133,util:186}],261:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(o("@babel/runtime/helpers/defineProperty"))),i=e(o("../domains/api/tiny")),r=e(o("../domains/api/froala")),l=e(o("../domains/api/qjs")),n=e(o("../domains/api/text")),c=e(o("../domains/api/codemirror")),d=e(o("../domains/domains")),u=e(o("./messageMapper")),f=e(o("./doc")),g=o("../constants/apps"),m=e(o("../predsm/codox.js")),h=e(o("../dsm/codox.js")),v=o("../logger"),b=o("../env");function _(x,w){var O,I=Object.keys(x);return Object.getOwnPropertySymbols&&(O=Object.getOwnPropertySymbols(x),w&&(O=O.filter(function(L){return Object.getOwnPropertyDescriptor(x,L).enumerable})),I.push.apply(I,O)),I}function R(x){for(var w=1;w<arguments.length;w++){var O=arguments[w]!=null?arguments[w]:{};w%2?_(Object(O),!0).forEach(function(I){(0,s.default)(x,I,O[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(O)):_(Object(O)).forEach(function(I){Object.defineProperty(x,I,Object.getOwnPropertyDescriptor(O,I))})}return x}t.default=function(){var x=null,w=null,O=null,I=null,L=null,M=window.navigator&&window.navigator.userAgent;function A(J){return J.session&&J.session.ip&&J.session.port}function k(){L=null,I&&(I.editorInstance=null,I.appAPI=null,I=null),O&&(O.d(),O=null),x&&(x.uninit(),x=null)}this.b=function(J){var G=g.apps.tinymce,U=g.apps.quilljs,D=g.apps.froala,W=g.apps.text,Q=(g.apps.json,g.apps.codemirror),E=I,B=E.app,$=E.appAPI,C=E.editorInstance,N=E.cid,Y=E.initContent;E.syncState,E.getState,$.i=$.i.bind($,N);try{if(B===G&&(x=new i.default(C,$)),B===U&&(x=new l.default(C,$,Y)),B===D&&(x=new r.default(C,$)),I.app===W&&(x=new n.default(I.editorInstance,I.appAPI,Y)),I.app===Q&&(x=new c.default(I.editorInstance,I.appAPI,Y)),x=B==="testclient"?new d.default:x){x.init();{var tt=function(T,ot){try{T&&O&&O.c()}catch(at){return v.logger.reportError(at),J(null,at)}return J(T,(0,u.default)(ot))},F,z,P,j=null,j=I.apptype==="testclient",V={cid:I.cid,apptype:I.session.app,subid:I.session.subscriptionId,mu:I.session.maxSessionSize,mid:I.session.memberId,ts:I.session.timestamp,sid:I.session.sid,waveid:I.session.waveid,founder:I.founder,user:I.user,domains:x,sysinfo:M,token:I.token,docId:I.docId,url:I.url,anyclient:I.ac,a:I.appAPI,prevAid:I.sub.siteId,ver:I.ver,permission:I.permission,editorInstance:I.editorInstance};O=new f.default({cid:I.cid,apptype:I.session.app,appAPI:I.appAPI,domains:x,permission:I.permission,showCursor:I.showCursor,showPointer:I.showPointer}),V.doc=O;try{z=(F=I).proxy,P=F.session;var K=A(F)?"".concat(z,"host=").concat(P.ip,"&port=").concat(P.port):z,rt=(I.logger.SMConSt=performance.now(),L=new WebSocket(K),setTimeout(function(){I&&I.Sentry&&I.Sentry.addBreadcrumb({message:"sm socket cannot be open after 10s",level:"info"})},1e4));w=A(I)?new m.default(V,L,tt,I.logger,I.Sentry,rt,j):(V.sockOpenTimer=rt,V.codoxLogger=I.logger,V.startCb=tt,console.log("Creating WaveDsm"),new h.default(V,L,j)),O.setWave(w)}catch(T){throw v.logger.reportError(T),T}return}}throw new Error("Domain uninitialized: ".concat(B))}catch(T){return b.isProd||console.error(T),J(null,T)}},this.c=function(){try{if(k(),w)return v.logger.addBreadcrumb("[bootstrap] calling wave stop"),w.TZ(501),void(w=null)}catch(J){v.logger.reportError(J)}},this.cc=function(){v.logger.addBreadcrumb("[bootstrap] cleanup + unhook doc");try{return k(),void(w=null)}catch(J){v.logger.reportError(J)}},this.d=function(){O&&O.a()},this.e=function(){O&&O.b()},this.f=function(J){J=J||null,w.LOH(J,"u")},this.g=function(J){J=J||null,w.LOH(J,"r")},this.h=function(J){J=J||null,w.LOH(J,"h2v")},this.i=function(J){J=J||null,w.LOH(J,"v2h")},this.j=function(J){I=J,v.logger.init(J.Sentry),(0,b.setEnv)(J.env)},this.k=function(J){if(w){for(var G,U=J.filter(function(E){return!(E.type=="set_value"||E.data&&E.data.has("source"))}).toJS().map(function(E){return R(R({},E),{},{data:{source:"remote"}})}),D=0,W=0,Q=0;Q<U.length;Q++)U[Q].type==="set_selection"?W++:D++;D===0&&W===0||(G=1,U.forEach(function(E){E.type!=="set_selection"?(E.data.tn=D,E.data.n=G++,w.LOH(E,"e")):0<W&&0<D?W--:w.LOH(E,"c")}))}},this.fs=function(){O&&O.f.apply(O,arguments)},this.js=function(){if(O)return O.g.apply(O,arguments);throw new Error("doc undefined")},this.sp=function(J){O&&O.sp(J)},this.awarenessRepaint=function(){O&&O.ap()}}},{"../constants/apps":264,"../domains/api/codemirror":265,"../domains/api/froala":266,"../domains/api/qjs":268,"../domains/api/text":269,"../domains/api/tiny":270,"../domains/domains":272,"../dsm/codox.js":276,"../env":283,"../logger":287,"../predsm/codox.js":288,"./doc":262,"./messageMapper":263,"@babel/runtime/helpers/defineProperty":296,"@babel/runtime/helpers/interopRequireDefault":297}],262:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=o("../constants/apps");o("../util/lib"),t.default=function(s){var i,r=e.apps.tinymce,l={},n={},c={},d={},u=s,f=u.cid,g=u.appAPI,m=u.apptype,h=u.domains,v=u.permission,b=u.showCursor,_=u.showPointer,R=!1,x=!1,w=(I(v),null),O=new ResizeObserver(function(E){L()});function I(E){h.b().forEach(function(B){B.setPermission(E)})}function L(){var E=h.c().Q();return E&&f&&g&&g.d(f,E)}function M(E,B){x||w.LOH(E,"c",B)}function A(E,B){c.keyup={target:E,handlerFn:(function($,C){switch(C.which){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:M(C,$)}}).bind(null,B)},W(c)}function k(E){w.ime(!0),R=!0}function J(E){w.imet()}function G(E){w.ime(!1),R=!1}function U(E){n.compositionstart={target:E,handlerFn:k},n.compositionupdate={target:E,handlerFn:J},n.compositionend={target:E,handlerFn:G},W(n)}function D(E){for(var B in E){var $,C,N;E.hasOwnProperty(B)&&($=(N=E[B]).target,B=N.event||B,C=N.handlerFn,N=N.useCapture,$&&$.removeEventListener&&$.removeEventListener(B,C,N))}}function W(E){for(var B in E)if(E.hasOwnProperty(B)){var N=E[B],$=N.target,B=N.event||B,C=N.handlerFn,N=N.useCapture;if(!$||!B||!C)throw new Error("error attaching event");$&&$.addEventListener&&$.addEventListener(B,C,N)}}function Q(E,B){l.keydown={target:E.parentNode,event:"keydown",useCapture:!0,handlerFn:function($){if($.target&&$.target===E){if($.which===90&&($.ctrlKey||$.metaKey)){if($.preventDefault(),$.stopPropagation(),x)return;w.LOH($,"u",B)}$.which===89&&($.ctrlKey||$.metaKey)&&($.preventDefault(),$.stopPropagation(),x||w.LOH($,"r",B))}}}}this.a=function(){m!==r&&W(l)},this.b=function(){m!==r&&D(l)},this.c=function(){var E=h.b(),B=s.editorInstance;E.forEach(function($){{let P=function(V){C.elem.classList.add("codox_selecting")},j=function(V){var K=C.elem;K.classList.contains("codox_selecting")&&(K.classList.remove("codox_selecting"),M(V,C.dmid))};if($.y,$.y==="pt")return(F=(tt=$).x).oninput=function(V){x||R||(w.LOH(V,"e",tt.dmid),tt.h()&&tt.a(F.value))},U(tt.x),Q(tt.x),A(z=tt.x,tt.dmid),void(z.onmouseup=function(V){x||M(V,tt.dmid)});if($.y!=="rt")return $.y==="quilljs"?(U($.x),$.hook(w.LOH,b,_),void(B&&O.observe(B.scrollingContainer))):void($.y!=="codemirror"?console.error("[doc:hook] not sure how to hook this domain "+$.y):$.hook(w.LOH,b,_));var C=$,N,Y;if(!C)throw new Error("domain not defined");Y=(N=C).x,typeof(z=window.MutationObserver||window.WebKitMutationObserver)=="function"&&i===void 0&&(i=new z(function(V){if(at=N.n(),JSON.stringify(at),x&&at&&w.uimt("rs"),!x&&at&&(x=!0,w.uim(!0)),x&&!at&&(x=!1,w.uim(!1)),!x&&!R){for(var K=[],rt=0,T=V.length;rt<T;rt++){var ot=V[rt];ot.domId=Y.id,K.push(void w.LOH(ot,"e",N.dmid))}return K}var at})).observe(Y,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0}),U(C.x),A(z=C.x,C.dmid),z=z,d.mousedown={handlerFn:P,target:z},d.mouseup={handlerFn:j,target:z},W(d),Q(C.x,C.dmid),$.hook(w.LOH,b,_)}var tt,F,z})},this.d=function(){h.b().forEach(function(E){E.y,E.y,E.y==="rt"&&(i&&(i.disconnect(),i=null),D(d),D(c),D(n),D(l),E.unhook()),E.y==="quilljs"&&(D(n),E.unhook(),O.disconnect()),E.y==="codemirror"&&E.unhook()}),w=null,s.domains=null,s=null},this.f=function(){for(var E=arguments.length,B=new Array(E),$=0;$<E;$++)B[$]=arguments[$];h.b().forEach(function(C){C.forceSync.apply(C,B)})},this.g=function(){if(w)return w.JS.apply(w,arguments);throw new Error("not in ready state")},this.h=function(E){x=E},this.setWave=function(E){w=E},this.sp=I,this.ap=L}},{"../constants/apps":264,"../util/lib":292}],263:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){var s,i=0,r=!1;switch(e){case 20:s=3,r=!0,i=0;break;case 21:case 1:case 200:case 100:s=5,r=!0,i=0;break;case 18:s=13,i=3;break;case 19:s=14,i=3;break;case 2:s=5,r=!0,i=0;break;case 4:case 5:i=2,s=12;break;case 6:i=2,s=11;break;case 7:i=2,s=10;break;case 8:i=2,s=9;break;case 9:i=1,s=8;break;case 12:case 3:s=7,r=!0,i=0;break;case 10:case 11:r=!0,s=6,i=0;break;case 15:s=3,r=!0,i=0;break;case 13:s=4,r=!0,i=0;break;case 14:case 16:s=1,i=3;break;case 17:s=2,i=3;break;case 22:s=15,i=1;break;case 23:s=16,r=!0,i=0;break;case 24:s=17,i=0;break;case 25:s=18,i=0;break;default:return}return{m:s,i:e,f:i,r}}},{}],264:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.apps=void 0;var e={gmail:"gmail",wordpress:"wordpress",evernote:"evernote",tinymce:"tinymce",text:"text",zendesk:"zendesk",quilljs:"quilljs",slate:"slate",froala:"froala",json:"json",codemirror:"codemirror"},e={apps:t.apps=e};t.default=e},{}],265:[function(o,a,t){var i=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("../../constants/apps")),s=i(o("../domains")),i=(i(o("../domain")),i(o("../rt"))),r=o("./../../logger"),l=o("./../../util/lib"),n=o("./../../env");o("./../../filters/");function c(u,f,g){var m=function(){try{return u.getScrollerElement()}catch(O){r.logger.reportError(O)}}(),h=(this.super(m,0,e.apps.codemirror),this.appType=e.apps.codemirror,this.wave=null,this.cursorTimer=null,this.indexBasedOps=[],this._beforeChange=(function(O,I){var L,M,A,k,J;I.origin!=="remote"&&(L=(I=I).from,M=I.to,A=I.text,I.origin,L=u.indexFromPos(L),M=u.indexFromPos(M),J=k=null,L!==M&&(k=u.getRange(I.from,I.to)),L={indexFrom:L,indexTo:M,inserted:J=A[0]!==""||1<A.length?I.text.join(`
|
|
147
|
+
`):J,deleted:k},this.indexBasedOps.push(L))}).bind(this),this._onChanges=(function(O,I){var L;this.indexBasedOps.length&&(this.indexBasedOps,this.indexBasedOps.length,L=[].concat(this.indexBasedOps),this.indexBasedOps=[],h&&clearTimeout(h),_(L,"e"))}).bind(this),this._onCursorActivity=(function(){var O,I=x();O=I,R?R=!1:(h&&clearTimeout(h),v&&(I=Object.assign({},v),_(I,"c"),v=O),h=setTimeout(function(){v=null,_(O,"c")},50))}).bind(this),null),v=null,b=null,_=null,R=!1;function x(){try{var O=u.getCursor("from"),I=u.getCursor("to");return{f:u.indexFromPos(O),t:u.indexFromPos(I)}}catch(L){r.logger.reportError(L)}}function w(){try{return u&&u.getValue()}catch(O){r.logger.reportError(O)}}this.hookEditing=function(){u&&(u.on("beforeChange",this._beforeChange),u.on("changes",this._onChanges),u.on("cursorActivity",this._onCursorActivity))},this.unHookEditing=function(){u&&(u.off("beforeChange",this._beforeChange),u.off("changes",this._onChanges),u.off("cursorActivity",this._onCursorActivity))},this.getLength=function(){try{return u&&u.getValue().length}catch(O){r.logger.reportError(O)}},this.setContents=function(O){JSON.stringify(O);try{JSON.stringify(O),u&&u.setValue(O)}catch(I){r.logger.reportError(I)}},this.updateContents=function(O){try{n.isProd,O[0].forEach(function(I){var L,M,A;R=!0,L=I.indexFrom,M=I.indexTo,A=I.inserted,I=I.deleted,L=u.posFromIndex(L),M=u.posFromIndex(M),A&&!I&&u.replaceRange(A,L,null,"remote"),!A&&I&&u.replaceRange("",L,M,"remote"),A&&I&&u.replaceRange(A,L,M,"remote")}),f.i({source:"r"})}catch(I){r.logger.reportError(I)}},this.getContents=w,this.initContents=function(){try{return g}catch(O){r.logger.reportError(O)}},this.c=x,this.hook=function(){for(var O=arguments.length,I=new Array(O),L=0;L<O;L++)I[L]=arguments[L];var M=I[0];_=M;try{u&&this.hookEditing()}catch(A){r.logger.reportError(A)}},this.unhook=function(){try{this.unHookEditing()}catch(O){r.logger.reportError(O)}},this.n=function(){return!1},this.m=function(){return!1},this.d=w,this.Q=function(){var O=0<arguments.length&&arguments[0]!==void 0?arguments[0]:b;if(!O)return null;b=O;var I=Object.keys(O).map(function(L){var k=O[L],M=k.start,A=k.end,k=k.update;if(M===-1)return{cursor:null,selection:[],siteId:L,update:!0};var J={start:u.posFromIndex(M),end:u.posFromIndex(A)};return M===A?{cursor:J,selection:[],siteId:L,update:k}:{cursor:J,selection:J,siteId:L,update:k}});return I}}function d(u,f,g){var m="codemirror";this.super(),this.init=function(){this.D[m]=new c(u,f,g)},this.uninit=function(){delete this.D[m]}}(0,l.extendClass)(c,i.default),(0,l.extendClass)(d,s.default),t.default=d},{"../../constants/apps":264,"../domain":271,"../domains":272,"../rt":274,"./../../env":283,"./../../filters/":285,"./../../logger":287,"./../../util/lib":292,"@babel/runtime/helpers/interopRequireDefault":297}],266:[function(o,a,t){var i=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("../../constants/apps")),s=i(o("../domains")),i=i(o("../rt")),r=(o("./../../logger"),o("../../util/lib")),l=o("../../util/normalizer");function n(d,u){this.super(d.el,0);var f=e.apps.froala,g=this.elem;function m(b,_){if(!b)throw Error("newElement cannot be null");if(!_)throw Error("orgElement cannot be null");if(b.tagName!==_.tagName)throw Error("Cannont update attribute for elements with different tagName");var R=b.tagName;try{if(R==="VIDEO")return b.style&&b.style.cssText&&(_.style.cssText=b.style.cssText);if(R==="IFRAME")return _.width=b.width,_.height=b.height,b.style&&b.style.cssText&&(_.style.cssText=b.style.cssText);if(R==="IMG")return b.style&&b.style.cssText&&(_.style.cssText=b.style.cssText)}catch{}}function h(b,x){var R=x.classNames,x=x.tag;return R?b.getElementsByClassName(R):x?b.getElementsByTagName(x):void 0}function v(b,_,R){var x=h(b,R);x.length&&(b=h(_,R),[].forEach.call(b,function(w){var O,I=function(A,k){for(var J=R.classNames,G=R.tag,U=k.length-1;0<=U;U--){var D=k[U];if(J==="fr-video"){var W=D.firstChild,Q=A.getElementsByTagName("iframe")[0];if(W&&Q&&W.src===Q.src)return D}if(G==="img"&&A.src===D.src)return D}return null}(w,x);if(I){(function(A,k){try{if(A.previousSibling)return A.previousSibling.after(k);A.parentNode&&A.parentNode.prepend(k)}catch{}})(w,I);var L=w,M=I;try{L.className&&(M.className=L.className)}catch{}M=w,L=I,I=R.classNames,O=R.tag,I!=="fr-video"?O==="img"&&m(M,L):(I=L.firstChild,m(M.getElementsByTagName("iframe")[0],I)),w.remove()}}))}this.appType=f,this.adjustAwareness=function(b){var _=g.closest(".fr-wrapper"),R={scrollTop:_&&_.scrollTop||0,scrollLeft:_&&_.scrollLeft||0};return b.map(function(k){var w,O,I,L=k.selection,M=k.siteId,A=k.cursor,k=k.update;return{siteId:M,cursor:(I=(M=R).scrollTop,M=M.scrollLeft,{top:A.top+I,bottom:A.bottom+I,left:A.left+M,right:A.right+M,lineHeight:A.lineHeight,height:A.height,width:A.width}),selection:(w=R.scrollTop,O=R.scrollLeft,L.map(function(J){return{top:J.top+w,bottom:J.bottom+w,left:J.left+O,right:J.right+O,height:J.height,width:J.width}})),update:k}})},this.n=function(){var b=Array.from(g.getElementsByTagName("img")).some(function(w){w.getAttribute("src");var w=w.getAttribute("data-fr-old-src")}),_=g.getElementsByClassName("fr-selected-cell"),R=0<g.parentNode.getElementsByClassName("fr-image-resizer fr-active").length;return JSON.stringify(b),JSON.stringify(_),b||R||!!_.length},this.e=function(b,_){if(!g)throw new Error("Element undefined");var R=document.createElement("div");for(R.innerHTML=b,v(g,R,{tag:"img"});g.firstChild;)g.removeChild(g.firstChild);Array.from(R.childNodes).forEach(function(x){g.appendChild(x)}),_&&u.i({source:"r"}),d&&d.events.trigger("contentChanged")},this.d=function(){var b=g.innerHTML,b=(0,l.normalizeClasses)(b,l.classes.froala);return(0,l.normalizeNodes)(b,l.selectors.froala)},this.m=function(){var b;(b=g.getElementsByClassName("fr-video fr-active"))&&(JSON.stringify(b),[].forEach.call(b,function(_){_.classList.remove("fr-active")}))},this.disable=function(){}}function c(d,u){this.super(),this.init=function(){this.D.froala=new n(d,u),this.D},this.uninit=function(){delete this.D.froala}}(0,r.extendClass)(n,i.default),(0,r.extendClass)(c,s.default),t.default=c},{"../../constants/apps":264,"../../util/lib":292,"../../util/normalizer":293,"../domains":272,"../rt":274,"./../../logger":287,"@babel/runtime/helpers/interopRequireDefault":297}],267:[function(s,a,t){var e=s("quill-delta"),s=s("./../../util/lib"),i=s.isArray,r=s.jsonEscape;function l(n){var c=n;try{if(!(c=typeof n=="string"?JSON.parse(r(n)):c)||!c.ops||!i(c.ops))throw new Error}catch{throw new Error(JSON.stringify(n))}return c}a.exports={contentToDelta:function(n){return n=l(n),new e(n)},parseAndValidate:l}},{"./../../util/lib":292,"quill-delta":478}],268:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(o("@babel/runtime/helpers/slicedToArray"))),i=o("../../constants/apps"),r=e(o("../domains")),l=e(o("../rt")),n=o("./../../logger"),c=o("./../../util/lib"),d=o("./../../env"),u=o("./../../filters/"),f=o("./qjs-util");function g(h,v,b){var _=function(){try{var U,D=h.scrollingContainer||h.root;return(U=D.className&&-1<D.className.indexOf("ql-editor")?D:D.getElementsByClassName("ql-editor")[0])?U.contentEditable?U:void 0:void console.error("[qjs][getEditorDOM] Editor dom not found")}catch(W){n.logger.reportError(W)}}();this.super(_,0,"quilljs"),this.appType=i.apps.quill,this.wave=null;var R,x,w=0,O=this,I=null;function L(){h&&(w=h.getLength())}function M(U,D){D=1<arguments.length&&D!==void 0?D:"silent";try{h&&U&&(U.index+U.length<h.getLength()||function(W){if(h&&W){var Q=W.index,E=W.length,B=h.getLength();if(B<Q)return W.index=B-1,W.length=0;B<Q+E&&(W.index=Q,W.length=B-1)}}(U),h.setSelection(U,D))}catch(W){n.logger.reportError(W)}}function A(){try{return h&&h.getSelection()}catch(U){n.logger.reportError(U)}}function k(U,D){d.isProd,d.isProd}function J(U){L();for(var D,W=arguments.length,Q=new Array(1<W?W-1:0),E=1;E<W;E++)Q[E-1]=arguments[E];return U==="text-change"?(D=Q[0],Q[1],Q[2],d.isProd||h.getLength(),(0,u.shouldFilter)(D)?void(d.isProd||Q[2]):R.apply(void 0,Q)):U==="selection-change"?x.apply(void 0,Q):void 0}function G(U){try{var D=h.getBounds(U);return{left:D.left+_.scrollLeft,right:D.right+_.scrollLeft,bottom:D.bottom+_.scrollTop,top:D.top+_.scrollTop,height:D.height}}catch(W){return n.logger.reportError(W),null}}L(),this.setWave=function(U){this.wave=U},this.hook=function(U){try{if(l.default.prototype.hook.call(this,U),h){D=U,h&&(R=function(E,B,$){if(E.ops,$!=="silent"){if(O.isWriter())return Q({delta:E,oldDelta:B},"e");if(O.isCommenter()&&E.ops&&E.ops.every(function(tt){return Object.keys(tt).every(function(F){return["retain","attributes"].includes(F)})&&(!tt.attributes||tt.attributes&&Object.keys(tt.attributes).every(function(F){return F==="comment"||F==="comment_draft"}))}))return Q({delta:E,oldDelta:B},"e");var $=h.getContents(),C=0,E=E.ops[0].retain,$=$.diff(B,C=E||C);h.updateContents($,"silent"),setTimeout(function(){h.setSelection(null,"silent")},0)}},W=Q=D,x=function(E,B,$){if($!=="api"&&$!=="silent")return W({delta:E,oldDelta:B},"c")},h.on("editor-change",J));try{h&&(h.setContents=k)}catch(E){n.logger.reportError(E)}}}catch(E){n.logger.reportError(E)}var D,W,Q},this.unhook=function(){try{l.default.prototype.unhook.call(this),h&&(h&&h.emitter&&h.emitter.removeListener("editor-change",J),h.hasOwnProperty("setContents")&&delete h.setContents)}catch(U){n.logger.reportError(U)}},this.getLAid=function(){var U=h.getContents();return{len:h.getLength(),textLen:(U&&U.ops?U.ops.filter(function(D){return typeof D.insert=="string"}).map(function(D){return D.insert}).join(""):"").length,laid:w}},this.getLength=function(){try{return h&&h.getLength()}catch(U){n.logger.reportError(U)}},this.disable=function(){h&&h.enable(!1)},this.setContents=function(U){var D=!(1<arguments.length&&arguments[1]!==void 0)||arguments[1];try{var W=null;if(h){if(!function(Q){try{var E,B,$;return h?(B=new(E=h.getContents()).constructor(Q),($=E.diff(B))&&$.ops&&$.ops.length):1}catch(C){n.logger.reportError(C)}}(U))return;W=A(),Object.getPrototypeOf(h).setContents.bind(h)(U,"silent"),D&&M(W)}return v.i(U),h.getContents(),h.getLength(),L(),W}catch(Q){n.logger.reportError(Q)}},this.updateContents=function(U){var D=1<arguments.length&&arguments[1]!==void 0&&arguments[1];try{d.isProd;var W=A();h.updateContents(U,"silent"),L(),v.i({source:"r",delta:U}),D&&M(W)}catch(Q){n.logger.reportError(Q)}},this.getContents=function(){try{if(h)return h.getContents();throw new Error("editor is null")}catch(U){throw n.logger.reportError(U),U}},this.initContents=function(){try{return b}catch(U){n.logger.reportError(U)}},this.c=A,this.setText=function(U){try{h&&h.setText(U,"silent")}catch(D){n.logger.reportError(D)}},this.tpop2delta=function(U){try{if(!Array.isArray(U))throw new Error("op is not array",U);var D={ops:[]};return U.forEach(function(W){typeof W=="number"&&D.ops.push({retain:W}),W.d&&typeof W.d=="number"&&D.ops.push({delete:W.d}),typeof W=="string"&&D.ops.push({insert:W})}),D}catch(W){n.logger.reportError(W)}},this.Q=function(){var U=0<arguments.length&&arguments[0]!==void 0?arguments[0]:I;if(!U)return null;I=U;var D=Object.keys(U).map(function(W){var B=U[W],Q=B.start,E=B.end,B=B.update;return Q===-1?{cursor:null,selection:[],siteId:W,update:!0}:Q===E?{cursor:G(Q),selection:[],siteId:W,update:B}:{cursor:G(Q),selection:function($,C){try{var N=$,Y=C-$+1,tt=h.getLeaf($),F=(0,s.default)(tt,2),z=F[0],P=F[1],j=h.getLeaf(C),V=(0,s.default)(j,2),K=V[0],rt=V[1];if(z==null||K==null)return[];var T=document.createRange(),ot=z.position(P,!0),at=(0,s.default)(ot,2),q=at[0],ht=at[1],lt=(T.setStart(q,ht),K.position(rt,!0)),bt=(0,s.default)(lt,2),_t=bt[0],Dt=bt[1],Ft=[],Ft=q===_t?(T.setEnd(_t,Dt),Array.from(T.getClientRects())):(T.setEndAfter(q.childNodes[ht]||q),Ft=Array.from(T.getClientRects()),T.setStartBefore(_t.childNodes[Dt]||_t),T.setEnd(_t,Dt),Ft.concat(Array.from(T.getClientRects()))),Qt=(h.scroll.descendants(function(It){return It!==z&&It!==K&&It.statics.blotName==="text"&&(T.selectNode(It.domNode),Ft=Ft.concat(Array.from(T.getClientRects())),!0)},N,Y),_.getBoundingClientRect()),ue=(Nt=_,{paddingLeft:parseFloat((0,c.getStyle)(Nt,"padding-left"))||0,marginLeft:parseFloat((0,c.getStyle)(Nt,"margin-left"))||0,borderLeft:parseFloat((0,c.getStyle)(Nt,"border-left"))||0,boxSizing:(0,c.getStyle)(Nt,"box-sizing")}),ae=ue.boxSizing,se=ue.paddingLeft,Ne=ue.marginLeft,ce=ue.borderLeft,qt=_;return Ft.map(function(It){return It={left:It.left-Qt.left+qt.scrollLeft,right:It.right-Qt.left+qt.scrollLeft,top:It.top-Qt.top+qt.scrollTop,bottom:It.bottom-Qt.top+qt.scrollTop,width:It.width,height:It.height},ae==="border-box"&&(It.left+=Ne,It.right+=Ne),ae==="content-box"&&(It.left+=Ne+se+ce,It.right+=Ne+se+ce),It}).filter(function(It){return 1<It.height&&1<It.width})}catch(It){return n.logger.reportError(It),[]}var Nt}(Q,E),siteId:W,update:B}});return D},this.n=function(){var U=_.getElementsByClassName("slash-command");return!(!U||!U.length)},this.m=function(){var U=new KeyboardEvent("keydown",{key:"Escape"});_.dispatchEvent(U)},this.forceSync=function(U){var D=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"api";if(D==="silent")throw new Error('[codox] forceSync "silent" changes are not synced');try{var W=A(),Q=Object.getPrototypeOf(h);(Q&&Q.setContents.bind(h))(U,D),M(W)}catch(E){n.logger.reportError(E)}},this.toDelta=function(U){return(0,f.contentToDelta)(U)},this.x=_}function m(h,v,b){this.super(),this.init=function(){this.D.quilljs=new g(h,v,b)},this.uninit=function(){delete this.D.quilljs}}(0,c.extendClass)(g,l.default),(0,c.extendClass)(m,r.default),t.default=m},{"../../constants/apps":264,"../domains":272,"../rt":274,"./../../env":283,"./../../filters/":285,"./../../logger":287,"./../../util/lib":292,"./qjs-util":267,"@babel/runtime/helpers/interopRequireDefault":297,"@babel/runtime/helpers/slicedToArray":300}],269:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(o("../domains"))),i=o("../../util/lib"),r=e(o("../pt"));function l(n,c,d){this.super(),this.init=function(){this.D.text=new r.default(n,c,d),this.D},this.uninit=function(){delete this.D.text}}(0,i.extendClass)(l,s.default),t.default=l},{"../../util/lib":292,"../domains":272,"../pt":273,"@babel/runtime/helpers/interopRequireDefault":297}],270:[function(o,a,t){var l=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("../../constants/apps")),s=l(o("../domains")),i=o("../../util/normalizer"),r=o("../../util/lib"),l=(o("./../../logger"),l(o("../rt"))),n=window.tinymce;function c(u,f){this.super(u.getBody(),0);var g=u.getBody(),m=e.apps.tiny;if(this.appType=m,!u)throw new Error("Internal error: Tiny editor not found");var m=Object.assign({},u.settings,{forced_root_block:!1,indent:!1,element_format:"html",remove_trailing_brs:!1}),h=Object.assign({},u.schema);n&&n.html&&new n.html.Serializer(m,h),this.getMouseHookElem=function(){if((u&&u.settings).inline)return null;var v=u.getDoc();return v&&v.getElementsByTagName("html")[0]},this.getCaretPos=function(w){var b,w=u.dom.getRect(w),_=w.x,R=w.y,x=w.w,w=w.h;return u.settings.inline?{left:_-(b=u.getBody().parentNode.getBoundingClientRect()).left,top:R-b.top,bottom:R+w,right:_+x,width:x,height:w}:{left:_,top:R,bottom:R+w,right:_+x,width:x,height:w}},this.adjustAwareness=function(v){var b,_=u.getBody().parentNode,R={scrollTop:0,scrollLeft:0};return R=u.settings.inline?{scrollTop:-1*(b=_.getBoundingClientRect()).top,scrollLeft:-1*b.left}:{scrollTop:_.scrollTop,scrollLeft:_.scrollLeft},v.map(function(A){var w,O,I=A.selection,L=A.siteId,M=A.cursor,A=A.update;return{siteId:L,cursor:M,selection:(w=(L=R).scrollTop,O=L.scrollLeft,I.map(function(k){return{top:k.top+w,bottom:k.bottom+w,left:k.left+O,right:k.right+O,height:k.height,width:k.width}})),update:A}})},this.d=function(){try{if(!u||!u.getContent)throw new Error("Editor instance null");var v=u.getContent({format:"raw"});return(0,i.normalizeClasses)(v,i.classes.tinymce)}catch(b){console.error(b)}},this.e=function(v,b){if(!g)throw new Error("Element undefined");var _=document.createElement("div");for(_.innerHTML=v;g.firstChild;)g.removeChild(g.firstChild);Array.from(_.childNodes).forEach(function(R){g.appendChild(R)}),b&&f.i({source:"r"})},this.cc=function(v){if(g)return(v=g.getElementsByClassName("rangySelectionBoundary")[v])?v.outerHTML&&v.outerHTML.replace(/[\u200B-\u200D\uFEFF]/g,""):null;throw new Error("Can't get selection marker on element")},this.m=function(){var v;(v=g.querySelectorAll("[data-mce-bogus='all']"))&&[].forEach.call(v,function(b){b.parentNode.removeChild(b)}),(v=g.querySelectorAll("[data-mce-selected='1']"))&&[].forEach.call(v,function(b){b.removeAttribute("data-mce-selected"),b.classname+=" faux-selection"})},this.n=function(){var v=g.ownerDocument||window.document,b=v.getElementsByClassName("mce-resizehandle");return!(!b||!b.length)||!(!(b=v.getElementsByClassName("mce-visual-caret"))||!b.length)},this.disable=function(){}}function d(u,f){this.super(),this.init=function(){this.D.tiny=new c(u,f),this.D},this.uninit=function(){this.D.tiny=null},this.hf=function(){return!u.settings.inline||document.activeElement===u.getBody()}}(0,r.extendClass)(c,l.default),(0,r.extendClass)(d,s.default),t.default=d},{"../../constants/apps":264,"../../util/lib":292,"../../util/normalizer":293,"../domains":272,"../rt":274,"./../../logger":287,"@babel/runtime/helpers/interopRequireDefault":297}],271:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(o("@babel/runtime/helpers/slicedToArray"))),i=o("../constants/apps"),r=e(o("./shadowelem")),l=o("../util/lib"),n=e(o("lodash/partition")),c=e(o("rangy/lib/rangy-selectionsaverestore")),d=o("./../logger");t.default=function(u,f){var g,m,h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:"rt",v=!(3<arguments.length&&arguments[3]!==void 0)||arguments[3];function b(){if(u)return h!=="rt"&&h==="pt"?u.value:u.innerHTML;throw new Error("Element undefined")}function _(O,I){var L=c.default.createRange();L.setStartBefore(O),L.setEndAfter(I),L.normalizeBoundaries();for(var M=document.createNodeIterator(L.commonAncestorContainer,NodeFilter.SHOW_ALL,{acceptNode:function(k){return NodeFilter.FILTER_ACCEPT}}),A=[];M.nextNode()&&(A.length===0&&M.referenceNode!==O||(A.push(M.referenceNode),M.referenceNode!==I)););return A.reduce(function(k,J){return J.nodeType!=3?k:(L.selectNode(J),k.concat(Array.from(L.nativeRange.getClientRects())))},[]).filter(function(k){return 1<k.height&&1<k.width})}function R(O,I){var L=0;return function(M){var A,k,J;I&&(A=M.clientX,k=M.clientY,(k={x:A-(J=(A=I).getBoundingClientRect()).left+A.scrollLeft,y:k-J.top+A.scrollTop}).l=M.type==="click",k.t=Math.round(performance.now()),L%5!=0&&!k.l||O([k],"pt"),L++)}}c.default.initialized||c.default.init();var x,w={};return f===0&&h==="pt"&&((x=new r.default).init(u),x.setText(u.value)),w={a:function(O){return x&&x.setText(O)},b:function(O,I){if(I=I||O,u&&typeof u.setSelectionRange=="function")return u.setSelectionRange(O,I);throw new Error("Can't set selection range on element")},c:function(){if(u&&u.selectionStart!==void 0&&u.selectionEnd!==void 0)return{start:u.selectionStart,end:u.selectionEnd};throw new Error("Can't get selection range on element")},cc:function(O){if(u)return O=u.getElementsByClassName("rangySelectionBoundary")[O],O?(O=O.outerHTML,O):null;throw new Error("Can't get selection marker on element")},d:b,e:function(O){if(!u)throw new Error("Element undefined");h==="rt"&&(u.innerHTML=O),h==="pt"&&(x&&x.setText(O),u.value=O)},f:function(O,I){var A="[id^=".concat(O,"]"),A=Array.prototype.slice.call(u.querySelectorAll(A)||[]);if(!A.length)return[];var A=A.map(function(k){var J=function(G,U){if(U=new RegExp("^".concat(U,"_([^_]+)(_end$)?")),G=G.match(U),U=G&&G[1],U)return{siteId:U,isEnd:!(!G||!G[2])};throw new Error("Can't get site id from caret id")}(k.id,O);return{marker:k,siteId:J.siteId,isEnd:J.isEnd}}),A=(0,n.default)(A,{isEnd:!1}),A=(0,s.default)(A,2),M=A[0],A=A[1],L=(0,l.keyBy)(A,"siteId"),A=M.reduce(function(k,D){var G,U=D.siteId,D=D.marker,W=(G=D,W=i.apps.froala,w.appType===W&&(G.style.display="inline-block"),W=typeof w.getCaretPos=="function"?w.getCaretPos(G):G.getBoundingClientRect(),G=(0,l.getStyle)(G,"font-size"),G=Math.floor(parseInt(G.replace("px",""),10)),{left:W.left,right:W.right,top:W.top,bottom:W.bottom,height:W.height,width:W.width,lineHeight:G});return L[U]?k[U]={cursor:W,selection:_(D,L[U].marker),siteId:U,update:I[U]&&I[U].update}:k[U]={cursor:W,selection:[],siteId:U,update:I[U]&&I[U].update},k},{}),M=Object.values(A),A=w.adjustAwareness(M);return A},g:function(O){return[]},h:function(){return f===0},i:function(){var O=null;if(h==="rt"&&(O=u.ownerDocument),h==="pt"&&(O=x.ownerDocument),O=h==="quilljs"?u.ownerDocumen:O)return O.createElement("div")},j:"",k:"",l:function(){u.blur(),u.focus()},m:function(){},n:function(){},dmid:f,x:u,y:h,H:v,hook:function(O){try{u&&(g=R(O,u),m=R(O,u),u.addEventListener("mousemove",g),u.addEventListener("click",m))}catch(I){d.logger.reportError(I)}},unhook:function(){try{u&&(u.removeEventListener("mousemove",g),u.removeEventListener("click",m))}catch(O){d.logger.reportError(O)}},me:R,getLength:function(){return b().length||0},getRemoteSelection:_,adjustAwareness:function(O){return O.map(function(k){var L=k.selection,M=k.siteId,A=k.cursor,k=k.update;return{siteId:M,cursor:A,selection:L.map(function(J){return{top:J.top,bottom:J.bottom,left:J.left,right:J.right,height:J.height,width:J.width}}),update:k}})}}}},{"../constants/apps":264,"../util/lib":292,"./../logger":287,"./shadowelem":275,"@babel/runtime/helpers/interopRequireDefault":297,"@babel/runtime/helpers/slicedToArray":300,"lodash/partition":449,"rangy/lib/rangy-selectionsaverestore":482}],272:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=o("../util/lib");t.default=function(){function s(r){for(var l in i)if(i.hasOwnProperty(l)&&(l=i[l],l.dmid===r))return l;return null}var i={};this.D=i,this.a=function(){for(var r in i)if(i.hasOwnProperty(r)){var l,r=i[r];if(r.y==="quilljs"||r.y==="slate"||r.y=="codemirror")return void(r.k=null);if(r.y==="json")return l=r.gr(),void r.er(l);r.y,r.j=r.d()}},this.b=function(){var r,l=[];for(r in i)i.hasOwnProperty(r)&&l.push(i[r]);return l},this.c=function(){for(var r in i)if(i.hasOwnProperty(r)&&(r=i[r],r.dmid===0))return r;return null},this.d=s,this.e=function(){var r,l=[];for(r in i)if(i.hasOwnProperty(r)){var n=i[r];if(n.y==="quilljs"||n.y==="slate"||n.y=="codemirror"){var d=n.k?JSON.stringify(n.k):JSON.stringify(n.getContents()),c=n.getLAid&&JSON.stringify(n.getLAid()),d=(JSON.stringify(c),{dmid:n.dmid,spst:d,laid:c});l.push(d)}else if(n.y==="json"){var c=n.dr(),d=JSON.stringify(c),u={dmid:n.dmid,spst:d};l.push(u)}else{if(!n.x)throw console.error("getSVals: undefined dom.x "),Error("undefined dom.x in getSVals");u={dmid:n.dmid,spst:n.j},l.push(u)}}return l},this.f2=function(){for(var r in i)if(i.hasOwnProperty(r)&&(r=i[r],r.x)){if(r.y==="quilljs"||r.y=="codemirror"||r.y=="slate")return r.getLength(),r.k=r.getContents(),void r.k;if(r.y==="json")return void r.dr();r.y,r.k=(0,e.clone)(r.j),r.dmid,r.k,r.j,r.d()}},this.g=function(){for(var r in i)if(i.hasOwnProperty(r)){if(r=i[r],r.y==="quilljs")return r.k=null,void r.k;r.y==="json"&&(r.k=null),r.k=""}},this.h=function(r){for(var l=0;l<r.length;l++){var n,c=s(r[l].dmid);if(c.y==="quilljs"||c.y==="slate"||c.y=="codemirror")return r[l].spst,n=JSON.parse(r[l].spst),void c.setContents(n);if(c.y==="json")return n=JSON.parse(r[l].spst),void c.initState(n,!0);c.j=r[l].spst,c.e(c.j)}},this.k=function(r){for(var l in i)!i.hasOwnProperty(l)||(l=i[l]).dmid===r&&(l.dmid,l.l())},this.u=function(r){for(var l in i)!i.hasOwnProperty(l)||(l=i[l]).dmid===r&&l.m()},this.s=function(r,l){for(var n in i)if(i.hasOwnProperty(n)&&(n=i[n],n.dmid===r)){if(n.y==="quilljs")return n.k||(n.k=n.getContents()),n.k,n.k=n.k.compose(l),void n.k;if(n.y==="codemirror")return n.k||(n.k=n.getContents()),n.k,n.uCKPc(l),void n.k;if(n.y==="slate")return n.k||(n.k=n.getContents()),void(n.k=n.T(n.k,l));if(n.y==="json")return n.dr(),n.apply(l.op),void n.dr();n.y}},this.T={rt:"rt",pt:"pt"}}},{"../util/lib":292}],273:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(o("@babel/runtime/helpers/slicedToArray"))),i=(o("../constants/apps"),e(o("./shadowelem"))),r=o("../util/lib"),l=(e(o("lodash/partition")),o("./../logger"),e(o("rangy/lib/rangy-selectionsaverestore")));t.default=function(n,c,d){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:"pt",f=(l.default.initialized||l.default.init(),this.dmid=0,this.spst="",this.CKPSVal="",this.elem=n,new i.default);f.init(n),f.setText(n.value),this.h=function(){return this.dmid===0},this.a=function(g){return f&&f.setText(g)},this.b=function(g,m){if(m=m||g,n&&typeof n.setSelectionRange=="function")return n.setSelectionRange(g,m);throw new Error("Can't set selection range on element")},this.c=function(){if(n&&n.selectionStart!==void 0&&n.selectionEnd!==void 0)return{start:n.selectionStart,end:n.selectionEnd};throw new Error("Can't get selection range on element")},this.d=function(){return n.value},this.e=function(g,m){f&&f.setText(g),n.value=g,m&&c.i({source:"r"})},this.f=function(g){f&&f.updateStyle();for(var m,h,v,b,_,R=[],x=0,w=Object.entries(g);x<w.length;x++){var L=(0,s.default)(w[x],2),O=L[0],L=L[1],L=(L.sid=O,L=L,f&&f.embedCaret(L)),L=(0,s.default)(L,2),I=L[0],L=L[1],M=(A=(A=void 0,r.getStyle)(M=I,"font-size"),A=Math.floor(parseInt(A.replace("px",""),10)),{left:(M=M.getBoundingClientRect()).left,right:M.right,top:M.top,bottom:M.bottom,height:M.height,width:M.width,lineHeight:A}),A=[];L&&(A=function(k,J){var G=l.default.createRange();G.setStartBefore(k),G.setEndAfter(J),G.normalizeBoundaries();for(var U=document.createNodeIterator(G.commonAncestorContainer,NodeFilter.SHOW_ALL,{acceptNode:function(W){return NodeFilter.FILTER_ACCEPT}}),D=[];U.nextNode()&&(D.length===0&&U.referenceNode!==k||(D.push(U.referenceNode),U.referenceNode!==J)););return D.reduce(function(W,Q){return Q.nodeType!=3?W:(G.selectNode(Q),W.concat(Array.from(G.nativeRange.getClientRects())))},[]).filter(function(W){return 1<W.height&&1<W.width})}(I,L)),R.push({cursor:M,siteId:O,selection:A})}return g=R,h=(m=n).getBoundingClientRect(),v=f.getDim(),b={scrollTop:m.scrollTop||0,scrollLeft:m.scrollLeft||0,left:h.left||0,top:h.top||0},_={left:v.left,top:v.top},R=g.map(function(B){var J,G,U,D,W=B.selection,Q=B.siteId,E=B.cursor,B=B.update;return{siteId:Q,cursor:(D=(Q=_).left,Q=Q.top,{top:E.top+b.top-Q,bottom:E.bottom+b.top-Q,left:E.left+b.left-D,right:E.right+b.left-D,lineHeight:E.lineHeight,height:E.height,width:E.width}),selection:(J=b,G=_.left,U=_.top,W.map(function($){return{top:$.top+J.top-U,bottom:$.bottom+J.top-U,left:$.left+J.left-G,right:$.right+J.left-G,height:$.height,width:$.width}})),update:B}})},this.j=this.spst,this.k=this.CKPSVal,this.y=u,this.x=this.elem,this.setPermission=function(g){console.log("[codox] set permission not implemented")}}},{"../constants/apps":264,"../util/lib":292,"./../logger":287,"./shadowelem":275,"@babel/runtime/helpers/interopRequireDefault":297,"@babel/runtime/helpers/slicedToArray":300,"lodash/partition":449,"rangy/lib/rangy-selectionsaverestore":482}],274:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(o("@babel/runtime/helpers/slicedToArray"))),i=o("../constants/apps"),r=o("../util/lib"),l=e(o("lodash/partition")),n=o("./../logger"),c=o("../env"),d=["read","write","commentOnly"];function u(f,g){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:"rt",h,v=null,b=(c.isClickup||(v=o("rangy/lib/rangy-selectionsaverestore")).initialized||v.init(),this);function _(x,w){if(v){var O=v.createRange();O.setStartBefore(x),O.setEndAfter(w),O.normalizeBoundaries();for(var I=document.createNodeIterator(O.commonAncestorContainer,NodeFilter.SHOW_ALL,{acceptNode:function(M){return NodeFilter.FILTER_ACCEPT}}),L=[];I.nextNode()&&(L.length===0&&I.referenceNode!==x||(L.push(I.referenceNode),I.referenceNode!==w)););return L.reduce(function(M,A){return A.nodeType!=3?M:(O.selectNode(A),M.concat(Array.from(O.nativeRange.getClientRects())))},[]).filter(function(M){return 1<M.height&&1<M.width})}}this.elem=f,this.dmid=g||0,this.spst="",this.CKPSVal="",this.type=m,this.permission="write",this.isWriter=function(){return this.permission&&this.permission==="write"},this.isReader=function(){return this.permission&&this.permission==="read"},this.isCommenter=function(){return this.permission&&this.permission==="commentOnly"},this.getMouseHookElem=function(){return this.elem},this.hookMouse=function(x){var w,O,I,L=this.getMouseHookElem();L&&(w=x,I=0,h=function(M){var A,k,J;O&&(A=M.clientX,k=M.clientY,(k={x:A-(J=(A=O).getBoundingClientRect()).left+A.scrollLeft,y:k-J.top+A.scrollTop}).l=M.type==="click",k.t=Math.round(performance.now()),I%R!=0&&!k.l||w([k],"pt"),I++)},(O=L).addEventListener("mousemove",h),L.addEventListener("click",h))},this.unHookMouse=function(){var x=this.getMouseHookElem();x&&(x.removeEventListener("mousemove",h),x.removeEventListener("click",h),h=null)};var R=5;this.b=function(x,w){if(w=w||x,f&&typeof f.setSelectionRange=="function")return f.setSelectionRange(x,w);throw new Error("Can't set selection range on element")},this.c=function(){if(f&&f.selectionStart!==void 0&&f.selectionEnd!==void 0)return{start:f.selectionStart,end:f.selectionEnd};throw new Error("Can't get selection range on element")},this.cc=function(x){if(f)return x=f.getElementsByClassName("rangySelectionBoundary")[x],x?(x=x.outerHTML,x):null;throw new Error("Can't get selection marker on element")},this.d=function(){if(f)return f.innerHTML;throw new Error("Element undefined")},this.e=function(x,w){if(!f)throw new Error("Element undefined");f.innerHTML=x},this.f=function(x,w){var L="[id^=".concat(x,"]"),L=Array.prototype.slice.call(f.querySelectorAll(L)||[]);if(!L.length)return[];var L=L.map(function(M){var A=function(k,J){if(J=new RegExp("^".concat(J,"_([^_]+)(_end$)?")),k=k.match(J),J=k&&k[1],J)return{siteId:J,isEnd:!(!k||!k[2])};throw new Error("Can't get site id from caret id")}(M.id,x);return{marker:M,siteId:A.siteId,isEnd:A.isEnd}}),L=(0,l.default)(L,{isEnd:!1}),L=(0,s.default)(L,2),I=L[0],L=L[1],O=(0,r.keyBy)(L,"siteId"),L=I.reduce(function(M,G){var k,J=G.siteId,G=G.marker,U=(k=G,U=i.apps.froala,b.appType===U&&(k.style.display="inline-block"),U=typeof b.getCaretPos=="function"?b.getCaretPos(k):k.getBoundingClientRect(),k=(0,r.getStyle)(k,"font-size"),k=Math.floor(parseInt(k.replace("px",""),10)),{left:U.left,right:U.right,top:U.top,bottom:U.bottom,height:U.height,width:U.width,lineHeight:k});return O[J]?M[J]={cursor:U,selection:_(G,O[J].marker),siteId:J,update:w[J]&&w[J].update}:M[J]={cursor:U,selection:[],siteId:J,update:w[J]&&w[J].update},M},{}),I=Object.values(L),L=b.adjustAwareness(I);return L},this.h=function(){return g===0},this.i=function(){var x=null;if(x=f.ownerDocument)return x.createElement("div")},this.j=this.spst,this.k=this.CKPSVal,this.l=function(){f.blur(),f.focus()},this.m=function(){},this.n=function(){return!1},this.x=this.elem,this.y=m,this.H=!0,this.getRemoteSelection=_,this.adjustAwareness=function(x){return x.map(function(M){var O=M.selection,I=M.siteId,L=M.cursor,M=M.update;return{siteId:I,cursor:L,selection:O.map(function(A){return{top:A.top,bottom:A.bottom,left:A.left,right:A.right,height:A.height,width:A.width}}),update:M}})}}u.prototype.hook=function(f,g,m){try{this.elem&&m&&this.hookMouse(f)}catch(h){n.logger.reportError(h)}},u.prototype.unhook=function(){try{this.elem&&this.unHookMouse()}catch(f){n.logger.reportError(f)}},u.prototype.setPermission=function(f){try{d.includes(f)&&(this.permission=f)}catch(g){n.logger.reportError(g)}},u.prototype.forceSync=function(f){try{f&&this.e(f)}catch(g){n.logger.reportError(g)}},t.default=u},{"../constants/apps":264,"../env":283,"../util/lib":292,"./../logger":287,"@babel/runtime/helpers/interopRequireDefault":297,"@babel/runtime/helpers/slicedToArray":300,"lodash/partition":449,"rangy/lib/rangy-selectionsaverestore":482}],275:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=["direction","boxSizing","width","overflow","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","scrollWidth","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize","marginLeft","marginRight","marginTop","marginBottom","margin"];t.default=function(){this.init=function(s){var i=this,r=(this.element=s,this.div=document.createElement("div"),this.div.class="textarea-mirror",document.body.appendChild(this.div),this.div.style);this.computed=window.getComputedStyle?getComputedStyle(s):s.currentStyle,r.whiteSpace="pre-wrap",s.nodeName!=="INPUT"&&(r.wordWrap="break-word"),r.position="absolute",r.visibility="hidden",e.forEach(function(l){r[l]=i.computed[l]}),r.height="0px",r.overflow="hidden"},this.setWidth=function(){var i=parseFloat(this.computed.paddingLeft.replace("px","")),s=parseFloat(this.computed.paddingLeft.replace("px","")),i=this.element.scrollWidth-i-s+"px";this.div.style.width=i},this.destroy=function(){this.div&&document.body.removeChild(this.div)},this.setText=function(s){this.text=s},this.getContainer=function(){return this.div},this.updateStyle=function(){var s=this,i=this.div.style;this.computed=window.getComputedStyle?getComputedStyle(this.element):this.element.currentStyle,e.forEach(function(r){i[r]=s.computed[r]}),this.div.scrollTop=this.element.scrollTop},this.embedCaret=function(l){this.div.innerHTML="";var i=l.start,r=l.end,l=l.sid,n=document.createTextNode(this.text.substring(0,i)),c=document.createTextNode(this.text.substring(r)),d=document.createElement("span"),u=(d.setAttribute("data-pt-caret-start",l),d.style.display="inline",null),f=null;return i!==r&&(f=document.createTextNode(this.text.substring(i,r)),(u=document.createElement("span")).setAttribute("data-pt-caret-end",l),u.style.display="inline"),this.div.appendChild(n),this.div.appendChild(d),f&&(this.div.appendChild(f),this.div.appendChild(u)),this.div.appendChild(c),this.updateStyle(),[d,u]},this.getDim=function(){if(this.div)return this.div.getBoundingClientRect()},this.updateCarets=function(r){this.div.innerHTML="",this.updateStyle();var i=Object.keys(r),r=Object.values(r),l=(this.div.textContent=this.text.substring(0,r[0].start),document.createElement("span"));l.setAttribute("data-pt-caret",i[0]),l.textContent=this.text.substring(r[0].start,this.text.length),this.div.appendChild(l)}}},{}],276:[function(o,a,t){(function(e){(function(){var s=o("@babel/runtime/helpers/interopRequireDefault"),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(o("@babel/runtime/helpers/typeof"))),r=s(o("./json")),l=s(o("./sapa.js")),n=s(o("./spot.js")),c=s(o("./dsm.js")),d=o("../util/lib"),u=o("../logger.js"),f=o("./ver"),g=o("../env"),m=s(o("crypto-js/aes")),h=s(o("crypto-js/core")),v=s(o("./ext/cm.js")),b=(g.isProd,o("pako")),_=o("extend"),R=o("deep-equal"),x=f.smVer,w=f.clientVer;t.default=function(O,I,L){var M,A=performance.now(),k=O.codoxLogger,J=O.sockOpenTimer,G=O.startCb,U=u.logger.reportError.bind(u.logger),D=(u.logger.reportInfo.bind(u.logger),u.logger.addBreadcrumb.bind(u.logger)),W=u.logger.addTag.bind(u.logger),Q=(D("[codoxi]* ccw: t = 0; CV="+w+"; seid = "+O.sid,u.SentryLevel_H),W("clientVersion",w),this),E=O.ver,B=null,$=O,C=O.doc,N=O.apptype,Y=O.sid,tt=O.domains,F=tt.b(),z=tt.c(),P=(z.setWave&&z.setWave(this),O.cid),j=O.sysinfo,V=O.anyclient,K=O.founder,rt=(M=null,M=N=="quilljs"||N=="quilljs_clickup"||N=="codemirror"?z.initContents():z.d(),e.env.BUIlD_ENV==="scz"&&(M=z.getContents(),JSON.stringify(rt)),M),T="w",ot=(O.role&&(T=O.role),G),at=!1,q=!1,ht=!1,lt=!1,bt=!1,_t=!1,Dt=!1,Ft=!1,Qt=!1,ue=!1,ae=!1,se=!1,Ne=!0,ce=!0,qt=!0,Nt=!0,It=!0,me=!0,Vt=!0,ge=null,De=null,_e=null,Ht=(g.isClickup||(Q.rangy||(Q.rangy=o("rangy/lib/rangy-selectionsaverestore")),Q.rangy.initialized||Q.rangy.init()),250),yn=2e3,ee=0,Qe=null,on=2e3,wn=null,Ve=null,Ue=[],Ze=null,gn=performance.now(),fn=0,On=0,bn=1,Xe=2,$e=4,kt=bn,be=3,de=!0,Ye=!0,cn=!0,We=!0,At=!0,Zt=0,xt=performance.now(),Wt=null,re=null,je=null,Gt=null,Ge=null,Te='"></span>',yt=null,zt=1,Tt=2,Rt=3,Ut=4,Yt=null,ie=null,X=null,dt=null,wt=null,Bt=null,St=null,Se=null,oe=null,ve=null,Ie=null,ke=null,nn=null,dn=null,En=null,Ln=null,tr=null,jn=null,Rn=null,$n=null,Wr=!1,uo=!1,xr=new r.default(z,this),fo=null;function Sr(){return St.mbs.length===1}function Mr(){x<2.2&&ve()}var Ni=0,bi=1,ea=2,ar=3,po=4,_i=5,Ro=6,Ho=7,Jr=8,Io=0,wi=1,ei=0,ds=1,qo=2,Mi=1e3,fs=1001,na=1002,Ls=1,ps=2,ga=3,La=4,Wo=5,Ba=6,Fa=8,Be=9,Ae=10,Pe=11,_n=12;function kn(H,it){if(I)try{if(I.readyState!==1)throw new Error("WebSocket is not in OPEN state.");I.close(),I=null}catch{D("socket error readyState = ".concat(I.readyState," err=").concat(it)),H.error=it,g.isProd||console.error("[codox] exception in closing socket")}}function qn(H){it=new Date,ut=null,Lt&&(ut=St.mbs.length),ct=null,Yt&&(ct=Yt.gjc());var it,ct={state:kt,connected:uo,subr:vt,subs:Lt,JnC:ct,joined:Wr,members:ut,reason:null,error:null,wid:$.waveid,app:N,ts:it},ut={};return ct.reason=H||500,ut.reason=H||500,performance.now(),kt===$e?void(ct.error=Ls):H&&H!="ESTOP"?(H===100||H===200?(ct.error=La,H!==200&&(D("stop reason ".concat(H," sid = ").concat(Re.sid)),U(new Error("reason ".concat(H)),{tags:ut,extra:ct})),kn(ct,Wo)):uo?H===501&&kt!==Xe?(ct.error=Fa,kn(ct,Be)):(H!==1&&H!==300&&H!==13&&H!==24&&H!==25&&H!==23&&(ct.error=Ae,ai(Rt,H,ct)),H!==1&&kn(ct,Pe),H!==501&&H!==1&&H!==2&&(ct.error=_n,D("stop reason ".concat(H," sid = ").concat(Re.sid)),U(new Error("reason ".concat(H)),{tags:ut,extra:ct}))):(ct.error=Ba,H!==501&&U(new Error("init socket connection failure"),{tags:ut,extra:ct}),Oi(H)),void(L||Dr(P,H))):(ct.error=ps,H=="ESTOP"&&(ct.error=H),kn(ct,ga),void Dr(P,H=="ESTOP"?H:500))}function Dr(H,it){var ct;kt!=$e&&(kt=$e,I&&(I.onclose=null,I.onmessage=null,I.onerror=null,I.onopen=null),(0,d.clearTimer)(Ze),(0,d.clearTimer)(Xa),(0,d.clearTimer)(wn),(0,d.clearTimer)(Ve),(0,d.clearTimer)(J),Lt&&oe(),ct=(performance.now()-A)/1e3,Wr?(D("[codoxi]* cdxclose: t = "+ct+"; r="+it+"; hbc = "+ir+"; sid = "+Re&&Re.sid,u.SentryLevel_H),$.a.a(H,it)):(D("[codoxi]* cdxcb(n): t = "+ct+"; r="+it,u.SentryLevel_H),it!="ESTOP"&&ot(null,it)),F=null,$.domains=null,B=z=tt=Re=ot=Q=null,Yt&&Yt.clean(),Yt=null)}function fr(H){if(!H&&(H=performance.now()-Qe,ee+=Ht,H<Ht&&ee<yn))return(0,d.clearTimer)(Ze),void(Ze=setTimeout(fr,Ht));Re.sid,Fr("LoT"),ee=0,Ze=Qe=null}function Kn(){return T==="r"}function Pr(){return St&&St.mbs&&St.mbs.length===1}var ho=null;function ma(){var H=null;return ue||ht?H=z.j:(at||q)&&(H=z.k),JSON.stringify(H)}function xi(H){JSON.stringify(new Date),(0,d.deepCopy)(H);var it={ops:Oa(H.op)};z.updateContents(it),ci(H),(0,d.deepCopy)(H)}function ya(H){kt===Xe&&(Fr("qjscmv"),Re.dmid=z.dmid,li(H={t:"sl",op:H}),Co(H,oo()))}var Le=[];function go(H){var it=va(H);0<it.length&&z.updateContents(it),ci(H)}function va(H){tr(H);var it=function(gt){for(var Et=[],jt=0;jt<gt.length;jt++)gt[jt].data.ne?gt[jt]:Et.push(gt[jt]);return Et}(H.ao);if(0<it.length)for(var ct=0;ct<it.length;ct++){var ut=it[ct];ut.key&&(ut.type=ie.lt(ut.key),delete ut.key)}return it}var Me=null,Qr=null;function ni(){Ha(),zs()}var Bn=!1;function Lr(){var H;Bn&&(Fr("cmv"),Re.dmid=z.dmid,H=fl(z),Di(Re.dmid,H.start),li(H={t:"sl",op:H}),ki(H),Bn=!1)}var pr={};function Di(H,it){var ct=pr[H];ct||(pr[H]=ct={}),ct.pos=it}function Li(H){return H=pr[H],H?H.pos:0}var Bs=!1;function fl(H){var it;if(performance.now(),H==null&&(H=z),!ae)return it=at||se?(Bs=!0,it=H.c(),Bs=!1,it?at?{start:it.index,end:it.index+it.length}:{start:it.f,end:it.t}:{start:-1,end:-1}):q?{start:(it=H.c()).anchor.offset,end:it.focus.offset,path:it.anchor.path,startpath:it.anchor.path,endpath:it.focus.path}:H.y==="pt"?H.c():function(){if(!Kr)return{start:-1,end:-1};var ct=H??z,ut=Gr(ct),gt=ct.d(),Et=0,jt=0,Ct="",Mt="";return ut&&ut.rangeInfos[0]&&((Ct=ct.cc(0))&&(Et=gt.indexOf(Ct)),(Mt=ct.cc(1))&&(jt=gt.indexOf(Mt))),ii(0,ut),Et<0&&(Et=0),Mt?jt-=Ct.length:jt=Et,{start:Et,end:jt}}(),performance.now(),it}var Bi=!1,jc=0,Bl=1,Fl=2,zl=3,Ul=4,Hl=6,yr=7,ri=8,ql=9,pl=10,Fs=11,za=12;function Ir(){return ht||ue||_t||lt||bt||Ft||Qt}function Br(){return at||q||ae||se}var Gn=!1,Si=null,No=5e3;function hl(H){(0,d.clearTimer)(Si),Si=setTimeout(Ac,No)}function Ac(){Si=null,Gn&&(tt.u(0),C.h(!1),gl())}function gl(){(0,d.clearTimer)(Si),Si=null,kt!==Xe||zn||Vr||(cr=!0,at?zs():setTimeout(zs,0))}var cr=!1;function zs(){cr&&(kt!==Xe||zn||Vr?cr=!1:(Sr()&&(At=!1),cr=!1,si(),Gn=!1,tt.g(),nn(),1<St.mbs.length&&$.a.g(P)))}var zn=!1,Mo=null,ba=1e4;function hs(){!zn||Kn()||(Mo!==null&&((0,d.clearTimer)(Mo),Mo=null),(0,d.clearTimer)(Mo),Mo=setTimeout(gs,ba))}function gs(){Mo=null,zn&&(zn=!1,tt.k(0),Ua())}function Ua(){Mo!==null&&((0,d.clearTimer)(Mo),Mo=null),kt!==Xe||Gn||cr||(Vr=!0,setTimeout(Ha,0))}var Vr=!1;function Ha(){Vr=Vr&&(kt!==Xe||Gn||cr||(Sr()&&(At=!1),si(),tt.g(),nn(),1<St.mbs.length&&$.a.g(P)),!1)}function Fr(H){ae||(H!=="a2ia"&&(lt||bt||ue||ht?Ka()?(Kr||ys()&&!Bi&&1<St.mbs.length&&(si(),tt.g(),nn(),1<St.mbs.length&&$.a.g(P)),Kr=!0):Kr&&(ys()&&!Bi&&(1<St.mbs.length?Fr("a2ia"):tt.a(),tt.f2(),St.CKPRops=[]),Kr=!1):Kr=!0),ni(),(Br()||ra()||oi())&&!Sr()&&((0,d.clearTimer)(Ze),performance.now(),at||q||se?jr():tt.b().forEach(function(it){if(!ce){var ct=it.j,ut=it.d(),gt=(performance.now(),!1);if(ut!==ct&&(gt=!0,$.a.i({source:"l"})),performance.now(),gt){if(Kn())return void it.e(it.j,!1);if(it.y==="rt"&&(gt=function(jt){if(ht)return!0;var Ct=document.createElement("div"),Ct=(Ct.innerHTML=jt,Ct.innerHTML);return jt===Ct||(jt.length,Ct.length,Ct)}(ut),(0,i.default)(gt)===Me[er]&&(it.e(gt,!1),ut=gt)),gt=ms(it,ct,ut),ct=function(jt){for(var Ct=0,Mt=0;Mt<jt.length;Mt++)for(var Kt=jt[Mt],$t=0;$t<Kt.op.length;$t++){var le=Kt.op[$t];switch((0,i.default)(le)){case Me[An]:case Me[nr]:break;case Me[er]:Ct+=le.length;break;default:D("[codoxe]-- pb r="+Mi+": len = "+jt.length+"; sid = "+Re.sid,u.SentryLevel_H),qn(Mi)}}return Ct}(gt),Wt<ct){var ut=performance.now(),Et=ut-xt;if(Et<2e3?Zt++:Zt=1,xt=ut,D("[codoxi]- os = "+ct+"; osoti = "+Et+"; sid = "+Re.sid,u.SentryLevel_H),3<Zt||2*re<ct)return it.e(it.j,!1),void Oi(11)}else Zt=0;it.j=it.d(),ut=Re.dmid,Re.dmid=it.dmid,Ui(gt),Re.dmid=ut}}}),performance.now(),Qe=null))}var qa=null,Fn=null,Fi=1,zi=2;function ms(ut,it,ct){var ut=function(jt,Ct,Mt){var Kt=[];if(Ct===Mt)return Kt;for(var $t=function(qe,tn){for(var ln=Li(jt.dmid),vn=(ln!==0&&kt===Xe||(ln=tn.length>qe.length?qe.length-1:tn.length-1),0),Nn=-1;qe&&tn&&vn<ln&&vn<qe.length&&vn<tn.length&&qe.charAt(vn)===tn.charAt(vn);)qe.charAt(vn)!==qa||At||(Nn=vn),qe.charAt(vn)===Fn&&Nn!=-1&&(Nn=-1),vn++;return vn=vn!=0&&Nn!=-1?Nn:vn}(Ct,Mt),le=0,fe=-1;Ct.charAt(Ct.length-1-le)===Mt.charAt(Mt.length-1-le)&&le+$t<Ct.length&&le+$t<Mt.length;)jt.y==="rt"&&(Ct.charAt(Ct.length-1-le)!==Fn||At||(fe=le),Ct.charAt(Ct.length-1-le)===qa&&fe!=-1&&(fe=-1)),le++;jt.y==="rt"&&le!=0&&fe!=-1&&(le=fe);var he=null,Ee=null;if(Ct.length!==$t+le&&(He=Ct.slice($t,Ct.length-le),Kt.push(he={type:zi,pos:$t,text:He})),Mt.length!==$t+le&&(He=Mt.slice($t,Mt.length-le),Kt.push(Ee={type:Fi,pos:$t,text:He})),he&&Ee&&he.pos===Ee.pos&&he.text!==" "){if(ht&&(Ee.text.indexOf(0,yt)!==-1||he.text.indexOf(0,yt)!==-1))return Kt[0],Kt[1],Kt;var He=Ee.text.indexOf(he.text);if(He!==-1)return ye=Ee.text.slice(0,He),He=Ee.text.slice(He+he.text.length),Kt[0],Kt[1],Kt=[],0<ye.length&&(Kt.push({type:Fi,pos:Ee.pos,text:ye}),Kt[Kt.length-1]),0<He.length&&(Kt.push({type:Fi,pos:Ee.pos+ye.length+he.text.length,text:He}),Kt[Kt.length-1]),Kt;var ye=he.text.indexOf(Ee.text);if(ye!==-1)return Kt[0],Kt[1],Kt=[],He=he.text.slice(0,ye),ye=he.text.slice(ye+Ee.text.length),0<He.length&&(Kt.push({type:zi,pos:he.pos,text:He}),Kt[Kt.length-1]),0<ye.length&&(Kt.push({type:zi,pos:he.pos+Ee.text.length,text:ye}),Kt[Kt.length-1]),Kt}return Kt}(ut,it,ct),gt=ut;At||(gt=function(jt){for(var Ct,Mt=[],Kt=0,$t=jt.length;Kt<$t;Kt++)(Ct=jt[Kt]).type===Fi&&(Ct.pos===0?Mt.push({op:[Ct.text]}):Mt.push({op:[Ct.pos,Ct.text]})),Ct.type===zi&&(Ct.pos===0?Mt.push({op:[{d:Ct.text.length,text:Ct.text}]}):Mt.push({op:[Ct.pos,{d:Ct.text.length,text:Ct.text}]}));return Mt}(ut));for(var Et=0;Et<gt.length;Et++)(0,d.deepCopy)(gt[Et]);return gt}function Ei(H){var it=[];if(H.length==0)return it;if(it.push(H.shift()),!At)for(var ct=0;ct<H.length;ct++){var ut=H[ct],gt=it[it.length-1];gt&&Ga(gt,ut)||it.push(ut)}return it}function Vo(H){for(var it=[],ct=0;ct<H.length;ct++){var ut={op:H[ct].op,context:{}};li(ut),it.push(ut)}return it}function Ui(H,it){(0,d.deepCopy)(H);for(var ct=[],ut=0;ut<H.length;ut++){var gt=H[ut],Et=ct[ct.length-1];Et&&!At&&Ga(Et,gt)||ct.push(gt)}(0,d.deepCopy)(ct);for(var jt=0;jt<ct.length;jt++){var Ct=ct[jt];(0,d.deepCopy)(Ct.op),li(Ct),so({op:Ct.op,context:Ct.context}),ci(Ct),Co(Ct,oo())}}var Wn={},Wa=null,dr=0,Ci=2;function Va(H){if((0,d.deepCopy)(H),at||se){var Kt=H;JSON.stringify(Kt),JSON.stringify(sr);var it,ct,ut=Kt.op;for(it in sr)!sr.hasOwnProperty(it)||(ct=sr[it]).start!=-1&&ct.end!=-1&&Re.sid!==it&&(ct.start=ao(ut,ct.start,!1),ct.end=ao(ut,ct.end,!1));kt==Xe&&lo("qjs"),(0,d.deepCopy)(sr)}if(H.context)return jr(),kt!==Xe?(St.CKPLops.push(H),(0,d.deepCopy)(H),void(0,d.deepCopy)(St.CKPLops)):(so(H),void Co(H,oo()));if(ae)return(0,d.deepCopy)(H),li(H),kt!==Xe?(St.CKPLops.push(H),(0,d.deepCopy)(H),void(0,d.deepCopy)(St.CKPLops)):(so(H),void Co(H,oo()));dr++;var gt,Et,jt,Ct,Mt,Kt=H.op,$t=H.inverse,le=[];q&&(le=H.ao),JSON.stringify(Wn)==="{}"?(Wn.op=Kt,Wn.inverse=$t,Wn.ao=le,Wa=oo(),(0,d.deepCopy)(Wn)):((0,d.deepCopy)(Wn),q&&(Wa=(jn(Kt[0].dm,Wn.op[0].dm)&&H.ao[0].data.tn===1&&Wn.ao[0].data.tn===1&&H.ao[0].key&&(ie.k2t(H.ao[0].key,Sa)||ie.k2t(H.ao[0].key,Vn))&&ie.k2k(Wn.ao[0].key,H.ao[0].key)?(Ct=Wn.op[0].do,Mt=Kt[0].do,Wn.op[0].do=io(Ct,Mt),ie.k2t(H.ao[0].key,Vn)&&(gt=Wn.ao[0].text,Et=le[0].text,jt=!1,(Ct[0].tg&&Mt[0].tg&&Ct[0].tg===Mt[0].tg||!Ct[0].tg&&!Mt[0].tg)&&(jt=!0),Wn.ao[0].text=jt?gt+Et:Et+gt,(0,d.deepCopy)(Wn))):(jr(),Wn.op=Kt,Wn.inverse=$t,Wn.ao=le),oo())),(at||se)&&(Wn.op=io(Wn.op,Kt),Wa=oo(),se||(Ct=Wn.inverse,Mt=$t,Ct.length!==0&&Mt.length!==0&&Ct[0].tg&&Mt[0].tg&&Ct[0].tg>Mt[0].tg?(Wn.inverse=io($t,Wn.inverse),Wn.inverse):(jt=Jo(Wn.inverse,$t,!0),Wn.inverse=io(Wn.inverse,jt))),(0,d.deepCopy)(Wn))),(Ci<=dr||q&&(1<H.ao[0].data.tn||!H.ao[0].key||H.ao[0].key&&!ie.k2t(H.ao[0].key,Sa)&&!ie.k2t(H.ao[0].key,Vn)))&&((0,d.deepCopy)(Wn),jr())}function jr(){if((0,d.deepCopy)(Wn),JSON.stringify(Wn)!=="{}"){(0,d.clearTimer)(Ze),ee=0;var H,it={};if(q?it={op:[{po:Wn.op,ao:Wn.ao}],inverse:Wn.inverse}:(it={op:Wn.op,inverse:Wn.inverse},(0,d.deepCopy)(it)),li(it),dr=0,Wn={},kt!==Xe||Gn||cr||zn||Vr)return St.CKPLops.push(it),(0,d.deepCopy)(St.CKPLops);so(it),it.inverse&&delete it.inverse,(0,d.deepCopy)(it),at||se||ci(it),H=Wa,it.context.seq,(0,d.deepCopy)(it),Co(it,H)}}function Co(H,it){ki(H,it)}function $a(H){var it,ct;if(performance.now(),H.cmg){var ut=H;if(ut.cmg){performance.now();var gt=ut.cmg;if(delete ut.cmg,L||(gt=xa(gt,De),performance.now()),gt.context&&(ut.context=gt.context),gt.op&&(ut.op=gt.op,!L)){var Et=ut,jt=Et.op;if(jt.length!==0)if(Br()||eo(Et))try{var Ct=b.inflate(Et.op,{to:Me[er]});Et.op=JSON.parse(Ct)}catch(ln){console.error(ln)}else for(var Mt=0;Mt<jt.length;Mt++){var Kt=jt[Mt];if((0,i.default)(Kt)===Me[er]){Kt.length;try{jt[Mt]=b.inflate(Kt,{to:Me[er]})}catch(ln){console.error(ln)}jt[Mt].length}}}if(gt.cmd&&(ut.cmd=gt.cmd,!L&&ut.cmd.t===be)){var $t=ut.cmd;if($t.spsts!==void 0)for(var le=0;le<$t.spsts.length;le++){var fe=$t.spsts[le].spst;fe.length;try{$t.spsts[le].spst=b.inflate(fe,{to:Me[er]})}catch(ln){console.error(ln)}$t.spsts[le].spst.length}}}if(ut.im){Et=ut;try{var he=b.inflate(Et.imo,{to:Me[er]});Et.imo=JSON.parse(he)}catch(ln){g.isProd||console.error(ln)}for(var Ct=ut,Ee=Ct.imo,He=[],ye=Ct.op;0<ye.length;){var qe,tn=ye.shift();tn.cr&&tn.cr=="QJSImage"&&(qe=Ee.shift(),tn.cr=qe.xx),He.push(tn)}Ct.op=He,delete Ct.imo}}performance.now(),H.so||kt===bn||H.cmd&&H.cmd.t==="SMM"||H.hasOwnProperty("nut")?H.hasOwnProperty("nut"):(gt=Hn(gt=H.context.sid))&&(he=performance.now(),Re.sid,gt.activetime,gt.activetime=he),(ut=H).context&&ut.context.sid===Re.sid&&ut.cmd&&ut.cmd.t===5&&(it=performance.now(),(fn=it-ut.context.st)<0&&(ct=(performance.now()-A)/1e3,g.isProd||console.error("[codoxi]-- rtt-roh: t = "+ct+"; hbC = "+ir+"; rtt= "+fn+"; priT="+ut.context.st+"; curT="+it+"; sid="+Re.sid),0<_s&&(D("[codoxi]-- rtt-roh: t = "+ct+"; hbC = "+ir+"; rtt= "+fn+"; priT="+ut.context.st+"; curT="+it+"; sid="+Re.sid),U(new Error("reason RTT")),_s--))),H.context&&H.context.sid===Re.sid&&eo(H)?(0,d.deepCopy)(H):(Ue.push(H),Ue.length===1&&function ln(vn){var Nn,Qn,en,pi,Ai,$r,vo,kr;Ue.length!=0&&(kr=performance.now()-Qe,Kr&&de&&!zn&&!Gn&&kt===Xe&&kr<Ht&&vn<on?(Nn=Ht,(0,d.clearTimer)(wn),wn=setTimeout(function(){ln(vn+Nn),wn=null},Nn)):(kr=Ue.shift(),Ne&&(qt=!qt),kr=kr,performance.now(),qt||Fr("ROH"),kr.to&&(Re.rto=kr.to),kr.so&&at?((vo=kr).to,Ja=vo.to,(Qn=vo).so.length,(en=b.inflate(Qn.so,{to:Me[er]})).length,Qn.so=en,wr=vo.so,kt===Xe?Us():vo.to):kt!==bn||kr.cmd?(kr.context.to=kr.to,(Qn=kr).context.rto!==null&&Qn.context.rto<Ja&&(Qn.context.rto,Qn.context.sid,Qn.cmd?(Qn.cmd.t==5&&(Qn.context.CAID=!1),(0,d.deepCopy)(Qn),0):(Qn.context.rto,Qn.context.sid,(0,d.deepCopy)(Qn),1))||(kr.cmd?Se(kr):(en=kr,vo={},!q||en.t&&en.t==="sl"?vo.op=en.op:(vo.op=en.op[0].po,vo.ao=en.op[0].ao),vo.context=en.context,en.t&&(vo.t=en.t),qt||(eo(en=vo)?en.context.sid!==Re.sid?((0,d.deepCopy)(en),$.a.j(P,{coords:en.op,sid:en.context.sid})):(0,d.deepCopy)(en):(en=function(lr){(0,d.deepCopy)(lr);var Ks=Hn(lr.context.sid);if(Ks===null)return null;var Po=Ks.tp;if(Re.rto=lr.context.to,lr.context.sid===Re.sid){if(to(lr))return(0,d.deepCopy)(lr),null;for(var Rc=Po,Vl=0;Vl<Rc.length;Vl++){var ws=Rc[Vl];if(ws.context.sid===lr.context.sid&&ws.context.seq===lr.context.seq&&!Nt){ws.context.to=lr.context.to;break}}return null}if(lr.context.cpsop)return(0,d.deepCopy)(lr),null;$i(Po,lr.context.rto),0<Po.length&&(lr.context.CAID=!1);var Gs=Ko(Po,lr.context.to);(0,d.deepCopy)(lr),(0,d.deepCopy)(Po);for(var Ic,Pa=0;Pa<Gs;Pa++)to(lr)?ui(lr,Po[Pa]):((0,d.deepCopy)(lr),Po[Pa],Ar(lr,Ic=Xt(Po[Pa])),Po[Pa]=Ic);var Xi=lr;Nt||(Xi=Xt(lr));for(var xs=Gs;xs<Po.length;xs++){if(to(lr))return ui(lr,Po[xs]),lr;(0,d.deepCopy)(lr),(0,d.deepCopy)(Po[xs]),Ar(lr,Po[xs])}if(to(lr))return lr;for(var Ri=0;Ri<Dn.length;Ri++){if(Dn[Ri].sid!==Xi.context.sid){for(var ts=Dn[Ri].tp,zu=Ko(ts,Xi.context.to),Nc=ts.length-1;zu<=Nc;Nc--)ts.pop();Nt||ts.push(Xi);for(var $l=Gs;$l<Po.length;$l++)ts.push(Po[$l])}if(Dn[Ri].sid===Re.sid&&(Oo=Dn[Ri].tp.length-1,Xi.context.nopseq&&Xi.context.undone)){(0,d.deepCopy)(Xi);for(var es=0;es<Dn[Ri].tp.length;es++)if(Dn[Ri].tp[es].context.sid===Xi.context.sid&&Dn[Ri].tp[es].context.seq===Xi.context.nopseq){Dn[Ri].tp[es].context.undone=!0,(0,d.deepCopy)(Dn[Ri].tp[es]);break}}}return(0,d.deepCopy)(lr),lr}(en))!=null&&en.op.length!==0&&(to(en)?(Ai=(pi=en).context.sid,sr[Ai]!==void 0&&(sr[Ai]=pi.op),(0,d.deepCopy)(pi),oi()||ra()?lo("exe-slop",Ai):((0,d.clearTimer)(bs),bs=setTimeout(Ki,1e3))):!ra()&&!oi()||qt?(Br()?((0,d.deepCopy)(en),ae?((0,d.deepCopy)(en),pi=Xt(en),tt.s(en.context.dmid,pi)):at?(Ai={ops:Oa(en.op)},tt.s(en.context.dmid,Ai)):q?((0,d.deepCopy)(en),$r=va(Xt(en)),(0,d.deepCopy)($r),tt.s(en.context.dmid,$r)):se?(JSON.stringify(en),fo.uCKPc(en)):(0,d.deepCopy)(en)):((0,d.deepCopy)(en),_a(en)),en.context.CAID=!1,St.CKPRops.push(en),St.CKPRops.length,(0,d.deepCopy)(St.CKPRops)):(Br()?((0,d.deepCopy)(en),ae?((0,d.deepCopy)(en),xr.roh(en)):at?((0,d.deepCopy)(en),xi(en)):q?((0,d.deepCopy)(en),go(en)):se&&((0,d.deepCopy)(en),fo.roh(en),(0,d.deepCopy)(en),ci(en),(0,d.deepCopy)(en))):(($r=_a(en))&&mo($r,en),$r.y==="rt"&&0<($r=Hs($r)).length&&(($r=Vo(Ei($r))[0]).context.cpsop=!0,$r.context.CAID=!1,$r.context.undoable=!1,so($r),$r.bc=!0,(0,d.deepCopy)($r),ki($r))),!Gn&&en.context.CAID&&((0,d.deepCopy)(en),wa(oo(),en.context.caidinfo)))))),performance.now())):(0,d.deepCopy)(kr),0<Ue.length&&ln(on-500)))}(0),performance.now())}function _a(H){var it;return(0,d.deepCopy)(H),(it=tt.d(H.context.dmid))&&!qt&&(it.j=oa(it.j,H.op)),it}var Ja=0,wr=null;function Us(H){if(wr!==null){for(var it in Fr("smsync"),Gn&&tt.u(0),Si&&clearTimeout(Si),Si=null,cr=Gn=!1,zn&&tt.k(0),Mo&&clearTimeout(Mo),Mo=null,Vr=zn=!1,tt.g(),nn(),Kr=de=!0,ji("all"),sr)it=sr[it],it.start&&(it.start=-1),it.end&&(it.end=-1);at&&(Wn={},dr=0),Ze&&clearTimeout(Ze),Ze=null;var ct={dmid:ee=0,spst:wr},ut=[];ut.push(ct),tt.h(ut),at||q||(z.j=wr),wr=null}}var Kr=!0;function oi(){return!(!Kr||kt!==Xe||!de||zn||Vr||Gn||cr)}function ra(){return Bi&&kt===Xe&&de&&!zn&&!Vr&&!Gn&&!cr}function ys(){return!(kt!==Xe||!de||zn||Vr||Gn||cr)}function Ka(){var H=!1,it=document.activeElement;return ht?tt.hf():(F&&F.forEach(function(ct){it===ct.x&&(H=!0)}),H)}function oo(){return z?Br()?z.getLength():z.j.length:null}function wa(H,it){var ct,ut;ae||it===void 0||(ct=(performance.now()-A)/1e3,H!==it&&(Br()?(D("[codoxe]-- caid: t = "+ct+"; l="+H+"; r="+it+"; sid = "+Re.sid,u.SentryLevel_H),qn(12)):(ut=z.j.length)===it?D("[codoxi]- caid: t = "+ct+"; li="+ut+"le="+H+" r="+it+"; sid = "+Re.sid,u.SentryLevel_H):(D("[codoxi]-- caid: t = "+ct+"; li="+ut+"le="+H+" r="+it+"; sid = "+Re.sid,u.SentryLevel_H),qn(12))))}function oa(H,it){Vi(it);for(var ct=[],ut=0;ut<it.length;ut++){var gt=it[ut];switch((0,i.default)(gt)){case Me[er]:ct.push(gt);break;case Me[nr]:H=H.slice(gt.d);break;case Me[An]:gt>H.length&&(H.length,D("[codoxe]-- pb: r="+fs+"; l="+H.length+"; sid = "+Re.sid,u.SentryLevel_H),qn(fs)),ct.push(H.slice(0,gt)),H=H.slice(gt)}}return ct.join("")+H}function mo(H,it){if(Re.dmid,(0,d.deepCopy)(sr),performance.now(),H.y==="rt"&&function(Et,jt){if(Re.dmid!==Et.dmid)return Re.dmid,Et.dmid,Et.e(Et.j);var Ct,Mt,Kt;Et.d();var $t=Gr(Et),le=Et.d(),fe=[];if($t&&$t.rangeInfos[0]&&(Kt=Mt=null,$t.rangeInfos[0].collapsed?Hi(0,le,Mt=Et.cc(0),fe):(Mt=Et.cc(0),Kt=Et.cc(1),Hi(0,le,Mt,fe)&&Hi(0,le,Kt,fe)||(fe=[]))),fe.length){var he=Vo(Ei(fe))[0];if(Array.isArray(jt))for(var Ee=0;Ee<jt.length;Ee++)Wi(he,jt[Ee]);else Wi(he,jt);Ct=oa(Et.j,he.op),Et.e(Ct,!0),ii(0,$t)}else Ct=Et.j,Et.e(Ct,!0)}(H,it),H.y==="pt"){var ct=H.c();if(H.e(H.j,!0),Array.isArray(it))for(var ut=0;ut<it.length;ut++)Yo(ct,it[ut].op);else Yo(ct,it.op);H.b(ct.start,ct.end)}if(Array.isArray(it))for(var gt=0;gt<it.length;gt++)ci(it[gt]);else ci(it);performance.now(),(0,d.deepCopy)(sr),z.d()}function Hs(H){var it=[];if(H.dmid!==0||qt||H.y==="pt")return it;var ct=H.d(),ut=document.createElement("div"),ut=(ut.innerHTML=H.j,ut.innerHTML);return ct!==ut&&(H.j.length,ut.length,ct.length,it=ms(H,ut,ct),H.j=ct),it}function Hi(H,it,ct,ut){if(ct!==null)return it=it.indexOf(ct),it!==-1?(ut.push(it===0?{op:[ct]}:{op:[it,ct]}),1):void 0}function Gr(H){var it=null;if(!Kr)return null;if(H&&H.x)try{it=Q.rangy.saveSelection(H.x)}catch(ct){g.isProd||console.error(ct)}return it}function ii(H,it){it&&Q.rangy.restoreSelection(it,!0)}function ki(H,it){if(performance.now(),Kn()&&!H.bc)throw(0,d.deepCopy)(H),D("[codoxe]-- pb: rv r="+na+"; sid = "+Re.sid,u.SentryLevel_H),new Error("ESTOP RoleVio, errcode = "+na);H.op&&0<H.op.length&&H.context.seq,(0,d.deepCopy)(H);var Ct=H;!L&&!ae&&!eo(Ct)&&z&&Ct.context&&(Ct.context.dmid||(Ct.context.dmid=0),ct=tt.d(Ct.context.dmid),ut={},Kn()?(ut.start=0,ut.end=0):ut=fl(ct),q?(Ct.context.ks=ut.start,Ct.context.js=ut.end,Ct.context.pt===null?Ct.context.pt=[0,0]:Ct.context.pt=ut.path,Ct.context.pt1===null?Ct.context.pt1=[0,0]:Ct.context.pt1=ut.startpath,Ct.context.pt2===null?Ct.context.pt2=[0,0]:Ct.context.pt2=ut.endpath):at||se?(Ct.context.ks=ut.start,Ct.context.js=ut.end):(Di(Re.dmid,ut.start),Ct.context.ks=ut.start,Ct.context.js=ut.end)),H.a=Gi,H.to=null,H.len=null,H.is=!1,H.im=!1;var ct=H;if(!eo(ct)&&!to(ct)&&at&&(Ct=function(fe){for(var he=[],Ee=fe.op,He=[];0<Ee.length;){var ye,qe=Ee.shift();qe.cr&&qe.cr.image&&typeof qe.cr.image=="string"&&qe.cr.image.search(/^data:image/)===0&&(ye={xx:qe.cr},He.push(ye),qe={cr:"QJSImage"}),he.push(qe)}return fe.op=he,He}(ct),0<Ct.length)){ct.im=!0,ct.imo=Ct,Ct=ct,ct=JSON.stringify(Ct.imo);try{Ct.imo=b.deflate(ct,{to:Me[er]})}catch(fe){g.isProd||console.error(fe)}}if(!L&&!cn&&H.op){var ut=H,gt=ut.op;if(gt.length!==0)if(Br()||eo(ut)){Ct=JSON.stringify(ut.op);try{ut.op=b.deflate(Ct,{to:Me[er]})}catch(fe){console.error(fe)}}else for(var Et=0;Et<gt.length;Et++){var jt=gt[Et];switch((0,i.default)(jt)){case Me[nr]:gt[Et]={d:jt.d};break;case Me[er]:jt.length;try{gt[Et]=b.deflate(jt,{to:Me[er]})}catch(fe){console.error(fe)}gt[Et].length}}}var Ct=H,Mt={};if(Ct.op&&(Mt.op=Ct.op,delete Ct.op),(oi()||ra())&&z&&Ct.context&&!eo(Ct)&&(Br()&&it?Ct.context.caidinfo=it:Ct.context.caidinfo=oo(),Ct.dos=Ct.context.caidinfo),Ct.context&&(Mt.context=Ct.context,delete Ct.context),Ct.cmd){if(Mt.cmd=Ct.cmd,Ct.cmd.t===be&&(Ct.is=!0,!L)){var Kt=Mt.cmd;if(Kt.spsts!==void 0)for(var $t=0;$t<Kt.spsts.length;$t++){var le=Kt.spsts[$t].spst;le.length;try{Kt.spsts[$t].spst=b.deflate(le,{to:Me[er]}),Kt.spsts[$t].spst.length}catch(fe){console.error(fe)}}}delete Ct.cmd}Ct.cmg=Mt,L?(Ct.cmg=Mt,Ct.len=JSON.stringify(Ct.cmg).length):(Ct.cmg=Pi(Mt,De),Ct.len=Ct.cmg.length,Ct.im&&(Ct.len=Ct.len+Ct.imo.length,Ct.len)),H.is&&H.len>je||!H.is&&H.len>re?(H.len,D("[codoxe]-- os(msg): r=10; len="+H.len+"; sid = "+Re.sid,u.SentryLevel_H),qn(10)):(performance.now(),Jt(H))}function ai(H,it,ct){var ut=performance.now(),gt={log:{}},Et=(gt.log.Type=H,oo());switch(H){case zt:gt.log.TotalTime4Start=ut-k.SMDIvtSt,gt.log.T4SMD=k.SMDIvtEd-k.SMDIvtSt,gt.log.T4CLTAftSMD=k.SMConSt-k.SMDIvtEd,gt.log.T4SMCon=k.SMConEd-k.SMConSt,gt.log.T4SMSub=k.SMSubEd-k.SMSubSt,gt.log.T4CLTAftSM=ut-k.SMSubEd,gt.log.DocSizeatStart=Et,gt.log;break;case Tt:gt.log.TotoalTime4Join=ut-k.SMDJnSt,gt.log.T4SMD=k.SMDJnEd-k.SMDJnSt,gt.log.T4CLTAftSMD=k.SMConSt-k.SMDJnEd,gt.log.T4SMCon=k.SMConEd-k.SMConSt,gt.log.T4SMSub=k.SMSubEd-k.SMSubSt,gt.log.T4CLTAftSMSub=k.SMJnSt-k.SMSubEd,gt.log.T4CKPJn=k.SMJnEd-k.SMJnSt,gt.log.CoNewCmNum=it,gt.log.SesMemNumatJoin=St.mbs.length,gt.log.DocSizeatJoin=oo(),gt.log;break;case Rt:gt.q=!0,gt.log.Reason4StopbyClient=it,gt.log.Reason4StopMatrix=ct,gt.log.T4CLTLive=k.SMDIvtSt?ut-k.SMDIvtSt:ut-k.SMDJnSt,Lt&&(gt.log.DocSizeatStop=Et,gt.log.SesMemNumatStop=St.mbs.length),gt.log,(0,d.deepCopy)(gt);break;case Ut:gt.log.InvalidMb=it,gt.log.ExistingMbs=ct}(H=gt).a=Gi,H.len=null,De!=="invalid"?(H.log=Pi(H.log,De),H.len=H.log.length):H.len=JSON.stringify(H.log).length,H.len>re?(H.len,D("[codoxe]-- os(log): r=10; len="+H.len+"; sid = "+Re.sid,u.SentryLevel_H),qn(10)):Jt(H)}function Oi(H){L||(H!==14&&H!=16||$.a.b(P,St.mbs),(H=H===1?kt===bn?20:21:H)!==501&&$.a.e(P,H))}function Ti(H,it){if(!L){$.a.b(P,St.mbs);for(var ct=[],ut=0;ut<it.length;ut++)it[ut].sid!==Re.sid&&ct.push(it[ut]);0<ct.length&&$.a.e(P,H,ct)}}function si(){var H=tt.b(),it=[];if(H.forEach(function(ut){ut=function(he){if(Br()){if((0,d.deepCopy)(St.CKPRops),(0,d.deepCopy)(St.CKPLops),(0,d.deepCopy)(Wn),jr(),St.CKPLops.length&&((0,d.deepCopy)(St.CKPLops),St.CKPRops.length&&$o(St.CKPLops,St.CKPRops)),ae){for(var Et=0;Et<St.CKPLops.length;Et++){var jt=St.CKPLops[Et];z.apply(jt.op)}St.CKPLops.length===0&&St.CKPRops.length===0||(xr.cbuff(),z.notifyStateChange({_$token:!0}))}else for(var Ct=0;Ct<St.CKPRops.length;Ct++)at?xi(St.CKPRops[Ct]):se?fo.roh(St.CKPRops[Ct]):go(St.CKPRops[Ct]);return St.CKPLops}var Mt=he;function Kt(Qn){Mt.dmid,(0,d.deepCopy)($t),(0,d.deepCopy)(le),Mt.k,Mt.j}var $t=[],le=[],fe=[],he=Mt.d();if(Kt(),Mt.k!==he?($t=ms(Mt,Mt.k,he),Mt.k=""):Mt.dmid,$t.length){Mt.dmid,$t.length,le=Ei($t),Kt(),he=Re.dmid,Re.dmid=Mt.dmid,fe=Vo(le),Re.dmid=he,St.CKPRops.length&&($o(fe,St.CKPRops),Mt.dmid,(0,d.deepCopy)(fe));for(var Ee=0;Ee<fe.length;Ee++)Mt.j=oa(Mt.j,fe[Ee].op);Kt()}for(var He=[],ye=0;ye<St.CKPRops.length;ye++){var qe=St.CKPRops[ye];qe.context.dmid===Mt.dmid&&(He.push(qe),(0,d.deepCopy)(qe),Mt.dmid)}if(He.length&&(Mt.dmid,(0,d.deepCopy)(He),mo(Mt,He),Mt.dmid===z.dmid&&z.y==="rt")&&(he=Hs(z),0<he.length)){Mt.dmid,(0,d.deepCopy)(he);{var tn=fe[0],ln=he;if(0<ln.length){for(var vn=[{op:tn.op}],Nn=0;Nn<ln.length;Nn++)vn.push(ln[Nn]);tn.op=Ei(vn)[0].op}}}return Kt(),fe}(ut),it=it.concat(ut)}),wr===null)if(1<St.mbs.length)for(var ct=0;ct<it.length;ct++)so(it[ct]),at&&it[ct].inverse&&((0,d.deepCopy)(it[ct]),delete it[ct].inverse),it[ct].context.rto=Re.rto,oo(),(it[ct].context.CAID=!1,d.deepCopy)(it[ct]),it[ct].context.seq,ki(it[ct]);else(0,d.printOpList)(it)}function $o(H,it){(0,d.deepCopy)(H),(0,d.deepCopy)(it);for(var ct=0;ct<H.length;ct++)for(var ut=H[ct],gt=0;gt<it.length;gt++){var Et,jt,Ct=it[gt];ae?xr.cxf(ut,Ct):at?function(Mt,Kt){if(!(Mt.op.length===0||Kt.op.length===0)&&!(Mt.context.dmid!==Kt.context.dmid||It)){var $t=Jo(Kt.op,Mt.op,!1),le=Jo(Mt.op,Kt.op,!0);Mt.op=$t,Kt.op=le,Mt.inverse&&Mt.context.undoable&&($t=Jo(Kt.op,Mt.inverse,!1),Mt.inverse=$t)}}(ut,Ct):q?(Et=Xt(ut),jt=ut.op[0],Et.op=jt.po,Et.ao=jt.ao,Rn(Et,Ct,!0)):(jt=Ct,(Et=ut).op.length===0||jt.op.length===0||Et.context.dmid!==jt.context.dmid||It||(Et.op=zr(Et.op,jt.op,"B"),jt.op=zr(jt.op,Et.op,"A")))}(0,d.deepCopy)(H),(0,d.deepCopy)(it)}function qi(){this.sid=Re.sid,this.pub=de,this.userinfo=Object.assign({},$.user),this.userinfo.founder=K,this.userinfo.role=T,this.userinfo.jointime=new Date}function Pi(H,it){try{var ct=JSON.stringify(H);return m.default.encrypt(ct,it).toString()}catch(ut){return g.isProd||console.error("codox_encrypt",ut),""}}function xa(H,it){try{var ct=m.default.decrypt(H,it);return JSON.parse(ct.toString(h.default.enc.Utf8))}catch(ut){g.isProd||console.error("codox_decrypt",ut)}}var Sa=0,Vn=1,Mn=0,un=1,Zr=2,Er=3;function Ar(H,it){var ct,ut,gt,Et,jt,Ct,Mt;if(H.op.length!==0&&it.op.length!==0&&H.context.dmid===it.context.dmid&&!It)if(Br())ct=H,ut=it,ae?xr.xf(ct,ut):at||se?(gt=ut,(Mt=ct).op,gt.op,Ct=!(gt.context.to===ko||gt.context.to>Mt.context.to),jt=gt.context.to===ko||gt.context.to>Mt.context.to,Ct=Jo(gt.op,Mt.op,Ct),Et=Jo(Mt.op,gt.op,jt),Mt.op=Ct,gt.op=Et,gt.inverse&>.context.undoable&&(Ct=Jo(Mt.op,gt.inverse,jt),gt.inverse=Ct),Mt.op,gt.op):q?Rn(ct,ut):console.error("[codox_DeltaType_xf] don`t know how to chandle this");else{if(Ir())return Et=it.context.to===ko||it.context.to>H.context.to?"A":"B",jt=it.context.to===ko||it.context.to>H.context.to?"B":"A",Ct=zr(H.op,it.op,Et),Mt=zr(it.op,H.op,jt),H.op=Ct,it.op=Mt;console.error("[codox_xf] don`t know to to handle this op")}}function Wi(H,it){H.op.length!==0&&(H.op=zr(H.op,it.op,"B"))}var er=0,nr=1,An=2;function Vi(H){for(var it=null,ct=0;ct<H.length;ct++){var ut=H[ct];switch((0,i.default)(ut)){case Me[nr]:(0,i.default)(ut.d)===Me[An]&&0<ut.d||JSON.stringify(ut);break;case Me[er]:ut.length;break;case Me[An]:(0,i.default)(it),Me[An]}it=ut}(0,i.default)(it),Me[An]}function Ga(H,it){return H.op&&it.op&&(H.op=qs(H.op,it.op),1)}function zr(H,it,ct){Vi(H),Vi(it);for(var ut=[],gt=Do(ut),Et=ur(H),jt=Et[0],Ct=Et[1],Mt=!1,Kt={},$t=0;$t<it.length;$t++){var Kt=it[$t],le=void 0,fe=void 0;switch((0,i.default)(Kt)){case Me[An]:for(le=Kt;0<le;)gt(fe=jt(le,"i")),(0,i.default)(fe)!==Me[er]&&(le-=Ws(fe));break;case Me[er]:var he,Ee=Ct(),He=Kt;(function(qe,tn,ln,vn){if(vn={op:vn},!(rr({op:ln})!=="ii"||rr(vn)!=="ii")&&(0,i.default)(qe)===Me[er]&&(0,i.default)(tn)===Me[er]&&2<=qe.length&&qe[0]==="<"&&qe[qe.length-1]===">"&&2<=tn.length&&tn[0]==="<"&&tn[tn.length-1]===">"&&(ln=qe.match(/</g),vn=tn.match(/</g),ln.length===1&&vn.length===1))return 1})(Ee,He,H,it)?3<=Ee.length&&Ee[1]==="/"&&3<=He.length&&He[1]==="/"?(Ee=it[$t-1],((he=H[$t-1])<Ee||he===Ee&&!Mt)&>(jt(-1))):(he=it[$t+1],Ee=H[$t+1],(((0,i.default)(Ee)!==Me[An]||(0,i.default)(he)!==Me[An])&&ct==="B"||he<Ee||Ee===he&&ct==="B")&&(Mt=!0,gt(jt(-1)))):ct==="B"&&(0,i.default)(Ee)===Me[er]&>(jt(-1)),gt(He.length);break;case Me[nr]:for(le=Kt.d;0<le;)switch(fe=jt(le,"i"),(0,i.default)(fe)){case Me[An]:le-=fe;break;case Me[er]:gt(fe);break;case Me[nr]:le-=fe.d}}}for(;Kt=jt(-1);)gt(Kt);return In(ut)}function qs(H,it){Vi(H),Vi(it);for(var ct=[],ut=Do(ct),gt=ur(H)[0],Et={},jt=0;jt<it.length;jt++){var Et=it[jt],Ct=void 0,Mt=void 0;switch((0,i.default)(Et)){case Me[An]:for(Ct=Et;0<Ct;)ut(Mt=gt(Ct,"d")),(0,i.default)(Mt)!==Me[nr]&&(Ct-=Ws(Mt));break;case Me[er]:ut(Et);break;case Me[nr]:for(Ct=Et.d;0<Ct;)switch(Mt=gt(Ct,"d"),(0,i.default)(Mt)){case Me[An]:Et.text&&!It?ut({d:Mt,text:Et.text}):ut({d:Mt}),Ct-=Mt;break;case Me[er]:Ct-=Mt.length;break;case Me[nr]:ut(Mt)}}}for(;Et=gt(-1);)ut(Et);return In(ct)}function Do(H){return function(it){if(it&&it.d!==0)return H.length!==0&&(0,i.default)(it)===(0,i.default)(H[H.length-1])?((0,i.default)(it)===Me[nr]?(H[H.length-1].d+=it.d,H[H.length-1].text&&!It&&(H[H.length-1].text+=it.text)):H[H.length-1]+=it,H[H.length-1]):(H.push(it),H)}}function ur(H){var it=0,ct=0;return[function(ut,gt){var Et;if(it===H.length)return ut===-1?null:ut;var jt,Ct=H[it];return(0,i.default)(Ct)===Me[An]?jt=ut===-1||Ct-ct<=ut?(Et=Ct-ct,++it,ct=0,Et):(ct+=ut,ut):(0,i.default)(Ct)===Me[er]?jt=(ut===-1||gt==="i"||Ct.length-ct<=ut?(Et=Ct.slice(ct),++it,ct=0):(Et=Ct.slice(ct,ct+ut),ct+=ut),Et):(0,i.default)(Ct)===Me[nr]?jt=ut===-1||gt==="d"||Ct.d-ct<=ut?(Et=Ct.text&&!It?{d:Ct.d-ct,text:Ct.text.slice(ct)}:{d:Ct.d-ct},++it,ct=0,Et):(gt=Ct.text&&!It?{d:ut,text:Ct.text.slice(ct,ct+ut)}:{d:ut},ct+=ut,gt):(0,i.default)(Ct),jt},function(){return H[it]}]}function Ws(H){return(0,i.default)(H)===Me[An]?H:H.length||H.d}function In(H){return 0<H.length&&(0,i.default)(H[H.length-1])===Me[An]&&H.pop(),H}function io(H,it){for(var ct,ut,gt,Et,jt=yo(H),Ct=yo(it),Mt=[];!me&&(jt.a()||Ct.a());)Ct.e()==="cr"?_o(Mt,Ct.b()):me||jt.e()!=="sc"?(Et=Math.min(jt.d(),Ct.d()),ct=jt.b(Et),ut=Ct.b(Et),me||(0,i.default)(ut.tg)!==Me[An]?(0,i.default)(ut.sc)===Me[An]&&(0,i.default)(ct.tg)===Me[An]&&_o(Mt,ut):(gt={},ct.dm&&(gt.dm=ct.dm),(0,i.default)(ct.tg)===Me[An]?gt.tg=Et:gt.cr=ct.cr,(Et=function(Kt,$t,le){(0,i.default)(Kt)!==Me[nr]&&(Kt={}),(0,i.default)($t)!==Me[nr]&&($t={});var fe,he=_(!0,{},$t);for(fe in le||(he=Object.keys(he).reduce(function(Ee,He){return he[He]!=null&&(Ee[He]=he[He]),Ee},{})),Kt)Kt[fe]!==void 0&&$t[fe]===void 0&&(he[fe]=Kt[fe]);return 0<Object.keys(he).length?he:void 0}(ct.sx,ut.sx,(0,i.default)(ct.tg)===Me[An]))&&(gt.sx=Et),_o(Mt,gt))):_o(Mt,jt.b());return Lo(Mt)}function Jo(H,it,ct){if(ct=!!ct,(0,i.default)(it)===Me[An])return ao(H,it,ct);for(var ut,gt,Et,jt=yo(H),Ct=yo(it),Mt=[];jt.a()||Ct.a();)jt.e()!=="cr"||!ct&&Ct.e()==="cr"?me||Ct.e()!=="cr"?(Et=Math.min(jt.d(),Ct.d()),ut=jt.b(Et),gt=Ct.b(Et),ut.sc||(!me&>.sc?_o(Mt,gt):we(Mt,0,Et,function(Kt,$t,le){if((0,i.default)(Kt)!==Me[nr])return $t;if((0,i.default)($t)===Me[nr])return le?(le=Object.keys($t).reduce(function(fe,he){return Kt[he]===void 0&&(fe[he]=$t[he]),fe},{}),0<Object.keys(le).length?le:void 0):$t}(ut.sx,gt.sx,ct)))):_o(Mt,Ct.b()):we(Mt,Et=jt.b(),jt.f(Et));return Mt=Lo(Mt)}function we(H,it,ct,ut){ct<=0||(ct={tg:ct},!me&&ut!=null&&(0,i.default)(ut)===Me[nr]&&0<Object.keys(ut).length&&(ct.sx=ut),_o(H,ct))}function ao(H,it,ct){ct=!!ct;for(var ut=yo(H),gt=0;ut.a()&><=it;){var Et=ut.d(),jt=ut.e();ut.b(),me||jt!=="sc"?(me||jt!=="cr"||!(gt<it)&&ct||(it+=Et),gt+=Et):it-=Math.min(Et,it-gt)}return it}var _r=null;function Ea(H){var it=[];if(!me){for(var ct=0;ct<H.length;ct++){var ut=H[ct];ut[_r[Mn]]?it.push({sc:ut[_r[Mn]]}):me||!ut[_r[un]]||ut[_r[Er]]?ut[_r[un]]&&ut[_r[Er]]?it.push({cr:ut[_r[un]],sx:ut[_r[Er]]}):me||!ut[_r[Zr]]||ut[_r[Er]]?ut[_r[Zr]]&&ut[_r[Er]]&&it.push({tg:ut[_r[Zr]],sx:ut[_r[Er]]}):it.push({tg:ut[_r[Zr]]}):it.push({cr:ut[_r[un]]})}return it}}var Dn=[],ko=null,vs=null,Re={sid:null,seq:0,to:ko,rto:vs,dmid:0};function so(H){var it=H;Nt||(it=Xt(H)),q&&(H=it.op[0],it.op=H.po,it.ao=H.ao);for(var ct=0;ct<Dn.length;ct++){var ut=Dn[ct].tp;Nt||ut.push(it),Dn[ct].sid===Re.sid&&it.context.undoable&&(Oo=ut.length-1)}}function $i(H,it){for((0,d.deepCopy)(H);H.length&&H[0].context.to!==ko&&it!==vs&&it>=H[0].context.to;)H[0],H.shift()}function Ko(H,it){for(var ct=0;ct<H.length;ct++)if(H[ct].context.to==ko||H[ct].context.to>it)return ct;return H.length}var Oo=-1;function Ca(){var H=Ji(),it=function($t){if(Oo<0)return null;if(Oo>$t.length-1)return console.error("undo pointer out of range: pointer = "+Oo+"; range = "+$t.length-1),null;for(;0<=Oo;){var le,fe=$t[Oo];if(fe.context.sid===Re.sid&&fe.context.undoable)return le=fe,Nt||(le=Xt(fe)),fe.context.undoable=!1,fe.context.undone=!0,le;Oo--}return null}(H);if(it===null)Oi(9);else if(it.op.length!==0){for(var ct,ut=function($t,le){if(!$t.context.undoable)return null;var fe,he,Ee="A",He=$t.op,ye={op:[]},qe=ye.op;if(at&&(ye.op=$t.inverse),Ir()){for(var tn=0;tn<He.length;tn++){var ln=He[tn];switch((0,i.default)(ln)){case Me[nr]:var vn=ln.text;if(vn.length!==0){for(var Nn=Xt($t),Qn=-1,en=void 0,en=Oo+1;en<le.length;en++){if(le[en].context.sid===$t.context.sid){Qn=en;break}he=le[en],(fe=Nn).op.length===0||he.op.length===0||fe.context.dmid!==he.context.dmid||It||(fe.op=zr(fe.op,he.op,"B"))}Qn!==-1&&((0,i.default)(Nn.op[0])===Me[An]&&Nn.op[0]===le[en].op[0]&&rr(Nn)==="d"||(0,i.default)(Nn.op[0])!==Me[An]&&rr(Nn)==="d")&&(le[en],Ee="B"),qe.push(vn)}break;case Me[er]:qe.push({d:ln.length,text:ln});break;case Me[An]:0<qe.length&&(0,i.default)(qe[qe.length-1])===Me[An]?(qe[qe.length-1],qe[qe.length-1]+=ln):qe.push(ln)}}In(qe)}return li(ye),ye.context.dmid=$t.context.dmid,ye.context.undoable=!1,ye.context.undone=!0,ye.context.nopseq=$t.context.seq,ye.context.dir=Ee,(0,d.deepCopy)(ye),ye}(it,H),gt=Xt(ut),Et=[],jt=Oo+1;jt<H.length;jt++){if(!H[jt].context.undone||function($t,le){var fe=Ji(),he=fe[$t];if(he.context.undone&&he.context.sid!==Re.sid){for(var Ee=$t+1;Ee<fe.length;Ee++){var He=fe[Ee];if(He.context.undone&&He.context.nopseq&&he.context.sid===He.context.sid&&he.context.seq===He.context.nopseq)return}if(he.context.nopseq)for(var ye=0;ye<le.length;ye++){var qe=le[ye];if(he.context.sid===qe.context.sid&&he.context.nopseq===qe.context.seq)return}return 1}}(jt,Et)){(0,d.deepCopy)(H[jt]);{Ct=void 0,Mt=void 0,ct=void 0;var Ct=ut,Mt=H[jt];Ct.op.length!==0&&Mt.op.length!==0&&Ct.context.dmid==Mt.context.dmid&&!It&&(at?(ct=Ct.context.dir==="A",Ct.op=Jo(Mt.op,Ct.op,ct)):q||(Ir()?Ct.op=zr(Ct.op,Mt.op,Ct.context.dir):console.error("[codox_ixf] don`t know how to perform this op")))}}else Et.push(H[jt]),Et.length,H[jt];if(ut.op.length===0)return void H[jt]}if(at&&(it={ops:Oa(ut.op)},z.updateContents(it),Va(ut)),Ir()){if(it=function($t,le){var fe=tt.d($t.context.dmid);if(fe||console.error("codox_compensateInverse: capture an error -- domainid = ",(0,d.deepCopy)($t.context.dmid)),fe){var he=rr(le);switch(he){case"dd":var Ee,He,ye=$t,qe=le,Nn=fe;return rr(ye)==="d"?(Ee=ye.op[ye.op.length-1].text,He=Cr(qe),Ee===qe.op[qe.op.length-1].text?(Vs(Nn,qe,ye)===null&&(ye.op=[]),(0,d.deepCopy)(ye),ye):Ee===He?(ye.op=[],(0,d.deepCopy)(ye),ye):void 0):void 0;case"di":var tn=$t,ln=le,vn=fe,Nn=rr(tn);switch(rr(ln),Nn){case"di":var Qn=ln.op[ln.op.length-1],en=tn.op[tn.op.length-1],Ai=Cr(ln),pi=Cr(tn),Ai=Ai.indexOf(pi);if(Qn===en&&0<Ai)return tn.op=[],(0,d.deepCopy)(tn),tn;break;case"i":if(pi=Cr(ln),pi.indexOf("<")===0&&(vn.j,Qn=tn.op[tn.op.length-1],Qn===ln.op[ln.op.length-1]))return Vs(vn,ln,tn)===null&&(tn.op=[]),(0,d.deepCopy)(tn),tn}return}}return(0,d.deepCopy)($t.op),$t}(ut,gt),it.op.length===0)return;if(function($t){var le=tt.d($t.context.dmid);if(le){var fe=le.j;if(rr($t)==="d"){var Ee=Cr($t),he=(0,i.default)($t.op[0])===Me[An]?$t.op[0]:0,Ee=fe.indexOf(Ee,he);if(Ee!==he)return}return function(He,ye){Vi(ye);for(var qe="",tn=He.j,ln=0,vn=0;vn<ye.length;vn++){var Nn=ye[vn];switch((0,i.default)(Nn)){case Me[er]:qe+=Nn;break;case Me[nr]:if((ln+=Nn.d)>tn.length)return tn.length,!1;break;case Me[An]:if(ln+Nn>tn.length)return tn.length,!1;qe+=tn.slice(ln,ln+Nn),ln+=Nn}}return qe+=tn.slice(ln),He.j=qe,!0}(le,$t.op)?(Ee=tt.d($t.context.dmid).y,Ee==="rt"&&!function(He){if(ht)return!0;var ye=document.createElement("div"),ye=(ye.innerHTML=He,ye.innerHTML);return ye===He||(He.length,ye.length,!1)}(le.j)?(le.j=fe,0):(mo(le,$t),1)):void 0}return(0,d.deepCopy)($t.context.dmid),0}(it))so(it),ki(it);else for(var Kt=0;Kt<H.length;Kt++)H[Kt].context.sid===Re.sid&&H[Kt].context.dmid===gt.context.dmid&&H[Kt].context.undoable&&(H[Kt].context.undoable=!1,H[Kt])}console.error("[POT_UNDO] don`t know how to handle this")}}function Vs(H,it,ct){for(var ut=Cr(it),gt=H.j,Et=[],jt=gt.indexOf(ut);jt!==-1;jt=gt.indexOf(ut,jt+1))Et.push(jt);for(var Ct=(0,i.default)(ct.op[0])===Me[An]?ct.op[0]:0,Mt=-1,Kt=Et.length-1;0<=Kt;Kt--)if(Et[Kt]<=Ct){Mt=Et[Kt];break}if(Mt!==-1){var $t=Mt===0?[{d:ut.length,text:ut}]:[Mt,{d:ut.length,text:ut}],le=Mt===Ct?Mt:Ct-ut.length,H=rr(ct);switch(H){case"d":case"i":var fe,he=(0,i.default)(ct.op[0])===Me[An]?ct.op[1]:ct.op[0],he=((fe=it.op).length===2||fe.length===3&&(0,i.default)(fe[0])===Me[An]?le=Mt:fe.length===3&&((0,i.default)(fe[0]),Me[An]),fe=le===0?[he]:[le,he],(0,d.deepCopy)($t),(0,d.deepCopy)(fe),qs($t,fe));return ct.op=he,(0,d.deepCopy)(ct.op),ct;default:return null}}return(0,d.deepCopy)(Et),null}function Cr(H){return((0,i.default)(H.op[0])===Me[An]?H.op[1]:H.op[0]).text}function rr(H){for(var it=H.op,ct=0,ut=null,gt=null,Et=0;Et<it.length;Et++){var jt=it[Et];switch((0,i.default)(jt)){case Me[nr]:if(ct===0&&Et===0&&it.length===1||ct===1&&Et===1&&it.length===2)return(0,d.deepCopy)(H),"d";ct===0&&Et===0&&1<it.length||ct===1&&Et===1&&2<it.length?ut="d":(ct===0&&Et===1&&1<it.length||ct===1&&Et===2&&2<it.length||ct===2&&Et===3&&3<it.length)&&(gt="d");break;case Me[er]:if(ct===0&&Et===0&&it.length===1||ct===1&&Et===1&&it.length===2)return"i";ct===0&&Et===0&&1<it.length||ct===1&&Et===1&&2<it.length?ut="i":(ct===0&&Et===1&&1<it.length||ct===1&&Et===2&&2<it.length||ct===2&&Et===3&&3<it.length)&&(gt="i");break;case Me[An]:ct++}}var Ct="non-regular";return it.length-ct==2&&(ut==="d"&>==="d"?Ct="dd":ut==="i"&>==="d"?Ct="id":ut==="i"&>==="i"?Ct="ii":ut==="d"&>==="i"?Ct="di":(0,d.deepCopy)(H)),Ct}function li(H){H.context={sid:Re.sid,seq:Re.seq++,rto:Re.rto,to:Re.to,CAID:!0,dmid:Re.dmid,pub:de,undoable:!0}}function To(H){for(var it=0;it<H.length;it++){var ct=new ml(H[it].sid);Dn.push(ct)}Dn.length,(0,d.deepCopy)(H)}function ji(H){if(H==="all")for(var it=0;it<Dn.length;it++)Dn[it].tp=[];else for(var ct=0;ct<Dn.length;ct++)if(Dn[ct].sid===H){Dn[ct].tp=[];break}}function Hn(H){for(var it=Dn.length,ct=0;ct<it;ct++)if(Dn[ct].sid===H)return Dn[ct];return null}function ml(H){this.sid=H,this.tp=[],this.rto=vs,this.activetime=performance.now()}function Ji(){for(var H=0;H<Dn.length;H++)if(Dn[H].sid===Re.sid)return Dn[H].tp}var ir=0;function Lo(H){var it=H[H.length-1];return it&&it.tg&&!it.sx&&H.pop(),H}function _o(H,it){var ct=H.length,ut=H[ct-1];if(it=_(!0,{},it),(0,i.default)(ut)===Me[nr]){if((0,i.default)(it.sc)===Me[An]&&(0,i.default)(ut.sc)===Me[An])return H[ct-1].sc=ut.sc+it.sc,H;if((0,i.default)(ut.sc)===Me[An]&&it.cr!=null&&(ut=H[--ct-1],(0,i.default)(ut)!==Me[nr]))return H.unshift(it),H;if(R(it.sx,ut.sx)){if((0,i.default)(it.cr)===Me[er]&&(0,i.default)(ut.cr)===Me[er])return H[ct-1].cr=ut.cr+it.cr,(0,i.default)(it.sx)===Me[nr]&&(H[ct-1].sx=it.sx),H;if((0,i.default)(it.tg)===Me[An]&&(0,i.default)(ut.tg)===Me[An])return H[ct-1].tg=ut.tg+it.tg,(0,i.default)(it.sx)===Me[nr]&&(H[ct-1].sx=it.sx),H}}return ct===H.length?H.push(it):H.splice(ct,0,it),H}function yo(H){function it(Et){return(0,i.default)(Et.sc)===Me[An]?Et.sc:(0,i.default)(Et.tg)===Me[An]?Et.tg:(0,i.default)(Et.cr)===Me[er]?Et.cr.length:1}function ct(){return H[ut]?it(H[ut])-gt:1/0}var ut=0,gt=0;return{a:function(){return ct()<1/0},b:function(Et){Et=Et||1/0;var jt=H[ut];if(jt){var Ct=gt,Mt=it(jt);return Mt-Ct<=Et?(Et=Mt-Ct,ut+=1,gt=0):gt+=Et,(0,i.default)(jt.sc)===Me[An]?((Mt=Xt(jt)).sc=Et,Mt):(Mt=Xt(jt),(0,i.default)(jt.tg)===Me[An]?Mt.tg=Et:(0,i.default)(jt.cr)===Me[er]?Mt.cr=jt.cr.substr(Ct,Et):Mt.cr=jt.cr,Mt)}return{tg:1/0}},c:function(){return H[ut]},d:ct,e:function(){return H[ut]?(0,i.default)(H[ut].sc)===Me[An]?"sc":(0,i.default)(H[ut].tg)===Me[An]?"tg":"cr":"tg"},f:it}}var sr={};function Bo(H){(0,d.deepCopy)(sr);for(var it=0;it<H.length;it++){var ct=H[it];sr[ct]&&delete sr[ct]}(0,d.deepCopy)(sr)}function ci(H){if((0,d.deepCopy)(H),kt===Xe){var it,ct=H.op;if(q&&H.context.sid===Re.sid&&H.op.length!==0&&(ct=H.op[0].po),H.context.dmid!==0)Br()||(it=Li(H.context.dmid),it=H.context.sid===Re.sid?((0,i.default)(ct[0])===Me[An]&&ct[0]!==it&&(it=ct[0],ct[0]),Go(it,ct,"A")):Go(it,ct,"B"),Di(H.context.dmid,it));else{for(var ut in sr){var gt,Et,jt=sr[ut];at||se?H.context.sid!==ut?(jt.start=ao(ct,jt.start,!0),jt.end=ao(ct,jt.end,!0)):H.op.length!==0?((0,d.deepCopy)(H),ct[0].tg?(jt.start=ct[0].tg,jt.end=ct[0].tg):(jt.start=0,jt.end=0),jt.start=ao(ct,jt.start,!1),jt.end=ao(ct,jt.end,!1)):(jt.start=H.context.ks,jt.end=H.context.js,(0,d.deepCopy)(jt)):q?H.context.sid!==ut?(gt={pos:jt.start,path:jt.startpath},Et={pos:jt.end,path:jt.endpath},$n(ct,gt,!0),$n(ct,Et,!0),jt.start=gt.pos,jt.end=Et.pos,jt.path=gt.path):(jt.start=H.context.ks,jt.end=H.context.js,jt.path=H.context.pt,jt.startpath=H.context.pt1,jt.endpath=H.context.pt2):(ut===H.context.sid&&((0,i.default)(ct[0])===Me[An]&&ct[0]!==jt.start&&(jt.start=ct[0],ct[0],(0,d.clearTimer)(Ve),Ve=setTimeout(function(){lo("timer")},$s)),(0,i.default)(ct[0])===Me[An]&&ct[0]!==jt.end&&(jt.end=ct[0],ct[0])),ut===H.context.sid?(jt.start=H.context.ks,jt.end=H.context.js):(jt.start=Go(jt.start,ct,"B"),jt.end=Go(jt.end,ct,"B")),Et=Li(H.context.dmid),Et=H.context.sid===Re.sid?Go(Et,ct,"A"):Go(Et,ct,"B"),Di(H.context.dmid,Et))}H.context.sid!==Re.sid?((0,d.deepCopy)(H),0<ct.length?lo("rop",H.context.sid):lo("rop")):((0,d.clearTimer)(Ve),Ve=setTimeout(function(){lo("timer"),Ve=null},$s))}}}var $s=100;function lo(H,it){if(!zn&&!ae&&(performance.now(),Kr||Bi)){var ct=JSON.stringify(sr);if(H&&H=="timer"||(0,d.clearTimer)(Ve),ct!=="{}"){var ut,gt=Xt(sr);for(ut in gt){var Et=gt[ut];Et.start==-1&&(Et.update=!0)}if((0,d.deepCopy)(gt),it&&it!==Re.sid&>[it]&&(gt[it].update=!0),(0,d.deepCopy)(gt),(at||se)&&z&&(H=z.Q(gt),$.a.c(P,H)),q&&(ct=z.S(gt),$.a.c(P,ct)),Qt&&(it=z.f(gt),$.a.c(P,it)),Ir()&&!Qt){if(!Kr&&!Bi||zn||Gn||Vr||cr)return;H=function(jt){for(var Ct=document.activeElement,Mt=Re.dmid,Kt=(!qt&&(bt||lt||ue)&&Mt!==z.dmid&&z.x.focus(),Gr(z)),$t=z.d(),le=z,fe=le.j,he="",Ee=function(ln){var vn,Nn=[];for(vn in ln){var Qn={};Qn.pos=ln[vn].start,Qn.end=!1,Qn.sid=vn,Nn.push(Qn),ln[vn].start!==ln[vn].end&&((Qn={}).pos=ln[vn].end,Qn.end=!0,Qn.sid=vn,Nn.push(Qn))}return Nn.sort(function(en,pi){return en.pos-pi.pos})}(jt),He=0,ye=0;ye<Ee.length;ye++){var qe=Ee[ye].pos,tn=function(ln,vn){if(typeof document>"u")return"";{var Nn;We||(Nn=vn.sid,vn.end?ln.innerHTML=Ge+Nn+"_end"+Te:ln.innerHTML=Ge+Nn+Te)}return ln.innerHTML}(le.i(),Ee[ye]);0<qe&&(he=he+fe.slice(He,qe)+tn,He=qe)}return he+=fe.slice(He),le.e(he),jt=z.f(Gt,jt),z.e($t),ii(0,Kt),(bt||lt||ue)&&Ct&&Mt!==z.dmid&&Ct.focus(),jt}(gt),$.a.c(P,H)}performance.now()}}}function to(H){var it=H.t&&H.t==="sl";return it&&(0,d.deepCopy)(H),it}function eo(H){return H.t&&H.t==="pt"}var ka="cdxpos";function Go(H,it,ct){return H<0?H:(H=zr(H===0?[ka]:[H,ka],it,ct),it=H[0],it=H.length===1?0:it)}function Yo(H,it){H.start=Go(H.start,it,"A"),H.end=Go(H.end,it,"A")}function ui(H,it){var ct,ut,gt;H.context.dmid!==it.context.dmid||It||(at||se?(gt=!(it.context.to===ko||it.context.to>H.context.to),H.op.start=ao(it.op,H.op.start,gt),H.op.end=ao(it.op,H.op.end,gt)):q?(gt=!(it.context.to===ko||it.context.to>H.context.to),ct={pos:H.op.start,path:H.op.startpath},ut={pos:H.op.end,path:H.op.endpath},$n(it.op,ct,gt),$n(it.op,ut,gt),H.op.start=ct.pos,H.op.end=ut.pos,H.op.path=ct.path):(gt=it.context.to===ko||it.context.to>H.context.to?"A":"B",H.op.start=Go(H.op.start,it.op,gt),H.op.end=Go(H.op.end,it.op,gt)))}var bs=null;function Ki(){bs=oi()||ra()?(lo("missed-cr"),null):((0,d.clearTimer)(bs),setTimeout(Ki,1e3))}function Oa(H){var it=[];if(!me){for(var ct=0;ct<H.length;ct++){var ut=H[ct],gt=null;ut.sc?((gt={})[_r[Mn]]=ut.sc,it.push(gt)):!ut.cr||ut.sx?ut.cr&&ut.sx?((gt={})[_r[un]]=ut.cr,gt[_r[Er]]=ut.sx,it.push(gt)):!ut.tg||ut.sx?ut.tg&&ut.sx&&((gt={})[_r[Zr]]=ut.tg,gt[_r[Er]]=ut.sx,it.push(gt)):((gt={})[_r[Zr]]=ut.tg,it.push(gt)):((gt={})[_r[un]]=ut.cr,it.push(gt))}return it}}var Gi=3,Ya=4,di=2,_s=2;function Js(H){var it;0<di&&(it=(performance.now()-A)/1e3,D("[codoxi]- abmsg: #"+H+"; t = "+it+"; hbc = "+ir,u.SentryLevel_H),di--)}I.onmessage=function(H){if(performance.now(),kt!==$e){var it=(performance.now()-A)/1e3;if(H==null)return g.isProd||console.error("[codoxi]- ome1: t = "+it+"; hbc = "+ir+"; sid = "+Re.sid),void D("[codoxi]- ome1: t = "+it+"; hbc = "+ir+"; sid = "+Re.sid,u.SentryLevel_H);if(H&&H.data){var ct=H.data;try{if(typeof ct=="string")try{ct=JSON.parse(ct)}catch(ye){console.error(ye)}var ut,gt,Et,jt,Ct,Mt,Kt,$t=ct,le=(performance.now()-A)/1e3;if(ut=$t,gt=(performance.now()-A)/1e3,ut.a?ut.a===Qa||(g.isProd||console.error("[codoxi]- nemsg: t = "+gt+"; hbc = "+ir+"; sid = "+Re.sid+"; unexpected msg = ",ut),D("[codoxi]- nemsg: t = "+gt+"; hbc = "+ir+"; sid = "+Re.sid,u.SentryLevel_H),0):(g.isProd||console.error("[codoxi]- ivmsg: t = "+gt+"; hbc = "+ir+"; sid = "+Re.sid+"; missing msg.a, invalidmsg = ",ut),D("[codoxi]- ivmsg: t = "+gt+"; hbc = "+ir+"; sid = "+Re.sid,u.SentryLevel_H),0))switch($t.a){case 1:if(typeof $t.caid!="string")throw new Error("Invalid client id");k.SMSubSt=k.SMConEd=performance.now(),Re.sid=$t.caid,Re.sid;var Ee=$t;if(!Ee.ccva||!Ee.smv)throw new Error("ESTOP CV = ".concat(w,"; and the connected DSM-SMV = ").concat(x," does not support SMA-SSC"));Yi=Ee.ccva,x=Ee.smv;for(var fe=!1,he=0;he<Yi.length;he++)if(Math.trunc(w)==Yi[he]){fe=!0;break}if(!fe)throw new Error("ESTOP Incompatible CV = ".concat(w," is not a member of CCVA = ").concat(Yi," and SMV = ").concat(x," "));console.log("codox_handleMessage: Client and SM are compatible: codoxClientV = ".concat(w," is a member of ccva = ").concat(Yi,"; codoxSMVersion = ").concat(x));var Ee=(performance.now()-A)/1e3;D("[codoxi]* ssub, t = "+Ee+"; seid = "+O.sid+"; sid = "+Re.sid,u.SentryLevel_H),On=performance.now(),Ee=$.waveid,He=$.user,Et=$.subid,jt=$.mid,$.sub,$.token,Ct=$.url,Mt=$.docId,Kt=$.prevAid,(Ee={a:2,c:N,v:w,u:{waveid:Ee,username:He&&He.name,sysinfo:j,f:K,any:V,subid:Et,mid:jt,paid:Kt||"First",v:{token:$.token},u:Ct,d:Mt,tabId:(0,d.getTabId)()}}).u.subid,Ee.u.mid,Ee.u.mu,Ee.u.subid,Ee.u.mid,Ee.u.mu,Ee.cmm=function(){for(var ye,qe="";qe.length<36;)qe+=(ye=Math.floor(62*Math.random()))<10?ye:ye<36?String.fromCharCode(ye+55):String.fromCharCode(ye+61);return qe}(),ge=Ee.cmm,(0,d.deepCopy)(Ee),Jt(Ee),(0,d.clearTimer)(Xa),Xa=setTimeout(function(){var ye=(performance.now()-A)/1e3;D("[codoxe]-- subf(t), r=13; t = "+ye+"; sid = "+Re&&Re.sid,u.SentryLevel_H),kt!==$e?qn(13):D("[codoxe]-- subf(ts), t = "+le+"; sid = "+Re&&Re.sid,u.SentryLevel_H)},Wl),Qa=2;break;case 2:k.SMSubEd=performance.now();var He=performance.now();(fn=He-On)<0&&(g.isProd||console.error("[codoxi]-- rtt-sub: t = "+le+"; hbC = "+ir+"; rtt= "+fn+"; priT="+k.SMSubSt+"; curT="+k.SMSubEd+"; sid="+Re.sid),0<_s&&(D("[codoxi]-- rtt-sub: t = "+le+"; hbC = "+ir+"; rtt= "+fn+"; priT="+k.SMSubSt+"; curT="+k.SMSubEd+"; sid="+Re.sid),U(new Error("reason RTT")),_s--)),(0,d.clearTimer)(Xa),function(ye){vt=!0;var qe=xa(ye.data,ge);if(!ye.data||!qe)return D("[codoxe] subf(sm): r=13; sid = "+Re.sid,u.SentryLevel_H),qn(13);if(qe.y){if(qe.ok===void 0||qe.amm===void 0||qe.cak===void 0||qe.f===void 0||qe.r===void 0)return D("[codoxe] subf(o): r=13; sid = "+Re.sid,u.SentryLevel_H),qn(13);Ne=qe.ok,At=Ne,De=qe.amm,_e=qe.cak,K=qe.f,qe.r!==T&&qe.r,qe.v&&(x=qe.v),qe.bgc&&qe.bgc,Lt=!0;var tn=(performance.now()-A)/1e3,tn=(D("[codoxi]* subs: t = "+tn+"; f = "+K+"; SMV="+x+"; sid = "+Re.sid,u.SentryLevel_H),W("smVersion",x),ye),ye=(Vt=me=We=Ye=cn=Ne,B=new qi,null);if((ye=tn.ivs?xa(tn.ivs,ge):ye).cat){switch(Qr=ye.cat,N){case Qr[jc]:q=!0;break;case Qr[Bl]:at=!0;break;case Qr[Fl]:ht=!0;break;case Qr[zl]:lt=!0;break;case Qr[Ul]:_t=!0;break;case Qr[Hl]:bt=!0;break;case Qr[yr]:Ft=!0;break;case Qr[ri]:ue=!0;break;case Qr[ql]:at=!0;break;case Qr[Fs]:Qt=!0;break;case Qr[pl]:ae=!0;break;case Qr[za]:se=!0;break;default:U(new Error("codox_setAppType: unknown apptype = "+N)),g.isProd||console.error("codox_setAppType: unknown apptype = "+N)}Bi=ue||ht}ye.sot&&(Me=ye.sot),ye.tmk&&(ye.tmk,qa=ye.tmk.o,Fn=ye.tmk.c,yt=ye.tmk.tn,ye.tmk.uq,ye.tmk.ed,Gt=ye.tmk.m,Ge='<span id="'+Gt+"_"),ye.lmt&&(ye.lmt,Wt=ye.lmt.mos,re=ye.lmt.mms,je=ye.lmt.dms),ye.dt&&(_r=ye.dt,fo=new v.default(z,Q,_r)),(Yt=new c.default(Q,ot,Re,tt,z,B,rt,Y,k,L,cn,E)).in(tn),ye.d2c&&(dt=ye.d2c,ke=Yt[dt[_i]],nn=Yt[dt[Ro]],dn=Yt[dt[Ho]],En=Yt[dt[Jr]],St=Yt[dt[Ni]],Se=Yt[dt[bi]],oe=Yt[dt[ea]],ve=Yt[dt[ar]],Ie=Yt[dt[po]]),q&&!Vt&&(ye.p2c&&(Bt=ye.p2c,wt=ye.a2c),(X=new n.default(Q,Vt)).in(tn),jn=X[Bt[qo]],Rn=X[Bt[ei]],$n=X[Bt[ds]],(ie=new l.default(Q,X,Vt)).in(tn),tr=ie[wt[wi]],Ln=ie[wt[Io]]),tt.a(),pr[0]=Dt?{pos:80}:ht?{pos:48}:{pos:-1};for(var ln=1;ln<5;ln++)pr[ln]={pos:-1};if(2<=x&&(ye={a:Ya},(0,d.deepCopy)(ye),Jt(ye),tn=(performance.now()-A)/1e3,D("[codoxi]* Sack: t = "+tn+"; sid = "+Re.sid,u.SentryLevel_H)),K){St.mbs.push(B),To(St.mbs),Oi(14);try{ai(zt)}catch(Nn){console.error(Nn)}kt=Xe,Mr(),ve(),Wr=!0,!L&&ot&&ot(Re.sid),ye=(performance.now()-A)/1e3,D("[codoxi]* jnd1: t = "+ye+"; s="+kt+"; ss="+St.mbs.length+"; sid = "+Re.sid,u.SentryLevel_H),Re.sid}else tn=(performance.now()-A)/1e3,D("[codoxi]* sjn1: t = "+tn+"; s="+kt+"; sid = "+Re.sid,u.SentryLevel_H),Ie()}else fi=qe.sem,ye=qe.rs===fi[Ta]||qe.rs===fi[Za]||qe.rs===fi[Nr]?24:qe.rs===fi[Z]?25:qe.rs===fi[pt]?600:qe.rs===fi[mt]?700:13,D("[codoxe] subf(ppe): r="+ye+"; sid = "+Re.sid,u.SentryLevel_H),qn(ye)}($t),Qa=Gi;break;case Gi:$a($t);break;default:g.isProd||console.error("[codoxi]- udmsg: t = "+le+"; hbc = "+ir+"; sid = "+Re.sid+"; Unhandled SM message:",$t),D("[codoxi]- udmsg: t = "+le+"; hbc = "+ir+"; sid = "+Re.sid,u.SentryLevel_H)}}catch(ye){if(g.isProd||console.error("codox_handleMessage: err = ",ye),D("[codoxi]- hme: t = "+it+"; hbc = "+ir+"; sid = "+Re.sid,u.SentryLevel_H),0<=ye.message.search(/^ESTOP/))return void qn("ESTOP")}}else g.isProd||console.error("[codoxi]- ome2: t = "+it+"; hbc = "+ir+"; sid = "+Re.sid+"; errormsg = ",H),D("[codoxi]- ome2: t = "+it+"; hbc = "+ir+"; sid = "+Re.sid,u.SentryLevel_H);performance.now()}else Js(u.I_StopMsg_1)};var Wl=1e4,Xa=null,Qa=1,Yi=null,fi=(I.onopen=function(){var H=(performance.now()-A)/1e3;D("[codoxi]* csm: t = "+H+"; seid = "+O.sid,u.SentryLevel_H),uo=!0,(0,d.clearTimer)(J)},I.onerror=function(H){var it;kt!==$e?(it=(performance.now()-A)/1e3,D("[codoxe]- se: r=200; t = "+it+"; hbc = "+ir+"; sid = "+Re&&Re.sid,u.SentryLevel_H),qn(200)):Js(u.I_StopMsg_2)},I.onclose=function(H){var it;kt===$e?Js(u.I_StopMsg_3):(it=(performance.now()-A)/1e3,D("[codoxe]- sc: t = "+it+"; hbc = "+ir+"; sid = "+Re&&Re.sid,u.SentryLevel_H),qn(1))},null),Ta=0,Za=1,Nr=2,Z=3,pt=4,mt=5,vt=!1,Lt=!1;function Jt(H){gn=performance.now(),H.d=Y,H.caid=Re.sid,H.cak=_e,H.d=Y;var it=null,ct="";if(I){I.canSendJSON||(it=(ct=JSON.stringify(H)).length,ct.length);try{if(I.readyState!==1)throw new Error("WebSocket is not in OPEN state.");I.send(ct)}catch(ut){return g.isProd||console.error(ut),D("[codoxe]- sose: r=100; mslen = "+it+"; sid = "+Re.sid,u.SentryLevel_H),H.q?U(new Error("SocketSendError in sending STOPPED_LOG, Appid=".concat(N))):qn(100)}I.bufferedAmount}else qn(300)}function Xt(H){try{return JSON.parse(JSON.stringify(H))}catch(it){g.isProd||console.error(it)}}this.co=Xt,this.TZ=qn,this.LOH=function(){for(var H=arguments.length,it=new Array(H),ct=0;ct<H;ct++)it[ct]=arguments[ct];var ut,gt,Et,jt=it[0],Ct=it[1];if(ut=jt,gt=it[2],Ct==="e"&&Pr()&&(Ir()?(Et=(gt=tt.d(gt)).d(),gt.j!==Et&&(gt.j=Et,$.a.i({source:"l"}))):ut.delta?$.a.i({source:"l",delta:ut.delta}):$.a.i({source:"l",delta:ut})),(function(){return!Kn()||(D("[codoxi]- rv1; sid = "+Re.sid,u.SentryLevel_H),(function(Mt,Kt,$t){var le,fe;q||(at?$t=="e"&&($t=Mt,Mt=Kt,le=z.getContents(),fe=0,$t=$t.ops[0].retain,le=le.diff(Mt,fe=$t||fe),z.updateContents(le),z.disable()):Kt=="e"&&tt.b().forEach(function(he){var Ee=he.j,He=he.d();Ee!==He&&he.e(Ee,!1)}))}).apply(void 0,arguments),!1)}).apply(void 0,it)){if(Ct!="h2v"&&Ct!="v2h"){if(kt===bn||kt===$e)return;if(kt!==Xe){if(!Br())return}else if(Sr()){if(kt!=5||!Br())return ae?xr.loh.apply(xr,it):void 0}else if(!de||(zn||Vr)&&!Br()||(Gn||cr)&&!Br())return}return Ct==="pt"?function(Mt,Kt){Kt={t:1<arguments.length&&Kt!==void 0?Kt:"pt",op:Mt},(0,d.deepCopy)(Kt),li(Kt),Co(Kt,null)}(jt,Ct):Br()?(function(){if(at)(function(Mt,Kt){var $t,le,fe,he=Mt.delta,Ee=Mt.oldDelta;if(JSON.stringify(he),JSON.stringify(Ee),Kt!=="e")return Kt==="c"?(Bn=!0,void setTimeout(function(){var He;He=he,Bn&&!Bs&&He!==null&&(ya({start:He.index,end:He.index+He.length}),Bn=!1)},0)):Kt=="u"?void Ca():void"codox_QJS_LOH: capturing an unexpected evt: delta = ".concat(he,", ").concat(Ee,", ").concat(Kt);Mt=he,$t=Ee,$.a.i({source:"l",delta:Mt}),Bs?D("[codoxi]-- batom: loh; sid = "+Re.sid,u.SentryLevel_H):(fe=Qe,Qe=performance.now(),fe===null&&((0,d.clearTimer)(Ze),Ze=setTimeout(fr,Ht),ee=0),fe=z.getContents(),Mt.ops[le=0].retain&&(le=Mt.ops[0].retain),fe=fe.diff($t,le),Re.seq,Va({op:Ea(Mt.ops),inverse:Ea(fe.ops)}),Bn=!1)}).apply(void 0,arguments);else{if(!q)return ae?xr.loh.apply(xr,arguments):se?fo.loh.apply(fo,arguments):void 0;(function(Mt,Kt,$t){var le;Kt==="e"?($.a.i({source:"l"}),Le.push(Mt),Mt.data.n<Mt.data.tn||(le={op:[],ao:Le,inverse:[]},Le=[],Ln(le)&&Va(le))):Kt==="c"?Mt.type==="set_selection"&&(Mt={start:(le=z.c()).anchor.offset,end:le.focus.offset,path:le.anchor.path,startpath:le.anchor.path,endpath:le.focus.path},le=Mt,kt===Xe&&le.start!==null&&le.end!==null&&le.path!==null&&(Fr("SJScmv"),Re.dmid=z.dmid,li(le={t:"sl",op:le}),Co(le,oo()))):Kt=="u"&&Ca()}).apply(void 0,arguments)}}).apply(void 0,it):void(function(Mt,Kt,$t){switch(ni(),performance.now(),Kt){case"e":if(!Ka())return;var le=Qe;Qe=performance.now(),le===null&&((0,d.clearTimer)(Ze),Ze=setTimeout(fr,Ht),ee=0);break;case"c":if(Mt.shiftKey,(Re.dmid=$t)===1)return;Bn=!0,setTimeout(Lr,0);break;case"u":Fr("u"),Ca();break;case"r":Fr("r"),Oi(8);break;case"h2v":(function(){if(!de){if(kt!==Xe)return de=!0;Oi(7),Sr()&&(At=!1),si(),Ye||(tt.g(),nn(),de=!0)}})();break;case"v2h":(function(){if(de){if(kt!==Xe)return de=!1;Oi(6),1<St.mbs.length?Fr("v2h"):tt.a(),Ye||(tt.f2(),St.CKPRops=[],de=!1)}})()}performance.now()}).apply(void 0,it)}},this.ime=function(H){zn!==H&&(Kn()?tt.k(0):(zn=H)?(hs(),$.a.f(P),kt!==Xe||Gn||cr||(1<St.mbs.length?Fr("ime"):tt.a(),tt.f2(),St.CKPRops=[])):Ua())},this.imet=hs,this.uim=function(H){if(Gn!==H)return Kn()?void tt.u(0):void(H?(hl(),$.a.f(P),kt!==Xe||zn||Vr||(1<St.mbs.length?Fr("uim"):tt.a(),tt.f2(),z.k,St.CKPRops=[]),Gn=!0):gl())},this.uimt=hl,this.gss=function(H){ho=H,Yt.sy()},this.gls=function(){var H=ma();return H},this.lcmm=function(){return ge},this.dec=xa,this.dtf=Jo,this.dtfp=ao,this.lhto=function(){return ko},this.qs=si,this.lof=Fr,this.ssm=ki,this.dssm=Co,this.wxpm=function(){return!(!Kr||!de||zn||Vr||Gn||cr)},this.wxsp=function(){return!(!Bi||!de||zn||Vr||Gn||cr)},this.gpm=function(){return de},this.gs=function(){return kt},this.ss=function(H){kt=H},this.gqjs=function(){return at},this.guim=function(){return Gn},this.guimf=function(){return cr},this.sj=function(H){Wr=H},this.ece=function(){Re.sid,At=It=Nt=qt=ce=Ne,Mr(),$.a.g(P);var H=(performance.now()-A)/1e3;D("[codoxi]* eco: t = "+H+"; s="+kt+"; ss="+St.mbs.length+"; sid = "+Re.sid,u.SentryLevel_H)},this.dce=function(){(0,d.clearTimer)(Ze),(at||q)&&(dr=0,Wn={}),Lt&&$.a.f(P);var H=(performance.now()-A)/1e3;D("[codoxi]* dco: t = "+H+"; s="+kt+"; ss="+St.mbs.length+"; sid = "+Re.sid,u.SentryLevel_H)},this.pm=oi,this.grcs=function(){return sr},this.srcs=function(H){sr=H},this.arcs=function(H){(0,d.deepCopy)(H),(0,d.deepCopy)(sr);for(var it=0;it<H.length;it++){var ct=H[it].sid;ct!==Re.sid&&(q?sr[ct]={start:-1,end:-1,path:[-1,-1],startpath:[-1,-1],endpath:[-1,-1]}:at?sr[ct]={start:-1,end:-1}:se?sr[ct]={start:0,end:0}:ht?sr[ct]={start:3,end:3}:ue?sr[ct]={start:-1,end:-1}:Qt&&(sr[ct]={start:1,end:1}))}(0,d.deepCopy)(sr)},this.rrcs=Bo,this.urcs=ci,this.uc=lo,this.aptm=To,this.rptm=function(H){Dn.length,JSON.stringify(Dn);for(var it=Dn.length,ct=Dn.length;ct--;){var ut=Dn.shift();ut.sid!==H&&Dn.push(ut)}it<Dn.length&&Dn.length},this.gstm=Hn,this.rsptm=ji,this.gtms=function(){return Dn.length},this.gctm=function(H){if(kt===Xe){var it=1<Dn.length,ct=performance.now(),ut=Dn.length,gt=(ct-A)/1e3,Et=En;for(St.mbs.length===1&&(Et*=2);ut--;){var jt,Ct=Dn.shift(),Mt=Ct.sid,Kt=ct-Ct.activetime;"codox_collectGarbageinTM: compensated timeGap = ".concat(Kt-=H,"; hbdelay = ").concat(H),Et<=Kt?(jt=ke(St.mbs,Mt),Mt===Re.sid||L||(Bo([Mt]),lo("gc"),Ti(19,[jt])),D("[codoxi]- gc: t = "+gt+"; GCsid = "+Mt+"; idlet = "+Kt/1e3+"; hbC = "+ir+"; sid = "+Re.sid,u.SentryLevel_H),Re.sid,JSON.stringify(new Date)):Dn.push(Ct)}var $t=Ji();if(!$t)return D("[codoxe]-- lhf: t = "+gt+"; hbC = "+ir+"; sid = "+Re.sid,u.SentryLevel_H),D("stop reason ".concat(2," sid = ").concat(Re.sid)),void qn(2);for(;1e3<$t.length;)$t.shift();it&&Sr()&&dn()}},this.gcptm=$i,this.gsl=fl,this.gcaid=oo,this.ccaid=wa,this.grtt=function(){return fn},this.srtt=function(H){fn=H},this.glst=function(){return gn},this.nu=Oi,this.nsi=Ti,this.nsm=ai,this.fcs=function(H){var it=null;H.success&&(it=ma()),H.state=it,ho!==null&&ho(H)},this.esync=Us,this.rssmc=function(){wr=null},this.gsmso=function(){return wr!=null},this.ihb=function(){return++ir},this.ghb=function(){return ir},this.gwst=function(){return A},this.JS=function(){return xr.js.apply(xr,arguments)},this.ws=function(){return kt===Xe},this.ocs=Sr,this.dot=Jo,this.dta2cdx=Ea,this.cdx2dta=Oa,this.dop2sm=Va,this.slotimer=function(){var H=Qe;Qe=performance.now(),H===null&&((0,d.clearTimer)(Ze),Ze=setTimeout(fr,Ht),ee=0)},this.gop=ms,this.uspst=oa,this.udoc=mo,this.tf=zr,this.gop2sm=Ui,this.sop2cop=Ei,this.cop2pop=Vo,this.ocs=Pr,this.hdtap=ya,this.dtacp=io,this.gcm=function(){return se},this.sr=function(H){T=H}}}).call(this)}).call(this,o("_process"))},{"../env":283,"../logger.js":287,"../util/lib":292,"./dsm.js":277,"./ext/cm.js":278,"./json":279,"./sapa.js":280,"./spot.js":281,"./ver":282,"@babel/runtime/helpers/interopRequireDefault":297,"@babel/runtime/helpers/typeof":301,_process:149,"crypto-js/aes":305,"crypto-js/core":307,"deep-equal":313,extend:315,pako:461,"rangy/lib/rangy-selectionsaverestore":482}],277:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=o("../util/lib"),s=o("./../filters/"),i=o("../logger.js"),r=i.logger.addBreadcrumb.bind(i.logger),l=i.logger.reportError.bind(i.logger);t.default=function(n,c,d,u,f,g,m,h,v,b,_,R){var x,w,O,I,_t=(performance.now()-n.gwst())/1e3,L=(r("[codoxi]* dsm: t = "+_t+"; sid = "+d.sid,i.SentryLevel_H),null),M=null,A=null,k=null,J=null,G=null,U=null,D=null,W=null,Q=null,E=null,B=null,$=null,C=null,N=null,Y=null,tt=null,F=null,z=null,P=null,j=null,V=null,K=null,rt=null,T=null,ot=null,at=null,q=null,ht=null,lt={mbs:[],newcms:[],svc:0,pubct:0,RDTmOt:!(this.clean=function(){yt(),v=g=f=u=d=c=n=null}),FDTmOt:!1,CKPRops:[],CKPLops:[]},bt=!1,_t=4e4,Dt=null,Ft=2e4,Qt=null,ue=Ft/2,ae=ue/2+3e3,se=null,Ne=Ft/2,ce=1,qt=2,Nt=3,It=5,me=4,Vt=2,ge=4,De=1,_e=2,Ht=3,yn=7,ee=(b&&(_t=1e3*200,v.SMDIvtSt=performance.now(),v.SMDIvtEd=performance.now(),v.SMDJnSt=performance.now(),v.SMDJnEd=performance.now()),!1),Qe=null,on=!1,wn=null,Ve=null;function Ue(Tt){Tt={success:Tt,tm:Ve},n.fcs(Tt),ee=!1,wn!==null&&((0,e.clearTimer)(wn),wn=null)}var Ze=null;function gn(){var Tt=xt(De);Tt.cmd.member=g,Tt.nut=!0,N(ce),We++,Tt.context.dmid=0,Dt==null&&(v.SMJnSt=performance.now()),T(Tt),(0,e.clearTimer)(Dt),Dt=setTimeout(function(){var Rt=performance.now()-n.gwst(),Ut=C();r("[codoxe]-- jnf: t = "+Rt/1e3+"; s="+Ut+"; mjt="+Ft/1e3+"; sid = "+d.sid,i.SentryLevel_H),K(15),Dt=null},Ft)}var fn=null,On=0,bn=null;function Xe(Tt){var Rt,Ut,Yt,ie;1<lt.newcms.length?(0,e.deepCopy)(lt.newcms):((Y()||n.wxsp())&&(P(Tt),u.f2(),lt.CKPRops=[],lt.CKPLops=[]),Rt=xt(_e),d.sid,(0,e.deepCopy)(lt.mbs),d.sid,(0,e.deepCopy)(lt.newcms),d.sid,(0,e.deepCopy)(Rt),T(Rt),_||(N(Nt),Tt==="sync"&&(on=!0)),lt.RDTmOt=!1,Ut=ae+200*lt.mbs.length,ue<=Ut&&(Ut=ue),Yt=lt.svc,ie=lt.mbs.length,(0,e.clearTimer)(Qt),Qt=setTimeout(function(){d.sid;var X=C(),dt=(performance.now()-n.gwst())/1e3;r("[codoxi]-- srdt: t = "+dt+"; s="+X+"; wt="+Ut+"; ss= "+ie+"; vc="+Yt+"; sid = "+d.sid,i.SentryLevel_H),lt.RDTmOt=!0,$e("RDtimer"),Qt=null},Ut))}function $e(Rt){Rt&&((0,e.deepCopy)(lt.mbs),(0,e.deepCopy)(lt.newcms));var Rt=C(),Ut=(performance.now()-n.gwst())/1e3;if(Rt==me)return r("[codoxi]-- abisfd: t = "+Ut+"; s="+Rt+"; hbc = "+n.ghb()+"; sid = "+d.sid,i.SentryLevel_H);if((lt.svc=0)!==lt.mbs.length&<.mbs[0].sid===d.sid?(d.sid,1):(d.sid,0)){if(d.sid,!on){Ut=xt(Ht),Ut.ds=re(lt.newcms),(0,e.deepCopy)(Ut.ds),_||(Ut.cmd.mbs=rt(lt.mbs),Ut.cmd.newcms=rt(lt.newcms)),Ut.cmd.rcs=rt(G()),Ut.cmd.rcs[d.sid]=B(f);try{Ut.cmd.spsts=u.e(),Ut.cmd.build=R}catch{K(3e3)}lt.newcms.length,(0,e.deepCopy)(Ut),T(Ut)}Rt=xt(yn),_||(Rt.cmd.mbs=rt(lt.mbs),Rt.cmd.newcms=rt(lt.newcms),Rt.cmd.caid=j()),(0,e.deepCopy)(Rt),T(Rt)}N(It);var Yt=Ne;(0,e.clearTimer)(se),se=setTimeout(function(){d.sid;var ie=C(),X=(performance.now()-n.gwst())/1e3;lt.mbs.length,lt.newcms.length,r("[codoxi]-- sfdt: t = "+X+"; s="+ie+"; wt="+Yt+"; ss="+lt.mbs.length+"; ncn="+lt.newcms.length+"; sid = "+d.sid,i.SentryLevel_H),cn(),se=null},Yt)}var kt=null;function be(Tt){return Tt&&Tt.ops?Tt.ops.filter(function(Rt){return typeof Rt.insert=="string"}).map(function(Rt){return Rt.insert}).join(""):""}function de(Tt,Rt){return Tt=n.gop(f,Tt,Rt),n.sop2cop(Tt)}function Ye(Tt){if((0,e.deepCopy)(Tt),C()===ce){if(d.sid,!b)if(d.sid,(0,e.deepCopy)(Tt.cmd.spsts),n.gqjs()){if(!function(wt,dt){(0,e.deepCopy)(m);var oe=wt&&wt.spst,wt=wt&&wt.laid;if(m==null)return K(3e3),0;if((Se=f.getContents())==null)return l(new Error("[codox]-- lcdse: local current doc state error, quit! sessionid = "+h)),K(3002),0;if((0,e.deepCopy)(m),(0,e.deepCopy)(Se),(oe=f.toDelta(oe))==null)return l(new Error("[codox]-- irdse: init remote doc state (undefined or null) error, quit! sessionid = "+h)),K(3001),0;var Se=m.diff(Se);if((0,e.deepCopy)(Se),Se&&Se.ops&&Se.ops.length&&!(0,s.shouldFilter)(Se)){var Bt=m.diff(oe);if(!(0,s.shouldFilter)(Bt))return(0,e.deepCopy)(Bt),Bt=Bt,Se=Se,(0,e.deepCopy)(Bt),(0,e.deepCopy)(Se),Se=n.dta2cdx(Se.ops),Bt=n.dta2cdx(Bt.ops),(0,e.deepCopy)(Se),(0,e.deepCopy)(Bt),St=n.dot(Bt,Se,!0),(0,e.deepCopy)(St),Se=n.dot(Se,Bt,!1),(0,e.deepCopy)(Se),Bt={ops:n.cdx2qjs(Se)},(0,e.deepCopy)(Bt),f.updateContents(Bt),Se={op:St,inverse:[]},n.dop2sm(Se),1}f.setContents(oe);var Bt=m,St=oe,Se=wt,oe=dt;try{var ve=be(Bt),Ie=be(St),ke=ve.length,nn=Ie.length;"[codoxi] - sanity localLen = ".concat(ke," remoteLen = ").concat(nn),"sanity: localText = ".concat(ve),"sanity: remoteText = ".concat(Ie),"sanity: localDelta= ".concat(JSON.stringify(Bt)),"sanity: remoteDelta = ".concat(JSON.stringify(St)),"sanity: remoteBuild = ".concat(oe," localBuild = ").concat(R),r("sanity: remoteBuild = ".concat(oe," localBuild = ").concat(R)),r("sanity: laid = ".concat(Se)),nn+10<ke&&(r("sanity: localLen = ".concat(ke," remoteLen = ").concat(nn)),r("sanity: localText = ".concat(ve)),r("sanity: remoteText = ".concat(Ie)),r("sanity: localDelta= ".concat(JSON.stringify(Bt))),r("sanity: remoteDelta = ".concat(JSON.stringify(St))),l(new Error("[sanity checkout] local text length > than remote length"))),ke<nn-20&&r("sanity: localLen = ".concat(ke," remoteLen = ").concat(nn))}catch{}return 1}(Tt.cmd.spsts[0]))return}else n.gcm()?(Rt=JSON.parse(Tt.cmd.spsts[0].spst),f.setContents(Rt),JSON.stringify(Tt.cmd.spsts)):(Rt=Tt.cmd.spsts,Yt=f.d(),(ie=de(m,Yt)).length==0?u.h(Rt):(Rt=Rt[0].spst,Rt=de(m,Rt),f.j=Yt,Rt.length&&(ie=ie[0],Rt=Rt[0],(0,e.deepCopy)(ie),(0,e.deepCopy)(Rt),Yt=n.tf(Rt.op,ie.op,"A"),Ut=n.tf(ie.op,Rt.op,"B"),Rt.op=Yt,ie=[{op:Ut}],(0,e.deepCopy)(Rt),(0,e.deepCopy)(ie),f.j=n.uspst(f.j,Rt.op),f.j,n.udoc(f,Rt),f.d()),n.gop2sm(ie)));d.sid,(0,e.deepCopy)(u),U(Tt.cmd.rcs),(0,e.deepCopy)(Tt.cmd.rcs),D(Tt.cmd.newcms),setTimeout(function(){C()==qt&&E("ckp-is")},1e3),Gt(lt.mbs,Tt.cmd.mbs),Gt(lt.mbs,Tt.cmd.newcms),lt.newcms=[],_||L(lt.mbs),d.sid}else d.sid;var Rt,Ut,Yt,ie}function cn(Tt){var Rt=C(),Ut=(performance.now()-n.gwst())/1e3;if(Rt==me)r("[codoxi]- abfd: t = "+Ut+"; s="+Rt+"; hbc = "+n.ghb()+"; sid = "+d.sid,i.SentryLevel_H);else{if(!Tt)return d.sid,(0,e.deepCopy)(lt.mbs),(0,e.deepCopy)(lt.newcms),r("[codoxi]- hfd1: t = "+Ut+"; s="+Rt+"; sid = "+d.sid,i.SentryLevel_H),Y()||n.wxsp()?(Te(),u.g()):lt.newcms=[],void N(qt);(0,e.clearTimer)(se),se=null;var Yt,ie,Ut=Tt,Rt=C(),Tt=(performance.now()-n.gwst())/1e3;if(Wt(g,Ut.cmd.newcms)){if(d.sid,Rt!==ce)return r("[codoxi]-- hfd2: t = "+Tt+"; s="+Rt+"; sid = "+d.sid,i.SentryLevel_H),void d.sid;(0,e.clearTimer)(Dt),Ye(kt),q(16),v.SMJnEd=performance.now(),at(Vt,Ut.cmd.newcms.length),_||(d.sid,lt.mbs.length,lt.newcms.length,Te(),u.g(),F(),N(qt),n.sj(!0),n.gsmso()&&n.esync("ckpncm"),Yt=j(),ie=Ut.cmd.caid,lt.mbs.length,r("[codoxi]* jnd2: t = "+Tt+"; s="+Rt+"; ss="+lt.mbs.length+"; sid = "+d.sid+"; llen = "+Yt+"; rlen = "+ie,i.SentryLevel_H),!b&&c&&(r("[codoxi]* cdxcb(y): t = "+Tt+"; s="+Rt+"; ss="+lt.mbs.length+"; sid = "+d.sid,i.SentryLevel_H),c(d.sid)))}else{if(!Wt(g,Ut.cmd.mbs))return void(Rt!==ce?(d.sid,C(),r("[codoxi]-- hfd6: t = "+Tt+"; s="+Rt+"; sid = "+d.sid,i.SentryLevel_H)):On<We?(d.sid,r("[codoxi]- hfd7: t = "+Tt+"; s="+Rt+"; rj="+On+"; jc="+We+"; sid = "+d.sid,i.SentryLevel_H)):(d.sid,2<=We?r("[codoxi]- hfd8: t = "+Tt+"; s="+Rt+"; jc="+We+"; sid = "+d.sid,i.SentryLevel_H):(lt.newcms=[],d.sid,r("[codoxi] sjn2: t = "+Tt+"; s="+Rt+"; jc="+We+"; sid = "+d.sid,i.SentryLevel_H),n.rssmc(),gn())));if(d.sid,Rt!==It){if(Rt!==qt)return d.sid,Ut.context.sid,void r("[codoxi]-- hfd3: t = "+Tt+"; s="+Rt+"; sid = "+d.sid,i.SentryLevel_H);d.sid,Ut.context.sid}Ge(lt.mbs,Ut.cmd.mbs)||((0,e.deepCopy)(lt.mbs),(0,e.deepCopy)(Ut.cmd.mbs),lt.mbs.length,Ut.cmd.mbs.length,r("[codoxi]- hfd4: t = "+Tt+"; s="+Rt+"; lmbl="+lt.mbs.length+"; rmbl="+Ut.cmd.mbs.length+"; sid = "+d.sid,i.SentryLevel_H)),Ut.cmd.newcms.length,Ut.cmd.newcms,Ge(lt.newcms,Ut.cmd.newcms)||((0,e.deepCopy)(lt.newcms),(0,e.deepCopy)(Ut.cmd.newcms),lt.newcms.length,Ut.cmd.newcms.length,r("[codoxi]- hfd5: t = "+Tt+"; s="+Rt+"; lncl="+lt.newcms.length+"; rncl="+Ut.cmd.newcms.length+"; sid = "+d.sid,i.SentryLevel_H)),on&&(d.sid,Qe===d.sid&&Ue(!0),on=!1,Qe=null),_||(Gt(lt.mbs,lt.newcms),ht(18,lt.newcms),L(lt.newcms),d.sid,lt.newcms),D(lt.newcms),n.gqjs()||E("ckp-fd"),n.gsmso()||!Y()&&!n.wxsp()||$(),d.sid,lt.mbs.length,lt.newcms.length,lt.mbs.length,lt.newcms.length,r("[codoxi]* hfdE: t = "+Tt+"; s="+Rt+"; ss= "+lt.mbs.length+"; ncn= "+lt.newcms.length+"; sid = "+d.sid,i.SentryLevel_H),Y()||n.wxsp()?(Te(),u.g()):lt.newcms=[],F(),N(qt),n.gsmso()&&n.esync("ckpec")}}}var We=0;function At(){(0,e.deepCopy)(lt.mbs),k(d.sid),U({}),z()}function Zt(){return lt.mbs.length===1}function xt(Tt){var Rt={op:[],bc:!0,cmd:{t:Tt},context:{sid:d.sid,rto:d.rto,CAID:!0,pub:n.gpm()}};return Tt=="HB"&&(Rt.hb=!0),Rt}function Wt(Tt,Rt){for(var Ut=0;Ut<Rt.length;Ut++)if(Tt.sid==Rt[Ut].sid)return 1}function re(Tt){for(var Rt=[],Ut=0;Ut<Tt.length;Ut++)Rt.push(Tt[Ut].sid);return Rt}function je(Tt,Rt){for(var Ut=null,Yt=Tt.length;Yt;){var ie=Tt.shift();Yt--,ie.sid!==Rt?Tt.push(ie):Ut=ie}return Ut}function Gt(Tt,Rt){(0,e.deepCopy)(Tt),(0,e.deepCopy)(Rt);for(var Ut=[],Yt=0;Yt<Rt.length;Yt++){var ie=Rt[Yt];Wt(ie,Tt)?at(ge,ie,Tt):Ut.push(ie)}for(var X=0;X<Ut.length;X++)Tt.push(Ut[X])}function Ge(Tt,Rt){if(Tt.length!==Rt.length)return Tt.length,Rt.length,0;for(var Ut=0;Ut<Tt.length;Ut++)if(Tt[Ut].sid!==Rt[Ut].sid)return Tt[Ut].sid,Rt[Ut].sid,0;return 1}function Te(){lt.newcms=[],lt.svc=0,lt.pubct=0,lt.RDTmOt=!1,lt.FDTmOt=!1,lt.CKPRops=[],lt.CKPLops=[]}function yt(){clearInterval(bt),(bt=!1,e.clearTimer)(Qt),(Qt=null,e.clearTimer)(se),(se=null,e.clearTimer)(Dt),(Dt=null,e.clearTimer)(wn),(0,e.clearTimer)(Ze),(0,e.clearTimer)(fn),(0,e.clearTimer)(bn)}function zt(){return We}n.gwst(),this.in=function(Tt){var Rt=null;Tt.c2d&&(Rt=n.dec(Tt.c2d,n.lcmm())),x=Rt.tm,w=Rt.rcs,O=Rt.sc,I=Rt.ut,k=n[x[5]],n[x[3]],J=n[x[4]],L=n[x[0]],M=n[x[1]],A=n[x[2]],Q=n[w[4]],E=n[w[5]],B=n[w[6]],G=n[w[0]],U=n[w[1]],D=n[w[2]],W=n[w[3]],F=n[O[8]],z=n[O[9]],P=n[O[10]],j=n[O[11]],V=n[O[12]],K=n[O[13]],$=n[O[0]],n[O[1]],C=n[O[2]],N=n[O[3]],Y=n[O[4]],tt=n[O[5]],n[O[6]],n[O[7]],at=n[I[3]],q=n[I[4]],ht=n[I[5]],rt=n[I[0]],T=n[I[1]],ot=n[I[2]]},this.se=lt,this.pc=function(Tt){if(Tt.cmd.t=="quit"&&(Tt.cmd.t=4),Tt.cmd.t=="SMM"&&(Tt.cmd.t=8),Tt.cmd.t=="HBP"&&(Tt.cmd.t=10),!_){var Rt,Ut,Yt,ie=Tt;switch(ie.cmd.t){case De:(function(X){var dt=C(),wt=(performance.now()-n.gwst())/1e3;if(dt==me)return r("[codoxi]-- abjn: t = "+wt+"; s="+dt+"; hbc = "+n.ghb()+"; sid = "+d.sid,i.SentryLevel_H);if(C()!==ce)if(on)d.sid;else if(C()!==It)if(Wt(X.cmd.member,lt.newcms))d.sid,X.cmd.member.sid,(0,e.deepCopy)(lt.newcms);else if(lt.newcms.push(X.cmd.member),d.sid,(0,e.deepCopy)(lt.newcms),d.sid,(0,e.deepCopy)(lt.mbs),C()!==Nt)if(Zt()){if((0,e.deepCopy)(G),wt=xt(Ht),!b){(Y()||n.wxsp())&&(u.a(),u.f2(),lt.CKPRops=[],lt.CKPLops=[]),N(Nt);try{wt.cmd.spsts=u.e(),wt.cmd.build=R}catch{K(3e3)}(0,e.deepCopy)(wt.cmd.spsts),wt.cmd.rcs=rt(G()),wt.cmd.rcs[d.sid]=B(f)}_||(wt.cmd.mbs=rt(lt.mbs),wt.cmd.newcms=rt(lt.newcms)),1<lt.newcms.length&<.newcms,wt.ds=re(lt.newcms),T(wt),dt=xt(yn),_||(dt.cmd.mbs=rt(lt.mbs),dt.cmd.newcms=rt(lt.newcms),dt.cmd.caid=j()),(0,e.deepCopy)(dt),T(dt),N(It)}else{if(1<lt.newcms.length)return X.cmd.member.sid,lt.newcms;Xe("hJN")}else X.cmd.member.sid,(0,e.deepCopy)(lt.newcms);else d.sid,X.cmd.member.sid;else d.sid===X.cmd.member.sid?(d.sid,lt.newcms.length,On++):(d.sid,X.cmd.member.sid,lt.newcms.length)})(ie);break;case _e:(function(X){var dt=C(),wt=(performance.now()-n.gwst())/1e3;if(dt!==ce){if(dt!==Nt&&dt!==qt)return d.sid,X.context.sid,r("[codoxi]-- abhrd1: t = "+wt+"; s="+dt+"; hbc = "+n.ghb()+"; sid = "+d.sid,i.SentryLevel_H);var Bt=X.context.sid;_||(function(St,Se){for(var oe=0;oe<Se.length;oe++)if(St==Se[oe].sid)return 1}(X.context.sid,lt.mbs)?lt.svc++:(d.sid,X.context.sid,(0,e.deepCopy)(lt.mbs),r("[codoxi]-- abhrd2: t = "+wt+"; s="+dt+"; ms="+Bt+"; sid = "+d.sid,i.SentryLevel_H))),d.sid,X.context.sid,lt.svc,lt.svc==lt.mbs.length&&(lt.svc,d.sid,(0,e.clearTimer)(Qt),lt.svc=0,$e("hRD"))}else d.sid})(ie);break;case Ht:Wt(g,(Yt=ie).cmd.newcms)?kt=Yt:(d.sid,Yt.cmd.newcms);break;case yn:cn(ie);break;case 4:(function(X){(0,e.deepCopy)(X);var dt=C(),wt=(performance.now()-n.gwst())/1e3;if(dt!==qt&&!on){if(dt==ce)return X.context.sid,r("[codoxi]- qjn: t = "+wt+"; s ="+dt+"; qid = "+X.context.sid+"; sid = "+d.sid,i.SentryLevel_H);dt==Nt&&(d.sid,(0,e.deepCopy)(X),X.context.sid,r("[codoxi]- qckp: t = "+wt+"; s="+dt+"; qid = "+X.context.sid+"; sid = "+d.sid,i.SentryLevel_H)),dt==It&&(d.sid,(0,e.deepCopy)(X),X.context.sid,r("[codoxi]- qis: t = "+wt+"; s="+dt+"; qid = "+X.context.sid+"; sid = "+d.sid,i.SentryLevel_H))}n.gtms();for(var Bt=X.context.sid,St=lt.newcms.length,Se=C(),oe=(performance.now()-n.gwst())/1e3;St--;){var ve=lt.newcms.shift();ve.sid!==Bt?lt.newcms.push(ve):((0,e.deepCopy)(ve),r("[codoxi]- rnc: rnc: t = "+oe+"; s="+Se+"; qid = "+Bt+"; sid = "+d.sid,i.SentryLevel_H))}lt.newcms.length,M(X.context.sid);var Ie=je(lt.mbs,X.context.sid);Ie&&!b&&(W([X.context.sid]),E("quit",X.context.sid),ht(19,[Ie]),lt.mbs.length,X.context.sid,r("[codoxi] qt: t = "+wt+"; s="+dt+"; ss= "+lt.mbs.length+"; lvrsid = "+X.context.sid+"; sid = "+d.sid,i.SentryLevel_H)),n.gtms(),dt==qt&&Zt()&&At()})(ie);break;case 8:Yt=ie,Rt=performance.now()-n.gwst(),Ut=C(),Yt.cmd.rs==="PPE Overdue"?((0,e.deepCopy)(Yt),d.sid,r("[codoxi] ppeod: r=22; t = "+Rt+"; s="+Ut+"; sid = "+d.sid,i.SentryLevel_H),q(22)):Yt.cmd.rs==="PPE Shutdown"&&((0,e.deepCopy)(Yt),d.sid,r("[codoxe]-- ppesd: r=23; t = "+Rt+"; s="+Ut+"; sid = "+d.sid,i.SentryLevel_H),K(23));break;case 5:(function(X){if(C()===qt){JSON.stringify(new Date),X.context.sid,(0,e.deepCopy)(X);var dt=A(X.context.sid);if(dt&&d.sid!==X.context.sid&&!_&&(J(dt.tp,X.context.rto),(Y()||n.wxsp())&&f&&dt.tp.length===0&&X.context.CAID)){if((0,e.deepCopy)(X),dt=j(),V(dt,X.context.caidinfo),n===null)return(0,e.deepCopy)(X);Q(X)}}})(ie);break;case 10:ie.cmd.hbc,n.gs()!==qt&&!_||(Rt=performance.now(),n.ghb(),P("HBP"),(Ut=xt(5)).context.st=Rt,Ut.rtt=tt(),(C()!==qt||(n.gqjs()||n.gcm())&&(n.guim()||n.guimf()))&&(Ut.context.CAID=!1,Ut.context.CAID),Rt=j(),ot(Ut,Rt),n.ihb(),performance.now());break;case 9:(function(X){if(C()!=ce)if(on)ee&&Qe!==d.sid&&X.cmd.member.sid==d.sid&&(d.sid,Ue(!1));else if(C()===qt||on){if((Qe=X.cmd.member.sid)===d.sid){if(X.tm&&(Ve=X.tm),Zt())return d.sid,u.a(),Ue(!0),on=!1,Qe=null;d.sid}Xe("sync")}else ee&&X.cmd.member.sid==d.sid&&(d.sid,Ue(!1))})(ie);break;default:ie.cmd.t}}},this.ct=yt,this.et=function(){},this.jm=gn,this.rm=je,this.rs=Te,this.om=At,this.mt=_t,this.sy=function(){if(C()!==qt)return C(),Qe&&d.sid,void Ue(!1);var Tt;ee?Ue(!1):(P("syn"),(Tt=xt(9)).cmd.member=g,Tt.context.dmid=0,Tt.tm=!0,ee=!0,T(Tt),wn!==null&&((0,e.clearTimer)(wn),wn=null),wn=setTimeout(function(){Ue(!1),wn=null},15e3))},this.gjc=zt}},{"../logger.js":287,"../util/lib":292,"./../filters/":285}],278:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=o("../../util/lib");t.default=function(s,i,r){function l(c){(0,e.deepCopy)(c),i.slotimer();var d=c.map(function(m){return h=(m=m).indexFrom,v=m.indexTo,b=m.inserted,m=m.deleted,_=[],R={},b&&!m&&(h==0?R[r[1]]=b:(R[r[2]]=h,_.push(R),(R={})[r[1]]=b),_.push(R)),!b&&m&&(h==0?R[r[0]]=v-h:(R[r[2]]=h,_.push(R),(R={})[r[0]]=v-h),R.data=m,_.push(R)),b&&m&&(h==0?R[r[0]]=v-h:(R[r[2]]=h,_.push(R),(R={})[r[0]]=v-h),R.data=m,_.push(R),(R={})[r[1]]=b,_.push(R)),_;var h,v,b,_,R});(0,e.deepCopy)(d);for(var g=i.dta2cdx(d[0]),u=1;u<d.length;u++)var f=i.dta2cdx(d[u]),g=i.dtacp(g,f);(0,e.deepCopy)(g),c={op:g},(0,e.deepCopy)(c),i.dop2sm(c)}function n(c){return c=[{ops:i.cdx2dta(c.op)}],(0,e.deepCopy)(c),c=c.map(function(d){var u=d;(0,e.deepCopy)(u);for(var f=[],g=0,m=0,h=null,v=null,b=0;b<u.ops.length;b++){var _=u.ops[b];_[r[2]]?g+=_.retain:_[r[1]]?h=_.insert:_[r[0]]&&(m=g+_.delete,v=_.delete),h!==null&&v==null?(f.push({indexFrom:g,inserted:h}),g+=h.length,h=null):h==null&&v!==null?(f.push({indexFrom:g,indexTo:m,deleted:v}),v=null):h!==null&&v!==null&&(f.push({indexFrom:g,indexTo:m,inserted:h,deleted:v}),v=h=null)}return(0,e.deepCopy)(f),f}),(0,e.deepCopy)(c),c}this.loh=function(c,d){{var u;(0,e.deepCopy)(c),d==="c"&&(u={start:(u=c).f,end:c.t},i.hdtap(u))}d==="e"&&l(c)},this.roh=function(c){(0,e.deepCopy)(c),c=n(c),s.updateContents(c)},this.uCKPc=function(c){var d=n(c),u=d[0];s.k,(0,e.deepCopy)(u);for(var f=0;f<u.length;f++){var v=u[f],g=v.indexFrom,m=v.indexTo,h=v.inserted,v=v.deleted;if(h&&!v)s.k=s.k.slice(0,g)+h+s.k.slice(g),s.k;else{if(h||!v)throw console.error("updateCKPContents: unknown cmop = ",(0,e.deepCopy)(d)),Error("updateCKPContents: unknown cmop type ");s.k=s.k.slice(0,g)+s.k.slice(m),s.k}}s.k}}},{"../../util/lib":292}],279:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e(o("@babel/runtime/helpers/slicedToArray"))),i=o("../util/lib"),r=o("../logger.js");t.default=function(l,n){var c=[];this.js=function(){for(var d=arguments.length,u=new Array(d),f=0;f<d;f++)u[f]=arguments[f];var g=u[0];if(g&&{}.toString.call(g)==="[object Function]")return n.LOH.apply(n,u);if((0,i.deepCopy)(g),g){if(g._$token)return(function(){for(var m=arguments.length,h=new Array(m),v=0;v<m;v++)h[v]=arguments[v];h[0],(0,i.deepCopy)(h),c.length!==0&&((0,i.deepCopy)(c),c.shift()),(0,i.deepCopy)(c),(0,i.deepCopy)(l.dr())}).apply(void 0,u),l.dr();if(g.state==="init")return l.dr()}return l.dr()},this.loh=function(){for(var d=arguments.length,u=new Array(d),f=0;f<d;f++)u[f]=arguments[f];var h=u[0],g=u[1],m=((0,i.deepCopy)(g),null);try{m=h(g)}catch(_){throw r.logger.reportError(_),_}if((0,i.deepCopy)(m),n.ocs())return(0,i.deepCopy)(m),m;var h=l.diff(m,g),v={op:(g=h,JSON.parse(JSON.stringify(g)))};if((0,i.deepCopy)(v),c.length!==0){for((0,i.deepCopy)(c);c.length;){var b=c.shift();v.op=l.lt(v.op,b.op,"left")}(0,i.deepCopy)(v),n.ws()&&(l.apply(v.op),m=l.dr(),(0,i.deepCopy)(m))}else n.ws()&&l.er(m),(0,i.deepCopy)(m);return n.dop2sm(v),m},this.roh=function(){for(var d=arguments.length,u=new Array(d),f=0;f<d;f++)u[f]=arguments[f];var g=u[0];(0,i.deepCopy)(g),c.push(g),l.apply(g.op),l.notifyStateChange({_$token:!0})},this.cbuff=function(){c=[]},this.cxf=function(d,u){if(d.op.length===0||u.op.length===0||((0,i.deepCopy)(d),(0,i.deepCopy)(u),d.context.dmid!==u.context.dmid))return(0,i.deepCopy)(d),void(0,i.deepCopy)(u);var g=(0,l.transform)(d.op,u.op,"left"),g=(0,s.default)(g,2),f=g[0],g=g[1];d.op=f,u.op=g,(0,i.deepCopy)(d),(0,i.deepCopy)(u)},this.xf=function(d,u){(0,i.deepCopy)(d),(0,i.deepCopy)(u);var f=l.transform,g=u.context.to===n.lhto()||u.context.to>d.context.to?"right":"left",f=f(d.op,u.op,g),g=(0,s.default)(f,2),f=g[0],g=g[1];d.op=f,u.op=g,(0,i.deepCopy)(d),(0,i.deepCopy)(u)}}},{"../logger.js":287,"../util/lib":292,"@babel/runtime/helpers/interopRequireDefault":297,"@babel/runtime/helpers/slicedToArray":300}],280:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,s,i){e.lcmm(),e.dec;var r,l,n=e.co,c=null,d=null,u=null,f=null,g=null,m=null,h={},v={},b=null,_=null,R=null,x=null,w=null,O=null,I=5,L=6,M=9,A=[function(F,z){if(F.text.length<=0){if(F.data.ne=!0,F.data.tn===1)return!1}else F=function(P){var j,V={},K=(V.dm=P.path,V.do=[],{});if(!P.offset||0<(j=P.offset)&&(K.tg=j,V.do.push(K),K={}),K.cr=P.text,0<P.marks.length){for(var rt={},T=0;T<P.marks.length;T++)rt[P.marks[T].type]=!0;K.sx=rt}return V.do.push(K),V.tn=P.data.tn,V.aon=P.data.n,V.pon=1,V}(F),z.push(F);return!0},function(F,z){var P,j,V,K=null;if(F.text.length<=0){if(F.data.ne=!0,F.data.tn===1)return!1}else(j={}).dm=(F=F).path,j.do=[],V={},F.offset&&0<(P=F.offset)&&(V.tg=P,j.do.push(V),V={}),V.sc=F.text.length,j.do.push(V),j.tn=F.data.tn,j.aon=F.data.n,j.pon=1,K=j,z.push(K);return!0},function(F,z){var P,j,V,K=null;if(F.length<=0){if(F.data.ne=!0,F.data.tn===1)return!1}else j={},(P={}).dm=(F=F).path,P.do=[],0<(V=F.offset)&&(j.tg=V,P.do.push(j),j={}),(V={})[F.mark.type]=!0,j.tg=F.length,j.sx=V,j.ao="am",P.do.push(j),P.tn=F.data.tn,P.aon=F.data.n,P.pon=1,K=P,z.push(K);return!0},function(F,z){var P,j,V,K=null;if(F.length<=0){if(F.data.ne=!0,F.data.tn===1)return!1}else j={},(P={}).dm=(F=F).path,P.do=[],0<(V=F.offset)&&(j.tg=V,P.do.push(j),j={}),(V={})[F.mark.type]=null,j.tg=F.length,j.sx=V,j.ao="rm",P.do.push(j),P.tn=F.data.tn,P.aon=F.data.n,P.pon=1,K=P,z.push(K);return!0},function(F,z){return!!(F=E(F))&&(z.push(F),!0)},function(F,z){return F=D(F),z.push(F),!0},function(F,z){var P;return!(P=N(F)).do[0].dmpo&&1<F.data.tn&&0<z.length&&c(z[z.length-1])&&0<F.position&&(z[z.length-1].do[0].target=F.position),z.push(P),!0},function(F,z){for(var P=$(F),j=0;j<P.length;j++)P[j].tn=F.data.tn,P[j].aon=F.data.n,P[j].pon=j+1,z.push(P[j]);return!0},function(F,z){var P,j,V=null;return(P={}).dm=(F=F).path,P.do=[],(j={dmpo:!0}).pos=F.path[F.path.length-1],j.len=1,j.type="del",j.ao="rn",P.tn=F.data.tn,P.aon=F.data.n,P.do.push(j),V=P,z.push(V),!0},function(F,z){var P=function(V){var K=[],rt={},T=(rt.dm=V.path,rt.do=[],{});if(V.node.object==="text")T.dmpo=!0,T.pos=V.path[V.path.length-1],T.len=1,T.type="ins",T.ao="in",T.text=!0,rt.do.push(T),rt.tn=V.data.tn,rt.aon=V.data.n,rt.pon=1,K.push(rt);else{if(V.node.object!=="block"&&V.node.object!=="inline")return!1;T.dmpo=!0,T.pos=V.path[V.path.length-1],T.len=1,T.type="ins",T.ao="in",rt.do.push(T),rt.tn=V.data.tn,rt.aon=V.data.n,rt.pon=1,K.push(rt)}return K}(F);if(!P)return!1;for(var j=0;j<P.length;j++)P[j].tn=F.data.tn,P[j].aon=F.data.n,P[j].pon=j+1,z.push(P[j]);return!0}],k=[function(F,z,P){z=function(j){var V=j;if(j.data.ne)return j;var K=G(F,j);if(K===null||K.do.length===0||K.nil)return j.data.ne=!0,j;(j=n(x.itaot)).path=K.dm;var rt=0;return K.do[0].cr?j.offset=0:(j.offset=K.do[0].tg,rt=1),j.text=K.do[rt].cr,K.do[rt].sx&&(j.marks=tt(K.do[rt].sx)),j.data=V.data,j}(z),P.push(z)},function(F,z,P){for(var j=[],V=j,K=z,rt=U(F,z),T=0,ot=0;ot<rt.length;ot++){var at=n(x.rtaot),q=(at.data=K.data,at.marks=K.marks,rt[ot]);if(q.nil||q.do.length===0)at.data.ne=!0,V.push(at);else{at.path=q.dm;for(var ht=n(q.do),lt=0,bt=0,_t=0,Dt=0;Dt<ht.length;Dt++)ht[Dt].sc&&(_t+=ht[Dt].sc);var Ft=T;for(T+=_t;0<ht.length;){var Qt=n(at),ue=(Qt.text=0<Ft?K.text.slice(-T,-Ft):K.text.slice(-T),Qt.marks=K.marks,Qt.text,ht.shift());Qt.offset=lt,ue.tg&&(lt+=ue.tg,Qt.offset=lt,ue=ht.shift()),ue.sc&&ue.sc!=Qt.text.length&&(ue.sc,Qt.text.length,Qt.text=K.text.slice(bt,bt+ue.sc),bt+=ue.sc),V.push(Qt)}}}for(var ae=0;ae<j.length;ae++)P.push(j[ae])},function(F,z,P){for(var j=[],V=z,K=j,rt=U(F,V),T=0;T<rt.length;T++){var ot=n(x.amaot),at=(ot.data=V.data,rt[T]);if(at.nil||at.do.length===0)ot.data.ne=!0,K.push(ot);else{ot.path=at.dm;for(var q=n(at.do),ht=0;0<q.length;){var lt=n(ot),bt=q.shift(),bt=(bt.sx?lt.offset=0:(ht+=bt.tg,lt.offset=ht,bt=q.shift()),lt.length=bt.tg,ht+=bt.tg,tt(bt.sx));lt.mark=bt[0],K.push(lt)}}}for(var _t=0;_t<j.length;_t++)P.push(j[_t])},function(F,z,P){for(var j=[],V=z,K=j,rt=U(F,V),T=0;T<rt.length;T++){var ot=n(x.rmaot),at=(ot.data=V.data,rt[T]);if(at.nil||at.do.length===0)ot.data.ne=!0,K.push(ot);else{ot.path=at.dm;for(var q=n(at.do),ht=0;0<q.length;){var lt=n(ot),bt=q.shift(),bt=(bt.sx?lt.offset=0:(ht+=bt.tg,lt.offset=ht,bt=q.shift()),lt.length=bt.tg,ht+=bt.tg,function(Dt){var Ft,Qt=[];for(Ft in Dt){var ue;Dt[Ft]||((ue=n(w)).type=Ft,Qt.push(ue))}return Qt}(bt.sx));lt.mark=bt[0],K.push(lt)}}}for(var _t=0;_t<j.length;_t++)P.push(j[_t])},function(F,z,P){z=B(F,z),P.push(z)},function(F,z,P){var j=[];W(F,z,j);for(var V=0;V<j.length;V++)P.push(j[V])},function(F,z,P){var j=[];Y(F,z,j);for(var V=0;V<j.length;V++)P.push(j[V])},function(F,z,P){var j=[];C(F,z,j);for(var V=0;V<j.length;V++)P.push(j[V])},function(F,z,P){var j=[];Q(F,z,j);for(var V=0;V<j.length;V++)P.push(j[V])},function(F,z,P){var j=F,V=z;j=G(F,V),V.path=j.dm,(j==null||j.nil||j.do.length===0)&&(V.data.ne=!0),P.push(z)}];function J(F){return F[0].data.tn===4&&F[0].type===O[I]&&F[1].type===O[M]&&F[2].type===O[L]&&F[3].type===O[L]?"pasteindomain":"basic"}function G(F,z){return F=U(F,z),F.length===1?F[0]:F.length===0||1<F.length?null:void 0}function U(F,z){for(var P=[],j=z.data.n,V=0;V<F.length;V++){var K=F[V];if(K.aon==j)P.push(K);else if(K.aon>j)break}return P}function D(F){var z={},P=(z.dm=F.path,z.do=[],{});return F.properties.type?(P.dmpo=!0,P.pos=F.path[F.path.length-1],P.len=1,P.type="ins",P.target=F.target,P.ao="sn",P.p=F.position,z.do.push(P)):(0<F.position&&(P.tg=F.position,z.do.push(P)),z.do.push(P={tg:1,sx:{sa2pn:!0}})),z.tn=F.data.tn,z.aon=F.data.n,z}function W(F,z,P){var j=z;if(0<(T=U(F,z)).length){var V=[];V.push(T[0]);for(var K=1;K<T.length;K++){var rt=T[K];rt.nil||V.push(rt)}var T,F=0,ot=(T=V)[0];if(ot.nil||ot.do.length===0){if(T.length===1)return;F++}else if(u(ot)||f(ot)){if(f(ot)?(z=n(x.snaotndmpo),ot.do[0].sx?z.position=0:z.position=ot.do[0].tg):((z=n(x.snaotdmpo)).properties=j.properties,z.target=ot.do[0].target,z.position=ot.do[0].p),z.path=n(ot.dm),z.data=j.data,P.push(z),T.length===1)return;F++}T.length>F&&(ot=T[F]).do[0].dmpo&&ot.do[0].type==="upd"&&ot.do[0].ao==="setn"&&((j=n(x.senaot)).data.tn=T[0].tn,j.data.n=T[0].aon,B([T[F]],j),P.push(j),F++),T.length>F&&(ot=T[F]).do[0].dmpo&&ot.do[0].ao==="mvn"&&((z=n(x.mvnaot)).data.tn=T[0].tn,z.data.n=T[0].aon,j=[],C(T.slice(F),z,j),P.push(j[0]))}}function Q(F,z,P){var j=z,V=U(F,z);if(V.length===0)return z.data.ne=!0,P.push(z);for(var K,rt=[],T=0;T<V.length-1;T++){var ot=V[T];ot.nil||rt.push(ot)}rt.push(V[V.length-1]),1<(V=rt).length&&(V[0].do[0].dmpo&&V[0].do[0].ao=="mn"?(F=n(x.mnaotdmpo),K=n(x.mnaotndmpo),F.data.tn=V[0].tn,F.data.n=V[0].aon,K.data.tn=V[0].tn,K.data.n=V[0].aon,Y([V[0]],F,F=[]),P.push(F[0]),Y([V[1]],K,F=[]),P.push(F[0])):(K=n(x.snaotndmpo),F=n(x.snaotdmpo),K.data.n=V[0].aon,K.data.tn=V[0].tn,F.data.n=V[1].aon,F.data.tn=V[1].tn,W([V[0]],K,K=[]),P.push(K[0]),W([V[1]],F,K=[]),P.push(K[0]))),F=V[V.length-1],F.nil||!!F.do.length===0?z.data.ne=!0:((z=n(x.rnaot)).path=F.dm,z.data=j.data),P.push(z)}function E(F){var z,P,j={};return F.properties.type?!!R[F.properties.type]&&(j.dm=F.path,j.do=[],(z={dmpo:!0}).pos=F.path[F.path.length-1],z.len=1,z.type="upd",z.ao="setn",(P={}).type=F.properties.type,z.sx=P,j.do.push(z),j.tn=F.data.tn,j.aon=F.data.n,j):!!F.properties.data&&(j.dm=F.path,j.do=[],(P={dmpo:!0}).pos=F.path[F.path.length-1],P.len=1,P.type="upd",P.ao="setn",j.do.push(P),j.tn=F.data.tn,j.aon=F.data.n,j)}function B(F,z){if(F=G(F,z),F==null||F.nil||F.do.length===0)return z.data.ne=!0,z;var P=z;return(z=n(x.senaot)).data=P.data,P.properties&&P.properties.data?(z.path=F.dm,z.properties=P.properties):(z.path=F.dm,z.properties=F.do[0].sx),z}function $(F){var z=[],P={},j=(P.dm=F.path,P.do=[],{});return m(F.path,F.newPath)?(j.dmpo=!0,j.pos=F.path[F.path.length-1],j.len=1,j.ao="mvn",j.type="pt"):(j.dmpo=!0,j.pos=F.path[F.path.length-1],j.len=1,j.type="del",j.ao="mvn",g(F.newPath,F.path)&&(j.pxs="s"),P.tn=F.data.tn,P.aon=F.data.n,P.do.push(j),P.tn=F.data.tn,P.aon=F.data.n,z.push(P),(P={}).dm=F.newPath,P.do=[],(j={}).dmpo=!0,j.pos=F.newPath[F.newPath.length-1],j.len=1,j.ao="mvn",g(F.newPath,F.path)?j.type="pt":(j.type="ins",j.pxs="x")),P.do.push(j),P.tn=F.data.tn,P.aon=F.data.n,z.push(P),z}function C(K,V,P){var j=V,K=U(K,V);if(K.length===0)return V.data.ne=!0,P.push(V);if((V=n(x.mvnaot)).data=j.data,j=1,K.length===1)return K[0].nil||K[0].do.length===0?V.data.ne=!0:(V.path=K[0].dm,V.newPath=K[0].dm),P.push(V);if(K.length===2)return K[0].nil||K[0].do.length===0||K[1].nil||K[1].do.length===0?V.data.ne=!0:(V.path=K[0].dm,V.newPath=K[1].dm),P.push(V);var j=K[0].do[0].type==="pt"?(V.path=n(K[0].dm),V.newPath=n(K[0].dm),P.push(V),1):(V.path=n(K[0].dm),V.newPath=n(K[1].dm),P.push(V),2),V=n(x.senaot),V=(V.data.tn=K[0].tn,V.data.n=K[0].aon,V=B([K[j]],V),P.push(V),K[j+=1].do[0].ao==="rn"&&((V=n(x.rnaot)).data.tn=K[0].tn,V.data.n=K[0].aon,Q([K[j]],V,V=[]),P.push(V[0]),j+=1),n(x.mvnaot)),K=(V.data.tn=K[0].tn,V.data.n=K[0].aon,K.slice(j));0<K.length&&(C(K,V,j=[]),P.push(j[0]))}function N(F){var z={},P=(z.dm=n(F.path),z.do=[],{});return F.properties.type?(P.dmpo=!0,P.pos=F.path[F.path.length-1],P.len=1,P.type="del",P.target=0,P.p=F.position,P.ao="mn",z.do.push(P)):(z.dm[F.path.length-1]=z.dm[F.path.length-1]-1,P={},0<F.position&&(P.tg=F.position,z.do.push(P),P={}),P.tg=1,(P.sx={}).ma2pn=!0,z.do.push(P)),z.tn=F.data.tn,z.aon=F.data.n,z}function Y(V,z,P){var j=z,V=U(V,z);if(V.length===0)return z.data.ne=!0,P.push(z);V.length===3&&(K=n(x.mvnaot),V[0].nil||V[1].nil||V[0].do[0].length===0||V[1].do[0].length===0?(K.data.ne=!0,P.push(K)):(K.data.tn=V[0].tn,K.data.n=V[0].aon,C([V[0],V[1]],K,K=[]),P.push(K[0])));var K=V[V.length-1];if(K.nil||K.do.length===0)return z.data.ne=!0,P.push(z);(c(K)||d(K))&&(d(K)?((z=n(x.mnaotndmpo)).path=n(K.dm),z.path[z.path.length-1]=z.path[z.path.length-1]+1,K.do[0].sx?z.position=0:z.position=K.do[0].tg):((z=n(x.mnaotdmpo)).path=n(K.dm),z.properties=j.properties,z.position=K.do[0].p+1),z.data=j.data,P.push(z))}function tt(F){var z,P,j=[];for(z in F)F[z]&&((P=n(w)).type=z,j.push(P));return j}this.in=function(F){var z=null;(z=F.ivs?e.dec(F.ivs,e.lcmm()):z).mp&&(_=z.mp),z.ppt&&(R=z.ppt),z.mat&&(w=z.mat),z.aot&&(x=z.aot),r=Object.keys(_),b={};for(var P=0;P<r.length;P++){var j=r[P],V=_[j];b[V]=j}O=Object.keys(b);for(var K=0;K<r.length;K++){var rt=r[K];h[rt]=A[K]}for(var T=0;T<r.length;T++){var ot=r[T];v[ot]=k[T]}l=z.p2a,c=s[l[0]],d=s[l[1]],u=s[l[2]],f=s[l[3]],g=s[l[4]],m=s[l[5]],s.at(x),s.sn(D),s.mn(N),s.mvn($),s.sen(E),z.dmpop&&z.dmpot&&z.dmpoaot&&(z.dmpop,z.dmpot,z.dmpoaot)},this.a2p=function(F){F.ao;var z=null;switch(J(F.ao)){case"basic":z=function(P){P.ao;for(var j,V=P.ao,K=[],rt=[],T=null,ot=0;ot<V.length;ot++){var T=V[ot],at=b[T.type],at=(T.key=at,delete T.type,h[T.key]);if(at===void 0||!at(T,rt))return!1;T.data.ne||(rt[rt.length-1].tn=T.data.tn,rt[rt.length-1].aon=T.data.n),_[T.key]!==O[M]?((at={}).key=T.key,_[T.key]==O[I]||_[T.key]==O[L]&&T.properties.type||_[T.key]==O[4]&&T.properties.data?at.properties=T.properties:_[T.key]==O[1]&&(at.text=T.text,at.marks=T.marks),at.data=T.data,K.push(at)):K.push(T)}if(K.length===3&&K[0].data.tn===3)_[K[0].key]==O[I]&&_[K[1].key]==O[M]&&_[K[2].key]==O[M]?(rt[1].do[0].ien=!0,rt[2].do[0].ien=!0,rt[1].do[0].pem=V[0].position,rt[2].do[0].pem=V[0].position,j=rt[0].do.length,rt[0].do[j-1].ien=!0):_[K[0].key]==O[8]&&_[K[1].key]==O[1]&&_[K[2].key]==O[L]&&(rt[0].do[0].den=!0,rt[0].do[0].pem=V[2].position,m(rt[0].dm,V[1].path)?(rt[0].do[0].dlen=0,rt[0].do[0].extra=V[1].text.length):(rt[0].do[0].dlen=V[1].text.length,rt[0].do[0].extra=0),rt[0].do[0].two=!0,rt[1].den=!0,rt[2].den=!0);else if(1<K.length&&1<K[0].data.tn&&_[K[0].key]==O[8]&&_[K[K.length-1].key]==O[L]&&(K.length===2||!_[K[K.length-2].key]==O[L])){for(var q=0,ht=0;ht<K.length;ht++){if(_[K[ht].key]!=O[8]){q=ht-1;break}rt[ht].do[0].den=!0,rt[ht].do[0].two=!1}for(var lt=0,bt=0,_t=q+1;_t<K.length-1;_t++)m(rt[q].dm,V[_t].path)?bt+=V[_t].text.length:lt+=V[_t].text.length;rt[q].do[0].pem=V[V.length-1].position,rt[q].do[0].dlen=lt,rt[q].do[0].extra=bt,rt[q].do[0].two=!0,rt[rt.length-1].den=!0,2<K.length&&(rt[rt.length-2].den=!0,rt[rt.length-3].den=!0)}return P.ao=K,P.op=rt,P.op,P.ao,!0}(F);break;case"pasteindomain":z=function(P){var j=P.ao,V=[],K={},rt=(K.dm=j[0].path,K.do=[],{});0<j[0].position&&(rt.tg=j[0].position,K.do.push(rt));for(var T=j[1].node.leaves,ot=0;ot<T.length;ot++){if((rt={}).cr=T[ot].text,0<T[ot].marks.length){for(var at={},q=0;q<T[ot].marks.length;q++)at[T[ot].marks[q].type]=!0;rt.sx=at}K.do.push(rt)}return V.push(K),P.op=V,!0}(F);break;default:F.ao,z=!1}return F.po,z},this.p2a=function(F){F.op;var z=null;switch(J(F.ao)){case"basic":z=function(P){P.ao;var j,V=P.op,K=P.ao,rt=[];K.length==2&&K[0].key&&K[1].key&&_[K[0].key]==O[I]&&_[K[1].key]==O[I]?(j=V[0].dm.length,V[1].do[0].p=V[0].dm[j-1]+1):K.length==2&&K[0].key&&K[1].key&&_[K[0].key]==O[L]&&_[K[1].key]==O[L]&&(j=V[1].dm.length,V[0].do[0].p=V[1].dm[j-1]);for(var T=0;T<K.length;T++){var ot=K[T];if(!ot.data.ne){var at=ot.type?b[ot.type]:ot.key,at=v[at];if(at===void 0)return!1;at(V,ot,rt)}}return P.ao=rt,P.op,P.ao,!0}(F);break;case"pasteindomain":z=function(){var P=F.op,j=F.ao;if(P[0].nil)for(var V=0;V<j.length;V++)j[V].data.ne=!0;else{j[0].path=P[0].dm;for(var K=1;K<j.length;K++){for(var rt=0;rt<P[0].dm.length;rt++)j[K].path[rt]=P[0].dm[rt];j[K].path[j[0].path.length-1]=1}var T=0,ot=0,at=(P[0].do[0].tg&&(ot=P[0].do[0].tg,T=1),j[3].position-j[0].position);j[0].position=ot,j[2].position=ot,j[3].position=ot+at,P[0].do[0].sx?j[1].position=0:j[1].position=P[0].do[0].tg;for(var q=j[1].node.leaves,ht=0;ht<q.length;ht++){var lt=P[0].do[ht+T];if(q[ht].text=lt.cr,lt.sx){bt=void 0,_t=void 0,Qt=void 0,Dt=void 0,Ft=void 0;var bt=lt.sx,_t=q[ht],Dt,Ft,Qt=[];for(Dt in bt)bt[Dt]&&((Ft=n(w)).type=Dt,Qt.push(Ft));_t.marks=Qt}}}}();break;default:F.ao,z=!1}return F.ao,z},this.k2t=function(F,z){return _[F]==O[z]},this.k2k=function(F,z){return _[F]==_[z]},this.lt=function(F){return _[F]}}},{}],281:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,s){var i=e.lhto(),r=e.dtf,l=e.dtfp,n=e.co,c=null;function d(C,N,Y){if(C.do.length===0||N.do.length===0)return N;var tt,F,z,P=(N=n(N)).dm,j=C.dm;if(C.do[0].dmpo&&C.do[0].type!=="pt"&&O(j,P)){j.length;var V=C.do[0].type;switch(V){case"ins":(function(Nt,It,me){var Vt,ge,De,_e,Ht=It.dm,yn=Nt.dm,ee=yn.length-1,Qe=Nt.do[0].ao,on=It.do[0].ao,wn=It.do[0].type;if(yn[ee]<Ht[ee])Nt.do[0].ao==="mvn"||(yn[ee]+1==Ht[ee]&&Qe==="sn"&&It.do[0].dmpo&&wn==="del"&&on==="rn"&&It.tn===3?It.nil=!0:u(Nt)?Ht[ee]=Ht[ee]+2:Ht[ee]=Ht[ee]+1);else if(yn[ee]===Ht[ee])if(It.do[0].dmpo)switch(Qe){case"sn":switch(wn){case"ins":if(on=="sn"){if(yn.length==Ht.length&&Nt.do[0].p!==It.do[0].p)return Nt.do[0].p>It.do[0].p||(Ht[ee]=Ht[ee]+1,It.do[0].p=It.do[0].p-Nt.do[0].p+1);var Ve=Nt.do[0].target,Ue=It.do[0].target;Nt.otg&&(Ve=Nt.otg),(Ue=It.otg?It.otg:Ue)==Ve?It.nil=!0:Ve<Ue&&(It.do[0].target=Ue-Ve,Ht[ee]=Ht[ee]+1,It.otg&&delete It.otg,It.do[0].p=It.do[0].p-Nt.do[0].p+1)}else on!="mvn"&&on=="in"&&(yn.length!==Ht.length&&Nt.do[0].p!==Ht[1+ee]?Nt.do[0].p>Ht[1+ee]||(Ht[ee]=Ht[ee]+1,Ht[1+ee]=Ht[1+ee]-Nt.do[0].p+1):(Ue=Nt.do[0].target,Nt.otg&&(Ue=Nt.otg),u(It)&&(It.do[0].pem>Ue||It.do[0].pem===Ue&&me)&&(Ht[ee]=Ht[ee]+1,Ht[1+ee]=1,It.do[0].pem=It.do[0].pem-Ue)));break;case"del":U(It)?Nt.do[0].target===It.do[0].target&&(Ht[ee]=Ht[ee]+1):on=="mvn"?It.do[0].pxs:on=="rn"&&1<It.tn?f(It)?yn.length!==Ht.length&&Nt.do[0].p!==Ht[1+ee]+1?Nt.do[0].p>Ht[1+ee]+1||(Ht[ee]=Ht[ee]+1,Ht[1+ee]=Ht[1+ee]-Nt.do[0].p+1):It.two&&(Ve=Nt.do[0].target,Nt.otg&&(Ve=Nt.otg),(It.do[0].pem>Ve||It.do[0].pem===Ve&&me)&&(Ht[ee]=Ht[ee]+1,Ht[1+ee]=1,It.do[0].pem=It.do[0].pem-Ve)):(Ue=It,Ve=Nt.do[0].target,(ge=n(Ue.dm))[Ue.dm.length-1]=ge[Ue.dm.length-1]+1,(De=n(Ue.dm))[ge.length]=1,(_e=n(W.mnaotdmpo)).path=ge,_e.data.tn=Ue.tn,_e.data.n=Ue.aon,(ge=E(_e)).do[0].target=Ve,ge.pon=Ue.pon+1,(_e=n(W.mnaotndmpo)).path=De,_e.position=Ve,_e.data.tn=Ue.tn,_e.data.n=Ue.aon,(De=E(_e)).pon=Ue.pon+2,Ue.Xp||(Ue.Xp=[]),Ue.Xp.push(ge),Ue.Xp.push(De)):Ht[ee]=Ht[ee]+1}break;case"mvn":It.do[0].type=="ins"&&It.do[0].ao=="mvn"?It.nil=!0:Ht[Ht.length]=0;break;case"in":if(u(Nt))return u(It)?(Nt.do[0].pem<It.do[0].pem||Nt.do[0].pem==It.do[0].pem&&me)&&(Ht[ee]=Ht[ee]+2,It.do[0].pem=It.do[0].pem-Nt.do[0].pem):Ht[ee]=Ht[ee]+2;(wn!="ins"||L(It)||on==="in"&&me)&&(Ht[ee]=Ht[ee]+1)}else{var Ze=Nt.do[0].target,gn=0;switch(Qe){case"sn":if(yn.length!==Ht.length&&Nt.do[0].p!==Ht[Ht.length-1]+1)return Nt.do[0].p>Ht[Ht.length-1]+1||(Ht[ee]=Ht[ee]+1,Ht[Ht.length-1]=Ht[Ht.length-1]-Nt.do[0].p+1);if(It.do[0].tg&&!It.do[0].sx&&(gn=It.do[0].tg),Nt.otg&&(Ze=Nt.otg),It.otg&&(gn=It.otg),R(It)&&Nt.isInDR&&x(It,Nt.isInDR)){{var fn=It,On=Nt.isInDR,bn=ee,Xe=0,$e=0;!fn.do[0].tg||fn.do[0].sx||s||(Xe=1,$e=fn.do[0].tg);for(var kt=null,be=$e,de=Xe;de<fn.do.length;de++)if(fn.do[de].tg?be+=fn.do[de].tg:be+=fn.do[de].sc,On<=be){var Ye=null,cn=null;if(fn.do[de].sc){var Ye=n(fn.do[de]),cn=n(fn.do[de]),We=On-(be-fn.do[de].sc),At=fn.do[de].sc-We;if(We==0||At==0)break;Ye.sc=We,cn.sc=At}(kt=n(fn)).do=fn.do.slice(0,de),Ye!==null&&kt.do.push(Ye),fn.do=fn.do.slice(de+1),cn!==null&&fn.do.unshift(cn),fn.dm[bn]=fn.dm[bn]+1;break}kt!==null&&(fn.Xa||(fn.Xa=[]),fn.pon&&(kt.pon=fn.pon+1),kt.pon=fn.pon+1,fn.Xa.push(kt))}return delete Nt.isInDR}if(gn===Ze)M(It)?me&&(G(It.do,0),Ht[ee]=Ht[ee]+1,Ht[1+ee]=0):R(It)&&Nt.ft&&It.ft&&function(Tt,Rt){for(var Ut=0;Ut<Tt.length;Ut++)for(var Yt=0;Yt<Rt.length;Yt++)if(Tt[Ut]===Rt[Yt])return 1}(It.ft,Nt.ft)||(M(It)&&(It.otg=gn),G(It.do,0),Ht[ee]=Ht[ee]+1,Ht[Ht.length-1]=Ht[Ht.length-1]-Nt.do[0].p+1);else if(Ze<gn)M(It)&&(It.otg=gn),G(It.do,gn-Ze),Ht[ee]=Ht[ee]+1,Ht[Ht.length-1]=Ht[Ht.length-1]-Nt.do[0].p+1;else if(function(Tt,Rt){if(!k(Tt)&&Tt.do.length!==0){var Ut=0,Yt=0,ie=(Tt.do[0].tg&&!Tt.do[0].sx&&(Yt=Tt.do[0].tg,Ut=1),Yt);if(Tt.do[Ut].sx){for(var X=Ut;X<Tt.do.length;X++)ie+=Tt.do[X].tg;if(Yt<Rt&&Rt<ie&&!s)return 1}}}(It,Ze)){var Zt=It,xt=Ze,Wt=ee,$e=0,Xe=0;Zt.do[0].tg&&!Zt.do[0].sx&&($e=1,Xe=Zt.do[0].tg);for(var re=null,je=Xe,Gt=$e;Gt<Zt.do.length;Gt++)if(xt<=(je+=Zt.do[Gt].tg)&&!s){var Ge=null,Te=null;if(Zt.do[Gt].sx){var Ge=n(Zt.do[Gt]),Te=n(Zt.do[Gt]),yt=xt-(je-Zt.do[Gt].tg),zt=Zt.do[Gt].tg-yt;if(yt==0||zt==0)break;Ge.tg=yt,Te.tg=zt}(re=n(Zt)).do=Zt.do.slice(0,Gt),Ge!==null&&re.do.push(Ge),Zt.do=Zt.do.slice(Gt+1),Te!==null&&Zt.do.unshift(Te),Zt.dm[Wt]=Zt.dm[Wt]+1;break}re!==null&&(Zt.Xa||(Zt.Xa=[]),Zt.pon&&(re.pon=Zt.pon+1),re.pon=Zt.pon+1,Zt.Xa.push(re))}break;case"mvn":Ht[Ht.length]=0;break;case"in":Ht[ee]=Ht[ee]+1}}else u(Nt)&&yn[ee]===Ht[ee]+1&&(Qe=Nt.do[0].pem,A(It)?Ht[ee]=Ht[ee]+2:(Qe<(Vt=J(It))||Qe===Vt&&(R(It)||me))&&(Ht[ee]=Ht[ee]+2,M(It)&&(It.otg=Vt),G(It.do,Vt-Qe)))})(C,N,Y);break;case"del":var K,rt,T,ot,at=C,q=N,ht=at.dm,lt=q.dm,bt=ht.length-1,_t=at.do[0].ao;if(q.do[0].ao,q.do[0].type,!at.nil)if(ht[bt]<lt[bt])at.do[0].ao==="mvn"&&at.do[0].type=="del"&&at.do[0].pxs&&at.do[0].pxs==="s"?ht[bt]+1===lt[bt]&&q.do[0].dmpo&&q.do[0].type=="del"&&q.do[0].ao=="mn"&<.shift():ht[bt]+1===lt[bt]&&at.do[0].type=="del"&&at.do[0].ao=="rn"&&q.do[0].dmpo&&q.do[0].type=="del"&&q.do[0].ao=="mn"?q.nil=!0:f(at)&&at.do[0].two?(A(q)||(K=J(q),rt=at.do[0].pem,ht[bt]+1===lt[bt]&&G(q.do,K+rt+at.do[0].dlen-at.do[0].extra)),lt[bt]=lt[bt]-2):lt[bt]=lt[bt]-1;else if(ht[bt]===lt[bt])if(q.do[0].dmpo)switch(_t){case"mvn":q.do[0].type=="del"&&q.do[0].ao=="mvn"?q.nil=!0:at.do[0].pxs&&at.do[0].pxs==="s"?(q.do[0].type=="ins"&&q.do[0].ao,lt.pop(),q.dm=lt):q.do[0].type=="del"&&q.do[0].ao=="rn"?q.nil=!0:0<lt[bt]&&(lt[bt]=lt[bt]-1);break;case"mn":q.do[0].type==="upd"?0<lt[bt]&&(lt[bt]=lt[bt]-1):q.do[0].type==="del"&&q.do[0].ao==="mn"?q.nil=!0:q.do[0].type==="del"&&q.do[0].ao==="rn"?f(q)?0<lt[bt]&&(lt[bt]=lt[bt]-1):_(q,at.do[0].target,!0):(q.do[0].type==="ins"&&q.do[0].ao,0<lt[bt]&&(lt[bt]=lt[bt]-1)),ht.length===lt.length||!(L(q)&<[1+bt]===0||lt[1+bt]===1)||0<(T=at.do[0].target)&&(q.do[0].tg&&!q.do[0].sx?q.do[0].tg=q.do[0].tg+T:q.do.unshift({tg:T})),ht.length!==lt.length&&(lt[1+bt]=lt[1+bt]+at.do[0].p-1);break;case"rn":q.do[0].type==="del"?q.do[0].ao==="rn"||q.do[0].ao==="mn"?q.nil=!0:q.do[0].ao:(q.do[0].type!=="ins"||q.do[0].ao==="sn"||q.do[0].ao==="mvn")&&(q.nil=!0)}else switch(_t){case"mvn":at.do[0].pxs&&at.do[0].pxs==="s"?(lt.pop(),q.dm=lt):0<lt[bt]&&(lt[bt]=lt[bt]-1);break;case"mn":0<lt[bt]&&(lt[bt]=lt[bt]-1),ht.length!==lt.length&&(M(q)&<[1+bt]===0||lt[1+bt]===1)&&0<(ot=at.do[0].target)&&(q.do[0].tg&&!q.do[0].sx?q.do[0].tg=q.do[0].tg+ot:q.do.unshift({tg:ot})),lt[1+bt]=lt[1+bt]+at.do[0].p-1;break;case"rn":D(q)?q.nil=!0:M(q)?q.n2b=!0:(R(q),q.nil=!0)}else ht[bt]===lt[bt]+1&&at.do[0].type=="del"&&at.do[0].ao=="mn"&&q.do[0].dmpo&&q.do[0].type=="del"&&q.do[0].ao=="rn"&&!f(q)&&_(q,at.do[0].target,!1);break;case"upd":K=N,rt=Y,tt=(_t=C).dm,F=K.dm,z=tt.length-1,tt[z]===F[z]&&tt.length===F.length&&K.do[0].dmpo&&K.do[0].type==="upd"&&rt&&(K.do[0].sx&&_t.do[0].sx?K.do[0].sx.type=_t.do[0].sx.type:K.nil=!0)}}else if(C.do[0].dmpo&&C.do[0].type==="ins"&&C.do[0].pxs==="x"&&N.do[0].dmpo&&N.do[0].type==="ins"&&N.do[0].ao==="sn"&&I(P,j)){P[P.length]=0;{var Dt=N,V=n(Dt.dm),Ft=(V[V.length-1]=1,n(V)),Qt=n(Ft),ue=(1<Qt.length&&Qt.shift(),n(W.senaot)),V=(ue.path=V,ue.data.tn=Dt.tn,ue.data.n=Dt.aon,$(ue)),ue=n(W.mvnaot),ae=(ue.path=Ft,ue.newPath=Qt,ue.data.tn=Dt.tn,ue.data.n=Dt.aon,B(ue));Dt.Xa||(Dt.Xa=[]),V.pon=Dt.pon+1,Dt.Xa.push(V);for(var se=0;se<ae.length;se++)ae[se].pon=Dt.pon+2+se,Dt.Xa.push(ae[se])}}else if(C.do[0].dmpo&&C.do[0].type==="ins"&&C.do[0].pxs==="x"&&N.do[0].dmpo&&N.do[0].type==="del"&&N.do[0].ao==="mn"&&O(P,j)){{var Ne=N,Ft=n(Ne.dm),Qt=n(Ft),ue=(Qt.unshift(0),n(W.mvnaot)),ce=(ue.path=Ft,ue.newPath=Qt,ue.data.tn=Ne.tn,ue.data.n=Ne.aon,B(ue));Ne.Xp||(Ne.Xp=[]);for(var qt=0;qt<ce.length;qt++)ce[qt].pon=Ne.pon+1+qt,Ne.Xp.push(ce[qt])}P.unshift(0)}else(u(C)&&N.do[0].dmpo&&!u(N)&&j.length===P.length||u(C)&&k(N)&&j.length===P.length)&&(P[P.length-1]=P[P.length-1]+2);return N}function u(C){return C&&C.do&&C.do[0].dmpo&&C.do[0].ao==="in"&&C.do[0].ien}function f(C){return C&&C.do&&C.do[0].dmpo&&C.do[0].ao==="rn"&&C.do[0].den}function g(C,N){U(C)&&D(N)&&!s&&((N=J(N))!==C.do[0].target&&C.do[0].target,C.do[0].target=N)}function m(C,N){U(C)&&D(N)&&C.nil&&!s&&(N.nil=!0)}function h(C,N){M(C)&&L(N)&&N.nil&&!s&&(C.nil=!0,C.n2b)}function v(C,N,Y,tt){var F;C.nil?tt&&L(N)&&!s&&(N.nil=!0):M(C)&&L(N)&&(C.otg&&(N.otg=C.otg,delete C.otg),tt=J(C),N.do[0].target-tt!=0&&N.do[0].target,R(Y)&&tt<N.do[0].target&&!s&&(F=Math.random(),N.ft||(N.ft=[]),N.ft.push(F),Y.ft||(Y.ft=[]),Y.ft.push(F)),C.isInDR&&(N.isInDR=C.isInDR,delete C.isInDR),N.do[0].target=tt)}function b(C){for(var N=[],Y=0;Y<C.length;Y++)if(C[Y].Xa){N.push(C[Y]);for(var tt=0;tt<C[Y].Xa.length;tt++)N.push(C[Y].Xa[tt]);delete C[Y].Xa}else if(C[Y].Xp){for(var F=0;F<C[Y].Xp.length;F++)N.push(C[Y].Xp[F]);N.push(C[Y]),delete C[Y].Xp}else N.push(C[Y]);return N}function _(C,N,tt){var z=n(C.dm),tt=(tt&&(z[C.dm.length-1]=z[C.dm.length-1]-1),n(z)),F=(tt[z.length]=0,n(W.snaotndmpo)),tt=(F.path=tt,F.position=N,F.data.tn=C.tn,F.data.n=C.aon,Q(F)),F=(tt.pon=C.pon+1,n(W.snaotdmpo)),z=(F.path=z,F.target=N,F.data.tn=C.tn,F.data.n=C.aon,Q(F));z.pon=C.pon+2,C.Xp||(C.Xp=[]),C.Xp.push(tt),C.Xp.push(z)}function R(C){var N=0;return 0<C.do.length&&C.do[0].tg&&!C.do[0].sx&&(N=1),0<C.do.length&&C.do[N].sc}function x(C,N){if(k(C)||C.do.length===0)return!1;var Y=0,tt=0;if(0<C.do.length&&C.do[0].tg&&!C.do[0].sx&&!s&&(Y=1,tt=C.do[0].tg),C.do[Y].sc){for(var F=tt,z=Y;z<C.do.length;z++)C.do[z].tg?F+=C.do[z].tg:F+=C.do[z].sc;if(tt<N&&N<F)return!0}return!1}function w(C,N){if(C===null||N===null||C&&C.length===0||N&&N.length===0||C.length!==N.length)return!1;for(var Y=0;Y<C.length;Y++)if(C[Y]!==N[Y])return!1;return!0}function O(C,N){if(C!==null&&N!==null&&!(C&&C.length===0||N&&N.length===0||C.length>N.length)){for(var Y=0;Y<C.length-1;Y++)if(C[Y]!==N[Y])return;return 1}}function I(C,N){if(C===null||N===null||C&&C.length===0||C&&N.length===0||C.length>=N.length)return!1;for(var Y=0;Y<C.length;Y++)if(C[Y]!==N[Y])return!1;return!0}function L(C){return!(!(0<C.do.length&&C.do[0].dmpo&&C.do[0].type==="ins"&&C.do[0].ao==="sn")||s)}function M(C){var N=0;return 0<C.do.length&&C.do[0].tg&&!C.do[0].sx&&(N=1),!(!(0<C.do.length&&C.do[N].sx&&C.do[N].sx.sa2pn)||s)}function A(C){return 0<C.do.length&&C.do[0].dmpo&&!s}function k(C){if(C.do.length===0)return!1;var N=0;return 0<C.do.length&&C.do[0].tg&&!C.do[0].sx&&(N=1),!(!(0<C.do.length&&C.do[N].sx&&(C.do[N].sx.sa2pn||C.do[N].sx.ma2pn))||s)}function J(C){var N=0;return N=0<C.do.length&&C.do[0].tg&&!C.do[0].sx?C.do[0].tg:N}function G(C,N){C[0].tg&&!C[0].sx?0<N?C[0].tg=N:C.shift():0<N&&C.unshift({tg:N})}function U(C){return!(!(0<C.do.length&&C.do[0].dmpo&&C.do[0].type==="del"&&C.do[0].ao==="mn")||s)}function D(C){var N=0;return 0<C.do.length&&C.do[0].tg&&!C.do[0].sx&&(N=1),!(!(0<C.do.length&&C.do[N].sx&&C.do[N].sx.ma2pn)||s)}var W=null,Q=null,E=null,B=null,$=null;this.in=function(C){C.ivs&&(C=e.dec(C.ivs,e.lcmm()),c=C.c2p),r=e[c[0]],l=e[c[1]],n=e[c[2]]},this.xf=function(C,N,lt){C.op,N.op;for(var tt,F=null,z=null,z=lt?!(F=!1):!(F=N.context.to===i||N.context.to>C.context.to),P=0;P<C.op.length;P++)if(C.op[P].nil||C.op[P].n2b||s)C.op[P];else{C.op[P];for(var j=0;j<N.op.length;j++)if(N.op[j].nil||N.op[j].n2b||s)N.op[j];else{N.op[j];var V,K=C.op[P],rt=N.op[j],T=k(C.op[P]),ot=k(N.op[j]),at=(at=C.op[P],tt=N.op[j],at===null||tt===null||at&&at.do&&at.do.length===0||tt&&tt.do&&tt.do.length===0?"wgqui":at.do[0].dmpo||tt.do[0].dmpo?"xgqui":w(at.dm,tt.dm)?"tqui":"wgqui"),q=[],ht=[];switch(at){case"tqui":T&&ot?ht=u(C.op[P+1])||u(N.op[j+1])?(q=n(C.op[P].do),n(N.op[j].do)):(q=r(N.op[j].do,C.op[P].do,!0),r(C.op[P].do,N.op[j].do,!0)):T&&!ot?(V=J(C.op[P]),x(N.op[j],V)&&(C.op[P].isInDR=V),V=r(N.op[j].do,V,!1),N.op[j].do,q=n(C.op[P].do),ht=n(N.op[j].do),G(q,V)):!T&&ot?(V=J(N.op[j]),x(C.op[P],V)&&(N.op[j].isInDR=V),C.op[P].do,V=r(C.op[P].do,V,!1),ht=n(N.op[j].do),q=n(C.op[P].do),G(ht,V)):(q=r(N.op[j].do,C.op[P].do,F),ht=r(C.op[P].do,N.op[j].do,z)),K.do=q,rt.do=ht;break;case"xgqui":K=d(N.op[j],C.op[P],F),rt=d(C.op[P],N.op[j],z)}if(C.op[P]=K,N.op[j]=rt,C.op[P].do.length===0&&(C.op[P].nil=!0),P<C.op.length-1&&v(C.op[P],C.op[P+1],N.op[j],T),0<P&&h(C.op[P-1],C.op[P]),N.op[j].do.length===0&&(N.op[j].nil=!0),j<N.op.length-1&&v(N.op[j],N.op[j+1],C.op[P],ot),0<j&&h(N.op[j-1],N.op[j]),P<C.op.length-1&&m(C.op[P],C.op[P+1]),0<P&&g(C.op[P-1],C.op[P]),j<N.op.length-1&&m(N.op[j],N.op[j+1]),0<j&&g(N.op[j-1],N.op[j]),C.op[P].nil||C.op[P].n2b||s){C.op[P];break}}}C.op,N.op;var lt=b(C.op),bt=b(N.op);C.op=lt,N.op=bt,C.op,N.op},this.ppt=function(C,N,Y){for(var tt,F=0;F<C.length;F++)if(C[F].do.length!==0&&!C[F].nil&&!s){tt=N;var z=(z=C[F])===null||z.do.length===0?"wglou":z.do[0].dmpo&&!z.do[0].upd&&O(z.dm,tt.path)?"xglou":w(z.dm,tt.path)?"tlou":"wglou";switch(z){case"tlou":N.pos=l(C[F].do,N.pos,!Y);break;case"xglou":ot=T=rt=K=V=j=P=void 0;var P=C[F],j=N,V=Y,K=P.dm,rt=j.path,T=K.length-1,ot=P.do[0].pos;switch(P.do[0].type){case"ins":ot<rt[T]&&!s?P.do[0].ao==="mvn"||(rt[T]=rt[T]+P.do[0].len):ot===rt[T]&&(P.do[0].ao==="sn"?(j.pos>P.do[0].target||j.pos==P.do[0].target&&V)&&(j.pos,P.do[0].target,rt[T]=rt[T]+1,j.pos=j.pos-P.do[0].target):P.do[0].ao==="mvn"?rt[rt.length]=0:P.do[0].ao==="in"?rt[T]=rt[T]+1:P.do[0].ao);break;case"del":ot<rt[T]&&!s?P.do[0].ao==="mvn"&&P.do[0].pxs&&P.do[0].pxs==="s"||(rt[T]=rt[T]-P.do[0].len):ot===rt[T]&&(P.do[0].ao==="mvn"?P.do[0].pxs&&P.do[0].pxs==="s"?(rt=rt.slice(0,rt.length-1),j.path=rt):0<rt[T]&&(rt[T]=rt[T]-P.do[0].len):P.do[0].ao==="mn"?0<rt[T]&&(rt[T]=rt[T]-1,j.pos=j.pos+P.do[0].target):P.do[0].ao==="rn"?0<rt[T]&&(rt[T]=rt[T]-1,j.pos=0):P.do[0].ao);break;default:P.do[0].type}}}},this.ep=w,this.issp=I,this.ndmn=D,this.dmn=U,this.ndsn=M,this.dsn=L,this.at=function(C){W=C},this.sn=function(C){Q=C},this.mn=function(C){E=C},this.mvn=function(C){B=C},this.sen=function(C){$=C}}},{}],282:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.smVer=t.default=t.clientVer=void 0;var e={smVer:t.smVer=1,clientVer:t.clientVer="4.0"};t.default=e},{}],283:[function(o,a,t){a.exports={isProd:!1,isDev:!1,isClickup:!1,environment:null,setEnv:function(e){}}},{}],284:[function(o,a,t){var e=function(r,l){return!(!r||!r.retain||l&&r.retain!==l)},s=function(r,l){return 2<arguments.length&&arguments[2]!==void 0&&!arguments[2]?!!r&&!!r.insert&&!!r.insert[l]:!(!r||!r.insert||l&&r.insert!==l)},i=function(r,l){return!(!r||!r.delete||l&&r.delete!==l)};a.exports={filters:{task_mention:{1:[{op:"insert",param:"task_mention"},{op:"delete",param:1}],2:[{op:"retain"},{op:"insert",type:"task_mention"},{op:"delete",param:1}]},bookmark:{1:[{op:"insert"},{op:"insert",param:"bookmark"},{op:"delete"}],2:[{op:"retain"},{op:"insert"},{op:"insert",type:"bookmark"},{op:"delete"}]},doc_mention:{1:[{op:"insert",param:"doc_mention"},{op:"delete",param:1}],2:[{op:"retain"},{op:"insert",type:"doc_mention"},{op:"delete",param:1}]}},shouldFilter:function(c){var l,n,c=c.ops;return n=e((l=c)[0])&&s(l[1],"task_mention",!1)&&i(l[2],1),l=s(l[0],"task_mention",!1)&&i(l[1],1),n||l||e((n=c)[0])&&s(n[1],"bookmark",!1)&&i(n[2])||(n=e((l=c)[0])&&s(l[1],"doc_mention",!1)&&i(l[2],1),l=s(l[0],"doc_mention",!1)&&i(l[1],1),n||l)}}},{}],285:[function(s,a,t){var e=s("./clickup"),s=s("../env"),i=(s.isProd,s.isClickup);a.exports={shouldFilter:function(r){return!!i&&e.shouldFilter(r)}}},{"../env":283,"./clickup":284}],286:[function(o,a,t){var r=o("@babel/runtime/helpers/interopRequireDefault"),e=(Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppAPI",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Bootstrap",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"WavePreDsm",{enumerable:!0,get:function(){return i.default}}),t.default=void 0,r(o("./api/bootstrap"))),s=r(o("./api/appApi")),i=r(o("./predsm/codox")),r={Bootstrap:e.default,AppAPI:s.default,WavePreDsm:i.default};t.default=r},{"./api/appApi":260,"./api/bootstrap":261,"./predsm/codox":288,"@babel/runtime/helpers/interopRequireDefault":297}],287:[function(o,a,t){o("./env").isProd,o=new function(){var e=this,s={};this.init=function(i){this.sentry=i},this.reportError=function(i){var r,l=this,n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};this.sentry?!i||(r=i.reason)&&(s[r]=!!s[r]&&s[r]+1||1,2<s[r])||this.sentry.withScope(function(c){c.setFingerprint(i.message),n.tags&&c.setTags(n.tags),n.extra&&c.setExtras(n.extra),l.sentry.captureException(i)}):console.error("logger not available")},this.reportInfo=function(i){var r=this,l=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};this.sentry?this.sentry.withScope(function(n){l.tags&&n.setTags(l.tags),l.extra&&n.setExtras(l.extra),r.sentry.captureMessage(i)}):console.error("logger not available")},this.addBreadcrumb=function(i){this.sentry?this.sentry.addBreadcrumb({message:i||"",level:"info"}):console.error("logger not available")},this.addTag=function(i,r){e.sentry?e.sentry.configureScope(function(l){l.setTag(i,r)}):console.error("logger not available")}},a.exports={logger:o,SentryLevel_H:1,SentryLevel_M:2,SentryLevel_L:3,I_StopMsg_1:3001,I_StopMsg_2:3002,I_StopMsg_3:3003,I_StopMsg_4:3004}},{"./env":283}],288:[function(o,a,t){var e=o("@babel/runtime/helpers/interopRequireDefault")(o("@babel/runtime/helpers/typeof")),s=o("./sapa.js"),i=o("./spot.js"),r=o("./dsm.js"),v=o("../util/lib"),l=v.getTabId,n=v.clearTimer,c=v.deepCopy,v=(v.splitComment,v.extractComment,o("../logger.js")),d=v.logger,u=v.SentryLevel_H,f=(v.SentryLevel_M,v.SentryLevel_L,o("crypto-js/aes")),g=o("crypto-js/core"),m=o("../domains/api/qjs-util").contentToDelta,h=Date,v=o("../env"),b=v.isProd,_=v.isClickup,R=b,x=o("pako"),w=o("extend"),O=o("deep-equal"),I=1;a.exports=function(L,M,A,k,J,G,U,D){var W=!1,Q=(D&&(W=!0),h.now()),E=function(){},B=function(){},$=function(){},C=(W||(E=d.reportError.bind(d),d.reportInfo.bind(d),B=d.addBreadcrumb.bind(d),$=d.addTag.bind(d)),B("[codoxi]* ccw: t = 0; CV=5; seid = "+L.sid,u),$("clientVersion",5),this),N=null,Y=L.ver,tt=L,F=L.apptype,z=L.sid,P=null,j=null,V=null,K=null,rt=null,T=null,ot=null,at=null,q=null,ht="w",lt=(W||(P=L.domains,j=P.b(),(V=P.c()).setWave&&V.setWave(this),K=L.cid,rt=L.sysinfo,T=L.anyclient,ot=L.founder,F=="quilljs"||F=="quilljs_clickup"?q=V.initContents():q=V.d(),c(q),L.role&&(ht=L.role),at=A),!1),bt=!1,_t=!1,Dt=!1,Ft=!1,Qt=!1,ue=!1,ae=!1,se=!0,Ne=!0,ce=!0,qt=!0,Nt=!0,It=!0,me=!0,Vt=null,ge=null,De=null,_e=(W||_||(C.rangy||(C.rangy=o("rangy/lib/rangy-selectionsaverestore")),C.rangy.initialized||C.rangy.init()),250),Ht=2e3,yn=0,ee=null,Qe=2e3,on=null,wn=null,Ve=[],Ue=null,Ze=h.now(),gn=0,fn=0,On=1,bn=2,Xe=4,$e=On,kt=3,be=12,de=!0,Ye=!0,cn=!0,We=!0,At=!0,Zt=0,xt=h.now(),Wt=null,re=null,je=null,Gt=null,Ge=null,Te='"></span>',yt=null,zt=1,Tt=2,Rt=3,Ut=4,Yt=null,ie=null,X=null,dt=null,wt=null,Bt=null,St=null,Se=null,oe=null,ve=null,Ie=null,ke=null,nn=null,dn=null,En=null,Ln=null,tr=null,jn=null,Rn=null,$n=!1;function Wr(Z){Z.d2c&&(dt=Z.d2c,Ie=Yt[dt[ea]],ke=Yt[dt[ar]],nn=Yt[dt[po]],dn=Yt[dt[_i]],St=Yt[dt[fo]],Se=Yt[dt[Sr]],oe=Yt[dt[Mr]],ve=Yt[dt[Ni]],Yt[dt[bi]])}function uo(Z){bt&&!me&&(Z.p2c&&(Bt=Z.p2c,wt=Z.a2c),Z={ivs:Z},(X=new i(C,me)).in(Z),tr=X[Bt[wi]],jn=X[Bt[Jr]],Rn=X[Bt[Io]],(ie=new s(C,X,me)).in(Z),Ln=ie[wt[Ho]],En=ie[wt[Ro]])}function xr(Z){if(Z.cat){switch(go=Z.cat,F){case go[Bs]:bt=!0;break;case go[fl]:lt=!0;break;case go[Bi]:_t=!0;break;case go[jc]:Dt=!0;break;case go[Bl]:Qt=!0;break;case go[Fl]:Ft=!0;break;case go[zl]:break;case go[Ul]:ae=!0;break;case go[Hl]:lt=!0;break;default:R||E(new Error("codox_setAppType: unknown apptype = "+F))}Li=ae||_t}Z.sot&&(Le=Z.sot),Z.tmk&&(Z.tmk,ba=Z.tmk.o,hs=Z.tmk.c,yt=Z.tmk.tn,Z.tmk.uq,Z.tmk.ed,Gt=Z.tmk.m,Ge='<span id="'+Gt+"_"),Z.lmt&&(Z.lmt,Wt=Z.lmt.mos,re=Z.lmt.mms,je=Z.lmt.dms),Z.dt&&(ur=Z.dt)}var fo=0,Sr=1,Mr=2,Ni=3,bi=4,ea=5,ar=6,po=7,_i=8,Ro=0,Ho=1,Jr=0,Io=1,wi=2,ei=1e3,ds=1001,qo=1002,Mi=1,fs=2,na=3,Ls=4,ps=5,ga=6,La=8,Wo=9,Ba=10,Fa=11,Be=12;function Ae(Z,pt){if(M)try{if(M.readyState!==1)throw new Error("codox_closeSocket: WebSocket is not in OPEN state.");M.close(),M=null}catch{B("socket error readyState = ".concat(M.readyState," err=").concat(pt)),Z.error=pt,R||console.error("[codox] exception in closing socket")}}function Pe(Z){pt=new Date,vt=null,Ta&&(vt=St.mbs.length),mt=null,Yt&&(mt=Yt.gjc());var pt,mt={state:$e,connected:Ya,subr:fi,subs:Ta,JnC:mt,joined:$n,members:vt,reason:null,error:null,wid:tt.waveid,app:F,ts:pt},vt={};return mt.reason=Z||500,vt.reason=Z||500,$e===Xe?void(mt.error=Mi):Z&&Z!="ESTOP"?(Z===100||Z===200?(mt.error=Ls,Z!==200&&(B("stop reason ".concat(Z," sid = ").concat(we.sid)),E(new Error("reason ".concat(Z)),{tags:vt,extra:mt})),Ae(mt,ps)):Ya?Z===501&&$e!==bn?(mt.error=La,Ae(mt,Wo)):(Z!==1&&Z!==13&&Z!==24&&Z!==25&&Z!==23&&(mt.error=Ba,oa(Rt,Z,mt)),Ae(mt,Fa),Z!==501&&Z!==1&&Z!==2&&(mt.error=Be,B("stop reason ".concat(Z," sid = ").concat(we.sid)),E(new Error("reason ".concat(Z)),{tags:vt,extra:mt}))):(mt.error=ga,Z!==501&&E(new Error("init socket connection failure"),{tags:vt,extra:mt}),mo(Z)),void(U||_n(K,Z))):(mt.error=fs,Z=="ESTOP"&&(mt.error=Z),Ae(mt,na),void(U||_n(K,Z=="ESTOP"?Z:500)))}function _n(Z,pt){var mt;$e!=Xe&&($e=Xe,Ve=[],n(Ue),n(Ki),n(on),n(wn),n(G),Ta&&oe(),mt=(h.now()-Q)/1e3,$n?(B("[codoxi]* cdxclose: t = "+mt+"; r="+pt+"; hbc = "+rr+"; sid = "+we&&we.sid,u),tt.a.a(Z,pt)):(B("[codoxi]* cdxcb(n): t = "+mt+"; r="+pt,u),pt!="ESTOP"&&at(null,pt)),j=null,tt.domains=null,k=N=V=P=we=at=C=null,Yt&&Yt.clean(),Yt=null)}function kn(){we.sid,At=Nt=qt=ce=Ne=se,I<2.2&&ve(),tt.a.g(K);var Z=(h.now()-Q)/1e3;B("[codoxi]* eco: t = "+Z+"; s="+$e+"; ss="+St.mbs.length+"; sid = "+we.sid,u)}function qn(Z){if(!Z&&(Z=h.now()-ee,yn+=_e,Z<_e&&yn<Ht))return n(Ue),void(Ue=setTimeout(qn,_e));we.sid,zn("LoT"),yn=0,Ue=ee=null}function Dr(){return ht==="r"}function fr(){return St&&St.mbs&&St.mbs.length===1}var Kn=null;function Pr(){var Z=null;return ae||_t?Z=V.j:(lt||bt)&&(Z=V.k),JSON.stringify(Z)}function ho(Z){c(Z);var pt={ops:eo(Z.op)};V.updateContents(pt),Ji(Z),c(Z)}var ma=[];function xi(Z){var pt=ya(Z);0<pt.length&&V.updateContents(pt),Ji(Z)}function ya(Z){Ln(Z);var pt=function(Lt){for(var Jt=[],Xt=0;Xt<Lt.length;Xt++)Lt[Xt].data.ne?Lt[Xt]:Jt.push(Lt[Xt]);return Jt}(Z.ao);if(0<pt.length)for(var mt=0;mt<pt.length;mt++){var vt=pt[mt];vt.key&&(vt.type=ie.lt(vt.key),delete vt.key)}return pt}var Le=null,go=null;function va(){zs(),Br()}var Me=!1;function Qr(){var Z;Me&&(zn("cmv"),we.dmid=V.dmid,Z=Di(V),Bn(we.dmid,Z.start),$i(Z={t:"sl",op:Z}),wa(Z),Me=!1)}var ni={};function Bn(Z,pt){var mt=ni[Z];mt||(ni[Z]=mt={}),mt.pos=pt}function Lr(Z){return Z=ni[Z],Z?Z.pos:0}var pr=!1;function Di(Z){var pt;return Z==null&&(Z=V),pt=lt?(pr=!0,pt=Z.c(),pr=!1,pt?{start:pt.index,end:pt.index+pt.length}:{start:-1,end:-1}):bt?{start:(pt=Z.c()).anchor.offset,end:pt.focus.offset,path:pt.anchor.path,startpath:pt.anchor.path,endpath:pt.focus.path}:Z.y==="pt"?Z.c():function(){if(W)return{start:-1,end:-1};if(!jr)return{start:-1,end:-1};var mt=Z??V,vt=Ka(mt),Lt=mt.d(),Jt=0,Xt=0,H="",it="";return vt&&vt.rangeInfos[0]&&((H=mt.cc(0))&&(Jt=Lt.indexOf(H)),(it=mt.cc(1))&&(Xt=Lt.indexOf(it))),oo(0,vt),Jt<0&&(Jt=0),it?Xt-=H.length:Xt=Jt,{start:Jt,end:Xt}}(),pt}var Li=!1,Bs=0,fl=1,Bi=2,jc=3,Bl=4,Fl=6,zl=7,Ul=8,Hl=9,yr=!1,ri=null,ql=5e3;function pl(){ri!==null&&n(ri),n(ri),ri=setTimeout(Fs,ql)}function Fs(Z){ri=null,yr&&(P.u(0),lt||(yr=!1),za())}function za(){ri!==null&&(n(ri),ri=null),!jr||$e!==bn||Gn||cr||(Ir=!0,lt?Br():setTimeout(Br,0))}var Ir=!1;function Br(){Ir&&(!jr||$e!==bn||Gn||cr?Ir=!1:(St.mbs.length===1&&(At=!1),Ir=!1,Hi(),lt&&(yr=!1),P.g(),ke(),1<St.mbs.length&&tt.a.g(K)))}var Gn=!1;function Si(){!Gn||Dr()||(No!==null&&(n(No),No=null),n(No),No=setTimeout(Ac,hl))}var No=null,hl=1e4;function Ac(){No=null,Gn&&(Gn=!1,P.k(0),gl())}function gl(){No!==null&&(n(No),No=null),$e!==bn||yr||Ir||(cr=!0,setTimeout(zs,0))}var cr=!1;function zs(){cr=cr&&(!jr||$e!==bn||yr||Ir||(St.mbs.length===1&&(At=!1),Hi(),P.g(),ke(),1<St.mbs.length&&tt.a.g(K)),!1)}function zn(Z){W||(Z!=="a2ia"&&(Dt||Ft||ae||_t?Ja()?(jr||_a()&&!Li&&1<St.mbs.length&&(Hi(),P.g(),ke(),1<St.mbs.length&&tt.a.g(K)),jr=!0):jr&&(_a()&&!Li&&(1<St.mbs.length?zn("a2ia"):P.a(),P.f2(),St.CKPRops=[]),jr=!1):jr=!0),!(lt||$a()||Co())||Z!=="HBP"&&St.mbs.length===1||(va(),n(Ue),lt||bt?Vo():P.b().forEach(function(pt){if(!Ne){var mt=pt.j,vt=pt.d(),Lt=!1;if(vt!==mt&&(Lt=!0,tt.a.i({source:"l"})),Lt){if(Dr())return void pt.e(pt.j,!1);if(Mo&&pt.dmid===1&&pt.j!==""&&vt==="")return pt.e(pt.j),void(Mo=!1);if(pt.y==="rt"&&(Lt=function(Xt){if(_t)return!0;var H=document.createElement("div"),H=(H.innerHTML=Xt,H.innerHTML);return Xt===H||(Xt.length,H.length,H)}(vt),(0,e.default)(Lt)===Le[Vn]&&(pt.e(Lt,!1),vt=Lt)),Lt=Vr(pt,mt,vt),mt=function(Xt){for(var H=0,it=0;it<Xt.length;it++)for(var ct=Xt[it],ut=0;ut<ct.op.length;ut++){var gt=ct.op[ut];switch((0,e.default)(gt)){case Le[un]:case Le[Mn]:break;case Le[Vn]:H+=gt.length;break;default:B("[codoxe]-- pb r="+ei+": len = "+Xt.length+"; sid = "+we.sid,u),Pe(ei)}}return H}(Lt),Wt<mt){var vt=h.now(),Jt=vt-xt;if(Jt<2e3?Zt++:Zt=1,xt=vt,B("[codoxi]- os = "+mt+"; osoti = "+Jt+"; sid = "+we.sid,u),3<Zt||2*re<mt)return pt.e(pt.j,!1),void mo(11)}else Zt=0;pt.j=pt.d(),vt=we.dmid,we.dmid=pt.dmid,qa(Lt),we.dmid=vt}}}),ee=null))}var Mo=!!Qt,ba=null,hs=null,gs=1,Ua=2;function Vr(vt,pt,mt){var vt=function(Xt,H,it){var ct=[];if(H===it)return ct;for(var ut=function($t,le){for(var fe=Lr(Xt.dmid),he=(fe!==0&&$e===bn||(fe=le.length>$t.length?$t.length-1:le.length-1),0),Ee=-1;$t&&le&&he<fe&&he<$t.length&&he<le.length&&$t.charAt(he)===le.charAt(he);)$t.charAt(he)!==ba||At||(Ee=he),$t.charAt(he)===hs&&Ee!=-1&&(Ee=-1),he++;return he=he!=0&&Ee!=-1?Ee:he}(H,it),gt=0,Et=-1;H.charAt(H.length-1-gt)===it.charAt(it.length-1-gt)&>+ut<H.length&>+ut<it.length;)Xt.y==="rt"&&(H.charAt(H.length-1-gt)!==hs||At||(Et=gt),H.charAt(H.length-1-gt)===ba&&Et!=-1&&(Et=-1)),gt++;Xt.y==="rt"&>!=0&&Et!=-1&&(gt=Et);var jt=null,Ct=null;if(H.length!==ut+gt&&(Mt=H.slice(ut,H.length-gt),ct.push(jt={type:Ua,pos:ut,text:Mt})),it.length!==ut+gt&&(Mt=it.slice(ut,it.length-gt),ct.push(Ct={type:gs,pos:ut,text:Mt})),jt&&Ct&&jt.pos===Ct.pos&&jt.text!==" "){if(_t&&(Ct.text.indexOf(0,yt)!==-1||jt.text.indexOf(0,yt)!==-1))return ct[0],ct[1],ct;var Mt=Ct.text.indexOf(jt.text);if(Mt!==-1)return Kt=Ct.text.slice(0,Mt),Mt=Ct.text.slice(Mt+jt.text.length),ct[0],ct[1],ct=[],0<Kt.length&&(ct.push({type:gs,pos:Ct.pos,text:Kt}),ct[ct.length-1]),0<Mt.length&&(ct.push({type:gs,pos:Ct.pos+Kt.length+jt.text.length,text:Mt}),ct[ct.length-1]),ct;var Kt=jt.text.indexOf(Ct.text);if(Kt!==-1)return ct[0],ct[1],ct=[],Mt=jt.text.slice(0,Kt),Kt=jt.text.slice(Kt+Ct.text.length),0<Mt.length&&(ct.push({type:Ua,pos:jt.pos,text:Mt}),ct[ct.length-1]),0<Kt.length&&(ct.push({type:Ua,pos:jt.pos+Ct.text.length,text:Kt}),ct[ct.length-1]),ct}return ct}(vt,pt,mt),Lt=vt;At||(Lt=function(Xt){for(var H,it=[],ct=0,ut=Xt.length;ct<ut;ct++)(H=Xt[ct]).type===gs&&(H.pos===0?it.push({op:[H.text]}):it.push({op:[H.pos,H.text]})),H.type===Ua&&(H.pos===0?it.push({op:[{d:H.text.length,text:H.text}]}):it.push({op:[H.pos,{d:H.text.length,text:H.text}]}));return it}(vt));for(var Jt=0;Jt<Lt.length;Jt++)c(Lt[Jt]);return Lt}function Ha(Z){var pt=[];if(Z.length==0)return pt;if(pt.push(Z.shift()),!At)for(var mt=0;mt<Z.length;mt++){var vt=Z[mt],Lt=pt[pt.length-1];Lt&&Er(Lt,vt)||pt.push(vt)}return pt}function Fr(Z){for(var pt=[],mt=0;mt<Z.length;mt++){var vt={op:Z[mt].op,context:{}};$i(vt),pt.push(vt)}return pt}function qa(Z,pt){c(Z);for(var mt=[],vt=0;vt<Z.length;vt++){var Lt=Z[vt],Jt=mt[mt.length-1];Jt&&!At&&Er(Jt,Lt)||mt.push(Lt)}c(mt);for(var Xt=0;Xt<mt.length;Xt++){var H=mt[Xt];c(H.op),$i(H),ao({op:H.op,context:H.context}),Ji(H),Ui(H,wr())}}var Fn={},Fi=null,zi=0,ms=2;function Ei(Z){if(c(Z),lt){var pt=Z;if(!W){c(pt),c(Hn);var mt,vt,Lt=pt.op;for(mt in Hn)!Hn.hasOwnProperty(mt)||(vt=Hn[mt]).start!=-1&&vt.end!=-1&&we.sid!==mt&&(vt.start=Do(Lt,vt.start,!0),vt.end=Do(Lt,vt.end,!0));$e==bn&&Lo("qjs"),c(Hn)}}if(Z.context){if(Vo(),$e!==bn)return St.CKPLops.push(Z),c(Z),void c(St.CKPLops);ao(Z),Ui(Z,wr())}else{zi++;var Jt,Xt,pt=Z.op,H=Z.inverse,it=[];bt&&(it=Z.ao),JSON.stringify(Fn)==="{}"?(Fn.op=pt,Fn.inverse=H,Fn.ao=it,Fi=wr(),c(Fn)):(c(Fn),bt&&(Fi=(tr(pt[0].dm,Fn.op[0].dm)&&Z.ao[0].data.tn===1&&Fn.ao[0].data.tn===1&&Z.ao[0].key&&(ie.k2t(Z.ao[0].key,Oi)||ie.k2t(Z.ao[0].key,Ti))&&ie.k2k(Fn.ao[0].key,Z.ao[0].key)?(ct=Fn.op[0].do,ut=pt[0].do,Fn.op[0].do=Ga(ct,ut),ie.k2t(Z.ao[0].key,Ti)&&(Jt=Fn.ao[0].text,gt=it[0].text,Xt=!1,(ct[0].tg&&ut[0].tg&&ct[0].tg===ut[0].tg||!ct[0].tg&&!ut[0].tg)&&(Xt=!0),Fn.ao[0].text=Xt?Jt+gt:gt+Jt,c(Fn))):(Vo(),Fn.op=pt,Fn.inverse=H,Fn.ao=it),wr())),lt&&(Fn.op=Ga(Fn.op,pt),Fi=wr(),fr()||(ct=Fn.inverse,ut=H,ct.length!==0&&ut.length!==0&&ct[0].tg&&ut[0].tg&&ct[0].tg>ut[0].tg?(Fn.inverse=Ga(H,Fn.inverse),Fn.inverse):(Xt=zr(Fn.inverse,H,!0),Fn.inverse=Ga(Fn.inverse,Xt))),c(Fn))),gt=zi,((fr()?(c(Fn),0):ms<=gt)||bt&&(1<Z.ao[0].data.tn||!Z.ao[0].key||Z.ao[0].key&&!ie.k2t(Z.ao[0].key,Oi)&&!ie.k2t(Z.ao[0].key,Ti)))&&(c(Fn),Vo())}var ct,ut,gt}function Vo(){if(c(Fn),JSON.stringify(Fn)!=="{}"){n(Ue),yn=0;var Z,pt={};if(bt?pt={op:[{po:Fn.op,ao:Fn.ao}],inverse:Fn.inverse}:(pt={op:Fn.op,inverse:Fn.inverse},c(pt)),$i(pt),zi=0,Fn={},$e!==bn||yr||Ir||Gn||cr)return St.CKPLops.push(pt),c(St.CKPLops);ao(pt),delete pt.inverse,c(pt),lt||Ji(pt),Z=Fi,pt.context.seq,c(pt),Ui(pt,Z)}}function Ui(Z,pt){wa(Z,pt)}function Wn(Z){if(!W||!Z.t||Z.t!="pt"&&Z.t!="sl"){if(Z.cmg){var pt=Z,mt=pt.cmg;if(delete pt.cmg,U||(mt=ai(mt,ge),pt.len),mt.context&&(pt.context=mt.context),mt.op&&(pt.op=mt.op,!U)){var vt=pt,Lt=vt.op;if(Lt.length!==0)if(lt||bt||yo(vt))try{var Jt=x.inflate(vt.op,{to:Le[Vn]});vt.op=JSON.parse(Jt),Jt.length}catch(fe){console.error(fe)}else for(var Xt=0;Xt<Lt.length;Xt++){var H=Lt[Xt];if((0,e.default)(H)===Le[Vn]){H.length;try{Lt[Xt]=x.inflate(H,{to:Le[Vn]})}catch(fe){console.error(fe)}Lt[Xt].length}}}if(mt.cmd&&(pt.cmd=mt.cmd,!U&&pt.cmd.t===kt)){var it=pt.cmd;if(it.spsts!==void 0)for(var ct=0;ct<it.spsts.length;ct++){var ut=it.spsts[ct].spst;ut.length;try{it.spsts[ct].spst=x.inflate(ut,{to:Le[Vn]})}catch(fe){console.error(fe)}it.spsts[ct].spst.length}}}if(Z.so||$e===On||Z.cmd&&Z.cmd.t===be||Z.cmd&&Z.cmd.t==="SMM"||Z.hasOwnProperty("nut")?Z.hasOwnProperty("nut"):((vt=Ca(vt=Z.context.sid))&&(Jt=h.now(),we.sid,vt.activetime,vt.activetime=Jt),W&&(C.activetime=Date.now(),C.activetime)),Z.im){{mt=Z,mt.imo.length;try{var gt=x.inflate(mt.imo,{to:Le[Vn]});gt.length,mt.imo=JSON.parse(gt)}catch(fe){R||console.error(fe)}}{pt=Z;for(var Et=pt.imo,jt=[],Ct=pt.op;0<Ct.length;){var Mt,Kt=Ct.shift();Kt.cr&&Kt.cr=="QJSImage"&&(Mt=Et.shift(),Kt.cr=Mt.xx),jt.push(Kt)}pt.op=jt,delete pt.imo}}(gt=Z).context&>.context.sid===we.sid&>.cmd&>.cmd.t===5&&($t=h.now(),(gn=$t-gt.context.st)<0&&(le=(h.now()-Q)/1e3,R||console.error("[codoxi]-- rtt-roh: t = "+le+"; hbC = "+rr+"; rtt= "+gn+"; priT="+gt.context.st+"; curT="+$t+"; sid="+we.sid),0<Yo&&(B("[codoxi]-- rtt-roh: t = "+le+"; hbC = "+rr+"; rtt= "+gn+"; priT="+gt.context.st+"; curT="+$t+"; sid="+we.sid),E(new Error("reason RTT")),Yo--))),Z.context&&Z.context.sid===we.sid&&yo(Z)?c(Z):(W?Wa(Z):(Ve.push(Z),Ve.length,Ve.length===1&&function fe(he){var Ee,He;Ve.length!=0&&(He=h.now()-ee,jr&&de&&!Gn&&!yr&&$e===bn&&He<_e&&he<Qe?(Ee=_e,n(on),on=setTimeout(function(){fe(he+Ee),on=null},Ee)):(Ve.length,He=Ve.shift(),se&&(ce=!ce),Wa(He),0<Ve.length&&fe(Qe-500)))}(0)),h.now())}var $t,le}function Wa(Z){var pt,mt,vt;if(ce||W||zn("ROH"),Z.to&&we&&(we.rto=Z.to,Z.to),Z.so&<)return(mt=Z).to,dr=mt.to,(vt=mt).so.length,(pt=x.inflate(vt.so,{to:Le[Vn]})).length,vt.so=pt,Ci=mt.so,$e===bn?Va():mt.to;if($e!==On||Z.cmd){if(Z.to&&we&&(Z.context.to=Z.to),!((vt=Z).context.rto!==null&&vt.context.rto<dr&&(vt.context.rto,vt.context.sid,vt.cmd?(vt.cmd.t==5&&(vt.context.CAID=!1),c(vt),0):(vt.context.rto,vt.context.sid,c(vt),1)))){if(Z.cmd)return Z.cmd.t==be&&Z.cmd.gcs&&((pt=Z.cmd.gcs).length,pt=ii(pt),Z.cmd.gcs=pt),Se(Z);mt=Z,Lt={},!bt||mt.t&&mt.t==="sl"?Lt.op=mt.op:(Lt.op=mt.op[0].po,Lt.ao=mt.op[0].ao),Lt.context=mt.context,mt.t&&mt.t==="sl"&&(Lt.t=mt.t),mt.t&&mt.t==="pt"&&(Lt.t=mt.t);var Lt;c(Lt),ce||function(gt){if(yo(gt))return gt.context.sid!==we.sid?(c(gt),W||tt.a.j(K,{coords:gt.op,sid:gt.context.sid})):c(gt);var Xt,H,it,ct,ut,gt=function(Et){c(Et);var jt=Ca(Et.context.sid);if(jt===null)return null;var Ct=jt.tp;if(we.rto=Et.context.to,Et.context.sid===we.sid){if(_o(Et))return c(Et),null;for(var Mt=Ct,Kt=0;Kt<Mt.length;Kt++){var $t=Mt[Kt];if($t.context.sid===Et.context.sid&&$t.context.seq===Et.context.seq&&!qt){$t.context.to=Et.context.to;break}}return null}if(Et.context.cpsop)return c(Et),null;jt.sid,_r(Ct,Et.context.rto),0<Ct.length&&(Et.context.CAID=!1);for(var le,fe=Ea(Ct,Et.context.to),he=0;he<fe;he++)!W&&_o(Et)?$s(Et,Ct[he]):(c(Et),Ct[he],xa(Et,le=Nr(Ct[he])),Ct[he]=le);var Ee=Et;qt||(Ee=Nr(Et));for(var He=fe;He<Ct.length;He++){if(!W&&_o(Et))return $s(Et,Ct[He]),Et;c(Et),c(Ct[He]),xa(Et,Ct[He])}if(!W&&_o(Et))return Et;for(var ye=0;ye<In.length;ye++){if(In[ye].sid!==Ee.context.sid){if(W&&In[ye].sid==we.sid)continue;for(var qe=In[ye].tp,tn=Ea(qe,Ee.context.to),ln=qe.length-1;tn<=ln;ln--)qe.pop();qt||qe.push(Ee);for(var vn=fe;vn<Ct.length;vn++)qe.push(Ct[vn])}if(In[ye].sid===we.sid&&(Dn=In[ye].tp.length-1,Ee.context.nopseq&&Ee.context.undone)){c(Ee);for(var Nn=0;Nn<In[ye].tp.length;Nn++)if(In[ye].tp[Nn].context.sid===Ee.context.sid&&In[ye].tp[Nn].context.seq===Ee.context.nopseq){In[ye].tp[Nn].context.undone=!0,c(In[ye].tp[Nn]);break}}}var Qn=Cr();if(Qn)for(;100<Qn.length;)Qn[99],Qn.shift();return c(Nr(In)),c(Et),Et}(gt);if(gt!=null){if(_o(gt)&&!W)return H=(Xt=gt).context.sid,Hn[H]!==void 0&&(Hn[H]=Xt.op),Co()||$a()?Lo("exe-slop",H):(n(lo),lo=setTimeout(to,1e3));if(gt.op.length!==0){if(W)return Xt=gt,lt?(St.LogEOCount++,H={ops:eo(Xt.op)},(ct=St.SMAGC_CLog.length)==0?(it=m(H),St.SMAGC_CLog.push(it)):St.SMAGC_CLog[ct-1]=St.SMAGC_CLog[ct-1].compose(H),St.LogEOCount,JSON.stringify(St.SMAGC_CLog)):c(Xt);lt||bt||(ut=P.d(gt.context.dmid))&&!ce&&(ut.j=Kr(ut.j,gt.op)),!$a()&&!Co()||ce?(lt?(it={ops:eo(gt.op)},P.s(gt.context.dmid,it)):bt&&(c(gt),ct=ya(Nr(gt)),c(ct),P.s(gt.context.dmid,ct)),gt.context.CAID=!1,St.CKPRops.push(gt),St.CKPRops.length,c(St.CKPRops)):(lt?(c(gt),ho(gt)):bt?(c(gt),xi(gt)):(ut&&oi(ut,gt),ut.y==="rt"&&0<(ut=ra(ut)).length&&((ut=Fr(Ha(ut))[0]).context.cpsop=!0,ut.context.CAID=!1,ut.context.undoable=!1,ao(ut),ut.bc=!0,c(ut),wa(ut))),!yr&>.context.CAID&&(c(gt),Us(wr(),gt.context.caidinfo)))}}}(Lt)}}else c(Z)}var dr=0,Ci=null;function Va(Z){if(Ci!==null){var pt,mt;if(W?(St.LogEOCount=0,St.SMAGC_CLog=[],pt=m(Ci),St.SMAGC_CLog.push(pt),St.LogEOCount,St.SMAGC_CLog):(zn("smsync"),pt={dmid:0,spst:Ci},(mt=[]).push(pt),P.h(mt)),!W){for(var vt in yr&&P.u(0),ri&&clearTimeout(ri),ri=null,Ir=yr=!1,Gn&&P.k(0),No&&clearTimeout(No),No=null,cr=Gn=!1,P.g(),ke(),jr=de=!0,Hn)vt=Hn[vt],vt.start&&(vt.start=-1),vt.end&&(vt.end=-1);lt&&(Fn={},zi=0),clearTimeout(Ue),Ue=null,yn=0}Oo("all"),lt||bt||(V.j=Ci),Ci=null}}var jr=!0;function Co(){return!(!jr||$e!==bn||!de||Gn||cr||yr||Ir)}function $a(){return Li&&$e===bn&&de&&!Gn&&!cr&&!yr&&!Ir}function _a(){return!($e!==bn||!de||Gn||cr||yr||Ir)}function Ja(){var Z=!1,pt=document.activeElement;return _t?P.hf():(j&&j.forEach(function(mt){pt===mt.x&&(Z=!0)}),Z)}function wr(){if(W)return null;var Z=null;return lt||bt?Z=V.getLength():Z=V.j.length,Z}function Us(Z,pt){var mt,vt;W||pt!==void 0&&(mt=(h.now()-Q)/1e3,Z!==pt&&(lt||bt?(B("[codoxe]-- caid: t = "+mt+"; l="+Z+"; r="+pt+"; sid = "+we.sid,u),Pe(12)):(vt=V.j.length)===pt?B("[codoxi]- caid: t = "+mt+"; li="+vt+"le="+Z+" r="+pt+"; sid = "+we.sid,u):(B("[codoxi]-- caid: t = "+mt+"; li="+vt+"le="+Z+" r="+pt+"; sid = "+we.sid,u),Pe(12))))}function Kr(Z,pt){Zr(pt);for(var mt=[],vt=0;vt<pt.length;vt++){var Lt,Jt=pt[vt];switch((0,e.default)(Jt)){case Le[Vn]:mt.push(Jt);break;case Le[Mn]:Z=Z.slice(Jt.d);break;case Le[un]:if(Jt>Z.length)throw Z.length,Lt="[codoxe]-- pb: r="+ds+"; l="+Z.length+"; sid = "+we.sid,Error(Lt);mt.push(Z.slice(0,Jt)),Z=Z.slice(Jt)}}return mt.join("")+Z}function oi(Z,pt){if(we.dmid,Z.y==="rt"&&function(Jt,Xt){if(we.dmid!==Jt.dmid)return we.dmid,Jt.dmid,Jt.e(Jt.j);var H,it,ct;Jt.d();var ut=Ka(Jt),gt=Jt.d(),Et=[];if(ut&&ut.rangeInfos[0]&&(ct=it=null,ut.rangeInfos[0].collapsed?ys(0,gt,it=Jt.cc(0),Et):(it=Jt.cc(0),ct=Jt.cc(1),ys(0,gt,it,Et)&&ys(0,gt,ct,Et)||(Et=[]))),Et.length){var jt=Fr(Ha(Et))[0];if(Array.isArray(Xt))for(var Ct=0;Ct<Xt.length;Ct++)Sa(jt,Xt[Ct]);else Sa(jt,Xt);H=Kr(Jt.j,jt.op),Jt.e(H,!0),oo(0,ut)}else H=Jt.j,Jt.e(H,!0)}(Z,pt),Z.y==="pt"){var mt=Z.c();if(Z.e(Z.j),Array.isArray(pt))for(var vt=0;vt<pt.length;vt++)ci(mt,pt[vt].op);else ci(mt,pt.op);Z.b(mt.start,mt.end)}if(Array.isArray(pt))for(var Lt=0;Lt<pt.length;Lt++)Ji(pt[Lt]);else Ji(pt);V.d()}function ra(Z){var pt=[];if(Z.dmid!==0||ce||Z.y==="pt")return pt;var mt=Z.d(),vt=document.createElement("div"),vt=(vt.innerHTML=Z.j,vt.innerHTML);return mt!==vt&&(Z.j.length,vt.length,mt.length,pt=Vr(Z,vt,mt),Z.j=mt),pt}function ys(Z,pt,mt,vt){if(mt!==null)return pt=pt.indexOf(mt),pt!==-1?(vt.push(pt===0?{op:[mt]}:{op:[pt,mt]}),1):void 0}function Ka(Z){var pt=null;if(!jr)return null;if(Z&&Z.x)try{pt=C.rangy.saveSelection(Z.x)}catch(mt){R||console.error(mt)}return pt}function oo(Z,pt){pt&&C.rangy.restoreSelection(pt,!0)}function wa(Z,pt){if(Dr()&&!Z.bc)throw c(Z),B("[codoxe]-- pb: rv r="+qo+"; sid = "+we.sid,u),new Error("ESTOP RoleVio, errcode = "+qo);Z.op&&0<Z.op.length&&Z.context.seq,c(Z);var H=Z;!U&&V&&H.context&&!yo(H)&&(H.context.dmid||(H.context.dmid=0),mt=P.d(H.context.dmid),vt={},Dr()||W?(vt.start=0,vt.end=0):vt=Di(mt),bt?(H.context.ks=vt.start,H.context.js=vt.end,H.context.pt===null?H.context.pt=[0,0]:H.context.pt=vt.path,H.context.pt1===null?H.context.pt1=[0,0]:H.context.pt1=vt.startpath,H.context.pt2===null?H.context.pt2=[0,0]:H.context.pt2=vt.endpath):lt?(H.context.ks=vt.start,H.context.js=vt.end):(Bn(we.dmid,vt.start),H.context.ks=vt.start,H.context.js=vt.end)),Z.a=ka,Z.to=null,Z.len=null,Z.is=!1,Z.im=!1;var mt=Z;if(!yo(mt)&&!_o(mt)&<&&(c(mt),H=function(Et){for(var jt=[],Ct=Et.op,Mt=[];0<Ct.length;){var Kt,$t=Ct.shift();$t.cr&&$t.cr.image&&$t.cr.image.search(/^data:image/)===0&&(Kt={xx:$t.cr},Mt.push(Kt),$t={cr:"QJSImage"}),jt.push($t)}return Et.op=jt,Mt}(mt),0<H.length)){mt.im=!0,mt.imo=H,H=mt,mt=JSON.stringify(H.imo),mt.length;try{H.imo=x.deflate(mt,{to:Le[Vn]})}catch(Et){R||console.error(Et)}H.imo.length}if(!U&&!cn&&Z.op){var vt=Z,Lt=vt.op;if(Lt.length!==0)if(lt||bt||yo(vt)){c(vt),H=JSON.stringify(vt.op);try{vt.op=x.deflate(H,{to:Le[Vn]})}catch(Et){console.error(Et)}}else for(var Jt=0;Jt<Lt.length;Jt++){var Xt=Lt[Jt];switch((0,e.default)(Xt)){case Le[Mn]:Lt[Jt]={d:Xt.d};break;case Le[Vn]:Xt.length;try{Lt[Jt]=x.deflate(Xt,{to:Le[Vn]})}catch(Et){console.error(Et)}Lt[Jt].length}}}c(Z);var H=Z,it={};if(H.op&&(it.op=H.op,delete H.op),(Co()||$a())&&V&&H.context&&!yo(H)&&(H.context.caidinfo=(lt||bt)&&pt?pt:wr(),H.dos=H.context.caidinfo,H.context.caidinfo,c(H)),H.context&&(it.context=H.context,delete H.context),H.cmd){if(it.cmd=H.cmd,H.cmd.t===kt&&!U){H.is=!0;var ct=it.cmd;if(Nr(ct),ct.spsts!==void 0)for(var ut=0;ut<ct.spsts.length;ut++){var gt=ct.spsts[ut].spst;gt.length;try{ct.spsts[ut].spst=x.deflate(gt,{to:Le[Vn]}),ct.spsts[ut].spst.length}catch(Et){console.error(Et)}}}delete H.cmd,c(H)}H.cmg=it,U?(H.cmg=it,H.len=JSON.stringify(H.cmg).length):(H.cmg=ki(it,ge),H.len=H.cmg.length,H.im&&(H.len=H.len+H.imo.length,H.len)),c(Z),Z.is&&Z.len>je||!Z.is&&Z.len>re?(Z.len,B("[codoxe]-- os(msg): r=10; len="+Z.len+"; sid = "+we.sid,u),Pe(10)):Za(Z)}function oa(Z,pt,mt){var vt=h.now(),Lt={log:{}},Jt=(Lt.log.Type=Z,wr());switch(Z){case zt:Lt.log.TotalTime4Start=vt-k.SMDIvtSt,Lt.log.T4SMD=k.SMDIvtEd-k.SMDIvtSt,Lt.log.T4CLTAftSMD=k.SMConSt-k.SMDIvtEd,Lt.log.T4SMCon=k.SMConEd-k.SMConSt,Lt.log.T4SMSub=k.SMSubEd-k.SMSubSt,Lt.log.T4CLTAftSM=vt-k.SMSubEd,Lt.log.DocSizeatStart=Jt,Lt.log;break;case Tt:Lt.log.TotoalTime4Join=vt-k.SMDJnSt,Lt.log.T4SMD=k.SMDJnEd-k.SMDJnSt,Lt.log.T4CLTAftSMD=k.SMConSt-k.SMDJnEd,Lt.log.T4SMCon=k.SMConEd-k.SMConSt,Lt.log.T4SMSub=k.SMSubEd-k.SMSubSt,Lt.log.T4CLTAftSMSub=k.SMJnSt-k.SMSubEd,Lt.log.T4CKPJn=k.SMJnEd-k.SMJnSt,Lt.log.CoNewCmNum=pt,Lt.log.SesMemNumatJoin=St.mbs.length,Lt.log.DocSizeatJoin=wr(),Lt.log;break;case Rt:Lt.q=!0,Lt.log.Reason4StopbyClient=pt,Lt.log.Reason4StopMatrix=mt,Lt.log.T4CLTLive=k.SMDIvtSt?vt-k.SMDIvtSt:vt-k.SMDJnSt,Ta&&(Lt.log.DocSizeatStop=Jt,Lt.log.SesMemNumatStop=St.mbs.length),Lt.log,c(Lt);break;case Ut:Lt.log.InvalidMb=pt,Lt.log.ExistingMbs=mt}(Z=Lt).a=ka,Z.len=null,ge!=="invalid"?(Z.log=ki(Z.log,ge),Z.len=Z.log.length):Z.len=JSON.stringify(Z.log).length,Z.len>re?(Z.len,B("[codoxe]-- os(log): r=10; len="+Z.len+"; sid = "+we.sid,u),Pe(10)):Za(Z)}function mo(Z){U||(Z!==14&&Z!=16||tt.a.b(K,St.mbs),(Z=Z===1?$e===On?20:21:Z)!==501&&tt.a.e(K,Z))}function Hs(Z,pt){if(!W&&!U){c(St.mbs),tt.a.b(K,St.mbs);for(var mt=[],vt=0;vt<pt.length;vt++)pt[vt].sid!==we.sid&&mt.push(pt[vt]);0<mt.length&&tt.a.e(K,Z,mt)}}function Hi(){var Z=P.b(),pt=[];if(Z.forEach(function(Xt){Xt=function(H){if(lt||bt){c(St.CKPRops),c(St.CKPLops),c(Fn),Vo(),St.CKPLops.length&&(c(St.CKPLops),St.CKPRops.length&&(Gr(St.CKPLops,St.CKPRops),H.dmid,c(St.CKPLops)));for(var it=0;it<St.CKPRops.length;it++)(lt?ho:xi)(St.CKPRops[it]);return St.CKPLops}var ct=[],ut=[],gt=H.d();if(H.dmid,H.k,H.j,H.k!==gt?(ct=Vr(H,H.k,gt),H.k=""):H.dmid,ct.length){gt=Ha(ct),H.dmid,c(ct),c(gt),H.k,H.j,ct=we.dmid,we.dmid=H.dmid,ut=Fr(gt),we.dmid=ct,St.CKPRops.length&&(Gr(ut,St.CKPRops),H.dmid);for(var Et=0;Et<ut.length;Et++)H.j=Kr(H.j,ut[Et].op);H.dmid,H.k,H.d(),H.j}for(var jt=[],Ct=0;Ct<St.CKPRops.length;Ct++){var Mt=St.CKPRops[Ct];Mt.context.dmid===H.dmid&&(jt.push(Mt),H.dmid)}if(jt.length&&(H.dmid,oi(H,jt),H.dmid===V.dmid&&V.y==="rt")&&(gt=ra(V),0<gt.length)){H.dmid;{ct=ut[0];var Kt=gt;if(0<Kt.length){for(var $t=[{op:ct.op}],le=0;le<Kt.length;le++)$t.push(Kt[le]);ct.op=Ha($t)[0].op}}}return H.dmid,H.k,H.d(),H.j,ut}(Xt),pt=pt.concat(Xt)}),Ci===null)if(1<St.mbs.length)for(var mt=0;mt<pt.length;mt++)ao(pt[mt]),lt&&pt[mt].inverse&&(c(pt[mt]),delete pt[mt].inverse),pt[mt].context.rto=we.rto,wr(),pt[mt].context.CAID=!1,c(pt[mt]),pt[mt].context.seq,wa(pt[mt]);else{var vt=pt,Lt="";if(vt.length===0)return;for(var Jt=0;Jt<vt[0].op.length;Jt++)Lt=Lt+Jt+": = "+JSON.stringify(vt[0].op[Jt])+`
|
|
148
|
+
`;return}}function Gr(Z,pt){for(var mt=0;mt<Z.length;mt++)for(var vt=Z[mt],Lt=0;Lt<pt.length;Lt++){var Jt,Xt,H=pt[Lt];lt?function(it,ct){if(!(it.op.length===0||ct.op.length===0)&&!(it.context.dmid!==ct.context.dmid||Nt)){var ut=zr(ct.op,it.op,!1),gt=zr(it.op,ct.op,!0);it.op=ut,ct.op=gt,it.inverse&&it.context.undoable&&(ut=zr(ct.op,it.inverse,!1),it.inverse=ut)}}(vt,H):bt?(Jt=Nr(vt),Xt=vt.op[0],Jt.op=Xt.po,Jt.ao=Xt.ao,jn(Jt,H,!0)):(Xt=H,(Jt=vt).op.length===0||Xt.op.length===0||Jt.context.dmid!==Xt.context.dmid||Nt||(Jt.op=Ar(Jt.op,Xt.op,"B"),Xt.op=Ar(Xt.op,Jt.op,"A")))}}function ii(Z){if(Z!==void 0)try{var pt=x.inflate(Z,{to:Le[Vn]});return pt.length,JSON.parse(pt)}catch(mt){console.error(mt)}}function ki(Z,pt){try{var mt=JSON.stringify(Z),vt=(mt.length,f.encrypt(mt,pt).toString());return vt.length,vt}catch(Lt){return R||console.error("codox_encrypt",Lt),""}}function ai(Z,pt){try{var mt=f.decrypt(Z,pt);return JSON.parse(mt.toString(g.enc.Utf8))}catch(vt){R||console.error("codox_decrypt",vt)}}var Oi=0,Ti=1,si=0,$o=1,qi=2,Pi=3;function xa(Z,pt){var mt,vt,Lt,Jt,Xt;Z.op.length===0||pt.op.length===0||Z.context.dmid!==pt.context.dmid||Nt||(lt?(vt=pt,(mt=Z).op,vt.op,Lt=!(vt.context.to===io||vt.context.to>mt.context.to),Jt=vt.context.to===io||vt.context.to>mt.context.to,Lt=zr(vt.op,mt.op,Lt),Xt=zr(mt.op,vt.op,Jt),mt.op=Lt,vt.op=Xt,vt.inverse&&vt.context.undoable&&(Lt=zr(mt.op,vt.inverse,Jt),vt.inverse=Lt),mt.op,vt.op):bt?jn(Z,pt):(Xt=pt.context.to===io||pt.context.to>Z.context.to?"A":"B",Jt=pt.context.to===io||pt.context.to>Z.context.to?"B":"A",Lt=Ar(Z.op,pt.op,Xt),mt=Ar(pt.op,Z.op,Jt),Z.op=Lt,pt.op=mt))}function Sa(Z,pt){Z.op.length!==0&&(Z.op=Ar(Z.op,pt.op,"B"))}var Vn=0,Mn=1,un=2;function Zr(Z){if(!Array.isArray(Z))throw Error("array is required");for(var pt=null,mt=0;mt<Z.length;mt++){var vt=Z[mt];switch((0,e.default)(vt)){case Le[Mn]:if((0,e.default)(vt.d)===Le[un]&&0<vt.d)break;throw JSON.stringify(vt),Error("invalid Dellen > 0");case Le[Vn]:if(0<vt.length)break;throw Error("invalid Inslen > 0");case Le[un]:if(!(0<vt))throw Error("invalid num <= 0");if((0,e.default)(pt)===Le[un])throw Error("invalid adjnum")}pt=vt}if((0,e.default)(pt)===Le[un])throw Error("invalid ending num")}function Er(Z,pt){return Z.op&&pt.op&&(Z.op=Wi(Z.op,pt.op),1)}function Ar(Z,pt,mt){Zr(Z),Zr(pt);for(var vt=[],Lt=er(vt),Jt=nr(Z),Xt=Jt[0],H=Jt[1],it=!1,ct={},ut=0;ut<pt.length;ut++){var ct=pt[ut],gt=void 0,Et=void 0;switch((0,e.default)(ct)){case Le[un]:for(gt=ct;0<gt;)Lt(Et=Xt(gt,"i")),(0,e.default)(Et)!==Le[Vn]&&(gt-=An(Et));break;case Le[Vn]:var jt,Ct=H(),Mt=ct;(function($t,le,fe,he){if(he={op:he},!(so({op:fe})!=="ii"||so(he)!=="ii")&&(0,e.default)($t)===Le[Vn]&&(0,e.default)(le)===Le[Vn]&&2<=$t.length&&$t[0]==="<"&&$t[$t.length-1]===">"&&2<=le.length&&le[0]==="<"&&le[le.length-1]===">"&&(fe=$t.match(/</g),he=le.match(/</g),fe.length===1&&he.length===1))return 1})(Ct,Mt,Z,pt)?3<=Ct.length&&Ct[1]==="/"&&3<=Mt.length&&Mt[1]==="/"?(Ct=pt[ut-1],((jt=Z[ut-1])<Ct||jt===Ct&&!it)&&Lt(Xt(-1))):(jt=pt[ut+1],Ct=Z[ut+1],(((0,e.default)(Ct)!==Le[un]||(0,e.default)(jt)!==Le[un])&&mt==="B"||jt<Ct||Ct===jt&&mt==="B")&&(it=!0,Lt(Xt(-1)))):mt==="B"&&(0,e.default)(Ct)===Le[Vn]&&Lt(Xt(-1)),Lt(Mt.length);break;case Le[Mn]:for(gt=ct.d;0<gt;)switch(Et=Xt(gt,"i"),(0,e.default)(Et)){case Le[un]:gt-=Et;break;case Le[Vn]:Lt(Et);break;case Le[Mn]:gt-=Et.d}}}for(;ct=Xt(-1);)Lt(ct);return Vi(vt)}function Wi(Z,pt){Zr(Z),Zr(pt);for(var mt=[],vt=er(mt),Lt=nr(Z)[0],Jt={},Xt=0;Xt<pt.length;Xt++){var Jt=pt[Xt],H=void 0,it=void 0;switch((0,e.default)(Jt)){case Le[un]:for(H=Jt;0<H;)vt(it=Lt(H,"d")),(0,e.default)(it)!==Le[Mn]&&(H-=An(it));break;case Le[Vn]:vt(Jt);break;case Le[Mn]:for(H=Jt.d;0<H;)switch(it=Lt(H,"d"),(0,e.default)(it)){case Le[un]:Jt.text&&!Nt?vt({d:it,text:Jt.text}):vt({d:it}),H-=it;break;case Le[Vn]:H-=it.length;break;case Le[Mn]:vt(it)}}}for(;Jt=Lt(-1);)vt(Jt);return Vi(mt)}function er(Z){return function(pt){if(pt&&pt.d!==0)return Z.length!==0&&(0,e.default)(pt)===(0,e.default)(Z[Z.length-1])?((0,e.default)(pt)===Le[Mn]?(Z[Z.length-1].d+=pt.d,Z[Z.length-1].text&&!Nt&&(Z[Z.length-1].text+=pt.text)):Z[Z.length-1]+=pt,Z[Z.length-1]):(Z.push(pt),Z)}}function nr(Z){var pt=0,mt=0;return[function(vt,Lt){var Jt;if(pt===Z.length)return vt===-1?null:vt;var Xt,H=Z[pt];return(0,e.default)(H)===Le[un]?Xt=vt===-1||H-mt<=vt?(Jt=H-mt,++pt,mt=0,Jt):(mt+=vt,vt):(0,e.default)(H)===Le[Vn]?Xt=(vt===-1||Lt==="i"||H.length-mt<=vt?(Jt=H.slice(mt),++pt,mt=0):(Jt=H.slice(mt,mt+vt),mt+=vt),Jt):(0,e.default)(H)===Le[Mn]?Xt=vt===-1||Lt==="d"||H.d-mt<=vt?(Jt=H.text&&!Nt?{d:H.d-mt,text:H.text.slice(mt)}:{d:H.d-mt},++pt,mt=0,Jt):(Lt=H.text&&!Nt?{d:vt,text:H.text.slice(mt,mt+vt)}:{d:vt},mt+=vt,Lt):(0,e.default)(H),Xt},function(){return Z[pt]}]}function An(Z){return(0,e.default)(Z)===Le[un]?Z:Z.length||Z.d}function Vi(Z){return 0<Z.length&&(0,e.default)(Z[Z.length-1])===Le[un]&&Z.pop(),Z}function Ga(Z,pt){for(var mt,vt,Lt,Jt,Xt=ji(Z),H=ji(pt),it=[];!It&&(Xt.a()||H.a());)H.e()==="cr"?To(it,H.b()):It||Xt.e()!=="sc"?(Jt=Math.min(Xt.d(),H.d()),mt=Xt.b(Jt),vt=H.b(Jt),It||(0,e.default)(vt.tg)!==Le[un]?(0,e.default)(vt.sc)===Le[un]&&(0,e.default)(mt.tg)===Le[un]&&To(it,vt):(Lt={},mt.dm&&(Lt.dm=mt.dm),(0,e.default)(mt.tg)===Le[un]?Lt.tg=Jt:Lt.cr=mt.cr,(Jt=function(ct,ut,gt){(0,e.default)(ct)!==Le[Mn]&&(ct={}),(0,e.default)(ut)!==Le[Mn]&&(ut={});var Et,jt=w(!0,{},ut);for(Et in gt||(jt=Object.keys(jt).reduce(function(Ct,Mt){return jt[Mt]!=null&&(Ct[Mt]=jt[Mt]),Ct},{})),ct)ct[Et]!==void 0&&ut[Et]===void 0&&(jt[Et]=ct[Et]);return 0<Object.keys(jt).length?jt:void 0}(mt.sx,vt.sx,(0,e.default)(mt.tg)===Le[un]))&&(Lt.sx=Jt),To(it,Lt))):To(it,Xt.b());return li(it)}function zr(Z,pt,mt){if(mt=!!mt,(0,e.default)(pt)===Le[un])return Do(Z,pt,mt);for(var vt,Lt,Jt,Xt=ji(Z),H=ji(pt),it=[];Xt.a()||H.a();)Xt.e()!=="cr"||!mt&&H.e()==="cr"?It||H.e()!=="cr"?(Jt=Math.min(Xt.d(),H.d()),vt=Xt.b(Jt),Lt=H.b(Jt),vt.sc||(!It&&Lt.sc?To(it,Lt):qs(it,0,Jt,function(ct,ut,gt){if((0,e.default)(ct)!==Le[Mn])return ut;if((0,e.default)(ut)===Le[Mn])return gt?(gt=Object.keys(ut).reduce(function(Et,jt){return ct[jt]===void 0&&(Et[jt]=ut[jt]),Et},{}),0<Object.keys(gt).length?gt:void 0):ut}(vt.sx,Lt.sx,mt)))):To(it,H.b()):qs(it,Jt=Xt.b(),Xt.f(Jt));return it=li(it)}function qs(Z,pt,mt,vt){mt<=0||(mt={tg:mt},!It&&vt!=null&&(0,e.default)(vt)===Le[Mn]&&0<Object.keys(vt).length&&(mt.sx=vt),To(Z,mt))}function Do(Z,pt,mt){mt=!!mt;for(var vt=ji(Z),Lt=0;vt.a()&&Lt<=pt;){var Jt=vt.d(),Xt=vt.e();vt.b(),It||Xt!=="sc"?(It||Xt!=="cr"||!(Lt<pt)&&mt||(pt+=Jt),Lt+=Jt):pt-=Math.min(Jt,pt-Lt)}return pt}var ur=null;function Ws(Z){var pt=[];if(!It){for(var mt=0;mt<Z.length;mt++){var vt=Z[mt];vt[ur[si]]?pt.push({sc:vt[ur[si]]}):It||!vt[ur[$o]]||vt[ur[Pi]]?vt[ur[$o]]&&vt[ur[Pi]]?pt.push({cr:vt[ur[$o]],sx:vt[ur[Pi]]}):It||!vt[ur[qi]]||vt[ur[Pi]]?vt[ur[qi]]&&vt[ur[Pi]]&&pt.push({tg:vt[ur[qi]],sx:vt[ur[Pi]]}):pt.push({tg:vt[ur[qi]]}):pt.push({cr:vt[ur[$o]]})}return pt}}var In=[],io=null,Jo=null,we={sid:null,seq:0,to:io,rto:Jo,dmid:0};function ao(Z){var pt=Z,pt=Nr(Z);bt&&(Z=pt.op[0],pt.op=Z.po,pt.ao=Z.ao);for(var mt=0;mt<In.length;mt++){var vt=In[mt].tp;vt.push(pt),In[mt].sid===we.sid&&pt.context.undoable&&(Dn=vt.length-1)}c(Nr(In))}function _r(Z,pt){for(;Z.length&&Z[0].context.to!==io&&pt!==Jo&&pt>=Z[0].context.to;)Z[0].context.sid,Z[0].context.to,Z.shift()}function Ea(Z,pt){for(var mt=0;mt<Z.length;mt++)if(Z[mt].context.to==io||Z[mt].context.to>pt)return mt;return Z.length}var Dn=-1;function ko(){var Z,pt,mt,vt=Cr(),Lt=function(ut){if(Dn<0)return null;if(Dn>ut.length-1)return ut.length,null;for(;0<=Dn;){var gt,Et=ut[Dn];if(Et.context.sid===we.sid&&Et.context.undoable)return gt=Et,qt||(gt=Nr(Et)),Et.context.undoable=!1,Et.context.undone=!0,gt;Dn--}return null}(vt);if(Lt===null)return mo(9);if(Lt.op.length!==0){for(var Jt=function(ut,gt){if(!ut.context.undoable)return null;var Et,jt,Ct="A",Mt=ut.op,Kt={op:[]},$t=Kt.op;if(lt)Kt.op=ut.inverse;else if(!bt){for(var le=0;le<Mt.length;le++){var fe=Mt[le];switch((0,e.default)(fe)){case Le[Mn]:var he=fe.text;if(he.length!==0){for(var Ee=-1,He=Nr(ut),ye=void 0,ye=Dn+1;ye<gt.length;ye++){if(gt[ye].context.sid===ut.context.sid){Ee=ye;break}jt=gt[ye],(Et=He).op.length===0||jt.op.length===0||Et.context.dmid!==jt.context.dmid||Nt||(Et.op=Ar(Et.op,jt.op,"B"))}Ee!==-1&&((0,e.default)(He.op[0])===Le[un]&&He.op[0]===gt[ye].op[0]&&so(He)==="d"||(0,e.default)(He.op[0])!==Le[un]&&so(He)==="d")&&(gt[ye],Ct="B"),$t.push(he)}break;case Le[Vn]:$t.push({d:fe.length,text:fe});break;case Le[un]:0<$t.length&&(0,e.default)($t[$t.length-1])===Le[un]?($t[$t.length-1],$t[$t.length-1]+=fe):$t.push(fe)}}Vi($t)}return $i(Kt),Kt.context.dmid=ut.context.dmid,Kt.context.undoable=!1,Kt.context.undone=!0,Kt.context.nopseq=ut.context.seq,Kt.context.dir=Ct,c(Kt),Kt}(Lt,vt),Xt=Nr(Jt),H=[],it=Dn+1;it<vt.length;it++)if(!vt[it].context.undone||function(ut,gt){var Et=Cr(),jt=Et[ut];if(jt.context.undone&&jt.context.sid!==we.sid){for(var Ct=ut+1;Ct<Et.length;Ct++){var Mt=Et[Ct];if(Mt.context.undone&&Mt.context.nopseq&&jt.context.sid===Mt.context.sid&&jt.context.seq===Mt.context.nopseq)return}if(jt.context.nopseq)for(var Kt=0;Kt<gt.length;Kt++){var $t=gt[Kt];if(jt.context.sid===$t.context.sid&&jt.context.nopseq===$t.context.seq)return}return 1}}(it,H)?(c(vt[it]),Z=Jt,pt=vt[it],mt=void 0,Z.op.length===0||pt.op.length===0||Z.context.dmid!=pt.context.dmid||Nt||(lt?(mt=Z.context.dir==="A",Z.op=zr(pt.op,Z.op,mt)):bt||(Z.op=Ar(Z.op,pt.op,Z.context.dir)))):(H.push(vt[it]),H.length,vt[it]),Jt.op.length===0)return vt[it];if(lt)Lt={ops:eo(Jt.op)},V.updateContents(Lt),Ei(Jt);else if(!bt&&(Lt=function(ut,gt){var Et=P.d(ut.context.dmid);if(Et){var jt=so(gt);switch(jt){case"dd":if(so(ut)==="d"){var Ct=ut.op[ut.op.length-1].text,Mt=Re(gt),Kt=gt.op[gt.op.length-1].text;if(Ct===Kt)return vs(Et,gt,ut)===null&&(ut.op=[]),c(ut),ut;if(Ct===Mt)return ut.op=[],c(ut),ut}break;case"di":switch(Kt=so(ut),Kt){case"di":var $t=gt.op[gt.op.length-1],le=ut.op[ut.op.length-1],he=Re(gt),fe=Re(ut),he=he.indexOf(fe);if($t===le&&0<he)return ut.op=[],c(ut),ut;break;case"i":if(fe=Re(gt),fe.indexOf("<")===0&&(Et.j,$t=ut.op[ut.op.length-1],$t===gt.op[gt.op.length-1]))return JSON.stringify(ut),vs(Et,gt,ut)===null&&(ut.op=[]),c(ut),ut}}}else c(ut.context.dmid);return c(ut.op),ut}(Jt,Xt),Lt.op.length!==0))if(function(ut){var gt=P.d(ut.context.dmid);if(gt){var Et=gt.j;if(so(ut)==="d"){var Ct=Re(ut),jt=(0,e.default)(ut.op[0])===Le[un]?ut.op[0]:0,Ct=Et.indexOf(Ct,jt);if(Ct!==jt)return}return function(Mt,Kt){Zr(Kt);for(var $t="",le=Mt.j,fe=0,he=0;he<Kt.length;he++){var Ee=Kt[he];switch((0,e.default)(Ee)){case Le[Vn]:$t+=Ee;break;case Le[Mn]:if((fe+=Ee.d)>le.length)return le.length,!1;break;case Le[un]:if(fe+Ee>le.length)return le.length,!1;$t+=le.slice(fe,fe+Ee),fe+=Ee}}return $t+=le.slice(fe),Mt.j=$t,!0}(gt,ut.op)?(Ct=P.d(ut.context.dmid).y,Ct==="rt"&&!function(Mt){if(_t)return!0;var Kt=document.createElement("div"),Kt=(Kt.innerHTML=Mt,Kt.innerHTML);return Kt===Mt||(Mt.length,Kt.length,!1)}(gt.j)?(gt.j=Et,0):(oi(gt,ut),1)):void 0}return c(ut.context.dmid),0}(Lt))ao(Lt),wa(Lt);else for(var ct=0;ct<vt.length;ct++)vt[ct].context.sid===we.sid&&vt[ct].context.dmid===Xt.context.dmid&&vt[ct].context.undoable&&(vt[ct].context.undoable=!1,vt[ct])}}function vs(Z,pt,mt){for(var vt=Re(pt),Lt=Z.j,Jt=[],Xt=Lt.indexOf(vt);Xt!==-1;Xt=Lt.indexOf(vt,Xt+1))Jt.push(Xt);for(var H=(0,e.default)(mt.op[0])===Le[un]?mt.op[0]:0,it=-1,ct=Jt.length-1;0<=ct;ct--)if(Jt[ct]<=H){it=Jt[ct];break}if(it!==-1){var ut=it===0?[{d:vt.length,text:vt}]:[it,{d:vt.length,text:vt}],gt=it===H?it:H-vt.length,Z=so(mt);switch(Z){case"d":case"i":var Et,jt=(0,e.default)(mt.op[0])===Le[un]?mt.op[1]:mt.op[0],jt=((Et=pt.op).length===2||Et.length===3&&(0,e.default)(Et[0])===Le[un]?gt=it:Et.length===3&&((0,e.default)(Et[0]),Le[un]),Et=gt===0?[jt]:[gt,jt],c(ut),c(Et),Wi(ut,Et));return mt.op=jt,c(mt.op),mt;default:return null}}return c(Jt),null}function Re(Z){return((0,e.default)(Z.op[0])===Le[un]?Z.op[1]:Z.op[0]).text}function so(Z){for(var pt=Z.op,mt=0,vt=null,Lt=null,Jt=0;Jt<pt.length;Jt++){var Xt=pt[Jt];switch((0,e.default)(Xt)){case Le[Mn]:if(mt===0&&Jt===0&&pt.length===1||mt===1&&Jt===1&&pt.length===2)return c(Z),"d";mt===0&&Jt===0&&1<pt.length||mt===1&&Jt===1&&2<pt.length?vt="d":(mt===0&&Jt===1&&1<pt.length||mt===1&&Jt===2&&2<pt.length||mt===2&&Jt===3&&3<pt.length)&&(Lt="d");break;case Le[Vn]:if(mt===0&&Jt===0&&pt.length===1||mt===1&&Jt===1&&pt.length===2)return"i";mt===0&&Jt===0&&1<pt.length||mt===1&&Jt===1&&2<pt.length?vt="i":(mt===0&&Jt===1&&1<pt.length||mt===1&&Jt===2&&2<pt.length||mt===2&&Jt===3&&3<pt.length)&&(Lt="i");break;case Le[un]:mt++}}var H="non-regular";return pt.length-mt==2&&(vt==="d"&&Lt==="d"?H="dd":vt==="i"&&Lt==="d"?H="id":vt==="i"&&Lt==="i"?H="ii":vt==="d"&&Lt==="i"?H="di":c(Z)),H}function $i(Z){Z.context={sid:we.sid,seq:we.seq++,rto:we.rto,to:we.to,CAID:!0,dmid:we.dmid,pub:de,undoable:!0}}function Ko(Z){for(var pt=function(Lt,Jt){for(var Xt=[],H=0;H<Jt.length;H++){var it=Jt[H];(function(ct,ut){for(var gt=0;gt<ut.length;gt++)if(ct.sid==ut[gt].sid)return 1})(it,Lt)?c(it):Xt.push(it)}return Xt}(In,Z),mt=0;mt<pt.length;mt++){var vt=new Vs(pt[mt].sid);In.push(vt)}In.length,c(pt)}function Oo(Z){if(Z==="all")for(var pt=0;pt<In.length;pt++)In[pt].tp=[];else for(var mt=0;mt<In.length;mt++)if(In[mt].sid===Z){In[mt].tp=[];break}}function Ca(Z){for(var pt=In.length,mt=0;mt<pt;mt++)if(In[mt].sid===Z)return In[mt];return null}function Vs(Z){this.sid=Z,this.tp=[],this.rto=Jo,this.activetime=h.now()}function Cr(){for(var Z=0;Z<In.length;Z++)if(In[Z].sid===we.sid)return In[Z].tp}var rr=0;function li(Z){var pt=Z[Z.length-1];return pt&&pt.tg&&!pt.sx&&Z.pop(),Z}function To(Z,pt){var mt=Z.length,vt=Z[mt-1];if(pt=w(!0,{},pt),(0,e.default)(vt)===Le[Mn]){if((0,e.default)(pt.sc)===Le[un]&&(0,e.default)(vt.sc)===Le[un])return Z[mt-1].sc=vt.sc+pt.sc,Z;if((0,e.default)(vt.sc)===Le[un]&&pt.cr!=null&&(vt=Z[--mt-1],(0,e.default)(vt)!==Le[Mn]))return Z.unshift(pt),Z;if(O(pt.sx,vt.sx)){if((0,e.default)(pt.cr)===Le[Vn]&&(0,e.default)(vt.cr)===Le[Vn])return Z[mt-1].cr=vt.cr+pt.cr,(0,e.default)(pt.sx)===Le[Mn]&&(Z[mt-1].sx=pt.sx),Z;if((0,e.default)(pt.tg)===Le[un]&&(0,e.default)(vt.tg)===Le[un])return Z[mt-1].tg=vt.tg+pt.tg,(0,e.default)(pt.sx)===Le[Mn]&&(Z[mt-1].sx=pt.sx),Z}}return mt===Z.length?Z.push(pt):Z.splice(mt,0,pt),Z}function ji(Z){function pt(Jt){return(0,e.default)(Jt.sc)===Le[un]?Jt.sc:(0,e.default)(Jt.tg)===Le[un]?Jt.tg:(0,e.default)(Jt.cr)===Le[Vn]?Jt.cr.length:1}function mt(){return Z[vt]?pt(Z[vt])-Lt:1/0}var vt=0,Lt=0;return{a:function(){return mt()<1/0},b:function(Jt){Jt=Jt||1/0;var Xt=Z[vt];if(Xt){var H=Lt,it=pt(Xt);return it-H<=Jt?(Jt=it-H,vt+=1,Lt=0):Lt+=Jt,(0,e.default)(Xt.sc)===Le[un]?((it=Nr(Xt)).sc=Jt,it):(it=Nr(Xt),(0,e.default)(Xt.tg)===Le[un]?it.tg=Jt:(0,e.default)(Xt.cr)===Le[Vn]?it.cr=Xt.cr.substr(H,Jt):it.cr=Xt.cr,it)}return{tg:1/0}},c:function(){return Z[vt]},d:mt,e:function(){return Z[vt]?(0,e.default)(Z[vt].sc)===Le[un]?"sc":(0,e.default)(Z[vt].tg)===Le[un]?"tg":"cr":"tg"},f:pt}}var Hn={};function ml(Z){c(Hn);for(var pt=0;pt<Z.length;pt++){var mt=Z[pt];Hn[mt]&&delete Hn[mt]}c(Hn)}function Ji(Z){if($e===bn){if(W)return null;var pt,mt=Z.op;if(bt&&Z.context.sid===we.sid&&Z.op.length!==0&&(mt=Z.op[0].po),Z.context.dmid!==0)lt||bt||(pt=Lr(Z.context.dmid),pt=Z.context.sid===we.sid?((0,e.default)(mt[0])===Le[un]&&mt[0]!==pt&&(pt=mt[0],mt[0]),Bo(pt,mt,"A")):Bo(pt,mt,"B"),Bn(Z.context.dmid,pt));else{for(var vt in Hn){var Lt,Jt,Xt=Hn[vt];lt?(c(Z),Z.context.sid!==vt?(Xt.start=Do(mt,Xt.start,!0),Xt.end=Do(mt,Xt.end,!0)):Z.op.length!==0?(c(Z),Xt.start=Do(mt,Xt.start,!1),Xt.end=Do(mt,Xt.end,!1)):(Xt.start=Z.context.ks,Xt.end=Z.context.js,c(Xt))):bt?Z.context.sid!==vt?(Lt={pos:Xt.start,path:Xt.startpath},Jt={pos:Xt.end,path:Xt.endpath},Rn(mt,Lt,!0),Rn(mt,Jt,!0),Xt.start=Lt.pos,Xt.end=Jt.pos,Xt.path=Lt.path):(Xt.start=Z.context.ks,Xt.end=Z.context.js,Xt.path=Z.context.pt,Xt.startpath=Z.context.pt1,Xt.endpath=Z.context.pt2):(vt===Z.context.sid&&((0,e.default)(mt[0])===Le[un]&&mt[0]!==Xt.start&&(Xt.start=mt[0],mt[0],n(wn),wn=setTimeout(function(){Lo("timer")},ir)),(0,e.default)(mt[0])===Le[un]&&mt[0]!==Xt.end&&(Xt.end=mt[0],mt[0])),vt===Z.context.sid?(Xt.start=Z.context.ks,Xt.end=Z.context.js):(Xt.start=Bo(Xt.start,mt,"B"),Xt.end=Bo(Xt.end,mt,"B")),Jt=Lr(Z.context.dmid),Jt=Z.context.sid===we.sid?Bo(Jt,mt,"A"):Bo(Jt,mt,"B"),Bn(Z.context.dmid,Jt))}Z.context.sid!==we.sid?0<mt.length?Lo("rop",Z.context.sid):Lo("rop"):(n(wn),wn=setTimeout(function(){Lo("timer"),wn=null},ir))}}}var ir=100;function Lo(Z,pt){if(!W&&!Gn&&(jr||Li)){var mt=JSON.stringify(Hn);if(Z&&Z=="timer"||n(wn),mt!=="{}"){var vt,Lt=Nr(Hn);for(vt in Lt){var Jt=Lt[vt];Jt.start==-1&&(Jt.update=!0)}if(c(Lt),pt&&pt!==we.sid&&Lt[pt]&&(Lt[pt].update=!0),c(Lt),lt)V&&(Z=V.Q(Lt),c(Lt),tt.a.c(K,Z));else if(bt)mt=V.S(Lt),tt.a.c(K,mt);else if(V.y==="pt")pt=V.g(Lt),tt.a.d(K,pt);else{if(!jr&&!Li||Gn||yr||cr||Ir)return;Z=function(Xt){for(var H=document.activeElement,it=we.dmid,ct=(!ce&&(Ft||Dt||ae)&&it!==V.dmid&&V.x.focus(),Ka(V)),ut=V.d(),gt=V,Et=gt.j,jt="",Ct=function(fe){var he,Ee=[];for(he in fe){var He={};He.pos=fe[he].start,He.end=!1,He.sid=he,Ee.push(He),fe[he].start!==fe[he].end&&((He={}).pos=fe[he].end,He.end=!0,He.sid=he,Ee.push(He))}return Ee.sort(function(ye,qe){return ye.pos-qe.pos})}(Xt),Mt=0,Kt=0;Kt<Ct.length;Kt++){var $t=Ct[Kt].pos,le=function(fe,he){if(typeof document>"u")return"";{var Ee;We||(Ee=he.sid,he.end?fe.innerHTML=Ge+Ee+"_end"+Te:fe.innerHTML=Ge+Ee+Te)}return fe.innerHTML}(gt.i(),Ct[Kt]);0<$t&&(jt=jt+Et.slice(Mt,$t)+le,Mt=$t)}return jt+=Et.slice(Mt),gt.e(jt),Xt=V.f(Gt,Xt),V.e(ut),oo(0,ct),(Ft||Dt||ae)&&H&&it!==V.dmid&&H.focus(),Xt}(Lt),tt.a.c(K,Z)}}}}function _o(Z){return Z.t&&Z.t==="sl"}function yo(Z){return Z.t&&Z.t==="pt"}var sr="cdxpos";function Bo(Z,pt,mt){return Z<0?Z:(Z=Ar(Z===0?[sr]:[Z,sr],pt,mt),pt=Z[0],pt=Z.length===1?0:pt)}function ci(Z,pt){Z.start=Bo(Z.start,pt,"A"),Z.end=Bo(Z.end,pt,"A")}function $s(Z,pt){var mt,vt,Lt;Z.context.dmid!==pt.context.dmid||Nt||(lt?(Lt=!(pt.context.to===io||pt.context.to>Z.context.to),Z.op.start=Do(pt.op,Z.op.start,Lt),Z.op.end=Do(pt.op,Z.op.end,Lt)):bt?(Lt=!(pt.context.to===io||pt.context.to>Z.context.to),mt={pos:Z.op.start,path:Z.op.startpath},vt={pos:Z.op.end,path:Z.op.endpath},Rn(pt.op,mt,Lt),Rn(pt.op,vt,Lt),Z.op.start=mt.pos,Z.op.end=vt.pos,Z.op.path=mt.path):(Lt=pt.context.to===io||pt.context.to>Z.context.to?"A":"B",Z.op.start=Bo(Z.op.start,pt.op,Lt),Z.op.end=Bo(Z.op.end,pt.op,Lt)))}var lo=null;function to(){lo=Co()||$a()?(Lo("missed-cr"),null):(n(lo),setTimeout(to,1e3))}function eo(Z){var pt=[];if(!It){for(var mt=0;mt<Z.length;mt++){var vt=Z[mt],Lt=null;vt.sc?((Lt={})[ur[si]]=vt.sc,pt.push(Lt)):!vt.cr||vt.sx?vt.cr&&vt.sx?((Lt={})[ur[$o]]=vt.cr,Lt[ur[Pi]]=vt.sx,pt.push(Lt)):!vt.tg||vt.sx?vt.tg&&vt.sx&&((Lt={})[ur[qi]]=vt.tg,Lt[ur[Pi]]=vt.sx,pt.push(Lt)):((Lt={})[ur[qi]]=vt.tg,pt.push(Lt)):((Lt={})[ur[$o]]=vt.cr,pt.push(Lt))}return pt}}var ka=3,Go=2,Yo=2;function ui(Z){var pt;0<Go&&(pt=(h.now()-Q)/1e3,B("[codoxi]- abmsg: #"+Z+"; t = "+pt+"; hbc = "+rr,u),Go--)}M&&(M.onmessage=function(Z){if($e!==Xe){var pt=(h.now()-Q)/1e3;if(Z==null)return R||console.error("[codoxi]- ome1: t = "+pt+"; hbc = "+rr+"; sid = "+we.sid),void B("[codoxi]- ome1: t = "+pt+"; hbc = "+rr+"; sid = "+we.sid,u);if(Z&&Z.data){var mt=Z.data;try{if(typeof mt=="string")try{mt=JSON.parse(mt)}catch(ut){console.error(ut)}var vt,Lt,Jt=mt,Xt=(h.now()-Q)/1e3;if(vt=Jt,Lt=(h.now()-Q)/1e3,vt.a?vt.a===Oa||(R||console.error("[codoxi]- nemsg: t = "+Lt+"; hbc = "+rr+"; sid = "+we.sid+"; unexpected msg = ",vt),B("[codoxi]- nemsg: t = "+Lt+"; hbc = "+rr+"; sid = "+we.sid,u),0):(R||console.error("[codoxi]- ivmsg: t = "+Lt+"; hbc = "+rr+"; sid = "+we.sid+"; missing msg.a, invalidmsg = ",vt),B("[codoxi]- ivmsg: t = "+Lt+"; hbc = "+rr+"; sid = "+we.sid,u),0))switch(Jt.a){case 1:if(typeof Jt.caid!="string")throw new Error("Invalid client id");k.SMSubSt=k.SMConEd=h.now(),we.sid=Jt.caid,we.sid,(H={}).sid=we.sid,H.pub=de,H.userinfo=Object.assign({},tt.user),H.userinfo.founder=ot,H.userinfo.role=ht,H.userinfo.jointime=new Date,N=H;var H=Jt;if(!H.ccva||!H.smv)throw new Error("ESTOP CV = ".concat(5,"; and the connected SMV = ").concat(I," does not support SMA-SSC"));Gi=H.ccva,I=H.smv;for(var it=!1,ct=0;ct<Gi.length;ct++)if(Math.trunc(5)==Gi[ct]){it=!0;break}if(!it)throw new Error("ESTOP Incompatible CV = ".concat(5," is not a member of CCVA = ").concat(Gi," and SMV = ").concat(I," "));"codox_handleMessage: Client and SM are compatible: codoxClientV = ".concat(5," is a member of ccva = ").concat(Gi,"; codoxSMVersion = ").concat(I),H=(h.now()-Q)/1e3,B("[codoxi]* ssub, t = "+H+"; seid = "+L.sid+"; sid = "+we.sid,u),fn=h.now(),function(){var Mt=tt.waveid,Kt=tt.user,ut=tt.subid,gt=tt.mid,Et=(tt.sub,tt.token,tt.url),jt=tt.docId,Ct=tt.prevAid,Mt={a:2,c:F,d:z,bv:Y,v:5,u:{memberinfo:N,waveid:Mt,username:Kt&&Kt.name,sysinfo:rt,f:ot,any:T,subid:ut,mid:gt,paid:Ct||"First",v:{token:tt.token},u:Et,d:jt,tabId:l()}},Kt=(Mt.u.subid,Mt.u.mid,Mt.u.mu,Mt.cmm=function(){for(var $t,le="";le.length<36;)le+=($t=Math.floor(62*Math.random()))<10?$t:$t<36?String.fromCharCode($t+55):String.fromCharCode($t+61);return le}(),Mt.gcs=F=="quilljs"?V.getContents():(P.a(),P.e()),Mt);if(Nr(Kt),Kt.gcs!==void 0){ut=JSON.stringify(Kt.gcs);try{Kt.gcs=x.deflate(ut,{to:"string"})}catch($t){console.error($t)}Kt.gcs.length}if(gt=Mt.gcs.length,5e7<=gt)return console.error("codox_sendSubscribe2SM: oversize init GCS = "+gt),B("[codoxe]-- osgcs: r=10; len="+gt+"; sid = "+we.sid),Pe(10);Vt=Mt.cmm,c(Mt),Za(Mt)}(),n(Ki),Ki=setTimeout(function(){var ut=(h.now()-Q)/1e3;B("[codoxe]-- subf(t), r=13; t = "+ut+"; sid = "+we&&we.sid,u),$e!==Xe?Pe(13):B("[codoxe]-- subf(ts), t = "+Xt+"; sid = "+we&&we.sid,u)},bs),Oa=2;break;case 2:k.SMSubEd=h.now(),H=h.now(),(gn=H-fn)<0&&(R||console.error("[codoxi]-- rtt-sub: t = "+Xt+"; hbC = "+rr+"; rtt= "+gn+"; priT="+k.SMSubSt+"; curT="+k.SMSubEd+"; sid="+we.sid),0<Yo&&(B("[codoxi]-- rtt-sub: t = "+Xt+"; hbC = "+rr+"; rtt= "+gn+"; priT="+k.SMSubSt+"; curT="+k.SMSubEd+"; sid="+we.sid),E(new Error("reason RTT")),Yo--)),n(Ki),function(ut){fi=!0;var gt=ai(ut.data,Vt);if(!ut.data||!gt)return B("[codoxe] subf(sm): r=13; sid = "+we.sid,u),Pe(13);if(gt.y){if(gt.ok===void 0||gt.amm===void 0||gt.cak===void 0||gt.f===void 0||gt.r===void 0)return B("[codoxe] subf(o): r=13; sid = "+we.sid,u),Pe(13);se=gt.ok,At=se,ge=gt.amm,De=gt.cak,ot=gt.f,gt.r!==ht&>.r,gt.v&&(I=gt.v),gt.bgc&>.bgc,Ta=!0;var Et=(h.now()-Q)/1e3,Et=(B("[codoxi]* subs: t = "+Et+"; f = "+ot+"; SMV="+I+"; sid = "+we.sid,u),$("smVersion",I),ut),ut=(me=It=We=Ye=cn=se,null);xr(ut=Et.ivs?ai(Et.ivs,Vt):ut),(Yt=new r({codoxwave:C,codoxApp:tt,codoxStartCb:at,codoxContext:we,codoxDomains:P,codoxMainDomain:V,codoxMyMemberinfo:N,localInitDocState:q,codoxLogger:k,codoxTestMode:U,codoxCMDOBF:cn,buildVer:Y,SMAGClient:W})).in(Et),Wr(ut),uo(ut),P.a(),ni[0]=ue?{pos:80}:_t?{pos:48}:{pos:-1};for(var jt=1;jt<5;jt++)ni[jt]={pos:-1};return ot&&($e=bn,$n=!0,St.mbs.push(N),Ko(St.mbs),P.f2(),mo(14),oa(zt),kn(),!U&&at&&at(we.sid),Et=(h.now()-Q)/1e3,B("[codoxi]* jnd1: t = "+Et+"; s="+$e+"; ss="+St.mbs.length+"; sid = "+we.sid,u)),we.sid}di=gt.sem,ut=gt.rs===di[_s]||gt.rs===di[Js]||gt.rs===di[Wl]?24:gt.rs===di[Xa]?25:gt.rs===di[Qa]?600:gt.rs===di[Yi]?700:13,B("[codoxe] subf(ppe): r="+ut+"; sid = "+we.sid,u),Pe(ut)}(Jt),Oa=ka;break;case ka:Wn(Jt);break;default:R||console.error("[codoxi]- udmsg: t = "+Xt+"; hbc = "+rr+"; sid = "+we.sid+"; Unhandled SM message:",Jt),B("[codoxi]- udmsg: t = "+Xt+"; hbc = "+rr+"; sid = "+we.sid,u)}}catch(ut){if(R||console.error("codox_handleMessage: err = ",ut),B("[codoxi]- hme: t = "+pt+"; hbc = "+rr+"; sid = "+we.sid,u),0<=ut.message.search(/^ESTOP/))return void Pe("ESTOP")}}else R||console.error("[codoxi]- ome2: t = "+pt+"; hbc = "+rr+"; sid = "+we.sid+"; errormsg = ",Z),B("[codoxi]- ome2: t = "+pt+"; hbc = "+rr+"; sid = "+we.sid,u)}else ui(3001)});var bs=1e4,Ki=null,Oa=1,Gi=null,Ya=!1,di=(M&&(M.onopen=function(){var Z=(h.now()-Q)/1e3;B("[codoxi]* csm: t = "+Z+"; seid = "+L.sid,u),Ya=!0,n(G)},M.onerror=function(Z){var pt;$e!==Xe?(pt=(h.now()-Q)/1e3,B("[codoxe]- se: r=200; t = "+pt+"; hbc = "+rr+"; sid = "+we&&we.sid,u),Pe(200)):ui(3002)},M.onclose=function(Z){var pt;$e===Xe?ui(3003):(pt=(h.now()-Q)/1e3,B("[codoxe]- sc: t = "+pt+"; hbc = "+rr+"; sid = "+we&&we.sid,u),Pe(1))}),null),_s=0,Js=1,Wl=2,Xa=3,Qa=4,Yi=5,fi=!1,Ta=!1;function Za(Z){var pt=Z,mt=(Ze=h.now(),Z.caid=we.sid,Z.cak=De,Z.d=z,null);if(M){M.canSendJSON||(mt=(Z=JSON.stringify(Z)).length,Z.length);try{if(M.readyState!==1)throw new Error("WebSocket is not in OPEN state.");M.send(Z)}catch(vt){return c(pt),R||console.error(vt),B("[codoxe]- sose: r=100; mslen = "+mt+"; sid = "+we.sid,u),pt.q?E(new Error("SocketSendError in sending STOPPED_LOG, Appid=".concat(F))):Pe(100)}}M.bufferedAmount}function Nr(Z){try{return JSON.parse(JSON.stringify(Z))}catch(pt){R||console.error(pt)}}this.ROH=Wn,this.gcs=function(){var Z={};return Z.clog=Nr(St.SMAGC_CLog[0]),Z.tm=Nr(In),Z.mbs=Nr(St.mbs),Z.ct=Nr(we),Z.build=Y,JSON.stringify(Z.clog),Z},this.gcs4sync=function(){return Nr(St.SMAGC_CLog[0])},this.In4GC=function(Z,pt,mt,vt,Lt,Jt,Xt){C.gca=Jt,we.sid=Jt.gcaid,C.activetime=Date.now(),C.activetime,we.sid,At=Nt=qt=ce=Ne=me=It=We=Ye=cn=vt,Jt=Z.ivs,vt=Z.c2d,xr(Jt),(Yt=new r({codoxwave:C,codoxContext:we,codoxMyMemberinfo:N,codoxTestMode:U,codoxCMDOBF:!1,buildVer:Y,SMAGClient:W})).rin(vt),Wr(Jt),uo(Jt),Z=Lt,Xt||(Z=ii(Lt)),vt=m(Z),St.SMAGC_CLog.push(vt),St.SMAGC_CLog,ge=pt,Ko([mt]),St.mbs.push(mt),$e=bn},this.isgc=function(){return W},this.co=Nr,this.TZ=Pe,this.LOH=function(){for(var Z=arguments.length,pt=new Array(Z),mt=0;mt<Z;mt++)pt[mt]=arguments[mt];var vt,Lt,Jt,Xt,H,it,ct,ut,gt,Et=pt[0],jt=pt[1],Ct=pt[2];if(!W&&(gt=Ct,(ut=jt)!=="pt"&&fr()&&(lt||bt?gt==="e"&&tt.a.i({source:"l",delta:Et}):ut==="e"&&(gt=(ut=P.d(gt)).d(),ut.j!==gt&&(ut.j=gt,tt.a.i({source:"l"})))),$e!==On&&$e!==Xe)){if(Dr())return B("[codoxi]- rv1; sid = "+we.sid,u),ut=Et,gt=jt,H=Ct,void(bt||(lt?H=="e"&&(H=ut,ut=gt,it=V.getContents(),ct=0,H=H.ops[0].retain,it=it.diff(ut,ct=H||ct),V.updateContents(it),V.disable()):gt=="e"&&P.b().forEach(function(Kt){var $t=Kt.j,le=Kt.d();$t!==le&&Kt.e($t,!1)})));if(($e===bn||lt||bt)&&de&&(lt||!(yr||Ir||Gn||cr))||jt==="h2v"||jt==="v2h"){if(jt==="pt")return function(Kt,$t){lt&&fr()||(c($t={t:1<arguments.length&&$t!==void 0?$t:"pt",op:Kt}),$i($t),Ui($t,null))}(Et,jt);if(lt)Lt=jt,Jt=Et.delta,Xt=Et.oldDelta,JSON.stringify(Jt),JSON.stringify(Xt),Lt==="e"?(ut=Jt,H=Xt,tt.a.i({source:"l",delta:ut}),JSON.stringify(ut),JSON.stringify(H),pr?B("[codoxi]-- batom: loh; sid = "+we.sid,u):(ct=ee,ee=h.now(),ct===null&&(n(Ue),Ue=setTimeout(qn,_e),yn=0),ct=V.getContents(),ut.ops[it=0].retain&&(it=ut.ops[0].retain),ct=ct.diff(H,it),we.seq,Ei({op:Ws(ut.ops),inverse:Ws(ct.ops)}),Me=!1)):Lt==="c"?(Me=!0,setTimeout(function(){var Kt,$t;Kt=Jt,$t=Xt,Me&&!pr&&Kt!==null&&($t={start:Kt.index,end:Kt.index+Kt.length},$e===bn&&(zn("qjscmv"),we.dmid=V.dmid,$i($t={t:"sl",op:$t}),Ui($t,wr())),Me=!1)},0)):Lt=="u"?ko():"codox_QJS_LOH: capturing an unexpected evt: delta = ".concat(Jt,", ").concat(Xt,", ").concat(Lt);else if(bt)gt=Et,(ut=jt)==="e"?(tt.a.i({source:"l"}),ma.push(gt),gt.data.n<gt.data.tn||(vt={op:[],ao:ma,inverse:[]},ma=[],En(vt)&&Ei(vt))):ut==="c"?gt.type==="set_selection"&&(vt=gt={start:(vt=V.c()).anchor.offset,end:vt.focus.offset,path:vt.anchor.path,startpath:vt.anchor.path,endpath:vt.focus.path},$e===bn&&vt.start!==null&&vt.end!==null&&vt.path!==null&&(zn("SJScmv"),we.dmid=V.dmid,$i(vt={t:"sl",op:vt}),Ui(vt,wr()))):ut=="u"&&ko();else switch(va(),jt){case"e":if(!Ja())return;var Mt=ee;ee=h.now(),Mt===null&&(n(Ue),Ue=setTimeout(qn,_e),yn=0);break;case"c":if((we.dmid=Ct)===1)return;Me=!0,setTimeout(Qr,0);break;case"u":zn("u"),ko();break;case"r":zn("r"),mo(8);break;case"h2v":(function(){if(!de){if($e!==bn)return de=!0;mo(7),St.mbs.length===1&&(At=!1),Hi(),Ye||(P.g(),ke(),de=!0)}})();break;case"v2h":(function(){if(de){if($e!==bn)return de=!1;mo(6),1<St.mbs.length?zn("v2h"):P.a(),Ye||(P.f2(),St.CKPRops=[],de=!1)}})()}}else St.mbs.length}},this.ime=function(Z){Gn!==Z&&(Dr()?P.k(0):(Gn=Z)?(Si(),tt.a.f(K),!jr||$e!==bn||yr||Ir||(1<St.mbs.length?zn("ime"):P.a(),P.f2(),St.CKPRops=[])):gl())},this.imet=Si,this.uim=function(Z){yr!==Z&&(Dr()?P.u(0):(lt||(yr=Z),Z?(pl(),tt.a.f(K),!jr||$e!==bn||Gn||cr||(1<St.mbs.length?zn("uim"):P.a(),P.f2(),St.CKPRops=[])):za(),lt&&(yr=Z)))},this.uimt=pl,this.gss=function(Z){Kn=Z,Yt.sy()},this.gls=function(){var Z=Pr();return Z},this.lcmm=function(){return Vt},this.dec=ai,this.dtf=zr,this.dtfp=Do,this.lhto=function(){return io},this.qs=Hi,this.lof=zn,this.ssm=wa,this.dssm=Ui,this.wxpm=function(){return!(!jr||!de||Gn||cr||yr||Ir)},this.wxsp=function(){return!(!Li||!de||Gn||cr||yr||Ir)},this.gpm=function(){return de},this.gs=function(){return $e},this.ss=function(Z){$e=Z},this.gqjs=function(){return lt},this.guim=function(){return yr},this.guimf=function(){return Ir},this.sj=function(Z){$n=Z},this.ece=kn,this.dce=function(){n(Ue),(lt||bt)&&(zi=0,Fn={}),Ta&&tt.a.f(K);var Z=(h.now()-Q)/1e3;B("[codoxi]* dco: t = "+Z+"; s="+$e+"; ss="+St.mbs.length+"; sid = "+we.sid,u)},this.pm=Co,this.grcs=function(){return Hn},this.srcs=function(Z){Hn=Z},this.arcs=function(Z){c(Z),c(Hn);for(var pt=0;pt<Z.length;pt++){var mt=Z[pt].sid;mt!==we.sid&&(bt?Hn[mt]={start:-1,end:-1,path:[-1,-1],startpath:[-1,-1],endpath:[-1,-1]}:lt?Hn[mt]={start:-1,end:-1}:_t?Hn[mt]={start:3,end:3}:ae&&(Hn[mt]={start:-1,end:-1}))}c(Hn)},this.narcs=function(Z){c(Z),c(Hn);for(var pt=0;pt<Z.length;pt++){var mt=Z[pt];mt!==we.sid&&(bt?Hn[mt]={start:-1,end:-1,path:[-1,-1],startpath:[-1,-1],endpath:[-1,-1]}:lt?Hn[mt]={start:-1,end:-1}:_t?Hn[mt]={start:3,end:3}:ae&&(Hn[mt]={start:-1,end:-1}))}c(Hn)},this.rrcs=ml,this.urcs=Ji,this.uc=Lo,this.sct=function(Z){we=Z},this.gct=function(){return we},this.gtm=function(){return In},this.stm=function(Z){In=Z},this.naptm=function(Z){for(var pt=0;pt<Z.length;pt++){var mt=new Vs(Z[pt]);In.push(mt)}In.length,c(Z)},this.aptm=Ko,this.rptm=function(Z){for(var pt=In.length;pt--;){var mt=In.shift();mt.sid!==Z&&In.push(mt)}pt<In.length&&In.length},this.gstm=Ca,this.rsptm=Oo,this.gtms=function(){return In.length},this.gctm=function(){if($e===bn){for(var Z=1<In.length,pt=h.now(),mt=In.length,vt=(pt-Q)/1e3;mt--;){var Lt,Jt=In.shift(),Xt=Jt.sid,H=pt-Jt.activetime;dn<=H?(Lt=Ie(St.mbs,Xt),Xt===we.sid||U||(ml([Xt]),Lo("gc"),Hs(19,[Lt])),B("[codoxi]- gc: t = "+vt+"; GCsid = "+Xt+"; idlet = "+H/1e3+"; hbC = "+rr+"; sid = "+we.sid,u)):In.push(Jt)}var it=Cr();if(!it)return B("[codoxe]-- lhf: t = "+vt+"; hbC = "+rr+"; sid = "+we.sid,u),B("stop reason ".concat(2," sid = ").concat(we.sid)),void Pe(2);for(;1e3<it.length;)it.shift();Z&&St.mbs.length===1&&nn()}},this.gcptm=_r,this.gsl=Di,this.gcaid=wr,this.ccaid=Us,this.grtt=function(){return gn},this.srtt=function(Z){gn=Z},this.glst=function(){return Ze},this.nu=mo,this.nsi=Hs,this.nsm=oa,this.fcs=function(Z){var pt=null;Z.success&&(pt=Pr()),Z.state=pt,Kn!==null&&Kn(Z)},this.esync=Va,this.rssmc=function(){Ci=null},this.gsmso=function(){return Ci!=null},this.ihb=function(){return++rr},this.ghb=function(){return rr},this.gwst=function(){return Q},this.dot=zr,this.qjs2cdx=Ws,this.cdx2qjs=eo,this.dop2sm=Ei,this.gop=Vr,this.uspst=Kr,this.udoc=oi,this.tf=Ar,this.gop2sm=qa,this.sop2cop=Ha,this.cop2pop=Fr,this.ocs=fr,this.sr=function(Z){ht=Z},this.gr=function(){return ht}}},{"../domains/api/qjs-util":267,"../env":283,"../logger.js":287,"../util/lib":292,"./dsm.js":289,"./sapa.js":290,"./spot.js":291,"@babel/runtime/helpers/interopRequireDefault":297,"@babel/runtime/helpers/typeof":301,"crypto-js/aes":305,"crypto-js/core":307,"deep-equal":313,extend:315,pako:461,"rangy/lib/rangy-selectionsaverestore":482}],289:[function(o,a,t){var r=o("../util/lib"),e=r.clearTimer,s=r.deepCopy,i=(r.shallowCopy,r.splitComment,r.extractComment,o("./../filters/").shouldFilter),r=o("../logger.js"),l=r.logger,n=r.SentryLevel_H,c=(r.SentryLevel_M,r.SentryLevel_L,o("../domains/api/qjs-util").contentToDelta),d=Date;a.exports=function(yt){var f=yt.codoxwave,g=yt.codoxApp,m=yt.codoxStartCb,h=yt.codoxContext,v=yt.codoxDomains,b=yt.codoxMainDomain,_=yt.codoxMyMemberinfo,R=yt.localInitDocState,x=yt.codoxLogger,w=yt.codoxTestMode,O=yt.codoxCMDOBF,I=yt.buildVer,yt=yt.SMAGClient,L=function(){},M=function(){},yt=(yt||(L=l.addBreadcrumb.bind(l),M=l.reportError.bind(l)),(d.now()-f.gwst())/1e3),A=(L("[codoxi]* dsm: t = "+yt+"; sid = "+h.sid,n),null),k=null,J=null,G=null,U=null,D=null,W=null,Q=null,E=null,B=null,$=null,C=null,N=null,Y=null,tt=null,F=null,z=null,P=null,j=null,V=null,K=null,rt=null,T=null,ot=null,at=null,q=null,ht=null,lt=null,bt=null,_t=null,Dt=null,Ft=null,Qt=null,ue=null,ae=null,se=null,Ne=null,ce=null,qt=null;function Nt(Be){se=Be.tm,Ne=Be.rcs,ce=Be.sc,qt=Be.ut,G=f[se[_e]],U=f[se[ge]],D=f[se[De]],A=f[se[It]],k=f[se[me]],J=f[se[Vt]],$=f[Ne[on]],C=f[Ne[wn]],N=f[Ne[Ve]],W=f[Ne[Ht]],Q=f[Ne[yn]],E=f[Ne[ee]],B=f[Ne[Qe]],Y=f.gtm,tt=f.stm,F=f.sct,z=f.gct,f.narcs,f.naptm,ot=f[ce[kt]],at=f[ce[be]],q=f[ce[de]],ht=f[ce[Ye]],lt=f[ce[cn]],bt=f[ce[We]],P=f[ce[Ue]],f[ce[Ze]],j=f[ce[gn]],V=f[ce[fn]],K=f[ce[On]],rt=f[ce[bn]],f[ce[Xe]],T=f[ce[$e]],Qt=f[qt[Wt]],ue=f[qt[re]],ae=f[qt[je]],_t=f[qt[At]],Dt=f[qt[Zt]],Ft=f[qt[xt]]}this.clean=function(){Ba(),x=_=b=v=h=m=f=null};var It=0,me=1,Vt=2,ge=3,De=4,_e=5,Ht=0,yn=1,ee=2,Qe=3,on=4,wn=5,Ve=6,Ue=0,Ze=1,gn=2,fn=3,On=4,bn=5,Xe=6,$e=7,kt=8,be=9,de=10,Ye=11,cn=12,We=13,At=0,Zt=1,xt=2,Wt=3,re=4,je=5,Gt={mbs:[],newcms:[],svc:0,pubct:0,RDTmOt:!1,FDTmOt:!1,CKPRops:[],CKPLops:[],SMAGC_CLog:[],LogEOCount:0},Ge=!1,Te=1e4,yt=4*Te,zt=null,Tt=2e4,Rt=null,Ut=Tt/2,Yt=Ut/2+3e3,ie=null,X=Tt/2,dt=1,wt=2,Bt=3,St=5,Se=4,oe=2,ve=4,Ie=1,ke=2,nn=3,dn=7,En=5,Ln=(w&&(yt=1e3*(Te=200),x.SMDIvtSt=d.now(),x.SMDIvtEd=d.now(),x.SMDJnSt=d.now(),x.SMDJnEd=d.now()),!1),tr=null,jn=!1,Rn=null,$n=null;function Wr(Be){Be={success:Be,tm:$n},f.fcs(Be),Ln=!1,Rn!==null&&(e(Rn),Rn=null)}var uo=null;function xr(){var Be=qo(Ie);Be.cmd.member=_,Be.nut=!0,V(dt),Jr++,Be.context.dmid=0,zt==null&&(x.SMJnSt=d.now()),Dt(Be),e(zt),zt=setTimeout(function(){var Ae=d.now()-f.gwst(),Pe=j();L("[codoxe]-- jnf: t = "+Ae/1e3+"; s="+Pe+"; mjt="+Tt/1e3+"; sid = "+h.sid,n),bt(15),zt=null},Tt)}var fo=null,Sr=0,Mr=null,Ni=null;function bi(Be){var Ae,Pe,_n,kn;1<Gt.newcms.length?s(Gt.newcms):((K()||f.wxsp())&&(q(Be),v.f2(),Gt.CKPRops=[],Gt.CKPLops=[]),Ae=qo(ke),h.sid,s(Gt.mbs),h.sid,s(Gt.newcms),h.sid,s(Ae),Dt(Ae),O||(V(Bt),Be==="sync"&&(jn=!0)),Gt.RDTmOt=!1,Pe=Yt+200*Gt.mbs.length,Ut<=Pe&&(Pe=Ut),_n=Gt.svc,kn=Gt.mbs.length,e(Rt),Rt=setTimeout(function(){h.sid;var qn=j(),Dr=(d.now()-f.gwst())/1e3;L("[codoxi]-- srdt: t = "+Dr+"; s="+qn+"; wt="+Pe+"; ss= "+kn+"; vc="+_n+"; sid = "+h.sid,n),Gt.RDTmOt=!0,ea("RDtimer"),Rt=null},Pe))}function ea(Ae){Ae&&(s(Gt.mbs),s(Gt.newcms));var Ae=j(),Pe=(d.now()-f.gwst())/1e3;if(Ae==Se)return L("[codoxi]-- abisfd: t = "+Pe+"; s="+Ae+"; hbc = "+f.ghb()+"; sid = "+h.sid,n);if((Gt.svc=0)!==Gt.mbs.length&&Gt.mbs[0].sid===h.sid?(h.sid,1):(h.sid,0)){if(h.sid,!jn){Pe=qo(nn),Pe.ds=na(Gt.newcms),s(Pe.ds),O||(Pe.cmd.mbs=_t(Gt.mbs),Pe.cmd.newcms=_t(Gt.newcms)),Pe.cmd.rcs=_t(W()),Pe.cmd.rcs[h.sid]=N(b);try{Pe.cmd.spsts=v.e(),Pe.cmd.build=I}catch{bt(3e3)}Gt.newcms.length,s(Pe),Dt(Pe)}Ae=qo(dn),O||(Ae.cmd.mbs=_t(Gt.mbs),Ae.cmd.newcms=_t(Gt.newcms),Ae.cmd.caid=ht()),s(Ae),Dt(Ae)}V(St);var _n=X;e(ie),ie=setTimeout(function(){h.sid;var kn=j(),qn=(d.now()-f.gwst())/1e3;Gt.mbs.length,Gt.newcms.length,L("[codoxi]-- sfdt: t = "+qn+"; s="+kn+"; wt="+_n+"; ss="+Gt.mbs.length+"; ncn="+Gt.newcms.length+"; sid = "+h.sid,n),Ho(),ie=null},_n)}var ar=null;function po(Pe){var Ae=Pe&&Pe.spst,Pe=(Pe&&Pe.laid,c(Ae));if(_t(Pe),!Pe)return M(new Error("no IS remote doc state | spst = ".concat(Ae))),!1;if(!R)return b.setContents(Pe),M(new Error("no localInitDocState")),!1;if(Ae=b.getContents(),Ae=R.diff(Ae),Ae&&Ae.ops&&Ae.ops.length&&!i(Ae)){var _n=R.diff(Pe);if(!i(_n)){if(!f.gqjs())return!1;if(!_n&&!_n.ops)return M(new Error("[mergeDelta] remoteInitDelta is null or undefined")),!1;if(!Ae&&!Ae.ops)return M(new Error("[mergeDelta] localInitDelta is null or undefined")),!1;var Ae=f.qjs2cdx(Ae.ops),_n=f.qjs2cdx(_n.ops),kn=f.dot(_n,Ae,!0),Ae=(s(kn),f.dot(Ae,_n,!1)),_n=(s(Ae),{ops:f.cdx2qjs(Ae)}),Ae=(s(_n),b.updateContents(_n),{op:kn,inverse:[]});return f.dop2sm(Ae),!0}}return b.setContents(Pe),!0}function _i(Be){s(R);var Ae,Pe=b.d(),_n=(s(Pe),Ro(R,Pe));s(_n),_n.length==0?v.h(Be):(Be=Be[0].spst,s(Be),Be=Ro(R,Be),s(Be),b.j=Pe,Be.length&&(_n=_n[0],Be=Be[0],s(_n),s(Be),Pe=f.tf(Be.op,_n.op,"A"),Ae=f.tf(_n.op,Be.op,"B"),Be.op=Pe,_n=[{op:Ae}],s(Be),s(_n),b.j=f.uspst(b.j,Be.op),s(b.j),f.udoc(b,Be),s(b.d())),f.gop2sm(_n))}function Ro(Be,Ae){return Be=f.gop(b,Be,Ae),f.sop2cop(Be)}function Ho(Be){var Ae=j(),Pe=(d.now()-f.gwst())/1e3;if(Ae==Se)L("[codoxi]- abfd: t = "+Pe+"; s="+Ae+"; hbc = "+f.ghb()+"; sid = "+h.sid,n);else{if(!Be)return h.sid,s(Gt.mbs),s(Gt.newcms),L("[codoxi]- hfd1: t = "+Pe+"; s="+Ae+"; sid = "+h.sid,n),K()||f.wxsp()?(Wo(),v.g()):Gt.newcms=[],void V(wt);e(ie),ie=null;var _n,kn,Pe=Be,Ae=j(),Be=(d.now()-f.gwst())/1e3;if(Mi(_,Pe.cmd.newcms)){if(h.sid,Ae!==dt)return L("[codoxi]-- hfd2: t = "+Be+"; s="+Ae+"; sid = "+h.sid,n),void h.sid;e(zt),function(Kn){s(Kn),j()===dt&&(h.sid,w||(h.sid,s(Kn.cmd.spsts),R==null?(M(new Error("[codox_handlingISmsg] no init local doc state, but proceed ")),v.h(Kn.cmd.spsts)):f.gqjs()?po(Kn.cmd.spsts[0],Kn.cmd.build)||(M(new Error("[codox_handlingISmsg] handleQjsInitState failed, but proceed ")),v.h(Kn.cmd.spsts)):_i(Kn.cmd.spsts),h.sid,s(v),Q(Kn.cmd.rcs),s(Kn.cmd.rcs),E(Kn.cmd.newcms),setTimeout(function(){C("ckp-is")},1e3)),ps(Gt.mbs,Kn.cmd.mbs),ps(Gt.mbs,Kn.cmd.newcms),Gt.newcms=[],O||A(Gt.mbs)),h.sid}(ar),ue(16),x.SMJnEd=d.now(),Qt(oe,Pe.cmd.newcms.length),O||(h.sid,Gt.mbs.length,Gt.newcms.length,Wo(),v.g(),ot(),V(wt),f.sj(!0),f.gsmso()&&f.esync("ckpncm"),_n=ht(),kn=Pe.cmd.caid,Gt.mbs.length,L("[codoxi]* jnd2: t = "+Be+"; s="+Ae+"; ss="+Gt.mbs.length+"; sid = "+h.sid+"; llen = "+_n+"; rlen = "+kn,n),!w&&m&&(L("[codoxi]* cdxcb(y): t = "+Be+"; s="+Ae+"; ss="+Gt.mbs.length+"; sid = "+h.sid,n),m(h.sid)))}else{if(!Mi(_,Pe.cmd.mbs))return void(Ae!==dt?(h.sid,j(),L("[codoxi]-- hfd6: t = "+Be+"; s="+Ae+"; sid = "+h.sid,n)):Sr<Jr?(h.sid,L("[codoxi]- hfd7: t = "+Be+"; s="+Ae+"; rj="+Sr+"; jc="+Jr+"; sid = "+h.sid,n)):(h.sid,2<=Jr?L("[codoxi]- hfd8: t = "+Be+"; s="+Ae+"; jc="+Jr+"; sid = "+h.sid,n):(Gt.newcms=[],h.sid,L("[codoxi] sjn2: t = "+Be+"; s="+Ae+"; jc="+Jr+"; sid = "+h.sid,n),f.rssmc(),xr())));if(h.sid,Ae!==St){if(Ae!==wt)return h.sid,Pe.context.sid,void L("[codoxi]-- hfd3: t = "+Be+"; s="+Ae+"; sid = "+h.sid,n);h.sid,Pe.context.sid}La(Gt.mbs,Pe.cmd.mbs)||(s(Gt.mbs),s(Pe.cmd.mbs),Gt.mbs.length,Pe.cmd.mbs.length,L("[codoxi]- hfd4: t = "+Be+"; s="+Ae+"; lmbl="+Gt.mbs.length+"; rmbl="+Pe.cmd.mbs.length+"; sid = "+h.sid,n)),Pe.cmd.newcms.length,Pe.cmd.newcms,La(Gt.newcms,Pe.cmd.newcms)||(s(Gt.newcms),s(Pe.cmd.newcms),Gt.newcms.length,Pe.cmd.newcms.length,L("[codoxi]- hfd5: t = "+Be+"; s="+Ae+"; lncl="+Gt.newcms.length+"; rncl="+Pe.cmd.newcms.length+"; sid = "+h.sid,n)),jn&&(h.sid,tr===h.sid&&Wr(!0),jn=!1,tr=null),O||(ps(Gt.mbs,Gt.newcms),ae(18,Gt.newcms),A(Gt.newcms),h.sid,Gt.newcms),E(Gt.newcms),f.gqjs()||C("ckp-fd"),f.gsmso()||!K()&&!f.wxsp()||P(),h.sid,Gt.mbs.length,Gt.newcms.length,Gt.mbs.length,Gt.newcms.length,L("[codoxi]* hfdE: t = "+Be+"; s="+Ae+"; ss= "+Gt.mbs.length+"; ncn= "+Gt.newcms.length+"; sid = "+h.sid,n),K()||f.wxsp()?(Wo(),v.g()):Gt.newcms=[],ot(),V(wt),f.gsmso()&&f.esync("ckpec")}}}var Jr=0;function Io(){s(Gt.mbs),G(h.sid),Q({}),at()}var wi=0;function ei(){var Be=d.now();f.gs()!==wt&&!O||(function(){var Ae=(d.now()-f.gwst())/1e3,_n=d.now(),Pe=-1,_n=(wi&&(Pe=_n-wi),f.ghb());if(j()!==wt)return L("[codoxi]- nohb: t = "+Ae+"; hbgap = "+Pe+"; hbc = "+_n+"; sid = "+h.sid,n);q("HB-timer"),T();var kn=qo(En),qn=d.now(),qn=(kn.context.st=qn,kn.rtt=rt(),f.gqjs()&&(f.guim()||f.guimf())&&(kn.context.CAID=!1),ht());2*Te<=Pe&&L("[codoxi]- slowhb: t = "+Ae+"; hbgap = "+Pe/1e3+"; hbc = "+_n+"; sid = "+h.sid,n),Ft(kn,qn),f.ihb()}(),U(),wi=Be)}var ds=null;function qo(Be){return{op:[],bc:!0,cmd:{t:Be},context:{sid:h.sid,rto:h.rto,CAID:!0,pub:f.gpm()}}}function Mi(Be,Ae){for(var Pe=0;Pe<Ae.length;Pe++)if(Be.sid==Ae[Pe].sid)return 1}function fs(Be,Ae){for(var Pe=0;Pe<Ae.length;Pe++)if(Be==Ae[Pe].sid)return 1}function na(Be){for(var Ae=[],Pe=0;Pe<Be.length;Pe++)Ae.push(Be[Pe].sid);return Ae}function Ls(Be,Ae){for(var Pe=null,_n=Be.length;_n;){var kn=Be.shift();_n--,kn.sid!==Ae?Be.push(kn):Pe=kn}return Pe}function ps(Be,Ae){s(Be),s(Ae);for(var Pe=[],_n=0;_n<Ae.length;_n++){var kn=Ae[_n];Mi(kn,Be)?Qt(ve,kn,Be):Pe.push(kn)}for(var qn=0;qn<Pe.length;qn++)Be.push(Pe[qn])}function ga(Be){s(Be),s(Gt.mbs);for(var Ae=[],Pe=0;Pe<Be.length;Pe++){var _n=Be[Pe];Mi(_n,Gt.mbs)||Ae.push(_n)}for(var kn=0;kn<Ae.length;kn++)Gt.mbs.push(Ae[kn])}function La(Be,Ae){if(Be.length!==Ae.length)return Be.length,Ae.length,0;for(var Pe=0;Pe<Be.length;Pe++)if(Be[Pe].sid!==Ae[Pe].sid)return Be[Pe].sid,Ae[Pe].sid,0;return 1}function Wo(){Gt.newcms=[],Gt.svc=0,Gt.pubct=0,Gt.RDTmOt=!1,Gt.FDTmOt=!1,Gt.CKPRops=[],Gt.CKPLops=[]}function Ba(){clearInterval(Ge),Ge=!1,e(Rt),Rt=null,e(ie),ie=null,e(zt),zt=null,e(Rn),e(uo),e(fo),e(Ni)}function Fa(){return Jr}this.rin=Nt,this.in=function(Be){var Ae=null;Nt(Ae=Be.c2d?f.dec(Be.c2d,f.lcmm()):Ae)},this.se=Gt,this.pc=function(Be){if(Be.cmd.t=="quit"&&(Be.cmd.t=4),Be.cmd.t=="SMM"&&(Be.cmd.t=8),Be.cmd.t=="HBP"&&(Be.cmd.t=10),Be.cmd.t=="RC"&&(Be.cmd.t=14),!O){var Ae,Pe,_n,kn,qn,Dr,fr,Kn=Be;switch(Kn.cmd.t){case Ie:(function(Bn){var Lr=j(),pr=(d.now()-f.gwst())/1e3;if(Lr==Se)return L("[codoxi]-- abjn: t = "+pr+"; s="+Lr+"; hbc = "+f.ghb()+"; sid = "+h.sid,n);if(j()!==dt)if(jn)h.sid;else if(j()!==St)if(Mi(Bn.cmd.member,Gt.newcms))h.sid,Bn.cmd.member.sid,s(Gt.newcms);else if(Gt.newcms.push(Bn.cmd.member),h.sid,s(Gt.newcms),h.sid,s(Gt.mbs),j()!==Bt)if(Gt.mbs.length==1){if(pr=qo(nn),!w){(K()||f.wxsp())&&(v.a(),v.f2(),Gt.CKPRops=[],Gt.CKPLops=[]),V(Bt);try{pr.cmd.spsts=v.e(),pr.cmd.build=I}catch{bt(3e3)}s(pr.cmd.spsts),pr.cmd.rcs=_t(W()),pr.cmd.rcs[h.sid]=N(b)}O||(pr.cmd.mbs=_t(Gt.mbs),pr.cmd.newcms=_t(Gt.newcms)),1<Gt.newcms.length&&Gt.newcms,pr.ds=na(Gt.newcms),Dt(pr),Lr=qo(dn),O||(Lr.cmd.mbs=_t(Gt.mbs),Lr.cmd.newcms=_t(Gt.newcms),Lr.cmd.caid=ht()),s(Lr),Dt(Lr),V(St)}else{if(1<Gt.newcms.length)return Bn.cmd.member.sid,Gt.newcms;bi("hJN")}else Bn.cmd.member.sid,s(Gt.newcms);else h.sid,Bn.cmd.member.sid;else h.sid===Bn.cmd.member.sid?(h.sid,Gt.newcms.length,Sr++):(h.sid,Bn.cmd.member.sid,Gt.newcms.length)})(Kn);break;case ke:(function(Bn){var Lr=j(),pr=(d.now()-f.gwst())/1e3;if(Lr!==dt){if(Lr!==Bt&&Lr!==wt)return h.sid,Bn.context.sid,L("[codoxi]-- abhrd1: t = "+pr+"; s="+Lr+"; hbc = "+f.ghb()+"; sid = "+h.sid,n);var Di=Bn.context.sid;O||(fs(Bn.context.sid,Gt.mbs)?Gt.svc++:(h.sid,Bn.context.sid,s(Gt.mbs),L("[codoxi]-- abhrd2: t = "+pr+"; s="+Lr+"; ms="+Di+"; sid = "+h.sid,n))),h.sid,Bn.context.sid,Gt.svc,Gt.svc==Gt.mbs.length&&(Gt.svc,h.sid,e(Rt),Gt.svc=0,ea("hRD"))}else h.sid})(Kn);break;case nn:Mi(_,(fr=Kn).cmd.newcms)?ar=fr:(h.sid,fr.cmd.newcms);break;case dn:Ho(Kn);break;case 4:s(fr=Kn),kn=j(),qn=(d.now()-f.gwst())/1e3,kn===wt||jn||(kn==Bt&&(h.sid,s(fr),fr.context.sid,L("[codoxi]- qckp: t = "+qn+"; s="+kn+"; qid = "+fr.context.sid+"; sid = "+h.sid,n)),kn==St&&(h.sid,s(fr),fr.context.sid,L("[codoxi]- qis: t = "+qn+"; s="+kn+"; qid = "+fr.context.sid+"; sid = "+h.sid,n))),k(fr.context.sid),Dr=Ls(Gt.mbs,fr.context.sid),f.gtms(),f.gtms(),Dr&&!w&&(B([fr.context.sid]),C("quit",fr.context.sid),ae(19,[Dr]),Gt.mbs.length,fr.context.sid,L("[codoxi] qt: t = "+qn+"; s="+kn+"; ss= "+Gt.mbs.length+"; lvrsid = "+fr.context.sid+"; sid = "+h.sid,n)),f.isgc()||kn!=wt||Gt.mbs.length!==1||Io();break;case 8:Dr=Kn,qn=d.now()-f.gwst(),kn=j(),Dr&&Dr.cmd?(Pe=(_n=Dr.cmd).fg,_n=_n.note,Pe?(s(_n),g&&(g.a,g.a.serverCommand(_n))):_n==="PPE Overdue"?(s(Dr),h.sid,L("[codoxi] ppeod: r=22; t = "+qn+"; s="+kn+"; sid = "+h.sid,n),ue(22)):_n==="PPE Shutdown"&&(s(Dr),h.sid,L("[codoxe]-- ppesd: r=23; t = "+qn+"; s="+kn+"; sid = "+h.sid,n),bt(23))):console.error(new Error("codox_handleSMMmsg msg.cmd does not exit. skipping..."));break;case En:(function(Bn){if(j()===wt){var Lr,pr=J(Bn.context.sid);if(pr&&h.sid!==Bn.context.sid&&!O&&(D(pr.tp,Bn.context.rto),(K()||f.wxsp())&&b)){if(pr.tp.length===0&&Bn.context.CAID)return s(Bn),Lr=ht(),ds&&Bn.context.rto>=ds?(lt(Lr,Bn.context.caidinfo),f===null?s(Bn):$(Bn)):(Bn.context.caidinfo,Bn.context.rto);Bn.context.sid,pr.tp.length}}})(Kn);break;case 10:Kn.cmd.hbc,f.gs()!==wt&&!O||(Pe=d.now(),f.ghb(),f.isgc()||q("HBP"),(_n=qo(En)).context.st=Pe,_n.rtt=rt(),(f.isgc()||j()!==wt||f.gqjs()&&(f.guim()||f.guimf()))&&(_n.context.CAID=!1,f.isgc(),_n.context.CAID),ho=ht(),Ft(_n,ho),f.ihb(),wi=Pe);break;case 9:(function(Bn){if(j()!=dt)if(jn)Ln&&tr!==h.sid&&Bn.cmd.member.sid==h.sid&&(h.sid,Wr(!1));else if(j()===wt||jn){if((tr=Bn.cmd.member.sid)===h.sid){if(Bn.tm&&($n=Bn.tm),Gt.mbs.length===1)return h.sid,v.a(),Wr(!0),jn=!1,tr=null;h.sid}bi("sync")}else Ln&&Bn.cmd.member.sid==h.sid&&(h.sid,Wr(!1))})(Kn);break;case 12:Mr=Kn;break;case 13:var Pr,ho=Kn;if(Mr?(h.sid,s(ho),Pr=Mr,h.sid,s(Pr),E(Pr.cmd.gcs.mbs),s(Pr.cmd.gcs.tm),tt(Pr.cmd.gcs.tm),A([_]),_t(Y()),s(Pr.cmd.gcs.ct),Ae=h.sid,F(Pr.cmd.gcs.ct),(h=z()).sid=Ae,h.seq=0,s(h),Ae={dmid:0,spst:Pr.cmd.gcs.clog},Pr.cmd.gcs.spsts=[Ae],s(Ae),f.gqjs()?po(Pr.cmd.gcs.spsts[0],Pr.cmd.gcs.build)||(M(new Error("[codox_handlingISmsg] handleQjsInitState failed, but proceed ")),v.h(Pr.cmd.gcs.spsts)):_i(Pr.cmd.gcs.spsts),ga([_]),s(Pr.cmd.gcs.mbs),ga(Pr.cmd.gcs.mbs),V(wt),f.sj(!0),ue(16),Ae=1,Pr.ncmn&&(Ae=Pr.ncmn),Qt(oe,Ae),Pr=Gt.mbs.length+Ae,Ae=j(),xi=(d.now()-f.gwst())/1e3,!w&&m&&(L("[codoxi]* cdxcb(y): t = "+xi+"; s="+Ae+"; ss="+Pr+"; sid = "+h.sid),m(h.sid)),h.sid,Mr=null):(h.sid,s(ho)),!O){if(f.isgc()||(E(ho.cmd.newcms),s(W())),ga(ho.cmd.newcms),s(Gt.mbs),A(ho.cmd.newcms),!f.isgc()&&!fs(h.sid,ho.cmd.newcms)){var ma=ho.cmd.newcms,xi=Y(),ya=(s(_t(xi)),J(h.sid));s(ya);for(var Le=[],go=0;go<ma.length;go++){var va=ma[go],va=J(va.sid);Le.push(va)}s(Le);for(var Me=0;Me<ya.tp.length;Me++){var Qr=ya.tp[Me];if(s(Qr),Qr.context.sid==h.sid&&Qr.context.to==null)for(var ni=0;ni<Le.length;ni++)Le[ni].tp.push(Qr),s(Le[ni])}s(_t(xi))}ds=ho.to,f.isgc()||(ot(),ae(18,Gt.mbs),C("ckp-is"),q("smncm"))}break;case 14:Ae=Kn,f.gr(),Ae.cmd.r,f.sr(Ae.cmd.r);break;default:Kn.cmd.t}}},this.ct=Ba,this.et=function(){Ge===!1&&(Ge=setInterval(ei,Te),wi=d.now())},this.jm=xr,this.rm=Ls,this.rs=Wo,this.om=Io,this.mt=yt,this.sy=function(){if(j()!==wt)return j(),tr&&h.sid,void Wr(!1);var Be;Ln?Wr(!1):(q("syn"),(Be=qo(9)).cmd.member=_,Be.context.dmid=0,Be.tm=!0,Ln=!0,Dt(Be),Rn!==null&&(e(Rn),Rn=null),Rn=setTimeout(function(){Wr(!1),Rn=null},15e3))},this.gjc=Fa}},{"../domains/api/qjs-util":267,"../logger.js":287,"../util/lib":292,"./../filters/":285}],290:[function(o,a,t){a.exports=function(e,s,i){e.lcmm(),e.dec;var r,l,n=e.co,c=null,d=null,u=null,f=null,g=null,m=null,h={},v={},b=null,_=null,R=null,x=null,w=null,O=null,I=1,L=4,M=5,A=6,k=8,J=9,G=[function(j,V){if(j.text.length<=0){if(j.data.ne=!0,j.data.tn===1)return!1}else j=function(K){var rt,T={},ot=(T.dm=K.path,T.do=[],{});if(!K.offset||0<(rt=K.offset)&&(ot.tg=rt,T.do.push(ot),ot={}),ot.cr=K.text,0<K.marks.length){for(var at={},q=0;q<K.marks.length;q++)at[K.marks[q].type]=!0;ot.sx=at}return T.do.push(ot),T.tn=K.data.tn,T.aon=K.data.n,T.pon=1,T}(j),V.push(j);return!0},function(j,V){var K,rt,T,ot=null;if(j.text.length<=0){if(j.data.ne=!0,j.data.tn===1)return!1}else(rt={}).dm=(j=j).path,rt.do=[],T={},j.offset&&0<(K=j.offset)&&(T.tg=K,rt.do.push(T),T={}),T.sc=j.text.length,rt.do.push(T),rt.tn=j.data.tn,rt.aon=j.data.n,rt.pon=1,ot=rt,V.push(ot);return!0},function(j,V){var K,rt,T,ot=null;if(j.length<=0){if(j.data.ne=!0,j.data.tn===1)return!1}else rt={},(K={}).dm=(j=j).path,K.do=[],0<(T=j.offset)&&(rt.tg=T,K.do.push(rt),rt={}),(T={})[j.mark.type]=!0,rt.tg=j.length,rt.sx=T,rt.ao="am",K.do.push(rt),K.tn=j.data.tn,K.aon=j.data.n,K.pon=1,ot=K,V.push(ot);return!0},function(j,V){var K,rt,T,ot=null;if(j.length<=0){if(j.data.ne=!0,j.data.tn===1)return!1}else rt={},(K={}).dm=(j=j).path,K.do=[],0<(T=j.offset)&&(rt.tg=T,K.do.push(rt),rt={}),(T={})[j.mark.type]=null,rt.tg=j.length,rt.sx=T,rt.ao="rm",K.do.push(rt),K.tn=j.data.tn,K.aon=j.data.n,K.pon=1,ot=K,V.push(ot);return!0},function(j,V){return!!(j=C(j))&&(V.push(j),!0)},function(j,V){return j=E(j),V.push(j),!0},function(j,V){var K;return!(K=F(j)).do[0].dmpo&&1<j.data.tn&&0<V.length&&c(V[V.length-1])&&0<j.position&&(V[V.length-1].do[0].target=j.position),V.push(K),!0},function(j,V){for(var K=Y(j),rt=0;rt<K.length;rt++)K[rt].tn=j.data.tn,K[rt].aon=j.data.n,K[rt].pon=rt+1,V.push(K[rt]);return!0},function(j,V){var K,rt,T=null;return(K={}).dm=(j=j).path,K.do=[],(rt={dmpo:!0}).pos=j.path[j.path.length-1],rt.len=1,rt.type="del",rt.ao="rn",K.tn=j.data.tn,K.aon=j.data.n,K.do.push(rt),T=K,V.push(T),!0},function(j,V){var K=function(T){var ot=[],at={},q=(at.dm=T.path,at.do=[],{});if(T.node.object==="text")q.dmpo=!0,q.pos=T.path[T.path.length-1],q.len=1,q.type="ins",q.ao="in",q.text=!0,at.do.push(q),at.tn=T.data.tn,at.aon=T.data.n,at.pon=1,ot.push(at);else{if(T.node.object!=="block"&&T.node.object!=="inline")return!1;q.dmpo=!0,q.pos=T.path[T.path.length-1],q.len=1,q.type="ins",q.ao="in",at.do.push(q),at.tn=T.data.tn,at.aon=T.data.n,at.pon=1,ot.push(at)}return ot}(j);if(!K)return!1;for(var rt=0;rt<K.length;rt++)K[rt].tn=j.data.tn,K[rt].aon=j.data.n,K[rt].pon=rt+1,V.push(K[rt]);return!0}],U=[function(j,V,K){V=function(rt){var T=rt;if(rt.data.ne)return rt;var ot=W(j,rt);if(ot===null||ot.do.length===0||ot.nil)return rt.data.ne=!0,rt;(rt=n(x.itaot)).path=ot.dm;var at=0;return ot.do[0].cr?rt.offset=0:(rt.offset=ot.do[0].tg,at=1),rt.text=ot.do[at].cr,ot.do[at].sx&&(rt.marks=P(ot.do[at].sx)),rt.data=T.data,rt}(V),K.push(V)},function(j,V,K){for(var rt=[],T=rt,ot=V,at=Q(j,V),q=0,ht=0;ht<at.length;ht++){var lt=n(x.rtaot),bt=(lt.data=ot.data,lt.marks=ot.marks,at[ht]);if(bt.nil||bt.do.length===0)lt.data.ne=!0,T.push(lt);else{lt.path=bt.dm;for(var _t=n(bt.do),Dt=0,Ft=0,Qt=0,ue=0;ue<_t.length;ue++)_t[ue].sc&&(Qt+=_t[ue].sc);var ae=q;for(q+=Qt;0<_t.length;){var se=n(lt),Ne=(se.text=0<ae?ot.text.slice(-q,-ae):ot.text.slice(-q),se.marks=ot.marks,se.text,_t.shift());se.offset=Dt,Ne.tg&&(Dt+=Ne.tg,se.offset=Dt,Ne=_t.shift()),Ne.sc&&Ne.sc!=se.text.length&&(Ne.sc,se.text.length,se.text=ot.text.slice(Ft,Ft+Ne.sc),Ft+=Ne.sc),T.push(se)}}}for(var ce=0;ce<rt.length;ce++)K.push(rt[ce])},function(j,V,K){for(var rt=[],T=V,ot=rt,at=Q(j,T),q=0;q<at.length;q++){var ht=n(x.amaot),lt=(ht.data=T.data,at[q]);if(lt.nil||lt.do.length===0)ht.data.ne=!0,ot.push(ht);else{ht.path=lt.dm;for(var bt=n(lt.do),_t=0;0<bt.length;){var Dt=n(ht),Ft=bt.shift(),Ft=(Ft.sx?Dt.offset=0:(_t+=Ft.tg,Dt.offset=_t,Ft=bt.shift()),Dt.length=Ft.tg,_t+=Ft.tg,P(Ft.sx));Dt.mark=Ft[0],ot.push(Dt)}}}for(var Qt=0;Qt<rt.length;Qt++)K.push(rt[Qt])},function(j,V,K){for(var rt=[],T=V,ot=rt,at=Q(j,T),q=0;q<at.length;q++){var ht=n(x.rmaot),lt=(ht.data=T.data,at[q]);if(lt.nil||lt.do.length===0)ht.data.ne=!0,ot.push(ht);else{ht.path=lt.dm;for(var bt=n(lt.do),_t=0;0<bt.length;){var Dt=n(ht),Ft=bt.shift(),Ft=(Ft.sx?Dt.offset=0:(_t+=Ft.tg,Dt.offset=_t,Ft=bt.shift()),Dt.length=Ft.tg,_t+=Ft.tg,function(ue){var ae,se=[];for(ae in ue){var Ne;ue[ae]||((Ne=n(w)).type=ae,se.push(Ne))}return se}(Ft.sx));Dt.mark=Ft[0],ot.push(Dt)}}}for(var Qt=0;Qt<rt.length;Qt++)K.push(rt[Qt])},function(j,V,K){V=N(j,V),K.push(V)},function(j,V,K){var rt=[];B(j,V,rt);for(var T=0;T<rt.length;T++)K.push(rt[T])},function(j,V,K){var rt=[];z(j,V,rt);for(var T=0;T<rt.length;T++)K.push(rt[T])},function(j,V,K){var rt=[];tt(j,V,rt);for(var T=0;T<rt.length;T++)K.push(rt[T])},function(j,V,K){var rt=[];$(j,V,rt);for(var T=0;T<rt.length;T++)K.push(rt[T])},function(j,V,K){var rt=j,T=V;rt=W(j,T),T.path=rt.dm,(rt==null||rt.nil||rt.do.length===0)&&(T.data.ne=!0),K.push(V)}];function D(j){return j[0].data.tn===4&&j[0].type===O[M]&&j[1].type===O[J]&&j[2].type===O[A]&&j[3].type===O[A]?"pasteindomain":"basic"}function W(j,V){return j=Q(j,V),j.length===1?j[0]:j.length===0||1<j.length?null:void 0}function Q(j,V){for(var K=[],rt=V.data.n,T=0;T<j.length;T++){var ot=j[T];if(ot.aon==rt)K.push(ot);else if(ot.aon>rt)break}return K}function E(j){var V={},K=(V.dm=j.path,V.do=[],{});return j.properties.type?(K.dmpo=!0,K.pos=j.path[j.path.length-1],K.len=1,K.type="ins",K.target=j.target,K.ao="sn",K.p=j.position,V.do.push(K)):(0<j.position&&(K.tg=j.position,V.do.push(K)),V.do.push(K={tg:1,sx:{sa2pn:!0}})),V.tn=j.data.tn,V.aon=j.data.n,V}function B(j,V,K){var rt=V;if(0<(at=Q(j,V)).length){var T=[];T.push(at[0]);for(var ot=1;ot<at.length;ot++)(q=at[ot]).nil||T.push(q);var at,q,j=0;if((q=(at=T)[0]).nil||q.do.length===0){if(at.length===1)return;j++}else if(u(q)||f(q)){if(f(q)?(V=n(x.snaotndmpo),q.do[0].sx?V.position=0:V.position=q.do[0].tg):((V=n(x.snaotdmpo)).properties=rt.properties,V.target=q.do[0].target,V.position=q.do[0].p),V.path=n(q.dm),V.data=rt.data,K.push(V),at.length===1)return;j++}at.length>j&&(q=at[j]).do[0].dmpo&&q.do[0].type==="upd"&&q.do[0].ao==="setn"&&((rt=n(x.senaot)).data.tn=at[0].tn,rt.data.n=at[0].aon,N([at[j]],rt),K.push(rt),j++),at.length>j&&(q=at[j]).do[0].dmpo&&q.do[0].ao==="mvn"&&((V=n(x.mvnaot)).data.tn=at[0].tn,V.data.n=at[0].aon,rt=[],tt(at.slice(j),V,rt),K.push(rt[0]))}}function $(j,V,K){var rt=V,T=Q(j,V);if(T.length===0)return V.data.ne=!0,K.push(V);for(var ot,at,q,ht=[],lt=0;lt<T.length-1;lt++)(ot=T[lt]).nil||ht.push(ot);ht.push(T[T.length-1]),1<(T=ht).length&&(T[0].do[0].dmpo&&T[0].do[0].ao=="mn"?(j=n(x.mnaotdmpo),q=n(x.mnaotndmpo),j.data.tn=T[0].tn,j.data.n=T[0].aon,q.data.tn=T[0].tn,q.data.n=T[0].aon,z([T[0]],j,at=[]),K.push(at[0]),z([T[1]],q,at=[])):(j=n(x.snaotndmpo),q=n(x.snaotdmpo),j.data.n=T[0].aon,j.data.tn=T[0].tn,q.data.n=T[1].aon,q.data.tn=T[1].tn,B([T[0]],j,at=[]),K.push(at[0]),B([T[1]],q,at=[])),K.push(at[0])),(ot=T[T.length-1]).nil||!!ot.do.length===0?V.data.ne=!0:((V=n(x.rnaot)).path=ot.dm,V.data=rt.data),K.push(V)}function C(j){var V,K,rt={};return j.properties.type?!!R[j.properties.type]&&(rt.dm=j.path,rt.do=[],(V={dmpo:!0}).pos=j.path[j.path.length-1],V.len=1,V.type="upd",V.ao="setn",(K={}).type=j.properties.type,V.sx=K,rt.do.push(V),rt.tn=j.data.tn,rt.aon=j.data.n,rt):!!j.properties.data&&(rt.dm=j.path,rt.do=[],(V={dmpo:!0}).pos=j.path[j.path.length-1],V.len=1,V.type="upd",V.ao="setn",rt.do.push(V),rt.tn=j.data.tn,rt.aon=j.data.n,rt)}function N(j,V){if(j=W(j,V),j==null||j.nil||j.do.length===0)return V.data.ne=!0,V;var K=V;return(V=n(x.senaot)).data=K.data,K.properties&&K.properties.data?(V.path=j.dm,V.properties=K.properties):(V.path=j.dm,V.properties=j.do[0].sx),V}function Y(j){var V=[],K={},rt=(K.dm=j.path,K.do=[],{});return m(j.path,j.newPath)?(rt.dmpo=!0,rt.pos=j.path[j.path.length-1],rt.len=1,rt.ao="mvn",rt.type="pt"):(rt.dmpo=!0,rt.pos=j.path[j.path.length-1],rt.len=1,rt.type="del",rt.ao="mvn",g(j.newPath,j.path)&&(rt.pxs="s"),K.tn=j.data.tn,K.aon=j.data.n,K.do.push(rt),K.tn=j.data.tn,K.aon=j.data.n,V.push(K),(K={}).dm=j.newPath,K.do=[],(rt={}).dmpo=!0,rt.pos=j.newPath[j.newPath.length-1],rt.len=1,rt.ao="mvn",g(j.newPath,j.path)?rt.type="pt":(rt.type="ins",rt.pxs="x")),K.do.push(rt),K.tn=j.data.tn,K.aon=j.data.n,V.push(K),V}function tt(ot,T,K){var rt=T,ot=Q(ot,T);if(ot.length===0)return T.data.ne=!0,K.push(T);if((T=n(x.mvnaot)).data=rt.data,rt=1,ot.length===1)return ot[0].nil||ot[0].do.length===0?T.data.ne=!0:(T.path=ot[0].dm,T.newPath=ot[0].dm),K.push(T);if(ot.length===2)return ot[0].nil||ot[0].do.length===0||ot[1].nil||ot[1].do.length===0?T.data.ne=!0:(T.path=ot[0].dm,T.newPath=ot[1].dm),K.push(T);var rt=ot[0].do[0].type==="pt"?(T.path=n(ot[0].dm),T.newPath=n(ot[0].dm),K.push(T),1):(T.path=n(ot[0].dm),T.newPath=n(ot[1].dm),K.push(T),2),T=n(x.senaot),T=(T.data.tn=ot[0].tn,T.data.n=ot[0].aon,T=N([ot[rt]],T),K.push(T),ot[rt+=1].do[0].ao==="rn"&&((T=n(x.rnaot)).data.tn=ot[0].tn,T.data.n=ot[0].aon,$([ot[rt]],T,T=[]),K.push(T[0]),rt+=1),n(x.mvnaot)),ot=(T.data.tn=ot[0].tn,T.data.n=ot[0].aon,ot.slice(rt));0<ot.length&&(tt(ot,T,rt=[]),K.push(rt[0]))}function F(j){var V={},K=(V.dm=n(j.path),V.do=[],{});return j.properties.type?(K.dmpo=!0,K.pos=j.path[j.path.length-1],K.len=1,K.type="del",K.target=0,K.p=j.position,K.ao="mn"):(V.dm[j.path.length-1]=V.dm[j.path.length-1]-1,K={},0<j.position&&(K.tg=j.position,V.do.push(K),K={}),K.tg=1,(K.sx={}).ma2pn=!0),V.do.push(K),V.tn=j.data.tn,V.aon=j.data.n,V}function z(T,V,K){var rt=V,T=Q(T,V);if(T.length===0)return V.data.ne=!0,K.push(V);T.length===3&&(ot=n(x.mvnaot),T[0].nil||T[1].nil||T[0].do[0].length===0||T[1].do[0].length===0?(ot.data.ne=!0,K.push(ot)):(ot.data.tn=T[0].tn,ot.data.n=T[0].aon,tt([T[0],T[1]],ot,ot=[]),K.push(ot[0])));var ot=T[T.length-1];if(ot.nil||ot.do.length===0)return V.data.ne=!0,K.push(V);(c(ot)||d(ot))&&(d(ot)?((V=n(x.mnaotndmpo)).path=n(ot.dm),V.path[V.path.length-1]=V.path[V.path.length-1]+1,ot.do[0].sx?V.position=0:V.position=ot.do[0].tg):((V=n(x.mnaotdmpo)).path=n(ot.dm),V.properties=rt.properties,V.position=ot.do[0].p+1),V.data=rt.data,K.push(V))}function P(j){var V,K,rt=[];for(V in j)j[V]&&((K=n(w)).type=V,rt.push(K));return rt}this.in=function(j){var V=null;(V=j.ivs?e.dec(j.ivs,e.lcmm()):V).mp&&(_=V.mp),V.ppt&&(R=V.ppt),V.mat&&(w=V.mat),V.aot&&(x=V.aot),r=Object.keys(_),b={};for(var K=0;K<r.length;K++){var rt=r[K],T=_[rt];b[T]=rt}O=Object.keys(b);for(var ot=0;ot<r.length;ot++){var at=r[ot];h[at]=G[ot]}for(var q=0;q<r.length;q++){var ht=r[q];v[ht]=U[q]}l=V.p2a,c=s[l[0]],d=s[l[1]],u=s[l[2]],f=s[l[3]],g=s[l[4]],m=s[l[5]],s.at(x),s.sn(E),s.mn(F),s.mvn(Y),s.sen(C),V.dmpop&&V.dmpot&&V.dmpoaot&&(V.dmpop,V.dmpot,V.dmpoaot)},this.a2p=function(j){j.ao;var V=null;switch(D(j.ao)){case"basic":V=function(K){K.ao;for(var rt,T=K.ao,ot=[],at=[],q=null,ht=0;ht<T.length;ht++){var q=T[ht],lt=b[q.type],lt=(q.key=lt,delete q.type,h[q.key]);if(lt===void 0||!lt(q,at))return!1;q.data.ne||(at[at.length-1].tn=q.data.tn,at[at.length-1].aon=q.data.n),_[q.key]!==O[J]?((lt={}).key=q.key,_[q.key]==O[M]||_[q.key]==O[A]&&q.properties.type||_[q.key]==O[L]&&q.properties.data?lt.properties=q.properties:_[q.key]==O[I]&&(lt.text=q.text,lt.marks=q.marks),lt.data=q.data,ot.push(lt)):ot.push(q)}if(ot.length===3&&ot[0].data.tn===3)_[ot[0].key]==O[M]&&_[ot[1].key]==O[J]&&_[ot[2].key]==O[J]?(at[1].do[0].ien=!0,at[2].do[0].ien=!0,at[1].do[0].pem=T[0].position,at[2].do[0].pem=T[0].position,rt=at[0].do.length,at[0].do[rt-1].ien=!0):_[ot[0].key]==O[k]&&_[ot[1].key]==O[I]&&_[ot[2].key]==O[A]&&(at[0].do[0].den=!0,at[0].do[0].pem=T[2].position,m(at[0].dm,T[1].path)?(at[0].do[0].dlen=0,at[0].do[0].extra=T[1].text.length):(at[0].do[0].dlen=T[1].text.length,at[0].do[0].extra=0),at[0].do[0].two=!0,at[1].den=!0,at[2].den=!0);else if(1<ot.length&&1<ot[0].data.tn&&_[ot[0].key]==O[k]&&_[ot[ot.length-1].key]==O[A]&&(ot.length===2||!_[ot[ot.length-2].key]==O[A])){for(var bt=0,ht=0;ht<ot.length;ht++){if(_[ot[ht].key]!=O[k]){bt=ht-1;break}at[ht].do[0].den=!0,at[ht].do[0].two=!1}for(var _t=0,Dt=0,Ft=bt+1;Ft<ot.length-1;Ft++)m(at[bt].dm,T[Ft].path)?Dt+=T[Ft].text.length:_t+=T[Ft].text.length;at[bt].do[0].pem=T[T.length-1].position,at[bt].do[0].dlen=_t,at[bt].do[0].extra=Dt,at[bt].do[0].two=!0,at[at.length-1].den=!0,2<ot.length&&(at[at.length-2].den=!0,at[at.length-3].den=!0)}return K.ao=ot,K.op=at,K.op,K.ao,!0}(j);break;case"pasteindomain":V=function(K){var rt=K.ao,T=[],ot={},at=(ot.dm=rt[0].path,ot.do=[],{});0<rt[0].position&&(at.tg=rt[0].position,ot.do.push(at));for(var q=rt[1].node.leaves,ht=0;ht<q.length;ht++){if((at={}).cr=q[ht].text,0<q[ht].marks.length){for(var lt={},bt=0;bt<q[ht].marks.length;bt++)lt[q[ht].marks[bt].type]=!0;at.sx=lt}ot.do.push(at)}return T.push(ot),K.op=T,!0}(j);break;default:j.ao,V=!1}return V},this.p2a=function(j){j.op;var V=null;switch(D(j.ao)){case"basic":V=function(K){K.ao;var rt,T=K.op,ot=K.ao,at=[];ot.length==2&&ot[0].key&&ot[1].key&&_[ot[0].key]==O[M]&&_[ot[1].key]==O[M]?(rt=T[0].dm.length,T[1].do[0].p=T[0].dm[rt-1]+1):ot.length==2&&ot[0].key&&ot[1].key&&_[ot[0].key]==O[A]&&_[ot[1].key]==O[A]&&(rt=T[1].dm.length,T[0].do[0].p=T[1].dm[rt-1]);for(var q=0;q<ot.length;q++){var ht=ot[q];if(!ht.data.ne){var lt=ht.type?b[ht.type]:ht.key,lt=v[lt];if(lt===void 0)return!1;lt(T,ht,at)}}return K.ao=at,K.op,K.ao,!0}(j);break;case"pasteindomain":V=function(){var K=j.op,rt=j.ao;if(K[0].nil)for(var T=0;T<rt.length;T++)rt[T].data.ne=!0;else{rt[0].path=K[0].dm;for(var ot=1;ot<rt.length;ot++){for(var at=0;at<K[0].dm.length;at++)rt[ot].path[at]=K[0].dm[at];rt[ot].path[rt[0].path.length-1]=1}var q=0,ht=0,lt=(K[0].do[0].tg&&(ht=K[0].do[0].tg,q=1),rt[3].position-rt[0].position);rt[0].position=ht,rt[2].position=ht,rt[3].position=ht+lt,K[0].do[0].sx?rt[1].position=0:rt[1].position=K[0].do[0].tg;for(var bt=rt[1].node.leaves,T=0;T<bt.length;T++){var _t=K[0].do[T+q];if(bt[T].text=_t.cr,_t.sx){Dt=void 0,Ft=void 0,ae=void 0,Qt=void 0,ue=void 0;var Dt=_t.sx,Ft=bt[T],Qt,ue,ae=[];for(Qt in Dt)Dt[Qt]&&((ue=n(w)).type=Qt,ae.push(ue));Ft.marks=ae}}}}();break;default:j.ao,V=!1}return V},this.k2t=function(j,V){return _[j]==O[V]},this.k2k=function(j,V){return _[j]==_[V]},this.lt=function(j){return _[j]}}},{}],291:[function(o,a,t){a.exports=function(e,s){var i=e.lhto(),r=e.dtf,l=e.dtfp,n=e.co,c=null;function d(C,N,Y){if(C.do.length===0||N.do.length===0)return N;var tt,F,z,P=(N=n(N)).dm,j=C.dm;if(C.do[0].dmpo&&C.do[0].type!=="pt"&&O(j,P)){j.length;var V=C.do[0].type;switch(V){case"ins":(function(qt,Nt,It){var me,Vt,ge,De,_e,Ht=Nt.dm,yn=qt.dm,ee=yn.length-1,Qe=qt.do[0].ao,on=Nt.do[0].ao,wn=Nt.do[0].type;if(yn[ee]<Ht[ee])qt.do[0].ao==="mvn"||(yn[ee]+1==Ht[ee]&&Qe==="sn"&&Nt.do[0].dmpo&&wn==="del"&&on==="rn"&&Nt.tn===3?Nt.nil=!0:u(qt)?Ht[ee]=Ht[ee]+2:Ht[ee]=Ht[ee]+1);else if(yn[ee]===Ht[ee])if(Nt.do[0].dmpo)switch(Qe){case"sn":switch(wn){case"ins":if(on=="sn"){if(yn.length==Ht.length&&qt.do[0].p!==Nt.do[0].p)return qt.do[0].p>Nt.do[0].p||(Ht[ee]=Ht[ee]+1,Nt.do[0].p=Nt.do[0].p-qt.do[0].p+1);var Ve=qt.do[0].target,Ue=Nt.do[0].target;qt.otg&&(Ve=qt.otg),(Ue=Nt.otg?Nt.otg:Ue)==Ve?Nt.nil=!0:Ve<Ue&&(Nt.do[0].target=Ue-Ve,Ht[ee]=Ht[ee]+1,Nt.otg&&delete Nt.otg,Nt.do[0].p=Nt.do[0].p-qt.do[0].p+1)}else on!="mvn"&&on=="in"&&(yn.length!==Ht.length&&qt.do[0].p!==Ht[1+ee]?qt.do[0].p>Ht[1+ee]||(Ht[ee]=Ht[ee]+1,Ht[1+ee]=Ht[1+ee]-qt.do[0].p+1):(Ve=qt.do[0].target,qt.otg&&(Ve=qt.otg),u(Nt)&&(Nt.do[0].pem>Ve||Nt.do[0].pem===Ve&&It)&&(Ht[ee]=Ht[ee]+1,Ht[1+ee]=1,Nt.do[0].pem=Nt.do[0].pem-Ve)));break;case"del":U(Nt)?qt.do[0].target===Nt.do[0].target&&(Ht[ee]=Ht[ee]+1):on=="mvn"?Nt.do[0].pxs:on=="rn"&&1<Nt.tn?f(Nt)?yn.length!==Ht.length&&qt.do[0].p!==Ht[1+ee]+1?qt.do[0].p>Ht[1+ee]+1||(Ht[ee]=Ht[ee]+1,Ht[1+ee]=Ht[1+ee]-qt.do[0].p+1):Nt.two&&(Ve=qt.do[0].target,qt.otg&&(Ve=qt.otg),(Nt.do[0].pem>Ve||Nt.do[0].pem===Ve&&It)&&(Ht[ee]=Ht[ee]+1,Ht[1+ee]=1,Nt.do[0].pem=Nt.do[0].pem-Ve)):(me=Nt,Vt=qt.do[0].target,(ge=n(me.dm))[me.dm.length-1]=ge[me.dm.length-1]+1,(De=n(me.dm))[ge.length]=1,(_e=n(W.mnaotdmpo)).path=ge,_e.data.tn=me.tn,_e.data.n=me.aon,(ge=E(_e)).do[0].target=Vt,ge.pon=me.pon+1,(_e=n(W.mnaotndmpo)).path=De,_e.position=Vt,_e.data.tn=me.tn,_e.data.n=me.aon,(De=E(_e)).pon=me.pon+2,me.Xp||(me.Xp=[]),me.Xp.push(ge),me.Xp.push(De)):Ht[ee]=Ht[ee]+1}break;case"mvn":Nt.do[0].type=="ins"&&Nt.do[0].ao=="mvn"?Nt.nil=!0:Ht[Ht.length]=0;break;case"in":if(u(qt))return u(Nt)?(qt.do[0].pem<Nt.do[0].pem||qt.do[0].pem==Nt.do[0].pem&&It)&&(Ht[ee]=Ht[ee]+2,Nt.do[0].pem=Nt.do[0].pem-qt.do[0].pem):Ht[ee]=Ht[ee]+2;(wn!="ins"||L(Nt)||on==="in"&&It)&&(Ht[ee]=Ht[ee]+1)}else switch(Qe){case"sn":if(yn.length!==Ht.length&&qt.do[0].p!==Ht[Ht.length-1]+1)return qt.do[0].p>Ht[Ht.length-1]+1||(Ht[ee]=Ht[ee]+1,Ht[Ht.length-1]=Ht[Ht.length-1]-qt.do[0].p+1);var Ve=qt.do[0].target,Ue=0;if(Nt.do[0].tg&&!Nt.do[0].sx&&(Ue=Nt.do[0].tg),qt.otg&&(Ve=qt.otg),Nt.otg&&(Ue=Nt.otg),R(Nt)&&qt.isInDR&&x(Nt,qt.isInDR)){{var Ze=Nt,gn=qt.isInDR,fn=ee,On=0,bn=0;!Ze.do[0].tg||Ze.do[0].sx||s||(On=1,bn=Ze.do[0].tg);for(var Xe=null,$e=bn,kt=On;kt<Ze.do.length;kt++)if(Ze.do[kt].tg?$e+=Ze.do[kt].tg:$e+=Ze.do[kt].sc,gn<=$e){var be=null,de=null;if(Ze.do[kt].sc){var be=n(Ze.do[kt]),de=n(Ze.do[kt]),Ye=gn-($e-Ze.do[kt].sc),cn=Ze.do[kt].sc-Ye;if(Ye==0||cn==0)break;be.sc=Ye,de.sc=cn}(Xe=n(Ze)).do=Ze.do.slice(0,kt),be!==null&&Xe.do.push(be),Ze.do=Ze.do.slice(kt+1),de!==null&&Ze.do.unshift(de),Ze.dm[fn]=Ze.dm[fn]+1;break}Xe!==null&&(Ze.Xa||(Ze.Xa=[]),Ze.pon&&(Xe.pon=Ze.pon+1),Xe.pon=Ze.pon+1,Ze.Xa.push(Xe))}return delete qt.isInDR}if(Ue===Ve)M(Nt)?It&&(G(Nt.do,0),Ht[ee]=Ht[ee]+1,Ht[1+ee]=0):R(Nt)&&qt.ft&&Nt.ft&&function(Tt,Rt){for(var Ut=0;Ut<Tt.length;Ut++)for(var Yt=0;Yt<Rt.length;Yt++)if(Tt[Ut]===Rt[Yt])return 1}(Nt.ft,qt.ft)||(M(Nt)&&(Nt.otg=Ue),G(Nt.do,0),Ht[ee]=Ht[ee]+1,Ht[Ht.length-1]=Ht[Ht.length-1]-qt.do[0].p+1);else if(Ve<Ue)M(Nt)&&(Nt.otg=Ue),G(Nt.do,Ue-Ve),Ht[ee]=Ht[ee]+1,Ht[Ht.length-1]=Ht[Ht.length-1]-qt.do[0].p+1;else if(function(Tt,Rt){if(!k(Tt)&&Tt.do.length!==0){var Ut=0,Yt=0,ie=(Tt.do[0].tg&&!Tt.do[0].sx&&(Yt=Tt.do[0].tg,Ut=1),Yt);if(Tt.do[Ut].sx){for(var X=Ut;X<Tt.do.length;X++)ie+=Tt.do[X].tg;if(Yt<Rt&&Rt<ie&&!s)return 1}}}(Nt,Ve)){var We=Nt,At=Ve,Zt=ee,bn=0,On=0;We.do[0].tg&&!We.do[0].sx&&(bn=1,On=We.do[0].tg);for(var xt=null,Wt=On,re=bn;re<We.do.length;re++)if(At<=(Wt+=We.do[re].tg)&&!s){var je=null,Gt=null;if(We.do[re].sx){var je=n(We.do[re]),Gt=n(We.do[re]),Ge=At-(Wt-We.do[re].tg),Te=We.do[re].tg-Ge;if(Ge==0||Te==0)break;je.tg=Ge,Gt.tg=Te}(xt=n(We)).do=We.do.slice(0,re),je!==null&&xt.do.push(je),We.do=We.do.slice(re+1),Gt!==null&&We.do.unshift(Gt),We.dm[Zt]=We.dm[Zt]+1;break}xt!==null&&(We.Xa||(We.Xa=[]),We.pon&&(xt.pon=We.pon+1),xt.pon=We.pon+1,We.Xa.push(xt))}break;case"mvn":Ht[Ht.length]=0;break;case"in":Ht[ee]=Ht[ee]+1}else u(qt)&&yn[ee]===Ht[ee]+1&&(Ve=qt.do[0].pem,A(Nt)?Ht[ee]=Ht[ee]+2:(Ve<(Ue=J(Nt))||Ve===Ue&&(R(Nt)||It))&&(Ht[ee]=Ht[ee]+2,M(Nt)&&(Nt.otg=Ue),G(Nt.do,Ue-Ve)))})(C,N,Y);break;case"del":var K,rt,T,ot=C,at=N,q=ot.dm,ht=at.dm,lt=q.length-1,bt=ot.do[0].ao;if(at.do[0].ao,at.do[0].type,!ot.nil)if(q[lt]<ht[lt])ot.do[0].ao==="mvn"&&ot.do[0].type=="del"&&ot.do[0].pxs&&ot.do[0].pxs==="s"?q[lt]+1===ht[lt]&&at.do[0].dmpo&&at.do[0].type=="del"&&at.do[0].ao=="mn"&&ht.shift():q[lt]+1===ht[lt]&&ot.do[0].type=="del"&&ot.do[0].ao=="rn"&&at.do[0].dmpo&&at.do[0].type=="del"&&at.do[0].ao=="mn"?at.nil=!0:f(ot)&&ot.do[0].two?(A(at)||(K=J(at),rt=ot.do[0].pem,q[lt]+1===ht[lt]&&G(at.do,K+rt+ot.do[0].dlen-ot.do[0].extra)),ht[lt]=ht[lt]-2):ht[lt]=ht[lt]-1;else if(q[lt]===ht[lt])if(at.do[0].dmpo)switch(bt){case"mvn":at.do[0].type=="del"&&at.do[0].ao=="mvn"?at.nil=!0:ot.do[0].pxs&&ot.do[0].pxs==="s"?(at.do[0].type=="ins"&&at.do[0].ao,ht.pop(),at.dm=ht):at.do[0].type=="del"&&at.do[0].ao=="rn"?at.nil=!0:0<ht[lt]&&(ht[lt]=ht[lt]-1);break;case"mn":at.do[0].type==="upd"?0<ht[lt]&&(ht[lt]=ht[lt]-1):at.do[0].type==="del"&&at.do[0].ao==="mn"?at.nil=!0:at.do[0].type==="del"&&at.do[0].ao==="rn"?f(at)?0<ht[lt]&&(ht[lt]=ht[lt]-1):_(at,ot.do[0].target,!0):(at.do[0].type==="ins"&&at.do[0].ao,0<ht[lt]&&(ht[lt]=ht[lt]-1)),q.length!==ht.length&&(L(at)&&ht[1+lt]===0||ht[1+lt]===1)&&0<(T=ot.do[0].target)&&(at.do[0].tg&&!at.do[0].sx?at.do[0].tg=at.do[0].tg+T:at.do.unshift({tg:T})),q.length!==ht.length&&(ht[1+lt]=ht[1+lt]+ot.do[0].p-1);break;case"rn":at.do[0].type==="del"?at.do[0].ao==="rn"||at.do[0].ao==="mn"?at.nil=!0:at.do[0].ao:(at.do[0].type!=="ins"||at.do[0].ao==="sn"||at.do[0].ao==="mvn")&&(at.nil=!0)}else switch(bt){case"mvn":ot.do[0].pxs&&ot.do[0].pxs==="s"?(ht.pop(),at.dm=ht):0<ht[lt]&&(ht[lt]=ht[lt]-1);break;case"mn":0<ht[lt]&&(ht[lt]=ht[lt]-1),q.length!==ht.length&&(M(at)&&ht[1+lt]===0||ht[1+lt]===1)&&0<(T=ot.do[0].target)&&(at.do[0].tg&&!at.do[0].sx?at.do[0].tg=at.do[0].tg+T:at.do.unshift({tg:T})),ht[1+lt]=ht[1+lt]+ot.do[0].p-1;break;case"rn":D(at)?at.nil=!0:M(at)?at.n2b=!0:(R(at),at.nil=!0)}else q[lt]===ht[lt]+1&&ot.do[0].type=="del"&&ot.do[0].ao=="mn"&&at.do[0].dmpo&&at.do[0].type=="del"&&at.do[0].ao=="rn"&&!f(at)&&_(at,ot.do[0].target,!1);break;case"upd":K=N,rt=Y,tt=(bt=C).dm,F=K.dm,z=tt.length-1,tt[z]===F[z]&&tt.length===F.length&&K.do[0].dmpo&&K.do[0].type==="upd"&&rt&&(K.do[0].sx&&bt.do[0].sx?K.do[0].sx.type=bt.do[0].sx.type:K.nil=!0)}}else if(C.do[0].dmpo&&C.do[0].type==="ins"&&C.do[0].pxs==="x"&&N.do[0].dmpo&&N.do[0].type==="ins"&&N.do[0].ao==="sn"&&I(P,j)){P[P.length]=0;{var _t=N,V=n(_t.dm),Dt=(V[V.length-1]=1,n(V)),Ft=n(Dt),Qt=(1<Ft.length&&Ft.shift(),n(W.senaot)),V=(Qt.path=V,Qt.data.tn=_t.tn,Qt.data.n=_t.aon,$(Qt)),Qt=n(W.mvnaot),ue=(Qt.path=Dt,Qt.newPath=Ft,Qt.data.tn=_t.tn,Qt.data.n=_t.aon,B(Qt));_t.Xa||(_t.Xa=[]),V.pon=_t.pon+1,_t.Xa.push(V);for(var ae=0;ae<ue.length;ae++)ue[ae].pon=_t.pon+2+ae,_t.Xa.push(ue[ae])}}else if(C.do[0].dmpo&&C.do[0].type==="ins"&&C.do[0].pxs==="x"&&N.do[0].dmpo&&N.do[0].type==="del"&&N.do[0].ao==="mn"&&O(P,j)){{var se=N,Dt=n(se.dm),Ft=n(Dt),Qt=(Ft.unshift(0),n(W.mvnaot)),Ne=(Qt.path=Dt,Qt.newPath=Ft,Qt.data.tn=se.tn,Qt.data.n=se.aon,B(Qt));se.Xp||(se.Xp=[]);for(var ce=0;ce<Ne.length;ce++)Ne[ce].pon=se.pon+1+ce,se.Xp.push(Ne[ce])}P.unshift(0)}else(u(C)&&N.do[0].dmpo&&!u(N)&&j.length===P.length||u(C)&&k(N)&&j.length===P.length)&&(P[P.length-1]=P[P.length-1]+2);return N}function u(C){return C&&C.do&&C.do[0].dmpo&&C.do[0].ao==="in"&&C.do[0].ien}function f(C){return C&&C.do&&C.do[0].dmpo&&C.do[0].ao==="rn"&&C.do[0].den}function g(C,N){U(C)&&D(N)&&!s&&((N=J(N))!==C.do[0].target&&C.do[0].target,C.do[0].target=N)}function m(C,N){U(C)&&D(N)&&C.nil&&!s&&(N.nil=!0)}function h(C,N){M(C)&&L(N)&&N.nil&&!s&&(C.nil=!0,C.n2b)}function v(C,N,Y,tt){var F;C.nil?tt&&L(N)&&!s&&(N.nil=!0):M(C)&&L(N)&&(C.otg&&(N.otg=C.otg,delete C.otg),tt=J(C),N.do[0].target-tt!=0&&N.do[0].target,R(Y)&&tt<N.do[0].target&&!s&&(F=Math.random(),N.ft||(N.ft=[]),N.ft.push(F),Y.ft||(Y.ft=[]),Y.ft.push(F)),C.isInDR&&(N.isInDR=C.isInDR,delete C.isInDR),N.do[0].target=tt)}function b(C){for(var N=[],Y=0;Y<C.length;Y++)if(C[Y].Xa){N.push(C[Y]);for(var tt=0;tt<C[Y].Xa.length;tt++)N.push(C[Y].Xa[tt]);delete C[Y].Xa}else if(C[Y].Xp){for(var F=0;F<C[Y].Xp.length;F++)N.push(C[Y].Xp[F]);N.push(C[Y]),delete C[Y].Xp}else N.push(C[Y]);return N}function _(C,N,tt){var z=n(C.dm),tt=(tt&&(z[C.dm.length-1]=z[C.dm.length-1]-1),n(z)),F=(tt[z.length]=0,n(W.snaotndmpo)),tt=(F.path=tt,F.position=N,F.data.tn=C.tn,F.data.n=C.aon,Q(F)),F=(tt.pon=C.pon+1,n(W.snaotdmpo)),z=(F.path=z,F.target=N,F.data.tn=C.tn,F.data.n=C.aon,Q(F));z.pon=C.pon+2,C.Xp||(C.Xp=[]),C.Xp.push(tt),C.Xp.push(z)}function R(C){var N=0;return 0<C.do.length&&C.do[0].tg&&!C.do[0].sx&&(N=1),0<C.do.length&&C.do[N].sc}function x(C,N){if(k(C)||C.do.length===0)return!1;var Y=0,tt=0;if(0<C.do.length&&C.do[0].tg&&!C.do[0].sx&&!s&&(Y=1,tt=C.do[0].tg),C.do[Y].sc){for(var F=tt,z=Y;z<C.do.length;z++)C.do[z].tg?F+=C.do[z].tg:F+=C.do[z].sc;if(tt<N&&N<F)return!0}return!1}function w(C,N){if(C===null||N===null||C&&C.length===0||N&&N.length===0||C.length!==N.length)return!1;for(var Y=0;Y<C.length;Y++)if(C[Y]!==N[Y])return!1;return!0}function O(C,N){if(C!==null&&N!==null&&!(C&&C.length===0||N&&N.length===0||C.length>N.length)){for(var Y=0;Y<C.length-1;Y++)if(C[Y]!==N[Y])return;return 1}}function I(C,N){if(C===null||N===null||C&&C.length===0||C&&N.length===0||C.length>=N.length)return!1;for(var Y=0;Y<C.length;Y++)if(C[Y]!==N[Y])return!1;return!0}function L(C){return!(!(0<C.do.length&&C.do[0].dmpo&&C.do[0].type==="ins"&&C.do[0].ao==="sn")||s)}function M(C){var N=0;return 0<C.do.length&&C.do[0].tg&&!C.do[0].sx&&(N=1),!(!(0<C.do.length&&C.do[N].sx&&C.do[N].sx.sa2pn)||s)}function A(C){return 0<C.do.length&&C.do[0].dmpo&&!s}function k(C){if(C.do.length===0)return!1;var N=0;return 0<C.do.length&&C.do[0].tg&&!C.do[0].sx&&(N=1),!(!(0<C.do.length&&C.do[N].sx&&(C.do[N].sx.sa2pn||C.do[N].sx.ma2pn))||s)}function J(C){var N=0;return N=0<C.do.length&&C.do[0].tg&&!C.do[0].sx?C.do[0].tg:N}function G(C,N){C[0].tg&&!C[0].sx?0<N?C[0].tg=N:C.shift():0<N&&C.unshift({tg:N})}function U(C){return!(!(0<C.do.length&&C.do[0].dmpo&&C.do[0].type==="del"&&C.do[0].ao==="mn")||s)}function D(C){var N=0;return 0<C.do.length&&C.do[0].tg&&!C.do[0].sx&&(N=1),!(!(0<C.do.length&&C.do[N].sx&&C.do[N].sx.ma2pn)||s)}var W=null,Q=null,E=null,B=null,$=null;this.in=function(C){C.ivs&&(C=e.dec(C.ivs,e.lcmm()),c=C.c2p),r=e[c[0]],l=e[c[1]],n=e[c[2]]},this.xf=function(C,N,lt){C.op,N.op;for(var tt,F=null,z=null,z=lt?!(F=!1):!(F=N.context.to===i||N.context.to>C.context.to),P=0;P<C.op.length;P++)if(C.op[P].nil||C.op[P].n2b||s)C.op[P];else{C.op[P];for(var j=0;j<N.op.length;j++)if(N.op[j].nil||N.op[j].n2b||s)N.op[j];else{N.op[j];var V=C.op[P],K=N.op[j],rt=k(C.op[P]),T=k(N.op[j]),ot=(ot=C.op[P],tt=N.op[j],ot===null||tt===null||ot&&ot.do&&ot.do.length===0||tt&&tt.do&&tt.do.length===0?"wgqui":ot.do[0].dmpo||tt.do[0].dmpo?"xgqui":w(ot.dm,tt.dm)?"tqui":"wgqui");switch(ot){case"tqui":var at,q=[],ht=[];rt&&T?ht=u(C.op[P+1])||u(N.op[j+1])?(q=n(C.op[P].do),n(N.op[j].do)):(q=r(N.op[j].do,C.op[P].do,!0),r(C.op[P].do,N.op[j].do,!0)):rt&&!T?(at=J(C.op[P]),x(N.op[j],at)&&(C.op[P].isInDR=at),at=r(N.op[j].do,at,!1),N.op[j].do,q=n(C.op[P].do),ht=n(N.op[j].do),G(q,at)):!rt&&T?(at=J(N.op[j]),x(C.op[P],at)&&(N.op[j].isInDR=at),C.op[P].do,at=r(C.op[P].do,at,!1),ht=n(N.op[j].do),q=n(C.op[P].do),G(ht,at)):(q=r(N.op[j].do,C.op[P].do,F),ht=r(C.op[P].do,N.op[j].do,z)),V.do=q,K.do=ht;break;case"xgqui":V=d(N.op[j],C.op[P],F),K=d(C.op[P],N.op[j],z)}if(C.op[P]=V,N.op[j]=K,C.op[P].do.length===0&&(C.op[P].nil=!0),P<C.op.length-1&&v(C.op[P],C.op[P+1],N.op[j],rt),0<P&&h(C.op[P-1],C.op[P]),N.op[j].do.length===0&&(N.op[j].nil=!0),j<N.op.length-1&&v(N.op[j],N.op[j+1],C.op[P],T),0<j&&h(N.op[j-1],N.op[j]),P<C.op.length-1&&m(C.op[P],C.op[P+1]),0<P&&g(C.op[P-1],C.op[P]),j<N.op.length-1&&m(N.op[j],N.op[j+1]),0<j&&g(N.op[j-1],N.op[j]),C.op[P].nil||C.op[P].n2b||s){C.op[P];break}}}C.op,N.op;var lt=b(C.op),bt=b(N.op);C.op=lt,N.op=bt,C.op,N.op},this.ppt=function(C,N,Y){for(var tt,F=0;F<C.length;F++)if(C[F].do.length!==0&&!C[F].nil&&!s){tt=N;var z=(z=C[F])===null||z.do.length===0?"wglou":z.do[0].dmpo&&!z.do[0].upd&&O(z.dm,tt.path)?"xglou":w(z.dm,tt.path)?"tlou":"wglou";switch(z){case"tlou":N.pos=l(C[F].do,N.pos,!Y);break;case"xglou":ot=T=rt=K=V=j=P=void 0;var P=C[F],j=N,V=Y,K=P.dm,rt=j.path,T=K.length-1,ot=P.do[0].pos;switch(P.do[0].type){case"ins":ot<rt[T]&&!s?P.do[0].ao==="mvn"||(rt[T]=rt[T]+P.do[0].len):ot===rt[T]&&(P.do[0].ao==="sn"?(j.pos>P.do[0].target||j.pos==P.do[0].target&&V)&&(j.pos,P.do[0].target,rt[T]=rt[T]+1,j.pos=j.pos-P.do[0].target):P.do[0].ao==="mvn"?rt[rt.length]=0:P.do[0].ao==="in"?rt[T]=rt[T]+1:P.do[0].ao);break;case"del":ot<rt[T]&&!s?P.do[0].ao==="mvn"&&P.do[0].pxs&&P.do[0].pxs==="s"||(rt[T]=rt[T]-P.do[0].len):ot===rt[T]&&(P.do[0].ao==="mvn"?P.do[0].pxs&&P.do[0].pxs==="s"?(rt=rt.slice(0,rt.length-1),j.path=rt):0<rt[T]&&(rt[T]=rt[T]-P.do[0].len):P.do[0].ao==="mn"?0<rt[T]&&(rt[T]=rt[T]-1,j.pos=j.pos+P.do[0].target):P.do[0].ao==="rn"?0<rt[T]&&(rt[T]=rt[T]-1,j.pos=0):P.do[0].ao);break;default:P.do[0].type}}}},this.ep=w,this.issp=I,this.ndmn=D,this.dmn=U,this.ndsn=M,this.dsn=L,this.at=function(C){W=C},this.sn=function(C){Q=C},this.mn=function(C){E=C},this.mvn=function(C){B=C},this.sen=function(C){$=C}}},{}],292:[function(o,a,t){(function(e){(function(){var s=o("@babel/runtime/helpers/interopRequireDefault")(o("@babel/runtime/helpers/defineProperty"));function i(m,h){var v,b=Object.keys(m);return Object.getOwnPropertySymbols&&(v=Object.getOwnPropertySymbols(m),h&&(v=v.filter(function(_){return Object.getOwnPropertyDescriptor(m,_).enumerable})),b.push.apply(b,v)),b}function r(m){for(var h=1;h<arguments.length;h++){var v=arguments[h]!=null?arguments[h]:{};h%2?i(Object(v),!0).forEach(function(b){(0,s.default)(m,b,v[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(v)):i(Object(v)).forEach(function(b){Object.defineProperty(m,b,Object.getOwnPropertyDescriptor(v,b))})}return m}function l(){return(65536*(1+Math.random())|0).toString(16).substring(1)}var n=o("extend"),c=o("../env"),d=c.isClickup,u=c.isProd,f="tinycomment",g="data:application/json;base64,";a.exports={isArray:function(m){return Object.prototype.toString.call(m)=="[object Array]"},jsonEscape:function(m){return m.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")},getStyle:function(m,h){var v,b,_=(m.ownerDocument||document).defaultView;return _&&_.getComputedStyle?(h=h.replace(/([A-Z])/g,"-$1").toLowerCase(),_.getComputedStyle(m,null).getPropertyValue(h)):m.currentStyle?(h=h.replace(/\-(\w)/g,function(R,x){return x.toUpperCase()}),_=m.currentStyle[h],/^\d+(em|pt|%|ex)?$/i.test(_)?(h=_,v=m.style.left,b=m.runtimeStyle.left,m.runtimeStyle.left=m.currentStyle.left,m.style.left=h||0,h=m.style.pixelLeft+"px",m.style.left=v,m.runtimeStyle.left=b,h):_):void 0},keyBy:function(m,h){return(m||[]).reduce(function(v,b){return r(r({},v),{},(0,s.default)({},h?b[h]:b,b))},{})},splitComment:function(v){var h=document.createElement("div"),v=(h.innerHTML=v,function(b){for(var _=[],R=0;R<b.childNodes.length;R++){var x=b.childNodes[R];x.nodeType,x.innerHTML,x.data,x.nodeType===8&&x.data.includes(f)&&_.push(x)}return _}(h));return v.length,v.length?((v=v[0]).remove(),{comment:v,doc:h.innerHTML}):{comment:null,doc:h.innerHTML}},mergeComment:function(m){var h=document.createElement("div");return h.innerHTML=m.doc,m.comment&&h.appendChild(m.comment),h.innerHTML},extractComment:function(b){if(!b||b.nodeType!==8)throw Error("[extractComment] did not receive a valid comment node");var b=b.data,h=b.indexOf(g)+g.length,v=b.substr(0,h),b=b.substr(h);return{header:v,commentJSON:JSON.parse(e.from(b,"base64").toString("utf8"))}},buildComment:function(v){h=JSON.stringify(v.commentJSON);var h=e.from(h,"utf8").toString("base64"),v="".concat(v.header).concat(h);return document.createComment(v)},isTinycomment:function(m){var h=document.createElement("div");return h.innerHTML=m,h.childNodes[0].nodeType==8},createDOMComment:function(m){return document.createComment(m)},rand4:l,guid:function(){return l()+l()+"-"+l()+"-"+l()+"-"+l()+"-"+l()+l()+l()},deepCopy:function(m){return d||u?m:n(!0,{},m)},shallowCopy:function(m){return Object.assign({},m)},parsePos:function(m){return parseFloat(m,10)||0},extendClass:function(m,h){m.prototype=Object.create(h.prototype),Object.defineProperty(m.prototype,"constructor",{enumerable:!1,value:m,writable:!0}),m.prototype.super=function(){for(var v=arguments.length,b=new Array(v),_=0;_<v;_++)b[_]=arguments[_];h.call.apply(h,[this].concat(b))}},clearTimer:function(m){m!==void 0&&clearTimeout(m)},printOpList:function(m){var h="";if(m.length===0)return"[]";for(var v=0;v<m[0].op.length;v++)h=h+v+": = "+JSON.stringify(m[0].op[v])+`
|
|
149
|
+
`;return h},getTabId:function(){return window.sessionStorage?window.sessionStorage.getItem("_cdxTabId"):null},clone:function(m){try{return JSON.parse(JSON.stringify(m))}catch(h){u||console.error(h)}}}}).call(this)}).call(this,o("buffer").Buffer)},{"../env":283,"@babel/runtime/helpers/defineProperty":296,"@babel/runtime/helpers/interopRequireDefault":297,buffer:135,extend:315}],293:[function(o,a,t){Object.defineProperty(t,"__esModule",{value:!0}),t.selectors=t.normalizeNodes=t.normalizeComment=t.normalizeClasses=t.normalizeAttributes=t.classes=void 0,t.selectors={tinymce:[{selector:"span",attr:"data-mce-annotation-uid"}],froala:[{selector:"img",attr:"src",attrMatch:"blob"}]},t.classes={tinymce:["tox-comment--active"],froala:["fr-selected-cell"]},t.normalizeComment=function(e){var s=document.createElement("div");s.innerHTML=e;for(var i=0;i<s.childNodes.length;i++){var r=s.childNodes[i];r.nodeType===8&&(s.removeChild(r),i--)}return s.innerHTML},t.normalizeClasses=function(e,s){var i=document.createElement("div");return i.innerHTML=e,s.forEach(function(r){var l=i.getElementsByClassName(r);[].slice.call(l).forEach(function(n){n.outerHTML,n.classList.remove(r),n.classList.length===0&&(n.outerHTML,n.removeAttribute("class")),n.outerHTML})}),i.innerHTML},t.normalizeAttributes=function(e,s){var i=document.createElement("div");return i.innerHTML=e,i.innerHTML,s.forEach(function(r){var l="".concat(r.selector,"[").concat(r.attr,"]");i.querySelectorAll(l).forEach(function(n){(!r.attrMatch||-1<n.getAttribute(r.attr).indexOf(r.attrMatch))&&n.removeAttribute(r.attr)})}),i.innerHTML},t.normalizeNodes=function(e,s){var i=document.createElement("div");return i.innerHTML=e,s.forEach(function(r){var l="".concat(r.selector,"[").concat(r.attr,"]");i.querySelectorAll(l).forEach(function(n){(!r.attrMatch||-1<n.getAttribute(r.attr).indexOf(r.attrMatch))&&n.remove()})}),i.innerHTML}},{}],294:[function(o,a,t){arguments[4][2][0].apply(t,arguments)},{dup:2}],295:[function(o,a,t){arguments[4][3][0].apply(t,arguments)},{dup:3}],296:[function(o,a,t){arguments[4][9][0].apply(t,arguments)},{dup:9}],297:[function(o,a,t){arguments[4][13][0].apply(t,arguments)},{dup:13}],298:[function(o,a,t){arguments[4][16][0].apply(t,arguments)},{dup:16}],299:[function(o,a,t){arguments[4][17][0].apply(t,arguments)},{dup:17}],300:[function(o,a,t){arguments[4][20][0].apply(t,arguments)},{"./arrayWithHoles.js":295,"./iterableToArrayLimit.js":298,"./nonIterableRest.js":299,"./unsupportedIterableToArray.js":302,dup:20}],301:[function(o,a,t){arguments[4][22][0].apply(t,arguments)},{dup:22}],302:[function(o,a,t){arguments[4][23][0].apply(t,arguments)},{"./arrayLikeToArray.js":294,dup:23}],303:[function(o,a,t){var e=o("get-intrinsic"),s=o("./"),i=s(e("String.prototype.indexOf"));a.exports=function(r,l){return l=e(r,!!l),typeof l=="function"&&-1<i(r,".prototype.")?s(l):l}},{"./":304,"get-intrinsic":320}],304:[function(s,a,t){var e=s("function-bind"),s=s("get-intrinsic"),i=s("%Function.prototype.apply%"),r=s("%Function.prototype.call%"),l=s("%Reflect.apply%",!0)||e.call(r,i),n=s("%Object.getOwnPropertyDescriptor%",!0),c=s("%Object.defineProperty%",!0),d=s("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}a.exports=function(f){var g=l(e,r,arguments);return n&&c&&n(g,"length").configurable&&c(g,"length",{value:1+d(0,f.length-(arguments.length-1))}),g};function u(){return l(e,i,arguments)}c?c(a.exports,"apply",{value:u}):a.exports.apply=u},{"function-bind":318,"get-intrinsic":320}],305:[function(o,a,t){var e,s;e=this,s=function(i){for(var r=i,l=r.lib.BlockCipher,J=r.algo,n=[],c=[],d=[],u=[],f=[],g=[],m=[],h=[],v=[],b=[],_=[],R=0;R<256;R++)_[R]=R<128?R<<1:R<<1^283;for(var x=0,w=0,R=0;R<256;R++){var O=w^w<<1^w<<2^w<<3^w<<4,I=(n[x]=O=O>>>8^255&O^99,_[c[O]=x]),L=_[I],M=_[L],A=257*_[O]^16843008*O;d[x]=A<<24|A>>>8,u[x]=A<<16|A>>>16,f[x]=A<<8|A>>>24,g[x]=A,m[O]=(A=16843009*M^65537*L^257*I^16843008*x)<<24|A>>>8,h[O]=A<<16|A>>>16,v[O]=A<<8|A>>>24,b[O]=A,x?(x=I^_[_[_[M^I]]],w^=_[_[w]]):x=w=1}var k=[0,1,2,4,8,16,32,64,128,27,54],J=J.AES=l.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var G=this._keyPriorReset=this._key,U=G.words,D=G.sigBytes/4,W=4*(1+(this._nRounds=6+D)),Q=this._keySchedule=[],E=0;E<W;E++)E<D?Q[E]=U[E]:(C=Q[E-1],E%D?6<D&&E%D==4&&(C=n[C>>>24]<<24|n[C>>>16&255]<<16|n[C>>>8&255]<<8|n[255&C]):(C=n[(C=C<<8|C>>>24)>>>24]<<24|n[C>>>16&255]<<16|n[C>>>8&255]<<8|n[255&C],C^=k[E/D|0]<<24),Q[E]=Q[E-D]^C);for(var B=this._invKeySchedule=[],$=0;$<W;$++){var C,E=W-$;C=$%4?Q[E]:Q[E-4],B[$]=$<4||E<=4?C:m[n[C>>>24]]^h[n[C>>>16&255]]^v[n[C>>>8&255]]^b[n[255&C]]}}},encryptBlock:function(G,U){this._doCryptBlock(G,U,this._keySchedule,d,u,f,g,n)},decryptBlock:function(G,U){var D=G[U+1],D=(G[U+1]=G[U+3],G[U+3]=D,this._doCryptBlock(G,U,this._invKeySchedule,m,h,v,b,c),G[U+1]);G[U+1]=G[U+3],G[U+3]=D},_doCryptBlock:function(G,U,D,W,Q,E,B,$){for(var C=this._nRounds,j=G[U]^D[0],V=G[U+1]^D[1],K=G[U+2]^D[2],rt=G[U+3]^D[3],N=4,Y=1;Y<C;Y++)var tt=W[j>>>24]^Q[V>>>16&255]^E[K>>>8&255]^B[255&rt]^D[N++],F=W[V>>>24]^Q[K>>>16&255]^E[rt>>>8&255]^B[255&j]^D[N++],z=W[K>>>24]^Q[rt>>>16&255]^E[j>>>8&255]^B[255&V]^D[N++],P=W[rt>>>24]^Q[j>>>16&255]^E[V>>>8&255]^B[255&K]^D[N++],j=tt,V=F,K=z,rt=P;tt=($[j>>>24]<<24|$[V>>>16&255]<<16|$[K>>>8&255]<<8|$[255&rt])^D[N++],F=($[V>>>24]<<24|$[K>>>16&255]<<16|$[rt>>>8&255]<<8|$[255&j])^D[N++],z=($[K>>>24]<<24|$[rt>>>16&255]<<16|$[j>>>8&255]<<8|$[255&V])^D[N++],P=($[rt>>>24]<<24|$[j>>>16&255]<<16|$[V>>>8&255]<<8|$[255&K])^D[N++],G[U]=tt,G[U+1]=F,G[U+2]=z,G[U+3]=P},keySize:8});return r.AES=l._createHelper(J),i.AES},typeof t=="object"?a.exports=t=s(o("./core"),o("./enc-base64"),o("./md5"),o("./evpkdf"),o("./cipher-core")):s(e.CryptoJS)},{"./cipher-core":306,"./core":307,"./enc-base64":308,"./evpkdf":309,"./md5":311}],306:[function(o,a,t){var e,s;e=this,s=function(i){function r(x){return typeof x=="string"?R:_}function l(x,w,O){var I,L=this._iv;L?(I=L,this._iv=void 0):I=this._prevBlock;for(var M=0;M<O;M++)x[w+M]^=I[M]}var n,c,d,u,f,g,m,h,v,b,_,R;i.lib.Cipher||(n=(i=i).lib,c=n.Base,d=n.WordArray,u=n.BufferedBlockAlgorithm,(f=i.enc).Utf8,g=f.Base64,m=i.algo.EvpKDF,h=n.Cipher=u.extend({cfg:c.extend(),createEncryptor:function(x,w){return this.create(this._ENC_XFORM_MODE,x,w)},createDecryptor:function(x,w){return this.create(this._DEC_XFORM_MODE,x,w)},init:function(x,w,O){this.cfg=this.cfg.extend(O),this._xformMode=x,this._key=w,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(x){return this._append(x),this._process()},finalize:function(x){return x&&this._append(x),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(x){return{encrypt:function(w,O,I){return r(O).encrypt(x,w,O,I)},decrypt:function(w,O,I){return r(O).decrypt(x,w,O,I)}}}}),n.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),f=i.mode={},v=n.BlockCipherMode=c.extend({createEncryptor:function(x,w){return this.Encryptor.create(x,w)},createDecryptor:function(x,w){return this.Decryptor.create(x,w)},init:function(x,w){this._cipher=x,this._iv=w}}),v=f.CBC=((f=v.extend()).Encryptor=f.extend({processBlock:function(x,w){var O=this._cipher,I=O.blockSize;l.call(this,x,w,I),O.encryptBlock(x,w),this._prevBlock=x.slice(w,w+I)}}),f.Decryptor=f.extend({processBlock:function(x,w){var O=this._cipher,I=O.blockSize,L=x.slice(w,w+I);O.decryptBlock(x,w),l.call(this,x,w,I),this._prevBlock=L}}),f),f=(i.pad={}).Pkcs7={pad:function(x,w){for(var w=4*w,O=w-x.sigBytes%w,I=O<<24|O<<16|O<<8|O,L=[],M=0;M<O;M+=4)L.push(I);w=d.create(L,O),x.concat(w)},unpad:function(x){var w=255&x.words[x.sigBytes-1>>>2];x.sigBytes-=w}},n.BlockCipher=h.extend({cfg:h.cfg.extend({mode:v,padding:f}),reset:function(){h.reset.call(this);var x,O=this.cfg,w=O.iv,O=O.mode;this._xformMode==this._ENC_XFORM_MODE?x=O.createEncryptor:(x=O.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==x?this._mode.init(this,w&&w.words):(this._mode=x.call(O,this,w&&w.words),this._mode.__creator=x)},_doProcessBlock:function(x,w){this._mode.processBlock(x,w)},_doFinalize:function(){var x,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),x=this._process(!0)):(x=this._process(!0),w.unpad(x)),x},blockSize:4}),b=n.CipherParams=c.extend({init:function(x){this.mixIn(x)},toString:function(x){return(x||this.formatter).stringify(this)}}),v=(i.format={}).OpenSSL={stringify:function(O){var w=O.ciphertext,O=O.salt;return(O?d.create([1398893684,1701076831]).concat(O).concat(w):w).toString(g)},parse:function(O){var w,O=g.parse(O),I=O.words;return I[0]==1398893684&&I[1]==1701076831&&(w=d.create(I.slice(2,4)),I.splice(0,4),O.sigBytes-=16),b.create({ciphertext:O,salt:w})}},_=n.SerializableCipher=c.extend({cfg:c.extend({format:v}),encrypt:function(x,L,O,I){I=this.cfg.extend(I);var M=x.createEncryptor(O,I),L=M.finalize(L),M=M.cfg;return b.create({ciphertext:L,key:O,iv:M.iv,algorithm:x,mode:M.mode,padding:M.padding,blockSize:x.blockSize,formatter:I.format})},decrypt:function(x,w,O,I){return I=this.cfg.extend(I),w=this._parse(w,I.format),x.createDecryptor(O,I).finalize(w.ciphertext)},_parse:function(x,w){return typeof x=="string"?w.parse(x,this):x}}),f=(i.kdf={}).OpenSSL={execute:function(x,w,O,I){return I=I||d.random(8),x=m.create({keySize:w+O}).compute(x,I),O=d.create(x.words.slice(w),4*O),x.sigBytes=4*w,b.create({key:x,iv:O,salt:I})}},R=n.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:f}),encrypt:function(x,w,O,I){return O=(I=this.cfg.extend(I)).kdf.execute(O,x.keySize,x.ivSize),I.iv=O.iv,x=_.encrypt.call(this,x,w,O.key,I),x.mixIn(O),x},decrypt:function(x,w,O,I){return I=this.cfg.extend(I),w=this._parse(w,I.format),O=I.kdf.execute(O,x.keySize,x.ivSize,w.salt),I.iv=O.iv,_.decrypt.call(this,x,w,O.key,I)}}))},typeof t=="object"?a.exports=t=s(o("./core"),o("./evpkdf")):s(e.CryptoJS)},{"./core":307,"./evpkdf":309}],307:[function(o,a,t){var e,s;e=this,s=function(){var i,r,l,n,c,d,u,f,g,m,h,v;function b(){}return i=Math,r=Object.create||function(_){return b.prototype=_,_=new b,b.prototype=null,_},n=(l={}).lib={},c=n.Base={extend:function(_){var R=r(this);return _&&R.mixIn(_),R.hasOwnProperty("init")&&this.init!==R.init||(R.init=function(){R.$super.init.apply(this,arguments)}),(R.init.prototype=R).$super=this,R},create:function(){var _=this.extend();return _.init.apply(_,arguments),_},init:function(){},mixIn:function(_){for(var R in _)_.hasOwnProperty(R)&&(this[R]=_[R]);_.hasOwnProperty("toString")&&(this.toString=_.toString)},clone:function(){return this.init.prototype.extend(this)}},d=n.WordArray=c.extend({init:function(_,R){_=this.words=_||[],this.sigBytes=R??4*_.length},toString:function(_){return(_||f).stringify(this)},concat:function(_){var R=this.words,x=_.words,w=this.sigBytes,O=_.sigBytes;if(this.clamp(),w%4)for(var I=0;I<O;I++){var L=x[I>>>2]>>>24-I%4*8&255;R[w+I>>>2]|=L<<24-(w+I)%4*8}else for(I=0;I<O;I+=4)R[w+I>>>2]=x[I>>>2];return this.sigBytes+=O,this},clamp:function(){var _=this.words,R=this.sigBytes;_[R>>>2]&=4294967295<<32-R%4*8,_.length=i.ceil(R/4)},clone:function(){var _=c.clone.call(this);return _.words=this.words.slice(0),_},random:function(_){for(var R=[],x=0;x<_;x+=4){var w=function(I){var L=987654321,M=4294967295;return function(){var A=((L=36969*(65535&L)+(L>>16)&M)<<16)+(I=18e3*(65535&I)+(I>>16)&M)&M;return(A/4294967296+.5)*(.5<i.random()?1:-1)}}(4294967296*(O||i.random())),O=987654071*w();R.push(4294967296*w()|0)}return new d.init(R,_)}}),u=l.enc={},f=u.Hex={stringify:function(_){for(var R=_.words,x=_.sigBytes,w=[],O=0;O<x;O++){var I=R[O>>>2]>>>24-O%4*8&255;w.push((I>>>4).toString(16)),w.push((15&I).toString(16))}return w.join("")},parse:function(_){for(var R=_.length,x=[],w=0;w<R;w+=2)x[w>>>3]|=parseInt(_.substr(w,2),16)<<24-w%8*4;return new d.init(x,R/2)}},g=u.Latin1={stringify:function(_){for(var R=_.words,x=_.sigBytes,w=[],O=0;O<x;O++){var I=R[O>>>2]>>>24-O%4*8&255;w.push(String.fromCharCode(I))}return w.join("")},parse:function(_){for(var R=_.length,x=[],w=0;w<R;w++)x[w>>>2]|=(255&_.charCodeAt(w))<<24-w%4*8;return new d.init(x,R)}},m=u.Utf8={stringify:function(_){try{return decodeURIComponent(escape(g.stringify(_)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(_){return g.parse(unescape(encodeURIComponent(_)))}},h=n.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(_){typeof _=="string"&&(_=m.parse(_)),this._data.concat(_),this._nDataBytes+=_.sigBytes},_process:function(M){var R=this._data,x=R.words,w=R.sigBytes,O=this.blockSize,I=w/(4*O),L=(I=M?i.ceil(I):i.max((0|I)-this._minBufferSize,0))*O,M=i.min(4*L,w);if(L){for(var A=0;A<L;A+=O)this._doProcessBlock(x,A);var k=x.splice(0,L);R.sigBytes-=M}return new d.init(k,M)},clone:function(){var _=c.clone.call(this);return _._data=this._data.clone(),_},_minBufferSize:0}),n.Hasher=h.extend({cfg:c.extend(),init:function(_){this.cfg=this.cfg.extend(_),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(_){return this._append(_),this._process(),this},finalize:function(_){return _&&this._append(_),this._doFinalize()},blockSize:16,_createHelper:function(_){return function(R,x){return new _.init(x).finalize(R)}},_createHmacHelper:function(_){return function(R,x){return new v.HMAC.init(_,x).finalize(R)}}}),v=l.algo={},l},typeof t=="object"?a.exports=t=s():e.CryptoJS=s()},{}],308:[function(o,a,t){var e,s;e=this,s=function(i){var r;return r=i.lib.WordArray,i.enc.Base64={stringify:function(l){for(var n=l.words,c=l.sigBytes,d=this._map,u=(l.clamp(),[]),f=0;f<c;f+=3)for(var g=(n[f>>>2]>>>24-f%4*8&255)<<16|(n[f+1>>>2]>>>24-(f+1)%4*8&255)<<8|n[f+2>>>2]>>>24-(f+2)%4*8&255,m=0;m<4&&f+.75*m<c;m++)u.push(d.charAt(g>>>6*(3-m)&63));var h=d.charAt(64);if(h)for(;u.length%4;)u.push(h);return u.join("")},parse:function(l){var n=l.length,c=this._map;if(!(d=this._reverseMap))for(var d=this._reverseMap=[],u=0;u<c.length;u++)d[c.charCodeAt(u)]=u;for(var f,g,m=c.charAt(64),h=(!m||(m=l.indexOf(m))!==-1&&(n=m),l),v=n,b=d,_=[],R=0,x=0;x<v;x++)x%4&&(f=b[h.charCodeAt(x-1)]<<x%4*2,g=b[h.charCodeAt(x)]>>>6-x%4*2,_[R>>>2]|=(f|g)<<24-R%4*8,R++);return r.create(_,R)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64},typeof t=="object"?a.exports=t=s(o("./core")):s(e.CryptoJS)},{"./core":307}],309:[function(o,a,t){var e,s;e=this,s=function(i){var r,l,n,c,d,u;return l=(r=i).lib,n=l.Base,c=l.WordArray,l=r.algo,d=l.MD5,u=l.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:d,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,g){for(var m=this.cfg,h=m.hasher.create(),v=c.create(),b=v.words,_=m.keySize,R=m.iterations;b.length<_;){x&&h.update(x);var x=h.update(f).finalize(g);h.reset();for(var w=1;w<R;w++)x=h.finalize(x),h.reset();v.concat(x)}return v.sigBytes=4*_,v}}),r.EvpKDF=function(f,g,m){return u.create(m).compute(f,g)},i.EvpKDF},typeof t=="object"?a.exports=t=s(o("./core"),o("./sha1"),o("./hmac")):s(e.CryptoJS)},{"./core":307,"./hmac":310,"./sha1":312}],310:[function(o,a,t){var e,s;e=this,s=function(i){var r,l;r=i.lib.Base,l=i.enc.Utf8,i.algo.HMAC=r.extend({init:function(n,c){n=this._hasher=new n.init,typeof c=="string"&&(c=l.parse(c));for(var d=n.blockSize,u=4*d,n=((c=c.sigBytes>u?n.finalize(c):c).clamp(),this._oKey=c.clone()),c=this._iKey=c.clone(),f=n.words,g=c.words,m=0;m<d;m++)f[m]^=1549556828,g[m]^=909522486;n.sigBytes=c.sigBytes=u,this.reset()},reset:function(){var n=this._hasher;n.reset(),n.update(this._iKey)},update:function(n){return this._hasher.update(n),this},finalize:function(d){var c=this._hasher,d=c.finalize(d);return c.reset(),c.finalize(this._oKey.clone().concat(d))}})},typeof t=="object"?a.exports=t=s(o("./core")):s(e.CryptoJS)},{"./core":307}],311:[function(o,a,t){var e,s;e=this,s=function(i){for(var r=Math,l=i,n=(d=l.lib).WordArray,c=d.Hasher,d=l.algo,u=[],f=0;f<64;f++)u[f]=4294967296*r.abs(r.sin(f+1))|0;function g(b,_,R,x,w,O,I){return b=b+(_&R|~_&x)+w+I,(b<<O|b>>>32-O)+_}function m(b,_,R,x,w,O,I){return b=b+(_&x|R&~x)+w+I,(b<<O|b>>>32-O)+_}function h(b,_,R,x,w,O,I){return b=b+(_^R^x)+w+I,(b<<O|b>>>32-O)+_}function v(b,_,R,x,w,O,I){return b=b+(R^(_|~x))+w+I,(b<<O|b>>>32-O)+_}return d=d.MD5=c.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,_){for(var R=0;R<16;R++){var x=_+R,w=b[x];b[x]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8)}var O=this._hash.words,I=b[_+0],L=b[_+1],M=b[_+2],A=b[_+3],k=b[_+4],J=b[_+5],G=b[_+6],U=b[_+7],D=b[_+8],W=b[_+9],Q=b[_+10],E=b[_+11],B=b[_+12],$=b[_+13],C=b[_+14],N=b[_+15],Y=g(O[0],z=O[1],F=O[2],tt=O[3],I,7,u[0]),tt=g(tt,Y,z,F,L,12,u[1]),F=g(F,tt,Y,z,M,17,u[2]),z=g(z,F,tt,Y,A,22,u[3]);Y=g(Y,z,F,tt,k,7,u[4]),tt=g(tt,Y,z,F,J,12,u[5]),F=g(F,tt,Y,z,G,17,u[6]),z=g(z,F,tt,Y,U,22,u[7]),Y=g(Y,z,F,tt,D,7,u[8]),tt=g(tt,Y,z,F,W,12,u[9]),F=g(F,tt,Y,z,Q,17,u[10]),z=g(z,F,tt,Y,E,22,u[11]),Y=g(Y,z,F,tt,B,7,u[12]),tt=g(tt,Y,z,F,$,12,u[13]),F=g(F,tt,Y,z,C,17,u[14]),Y=m(Y,z=g(z,F,tt,Y,N,22,u[15]),F,tt,L,5,u[16]),tt=m(tt,Y,z,F,G,9,u[17]),F=m(F,tt,Y,z,E,14,u[18]),z=m(z,F,tt,Y,I,20,u[19]),Y=m(Y,z,F,tt,J,5,u[20]),tt=m(tt,Y,z,F,Q,9,u[21]),F=m(F,tt,Y,z,N,14,u[22]),z=m(z,F,tt,Y,k,20,u[23]),Y=m(Y,z,F,tt,W,5,u[24]),tt=m(tt,Y,z,F,C,9,u[25]),F=m(F,tt,Y,z,A,14,u[26]),z=m(z,F,tt,Y,D,20,u[27]),Y=m(Y,z,F,tt,$,5,u[28]),tt=m(tt,Y,z,F,M,9,u[29]),F=m(F,tt,Y,z,U,14,u[30]),Y=h(Y,z=m(z,F,tt,Y,B,20,u[31]),F,tt,J,4,u[32]),tt=h(tt,Y,z,F,D,11,u[33]),F=h(F,tt,Y,z,E,16,u[34]),z=h(z,F,tt,Y,C,23,u[35]),Y=h(Y,z,F,tt,L,4,u[36]),tt=h(tt,Y,z,F,k,11,u[37]),F=h(F,tt,Y,z,U,16,u[38]),z=h(z,F,tt,Y,Q,23,u[39]),Y=h(Y,z,F,tt,$,4,u[40]),tt=h(tt,Y,z,F,I,11,u[41]),F=h(F,tt,Y,z,A,16,u[42]),z=h(z,F,tt,Y,G,23,u[43]),Y=h(Y,z,F,tt,W,4,u[44]),tt=h(tt,Y,z,F,B,11,u[45]),F=h(F,tt,Y,z,N,16,u[46]),Y=v(Y,z=h(z,F,tt,Y,M,23,u[47]),F,tt,I,6,u[48]),tt=v(tt,Y,z,F,U,10,u[49]),F=v(F,tt,Y,z,C,15,u[50]),z=v(z,F,tt,Y,J,21,u[51]),Y=v(Y,z,F,tt,B,6,u[52]),tt=v(tt,Y,z,F,A,10,u[53]),F=v(F,tt,Y,z,Q,15,u[54]),z=v(z,F,tt,Y,L,21,u[55]),Y=v(Y,z,F,tt,D,6,u[56]),tt=v(tt,Y,z,F,N,10,u[57]),F=v(F,tt,Y,z,G,15,u[58]),z=v(z,F,tt,Y,$,21,u[59]),Y=v(Y,z,F,tt,k,6,u[60]),tt=v(tt,Y,z,F,E,10,u[61]),F=v(F,tt,Y,z,M,15,u[62]),z=v(z,F,tt,Y,W,21,u[63]),O[0]=O[0]+Y|0,O[1]=O[1]+z|0,O[2]=O[2]+F|0,O[3]=O[3]+tt|0},_doFinalize:function(){for(var b=this._data,_=b.words,R=8*this._nDataBytes,x=8*b.sigBytes,w=(_[x>>>5]|=128<<24-x%32,r.floor(R/4294967296)),w=(_[15+(64+x>>>9<<4)]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8),_[14+(64+x>>>9<<4)]=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8),b.sigBytes=4*(_.length+1),this._process(),this._hash),O=w.words,I=0;I<4;I++){var L=O[I];O[I]=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8)}return w},clone:function(){var b=c.clone.call(this);return b._hash=this._hash.clone(),b}}),l.MD5=c._createHelper(d),l.HmacMD5=c._createHmacHelper(d),i.MD5},typeof t=="object"?a.exports=t=s(o("./core")):s(e.CryptoJS)},{"./core":307}],312:[function(o,a,t){var e,s;e=this,s=function(i){var r,l,n,c,d;return l=(r=i).lib,n=l.WordArray,c=l.Hasher,l=r.algo,d=[],l=l.SHA1=c.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,f){for(var g=this._hash.words,m=g[0],h=g[1],v=g[2],b=g[3],_=g[4],R=0;R<80;R++){R<16?d[R]=0|u[f+R]:(x=d[R-3]^d[R-8]^d[R-14]^d[R-16],d[R]=x<<1|x>>>31);var x=(m<<5|m>>>27)+_+d[R];x+=R<20?1518500249+(h&v|~h&b):R<40?1859775393+(h^v^b):R<60?(h&v|h&b|v&b)-1894007588:(h^v^b)-899497514,_=b,b=v,v=h<<30|h>>>2,h=m,m=x}g[0]=g[0]+m|0,g[1]=g[1]+h|0,g[2]=g[2]+v|0,g[3]=g[3]+b|0,g[4]=g[4]+_|0},_doFinalize:function(){var u=this._data,f=u.words,g=8*this._nDataBytes,m=8*u.sigBytes;return f[m>>>5]|=128<<24-m%32,f[14+(64+m>>>9<<4)]=Math.floor(g/4294967296),f[15+(64+m>>>9<<4)]=g,u.sigBytes=4*f.length,this._process(),this._hash},clone:function(){var u=c.clone.call(this);return u._hash=this._hash.clone(),u}}),r.SHA1=c._createHelper(l),r.HmacSHA1=c._createHmacHelper(l),i.SHA1},typeof t=="object"?a.exports=t=s(o("./core")):s(e.CryptoJS)},{"./core":307}],313:[function(o,a,t){var e=o("object-keys"),s=o("is-arguments"),i=o("object-is"),r=o("is-regex"),l=o("regexp.prototype.flags"),n=o("is-date-object"),c=Date.prototype.getTime;function d(g,m,_){var v,b,_=_||{};{if(_.strict?i(g,m):g===m)return!0;if(!g||!m||typeof g!="object"&&typeof m!="object")return _.strict?i(g,m):g==m;var R=g,x=m,w=_;if(typeof R!=typeof x||u(R)||u(x)||R.prototype!==x.prototype||s(R)!==s(x)||(g=r(R),m=r(x),g!==m))return!1;if(g||m)return R.source===x.source&&l(R)===l(x);if(n(R)&&n(x))return c.call(R)===c.call(x);if(g=f(R),m=f(x),g!==m)return!1;if(g||m){if(R.length!==x.length)return!1;for(v=0;v<R.length;v++)if(R[v]!==x[v])return!1;return!0}if(typeof R!=typeof x)return!1;try{var O=e(R),I=e(x)}catch{return!1}if(O.length!==I.length)return!1;for(O.sort(),I.sort(),v=O.length-1;0<=v;v--)if(O[v]!=I[v])return!1;for(v=O.length-1;0<=v;v--)if(b=O[v],!d(R[b],x[b],w))return!1;return!0}}function u(g){return g==null}function f(g){return!(!g||typeof g!="object"||typeof g.length!="number")&&typeof g.copy=="function"&&typeof g.slice=="function"&&!(0<g.length&&typeof g[0]!="number")}a.exports=d},{"is-arguments":326,"is-date-object":327,"is-regex":328,"object-is":455,"object-keys":459,"regexp.prototype.flags":484}],314:[function(d,a,t){function e(f,g){var m=2<arguments.length?arguments[2]:{},h=s(g);i&&(h=l.call(h,Object.getOwnPropertySymbols(g)));for(var v,b,_,R,x=0;x<h.length;x+=1)v=f,b=h[x],_=g[h[x]],R=m[h[x]],b in v&&(!c(R)||!R())||(u?n(v,b,{configurable:!0,enumerable:!1,value:_,writable:!0}):v[b]=_)}var s=d("object-keys"),i=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,l=Array.prototype.concat,n=Object.defineProperty,c=function(f){return typeof f=="function"&&r.call(f)==="[object Function]"},d=d("has-property-descriptors")(),u=n&&d;e.supportsDescriptors=!!u,a.exports=e},{"has-property-descriptors":321,"object-keys":459}],315:[function(o,a,t){function e(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"}function s(u){if(u&&n.call(u)==="[object Object]"){var f,g=l.call(u,"constructor"),m=u.constructor&&u.constructor.prototype&&l.call(u.constructor.prototype,"isPrototypeOf");if(!u.constructor||g||m){for(f in u);return f===void 0||l.call(u,f)}}}function i(u,f){c&&f.name==="__proto__"?c(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue}function r(u,f){if(f==="__proto__"){if(!l.call(u,f))return;if(d)return d(u,f).value}return u[f]}var l=Object.prototype.hasOwnProperty,n=Object.prototype.toString,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;a.exports=function u(){var f,g,m,h,v,b=arguments[0],_=1,R=arguments.length,x=!1;for(typeof b=="boolean"&&(x=b,b=arguments[1]||{},_=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});_<R;++_)if((f=arguments[_])!=null)for(g in f)v=r(b,g),b!==(m=r(f,g))&&(x&&m&&(s(m)||(h=e(m)))?(v=h?(h=!1,v&&e(v)?v:[]):v&&s(v)?v:{},i(b,{name:g,newValue:u(x,v,m)})):m!==void 0&&i(b,{name:g,newValue:m}));return b}},{}],316:[function(o,a,t){var e=-1,s=1,i=0;function r(I,b,x,R){if(I===b)return I?[[i,I]]:[];if(x!=null&&(x=function(L,M,J){var k=typeof J=="number"?{index:J,length:0}:J.oldRange,J=typeof J=="number"?null:J.newRange,G=L.length,U=M.length;if(k.length===0&&(J===null||J.length===0)){var D=k.index,W=L.slice(0,D),Q=L.slice(D),E=J?J.index:null,B=D+U-G;if((E===null||E===B)&&!(B<0||U<B)){var $=M.slice(0,B),C=M.slice(B);if(C===Q){var N=Math.min(D,B),Y=W.slice(0,N),tt=$.slice(0,N);if(Y===tt)return j=W.slice(N),V=$.slice(N),m(Y,j,V,Q)}}if((E===null||E===D)&&(B=D,$=M.slice(0,B),C=M.slice(B),$===W)){var F=Math.min(G-B,U-B),z=Q.slice(Q.length-F),P=C.slice(C.length-F);if(z===P)return j=Q.slice(0,Q.length-F),V=C.slice(0,C.length-F),m(W,j,V,z)}}if(0<k.length&&J&&J.length===0&&(Y=L.slice(0,k.index),z=L.slice(k.index+k.length),N=Y.length,F=z.length,!(U<N+F))){var j,V,tt=M.slice(0,N),P=M.slice(U-F);if(Y===tt&&z===P)return j=L.slice(N,G-F),V=M.slice(N,U-F),m(Y,j,V,z)}return null}(I,b,x),x))return x;var x=n(I,b),w=I.substring(0,x),O=(x=c(I=I.substring(x),b=b.substring(x)),I.substring(I.length-x)),I=function(L,M){if(!L)return[[s,M]];if(!M)return[[e,L]];var A=L.length>M.length?L:M,k=L.length>M.length?M:L,J=A.indexOf(k);if(J!==-1)return A=[[s,A.substring(0,J)],[i,k],[s,A.substring(J+k.length)]],L.length>M.length&&(A[0][0]=A[2][0]=e),A;if(k.length===1)return[[e,L],[s,M]];J=function(D,W){var Q=D.length>W.length?D:W,tt=D.length>W.length?W:D;if(Q.length<4||2*tt.length<Q.length)return null;function E(F,z,P){for(var j,V,K,rt,T=F.substring(P,P+Math.floor(F.length/4)),ot=-1,at="";(ot=z.indexOf(T,ot+1))!==-1;){var q=n(F.substring(P),z.substring(ot)),ht=c(F.substring(0,P),z.substring(0,ot));at.length<ht+q&&(at=z.substring(ot-ht,ot)+z.substring(ot,ot+q),j=F.substring(0,P-ht),V=F.substring(P+q),K=z.substring(0,ot-ht),rt=z.substring(ot+q))}return 2*at.length>=F.length?[j,V,K,rt,at]:null}var B,$,C,N,Y=E(Q,tt,Math.ceil(Q.length/4)),tt=E(Q,tt,Math.ceil(Q.length/2));{if(!Y&&!tt)return null;Q=!tt||Y&&Y[4].length>tt[4].length?Y:tt}return D.length>W.length?(B=Q[0],$=Q[1],C=Q[2],N=Q[3]):(C=Q[0],N=Q[1],B=Q[2],$=Q[3]),Y=Q[4],[B,$,C,N,Y]}(L,M);{var G,U;if(J)return A=J[0],k=J[1],U=J[2],G=J[3],J=J[4],A=r(A,U),U=r(k,G),A.concat([[i,J]],U)}return function(D,W){for(var Q=D.length,E=W.length,B=Math.ceil((Q+E)/2),$=B,C=2*B,N=new Array(C),Y=new Array(C),tt=0;tt<C;tt++)N[tt]=-1,Y[tt]=-1;N[$+1]=0,Y[$+1]=0;for(var F=Q-E,z=F%2!=0,P=0,j=0,V=0,K=0,rt=0;rt<B;rt++){for(var T=-rt+P;T<=rt-j;T+=2){for(var ot=$+T,at=(_t=T===-rt||T!==rt&&N[ot-1]<N[ot+1]?N[ot+1]:N[ot-1]+1)-T;_t<Q&&at<E&&D.charAt(_t)===W.charAt(at);)_t++,at++;if(N[ot]=_t,Q<_t)j+=2;else if(E<at)P+=2;else if(z){var q,ht=$+F-T;if(0<=ht&&ht<C&&Y[ht]!==-1&&(q=Q-Y[ht])<=_t)return l(D,W,_t,at)}}for(var lt=-rt+V;lt<=rt-K;lt+=2){for(var ht=$+lt,bt=(q=lt===-rt||lt!==rt&&Y[ht-1]<Y[ht+1]?Y[ht+1]:Y[ht-1]+1)-lt;q<Q&&bt<E&&D.charAt(Q-q-1)===W.charAt(E-bt-1);)q++,bt++;if(Y[ht]=q,Q<q)K+=2;else if(E<bt)V+=2;else if(!z&&0<=(ot=$+F-lt)&&ot<C&&N[ot]!==-1){var _t=N[ot],at=$+_t-ot;if((q=Q-q)<=_t)return l(D,W,_t,at)}}}return[[e,D],[s,W]]}(L,M)}(I=I.substring(0,I.length-x),b=b.substring(0,b.length-x));return w&&I.unshift([i,w]),O&&I.push([i,O]),function L(M,A){M.push([i,""]);for(var k=0,J=0,G=0,U="",D="";k<M.length;)if(k<M.length-1&&!M[k][1])M.splice(k,1);else switch(M[k][0]){case s:G++,D+=M[k][1],k++;break;case e:J++,U+=M[k][1],k++;break;case i:var W,Q,E=k-G-J-1;if(A&&(0<=E&&g(M[E][1])&&(Q=M[E][1].slice(-1),M[E][1]=M[E][1].slice(0,-1),U=Q+U,D=Q+D,M[E][1]||(M.splice(E,1),k--,M[W=E-1]&&M[W][0]===s&&(G++,D=M[W][1]+D,W--),M[W]&&M[W][0]===e&&(J++,U=M[W][1]+U,W--),E=W)),f(M[k][1])&&(Q=M[k][1].charAt(0),M[k][1]=M[k][1].slice(1),U+=Q,D+=Q)),k<M.length-1&&!M[k][1]){M.splice(k,1);break}(0<U.length||0<D.length)&&(0<U.length&&0<D.length&&((W=n(D,U))!==0&&(0<=E?M[E][1]+=D.substring(0,W):(M.splice(0,0,[i,D.substring(0,W)]),k++),D=D.substring(W),U=U.substring(W)),(W=c(D,U))!==0&&(M[k][1]=D.substring(D.length-W)+M[k][1],D=D.substring(0,D.length-W),U=U.substring(0,U.length-W))),E=G+J,U.length===0&&D.length===0?(M.splice(k-E,E),k-=E):k=U.length===0?(M.splice(k-E,E,[s,D]),k-E+1):D.length===0?(M.splice(k-E,E,[e,U]),k-E+1):(M.splice(k-E,E,[e,U],[s,D]),k-E+2)),k!==0&&M[k-1][0]===i?(M[k-1][1]+=M[k][1],M.splice(k,1)):k++,J=G=0,D=U=""}M[M.length-1][1]===""&&M.pop();var B=!1;for(k=1;k<M.length-1;)M[k-1][0]===i&&M[k+1][0]===i&&(M[k][1].substring(M[k][1].length-M[k-1][1].length)===M[k-1][1]?(M[k][1]=M[k-1][1]+M[k][1].substring(0,M[k][1].length-M[k-1][1].length),M[k+1][1]=M[k-1][1]+M[k+1][1],M.splice(k-1,1),B=!0):M[k][1].substring(0,M[k+1][1].length)==M[k+1][1]&&(M[k-1][1]+=M[k+1][1],M[k][1]=M[k][1].substring(M[k+1][1].length)+M[k+1][1],M.splice(k+1,1),B=!0)),k++;B&&L(M,A)}(I,R),I}function l(O,L,I,M){var x=O.substring(0,I),w=L.substring(0,M),O=O.substring(I),I=L.substring(M),L=r(x,w),M=r(O,I);return L.concat(M)}function n(v,b){if(!v||!b||v.charAt(0)!==b.charAt(0))return 0;for(var _=0,R=Math.min(v.length,b.length),x=R,w=0;_<x;)v.substring(w,x)==b.substring(w,x)?w=_=x:R=x,x=Math.floor((R-_)/2+_);return d(v.charCodeAt(x-1))&&x--,x}function c(v,b){if(!v||!b||v.slice(-1)!==b.slice(-1))return 0;for(var _=0,R=Math.min(v.length,b.length),x=R,w=0;_<x;)v.substring(v.length-x,v.length-w)==b.substring(b.length-x,b.length-w)?w=_=x:R=x,x=Math.floor((R-_)/2+_);return u(v.charCodeAt(v.length-x))&&x--,x}function d(v){return 55296<=v&&v<=56319}function u(v){return 56320<=v&&v<=57343}function f(v){return u(v.charCodeAt(0))}function g(v){return d(v.charCodeAt(v.length-1))}function m(v,b,_,R){if(g(v)||f(R))return null;for(var x=[[i,v],[e,b],[s,_],[i,R]],w=[],O=0;O<x.length;O++)0<x[O][1].length&&w.push(x[O]);return w}function h(v,b,_){return r(v,b,_,!0)}h.INSERT=s,h.DELETE=e,h.EQUAL=i,a.exports=h},{}],317:[function(o,a,t){var e=Array.prototype.slice,s=Object.prototype.toString;a.exports=function(i){var r=this;if(typeof r!="function"||s.call(r)!=="[object Function]")throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var l,n,c=e.call(arguments,1),d=Math.max(0,r.length-c.length),u=[],f=0;f<d;f++)u.push("$"+f);return l=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(function(){var g;return this instanceof l?(g=r.apply(this,c.concat(e.call(arguments))),Object(g)===g?g:this):r.apply(i,c.concat(e.call(arguments)))}),r.prototype&&((n=function(){}).prototype=r.prototype,l.prototype=new n,n.prototype=null),l}},{}],318:[function(o,a,t){o=o("./implementation"),a.exports=Function.prototype.bind||o},{"./implementation":317}],319:[function(o,a,t){function e(){return typeof(function(){}).name=="string"}var s=Object.getOwnPropertyDescriptor;if(s)try{s([],"length")}catch{s=null}e.functionsHaveConfigurableNames=function(){if(!e()||!s)return!1;var r=s(function(){},"name");return!!r&&!!r.configurable};var i=Function.prototype.bind;e.boundFunctionsHaveNames=function(){return e()&&typeof i=="function"&&(function(){}).bind().name!==""},a.exports=e},{}],320:[function(o,a,t){var e,s=SyntaxError,i=Function,r=TypeError,l=function(A){try{return i('"use strict"; return ('+A+").constructor;")()}catch{}},n=Object.getOwnPropertyDescriptor;if(n)try{n({},"")}catch{n=null}function c(){throw new r}function d(A){var k,J;return A==="%AsyncFunction%"?k=l("async function () {}"):A==="%GeneratorFunction%"?k=l("function* () {}"):A==="%AsyncGeneratorFunction%"?k=l("async function* () {}"):A==="%AsyncGenerator%"?(J=d("%AsyncGeneratorFunction%"))&&(k=J.prototype):A==="%AsyncIteratorPrototype%"&&(J=d("%AsyncGenerator%"))&&(k=f(J.prototype)),h[A]=k}var u=n?function(){try{return c}catch{try{return n(arguments,"callee").get}catch{return c}}}():c,b=o("has-symbols")(),f=Object.getPrototypeOf||function(A){return A.__proto__},g={},m=typeof Uint8Array>"u"?e:f(Uint8Array),h={"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":b?f([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":b?f(f([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map<"u"&&b?f(new Map()[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set<"u"&&b?f(new Set()[Symbol.iterator]()):e,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":b?f(""[Symbol.iterator]()):e,"%Symbol%":b?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=o("function-bind"),_=o("has"),R=b.call(Function.call,Array.prototype.concat),x=b.call(Function.apply,Array.prototype.splice),w=b.call(Function.call,String.prototype.replace),O=b.call(Function.call,String.prototype.slice),I=b.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g;a.exports=function(A,k){if(typeof A!="string"||A.length===0)throw new r("intrinsic name must be a non-empty string");if(1<arguments.length&&typeof k!="boolean")throw new r('"allowMissing" argument must be a boolean');if(I(/^%?[^%]*%?$/,A)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var J=function(N){var Y=O(N,0,1),tt=O(N,-1);if(Y==="%"&&tt!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(tt==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var F=[];return w(N,L,function(z,P,j,V){F[F.length]=j?w(V,M,"$1"):P||z}),F}(A),G=0<J.length?J[0]:"",W=function(N,Y){var tt,F=N;if(_(v,F)&&(F="%"+(tt=v[F])[0]+"%"),_(h,F)){var z=h[F];if((z=z===g?d(F):z)!==void 0||Y)return{alias:tt,name:F,value:z};throw new r("intrinsic "+N+" exists, but is not available. Please file an issue!")}throw new s("intrinsic "+N+" does not exist!")}("%"+G+"%",k),U=(W.name,W.value),D=!1,W=W.alias;W&&(G=W[0],x(J,R([0,1],W)));for(var Q=1,E=!0;Q<J.length;Q+=1){var B=J[Q],$=O(B,0,1),C=O(B,-1);if(($==='"'||$==="'"||$==="`"||C==='"'||C==="'"||C==="`")&&$!==C)throw new s("property names with quotes must have matching quotes");if(B!=="constructor"&&E||(D=!0),_(h,$="%"+(G+="."+B)+"%"))U=h[$];else if(U!=null){if(!(B in U)){if(k)return;throw new r("base intrinsic for "+A+" exists, but the property is not available.")}U=n&&Q+1>=J.length?(E=!!(C=n(U,B)))&&"get"in C&&!("originalValue"in C.get)?C.get:U[B]:(E=_(U,B),U[B]),E&&!D&&(h[$]=U)}}return U}},{"function-bind":318,has:325,"has-symbols":322}],321:[function(o,a,t){function e(){if(s)try{return s({},"a",{value:1}),!0}catch{return!1}return!1}var s=o("get-intrinsic")("%Object.defineProperty%",!0);e.hasArrayLengthDefineBug=function(){if(!e())return null;try{return s([],"length",{value:1}).length!==1}catch{return!0}},a.exports=e},{"get-intrinsic":320}],322:[function(o,a,t){var e=typeof Symbol<"u"&&Symbol,s=o("./shams");a.exports=function(){return typeof e=="function"&&typeof Symbol=="function"&&typeof e("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&s()}},{"./shams":323}],323:[function(o,a,t){a.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},s=Symbol("test"),i=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;for(s in e[s]=42,e)return!1;return!(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0||(i=Object.getOwnPropertySymbols(e),i.length!==1||i[0]!==s)||!Object.prototype.propertyIsEnumerable.call(e,s)||typeof Object.getOwnPropertyDescriptor=="function"&&(i=Object.getOwnPropertyDescriptor(e,s),i.value!==42||i.enumerable!==!0))}},{}],324:[function(o,a,t){var e=o("has-symbols/shams");a.exports=function(){return e()&&!!Symbol.toStringTag}},{"has-symbols/shams":323}],325:[function(o,a,t){o=o("function-bind"),a.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":318}],326:[function(l,a,t){function e(n){return!(i&&n&&typeof n=="object"&&Symbol.toStringTag in n)&&r(n)==="[object Arguments]"}function s(n){return!!e(n)||n!==null&&typeof n=="object"&&typeof n.length=="number"&&0<=n.length&&r(n)!=="[object Array]"&&r(n.callee)==="[object Function]"}var i=l("has-tostringtag/shams")(),r=l("call-bind/callBound")("Object.prototype.toString"),l=function(){return e(arguments)}();e.isLegacyArguments=s,a.exports=l?e:s},{"call-bind/callBound":303,"has-tostringtag/shams":324}],327:[function(o,a,t){var e=Date.prototype.getDay,s=Object.prototype.toString,i=o("has-tostringtag/shams")();a.exports=function(r){{if(typeof r!="object"||r===null)return!1;if(!i)return s.call(r)==="[object Date]";var l=r;try{return e.call(l),!0}catch{return!1}}}},{"has-tostringtag/shams":324}],328:[function(c,a,t){var e,s,i,r,l,n=c("call-bind/callBound"),c=c("has-tostringtag/shams")(),d=(c&&(e=n("Object.prototype.hasOwnProperty"),s=n("RegExp.prototype.exec"),i={},l={toString:r=function(){throw i},valueOf:r},typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=r)),n("Object.prototype.toString")),u=Object.getOwnPropertyDescriptor;a.exports=c?function(f){if(!f||typeof f!="object")return!1;var g=u(f,"lastIndex");if(!(g&&e(g,"value")))return!1;try{s(f,l)}catch(m){return m===i}}:function(f){return!(!f||typeof f!="object"&&typeof f!="function")&&d(f)==="[object RegExp]"}},{"call-bind/callBound":303,"has-tostringtag/shams":324}],329:[function(o,a,t){(function(e){(function(){var s="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",l="[object Boolean]",n="[object Date]",c="[object Function]",d="[object GeneratorFunction]",u="[object Map]",f="[object Number]",g="[object Object]",m="[object Promise]",h="[object RegExp]",v="[object Set]",b="[object String]",_="[object Symbol]",R="[object WeakMap]",x="[object ArrayBuffer]",w="[object DataView]",O="[object Float32Array]",I="[object Float64Array]",L="[object Int8Array]",M="[object Int16Array]",A="[object Int32Array]",k="[object Uint8Array]",J="[object Uint8ClampedArray]",G="[object Uint16Array]",U="[object Uint32Array]",D=/\w*$/,W=/^\[object .+?Constructor\]$/,Q=/^(?:0|[1-9]\d*)$/,E={},ae=(E[r]=E["[object Array]"]=E[x]=E[w]=E[l]=E[n]=E[O]=E[I]=E[L]=E[M]=E[A]=E[u]=E[f]=E[g]=E[h]=E[v]=E[b]=E[_]=E[k]=E[J]=E[G]=E[U]=!0,E["[object Error]"]=E[c]=E[R]=!1,typeof e=="object"&&e&&e.Object===Object&&e),bt=typeof self=="object"&&self&&self.Object===Object&&self,ae=ae||bt||Function("return this")(),bt=typeof t=="object"&&t&&!t.nodeType&&t,lt=bt&&typeof a=="object"&&a&&!a.nodeType&&a,lt=lt&<.exports===bt;function B(At,Zt){return At.set(Zt[0],Zt[1]),At}function $(At,Zt){return At.add(Zt),At}function C(At,Zt,xt,Wt){var re=-1,je=At?At.length:0;for(Wt&&je&&(xt=At[++re]);++re<je;)xt=Zt(xt,At[re],re,At);return xt}function N(At){var Zt=!1;if(At!=null&&typeof At.toString!="function")try{Zt=!!(At+"")}catch{}return Zt}function Y(At){var Zt=-1,xt=Array(At.size);return At.forEach(function(Wt,re){xt[++Zt]=[re,Wt]}),xt}function tt(At,Zt){return function(xt){return At(Zt(xt))}}function F(At){var Zt=-1,xt=Array(At.size);return At.forEach(function(Wt){xt[++Zt]=Wt}),xt}var bt=Array.prototype,me=Function.prototype,z=Object.prototype,Dt=ae["__core-js_shared__"],P=(Dt=/[^.]+$/.exec(Dt&&Dt.keys&&Dt.keys.IE_PROTO||""))?"Symbol(src)_1."+Dt:"",j=me.toString,V=z.hasOwnProperty,K=z.toString,rt=RegExp("^"+j.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=lt?ae.Buffer:void 0,me=ae.Symbol,T=ae.Uint8Array,ot=tt(Object.getPrototypeOf,Object),at=Object.create,q=z.propertyIsEnumerable,ht=bt.splice,lt=Object.getOwnPropertySymbols,bt=Dt?Dt.isBuffer:void 0,_t=tt(Object.keys,Object),Dt=gn(ae,"DataView"),Ft=gn(ae,"Map"),Qt=gn(ae,"Promise"),ue=gn(ae,"Set"),ae=gn(ae,"WeakMap"),se=gn(Object,"create"),Ne=Xe(Dt),ce=Xe(Ft),qt=Xe(Qt),Nt=Xe(ue),It=Xe(ae),me=me?me.prototype:void 0,Vt=me?me.valueOf:void 0;function ge(At){var Zt=-1,xt=At?At.length:0;for(this.clear();++Zt<xt;){var Wt=At[Zt];this.set(Wt[0],Wt[1])}}function De(At){var Zt=-1,xt=At?At.length:0;for(this.clear();++Zt<xt;){var Wt=At[Zt];this.set(Wt[0],Wt[1])}}function _e(At){var Zt=-1,xt=At?At.length:0;for(this.clear();++Zt<xt;){var Wt=At[Zt];this.set(Wt[0],Wt[1])}}function Ht(At){this.__data__=new De(At)}function yn(At,Zt){var xt,Wt,re,je,Gt=kt(At)||function(yt){return function(zt){return zt&&typeof zt=="object"}(yt)&&be(yt)}(xt=At)&&V.call(xt,"callee")&&(!q.call(xt,"callee")||K.call(xt)==r)?function(yt,zt){for(var Tt=-1,Rt=Array(yt);++Tt<yt;)Rt[Tt]=zt(Tt);return Rt}(At.length,String):[],Ge=Gt.length,Te=!!Ge;for(Wt in At)!Zt&&!V.call(At,Wt)||Te&&(Wt=="length"||(re=Wt,(je=(je=Ge)==null?i:je)&&(typeof re=="number"||Q.test(re))&&-1<re&&re%1==0&&re<je))||Gt.push(Wt);return Gt}function ee(At,Zt,xt){var Wt=At[Zt];V.call(At,Zt)&&$e(Wt,xt)&&(xt!==void 0||Zt in At)||(At[Zt]=xt)}function Qe(At,Zt){for(var xt=At.length;xt--;)if($e(At[xt][0],Zt))return xt;return-1}function on(At,Zt,xt,Wt,re,je,Gt){var Ge;if((Ge=Wt?je?Wt(At,re,je,Gt):Wt(At):Ge)!==void 0)return Ge;if(!cn(At))return At;if(re=kt(At),re){if(Ge=function(oe){var ve=oe.length,Ie=oe.constructor(ve);return ve&&typeof oe[0]=="string"&&V.call(oe,"index")&&(Ie.index=oe.index,Ie.input=oe.input),Ie}(At),!Zt){var Te=At,yt=Ge,zt=-1,Tt=Te.length;for(yt=yt||Array(Tt);++zt<Tt;)yt[zt]=Te[zt];return yt}}else{var Rt,Ut,Yt=On(At),ie=Yt==c||Yt==d;if(de(At))return Rt=At,(Ut=Zt)?Rt.slice():(Ut=new Rt.constructor(Rt.length),Rt.copy(Ut),Ut);if(Yt==g||Yt==r||ie&&!je){if(N(At))return je?At:{};if(Ge=typeof(Rt=ie?{}:At).constructor!="function"||bn(Rt)?{}:function(oe){return cn(oe)?at(oe):{}}(ot(Rt)),!Zt)return ie=Ut=At,ie=(dt=Ge)&&Ue(ie,We(ie),dt),Ue(Ut,fn(Ut),ie)}else{if(!E[Yt])return je?At:{};Ge=function(oe,ve,Ie,ke){var nn=oe.constructor;switch(ve){case x:return Ve(oe);case l:case n:return new nn(+oe);case w:return function(dn,En){return En=En?Ve(dn.buffer):dn.buffer,new dn.constructor(En,dn.byteOffset,dn.byteLength)}(oe,ke);case O:case I:case L:case M:case A:case k:case J:case G:case U:return function(dn,En){return En=En?Ve(dn.buffer):dn.buffer,new dn.constructor(En,dn.byteOffset,dn.length)}(oe,ke);case u:return function(dn,En,Ln){return C(En?Ln(Y(dn),!0):Y(dn),B,new dn.constructor)}(oe,ke,Ie);case f:case b:return new nn(oe);case h:return function(dn){var En=new dn.constructor(dn.source,D.exec(dn));return En.lastIndex=dn.lastIndex,En}(oe);case v:return function(dn,En,Ln){return C(En?Ln(F(dn),!0):F(dn),$,new dn.constructor)}(oe,ke,Ie);case _:return function(dn){return Vt?Object(Vt.call(dn)):{}}(oe)}}(At,Yt,on,Zt)}}var X,dt=(Gt=Gt||new Ht).get(At);if(dt)return dt;Gt.set(At,Ge);for(var wt=(X=re?X:xt?function(oe,ve,Ie){return ve=ve(oe),kt(oe)?ve:function(ke,nn){for(var dn=-1,En=nn.length,Ln=ke.length;++dn<En;)ke[Ln+dn]=nn[dn];return ke}(ve,Ie(oe))}(At,We,fn):We(At))||At,Bt=function(oe,ve){X&&(oe=At[ve=oe]),ee(Ge,ve,on(oe,Zt,xt,Wt,ve,At,Gt))},St=-1,Se=wt?wt.length:0;++St<Se&&Bt(wt[St],St,wt)!==!1;);return Ge}function wn(At){var Zt;if(cn(At)&&(Zt=At,!(P&&P in Zt)))return(Ye(At)||N(At)?rt:W).test(Xe(At))}function Ve(At){var Zt=new At.constructor(At.byteLength);return new T(Zt).set(new T(At)),Zt}function Ue(At,Zt,xt,Wt){xt=xt||{};for(var re=-1,je=Zt.length;++re<je;){var Gt=Zt[re],Ge=Wt?Wt(xt[Gt],At[Gt],Gt,xt,At):void 0;ee(xt,Gt,Ge===void 0?At[Gt]:Ge)}return xt}function Ze(re,Zt){var xt,Wt,re=re.__data__;return((Wt=typeof(xt=Zt))=="string"||Wt=="number"||Wt=="symbol"||Wt=="boolean"?xt!=="__proto__":xt===null)?re[typeof Zt=="string"?"string":"hash"]:re.map}function gn(At,Zt){return Zt=Zt,At=(At=At)==null?void 0:At[Zt],wn(At)?At:void 0}ge.prototype.clear=function(){this.__data__=se?se(null):{}},ge.prototype.delete=function(At){return this.has(At)&&delete this.__data__[At]},ge.prototype.get=function(At){var Zt,xt=this.__data__;return se?(Zt=xt[At])===s?void 0:Zt:V.call(xt,At)?xt[At]:void 0},ge.prototype.has=function(At){var Zt=this.__data__;return se?Zt[At]!==void 0:V.call(Zt,At)},ge.prototype.set=function(At,Zt){return this.__data__[At]=se&&Zt===void 0?s:Zt,this},De.prototype.clear=function(){this.__data__=[]},De.prototype.delete=function(At){var Zt=this.__data__;return!((At=Qe(Zt,At))<0)&&(At==Zt.length-1?Zt.pop():ht.call(Zt,At,1),!0)},De.prototype.get=function(At){var Zt=this.__data__;return(At=Qe(Zt,At))<0?void 0:Zt[At][1]},De.prototype.has=function(At){return-1<Qe(this.__data__,At)},De.prototype.set=function(At,Zt){var xt=this.__data__,Wt=Qe(xt,At);return Wt<0?xt.push([At,Zt]):xt[Wt][1]=Zt,this},_e.prototype.clear=function(){this.__data__={hash:new ge,map:new(Ft||De),string:new ge}},_e.prototype.delete=function(At){return Ze(this,At).delete(At)},_e.prototype.get=function(At){return Ze(this,At).get(At)},_e.prototype.has=function(At){return Ze(this,At).has(At)},_e.prototype.set=function(At,Zt){return Ze(this,At).set(At,Zt),this},Ht.prototype.clear=function(){this.__data__=new De},Ht.prototype.delete=function(At){return this.__data__.delete(At)},Ht.prototype.get=function(At){return this.__data__.get(At)},Ht.prototype.has=function(At){return this.__data__.has(At)},Ht.prototype.set=function(At,Zt){var xt=this.__data__;if(xt instanceof De){var Wt=xt.__data__;if(!Ft||Wt.length<199)return Wt.push([At,Zt]),this;xt=this.__data__=new _e(Wt)}return xt.set(At,Zt),this};var fn=lt?tt(lt,Object):function(){return[]},On=function(At){return K.call(At)};function bn(At){var Zt=At&&At.constructor;return At===(typeof Zt=="function"&&Zt.prototype||z)}function Xe(At){if(At!=null){try{return j.call(At)}catch{}try{return At+""}catch{}}return""}function $e(At,Zt){return At===Zt||At!=At&&Zt!=Zt}(Dt&&On(new Dt(new ArrayBuffer(1)))!=w||Ft&&On(new Ft)!=u||Qt&&On(Qt.resolve())!=m||ue&&On(new ue)!=v||ae&&On(new ae)!=R)&&(On=function(xt){var Zt=K.call(xt),xt=Zt==g?xt.constructor:void 0,xt=xt?Xe(xt):void 0;if(xt)switch(xt){case Ne:return w;case ce:return u;case qt:return m;case Nt:return v;case It:return R}return Zt});var kt=Array.isArray;function be(At){return At!=null&&typeof(Zt=At.length)=="number"&&-1<Zt&&Zt%1==0&&Zt<=i&&!Ye(At);var Zt}var de=bt||function(){return!1};function Ye(At){return At=cn(At)?K.call(At):"",At==c||At==d}function cn(At){var Zt=typeof At;return At&&(Zt=="object"||Zt=="function")}function We(At){return(be(At)?yn:function(Zt){if(!bn(Zt))return _t(Zt);var xt,Wt=[];for(xt in Object(Zt))V.call(Zt,xt)&&xt!="constructor"&&Wt.push(xt);return Wt})(At)}a.exports=function(At){return on(At,!0,!0)}}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],330:[function(o,a,t){(function(e){(function(){var s="__lodash_hash_undefined__",i=1,r=2,l=9007199254740991,n="[object Arguments]",c="[object Array]",d="[object AsyncFunction]",u="[object Boolean]",f="[object Date]",g="[object Error]",m="[object Function]",h="[object GeneratorFunction]",v="[object Map]",b="[object Number]",_="[object Null]",R="[object Object]",x="[object Promise]",w="[object Proxy]",O="[object RegExp]",I="[object Set]",L="[object String]",M="[object Symbol]",A="[object Undefined]",k="[object WeakMap]",J="[object ArrayBuffer]",G="[object DataView]",U=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,W={},E=(W["[object Float32Array]"]=W["[object Float64Array]"]=W["[object Int8Array]"]=W["[object Int16Array]"]=W["[object Int32Array]"]=W["[object Uint8Array]"]=W["[object Uint8ClampedArray]"]=W["[object Uint16Array]"]=W["[object Uint32Array]"]=!0,W[n]=W[c]=W[J]=W[u]=W[G]=W[f]=W[g]=W[m]=W[v]=W[b]=W[R]=W[O]=W[I]=W[L]=W[k]=!1,typeof e=="object"&&e&&e.Object===Object&&e),Dt=typeof self=="object"&&self&&self.Object===Object&&self,Dt=E||Dt||Function("return this")(),ht=typeof t=="object"&&t&&!t.nodeType&&t,at=ht&&typeof a=="object"&&a&&!a.nodeType&&a,at=at&&at.exports===ht,Q=at&&E.process,ht=function(){try{return Q&&Q.binding&&Q.binding("util")}catch{}}(),E=ht&&ht.isTypedArray;function B(xt){var Wt=-1,re=Array(xt.size);return xt.forEach(function(je,Gt){re[++Wt]=[Gt,je]}),re}function $(xt){var Wt=-1,re=Array(xt.size);return xt.forEach(function(je){re[++Wt]=je}),re}var C,N,ht=Array.prototype,ce=Function.prototype,Y=Object.prototype,bt=Dt["__core-js_shared__"],tt=ce.toString,F=Y.hasOwnProperty,z=(ce=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||""))?"Symbol(src)_1."+ce:"",P=Y.toString,j=RegExp("^"+tt.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=at?Dt.Buffer:void 0,ce=Dt.Symbol,V=Dt.Uint8Array,K=Y.propertyIsEnumerable,rt=ht.splice,T=ce?ce.toStringTag:void 0,ot=Object.getOwnPropertySymbols,at=bt?bt.isBuffer:void 0,q=(C=Object.keys,N=Object,function(xt){return C(N(xt))}),ht=Ze(Dt,"DataView"),lt=Ze(Dt,"Map"),bt=Ze(Dt,"Promise"),_t=Ze(Dt,"Set"),Dt=Ze(Dt,"WeakMap"),Ft=Ze(Object,"create"),Qt=On(ht),ue=On(lt),ae=On(bt),se=On(_t),Ne=On(Dt),ce=ce?ce.prototype:void 0,qt=ce?ce.valueOf:void 0;function Nt(xt){var Wt=-1,re=xt==null?0:xt.length;for(this.clear();++Wt<re;){var je=xt[Wt];this.set(je[0],je[1])}}function It(xt){var Wt=-1,re=xt==null?0:xt.length;for(this.clear();++Wt<re;){var je=xt[Wt];this.set(je[0],je[1])}}function me(xt){var Wt=-1,re=xt==null?0:xt.length;for(this.clear();++Wt<re;){var je=xt[Wt];this.set(je[0],je[1])}}function Vt(xt){var Wt=-1,re=xt==null?0:xt.length;for(this.__data__=new me;++Wt<re;)this.add(xt[Wt])}function ge(xt){xt=this.__data__=new It(xt),this.size=xt.size}function De(xt,Wt){var re,je,Gt,Ge=$e(xt),Te=!Ge&&Xe(xt),yt=!Ge&&!Te&&kt(xt),zt=!Ge&&!Te&&!yt&&At(xt),Tt=Ge||Te||yt||zt,Rt=Tt?function(Yt,ie){for(var X=-1,dt=Array(Yt);++X<Yt;)dt[X]=ie(X);return dt}(xt.length,String):[],Ut=Rt.length;for(re in xt)!Wt&&!F.call(xt,re)||Tt&&(re=="length"||yt&&(re=="offset"||re=="parent")||zt&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||(je=re,(Gt=(Gt=Ut)==null?l:Gt)&&(typeof je=="number"||D.test(je))&&-1<je&&je%1==0&&je<Gt))||Rt.push(re);return Rt}function _e(xt,Wt){for(var re=xt.length;re--;)if(bn(xt[re][0],Wt))return re;return-1}function Ht(xt){{if(xt==null)return xt===void 0?A:_;if(T&&T in Object(xt)){var Wt=xt,re=F.call(Wt,T),je=Wt[T];try{var Gt=!(Wt[T]=void 0)}catch{}var Ge=P.call(Wt);return Gt&&(re?Wt[T]=je:delete Wt[T]),Ge}return P.call(xt)}}function yn(xt){return cn(xt)&&Ht(xt)==n}function ee(xt,Wt,re,je,Gt){{if(xt===Wt)return!0;if(xt==null||Wt==null||!cn(xt)&&!cn(Wt))return xt!=xt&&Wt!=Wt;var Ge=ee,Te=$e(xt),Rt=$e(Wt),yt=Te?c:fn(xt),Rt=Rt?c:fn(Wt),zt=(yt=yt==n?R:yt)==R,Tt=(Rt=Rt==n?R:Rt)==R,Rt;if((Rt=yt==Rt)&&kt(xt)){if(!kt(Wt))return!1;zt=!(Te=!0)}if(Rt&&!zt){if(Gt=Gt||new ge,Te||At(xt))return wn(xt,Wt,re,je,Ge,Gt);var Ut=xt,Yt=Wt,ie=yt,X=re,dt=je,wt=Ge,Bt=Gt;switch(ie){case G:if(Ut.byteLength!=Yt.byteLength||Ut.byteOffset!=Yt.byteOffset)return!1;Ut=Ut.buffer,Yt=Yt.buffer;case J:return!!(Ut.byteLength==Yt.byteLength&&wt(new V(Ut),new V(Yt)));case u:case f:case b:return bn(+Ut,+Yt);case g:return Ut.name==Yt.name&&Ut.message==Yt.message;case O:case L:return Ut==Yt+"";case v:var St=B;case I:var Se=X&i;return St=St||$,Ut.size!=Yt.size&&!Se?!1:(Se=Bt.get(Ut),Se?Se==Yt:(X|=r,Bt.set(Ut,Yt),Se=wn(St(Ut),St(Yt),X,dt,wt,Bt),Bt.delete(Ut),Se));case M:if(qt)return qt.call(Ut)==qt.call(Yt)}return!1}if(!(re&i)){var Te=zt&&F.call(xt,"__wrapped__"),yt=Tt&&F.call(Wt,"__wrapped__");if(Te||yt)return zt=Te?xt.value():xt,Tt=yt?Wt.value():Wt,Gt=Gt||new ge,Ge(zt,Tt,re,je,Gt)}if(Rt){Gt=Gt||new ge;var oe=xt,ve=Wt,Ie=re,ke=je,nn=Ge,dn=Gt,En=Ie&i,Ln=Ve(oe),tr=Ln.length,Te=Ve(ve).length;if(tr!=Te&&!En)return!1;for(var jn=tr;jn--;){var Rn=Ln[jn];if(!(En?Rn in ve:F.call(ve,Rn)))return!1}if((Te=dn.get(oe))&&dn.get(ve))return Te==ve;for(var $n=!0,Wr=(dn.set(oe,ve),dn.set(ve,oe),En);++jn<tr;){Rn=Ln[jn];var uo,xr=oe[Rn],fo=ve[Rn];if(!((uo=ke?En?ke(fo,xr,Rn,ve,oe,dn):ke(xr,fo,Rn,oe,ve,dn):uo)===void 0?xr===fo||nn(xr,fo,Ie,ke,dn):uo)){$n=!1;break}Wr=Wr||Rn=="constructor"}return $n&&!Wr&&(Te=oe.constructor,yt=ve.constructor,Te!=yt&&"constructor"in oe&&"constructor"in ve&&!(typeof Te=="function"&&Te instanceof Te&&typeof yt=="function"&&yt instanceof yt)&&($n=!1)),dn.delete(oe),dn.delete(ve),$n}return!1}}function Qe(xt){var Wt;if(Ye(xt)&&(Wt=xt,!(z&&z in Wt)))return(be(xt)?j:U).test(On(xt))}function on(xt){if(re=typeof(re=(Wt=xt)&&Wt.constructor)=="function"&&re.prototype||Y,Wt!==re)return q(xt);var Wt,re,je,Gt=[];for(je in Object(xt))F.call(xt,je)&&je!="constructor"&&Gt.push(je);return Gt}function wn(xt,Wt,re,je,Gt,Ge){var Te=re&i,yt=xt.length,zt=Wt.length;if(yt!=zt&&!(Te&&yt<zt))return!1;if(zt=Ge.get(xt),zt&&Ge.get(Wt))return zt==Wt;var Tt=-1,Rt=!0,Ut=re&r?new Vt:void 0;for(Ge.set(xt,Wt),Ge.set(Wt,xt);++Tt<yt;){var Yt,ie=xt[Tt],X=Wt[Tt];if((Yt=je?Te?je(X,ie,Tt,Wt,xt,Ge):je(ie,X,Tt,xt,Wt,Ge):Yt)!==void 0){if(Yt)continue;Rt=!1;break}if(Ut){if(!function(dt,wt){for(var Bt=-1,St=dt==null?0:dt.length;++Bt<St;)if(wt(dt[Bt],Bt,dt))return 1}(Wt,function(dt,wt){return!Ut.has(wt)&&(ie===dt||Gt(ie,dt,re,je,Ge))&&Ut.push(wt)})){Rt=!1;break}}else if(ie!==X&&!Gt(ie,X,re,je,Ge)){Rt=!1;break}}return Ge.delete(xt),Ge.delete(Wt),Rt}function Ve(xt){var Wt=Zt,re=gn;if(Wt=Wt(xt),$e(xt))return Wt;for(var je=Wt,Gt=re(xt),Ge=-1,Te=Gt.length,yt=je.length;++Ge<Te;)je[yt+Ge]=Gt[Ge];return je}function Ue(Gt,Wt){var re,je,Gt=Gt.__data__;return((je=typeof(re=Wt))=="string"||je=="number"||je=="symbol"||je=="boolean"?re!=="__proto__":re===null)?Gt[typeof Wt=="string"?"string":"hash"]:Gt.map}function Ze(xt,Wt){return Wt=Wt,xt=(xt=xt)==null?void 0:xt[Wt],Qe(xt)?xt:void 0}Nt.prototype.clear=function(){this.__data__=Ft?Ft(null):{},this.size=0},Nt.prototype.delete=function(xt){return xt=this.has(xt)&&delete this.__data__[xt],this.size-=xt?1:0,xt},Nt.prototype.get=function(xt){var Wt,re=this.__data__;return Ft?(Wt=re[xt])===s?void 0:Wt:F.call(re,xt)?re[xt]:void 0},Nt.prototype.has=function(xt){var Wt=this.__data__;return Ft?Wt[xt]!==void 0:F.call(Wt,xt)},Nt.prototype.set=function(xt,Wt){var re=this.__data__;return this.size+=this.has(xt)?0:1,re[xt]=Ft&&Wt===void 0?s:Wt,this},It.prototype.clear=function(){this.__data__=[],this.size=0},It.prototype.delete=function(xt){var Wt=this.__data__;return!((xt=_e(Wt,xt))<0)&&(xt==Wt.length-1?Wt.pop():rt.call(Wt,xt,1),--this.size,!0)},It.prototype.get=function(xt){var Wt=this.__data__;return(xt=_e(Wt,xt))<0?void 0:Wt[xt][1]},It.prototype.has=function(xt){return-1<_e(this.__data__,xt)},It.prototype.set=function(xt,Wt){var re=this.__data__,je=_e(re,xt);return je<0?(++this.size,re.push([xt,Wt])):re[je][1]=Wt,this},me.prototype.clear=function(){this.size=0,this.__data__={hash:new Nt,map:new(lt||It),string:new Nt}},me.prototype.delete=function(xt){return xt=Ue(this,xt).delete(xt),this.size-=xt?1:0,xt},me.prototype.get=function(xt){return Ue(this,xt).get(xt)},me.prototype.has=function(xt){return Ue(this,xt).has(xt)},me.prototype.set=function(xt,Wt){var re=Ue(this,xt),je=re.size;return re.set(xt,Wt),this.size+=re.size==je?0:1,this},Vt.prototype.add=Vt.prototype.push=function(xt){return this.__data__.set(xt,s),this},Vt.prototype.has=function(xt){return this.__data__.has(xt)},ge.prototype.clear=function(){this.__data__=new It,this.size=0},ge.prototype.delete=function(re){var Wt=this.__data__,re=Wt.delete(re);return this.size=Wt.size,re},ge.prototype.get=function(xt){return this.__data__.get(xt)},ge.prototype.has=function(xt){return this.__data__.has(xt)},ge.prototype.set=function(xt,Wt){var re=this.__data__;if(re instanceof It){var je=re.__data__;if(!lt||je.length<199)return je.push([xt,Wt]),this.size=++re.size,this;re=this.__data__=new me(je)}return re.set(xt,Wt),this.size=re.size,this};var gn=ot?function(xt){if(xt==null)return[];xt=Object(xt);for(var Wt=ot(xt),re=function(zt){return K.call(xt,zt)},je=-1,Gt=Wt==null?0:Wt.length,Ge=0,Te=[];++je<Gt;){var yt=Wt[je];re(yt,je,Wt)&&(Te[Ge++]=yt)}return Te}:function(){return[]},fn=Ht;function On(xt){if(xt!=null){try{return tt.call(xt)}catch{}try{return xt+""}catch{}}return""}function bn(xt,Wt){return xt===Wt||xt!=xt&&Wt!=Wt}(ht&&fn(new ht(new ArrayBuffer(1)))!=G||lt&&fn(new lt)!=v||bt&&fn(bt.resolve())!=x||_t&&fn(new _t)!=I||Dt&&fn(new Dt)!=k)&&(fn=function(re){var Wt=Ht(re),re=Wt==R?re.constructor:void 0,re=re?On(re):"";if(re)switch(re){case Qt:return G;case ue:return v;case ae:return x;case se:return I;case Ne:return k}return Wt});var Xe=yn(function(){return arguments}())?yn:function(xt){return cn(xt)&&F.call(xt,"callee")&&!K.call(xt,"callee")},$e=Array.isArray,kt=at||function(){return!1};function be(xt){if(Ye(xt))return xt=Ht(xt),xt==m||xt==h||xt==d||xt==w}function de(xt){return typeof xt=="number"&&-1<xt&&xt%1==0&&xt<=l}function Ye(xt){var Wt=typeof xt;return xt!=null&&(Wt=="object"||Wt=="function")}function cn(xt){return xt!=null&&typeof xt=="object"}var We,At=E?(We=E,function(xt){return We(xt)}):function(xt){return cn(xt)&&de(xt.length)&&!!W[Ht(xt)]};function Zt(xt){return((Wt=xt)!=null&&de(Wt.length)&&!be(Wt)?De:on)(xt);var Wt}a.exports=function(xt,Wt){return ee(xt,Wt)}}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],331:[function(o,a,t){o=o("./_getNative")(o("./_root"),"DataView"),a.exports=o},{"./_getNative":386,"./_root":421}],332:[function(l,a,t){var e=l("./_hashClear"),s=l("./_hashDelete"),i=l("./_hashGet"),r=l("./_hashHas"),l=l("./_hashSet");function n(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var f=c[d];this.set(f[0],f[1])}}n.prototype.clear=e,n.prototype.delete=s,n.prototype.get=i,n.prototype.has=r,n.prototype.set=l,a.exports=n},{"./_hashClear":392,"./_hashDelete":393,"./_hashGet":394,"./_hashHas":395,"./_hashSet":396}],333:[function(l,a,t){var e=l("./_listCacheClear"),s=l("./_listCacheDelete"),i=l("./_listCacheGet"),r=l("./_listCacheHas"),l=l("./_listCacheSet");function n(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var f=c[d];this.set(f[0],f[1])}}n.prototype.clear=e,n.prototype.delete=s,n.prototype.get=i,n.prototype.has=r,n.prototype.set=l,a.exports=n},{"./_listCacheClear":403,"./_listCacheDelete":404,"./_listCacheGet":405,"./_listCacheHas":406,"./_listCacheSet":407}],334:[function(o,a,t){o=o("./_getNative")(o("./_root"),"Map"),a.exports=o},{"./_getNative":386,"./_root":421}],335:[function(l,a,t){var e=l("./_mapCacheClear"),s=l("./_mapCacheDelete"),i=l("./_mapCacheGet"),r=l("./_mapCacheHas"),l=l("./_mapCacheSet");function n(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var f=c[d];this.set(f[0],f[1])}}n.prototype.clear=e,n.prototype.delete=s,n.prototype.get=i,n.prototype.has=r,n.prototype.set=l,a.exports=n},{"./_mapCacheClear":408,"./_mapCacheDelete":409,"./_mapCacheGet":410,"./_mapCacheHas":411,"./_mapCacheSet":412}],336:[function(o,a,t){o=o("./_getNative")(o("./_root"),"Promise"),a.exports=o},{"./_getNative":386,"./_root":421}],337:[function(o,a,t){o=o("./_getNative")(o("./_root"),"Set"),a.exports=o},{"./_getNative":386,"./_root":421}],338:[function(i,a,t){var e=i("./_MapCache"),s=i("./_setCacheAdd"),i=i("./_setCacheHas");function r(l){var n=-1,c=l==null?0:l.length;for(this.__data__=new e;++n<c;)this.add(l[n])}r.prototype.add=r.prototype.push=s,r.prototype.has=i,a.exports=r},{"./_MapCache":335,"./_setCacheAdd":422,"./_setCacheHas":423}],339:[function(n,a,t){var e=n("./_ListCache"),s=n("./_stackClear"),i=n("./_stackDelete"),r=n("./_stackGet"),l=n("./_stackHas"),n=n("./_stackSet");function c(d){d=this.__data__=new e(d),this.size=d.size}c.prototype.clear=s,c.prototype.delete=i,c.prototype.get=r,c.prototype.has=l,c.prototype.set=n,a.exports=c},{"./_ListCache":333,"./_stackClear":425,"./_stackDelete":426,"./_stackGet":427,"./_stackHas":428,"./_stackSet":429}],340:[function(o,a,t){o=o("./_root").Symbol,a.exports=o},{"./_root":421}],341:[function(o,a,t){o=o("./_root").Uint8Array,a.exports=o},{"./_root":421}],342:[function(o,a,t){o=o("./_getNative")(o("./_root"),"WeakMap"),a.exports=o},{"./_getNative":386,"./_root":421}],343:[function(o,a,t){a.exports=function(e,s,i,r){for(var l=-1,n=e==null?0:e.length;++l<n;){var c=e[l];s(r,c,i(c),e)}return r}},{}],344:[function(o,a,t){a.exports=function(e,s){for(var i=-1,r=e==null?0:e.length,l=0,n=[];++i<r;){var c=e[i];s(c,i,e)&&(n[l++]=c)}return n}},{}],345:[function(o,a,t){var e=o("./_baseTimes"),s=o("./isArguments"),i=o("./isArray"),r=o("./isBuffer"),l=o("./_isIndex"),n=o("./isTypedArray"),c=Object.prototype.hasOwnProperty;a.exports=function(d,u){var f,g=i(d),m=!g&&s(d),h=!g&&!m&&r(d),v=!g&&!m&&!h&&n(d),b=g||m||h||v,_=b?e(d.length,String):[],R=_.length;for(f in d)!u&&!c.call(d,f)||b&&(f=="length"||h&&(f=="offset"||f=="parent")||v&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||l(f,R))||_.push(f);return _}},{"./_baseTimes":370,"./_isIndex":397,"./isArguments":437,"./isArray":438,"./isBuffer":440,"./isTypedArray":446}],346:[function(o,a,t){a.exports=function(e,s){for(var i=-1,r=e==null?0:e.length,l=Array(r);++i<r;)l[i]=s(e[i],i,e);return l}},{}],347:[function(o,a,t){a.exports=function(e,s){for(var i=-1,r=s.length,l=e.length;++i<r;)e[l+i]=s[i];return e}},{}],348:[function(o,a,t){a.exports=function(e,s){for(var i=-1,r=e==null?0:e.length;++i<r;)if(s(e[i],i,e))return!0;return!1}},{}],349:[function(o,a,t){var e=o("./eq");a.exports=function(s,i){for(var r=s.length;r--;)if(e(s[r][0],i))return r;return-1}},{"./eq":433}],350:[function(o,a,t){var e=o("./_baseEach");a.exports=function(s,i,r,l){return e(s,function(n,c,d){i(l,n,r(n),d)}),l}},{"./_baseEach":351}],351:[function(s,a,t){var e=s("./_baseForOwn"),s=s("./_createBaseEach")(e);a.exports=s},{"./_baseForOwn":353,"./_createBaseEach":377}],352:[function(o,a,t){o=o("./_createBaseFor")(),a.exports=o},{"./_createBaseFor":378}],353:[function(o,a,t){var e=o("./_baseFor"),s=o("./keys");a.exports=function(i,r){return i&&e(i,r,s)}},{"./_baseFor":352,"./keys":447}],354:[function(o,a,t){var e=o("./_castPath"),s=o("./_toKey");a.exports=function(i,r){for(var l=0,n=(r=e(r,i)).length;i!=null&&l<n;)i=i[s(r[l++])];return l&&l==n?i:void 0}},{"./_castPath":374,"./_toKey":431}],355:[function(o,a,t){var e=o("./_arrayPush"),s=o("./isArray");a.exports=function(i,r,l){return r=r(i),s(i)?r:e(r,l(i))}},{"./_arrayPush":347,"./isArray":438}],356:[function(o,a,t){var e=o("./_Symbol"),s=o("./_getRawTag"),i=o("./_objectToString"),r=e?e.toStringTag:void 0;a.exports=function(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":(r&&r in Object(l)?s:i)(l)}},{"./_Symbol":340,"./_getRawTag":387,"./_objectToString":419}],357:[function(o,a,t){a.exports=function(e,s){return e!=null&&s in Object(e)}},{}],358:[function(o,a,t){var e=o("./_baseGetTag"),s=o("./isObjectLike");a.exports=function(i){return s(i)&&e(i)=="[object Arguments]"}},{"./_baseGetTag":356,"./isObjectLike":444}],359:[function(o,a,t){var e=o("./_baseIsEqualDeep"),s=o("./isObjectLike");a.exports=function i(r,l,n,c,d){return r===l||(r==null||l==null||!s(r)&&!s(l)?r!=r&&l!=l:e(r,l,n,c,i,d))}},{"./_baseIsEqualDeep":360,"./isObjectLike":444}],360:[function(o,a,t){var e=o("./_Stack"),s=o("./_equalArrays"),i=o("./_equalByTag"),r=o("./_equalObjects"),l=o("./_getTag"),n=o("./isArray"),c=o("./isBuffer"),d=o("./isTypedArray"),u="[object Arguments]",f="[object Array]",g="[object Object]",m=Object.prototype.hasOwnProperty;a.exports=function(h,v,b,_,R,x){var w=n(h),I=n(v),O=w?f:l(h),I=I?f:l(v),L=(O=O==u?g:O)==g,M=(I=I==u?g:I)==g;if((I=O==I)&&c(h)){if(!c(v))return!1;L=!(w=!0)}return I&&!L?(x=x||new e,w||d(h)?s(h,v,b,_,R,x):i(h,v,O,b,_,R,x)):!(1&b)&&(w=L&&m.call(h,"__wrapped__"),O=M&&m.call(v,"__wrapped__"),w||O)?R(w?h.value():h,O?v.value():v,b,_,x=x||new e):!!I&&(x=x||new e,r(h,v,b,_,R,x))}},{"./_Stack":339,"./_equalArrays":379,"./_equalByTag":380,"./_equalObjects":381,"./_getTag":389,"./isArray":438,"./isBuffer":440,"./isTypedArray":446}],361:[function(o,a,t){var e=o("./_Stack"),s=o("./_baseIsEqual");a.exports=function(i,r,l,n){var c=l.length,d=c,u=!n;if(i==null)return!d;for(i=Object(i);c--;){var f=l[c];if(u&&f[2]?f[1]!==i[f[0]]:!(f[0]in i))return!1}for(;++c<d;){var g=(f=l[c])[0],m=i[g],h=f[1];if(u&&f[2]){if(m===void 0&&!(g in i))return!1}else{var v,b=new e;if(!((v=n?n(m,h,g,i,r,b):v)===void 0?s(h,m,3,n,b):v))return!1}}return!0}},{"./_Stack":339,"./_baseIsEqual":359}],362:[function(n,a,t){var e=n("./isFunction"),s=n("./_isMasked"),i=n("./isObject"),r=n("./_toSource"),l=/^\[object .+?Constructor\]$/,n=Function.prototype,c=Object.prototype,n=n.toString,c=c.hasOwnProperty,d=RegExp("^"+n.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");a.exports=function(u){return!(!i(u)||s(u))&&(e(u)?d:l).test(r(u))}},{"./_isMasked":400,"./_toSource":432,"./isFunction":441,"./isObject":443}],363:[function(o,a,t){var e=o("./_baseGetTag"),s=o("./isLength"),i=o("./isObjectLike"),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,a.exports=function(l){return i(l)&&s(l.length)&&!!r[e(l)]}},{"./_baseGetTag":356,"./isLength":442,"./isObjectLike":444}],364:[function(o,a,t){var e=o("./_baseMatches"),s=o("./_baseMatchesProperty"),i=o("./identity"),r=o("./isArray"),l=o("./property");a.exports=function(n){return typeof n=="function"?n:n==null?i:typeof n=="object"?r(n)?s(n[0],n[1]):e(n):l(n)}},{"./_baseMatches":366,"./_baseMatchesProperty":367,"./identity":436,"./isArray":438,"./property":450}],365:[function(o,a,t){var e=o("./_isPrototype"),s=o("./_nativeKeys"),i=Object.prototype.hasOwnProperty;a.exports=function(r){if(!e(r))return s(r);var l,n=[];for(l in Object(r))i.call(r,l)&&l!="constructor"&&n.push(l);return n}},{"./_isPrototype":401,"./_nativeKeys":417}],366:[function(o,a,t){var e=o("./_baseIsMatch"),s=o("./_getMatchData"),i=o("./_matchesStrictComparable");a.exports=function(r){var l=s(r);return l.length==1&&l[0][2]?i(l[0][0],l[0][1]):function(n){return n===r||e(n,r,l)}}},{"./_baseIsMatch":361,"./_getMatchData":385,"./_matchesStrictComparable":414}],367:[function(o,a,t){var e=o("./_baseIsEqual"),s=o("./get"),i=o("./hasIn"),r=o("./_isKey"),l=o("./_isStrictComparable"),n=o("./_matchesStrictComparable"),c=o("./_toKey");a.exports=function(d,u){return r(d)&&l(u)?n(c(d),u):function(f){var g=s(f,d);return g===void 0&&g===u?i(f,d):e(u,g,3)}}},{"./_baseIsEqual":359,"./_isKey":398,"./_isStrictComparable":402,"./_matchesStrictComparable":414,"./_toKey":431,"./get":434,"./hasIn":435}],368:[function(o,a,t){a.exports=function(e){return function(s){return s==null?void 0:s[e]}}},{}],369:[function(o,a,t){var e=o("./_baseGet");a.exports=function(s){return function(i){return e(i,s)}}},{"./_baseGet":354}],370:[function(o,a,t){a.exports=function(e,s){for(var i=-1,r=Array(e);++i<e;)r[i]=s(i);return r}},{}],371:[function(l,a,t){var e=l("./_Symbol"),s=l("./_arrayMap"),i=l("./isArray"),r=l("./isSymbol"),l=e?e.prototype:void 0,n=l?l.toString:void 0;a.exports=function c(d){if(typeof d=="string")return d;if(i(d))return s(d,c)+"";if(r(d))return n?n.call(d):"";var u=d+"";return u=="0"&&1/d==-1/0?"-0":u}},{"./_Symbol":340,"./_arrayMap":346,"./isArray":438,"./isSymbol":445}],372:[function(o,a,t){a.exports=function(e){return function(s){return e(s)}}},{}],373:[function(o,a,t){a.exports=function(e,s){return e.has(s)}},{}],374:[function(o,a,t){var e=o("./isArray"),s=o("./_isKey"),i=o("./_stringToPath"),r=o("./toString");a.exports=function(l,n){return e(l)?l:s(l,n)?[l]:i(r(l))}},{"./_isKey":398,"./_stringToPath":430,"./isArray":438,"./toString":453}],375:[function(o,a,t){o=o("./_root")["__core-js_shared__"],a.exports=o},{"./_root":421}],376:[function(o,a,t){var e=o("./_arrayAggregator"),s=o("./_baseAggregator"),i=o("./_baseIteratee"),r=o("./isArray");a.exports=function(l,n){return function(c,d){var u=r(c)?e:s,f=n?n():{};return u(c,l,i(d,2),f)}}},{"./_arrayAggregator":343,"./_baseAggregator":350,"./_baseIteratee":364,"./isArray":438}],377:[function(o,a,t){var e=o("./isArrayLike");a.exports=function(s,i){return function(r,l){if(r==null)return r;if(!e(r))return s(r,l);for(var n=r.length,c=i?n:-1,d=Object(r);(i?c--:++c<n)&&l(d[c],c,d)!==!1;);return r}}},{"./isArrayLike":439}],378:[function(o,a,t){a.exports=function(e){return function(s,i,r){for(var l=-1,n=Object(s),c=r(s),d=c.length;d--;){var u=c[e?d:++l];if(i(n[u],u,n)===!1)break}return s}}},{}],379:[function(o,a,t){var e=o("./_SetCache"),s=o("./_arraySome"),i=o("./_cacheHas");a.exports=function(r,l,n,c,d,u){var f=1&n,g=r.length,m=l.length;if(g!=m&&!(f&&g<m))return!1;var m=u.get(r),h=u.get(l);if(m&&h)return m==l&&h==r;var v=-1,b=!0,_=2&n?new e:void 0;for(u.set(r,l),u.set(l,r);++v<g;){var R,x=r[v],w=l[v];if((R=c?f?c(w,x,v,l,r,u):c(x,w,v,r,l,u):R)!==void 0){if(R)continue;b=!1;break}if(_){if(!s(l,function(O,I){if(!i(_,I)&&(x===O||d(x,O,n,c,u)))return _.push(I)})){b=!1;break}}else if(x!==w&&!d(x,w,n,c,u)){b=!1;break}}return u.delete(r),u.delete(l),b}},{"./_SetCache":338,"./_arraySome":348,"./_cacheHas":373}],380:[function(c,a,t){var e=c("./_Symbol"),s=c("./_Uint8Array"),i=c("./eq"),r=c("./_equalArrays"),l=c("./_mapToArray"),n=c("./_setToArray"),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;a.exports=function(u,f,g,m,h,v,b){switch(g){case"[object DataView]":if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case"[object ArrayBuffer]":return!!(u.byteLength==f.byteLength&&v(new s(u),new s(f)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+u,+f);case"[object Error]":return u.name==f.name&&u.message==f.message;case"[object RegExp]":case"[object String]":return u==f+"";case"[object Map]":var _=l;case"[object Set]":if(_=_||n,u.size!=f.size&&!(1&m))return!1;var R=b.get(u);return R?R==f:(m|=2,b.set(u,f),R=r(_(u),_(f),m,h,v,b),b.delete(u),R);case"[object Symbol]":if(d)return d.call(u)==d.call(f)}return!1}},{"./_Symbol":340,"./_Uint8Array":341,"./_equalArrays":379,"./_mapToArray":413,"./_setToArray":424,"./eq":433}],381:[function(o,a,t){var e=o("./_getAllKeys"),s=Object.prototype.hasOwnProperty;a.exports=function(i,r,l,n,c,d){var u=1&l,f=e(i),g=f.length;if(g!=e(r).length&&!u)return!1;for(var m=g;m--;){var h=f[m];if(!(u?h in r:s.call(r,h)))return!1}var v=d.get(i),b=d.get(r);if(v&&b)return v==r&&b==i;for(var _=!0,R=(d.set(i,r),d.set(r,i),u);++m<g;){var x,w=i[h=f[m]],O=r[h];if(!((x=n?u?n(O,w,h,r,i,d):n(w,O,h,i,r,d):x)===void 0?w===O||c(w,O,l,n,d):x)){_=!1;break}R=R||h=="constructor"}return _&&!R&&(v=i.constructor)!=(b=r.constructor)&&"constructor"in i&&"constructor"in r&&!(typeof v=="function"&&v instanceof v&&typeof b=="function"&&b instanceof b)&&(_=!1),d.delete(i),d.delete(r),_}},{"./_getAllKeys":383}],382:[function(o,a,t){(function(e){(function(){var s=typeof e=="object"&&e&&e.Object===Object&&e;a.exports=s}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],383:[function(o,a,t){var e=o("./_baseGetAllKeys"),s=o("./_getSymbols"),i=o("./keys");a.exports=function(r){return e(r,i,s)}},{"./_baseGetAllKeys":355,"./_getSymbols":388,"./keys":447}],384:[function(o,a,t){var e=o("./_isKeyable");a.exports=function(s,i){return s=s.__data__,e(i)?s[typeof i=="string"?"string":"hash"]:s.map}},{"./_isKeyable":399}],385:[function(o,a,t){var e=o("./_isStrictComparable"),s=o("./keys");a.exports=function(i){for(var r=s(i),l=r.length;l--;){var n=r[l],c=i[n];r[l]=[n,c,e(c)]}return r}},{"./_isStrictComparable":402,"./keys":447}],386:[function(o,a,t){var e=o("./_baseIsNative"),s=o("./_getValue");a.exports=function(i,r){return i=s(i,r),e(i)?i:void 0}},{"./_baseIsNative":362,"./_getValue":390}],387:[function(e,a,t){var e=e("./_Symbol"),s=Object.prototype,i=s.hasOwnProperty,r=s.toString,l=e?e.toStringTag:void 0;a.exports=function(n){var c=i.call(n,l),d=n[l];try{var u=!(n[l]=void 0)}catch{}var f=r.call(n);return u&&(c?n[l]=d:delete n[l]),f}},{"./_Symbol":340}],388:[function(s,a,t){var e=s("./_arrayFilter"),s=s("./stubArray"),i=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;a.exports=r?function(l){return l==null?[]:(l=Object(l),e(r(l),function(n){return i.call(l,n)}))}:s},{"./_arrayFilter":344,"./stubArray":451}],389:[function(x,a,t){var e=x("./_DataView"),s=x("./_Map"),i=x("./_Promise"),r=x("./_Set"),l=x("./_WeakMap"),n=x("./_baseGetTag"),c=x("./_toSource"),d="[object Map]",u="[object Promise]",f="[object Set]",g="[object WeakMap]",m="[object DataView]",h=c(e),v=c(s),b=c(i),_=c(r),R=c(l),x=n;(e&&x(new e(new ArrayBuffer(1)))!=m||s&&x(new s)!=d||i&&x(i.resolve())!=u||r&&x(new r)!=f||l&&x(new l)!=g)&&(x=function(I){var O=n(I),I=O=="[object Object]"?I.constructor:void 0,I=I?c(I):"";if(I)switch(I){case h:return m;case v:return d;case b:return u;case _:return f;case R:return g}return O}),a.exports=x},{"./_DataView":331,"./_Map":334,"./_Promise":336,"./_Set":337,"./_WeakMap":342,"./_baseGetTag":356,"./_toSource":432}],390:[function(o,a,t){a.exports=function(e,s){return e==null?void 0:e[s]}},{}],391:[function(o,a,t){var e=o("./_castPath"),s=o("./isArguments"),i=o("./isArray"),r=o("./_isIndex"),l=o("./isLength"),n=o("./_toKey");a.exports=function(c,d,u){for(var f=-1,g=(d=e(d,c)).length,m=!1;++f<g;){var h=n(d[f]);if(!(m=c!=null&&u(c,h)))break;c=c[h]}return m||++f!=g?m:!!(g=c==null?0:c.length)&&l(g)&&r(h,g)&&(i(c)||s(c))}},{"./_castPath":374,"./_isIndex":397,"./_toKey":431,"./isArguments":437,"./isArray":438,"./isLength":442}],392:[function(o,a,t){var e=o("./_nativeCreate");a.exports=function(){this.__data__=e?e(null):{},this.size=0}},{"./_nativeCreate":416}],393:[function(o,a,t){a.exports=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e}},{}],394:[function(o,a,t){var e=o("./_nativeCreate"),s=Object.prototype.hasOwnProperty;a.exports=function(i){var r,l=this.__data__;return e?(r=l[i])==="__lodash_hash_undefined__"?void 0:r:s.call(l,i)?l[i]:void 0}},{"./_nativeCreate":416}],395:[function(o,a,t){var e=o("./_nativeCreate"),s=Object.prototype.hasOwnProperty;a.exports=function(i){var r=this.__data__;return e?r[i]!==void 0:s.call(r,i)}},{"./_nativeCreate":416}],396:[function(o,a,t){var e=o("./_nativeCreate");a.exports=function(s,i){var r=this.__data__;return this.size+=this.has(s)?0:1,r[s]=e&&i===void 0?"__lodash_hash_undefined__":i,this}},{"./_nativeCreate":416}],397:[function(o,a,t){var e=/^(?:0|[1-9]\d*)$/;a.exports=function(s,i){var r=typeof s;return!!(i=i??9007199254740991)&&(r=="number"||r!="symbol"&&e.test(s))&&-1<s&&s%1==0&&s<i}},{}],398:[function(o,a,t){var e=o("./isArray"),s=o("./isSymbol"),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;a.exports=function(l,n){if(e(l))return!1;var c=typeof l;return!(c!="number"&&c!="symbol"&&c!="boolean"&&l!=null&&!s(l))||r.test(l)||!i.test(l)||n!=null&&l in Object(n)}},{"./isArray":438,"./isSymbol":445}],399:[function(o,a,t){a.exports=function(e){var s=typeof e;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?e!=="__proto__":e===null}},{}],400:[function(e,a,t){var e=e("./_coreJsData"),s=(e=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";a.exports=function(i){return!!s&&s in i}},{"./_coreJsData":375}],401:[function(o,a,t){var e=Object.prototype;a.exports=function(s){var i=s&&s.constructor;return s===(typeof i=="function"&&i.prototype||e)}},{}],402:[function(o,a,t){var e=o("./isObject");a.exports=function(s){return s==s&&!e(s)}},{"./isObject":443}],403:[function(o,a,t){a.exports=function(){this.__data__=[],this.size=0}},{}],404:[function(o,a,t){var e=o("./_assocIndexOf"),s=Array.prototype.splice;a.exports=function(i){var r=this.__data__;return!((i=e(r,i))<0)&&(i==r.length-1?r.pop():s.call(r,i,1),--this.size,!0)}},{"./_assocIndexOf":349}],405:[function(o,a,t){var e=o("./_assocIndexOf");a.exports=function(s){var i=this.__data__;return(s=e(i,s))<0?void 0:i[s][1]}},{"./_assocIndexOf":349}],406:[function(o,a,t){var e=o("./_assocIndexOf");a.exports=function(s){return-1<e(this.__data__,s)}},{"./_assocIndexOf":349}],407:[function(o,a,t){var e=o("./_assocIndexOf");a.exports=function(s,i){var r=this.__data__,l=e(r,s);return l<0?(++this.size,r.push([s,i])):r[l][1]=i,this}},{"./_assocIndexOf":349}],408:[function(o,a,t){var e=o("./_Hash"),s=o("./_ListCache"),i=o("./_Map");a.exports=function(){this.size=0,this.__data__={hash:new e,map:new(i||s),string:new e}}},{"./_Hash":332,"./_ListCache":333,"./_Map":334}],409:[function(o,a,t){var e=o("./_getMapData");a.exports=function(s){return s=e(this,s).delete(s),this.size-=s?1:0,s}},{"./_getMapData":384}],410:[function(o,a,t){var e=o("./_getMapData");a.exports=function(s){return e(this,s).get(s)}},{"./_getMapData":384}],411:[function(o,a,t){var e=o("./_getMapData");a.exports=function(s){return e(this,s).has(s)}},{"./_getMapData":384}],412:[function(o,a,t){var e=o("./_getMapData");a.exports=function(s,i){var r=e(this,s),l=r.size;return r.set(s,i),this.size+=r.size==l?0:1,this}},{"./_getMapData":384}],413:[function(o,a,t){a.exports=function(e){var s=-1,i=Array(e.size);return e.forEach(function(r,l){i[++s]=[l,r]}),i}},{}],414:[function(o,a,t){a.exports=function(e,s){return function(i){return i!=null&&i[e]===s&&(s!==void 0||e in Object(i))}}},{}],415:[function(o,a,t){var e=o("./memoize");a.exports=function(s){var i=(s=e(s,function(r){return i.size===500&&i.clear(),r})).cache;return s}},{"./memoize":448}],416:[function(o,a,t){o=o("./_getNative")(Object,"create"),a.exports=o},{"./_getNative":386}],417:[function(o,a,t){o=o("./_overArg")(Object.keys,Object),a.exports=o},{"./_overArg":420}],418:[function(e,a,r){var e=e("./_freeGlobal"),r=typeof r=="object"&&r&&!r.nodeType&&r,s=r&&typeof a=="object"&&a&&!a.nodeType&&a,i=s&&s.exports===r&&e.process,r=function(){try{var l=s&&s.require&&s.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();a.exports=r},{"./_freeGlobal":382}],419:[function(o,a,t){var e=Object.prototype.toString;a.exports=function(s){return e.call(s)}},{}],420:[function(o,a,t){a.exports=function(e,s){return function(i){return e(s(i))}}},{}],421:[function(s,a,t){var s=s("./_freeGlobal"),e=typeof self=="object"&&self&&self.Object===Object&&self,s=s||e||Function("return this")();a.exports=s},{"./_freeGlobal":382}],422:[function(o,a,t){a.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},{}],423:[function(o,a,t){a.exports=function(e){return this.__data__.has(e)}},{}],424:[function(o,a,t){a.exports=function(e){var s=-1,i=Array(e.size);return e.forEach(function(r){i[++s]=r}),i}},{}],425:[function(o,a,t){var e=o("./_ListCache");a.exports=function(){this.__data__=new e,this.size=0}},{"./_ListCache":333}],426:[function(o,a,t){a.exports=function(i){var s=this.__data__,i=s.delete(i);return this.size=s.size,i}},{}],427:[function(o,a,t){a.exports=function(e){return this.__data__.get(e)}},{}],428:[function(o,a,t){a.exports=function(e){return this.__data__.has(e)}},{}],429:[function(o,a,t){var e=o("./_ListCache"),s=o("./_Map"),i=o("./_MapCache");a.exports=function(r,l){var n=this.__data__;if(n instanceof e){var c=n.__data__;if(!s||c.length<199)return c.push([r,l]),this.size=++n.size,this;n=this.__data__=new i(c)}return n.set(r,l),this.size=n.size,this}},{"./_ListCache":333,"./_Map":334,"./_MapCache":335}],430:[function(i,a,t){var i=i("./_memoizeCapped"),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,i=i(function(r){var l=[];return r.charCodeAt(0)===46&&l.push(""),r.replace(e,function(n,c,d,u){l.push(d?u.replace(s,"$1"):c||n)}),l});a.exports=i},{"./_memoizeCapped":415}],431:[function(o,a,t){var e=o("./isSymbol");a.exports=function(s){if(typeof s=="string"||e(s))return s;var i=s+"";return i=="0"&&1/s==-1/0?"-0":i}},{"./isSymbol":445}],432:[function(o,a,t){var e=Function.prototype.toString;a.exports=function(s){if(s!=null){try{return e.call(s)}catch{}try{return s+""}catch{}}return""}},{}],433:[function(o,a,t){a.exports=function(e,s){return e===s||e!=e&&s!=s}},{}],434:[function(o,a,t){var e=o("./_baseGet");a.exports=function(s,i,r){return(s=s==null?void 0:e(s,i))===void 0?r:s}},{"./_baseGet":354}],435:[function(o,a,t){var e=o("./_baseHasIn"),s=o("./_hasPath");a.exports=function(i,r){return i!=null&&s(i,r,e)}},{"./_baseHasIn":357,"./_hasPath":391}],436:[function(o,a,t){a.exports=function(e){return e}},{}],437:[function(l,a,t){var e=l("./_baseIsArguments"),s=l("./isObjectLike"),l=Object.prototype,i=l.hasOwnProperty,r=l.propertyIsEnumerable,l=e(function(){return arguments}())?e:function(n){return s(n)&&i.call(n,"callee")&&!r.call(n,"callee")};a.exports=l},{"./_baseIsArguments":358,"./isObjectLike":444}],438:[function(o,a,t){var e=Array.isArray;a.exports=e},{}],439:[function(o,a,t){var e=o("./isFunction"),s=o("./isLength");a.exports=function(i){return i!=null&&s(i.length)&&!e(i)}},{"./isFunction":441,"./isLength":442}],440:[function(s,a,r){var e=s("./_root"),s=s("./stubFalse"),r=typeof r=="object"&&r&&!r.nodeType&&r,i=r&&typeof a=="object"&&a&&!a.nodeType&&a,i=i&&i.exports===r?e.Buffer:void 0,r=i?i.isBuffer:void 0;a.exports=r||s},{"./_root":421,"./stubFalse":452}],441:[function(o,a,t){var e=o("./_baseGetTag"),s=o("./isObject");a.exports=function(i){return!!s(i)&&((i=e(i))=="[object Function]"||i=="[object GeneratorFunction]"||i=="[object AsyncFunction]"||i=="[object Proxy]")}},{"./_baseGetTag":356,"./isObject":443}],442:[function(o,a,t){a.exports=function(e){return typeof e=="number"&&-1<e&&e%1==0&&e<=9007199254740991}},{}],443:[function(o,a,t){a.exports=function(e){var s=typeof e;return e!=null&&(s=="object"||s=="function")}},{}],444:[function(o,a,t){a.exports=function(e){return e!=null&&typeof e=="object"}},{}],445:[function(o,a,t){var e=o("./_baseGetTag"),s=o("./isObjectLike");a.exports=function(i){return typeof i=="symbol"||s(i)&&e(i)=="[object Symbol]"}},{"./_baseGetTag":356,"./isObjectLike":444}],446:[function(s,a,t){var e=s("./_baseIsTypedArray"),i=s("./_baseUnary"),s=s("./_nodeUtil"),s=s&&s.isTypedArray,i=s?i(s):e;a.exports=i},{"./_baseIsTypedArray":363,"./_baseUnary":372,"./_nodeUtil":418}],447:[function(o,a,t){var e=o("./_arrayLikeKeys"),s=o("./_baseKeys"),i=o("./isArrayLike");a.exports=function(r){return(i(r)?e:s)(r)}},{"./_arrayLikeKeys":345,"./_baseKeys":365,"./isArrayLike":439}],448:[function(o,a,t){var e=o("./_MapCache");function s(i,r){if(typeof i!="function"||r!=null&&typeof r!="function")throw new TypeError("Expected a function");function l(){var n=arguments,c=r?r.apply(this,n):n[0],d=l.cache;return d.has(c)?d.get(c):(n=i.apply(this,n),l.cache=d.set(c,n)||d,n)}return l.cache=new(s.Cache||e),l}s.Cache=e,a.exports=s},{"./_MapCache":335}],449:[function(o,a,t){o=o("./_createAggregator")(function(e,s,i){e[i?0:1].push(s)},function(){return[[],[]]}),a.exports=o},{"./_createAggregator":376}],450:[function(o,a,t){var e=o("./_baseProperty"),s=o("./_basePropertyDeep"),i=o("./_isKey"),r=o("./_toKey");a.exports=function(l){return i(l)?e(r(l)):s(l)}},{"./_baseProperty":368,"./_basePropertyDeep":369,"./_isKey":398,"./_toKey":431}],451:[function(o,a,t){a.exports=function(){return[]}},{}],452:[function(o,a,t){a.exports=function(){return!1}},{}],453:[function(o,a,t){var e=o("./_baseToString");a.exports=function(s){return s==null?"":e(s)}},{"./_baseToString":371}],454:[function(o,a,t){function e(s){return s!=s}a.exports=function(s,i){return s===0&&i===0?1/s==1/i:s===i||!(!e(s)||!e(i))}},{}],455:[function(r,a,t){var e=r("define-properties"),l=r("call-bind"),s=r("./implementation"),i=r("./polyfill"),r=r("./shim"),l=l(i(),Object);e(l,{getPolyfill:i,implementation:s,shim:r}),a.exports=l},{"./implementation":454,"./polyfill":456,"./shim":457,"call-bind":304,"define-properties":314}],456:[function(o,a,t){var e=o("./implementation");a.exports=function(){return typeof Object.is=="function"?Object.is:e}},{"./implementation":454}],457:[function(o,a,t){var e=o("./polyfill"),s=o("define-properties");a.exports=function(){var i=e();return s(Object,{is:i},{is:function(){return Object.is!==i}}),i}},{"./polyfill":456,"define-properties":314}],458:[function(o,a,t){var e,s,i,r,l,n,c,d,u,f;Object.keys||(e=Object.prototype.hasOwnProperty,s=Object.prototype.toString,i=o("./isArguments"),o=Object.prototype.propertyIsEnumerable,r=!o.call({toString:null},"toString"),l=o.call(function(){},"prototype"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(g){var m=g.constructor;return m&&m.prototype===g},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if(typeof window>"u")return!1;for(var g in window)try{if(!d["$"+g]&&e.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{c(window[g])}catch{return!0}}catch{return!0}return!1}(),f=function(g){var m=g!==null&&typeof g=="object",h=s.call(g)==="[object Function]",v=i(g),b=m&&s.call(g)==="[object String]",_=[];if(!m&&!h&&!v)throw new TypeError("Object.keys called on a non-object");var R=l&&h;if(b&&0<g.length&&!e.call(g,0))for(var x=0;x<g.length;++x)_.push(String(x));if(v&&0<g.length)for(var w=0;w<g.length;++w)_.push(String(w));else for(var O in g)R&&O==="prototype"||!e.call(g,O)||_.push(String(O));if(r)for(var I=function(M){if(typeof window>"u"||!u)return c(M);try{return c(M)}catch{return!1}}(g),L=0;L<n.length;++L)I&&n[L]==="constructor"||!e.call(g,n[L])||_.push(n[L]);return _}),a.exports=f},{"./isArguments":460}],459:[function(o,a,t){var e=Array.prototype.slice,s=o("./isArguments"),i=Object.keys,r=i?function(n){return i(n)}:o("./implementation"),l=Object.keys;r.shim=function(){return Object.keys?function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2)||(Object.keys=function(n){return s(n)?l(e.call(n)):l(n)}):Object.keys=r,Object.keys||r},a.exports=r},{"./implementation":458,"./isArguments":460}],460:[function(o,a,t){var e=Object.prototype.toString;a.exports=function(s){var i=e.call(s);return i==="[object Arguments]"||i!=="[object Array]"&&s!==null&&typeof s=="object"&&typeof s.length=="number"&&0<=s.length&&e.call(s.callee)==="[object Function]"}},{}],461:[function(o,a,t){var e={};(0,o("./lib/utils/common").assign)(e,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),a.exports=e},{"./lib/deflate":462,"./lib/inflate":463,"./lib/utils/common":464,"./lib/zlib/constants":467}],462:[function(o,a,t){var e=o("./zlib/deflate"),s=o("./utils/common"),i=o("./utils/strings"),r=o("./zlib/messages"),l=o("./zlib/zstream"),n=Object.prototype.toString;function c(u){if(!(this instanceof c))return new c(u);if(this.options=s.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},u||{}),u=this.options,u.raw&&0<u.windowBits?u.windowBits=-u.windowBits:u.gzip&&0<u.windowBits&&u.windowBits<16&&(u.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,(this.strm.avail_out=0)!==(f=e.deflateInit2(this.strm,u.level,u.method,u.windowBits,u.memLevel,u.strategy)))throw new Error(r[f]);if(u.header&&e.deflateSetHeader(this.strm,u.header),u.dictionary){var f,u=typeof u.dictionary=="string"?i.string2buf(u.dictionary):n.call(u.dictionary)==="[object ArrayBuffer]"?new Uint8Array(u.dictionary):u.dictionary;if((f=e.deflateSetDictionary(this.strm,u))!==0)throw new Error(r[f]);this._dict_set=!0}}function d(u,f){if(f=new c(f),f.push(u,!0),f.err)throw f.msg||r[f.err];return f.result}c.prototype.push=function(u,f){var g,m,h=this.strm,v=this.options.chunkSize;if(this.ended)return!1;m=f===~~f?f:f===!0?4:0,typeof u=="string"?h.input=i.string2buf(u):n.call(u)==="[object ArrayBuffer]"?h.input=new Uint8Array(u):h.input=u,h.next_in=0,h.avail_in=h.input.length;do if(h.avail_out===0&&(h.output=new s.Buf8(v),h.next_out=0,h.avail_out=v),(g=e.deflate(h,m))!==1&&g!==0)return this.onEnd(g),!(this.ended=!0);while(h.avail_out!==0&&(h.avail_in!==0||m!==4&&m!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(s.shrinkBuf(h.output,h.next_out))):this.onData(s.shrinkBuf(h.output,h.next_out))),(0<h.avail_in||h.avail_out===0)&&g!==1);return m===4?(g=e.deflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===0):m!==2||(this.onEnd(0),!(h.avail_out=0))},c.prototype.onData=function(u){this.chunks.push(u)},c.prototype.onEnd=function(u){u===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},t.Deflate=c,t.deflate=d,t.deflateRaw=function(u,f){return(f=f||{}).raw=!0,d(u,f)},t.gzip=function(u,f){return(f=f||{}).gzip=!0,d(u,f)}},{"./utils/common":464,"./utils/strings":465,"./zlib/deflate":469,"./zlib/messages":474,"./zlib/zstream":476}],463:[function(o,a,t){var e=o("./zlib/inflate"),s=o("./utils/common"),i=o("./utils/strings"),r=o("./zlib/constants"),l=o("./zlib/messages"),n=o("./zlib/zstream"),c=o("./zlib/gzheader"),d=Object.prototype.toString;function u(h){if(!(this instanceof u))return new u(h);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},h||{});var m=this.options,h=(m.raw&&0<=m.windowBits&&m.windowBits<16&&(m.windowBits=-m.windowBits,m.windowBits===0&&(m.windowBits=-15)),!(0<=m.windowBits&&m.windowBits<16)||h&&h.windowBits||(m.windowBits+=32),15<m.windowBits&&m.windowBits<48&&!(15&m.windowBits)&&(m.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0,e.inflateInit2(this.strm,m.windowBits));if(h!==r.Z_OK)throw new Error(l[h]);if(this.header=new c,e.inflateGetHeader(this.strm,this.header),m.dictionary&&(typeof m.dictionary=="string"?m.dictionary=i.string2buf(m.dictionary):d.call(m.dictionary)==="[object ArrayBuffer]"&&(m.dictionary=new Uint8Array(m.dictionary)),m.raw&&(h=e.inflateSetDictionary(this.strm,m.dictionary))!==r.Z_OK))throw new Error(l[h])}function f(g,m){if(m=new u(m),m.push(g,!0),m.err)throw m.msg||l[m.err];return m.result}u.prototype.push=function(g,m){var h,v,b,_,R,x=this.strm,w=this.options.chunkSize,O=this.options.dictionary,I=!1;if(this.ended)return!1;v=m===~~m?m:m===!0?r.Z_FINISH:r.Z_NO_FLUSH,typeof g=="string"?x.input=i.binstring2buf(g):d.call(g)==="[object ArrayBuffer]"?x.input=new Uint8Array(g):x.input=g,x.next_in=0,x.avail_in=x.input.length;do if(x.avail_out===0&&(x.output=new s.Buf8(w),x.next_out=0,x.avail_out=w),(h=(h=e.inflate(x,r.Z_NO_FLUSH))===r.Z_NEED_DICT&&O?e.inflateSetDictionary(this.strm,O):h)===r.Z_BUF_ERROR&&I===!0&&(h=r.Z_OK,I=!1),h!==r.Z_STREAM_END&&h!==r.Z_OK)return this.onEnd(h),!(this.ended=!0);while(!x.next_out||x.avail_out!==0&&h!==r.Z_STREAM_END&&(x.avail_in!==0||v!==r.Z_FINISH&&v!==r.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=i.utf8border(x.output,x.next_out),_=x.next_out-b,R=i.buf2string(x.output,b),x.next_out=_,x.avail_out=w-_,_&&s.arraySet(x.output,x.output,b,_,0),this.onData(R)):this.onData(s.shrinkBuf(x.output,x.next_out))),x.avail_in===0&&x.avail_out===0&&(I=!0),(0<x.avail_in||x.avail_out===0)&&h!==r.Z_STREAM_END);return(v=h===r.Z_STREAM_END?r.Z_FINISH:v)===r.Z_FINISH?(h=e.inflateEnd(this.strm),this.onEnd(h),this.ended=!0,h===r.Z_OK):v!==r.Z_SYNC_FLUSH||(this.onEnd(r.Z_OK),!(x.avail_out=0))},u.prototype.onData=function(g){this.chunks.push(g)},u.prototype.onEnd=function(g){g===r.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},t.Inflate=u,t.inflate=f,t.inflateRaw=function(g,m){return(m=m||{}).raw=!0,f(g,m)},t.ungzip=f},{"./utils/common":464,"./utils/strings":465,"./zlib/constants":467,"./zlib/gzheader":470,"./zlib/inflate":472,"./zlib/messages":474,"./zlib/zstream":476}],464:[function(o,a,t){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";t.assign=function(r){for(var l,n,c=Array.prototype.slice.call(arguments,1);c.length;){var d=c.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var u in d)l=d,n=u,Object.prototype.hasOwnProperty.call(l,n)&&(r[u]=d[u])}}return r},t.shrinkBuf=function(r,l){return r.length===l?r:r.subarray?r.subarray(0,l):(r.length=l,r)};var s={arraySet:function(r,l,n,c,d){if(l.subarray&&r.subarray)r.set(l.subarray(n,n+c),d);else for(var u=0;u<c;u++)r[d+u]=l[n+u]},flattenChunks:function(r){for(var l,n,c,d=0,u=0,f=r.length;u<f;u++)d+=r[u].length;for(c=new Uint8Array(d),u=l=0,f=r.length;u<f;u++)n=r[u],c.set(n,l),l+=n.length;return c}},i={arraySet:function(r,l,n,c,d){for(var u=0;u<c;u++)r[d+u]=l[n+u]},flattenChunks:function(r){return[].concat.apply([],r)}};t.setTyped=function(r){r?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,s)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(e)},{}],465:[function(o,a,t){var e=o("./common"),s=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{i=!1}for(var r=new e.Buf8(256),l=0;l<256;l++)r[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function n(c,d){if(d<65534&&(c.subarray&&i||!c.subarray&&s))return String.fromCharCode.apply(null,e.shrinkBuf(c,d));for(var u="",f=0;f<d;f++)u+=String.fromCharCode(c[f]);return u}r[254]=r[254]=1,t.string2buf=function(c){for(var d,u,f,g,m=c.length,h=0,v=0;v<m;v++)(64512&(u=c.charCodeAt(v)))==55296&&v+1<m&&(64512&(f=c.charCodeAt(v+1)))==56320&&(u=65536+(u-55296<<10)+(f-56320),v++),h+=u<128?1:u<2048?2:u<65536?3:4;for(d=new e.Buf8(h),v=g=0;g<h;v++)(64512&(u=c.charCodeAt(v)))==55296&&v+1<m&&(64512&(f=c.charCodeAt(v+1)))==56320&&(u=65536+(u-55296<<10)+(f-56320),v++),u<128?d[g++]=u:(u<2048?d[g++]=192|u>>>6:(u<65536?d[g++]=224|u>>>12:(d[g++]=240|u>>>18,d[g++]=128|u>>>12&63),d[g++]=128|u>>>6&63),d[g++]=128|63&u);return d},t.buf2binstring=function(c){return n(c,c.length)},t.binstring2buf=function(c){for(var d=new e.Buf8(c.length),u=0,f=d.length;u<f;u++)d[u]=c.charCodeAt(u);return d},t.buf2string=function(c,d){for(var u,f,g=d||c.length,m=new Array(2*g),h=0,v=0;v<g;)if((u=c[v++])<128)m[h++]=u;else if(4<(f=r[u]))m[h++]=65533,v+=f-1;else{for(u&=f===2?31:f===3?15:7;1<f&&v<g;)u=u<<6|63&c[v++],f--;1<f?m[h++]=65533:u<65536?m[h++]=u:(u-=65536,m[h++]=55296|u>>10&1023,m[h++]=56320|1023&u)}return n(m,h)},t.utf8border=function(c,d){for(var u=(d=(d=d||c.length)>c.length?c.length:d)-1;0<=u&&(192&c[u])==128;)u--;return!(u<0)&&u!==0&&u+r[c[u]]>d?u:d}},{"./common":464}],466:[function(o,a,t){a.exports=function(e,s,i,r){for(var l=65535&e|0,n=e>>>16&65535|0,c=0;i!==0;){for(i-=c=2e3<i?2e3:i;n=n+(l=l+s[r++]|0)|0,--c;);l%=65521,n%=65521}return l|n<<16|0}},{}],467:[function(o,a,t){a.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],468:[function(o,a,t){var e=function(){for(var s=[],i=0;i<256;i++){for(var r=i,l=0;l<8;l++)r=1&r?3988292384^r>>>1:r>>>1;s[i]=r}return s}();a.exports=function(s,i,r,l){var n=e,c=l+r;s^=-1;for(var d=l;d<c;d++)s=s>>>8^n[255&(s^i[d])];return-1^s}},{}],469:[function(o,a,t){var e,s=o("../utils/common"),i=o("./trees"),r=o("./adler32"),l=o("./crc32"),n=o("./messages"),c=0,d=4,u=0,f=-2,g=-1,m=4,h=2,v=8,b=9,_=286,R=30,x=19,w=2*_+1,O=15,I=3,L=258,M=L+I+1,A=42,k=113,J=1,G=2,U=3,D=4;function W(T,ot){return T.msg=n[ot],ot}function Q(T){return(T<<1)-(4<T?9:0)}function E(T){for(var ot=T.length;0<=--ot;)T[ot]=0}function B(T){var ot=T.state,at=ot.pending;(at=at>T.avail_out?T.avail_out:at)!==0&&(s.arraySet(T.output,ot.pending_buf,ot.pending_out,at,T.next_out),T.next_out+=at,ot.pending_out+=at,T.total_out+=at,T.avail_out-=at,ot.pending-=at,ot.pending===0&&(ot.pending_out=0))}function $(T,ot){i._tr_flush_block(T,0<=T.block_start?T.block_start:-1,T.strstart-T.block_start,ot),T.block_start=T.strstart,B(T.strm)}function C(T,ot){T.pending_buf[T.pending++]=ot}function N(T,ot){T.pending_buf[T.pending++]=ot>>>8&255,T.pending_buf[T.pending++]=255&ot}function Y(T,ot){var at,q,ht=T.max_chain_length,lt=T.strstart,bt=T.prev_length,_t=T.nice_match,Dt=T.strstart>T.w_size-M?T.strstart-(T.w_size-M):0,Ft=T.window,Qt=T.w_mask,ue=T.prev,ae=T.strstart+L,se=Ft[lt+bt-1],Ne=Ft[lt+bt];T.prev_length>=T.good_match&&(ht>>=2),_t>T.lookahead&&(_t=T.lookahead);do if(Ft[(at=ot)+bt]===Ne&&Ft[at+bt-1]===se&&Ft[at]===Ft[lt]&&Ft[++at]===Ft[lt+1]){for(lt+=2,at++;Ft[++lt]===Ft[++at]&&Ft[++lt]===Ft[++at]&&Ft[++lt]===Ft[++at]&&Ft[++lt]===Ft[++at]&&Ft[++lt]===Ft[++at]&&Ft[++lt]===Ft[++at]&&Ft[++lt]===Ft[++at]&&Ft[++lt]===Ft[++at]&<<ae;);if(q=L-(ae-lt),lt=ae-L,bt<q){if(T.match_start=ot,_t<=(bt=q))break;se=Ft[lt+bt-1],Ne=Ft[lt+bt]}}while((ot=ue[ot&Qt])>Dt&&--ht!=0);return bt<=T.lookahead?bt:T.lookahead}function tt(T){var ot,at,q,ht,lt,bt,_t,Dt,Ft,Qt=T.w_size;do{if(Dt=T.window_size-T.lookahead-T.strstart,T.strstart>=Qt+(Qt-M)){for(s.arraySet(T.window,T.window,Qt,Qt,0),T.match_start-=Qt,T.strstart-=Qt,T.block_start-=Qt,ot=at=T.hash_size;q=T.head[--ot],T.head[ot]=Qt<=q?q-Qt:0,--at;);for(ot=at=Qt;q=T.prev[--ot],T.prev[ot]=Qt<=q?q-Qt:0,--at;);Dt+=Qt}if(T.strm.avail_in===0)break;if(lt=T.strm,bt=T.window,_t=T.strstart+T.lookahead,Dt=Dt,Ft=void 0,Ft=lt.avail_in,at=(Ft=Dt<Ft?Dt:Ft)===0?0:(lt.avail_in-=Ft,s.arraySet(bt,lt.input,lt.next_in,Ft,_t),lt.state.wrap===1?lt.adler=r(lt.adler,bt,Ft,_t):lt.state.wrap===2&&(lt.adler=l(lt.adler,bt,Ft,_t)),lt.next_in+=Ft,lt.total_in+=Ft,Ft),T.lookahead+=at,T.lookahead+T.insert>=I)for(ht=T.strstart-T.insert,T.ins_h=T.window[ht],T.ins_h=(T.ins_h<<T.hash_shift^T.window[ht+1])&T.hash_mask;T.insert&&(T.ins_h=(T.ins_h<<T.hash_shift^T.window[ht+I-1])&T.hash_mask,T.prev[ht&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=ht,ht++,T.insert--,!(T.lookahead+T.insert<I)););}while(T.lookahead<M&&T.strm.avail_in!==0)}function F(T,ot){for(var at,q;;){if(T.lookahead<M){if(tt(T),T.lookahead<M&&ot===c)return J;if(T.lookahead===0)break}if(at=0,T.lookahead>=I&&(T.ins_h=(T.ins_h<<T.hash_shift^T.window[T.strstart+I-1])&T.hash_mask,at=T.prev[T.strstart&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=T.strstart),at!==0&&T.strstart-at<=T.w_size-M&&(T.match_length=Y(T,at)),T.match_length>=I)if(q=i._tr_tally(T,T.strstart-T.match_start,T.match_length-I),T.lookahead-=T.match_length,T.match_length<=T.max_lazy_match&&T.lookahead>=I){for(T.match_length--;T.strstart++,T.ins_h=(T.ins_h<<T.hash_shift^T.window[T.strstart+I-1])&T.hash_mask,at=T.prev[T.strstart&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=T.strstart,--T.match_length!=0;);T.strstart++}else T.strstart+=T.match_length,T.match_length=0,T.ins_h=T.window[T.strstart],T.ins_h=(T.ins_h<<T.hash_shift^T.window[T.strstart+1])&T.hash_mask;else q=i._tr_tally(T,0,T.window[T.strstart]),T.lookahead--,T.strstart++;if(q&&($(T,!1),T.strm.avail_out===0))return J}return T.insert=T.strstart<I-1?T.strstart:I-1,ot===d?($(T,!0),T.strm.avail_out===0?U:D):T.last_lit&&($(T,!1),T.strm.avail_out===0)?J:G}function z(T,ot){for(var at,q,ht;;){if(T.lookahead<M){if(tt(T),T.lookahead<M&&ot===c)return J;if(T.lookahead===0)break}if(at=0,T.lookahead>=I&&(T.ins_h=(T.ins_h<<T.hash_shift^T.window[T.strstart+I-1])&T.hash_mask,at=T.prev[T.strstart&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=T.strstart),T.prev_length=T.match_length,T.prev_match=T.match_start,T.match_length=I-1,at!==0&&T.prev_length<T.max_lazy_match&&T.strstart-at<=T.w_size-M&&(T.match_length=Y(T,at),T.match_length<=5&&(T.strategy===1||T.match_length===I&&4096<T.strstart-T.match_start)&&(T.match_length=I-1)),T.prev_length>=I&&T.match_length<=T.prev_length){for(ht=T.strstart+T.lookahead-I,q=i._tr_tally(T,T.strstart-1-T.prev_match,T.prev_length-I),T.lookahead-=T.prev_length-1,T.prev_length-=2;++T.strstart<=ht&&(T.ins_h=(T.ins_h<<T.hash_shift^T.window[T.strstart+I-1])&T.hash_mask,at=T.prev[T.strstart&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=T.strstart),--T.prev_length!=0;);if(T.match_available=0,T.match_length=I-1,T.strstart++,q&&($(T,!1),T.strm.avail_out===0))return J}else if(T.match_available){if((q=i._tr_tally(T,0,T.window[T.strstart-1]))&&$(T,!1),T.strstart++,T.lookahead--,T.strm.avail_out===0)return J}else T.match_available=1,T.strstart++,T.lookahead--}return T.match_available&&(q=i._tr_tally(T,0,T.window[T.strstart-1]),T.match_available=0),T.insert=T.strstart<I-1?T.strstart:I-1,ot===d?($(T,!0),T.strm.avail_out===0?U:D):T.last_lit&&($(T,!1),T.strm.avail_out===0)?J:G}function P(T,ot,at,q,ht){this.good_length=T,this.max_lazy=ot,this.nice_length=at,this.max_chain=q,this.func=ht}function j(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*w),this.dyn_dtree=new s.Buf16(2*(2*R+1)),this.bl_tree=new s.Buf16(2*(2*x+1)),E(this.dyn_ltree),E(this.dyn_dtree),E(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(O+1),this.heap=new s.Buf16(2*_+1),E(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*_+1),E(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(T){var ot;return T&&T.state?(T.total_in=T.total_out=0,T.data_type=h,(ot=T.state).pending=0,ot.pending_out=0,ot.wrap<0&&(ot.wrap=-ot.wrap),ot.status=ot.wrap?A:k,T.adler=ot.wrap===2?0:1,ot.last_flush=c,i._tr_init(ot),u):W(T,f)}function K(T){var ot=V(T);return ot===u&&((T=T.state).window_size=2*T.w_size,E(T.head),T.max_lazy_match=e[T.level].max_lazy,T.good_match=e[T.level].good_length,T.nice_match=e[T.level].nice_length,T.max_chain_length=e[T.level].max_chain,T.strstart=0,T.block_start=0,T.lookahead=0,T.insert=0,T.match_length=T.prev_length=I-1,T.match_available=0,T.ins_h=0),ot}function rt(T,ot,at,q,ht,lt){if(!T)return f;var bt=1;if(ot===g&&(ot=6),q<0?(bt=0,q=-q):15<q&&(bt=2,q-=16),ht<1||b<ht||at!==v||q<8||15<q||ot<0||9<ot||lt<0||m<lt)return W(T,f);q===8&&(q=9);var _t=new j;return(T.state=_t).strm=T,_t.wrap=bt,_t.gzhead=null,_t.w_bits=q,_t.w_size=1<<_t.w_bits,_t.w_mask=_t.w_size-1,_t.hash_bits=ht+7,_t.hash_size=1<<_t.hash_bits,_t.hash_mask=_t.hash_size-1,_t.hash_shift=~~((_t.hash_bits+I-1)/I),_t.window=new s.Buf8(2*_t.w_size),_t.head=new s.Buf16(_t.hash_size),_t.prev=new s.Buf16(_t.w_size),_t.lit_bufsize=1<<ht+6,_t.pending_buf_size=4*_t.lit_bufsize,_t.pending_buf=new s.Buf8(_t.pending_buf_size),_t.d_buf=+_t.lit_bufsize,_t.l_buf=3*_t.lit_bufsize,_t.level=ot,_t.strategy=lt,_t.method=at,K(T)}e=[new P(0,0,0,0,function(T,ot){var at=65535;for(at>T.pending_buf_size-5&&(at=T.pending_buf_size-5);;){if(T.lookahead<=1){if(tt(T),T.lookahead===0&&ot===c)return J;if(T.lookahead===0)break}T.strstart+=T.lookahead,T.lookahead=0;var q=T.block_start+at;if((T.strstart===0||T.strstart>=q)&&(T.lookahead=T.strstart-q,T.strstart=q,$(T,!1),T.strm.avail_out===0)||T.strstart-T.block_start>=T.w_size-M&&($(T,!1),T.strm.avail_out===0))return J}return T.insert=0,ot===d?($(T,!0),T.strm.avail_out===0?U:D):(T.strstart>T.block_start&&($(T,!1),T.strm.avail_out),J)}),new P(4,4,8,4,F),new P(4,5,16,8,F),new P(4,6,32,32,F),new P(4,4,16,16,z),new P(8,16,32,32,z),new P(8,16,128,128,z),new P(8,32,128,256,z),new P(32,128,258,1024,z),new P(32,258,258,4096,z)],t.deflateInit=function(T,ot){return rt(T,ot,v,15,8,0)},t.deflateInit2=rt,t.deflateReset=K,t.deflateResetKeep=V,t.deflateSetHeader=function(T,ot){return!T||!T.state||T.state.wrap!==2?f:(T.state.gzhead=ot,u)},t.deflate=function(T,ot){var at,q,ht,lt;if(!T||!T.state||5<ot||ot<0)return T?W(T,f):f;if(q=T.state,!T.output||!T.input&&T.avail_in!==0||q.status===666&&ot!==d)return W(T,T.avail_out===0?-5:f);if(q.strm=T,at=q.last_flush,q.last_flush=ot,q.status===A&&(q.wrap===2?(T.adler=0,C(q,31),C(q,139),C(q,8),q.gzhead?(C(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(q.gzhead.extra?4:0)+(q.gzhead.name?8:0)+(q.gzhead.comment?16:0)),C(q,255&q.gzhead.time),C(q,q.gzhead.time>>8&255),C(q,q.gzhead.time>>16&255),C(q,q.gzhead.time>>24&255),C(q,q.level===9?2:2<=q.strategy||q.level<2?4:0),C(q,255&q.gzhead.os),q.gzhead.extra&&q.gzhead.extra.length&&(C(q,255&q.gzhead.extra.length),C(q,q.gzhead.extra.length>>8&255)),q.gzhead.hcrc&&(T.adler=l(T.adler,q.pending_buf,q.pending,0)),q.gzindex=0,q.status=69):(C(q,0),C(q,0),C(q,0),C(q,0),C(q,0),C(q,q.level===9?2:2<=q.strategy||q.level<2?4:0),C(q,3),q.status=k)):(bt=v+(q.w_bits-8<<4)<<8,bt|=(2<=q.strategy||q.level<2?0:q.level<6?1:q.level===6?2:3)<<6,q.strstart!==0&&(bt|=32),bt+=31-bt%31,q.status=k,N(q,bt),q.strstart!==0&&(N(q,T.adler>>>16),N(q,65535&T.adler)),T.adler=1)),q.status===69)if(q.gzhead.extra){for(ht=q.pending;q.gzindex<(65535&q.gzhead.extra.length)&&(q.pending!==q.pending_buf_size||(q.gzhead.hcrc&&q.pending>ht&&(T.adler=l(T.adler,q.pending_buf,q.pending-ht,ht)),B(T),ht=q.pending,q.pending!==q.pending_buf_size));)C(q,255&q.gzhead.extra[q.gzindex]),q.gzindex++;q.gzhead.hcrc&&q.pending>ht&&(T.adler=l(T.adler,q.pending_buf,q.pending-ht,ht)),q.gzindex===q.gzhead.extra.length&&(q.gzindex=0,q.status=73)}else q.status=73;if(q.status===73)if(q.gzhead.name){ht=q.pending;do if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>ht&&(T.adler=l(T.adler,q.pending_buf,q.pending-ht,ht)),B(T),ht=q.pending,q.pending===q.pending_buf_size)){lt=1;break}while(lt=q.gzindex<q.gzhead.name.length?255&q.gzhead.name.charCodeAt(q.gzindex++):0,C(q,lt),lt!==0);q.gzhead.hcrc&&q.pending>ht&&(T.adler=l(T.adler,q.pending_buf,q.pending-ht,ht)),lt===0&&(q.gzindex=0,q.status=91)}else q.status=91;if(q.status===91)if(q.gzhead.comment){ht=q.pending;do if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>ht&&(T.adler=l(T.adler,q.pending_buf,q.pending-ht,ht)),B(T),ht=q.pending,q.pending===q.pending_buf_size)){lt=1;break}while(lt=q.gzindex<q.gzhead.comment.length?255&q.gzhead.comment.charCodeAt(q.gzindex++):0,C(q,lt),lt!==0);q.gzhead.hcrc&&q.pending>ht&&(T.adler=l(T.adler,q.pending_buf,q.pending-ht,ht)),lt===0&&(q.status=103)}else q.status=103;if(q.status===103&&(q.gzhead.hcrc?(q.pending+2>q.pending_buf_size&&B(T),q.pending+2<=q.pending_buf_size&&(C(q,255&T.adler),C(q,T.adler>>8&255),T.adler=0,q.status=k)):q.status=k),q.pending!==0){if(B(T),T.avail_out===0)return q.last_flush=-1,u}else if(T.avail_in===0&&Q(ot)<=Q(at)&&ot!==d)return W(T,-5);if(q.status===666&&T.avail_in!==0)return W(T,-5);if(T.avail_in!==0||q.lookahead!==0||ot!==c&&q.status!==666){var bt=q.strategy===2?function(_t,Dt){for(var Ft;;){if(_t.lookahead===0&&(tt(_t),_t.lookahead===0)){if(Dt===c)return J;break}if(_t.match_length=0,Ft=i._tr_tally(_t,0,_t.window[_t.strstart]),_t.lookahead--,_t.strstart++,Ft&&($(_t,!1),_t.strm.avail_out===0))return J}return _t.insert=0,Dt===d?($(_t,!0),_t.strm.avail_out===0?U:D):_t.last_lit&&($(_t,!1),_t.strm.avail_out===0)?J:G}(q,ot):q.strategy===3?function(_t,Dt){for(var Ft,Qt,ue,ae,se=_t.window;;){if(_t.lookahead<=L){if(tt(_t),_t.lookahead<=L&&Dt===c)return J;if(_t.lookahead===0)break}if(_t.match_length=0,_t.lookahead>=I&&0<_t.strstart&&(Qt=se[ue=_t.strstart-1])===se[++ue]&&Qt===se[++ue]&&Qt===se[++ue]){for(ae=_t.strstart+L;Qt===se[++ue]&&Qt===se[++ue]&&Qt===se[++ue]&&Qt===se[++ue]&&Qt===se[++ue]&&Qt===se[++ue]&&Qt===se[++ue]&&Qt===se[++ue]&&ue<ae;);_t.match_length=L-(ae-ue),_t.match_length>_t.lookahead&&(_t.match_length=_t.lookahead)}if(_t.match_length>=I?(Ft=i._tr_tally(_t,1,_t.match_length-I),_t.lookahead-=_t.match_length,_t.strstart+=_t.match_length,_t.match_length=0):(Ft=i._tr_tally(_t,0,_t.window[_t.strstart]),_t.lookahead--,_t.strstart++),Ft&&($(_t,!1),_t.strm.avail_out===0))return J}return _t.insert=0,Dt===d?($(_t,!0),_t.strm.avail_out===0?U:D):_t.last_lit&&($(_t,!1),_t.strm.avail_out===0)?J:G}(q,ot):e[q.level].func(q,ot);if(bt!==U&&bt!==D||(q.status=666),bt===J||bt===U)return T.avail_out===0&&(q.last_flush=-1),u;if(bt===G&&(ot===1?i._tr_align(q):ot!==5&&(i._tr_stored_block(q,0,0,!1),ot===3&&(E(q.head),q.lookahead===0&&(q.strstart=0,q.block_start=0,q.insert=0))),B(T),T.avail_out===0))return q.last_flush=-1,u}return ot!==d?u:q.wrap<=0?1:(q.wrap===2?(C(q,255&T.adler),C(q,T.adler>>8&255),C(q,T.adler>>16&255),C(q,T.adler>>24&255),C(q,255&T.total_in),C(q,T.total_in>>8&255),C(q,T.total_in>>16&255),C(q,T.total_in>>24&255)):(N(q,T.adler>>>16),N(q,65535&T.adler)),B(T),0<q.wrap&&(q.wrap=-q.wrap),q.pending!==0?u:1)},t.deflateEnd=function(T){var ot;return T&&T.state?(ot=T.state.status)!==A&&ot!==69&&ot!==73&&ot!==91&&ot!==103&&ot!==k&&ot!==666?W(T,f):(T.state=null,ot===k?W(T,-3):u):f},t.deflateSetDictionary=function(T,ot){var at,q,ht,lt,bt,_t,Dt,Ft=ot.length;if(!T||!T.state||(lt=(at=T.state).wrap)===2||lt===1&&at.status!==A||at.lookahead)return f;for(lt===1&&(T.adler=r(T.adler,ot,Ft,0)),at.wrap=0,Ft>=at.w_size&&(lt===0&&(E(at.head),at.strstart=0,at.block_start=0,at.insert=0),Dt=new s.Buf8(at.w_size),s.arraySet(Dt,ot,Ft-at.w_size,at.w_size,0),ot=Dt,Ft=at.w_size),Dt=T.avail_in,bt=T.next_in,_t=T.input,T.avail_in=Ft,T.next_in=0,T.input=ot,tt(at);at.lookahead>=I;){for(q=at.strstart,ht=at.lookahead-(I-1);at.ins_h=(at.ins_h<<at.hash_shift^at.window[q+I-1])&at.hash_mask,at.prev[q&at.w_mask]=at.head[at.ins_h],at.head[at.ins_h]=q,q++,--ht;);at.strstart=q,at.lookahead=I-1,tt(at)}return at.strstart+=at.lookahead,at.block_start=at.strstart,at.insert=at.lookahead,at.lookahead=0,at.match_length=at.prev_length=I-1,at.match_available=0,T.next_in=bt,T.input=_t,T.avail_in=Dt,at.wrap=lt,u},t.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":464,"./adler32":466,"./crc32":468,"./messages":474,"./trees":475}],470:[function(o,a,t){a.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],471:[function(o,a,t){a.exports=function(e,s){var i,r,l,n,c,d,u=e.state,f=e.next_in,g=e.input,m=f+(e.avail_in-5),h=e.next_out,v=e.output,b=h-(s-e.avail_out),_=h+(e.avail_out-257),R=u.dmax,x=u.wsize,w=u.whave,O=u.wnext,I=u.window,L=u.hold,M=u.bits,A=u.lencode,k=u.distcode,J=(1<<u.lenbits)-1,G=(1<<u.distbits)-1;t:do for(M<15&&(L+=g[f++]<<M,M+=8,L+=g[f++]<<M,M+=8),i=A[L&J];;){if(L>>>=r=i>>>24,M-=r,(r=i>>>16&255)===0)v[h++]=65535&i;else{if(!(16&r)){if(!(64&r)){i=A[(65535&i)+(L&(1<<r)-1)];continue}if(32&r){u.mode=12;break t}e.msg="invalid literal/length code",u.mode=30;break t}for(l=65535&i,(r&=15)&&(M<r&&(L+=g[f++]<<M,M+=8),l+=L&(1<<r)-1,L>>>=r,M-=r),M<15&&(L+=g[f++]<<M,M+=8,L+=g[f++]<<M,M+=8),i=k[L&G];;){if(L>>>=r=i>>>24,M-=r,!(16&(r=i>>>16&255))){if(!(64&r)){i=k[(65535&i)+(L&(1<<r)-1)];continue}e.msg="invalid distance code",u.mode=30;break t}if(n=65535&i,M<(r&=15)&&(L+=g[f++]<<M,(M+=8)<r&&(L+=g[f++]<<M,M+=8)),R<(n+=L&(1<<r)-1)){e.msg="invalid distance too far back",u.mode=30;break t}if(L>>>=r,M-=r,(r=h-b)<n){if(w<(r=n-r)&&u.sane){e.msg="invalid distance too far back",u.mode=30;break t}if(d=I,(c=0)===O){if(c+=x-r,r<l){for(l-=r;v[h++]=I[c++],--r;);c=h-n,d=v}}else if(O<r){if(c+=x+O-r,(r-=O)<l){for(l-=r;v[h++]=I[c++],--r;);if(c=0,O<l){for(l-=r=O;v[h++]=I[c++],--r;);c=h-n,d=v}}}else if(c+=O-r,r<l){for(l-=r;v[h++]=I[c++],--r;);c=h-n,d=v}for(;2<l;)v[h++]=d[c++],v[h++]=d[c++],v[h++]=d[c++],l-=3;l&&(v[h++]=d[c++],1<l&&(v[h++]=d[c++]))}else{for(c=h-n;v[h++]=v[c++],v[h++]=v[c++],v[h++]=v[c++],2<(l-=3););l&&(v[h++]=v[c++],1<l&&(v[h++]=v[c++]))}break}}break}while(f<m&&h<_);L&=(1<<(M-=(l=M>>3)<<3))-1,e.next_in=f-=l,e.next_out=h,e.avail_in=f<m?m-f+5:5-(f-m),e.avail_out=h<_?_-h+257:257-(h-_),u.hold=L,u.bits=M}},{}],472:[function(o,a,t){var e=o("../utils/common"),s=o("./adler32"),i=o("./crc32"),r=o("./inffast"),l=o("./inftrees"),n=1,c=2,d=0,u=-2,f=1,g=852,m=592;function h(M){return(M>>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(M){var A;return M&&M.state?(A=M.state,M.total_in=M.total_out=A.total=0,M.msg="",A.wrap&&(M.adler=1&A.wrap),A.mode=f,A.last=0,A.havedict=0,A.dmax=32768,A.head=null,A.hold=0,A.bits=0,A.lencode=A.lendyn=new e.Buf32(g),A.distcode=A.distdyn=new e.Buf32(m),A.sane=1,A.back=-1,d):u}function _(M){var A;return M&&M.state?((A=M.state).wsize=0,A.whave=0,A.wnext=0,b(M)):u}function R(M,A){var k,J;return M&&M.state?(J=M.state,A<0?(k=0,A=-A):(k=1+(A>>4),A<48&&(A&=15)),A&&(A<8||15<A)?u:(J.window!==null&&J.wbits!==A&&(J.window=null),J.wrap=k,J.wbits=A,_(M))):u}function x(M,A){var k;return M?(k=new v,(M.state=k).window=null,(k=R(M,A))!==d&&(M.state=null),k):u}var w,O,I=!0;function L(U,A,k,J){var G,U=U.state;return U.window===null&&(U.wsize=1<<U.wbits,U.wnext=0,U.whave=0,U.window=new e.Buf8(U.wsize)),J>=U.wsize?(e.arraySet(U.window,A,k-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(J<(G=U.wsize-U.wnext)&&(G=J),e.arraySet(U.window,A,k-J,G,U.wnext),(J-=G)?(e.arraySet(U.window,A,k-J,J,0),U.wnext=J,U.whave=U.wsize):(U.wnext+=G,U.wnext===U.wsize&&(U.wnext=0),U.whave<U.wsize&&(U.whave+=G))),0}t.inflateReset=_,t.inflateReset2=R,t.inflateResetKeep=b,t.inflateInit=function(M){return x(M,15)},t.inflateInit2=x,t.inflate=function(M,A){var k,J,G,U,D,W,Q,E,B,$,C,N,Y,tt,F,z,P,j,V,K,rt,T,ot,at,q=0,ht=new e.Buf8(4),lt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!M||!M.state||!M.output||!M.input&&M.avail_in!==0)return u;(k=M.state).mode===12&&(k.mode=13),D=M.next_out,G=M.output,Q=M.avail_out,U=M.next_in,J=M.input,W=M.avail_in,E=k.hold,B=k.bits,$=W,C=Q,T=d;t:for(;;)switch(k.mode){case f:if(k.wrap===0){k.mode=13;break}for(;B<16;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}if(2&k.wrap&&E===35615){ht[k.check=0]=255&E,ht[1]=E>>>8&255,k.check=i(k.check,ht,2,0),B=E=0,k.mode=2;break}if(k.flags=0,k.head&&(k.head.done=!1),!(1&k.wrap)||(((255&E)<<8)+(E>>8))%31){M.msg="incorrect header check",k.mode=30;break}if((15&E)!=8){M.msg="unknown compression method",k.mode=30;break}if(B-=4,rt=8+(15&(E>>>=4)),k.wbits===0)k.wbits=rt;else if(rt>k.wbits){M.msg="invalid window size",k.mode=30;break}k.dmax=1<<rt,M.adler=k.check=1,k.mode=512&E?10:12,B=E=0;break;case 2:for(;B<16;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}if(k.flags=E,(255&k.flags)!=8){M.msg="unknown compression method",k.mode=30;break}if(57344&k.flags){M.msg="unknown header flags set",k.mode=30;break}k.head&&(k.head.text=E>>8&1),512&k.flags&&(ht[0]=255&E,ht[1]=E>>>8&255,k.check=i(k.check,ht,2,0)),B=E=0,k.mode=3;case 3:for(;B<32;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}k.head&&(k.head.time=E),512&k.flags&&(ht[0]=255&E,ht[1]=E>>>8&255,ht[2]=E>>>16&255,ht[3]=E>>>24&255,k.check=i(k.check,ht,4,0)),B=E=0,k.mode=4;case 4:for(;B<16;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}k.head&&(k.head.xflags=255&E,k.head.os=E>>8),512&k.flags&&(ht[0]=255&E,ht[1]=E>>>8&255,k.check=i(k.check,ht,2,0)),B=E=0,k.mode=5;case 5:if(1024&k.flags){for(;B<16;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}k.length=E,k.head&&(k.head.extra_len=E),512&k.flags&&(ht[0]=255&E,ht[1]=E>>>8&255,k.check=i(k.check,ht,2,0)),B=E=0}else k.head&&(k.head.extra=null);k.mode=6;case 6:if(1024&k.flags&&((N=W<(N=k.length)?W:N)&&(k.head&&(rt=k.head.extra_len-k.length,k.head.extra||(k.head.extra=new Array(k.head.extra_len)),e.arraySet(k.head.extra,J,U,N,rt)),512&k.flags&&(k.check=i(k.check,J,N,U)),W-=N,U+=N,k.length-=N),k.length))break t;k.length=0,k.mode=7;case 7:if(2048&k.flags){if(W===0)break t;for(N=0;rt=J[U+N++],k.head&&rt&&k.length<65536&&(k.head.name+=String.fromCharCode(rt)),rt&&N<W;);if(512&k.flags&&(k.check=i(k.check,J,N,U)),W-=N,U+=N,rt)break t}else k.head&&(k.head.name=null);k.length=0,k.mode=8;case 8:if(4096&k.flags){if(W===0)break t;for(N=0;rt=J[U+N++],k.head&&rt&&k.length<65536&&(k.head.comment+=String.fromCharCode(rt)),rt&&N<W;);if(512&k.flags&&(k.check=i(k.check,J,N,U)),W-=N,U+=N,rt)break t}else k.head&&(k.head.comment=null);k.mode=9;case 9:if(512&k.flags){for(;B<16;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}if(E!==(65535&k.check)){M.msg="header crc mismatch",k.mode=30;break}B=E=0}k.head&&(k.head.hcrc=k.flags>>9&1,k.head.done=!0),M.adler=k.check=0,k.mode=12;break;case 10:for(;B<32;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}M.adler=k.check=h(E),B=E=0,k.mode=11;case 11:if(k.havedict===0)return M.next_out=D,M.avail_out=Q,M.next_in=U,M.avail_in=W,k.hold=E,k.bits=B,2;M.adler=k.check=1,k.mode=12;case 12:if(A===5||A===6)break t;case 13:if(k.last){E>>>=7&B,B-=7&B,k.mode=27;break}for(;B<3;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}switch(k.last=1&E,--B,3&(E>>>=1)){case 0:k.mode=14;break;case 1:bt=_t=void 0;var bt,_t=k;if(I){for(w=new e.Buf32(512),O=new e.Buf32(32),bt=0;bt<144;)_t.lens[bt++]=8;for(;bt<256;)_t.lens[bt++]=9;for(;bt<280;)_t.lens[bt++]=7;for(;bt<288;)_t.lens[bt++]=8;for(l(n,_t.lens,0,288,w,0,_t.work,{bits:9}),bt=0;bt<32;)_t.lens[bt++]=5;l(c,_t.lens,0,32,O,0,_t.work,{bits:5}),I=!1}if(_t.lencode=w,_t.lenbits=9,_t.distcode=O,_t.distbits=5,k.mode=20,A!==6)break;E>>>=2,B-=2;break t;case 2:k.mode=17;break;case 3:M.msg="invalid block type",k.mode=30}E>>>=2,B-=2;break;case 14:for(E>>>=7&B,B-=7&B;B<32;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}if((65535&E)!=(E>>>16^65535)){M.msg="invalid stored block lengths",k.mode=30;break}if(k.length=65535&E,B=E=0,k.mode=15,A===6)break t;case 15:k.mode=16;case 16:if(N=k.length){if((N=Q<(N=W<N?W:N)?Q:N)===0)break t;e.arraySet(G,J,U,N,D),W-=N,U+=N,Q-=N,D+=N,k.length-=N;break}k.mode=12;break;case 17:for(;B<14;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}if(k.nlen=257+(31&E),E>>>=5,B-=5,k.ndist=1+(31&E),E>>>=5,B-=5,k.ncode=4+(15&E),E>>>=4,B-=4,286<k.nlen||30<k.ndist){M.msg="too many length or distance symbols",k.mode=30;break}k.have=0,k.mode=18;case 18:for(;k.have<k.ncode;){for(;B<3;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}k.lens[lt[k.have++]]=7&E,E>>>=3,B-=3}for(;k.have<19;)k.lens[lt[k.have++]]=0;if(k.lencode=k.lendyn,k.lenbits=7,ot={bits:k.lenbits},T=l(0,k.lens,0,19,k.lencode,0,k.work,ot),k.lenbits=ot.bits,T){M.msg="invalid code lengths set",k.mode=30;break}k.have=0,k.mode=19;case 19:for(;k.have<k.nlen+k.ndist;){for(;z=(q=k.lencode[E&(1<<k.lenbits)-1])>>>16&255,P=65535&q,!((F=q>>>24)<=B);){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}if(P<16)E>>>=F,B-=F,k.lens[k.have++]=P;else{if(P===16){for(at=F+2;B<at;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}if(E>>>=F,B-=F,k.have===0){M.msg="invalid bit length repeat",k.mode=30;break}rt=k.lens[k.have-1],N=3+(3&E),E>>>=2,B-=2}else if(P===17){for(at=F+3;B<at;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}rt=0,N=3+(7&(E>>>=F)),E>>>=3,B=B-F-3}else{for(at=F+7;B<at;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}rt=0,N=11+(127&(E>>>=F)),E>>>=7,B=B-F-7}if(k.have+N>k.nlen+k.ndist){M.msg="invalid bit length repeat",k.mode=30;break}for(;N--;)k.lens[k.have++]=rt}}if(k.mode===30)break;if(k.lens[256]===0){M.msg="invalid code -- missing end-of-block",k.mode=30;break}if(k.lenbits=9,ot={bits:k.lenbits},T=l(n,k.lens,0,k.nlen,k.lencode,0,k.work,ot),k.lenbits=ot.bits,T){M.msg="invalid literal/lengths set",k.mode=30;break}if(k.distbits=6,k.distcode=k.distdyn,ot={bits:k.distbits},T=l(c,k.lens,k.nlen,k.ndist,k.distcode,0,k.work,ot),k.distbits=ot.bits,T){M.msg="invalid distances set",k.mode=30;break}if(k.mode=20,A===6)break t;case 20:k.mode=21;case 21:if(6<=W&&258<=Q){M.next_out=D,M.avail_out=Q,M.next_in=U,M.avail_in=W,k.hold=E,k.bits=B,r(M,C),D=M.next_out,G=M.output,Q=M.avail_out,U=M.next_in,J=M.input,W=M.avail_in,E=k.hold,B=k.bits,k.mode===12&&(k.back=-1);break}for(k.back=0;z=(q=k.lencode[E&(1<<k.lenbits)-1])>>>16&255,P=65535&q,!((F=q>>>24)<=B);){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}if(z&&!(240&z)){for(j=F,V=z,K=P;z=(q=k.lencode[K+((E&(1<<j+V)-1)>>j)])>>>16&255,P=65535&q,!(j+(F=q>>>24)<=B);){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}E>>>=j,B-=j,k.back+=j}if(E>>>=F,B-=F,k.back+=F,k.length=P,z===0){k.mode=26;break}if(32&z){k.back=-1,k.mode=12;break}if(64&z){M.msg="invalid literal/length code",k.mode=30;break}k.extra=15&z,k.mode=22;case 22:if(k.extra){for(at=k.extra;B<at;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}k.length+=E&(1<<k.extra)-1,E>>>=k.extra,B-=k.extra,k.back+=k.extra}k.was=k.length,k.mode=23;case 23:for(;z=(q=k.distcode[E&(1<<k.distbits)-1])>>>16&255,P=65535&q,!((F=q>>>24)<=B);){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}if(!(240&z)){for(j=F,V=z,K=P;z=(q=k.distcode[K+((E&(1<<j+V)-1)>>j)])>>>16&255,P=65535&q,!(j+(F=q>>>24)<=B);){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}E>>>=j,B-=j,k.back+=j}if(E>>>=F,B-=F,k.back+=F,64&z){M.msg="invalid distance code",k.mode=30;break}k.offset=P,k.extra=15&z,k.mode=24;case 24:if(k.extra){for(at=k.extra;B<at;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}k.offset+=E&(1<<k.extra)-1,E>>>=k.extra,B-=k.extra,k.back+=k.extra}if(k.offset>k.dmax){M.msg="invalid distance too far back",k.mode=30;break}k.mode=25;case 25:if(Q===0)break t;if(k.offset>(N=C-Q)){if((N=k.offset-N)>k.whave&&k.sane){M.msg="invalid distance too far back",k.mode=30;break}Y=N>k.wnext?(N-=k.wnext,k.wsize-N):k.wnext-N,N>k.length&&(N=k.length),tt=k.window}else tt=G,Y=D-k.offset,N=k.length;for(Q-=N=Q<N?Q:N,k.length-=N;G[D++]=tt[Y++],--N;);k.length===0&&(k.mode=21);break;case 26:if(Q===0)break t;G[D++]=k.length,Q--,k.mode=21;break;case 27:if(k.wrap){for(;B<32;){if(W===0)break t;W--,E|=J[U++]<<B,B+=8}if(C-=Q,M.total_out+=C,k.total+=C,C&&(M.adler=k.check=(k.flags?i:s)(k.check,G,C,D-C)),C=Q,(k.flags?E:h(E))!==k.check){M.msg="incorrect data check",k.mode=30;break}B=E=0}k.mode=28;case 28:if(k.wrap&&k.flags){for(;B<32;){if(W===0)break t;W--,E+=J[U++]<<B,B+=8}if(E!==(4294967295&k.total)){M.msg="incorrect length check",k.mode=30;break}B=E=0}k.mode=29;case 29:T=1;break t;case 30:T=-3;break t;case 31:return-4;default:return u}return M.next_out=D,M.avail_out=Q,M.next_in=U,M.avail_in=W,k.hold=E,k.bits=B,(k.wsize||C!==M.avail_out&&k.mode<30&&(k.mode<27||A!==4))&&L(M,M.output,M.next_out,C-M.avail_out)?(k.mode=31,-4):($-=M.avail_in,C-=M.avail_out,M.total_in+=$,M.total_out+=C,k.total+=C,k.wrap&&C&&(M.adler=k.check=(k.flags?i:s)(k.check,G,C,M.next_out-C)),M.data_type=k.bits+(k.last?64:0)+(k.mode===12?128:0)+(k.mode===20||k.mode===15?256:0),($==0&&C===0||A===4)&&T===d?-5:T)},t.inflateEnd=function(M){if(!M||!M.state)return u;var A=M.state;return A.window&&(A.window=null),M.state=null,d},t.inflateGetHeader=function(M,A){return!M||!M.state||!(2&(M=M.state).wrap)?u:((M.head=A).done=!1,d)},t.inflateSetDictionary=function(M,A){var k,J=A.length;return!M||!M.state||(k=M.state).wrap!==0&&k.mode!==11?u:k.mode===11&&s(1,A,J,0)!==k.check?-3:L(M,A,J,J)?(k.mode=31,-4):(k.havedict=1,d)},t.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":464,"./adler32":466,"./crc32":468,"./inffast":471,"./inftrees":473}],473:[function(o,a,t){var e=o("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],r=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];a.exports=function(n,c,d,u,f,g,m,h){for(var v,b,_,R,x,w,O,I,L,M=h.bits,F=0,A=0,k=0,J=0,G=0,U=0,D=0,W=0,Q=0,E=0,B=null,$=0,C=new e.Buf16(16),N=new e.Buf16(16),Y=null,tt=0,F=0;F<=15;F++)C[F]=0;for(A=0;A<u;A++)C[c[d+A]]++;for(G=M,J=15;1<=J&&C[J]===0;J--);if(J<G&&(G=J),J===0)return f[g++]=20971520,f[g++]=20971520,h.bits=1,0;for(k=1;k<J&&C[k]===0;k++);for(G<k&&(G=k),F=W=1;F<=15;F++)if((W=(W<<=1)-C[F])<0)return-1;if(0<W&&(n===0||J!==1))return-1;for(N[1]=0,F=1;F<15;F++)N[F+1]=N[F]+C[F];for(A=0;A<u;A++)c[d+A]!==0&&(m[N[c[d+A]]++]=A);if(w=n===0?(B=Y=m,19):n===1?(B=s,$-=257,Y=i,tt-=257,256):(B=r,Y=l,-1),F=k,x=g,D=A=E=0,_=-1,R=(Q=1<<(U=G))-1,n===1&&852<Q||n===2&&592<Q)return 1;for(;;){for(L=m[A]<w?(I=0,m[A]):m[A]>w?(I=Y[tt+m[A]],B[$+m[A]]):(I=96,0),v=1<<(O=F-D),k=b=1<<U;f[x+(E>>D)+(b-=v)]=O<<24|I<<16|L|0,b!==0;);for(v=1<<F-1;E&v;)v>>=1;if(E=v!==0?(E&v-1)+v:0,A++,--C[F]==0){if(F===J)break;F=c[d+m[A]]}if(G<F&&(E&R)!==_){for(x+=k,W=1<<(U=F-(D=D===0?G:D));U+D<J&&!((W-=C[U+D])<=0);)U++,W<<=1;if(Q+=1<<U,n===1&&852<Q||n===2&&592<Q)return 1;f[_=E&R]=G<<24|U<<16|x-g|0}}return E!==0&&(f[x+E]=F-D<<24|64<<16|0),h.bits=G,0}},{"../utils/common":464}],474:[function(o,a,t){a.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],475:[function(o,a,t){var e=o("../utils/common"),s=0,i=1;function r(q){for(var ht=q.length;0<=--ht;)q[ht]=0}var l,n,c,d=29,u=256,f=u+1+d,g=30,m=19,h=2*f+1,v=15,b=16,_=7,R=256,x=16,w=17,O=18,I=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],L=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(f+2)),J=(r(k),new Array(2*g)),G=(r(J),new Array(512)),U=(r(G),new Array(256)),D=(r(U),new Array(d)),W=(r(D),new Array(g));function Q(q,ht,lt,bt,_t){this.static_tree=q,this.extra_bits=ht,this.extra_base=lt,this.elems=bt,this.max_length=_t,this.has_stree=q&&q.length}function E(q,ht){this.dyn_tree=q,this.max_code=0,this.stat_desc=ht}function B(q){return q<256?G[q]:G[256+(q>>>7)]}function $(q,ht){q.pending_buf[q.pending++]=255&ht,q.pending_buf[q.pending++]=ht>>>8&255}function C(q,ht,lt){q.bi_valid>b-lt?(q.bi_buf|=ht<<q.bi_valid&65535,$(q,q.bi_buf),q.bi_buf=ht>>b-q.bi_valid,q.bi_valid+=lt-b):(q.bi_buf|=ht<<q.bi_valid&65535,q.bi_valid+=lt)}function N(q,ht,lt){C(q,lt[2*ht],lt[2*ht+1])}function Y(q,ht){for(var lt=0;lt|=1&q,q>>>=1,lt<<=1,0<--ht;);return lt>>>1}function tt(q,ht,lt){for(var bt,_t=new Array(v+1),Dt=0,Ft=1;Ft<=v;Ft++)_t[Ft]=Dt=Dt+lt[Ft-1]<<1;for(bt=0;bt<=ht;bt++){var Qt=q[2*bt+1];Qt!==0&&(q[2*bt]=Y(_t[Qt]++,Qt))}}function F(q){for(var ht=0;ht<f;ht++)q.dyn_ltree[2*ht]=0;for(ht=0;ht<g;ht++)q.dyn_dtree[2*ht]=0;for(ht=0;ht<m;ht++)q.bl_tree[2*ht]=0;q.dyn_ltree[2*R]=1,q.opt_len=q.static_len=0,q.last_lit=q.matches=0}function z(q){8<q.bi_valid?$(q,q.bi_buf):0<q.bi_valid&&(q.pending_buf[q.pending++]=q.bi_buf),q.bi_buf=0,q.bi_valid=0}function P(q,ht,lt,bt){var _t=2*ht,Dt=2*lt;return q[_t]<q[Dt]||q[_t]===q[Dt]&&bt[ht]<=bt[lt]}function j(q,ht,lt){for(var bt=q.heap[lt],_t=lt<<1;_t<=q.heap_len&&(_t<q.heap_len&&P(ht,q.heap[_t+1],q.heap[_t],q.depth)&&_t++,!P(ht,bt,q.heap[_t],q.depth));)q.heap[lt]=q.heap[_t],lt=_t,_t<<=1;q.heap[lt]=bt}function V(q,ht,lt){var bt,_t,Dt,Ft,Qt=0;if(q.last_lit!==0)for(;bt=q.pending_buf[q.d_buf+2*Qt]<<8|q.pending_buf[q.d_buf+2*Qt+1],_t=q.pending_buf[q.l_buf+Qt],Qt++,bt==0?N(q,_t,ht):(N(q,(Dt=U[_t])+u+1,ht),(Ft=I[Dt])!==0&&C(q,_t-=D[Dt],Ft),N(q,Dt=B(--bt),lt),(Ft=L[Dt])!==0&&C(q,bt-=W[Dt],Ft)),Qt<q.last_lit;);N(q,R,ht)}function K(q,ht){var lt,bt,_t,Dt=ht.dyn_tree,Ft=ht.stat_desc.static_tree,Qt=ht.stat_desc.has_stree,ue=ht.stat_desc.elems,ae=-1;for(q.heap_len=0,q.heap_max=h,lt=0;lt<ue;lt++)Dt[2*lt]!==0?(q.heap[++q.heap_len]=ae=lt,q.depth[lt]=0):Dt[2*lt+1]=0;for(;q.heap_len<2;)Dt[2*(_t=q.heap[++q.heap_len]=ae<2?++ae:0)]=1,q.depth[_t]=0,q.opt_len--,Qt&&(q.static_len-=Ft[2*_t+1]);for(ht.max_code=ae,lt=q.heap_len>>1;1<=lt;lt--)j(q,Dt,lt);for(_t=ue;lt=q.heap[1],q.heap[1]=q.heap[q.heap_len--],j(q,Dt,1),bt=q.heap[1],q.heap[--q.heap_max]=lt,q.heap[--q.heap_max]=bt,Dt[2*_t]=Dt[2*lt]+Dt[2*bt],q.depth[_t]=(q.depth[lt]>=q.depth[bt]?q.depth[lt]:q.depth[bt])+1,Dt[2*lt+1]=Dt[2*bt+1]=_t,q.heap[1]=_t++,j(q,Dt,1),2<=q.heap_len;);q.heap[--q.heap_max]=q.heap[1];for(var se,Ne,ce,qt,Nt,It=q,me=ht.dyn_tree,Vt=ht.max_code,ge=ht.stat_desc.static_tree,De=ht.stat_desc.has_stree,_e=ht.stat_desc.extra_bits,Ht=ht.stat_desc.extra_base,yn=ht.stat_desc.max_length,ee=0,Qe=0;Qe<=v;Qe++)It.bl_count[Qe]=0;for(me[2*It.heap[It.heap_max]+1]=0,se=It.heap_max+1;se<h;se++)yn<(Qe=me[2*me[2*(Ne=It.heap[se])+1]+1]+1)&&(Qe=yn,ee++),me[2*Ne+1]=Qe,Vt<Ne||(It.bl_count[Qe]++,qt=0,Ht<=Ne&&(qt=_e[Ne-Ht]),Nt=me[2*Ne],It.opt_len+=Nt*(Qe+qt),De&&(It.static_len+=Nt*(ge[2*Ne+1]+qt)));if(ee!==0){do for(Qe=yn-1;It.bl_count[Qe]===0;)Qe--;while(It.bl_count[Qe]--,It.bl_count[Qe+1]+=2,It.bl_count[yn]--,0<(ee-=2));for(Qe=yn;Qe!==0;Qe--)for(Ne=It.bl_count[Qe];Ne!==0;)Vt<(ce=It.heap[--se])||(me[2*ce+1]!==Qe&&(It.opt_len+=(Qe-me[2*ce+1])*me[2*ce],me[2*ce+1]=Qe),Ne--)}tt(Dt,ae,q.bl_count)}function rt(q,ht,lt){var bt,_t,Dt=-1,Ft=ht[1],Qt=0,ue=7,ae=4;for(Ft===0&&(ue=138,ae=3),ht[2*(lt+1)+1]=65535,bt=0;bt<=lt;bt++)_t=Ft,Ft=ht[2*(bt+1)+1],++Qt<ue&&_t===Ft||(Qt<ae?q.bl_tree[2*_t]+=Qt:_t!==0?(_t!==Dt&&q.bl_tree[2*_t]++,q.bl_tree[2*x]++):Qt<=10?q.bl_tree[2*w]++:q.bl_tree[2*O]++,Dt=_t,ae=(Qt=0)===Ft?(ue=138,3):_t===Ft?(ue=6,3):(ue=7,4))}function T(q,ht,lt){var bt,_t,Dt=-1,Ft=ht[1],Qt=0,ue=7,ae=4;for(Ft===0&&(ue=138,ae=3),bt=0;bt<=lt;bt++)if(_t=Ft,Ft=ht[2*(bt+1)+1],!(++Qt<ue&&_t===Ft)){if(Qt<ae)for(;N(q,_t,q.bl_tree),--Qt!=0;);else _t!==0?(_t!==Dt&&(N(q,_t,q.bl_tree),Qt--),N(q,x,q.bl_tree),C(q,Qt-3,2)):Qt<=10?(N(q,w,q.bl_tree),C(q,Qt-3,3)):(N(q,O,q.bl_tree),C(q,Qt-11,7));Dt=_t,ae=(Qt=0)===Ft?(ue=138,3):_t===Ft?(ue=6,3):(ue=7,4)}}r(W);var ot=!1;function at(q,ht,lt,bt){C(q,0+(bt?1:0),3),bt=ht,ht=lt,lt=!0,z(q=q),lt&&($(q,ht),$(q,~ht)),e.arraySet(q.pending_buf,q.window,bt,ht,q.pending),q.pending+=ht}t._tr_init=function(q){if(!ot){for(var ht,lt,bt,_t=new Array(v+1),Dt=0,Ft=0;Ft<d-1;Ft++)for(D[Ft]=Dt,ht=0;ht<1<<I[Ft];ht++)U[Dt++]=Ft;for(U[Dt-1]=Ft,Ft=bt=0;Ft<16;Ft++)for(W[Ft]=bt,ht=0;ht<1<<L[Ft];ht++)G[bt++]=Ft;for(bt>>=7;Ft<g;Ft++)for(W[Ft]=bt<<7,ht=0;ht<1<<L[Ft]-7;ht++)G[256+bt++]=Ft;for(lt=0;lt<=v;lt++)_t[lt]=0;for(ht=0;ht<=143;)k[2*ht+1]=8,ht++,_t[8]++;for(;ht<=255;)k[2*ht+1]=9,ht++,_t[9]++;for(;ht<=279;)k[2*ht+1]=7,ht++,_t[7]++;for(;ht<=287;)k[2*ht+1]=8,ht++,_t[8]++;for(tt(k,f+1,_t),ht=0;ht<g;ht++)J[2*ht+1]=5,J[2*ht]=Y(ht,5);l=new Q(k,I,u+1,f,v),n=new Q(J,L,0,g,v),c=new Q(new Array(0),M,0,m,_),ot=!0}q.l_desc=new E(q.dyn_ltree,l),q.d_desc=new E(q.dyn_dtree,n),q.bl_desc=new E(q.bl_tree,c),q.bi_buf=0,q.bi_valid=0,F(q)},t._tr_stored_block=at,t._tr_flush_block=function(q,ht,lt,bt){var _t,Dt,Ft=0;if(0<q.level?(q.strm.data_type===2&&(q.strm.data_type=function(se){for(var Ne=4093624447,ce=0;ce<=31;ce++,Ne>>>=1)if(1&Ne&&se.dyn_ltree[2*ce]!==0)return s;if(se.dyn_ltree[18]!==0||se.dyn_ltree[20]!==0||se.dyn_ltree[26]!==0)return i;for(ce=32;ce<u;ce++)if(se.dyn_ltree[2*ce]!==0)return i;return s}(q)),K(q,q.l_desc),K(q,q.d_desc),Ft=function(se){var Ne;for(rt(se,se.dyn_ltree,se.l_desc.max_code),rt(se,se.dyn_dtree,se.d_desc.max_code),K(se,se.bl_desc),Ne=m-1;3<=Ne&&se.bl_tree[2*A[Ne]+1]===0;Ne--);return se.opt_len+=3*(Ne+1)+5+5+4,Ne}(q),_t=q.opt_len+3+7>>>3,(Dt=q.static_len+3+7>>>3)<=_t&&(_t=Dt)):_t=Dt=lt+5,lt+4<=_t&&ht!==-1)at(q,ht,lt,bt);else if(q.strategy===4||Dt===_t)C(q,2+(bt?1:0),3),V(q,k,J);else{C(q,4+(bt?1:0),3);var Qt,ue=q,ht=q.l_desc.max_code+1,lt=q.d_desc.max_code+1,ae=Ft+1;for(C(ue,ht-257,5),C(ue,lt-1,5),C(ue,ae-4,4),Qt=0;Qt<ae;Qt++)C(ue,ue.bl_tree[2*A[Qt]+1],3);T(ue,ue.dyn_ltree,ht-1),T(ue,ue.dyn_dtree,lt-1),V(q,q.dyn_ltree,q.dyn_dtree)}F(q),bt&&z(q)},t._tr_tally=function(q,ht,lt){return q.pending_buf[q.d_buf+2*q.last_lit]=ht>>>8&255,q.pending_buf[q.d_buf+2*q.last_lit+1]=255&ht,q.pending_buf[q.l_buf+q.last_lit]=255<,q.last_lit++,ht===0?q.dyn_ltree[2*lt]++:(q.matches++,ht--,q.dyn_ltree[2*(U[lt]+u+1)]++,q.dyn_dtree[2*B(ht)]++),q.last_lit===q.lit_bufsize-1},t._tr_align=function(q){C(q,2,3),N(q,R,k),(q=q).bi_valid===16?($(q,q.bi_buf),q.bi_buf=0,q.bi_valid=0):8<=q.bi_valid&&(q.pending_buf[q.pending++]=255&q.bi_buf,q.bi_buf>>=8,q.bi_valid-=8)}},{"../utils/common":464}],476:[function(o,a,t){a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],477:[function(o,a,t){var e,s=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},i=(Object.defineProperty(t,"__esModule",{value:!0}),s(o("lodash.clonedeep"))),r=s(o("lodash.isequal"));(s=e=e||{}).compose=function(l,n,c){typeof(l=l===void 0?{}:l)!="object"&&(l={});var d,u=i.default(n=typeof(n=n===void 0?{}:n)!="object"?{}:n);for(d in c||(u=Object.keys(u).reduce(function(f,g){return u[g]!=null&&(f[g]=u[g]),f},{})),l)l[d]!==void 0&&n[d]===void 0&&(u[d]=l[d]);return 0<Object.keys(u).length?u:void 0},s.diff=function(l,n){typeof(l=l===void 0?{}:l)!="object"&&(l={}),typeof(n=n===void 0?{}:n)!="object"&&(n={});var c=Object.keys(l).concat(Object.keys(n)).reduce(function(d,u){return r.default(l[u],n[u])||(d[u]=n[u]===void 0?null:n[u]),d},{});return 0<Object.keys(c).length?c:void 0},s.invert=function(l,n){n===void 0&&(n={}),l=(l=l===void 0?{}:l)||{};var c=Object.keys(n).reduce(function(d,u){return n[u]!==l[u]&&l[u]!==void 0&&(d[u]=n[u]),d},{});return Object.keys(l).reduce(function(d,u){return l[u]!==n[u]&&n[u]===void 0&&(d[u]=null),d},c)},s.transform=function(l,n,c){if(c===void 0&&(c=!1),typeof l!="object")return n;if(typeof n=="object")return c?(c=Object.keys(n).reduce(function(d,u){return l[u]===void 0&&(d[u]=n[u]),d},{}),0<Object.keys(c).length?c:void 0):n},t.default=e},{"lodash.clonedeep":329,"lodash.isequal":330}],478:[function(o,a,t){var e=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}},s=e(o("fast-diff")),i=e(o("lodash.clonedeep")),r=e(o("lodash.isequal")),l=e(o("./AttributeMap")),n=e(o("./Op")),c=String.fromCharCode(0);function d(u){Array.isArray(u)?this.ops=u:u!=null&&Array.isArray(u.ops)?this.ops=u.ops:this.ops=[]}d.prototype.insert=function(u,f){var g={};return typeof u=="string"&&u.length===0?this:(g.insert=u,f!=null&&typeof f=="object"&&0<Object.keys(f).length&&(g.attributes=f),this.push(g))},d.prototype.delete=function(u){return u<=0?this:this.push({delete:u})},d.prototype.retain=function(u,f){return u<=0?this:(u={retain:u},f!=null&&typeof f=="object"&&0<Object.keys(f).length&&(u.attributes=f),this.push(u))},d.prototype.push=function(u){var f=this.ops.length,g=this.ops[f-1];if(u=i.default(u),typeof g=="object"){if(typeof u.delete=="number"&&typeof g.delete=="number")return this.ops[f-1]={delete:g.delete+u.delete},this;if(typeof g.delete=="number"&&u.insert!=null&&typeof(g=this.ops[--f-1])!="object")return this.ops.unshift(u),this;if(r.default(u.attributes,g.attributes)){if(typeof u.insert=="string"&&typeof g.insert=="string")return this.ops[f-1]={insert:g.insert+u.insert},typeof u.attributes=="object"&&(this.ops[f-1].attributes=u.attributes),this;if(typeof u.retain=="number"&&typeof g.retain=="number")return this.ops[f-1]={retain:g.retain+u.retain},typeof u.attributes=="object"&&(this.ops[f-1].attributes=u.attributes),this}}return f===this.ops.length?this.ops.push(u):this.ops.splice(f,0,u),this},d.prototype.chop=function(){var u=this.ops[this.ops.length-1];return u&&u.retain&&!u.attributes&&this.ops.pop(),this},d.prototype.filter=function(u){return this.ops.filter(u)},d.prototype.forEach=function(u){this.ops.forEach(u)},d.prototype.map=function(u){return this.ops.map(u)},d.prototype.partition=function(u){var f=[],g=[];return this.forEach(function(m){(u(m)?f:g).push(m)}),[f,g]},d.prototype.reduce=function(u,f){return this.ops.reduce(u,f)},d.prototype.changeLength=function(){return this.reduce(function(u,f){return f.insert?u+n.default.length(f):f.delete?u-f.delete:u},0)},d.prototype.length=function(){return this.reduce(function(u,f){return u+n.default.length(f)},0)},d.prototype.slice=function(u,f){u===void 0&&(u=0),f===void 0&&(f=1/0);for(var g=[],m=n.default.iterator(this.ops),h=0;h<f&&m.hasNext();){var v=void 0;h<u?v=m.next(u-h):(v=m.next(f-h),g.push(v)),h+=n.default.length(v)}return new d(g)},d.prototype.compose=function(h){var f=n.default.iterator(this.ops),g=n.default.iterator(h.ops),m=[],h=g.peek();if(h!=null&&typeof h.retain=="number"&&h.attributes==null){for(var v=h.retain;f.peekType()==="insert"&&f.peekLength()<=v;)v-=f.peekLength(),m.push(f.next());0<h.retain-v&&g.next(h.retain-v)}for(var b=new d(m);f.hasNext()||g.hasNext();)if(g.peekType()==="insert")b.push(g.next());else if(f.peekType()==="delete")b.push(f.next());else{var _=Math.min(f.peekLength(),g.peekLength()),R=f.next(_),x=g.next(_);if(typeof x.retain=="number"){var w={},_=(typeof R.retain=="number"?w.retain=_:w.insert=R.insert,l.default.compose(R.attributes,x.attributes,typeof R.retain=="number"));if(_&&(w.attributes=_),b.push(w),!g.hasNext()&&r.default(b.ops[b.ops.length-1],w))return _=new d(f.rest()),b.concat(_).chop()}else typeof x.delete=="number"&&typeof R.retain=="number"&&b.push(x)}return b.chop()},d.prototype.concat=function(u){var f=new d(this.ops.slice());return 0<u.ops.length&&(f.push(u.ops[0]),f.ops=f.ops.concat(u.ops.slice(1))),f},d.prototype.diff=function(u,f){if(this.ops===u.ops)return new d;var m=[this,u].map(function(b){return b.map(function(_){if(_.insert!=null)return typeof _.insert=="string"?_.insert:c;throw new Error("diff() called "+(b===u?"on":"with")+" non-document")}).join("")}),g=new d,m=s.default(m[0],m[1],f),h=n.default.iterator(this.ops),v=n.default.iterator(u.ops);return m.forEach(function(b){for(var _=b[1].length;0<_;){var R=0;switch(b[0]){case s.default.INSERT:R=Math.min(v.peekLength(),_),g.push(v.next(R));break;case s.default.DELETE:R=Math.min(_,h.peekLength()),h.next(R),g.delete(R);break;case s.default.EQUAL:var R=Math.min(h.peekLength(),v.peekLength(),_),x=h.next(R),w=v.next(R);r.default(x.insert,w.insert)?g.retain(R,l.default.diff(x.attributes,w.attributes)):g.push(w).delete(R)}_-=R}}),g.chop()},d.prototype.eachLine=function(u,f){f===void 0&&(f=`
|
|
150
|
+
`);for(var g=n.default.iterator(this.ops),m=new d,h=0;g.hasNext();){if(g.peekType()!=="insert")return;var b=g.peek(),v=n.default.length(b)-g.peekLength(),b=typeof b.insert=="string"?b.insert.indexOf(f,v)-v:-1;if(b<0)m.push(g.next());else if(0<b)m.push(g.next(b));else{if(u(m,g.next(1).attributes||{},h)===!1)return;h+=1,m=new d}}0<m.length()&&u(m,{},h)},d.prototype.invert=function(u){var f=new d;return this.reduce(function(g,m){if(m.insert)f.delete(n.default.length(m));else{if(m.retain&&m.attributes==null)return f.retain(m.retain),g+m.retain;var h;if(m.delete||m.retain&&m.attributes)return h=m.delete||m.retain,u.slice(g,g+h).forEach(function(v){m.delete?f.push(v):m.retain&&m.attributes&&f.retain(n.default.length(v),l.default.invert(m.attributes,v.attributes))}),g+h}return g},0),f.chop()},d.prototype.transform=function(u,f){if(f=!!(f=f===void 0?!1:f),typeof u=="number")return this.transformPosition(u,f);for(var g,m,h,v=n.default.iterator(this.ops),b=n.default.iterator(u.ops),_=new d;v.hasNext()||b.hasNext();)v.peekType()!=="insert"||!f&&b.peekType()==="insert"?b.peekType()==="insert"?_.push(b.next()):(g=Math.min(v.peekLength(),b.peekLength()),m=v.next(g),h=b.next(g),m.delete||(h.delete?_.push(h):_.retain(g,l.default.transform(m.attributes,h.attributes,f)))):_.retain(n.default.length(v.next()));return _.chop()},d.prototype.transformPosition=function(u,f){f=!!(f=f===void 0?!1:f);for(var g=n.default.iterator(this.ops),m=0;g.hasNext()&&m<=u;){var h=g.peekLength(),v=g.peekType();g.next(),v==="delete"?u-=Math.min(h,u-m):(v==="insert"&&(m<u||!f)&&(u+=h),m+=h)}return u},d.Op=n.default,d.AttributeMap=l.default,a.exports=d},{"./AttributeMap":477,"./Op":480,"fast-diff":316,"lodash.clonedeep":329,"lodash.isequal":330}],479:[function(o,a,t){var e=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},s=(Object.defineProperty(t,"__esModule",{value:!0}),e(o("./Op")));function i(r){this.ops=r,this.index=0,this.offset=0}i.prototype.hasNext=function(){return this.peekLength()<1/0},i.prototype.next=function(r){r=r||1/0;var l,n,c=this.ops[this.index];return c?(l=this.offset,(n=s.default.length(c))-l<=r?(r=n-l,this.index+=1,this.offset=0):this.offset+=r,typeof c.delete=="number"?{delete:r}:(n={},c.attributes&&(n.attributes=c.attributes),typeof c.retain=="number"?n.retain=r:typeof c.insert=="string"?n.insert=c.insert.substr(l,r):n.insert=c.insert,n)):{retain:1/0}},i.prototype.peek=function(){return this.ops[this.index]},i.prototype.peekLength=function(){return this.ops[this.index]?s.default.length(this.ops[this.index])-this.offset:1/0},i.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},i.prototype.rest=function(){var r,l,n,c;return this.hasNext()?this.offset===0?this.ops.slice(this.index):(r=this.offset,l=this.index,n=this.next(),c=this.ops.slice(this.index),this.offset=r,this.index=l,[n].concat(c)):[]},t.default=i},{"./Op":480}],480:[function(o,a,t){var e,s=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},i=(Object.defineProperty(t,"__esModule",{value:!0}),s(o("./Iterator")));(s=e=e||{}).iterator=function(r){return new i.default(r)},s.length=function(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.insert=="string"?r.insert.length:1},t.default=e},{"./Iterator":479}],481:[function(o,a,t){var e,s;e=function(){var i="object",r="function",l="undefined",n=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],c=["setStart","setStartBefore","setStartAfter","setEnd","setEndBefore","setEndAfter","collapse","selectNode","selectNodeContents","compareBoundaryPoints","deleteContents","extractContents","cloneContents","insertNode","surroundContents","cloneRange","toString","detach"],d=["boundingHeight","boundingLeft","boundingTop","boundingWidth","htmlText","text"],u=["collapse","compareEndPoints","duplicate","moveToElementText","parentElement","select","setEndPoint","getBoundingClientRect"];function f(P,j){var V=typeof P[j];return V==r||!(V!=i||!P[j])||V=="unknown"}function g(P,j){return!(typeof P[j]!=i||!P[j])}function m(P,j){return typeof P[j]!=l}function h(P){return function(j,V){for(var K=V.length;K--;)if(!P(j,V[K]))return!1;return!0}}var v=h(f),b=h(g),_=h(m);function R(P){return P&&v(P,u)&&_(P,d)}function x(P){return g(P,"body")?P.body:P.getElementsByTagName("body")[0]}var w,O,I,L={},M=typeof window!=l&&typeof document!=l,A={isHostMethod:f,isHostObject:g,isHostProperty:m,areHostMethods:v,areHostObjects:b,areHostProperties:_,isTextRange:R,getBody:x,forEach:[].forEach?function(P,j){P.forEach(j)}:function(P,j){for(var V=0,K=P.length;V<K;++V)j(P[V],V)}},k={version:"1.3.1",initialized:!1,isBrowser:M,supported:!0,util:A,features:{},modules:L,config:{alertOnFail:!1,alertOnWarn:!1,preferTextRange:!1,autoInitialize:typeof rangyAutoInitialize==l||rangyAutoInitialize}};function J(P){typeof console!=l&&f(console,"log")&&console.log(P)}function G(P,j){(M&&j?alert:J)(P)}function U(P){k.initialized=!0,k.supported=!1,G("Rangy is not supported in this environment. Reason: "+P,k.config.alertOnFail)}if(k.fail=U,k.warn=function(P){G("Rangy warning: "+P,k.config.alertOnWarn)},{}.hasOwnProperty?(A.extend=w=function(P,j,V){var K,rt,T;for(T in j)j.hasOwnProperty(T)&&(K=P[T],rt=j[T],V&&K!==null&&typeof K=="object"&&rt!==null&&typeof rt=="object"&&w(K,rt,!0),P[T]=rt);return j.hasOwnProperty("toString")&&(P.toString=j.toString),P},A.createOptions=function(P,j){var V={};return w(V,j),P&&w(V,P),V}):U("hasOwnProperty not supported"),M||U("Rangy can only run in a browser"),M){var b=document.createElement("div"),D=(b.appendChild(document.createElement("span")),[].slice);try{D.call(b.childNodes,0)[0].nodeType==1&&(O=function(j){return D.call(j,0)})}catch{}}A.toArray=O=O||function(P){for(var j=[],V=0,K=P.length;V<K;++V)j[V]=P[V];return j},M&&(f(document,"addEventListener")?I=function(P,j,V){P.addEventListener(j,V,!1)}:f(document,"attachEvent")?I=function(P,j,V){P.attachEvent("on"+j,V)}:U("Document does not have required addEventListener or attachEvent method"),A.addListener=I);var W=[];function Q(P){return P.message||P.description||String(P)}function E(){if(M&&!k.initialized){var P,j,V,K=!1,rt=!1,T=(f(document,"createRange")&&(P=document.createRange(),v(P,c)&&_(P,n)&&(K=!0)),x(document));if(T&&T.nodeName.toLowerCase()=="body")if(T&&f(T,"createTextRange")&&R(P=T.createTextRange())&&(rt=!0),K||rt){for(V in k.initialized=!0,k.features={implementsDomRange:K,implementsTextRange:rt},L)(j=L[V])instanceof N&&j.init(j,k);for(var ot=0,at=W.length;ot<at;++ot)try{W[ot](k)}catch(q){J("Rangy init listener threw an exception. Continuing. Detail: "+Q(q))}}else U("Neither Range nor TextRange are available");else U("No body element found")}}function B(P,j,V){V&&(P+=" in module "+V.name),k.warn("DEPRECATED: "+P+" is deprecated. Please use "+j+" instead.")}function $(P,j,V,K){P[j]=function(){return B(j,V,K),P[V].apply(P,A.toArray(arguments))}}A.deprecationNotice=B,A.createAliasForDeprecatedMethod=$,k.init=E,k.addInitListener=function(P){k.initialized?P(k):W.push(P)};var C=[];function N(P,j,V){this.name=P,this.dependencies=j,this.initialized=!1,this.supported=!1,this.initializer=V}function Y(P,j,V){return j=new N(P,j,function(K){if(!K.initialized){K.initialized=!0;try{V(k,K),K.supported=!0}catch(rt){J("Module '"+P+"' failed to load: "+Q(rt)),rt.stack&&J(rt.stack)}}}),L[P]=j}function tt(){}k.addShimListener=function(P){C.push(P)},M&&(k.shim=k.createMissingNativeApi=function(P){P=P||window,E();for(var j=0,V=C.length;j<V;++j)C[j](P)},$(k,"createMissingNativeApi","shim")),N.prototype={init:function(){for(var P,j,V=this.dependencies||[],K=0,rt=V.length;K<rt;++K){if(j=V[K],!((P=L[j])&&P instanceof N))throw new Error("required module '"+j+"' not found");if(P.init(),!P.supported)throw new Error("required module '"+j+"' not supported")}this.initializer(this)},fail:function(P){throw this.initialized=!0,this.supported=!1,new Error(P)},warn:function(P){k.warn("Module "+this.name+": "+P)},deprecationNotice:function(P,j){k.warn("DEPRECATED: "+P+" in module "+this.name+" is deprecated. Please use "+j+" instead")},createError:function(P){return new Error("Error in Rangy "+this.name+" module: "+P)}},k.createModule=function(P){var j,V=arguments.length==2?(j=arguments[1],[]):(j=arguments[2],arguments[1]),V=Y(P,V,j);k.initialized&&k.supported&&V.init()},k.createCoreModule=function(P,j,V){Y(P,j,V)},k.RangePrototype=tt,k.rangePrototype=new tt,k.selectionPrototype=new function(){},k.createCoreModule("DomUtil",[],function(P,j){function V(Vt,ge){for(var De=Vt.length;De--;)if(Vt[De]===ge)return!0;return!1}var K="undefined",rt=P.util,T=rt.getBody,ot=(rt.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||j.fail("document missing a Node creation method"),rt.isHostMethod(document,"getElementsByTagName")||j.fail("document missing getElementsByTagName method"),document.createElement("div")),ot=(rt.areHostMethods(ot,["insertBefore","appendChild","cloneNode"])||j.fail("Incomplete Element implementation"),rt.isHostProperty(ot,"innerHTML")||j.fail("Element is missing innerHTML property"),document.createTextNode("test"));rt.areHostMethods(ot,["splitText","deleteData","insertData","appendData","cloneNode"])||j.fail("Incomplete Text Node implementation");function at(Vt){for(var ge=0;Vt=Vt.previousSibling;)++ge;return ge}function q(Vt,ge){for(var De=[],_e=Vt;_e;_e=_e.parentNode)De.push(_e);for(_e=ge;_e;_e=_e.parentNode)if(V(De,_e))return _e;return null}function ht(Vt,ge,De){for(var _e=De?ge:ge.parentNode;_e;){if(_e===Vt)return!0;_e=_e.parentNode}return!1}function lt(Vt,ge,De){for(var _e,Ht=De?Vt:Vt.parentNode;Ht;){if((_e=Ht.parentNode)===ge)return Ht;Ht=_e}return null}function bt(Vt){return Vt=Vt.nodeType,Vt==3||Vt==4||Vt==8}function _t(Vt,_e){var De=_e.nextSibling,_e=_e.parentNode;return De?_e.insertBefore(Vt,De):_e.appendChild(Vt),Vt}function Dt(Vt){if(Vt.nodeType==9)return Vt;if(typeof Vt.ownerDocument!=K)return Vt.ownerDocument;if(typeof Vt.document!=K)return Vt.document;if(Vt.parentNode)return Dt(Vt.parentNode);throw j.createError("getDocument: no document found for node")}function Ft(Vt){if(Vt=Dt(Vt),typeof Vt.defaultView!=K)return Vt.defaultView;if(typeof Vt.parentWindow!=K)return Vt.parentWindow;throw j.createError("Cannot get a window object for node")}function Qt(Vt){if(typeof Vt.contentDocument!=K)return Vt.contentDocument;if(typeof Vt.contentWindow!=K)return Vt.contentWindow.document;throw j.createError("getIframeDocument: No Document object found for iframe element")}function ue(Vt){return Vt&&rt.isHostMethod(Vt,"setTimeout")&&rt.isHostObject(Vt,"document")}var ae,se,Ne;function ce(Vt){try{return Vt.parentNode,!1}catch{return!0}}function qt(Vt){return Vt?ae&&ce(Vt)?"[Broken node]":bt(Vt)?'"'+Vt.data+'"':Vt.nodeType==1?(ge=Vt.id?' id="'+Vt.id+'"':"","<"+Vt.nodeName+ge+">[index:"+at(Vt)+",length:"+Vt.childNodes.length+"]["+(Vt.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"):Vt.nodeName:"[No node]";var ge}function Nt(Vt){this.root=Vt,this._next=Vt}function It(Vt,ge){this.node=Vt,this.offset=ge}function me(Vt){this.code=this[Vt],this.codeName=Vt,this.message="DOMException: "+this.codeName}(ot=document.createElement("b")).innerHTML="1",se=ot.firstChild,ot.innerHTML="<br />",ae=ce(se),P.features.crashyTextNodes=ae,typeof window.getComputedStyle!=K?Ne=function(Vt,ge){return Ft(Vt).getComputedStyle(Vt,null)[ge]}:typeof document.documentElement.currentStyle!=K?Ne=function(Vt,ge){return Vt.currentStyle?Vt.currentStyle[ge]:""}:j.fail("No means of obtaining computed style properties found"),Nt.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var Vt,ge,De=this._current=this._next;if(this._current)if(Vt=De.firstChild)this._next=Vt;else{for(ge=null;De!==this.root&&!(ge=De.nextSibling);)De=De.parentNode;this._next=ge}return this._current},detach:function(){this._current=this._next=this.root=null}},It.prototype={equals:function(Vt){return!!Vt&&this.node===Vt.node&&this.offset==Vt.offset},inspect:function(){return"[DomPosition("+qt(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},(me.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24}).toString=function(){return this.message},P.dom={arrayContains:V,isHtmlNamespace:function(Vt){return typeof Vt.namespaceURI==K||(Vt=Vt.namespaceURI)===null||Vt=="http://www.w3.org/1999/xhtml"},parentElement:function(Vt){return(Vt=Vt.parentNode).nodeType==1?Vt:null},getNodeIndex:at,getNodeLength:function(Vt){switch(Vt.nodeType){case 7:case 10:return 0;case 3:case 8:return Vt.length;default:return Vt.childNodes.length}},getCommonAncestor:q,isAncestorOf:ht,isOrIsAncestorOf:function(Vt,ge){return ht(Vt,ge,!0)},getClosestAncestorIn:lt,isCharacterDataNode:bt,isTextOrCommentNode:function(Vt){return!!Vt&&((Vt=Vt.nodeType)==3||Vt==8)},insertAfter:_t,splitDataNode:function(Vt,ge,De){var _e=Vt.cloneNode(!1);if(_e.deleteData(0,ge),Vt.deleteData(ge,Vt.length-ge),_t(_e,Vt),De)for(var Ht,yn=0;Ht=De[yn++];)Ht.node==Vt&&Ht.offset>ge?(Ht.node=_e,Ht.offset-=ge):Ht.node==Vt.parentNode&&Ht.offset>at(Vt)&&++Ht.offset;return _e},getDocument:Dt,getWindow:Ft,getIframeWindow:function(Vt){if(typeof Vt.contentWindow!=K)return Vt.contentWindow;if(typeof Vt.contentDocument!=K)return Vt.contentDocument.defaultView;throw j.createError("getIframeWindow: No Window object found for iframe element")},getIframeDocument:Qt,getBody:T,isWindow:ue,getContentDocument:function(Vt,ge,De){var _e;if(Vt?rt.isHostProperty(Vt,"nodeType")?_e=(Vt.nodeType==1&&Vt.tagName.toLowerCase()=="iframe"?Qt:Dt)(Vt):ue(Vt)&&(_e=Vt.document):_e=document,_e)return _e;throw ge.createError(De+"(): Parameter must be a Window object or DOM node")},getRootContainer:function(Vt){for(var ge;ge=Vt.parentNode;)Vt=ge;return Vt},comparePoints:function(Vt,ge,De,_e){var Ht,yn,ee,Qe;if(Vt==De)return ge===_e?0:ge<_e?-1:1;if(Ht=lt(De,Vt,!0))return ge<=at(Ht)?-1:1;if(Ht=lt(Vt,De,!0))return at(Ht)<_e?-1:1;if(!(ge=q(Vt,De)))throw new Error("comparePoints error: nodes have no common ancestor");if((yn=Vt===ge?ge:lt(Vt,ge,!0))===(ee=De===ge?ge:lt(De,ge,!0)))throw j.createError("comparePoints got to case 4 and childA and childB are the same!");for(Qe=ge.firstChild;Qe;){if(Qe===yn)return-1;if(Qe===ee)return 1;Qe=Qe.nextSibling}},isBrokenNode:ce,inspectNode:qt,getComputedStyleProperty:Ne,createTestElement:function(Vt,ge,De){var _e=T(Vt);return(Vt=Vt.createElement("div")).contentEditable=""+!!De,ge&&(Vt.innerHTML=ge),(De=_e.firstChild)?_e.insertBefore(Vt,De):_e.appendChild(Vt),Vt},removeNode:function(Vt){return Vt.parentNode.removeChild(Vt)},fragmentFromNodeChildren:function(Vt){for(var ge,De=Dt(Vt).createDocumentFragment();ge=Vt.firstChild;)De.appendChild(ge);return De},createIterator:function(Vt){return new Nt(Vt)},DomPosition:It},P.DOMException=me}),k.createCoreModule("DomRange",["DomUtil"],function(P,j){var V=P.dom,K=P.util,rt=V.DomPosition,T=P.DOMException,ot=V.isCharacterDataNode,at=V.getNodeIndex,q=V.isOrIsAncestorOf,ht=V.getDocument,lt=V.comparePoints,bt=V.splitDataNode,_t=V.getClosestAncestorIn,Dt=V.getNodeLength,Ft=V.arrayContains,Qt=V.getRootContainer,ue=P.features.crashyTextNodes,ae=V.removeNode;function se(X,dt){return X.nodeType!=3&&(q(X,dt.startContainer)||q(X,dt.endContainer))}function Ne(X){return X.document||ht(X.startContainer)}function ce(X){return new rt(X.parentNode,at(X))}function qt(X){return new rt(X.parentNode,at(X)+1)}function Nt(X,dt,wt){var Bt=X.nodeType==11?X.firstChild:X;return ot(dt)?wt==dt.length?V.insertAfter(X,dt):dt.parentNode.insertBefore(X,wt==0?dt:bt(dt,wt)):wt>=dt.childNodes.length?dt.appendChild(X):dt.insertBefore(X,dt.childNodes[wt]),Bt}function It(St,dt,wt){if(de(St),de(dt),Ne(dt)!=Ne(St))throw new T("WRONG_DOCUMENT_ERR");var Bt=lt(St.startContainer,St.startOffset,dt.endContainer,dt.endOffset),St=lt(St.endContainer,St.endOffset,dt.startContainer,dt.startOffset);return wt?Bt<=0&&0<=St:Bt<0&&0<St}function me(X,dt,wt){var Bt,St,Se,oe;for(wt=wt||{stop:!1};Se=X.next();)if(X.isPartiallySelectedSubtree()){if(dt(Se)===!1)return void(wt.stop=!0);if(me(oe=X.getSubtreeIterator(),dt,wt),oe.detach(),wt.stop)return}else for(Bt=V.createIterator(Se);St=Bt.next();)if(dt(St)===!1)return void(wt.stop=!0)}function Vt(X){for(var dt;X.next();)X.isPartiallySelectedSubtree()?(Vt(dt=X.getSubtreeIterator()),dt.detach()):X.remove()}function ge(X){for(var dt,wt,Bt=Ne(X.range).createDocumentFragment();dt=X.next();){if(X.isPartiallySelectedSubtree()?(dt=dt.cloneNode(!1),wt=X.getSubtreeIterator(),dt.appendChild(ge(wt)),wt.detach()):X.remove(),dt.nodeType==10)throw new T("HIERARCHY_REQUEST_ERR");Bt.appendChild(dt)}return Bt}function De(X){return"["+(X.getName===void 0?"Range":X.getName())+"("+V.inspectNode(X.startContainer)+":"+X.startOffset+", "+V.inspectNode(X.endContainer)+":"+X.endOffset+")]"}function _e(X,dt){this.range=X,this.clonePartiallySelectedTextNodes=dt,X.collapsed||(this.sc=X.startContainer,this.so=X.startOffset,this.ec=X.endContainer,this.eo=X.endOffset,dt=X.commonAncestorContainer,this.sc===this.ec&&ot(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==dt||ot(this.sc)?_t(this.sc,dt,!0):this.sc.childNodes[this.so],this._last=this.ec!==dt||ot(this.ec)?_t(this.ec,dt,!0):this.ec.childNodes[this.eo-1]))}_e.prototype={_current:null,_next:null,_first:null,_last:null,isSingleCharacterDataNode:!1,reset:function(){this._current=null,this._next=this._first},hasNext:function(){return!!this._next},next:function(){var X=this._current=this._next;return X&&(this._next=X!==this._last?X.nextSibling:null,ot(X)&&this.clonePartiallySelectedTextNodes&&(X===this.ec&&(X=X.cloneNode(!0)).deleteData(this.eo,X.length-this.eo),this._current===this.sc&&(X=X.cloneNode(!0)).deleteData(0,this.so))),X},remove:function(){var X,dt,wt=this._current;!ot(wt)||wt!==this.sc&&wt!==this.ec?wt.parentNode&&ae(wt):(X=wt===this.sc?this.so:0)!=(dt=wt===this.ec?this.eo:wt.length)&&wt.deleteData(X,dt-X)},isPartiallySelectedSubtree:function(){return se(this._current,this.range)},getSubtreeIterator:function(){var X,dt,wt,Bt,St,Se;return this.isSingleCharacterDataNode?(X=this.range.cloneRange()).collapse(!1):(X=new ie(Ne(this.range)),dt=this._current,Bt=0,Se=Dt(St=wt=dt),q(dt,this.sc)&&(wt=this.sc,Bt=this.so),q(dt,this.ec)&&(St=this.ec,Se=this.eo),Yt(X,wt,Bt,St,Se)),new _e(X,this.clonePartiallySelectedTextNodes)},detach:function(){this.range=this._current=this._next=this._first=this._last=this.sc=this.so=this.ec=this.eo=null}};var Ht=[1,3,4,5,7,8,10],yn=[2,9,11],ee=[1,3,4,5,7,8,10,11],Qe=[1,3,4,5,7,8];function on(X){return function(dt,wt){for(var Bt,St=wt?dt:dt.parentNode;St;){if(Bt=St.nodeType,Ft(X,Bt))return St;St=St.parentNode}return null}}var wn=on([9,11]),Ve=on([5,6,10,12]),Ue=on([6,10,12]),Ze=on([1]);function gn(X,dt){if(Ue(X,dt))throw new T("INVALID_NODE_TYPE_ERR")}function fn(X,dt){if(!Ft(dt,X.nodeType))throw new T("INVALID_NODE_TYPE_ERR")}function On(X,dt){if(dt<0||dt>(ot(X)?X:X.childNodes).length)throw new T("INDEX_SIZE_ERR")}function bn(X,dt){if(wn(X,!0)!==wn(dt,!0))throw new T("WRONG_DOCUMENT_ERR")}function Xe(X){if(Ve(X,!0))throw new T("NO_MODIFICATION_ALLOWED_ERR")}function $e(X,dt){if(!X)throw new T(dt)}function kt(X,dt){return dt<=(ot(X)?X:X.childNodes).length}function be(X){return!!X.startContainer&&!!X.endContainer&&!(ue&&(V.isBrokenNode(X.startContainer)||V.isBrokenNode(X.endContainer)))&&Qt(X.startContainer)==Qt(X.endContainer)&&kt(X.startContainer,X.startOffset)&&kt(X.endContainer,X.endOffset)}function de(X){if(!be(X))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+X.inspect()+")")}var Ye=document.createElement("style"),cn=!1;try{Ye.innerHTML="<b>x</b>",cn=Ye.firstChild.nodeType==3}catch{}function We(X,dt){de(X);var wt=X.startContainer,Bt=X.startOffset,St=X.endContainer,Se=X.endOffset,oe=wt===St;ot(St)&&0<Se&&Se<St.length&&bt(St,Se,dt),ot(wt)&&0<Bt&&Bt<wt.length&&(wt=bt(wt,Bt,dt),oe?(Se-=Bt,St=wt):St==wt.parentNode&&Se>=at(wt)&&Se++,Bt=0),X.setStartAndEnd(wt,Bt,St,Se)}function At(X){de(X);var dt=X.commonAncestorContainer.parentNode.cloneNode(!1);return dt.appendChild(X.cloneContents()),dt.innerHTML}P.features.htmlParsingConforms=cn;var Zt=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],xt=0,Wt=1,re=2,je=3,Gt=0,Ge=1,Te=2,yt=3;function zt(X){X.START_TO_START=xt,X.START_TO_END=Wt,X.END_TO_END=re,X.END_TO_START=je,X.NODE_BEFORE=Gt,X.NODE_AFTER=Ge,X.NODE_BEFORE_AND_AFTER=Te,X.NODE_INSIDE=yt}function Tt(X){zt(X),zt(X.prototype)}function Rt(X,dt){return function(){de(this);var wt=this.startContainer,Bt=this.startOffset,Se=this.commonAncestorContainer,St=new _e(this,!0),Se=(wt!==Se&&(wt=(Se=qt(_t(wt,Se,!0))).node,Bt=Se.offset),me(St,Xe),St.reset(),X(St));return St.detach(),dt(this,wt,Bt,wt,Bt),Se}}function Ut(X,dt){function wt(oe,ve){return function(Ie){fn(Ie,Ht),fn(Qt(Ie),yn),Ie=(oe?ce:qt)(Ie),(ve?Bt:St)(this,Ie.node,Ie.offset)}}function Bt(oe,ve,Ie){var ke=oe.endContainer,nn=oe.endOffset;ve===oe.startContainer&&Ie===oe.startOffset||(Qt(ve)==Qt(ke)&<(ve,Ie,ke,nn)!=1||(ke=ve,nn=Ie),dt(oe,ve,Ie,ke,nn))}function St(oe,ve,Ie){var ke=oe.startContainer,nn=oe.startOffset;ve===oe.endContainer&&Ie===oe.endOffset||(Qt(ve)==Qt(ke)&<(ve,Ie,ke,nn)!=-1||(ke=ve,nn=Ie),dt(oe,ke,nn,ve,Ie))}function Se(){}Se.prototype=P.rangePrototype,X.prototype=new Se,K.extend(X.prototype,{setStart:function(oe,ve){gn(oe,!0),On(oe,ve),Bt(this,oe,ve)},setEnd:function(oe,ve){gn(oe,!0),On(oe,ve),St(this,oe,ve)},setStartAndEnd:function(){var oe=arguments,ve=oe[0],Ie=oe[1],ke=ve,nn=Ie;switch(oe.length){case 3:nn=oe[2];break;case 4:ke=oe[2],nn=oe[3]}gn(ve,!0),On(ve,Ie),gn(ke,!0),On(ke,nn),dt(this,ve,Ie,ke,nn)},setBoundary:function(oe,ve,Ie){this["set"+(Ie?"Start":"End")](oe,ve)},setStartBefore:wt(!0,!0),setStartAfter:wt(!1,!0),setEndBefore:wt(!0,!1),setEndAfter:wt(!1,!1),collapse:function(oe){de(this),oe?dt(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):dt(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(oe){gn(oe,!0),dt(this,oe,0,oe,Dt(oe))},selectNode:function(Ie){gn(Ie,!1),fn(Ie,Ht);var ve=ce(Ie),Ie=qt(Ie);dt(this,ve.node,ve.offset,Ie.node,Ie.offset)},extractContents:Rt(ge,dt),deleteContents:Rt(Vt,dt),canSurroundContents:function(){de(this),Xe(this.startContainer),Xe(this.endContainer);var oe=new _e(this,!0),ve=oe._first&&se(oe._first,this)||oe._last&&se(oe._last,this);return oe.detach(),!ve},splitBoundaries:function(){We(this)},splitBoundariesPreservingPositions:function(oe){We(this,oe)},normalizeBoundaries:function(){de(this);function oe(jn){var Rn=jn.nextSibling;Rn&&Rn.nodeType==jn.nodeType&&(Ln=(En=jn).length,jn.appendData(Rn.data),ae(Rn))}function ve(jn){var Rn,$n=jn.previousSibling;$n&&$n.nodeType==jn.nodeType&&(Rn=(nn=jn).length,dn=$n.length,jn.insertData(0,$n.data),ae($n),nn==En?(Ln+=dn,En=nn):En==jn.parentNode&&($n=at(jn),Ln==$n?(En=jn,Ln=Rn):$n<Ln&&Ln--))}var Ie,ke,nn=this.startContainer,dn=this.startOffset,En=this.endContainer,Ln=this.endOffset,tr=!0;ot(En)?Ln==En.length?oe(En):Ln==0&&(Ie=En.previousSibling)&&Ie.nodeType==En.nodeType&&(Ln=Ie.length,nn==En&&(tr=!1),Ie.appendData(En.data),ae(En),En=Ie):(0<Ln&&(ke=En.childNodes[Ln-1])&&ot(ke)&&oe(ke),tr=!this.collapsed),tr?ot(nn)?dn==0?ve(nn):dn==nn.length&&(Ie=nn.nextSibling)&&Ie.nodeType==nn.nodeType&&(En==Ie&&(Ln+=(En=nn).length),nn.appendData(Ie.data),ae(Ie)):dn<nn.childNodes.length&&(ke=nn.childNodes[dn])&&ot(ke)&&ve(ke):(nn=En,dn=Ln),dt(this,nn,dn,En,Ln)},collapseToPoint:function(oe,ve){gn(oe,!0),On(oe,ve),this.setStartAndEnd(oe,ve)},parentElement:function(){return de(this),this.commonAncestorContainer?Ze(this.commonAncestorContainer,!0):null}}),Tt(X)}function Yt(X,dt,wt,Bt,St){X.startContainer=dt,X.startOffset=wt,X.endContainer=Bt,X.endOffset=St,X.document=V.getDocument(dt),(wt=X).collapsed=wt.startContainer===wt.endContainer&&wt.startOffset===wt.endOffset,wt.commonAncestorContainer=wt.collapsed?wt.startContainer:V.getCommonAncestor(wt.startContainer,wt.endContainer)}function ie(X){Yt(this,X,0,X,0)}K.extend(P.rangePrototype,{compareBoundaryPoints:function(wt,oe){de(this),bn(this.startContainer,oe.startContainer);var St=wt==je||wt==xt?"start":"end",wt=wt==Wt||wt==xt?"start":"end",Bt=this[St+"Container"],St=this[St+"Offset"],Se=oe[wt+"Container"],oe=oe[wt+"Offset"];return lt(Bt,St,Se,oe)},insertNode:function(X){if(de(this),fn(X,ee),Xe(this.startContainer),q(X,this.startContainer))throw new T("HIERARCHY_REQUEST_ERR");X=Nt(X,this.startContainer,this.startOffset),this.setStartBefore(X)},cloneContents:function(){if(de(this),this.collapsed)return Ne(this).createDocumentFragment();if(this.startContainer===this.endContainer&&ot(this.startContainer))return(dt=this.startContainer.cloneNode(!0)).data=dt.data.slice(this.startOffset,this.endOffset),(X=Ne(this).createDocumentFragment()).appendChild(dt),X;var X=new _e(this,!0),dt=function wt(Bt){for(var St,Se,oe=Ne(Bt.range).createDocumentFragment();St=Bt.next();){if(Se=Bt.isPartiallySelectedSubtree(),St=St.cloneNode(!Se),Se&&(Se=Bt.getSubtreeIterator(),St.appendChild(wt(Se)),Se.detach()),St.nodeType==10)throw new T("HIERARCHY_REQUEST_ERR");oe.appendChild(St)}return oe}(X);return X.detach(),dt},canSurroundContents:function(){de(this),Xe(this.startContainer),Xe(this.endContainer);var X=new _e(this,!0),dt=X._first&&se(X._first,this)||X._last&&se(X._last,this);return X.detach(),!dt},surroundContents:function(X){if(fn(X,Qe),!this.canSurroundContents())throw new T("INVALID_STATE_ERR");var dt=this.extractContents();if(X.hasChildNodes())for(;X.lastChild;)X.removeChild(X.lastChild);Nt(X,this.startContainer,this.startOffset),X.appendChild(dt),this.selectNode(X)},cloneRange:function(){de(this);for(var X,dt=new ie(Ne(this)),wt=Zt.length;wt--;)dt[X=Zt[wt]]=this[X];return dt},toString:function(){de(this);var X,dt=this.startContainer;return dt===this.endContainer&&ot(dt)?dt.nodeType==3||dt.nodeType==4?dt.data.slice(this.startOffset,this.endOffset):"":(X=[],me(dt=new _e(this,!0),function(wt){wt.nodeType!=3&&wt.nodeType!=4||X.push(wt.data)}),dt.detach(),X.join(""))},compareNode:function(dt){de(this);var Bt=dt.parentNode,dt=at(dt);if(!Bt)throw new T("NOT_FOUND_ERR");var wt=this.comparePoint(Bt,dt),Bt=this.comparePoint(Bt,dt+1);return wt<0?0<Bt?Te:Gt:0<Bt?Ge:yt},comparePoint:function(X,dt){return de(this),$e(X,"HIERARCHY_REQUEST_ERR"),bn(X,this.startContainer),lt(X,dt,this.startContainer,this.startOffset)<0?-1:0<lt(X,dt,this.endContainer,this.endOffset)?1:0},createContextualFragment:cn?function(X){var dt=this.startContainer,wt=ht(dt);if(!dt)throw new T("INVALID_STATE_ERR");var Bt=null;return dt.nodeType==1?Bt=dt:ot(dt)&&(Bt=V.parentElement(dt)),(Bt=Bt===null||Bt.nodeName=="HTML"&&V.isHtmlNamespace(ht(Bt).documentElement)&&V.isHtmlNamespace(Bt)?wt.createElement("body"):Bt.cloneNode(!1)).innerHTML=X,V.fragmentFromNodeChildren(Bt)}:function(X){var dt=Ne(this).createElement("body");return dt.innerHTML=X,V.fragmentFromNodeChildren(dt)},toHtml:function(){return At(this)},intersectsNode:function(wt,dt){if(de(this),Qt(wt)!=Qt(this.startContainer))return!1;var St=wt.parentNode,wt=at(wt);if(!St)return!0;var Bt=lt(St,wt,this.endContainer,this.endOffset),St=lt(St,wt+1,this.startContainer,this.startOffset);return dt?Bt<=0&&0<=St:Bt<0&&0<St},isPointInRange:function(X,dt){return de(this),$e(X,"HIERARCHY_REQUEST_ERR"),bn(X,this.startContainer),0<=lt(X,dt,this.startContainer,this.startOffset)&<(X,dt,this.endContainer,this.endOffset)<=0},intersectsRange:function(X){return It(this,X,!1)},intersectsOrTouchesRange:function(X){return It(this,X,!0)},intersection:function(X){var dt,wt,Bt;return this.intersectsRange(X)?(dt=lt(this.startContainer,this.startOffset,X.startContainer,X.startOffset),wt=lt(this.endContainer,this.endOffset,X.endContainer,X.endOffset),Bt=this.cloneRange(),dt==-1&&Bt.setStart(X.startContainer,X.startOffset),wt==1&&Bt.setEnd(X.endContainer,X.endOffset),Bt):null},union:function(X){var dt;if(this.intersectsOrTouchesRange(X))return dt=this.cloneRange(),lt(X.startContainer,X.startOffset,this.startContainer,this.startOffset)==-1&&dt.setStart(X.startContainer,X.startOffset),lt(X.endContainer,X.endOffset,this.endContainer,this.endOffset)==1&&dt.setEnd(X.endContainer,X.endOffset),dt;throw new T("Ranges do not intersect")},containsNode:function(X,dt){return dt?this.intersectsNode(X,!1):this.compareNode(X)==yt},containsNodeContents:function(X){return 0<=this.comparePoint(X,0)&&this.comparePoint(X,Dt(X))<=0},containsRange:function(X){var dt=this.intersection(X);return dt!==null&&X.equals(dt)},containsNodeText:function(X){var dt=this.cloneRange(),wt=(dt.selectNode(X),dt.getNodes([3]));return 0<wt.length?(dt.setStart(wt[0],0),wt=wt.pop(),dt.setEnd(wt,wt.length),this.containsRange(dt)):this.containsNodeContents(X)},getNodes:function(X,dt){return de(this),wt=this,Bt=dt,Se=!(!(dt=X)||!dt.length),oe=!!Bt,Se&&(St=new RegExp("^("+dt.join("|")+")$")),me(new _e(wt,!(ve=[])),function(Ie){var ke;Se&&!St.test(Ie.nodeType)||oe&&!Bt(Ie)||Ie==(ke=wt.startContainer)&&ot(ke)&&wt.startOffset==ke.length||Ie==(ke=wt.endContainer)&&ot(ke)&&wt.endOffset==0||ve.push(Ie)}),ve;var wt,Bt,St,Se,oe,ve},getDocument:function(){return Ne(this)},collapseBefore:function(X){this.setEndBefore(X),this.collapse(!1)},collapseAfter:function(X){this.setStartAfter(X),this.collapse(!0)},getBookmark:function(X){var wt=Ne(this),dt=P.createRange(wt),wt=(X=X||V.getBody(wt),dt.selectNodeContents(X),this.intersection(dt)),Bt=0,St=0;return wt&&(dt.setEnd(wt.startContainer,wt.startOffset),St=(Bt=dt.toString().length)+wt.toString().length),{start:Bt,end:St,containerNode:X}},moveToBookmark:function(X){for(var dt,wt,Bt,St,Se=X.containerNode,oe=0,ve=(this.setStart(Se,0),this.collapse(!0),[Se]),Ie=!1,ke=!1;!ke&&(dt=ve.pop());)if(dt.nodeType==3)wt=oe+dt.length,!Ie&&X.start>=oe&&X.start<=wt&&(this.setStart(dt,X.start-oe),Ie=!0),Ie&&X.end>=oe&&X.end<=wt&&(this.setEnd(dt,X.end-oe),ke=!0),oe=wt;else for(Bt=(St=dt.childNodes).length;Bt--;)ve.push(St[Bt])},getName:function(){return"DomRange"},equals:function(X){return ie.rangesEqual(this,X)},isValid:function(){return be(this)},inspect:function(){return De(this)},detach:function(){}}),Ut(ie,Yt),K.extend(ie,{rangeProperties:Zt,RangeIterator:_e,copyComparisonConstants:Tt,createPrototypeRange:Ut,inspect:De,toHtml:At,getRangeDocument:Ne,rangesEqual:function(X,dt){return X.startContainer===dt.startContainer&&X.startOffset===dt.startOffset&&X.endContainer===dt.endContainer&&X.endOffset===dt.endOffset}}),P.DomRange=ie}),k.createCoreModule("WrappedRange",["DomRange"],function(P,j){var V,K,rt,T,ot=P.dom,at=P.util,q=ot.DomPosition,ht=P.DomRange,lt=ot.getBody,bt=ot.getContentDocument,_t=ot.isCharacterDataNode;if(P.features.implementsDomRange){let ce=function(qt){for(var Nt,It=Ft.length;It--;)qt[Nt=Ft[It]]=qt.nativeRange[Nt];qt.collapsed=qt.startContainer===qt.endContainer&&qt.startOffset===qt.endOffset};var Dt,Ft=ht.rangeProperties;ht.createPrototypeRange(V=function(qt){if(!qt)throw j.createError("WrappedRange: Range must be specified");this.nativeRange=qt,ce(this)},function(qt,Nt,It,me,Vt){var ge=qt.startContainer!==Nt||qt.startOffset!=It,De=qt.endContainer!==me||qt.endOffset!=Vt,_e=!qt.equals(qt.nativeRange);(ge||De||_e)&&(qt.setEnd(me,Vt),qt.setStart(Nt,It))}),(Dt=V.prototype).selectNode=function(qt){this.nativeRange.selectNode(qt),ce(this)},Dt.cloneContents=function(){return this.nativeRange.cloneContents()},Dt.surroundContents=function(qt){this.nativeRange.surroundContents(qt),ce(this)},Dt.collapse=function(qt){this.nativeRange.collapse(qt),ce(this)},Dt.cloneRange=function(){return new V(this.nativeRange.cloneRange())},Dt.refresh=function(){ce(this)},Dt.toString=function(){return this.nativeRange.toString()};var Qt=document.createTextNode("test"),ue=(lt(document).appendChild(Qt),document.createRange());ue.setStart(Qt,0),ue.setEnd(Qt,0);try{ue.setStart(Qt,1),Dt.setStart=function(qt,Nt){this.nativeRange.setStart(qt,Nt),ce(this)},Dt.setEnd=function(qt,Nt){this.nativeRange.setEnd(qt,Nt),ce(this)},ae=function(qt){return function(Nt){this.nativeRange[qt](Nt),ce(this)}}}catch{Dt.setStart=function(Nt,It){try{this.nativeRange.setStart(Nt,It)}catch{this.nativeRange.setEnd(Nt,It),this.nativeRange.setStart(Nt,It)}ce(this)},Dt.setEnd=function(Nt,It){try{this.nativeRange.setEnd(Nt,It)}catch{this.nativeRange.setStart(Nt,It),this.nativeRange.setEnd(Nt,It)}ce(this)},ae=function(Nt,It){return function(me){try{this.nativeRange[Nt](me)}catch{this.nativeRange[It](me),this.nativeRange[Nt](me)}ce(this)}}}Dt.setStartBefore=ae("setStartBefore","setEndBefore"),Dt.setStartAfter=ae("setStartAfter","setEndAfter"),Dt.setEndBefore=ae("setEndBefore","setStartBefore"),Dt.setEndAfter=ae("setEndAfter","setStartAfter"),Dt.selectNodeContents=function(qt){this.setStartAndEnd(qt,0,ot.getNodeLength(qt))},ue.selectNodeContents(Qt),ue.setEnd(Qt,3);var ae=document.createRange();ae.selectNodeContents(Qt),ae.setEnd(Qt,4),ae.setStart(Qt,2),ue.compareBoundaryPoints(ue.START_TO_END,ae)==-1&&ue.compareBoundaryPoints(ue.END_TO_START,ae)==1?Dt.compareBoundaryPoints=function(qt,Nt){return qt==(Nt=Nt.nativeRange||Nt).START_TO_END?qt=Nt.END_TO_START:qt==Nt.END_TO_START&&(qt=Nt.START_TO_END),this.nativeRange.compareBoundaryPoints(qt,Nt)}:Dt.compareBoundaryPoints=function(qt,Nt){return this.nativeRange.compareBoundaryPoints(qt,Nt.nativeRange||Nt)},(ae=document.createElement("div")).innerHTML="123";var se=ae.firstChild,Ne=lt(document);Ne.appendChild(ae),ue.setStart(se,1),ue.setEnd(se,2),ue.deleteContents(),se.data=="13"&&(Dt.deleteContents=function(){this.nativeRange.deleteContents(),ce(this)},Dt.extractContents=function(){var qt=this.nativeRange.extractContents();return ce(this),qt}),Ne.removeChild(ae),Ne=null,at.isHostMethod(ue,"createContextualFragment")&&(Dt.createContextualFragment=function(qt){return this.nativeRange.createContextualFragment(qt)}),lt(document).removeChild(Qt),Dt.getName=function(){return"WrappedRange"},P.WrappedRange=V,P.createNativeRange=function(qt){return(qt=bt(qt,j,"createNativeRange")).createRange()}}P.features.implementsTextRange&&(K=function(ce,qt,Nt,It,me){var Vt=ce.duplicate(),ge=(Vt.collapse(Nt),Vt.parentElement());if(!(ge=ot.isOrIsAncestorOf(qt,ge)?ge:qt).canHaveHTML)return{boundaryPosition:qt=new q(ge.parentNode,ot.getNodeIndex(ge)),nodeInfo:{nodeIndex:qt.offset,containerElement:qt.node}};var De=ot.getDocument(ge).createElement("span");De.parentNode&&ot.removeNode(De);for(var _e,Ht,yn=Nt?"StartToStart":"StartToEnd",ee=me&&me.containerElement==ge?me.nodeIndex:0,Qe=ge.childNodes.length,on=Qe,wn=on;wn==Qe?ge.appendChild(De):ge.insertBefore(De,ge.childNodes[wn]),Vt.moveToElementText(De),(_e=Vt.compareEndPoints(yn,ce))!=0&&ee!=on;){if(_e==-1){if(on==ee+1)break;ee=wn}else on=on==ee+1?ee:wn;wn=Math.floor((ee+on)/2),ge.removeChild(De)}if(qt=De.nextSibling,_e==-1&&qt&&_t(qt)){if(Vt.setEndPoint(Nt?"EndToStart":"EndToEnd",ce),/[\r\n]/.test(qt.data))for(var Ve=Vt.duplicate(),me=Ve.text.replace(/\r\n/g,"\r").length,Ue=Ve.moveStart("character",me);(_e=Ve.compareEndPoints("StartToEnd",Ve))==-1;)Ue++,Ve.moveStart("character",1);else Ue=Vt.text.length;Ht=new q(qt,Ue)}else me=(It||!Nt)&&De.previousSibling,Ht=(qt=(It||Nt)&&De.nextSibling)&&_t(qt)?new q(qt,0):me&&_t(me)?new q(me,me.data.length):new q(ge,ot.getNodeIndex(De));return ot.removeNode(De),{boundaryPosition:Ht,nodeInfo:{nodeIndex:wn,containerElement:ge}}},rt=function(_e,qt){var Nt,It=_e.offset,me=ot.getDocument(_e.node),Vt=lt(me).createTextRange(),ge=_t(_e.node),De=ge?(Nt=_e.node).parentNode:(Nt=It<(De=_e.node.childNodes).length?De[It]:null,_e.node),_e=me.createElement("span");return _e.innerHTML="&#feff;",Nt?De.insertBefore(_e,Nt):De.appendChild(_e),Vt.moveToElementText(_e),Vt.collapse(!qt),De.removeChild(_e),ge&&Vt[qt?"moveStart":"moveEnd"]("character",It),Vt},((se=function(ce){this.textRange=ce,this.refresh()}).prototype=new ht(document)).refresh=function(){Nt=this.textRange,qt=Nt.parentElement(),(me=Nt.duplicate()).collapse(!0),It=me.parentElement(),(me=Nt.duplicate()).collapse(!1),Nt=me.parentElement();var ce,qt,Nt,It=(me=It==Nt?It:ot.getCommonAncestor(It,Nt))==qt?me:ot.getCommonAncestor(qt,me),me=(Nt=this.textRange).compareEndPoints("StartToEnd",Nt)==0?ce=K(this.textRange,It,!0,!0).boundaryPosition:(ce=(qt=K(this.textRange,It,!0,!1)).boundaryPosition,K(this.textRange,It,!1,!1,qt.nodeInfo).boundaryPosition);this.setStart(ce.node,ce.offset),this.setEnd(me.node,me.offset)},se.prototype.getName=function(){return"WrappedTextRange"},ht.copyComparisonConstants(se),se.rangeToTextRange=T=function(ce){var qt,Nt;return ce.collapsed?rt(new q(ce.startContainer,ce.startOffset),!0):(qt=rt(new q(ce.startContainer,ce.startOffset),!0),Nt=rt(new q(ce.endContainer,ce.endOffset),!1),(ce=lt(ht.getRangeDocument(ce)).createTextRange()).setEndPoint("StartToStart",qt),ce.setEndPoint("EndToEnd",Nt),ce)},se.prototype.toTextRange=function(){return T(this)},P.WrappedTextRange=se,P.features.implementsDomRange&&!P.config.preferTextRange||((ae=Function("return this;")()).Range===void 0&&(ae.Range=se),P.createNativeRange=function(ce){return ce=bt(ce,j,"createNativeRange"),lt(ce).createTextRange()},P.WrappedRange=se)),P.createRange=function(ce){return ce=bt(ce,j,"createRange"),new P.WrappedRange(P.createNativeRange(ce))},P.createRangyRange=function(ce){return ce=bt(ce,j,"createRangyRange"),new ht(ce)},at.createAliasForDeprecatedMethod(P,"createIframeRange","createRange"),at.createAliasForDeprecatedMethod(P,"createIframeRangyRange","createRangyRange"),P.addShimListener(function(ce){var qt=ce.document;qt.createRange===void 0&&(qt.createRange=function(){return P.createRange(qt)}),qt=null})}),k.createCoreModule("WrappedSelection",["DomRange","WrappedRange"],function(P,j){P.config.checkSelectionRanges=!0;var V,K,rt="number",T=P.dom,ot=P.util,at=ot.isHostMethod,q=P.DomRange,ht=P.WrappedRange,lt=P.DOMException,bt=T.DomPosition,_t=P.features,Dt="Control",Ft=T.getDocument,Qt=T.getBody,ue=q.rangesEqual;function ae(X){return typeof X=="string"?/^backward(s)?$/i.test(X):!!X}function se(X,dt){return X?T.isWindow(X)?X:X instanceof xt?X.win:(X=T.getContentDocument(X,j,dt),T.getWindow(X)):window}function Ne(X){return se(X,"getDocSelection").document.selection}function ce(X){var dt=!1;return dt=X.anchorNode?T.comparePoints(X.anchorNode,X.anchorOffset,X.focusNode,X.focusOffset)==1:dt}var qt=at(window,"getSelection"),Nt=ot.isHostObject(document,"selection"),It=(_t.implementsWinGetSelection=qt,(_t.implementsDocSelection=Nt)&&(!qt||P.config.preferTextRange));if(It)V=Ne,P.isSelectionValid=function(dt){var dt=se(dt,"isSelectionValid").document,wt=dt.selection;return wt.type!="None"||Ft(wt.createRange().parentElement())==dt};else{if(!qt)return j.fail("Neither document.selection or window.getSelection() detected."),!1;V=function(X){return se(X,"getWinSelection").getSelection()},P.isSelectionValid=function(){return!0}}if(qt=(P.getNativeSelection=V)(),!qt)return j.fail("Native selection was null (possibly issue 138?)"),!1;var me=P.createNativeRange(document),Vt=Qt(document),ge=ot.areHostProperties(qt,["anchorNode","focusNode","anchorOffset","focusOffset"]),De=(_t.selectionHasAnchorAndFocus=ge,at(qt,"extend")),_e=(_t.selectionHasExtend=De,at(qt,"setBaseAndExtent")),Ht=(_t.selectionHasSetBaseAndExtent=_e,typeof qt.rangeCount==rt),yn=(_t.selectionHasRangeCount=Ht,!1),ee=!0,Qe=De?function(X,dt){var wt=q.getRangeDocument(dt),wt=P.createRange(wt);wt.collapseToPoint(dt.endContainer,dt.endOffset),X.addRange(de(wt)),X.extend(dt.startContainer,dt.startOffset)}:null;if(ot.areHostMethods(qt,["addRange","getRangeAt","removeAllRanges"])&&typeof qt.rangeCount==rt&&_t.implementsDomRange){var on=window.getSelection();if(on){for(var wn=on.rangeCount,Ve=1<wn,Ue=[],Ze=ce(on),gn=0;gn<wn;++gn)Ue[gn]=on.getRangeAt(gn);var fn=T.createTestElement(document,"",!1),On=fn.appendChild(document.createTextNode("Â Â Â ")),Te=document.createRange();for(Te.setStart(On,1),Te.collapse(!0),on.removeAllRanges(),on.addRange(Te),ee=on.rangeCount==1,on.removeAllRanges(),Ve||(Ve=window.navigator.appVersion.match(/Chrome\/(.*?) /),yn=!(Ve&&36<=parseInt(Ve[1]))&&(Ve=Te.cloneRange(),Te.setStart(On,0),Ve.setEnd(On,3),Ve.setStart(On,2),on.addRange(Te),on.addRange(Ve),on.rangeCount==2)),T.removeNode(fn),on.removeAllRanges(),gn=0;gn<wn;++gn)gn==0&&Ze?Qe?Qe(on,Ue[gn]):(P.warn("Rangy initialization: original selection was backwards but selection has been restored forwards because the browser does not support Selection.extend"),on.addRange(Ue[gn])):on.addRange(Ue[gn])}}_t.selectionSupportsMultipleRanges=yn,_t.collapsedNonEditableSelectionsSupported=ee;var bn,Xe=!1;function $e(X,dt,St){var Bt=St?"end":"start",St=St?"start":"end";X.anchorNode=dt[Bt+"Container"],X.anchorOffset=dt[Bt+"Offset"],X.focusNode=dt[St+"Container"],X.focusOffset=dt[St+"Offset"]}function kt(X){X.anchorNode=X.focusNode=null,X.anchorOffset=X.focusOffset=0,X.rangeCount=0,X.isCollapsed=!0,X._ranges.length=0,be(X)}function be(X){X.type=X.rangeCount==0?"None":K(X)?"Caret":"Range"}function de(X){var dt;return X instanceof q?((dt=P.createNativeRange(X.getDocument())).setEnd(X.endContainer,X.endOffset),dt.setStart(X.startContainer,X.startOffset)):X instanceof ht?dt=X.nativeRange:_t.implementsDomRange&&X instanceof T.getWindow(X.startContainer).Range&&(dt=X),dt}function Ye(X){var dt=X.getNodes();if(function(wt){if(wt.length&&wt[0].nodeType==1){for(var Bt=1,St=wt.length;Bt<St;++Bt)if(!T.isAncestorOf(wt[0],wt[Bt]))return;return 1}}(dt))return dt[0];throw j.createError("getSingleElementFromRange: range "+X.inspect()+" did not consist of a single element")}function cn(X){return X&&X.text!==void 0}function We(X,dt){dt=new ht(dt),X._ranges=[dt],$e(X,dt,!1),X.rangeCount=1,X.isCollapsed=dt.collapsed,be(X)}function At(X){if(X._ranges.length=0,X.docSelection.type=="None")kt(X);else{var dt=X.docSelection.createRange();if(cn(dt))We(X,dt);else{X.rangeCount=dt.length;for(var wt,Bt=Ft(dt.item(0)),St=0;St<X.rangeCount;++St)(wt=P.createRange(Bt)).selectNode(dt.item(St)),X._ranges.push(wt);X.isCollapsed=X.rangeCount==1&&X._ranges[0].collapsed,$e(X,X._ranges[X.rangeCount-1],!1),be(X)}}}function Zt(X,dt){for(var wt=X.docSelection.createRange(),dt=Ye(dt),Bt=Ft(wt.item(0)),St=Qt(Bt).createControlRange(),Se=0,oe=wt.length;Se<oe;++Se)St.add(wt.item(Se));try{St.add(dt)}catch{throw j.createError("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)")}St.select(),At(X)}function xt(X,dt,wt){this.nativeSelection=X,this.docSelection=dt,this._ranges=[],this.win=wt,this.refresh()}function Wt(X){X.win=X.anchorNode=X.focusNode=X._ranges=null,X.rangeCount=X.anchorOffset=X.focusOffset=0,X.detached=!0,be(X)}Vt&&at(Vt,"createControlRange")&&(On=Vt.createControlRange(),ot.areHostProperties(On,["item","add"])&&(Xe=!0)),_t.implementsControlRange=Xe,K=ge?function(X){return X.anchorNode===X.focusNode&&X.anchorOffset===X.focusOffset}:function(X){return!!X.rangeCount&&X.getRangeAt(X.rangeCount-1).collapsed},at(qt,"getRangeAt")?bn=function(X,dt){try{return X.getRangeAt(dt)}catch{return null}}:ge&&(bn=function(X){var dt=Ft(X.anchorNode),dt=P.createRange(dt);return dt.setStartAndEnd(X.anchorNode,X.anchorOffset,X.focusNode,X.focusOffset),dt.collapsed!==this.isCollapsed&&dt.setStartAndEnd(X.focusNode,X.focusOffset,X.anchorNode,X.anchorOffset),dt}),xt.prototype=P.selectionPrototype;var re=[];function je(X,dt){for(var wt,Bt,St=re.length;St--;)if(Bt=(wt=re[St]).selection,dt=="deleteAll")Wt(Bt);else if(wt.win==X)return dt=="delete"?(re.splice(St,1),!0):Bt;return dt=="deleteAll"&&(re.length=0),null}function Gt(X){if(X&&X instanceof xt)return X.refresh(),X;var dt=je(X=se(X,"getNativeSelection")),wt=V(X),Bt=Nt?Ne(X):null;return dt?(dt.nativeSelection=wt,dt.docSelection=Bt,dt.refresh()):(dt=new xt(wt,Bt,X),re.push({win:X,selection:dt})),dt}P.getSelection=Gt,ot.createAliasForDeprecatedMethod(P,"getIframeSelection","getSelection");var Ge,Te=xt.prototype;function yt(X,dt){for(var wt,Bt=Ft(dt[0].startContainer),St=Qt(Bt).createControlRange(),Se=0,oe=dt.length;Se<oe;++Se){wt=Ye(dt[Se]);try{St.add(wt)}catch{throw j.createError("setRanges(): Element within one of the specified Ranges could not be added to control selection (does it have layout?)")}}St.select(),At(X)}if(!It&&ge&&ot.areHostMethods(qt,["removeAllRanges","addRange"])){let X=function(dt,wt){Qe(dt.nativeSelection,wt),dt.refresh()};Te.removeAllRanges=function(){this.nativeSelection.removeAllRanges(),kt(this)},Te.addRange=Ht?function(dt,wt){if(Xe&&Nt&&this.docSelection.type==Dt)Zt(this,dt);else if(ae(wt)&&De)X(this,dt);else{var wt=yn?this.rangeCount:(this.removeAllRanges(),0),Bt=de(dt).cloneRange();try{this.nativeSelection.addRange(Bt)}catch{}this.rangeCount=this.nativeSelection.rangeCount,this.rangeCount==wt+1?(P.config.checkSelectionRanges&&(Bt=bn(this.nativeSelection,this.rangeCount-1))&&!ue(Bt,dt)&&(dt=new ht(Bt)),this._ranges[this.rangeCount-1]=dt,$e(this,dt,Tt(this.nativeSelection)),this.isCollapsed=K(this),be(this)):this.refresh()}}:function(dt,wt){ae(wt)&&De?X(this,dt):(this.nativeSelection.addRange(de(dt)),this.refresh())},Te.setRanges=function(dt){if(Xe&&Nt&&1<dt.length)yt(this,dt);else{this.removeAllRanges();for(var wt=0,Bt=dt.length;wt<Bt;++wt)this.addRange(dt[wt])}}}else{if(!(at(qt,"empty")&&at(me,"select")&&Xe&&It))return j.fail("No means of selecting a Range or TextRange was found"),!1;Te.removeAllRanges=function(){try{var X,dt;this.docSelection.empty(),this.docSelection.type!="None"&&(this.anchorNode?X=Ft(this.anchorNode):this.docSelection.type==Dt&&(dt=this.docSelection.createRange()).length&&(X=Ft(dt.item(0))),X&&(Qt(X).createTextRange().select(),this.docSelection.empty()))}catch{}kt(this)},Te.addRange=function(X){this.docSelection.type==Dt?Zt(this,X):(P.WrappedTextRange.rangeToTextRange(X).select(),this._ranges[0]=X,this.rangeCount=1,this.isCollapsed=this._ranges[0].collapsed,$e(this,X,!1),be(this))},Te.setRanges=function(X){this.removeAllRanges();var dt=X.length;1<dt?yt(this,X):dt&&this.addRange(X[0])}}if(Te.getRangeAt=function(X){if(X<0||X>=this.rangeCount)throw new lt("INDEX_SIZE_ERR");return this._ranges[X].cloneRange()},It)Ge=function(X){var dt;P.isSelectionValid(X.win)?dt=X.docSelection.createRange():(dt=Qt(X.win.document).createTextRange()).collapse(!0),X.docSelection.type==Dt?At(X):cn(dt)?We(X,dt):kt(X)};else if(at(qt,"getRangeAt")&&typeof qt.rangeCount==rt)Ge=function(X){if(Xe&&Nt&&X.docSelection.type==Dt)At(X);else if(X._ranges.length=X.rangeCount=X.nativeSelection.rangeCount,X.rangeCount){for(var dt=0,wt=X.rangeCount;dt<wt;++dt)X._ranges[dt]=new P.WrappedRange(X.nativeSelection.getRangeAt(dt));$e(X,X._ranges[X.rangeCount-1],Tt(X.nativeSelection)),X.isCollapsed=K(X),be(X)}else kt(X)};else{if(!ge||typeof qt.isCollapsed!="boolean"||typeof me.collapsed!="boolean"||!_t.implementsDomRange)return j.fail("No means of obtaining a Range or TextRange from the user's selection was found"),!1;Ge=function(X){var dt,wt=X.nativeSelection;wt.anchorNode?(wt=bn(wt,0),X._ranges=[wt],X.rangeCount=1,dt=(wt=X).nativeSelection,wt.anchorNode=dt.anchorNode,wt.anchorOffset=dt.anchorOffset,wt.focusNode=dt.focusNode,wt.focusOffset=dt.focusOffset,X.isCollapsed=K(X),be(X)):kt(X)}}Te.refresh=function(X){var dt=X?this._ranges.slice(0):null,wt=this.anchorNode,Bt=this.anchorOffset;if(Ge(this),X){var St=dt.length;if(St!=this._ranges.length||this.anchorNode!=wt||this.anchorOffset!=Bt)return!0;for(;St--;)if(!ue(dt[St],this._ranges[St]))return!0;return!1}};function zt(X,dt){var wt=X.getAllRanges();X.removeAllRanges();for(var Bt=0,St=wt.length;Bt<St;++Bt)ue(dt,wt[Bt])||X.addRange(wt[Bt]);X.rangeCount||kt(X)}var Tt;function Rt(X,dt){if(X.win.document!=Ft(dt))throw new lt("WRONG_DOCUMENT_ERR")}function Ut(X,dt){if(dt<0||dt>(T.isCharacterDataNode(X)?X:X.childNodes).length)throw new lt("INDEX_SIZE_ERR")}function Yt(X){return function(dt,wt){var Bt;this.rangeCount?(Bt=this.getRangeAt(0))["set"+(X?"Start":"End")](dt,wt):(Bt=P.createRange(this.win.document)).setStartAndEnd(dt,wt),this.setSingleRange(Bt,this.isBackward())}}function ie(X){var dt=[],wt=new bt(X.anchorNode,X.anchorOffset),Bt=new bt(X.focusNode,X.focusOffset),St=typeof X.getName=="function"?X.getName():"Selection";if(X.rangeCount!==void 0)for(var Se=0,oe=X.rangeCount;Se<oe;++Se)dt[Se]=q.inspect(X.getRangeAt(Se));return"["+St+"(Ranges: "+dt.join(", ")+")(anchor: "+wt.inspect()+", focus: "+Bt.inspect()+"]"}Te.removeRange=Xe&&Nt?function(X){if(this.docSelection.type==Dt){for(var dt=this.docSelection.createRange(),wt=Ye(X),Bt=Ft(dt.item(0)),St=Qt(Bt).createControlRange(),Se=!1,oe=0,ve=dt.length;oe<ve;++oe)dt.item(oe)!==wt||Se?St.add(dt.item(oe)):Se=!0;St.select(),At(this)}else zt(this,X)}:function(X){zt(this,X)},!It&&ge&&_t.implementsDomRange?(Tt=ce,Te.isBackward=function(){return Tt(this)}):Tt=Te.isBackward=function(){return!1},Te.isBackwards=Te.isBackward,Te.toString=function(){for(var X=[],dt=0,wt=this.rangeCount;dt<wt;++dt)X[dt]=""+this._ranges[dt];return X.join("")},Te.collapse=function(X,dt){Rt(this,X);var wt=P.createRange(X);wt.collapseToPoint(X,dt),this.setSingleRange(wt),this.isCollapsed=!0},Te.collapseToStart=function(){if(!this.rangeCount)throw new lt("INVALID_STATE_ERR");var X=this._ranges[0];this.collapse(X.startContainer,X.startOffset)},Te.collapseToEnd=function(){if(!this.rangeCount)throw new lt("INVALID_STATE_ERR");var X=this._ranges[this.rangeCount-1];this.collapse(X.endContainer,X.endOffset)},Te.selectAllChildren=function(X){Rt(this,X);var dt=P.createRange(X);dt.selectNodeContents(X),this.setSingleRange(dt)},_e?Te.setBaseAndExtent=function(X,dt,wt,Bt){this.nativeSelection.setBaseAndExtent(X,dt,wt,Bt),this.refresh()}:De&&(Te.setBaseAndExtent=function(X,dt,wt,Bt){Ut(X,dt),Ut(wt,Bt),Rt(this,X),Rt(this,wt);var St=P.createRange(node),Se=T.comparePoints(X,dt,wt,Bt)==-1;Se?St.setStartAndEnd(wt,Bt,X,dt):St.setStartAndEnd(X,dt,wt,Bt),this.setSingleRange(St,Se)}),Te.deleteFromDocument=function(){if(Xe&&Nt&&this.docSelection.type==Dt){for(var X,dt=this.docSelection.createRange();dt.length;)X=dt.item(0),dt.remove(X),T.removeNode(X);this.refresh()}else if(this.rangeCount){var wt=this.getAllRanges();if(wt.length){this.removeAllRanges();for(var Bt=0,St=wt.length;Bt<St;++Bt)wt[Bt].deleteContents();this.addRange(wt[St-1])}}},Te.eachRange=function(X,dt){for(var wt=0,Bt=this._ranges.length;wt<Bt;++wt)if(X(this.getRangeAt(wt)))return dt},Te.getAllRanges=function(){var X=[];return this.eachRange(function(dt){X.push(dt)}),X},Te.setSingleRange=function(X,dt){this.removeAllRanges(),this.addRange(X,dt)},Te.callMethodOnEachRange=function(X,dt){var wt=[];return this.eachRange(function(Bt){wt.push(Bt[X].apply(Bt,dt||[]))}),wt},Te.setStart=Yt(!0),Te.setEnd=Yt(!1),P.rangePrototype.select=function(X){Gt(this.getDocument()).setSingleRange(this,X)},Te.changeEachRange=function(X){var dt=[],wt=this.isBackward();this.eachRange(function(Bt){X(Bt),dt.push(Bt)}),this.removeAllRanges(),wt&&dt.length==1?this.addRange(dt[0],"backward"):this.setRanges(dt)},Te.containsNode=function(X,dt){return this.eachRange(function(wt){return wt.containsNode(X,dt)},!0)||!1},Te.getBookmark=function(X){return{backward:this.isBackward(),rangeBookmarks:this.callMethodOnEachRange("getBookmark",[X])}},Te.moveToBookmark=function(X){for(var dt,wt,Bt=[],St=0;dt=X.rangeBookmarks[St++];)(wt=P.createRange(this.win)).moveToBookmark(dt),Bt.push(wt);X.backward?this.setSingleRange(Bt[0],"backward"):this.setRanges(Bt)},Te.saveRanges=function(){return{backward:this.isBackward(),ranges:this.callMethodOnEachRange("cloneRange")}},Te.restoreRanges=function(X){this.removeAllRanges();for(var dt,wt=0;dt=X.ranges[wt];++wt)this.addRange(dt,X.backward&&wt==0)},Te.toHtml=function(){var X=[];return this.eachRange(function(dt){X.push(q.toHtml(dt))}),X.join("")},_t.implementsTextRange&&(Te.getNativeTextRange=function(){if(X=this.docSelection){var X=X.createRange();if(cn(X))return X;throw j.createError("getNativeTextRange: selection is a control selection")}if(0<this.rangeCount)return P.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw j.createError("getNativeTextRange: selection contains no range")}),Te.getName=function(){return"WrappedSelection"},Te.inspect=function(){return ie(this)},Te.detach=function(){je(this.win,"delete"),Wt(this)},xt.detachAll=function(){je(null,"deleteAll")},xt.inspect=ie,xt.isDirectionBackward=ae,P.Selection=xt,P.selectionPrototype=Te,P.addShimListener(function(X){X.getSelection===void 0&&(X.getSelection=function(){return Gt(X)}),X=null})});function F(P){z||(z=!0,!k.initialized&&k.config.autoInitialize&&E())}var z=!1;return M&&(document.readyState=="complete"?F():(f(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",F,!1),I(window,"load",F))),k},s=this,a!==void 0&&typeof t=="object"?a.exports=e():s.rangy=e()},{}],482:[function(o,a,t){var e,s;e=function(i){return i.createModule("SaveRestore",["WrappedSelection"],function(r,l){var n=r.dom,c=n.removeNode,d=r.Selection.isDirectionBackward,u="\uFEFF";function f(w,O){return(O||document).getElementById(w)}function g(M,O){var I="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),L=n.getDocument(M.startContainer),M=M.cloneRange();return M.collapse(O),(O=L.createElement("span")).id=I,O.style.lineHeight="0",O.style.display="none",O.className="rangySelectionBoundary",O.appendChild(L.createTextNode(u)),M.insertNode(O),O}function m(w,O,I,L){I=f(I,w),I?(O[L?"setStartBefore":"setEndBefore"](I),c(I)):l.warn("Marker element has been removed. Cannot restore selection.")}function h(w,O){return O.compareBoundaryPoints(w.START_TO_START,w)}function v(w,A){var I,L=r.DomRange.getRangeDocument(w),M=w.toString(),A=d(A);return w.collapsed?{document:L,markerId:(I=g(w,!1)).id,collapsed:!0}:(I=g(w,!1),{document:L,startMarkerId:g(w,!0).id,endMarkerId:I.id,collapsed:!1,backward:A,toString:function(){return"original text: '"+M+"', new text: '"+w.toString()+"'"}})}function b(w,O){var I,L,M=w.document,A=(O===void 0&&(O=!0),r.createRange(M));return w.collapsed?(I=f(w.markerId,M))?(I.style.display="inline",(L=I.previousSibling)&&L.nodeType==3?(c(I),A.collapseToPoint(L,L.length)):(A.collapseBefore(I),c(I))):l.warn("Marker element has been removed. Cannot restore selection."):(m(M,A,w.startMarkerId,!0),m(M,A,w.endMarkerId,!1)),O&&A.normalizeBoundaries(),A}function _(w,O){var I,L,M=[],A=d(O);(w=w.slice(0)).sort(h);for(var k=0,J=w.length;k<J;++k)M[k]=v(w[k],A);for(k=J-1;0<=k;--k)I=w[k],L=r.DomRange.getRangeDocument(I),I.collapsed?I.collapseAfter(f(M[k].markerId,L)):(I.setEndBefore(f(M[k].endMarkerId,L)),I.setStartAfter(f(M[k].startMarkerId,L)));return M}function R(w){for(var O=[],I=w.length-1;0<=I;I--)O[I]=b(w[I],!0);return O}function x(w,O){O=f(O,w),O&&c(O)}r.util.extend(r,{saveRange:v,restoreRange:b,saveRanges:_,restoreRanges:R,saveSelection:function(w){if(!r.isSelectionValid(w))return l.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var O=r.getSelection(w),I=O.getAllRanges(),L=I.length==1&&O.isBackward(),M=_(I,L);return L?O.setSingleRange(I[0],L):O.setRanges(I),{win:w,rangeInfos:M,restored:!1}},restoreSelection:function(w,O){var I,L,M;w.restored||(I=w.rangeInfos,L=r.getSelection(w.win),M=R(I),I.length==1&&O&&r.features.selectionHasExtend&&I[0].backward?(L.removeAllRanges(),L.addRange(M[0],!0)):L.setRanges(M),w.restored=!0)},removeMarkerElement:x,removeMarkers:function(w){for(var O,I=w.rangeInfos,L=0,M=I.length;L<M;++L)(O=I[L]).collapsed?x(w.doc,O.markerId):(x(w.doc,O.startMarkerId),x(w.doc,O.endMarkerId))}})}),i},s=this,a!==void 0&&typeof t=="object"?a.exports=e(o("rangy")):e(s.rangy)},{rangy:481}],483:[function(e,a,t){var e=e("functions-have-names").functionsHaveConfigurableNames(),s=Object,i=TypeError;a.exports=function(){if(this!=null&&this!==s(this))throw new i("RegExp.prototype.flags getter called on non-object");var r="";return this.hasIndices&&(r+="d"),this.global&&(r+="g"),this.ignoreCase&&(r+="i"),this.multiline&&(r+="m"),this.dotAll&&(r+="s"),this.unicode&&(r+="u"),this.sticky&&(r+="y"),r},e&&Object.defineProperty&&Object.defineProperty(a.exports,"name",{value:"get flags"})},{"functions-have-names":319}],484:[function(r,a,t){var e=r("define-properties"),l=r("call-bind"),s=r("./implementation"),i=r("./polyfill"),r=r("./shim"),l=l(i());e(l,{getPolyfill:i,implementation:s,shim:r}),a.exports=l},{"./implementation":483,"./polyfill":485,"./shim":486,"call-bind":304,"define-properties":314}],485:[function(o,a,t){var e=o("./implementation"),s=o("define-properties").supportsDescriptors,i=Object.getOwnPropertyDescriptor;a.exports=function(){if(s&&/a/gim.flags==="gim"){var r=i(RegExp.prototype,"flags");if(r&&typeof r.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var l="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){l+="d"}}),Object.defineProperty(n,"sticky",{get:function(){l+="y"}}),l==="dy")return r.get}}return e}},{"./implementation":483,"define-properties":314}],486:[function(o,a,t){var e=o("define-properties").supportsDescriptors,s=o("./polyfill"),i=Object.getOwnPropertyDescriptor,r=Object.defineProperty,l=TypeError,n=Object.getPrototypeOf,c=/a/;a.exports=function(){if(!e||!n)throw new l("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var d=s(),u=n(c),f=i(u,"flags");return f&&f.get===d||r(u,"flags",{configurable:!0,enumerable:!1,get:d}),d}},{"./polyfill":485,"define-properties":314}]},{},[211])(211)});const vb="",qv=Bh({namespace:"MyEditor",theme:{}});function Wv({ckey:o}){const a=an.useRef(null);return an.useEffect(()=>{const t=()=>{if(window.Codox){const e=new window.Codox,s={docId:"mydoc",app:"text",editor:a.current,apiKey:o,user:{name:`Tarun_${Math.floor(Math.random()*10)}`}};e.start(s)}else console.error("Codox library is not loaded")};setTimeout(()=>{t()},4e3)},[]),an.useEffect(()=>{const t=document.getElementById("editor");qv.setRootElement(t)},[]),ze.jsx("div",{className:"aa",children:ze.jsx("textarea",{id:"editor",rows:10,column:10,ref:a,children:ze.jsx("div",{children:"sdsd"})})})}const Vv={};function $v(o){console.error(o)}function Jv(){return ze.jsx("div",{className:"divider-horizontal"})}function Kv({ckey:o,isCollab:a}){const{pageMarginValue:t}=Nu(),e={namespace:"MyEditor",theme:Vv,onError:$v};function s(){return ze.jsx("div",{className:"editor-placeholder",children:"Enter some rich text..."})}return ze.jsxs(N0,{initialConfig:e,children:[ze.jsx("div",{className:"editor-container",children:ze.jsx(Yy,{})}),ze.jsxs("div",{className:"editor-container",children:[ze.jsx(Jv,{}),ze.jsxs("div",{className:"editor-inner",children:[ze.jsx(Iy,{contentEditable:a==="yes"?ze.jsx(Wv,{ckey:o}):ze.jsx(Z0,{style:{margin:`${t}`},className:"editor-input"}),placeholder:ze.jsx(s,{}),ErrorBoundary:Dy}),ze.jsx(cy,{}),ze.jsx(M0,{})]})]})]})}os.Editor=Kv,Object.defineProperty(os,Symbol.toStringTag,{value:"Module"})});
|
|
58
151
|
//# sourceMappingURL=index.umd.js.map
|