jahresbericht2018/assets/js/react/dom.js

1 line
206 KiB
JavaScript
Raw Normal View History

2024-01-12 13:54:37 +00:00
"use strict";!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(void 0).ReactDOM=t((void 0).React)}(0,function(e){var t=function(){};function n(e,n,r,o,a,i,l,u){if(t(n),!e){var s=void 0;if(void 0===n)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,o,a,i,l,u],d=0;(s=new Error(n.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}t=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")},e||n(!1,"ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");var r=function(e,t,n,r,o,a,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}};if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var o=document.createElement("react");r=function(e,t,r,a,i,l,u,s,c){"undefined"==typeof document&&n(!1,"The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var d=document.createEvent("Event"),f=!0,p=window.event,m=Object.getOwnPropertyDescriptor(window,"event"),h=Array.prototype.slice.call(arguments,3);var v=void 0,g=!1,y=!1;function b(e){if(v=e.error,g=!0,null===v&&0===e.colno&&0===e.lineno&&(y=!0),e.defaultPrevented&&null!=v&&"object"==typeof v)try{v._suppressLogging=!0}catch(e){}}var w="react-"+(e||"invokeguardedcallback");window.addEventListener("error",b),o.addEventListener(w,function e(){o.removeEventListener(w,e,!1),void 0!==window.event&&window.hasOwnProperty("event")&&(window.event=p),t.apply(r,h),f=!1},!1),d.initEvent(w,!1,!1),o.dispatchEvent(d),m&&Object.defineProperty(window,"event",m),f&&(g?y&&(v=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://fb.me/react-crossorigin-error for more information.")):v=new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."),this.onError(v)),window.removeEventListener("error",b)}}var a=r,i=!1,l=null,u=!1,s=null,c={onError:function(e){i=!0,l=e}};function d(e,t,n,r,o,u,s,d,f){i=!1,l=null,a.apply(c,arguments)}function f(){return i}function p(){if(i){var e=l;return i=!1,l=null,e}n(!1,"clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var m=null,h={};function v(){if(m)for(var e in h){var t=h[e],r=m.indexOf(e);if(r>-1||n(!1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e),!b[r]){t.extractEvents||n(!1,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e),b[r]=t;var o=t.eventTypes;for(var a in o)g(o[a],t,a)||n(!1,"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",a,e)}}}function g(e,t,r){w.hasOwnProperty(r)&&n(!1,"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",r),w[r]=e;var o=e.phasedRegistrationNames;if(o){for(var a in o){if(o.hasOwnProperty(a))y(o[a],t,r)}return!0}return!!e.registrationName&&(y(e.registrationName,t,r),!0)}function