@cniot/veaury
Version:
fork veaury库,解决在部分window老电脑报错的问题, Use React in Vue3 and Vue3 in React, And as perfect as possible!
2 lines (1 loc) • 38.8 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("vue"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","vue","react-dom"],t):t((e=e||self).veaury={},e.React,e.Vue,e.ReactDOM)}(this,function(e,b,P,R){"use strict";var S="default"in b?b.default:b,O="default"in R?R.default:R;function r(e,t,n){t=i(t);var r=e,t=F()?Reflect.construct(t,n||[],i(e).constructor):t.apply(e,n);if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(r)}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(F=function(){return!!e})()}function N(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function c(e){e=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=typeof(n=n.call(e,t||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof e?e:String(e)}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function a(e,t,n){t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1})}function s(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function V(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),a=0;a<o.length;a++)n=o[a],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),a=0;a<o.length;a++)n=o[a],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,i=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return i}}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){var n;if(e)return"string"==typeof e?l(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var E={react:{componentWrap:"div",slotWrap:"div",componentWrapAttrs:{__use_react_component_wrap:"",style:{all:"unset"}},slotWrapAttrs:{__use_react_slot_wrap:"",style:{all:"unset"}},vueNamedSlotsKey:["node:"]},vue:{componentWrapHOC:function(t){return function(){var e=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).portals,e=void 0===e?[]:e;return b.createElement(b.Fragment,null,t,e.map(function(e){var t=e.Portal,e=e.key;return b.createElement(t,{key:e})}))}},componentWrapAttrs:{"data-use-vue-component-wrap":"",style:{all:"unset"}},slotWrapAttrs:{"data-use-vue-slot-wrap":"",style:{all:"unset"}}}};function p(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{react:{},vue:{}},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:E,n=2<arguments.length?arguments[2]:void 0,t=(e.vue||(e.vue={}),e.react||(e.react={}),[t,C(C({},e),{},{react:C(C(C({},t.react),e.react),{},{componentWrapAttrs:C(C({},t.react.componentWrapAttrs),e.react.componentWrapAttrs),slotWrapAttrs:C(C({},t.react.slotWrapAttrs),e.react.slotWrapAttrs)}),vue:C(C(C({},t.vue),e.vue),{},{componentWrapAttrs:C(C({},t.vue.componentWrapAttrs),e.vue.componentWrapAttrs),slotWrapAttrs:C(C({},t.vue.slotWrapAttrs),e.vue.slotWrapAttrs)})})]);return n&&t.unshift({}),Object.assign.apply(this,t)}var L=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],n={Document:{},Element:{}};function M(u){Object.keys(n).forEach(function(e){L.forEach(function(o){var a=window[e].prototype[o];n[e][o]=a,window[e].prototype[o]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=a.apply(this,t);return r&&(r.constructor!==NodeList||r.constructor===NodeList&&0<r.length)?r:Element.prototype[o].apply(u,t)}})})}function K(){Object.keys(n).forEach(function(t){L.forEach(function(e){window[t].prototype[e]=n[t][e]})})}var Y=["ref"],B=["key"],G=["hashList"],z=parseInt(b.version);function q(p,f,_){var e=function(){function l(e){var t;return o(this,l),(t=r(this,l,[e])).state=C(C({},e),f.isSlots?{children:p}:{}),t.setRef=t.setRef.bind(v(t)),t.vueInReactCall=t.vueInReactCall.bind(v(t)),(t.__veauryVueWrapperRef__=_).__veauryVueInReactCall__=t.vueInReactCall,t}return u(l,b.Component),a(l,[{key:"reactPropsLinkToVueInstance",value:function(t){Object.keys(t).forEach(function(e){_[e]||(_[e]=t[e])}),Object.getOwnPropertyNames(t.__proto__).filter(function(e){return["constructor","render"].indexOf(e)<0}).forEach(function(e){_[e]||(_[e]=t[e])})}},{key:"setRef",value:function(e){var t=this;e&&(_.__veauryReactRef__=e,this.reactPropsLinkToVueInstance(e),Promise.resolve().then(function(){return t.reactPropsLinkToVueInstance(e)}),(this.setRef.current=e).__veauryVueWrapperRef__=_)}},{key:"createSlot",value:function(n){return{originVNode:n,inheritAttrs:!1,__fromReactSlot:!0,render:function(){var e,t;return 1===(null==(e=n=(n=(null==(t=this.$slots)||null==(e=t.default)?void 0:e.call(t))||n)instanceof Function?n(this):n)?void 0:e.length)&&null!=(t=n[0])&&t.data&&((e=this.$attrs).key,t=V(e,B),n[0].props=C(C({},t),n[0].props)),n}}}},{key:"componentWillUnmount",value:function(){_.__veauryReactRef__&&(_.__veauryReactRef__.__veauryVueWrapperRef__=null,_.__veauryReactRef__=null)}},{key:"vueInReactCall",value:function(e){var n=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return(2<arguments.length?arguments[2]:void 0)&&e&&e[0]?e.map(function(e,t){return A(n.createSlot(e instanceof Function?e:[e]),C(C(C({},f),r),{},{isSlots:!0,wrapInstance:_})).render({key:(null==e||null==(e=e.data)?void 0:e.key)||t})}):A(this.createSlot(e),C(C(C({},f),r),{},{isSlots:!0,wrapInstance:_})).render()}},{key:"render",value:function(){var e,t,n,r=this,o=this.state,a=o.hashList,u=V(o,G),i={},s={};for(e in u)t=e,n=void 0,u.hasOwnProperty(t)&&null!=u[t]&&(u[t].__slot?(u[t].reactSlot?u[t]=u[t].reactSlot:(n=u[t],f.defaultSlotsFormatter&&u[t].__trueChildren?(u[t].__top__=r.__veauryVueWrapperRef__,u[t]=f.defaultSlotsFormatter(u[t].__trueChildren,r.vueInReactCall,a),u[t]instanceof Array?u[t]=d(u[t]):-1<["string","number"].indexOf(I(u[t]))?u[t]=[u[t]]:"object"===I(u[t])&&(u[t]=C({},u[t]))):u[t]=C({},A(r.createSlot(u[t]),C(C({},f),{},{isSlots:!0,wrapInstance:_})).render()),u[t].vueFunction=n),i[t]=u[t]):u[t].__scopedSlot&&(u[t]=u[t](r.createSlot),s[t]=u[t]));var c,o={};return o.ref=this.setRef,f.isSlots?this.state.children||this.props.children:(c=u,c=C(C(C({},c=f.defaultPropsFormatter?f.defaultPropsFormatter(u,this.vueInReactCall,a):c),i),s),Object.getPrototypeOf(p)!==Function.prototype&&("object"!==I(p)||p.render)||l.catchVueRefs()?(Object.getPrototypeOf(p)===Function.prototype&&delete o.ref,b.createElement(p,j({},c,o))):b.createElement(H,j({passedProps:c,component:p},o),c.children))}}],[{key:"catchVueRefs",value:function(){if(_.$parent)for(var e in _.$parent.$refs)if(_.$parent.$refs[e]===_)return!0;return!1}}]),l}();return s(e,"displayName","applyReact_".concat(p.displayName||p.name||"Component")),e}var H=function(){function t(e){return o(this,t),r(this,t,[e])}return u(t,b.Component),a(t,[{key:"render",value:function(){var e=this.props.component,t=this.props.passedProps,t=(t.ref,V(t,Y));return b.createElement(e,t,this.props.children)}}]),t}();function _(m){var g=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return m.__esModule&&m.default&&(m=m.default),g.isSlots&&(m=m()),g=p(g,void 0,!0),{originReactComponent:m,setup:function(e,t){var n,r,o,a;if(!g.isSlots)return n={},r=P.reactive({}),o=P.getCurrentInstance(),"function"==typeof(a=g.useInjectPropsFromWrapper||m.__veauryInjectPropsFromWrapper__)&&("function"!=typeof(a=a.call(o.proxy,e))?(Object.assign(r,a),n.__veauryInjectedProps__=r):o.proxy.__veauryInjectedComputed__=a),n},data:function(){return{VEAURY_Portals:[]}},created:function(){this.__veauryPortalKeyPool__=[],this.__veauryMaxPortalCount__=0},computed:{__veauryInjectedProps__:function(){var e;return null==(e=this.__veauryInjectedComputed__)?void 0:e.call(this)}},render:function(){var e=P.h(g.react.componentWrap,C({ref:"react"},g.react.componentWrapAttrs||{}),this.VEAURY_Portals.map(function(e){var t=e.Portal,e=e.key;return t(P.h,e)}));return this.__veauryCheckReactSlot__(this.$slots),e},methods:{__veauryCheckReactSlot__:function(u){var i=this;function s(e,t,n){return t[n]&&(e[n]=t[n],1)}Object.keys(u).forEach(function(e){try{var t,n,r,o=u[e],a=o.apply(i,o.__reactArgs||[{}]);(o.__trueChildren=a).forEach(function(e){e.children&&i.__veauryCheckReactSlot__(e.children)}),1!==a.length||s(o,n=a[0],"reactSlot")||s(o,n,"reactFunction")||n.type!==P.Fragment||1!==(null==(t=n.children)?void 0:t.length)||s(o,r=n.children[0],"reactSlot")||s(o,r,"reactFunction")}catch(e){}})},__veauryPushVuePortal__:function(e){var t=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;this.VEAURY_Portals.push({Portal:e,key:t})},__veauryRemoveVuePortal__:function(n){var r,e=this.VEAURY_Portals.find(function(e,t){if(e.Portal===n)return r=t,!0});this.__veauryPortalKeyPool__.push(e.key),this.VEAURY_Portals.splice(r,1)},__veauryGetScopeSlot__:function(u,i,t){var s=this;function e(a){function e(){for(var e,t=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return u.reactFunction?u.reactFunction.apply(this,r):g.defaultSlotsFormatter?((e=u.apply(this,r)).__top__=s,(e=g.defaultSlotsFormatter(e,s.__veauryVueInReactCall__,i))instanceof Array||-1<I(e).indexOf("string","number")?e=d(e):"object"===I(e)&&(e=C({},e)),e):A(a(function(){return u.apply(t,r)}),C(C({},g),{},{isSlots:!0,wrapInstance:s})).render()}return g.pureTransformer&&t?e.vueFunction=t:e.vueFunction=u,e}return e.__scopedSlot=!0,e},__veaurySyncUpdateProps__:function(e){this.__veauryReactInstance__&&this.__veauryReactInstance__.setState(e)},__veauryMountReactComponent__:function(e,t){var n,r,o=this,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},u={},i=[],s=this.$.vnode.scopeId,c=(s&&(u[s]="",i.push(s)),{}),l={};if(!e||null!=t&&t.slot)for(var p in this.$slots||{})(function(t){var e;o.$slots.hasOwnProperty(t)&&null!=o.$slots[t]&&((e=g.react.vueNamedSlotsKey.find(function(e){return 0===t.indexOf(e)}))||"default"===t?(e=t.replace(new RegExp("^".concat(e)),""),c[e]=o.$slots[t],c[e].__slot=!0):l[t]=o.__veauryGetScopeSlot__(o.$slots[t],i,null==(e=o.$.vnode)||null==(e=e.children)?void 0:e[t]))})(p);(!e||null!=t&&t.slot)&&(r=C({},c),n=r.default,delete r.default),this.__veauryLast__=this.__veauryLast__||{},this.__veauryLast__.slot=this.__veauryLast__.slot||{},this.__veauryLast__.attrs=this.__veauryLast__.attrs||{};var f={slot:function(){o.__veauryLast__.slot=C(C(C({},n?{children:n}:{children:null}),r),l)},attrs:function(){o.__veauryLast__.attrs=o.$attrs}};if(t&&Object.keys(t).forEach(function(e){return f[e]()}),e){var _=function(){o.__veauryReactInstance__&&o.__veauryReactInstance__.setState(function(t){return Object.keys(t).forEach(function(e){g.isSlots&&"children"===e||delete t[e]}),C(C(C(C({},o.__veauryCache__),o.__veauryInjectedProps__),!g.isSlots&&o.__veauryLast__.slot),o.__veauryLast__.attrs)}),o.__veauryCache__=null};!this.microTaskUpdate||this.__veauryCache__||this.$nextTick(function(){_(),o.microTaskUpdate=!1}),this.macroTaskUpdate&&(clearTimeout(this.updateTimer),this.updateTimer=setTimeout(function(){clearTimeout(o.updateTimer),_(),o.macroTaskUpdate=!1})),this.__veauryCache__=C(C({},this.__veauryCache__||{}),C(C(C(C({},a),this.$attrs.class?{className:this.$attrs.class}:{}),C({},u)),{},{hashList:i},this.$attrs.style?{style:this.$attrs.style}:{})),this.macroTaskUpdate||this.microTaskUpdate||_()}else{f.slot(),f.attrs();var s=q(m,g,this),v=b.createElement(s,j({},this.$attrs,this.__veauryInjectedProps__,{children:n},r,l,this.$attrs.class?{className:this.$attrs.class}:{},u,{hashList:i},this.$attrs.style?{style:this.$attrs.style}:{},{ref:function(e){return o.__veauryReactInstance__=e}})),d=this.$refs.react,y=g.wrapInstance;if(y)(y=g.wrapInstance).__veauryVueWrapperRef__=this;else for(var h=this.$parent;h;){if(h.parentReactWrapperRef){y=h.parentReactWrapperRef;break}if(h.reactWrapperRef){y=h.reactWrapperRef;break}h=h.$parent}y?(this.parentReactWrapperRef=y,this.reactPortal=function(){return R.createPortal(v,d)},y.pushReactPortal(this.reactPortal)):17<z?(void 0!==O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED&&(O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0),this.__veauryReactApp__=O.createRoot(d),this.__veauryReactApp__.render(v)):O.render(v,d)}}},mounted:function(){var e=this;this.__VEAURY_IGNORE_STRANGE_UPDATE__=!0,Promise.resolve().then(function(){e.__VEAURY_IGNORE_STRANGE_UPDATE__=!1}),clearTimeout(this.updateTimer),this.__veauryMountReactComponent__()},beforeUnmount:function(){var e;clearTimeout(this.updateTimer),this.reactPortal?(M(this.$refs.react),null!=(e=this.parentReactWrapperRef)&&e.removeReactPortal(this.reactPortal)):(M(this.$refs.react),17<z?this.__veauryReactApp__.unmount():O.unmountComponentAtNode(this.$refs.react)),K()},updated:function(){this.__VEAURY_IGNORE_STRANGE_UPDATE__||this.__veauryMountReactComponent__(!0,{slot:!0})},inheritAttrs:!1,watch:{$attrs:{handler:function(){this.__veauryMountReactComponent__(!0,{attrs:!0})},deep:!0},__veauryInjectedProps__:{handler:function(){this.__veauryMountReactComponent__(!0,{attrs:!0})},deep:!0}}}}var Z=new Set(["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onChange","onInput","onInvalid","onReset","onSubmit","onError","onLoad","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onLoad","onError","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onToggle"]);function J(e,t,n){var r={};n.forEach(function(e){r[e]=!0}),e[("modelValue"===t?"model":t)+"Modifiers"]=r}function Q(e,t,n,r){var o=this,r=3<arguments.length&&void 0!==r?r:"v-model";if(!(t instanceof Array))throw Error("[error:veaury] Parameter type error from '".concat(r,"', a single v-model is an array, such as [val, setter, argumentKey, modifiers] or [val, setter, modifiers]"));if("function"!=typeof t[1])throw Error("[error:veaury] Parameter type error from '".concat(r,"', a single v-model is an array, the second element of the array must be a setter function"));var a=t[1],u=("string"==typeof t[2]?(n=t[2],t[3]instanceof Array&&J(e,n,t[3])):t[2]instanceof Array&&J(e,n,t[2]),e["onUpdate:"+n]);e["onUpdate:"+n]="function"==typeof u?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];u.apply(o,t),a.apply(o,t)}:a,e[n]=t[0]}function m(a){var u=this,n={},i=C({},a);return Object.keys(a).forEach(function(r){var o,e=r.match(/^onUpdate-([^-]+)/);if(e)delete i[r],o=n["onUpdate:".concat(e[1])],n["onUpdate:".concat(e[1])]="function"==typeof o?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.apply(u,t),a[r].apply(u,t)}:a[r];else if(e=r.match(/^v-model($|:([^:]+)|-([^:]+))/))e=e[2]||e[3]||"modelValue",Q(n,a[r],e),delete i[r];else if("v-models"===r){if("object"!==I(a[r])||a[r]instanceof Array)throw Error("[error:veaury] The parameter 'v-models' must be an object type, such as {[argumentKey]: singleVModel}");var t=a[r];Object.keys(t).forEach(function(e){Q(n,t[e],e,"v-models")}),delete i[r]}}),C(C({},i),n)}var t=function(){function e(){o(this,e),s(this,"pool",new Set)}return a(e,[{key:"getRandomId",value:function(e){var t=e+(Math.random()+"").substr(2);return this.pool.has(t)?this.getRandomId(e):(this.pool.add(t),t)}}]),e}();function X(e,t){var n,e=e.node;if("function"==typeof e&&(e=e()),null!=(n=t)&&n.current||"function"==typeof t||null!=(n=t)&&n.toString().match(/^function/)||(t=null),-1<["string","number"].indexOf(I(e)))return e;if(e instanceof Array){if(1!==e.length)return e;e=e[0]}return C(C({},e),{},{ref:t})}var ee=_(X);function y(e){return P.h(ee,{node:function(){return e.node}})}y.originReactComponent=b.forwardRef(X);var te=["component","node"],ne=["component","$slots","children","class","style"],re=["className","classname"],h="veaury-options",oe=new t;function ae(n){if(n)return Object.keys(n).forEach(function(e){var t=n[e];null!=t&&("function"==typeof t?(n[e]=t,n[e].reactFunction=t):(n[e]=function(){return t},n[e].reactSlot=t),t.vueFunction)&&(n[e].vueFunction=t.vueFunction)}),n}function ue(e){var t;return null==(t=e.node)?void 0:t.call(e)}var g=b.forwardRef(function(e,t){var n,r=e.component,o=e.node,e=V(e,te);if(null==r&&null==o)return null;if(null!=o){if(o.$$typeof||"string"==typeof o||"number"==typeof o)return o;"function"!=typeof o&&(n=o,o=function(){return n})}var a,r=r||ue,u=p(e[h]||{},void 0,!0),i=u.useInjectPropsFromWrapper||r.__veauryInjectPropsFromWrapper__;return u.isSlots||"function"==typeof i&&(a=i(e)),b.createElement(ie,j({},C(C(C(C({component:r},o?{node:o}:{}),e),a),{},s({},h,u)),{ref:t}))}),ie=function(){function n(e){var t;return o(this,n),(t=r(this,n,[e])).state={portals:[]},t.__veauryPortalKeyPool__=[],t.__veauryMaxPortalCount__=0,t.__veauryCurrentVueComponent__=e.component,t.__veauryCreateVueInstance__=t.__veauryCreateVueInstance__.bind(v(t)),t.__veauryVueComponentContainer__=t.createVueComponentContainer(),t}return u(n,b.Component),a(n,[{key:"pushReactPortal",value:function(e){var t=this.state.portals,n=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;t.push({Portal:e,key:n}),this.setState({portals:t})}},{key:"removeReactPortal",value:function(n){var r,e=this.state.portals,t=e.find(function(e,t){if(e.Portal===n)return r=t,!0});this.__veauryPortalKeyPool__.push(t.key),e.splice(r,1),this.__veauryVueRef__&&this.setState({portals:e})}},{key:"createVueComponentContainer",value:function(){var t=this,n={},e=this.props[h];return e.isSlots?(Object.keys(this.props).forEach(function(e){Z.has(e)&&"function"==typeof t.props[e]&&(n[e]=t.props[e])}),e.vue.slotWrapAttrs&&(n=C(C({},n),e.vue.slotWrapAttrs))):e.vue.componentWrapAttrs&&(n=C(C({},n),e.vue.componentWrapAttrs)),e.vue.componentWrapHOC(b.createElement("div",j({},e.vue.componentWrapAttrs,{ref:this.__veauryCreateVueInstance__,key:null})),n)}},{key:"shouldComponentUpdate",value:function(e,t,n){var r,o,a,u,i=this;return e===this.props||(r=e.component,e[h],o=void 0===(o=e["v-slots"])?null:o,a=e.children,e=V(e,["component",h,"v-slots","children"].map(c)),this.__veauryCurrentVueComponent__!==r&&this.updateVueComponent(r),!!r.__fromReactSlot)||(this.__veauryVueInstance__?(a&&(o=o||{},"object"!==I(a)||a instanceof Array||a.$$typeof?o.default=a:o=a),(u=this.__veauryVueInstance__.$data.$slots)&&Object.keys(u).forEach(function(e){delete u[e]}),o&&(u||(this.__veauryVueInstance__.$data.$slots={}),Object.assign(this.__veauryVueInstance__.$data.$slots,ae(o))),Object.keys(this.__veauryVueInstance__.$data).forEach(function(e){"$slots"!==e&&delete i.__veauryVueInstance__.$data[e]}),this.__veauryVueInstance__&&Object.assign(this.__veauryVueInstance__.$data,m(e)),!0):void 0)}},{key:"componentWillUnmount",value:function(){this.vuePortal?this.parentVueWrapperRef.__veauryRemoveVuePortal__(this.vuePortal):(this.__veauryVueInstance__&&this.__veauryVueInstance__.$.appContext.app.unmount(),oe.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(t){var n=this,p=this,e=this.props,f=(e.component,e[h]),r=e.children,o=e["v-slots"],o=void 0===o?{}:o,e=V(e,["component",h,"children","v-slots"].map(c));function a(e){this.__veauryVueInstance__||(this.__veauryVueInstance__=e)}r&&("object"!==I(r)||r instanceof Array||r.$$typeof?o.default=r:o=r),(o=ae(o))&&(e.$slots=o),a=a.bind(this);var u,i=C({},m(e)),s={data:function(){var e;return f.isSlots?{children:(null==p||null==(e=p.__veauryCurrentVueComponent__)?void 0:e.originVNode)||[]}:i},created:function(){this.reactWrapperRef=p,a(this)},methods:{reactInVueCall:function(e){return(2<arguments.length?arguments[2]:void 0)&&e&&e[0]?e.map(function(e,t){return P.h(y,{node:e,key:(null==e||null==(e=e.data)?void 0:e.key)||t})}):P.h(y,{node:e})},getScopedSlots:function(c,e){var t,l=this,n=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),C({},e));for(t in n)(function(i){var e,s;!n.hasOwnProperty(i)||null==(e=n[i])||(n[i]=(s=e,function(){for(var e,t,n,r,o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return s.vueFunction?s.vueFunction.apply(l,a):(n=s.reactSlot,r=s.reactFunction,n=n||(null==r?void 0:r.apply(l,a)),r=f.defaultSlotsFormatter,null!=(e=l.getScopedSlots.__scopeSlots[i])&&null!=(e=e.component)&&null!=(e=e.ctx)&&e.__veauryReactInstance__?(t=l.getScopedSlots.__scopeSlots[i],Promise.resolve().then(function(){var e;null!=(e=t)&&null!=(e=e.component)&&null!=(e=e.ctx)&&null!=(e=e.__veauryReactInstance__)&&e.setState({children:s.apply(l,a)})})):(t=r&&n?[r(n,l.reactInVueCall)]:c(_(function(){return s.apply(l,a)},C(C({},f),{},{isSlots:!0,wrapInstance:p}))),l.getScopedSlots.__scopeSlots[i]=t),s.reactFunction?t.reactFunction=s.reactFunction:s.reactSlot&&(t.reactSlot=s.reactSlot),t)}),n[i].reactFunction=e)})(t);return n}},mounted:function(){var e;t.removeAttribute("id"),p.__veauryVueRef__=null==(e=this.$refs)?void 0:e.use_vue_wrapper,null!=(e=this.$refs)&&e.use_vue_wrapper&&(this.$refs.use_vue_wrapper.reactWrapperRef=p)},beforeUnmount:function(){p.__veauryVueRef__=null,this.$refs.use_vue_wrapper.reactWrapperRef=null},render:function(){var e,t,n,r=this,o=this.$data,a=(o.component,o.$slots),u=(o.children,o.class),i=o.style,o=V(o,ne),s=this.getScopedSlots(P.h,C({},a)),a=o.className,c=o.classname,o=V(o,re),l={};return Object.keys(s).forEach(function(e){var t=s[e];l[e]="function"==typeof t?t:function(){return t}}),P.h((e=p.__veauryCurrentVueComponent__,t=this,e="string"==typeof e&&t?null==(t=t.$)||null==(t=t.appContext)||null==(t=t.app)||null==(n=t.component)?void 0:n.call(t,e):e),C(C(C(C({},o),u||a||c?{class:u||a||c}:{}),i?{style:i}:{}),{},{ref:"use_vue_wrapper"}),C({},f.isSlots&&this.children?{default:"function"==typeof this.children?this.children:function(){return r.children}}:C({},l)))}};t&&(u=oe.getRandomId("__vue_wrapper_container_"),t.id=u,this.__veauryVueTargetId__=u,(r=f.wrapInstance)?(r=f.wrapInstance).reactWrapperRef=p:r=function(e,t){for(var n=null==(e=t=(null==e?void 0:e._reactInternals)||(null==e?void 0:e._reactInternalFiber)||t)?void 0:e.return;n;){var r=n.stateNode;if(r=(null==r?void 0:r.parentVueWrapperRef)||(null==r?void 0:r.__veauryVueWrapperRef__))return r;n=n.return}}(this),r&&document.getElementById(u)?(this.parentVueWrapperRef=r,this.vuePortal=function(e,t){return e(P.Teleport,{to:"#"+u,key:u},[e(Object.assign(s,{router:n._router}))])},r.__veauryPushVuePortal__(this.vuePortal)):(o=P.createApp(s),"function"==typeof f.beforeVueAppMount&&f.beforeVueAppMount(o),this.__veauryVueInstance__=o.mount(t)))}},{key:"updateVueComponent",value:function(e){this.__veauryVueInstance__&&(e.__fromReactSlot?this.__veauryVueInstance__.children="function"==typeof e.originVNode?e.originVNode:function(){return e.originVNode}:(this.__veauryCurrentVueComponent__=e,this.__veauryVueInstance__.$forceUpdate()))}},{key:"render",value:function(){return b.createElement(this.__veauryVueComponentContainer__,{portals:this.state.portals})}}]),n}();function A(n){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=(n||console.warn("Component must be passed in applyVueInReact!"),n.__esModule&&n.default&&(n=n.default),b.forwardRef(function(e,t){return b.createElement(g,j({},e,{component:n,ref:t},s({},h,r)))}));return e.originVueComponent=n,e}var se=["children"];function ce(e){var n=b.createContext({});return[function(){return b.useContext(n)},_(function(e){var t=e.children,e=V(e,se);return b.createElement(n.Provider,{value:C({},e)},t)},{useInjectPropsFromWrapper:e}),n]}var le=new t;function pe(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function w(t){var n;return t?"string"==typeof t?(t=t.trim()).split(/\s*;\s*/).reduce(function(e,t){return t&&2===(t=t.split(/\s*:\s*/)).length&&Object.assign(e,s({},pe(t[0]),t[1])),e},{}):"object"===I(t)?(n={},Object.keys(t).forEach(function(e){n[pe(e)]=t[e]}),n):{}:{}}function k(t){return t?t instanceof Array?t:"string"==typeof t?(t=t.trim()).split(/\s+/):"object"===I(t)?Object.keys(t).filter(function(e){return!!t[e]}):[]:[]}var fe=["ref"];function _e(e){return e.type===P.Text}new t;function ve(e,t){var n;return 0<(null==(n=e.dirs)?void 0:n.length)?b.createElement(de,{vnode:e},t):t}var de=function(){function n(e){var t;return o(this,n),(t=r(this,n,[e])).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:e},t}return u(n,b.Component),a(n,[{key:"findDirectiveName",value:function(e){var n=e.dir,r=-1;return[this.state.savedDirectives.find(function(e,t){if(e.dir===n)return r=t,!0}),r]}},{key:"doDirective",value:function(){var s=this,e=this.state,c=e.savedDirectives;if(!(l=e.ref)){for(var l=(this._reactInternals||this._reactInternalFiber).child;l&&5!==l.tag;)l=l.child;if(!l)return;l=l.stateNode}var p=this.props.vnode,e=p.dirs;e&&(e.forEach(function(e){var t,n,r,o,a,u,i;e&&(i=(t=f(s.findDirectiveName(e),2))[0],t=t[1],n=(a=e.dir).created,r=a.beforeMount,o=a.mounted,u=a.beforeUpdate,a=a.updated,i?(c[t]=C(C(C({},i),e),{},{oldValue:i.oldValue}),i=[l,c[t],p,s.state.prevVnode],null!=u&&u.apply(null,i),null!=a&&a.apply(null,i),c[t].oldValue=e.value):(c.push(e),u=[l,e,p,null],null!=n&&n.apply(null,u),null!=r&&r.apply(null,u),null!=o&&o.apply(null,u),e.oldValue=e.value))}),this.setState({prevVnode:C({},p),savedDirectives:c,ref:l}))}},{key:"componentDidMount",value:function(){this.doDirective()}},{key:"componentDidUpdate",value:function(e){e.vnode!==this.props.vnode&&this.doDirective()}},{key:"componentWillUnmount",value:function(){var a=this,u=this.props.vnode,e=this.state,i=e.savedDirectives,s=e.ref,c=e.prevVnode,e=u.dirs;e&&(e.forEach(function(e){var t,n,r,o;e&&(t=(o=f(a.findDirectiveName(e),2))[0],o=o[1],t)&&(n=(r=e.dir).beforeUnmount,r=r.unmounted,i[o]=C(C({},t),e),o=[s,t,u,c],null!=n&&n.apply(null,o),null!=r)&&r.apply(null,o)}),this.setState({prevVnode:C({},u),savedDirectives:i}))}},{key:"render",value:function(){var e=this.props;e.vnode;return e.children}}]),n}();function ye(o){var a,e;return"function"!=typeof(null==(e=o.type)?void 0:e.originReactComponent)||function(e,t){var n;if("function"==typeof e)return n=e.toString(),void 0!==e.prototype?e.prototype.constructor===e&&("class"==n.slice(0,5)||2<=Object.getOwnPropertyNames(e.prototype).length||!/^function\s+\(|^function\s+anonymous\(/.test(n)&&(t&&/^function\s+[A-Z]/.test(n)||/\b\(this\b|\bthis[\.\[]\b/.test(n)&&(!t||/classCallCheck\(this/.test(n)||/^function\sdefault_\d+\s*\(/.test(n)))):void 0}(null==(e=o.type)?void 0:e.originReactComponent)?((e=null==(e=o.ref)?void 0:e.r)&&"string"==typeof e&&(a=e,e=function(e){var t;e&&(o.ref.i.refs&&((t=C({},o.ref.i.refs))[a]=e,o.ref.i.refs=t),void 0!==(null==(t=o.ref.i.setupState)?void 0:t[a]))&&(o.ref.i.setupState[a]=e)},e=new Proxy(e,{get:function(e,t){return e[t]},set:function(e,t,n){var r;return null!=(r=o.ref.i.refs)&&r[a]&&((r=C({},o.ref.i.refs))[t]=n,o.ref.i.refs=r),n}})),e):null}function $(t,e){return!e||e instanceof Array&&0===e.length||("string"==typeof e&&(e=[e]),(t=C({},t)).props=C({},t.props),e.forEach(function(e){t.props[e]=""})),t}var he=["style","class"];function me(e,t,n,r,o,a,u){var i,s,c;return"all"===t||t instanceof Array||(t=t?[t]:[]),e.type===P.Fragment?o(e.children,n,a):"string"==typeof e.type&&("all"===t||-1<t.indexOf(e.type))?(t=ye(e),c=(s=e.props||{}).style,i=s.class,s=C(C({},V(s,he)),{},{style:w(c),className:Array.from(new Set(k(i))).join(" ")},t?{ref:t}:{}),(c=e.children||s.children)&&((c=-1<["string","number"].indexOf(I(c))?[c]:d(c)).__top__=u),ve(e,$(S.createElement(e.type,s,o(c,n,a)),e.scopeId))):n([e],null,r)}function ge(e,t,n){return!((e=e instanceof Array&&1===e.length?e[0]:e)instanceof Array)&&null==e.key&&1<t.length&&((e=C({},e)).key="_key_".concat(n)),e}function be(e){var h=e.reactComponents,m=e.domTags,e=e.division,g=void 0===e||e;return function f(_,v,d){var y;return _&&_.forEach?(y=[],_.forEach(function(e,t){if(e&&e.type!==P.Comment){if(null==(p=e.type)||!p.originReactComponent)return e.$$typeof||"string"==typeof e||"number"==typeof e?void y.push(e):_e(e)?void(""!==e.children.trim()&&y.push(e.children.trim())):void(e.type&&($(p=ge(me(e,m,v,g,f,d,_.__top__),_,t),e.scopeId),y.push(p)));var n,o,a,u,r,i,s,c,l,p=e.type.originReactComponent;$(s=ge(s="all"===(h="all"===h||h instanceof Array?h:[h])||-1<h.indexOf(p)?(e.__top__=_.__top__,n=e,"_key_".concat(t),o=v,a=f,u=d,(r=n.props||{}).ref,r=V(r,fe),i={},Object.keys(n.children||{}).forEach(function(t){var r=n.children[t],e=E.react.vueNamedSlotsKey.find(function(e){return 0===t.indexOf(e)});e||"default"===t?(e=t.replace(new RegExp("^".concat(e)),"").replace(/^default$/,"children"),i[e]=a(r(),o,u)):i[t]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.__reactArgs=t,a(r.apply(this,t),o,u)}}),s={},c=w(r.style),l=Array.from(new Set(k(r.class))).join(" "),0<Object.keys(c).length&&(s.style=c),""!==l&&(s.className=l),Object.assign(r,C(C({},s),i)),delete r.class,c=r,l=ye(e),e.children&&(e.children.__top__=_.__top__),ve(e,S.createElement(p,C(C(C({},function(e){return 0<arguments.length&&void 0!==e?e:{}}(c,e,p)),e.__extraData||{}),l?{ref:l}:{})))):_e(e)?e.text:me(e,m,v,g,f,d),_,t),e.scopeId),y.push(s)}}),1===y.length?y[0]:y):_}}var W=be({reactComponents:"all",domTags:"all"});function T(e,t){return function(e,t){var t=1<arguments.length&&void 0!==t?t:{},n=t.globalName,r=t.combinedOption,o=(t.transparentApi,_(e,r||{}));return o.install=function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).globalName;return n&&e.component(t||n,o),o},o}(e,{combinedOption:C({pureTransformer:!0,defaultSlotsFormatter:W,defaultPropsFormatter:function(t,o,a){var n={};return Object.keys(t).forEach(function(e){var r=t[e];r&&(r.vueFunction?(n[e]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return W(r.vueFunction.apply(this,t),o,a)},Object.defineProperty(n[e],"length",{get:function(){return r.vueFunction.length}})):r.vueSlot&&(n[e]=W(r.vueSlot,o,a)))}),Object.assign(t,n)}},t)})}var Pe=be({reactComponents:"all",domTags:"all"});var Re=["ref","children","v-slots"];function Se(t){var e=t.ref;if(e)return"object"===I(e)?function(e){t.ref.current=e}:"function"==typeof e?e:void 0}var Oe=["style","class","children"];function Ce(e,t,n,r,o,a){var u,i,s,c;return"all"===t||t instanceof Array||(t=t?[t]:[]),e.type===b.Fragment?o(null==(u=e.props)?void 0:u.children,n):"string"==typeof e.type&&("all"===t||-1<t.indexOf(e.type))?(u=Se(e),c=(t=e.props||{}).style,s=t.class,i=t.children,t=V(t,Oe),s=Array.from(new Set(k(s))).join(" "),c=w(c),t=C(C(C(C({},t),0===Object.keys(c).length?{}:{style:c}),s?{className:s}:{}),u?{ref:u}:{}),0===Object.keys(t).length&&(t=null),(c=i)&&((c=-1<["string","number"].indexOf(I(c))?[c]:c instanceof Array?d(c):C({},c)).__top__=a),P.h(e.type,t,o(c,n))):n([e],null,r)}function Ie(e){var d=e.vueComponents,y=e.domTags,e=e.division,h=void 0===e||e;return function p(f,_){if(null==f)return f;f instanceof Array||(f=[f]);var v=[];return f.forEach(function(e,t){if((null==(c=e.type)||!c.originVueComponent)&&e.type!==g)return e.__v_isVNode||"string"==typeof e||"number"==typeof e?void v.push(e):void(e.type&&(c=Ce(e,y,_,h,p,f.__top__),v.push(c)));var o,a,u,n,r,i,s,c=e.type.originVueComponent;if(e.type===g){if(!e.props.component)return void v.push(e.props.node);c=e.props.component,e=C({},e);var l=C({},e.props);delete l.component,e.props=l}t="all"===(d="all"===d||d instanceof Array?d:[d])||-1<d.indexOf(c)?((e=C({},e)).__top__=f.__top__,l=e,"_key_".concat(t),o=_,a=p,(l=l.props||{}).ref,t=l.children,n=void 0===(r=l["v-slots"])?{}:r,r=V(l,Re),t&&("object"!==I(t)||t instanceof Array||t.$$typeof?n.default=t:n=t),i=null,Object.keys(n||{}).forEach(function(e){var r=n[e];(i=i||{})[e]=function(){if("function"==typeof r){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r=r.apply(this,t)}return a(r,o,u)}}),l={},t=w(r.style),s=Array.from(new Set(k(r.className))).join(" "),0<Object.keys(t).length&&(l.style=t),""!==s&&(l.class=s),Object.assign(r,C({},l)),delete r.className,s=(t={props:r=m(r),slots:i}).props,r=t.slots,Se(e),e.children&&(e.children.__top__=f.__top__),P.h(c,C({},s),r)):Ce(e,y,_,h,p),v.push(t)}),1===(v=v.flat(1/0)).length?v[0]:v}}var je=Ie({vueComponents:"all",domTags:"all"});function Ve(e,t){return function(e,t){var t=1<arguments.length&&void 0!==t?t:{},n=(t.globalName,t.combinedOption);return t.transparentApi,A(e,n||{})}(e,{combinedOption:C({pureTransformer:!0,defaultSlotsFormatter:je},t)})}var Ee=Ie({reactComponents:"all",domTags:"all"});var Ae=["children"];var we=new t;e.REACT_ALL_HANDLERS=Z,e.RenderReactNode=y,e.VueContainer=g,e.applyPureReactInVue=T,e.applyPureVueInReact=Ve,e.applyReactInVue=_,e.applyVueInReact=A,e.createCrossingProviderForPureReactInVue=function(e){var n=b.createContext({});return[function(){return b.useContext(n)},T(function(e){var t=e.children,e=V(e,Ae);return b.createElement(n.Provider,{value:C({},e)},t)},{useInjectPropsFromWrapper:e}),n]},e.createCrossingProviderForPureVueInReact=function(e,n){return n=n||we.getRandomId("veauryCrossingProvide_"),[function(){return P.inject(n)},Ve({setup:function(e,t){return P.provide(n,t.attrs),function(){return P.h(t.slots.default)}}},{useInjectPropsFromWrapper:e})]},e.createCrossingProviderForReactInVue=ce,e.createCrossingProviderForVueInReact=function(e,n){return n=n||le.getRandomId("veauryCrossingProvide_"),[function(){return P.inject(n)},A({setup:function(e,t){return P.provide(n,t.attrs),function(){return P.h(t.slots.default)}}},{useInjectPropsFromWrapper:e})]},e.createReactMissVue=function(e){var t=e.useVueInjection,e=e.beforeVueAppMount,n=(t=f(ce(t),3))[0],r=t[1],t=t[2];return[n,A(r,{beforeVueAppMount:e}),t]},e.getReactNode=function(e){return e=(e=[e="function"==typeof e?e():e]).flat(1/0),Pe(e,function(e){return S.createElement(g,{node:e})})},e.getVNode=function(e){return 1===(e=(e=[e="function"==typeof e?e():e]).flat(1/0)).length&&(e=e[0]),Ee(e,function(e){return P.h(y,{node:e})})},e.injectPropsFromWrapper=function(e,t){return console.warn("[veaury warn]: HOC injectPropsFromWrapper is deprecated! Try using 'useInjectPropsFromWrapper' in the options of 'applyReactInVue' or 'applyVueInReact'!"),"function"!=typeof e?console.warn("[veaury warn]: parameter 'injectionHook' is not a function"):t.__veauryInjectPropsFromWrapper__=e,t},e.lazyPureReactInVue=function(e,t){function n(){return r().then(function(e){return T(e.default,t)})}var r=e;return"object"===I(e)&&(r=e.loader),P.defineAsyncComponent("object"===I(e)?C(C({},e),{},{loader:n}):n)},e.lazyPureVueInReact=function(e,t){return b.lazy(function(){return e().then(function(e){return{default:Ve(e.default,t)}})})},e.lazyReactInVue=function(e,t){function n(){return r().then(function(e){return _(e.default,t)})}var r=e;return"object"===I(e)&&(r=e.loader),P.defineAsyncComponent("object"===I(e)?C(C({},e),{},{loader:n}):n)},e.lazyVueInReact=function(e,t){return b.lazy(function(){return e().then(function(e){return{default:A(e.default,t)}})})},e.setVeauryOptions=p,e.veauryOptions=E,Object.defineProperty(e,"__esModule",{value:!0})});