{"version":3,"file":"Editor-b7bd5388.js","sources":["../../../node_modules/setimmediate/setImmediate.js","../../src/hooks/useEditorStyles.ts","../../src/hooks/useEditorValue.ts","../../../node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js","../../../node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js","../../../node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js","../../../node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js","../../../node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js","../../../node_modules/@juggle/resize-observer/lib/utils/freeze.js","../../../node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js","../../../node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js","../../../node_modules/@juggle/resize-observer/lib/utils/element.js","../../../node_modules/@juggle/resize-observer/lib/utils/global.js","../../../node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js","../../../node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js","../../../node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js","../../../node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js","../../../node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js","../../../node_modules/@juggle/resize-observer/lib/utils/process.js","../../../node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js","../../../node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js","../../../node_modules/@juggle/resize-observer/lib/utils/scheduler.js","../../../node_modules/@juggle/resize-observer/lib/ResizeObservation.js","../../../node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js","../../../node_modules/@juggle/resize-observer/lib/ResizeObserverController.js","../../../node_modules/@juggle/resize-observer/lib/ResizeObserver.js","../../../node_modules/@react-hook/passive-layout-effect/dist/module/index.js","../../../node_modules/@react-hook/latest/dist/module/index.js","../../../node_modules/@react-hook/resize-observer/dist/module/index.js","../../src/hooks/useDocumentEffect.ts","../../src/utils/placement.ts","../../src/components/editor/chrome/ChromeElementTypes.tsx","../../src/components/editor/chrome/ChromeBlockToolbar.tsx","../../src/components/editor/chrome/ChromeContext.tsx","../../src/components/editor/chrome/ChromeContextActions.tsx","../../src/components/editor/chrome/ChromeContextAdd.tsx","../../src/components/editor/chrome/ChromeContextParent.tsx","../../src/components/editor/chrome/ChromeContextType.tsx","../../src/components/editor/chrome/ChromeContextToolbar.tsx","../../src/components/editor/chrome/ChromeOrchestratorGrid.tsx","../../src/components/editor/chrome/ChromePlacementToolbar.tsx","../../src/components/editor/chrome/ChromePlaceToolbar.tsx","../../src/components/editor/chrome/ChromeOrchestratorPlacement.tsx","../../src/components/editor/chrome/ChromeRangeLink.tsx","../../src/components/editor/chrome/ChromeRangeToolbar.tsx","../../src/components/editor/chrome/ChromeBreadcrumbsChildren.tsx","../../src/components/editor/chrome/ChromeBreadcrumbsParents.tsx","../../src/components/editor/chrome/ChromeBreadcrumbs.tsx","../../src/components/editor/chrome/ChromeOrchestrator.tsx","../../src/components/editor/chrome/Chrome.tsx","../../src/components/BarMenu.tsx","../../src/components/editor/version/VersionBreakpointBadge.tsx","../../src/components/editor/version/VersionBreakpointList.tsx","../../src/components/editor/version/VersionBreakpointsMenu.tsx","../../src/components/editor/version/VersionGridButton.tsx","../../../node_modules/scroll-shadow-element/dist/index.js","../../src/components/editor/version/VersionMenu.tsx","../../src/components/EditLink.tsx","../../src/components/editor/version/VersionName.tsx","../../../node_modules/react-shadow-root/lib/ReactShadowRoot.js","../../../node_modules/react-shadow-root/lib/index.js","../../src/components/editor/version/VersionPreview.tsx","../../src/components/editor/version/VersionPreviewAlert.tsx","../../src/components/editor/version/VersionStatusButton.tsx","../../src/components/editor/version/VersionStatusBadge.tsx","../../src/components/editor/version/VersionStatusList.tsx","../../src/components/editor/version/VersionThemeButton.tsx","../../src/components/editor/version/Version.tsx","../../src/components/editor/ui/UIBreadcrumbs.tsx","../../src/components/editor/ui/UIMode.tsx","../../src/components/editor/ui/UISave.tsx","../../src/components/editor/ui/UIUndo.tsx","../../node_modules/@ckeditor/ckeditor5-watchdog/src/watchdog.js","../../node_modules/@ckeditor/ckeditor5-watchdog/src/utils/getsubnodes.js","../../node_modules/@ckeditor/ckeditor5-watchdog/src/utils/areconnectedthroughproperties.js","../../../node_modules/lodash-es/cloneDeepWith.js","../../../node_modules/lodash-es/now.js","../../../node_modules/lodash-es/debounce.js","../../../node_modules/lodash-es/isElement.js","../../../node_modules/lodash-es/throttle.js","../../node_modules/@ckeditor/ckeditor5-watchdog/src/editorwatchdog.js","../../src/components/editor/Editor.tsx"],"sourcesContent":["(function (global, undefined) {\n \"use strict\";\n\n if (global.setImmediate) {\n return;\n }\n\n var nextHandle = 1; // Spec says greater than zero\n var tasksByHandle = {};\n var currentlyRunningATask = false;\n var doc = global.document;\n var registerImmediate;\n\n function setImmediate(callback) {\n // Callback can either be a function or a string\n if (typeof callback !== \"function\") {\n callback = new Function(\"\" + callback);\n }\n // Copy function arguments\n var args = new Array(arguments.length - 1);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i + 1];\n }\n // Store and register the task\n var task = { callback: callback, args: args };\n tasksByHandle[nextHandle] = task;\n registerImmediate(nextHandle);\n return nextHandle++;\n }\n\n function clearImmediate(handle) {\n delete tasksByHandle[handle];\n }\n\n function run(task) {\n var callback = task.callback;\n var args = task.args;\n switch (args.length) {\n case 0:\n callback();\n break;\n case 1:\n callback(args[0]);\n break;\n case 2:\n callback(args[0], args[1]);\n break;\n case 3:\n callback(args[0], args[1], args[2]);\n break;\n default:\n callback.apply(undefined, args);\n break;\n }\n }\n\n function runIfPresent(handle) {\n // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n // So if we're currently running a task, we'll need to delay this invocation.\n if (currentlyRunningATask) {\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n // \"too much recursion\" error.\n setTimeout(runIfPresent, 0, handle);\n } else {\n var task = tasksByHandle[handle];\n if (task) {\n currentlyRunningATask = true;\n try {\n run(task);\n } finally {\n clearImmediate(handle);\n currentlyRunningATask = false;\n }\n }\n }\n }\n\n function installNextTickImplementation() {\n registerImmediate = function(handle) {\n process.nextTick(function () { runIfPresent(handle); });\n };\n }\n\n function canUsePostMessage() {\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n // where `global.postMessage` means something completely different and can't be used for this purpose.\n if (global.postMessage && !global.importScripts) {\n var postMessageIsAsynchronous = true;\n var oldOnMessage = global.onmessage;\n global.onmessage = function() {\n postMessageIsAsynchronous = false;\n };\n global.postMessage(\"\", \"*\");\n global.onmessage = oldOnMessage;\n return postMessageIsAsynchronous;\n }\n }\n\n function installPostMessageImplementation() {\n // Installs an event handler on `global` for the `message` event: see\n // * https://developer.mozilla.org/en/DOM/window.postMessage\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n\n var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n var onGlobalMessage = function(event) {\n if (event.source === global &&\n typeof event.data === \"string\" &&\n event.data.indexOf(messagePrefix) === 0) {\n runIfPresent(+event.data.slice(messagePrefix.length));\n }\n };\n\n if (global.addEventListener) {\n global.addEventListener(\"message\", onGlobalMessage, false);\n } else {\n global.attachEvent(\"onmessage\", onGlobalMessage);\n }\n\n registerImmediate = function(handle) {\n global.postMessage(messagePrefix + handle, \"*\");\n };\n }\n\n function installMessageChannelImplementation() {\n var channel = new MessageChannel();\n channel.port1.onmessage = function(event) {\n var handle = event.data;\n runIfPresent(handle);\n };\n\n registerImmediate = function(handle) {\n channel.port2.postMessage(handle);\n };\n }\n\n function installReadyStateChangeImplementation() {\n var html = doc.documentElement;\n registerImmediate = function(handle) {\n // Create a