Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

veaury

Package Overview
Dependencies
Maintainers
0
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

veaury - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1-beta.0

2

dist/veaury.esm.js

@@ -1,1 +0,1 @@

import React__default,{createElement,Fragment,version,Component,forwardRef,lazy,createContext,useContext}from"react";import{reactive,getCurrentInstance,h,Fragment as Fragment$1,Teleport,createApp,defineAsyncComponent,provide,inject,Text,Comment}from"vue";import ReactDOM,{createPortal}from"react-dom";function ownKeys(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _typeof(e){return(_typeof="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 _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _inherits(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&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};for(var r,n={},o=Object.keys(e),a=0;a<o.length;a++)r=o[a],0<=t.indexOf(r)||(n[r]=e[r]);return n}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),a=0;a<o.length;a++)r=o[a],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){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 _assertThisInitialized(e)}function _createSuper(r){var n=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(r);return _possibleConstructorReturn(this,n?(e=_getPrototypeOf(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],c=!0,u=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _nonIterableSpread(){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 _nonIterableRest(){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 _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==typeof e?e:String(e)}var originOptions={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;return createElement(Fragment,null,t,(void 0===e?[]:e).map(function(e){var t=e.Portal,e=e.key;return createElement(t,{key:e})}))}},componentWrapAttrs:{"data-use-vue-component-wrap":"",style:{all:"unset"}},slotWrapAttrs:{"data-use-vue-slot-wrap":"",style:{all:"unset"}}}};function setOptions(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{react:{},vue:{}},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:originOptions,r=2<arguments.length?arguments[2]:void 0,t=(e.vue||(e.vue={}),e.react||(e.react={}),[t,_objectSpread2(_objectSpread2({},e),{},{react:_objectSpread2(_objectSpread2(_objectSpread2({},t.react),e.react),{},{componentWrapAttrs:_objectSpread2(_objectSpread2({},t.react.componentWrapAttrs),e.react.componentWrapAttrs),slotWrapAttrs:_objectSpread2(_objectSpread2({},t.react.slotWrapAttrs),e.react.slotWrapAttrs)}),vue:_objectSpread2(_objectSpread2(_objectSpread2({},t.vue),e.vue),{},{componentWrapAttrs:_objectSpread2(_objectSpread2({},t.vue.componentWrapAttrs),e.vue.componentWrapAttrs),slotWrapAttrs:_objectSpread2(_objectSpread2({},t.vue.slotWrapAttrs),e.vue.slotWrapAttrs)})})]);return r&&t.unshift({}),Object.assign.apply(this,t)}var domMethods=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],domTopObject={Document:{},Element:{}};function overwriteDomMethods(c){Object.keys(domTopObject).forEach(function(e){domMethods.forEach(function(o){var a=window[e].prototype[o];domTopObject[e][o]=a,window[e].prototype[o]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=a.apply(this,t);return n&&(n.constructor!==NodeList||n.constructor===NodeList&&0<n.length)?n:(domTopObject.Element[o]||Element.prototype[o]).apply(c,t)}})})}function recoverDomMethods(){Object.keys(domTopObject).forEach(function(t){domMethods.forEach(function(e){window[t].prototype[e]=domTopObject[t][e]})})}var _excluded=["ref"],_excluded2=["key"],_excluded3=["hashList"],ReactMajorVersion=parseInt(version);function toRaws(e){return e}var FunctionComponentWrap=function(){_inherits(r,Component);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e)}return _createClass(r,[{key:"render",value:function(){var e=this.props.component,t=this.props.passedProps,t=(t.ref,_objectWithoutProperties(t,_excluded));return createElement(e,t,this.props.children)}}]),r}(),createReactContainer=function(_,f,d){var e=function(){_inherits(p,Component);var r=_createSuper(p);function p(e){var t;return _classCallCheck(this,p),(t=r.call(this,e)).state=_objectSpread2(_objectSpread2({},e),f.isSlots?{children:_}:{}),t.setRef=t.setRef.bind(_assertThisInitialized(t)),t.vueInReactCall=t.vueInReactCall.bind(_assertThisInitialized(t)),(t.__veauryVueWrapperRef__=d).__veauryVueInReactCall__=t.vueInReactCall,t}return _createClass(p,[{key:"reactPropsLinkToVueInstance",value:function(t){Object.keys(t).forEach(function(e){d[e]||(d[e]=t[e])}),Object.getOwnPropertyNames(t.__proto__).filter(function(e){return["constructor","render"].indexOf(e)<0}).forEach(function(e){d[e]||(d[e]=t[e])})}},{key:"setRef",value:function(e){var t=this;e&&(d.__veauryReactRef__=e,this.reactPropsLinkToVueInstance(e),Promise.resolve().then(function(){return t.reactPropsLinkToVueInstance(e)}),(this.setRef.current=e).__veauryVueWrapperRef__=d)}},{key:"createSlot",value:function(r){return{originVNode:r,inheritAttrs:!1,__fromReactSlot:!0,render:function(){var e,t;return 1===(null==(e=r=(r=(null==(t=this.$slots)||null==(e=t.default)?void 0:e.call(t))||r)instanceof Function?r(this):r)?void 0:e.length)&&null!=(t=r[0])&&t.data&&((e=this.$attrs).key,t=_objectWithoutProperties(e,_excluded2),r[0].props=_objectSpread2(_objectSpread2({},t),r[0].props)),r}}}},{key:"componentWillUnmount",value:function(){d.__veauryReactRef__&&(d.__veauryReactRef__.__veauryVueWrapperRef__=null,d.__veauryReactRef__=null)}},{key:"vueInReactCall",value:function(e){var r=this,n=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 applyVueInReact(r.createSlot(e instanceof Function?e:[e]),_objectSpread2(_objectSpread2(_objectSpread2({},f),n),{},{isSlots:!0,wrapInstance:d})).render({key:(null==e?void 0:e.key)||void 0})}):applyVueInReact(this.createSlot(e),_objectSpread2(_objectSpread2(_objectSpread2({},f),n),{},{isSlots:!0,wrapInstance:d})).render()}},{key:"render",value:function(){var e,t,r,c=this,n=this.state,o=n.hashList,a=_objectWithoutProperties(n,_excluded3),u={},i={};for(e in a)t=e,r=void 0,a.hasOwnProperty(t)&&null!=a[t]&&(a[t].__slot?(a[t].reactSlot?a[t]=a[t].reactSlot:(r=a[t],f.defaultSlotsFormatter&&a[t].__trueChildren?(a[t].__trueChildren.__top__=c.__veauryVueWrapperRef__,a[t]=f.defaultSlotsFormatter(a[t].__trueChildren,c.vueInReactCall,o),a[t]instanceof Array?a[t]=_toConsumableArray(a[t]):-1<["string","number"].indexOf(_typeof(a[t]))?a[t]=[a[t]]:"object"===_typeof(a[t])&&(a[t]=_objectSpread2({},a[t]))):a[t]=_objectSpread2({},applyVueInReact(c.createSlot(a[t]),_objectSpread2(_objectSpread2({},f),{},{isSlots:!0,wrapInstance:d})).render()),a[t].vueFunction=r),u[t]=a[t]):a[t].__scopedSlot&&(a[t]=a[t](c.createSlot),i[t]=a[t]));var s,l,n={};return n.ref=this.setRef,f.isSlots?this.state.children||this.props.children:(s=a,_.__syncUpdateForPureReactInVue&&Object.keys(_.__syncUpdateForPureReactInVue).map(function(n){var o,a;s[n]&&"function"==typeof s[n]&&(o=c.__veauryVueWrapperRef__,a=s[n],s[n]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.__veaurySyncUpdateProps__(_.__syncUpdateForPureReactInVue[n].apply(this,t)),a.apply(this,t),o.macroTaskUpdate=!0,o.__veauryMountReactComponent__(!0,!0,{})})}),l=_objectSpread2(_objectSpread2(_objectSpread2({},s=f.defaultPropsFormatter?f.defaultPropsFormatter.call(this,s,this.vueInReactCall,o):s),u),i),Object.getPrototypeOf(_)!==Function.prototype&&("object"!==_typeof(_)||_.render)||p.catchVueRefs()?(Object.getPrototypeOf(_)===Function.prototype&&delete n.ref,createElement(_,_extends({},l,n))):createElement(FunctionComponentWrap,_extends({passedProps:l,component:_},n),l.children))}}],[{key:"catchVueRefs",value:function(){if(d.$parent)for(var e in d.$parent.$refs)if(d.$parent.$refs[e]===d)return!0;return!1}}]),p}();return _defineProperty(e,"displayName","applyReact_".concat(_.displayName||_.name||"Component")),e};function applyReactInVue(m){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return m.__esModule&&m.default&&(m=m.default),b.isSlots&&(m=m()),b=setOptions(b,void 0,!0),{originReactComponent:m,setup:function(e,t){var r,n,o,a;if(!b.isSlots)return r={},n=reactive({}),o=getCurrentInstance(),"function"==typeof(a=b.useInjectPropsFromWrapper||m.__veauryInjectPropsFromWrapper__)&&("function"!=typeof(a=a.call(o.proxy,e))?(Object.assign(n,a),r.__veauryInjectedProps__=n):o.proxy.__veauryInjectedComputed__=a),r},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=h(b.react.componentWrap,_objectSpread2({ref:"react"},b.react.componentWrapAttrs||{}),this.VEAURY_Portals.map(function(e){var t=e.Portal,e=e.key;return t(h,e)}));return this.__veauryCheckReactSlot__(this.$slots),e},methods:{__veauryCheckReactSlot__:function(n){var o=this;function a(e,t,r){return t[r]&&(e[r]=t[r],1)}"object"===_typeof(n)&&null!=n&&(n instanceof Array?n.forEach(function(e){o.__veauryCheckReactSlot__(e.children)}):Object.keys(n).forEach(function(e){var t,r,e=n[e];if("function"==typeof e){try{t=e.apply(o,e.__reactArgs||[{}])}catch(e){return}(e.__trueChildren=t).forEach(function(e){e.children&&o.__veauryCheckReactSlot__(e.children)}),1!==t.length||a(e,t=t[0],"reactSlot")||a(e,t,"reactFunction")||t.type!==Fragment$1||1!==(null==(r=t.children)?void 0:r.length)||a(e,r=t.children[0],"reactSlot")||a(e,r,"reactFunction")}}))},__veauryPushVuePortal__:function(e){var t=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;this.VEAURY_Portals.push({Portal:e,key:t})},__veauryRemoveVuePortal__:function(r){var n,e=this.VEAURY_Portals.find(function(e,t){if(e.Portal===r)return n=t,!0});this.__veauryPortalKeyPool__.push(e.key),this.VEAURY_Portals.splice(n,1)},__veauryGetScopeSlot__:function(c,u,t){var i=this;function e(a){function e(){for(var e,t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return c.reactFunction?c.reactFunction.apply(this,n):b.defaultSlotsFormatter?((e=c.apply(this,n)).__top__=i,(e=b.defaultSlotsFormatter(e,i.__veauryVueInReactCall__,u))instanceof Array||-1<_typeof(e).indexOf("string","number")?e=_toConsumableArray(e):"object"===_typeof(e)&&(e=_objectSpread2({},e)),e):applyVueInReact(a(function(){return c.apply(t,n)}),_objectSpread2(_objectSpread2({},b),{},{isSlots:!0,wrapInstance:i})).render()}return b.pureTransformer&&t?e.vueFunction=t:e.vueFunction=c,e}return e.__scopedSlot=!0,e},__veaurySyncUpdateProps__:function(e){this.__veauryReactInstance__&&this.__veauryReactInstance__.setState(e)},__veauryMountReactComponent__:function(e,t){var r,n,o=this,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},c={},u=[],i=this.$.vnode.scopeId,s=(i&&(c[i]="",u.push(i)),{}),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=b.react.vueNamedSlotsKey.find(function(e){return 0===t.indexOf(e)}))||"default"===t?(e=t.replace(new RegExp("^".concat(e)),""),s[e]=o.$slots[t],s[e].__slot=!0):l[t]=o.__veauryGetScopeSlot__(o.$slots[t],u,null==(e=o.$.vnode)||null==(e=e.children)?void 0:e[t]))})(p);(!e||null!=t&&t.slot)&&(n=_objectSpread2({},s),r=n.default,delete n.default),this.__veauryLast__=this.__veauryLast__||{},this.__veauryLast__.slot=this.__veauryLast__.slot||{},this.__veauryLast__.attrs=this.__veauryLast__.attrs||{};var _={slot:function(){o.__veauryLast__.slot=_objectSpread2(_objectSpread2(_objectSpread2({},r?{children:r}:{children:null}),n),l)},attrs:function(){o.__veauryLast__.attrs=o.$attrs}};if(t&&Object.keys(t).forEach(function(e){return _[e]()}),e){function f(){o.__veauryReactInstance__&&o.__veauryReactInstance__.setState(function(t){return Object.keys(t).forEach(function(e){b.isSlots&&"children"===e||delete t[e]}),_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},o.__veauryCache__),toRaws(o.__veauryInjectedProps__)),!b.isSlots&&o.__veauryLast__.slot),toRaws(o.__veauryLast__.attrs))}),o.__veauryCache__=null}!this.microTaskUpdate||this.__veauryCache__||this.$nextTick(function(){f(),o.microTaskUpdate=!1}),this.macroTaskUpdate&&(clearTimeout(this.updateTimer),this.updateTimer=setTimeout(function(){clearTimeout(o.updateTimer),f(),o.macroTaskUpdate=!1})),this.__veauryCache__=_objectSpread2(_objectSpread2({},this.__veauryCache__||{}),_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},a),this.$attrs.class?{className:this.$attrs.class}:{}),_objectSpread2({},c)),{},{hashList:u},this.$attrs.style?{style:this.$attrs.style}:{})),this.macroTaskUpdate||this.microTaskUpdate||f()}else{_.slot(),_.attrs();var i=createReactContainer(m,b,this),d=createElement(i,_extends({},toRaws(this.$attrs),toRaws(this.__veauryInjectedProps__),{children:r},n,l,this.$attrs.class?{className:this.$attrs.class}:{},c,{hashList:u},this.$attrs.style?{style:this.$attrs.style}:{},{ref:function(e){return o.__veauryReactInstance__=e}})),y=this.$refs.react,v=b.wrapInstance;if(v)(v=b.wrapInstance).__veauryVueWrapperRef__=this;else for(var h=this.$parent;h;){if(h.parentReactWrapperRef){v=h.parentReactWrapperRef;break}if(h.reactWrapperRef){v=h.reactWrapperRef;break}h=h.$parent}v?(this.parentReactWrapperRef=v,this.reactPortal=function(){return createPortal(d,y)},v.pushReactPortal(this.reactPortal)):17<ReactMajorVersion?(void 0!==ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED&&(ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0),this.__veauryReactApp__=ReactDOM.createRoot(y),this.__veauryReactApp__.render(d)):ReactDOM.render(d,y)}}},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),overwriteDomMethods(this.$refs.react),this.reactPortal?null!=(e=this.parentReactWrapperRef)&&e.removeReactPortal(this.reactPortal):17<ReactMajorVersion?this.__veauryReactApp__.unmount():ReactDOM.unmountComponentAtNode(this.$refs.react),recoverDomMethods()},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 REACT_ALL_HANDLERS=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 lookupVueWrapperRef(e,t){for(var r=null==(e=t=(null==e?void 0:e._reactInternals)||(null==e?void 0:e._reactInternalFiber)||t)?void 0:e.return;r;){var n=r.stateNode;if(n=(null==n?void 0:n.parentVueWrapperRef)||(null==n?void 0:n.__veauryVueWrapperRef__))return n;r=r.return}}function createModifiers(e,t,r){var n={};return r.forEach(function(e){n[e]=!0}),e[("modelValue"===t?"model":t)+"Modifiers"]=n}function setVModel(e,t,r){var n=this,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"v-model",a=t;if(!(a instanceof Array))throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, such as [val, setter, argumentKey, modifiers] or [val, setter, modifiers]"));if("function"!=typeof a[1])throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, the second element of the array must be a setter function"));var c=a[1],u=("string"==typeof a[2]?(r=a[2],a[3]instanceof Array&&createModifiers(e,r,a[3])):a[2]instanceof Array&&createModifiers(e,r,a[2]),e["onUpdate:"+r]);e["onUpdate:"+r]="function"==typeof u?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];u.apply(n,t),c.apply(n,t)}:c,e[r]=a[0]}function parseVModel(a){var c=this,r={},u=_objectSpread2({},a);return Object.keys(a).forEach(function(n){var o,e=n.match(/^onUpdate-([^-]+)/);if(e)delete u[n],o=r["onUpdate:".concat(e[1])],r["onUpdate:".concat(e[1])]="function"==typeof o?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.apply(c,t),a[n].apply(c,t)}:a[n];else if(e=n.match(/^v-model($|:([^:]+)|-([^:]+))/))e=e[2]||e[3]||"modelValue",setVModel(r,a[n],e),delete u[n];else if("v-models"===n){if("object"!==_typeof(a[n])||a[n]instanceof Array)throw Error("[error:veaury] The parameter 'v-models' must be an object type, such as {[argumentKey]: singleVModel}");var t=a[n];Object.keys(t).forEach(function(e){setVModel(r,t[e],e,"v-models")}),delete u[n]}}),_objectSpread2(_objectSpread2({},u),r)}var _default=function(){function e(){_classCallCheck(this,e),_defineProperty(this,"pool",new Set)}return _createClass(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 RenderReactNode(e,t){var r,e=e.node;if("function"==typeof e&&(e=e()),null!=(r=t)&&r.current||"function"==typeof t||null!=(r=t)&&r.toString().match(/^function/)||(t=null),-1<["string","number"].indexOf(_typeof(e)))return e;if(e instanceof Array){if(1!==e.length)return e;e=e[0]}return _objectSpread2(_objectSpread2({},e),{},{ref:t})}var Bridge=applyReactInVue(RenderReactNode);function WrapVue(e){return h(Bridge,{node:function(){return e.node}})}WrapVue.originReactComponent=forwardRef(RenderReactNode);var _excluded$1=["component","node"],_excluded2$1=["component","$slots","children","class","style"],_excluded3$1=["className","classname"],optionsName="veaury-options",random=new _default;function filterVueComponent(e,t){var r;return e="string"==typeof e&&t?null==(t=t.$)||null==(t=t.appContext)||null==(t=t.app)||null==(r=t.component)?void 0:r.call(t,e):e}function transferSlots(r){if(r)return Object.keys(r).forEach(function(e){var t=r[e];null!=t&&("function"==typeof t?(r[e]=t,r[e].reactFunction=t):(r[e]=function(){return t},r[e].reactSlot=t),t.vueFunction&&(r[e].vueFunction=t.vueFunction))}),r}function VNodeBridge(e){var t;return null==(t=e.node)?void 0:t.call(e)}var VueContainer=forwardRef(function(e,t){var r,n=e.component,o=e.node,e=_objectWithoutProperties(e,_excluded$1);if(null==n&&null==o)return null;if(null!=o){if(o.$$typeof||"string"==typeof o||"number"==typeof o)return o;"function"!=typeof o&&(r=o,o=function(){return r})}var a,n=n||VNodeBridge,c=setOptions(e[optionsName]||{},void 0,!0),u=c.useInjectPropsFromWrapper||n.__veauryInjectPropsFromWrapper__;return c.isSlots||"function"==typeof u&&(a=u(e)),createElement(VueComponentLoader,_extends({},_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({component:n},o?{node:o}:{}),e),a),{},_defineProperty({},optionsName,c)),{ref:t}))}),VueComponentLoader=function(){_inherits(n,Component);var r=_createSuper(n);function n(e){var t;return _classCallCheck(this,n),(t=r.call(this,e)).state={portals:[]},t.__veauryPortalKeyPool__=[],t.__veauryMaxPortalCount__=0,t.__veauryCurrentVueComponent__=e.component,t.__veauryCreateVueInstance__=t.__veauryCreateVueInstance__.bind(_assertThisInitialized(t)),t.__veauryVueComponentContainer__=t.createVueComponentContainer(),t}return _createClass(n,[{key:"pushReactPortal",value:function(e){var t=this.state.portals,r=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;t.push({Portal:e,key:r}),this.setState({portals:t})}},{key:"removeReactPortal",value:function(r){var n,e=this.state.portals,t=e.find(function(e,t){if(e.Portal===r)return n=t,!0});this.__veauryPortalKeyPool__.push(t.key),e.splice(n,1),this.__veauryVueRef__&&this.setState({portals:e})}},{key:"createVueComponentContainer",value:function(){var t=this,r={},e=this.props[optionsName];return e.isSlots?(Object.keys(this.props).forEach(function(e){REACT_ALL_HANDLERS.has(e)&&"function"==typeof t.props[e]&&(r[e]=t.props[e])}),e.vue.slotWrapAttrs&&(r=_objectSpread2(_objectSpread2({},r),e.vue.slotWrapAttrs))):e.vue.componentWrapAttrs&&(r=_objectSpread2(_objectSpread2({},r),e.vue.componentWrapAttrs)),e.vue.componentWrapHOC(createElement("div",_extends({},e.vue.componentWrapAttrs,{ref:this.__veauryCreateVueInstance__,key:null})),r)}},{key:"shouldComponentUpdate",value:function(e,t,r){var n,o,a,c,u=this;return e===this.props||(n=e.component,e[optionsName],o=void 0===(o=e["v-slots"])?null:o,a=e.children,e=_objectWithoutProperties(e,["component",optionsName,"v-slots","children"].map(_toPropertyKey)),this.__veauryCurrentVueComponent__!==n&&this.updateVueComponent(n),!!n.__fromReactSlot||(this.__veauryVueInstance__?(a&&(o=o||{},"object"!==_typeof(a)||a instanceof Array||a.$$typeof?o.default=a:o=a),(c=this.__veauryVueInstance__.$data.$slots)&&Object.keys(c).forEach(function(e){delete c[e]}),o&&(c||(this.__veauryVueInstance__.$data.$slots={}),Object.assign(this.__veauryVueInstance__.$data.$slots,transferSlots(o))),Object.keys(this.__veauryVueInstance__.$data).forEach(function(e){"$slots"!==e&&delete u.__veauryVueInstance__.$data[e]}),this.__veauryVueInstance__&&Object.assign(this.__veauryVueInstance__.$data,parseVModel(e)),!0):void 0))}},{key:"componentWillUnmount",value:function(){this.vuePortal?this.parentVueWrapperRef.__veauryRemoveVuePortal__(this.vuePortal):(this.__veauryVueInstance__&&this.__veauryVueInstance__.$.appContext.app.unmount(),random.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(e){var r=this,p=this,t=this.props,_=(t.component,t[optionsName]),n=t.children,o=t["v-slots"],o=void 0===o?{}:o,t=_objectWithoutProperties(t,["component",optionsName,"children","v-slots"].map(_toPropertyKey));function a(e){this.__veauryVueInstance__||(this.__veauryVueInstance__=e)}n&&("object"!==_typeof(n)||n instanceof Array||n.$$typeof?o.default=n:o=n),(o=transferSlots(o))&&(t.$slots=o),a=a.bind(this);var c,u=_objectSpread2({},parseVModel(t)),i={data:function(){return _.isSlots?{children:p.__veauryCurrentVueComponent__.originVNode}:u},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 h(WrapVue,{node:e,key:(null==e||null==(e=e.data)?void 0:e.key)||t})}):h(WrapVue,{node:e})},getScopedSlots:function(s,e){var t,l=this,r=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),_objectSpread2({},e));for(t in r)(function(u){var e,i;!r.hasOwnProperty(u)||null==(e=r[u])||(r[u]=(i=e,function(){for(var e,t,r,n,o=arguments.length,a=new Array(o),c=0;c<o;c++)a[c]=arguments[c];return i.vueFunction?i.vueFunction.apply(l,a):(r=i.reactSlot,n=i.reactFunction,r=r||(null==n?void 0:n.apply(l,a)),n=_.defaultSlotsFormatter,null!=(e=l.getScopedSlots.__scopeSlots[u])&&null!=(e=e.component)&&null!=(e=e.ctx)&&e.__veauryReactInstance__?(t=l.getScopedSlots.__scopeSlots[u],Promise.resolve().then(function(){var e;null!=(e=t)&&null!=(e=e.component)&&null!=(e=e.ctx)&&null!=(e=e.__veauryReactInstance__)&&e.setState({children:i.apply(l,a)})})):(t=n&&r?[n(r,l.reactInVueCall)]:s(applyReactInVue(function(){return i.apply(l,a)},_objectSpread2(_objectSpread2({},_),{},{isSlots:!0,wrapInstance:p}))),l.getScopedSlots.__scopeSlots[u]=t),i.reactFunction?t.reactFunction=i.reactFunction:i.reactSlot&&(t.reactSlot=i.reactSlot),t)}),r[u].reactFunction=e)})(t);return r}},mounted:function(){e.removeAttribute("id"),p.__veauryVueRef__=this.$refs.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=this,t=this.$data,r=(t.component,t.$slots),n=(t.children,t.class),o=t.style,t=_objectWithoutProperties(t,_excluded2$1),a=this.getScopedSlots(h,_objectSpread2({},r)),r=t.className,c=t.classname,t=_objectWithoutProperties(t,_excluded3$1),u={};return Object.keys(a).forEach(function(e){var t=a[e];u[e]="function"==typeof t?t:function(){return t}}),h(filterVueComponent(p.__veauryCurrentVueComponent__,this),_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},t),n||r||c?{class:n||r||c}:{}),o?{style:o}:{}),{},{ref:"use_vue_wrapper"}),_objectSpread2({},_.isSlots&&this.children?{default:"function"==typeof this.children?this.children:function(){return e.children}}:_objectSpread2({},u)))}};e&&(c=random.getRandomId("__vue_wrapper_container_"),e.id=c,this.__veauryVueTargetId__=c,(n=_.wrapInstance)?(n=_.wrapInstance).reactWrapperRef=p:n=lookupVueWrapperRef(this),n&&document.getElementById(c)?(this.parentVueWrapperRef=n,this.vuePortal=function(e,t){return e(Teleport,{to:"#"+c,key:c},[e(Object.assign(i,{router:r._router}))])},n.__veauryPushVuePortal__(this.vuePortal)):(o=createApp(i),"function"==typeof _.beforeVueAppMount&&_.beforeVueAppMount(o),this.__veauryVueInstance__=o.mount(e)))}},{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 createElement(this.__veauryVueComponentContainer__,{portals:this.state.portals})}}]),n}();function applyVueInReact(r){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=(r||console.warn("Component must be passed in applyVueInReact!"),r.__esModule&&r.default&&(r=r.default),forwardRef(function(e,t){return createElement(VueContainer,_extends({},e,{component:r,ref:t},_defineProperty({},optionsName,n)))}));return e.originVueComponent=r,e}function lazyVueInReact(e,t){return lazy(function(){return e().then(function(e){return{default:applyVueInReact(e.default,t)}})})}function lazyReactInVue(e,t){function r(){return n().then(function(e){return applyReactInVue(e.default,t)})}var n=e;"object"===_typeof(e)&&(n=e.loader);return defineAsyncComponent("object"===_typeof(e)?_objectSpread2(_objectSpread2({},e),{},{loader:r}):r)}function injectPropsFromWrapper(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}var _excluded$2=["children"];function createCrossingProviderForReactInVue(e){var r=createContext({});return[function(){return useContext(r)},applyReactInVue(function(e){var t=e.children,e=_objectWithoutProperties(e,_excluded$2);return createElement(r.Provider,{value:_objectSpread2({},e)},t)},{useInjectPropsFromWrapper:e}),r]}var random$1=new _default;function createCrossingProviderForVueInReact(e,r){return r=r||random$1.getRandomId("veauryCrossingProvide_"),[function(){return inject(r)},applyVueInReact({setup:function(e,t){return provide(r,t.attrs),function(){return h(t.slots.default)}}},{useInjectPropsFromWrapper:e})]}function createReactMissVue(e){var t=e.useVueInjection,e=e.beforeVueAppMount,t=_slicedToArray(createCrossingProviderForReactInVue(t),3),r=t[0],n=t[1],t=t[2];return[r,applyVueInReact(n,{beforeVueAppMount:e}),t]}function transformer(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=t.globalName,n=t.combinedOption,o=(t.transparentApi,applyReactInVue(e,n||{}));return o.install=function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).globalName;return r&&e.component(t||r,o),o},o}function toCamelCase(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function formatStyle(t){var r;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,_defineProperty({},toCamelCase(t[0]),t[1])),e},{}):"object"===_typeof(t)?(r={},Object.keys(t).forEach(function(e){r[toCamelCase(e)]=t[e]}),r):{}:{}}function formatClass(t){return t?t instanceof Array?t:"string"==typeof t?(t=t.trim()).split(/\s+/):"object"===_typeof(t)?Object.keys(t).filter(function(e){return!!t[e]}):[]:[]}var _excluded$3=["ref"];function getChildInfo(r,e,o,a,c){var t=r.props||{},t=(t.ref,_objectWithoutProperties(t,_excluded$3)),u={},n=(Object.keys(r.children||{}).forEach(function(t){var n=r.children[t],e=originOptions.react.vueNamedSlotsKey.find(function(e){return 0===t.indexOf(e)});e||"default"===t?(e=t.replace(new RegExp("^".concat(e)),"").replace(/^default$/,"children"),u[e]=a.call(r.__top__,n(),o,c)):"function"==typeof n&&(u[t]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.__reactArgs=t,a(n.apply(this,t),o,c)})}),{}),i=formatStyle(t.style),s=Array.from(new Set(formatClass(t.class))).join(" ");return 0<Object.keys(i).length&&(n.style=i),""!==s&&(n.className=s),Object.assign(t,_objectSpread2(_objectSpread2({},n),u)),delete t.class,t}function isTextOwner(e){return e.type===Text}var random$2=new _default;function DirectiveHOC(e,t){var r;return 0<(null==(r=e.dirs)?void 0:r.length)?createElement(FakeDirective,{vnode:e},t):t}var FakeDirective=function(){_inherits(n,Component);var r=_createSuper(n);function n(e){var t;return _classCallCheck(this,n),(t=r.call(this,e)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:e},t}return _createClass(n,[{key:"findDirectiveName",value:function(e){var r=e.dir,n=-1;return[this.state.savedDirectives.find(function(e,t){if(e.dir===r)return n=t,!0}),n]}},{key:"doDirective",value:function(){var i=this,e=this.state,s=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,r,n,o,a,c,u;e&&(u=(t=_slicedToArray(i.findDirectiveName(e),2))[0],t=t[1],r=(a=e.dir).created,n=a.beforeMount,o=a.mounted,c=a.beforeUpdate,a=a.updated,u?(s[t]=_objectSpread2(_objectSpread2(_objectSpread2({},u),e),{},{oldValue:u.oldValue}),u=[l,s[t],p,i.state.prevVnode],null!=c&&c.apply(null,u),null!=a&&a.apply(null,u),s[t].oldValue=e.value):(s.push(e),c=[l,e,p,null],null!=r&&r.apply(null,c),null!=n&&n.apply(null,c),null!=o&&o.apply(null,c),e.oldValue=e.value))}),this.setState({prevVnode:_objectSpread2({},p),savedDirectives:s,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,c=this.props.vnode,e=this.state,u=e.savedDirectives,i=e.ref,s=e.prevVnode,e=c.dirs;e&&(e.forEach(function(e){var t,r,n,o;e&&(t=(o=_slicedToArray(a.findDirectiveName(e),2))[0],o=o[1],t&&(r=(n=e.dir).beforeUnmount,n=n.unmounted,u[o]=_objectSpread2(_objectSpread2({},t),e),o=[i,t,c,s],null!=r&&r.apply(null,o),null!=n&&n.apply(null,o)))}),this.setState({prevVnode:_objectSpread2({},c),savedDirectives:u}))}},{key:"render",value:function(){var e=this.props;e.vnode;return e.children}}]),n}();function couldBeClass(e,t){var r;return"function"==typeof e&&(r=e.toString(),void 0!==e.prototype&&(e.prototype.constructor===e&&("class"==r.slice(0,5)||(2<=Object.getOwnPropertyNames(e.prototype).length||!/^function\s+\(|^function\s+anonymous\(/.test(r)&&(!(!t||!/^function\s+[A-Z]/.test(r))||!!/\b\(this\b|\bthis[\.\[]\b/.test(r)&&(!(t&&!/classCallCheck\(this/.test(r))||/^function\sdefault_\d+\s*\(/.test(r)))))))}function resolveRef(o,r){var e,n,t,a;return"function"!=typeof(null==(t=o.type)?void 0:t.originReactComponent)||couldBeClass(null==(t=o.type)?void 0:t.originReactComponent)?(null!=(t=o.ref)&&t.k?(e=null==(t=o.ref)?void 0:t.k,n=null==(t=o.ref)?void 0:t.r):e=null==(t=o.ref)?void 0:t.r,e&&"string"==typeof e&&(a=e,e=function(e){var t;null!=(t=o.ref)&&null!=(t=t.i)&&t.refs&&((t=_objectSpread2({},o.ref.i.refs))[a]=e,o.ref.i.refs=t),n?n.value=e:o.ref.i.setupState&&a in o.ref.i.setupState&&(o.ref.i.setupState[a]=e),e&&(e.__syncUpdateProps=function(){r.__top__&&(o.__extraData=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r.__top__.__syncUpdateProps({}))})},e=new Proxy(e,{get:function(e,t){return e[t]},set:function(e,t,r){var n;return null!=(n=o.ref)&&null!=(n=n.i)&&n.refs&&a in(null==(n=o.ref)||null==(n=n.i)?void 0:n.refs)&&((n=_objectSpread2({},o.ref.i.refs))[t]=r,o.ref.i.refs=n),r}})),e):null}function addScopeId(t,e){return!e||e instanceof Array&&0===e.length||("string"==typeof e&&(e=[e]),(t=_objectSpread2({},t)).props=_objectSpread2({},t.props),e.forEach(function(e){t.props[e]=""})),t}var _excluded$4=["style","class"];function takeVueDomInReact(e,t,r,n,o,a,c){var u,i,s;return"all"===t||t instanceof Array||(t=t?[t]:[]),e.type===Fragment$1?o.call(c,e.children,r,a):"string"==typeof e.type&&("all"===t||-1<t.indexOf(e.type))?(t=resolveRef(e),s=(i=e.props||{}).style,u=i.class,i=_objectSpread2(_objectSpread2({},_objectWithoutProperties(i,_excluded$4)),{},{style:formatStyle(s),className:Array.from(new Set(formatClass(u))).join(" ")},t?{ref:t}:{}),(s=e.children||i.children)&&((s=-1<["string","number"].indexOf(_typeof(s))?[s]:_toConsumableArray(s)).__top__=c),DirectiveHOC(e,addScopeId(React__default.createElement(e.type,i,o.call(c,s,r,a)),e.scopeId))):r([e],null,n)}function pureInterceptProps(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},a=1<arguments.length?arguments[1]:void 0,c=2<arguments.length?arguments[2]:void 0;return c.__syncUpdateForPureReactInVue&&Object.keys(c.__syncUpdateForPureReactInVue).map(function(n){var o;e[n]&&"function"==typeof e[n]&&a.__top__&&(o=e[n],e[n]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.__extraData=c.__syncUpdateForPureReactInVue[n].apply(this,t),a.__top__.__veaurySyncUpdateProps__({}),a.__top__.macroTaskUpdate=!0,o.apply(this,t),a.__top__&&Promise.resolve().then(function(){a.__extraData=null,a.__top__.__veauryMountReactComponent__(!0)})})}),e}function setChildKey(e,t,r){return!((e=e instanceof Array&&1===e.length?e[0]:e)instanceof Array)&&null==e.key&&1<t.length&&((e=_objectSpread2({},e)).key="_key_".concat(r)),e}function getDistinguishReactOrVue(e){var l=e.reactComponents,p=e.domTags,e=e.division,_=void 0===e||e;return function a(c,u,i){var s;return c&&c.forEach?(c.__top__||(c.__top__=this),s=[],c.forEach(function(e,t){if(e&&e.type!==Comment){if(null==(o=e.type)||!o.originReactComponent)return e.$$typeof||"string"==typeof e||"number"==typeof e?void s.push(e):isTextOwner(e)?void(""!==e.children.trim()&&s.push(e.children.trim())):void(e.type&&(addScopeId(o=setChildKey(takeVueDomInReact(e,p,u,_,a,i,c.__top__),c,t),e.scopeId),s.push(o)));var r,n,o=e.type.originReactComponent;addScopeId(r=setChildKey(r="all"===(l="all"===l||l instanceof Array?l:[l])||-1<l.indexOf(o)?(e.__top__=c.__top__,r=getChildInfo(e,"_key_".concat(t),u,a,i),n=resolveRef(e,c),e.children&&(e.children.__top__=c.__top__),DirectiveHOC(e,React__default.createElement(o,_objectSpread2(_objectSpread2(_objectSpread2({},pureInterceptProps(r,e,o)),e.__extraData||{}),n?{ref:n}:{})))):isTextOwner(e)?e.text:takeVueDomInReact(e,p,u,_,a,i),c,t),e.scopeId),s.push(r)}}),1===s.length?s[0]:s):c}}var NoWrapFunction=getDistinguishReactOrVue({reactComponents:"all",domTags:"all"});function applyPureReactInVue(e,t){return transformer(e,{combinedOption:_objectSpread2({pureTransformer:!0,defaultSlotsFormatter:NoWrapFunction,defaultPropsFormatter:function(t,o,a){var r={};return Object.keys(t).forEach(function(e){var n=t[e];n&&(n.vueFunction?(r[e]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return NoWrapFunction(n.vueFunction.apply(this,t),o,a)},Object.defineProperty(r[e],"length",{get:function(){return n.vueFunction.length}})):n.vueSlot&&(r[e]=NoWrapFunction(n.vueSlot,o,a)))}),Object.assign(t,r)}},t)})}var NoWrapFunction$1=getDistinguishReactOrVue({reactComponents:"all",domTags:"all"});function getReactNode(e){return e=(e=[e="function"==typeof e?e():e]).flat(1/0),NoWrapFunction$1(e,function(e){return React__default.createElement(VueContainer,{node:e})})}function transformer$1(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=(t.globalName,t.combinedOption);t.transparentApi;return applyVueInReact(e,r||{})}var _excluded$5=["ref","children","v-slots"];function getChildInfo$1(e,t,o,a,c){var e=e.props||{},r=(e.ref,e.children),n=e["v-slots"],u=void 0===n?{}:n,n=_objectWithoutProperties(e,_excluded$5),i=(r&&("object"!==_typeof(r)||r instanceof Array||r.$$typeof?u.default=r:u=r),null),e=(Object.keys(u||{}).forEach(function(e){var n=u[e];(i=i||{})[e]=function(){if("function"==typeof n){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n=n.apply(this,t)}return a(n,o,c)}}),{}),r=formatStyle(n.style),s=Array.from(new Set(formatClass(n.className))).join(" ");return 0<Object.keys(r).length&&(e.style=r),""!==s&&(e.class=s),Object.assign(n,_objectSpread2({},e)),delete n.className,{props:n=parseVModel(n),slots:i}}function resolveRef$1(t){var e=t.ref;if(e)return"object"===_typeof(e)?function(e){t.ref.current=e}:"function"==typeof e?e:void 0}var _excluded$6=["style","class","children"];function takeReactDomInVue(e,t,r,n,o,a){var c,u,i,s;return"all"===t||t instanceof Array||(t=t?[t]:[]),e.type===Fragment?o(null==(c=e.props)?void 0:c.children,r):"string"==typeof e.type&&("all"===t||-1<t.indexOf(e.type))?(c=resolveRef$1(e),s=(t=e.props||{}).style,i=t.class,u=t.children,t=_objectWithoutProperties(t,_excluded$6),i=Array.from(new Set(formatClass(i))).join(" "),s=formatStyle(s),t=_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},t),0===Object.keys(s).length?{}:{style:s}),i?{className:i}:{}),c?{ref:c}:{}),0===Object.keys(t).length&&(t=null),(s=u)&&((s=-1<["string","number"].indexOf(_typeof(s))?[s]:s instanceof Array?_toConsumableArray(s):_objectSpread2({},s)).__top__=a),h(e.type,t,o(s,r))):r([e],null,n)}function getDistinguishReactOrVue$1(e){var i=e.vueComponents,s=e.domTags,e=e.division,l=void 0===e||e;return function o(a,c){if(null==a)return a;a instanceof Array||(a=[a]);var u=[];return a.forEach(function(e,t){if((null==(r=e.type)||!r.originVueComponent)&&e.type!==VueContainer)return e.__v_isVNode||"string"==typeof e||"number"==typeof e?void u.push(e):void(e.type&&(r=takeReactDomInVue(e,s,c,l,o,a.__top__),u.push(r)));var r=e.type.originVueComponent;if(e.type===VueContainer){if(!e.props.component)return void u.push(e.props.node);r=e.props.component,e=_objectSpread2({},e);var n=_objectSpread2({},e.props);delete n.component,e.props=n}r="all"===(i="all"===i||i instanceof Array?i:[i])||-1<i.indexOf(r)?((e=_objectSpread2({},e)).__top__=a.__top__,t=(n=getChildInfo$1(e,"_key_".concat(t),c,o)).props,n=n.slots,resolveRef$1(e),e.children&&(e.children.__top__=a.__top__),h(r,_objectSpread2({},t),n)):takeReactDomInVue(e,s,c,l,o),u.push(r)}),1===(u=u.flat(1/0)).length?u[0]:u}}var NoWrapFunction$2=getDistinguishReactOrVue$1({vueComponents:"all",domTags:"all"});function applyPureVueInReact(e,t){return transformer$1(e,{combinedOption:_objectSpread2({pureTransformer:!0,defaultSlotsFormatter:NoWrapFunction$2},t)})}var NoWrapFunction$3=getDistinguishReactOrVue$1({reactComponents:"all",domTags:"all"});function getVNode(e){return 1===(e=(e=[e="function"==typeof e?e():e]).flat(1/0)).length&&(e=e[0]),NoWrapFunction$3(e,function(e){return h(WrapVue,{node:e})})}function lazyReactInVue$1(e,t){function r(){return n().then(function(e){return applyPureReactInVue(e.default,t)})}var n=e;"object"===_typeof(e)&&(n=e.loader);return defineAsyncComponent("object"===_typeof(e)?_objectSpread2(_objectSpread2({},e),{},{loader:r}):r)}function lazyVueInReact$1(e,t){return lazy(function(){return e().then(function(e){return{default:applyPureVueInReact(e.default,t)}})})}var _excluded$7=["children"];function createCrossingProviderForReactInVue$1(e){var r=createContext({});return[function(){return useContext(r)},applyPureReactInVue(function(e){var t=e.children,e=_objectWithoutProperties(e,_excluded$7);return createElement(r.Provider,{value:_objectSpread2({},e)},t)},{useInjectPropsFromWrapper:e}),r]}var random$3=new _default;function createCrossingProviderForVueInReact$1(e,r){return r=r||random$3.getRandomId("veauryCrossingProvide_"),[function(){return inject(r)},applyPureVueInReact({setup:function(e,t){return provide(r,t.attrs),function(){return h(t.slots.default)}}},{useInjectPropsFromWrapper:e})]}function injectSyncUpdateForPureReactInVue(e,t){e.__syncUpdateForPureReactInVue||(e.__syncUpdateForPureReactInVue={}),Object.assign(e.__syncUpdateForPureReactInVue,t)}export{REACT_ALL_HANDLERS,WrapVue as RenderReactNode,VueContainer,applyPureReactInVue,applyPureVueInReact,applyReactInVue,applyVueInReact,createCrossingProviderForReactInVue$1 as createCrossingProviderForPureReactInVue,createCrossingProviderForVueInReact$1 as createCrossingProviderForPureVueInReact,createCrossingProviderForReactInVue,createCrossingProviderForVueInReact,createReactMissVue,getReactNode,getVNode,injectPropsFromWrapper,injectSyncUpdateForPureReactInVue,lazyReactInVue$1 as lazyPureReactInVue,lazyVueInReact$1 as lazyPureVueInReact,lazyReactInVue,lazyVueInReact,setOptions as setVeauryOptions,originOptions as veauryOptions};
import React__default,{createElement,Fragment,version,Component,forwardRef,lazy,createContext,useContext}from"react";import{reactive,getCurrentInstance,h,Fragment as Fragment$1,Teleport,createApp,defineAsyncComponent,provide,inject,Text,Comment}from"vue";import ReactDOM,{createPortal}from"react-dom";function ownKeys(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _typeof(e){return(_typeof="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 _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _inherits(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&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};for(var r,n={},o=Object.keys(e),a=0;a<o.length;a++)r=o[a],0<=t.indexOf(r)||(n[r]=e[r]);return n}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),a=0;a<o.length;a++)r=o[a],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){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 _assertThisInitialized(e)}function _createSuper(r){var n=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(r);return _possibleConstructorReturn(this,n?(e=_getPrototypeOf(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],c=!0,u=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _nonIterableSpread(){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 _nonIterableRest(){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 _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==typeof e?e:String(e)}var originOptions={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;return createElement(Fragment,null,t,(void 0===e?[]:e).map(function(e){var t=e.Portal,e=e.key;return createElement(t,{key:e})}))}},componentWrapAttrs:{"data-use-vue-component-wrap":"",style:{all:"unset"}},slotWrapAttrs:{"data-use-vue-slot-wrap":"",style:{all:"unset"}}}};function setOptions(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{react:{},vue:{}},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:originOptions,r=2<arguments.length?arguments[2]:void 0,t=(e.vue||(e.vue={}),e.react||(e.react={}),[t,_objectSpread2(_objectSpread2({},e),{},{react:_objectSpread2(_objectSpread2(_objectSpread2({},t.react),e.react),{},{componentWrapAttrs:_objectSpread2(_objectSpread2({},t.react.componentWrapAttrs),e.react.componentWrapAttrs),slotWrapAttrs:_objectSpread2(_objectSpread2({},t.react.slotWrapAttrs),e.react.slotWrapAttrs)}),vue:_objectSpread2(_objectSpread2(_objectSpread2({},t.vue),e.vue),{},{componentWrapAttrs:_objectSpread2(_objectSpread2({},t.vue.componentWrapAttrs),e.vue.componentWrapAttrs),slotWrapAttrs:_objectSpread2(_objectSpread2({},t.vue.slotWrapAttrs),e.vue.slotWrapAttrs)})})]);return r&&t.unshift({}),Object.assign.apply(this,t)}var domMethods=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],domTopObject={Document:{},Element:{}};function overwriteDomMethods(c){Object.keys(domTopObject).forEach(function(e){domMethods.forEach(function(o){var a=window[e].prototype[o];a&&(domTopObject[e][o]=a,window[e].prototype[o]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=a.apply(this,t);return n&&(n.constructor!==NodeList||n.constructor===NodeList&&0<n.length)?n:("getElementById"===o&&(o="querySelector",t=["#"+t[0]]),(domTopObject.Element[o]||Element.prototype[o]).apply(c,t))})})})}function recoverDomMethods(){Object.keys(domTopObject).forEach(function(t){domMethods.forEach(function(e){window[t].prototype[e]=domTopObject[t][e]})})}var _excluded=["ref"],_excluded2=["key"],_excluded3=["hashList"],ReactMajorVersion=parseInt(version);function toRaws(e){return e}var FunctionComponentWrap=function(){_inherits(r,Component);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e)}return _createClass(r,[{key:"render",value:function(){var e=this.props.component,t=this.props.passedProps,t=(t.ref,_objectWithoutProperties(t,_excluded));return createElement(e,t,this.props.children)}}]),r}(),createReactContainer=function(_,f,d){var e=function(){_inherits(p,Component);var r=_createSuper(p);function p(e){var t;return _classCallCheck(this,p),(t=r.call(this,e)).state=_objectSpread2(_objectSpread2({},e),f.isSlots?{children:_}:{}),t.setRef=t.setRef.bind(_assertThisInitialized(t)),t.vueInReactCall=t.vueInReactCall.bind(_assertThisInitialized(t)),(t.__veauryVueWrapperRef__=d).__veauryVueInReactCall__=t.vueInReactCall,t}return _createClass(p,[{key:"reactPropsLinkToVueInstance",value:function(t){Object.keys(t).forEach(function(e){d[e]||(d[e]=t[e])}),Object.getOwnPropertyNames(t.__proto__).filter(function(e){return["constructor","render"].indexOf(e)<0}).forEach(function(e){d[e]||(d[e]=t[e])})}},{key:"setRef",value:function(e){var t=this;e&&(d.__veauryReactRef__=e,this.reactPropsLinkToVueInstance(e),Promise.resolve().then(function(){return t.reactPropsLinkToVueInstance(e)}),(this.setRef.current=e).__veauryVueWrapperRef__=d)}},{key:"createSlot",value:function(r){return{originVNode:r,inheritAttrs:!1,__fromReactSlot:!0,render:function(){var e,t;return 1===(null==(e=r=(r=(null==(t=this.$slots)||null==(e=t.default)?void 0:e.call(t))||r)instanceof Function?r(this):r)?void 0:e.length)&&null!=(t=r[0])&&t.data&&((e=this.$attrs).key,t=_objectWithoutProperties(e,_excluded2),r[0].props=_objectSpread2(_objectSpread2({},t),r[0].props)),r}}}},{key:"componentWillUnmount",value:function(){d.__veauryReactRef__&&(d.__veauryReactRef__.__veauryVueWrapperRef__=null,d.__veauryReactRef__=null)}},{key:"vueInReactCall",value:function(e){var r=this,n=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 applyVueInReact(r.createSlot(e instanceof Function?e:[e]),_objectSpread2(_objectSpread2(_objectSpread2({},f),n),{},{isSlots:!0,wrapInstance:d})).render({key:(null==e?void 0:e.key)||void 0})}):applyVueInReact(this.createSlot(e),_objectSpread2(_objectSpread2(_objectSpread2({},f),n),{},{isSlots:!0,wrapInstance:d})).render()}},{key:"render",value:function(){var e,t,r,c=this,n=this.state,o=n.hashList,a=_objectWithoutProperties(n,_excluded3),u={},i={};for(e in a)t=e,r=void 0,a.hasOwnProperty(t)&&null!=a[t]&&(a[t].__slot?(a[t].reactSlot?a[t]=a[t].reactSlot:(r=a[t],f.defaultSlotsFormatter&&a[t].__trueChildren?(a[t].__trueChildren.__top__=c.__veauryVueWrapperRef__,a[t]=f.defaultSlotsFormatter(a[t].__trueChildren,c.vueInReactCall,o),a[t]instanceof Array?a[t]=_toConsumableArray(a[t]):-1<["string","number"].indexOf(_typeof(a[t]))?a[t]=[a[t]]:"object"===_typeof(a[t])&&(a[t]=_objectSpread2({},a[t]))):a[t]=_objectSpread2({},applyVueInReact(c.createSlot(a[t]),_objectSpread2(_objectSpread2({},f),{},{isSlots:!0,wrapInstance:d})).render()),a[t].vueFunction=r),u[t]=a[t]):a[t].__scopedSlot&&(a[t]=a[t](c.createSlot),i[t]=a[t]));var s,l,n={};return n.ref=this.setRef,f.isSlots?this.state.children||this.props.children:(s=a,_.__syncUpdateForPureReactInVue&&Object.keys(_.__syncUpdateForPureReactInVue).map(function(n){var o,a;s[n]&&"function"==typeof s[n]&&(o=c.__veauryVueWrapperRef__,a=s[n],s[n]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.__veaurySyncUpdateProps__(_.__syncUpdateForPureReactInVue[n].apply(this,t)),a.apply(this,t),o.macroTaskUpdate=!0,o.__veauryMountReactComponent__(!0,!0,{})})}),l=_objectSpread2(_objectSpread2(_objectSpread2({},s=f.defaultPropsFormatter?f.defaultPropsFormatter.call(this,s,this.vueInReactCall,o):s),u),i),Object.getPrototypeOf(_)!==Function.prototype&&("object"!==_typeof(_)||_.render)||p.catchVueRefs()?(Object.getPrototypeOf(_)===Function.prototype&&delete n.ref,createElement(_,_extends({},l,n))):createElement(FunctionComponentWrap,_extends({passedProps:l,component:_},n),l.children))}}],[{key:"catchVueRefs",value:function(){if(d.$parent)for(var e in d.$parent.$refs)if(d.$parent.$refs[e]===d)return!0;return!1}}]),p}();return _defineProperty(e,"displayName","applyReact_".concat(_.displayName||_.name||"Component")),e};function applyReactInVue(m){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return m.__esModule&&m.default&&(m=m.default),b.isSlots&&(m=m()),b=setOptions(b,void 0,!0),{originReactComponent:m,setup:function(e,t){var r,n,o,a;if(!b.isSlots)return r={},n=reactive({}),o=getCurrentInstance(),"function"==typeof(a=b.useInjectPropsFromWrapper||m.__veauryInjectPropsFromWrapper__)&&("function"!=typeof(a=a.call(o.proxy,e))?(Object.assign(n,a),r.__veauryInjectedProps__=n):o.proxy.__veauryInjectedComputed__=a),r},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=h(b.react.componentWrap,_objectSpread2({ref:"react"},b.react.componentWrapAttrs||{}),this.VEAURY_Portals.map(function(e){var t=e.Portal,e=e.key;return t(h,e)}));return this.__veauryCheckReactSlot__(this.$slots),e},methods:{__veauryCheckReactSlot__:function(n){var o=this;function a(e,t,r){return t[r]&&(e[r]=t[r],1)}"object"===_typeof(n)&&null!=n&&(n instanceof Array?n.forEach(function(e){o.__veauryCheckReactSlot__(e.children)}):Object.keys(n).forEach(function(e){var t,r,e=n[e];if("function"==typeof e){try{t=e.apply(o,e.__reactArgs||[{}])}catch(e){return}(e.__trueChildren=t).forEach(function(e){e.children&&o.__veauryCheckReactSlot__(e.children)}),1!==t.length||a(e,t=t[0],"reactSlot")||a(e,t,"reactFunction")||t.type!==Fragment$1||1!==(null==(r=t.children)?void 0:r.length)||a(e,r=t.children[0],"reactSlot")||a(e,r,"reactFunction")}}))},__veauryPushVuePortal__:function(e){var t=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;this.VEAURY_Portals.push({Portal:e,key:t})},__veauryRemoveVuePortal__:function(r){var n,e=this.VEAURY_Portals.find(function(e,t){if(e.Portal===r)return n=t,!0});this.__veauryPortalKeyPool__.push(e.key),this.VEAURY_Portals.splice(n,1)},__veauryGetScopeSlot__:function(c,u,t){var i=this;function e(a){function e(){for(var e,t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return c.reactFunction?c.reactFunction.apply(this,n):b.defaultSlotsFormatter?((e=c.apply(this,n)).__top__=i,(e=b.defaultSlotsFormatter(e,i.__veauryVueInReactCall__,u))instanceof Array||-1<_typeof(e).indexOf("string","number")?e=_toConsumableArray(e):"object"===_typeof(e)&&(e=_objectSpread2({},e)),e):applyVueInReact(a(function(){return c.apply(t,n)}),_objectSpread2(_objectSpread2({},b),{},{isSlots:!0,wrapInstance:i})).render()}return b.pureTransformer&&t?e.vueFunction=t:e.vueFunction=c,e}return e.__scopedSlot=!0,e},__veaurySyncUpdateProps__:function(e){this.__veauryReactInstance__&&this.__veauryReactInstance__.setState(e)},__veauryMountReactComponent__:function(e,t){var r,n,o=this,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},c={},u=[],i=this.$.vnode.scopeId,s=(i&&(c[i]="",u.push(i)),{}),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=b.react.vueNamedSlotsKey.find(function(e){return 0===t.indexOf(e)}))||"default"===t?(e=t.replace(new RegExp("^".concat(e)),""),s[e]=o.$slots[t],s[e].__slot=!0):l[t]=o.__veauryGetScopeSlot__(o.$slots[t],u,null==(e=o.$.vnode)||null==(e=e.children)?void 0:e[t]))})(p);(!e||null!=t&&t.slot)&&(n=_objectSpread2({},s),r=n.default,delete n.default),this.__veauryLast__=this.__veauryLast__||{},this.__veauryLast__.slot=this.__veauryLast__.slot||{},this.__veauryLast__.attrs=this.__veauryLast__.attrs||{};var _={slot:function(){o.__veauryLast__.slot=_objectSpread2(_objectSpread2(_objectSpread2({},r?{children:r}:{children:null}),n),l)},attrs:function(){o.__veauryLast__.attrs=o.$attrs}};if(t&&Object.keys(t).forEach(function(e){return _[e]()}),e){function f(){o.__veauryReactInstance__&&o.__veauryReactInstance__.setState(function(t){return Object.keys(t).forEach(function(e){b.isSlots&&"children"===e||delete t[e]}),_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},o.__veauryCache__),toRaws(o.__veauryInjectedProps__)),!b.isSlots&&o.__veauryLast__.slot),toRaws(o.__veauryLast__.attrs))}),o.__veauryCache__=null}!this.microTaskUpdate||this.__veauryCache__||this.$nextTick(function(){f(),o.microTaskUpdate=!1}),this.macroTaskUpdate&&(clearTimeout(this.updateTimer),this.updateTimer=setTimeout(function(){clearTimeout(o.updateTimer),f(),o.macroTaskUpdate=!1})),this.__veauryCache__=_objectSpread2(_objectSpread2({},this.__veauryCache__||{}),_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},a),this.$attrs.class?{className:this.$attrs.class}:{}),_objectSpread2({},c)),{},{hashList:u},this.$attrs.style?{style:this.$attrs.style}:{})),this.macroTaskUpdate||this.microTaskUpdate||f()}else{_.slot(),_.attrs();var i=createReactContainer(m,b,this),d=createElement(i,_extends({},toRaws(this.$attrs),toRaws(this.__veauryInjectedProps__),{children:r},n,l,this.$attrs.class?{className:this.$attrs.class}:{},c,{hashList:u},this.$attrs.style?{style:this.$attrs.style}:{},{ref:function(e){return o.__veauryReactInstance__=e}})),y=this.$refs.react,v=b.wrapInstance;if(v)(v=b.wrapInstance).__veauryVueWrapperRef__=this;else for(var h=this.$parent;h;){if(h.parentReactWrapperRef){v=h.parentReactWrapperRef;break}if(h.reactWrapperRef){v=h.reactWrapperRef;break}h=h.$parent}v?(this.parentReactWrapperRef=v,this.reactPortal=function(){return createPortal(d,y)},v.pushReactPortal(this.reactPortal)):17<ReactMajorVersion?(void 0!==ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED&&(ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0),this.__veauryReactApp__=ReactDOM.createRoot(y),this.__veauryReactApp__.render(d)):ReactDOM.render(d,y)}}},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),overwriteDomMethods(this.$refs.react),this.reactPortal?null!=(e=this.parentReactWrapperRef)&&e.removeReactPortal(this.reactPortal):17<ReactMajorVersion?this.__veauryReactApp__.unmount():ReactDOM.unmountComponentAtNode(this.$refs.react),recoverDomMethods()},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 REACT_ALL_HANDLERS=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 lookupVueWrapperRef(e,t){for(var r=null==(e=t=(null==e?void 0:e._reactInternals)||(null==e?void 0:e._reactInternalFiber)||t)?void 0:e.return;r;){var n=r.stateNode;if(n=(null==n?void 0:n.parentVueWrapperRef)||(null==n?void 0:n.__veauryVueWrapperRef__))return n;r=r.return}}function createModifiers(e,t,r){var n={};return r.forEach(function(e){n[e]=!0}),e[("modelValue"===t?"model":t)+"Modifiers"]=n}function setVModel(e,t,r){var n=this,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"v-model",a=t;if(!(a instanceof Array))throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, such as [val, setter, argumentKey, modifiers] or [val, setter, modifiers]"));if("function"!=typeof a[1])throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, the second element of the array must be a setter function"));var c=a[1],u=("string"==typeof a[2]?(r=a[2],a[3]instanceof Array&&createModifiers(e,r,a[3])):a[2]instanceof Array&&createModifiers(e,r,a[2]),e["onUpdate:"+r]);e["onUpdate:"+r]="function"==typeof u?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];u.apply(n,t),c.apply(n,t)}:c,e[r]=a[0]}function parseVModel(a){var c=this,r={},u=_objectSpread2({},a);return Object.keys(a).forEach(function(n){var o,e=n.match(/^onUpdate-([^-]+)/);if(e)delete u[n],o=r["onUpdate:".concat(e[1])],r["onUpdate:".concat(e[1])]="function"==typeof o?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.apply(c,t),a[n].apply(c,t)}:a[n];else if(e=n.match(/^v-model($|:([^:]+)|-([^:]+))/))e=e[2]||e[3]||"modelValue",setVModel(r,a[n],e),delete u[n];else if("v-models"===n){if("object"!==_typeof(a[n])||a[n]instanceof Array)throw Error("[error:veaury] The parameter 'v-models' must be an object type, such as {[argumentKey]: singleVModel}");var t=a[n];Object.keys(t).forEach(function(e){setVModel(r,t[e],e,"v-models")}),delete u[n]}}),_objectSpread2(_objectSpread2({},u),r)}var _default=function(){function e(){_classCallCheck(this,e),_defineProperty(this,"pool",new Set)}return _createClass(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 RenderReactNode(e,t){var r,e=e.node;if("function"==typeof e&&(e=e()),null!=(r=t)&&r.current||"function"==typeof t||null!=(r=t)&&r.toString().match(/^function/)||(t=null),-1<["string","number"].indexOf(_typeof(e)))return e;if(e instanceof Array){if(1!==e.length)return e;e=e[0]}return _objectSpread2(_objectSpread2({},e),{},{ref:t})}var Bridge=applyReactInVue(RenderReactNode);function WrapVue(e){return h(Bridge,{node:function(){return e.node}})}WrapVue.originReactComponent=forwardRef(RenderReactNode);var _excluded$1=["component","node"],_excluded2$1=["component","$slots","children","class","style"],_excluded3$1=["className","classname"],optionsName="veaury-options",random=new _default;function filterVueComponent(e,t){var r;return e="string"==typeof e&&t?null==(t=t.$)||null==(t=t.appContext)||null==(t=t.app)||null==(r=t.component)?void 0:r.call(t,e):e}function transferSlots(r){if(r)return Object.keys(r).forEach(function(e){var t=r[e];null!=t&&("function"==typeof t?(r[e]=t,r[e].reactFunction=t):(r[e]=function(){return t},r[e].reactSlot=t),t.vueFunction&&(r[e].vueFunction=t.vueFunction))}),r}function VNodeBridge(e){var t;return null==(t=e.node)?void 0:t.call(e)}var VueContainer=forwardRef(function(e,t){var r,n=e.component,o=e.node,e=_objectWithoutProperties(e,_excluded$1);if(null==n&&null==o)return null;if(null!=o){if(o.$$typeof||"string"==typeof o||"number"==typeof o)return o;"function"!=typeof o&&(r=o,o=function(){return r})}var a,n=n||VNodeBridge,c=setOptions(e[optionsName]||{},void 0,!0),u=c.useInjectPropsFromWrapper||n.__veauryInjectPropsFromWrapper__;return c.isSlots||"function"==typeof u&&(a=u(e)),createElement(VueComponentLoader,_extends({},_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({component:n},o?{node:o}:{}),e),a),{},_defineProperty({},optionsName,c)),{ref:t}))}),VueComponentLoader=function(){_inherits(n,Component);var r=_createSuper(n);function n(e){var t;return _classCallCheck(this,n),(t=r.call(this,e)).state={portals:[]},t.__veauryPortalKeyPool__=[],t.__veauryMaxPortalCount__=0,t.__veauryCurrentVueComponent__=e.component,t.__veauryCreateVueInstance__=t.__veauryCreateVueInstance__.bind(_assertThisInitialized(t)),t.__veauryVueComponentContainer__=t.createVueComponentContainer(),t}return _createClass(n,[{key:"pushReactPortal",value:function(e){var t=this.state.portals,r=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;t.push({Portal:e,key:r}),this.setState({portals:t})}},{key:"removeReactPortal",value:function(r){var n,e=this.state.portals,t=e.find(function(e,t){if(e.Portal===r)return n=t,!0});this.__veauryPortalKeyPool__.push(t.key),e.splice(n,1),this.__veauryVueRef__&&this.setState({portals:e})}},{key:"createVueComponentContainer",value:function(){var t=this,r={},e=this.props[optionsName];return e.isSlots?(Object.keys(this.props).forEach(function(e){REACT_ALL_HANDLERS.has(e)&&"function"==typeof t.props[e]&&(r[e]=t.props[e])}),e.vue.slotWrapAttrs&&(r=_objectSpread2(_objectSpread2({},r),e.vue.slotWrapAttrs))):e.vue.componentWrapAttrs&&(r=_objectSpread2(_objectSpread2({},r),e.vue.componentWrapAttrs)),e.vue.componentWrapHOC(createElement("div",_extends({},e.vue.componentWrapAttrs,{ref:this.__veauryCreateVueInstance__,key:null})),r)}},{key:"shouldComponentUpdate",value:function(e,t,r){var n,o,a,c,u=this;return e===this.props||(n=e.component,e[optionsName],o=void 0===(o=e["v-slots"])?null:o,a=e.children,e=_objectWithoutProperties(e,["component",optionsName,"v-slots","children"].map(_toPropertyKey)),this.__veauryCurrentVueComponent__!==n&&this.updateVueComponent(n),!!n.__fromReactSlot||(this.__veauryVueInstance__?(a&&(o=o||{},"object"!==_typeof(a)||a instanceof Array||a.$$typeof?o.default=a:o=a),(c=this.__veauryVueInstance__.$data.$slots)&&Object.keys(c).forEach(function(e){delete c[e]}),o&&(c||(this.__veauryVueInstance__.$data.$slots={}),Object.assign(this.__veauryVueInstance__.$data.$slots,transferSlots(o))),Object.keys(this.__veauryVueInstance__.$data).forEach(function(e){"$slots"!==e&&delete u.__veauryVueInstance__.$data[e]}),this.__veauryVueInstance__&&Object.assign(this.__veauryVueInstance__.$data,parseVModel(e)),!0):void 0))}},{key:"componentWillUnmount",value:function(){this.vuePortal?this.parentVueWrapperRef.__veauryRemoveVuePortal__(this.vuePortal):(this.__veauryVueInstance__&&this.__veauryVueInstance__.$.appContext.app.unmount(),random.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(e){var r=this,p=this,t=this.props,_=(t.component,t[optionsName]),n=t.children,o=t["v-slots"],o=void 0===o?{}:o,t=_objectWithoutProperties(t,["component",optionsName,"children","v-slots"].map(_toPropertyKey));function a(e){this.__veauryVueInstance__||(this.__veauryVueInstance__=e)}n&&("object"!==_typeof(n)||n instanceof Array||n.$$typeof?o.default=n:o=n),(o=transferSlots(o))&&(t.$slots=o),a=a.bind(this);var c,u=_objectSpread2({},parseVModel(t)),i={data:function(){return _.isSlots?{children:p.__veauryCurrentVueComponent__.originVNode}:u},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 h(WrapVue,{node:e,key:(null==e||null==(e=e.data)?void 0:e.key)||t})}):h(WrapVue,{node:e})},getScopedSlots:function(s,e){var t,l=this,r=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),_objectSpread2({},e));for(t in r)(function(u){var e,i;!r.hasOwnProperty(u)||null==(e=r[u])||(r[u]=(i=e,function(){for(var e,t,r,n,o=arguments.length,a=new Array(o),c=0;c<o;c++)a[c]=arguments[c];return i.vueFunction?i.vueFunction.apply(l,a):(r=i.reactSlot,n=i.reactFunction,r=r||(null==n?void 0:n.apply(l,a)),n=_.defaultSlotsFormatter,null!=(e=l.getScopedSlots.__scopeSlots[u])&&null!=(e=e.component)&&null!=(e=e.ctx)&&e.__veauryReactInstance__?(t=l.getScopedSlots.__scopeSlots[u],Promise.resolve().then(function(){var e;null!=(e=t)&&null!=(e=e.component)&&null!=(e=e.ctx)&&null!=(e=e.__veauryReactInstance__)&&e.setState({children:i.apply(l,a)})})):(t=n&&r?[n(r,l.reactInVueCall)]:s(applyReactInVue(function(){return i.apply(l,a)},_objectSpread2(_objectSpread2({},_),{},{isSlots:!0,wrapInstance:p}))),l.getScopedSlots.__scopeSlots[u]=t),i.reactFunction?t.reactFunction=i.reactFunction:i.reactSlot&&(t.reactSlot=i.reactSlot),t)}),r[u].reactFunction=e)})(t);return r}},mounted:function(){e.removeAttribute("id"),p.__veauryVueRef__=this.$refs.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=this,t=this.$data,r=(t.component,t.$slots),n=(t.children,t.class),o=t.style,t=_objectWithoutProperties(t,_excluded2$1),a=this.getScopedSlots(h,_objectSpread2({},r)),r=t.className,c=t.classname,t=_objectWithoutProperties(t,_excluded3$1),u={};return Object.keys(a).forEach(function(e){var t=a[e];u[e]="function"==typeof t?t:function(){return t}}),h(filterVueComponent(p.__veauryCurrentVueComponent__,this),_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},t),n||r||c?{class:n||r||c}:{}),o?{style:o}:{}),{},{ref:"use_vue_wrapper"}),_objectSpread2({},_.isSlots&&this.children?{default:"function"==typeof this.children?this.children:function(){return e.children}}:_objectSpread2({},u)))}};e&&(c=random.getRandomId("__vue_wrapper_container_"),e.id=c,this.__veauryVueTargetId__=c,(n=_.wrapInstance)?(n=_.wrapInstance).reactWrapperRef=p:n=lookupVueWrapperRef(this),n&&document.getElementById(c)?(this.parentVueWrapperRef=n,this.vuePortal=function(e,t){return e(Teleport,{to:"#"+c,key:c},[e(Object.assign(i,{router:r._router}))])},n.__veauryPushVuePortal__(this.vuePortal)):(o=createApp(i),"function"==typeof _.beforeVueAppMount&&_.beforeVueAppMount(o),this.__veauryVueInstance__=o.mount(e)))}},{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 createElement(this.__veauryVueComponentContainer__,{portals:this.state.portals})}}]),n}();function applyVueInReact(r){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=(r||console.warn("Component must be passed in applyVueInReact!"),r.__esModule&&r.default&&(r=r.default),forwardRef(function(e,t){return createElement(VueContainer,_extends({},e,{component:r,ref:t},_defineProperty({},optionsName,n)))}));return e.originVueComponent=r,e}function lazyVueInReact(e,t){return lazy(function(){return e().then(function(e){return{default:applyVueInReact(e.default,t)}})})}function lazyReactInVue(e,t){function r(){return n().then(function(e){return applyReactInVue(e.default,t)})}var n=e;"object"===_typeof(e)&&(n=e.loader);return defineAsyncComponent("object"===_typeof(e)?_objectSpread2(_objectSpread2({},e),{},{loader:r}):r)}function injectPropsFromWrapper(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}var _excluded$2=["children"];function createCrossingProviderForReactInVue(e){var r=createContext({});return[function(){return useContext(r)},applyReactInVue(function(e){var t=e.children,e=_objectWithoutProperties(e,_excluded$2);return createElement(r.Provider,{value:_objectSpread2({},e)},t)},{useInjectPropsFromWrapper:e}),r]}var random$1=new _default;function createCrossingProviderForVueInReact(e,r){return r=r||random$1.getRandomId("veauryCrossingProvide_"),[function(){return inject(r)},applyVueInReact({setup:function(e,t){return provide(r,t.attrs),function(){return h(t.slots.default)}}},{useInjectPropsFromWrapper:e})]}function createReactMissVue(e){var t=e.useVueInjection,e=e.beforeVueAppMount,t=_slicedToArray(createCrossingProviderForReactInVue(t),3),r=t[0],n=t[1],t=t[2];return[r,applyVueInReact(n,{beforeVueAppMount:e}),t]}function transformer(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=t.globalName,n=t.combinedOption,o=(t.transparentApi,applyReactInVue(e,n||{}));return o.install=function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).globalName;return r&&e.component(t||r,o),o},o}function toCamelCase(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function formatStyle(t){var r;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,_defineProperty({},toCamelCase(t[0]),t[1])),e},{}):"object"===_typeof(t)?(r={},Object.keys(t).forEach(function(e){r[toCamelCase(e)]=t[e]}),r):{}:{}}function formatClass(t){return t?t instanceof Array?t:"string"==typeof t?(t=t.trim()).split(/\s+/):"object"===_typeof(t)?Object.keys(t).filter(function(e){return!!t[e]}):[]:[]}var _excluded$3=["ref"];function getChildInfo(r,e,o,a,c){var t=r.props||{},t=(t.ref,_objectWithoutProperties(t,_excluded$3)),u={},n=(Object.keys(r.children||{}).forEach(function(t){var n=r.children[t],e=originOptions.react.vueNamedSlotsKey.find(function(e){return 0===t.indexOf(e)});e||"default"===t?(e=t.replace(new RegExp("^".concat(e)),"").replace(/^default$/,"children"),u[e]=a.call(r.__top__,n(),o,c)):"function"==typeof n&&(u[t]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.__reactArgs=t,a(n.apply(this,t),o,c)})}),{}),i=formatStyle(t.style),s=Array.from(new Set(formatClass(t.class))).join(" ");return 0<Object.keys(i).length&&(n.style=i),""!==s&&(n.className=s),Object.assign(t,_objectSpread2(_objectSpread2({},n),u)),delete t.class,t}function isTextOwner(e){return e.type===Text}var random$2=new _default;function DirectiveHOC(e,t){var r;return 0<(null==(r=e.dirs)?void 0:r.length)?createElement(FakeDirective,{vnode:e},t):t}var FakeDirective=function(){_inherits(n,Component);var r=_createSuper(n);function n(e){var t;return _classCallCheck(this,n),(t=r.call(this,e)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:e},t}return _createClass(n,[{key:"findDirectiveName",value:function(e){var r=e.dir,n=-1;return[this.state.savedDirectives.find(function(e,t){if(e.dir===r)return n=t,!0}),n]}},{key:"doDirective",value:function(){var i=this,e=this.state,s=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,r,n,o,a,c,u;e&&(u=(t=_slicedToArray(i.findDirectiveName(e),2))[0],t=t[1],r=(a=e.dir).created,n=a.beforeMount,o=a.mounted,c=a.beforeUpdate,a=a.updated,u?(s[t]=_objectSpread2(_objectSpread2(_objectSpread2({},u),e),{},{oldValue:u.oldValue}),u=[l,s[t],p,i.state.prevVnode],null!=c&&c.apply(null,u),null!=a&&a.apply(null,u),s[t].oldValue=e.value):(s.push(e),c=[l,e,p,null],null!=r&&r.apply(null,c),null!=n&&n.apply(null,c),null!=o&&o.apply(null,c),e.oldValue=e.value))}),this.setState({prevVnode:_objectSpread2({},p),savedDirectives:s,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,c=this.props.vnode,e=this.state,u=e.savedDirectives,i=e.ref,s=e.prevVnode,e=c.dirs;e&&(e.forEach(function(e){var t,r,n,o;e&&(t=(o=_slicedToArray(a.findDirectiveName(e),2))[0],o=o[1],t&&(r=(n=e.dir).beforeUnmount,n=n.unmounted,u[o]=_objectSpread2(_objectSpread2({},t),e),o=[i,t,c,s],null!=r&&r.apply(null,o),null!=n&&n.apply(null,o)))}),this.setState({prevVnode:_objectSpread2({},c),savedDirectives:u}))}},{key:"render",value:function(){var e=this.props;e.vnode;return e.children}}]),n}();function couldBeClass(e,t){var r;return"function"==typeof e&&(r=e.toString(),void 0!==e.prototype&&(e.prototype.constructor===e&&("class"==r.slice(0,5)||(2<=Object.getOwnPropertyNames(e.prototype).length||!/^function\s+\(|^function\s+anonymous\(/.test(r)&&(!(!t||!/^function\s+[A-Z]/.test(r))||!!/\b\(this\b|\bthis[\.\[]\b/.test(r)&&(!(t&&!/classCallCheck\(this/.test(r))||/^function\sdefault_\d+\s*\(/.test(r)))))))}function resolveRef(o,r){var e,n,t,a;return"function"!=typeof(null==(t=o.type)?void 0:t.originReactComponent)||couldBeClass(null==(t=o.type)?void 0:t.originReactComponent)?(null!=(t=o.ref)&&t.k?(e=null==(t=o.ref)?void 0:t.k,n=null==(t=o.ref)?void 0:t.r):e=null==(t=o.ref)?void 0:t.r,e&&"string"==typeof e&&(a=e,e=function(e){var t;null!=(t=o.ref)&&null!=(t=t.i)&&t.refs&&((t=_objectSpread2({},o.ref.i.refs))[a]=e,o.ref.i.refs=t),n?n.value=e:o.ref.i.setupState&&a in o.ref.i.setupState&&(o.ref.i.setupState[a]=e),e&&(e.__syncUpdateProps=function(){r.__top__&&(o.__extraData=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r.__top__.__syncUpdateProps({}))})},e=new Proxy(e,{get:function(e,t){return e[t]},set:function(e,t,r){var n;return null!=(n=o.ref)&&null!=(n=n.i)&&n.refs&&a in(null==(n=o.ref)||null==(n=n.i)?void 0:n.refs)&&((n=_objectSpread2({},o.ref.i.refs))[t]=r,o.ref.i.refs=n),r}})),e):null}function addScopeId(t,e){return!e||e instanceof Array&&0===e.length||("string"==typeof e&&(e=[e]),(t=_objectSpread2({},t)).props=_objectSpread2({},t.props),e.forEach(function(e){t.props[e]=""})),t}var _excluded$4=["style","class"];function takeVueDomInReact(e,t,r,n,o,a,c){var u,i,s;return"all"===t||t instanceof Array||(t=t?[t]:[]),e.type===Fragment$1?o.call(c,e.children,r,a):"string"==typeof e.type&&("all"===t||-1<t.indexOf(e.type))?(t=resolveRef(e),s=(i=e.props||{}).style,u=i.class,i=_objectSpread2(_objectSpread2({},_objectWithoutProperties(i,_excluded$4)),{},{style:formatStyle(s),className:Array.from(new Set(formatClass(u))).join(" ")},t?{ref:t}:{}),(s=e.children||i.children)&&((s=-1<["string","number"].indexOf(_typeof(s))?[s]:_toConsumableArray(s)).__top__=c),DirectiveHOC(e,addScopeId(React__default.createElement(e.type,i,o.call(c,s,r,a)),e.scopeId))):r([e],null,n)}function pureInterceptProps(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},a=1<arguments.length?arguments[1]:void 0,c=2<arguments.length?arguments[2]:void 0;return c.__syncUpdateForPureReactInVue&&Object.keys(c.__syncUpdateForPureReactInVue).map(function(n){var o;e[n]&&"function"==typeof e[n]&&a.__top__&&(o=e[n],e[n]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.__extraData=c.__syncUpdateForPureReactInVue[n].apply(this,t),a.__top__.__veaurySyncUpdateProps__({}),a.__top__.macroTaskUpdate=!0,o.apply(this,t),a.__top__&&Promise.resolve().then(function(){a.__extraData=null,a.__top__.__veauryMountReactComponent__(!0)})})}),e}function setChildKey(e,t,r){return!((e=e instanceof Array&&1===e.length?e[0]:e)instanceof Array)&&null==e.key&&1<t.length&&((e=_objectSpread2({},e)).key="_key_".concat(r)),e}function getDistinguishReactOrVue(e){var l=e.reactComponents,p=e.domTags,e=e.division,_=void 0===e||e;return function a(c,u,i){var s;return c&&c.forEach?(c.__top__||(c.__top__=this),s=[],c.forEach(function(e,t){if(e&&e.type!==Comment){if(null==(o=e.type)||!o.originReactComponent)return e.$$typeof||"string"==typeof e||"number"==typeof e?void s.push(e):isTextOwner(e)?void(""!==e.children.trim()&&s.push(e.children.trim())):void(e.type&&(addScopeId(o=setChildKey(takeVueDomInReact(e,p,u,_,a,i,c.__top__),c,t),e.scopeId),s.push(o)));var r,n,o=e.type.originReactComponent;addScopeId(r=setChildKey(r="all"===(l="all"===l||l instanceof Array?l:[l])||-1<l.indexOf(o)?(e.__top__=c.__top__,r=getChildInfo(e,"_key_".concat(t),u,a,i),n=resolveRef(e,c),e.children&&(e.children.__top__=c.__top__),DirectiveHOC(e,React__default.createElement(o,_objectSpread2(_objectSpread2(_objectSpread2({},pureInterceptProps(r,e,o)),e.__extraData||{}),n?{ref:n}:{})))):isTextOwner(e)?e.text:takeVueDomInReact(e,p,u,_,a,i),c,t),e.scopeId),s.push(r)}}),1===s.length?s[0]:s):c}}var NoWrapFunction=getDistinguishReactOrVue({reactComponents:"all",domTags:"all"});function applyPureReactInVue(e,t){return transformer(e,{combinedOption:_objectSpread2({pureTransformer:!0,defaultSlotsFormatter:NoWrapFunction,defaultPropsFormatter:function(t,o,a){var r={};return Object.keys(t).forEach(function(e){var n=t[e];n&&(n.vueFunction?(r[e]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return NoWrapFunction(n.vueFunction.apply(this,t),o,a)},Object.defineProperty(r[e],"length",{get:function(){return n.vueFunction.length}})):n.vueSlot&&(r[e]=NoWrapFunction(n.vueSlot,o,a)))}),Object.assign(t,r)}},t)})}var NoWrapFunction$1=getDistinguishReactOrVue({reactComponents:"all",domTags:"all"});function getReactNode(e){return e=(e=[e="function"==typeof e?e():e]).flat(1/0),NoWrapFunction$1(e,function(e){return React__default.createElement(VueContainer,{node:e})})}function transformer$1(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=(t.globalName,t.combinedOption);t.transparentApi;return applyVueInReact(e,r||{})}var _excluded$5=["ref","children","v-slots"];function getChildInfo$1(e,t,o,a,c){var e=e.props||{},r=(e.ref,e.children),n=e["v-slots"],u=void 0===n?{}:n,n=_objectWithoutProperties(e,_excluded$5),i=(r&&("object"!==_typeof(r)||r instanceof Array||r.$$typeof?u.default=r:u=r),null),e=(Object.keys(u||{}).forEach(function(e){var n=u[e];(i=i||{})[e]=function(){if("function"==typeof n){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n=n.apply(this,t)}return a(n,o,c)}}),{}),r=formatStyle(n.style),s=Array.from(new Set(formatClass(n.className))).join(" ");return 0<Object.keys(r).length&&(e.style=r),""!==s&&(e.class=s),Object.assign(n,_objectSpread2({},e)),delete n.className,{props:n=parseVModel(n),slots:i}}function resolveRef$1(t){var e=t.ref;if(e)return"object"===_typeof(e)?function(e){t.ref.current=e}:"function"==typeof e?e:void 0}var _excluded$6=["style","class","children"];function takeReactDomInVue(e,t,r,n,o,a){var c,u,i,s;return"all"===t||t instanceof Array||(t=t?[t]:[]),e.type===Fragment?o(null==(c=e.props)?void 0:c.children,r):"string"==typeof e.type&&("all"===t||-1<t.indexOf(e.type))?(c=resolveRef$1(e),s=(t=e.props||{}).style,i=t.class,u=t.children,t=_objectWithoutProperties(t,_excluded$6),i=Array.from(new Set(formatClass(i))).join(" "),s=formatStyle(s),t=_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},t),0===Object.keys(s).length?{}:{style:s}),i?{className:i}:{}),c?{ref:c}:{}),0===Object.keys(t).length&&(t=null),(s=u)&&((s=-1<["string","number"].indexOf(_typeof(s))?[s]:s instanceof Array?_toConsumableArray(s):_objectSpread2({},s)).__top__=a),h(e.type,t,o(s,r))):r([e],null,n)}function getDistinguishReactOrVue$1(e){var i=e.vueComponents,s=e.domTags,e=e.division,l=void 0===e||e;return function o(a,c){if(null==a)return a;a instanceof Array||(a=[a]);var u=[];return a.forEach(function(e,t){if((null==(r=e.type)||!r.originVueComponent)&&e.type!==VueContainer)return e.__v_isVNode||"string"==typeof e||"number"==typeof e?void u.push(e):void(e.type&&(r=takeReactDomInVue(e,s,c,l,o,a.__top__),u.push(r)));var r=e.type.originVueComponent;if(e.type===VueContainer){if(!e.props.component)return void u.push(e.props.node);r=e.props.component,e=_objectSpread2({},e);var n=_objectSpread2({},e.props);delete n.component,e.props=n}r="all"===(i="all"===i||i instanceof Array?i:[i])||-1<i.indexOf(r)?((e=_objectSpread2({},e)).__top__=a.__top__,t=(n=getChildInfo$1(e,"_key_".concat(t),c,o)).props,n=n.slots,resolveRef$1(e),e.children&&(e.children.__top__=a.__top__),h(r,_objectSpread2({},t),n)):takeReactDomInVue(e,s,c,l,o),u.push(r)}),1===(u=u.flat(1/0)).length?u[0]:u}}var NoWrapFunction$2=getDistinguishReactOrVue$1({vueComponents:"all",domTags:"all"});function applyPureVueInReact(e,t){return transformer$1(e,{combinedOption:_objectSpread2({pureTransformer:!0,defaultSlotsFormatter:NoWrapFunction$2},t)})}var NoWrapFunction$3=getDistinguishReactOrVue$1({reactComponents:"all",domTags:"all"});function getVNode(e){return 1===(e=(e=[e="function"==typeof e?e():e]).flat(1/0)).length&&(e=e[0]),NoWrapFunction$3(e,function(e){return h(WrapVue,{node:e})})}function lazyReactInVue$1(e,t){function r(){return n().then(function(e){return applyPureReactInVue(e.default,t)})}var n=e;"object"===_typeof(e)&&(n=e.loader);return defineAsyncComponent("object"===_typeof(e)?_objectSpread2(_objectSpread2({},e),{},{loader:r}):r)}function lazyVueInReact$1(e,t){return lazy(function(){return e().then(function(e){return{default:applyPureVueInReact(e.default,t)}})})}var _excluded$7=["children"];function createCrossingProviderForReactInVue$1(e){var r=createContext({});return[function(){return useContext(r)},applyPureReactInVue(function(e){var t=e.children,e=_objectWithoutProperties(e,_excluded$7);return createElement(r.Provider,{value:_objectSpread2({},e)},t)},{useInjectPropsFromWrapper:e}),r]}var random$3=new _default;function createCrossingProviderForVueInReact$1(e,r){return r=r||random$3.getRandomId("veauryCrossingProvide_"),[function(){return inject(r)},applyPureVueInReact({setup:function(e,t){return provide(r,t.attrs),function(){return h(t.slots.default)}}},{useInjectPropsFromWrapper:e})]}function injectSyncUpdateForPureReactInVue(e,t){e.__syncUpdateForPureReactInVue||(e.__syncUpdateForPureReactInVue={}),Object.assign(e.__syncUpdateForPureReactInVue,t)}export{REACT_ALL_HANDLERS,WrapVue as RenderReactNode,VueContainer,applyPureReactInVue,applyPureVueInReact,applyReactInVue,applyVueInReact,createCrossingProviderForReactInVue$1 as createCrossingProviderForPureReactInVue,createCrossingProviderForVueInReact$1 as createCrossingProviderForPureVueInReact,createCrossingProviderForReactInVue,createCrossingProviderForVueInReact,createReactMissVue,getReactNode,getVNode,injectPropsFromWrapper,injectSyncUpdateForPureReactInVue,lazyReactInVue$1 as lazyPureReactInVue,lazyVueInReact$1 as lazyPureVueInReact,lazyReactInVue,lazyVueInReact,setOptions as setVeauryOptions,originOptions as veauryOptions};

@@ -1,1 +0,1 @@

!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,R,P){"use strict";var S="default"in b?b.default:b,O="default"in P?P.default:P;function U(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 I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function C(e){return(C="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 N(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,r.key,r)}}function a(e,t,n){t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1})}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(){return(V=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&&n(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function j(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 s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=i(n),t=(e=r?(e=i(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}}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=!0,i=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);u=!0);}catch(e){i=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(i)throw o}}return a}}(e,t)||x(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 v(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(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 x(e,t){var n;if(e)return"string"==typeof e?r(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)?r(e,t):void 0}function r(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}function D(e){e=function(e,t){if("object"!=typeof e||null===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)}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,I(I({},e),{},{react:I(I(I({},t.react),e.react),{},{componentWrapAttrs:I(I({},t.react.componentWrapAttrs),e.react.componentWrapAttrs),slotWrapAttrs:I(I({},t.react.slotWrapAttrs),e.react.slotWrapAttrs)}),vue:I(I(I({},t.vue),e.vue),{},{componentWrapAttrs:I(I({},t.vue.componentWrapAttrs),e.vue.componentWrapAttrs),slotWrapAttrs:I(I({},t.vue.slotWrapAttrs),e.vue.slotWrapAttrs)})})]);return n&&t.unshift({}),Object.assign.apply(this,t)}var M=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],_={Document:{},Element:{}};function L(){Object.keys(_).forEach(function(t){M.forEach(function(e){window[t].prototype[e]=_[t][e]})})}var K=["ref"],Y=["key"],B=["hashList"],G=parseInt(b.version);function z(f,_,y){var e=function(){u(p,b.Component);var n=l(p);function p(e){var t;return o(this,p),(t=n.call(this,e)).state=I(I({},e),_.isSlots?{children:f}:{}),t.setRef=t.setRef.bind(s(t)),t.vueInReactCall=t.vueInReactCall.bind(s(t)),(t.__veauryVueWrapperRef__=y).__veauryVueInReactCall__=t.vueInReactCall,t}return a(p,[{key:"reactPropsLinkToVueInstance",value:function(t){Object.keys(t).forEach(function(e){y[e]||(y[e]=t[e])}),Object.getOwnPropertyNames(t.__proto__).filter(function(e){return["constructor","render"].indexOf(e)<0}).forEach(function(e){y[e]||(y[e]=t[e])})}},{key:"setRef",value:function(e){var t=this;e&&(y.__veauryReactRef__=e,this.reactPropsLinkToVueInstance(e),Promise.resolve().then(function(){return t.reactPropsLinkToVueInstance(e)}),(this.setRef.current=e).__veauryVueWrapperRef__=y)}},{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=j(e,Y),n[0].props=I(I({},t),n[0].props)),n}}}},{key:"componentWillUnmount",value:function(){y.__veauryReactRef__&&(y.__veauryReactRef__.__veauryVueWrapperRef__=null,y.__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]),I(I(I({},_),r),{},{isSlots:!0,wrapInstance:y})).render({key:(null==e?void 0:e.key)||void 0})}):A(this.createSlot(e),I(I(I({},_),r),{},{isSlots:!0,wrapInstance:y})).render()}},{key:"render",value:function(){var e,t,n,u=this,r=this.state,o=r.hashList,a=j(r,B),i={},c={};for(e in a)t=e,n=void 0,a.hasOwnProperty(t)&&null!=a[t]&&(a[t].__slot?(a[t].reactSlot?a[t]=a[t].reactSlot:(n=a[t],_.defaultSlotsFormatter&&a[t].__trueChildren?(a[t].__trueChildren.__top__=u.__veauryVueWrapperRef__,a[t]=_.defaultSlotsFormatter(a[t].__trueChildren,u.vueInReactCall,o),a[t]instanceof Array?a[t]=v(a[t]):-1<["string","number"].indexOf(C(a[t]))?a[t]=[a[t]]:"object"===C(a[t])&&(a[t]=I({},a[t]))):a[t]=I({},A(u.createSlot(a[t]),I(I({},_),{},{isSlots:!0,wrapInstance:y})).render()),a[t].vueFunction=n),i[t]=a[t]):a[t].__scopedSlot&&(a[t]=a[t](u.createSlot),c[t]=a[t]));var s,l,r={};return r.ref=this.setRef,_.isSlots?this.state.children||this.props.children:(s=a,f.__syncUpdateForPureReactInVue&&Object.keys(f.__syncUpdateForPureReactInVue).map(function(r){var o,a;s[r]&&"function"==typeof s[r]&&(o=u.__veauryVueWrapperRef__,a=s[r],s[r]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.__veaurySyncUpdateProps__(f.__syncUpdateForPureReactInVue[r].apply(this,t)),a.apply(this,t),o.macroTaskUpdate=!0,o.__veauryMountReactComponent__(!0,!0,{})})}),l=I(I(I({},s=_.defaultPropsFormatter?_.defaultPropsFormatter.call(this,s,this.vueInReactCall,o):s),i),c),Object.getPrototypeOf(f)!==Function.prototype&&("object"!==C(f)||f.render)||p.catchVueRefs()?(Object.getPrototypeOf(f)===Function.prototype&&delete r.ref,b.createElement(f,V({},l,r))):b.createElement(q,V({passedProps:l,component:f},r),l.children))}}],[{key:"catchVueRefs",value:function(){if(y.$parent)for(var e in y.$parent.$refs)if(y.$parent.$refs[e]===y)return!0;return!1}}]),p}();return c(e,"displayName","applyReact_".concat(f.displayName||f.name||"Component")),e}var q=function(){u(n,b.Component);var t=l(n);function n(e){return o(this,n),t.call(this,e)}return a(n,[{key:"render",value:function(){var e=this.props.component,t=this.props.passedProps,t=(t.ref,j(t,K));return b.createElement(e,t,this.props.children)}}]),n}();function y(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=R.reactive({}),o=R.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=R.h(g.react.componentWrap,I({ref:"react"},g.react.componentWrapAttrs||{}),this.VEAURY_Portals.map(function(e){var t=e.Portal,e=e.key;return t(R.h,e)}));return this.__veauryCheckReactSlot__(this.$slots),e},methods:{__veauryCheckReactSlot__:function(r){var o=this;function a(e,t,n){return t[n]&&(e[n]=t[n],1)}"object"===C(r)&&null!=r&&(r instanceof Array?r.forEach(function(e){o.__veauryCheckReactSlot__(e.children)}):Object.keys(r).forEach(function(e){var t,n,e=r[e];if("function"==typeof e){try{t=e.apply(o,e.__reactArgs||[{}])}catch(e){return}(e.__trueChildren=t).forEach(function(e){e.children&&o.__veauryCheckReactSlot__(e.children)}),1!==t.length||a(e,t=t[0],"reactSlot")||a(e,t,"reactFunction")||t.type!==R.Fragment||1!==(null==(n=t.children)?void 0:n.length)||a(e,n=t.children[0],"reactSlot")||a(e,n,"reactFunction")}}))},__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 c=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__=c,(e=g.defaultSlotsFormatter(e,c.__veauryVueInReactCall__,i))instanceof Array||-1<C(e).indexOf("string","number")?e=v(e):"object"===C(e)&&(e=I({},e)),e):A(a(function(){return u.apply(t,r)}),I(I({},g),{},{isSlots:!0,wrapInstance:c})).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=[],c=this.$.vnode.scopeId,s=(c&&(u[c]="",i.push(c)),{}),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)),""),s[e]=o.$slots[t],s[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=I({},s),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=I(I(I({},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]}),I(I(I(I({},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__=I(I({},this.__veauryCache__||{}),I(I(I(I({},a),this.$attrs.class?{className:this.$attrs.class}:{}),I({},u)),{},{hashList:i},this.$attrs.style?{style:this.$attrs.style}:{})),this.macroTaskUpdate||this.microTaskUpdate||_()}else{f.slot(),f.attrs();var c=z(m,g,this),y=b.createElement(c,V({},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}})),v=this.$refs.react,d=g.wrapInstance;if(d)(d=g.wrapInstance).__veauryVueWrapperRef__=this;else for(var h=this.$parent;h;){if(h.parentReactWrapperRef){d=h.parentReactWrapperRef;break}if(h.reactWrapperRef){d=h.reactWrapperRef;break}h=h.$parent}d?(this.parentReactWrapperRef=d,this.reactPortal=function(){return P.createPortal(y,v)},d.pushReactPortal(this.reactPortal)):17<G?(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(v),this.__veauryReactApp__.render(y)):O.render(y,v)}}},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 u,e;clearTimeout(this.updateTimer),u=this.$refs.react,Object.keys(_).forEach(function(e){M.forEach(function(o){var a=window[e].prototype[o];_[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[o]||Element.prototype[o]).apply(u,t)}})}),this.reactPortal?null!=(e=this.parentReactWrapperRef)&&e.removeReactPortal(this.reactPortal):17<G?this.__veauryReactApp__.unmount():O.unmountComponentAtNode(this.$refs.react),L()},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 H=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 Z(e,t,n){var r={};n.forEach(function(e){r[e]=!0}),e[("modelValue"===t?"model":t)+"Modifiers"]=r}function J(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&&Z(e,n,t[3])):t[2]instanceof Array&&Z(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=I({},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",J(n,a[r],e),delete i[r];else if("v-models"===r){if("object"!==C(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){J(n,t[e],e,"v-models")}),delete i[r]}}),I(I({},i),n)}var t=function(){function e(){o(this,e),c(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 Q(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(C(e)))return e;if(e instanceof Array){if(1!==e.length)return e;e=e[0]}return I(I({},e),{},{ref:t})}var X=y(Q);function d(e){return R.h(X,{node:function(){return e.node}})}d.originReactComponent=b.forwardRef(Q);var ee=["component","node"],te=["component","$slots","children","class","style"],ne=["className","classname"],h="veaury-options",re=new t;function oe(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 ae(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=j(e,ee);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||ae,u=p(e[h]||{},void 0,!0),i=u.useInjectPropsFromWrapper||r.__veauryInjectPropsFromWrapper__;return u.isSlots||"function"==typeof i&&(a=i(e)),b.createElement(ue,V({},I(I(I(I({component:r},o?{node:o}:{}),e),a),{},c({},h,u)),{ref:t}))}),ue=function(){u(r,b.Component);var n=l(r);function r(e){var t;return o(this,r),(t=n.call(this,e)).state={portals:[]},t.__veauryPortalKeyPool__=[],t.__veauryMaxPortalCount__=0,t.__veauryCurrentVueComponent__=e.component,t.__veauryCreateVueInstance__=t.__veauryCreateVueInstance__.bind(s(t)),t.__veauryVueComponentContainer__=t.createVueComponentContainer(),t}return a(r,[{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){H.has(e)&&"function"==typeof t.props[e]&&(n[e]=t.props[e])}),e.vue.slotWrapAttrs&&(n=I(I({},n),e.vue.slotWrapAttrs))):e.vue.componentWrapAttrs&&(n=I(I({},n),e.vue.componentWrapAttrs)),e.vue.componentWrapHOC(b.createElement("div",V({},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=j(e,["component",h,"v-slots","children"].map(D)),this.__veauryCurrentVueComponent__!==r&&this.updateVueComponent(r),!!r.__fromReactSlot||(this.__veauryVueInstance__?(a&&(o=o||{},"object"!==C(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,oe(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(),re.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(e){var n=this,p=this,t=this.props,f=(t.component,t[h]),r=t.children,o=t["v-slots"],o=void 0===o?{}:o,t=j(t,["component",h,"children","v-slots"].map(D));function a(e){this.__veauryVueInstance__||(this.__veauryVueInstance__=e)}r&&("object"!==C(r)||r instanceof Array||r.$$typeof?o.default=r:o=r),(o=oe(o))&&(t.$slots=o),a=a.bind(this);var u,i=I({},m(t)),c={data:function(){return f.isSlots?{children:p.__veauryCurrentVueComponent__.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 R.h(d,{node:e,key:(null==e||null==(e=e.data)?void 0:e.key)||t})}):R.h(d,{node:e})},getScopedSlots:function(s,e){var t,l=this,n=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),I({},e));for(t in n)(function(i){var e,c;!n.hasOwnProperty(i)||null==(e=n[i])||(n[i]=(c=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 c.vueFunction?c.vueFunction.apply(l,a):(n=c.reactSlot,r=c.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:c.apply(l,a)})})):(t=r&&n?[r(n,l.reactInVueCall)]:s(y(function(){return c.apply(l,a)},I(I({},f),{},{isSlots:!0,wrapInstance:p}))),l.getScopedSlots.__scopeSlots[i]=t),c.reactFunction?t.reactFunction=c.reactFunction:c.reactSlot&&(t.reactSlot=c.reactSlot),t)}),n[i].reactFunction=e)})(t);return n}},mounted:function(){e.removeAttribute("id"),p.__veauryVueRef__=this.$refs.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=j(o,te),c=this.getScopedSlots(R.h,I({},a)),a=o.className,s=o.classname,o=j(o,ne),l={};return Object.keys(c).forEach(function(e){var t=c[e];l[e]="function"==typeof t?t:function(){return t}}),R.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),I(I(I(I({},o),u||a||s?{class:u||a||s}:{}),i?{style:i}:{}),{},{ref:"use_vue_wrapper"}),I({},f.isSlots&&this.children?{default:"function"==typeof this.children?this.children:function(){return r.children}}:I({},l)))}};e&&(u=re.getRandomId("__vue_wrapper_container_"),e.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(R.Teleport,{to:"#"+u,key:u},[e(Object.assign(c,{router:n._router}))])},r.__veauryPushVuePortal__(this.vuePortal)):(o=R.createApp(c),"function"==typeof f.beforeVueAppMount&&f.beforeVueAppMount(o),this.__veauryVueInstance__=o.mount(e)))}},{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})}}]),r}();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,V({},e,{component:n,ref:t},c({},h,r)))}));return e.originVueComponent=n,e}var ie=["children"];function ce(e){var n=b.createContext({});return[function(){return b.useContext(n)},y(function(e){var t=e.children,e=j(e,ie);return b.createElement(n.Provider,{value:I({},e)},t)},{useInjectPropsFromWrapper:e}),n]}var se=new t;function le(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,c({},le(t[0]),t[1])),e},{}):"object"===C(t)?(n={},Object.keys(t).forEach(function(e){n[le(e)]=t[e]}),n):{}:{}}function k(t){return t?t instanceof Array?t:"string"==typeof t?(t=t.trim()).split(/\s+/):"object"===C(t)?Object.keys(t).filter(function(e){return!!t[e]}):[]:[]}var pe=["ref"];function fe(e){return e.type===R.Text}new t;function _e(e,t){var n;return 0<(null==(n=e.dirs)?void 0:n.length)?b.createElement(ye,{vnode:e},t):t}var ye=function(){u(r,b.Component);var n=l(r);function r(e){var t;return o(this,r),(t=n.call(this,e)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:e},t}return a(r,[{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 c=this,e=this.state,s=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(c.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?(s[t]=I(I(I({},i),e),{},{oldValue:i.oldValue}),i=[l,s[t],p,c.state.prevVnode],null!=u&&u.apply(null,i),null!=a&&a.apply(null,i),s[t].oldValue=e.value):(s.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:I({},p),savedDirectives:s,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,c=e.ref,s=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]=I(I({},t),e),o=[c,t,u,s],null!=n&&n.apply(null,o),null!=r&&r.apply(null,o)))}),this.setState({prevVnode:I({},u),savedDirectives:i}))}},{key:"render",value:function(){var e=this.props;e.vnode;return e.children}}]),r}();function ve(o,n){var e,r,t,a;return"function"!=typeof(null==(t=o.type)?void 0:t.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==(t=o.type)?void 0:t.originReactComponent)?(null!=(t=o.ref)&&t.k?(e=null==(t=o.ref)?void 0:t.k,r=null==(t=o.ref)?void 0:t.r):e=null==(t=o.ref)?void 0:t.r,e&&"string"==typeof e&&(a=e,e=function(e){var t;null!=(t=o.ref)&&null!=(t=t.i)&&t.refs&&((t=I({},o.ref.i.refs))[a]=e,o.ref.i.refs=t),r?r.value=e:o.ref.i.setupState&&a in o.ref.i.setupState&&(o.ref.i.setupState[a]=e),e&&(e.__syncUpdateProps=function(){n.__top__&&(o.__extraData=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n.__top__.__syncUpdateProps({}))})},e=new Proxy(e,{get:function(e,t){return e[t]},set:function(e,t,n){var r;return null!=(r=o.ref)&&null!=(r=r.i)&&r.refs&&a in(null==(r=o.ref)||null==(r=r.i)?void 0:r.refs)&&((r=I({},o.ref.i.refs))[t]=n,o.ref.i.refs=r),n}})),e):null}function F(t,e){return!e||e instanceof Array&&0===e.length||("string"==typeof e&&(e=[e]),(t=I({},t)).props=I({},t.props),e.forEach(function(e){t.props[e]=""})),t}var de=["style","class"];function he(e,t,n,r,o,a,u){var i,c,s;return"all"===t||t instanceof Array||(t=t?[t]:[]),e.type===R.Fragment?o.call(u,e.children,n,a):"string"==typeof e.type&&("all"===t||-1<t.indexOf(e.type))?(t=ve(e),s=(c=e.props||{}).style,i=c.class,c=I(I({},j(c,de)),{},{style:w(s),className:Array.from(new Set(k(i))).join(" ")},t?{ref:t}:{}),(s=e.children||c.children)&&((s=-1<["string","number"].indexOf(C(s))?[s]:v(s)).__top__=u),_e(e,F(S.createElement(e.type,c,o.call(u,s,n,a)),e.scopeId))):n([e],null,r)}function me(e,t,n){return!((e=e instanceof Array&&1===e.length?e[0]:e)instanceof Array)&&null==e.key&&1<t.length&&((e=I({},e)).key="_key_".concat(n)),e}function ge(e){var h=e.reactComponents,m=e.domTags,e=e.division,g=void 0===e||e;return function f(_,y,v){var d;return _&&_.forEach?(_.__top__||(_.__top__=this),d=[],_.forEach(function(e,t){if(e&&e.type!==R.Comment){if(null==(p=e.type)||!p.originReactComponent)return e.$$typeof||"string"==typeof e||"number"==typeof e?void d.push(e):fe(e)?void(""!==e.children.trim()&&d.push(e.children.trim())):void(e.type&&(F(p=me(he(e,m,y,g,f,v,_.__top__),_,t),e.scopeId),d.push(p)));var n,o,a,u,r,i,c,s,l,p=e.type.originReactComponent;F(c=me(c="all"===(h="all"===h||h instanceof Array?h:[h])||-1<h.indexOf(p)?(e.__top__=_.__top__,n=e,"_key_".concat(t),o=y,a=f,u=v,(r=n.props||{}).ref,r=j(r,pe),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.call(n.__top__,r(),o,u)):"function"==typeof r&&(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)})}),c={},s=w(r.style),l=Array.from(new Set(k(r.class))).join(" "),0<Object.keys(s).length&&(c.style=s),""!==l&&(c.className=l),Object.assign(r,I(I({},c),i)),delete r.class,s=r,l=ve(e,_),e.children&&(e.children.__top__=_.__top__),_e(e,S.createElement(p,I(I(I({},function(e,t,n){var a=0<arguments.length&&void 0!==e?e:{},u=1<arguments.length?t:void 0,i=2<arguments.length?n:void 0;return i.__syncUpdateForPureReactInVue&&Object.keys(i.__syncUpdateForPureReactInVue).map(function(r){var o;a[r]&&"function"==typeof a[r]&&u.__top__&&(o=a[r],a[r]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];u.__extraData=i.__syncUpdateForPureReactInVue[r].apply(this,t),u.__top__.__veaurySyncUpdateProps__({}),u.__top__.macroTaskUpdate=!0,o.apply(this,t),u.__top__&&Promise.resolve().then(function(){u.__extraData=null,u.__top__.__veauryMountReactComponent__(!0)})})}),a}(s,e,p)),e.__extraData||{}),l?{ref:l}:{})))):fe(e)?e.text:he(e,m,y,g,f,v),_,t),e.scopeId),d.push(c)}}),1===d.length?d[0]:d):_}}var T=ge({reactComponents:"all",domTags:"all"});function W(e,t){return function(e,t){var t=1<arguments.length&&void 0!==t?t:{},n=t.globalName,r=t.combinedOption,o=(t.transparentApi,y(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:I({pureTransformer:!0,defaultSlotsFormatter:T,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 T(r.vueFunction.apply(this,t),o,a)},Object.defineProperty(n[e],"length",{get:function(){return r.vueFunction.length}})):r.vueSlot&&(n[e]=T(r.vueSlot,o,a)))}),Object.assign(t,n)}},t)})}var be=ge({reactComponents:"all",domTags:"all"});var Re=["ref","children","v-slots"];function Pe(t){var e=t.ref;if(e)return"object"===C(e)?function(e){t.ref.current=e}:"function"==typeof e?e:void 0}var Se=["style","class","children"];function Oe(e,t,n,r,o,a){var u,i,c,s;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=Pe(e),s=(t=e.props||{}).style,c=t.class,i=t.children,t=j(t,Se),c=Array.from(new Set(k(c))).join(" "),s=w(s),t=I(I(I(I({},t),0===Object.keys(s).length?{}:{style:s}),c?{className:c}:{}),u?{ref:u}:{}),0===Object.keys(t).length&&(t=null),(s=i)&&((s=-1<["string","number"].indexOf(C(s))?[s]:s instanceof Array?v(s):I({},s)).__top__=a),R.h(e.type,t,o(s,n))):n([e],null,r)}function Ie(e){var v=e.vueComponents,d=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 y=[];return f.forEach(function(e,t){if((null==(s=e.type)||!s.originVueComponent)&&e.type!==g)return e.__v_isVNode||"string"==typeof e||"number"==typeof e?void y.push(e):void(e.type&&(s=Oe(e,d,_,h,p,f.__top__),y.push(s)));var o,a,u,n,r,i,c,s=e.type.originVueComponent;if(e.type===g){if(!e.props.component)return void y.push(e.props.node);s=e.props.component,e=I({},e);var l=I({},e.props);delete l.component,e.props=l}t="all"===(v="all"===v||v instanceof Array?v:[v])||-1<v.indexOf(s)?((e=I({},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=j(l,Re),t&&("object"!==C(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),c=Array.from(new Set(k(r.className))).join(" "),0<Object.keys(t).length&&(l.style=t),""!==c&&(l.class=c),Object.assign(r,I({},l)),delete r.className,c=(t={props:r=m(r),slots:i}).props,r=t.slots,Pe(e),e.children&&(e.children.__top__=f.__top__),R.h(s,I({},c),r)):Oe(e,d,_,h,p),y.push(t)}),1===(y=y.flat(1/0)).length?y[0]:y}}var Ce=Ie({vueComponents:"all",domTags:"all"});function $(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:I({pureTransformer:!0,defaultSlotsFormatter:Ce},t)})}var Ve=Ie({reactComponents:"all",domTags:"all"});var je=["children"];var Ee=new t;e.REACT_ALL_HANDLERS=H,e.RenderReactNode=d,e.VueContainer=g,e.applyPureReactInVue=W,e.applyPureVueInReact=$,e.applyReactInVue=y,e.applyVueInReact=A,e.createCrossingProviderForPureReactInVue=function(e){var n=b.createContext({});return[function(){return b.useContext(n)},W(function(e){var t=e.children,e=j(e,je);return b.createElement(n.Provider,{value:I({},e)},t)},{useInjectPropsFromWrapper:e}),n]},e.createCrossingProviderForPureVueInReact=function(e,n){return n=n||Ee.getRandomId("veauryCrossingProvide_"),[function(){return R.inject(n)},$({setup:function(e,t){return R.provide(n,t.attrs),function(){return R.h(t.slots.default)}}},{useInjectPropsFromWrapper:e})]},e.createCrossingProviderForReactInVue=ce,e.createCrossingProviderForVueInReact=function(e,n){return n=n||se.getRandomId("veauryCrossingProvide_"),[function(){return R.inject(n)},A({setup:function(e,t){return R.provide(n,t.attrs),function(){return R.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),be(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]),Ve(e,function(e){return R.h(d,{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.injectSyncUpdateForPureReactInVue=function(e,t){e.__syncUpdateForPureReactInVue||(e.__syncUpdateForPureReactInVue={}),Object.assign(e.__syncUpdateForPureReactInVue,t)},e.lazyPureReactInVue=function(e,t){function n(){return r().then(function(e){return W(e.default,t)})}var r=e;return"object"===C(e)&&(r=e.loader),R.defineAsyncComponent("object"===C(e)?I(I({},e),{},{loader:n}):n)},e.lazyPureVueInReact=function(e,t){return b.lazy(function(){return e().then(function(e){return{default:$(e.default,t)}})})},e.lazyReactInVue=function(e,t){function n(){return r().then(function(e){return y(e.default,t)})}var r=e;return"object"===C(e)&&(r=e.loader),R.defineAsyncComponent("object"===C(e)?I(I({},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})});
!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,R,P){"use strict";var S="default"in b?b.default:b,O="default"in P?P.default:P;function U(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 I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function C(e){return(C="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 N(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,r.key,r)}}function a(e,t,n){t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1})}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(){return(V=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&&n(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function j(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 s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=i(n),t=(e=r?(e=i(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}}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=!0,i=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);u=!0);}catch(e){i=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(i)throw o}}return a}}(e,t)||x(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 v(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(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 x(e,t){var n;if(e)return"string"==typeof e?r(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)?r(e,t):void 0}function r(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}function D(e){e=function(e,t){if("object"!=typeof e||null===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)}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,I(I({},e),{},{react:I(I(I({},t.react),e.react),{},{componentWrapAttrs:I(I({},t.react.componentWrapAttrs),e.react.componentWrapAttrs),slotWrapAttrs:I(I({},t.react.slotWrapAttrs),e.react.slotWrapAttrs)}),vue:I(I(I({},t.vue),e.vue),{},{componentWrapAttrs:I(I({},t.vue.componentWrapAttrs),e.vue.componentWrapAttrs),slotWrapAttrs:I(I({},t.vue.slotWrapAttrs),e.vue.slotWrapAttrs)})})]);return n&&t.unshift({}),Object.assign.apply(this,t)}var M=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],_={Document:{},Element:{}};function L(){Object.keys(_).forEach(function(t){M.forEach(function(e){window[t].prototype[e]=_[t][e]})})}var K=["ref"],B=["key"],Y=["hashList"],G=parseInt(b.version);function q(f,_,y){var e=function(){u(p,b.Component);var n=l(p);function p(e){var t;return o(this,p),(t=n.call(this,e)).state=I(I({},e),_.isSlots?{children:f}:{}),t.setRef=t.setRef.bind(s(t)),t.vueInReactCall=t.vueInReactCall.bind(s(t)),(t.__veauryVueWrapperRef__=y).__veauryVueInReactCall__=t.vueInReactCall,t}return a(p,[{key:"reactPropsLinkToVueInstance",value:function(t){Object.keys(t).forEach(function(e){y[e]||(y[e]=t[e])}),Object.getOwnPropertyNames(t.__proto__).filter(function(e){return["constructor","render"].indexOf(e)<0}).forEach(function(e){y[e]||(y[e]=t[e])})}},{key:"setRef",value:function(e){var t=this;e&&(y.__veauryReactRef__=e,this.reactPropsLinkToVueInstance(e),Promise.resolve().then(function(){return t.reactPropsLinkToVueInstance(e)}),(this.setRef.current=e).__veauryVueWrapperRef__=y)}},{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=j(e,B),n[0].props=I(I({},t),n[0].props)),n}}}},{key:"componentWillUnmount",value:function(){y.__veauryReactRef__&&(y.__veauryReactRef__.__veauryVueWrapperRef__=null,y.__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]),I(I(I({},_),r),{},{isSlots:!0,wrapInstance:y})).render({key:(null==e?void 0:e.key)||void 0})}):A(this.createSlot(e),I(I(I({},_),r),{},{isSlots:!0,wrapInstance:y})).render()}},{key:"render",value:function(){var e,t,n,u=this,r=this.state,o=r.hashList,a=j(r,Y),i={},c={};for(e in a)t=e,n=void 0,a.hasOwnProperty(t)&&null!=a[t]&&(a[t].__slot?(a[t].reactSlot?a[t]=a[t].reactSlot:(n=a[t],_.defaultSlotsFormatter&&a[t].__trueChildren?(a[t].__trueChildren.__top__=u.__veauryVueWrapperRef__,a[t]=_.defaultSlotsFormatter(a[t].__trueChildren,u.vueInReactCall,o),a[t]instanceof Array?a[t]=v(a[t]):-1<["string","number"].indexOf(C(a[t]))?a[t]=[a[t]]:"object"===C(a[t])&&(a[t]=I({},a[t]))):a[t]=I({},A(u.createSlot(a[t]),I(I({},_),{},{isSlots:!0,wrapInstance:y})).render()),a[t].vueFunction=n),i[t]=a[t]):a[t].__scopedSlot&&(a[t]=a[t](u.createSlot),c[t]=a[t]));var s,l,r={};return r.ref=this.setRef,_.isSlots?this.state.children||this.props.children:(s=a,f.__syncUpdateForPureReactInVue&&Object.keys(f.__syncUpdateForPureReactInVue).map(function(r){var o,a;s[r]&&"function"==typeof s[r]&&(o=u.__veauryVueWrapperRef__,a=s[r],s[r]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.__veaurySyncUpdateProps__(f.__syncUpdateForPureReactInVue[r].apply(this,t)),a.apply(this,t),o.macroTaskUpdate=!0,o.__veauryMountReactComponent__(!0,!0,{})})}),l=I(I(I({},s=_.defaultPropsFormatter?_.defaultPropsFormatter.call(this,s,this.vueInReactCall,o):s),i),c),Object.getPrototypeOf(f)!==Function.prototype&&("object"!==C(f)||f.render)||p.catchVueRefs()?(Object.getPrototypeOf(f)===Function.prototype&&delete r.ref,b.createElement(f,V({},l,r))):b.createElement(z,V({passedProps:l,component:f},r),l.children))}}],[{key:"catchVueRefs",value:function(){if(y.$parent)for(var e in y.$parent.$refs)if(y.$parent.$refs[e]===y)return!0;return!1}}]),p}();return c(e,"displayName","applyReact_".concat(f.displayName||f.name||"Component")),e}var z=function(){u(n,b.Component);var t=l(n);function n(e){return o(this,n),t.call(this,e)}return a(n,[{key:"render",value:function(){var e=this.props.component,t=this.props.passedProps,t=(t.ref,j(t,K));return b.createElement(e,t,this.props.children)}}]),n}();function y(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=R.reactive({}),o=R.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=R.h(g.react.componentWrap,I({ref:"react"},g.react.componentWrapAttrs||{}),this.VEAURY_Portals.map(function(e){var t=e.Portal,e=e.key;return t(R.h,e)}));return this.__veauryCheckReactSlot__(this.$slots),e},methods:{__veauryCheckReactSlot__:function(r){var o=this;function a(e,t,n){return t[n]&&(e[n]=t[n],1)}"object"===C(r)&&null!=r&&(r instanceof Array?r.forEach(function(e){o.__veauryCheckReactSlot__(e.children)}):Object.keys(r).forEach(function(e){var t,n,e=r[e];if("function"==typeof e){try{t=e.apply(o,e.__reactArgs||[{}])}catch(e){return}(e.__trueChildren=t).forEach(function(e){e.children&&o.__veauryCheckReactSlot__(e.children)}),1!==t.length||a(e,t=t[0],"reactSlot")||a(e,t,"reactFunction")||t.type!==R.Fragment||1!==(null==(n=t.children)?void 0:n.length)||a(e,n=t.children[0],"reactSlot")||a(e,n,"reactFunction")}}))},__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 c=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__=c,(e=g.defaultSlotsFormatter(e,c.__veauryVueInReactCall__,i))instanceof Array||-1<C(e).indexOf("string","number")?e=v(e):"object"===C(e)&&(e=I({},e)),e):A(a(function(){return u.apply(t,r)}),I(I({},g),{},{isSlots:!0,wrapInstance:c})).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=[],c=this.$.vnode.scopeId,s=(c&&(u[c]="",i.push(c)),{}),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)),""),s[e]=o.$slots[t],s[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=I({},s),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=I(I(I({},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]}),I(I(I(I({},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__=I(I({},this.__veauryCache__||{}),I(I(I(I({},a),this.$attrs.class?{className:this.$attrs.class}:{}),I({},u)),{},{hashList:i},this.$attrs.style?{style:this.$attrs.style}:{})),this.macroTaskUpdate||this.microTaskUpdate||_()}else{f.slot(),f.attrs();var c=q(m,g,this),y=b.createElement(c,V({},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}})),v=this.$refs.react,d=g.wrapInstance;if(d)(d=g.wrapInstance).__veauryVueWrapperRef__=this;else for(var h=this.$parent;h;){if(h.parentReactWrapperRef){d=h.parentReactWrapperRef;break}if(h.reactWrapperRef){d=h.reactWrapperRef;break}h=h.$parent}d?(this.parentReactWrapperRef=d,this.reactPortal=function(){return P.createPortal(y,v)},d.pushReactPortal(this.reactPortal)):17<G?(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(v),this.__veauryReactApp__.render(y)):O.render(y,v)}}},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 u,e;clearTimeout(this.updateTimer),u=this.$refs.react,Object.keys(_).forEach(function(e){M.forEach(function(o){var a=window[e].prototype[o];a&&(_[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:("getElementById"===o&&(o="querySelector",t=["#"+t[0]]),(_.Element[o]||Element.prototype[o]).apply(u,t))})})}),this.reactPortal?null!=(e=this.parentReactWrapperRef)&&e.removeReactPortal(this.reactPortal):17<G?this.__veauryReactApp__.unmount():O.unmountComponentAtNode(this.$refs.react),L()},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 H=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 Z(e,t,n){var r={};n.forEach(function(e){r[e]=!0}),e[("modelValue"===t?"model":t)+"Modifiers"]=r}function J(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&&Z(e,n,t[3])):t[2]instanceof Array&&Z(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=I({},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",J(n,a[r],e),delete i[r];else if("v-models"===r){if("object"!==C(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){J(n,t[e],e,"v-models")}),delete i[r]}}),I(I({},i),n)}var t=function(){function e(){o(this,e),c(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 Q(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(C(e)))return e;if(e instanceof Array){if(1!==e.length)return e;e=e[0]}return I(I({},e),{},{ref:t})}var X=y(Q);function d(e){return R.h(X,{node:function(){return e.node}})}d.originReactComponent=b.forwardRef(Q);var ee=["component","node"],te=["component","$slots","children","class","style"],ne=["className","classname"],h="veaury-options",re=new t;function oe(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 ae(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=j(e,ee);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||ae,u=p(e[h]||{},void 0,!0),i=u.useInjectPropsFromWrapper||r.__veauryInjectPropsFromWrapper__;return u.isSlots||"function"==typeof i&&(a=i(e)),b.createElement(ue,V({},I(I(I(I({component:r},o?{node:o}:{}),e),a),{},c({},h,u)),{ref:t}))}),ue=function(){u(r,b.Component);var n=l(r);function r(e){var t;return o(this,r),(t=n.call(this,e)).state={portals:[]},t.__veauryPortalKeyPool__=[],t.__veauryMaxPortalCount__=0,t.__veauryCurrentVueComponent__=e.component,t.__veauryCreateVueInstance__=t.__veauryCreateVueInstance__.bind(s(t)),t.__veauryVueComponentContainer__=t.createVueComponentContainer(),t}return a(r,[{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){H.has(e)&&"function"==typeof t.props[e]&&(n[e]=t.props[e])}),e.vue.slotWrapAttrs&&(n=I(I({},n),e.vue.slotWrapAttrs))):e.vue.componentWrapAttrs&&(n=I(I({},n),e.vue.componentWrapAttrs)),e.vue.componentWrapHOC(b.createElement("div",V({},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=j(e,["component",h,"v-slots","children"].map(D)),this.__veauryCurrentVueComponent__!==r&&this.updateVueComponent(r),!!r.__fromReactSlot||(this.__veauryVueInstance__?(a&&(o=o||{},"object"!==C(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,oe(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(),re.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(e){var n=this,p=this,t=this.props,f=(t.component,t[h]),r=t.children,o=t["v-slots"],o=void 0===o?{}:o,t=j(t,["component",h,"children","v-slots"].map(D));function a(e){this.__veauryVueInstance__||(this.__veauryVueInstance__=e)}r&&("object"!==C(r)||r instanceof Array||r.$$typeof?o.default=r:o=r),(o=oe(o))&&(t.$slots=o),a=a.bind(this);var u,i=I({},m(t)),c={data:function(){return f.isSlots?{children:p.__veauryCurrentVueComponent__.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 R.h(d,{node:e,key:(null==e||null==(e=e.data)?void 0:e.key)||t})}):R.h(d,{node:e})},getScopedSlots:function(s,e){var t,l=this,n=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),I({},e));for(t in n)(function(i){var e,c;!n.hasOwnProperty(i)||null==(e=n[i])||(n[i]=(c=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 c.vueFunction?c.vueFunction.apply(l,a):(n=c.reactSlot,r=c.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:c.apply(l,a)})})):(t=r&&n?[r(n,l.reactInVueCall)]:s(y(function(){return c.apply(l,a)},I(I({},f),{},{isSlots:!0,wrapInstance:p}))),l.getScopedSlots.__scopeSlots[i]=t),c.reactFunction?t.reactFunction=c.reactFunction:c.reactSlot&&(t.reactSlot=c.reactSlot),t)}),n[i].reactFunction=e)})(t);return n}},mounted:function(){e.removeAttribute("id"),p.__veauryVueRef__=this.$refs.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=j(o,te),c=this.getScopedSlots(R.h,I({},a)),a=o.className,s=o.classname,o=j(o,ne),l={};return Object.keys(c).forEach(function(e){var t=c[e];l[e]="function"==typeof t?t:function(){return t}}),R.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),I(I(I(I({},o),u||a||s?{class:u||a||s}:{}),i?{style:i}:{}),{},{ref:"use_vue_wrapper"}),I({},f.isSlots&&this.children?{default:"function"==typeof this.children?this.children:function(){return r.children}}:I({},l)))}};e&&(u=re.getRandomId("__vue_wrapper_container_"),e.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(R.Teleport,{to:"#"+u,key:u},[e(Object.assign(c,{router:n._router}))])},r.__veauryPushVuePortal__(this.vuePortal)):(o=R.createApp(c),"function"==typeof f.beforeVueAppMount&&f.beforeVueAppMount(o),this.__veauryVueInstance__=o.mount(e)))}},{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})}}]),r}();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,V({},e,{component:n,ref:t},c({},h,r)))}));return e.originVueComponent=n,e}var ie=["children"];function ce(e){var n=b.createContext({});return[function(){return b.useContext(n)},y(function(e){var t=e.children,e=j(e,ie);return b.createElement(n.Provider,{value:I({},e)},t)},{useInjectPropsFromWrapper:e}),n]}var se=new t;function le(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,c({},le(t[0]),t[1])),e},{}):"object"===C(t)?(n={},Object.keys(t).forEach(function(e){n[le(e)]=t[e]}),n):{}:{}}function k(t){return t?t instanceof Array?t:"string"==typeof t?(t=t.trim()).split(/\s+/):"object"===C(t)?Object.keys(t).filter(function(e){return!!t[e]}):[]:[]}var pe=["ref"];function fe(e){return e.type===R.Text}new t;function _e(e,t){var n;return 0<(null==(n=e.dirs)?void 0:n.length)?b.createElement(ye,{vnode:e},t):t}var ye=function(){u(r,b.Component);var n=l(r);function r(e){var t;return o(this,r),(t=n.call(this,e)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:e},t}return a(r,[{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 c=this,e=this.state,s=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(c.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?(s[t]=I(I(I({},i),e),{},{oldValue:i.oldValue}),i=[l,s[t],p,c.state.prevVnode],null!=u&&u.apply(null,i),null!=a&&a.apply(null,i),s[t].oldValue=e.value):(s.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:I({},p),savedDirectives:s,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,c=e.ref,s=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]=I(I({},t),e),o=[c,t,u,s],null!=n&&n.apply(null,o),null!=r&&r.apply(null,o)))}),this.setState({prevVnode:I({},u),savedDirectives:i}))}},{key:"render",value:function(){var e=this.props;e.vnode;return e.children}}]),r}();function ve(o,n){var e,r,t,a;return"function"!=typeof(null==(t=o.type)?void 0:t.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==(t=o.type)?void 0:t.originReactComponent)?(null!=(t=o.ref)&&t.k?(e=null==(t=o.ref)?void 0:t.k,r=null==(t=o.ref)?void 0:t.r):e=null==(t=o.ref)?void 0:t.r,e&&"string"==typeof e&&(a=e,e=function(e){var t;null!=(t=o.ref)&&null!=(t=t.i)&&t.refs&&((t=I({},o.ref.i.refs))[a]=e,o.ref.i.refs=t),r?r.value=e:o.ref.i.setupState&&a in o.ref.i.setupState&&(o.ref.i.setupState[a]=e),e&&(e.__syncUpdateProps=function(){n.__top__&&(o.__extraData=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n.__top__.__syncUpdateProps({}))})},e=new Proxy(e,{get:function(e,t){return e[t]},set:function(e,t,n){var r;return null!=(r=o.ref)&&null!=(r=r.i)&&r.refs&&a in(null==(r=o.ref)||null==(r=r.i)?void 0:r.refs)&&((r=I({},o.ref.i.refs))[t]=n,o.ref.i.refs=r),n}})),e):null}function F(t,e){return!e||e instanceof Array&&0===e.length||("string"==typeof e&&(e=[e]),(t=I({},t)).props=I({},t.props),e.forEach(function(e){t.props[e]=""})),t}var de=["style","class"];function he(e,t,n,r,o,a,u){var i,c,s;return"all"===t||t instanceof Array||(t=t?[t]:[]),e.type===R.Fragment?o.call(u,e.children,n,a):"string"==typeof e.type&&("all"===t||-1<t.indexOf(e.type))?(t=ve(e),s=(c=e.props||{}).style,i=c.class,c=I(I({},j(c,de)),{},{style:w(s),className:Array.from(new Set(k(i))).join(" ")},t?{ref:t}:{}),(s=e.children||c.children)&&((s=-1<["string","number"].indexOf(C(s))?[s]:v(s)).__top__=u),_e(e,F(S.createElement(e.type,c,o.call(u,s,n,a)),e.scopeId))):n([e],null,r)}function me(e,t,n){return!((e=e instanceof Array&&1===e.length?e[0]:e)instanceof Array)&&null==e.key&&1<t.length&&((e=I({},e)).key="_key_".concat(n)),e}function ge(e){var h=e.reactComponents,m=e.domTags,e=e.division,g=void 0===e||e;return function f(_,y,v){var d;return _&&_.forEach?(_.__top__||(_.__top__=this),d=[],_.forEach(function(e,t){if(e&&e.type!==R.Comment){if(null==(p=e.type)||!p.originReactComponent)return e.$$typeof||"string"==typeof e||"number"==typeof e?void d.push(e):fe(e)?void(""!==e.children.trim()&&d.push(e.children.trim())):void(e.type&&(F(p=me(he(e,m,y,g,f,v,_.__top__),_,t),e.scopeId),d.push(p)));var n,o,a,u,r,i,c,s,l,p=e.type.originReactComponent;F(c=me(c="all"===(h="all"===h||h instanceof Array?h:[h])||-1<h.indexOf(p)?(e.__top__=_.__top__,n=e,"_key_".concat(t),o=y,a=f,u=v,(r=n.props||{}).ref,r=j(r,pe),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.call(n.__top__,r(),o,u)):"function"==typeof r&&(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)})}),c={},s=w(r.style),l=Array.from(new Set(k(r.class))).join(" "),0<Object.keys(s).length&&(c.style=s),""!==l&&(c.className=l),Object.assign(r,I(I({},c),i)),delete r.class,s=r,l=ve(e,_),e.children&&(e.children.__top__=_.__top__),_e(e,S.createElement(p,I(I(I({},function(e,t,n){var a=0<arguments.length&&void 0!==e?e:{},u=1<arguments.length?t:void 0,i=2<arguments.length?n:void 0;return i.__syncUpdateForPureReactInVue&&Object.keys(i.__syncUpdateForPureReactInVue).map(function(r){var o;a[r]&&"function"==typeof a[r]&&u.__top__&&(o=a[r],a[r]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];u.__extraData=i.__syncUpdateForPureReactInVue[r].apply(this,t),u.__top__.__veaurySyncUpdateProps__({}),u.__top__.macroTaskUpdate=!0,o.apply(this,t),u.__top__&&Promise.resolve().then(function(){u.__extraData=null,u.__top__.__veauryMountReactComponent__(!0)})})}),a}(s,e,p)),e.__extraData||{}),l?{ref:l}:{})))):fe(e)?e.text:he(e,m,y,g,f,v),_,t),e.scopeId),d.push(c)}}),1===d.length?d[0]:d):_}}var T=ge({reactComponents:"all",domTags:"all"});function W(e,t){return function(e,t){var t=1<arguments.length&&void 0!==t?t:{},n=t.globalName,r=t.combinedOption,o=(t.transparentApi,y(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:I({pureTransformer:!0,defaultSlotsFormatter:T,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 T(r.vueFunction.apply(this,t),o,a)},Object.defineProperty(n[e],"length",{get:function(){return r.vueFunction.length}})):r.vueSlot&&(n[e]=T(r.vueSlot,o,a)))}),Object.assign(t,n)}},t)})}var be=ge({reactComponents:"all",domTags:"all"});var Re=["ref","children","v-slots"];function Pe(t){var e=t.ref;if(e)return"object"===C(e)?function(e){t.ref.current=e}:"function"==typeof e?e:void 0}var Se=["style","class","children"];function Oe(e,t,n,r,o,a){var u,i,c,s;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=Pe(e),s=(t=e.props||{}).style,c=t.class,i=t.children,t=j(t,Se),c=Array.from(new Set(k(c))).join(" "),s=w(s),t=I(I(I(I({},t),0===Object.keys(s).length?{}:{style:s}),c?{className:c}:{}),u?{ref:u}:{}),0===Object.keys(t).length&&(t=null),(s=i)&&((s=-1<["string","number"].indexOf(C(s))?[s]:s instanceof Array?v(s):I({},s)).__top__=a),R.h(e.type,t,o(s,n))):n([e],null,r)}function Ie(e){var v=e.vueComponents,d=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 y=[];return f.forEach(function(e,t){if((null==(s=e.type)||!s.originVueComponent)&&e.type!==g)return e.__v_isVNode||"string"==typeof e||"number"==typeof e?void y.push(e):void(e.type&&(s=Oe(e,d,_,h,p,f.__top__),y.push(s)));var o,a,u,n,r,i,c,s=e.type.originVueComponent;if(e.type===g){if(!e.props.component)return void y.push(e.props.node);s=e.props.component,e=I({},e);var l=I({},e.props);delete l.component,e.props=l}t="all"===(v="all"===v||v instanceof Array?v:[v])||-1<v.indexOf(s)?((e=I({},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=j(l,Re),t&&("object"!==C(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),c=Array.from(new Set(k(r.className))).join(" "),0<Object.keys(t).length&&(l.style=t),""!==c&&(l.class=c),Object.assign(r,I({},l)),delete r.className,c=(t={props:r=m(r),slots:i}).props,r=t.slots,Pe(e),e.children&&(e.children.__top__=f.__top__),R.h(s,I({},c),r)):Oe(e,d,_,h,p),y.push(t)}),1===(y=y.flat(1/0)).length?y[0]:y}}var Ce=Ie({vueComponents:"all",domTags:"all"});function $(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:I({pureTransformer:!0,defaultSlotsFormatter:Ce},t)})}var Ve=Ie({reactComponents:"all",domTags:"all"});var je=["children"];var Ee=new t;e.REACT_ALL_HANDLERS=H,e.RenderReactNode=d,e.VueContainer=g,e.applyPureReactInVue=W,e.applyPureVueInReact=$,e.applyReactInVue=y,e.applyVueInReact=A,e.createCrossingProviderForPureReactInVue=function(e){var n=b.createContext({});return[function(){return b.useContext(n)},W(function(e){var t=e.children,e=j(e,je);return b.createElement(n.Provider,{value:I({},e)},t)},{useInjectPropsFromWrapper:e}),n]},e.createCrossingProviderForPureVueInReact=function(e,n){return n=n||Ee.getRandomId("veauryCrossingProvide_"),[function(){return R.inject(n)},$({setup:function(e,t){return R.provide(n,t.attrs),function(){return R.h(t.slots.default)}}},{useInjectPropsFromWrapper:e})]},e.createCrossingProviderForReactInVue=ce,e.createCrossingProviderForVueInReact=function(e,n){return n=n||se.getRandomId("veauryCrossingProvide_"),[function(){return R.inject(n)},A({setup:function(e,t){return R.provide(n,t.attrs),function(){return R.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),be(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]),Ve(e,function(e){return R.h(d,{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.injectSyncUpdateForPureReactInVue=function(e,t){e.__syncUpdateForPureReactInVue||(e.__syncUpdateForPureReactInVue={}),Object.assign(e.__syncUpdateForPureReactInVue,t)},e.lazyPureReactInVue=function(e,t){function n(){return r().then(function(e){return W(e.default,t)})}var r=e;return"object"===C(e)&&(r=e.loader),R.defineAsyncComponent("object"===C(e)?I(I({},e),{},{loader:n}):n)},e.lazyPureVueInReact=function(e,t){return b.lazy(function(){return e().then(function(e){return{default:$(e.default,t)}})})},e.lazyReactInVue=function(e,t){function n(){return r().then(function(e){return y(e.default,t)})}var r=e;return"object"===C(e)&&(r=e.loader),R.defineAsyncComponent("object"===C(e)?I(I({},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})});
{
"name": "veaury",
"private": false,
"version": "2.4.0",
"version": "2.4.1-beta.0",
"description": "Use React in Vue3 and Vue3 in React, And as perfect as possible!",

@@ -6,0 +6,0 @@ "main": "dist/veaury.umd.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc