PageSourceSearch

https://trinijunglejuice.com/_next/static/chunks/8189.7ae4cde40408c3e3.js

js trinijunglejuice.com collected 2026-10-02 09:56:16 UTC 45,898 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8189],{12758:(t,e,r)=>{t.exports=r(19298)()},19298:(t,e,r)=>{"use strict";var o=r(53341);function n(){}function i(){}i.resetWarningCache=n,t.exports=function(){function t(t,e,r,n,i,a){if(a!==o){var s=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 s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:n};return r.PropTypes=r,r}},38922:(t,e,r)=>{"use strict";var o=r(22455);e.A=void 0;var n=o(r(33084)),i=r(95155);e.A=(0,n.default)((0,i.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share")},40038:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ContextWatchdog:()=>e$,EditorWatchdog:()=>eB,Watchdog:()=>o});class o{constructor(t){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof t.crashNumberLimit?t.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof t.minimumNonErrorTimePeriod?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=t=>{let e="error"in t?t.error:t.reason;e instanceof Error&&this._handleError(e,t)},this._listeners={},!this._restart)throw Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}off(t,e){this._listeners[t]=this._listeners[t].filter(t=>t!==e)}_fire(t,...e){for(let r of this._listeners[t]||[])r.apply(this,[null,...e])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e instanceof ErrorEvent?e.filename:void 0,lineno:e instanceof ErrorEvent?e.lineno:void 0,colno:e instanceof ErrorEvent?e.colno:void 0,date:this._now()});let r=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:r}),r?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(t){return t.is&&t.is("CKEditorError")&&void 0!==t.context&&null!==t.context&&"ready"===this.state&&this._isErrorComingFromThisItem(t)}_shouldRestart(){return!!(this.crashes.length<=this._crashNumberLimit)||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function n(t,e=new Set){let r=[t],o=new Set,i=0;for(;r.length>i;){let t=r[i++];if(!(o.has(t)||!function(t){let e=Object.prototype.toString.call(t),r=typeof t;return!("number"===r||"boolean"===r||"string"===r||"symbol"===r||"function"===r||"[object Date]"===e||"[object RegExp]"===e||"[object Module]"===e||null==t||t._watchdogExcluded||t instanceof EventTarget||t instanceof Event)}(t)||e.has(t)))if(o.add(t),Symbol.iterator in t)try{for(let e of t)r.push(e)}catch(t){}else for(let e in t)"defaultValue"!==e&&r.push(t[e])}return o}function i(t,e,r=new Set){var o;if(t===e&&"object"==typeof(o=t)&&null!==o)return!0;let a=n(t,r),s=n(e,r);for(let t of a)if(s.has(t))return!0;return!1}let a=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var s="object"==typeof global&&global&&global.Object===Object&&global,c="object"==typeof self&&self&&self.Object===Object&&self,l=s||c||Function("return this")();let u=function(){return l.Date.now()};var h=/\s/;let d=function(t){for(var e=t.length;e--&&h.test(t.charAt(e)););return e};var f=/^\s+/,p=l.Symbol,m=Object.prototype,_=m.hasOwnProperty,g=m.toString,y=p?p.toStringTag:void 0;let b=function(t){var e=_.call(t,y),r=t[y];try{t[y]=void 0;var o=!0}catch(t){}var n=g.call(t);return o&&(e?t[y]=r:delete t[y]),n};var v=Object.prototype.toString,E=p?p.toStringTag:void 0;
1let w=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":E&&E in Object(t)?b(t):v.call(t)},j=function(t){return null!=t&&"object"==typeof t};var x=0/0,C=/^[-+]0x[0-9a-f]+$/i,O=/^0b[01]+$/i,S=/^0o[0-7]+$/i,R=parseInt;let A=function(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||j(e)&&"[object Symbol]"==w(e))return x;if(a(t)){var e,r,o="function"==typeof t.valueOf?t.valueOf():t;t=a(o)?o+"":o}if("string"!=typeof t)return 0===t?t:+t;t=(r=t)?r.slice(0,d(r)+1).replace(f,""):r;var n=O.test(t);return n||S.test(t)?R(t.slice(2),n?2:8):C.test(t)?x:+t};var P=Math.max,k=Math.min;let D=function(t,e,r){var o,n,i,s,c,l,h=0,d=!1,f=!1,p=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var r=o,i=n;return o=n=void 0,h=e,s=t.apply(i,r)}function _(t){var r=t-l,o=t-h;return void 0===l||r>=e||r<0||f&&o>=i}function g(){var t,r,o,n=u();if(_(n))return y(n);c=setTimeout(g,(t=n-l,r=n-h,o=e-t,f?k(o,i-r):o))}function y(t){return(c=void 0,p&&o)?m(t):(o=n=void 0,s)}function b(){var t,r=u(),i=_(r);if(o=arguments,n=this,l=r,i){if(void 0===c)return h=t=l,c=setTimeout(g,e),d?m(t):s;if(f)return clearTimeout(c),c=setTimeout(g,e),m(l)}return void 0===c&&(c=setTimeout(g,e)),s}return e=A(e)||0,a(r)&&(d=!!r.leading,i=(f="maxWait"in r)?P(A(r.maxWait)||0,e):i,p="trailing"in r?!!r.trailing:p),b.cancel=function(){void 0!==c&&clearTimeout(c),h=0,o=l=n=c=void 0},b.flush=function(){return void 0===c?s:y(u())},b},T=function(t,e,r){var o=!0,n=!0;if("function"!=typeof t)throw TypeError("Expected a function");return a(r)&&(o="leading"in r?!!r.leading:o,n="trailing"in r?!!r.trailing:n),D(t,e,{leading:o,maxWait:e,trailing:n})},F=function(t,e){return function(r){return t(e(r))}};var W=F(Object.getPrototypeOf,Object),N=Object.prototype,M=Function.prototype.toString,I=N.hasOwnProperty,z=M.call(Object);let L=function(t){if(!j(t)||"[object Object]"!=w(t))return!1;var e=W(t);if(null===e)return!0;var r=I.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&M.call(r)==z},U=function(t){return j(t)&&1===t.nodeType&&!L(t)},q=function(t,e){return t===e||t!=t&&e!=e},V=function(t,e){for(var r=t.length;r--;)if(q(t[r][0],e))return r;return -1};var B=Array.prototype.splice;function H(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}H.prototype.clear=function(){this.__data__=[],this.size=0},H.prototype.delete=function(t){var e=this.__data__,r=V(e,t);return!(r<0)&&(r==e.length-1?e.pop():B.call(e,r,1),--this.size,!0)},H.prototype.get=function(t){var e=this.__data__,r=V(e,t);return r<0?void 0:e[r][1]},H.prototype.has=function(t){return V(this.__data__,t)>-1},H.prototype.set=function(t,e){var r=this.__data__,o=V(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};let J=function(t){if(!a(t))return!1;var e=w(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};
1var $=l["__core-js_shared__"],K=function(){var t=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Q=Function.prototype.toString;let G=function(t){if(null!=t){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Y=/^\[object .+?Constructor\]$/,X=Object.prototype,Z=Function.prototype.toString,tt=X.hasOwnProperty,te=RegExp("^"+Z.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let tr=function(t){return!!a(t)&&(!K||!(K in t))&&(J(t)?te:Y).test(G(t))},to=function(t,e){var r=null==t?void 0:t[e];return tr(r)?r:void 0};var tn=to(l,"Map"),ti=to(Object,"create"),ta=Object.prototype.hasOwnProperty,ts=Object.prototype.hasOwnProperty;function tc(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}tc.prototype.clear=function(){this.__data__=ti?ti(null):{},this.size=0},tc.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e},tc.prototype.get=function(t){var e=this.__data__;if(ti){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return ta.call(e,t)?e[t]:void 0},tc.prototype.has=function(t){var e=this.__data__;return ti?void 0!==e[t]:ts.call(e,t)},tc.prototype.set=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=ti&&void 0===e?"__lodash_hash_undefined__":e,this};let tl=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},tu=function(t,e){var r=t.__data__;return tl(e)?r["string"==typeof e?"string":"hash"]:r.map};function th(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function td(t){var e=this.__data__=new H(t);this.size=e.size}th.prototype.clear=function(){this.size=0,this.__data__={hash:new tc,map:new(tn||H),string:new tc}},th.prototype.delete=function(t){var e=tu(this,t).delete(t);return this.size-=!!e,e},th.prototype.get=function(t){return tu(this,t).get(t)},th.prototype.has=function(t){return tu(this,t).has(t)},th.prototype.set=function(t,e){var r=tu(this,t),o=r.size;return r.set(t,e),this.size+=+(r.size!=o),this},td.prototype.clear=function(){this.__data__=new H,this.size=0},td.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},td.prototype.get=function(t){return this.__data__.get(t)},td.prototype.has=function(t){return this.__data__.has(t)},td.prototype.set=function(t,e){var r=this.__data__;if(r instanceof H){var o=r.__data__;if(!tn||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new th(o)}return r.set(t,e),this.size=r.size,this};let tf=function(t,e){for(var r=-1,o=null==t?0:t.length;++r<o&&!1!==e(t[r],r,t););return t};var tp=function(){try{var t=to(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();let tm=function(t,e,r){"__proto__"==e&&tp?tp(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var t_=Object.prototype.hasOwnProperty;let tg=function(t,e,r){var o=t[e];t_.call(t,e)&&q(o,r)&&(void 0!==r||e in t)||tm(t,e,r)},ty=function(t,e,r,o){var n=!r;r||(r={});for(var i=-1,a=e.length;++i<a;){var s=e[i],c=o?o(r[s],t[s],s,r,t):void 0;void 0===c&&(c=t[s]),n?tm(r,s,c):tg(r,s,c)}return r},tb=function(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o},tv=function(t){return j(t)&&"[object Arguments]"==w(t)};var tE=Object.prototype,tw=tE.hasOwnProperty,tj=tE.propertyIsEnumerable,tx=tv(function(){return arguments}())?tv:function(t){return j(t)&&tw.call(t,"callee")&&!tj.call(t,"callee")},tC=Array.isArray,tO="object"==typeof exports&&exports&&!exports.nodeType&&exports,tS=tO&&"object"==typeof module&&module&&!module.nodeType&&module,tR=tS&&tS.exports===tO?l.Buffer:void 0;let tA=(tR?tR.isBuffer:void 0)||function(){return!1};var tP=/^(?:0|[1-9]\d*)$/;let tk=function(t,e){var r=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==r||"symbol"!=r&&tP.test(t))&&t>-1&&t%1==0&&t<e},tD=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff};var tT={};
1tT["[object Float32Array]"]=tT["[object Float64Array]"]=tT["[object Int8Array]"]=tT["[object Int16Array]"]=tT["[object Int32Array]"]=tT["[object Uint8Array]"]=tT["[object Uint8ClampedArray]"]=tT["[object Uint16Array]"]=tT["[object Uint32Array]"]=!0,tT["[object Arguments]"]=tT["[object Array]"]=tT["[object ArrayBuffer]"]=tT["[object Boolean]"]=tT["[object DataView]"]=tT["[object Date]"]=tT["[object Error]"]=tT["[object Function]"]=tT["[object Map]"]=tT["[object Number]"]=tT["[object Object]"]=tT["[object RegExp]"]=tT["[object Set]"]=tT["[object String]"]=tT["[object WeakMap]"]=!1;let tF=function(t){return function(e){return t(e)}};var tW="object"==typeof exports&&exports&&!exports.nodeType&&exports,tN=tW&&"object"==typeof module&&module&&!module.nodeType&&module,tM=tN&&tN.exports===tW&&s.process,tI=function(){try{var t=tN&&tN.require&&tN.require("util").types;if(t)return t;return tM&&tM.binding&&tM.binding("util")}catch(t){}}(),tz=tI&&tI.isTypedArray,tL=tz?tF(tz):function(t){return j(t)&&tD(t.length)&&!!tT[w(t)]},tU=Object.prototype.hasOwnProperty;let tq=function(t,e){var r=tC(t),o=!r&&tx(t),n=!r&&!o&&tA(t),i=!r&&!o&&!n&&tL(t),a=r||o||n||i,s=a?tb(t.length,String):[],c=s.length;for(var l in t)(e||tU.call(t,l))&&!(a&&("length"==l||n&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||tk(l,c)))&&s.push(l);return s};var tV=Object.prototype;let tB=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||tV)};var tH=F(Object.keys,Object),tJ=Object.prototype.hasOwnProperty;let t$=function(t){if(!tB(t))return tH(t);var e=[];for(var r in Object(t))tJ.call(t,r)&&"constructor"!=r&&e.push(r);return e},tK=function(t){return null!=t&&tD(t.length)&&!J(t)},tQ=function(t){return tK(t)?tq(t):t$(t)},tG=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e};var tY=Object.prototype.hasOwnProperty;let tX=function(t){if(!a(t))return tG(t);var e=tB(t),r=[];for(var o in t)"constructor"==o&&(e||!tY.call(t,o))||r.push(o);return r},tZ=function(t){return tK(t)?tq(t,!0):tX(t)};var t0="object"==typeof exports&&exports&&!exports.nodeType&&exports,t1=t0&&"object"==typeof module&&module&&!module.nodeType&&module,t5=t1&&t1.exports===t0?l.Buffer:void 0,t2=t5?t5.allocUnsafe:void 0;let t3=function(t,e){if(e)return t.slice();var r=t.length,o=t2?t2(r):new t.constructor(r);return t.copy(o),o},t4=function(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e},t9=function(t,e){for(var r=-1,o=null==t?0:t.length,n=0,i=[];++r<o;){var a=t[r];e(a,r,t)&&(i[n++]=a)}return i},t8=function(){return[]};var t6=Object.prototype.propertyIsEnumerable,t7=Object.getOwnPropertySymbols,et=t7?function(t){return null==t?[]:t9(t7(t=Object(t)),function(e){return t6.call(t,e)})}:t8;let ee=function(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t};var er=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)ee(e,et(t)),t=W(t);return e}:t8;let eo=function(t,e,r){var o=e(t);return tC(t)?o:ee(o,r(t))},en=function(t){return eo(t,tQ,et)},ei=function(t){return eo(t,tZ,er)};var ea=to(l,"DataView"),es=to(l,"Promise"),ec=to(l,"Set"),el=to(l,"WeakMap"),eu="[object Map]",eh="[object Promise]",ed="[object Set]",ef="[object WeakMap]",ep="[object DataView]",em=G(ea),e_=G(tn),eg=G(es),ey=G(ec),eb=G(el),ev=w;(ea&&ev(new ea(new ArrayBuffer(1)))!=ep||tn&&ev(new tn)!=eu||es&&ev(es.resolve())!=eh||ec&&ev(new ec)!=ed||el&&ev(new el)!=ef)&&(ev=function(t){var e=w(t),r="[object Object]"==e?t.constructor:void 0,o=r?G(r):"";if(o)switch(o){case em:return ep;case e_:return eu;case eg:return eh;case ey:return ed;case eb:return ef}return e});let eE=ev;var ew=Object.prototype.hasOwnProperty;let ej=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&ew.call(t,"index")&&(r.index=t.index,r.input=t.input),r};var ex=l.Uint8Array;let eC=function(t){var e=new t.constructor(t.byteLength);return new ex(e).set(new ex(t)),e},eO=function(t,e){var r=e?eC(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)};var eS=/\w*$/;let eR=function(t){var e=new t.constructor(t.source,eS.exec(t));return e.lastIndex=t.lastIndex,e};var eA=p?p.prototype:void 0,eP=eA?eA.valueOf:void 0;let ek=function(t,e){var r=e?eC(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)},eD=function(t,e,r){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return eC(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return eO(t,r);
1case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ek(t,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return eR(t);case"[object Symbol]":return eP?Object(eP.call(t)):{}}};var eT=Object.create,eF=function(){function t(){}return function(e){if(!a(e))return{};if(eT)return eT(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),eW=tI&&tI.isMap,eN=eW?tF(eW):function(t){return j(t)&&"[object Map]"==eE(t)},eM=tI&&tI.isSet,eI=eM?tF(eM):function(t){return j(t)&&"[object Set]"==eE(t)},ez="[object Arguments]",eL="[object Function]",eU="[object Object]",eq={};eq[ez]=eq["[object Array]"]=eq["[object ArrayBuffer]"]=eq["[object DataView]"]=eq["[object Boolean]"]=eq["[object Date]"]=eq["[object Float32Array]"]=eq["[object Float64Array]"]=eq["[object Int8Array]"]=eq["[object Int16Array]"]=eq["[object Int32Array]"]=eq["[object Map]"]=eq["[object Number]"]=eq[eU]=eq["[object RegExp]"]=eq["[object Set]"]=eq["[object String]"]=eq["[object Symbol]"]=eq["[object Uint8Array]"]=eq["[object Uint8ClampedArray]"]=eq["[object Uint16Array]"]=eq["[object Uint32Array]"]=!0,eq["[object Error]"]=eq[eL]=eq["[object WeakMap]"]=!1;let eV=function t(e,r,o,n,i,s){var c,l=1&r,u=2&r,h=4&r;
1if(o&&(c=i?o(e,n,i,s):o(e)),void 0!==c)return c;if(!a(e))return e;var d=tC(e);if(d){if(c=ej(e),!l)return t4(e,c)}else{var f,p,m,_,g,y=eE(e),b=y==eL||"[object GeneratorFunction]"==y;if(tA(e))return t3(e,l);if(y==eU||y==ez||b&&!i){if(c=u||b||"function"!=typeof(f=e).constructor||tB(f)?{}:eF(W(f)),!l)return u?(m=(p=c)&&ty(e,tZ(e),p),ty(e,er(e),m)):(g=(_=c)&&ty(e,tQ(e),_),ty(e,et(e),g))}else{if(!eq[y])return i?e:{};c=eD(e,y,l)}}s||(s=new td);var v=s.get(e);if(v)return v;s.set(e,c),eI(e)?e.forEach(function(n){c.add(t(n,r,o,n,e,s))}):eN(e)&&e.forEach(function(n,i){c.set(i,t(n,r,o,i,e,s))});var E=h?u?ei:en:u?tZ:tQ,w=d?void 0:E(e);return tf(w||e,function(n,i){w&&(n=e[i=n]),tg(c,i,t(n,r,o,i,e,s))}),c};class eB extends o{constructor(t,e={}){super(e),this._editor=null,this._lifecyclePromise=null,this._initUsingData=!0,this._editables={},this._throttledSave=T(this._save.bind(this),"number"==typeof e.saveInterval?e.saveInterval:5e3),t&&(this._creator=(e,r)=>t.create(e,r)),this._destructor=t=>t.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(t=>{console.error("An error happened during the editor destroying.",t)}).then(()=>{let t={},e=[],r=this._config.rootsAttributes||{},o={};for(let[n,i]of Object.entries(this._data.roots))i.isLoaded?(t[n]="",o[n]=r[n]||{}):e.push(n);let n={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:e,rootsAttributes:o,_watchdogInitialData:this._data};return(delete n.initialData,n.extraPlugins.push(eH),this._initUsingData)?this.create(t,n,n.context):U(this._elementOrData)?this.create(this._elementOrData,n,n.context):this.create(this._editables,n,n.context)}).then(()=>{this._fire("restart")})}create(t=this._elementOrData,e=this._config,r){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then(()=>(super._startErrorHandling(),this._elementOrData=t,this._initUsingData="string"==typeof t||Object.keys(t).length>0&&"string"==typeof Object.values(t)[0],this._config=this._cloneEditorConfiguration(e)||{},this._config.context=r,this._creator(t,this._config))).then(t=>{this._editor=t,t.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=t.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")}).finally(()=>{this._lifecyclePromise=null}),this._lifecyclePromise}destroy(){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())).finally(()=>{this._lifecyclePromise=null}),this._lifecyclePromise}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();let t=this._editor;return this._editor=null,t.model.document.off("change:data",this._throttledSave),this._destructor(t)})}_save(){let t=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=t}catch(t){console.error(t,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(t){this._excludedProps=t}_getData(){let t=this._editor,e=t.model.document.roots.filter(t=>t.isAttached()&&"$graveyard"!=t.rootName),{plugins:r}=t,o=r.has("CommentsRepository")&&r.get("CommentsRepository"),n=r.has("TrackChanges")&&r.get("TrackChanges"),i={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};for(let r of(e.forEach(t=>{i.roots[t.rootName]={content:JSON.stringify(Array.from(t.getChildren())),attributes:JSON.stringify(Array.from(t.getAttributes())),isLoaded:t._isLoaded}}),t.model.markers))r._affectsData&&(i.markers[r.name]={rangeJSON:r.getRange().toJSON(),usingOperation:r._managedUsingOperations,affectsData:r._affectsData});return o&&(i.commentThreads=JSON.stringify(o.getCommentThreads({toJSON:!0,skipNotAttached:!0}
1))),n&&(i.suggestions=JSON.stringify(n.getSuggestions({toJSON:!0,skipNotAttached:!0}))),i}_getEditables(){let t={};for(let e of this.editor.model.document.getRootNames()){let r=this.editor.ui.getEditableElement(e);r&&(t[e]=r)}return t}_isErrorComingFromThisItem(t){return i(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){var e;return eV(t,5,e="function"==typeof(e=(t,e)=>{if(U(t)||"context"===e)return t})?e:void 0)}}class eH{constructor(t){this.editor=t,this._data=t.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",t=>{t.stop(),this.editor.model.enqueueChange({isUndoable:!1},t=>{this._restoreCollaborationData(),this._restoreEditorData(t)}),this.editor.data.fire("ready")},{priority:999})}_createNode(t,e){if(!("name"in e))return t.createText(e.data,e.attributes);{let r=t.createElement(e.name,e.attributes);if(e.children)for(let o of e.children)r._appendChild(this._createNode(t,o));return r}}_restoreEditorData(t){let e=this.editor;Object.entries(this._data.roots).forEach(([r,{content:o,attributes:n}])=>{let i=JSON.parse(o),a=JSON.parse(n),s=e.model.document.getRoot(r);for(let[e,r]of a)t.setAttribute(e,r,s);for(let e of i){let r=this._createNode(t,e);t.insert(r,s,"end")}}),Object.entries(this._data.markers).forEach(([r,o])=>{let{document:n}=e.model,{rangeJSON:{start:i,end:a},...s}=o,c=n.getRoot(i.root),l=t.createPositionFromPath(c,i.path,i.stickiness),u=t.createPositionFromPath(c,a.path,a.stickiness),h=t.createRange(l,u);t.addMarker(r,{range:h,...s})})}_restoreCollaborationData(){let t=JSON.parse(this._data.commentThreads),e=JSON.parse(this._data.suggestions);t.forEach(t=>{let e=this.editor.config.get("collaboration.channelId"),r=this.editor.plugins.get("CommentsRepository");r.hasCommentThread(t.threadId)&&r.getCommentThread(t.threadId).remove(),r.addCommentThread({channelId:e,...t})}),e.forEach(t=>{let e=this.editor.plugins.get("TrackChangesEditing");e.hasSuggestion(t.id)?e.getSuggestion(t.id).attributes=t.attributes:e.addSuggestionData(t)})}}let eJ=Symbol("MainQueueId");class e$ extends o{constructor(t,e={}){super(e),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new eK,this._watchdogConfig=e,this._creator=e=>t.create(e),this._destructor=t=>t.destroy(),this._actionQueues.onEmpty(()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))})}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}get context(){return this._context}create(t={}){return this._actionQueues.enqueue(eJ,()=>(this._contextConfig=t,this._create()))}getItem(t){return this._getWatchdog(t)._item}getItemState(t){return this._getWatchdog(t).state}add(t){return Promise.all(eQ(t).map(t=>this._actionQueues.enqueue(t.id,()=>{let e;if("destroyed"===this.state)throw Error("Cannot add items to destroyed watchdog.");if(!this._context)throw Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");if(this._watchdogs.has(t.id))throw Error(`Item with the given id is already added: '${t.id}'.`);if("editor"===t.type)return(e=new eB(null,this._watchdogConfig)).setCreator(t.creator),e._setExcludedProperties(this._contextProps),t.destructor&&e.setDestructor(t.destructor),this._watchdogs.set(t.id,e),e.on("error",(r,{error:o,causesRestart:n})=>{this._fire("itemError",{itemId:t.id,error:o}),n&&this._actionQueues.enqueue(t.id,()=>new Promise(r=>{let o=()=>{e.off("restart",o),this._fire("itemRestart",{itemId:t.id}),r()};e.on("restart",o)}))}),e.create(t.sourceElementOrData,t.config,this._context);throw Error(`Not supported item type: '${t.type}'.`)})))}remove(t){return Promise.all(eQ(t).map(t=>this._actionQueues.enqueue(t,()=>{let e=this._getWatchdog(t);return this._watchdogs.delete(t),e.destroy()})))}destroy(){return this._actionQueues.enqueue(eJ,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(eJ,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(t=>{console.error("An error happened during destroying the context or items.",t)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(t=>(this._context=t,this._contextProps=n(this._context),Promise.all(Array.from(this._watchdogs.values()).map(t=>(t._setExcludedProperties(this._contextProps),t.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();let t=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(t=>t.destroy())).then(()=>this._destructor(t))})}_getWatchdog(t){let e=this._watchdogs.get(t);if(!e)throw Error(`Item with the given id was not registered: ${t}.`);return e}_isErrorComingFromThisItem(t){for(let e of this._watchdogs.values())if(e._isErrorComingFromThisItem(t))return!1;return i(this._context,t.context)}}class eK{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t,e){let r=t===eJ;this._activeActions++,this._queues.get(t)||this._queues.set(t,Promise.resolve());let o=(r?Promise.all(this._queues.values()):Promise.all([this._queues.get(eJ),this._queues.get(t)])).then(e),n=o.catch(()=>{});return this._queues.set(t,n),o.finally(()=>{this._activeActions--,this._queues.get(t)===n&&0===this._activeActions&&this._onEmptyCallbacks.forEach(t=>t())})}}function eQ(t){return Array.isArray(t)?t:[t]}},53341:t=>{"use strict";
1t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},95087:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var o=r(12115),n=r(45476),i=r(1909);let a={auto:!1,ref:null},s=t=>({...a,...t}),c=o.createContext(null),l=(0,n.Tz)("useFullscreen","FullscreenContext",c);function u({fullscreen:t,on:e,children:r}){let{auto:a,ref:l}=s(t),u=o.useRef(null),[h,d]=o.useState(),[f,p]=o.useState(!1),m=o.useRef(!1),{getOwnerDocument:_}=(0,n.uG)();(0,n.Nf)(()=>{var t,e,r,o;let n=_();d(!(null!=(o=null!=(r=null!=(e=null!=(t=n.fullscreenEnabled)?t:n.webkitFullscreenEnabled)?e:n.mozFullScreenEnabled)?r:n.msFullscreenEnabled)&&o))},[_]);let g=o.useCallback(()=>{var t;let e=_(),r=e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement;return(null==(t=null==r?void 0:r.shadowRoot)?void 0:t.fullscreenElement)||r},[_]),y=o.useCallback(()=>{let t=u.current;try{t.requestFullscreen?t.requestFullscreen().catch(()=>{}):t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()}catch(t){}},[]),b=o.useCallback(()=>{if(!g())return;let t=_();try{t.exitFullscreen?t.exitFullscreen().catch(()=>{}):t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen()}catch(t){}},[g,_]);o.useEffect(()=>{let t=_(),e=()=>{p(g()===u.current)};return(0,n.tP)(...["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].map(r=>(t.addEventListener(r,e),()=>t.removeEventListener(r,e))))},[g,_]);let v=(0,n.DK)(()=>{var t;return null==(t=e.enterFullscreen)?void 0:t.call(e)}),E=(0,n.DK)(()=>{var t;return null==(t=e.exitFullscreen)?void 0:t.call(e)});o.useEffect(()=>{f&&(m.current=!0),m.current&&(f?v:E)()},[f,v,E]);let w=(0,n.DK)(()=>{var t;return null==(t=a?y:null)||t(),b});o.useEffect(w,[w]);let j=o.useMemo(()=>({fullscreen:f,disabled:h,enter:y,exit:b}),[f,h,y,b]);return o.useImperativeHandle(l,()=>j,[j]),o.createElement("div",{ref:u,className:(0,n.$z)((0,n.oF)(i.Qe),(0,n.oF)(i.CC))},o.createElement(c.Provider,{value:j},r))}let h=(0,n.wt)("EnterFullscreen",o.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})),d=(0,n.wt)("ExitFullscreen",o.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}));function f(){var t;let{fullscreen:e,disabled:r,enter:i,exit:a}=l(),{render:s}=(0,n.D$)();return r?null:s.buttonFullscreen?o.createElement(o.Fragment,null,null==(t=s.buttonFullscreen)?void 0:t.call(s,{fullscreen:e,disabled:r,enter:i,exit:a})):o.createElement(n.K0,{disabled:r,label:e?"Exit Fullscreen":"Enter Fullscreen",icon:e?d:h,renderIcon:e?s.iconExitFullscreen:s.iconEnterFullscreen,onClick:e?a:i})}function p({augment:t,contains:e,addParent:r}){t(({fullscreen:t,toolbar:e,...r})=>({toolbar:(0,n.bo)(e,i.Qe,o.createElement(f,null)),fullscreen:s(t),...r})),r(e(i.QQ)?i.QQ:i.Kv,(0,n.Fi)(i.Qe,u))}},95810:(t,e,r)=>{let o,n,i;self,o=r(12115),n=r(12758),i=r(40038),t.exports=(()=>{"use strict";var t={546:t=>{t.exports=i},949:t=>{t.exports=n},155:t=>{t.exports=o}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{CKEditor:()=>d,CKEditorContext:()=>l,useMultiRootEditor:()=>w});var t=r(155),e=r.n(t),o=r(949),n=r.n(o);let i=Array(256).fill("").map((t,e)=>("0"+e.toString(16)).slice(-2));var s=r(546);let c=e().createContext("contextWatchdog");class l extends e().Component{constructor(t,e){super(t,e),this.contextWatchdog=null,this.props.isLayoutReady&&this._initializeContextWatchdog(this.props.config)}shouldComponentUpdate(t){return this._shouldComponentUpdate(t)}async _shouldComponentUpdate(t){return t.id!==this.props.id&&(this.contextWatchdog&&await this.contextWatchdog.destroy(),await this._initializeContextWatchdog(t.config)),t.isLayoutReady&&!this.contextWatchdog?(await this._initializeContextWatchdog(t.config),!0):this.props.children!==t.children}render(){return e().createElement(c.Provider,{value:this.contextWatchdog},this.props.children)}componentWillUnmount(){this._destroyContext()}async _initializeContextWatchdog(t){this.contextWatchdog=new s.ContextWatchdog(this.props.context,this.props.watchdogConfig),this.contextWatchdog.on("error",(t,e)=>{this.props.onError(e.error,{phase:"runtime",willContextRestart:e.causesRestart})}),this.contextWatchdog.on("stateChange",()=>{"ready"===this.contextWatchdog.state&&this.props.onReady&&this.props.onReady(this.contextWatchdog.context)}),await this.contextWatchdog.create(t).catch(t=>
1{this.props.onError(t,{phase:"initialization",willContextRestart:!1})})}async _destroyContext(){this.contextWatchdog&&(await this.contextWatchdog.destroy(),this.contextWatchdog=null)}}l.defaultProps={isLayoutReady:!0,onError:(t,e)=>console.error(t,e)},l.propTypes={id:n().string,isLayoutReady:n().bool,context:n().func,watchdogConfig:n().object,config:n().object,onReady:n().func,onError:n().func};class u{constructor(t,e){this._releaseLock=null,this._value=null,this._afterMountCallbacks=[],this._state={destroyedBeforeInitialization:!1,mountingInProgress:null},this.release=function(t){let e=null;return(...r)=>(e||(e={current:t(...r)}),e.current)}(()=>{let{_releaseLock:t,_state:e,_element:r,_lifecycle:o}=this;e.mountingInProgress?e.mountingInProgress.then(()=>o.unmount({element:r,mountResult:this.value})).catch(t=>{console.error("Semaphore unmounting error:",t)}).then(t.resolve).then(()=>{this._value=null}):(e.destroyedBeforeInitialization=!0,t.resolve())}),this._element=t,this._lifecycle=e,this._lock()}get value(){return this._value}unsafeSetValue(t){this._value=t,this._afterMountCallbacks.forEach(e=>e(t)),this._afterMountCallbacks=[]}runAfterMount(t){let{_value:e,_afterMountCallbacks:r}=this;e?t(e):r.push(t)}_lock(){let{_semaphores:t}=u,{_state:e,_element:r,_lifecycle:o}=this,n=t.get(r)||Promise.resolve(null),i=function(){let t={resolve:null,promise:null};return t.promise=new Promise(e=>{t.resolve=e}),t}();this._releaseLock=i;let a=n.then(()=>e.destroyedBeforeInitialization?Promise.resolve(void 0):(e.mountingInProgress=o.mount().then(t=>(t&&this.unsafeSetValue(t),t)),e.mountingInProgress)).then(async t=>{t&&o.afterMount&&await o.afterMount({element:r,mountResult:t})}).then(()=>i.promise).catch(t=>{console.error("Semaphore mounting error:",t)}).then(()=>{t.get(r)===a&&t.delete(r)});t.set(r,a)}}u._semaphores=new Map;let h="Lock from React integration (@ckeditor/ckeditor5-react)";class d extends e().Component{constructor(t){super(t),this.domContainer=e().createRef(),this.editorSemaphore=null;let{CKEDITOR_VERSION:r}=window;if(r){let[t]=r.split(".").map(Number);t<37&&console.warn("The <CKEditor> component requires using CKEditor 5 in version 37 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')}get _semaphoreValue(){let{editorSemaphore:t}=this;return t?t.value:null}get watchdog(){let{_semaphoreValue:t}=this;return t?t.watchdog:null}get editor(){let{_semaphoreValue:t}=this;return t?t.instance:null}shouldComponentUpdate(t){let{props:e,editorSemaphore:r}=this;return t.id!==e.id||t.disableWatchdog!==e.disableWatchdog||(r&&(r.runAfterMount(({instance:r})=>{this._shouldUpdateEditorData(e,t,r)&&r.data.set(t.data)}),"disabled"in t&&r.runAfterMount(({instance:e})=>{t.disabled?e.enableReadOnlyMode(h):e.disableReadOnlyMode(h)})),!1)}componentDidMount(){this._initLifeCycleSemaphore()}componentDidUpdate(){this._initLifeCycleSemaphore()}componentWillUnmount(){this._unlockLifeCycleSemaphore()}_unlockLifeCycleSemaphore(){this.editorSemaphore&&(this.editorSemaphore.release(),this.editorSemaphore=null)}_initLifeCycleSemaphore(){this._unlockLifeCycleSemaphore(),this.editorSemaphore=new u(this.domContainer.current,{mount:async()=>this._initializeEditor(),afterMount:({mountResult:t})=>{let{onReady:e}=this.props;e&&null!==this.domContainer.current&&e(t.instance)},unmount:async({element:t,mountResult:e})=>{let{onAfterDestroy:r}=this.props;try{await this._destroyEditor(e),t.innerHTML=""}finally{r&&r(e.instance)}}})}render(){return e().createElement("div",{ref:this.domContainer})}async _initializeEditor(){if(this.props.disableWatchdog)return{instance:await this._createEditor(this.domContainer.current,this._getConfig()),watchdog:null};let t=this.context instanceof s.ContextWatchdog?new f(this.context):new d._EditorWatchdog(this.props.editor,this.props.watchdogConfig),e={current:0};return t.setCreator(async(r,o)=>{let{editorSemaphore:n}=this,{onAfterDestroy:i}=this.props;e.current>0&&i&&n&&n.value&&n.value.instance&&i(n.value.instance);let a=await this._createEditor(r,o);return e.current>0&&(n.unsafeSetValue({instance:a,watchdog:t}),setTimeout(()=>{this.props.onReady&&this.props.onReady(t.editor)})),e.current++,a}),t.on("error",(t,{error:e,causesRestart:r})=>{(this.props.onError||console.error)(e,{phase:"runtime",willEditorRestart:r})}),await t.create(this.domContainer.current,this._getConfig()).catch(t=>{(this.props.onError||console.error)(t,{phase:"initialization",willEditorRestart:!1})}),{watchdog:t,instance:t.editor}}_createEditor(t,e){return this.props.editor.create(t,e).then(t=>{"disabled"in this.props&&this.props.disabled&&t.enableReadOnlyMode(h);let e=t.model.document,r=t.editing.view.document;return e.on("change:data",e=>{this.props.onChange&&this.props.onChange(e,t)}),r.on("focus",e=>{this.props.onFocus&&this.props.onFocus(e,t)}),r.on("blur",e=>{this.props.onBlur&&this.props.onBlur(e,t)}),t})}async _destroyEditor(t){let{watchdog:e,instance:r}=t;return new Promise((t,o)=>{setTimeout(async()=>{try{if(e)return await e.destroy(),t();if(r)return await r.destroy(),t();t()}catch(t){console.error(t),o(t)}})})}_shouldUpdateEditorData(t,e,r){return t.data!==e.data&&r.data.get()!==e.data}_getConfig(){let t=this.props.config||{};return this.props.data&&t.initialData&&console.warn("Editor data should be provided either using `config.initialData` or `content` property. The config value takes precedence over `content` property and will be used when both are specified."),{...t,initialData:t.initialData||this.props.data||""}}}d.contextType=c,d.propTypes={editor:n().func.isRequired,data:n().string,config:n().object,disableWatchdog:n().bool,w
1atchdogConfig:n().object,onChange:n().func,onReady:n().func,onFocus:n().func,onBlur:n().func,onError:n().func,disabled:n().bool,id:n().any},d._EditorWatchdog=s.EditorWatchdog;class f{constructor(t){this._contextWatchdog=t,this._id=function(){let t=0x100000000*Math.random()>>>0,e=0x100000000*Math.random()>>>0,r=0x100000000*Math.random()>>>0,o=0x100000000*Math.random()>>>0;return"e"+i[255&t]+i[t>>8&255]+i[t>>16&255]+i[t>>24&255]+i[255&e]+i[e>>8&255]+i[e>>16&255]+i[e>>24&255]+i[255&r]+i[r>>8&255]+i[r>>16&255]+i[r>>24&255]+i[255&o]+i[o>>8&255]+i[o>>16&255]+i[o>>24&255]}()}setCreator(t){this._creator=t}create(t,e){return this._contextWatchdog.add({sourceElementOrData:t,config:e,creator:this._creator,id:this._id,type:"editor"})}on(t,e){this._contextWatchdog.on("itemError",(t,{itemId:r,error:o})=>{r===this._id&&e(null,{error:o,causesRestart:void 0})})}destroy(){return"ready"===this._contextWatchdog.state?this._contextWatchdog.remove(this._id):Promise.resolve()}get editor(){return this._contextWatchdog.getItem(this._id)}}function p(...t){return e=>{t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}}function m(t,e){for(let t of Object.getOwnPropertyNames(e))delete e[t];for(let[r,o]of Object.entries(t))o!==e&&"prototype"!==r&&"__proto__"!==r&&(e[r]=o);return e}let _=e=>{let r=(0,t.useRef)();return r.current=e,(0,t.useCallback)((...t)=>r.current(...t),[])};function g(t,e){return e.length=0,e.push(...t),e}let y=(e,r,o)=>{((e,r)=>{let o=(0,t.useRef)(null);((t,e)=>{if(t===e)return!0;if(!t||!e)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0})(o.current,r)||(o.current=[...r],e())})(()=>{e&&e.runAfterMount(r)},[e,...o])},b="Lock from React integration (@ckeditor/ckeditor5-react)",v=(0,t.memo)((0,t.forwardRef)(({id:r,semaphore:o,rootName:n},i)=>{let a=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let t,e;return o.runAfterMount(({instance:r})=>{a.current&&(e=r,t=r.ui.view.createEditable(n,a.current),r.ui.addEditable(t),r.editing.view.forceRender())}),()=>{t&&a.current&&e&&"destroyed"!==e.state&&e.ui.removeEditable(t)}},[o.revision]),e().createElement("div",{key:o.revision,id:r,ref:p(i,a)})}));v.displayName="EditorEditable";let E=(0,t.forwardRef)(({editor:r},o)=>{let n=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let t=n.current;if(!r||!t)return;let e=r.ui.view.toolbar.element;return t&&t.appendChild(e),()=>{t&&t.removeChild(e)}},[r&&r.id]),e().createElement("div",{ref:p(n,o)})});E.displayName="EditorToolbarWrapper";let w=r=>{let o=(0,t.useRef)(r.semaphoreElement||null),n=(()=>{let e=(0,t.useRef)(null),[r,o]=(0,t.useState)(()=>Date.now()),n=()=>{o(Date.now())},i=(t=!0)=>{e.current&&(e.current.release(),e.current=null),t&&o(Date.now())},a=t=>{e.current&&e.current.runAfterMount(t)};return{get current(){return e.current},revision:r,createAttributeRef:t=>({get current(){return e.current&&e.current.value?e.current.value[t]:null}}),unsafeSetValue:t=>{var r;null==(r=e.current)||r.unsafeSetValue(t),n()},release:i,replace:t=>{i(!1),e.current=t(),n(),a(n)},runAfterMount:a}})(),i={watchdog:n.createAttributeRef("watchdog"),instance:n.createAttributeRef("instance")},a=(0,t.useContext)(c),[l,h]=(0,t.useState)(()=>Object.keys(r.data)),[d,p]=(0,t.useState)({...r.data}),[w,j]=(0,t.useState)({...r.rootsAttributes}),x=(0,t.useRef)(!0);(0,t.useEffect)(()=>
1{let t=o.current;if(t&&!1!==r.isLayoutReady)return n.replace(()=>new u(t,{mount:k,afterMount:({mountResult:t})=>{let{onReady:e}=r;e&&null!==o.current&&e(t.instance)},unmount:async({element:t,mountResult:e})=>{let{onAfterDestroy:o}=r;try{await P(e),t.innerHTML=""}finally{o&&o(e.instance)}}})),()=>{n.release(!1)}},[r.id,r.isLayoutReady]);let C=()=>{let t=r.config||{};return r.data&&t.initialData&&console.warn("Editor data should be provided either using `config.initialData` or `data` property. The config value takes precedence over `data` property and will be used when both are specified."),{...t,rootsAttributes:w}},O=_((t,e)=>{let o=t.model.document;if(!r.disableTwoWayDataBinding){let e={},r={};o.differ.getChanges().forEach(r=>{let o;if(!(o="insert"==r.type||"remove"==r.type?r.position.root:r.range.root).isAttached())return;let{rootName:n}=o;e[n]=t.getData({rootName:n})}),o.differ.getChangedRoots().forEach(o=>{if(o.state)return void(void 0!==e[o.name]&&delete e[o.name]);let n=o.name;r[n]=t.getRootAttributes(n)}),Object.keys(e).length&&p(t=>({...t,...e})),Object.keys(r).length&&j(t=>({...t,...r}))}r.onChange&&r.onChange(e,t)}),S=_((t,e,o)=>{let n=o.rootName;r.disableTwoWayDataBinding||(p(e=>({...e,[n]:t.getData({rootName:n})})),j(e=>({...e,[n]:t.getRootAttributes(n)}))),h(t=>Array.from(new Set([...t,o.rootName])))}),R=_((t,e,o)=>{let n=o.rootName;r.disableTwoWayDataBinding||(p(t=>{let{[n]:e,...r}=t;return{...r}}),j(t=>{let{[n]:e,...r}=t;return{...r}})),h(t=>t.filter(t=>t!==n))}),A=_((t,e)=>(m({...r.rootsAttributes},w),m({...r.data},d),g(Object.keys(r.data),l),r.editor.create(t,e).then(t=>{let e=t.getFullData();m({...e},d),m({...t.getRootsAttributes()},w),g(Object.keys(e),l),r.disabled&&t.enableReadOnlyMode(b);let o=t.model.document,n=t.editing.view.document;return o.on("change:data",e=>O(t,e)),t.on("addRoot",(e,r)=>S(t,e,r)),t.on("detachRoot",(e,r)=>R(t,e,r)),n.on("focus",e=>{r.onFocus&&r.onFocus(e,t)}),n.on("blur",e=>{r.onBlur&&r.onBlur(e,t)}),t}))),P=t=>{let{watchdog:e,instance:r}=t;return new Promise((t,o)=>{setTimeout(async()=>{try{if(e)return await e.destroy(),t();if(r)return await r.destroy(),t();t()}catch(t){console.error(t),o(t)}})})},k=async()=>{if(r.disableWatchdog)return{instance:await A(r.data,C()),watchdog:null};let t=a instanceof s.ContextWatchdog?new f(a):new s.EditorWatchdog(r.editor,r.watchdogConfig),e={current:0};return t.setCreator(async(o,a)=>{let{onAfterDestroy:s}=r;e.current>0&&s&&i.instance.current&&s(i.instance.current);let c=await A(o,a);return e.current>0&&(n.unsafeSetValue({instance:c,watchdog:t}),setTimeout(()=>{r.onReady&&r.onReady(t.editor)})),e.current++,c}),t.on("error",(t,{error:e,causesRestart:o})=>{(r.onError||console.error)(e,{phase:"runtime",willEditorRestart:o})}),await t.create(d,C()).catch(t=>{throw(r.onError||console.error)(t,{phase:"initialization",willEditorRestart:!1}),t}),{watchdog:t,instance:t.editor}},D=(0,t.useCallback)(t=>{n.runAfterMount(()=>{x.current=!0,p(t)})},[p]),T=(0,t.useCallback)(t=>{n.runAfterMount(()=>{x.current=!0,j(t)})},[j]),F=e().createElement(E,{ref:o,editor:i.instance.current});y(n.current,({instance:t})=>{r.disabled?t.enableReadOnlyMode(b):t.disableReadOnlyMode(b)},[r.disabled]),y(n.current,({instance:t})=>{if(x.current){x.current=!1;let e=Object.keys(d),r=Object.keys(w);if(!e.every(t=>r.includes(t)))throw console.error("`data` and `attributes` objects must have the same keys (roots)."),Error("`data` and `attributes` objects must have the same keys (roots).");let o=t.getFullData(),n=t.getRootsAttributes(),{addedKeys:i,removedKeys:a}=((t,e)=>{let r=Object.keys(t),o=Object.keys(e);return{addedKeys:o.filter(t=>!r.includes(t)),removedKeys:r.filter(t=>!o.includes(t))}})(o,d||{}),s=e.some(t=>void 0!==o[t]&&JSON.stringify(o[t])!==JSON.stringify(d[t])),c=r.filter(t=>JSON.stringify(n[t])!==JSON.stringify(w[t]));setTimeout(()=>{t.model.change(e=>{i.forEach(e=>{t.addRoot(e,{data:d[e]||"",attributes:(null==w?void 0:w[e])||{},isUndoable:!0})}),a.forEach(e=>{t.detachRoot(e,!0)}),s&&t.data.set(d,{suppressErrorInCollaboration:!0}),c.length&&((e,r)=>{r.forEach(r=>
1{Object.keys(w[r]).forEach(e=>{t.registerRootAttribute(e)}),e.clearAttributes(t.model.document.getRoot(r)),e.setAttributes(w[r],t.model.document.getRoot(r))})})(e,c)})})}},[d,w]);let W=l.map(t=>e().createElement(v,{key:t,id:t,rootName:t,semaphore:n}));return{editor:i.instance.current,editableElements:W,toolbarElement:F,data:d,setData:D,attributes:w,setAttributes:T}}})(),a})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.