navasena/wp-content/plugins/elementor/assets/js/ai-gutenberg.min.js

3 lines
609 KiB
JavaScript
Raw Permalink Normal View History

2024-07-31 13:12:38 +07:00
/*! elementor - v3.23.0 - 25-07-2024 */
/*! For license information please see ai-gutenberg.min.js.LICENSE.txt */
(()=>{var i={2234:(i,C,w)=>{"use strict";w.r(C),w.d(C,{Children:()=>x.Children,Component:()=>x.Component,Fragment:()=>x.Fragment,Platform:()=>N,PureComponent:()=>x.PureComponent,RawHTML:()=>RawHTML,StrictMode:()=>x.StrictMode,Suspense:()=>x.Suspense,cloneElement:()=>x.cloneElement,concatChildren:()=>concatChildren,createContext:()=>x.createContext,createElement:()=>x.createElement,createInterpolateElement:()=>create_interpolate_element,createPortal:()=>j.createPortal,createRef:()=>x.createRef,createRoot:()=>W.createRoot,findDOMNode:()=>j.findDOMNode,flushSync:()=>j.flushSync,forwardRef:()=>x.forwardRef,hydrate:()=>j.hydrate,hydrateRoot:()=>W.hydrateRoot,isEmptyElement:()=>isEmptyElement,isValidElement:()=>x.isValidElement,lazy:()=>x.lazy,memo:()=>x.memo,render:()=>j.render,renderToString:()=>ve,startTransition:()=>x.startTransition,switchChildrenNodeName:()=>switchChildrenNodeName,unmountComponentAtNode:()=>j.unmountComponentAtNode,useCallback:()=>x.useCallback,useContext:()=>x.useContext,useDebugValue:()=>x.useDebugValue,useDeferredValue:()=>x.useDeferredValue,useEffect:()=>x.useEffect,useId:()=>x.useId,useImperativeHandle:()=>x.useImperativeHandle,useInsertionEffect:()=>x.useInsertionEffect,useLayoutEffect:()=>x.useLayoutEffect,useMemo:()=>x.useMemo,useReducer:()=>x.useReducer,useRef:()=>x.useRef,useState:()=>x.useState,useSyncExternalStore:()=>x.useSyncExternalStore,useTransition:()=>x.useTransition});var x=w(87363);let O,S,k,I;const R=/<(\/)?(\w+)\s*(\/)?>/g;function createFrame(i,C,w,x,O){return{element:i,tokenStart:C,tokenLength:w,prevOffset:x,leadingTextStart:O,children:[]}}const isValidConversionMap=i=>{const C="object"==typeof i,w=C&&Object.values(i);return C&&w.length&&w.every((i=>(0,x.isValidElement)(i)))};function proceed(i){const C=function nextToken(){const i=R.exec(O);if(null===i)return["no-more-tokens"];const C=i.index,[w,x,S,k]=i,I=w.length;if(k)return["self-closed",S,C,I];if(x)return["closer",S,C,I];return["opener",S,C,I]}(),[w,j,W,N]=C,G=I.length,$=W>S?S:null;if(!i[j])return addText(),!1;switch(w){case"no-more-tokens":if(0!==G){const{leadingTextStart:i,tokenStart:C}=I.pop();k.push(O.substr(i,C))}return addText(),!1;case"self-closed":return 0===G?(null!==$&&k.push(O.substr($,W-$)),k.push(i[j]),S=W+N,!0):(addChild(createFrame(i[j],W,N)),S=W+N,!0);case"opener":return I.push(createFrame(i[j],W,N,W+N,$)),S=W+N,!0;case"closer":if(1===G)return function closeOuterElement(i){const{element:C,leadingTextStart:w,prevOffset:S,tokenStart:R,children:j}=I.pop(),W=i?O.substr(S,i-S):O.substr(S);W&&j.push(W);null!==w&&k.push(O.substr(w,R-w));k.push((0,x.cloneElement)(C,null,...j))}(W),S=W+N,!0;const C=I.pop(),w=O.substr(C.prevOffset,W-C.prevOffset);C.children.push(w),C.prevOffset=W+N;const R=createFrame(C.element,C.tokenStart,C.tokenLength,W+N);return R.children=C.children,addChild(R),S=W+N,!0;default:return addText(),!1}}function addText(){const i=O.length-S;0!==i&&k.push(O.substr(S,i))}function addChild(i){const{element:C,tokenStart:w,tokenLength:S,prevOffset:k,children:R}=i,j=I[I.length-1],W=O.substr(j.prevOffset,w-j.prevOffset);W&&j.children.push(W),j.children.push((0,x.cloneElement)(C,null,...R)),j.prevOffset=k||w+S}const create_interpolate_element=(i,C)=>{if(O=i,S=0,k=[],I=[],R.lastIndex=0,!isValidConversionMap(C))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(proceed(C));return(0,x.createElement)(x.Fragment,null,...k)};function concatChildren(...i){return i.reduce(((i,C,w)=>(x.Children.forEach(C,((C,O)=>{C&&"string"!=typeof C&&(C=(0,x.cloneElement)(C,{key:[w,O].join()})),i.push(C)})),i)),[])}function switchChildrenNodeName(i,C){return i&&x.Children.map(i,((i,w)=>{if("string"==typeof i?.valueOf())return(0,x.createElement)(C,{key:w},i);const{children:O,...S}=i.props;return(0,x.createElement)(C,{key:w,...S},O)}))}var j=w(61533),W=w(37634);const isEmptyElement=i=>"number"!=typeof i&&("string"==typeof i?.valueOf()||Array.isArray(i)?!i.length:!i),N={OS:"web",select:i=>"web"in i?i.web:i.default,isWeb:!0};function isObject(i){return"[obje