PageSourceSearch

https://debater.gr/wp-content/plugins/feeds-for-tiktok/vendor/smas…/build/static/js/tikTokFeed.js?ver=1.8.0

js debater.gr collected 2026-10-02 12:19:50 UTC 331,216 bytes, 3 lines download raw bytes

vendor: 40,529 bytes, lines 1-2
1/*! For license information please see tikTokFeed.js.LICENSE.txt */
2(()=>{var e={998:(e,t,n)=>{"use strict";var r=n(6998),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},2345:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,v=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function _(e){if(v=!1,w(e),!m)if(null!==r(u))m=!0,O(k);else{var t=r(c);null!==t&&R(_,t.startTime-e)}}function k(e,n){m=!1,v&&(v=!1,y(E),E=-1),h=!0;var o=p;try{for(w(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!j());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(u)&&i(u),w(n)}else i(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&R(_,d.startTime-n),l=!1}return l}finally{f=null,p=o,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,C=!1,S=null,E=-1,P=5,N=-1;function j(){return!(t.unstable_now()-N<P)}function T(){if(null!==S){var e=t.unstable_now();N=e;var n=!0;try{n=S(!0,e)}finally{n?x():(C=!1,S=null)}}else C=!1}if("function"===typeof b)x=function(){b(T)};else if("undefined"!==typeof MessageChannel){var L=new MessageChannel,z=L.port2;L.port1.onmessage=T,x=function(){z.postMessage(null)}}else x=function(){g(T,0)};function O(e){S=e,C||(C=!0,x())}function R(e,n){E=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,O(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(v?(y(E),E=-1):v=!0,R(_,o-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,O(k))),e},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},2401:(e,t,n)=>{"use strict";var r=n(6998),i=n(3588);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),k=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),P=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),z=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function D(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||e["@@iterator"])?e:null}var M,I=Object.assign;function $(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var A=!1;function F(e,t){if(!e||A)return"";A=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$(e):""}function H(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case k:return"Portal";case S:return"Profiler";case C:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return U(e(t))}catch(n){}}return null}function B(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function G(e,t){X(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,xe=null,Ce=null;function Se(e){if(e=bi(e)){if("function"!==typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=_i(t),ke(e.stateNode,e.type,t))}}function Ee(e){xe?Ce?Ce.push(e):Ce=[e]:xe=e}function Pe(){if(xe){var e=xe,t=Ce;if(Ce=xe=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Ne(e,t){return e(t)}function je(){}var Te=!1;function Le(e,t,n){if(Te)return e(t,n);Te=!0;try{return Ne(e,t,n)}finally{Te=!1,(null!==xe||null!==Ce)&&(je(),Pe())}}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=_i(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Oe=!1;if(c)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ce){Oe=!1}function De(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Me=!1,Ie=null,$e=!1,Ae=null,Fe={onError:function(e){Me=!0,Ie=e}};function He(e,t,n,r,i,o,a,s,l){Me=!1,Ie=null,De.apply(Fe,arguments)}function Ue(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Be(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Ue(e)!==e)throw Error(o(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return We(i),e;if(a===r)return We(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Qe(e):null}function Qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Qe(e);if(null!==t)return t;e=e.sibling}return null}var qe=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Ze=i.unstable_requestPaint,Xe=i.unstable_now,Ge=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var _t,kt,xt,Ct,St,Et=!1,Pt=[],Nt=null,jt=null,Tt=null,Lt=new Map,zt=new Map,Ot=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zt.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function It(e){var t=yi(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Be(n)))return e.blockedOn=t,void St(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function $t(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function At(e,t,n){$t(e)&&n.delete(t)}function Ft(){Et=!1,null!==Nt&&$t(Nt)&&(Nt=null),null!==jt&&$t(jt)&&(jt=null),null!==Tt&&$t(Tt)&&(Tt=null),Lt.forEach(At),zt.forEach(At)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Ut(e){function t(t){return Ht(t,e)}if(0<Pt.length){Ht(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Ht(Nt,e),null!==jt&&Ht(jt,e),null!==Tt&&Ht(Tt,e),Lt.forEach(t),zt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)It(n),null===n.blockedOn&&Ot.shift()}var Bt=w.ReactCurrentBatchConfig,Wt=!0;function Vt(e,t,n,r){var i=bt,o=Bt.transition;Bt.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=i,Bt.transition=o}}function Qt(e,t,n,r){var i=bt,o=Bt.transition;Bt.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=i,Bt.transition=o}}function qt(e,t,n,r){if(Wt){var i=Kt(e,t,n,r);if(null===i)Wr(e,t,r,Yt,n),Dt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,i),!0;case"dragenter":return jt=Mt(jt,e,t,n,r,i),!0;case"mouseover":return Tt=Mt(Tt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Lt.set(o,Mt(Lt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,zt.set(o,Mt(zt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&_t(o),null===(o=Kt(e,t,n,r))&&Wr(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Yt=null;function Kt(e,t,n,r){if(Yt=null,null!==(e=yi(e=_e(r))))if(null===(t=Ue(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Be(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ge()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Gt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Gt,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=I({},un,{view:0,detail:0}),fn=on(dn),pn=I({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(I({},pn,{dataTransfer:0})),vn=on(I({},dn,{relatedTarget:0})),gn=on(I({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=I({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(I({},un,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Sn(){return Cn}var En=I({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(En),Nn=on(I({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=on(I({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Tn=on(I({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=I({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zn=on(Ln),On=[9,13,27,32],Rn=c&&"CompositionEvent"in window,Dn=null;c&&"documentMode"in document&&(Dn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Dn,In=c&&(!Rn||Dn&&8<Dn&&11>=Dn),$n=String.fromCharCode(32),An=!1;function Fn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var Bn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function Vn(e,t,n,r){Ee(r),0<(t=Qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qn=null,qn=null;function Yn(e){$r(e,0)}function Kn(e){if(q(wi(e)))return e}function Zn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Gn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Gn=Jn}else Gn=!1;Xn=Gn&&(!document.documentMode||9<document.documentMode)}function tr(){Qn&&(Qn.detachEvent("onpropertychange",nr),qn=Qn=null)}function nr(e){if("value"===e.propertyName&&Kn(qn)){var t=[];Vn(t,qn,e,_e(e)),Le(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function or(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==Y(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Qr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},xr={},Cr={};function Sr(e){if(xr[e])return xr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return xr[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Er=Sr("animationend"),Pr=Sr("animationiteration"),Nr=Sr("animationstart"),jr=Sr("transitionend"),Tr=new Map,Lr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function zr(e,t){Tr.set(e,t),l(t,[e])}for(var Or=0;Or<Lr.length;Or++){var Rr=Lr[Or];zr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}zr(Er,"onAnimationEnd"),zr(Pr,"onAnimationIteration"),zr(Nr,"onAnimationStart"),zr("dblclick","onDoubleClick"),zr("focusin","onFocus"),zr("focusout","onBlur"),zr(jr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Ir(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(He.apply(this,arguments),Me){if(!Me)throw Error(o(198));var c=Ie;Me=!1,Ie=null,$e||($e=!0,Ae=c)}}(r,t,void 0,e),e.currentTarget=null}function $r(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Ir(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Ir(i,s,u),o=l}}}if($e)throw e=Ae,$e=!1,Ae=null,e}function Ar(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Br(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Br(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[Hr]){e[Hr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,Fr("selectionchange",!1,t))}}function Br(e,t,n,r){switch(Zt(t)){case 1:var i=Vt;break;case 4:i=Qt;break;default:i=qt}n=i.bind(null,t,n,e),i=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Le((function(){var r=o,i=_e(n),a=[];e:{var s=Tr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=jn;break;case Er:case Pr:case Nr:l=gn;break;case jr:l=Tn;break;case"scroll":l=fn;break;case"wheel":l=zn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var c=0!==(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=ze(h,f))&&c.push(Vr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!yi(u)&&!u[hi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yi(u):null)&&(u!==(d=Ue(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:wi(l),p=null==u?s:wi(u),(s=new c(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,yi(i)===r&&((c=new c(f,h+"enter",u,n,i)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=qr(p))h++;for(p=0,m=f;m;m=qr(m))p++;for(;0<h-p;)c=qr(c),h--;for(;0<p-h;)f=qr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=qr(c),f=qr(f)}c=null}else c=null;null!==l&&Yr(a,s,l,c,!1),null!==u&&null!==d&&Yr(a,d,u,c,!0)}if("select"===(l=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Zn;else if(Wn(s))if(Xn)v=ar;else{v=ir;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=or);switch(v&&(v=v(e,r))?Vn(a,v,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?wi(r):window,e){case"focusin":(Wn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(In&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(y=en()):(Gt="value"in(Xt=i)?Xt.value:Xt.textContent,Un=!0)),0<(g=Qr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:g}
vendor: 84,106 bytes, line 2
2),y?b.data=y:null!==(y=Hn(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(An=!0,$n);case"textInput":return(e=t.data)===$n&&An?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Rn&&Fn(e,t)?(e=en(),Jt=Gt=Xt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return In&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Qr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}$r(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=ze(e,n))&&r.unshift(Vr(e,o,i)),null!=(o=ze(e,t))&&r.push(Vr(e,o,i))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=ze(n,o))&&a.unshift(Vr(n,l,s)):i||null!=(l=ze(n,o))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Xr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(Zr,"")}function Gr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ut(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,mi="__reactEvents$"+di,vi="__reactListeners$"+di,gi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function _i(e){return e[pi]||null}var ki=[],xi=-1;function Ci(e){return{current:e}}function Si(e){0>xi||(e.current=ki[xi],ki[xi]=null,xi--)}function Ei(e,t){xi++,ki[xi]=e.current,e.current=t}var Pi={},Ni=Ci(Pi),ji=Ci(!1),Ti=Pi;function Li(e,t){var n=e.type.contextTypes;if(!n)return Pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function zi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Oi(){Si(ji),Si(Ni)}function Ri(e,t,n){if(Ni.current!==Pi)throw Error(o(168));Ei(Ni,t),Ei(ji,n)}function Di(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,B(e)||"Unknown",i));return I({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,Ti=Ni.current,Ei(Ni,e),Ei(ji,ji.current),!0}function Ii(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Di(e,t,Ti),r.__reactInternalMemoizedMergedChildContext=e,Si(ji),Si(Ni),Ei(Ni,e)):Si(ji),Ei(ji,n)}var $i=null,Ai=!1,Fi=!1;function Hi(e){null===$i?$i=[e]:$i.push(e)}function Ui(){if(!Fi&&null!==$i){Fi=!0;var e=0,t=bt;try{var n=$i;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}$i=null,Ai=!1}catch(i){throw null!==$i&&($i=$i.slice(e+1)),qe(Je,Ui),i}finally{bt=t,Fi=!1}}return null}var Bi=[],Wi=0,Vi=null,Qi=0,qi=[],Yi=0,Ki=null,Zi=1,Xi="";function Gi(e,t){Bi[Wi++]=Qi,Bi[Wi++]=Vi,Vi=e,Qi=t}function Ji(e,t,n){qi[Yi++]=Zi,qi[Yi++]=Xi,qi[Yi++]=Ki,Ki=e;var r=Zi;e=Xi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Zi=1<<32-at(t)+i|n<<i|r,Xi=o+e}else Zi=1<<o|n<<i|r,Xi=e}function eo(e){null!==e.return&&(Gi(e,1),Ji(e,1,0))}function to(e){for(;e===Vi;)Vi=Bi[--Wi],Bi[Wi]=null,Qi=Bi[--Wi],Bi[Wi]=null;for(;e===Ki;)Ki=qi[--Yi],qi[Yi]=null,Xi=qi[--Yi],qi[Yi]=null,Zi=qi[--Yi],qi[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Lu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ki?{id:Zi,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ui(e.nextSibling)}function ho(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var vo=w.ReactCurrentBatchConfig;function go(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function wo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Iu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===z&&bo(o)===t.type)?((r=i(t,n.props)).ref=go(e,t,n),r.return=e,r):((r=Ru(n.type,n.key,n.props,null,e.mode,r)).ref=go(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$u(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Du(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Iu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Ru(t.type,t.key,t.props,null,e.mode,n)).ref=go(e,null,t),n.return=e,n;case k:return(t=$u(t,e.mode,n)).return=e,t;case z:return f(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Du(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?u(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null;case z:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||D(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case z:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||D(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,d=o,m=o=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(i,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g,d=v}if(m===s.length)return n(i,d),io&&Gi(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return io&&Gi(i,m),u}for(d=r(i,d);m<s.length;m++)null!==(v=h(d,i,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(i,e)})),io&&Gi(i,m),u}function v(i,s,l,u){var c=D(l);if("function"!==typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,v),null===d?c=b:d.sibling=b,d=b,m=g}if(y.done)return n(i,m),io&&Gi(i,v),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return io&&Gi(i,v),c}for(m=r(i,m);!y.done;v++,y=l.next())null!==(y=h(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Gi(i,v),c}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===z&&bo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=go(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((o=Du(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Ru(a.type,a.key,a.props,null,r.mode,l)).ref=go(r,o,a),l.return=r,r=l)}return s(r);case k:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=$u(a,r.mode,l)).return=r,r=o}return s(r);case z:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(D(a))return v(r,o,a,l);yo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Iu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var _o=wo(!0),ko=wo(!1),xo=Ci(null),Co=null,So=null,Eo=null;function Po(){Eo=So=Co=null}function No(e){var t=xo.current;Si(xo),e._currentValue=t}function jo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function To(e,t){Co=e,Eo=So=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Lo(e){var t=e._currentValue;if(Eo!==e)if(e={context:e,memoizedValue:t,next:null},null===So){if(null===Co)throw Error(o(308));So=e,Co.dependencies={lanes:0,firstContext:e}}else So=So.next=e;return t}var zo=null;function Oo(e){null===zo?zo=[e]:zo.push(e)}function Ro(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Oo(t)):(n.next=i.next,i.next=n),t.interleaved=n,Do(e,r)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mo=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $o(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ao(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Nl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Do(e,n)}return null===(i=r.interleaved)?(t.next=t,Oo(r)):(t.next=i.next,i.next=t),r.interleaved=t,Do(e,n)}function Ho(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Uo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bo(e,t,n,r){var i=e.updateQueue;Mo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=I({},d,f);break e;case 2:Mo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Wo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Vo={},Qo=Ci(Vo),qo=Ci(Vo),Yo=Ci(Vo);function Ko(e){if(e===Vo)throw Error(o(174));return e}function Zo(e,t){switch(Ei(Yo,t),Ei(qo,e),Ei(Qo,Vo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Si(Qo),Ei(Qo,t)}function Xo(){Si(Qo),Si(qo),Si(Yo)}function Go(e){Ko(Yo.current);var t=Ko(Qo.current),n=le(t,e.type);t!==n&&(Ei(qo,e),Ei(Qo,n))}function Jo(e){qo.current===e&&(Si(Qo),Si(qo))}var ea=Ci(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=w.ReactCurrentDispatcher,oa=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Ja:es,e=n(r,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(o(301));a+=1,ua=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Ga,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(o(300));return e}function ga(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function wa(e,t){return"function"===typeof t?t(e):t}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,sa.lanes|=d,Ml|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ml|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ka(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xa(){}function Ca(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ma(Pa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,La(9,Ea.bind(null,n,r,i,t),void 0,null),null===jl)throw Error(o(349));0!==(30&aa)||Sa(n,t,i)}return i}function Sa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&ja(e)}function Pa(e,t,n){return n((function(){Na(t)&&ja(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function ja(e){var t=Do(e,1);null!==t&&nu(t,e,1,-1)}function Ta(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function La(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return ba().memoizedState}function Oa(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=La(1|t,n,void 0,void 0===r?null:r)}function Ra(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=La(t,n,o,r))}sa.flags|=e,i.memoizedState=La(1|t,n,o,r)}function Da(e,t){return Oa(8390656,8,e,t)}function Ma(e,t){return Ra(2048,8,e,t)}function Ia(e,t){return Ra(4,2,e,t)}function $a(e,t){return Ra(4,4,e,t)}function Aa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ra(4,4,Aa.bind(null,t,e),n)}function Ha(){}function Ua(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ba(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Ml|=n,e.baseState=!0),t)}function Va(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Qa(){return ba().memoizedState}function qa(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e))Za(t,n);else if(null!==(n=Ro(e,t,n,r))){nu(n,e,r,eu()),Xa(n,t,r)}}function Ya(e,t,n){var r=tu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Za(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Oo(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(u){}null!==(n=Ro(e,t,i,r))&&(nu(n,e,r,i=eu()),Xa(n,t,r))}}function Ka(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Za(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ga={readContext:Lo,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ja={readContext:Lo,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Lo,useEffect:Da,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Oa(4194308,4,Aa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oa(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Ta,useDebugValue:Ha,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Ta(!1),t=e[0];return e=Va.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===jl)throw Error(o(349));0!==(30&aa)||Sa(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Da(Pa.bind(null,r,a,e),[e]),r.flags|=2048,La(9,Ea.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=jl.identifierPrefix;if(io){var n=Xi;t=":"+t+"R"+(n=(Zi&~(1<<32-at(Zi)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Lo,useCallback:Ua,useContext:Lo,useEffect:Ma,useImperativeHandle:Fa,useInsertionEffect:Ia,useLayoutEffect:$a,useMemo:Ba,useReducer:_a,useRef:za,useState:function(){return _a(wa)},useDebugValue:Ha,useDeferredValue:function(e){return Wa(ba(),la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ca,useId:Qa,unstable_isNewReconciler:!1},ts={readContext:Lo,useCallback:Ua,useContext:Lo,useEffect:Ma,useImperativeHandle:Fa,useInsertionEffect:Ia,useLayoutEffect:$a,useMemo:Ba,useReducer:ka,useRef:za,useState:function(){return ka(wa)},useDebugValue:Ha,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Wa(t,la.memoizedState,e)},useTransition:function(){return[ka(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ca,useId:Qa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=Ao(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Fo(e,o,i))&&(nu(t,e,i,r),Ho(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=Ao(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Fo(e,o,i))&&(nu(t,e,i,r),Ho(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),i=Ao(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Fo(e,i,r))&&(nu(t,e,r,n),Ho(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(e,t,n){var r=!1,i=Pi,o=t.contextType;return"object"===typeof o&&null!==o?o=Lo(o):(i=zi(t)?Ti:Ni.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Li(e,i):Pi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Io(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Lo(o):(o=zi(t)?Ti:Ni.current,i.context=Li(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Bo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Ao(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Vl=r),ds(0,t)},n}function hs(e,t,n){(n=Ao(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Ql?Ql=new Set([this]):Ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Su.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ao(-1,1)).tag=2,Fo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?ko(t,null,n,r):_o(t,e.child,n,r)}function _s(e,t,n,r,i){n=n.render;var o=t.ref;return To(t,i),r=va(e,t,n,r,o,i),n=ga(),null===e||bs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ws(e,t,i))}function ks(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||zu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ru(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Ws(e,t,i)}return t.flags|=1,(e=Ou(o,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Ws(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return Es(e,t,n,r,i)}function Cs(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ei(Ol,zl),zl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ei(Ol,zl),zl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ei(Ol,zl),zl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ei(Ol,zl),zl|=r;return ws(e,t,i,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,i){var o=zi(n)?Ti:Ni.current;return o=Li(t,o),To(t,i),n=va(e,t,n,r,o,i),r=ga(),null===e||bs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ws(e,t,i))}function Ps(e,t,n,r,i){if(zi(n)){var o=!0;Mi(t)}else o=!1;if(To(t,i),null===t.stateNode)Bs(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=Lo(u):u=Li(t,u=zi(n)?Ti:Ni.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Mo=!1;var f=t.memoizedState;a.state=f,Bo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||ji.current||Mo?("function"===typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Mo||os(t,n,s,r,f,l,u))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,$o(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Lo(l):l=Li(t,l=zi(n)?Ti:Ni.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Mo=!1,f=t.memoizedState,a.state=f,Bo(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||ji.current||Mo?("function"===typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=Mo||os(t,n,u,r,f,h,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,o,i)}function Ns(e,t,n,r,i,o){Ss(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Ii(t,n,!1),Ws(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_o(t,e.child,null,o),t.child=_o(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Ii(t,n,!0),t.child}function js(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),Zo(e,t.containerInfo)}function Ts(e,t,n,r,i){return ho(),mo(i),t.flags|=256,ws(e,t,n,r),t.child}var Ls,zs,Os,Rs,Ds={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Is(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ei(ea,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mu(l,i,0,null),e=Du(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=Ds,e):$s(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,As(e,t,s,r=cs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Mu({mode:"visible",children:r.children},i,0,null),(a=Du(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&_o(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=Ds,a);if(0===(1&t.mode))return As(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,As(e,t,s,r=cs(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=jl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Do(e,i),nu(r,e,i,-1))}return mu(),As(e,t,s,r=cs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Pu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(qi[Yi++]=Zi,qi[Yi++]=Xi,qi[Yi++]=Ki,Zi=e.id,Xi=e.overflow,Ki=t),t=$s(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=Ou(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Ou(r,s):(s=Du(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ds,i}return e=(s=e.child).sibling,i=Ou(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function $s(e,t){return(t=Mu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function As(e,t,n,r){return null!==r&&mo(r),_o(t,e.child,null,n),(e=$s(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),jo(e.return,t,n)}function Hs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Us(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fs(e,n,t);else if(19===e.tag)Fs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ei(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Hs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Hs(t,!0,n,null,o);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ou(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ou(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qs(t),null;case 1:case 17:return zi(t.type)&&Oi(),Qs(t),null;case 3:return r=t.stateNode,Xo(),Si(ji),Si(Ni),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(au(oo),oo=null))),zs(e,t),Qs(t),null;case 5:Jo(t);var i=Ko(Yo.current);if(n=t.type,null!==e&&null!=t.stateNode)Os(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Qs(t),null}if(e=Ko(Qo.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[pi]=a,e=0!==(1&t.mode),n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)Ar(Dr[i],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":Z(r,a),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ar("invalid",r);break;case"textarea":ie(r,a),Ar("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"===typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Gr(r.textContent,u,e),i=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Gr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Ar("scroll",r)}switch(n){case"input":Q(r),J(r,a,!0);break;case"textarea":Q(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[pi]=r,Ls(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),i=r;break;case"iframe":case"object":case"embed":Ar("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)Ar(Dr[i],e);i=r;break;case"source":Ar("error",e),i=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),i=r;break;case"details":Ar("toggle",e),i=r;break;case"input":Z(e,r),i=K(e,r),Ar("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=I({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Ar("invalid",e)}for(a in ye(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Ar("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":Q(e),J(e,r,!1);break;case"textarea":Q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Qs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Ko(Yo.current),Ko(Qo.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Gr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Gr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Qs(t),null;case 13:if(Si(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Qs(t),a=!1}else null!==oo&&(au(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Rl&&(Rl=3):mu())),null!==t.updateQueue&&(t.flags|=4),Qs(t),null);case 4:return Xo(),zs(e,t),null===e&&Ur(t.stateNode.containerInfo),Qs(t),null;case 10:return No(t.type._context),Qs(t),null;case 19:if(Si(ea),null===(a=t.memoizedState))return Qs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Rl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ei(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Ul&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Qs(t),null}else 2*Xe()-a.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ea.current,Ei(ea,r?1&n|2:1&n),t):(Qs(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&zl)&&(Qs(t),6&t.subtreeFlags&&(t.flags|=8192)):Qs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ys(e,t){switch(to(t),t.tag){case 1:return zi(t.type)&&Oi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xo(),Si(ji),Si(Ni),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Jo(t),null;case 13:if(Si(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Si(ea),null;case 4:return Xo(),null;case 10:return No(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ls=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},zs=function(){},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ko(Qo.current);var o,a=null;switch(n){case"input":i=K(e,i),r=K(e,r),a=[];break;case"select":i=I({},i,{value:void 0}),r=I({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Ar("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Rs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Zs=!1,Xs="function"===typeof WeakSet?WeakSet:Set,Gs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Cu(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Cu(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[vi],delete t[gi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Zs||Js(n,t);case 6:var r=cl,i=dl;cl=null,fl(e,t,n),dl=i,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ut(e)):li(cl,n.stateNode));break;case 4:r=cl,i=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),i=i.next}while(i!==r)}fl(e,t,n);break;case 1:if(!Zs&&(Js(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Cu(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,fl(e,t,n),Zs=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Nu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(o(160));pl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(c){Cu(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(v){Cu(e,e.return,v)}try{nl(5,e,e.return)}catch(v){Cu(e,e.return,v)}}break;case 1:ml(t,e),gl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(ml(t,e),gl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(v){Cu(e,e.return,v)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ve(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(l){case"input":G(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(v){Cu(e,e.return,v)}}break;case 6:if(ml(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(v){Cu(e,e.return,v)}}break;case 3:if(ml(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(v){Cu(e,e.return,v)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Hl=Xe())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Zs=(c=Zs)||d,ml(t,e),Zs=c):ml(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!==(1&e.mode))for(Gs=e,d=e.child;null!==d;){for(f=Gs=d;null!==Gs;){switch(h=(p=Gs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Js(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Cu(r,n,v)}}break;case 5:Js(p,p.return);break;case 22:if(null!==p.memoizedState){_l(f);continue}}null!==h?(h.return=p,Gs=h):_l(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(u=f.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(v){Cu(e,e.return,v)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){Cu(e,e.return,v)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),gl(e),4&r&&hl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){Cu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Gs=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Gs;){var i=Gs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ks;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Ks;var u=Zs;if(Ks=a,(Zs=l)&&!u)for(Gs=i;null!==Gs;)l=(a=Gs).child,22===a.tag&&null!==a.memoizedState?kl(i):null!==l?(l.return=a,Gs=l):kl(i);for(;null!==o;)Gs=o,bl(o,t,n),o=o.sibling;Gs=i,Ks=s,Zs=u}wl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Gs=o):wl(e)}}function wl(e){for(;null!==Gs;){var t=Gs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ut(f)}}}break;default:throw Error(o(163))}Zs||512&t.flags&&il(t)}catch(p){Cu(t,t.return,p)}}if(t===e){Gs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Gs=n;break}Gs=t.return}}function _l(e){for(;null!==Gs;){var t=Gs;if(t===e){Gs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Gs=n;break}Gs=t.return}}function kl(e){for(;null!==Gs;){var t=Gs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Cu(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Cu(t,i,l)}}var o=t.return;try{il(t)}catch(l){Cu(t,o,l)}break;case 5:var a=t.return;try{il(t)}catch(l){Cu(t,a,l)}}}catch(l){Cu(t,t.return,l)}if(t===e){Gs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Gs=s;break}Gs=t.return}}var xl,Cl=Math.ceil,Sl=w.ReactCurrentDispatcher,El=w.ReactCurrentOwner,Pl=w.ReactCurrentBatchConfig,Nl=0,jl=null,Tl=null,Ll=0,zl=0,Ol=Ci(0),Rl=0,Dl=null,Ml=0,Il=0,$l=0,Al=null,Fl=null,Hl=0,Ul=1/0,Bl=null,Wl=!1,Vl=null,Ql=null,ql=!1,Yl=null,Kl=0,Zl=0,Xl=null,Gl=-1,Jl=0;function eu(){return 0!==(6&Nl)?Xe():-1!==Gl?Gl:Gl=Xe()}function tu(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Ll?Ll&-Ll:null!==vo.transition?(0===Jl&&(Jl=mt()),Jl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Zt(e.type)}function nu(e,t,n,r){if(50<Zl)throw Zl=0,Xl=null,Error(o(185));gt(e,n,r),0!==(2&Nl)&&e===jl||(e===jl&&(0===(2&Nl)&&(Il|=n),4===Rl&&su(e,Ll)),ru(e,r),1===n&&0===Nl&&0===(1&t.mode)&&(Ul=Xe()+500,Ai&&Ui()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===jl?Ll:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Ai=!0,Hi(e)}(lu.bind(null,e)):Hi(lu.bind(null,e)),ai((function(){0===(6&Nl)&&Ui()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=ju(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Gl=-1,Jl=0,0!==(6&Nl))throw Error(o(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ft(e,e===jl?Ll:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var i=Nl;Nl|=2;var a=hu();for(jl===e&&Ll===t||(Bl=null,Ul=Xe()+500,fu(e,t));;)try{yu();break}catch(l){pu(e,l)}Po(),Sl.current=a,Nl=i,null!==Tl?t=0:(jl=null,Ll=0,t=Rl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=ou(e,i))),1===t)throw n=Dl,fu(e,0),su(e,r),ru(e,Xe()),n;if(6===t)su(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=vu(e,r))&&(0!==(a=ht(e))&&(r=a,t=ou(e,a))),1===t))throw n=Dl,fu(e,0),su(e,r),ru(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:_u(e,Fl,Bl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Hl+500-Xe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_u.bind(null,e,Fl,Bl),t);break}_u(e,Fl,Bl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ri(_u.bind(null,e,Fl,Bl),r);break}_u(e,Fl,Bl);break;default:throw Error(o(329))}}}return ru(e,Xe()),e.callbackNode===n?iu.bind(null,e):null}function ou(e,t){var n=Al;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Fl,Fl=n,null!==t&&au(t)),e}function au(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function su(e,t){for(t&=~$l,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(0!==(6&Nl))throw Error(o(327));ku();var t=ft(e,0);if(0===(1&t))return ru(e,Xe()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=Dl,fu(e,0),su(e,t),ru(e,Xe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Fl,Bl),ru(e,Xe()),null}function uu(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(Ul=Xe()+500,Ai&&Ui())}}function cu(e){null!==Yl&&0===Yl.tag&&0===(6&Nl)&&ku();var t=Nl;Nl|=1;var n=Pl.transition,r=bt;try{if(Pl.transition=null,bt=1,e)return e()}finally{bt=r,Pl.transition=n,0===(6&(Nl=t))&&Ui()}}function du(){zl=Ol.current,Si(Ol)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Oi();break;case 3:Xo(),Si(ji),Si(Ni),ra();break;case 5:Jo(r);break;case 4:Xo();break;case 13:case 19:Si(ea);break;case 10:No(r.type._context);break;case 22:case 23:du()}n=n.return}if(jl=e,Tl=e=Ou(e.current,null),Ll=zl=t,Rl=0,Dl=null,$l=Il=Ml=0,Fl=Al=null,null!==zo){for(t=0;t<zo.length;t++)if(null!==(r=(n=zo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}zo=null}return e}function pu(e,t){for(;;){var n=Tl;try{if(Po(),ia.current=Ga,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,El.current=null,null===n||null===n.return){Rl=1,Dl=t,Tl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Ll,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vs(s);if(null!==h){h.flags&=-257,gs(h,s,l,0,t),1&h.mode&&ms(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(0===(1&t)){ms(a,c,t),mu();break e}u=Error(o(426))}else if(io&&1&l.mode){var g=vs(s);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),gs(g,s,l,0,t),mo(us(u,l));break e}}a=u=us(u,l),4!==Rl&&(Rl=2),null===Al?Al=[a]:Al.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Uo(a,ps(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Ql||!Ql.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Uo(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}wu(n)}catch(w){t=w,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function hu(){var e=Sl.current;return Sl.current=Ga,null===e?Ga:e}function mu(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===jl||0===(268435455&Ml)&&0===(268435455&Il)||su(jl,Ll)}function vu(e,t){var n=Nl;Nl|=2;var r=hu();for(jl===e&&Ll===t||(Bl=null,fu(e,t));;)try{gu();break}catch(i){pu(e,i)}if(Po(),Nl=n,Sl.current=r,null!==Tl)throw Error(o(261));return jl=null,Ll=0,Rl}function gu(){for(;null!==Tl;)bu(Tl)}function yu(){for(;null!==Tl&&!Ke();)bu(Tl)}function bu(e){var t=xl(e.alternate,e,zl);e.memoizedProps=e.pendingProps,null===t?wu(e):Tl=t,El.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=qs(n,t,zl)))return void(Tl=n)}else{if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Rl=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Rl&&(Rl=5)}function _u(e,t,n){var r=bt,i=Pl.transition;try{Pl.transition=null,bt=1,function(e,t,n,r){do{ku()}while(null!==Yl);if(0!==(6&Nl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===jl&&(Tl=jl=null,Ll=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||ql||(ql=!0,ju(tt,(function(){return ku(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Pl.transition,Pl.transition=null;var s=bt;bt=1;var l=Nl;Nl|=4,El.current=null,function(e,t){if(ei=Wt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(_){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===i&&(l=s),p===a&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Wt=!1,Gs=t;null!==Gs;)if(e=(t=Gs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Gs=e;else for(;null!==Gs;){t=Gs;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ns(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(_){Cu(t,t.return,_)}if(null!==(e=t.sibling)){e.return=t.return,Gs=e;break}Gs=t.return}m=tl,tl=!1}(e,n),vl(n,e),hr(ti),Wt=!!ei,ti=ei=null,e.current=n,yl(n,e,i),Ze(),Nl=l,bt=s,Pl.transition=a}else e.current=n;if(ql&&(ql=!1,Yl=e,Kl=i),a=e.pendingLanes,0===a&&(Ql=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ru(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Wl)throw Wl=!1,e=Vl,Vl=null,e;0!==(1&Kl)&&0!==e.tag&&ku(),a=e.pendingLanes,0!==(1&a)?e===Xl?Zl++:(Zl=0,Xl=e):Zl=0,Ui()}(e,t,n,r)}finally{Pl.transition=i,bt=r}return null}function ku(){if(null!==Yl){var e=wt(Kl),t=Pl.transition,n=bt;try{if(Pl.transition=null,bt=16>e?16:e,null===Yl)var r=!1;else{if(e=Yl,Yl=null,Kl=0,0!==(6&Nl))throw Error(o(331));var i=Nl;for(Nl|=4,Gs=e.current;null!==Gs;){var a=Gs,s=a.child;if(0!==(16&Gs.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Gs=c;null!==Gs;){var d=Gs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Gs=f;else for(;null!==Gs;){var p=(d=Gs).sibling,h=d.return;if(ol(d),d===c){Gs=null;break}if(null!==p){p.return=h,Gs=p;break}Gs=h}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Gs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Gs=s;else e:for(;null!==Gs;){if(0!==(2048&(a=Gs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Gs=y;break e}Gs=a.return}}var b=e.current;for(Gs=b;null!==Gs;){var w=(s=Gs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Gs=w;else e:for(s=b;null!==Gs;){if(0!==(2048&(l=Gs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(k){Cu(l,l.return,k)}if(l===s){Gs=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Gs=_;break e}Gs=l.return}}if(Nl=i,Ui(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(k){}r=!0}return r}finally{bt=n,Pl.transition=t}}return!1}function xu(e,t,n){e=Fo(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(gt(e,1,t),ru(e,t))}function Cu(e,t,n){if(3===e.tag)xu(e,e,n);else for(;null!==t;){if(3===t.tag){xu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ql||!Ql.has(r))){t=Fo(t,e=hs(t,e=us(n,e),1),1),e=eu(),null!==t&&(gt(t,1,e),ru(t,e));break}}t=t.return}}function Su(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,jl===e&&(Ll&n)===n&&(4===Rl||3===Rl&&(130023424&Ll)===Ll&&500>Xe()-Hl?fu(e,0):$l|=n),ru(e,t)}function Eu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Do(e,t))&&(gt(e,t,n),ru(e,n))}function Pu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Nu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Eu(e,n)}function ju(e,t){return qe(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lu(e,t,n,r){return new Tu(e,t,n,r)}function zu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Lu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ru(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)zu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case x:return Du(n.children,i,a,t);case C:s=8,i|=8;break;case S:return(e=Lu(12,n,t,2|i)).elementType=S,e.lanes=a,e;case j:return(e=Lu(13,n,t,i)).elementType=j,e.lanes=a,e;case T:return(e=Lu(19,n,t,i)).elementType=T,e.lanes=a,e;case O:return Mu(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case P:s=9;break e;case N:s=11;break e;case L:s=14;break e;case z:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Lu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Du(e,t,n,r){return(e=Lu(7,e,r,t)).lanes=n,e}function Mu(e,t,n,r){return(e=Lu(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return(e=Lu(6,e,null,t)).lanes=n,e}function $u(e,t,n){return(t=Lu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Au(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fu(e,t,n,r,i,o,a,s,l){return e=new Au(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Lu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Io(o),e}function Hu(e){if(!e)return Pi;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(zi(n))return Di(e,n,t)}return t}function Uu(e,t,n,r,i,o,a,s,l){return(e=Fu(n,r,!0,e,0,o,0,s,l)).context=Hu(null),n=e.current,(o=Ao(r=eu(),i=tu(n))).callback=void 0!==t&&null!==t?t:null,Fo(n,o,i),e.current.lanes=i,gt(e,i,r),ru(e,r),e}function Bu(e,t,n,r){var i=t.current,o=eu(),a=tu(i);return n=Hu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ao(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fo(i,t,a))&&(nu(e,i,a,o),Ho(e,i,a)),a}function Wu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){Vu(e,t),(e=e.alternate)&&Vu(e,t)}xl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||ji.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:js(t),ho();break;case 5:Go(t);break;case 1:zi(t.type)&&Mi(t);break;case 4:Zo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ei(xo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ei(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Is(e,t,n):(Ei(ea,1&ea.current),null!==(e=Ws(e,t,n))?e.sibling:null);Ei(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Us(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ei(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Ws(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&Ji(t,Qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bs(e,t),e=t.pendingProps;var i=Li(t,Ni.current);To(t,n),i=va(null,t,r,e,i,n);var a=ga();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zi(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Io(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Ns(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return zu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===L)return 14}return 2}(r),e=ns(r,e),i){case 0:t=Es(null,t,r,e,n);break e;case 1:t=Ps(null,t,r,e,n);break e;case 11:t=_s(null,t,r,e,n);break e;case 14:t=ks(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ps(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(js(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,$o(e,t),Bo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ts(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Ts(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=ko(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=Ws(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Go(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Ss(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Is(e,t,n);case 4:return Zo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_o(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,_s(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ei(xo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!ji.current){t=Ws(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Ao(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),jo(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),jo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,To(t,n),r=r(i=Lo(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),ks(e,t,r,i=ns(r.type,i),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Bs(e,t),t.tag=1,zi(r)?(e=!0,Mi(t)):e=!1,To(t,n),as(t,r,i),ls(t,r,i,n),Ns(null,t,r,!0,e,n);case 19:return Us(e,t,n);case 22:return Cs(e,t,n)}throw Error(o(156,t.tag))};var qu="function"===typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Gu(){}function Ju(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Wu(a);s.call(e)}}Bu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Wu(a);o.call(e)}}var a=Uu(t,r,e,0,null,!1,0,"",Gu);return e._reactRootContainer=a,e[hi]=a.current,Ur(8===e.nodeType?e.parentNode:e),cu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Wu(l);s.call(e)}}var l=Fu(e,0,!1,null,0,!1,0,"",Gu);return e._reactRootContainer=l,e[hi]=l.current,Ur(8===e.nodeType?e.parentNode:e),cu((function(){Bu(t,l,n,r)})),l}(n,t,e,i,r);return Wu(a)}Ku.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Bu(e,t,null,null)},Ku.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Bu(null,e,null,null)})),t[hi]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&It(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Xe()),0===(6&Nl)&&(Ul=Xe()+500,Ui()))}break;case 13:cu((function(){var t=Do(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Qu(e,1)}},kt=function(e){if(13===e.tag){var t=Do(e,134217728);if(null!==t)nu(t,e,134217728,eu());Qu(e,134217728)}},xt=function(e){if(13===e.tag){var t=tu(e),n=Do(e,t);if(null!==n)nu(n,e,t,eu());Qu(e,t)}},Ct=function(){return bt},St=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ke=function(e,t,n){switch(t){case"input":if(G(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];
vendor: 8,882 bytes, line 2
2if(r!==e&&r.form===e.form){var i=_i(r);if(!i)throw Error(o(90));q(r),G(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=uu,je=cu;var ec={usingClientEntryPoint:!1,Events:[bi,wi,_i,Ee,Pe,uu]},tc={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),ot=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zu(e))throw Error(o(299));var n=!1,r="",i=qu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Fu(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,Ur(8===e.nodeType?e.parentNode:e),new Yu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(o(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=qu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Uu(t,null,e,1,null!=n?n:null,i,0,a,s),e[hi]=t.current,Ur(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ku(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(o(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(o(40));return!!e._reactRootContainer&&(cu((function(){Ju(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},2407:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2401)},3446:(e,t,n)=>{"use strict";e.exports=n(998)},3588:(e,t,n)=>{"use strict";e.exports=n(2345)},3902:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},4077:(e,t,n)=>{"use strict";e.exports=n(7452)},4121:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,m(w,g.prototype),w.isPureReactComponent=!0;var _=Array.isArray,k=Object.prototype.hasOwnProperty,x={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,i)&&!C.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:x.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+N(l,0):o,_(a)?(i="",null!=e&&(i=e.replace(P,"$&/")+"/"),j(a,t,i,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",_(e))for(var u=0;u<e.length;u++){var c=o+N(s=e[u],u);l+=j(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=j(s=s.value,t,i,c=o+N(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,n){if(null==e)return e;var r=[],i=0;return j(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var z={current:null},O={transition:null},R={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:O,ReactCurrentOwner:x};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INT
vendor: 14,850 bytes, line 2
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=D,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)k.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return z.current.useCallback(e,t)},t.useContext=function(e){return z.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return z.current.useDeferredValue(e)},t.useEffect=function(e,t){return z.current.useEffect(e,t)},t.useId=function(){return z.current.useId()},t.useImperativeHandle=function(e,t,n){return z.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return z.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return z.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return z.current.useMemo(e,t)},t.useReducer=function(e,t,n){return z.current.useReducer(e,t,n)},t.useRef=function(e){return z.current.useRef(e)},t.useState=function(e){return z.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return z.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return z.current.useTransition()},t.version="18.3.1"},6615:function(e,t,n){e.exports=function(e){"use strict";var t="default"in e?e.default:e,n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function r(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n}(function(e,t,n,r){function i(t,n){this.settings=null,this.options=e.extend({},i.Defaults,n),this.$element=e(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},e.each(["onResize","onThrottledResize"],e.proxy((function(t,n){this._handlers[n]=e.proxy(this[n],this)}),this)),e.each(i.Plugins,e.proxy((function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)}),this)),e.each(i.Workers,e.proxy((function(t,n){this._pipe.push({filter:n.filter,run:e.proxy(n.run,this)})}),this)),this.setup(),this.initialize()}i.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},i.Width={Default:"default",Inner:"inner",Outer:"outer"},i.Type={Event:"event",State:"state"},i.Plugins={},i.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",n=!this.settings.autoWidth,r=this.settings.rtl,i={width:"auto","margin-left":r?t:"","margin-right":r?"":t};!n&&this.$stage.children().css(i),e.css=i}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,n=null,r=this._items.length,i=!this.settings.autoWidth,o=[];for(e.items={merge:!1,width:t};r--;)n=this._mergers[r],n=this.settings.mergeFit&&Math.min(n,this.settings.items)||n,e.items.merge=n>1||e.items.merge,o[r]=i?t*n:this._items[r].width();this._widths=o}},{filter:["items","settings"],run:function(){var t=[],n=this._items,r=this.settings,i=Math.max(2*r.items,4),o=2*Math.ceil(n.length/2),a=r.loop&&n.length?r.rewind?i:Math.max(i,o):0,s="",l="";for(a/=2;a>0;)t.push(this.normalize(t.length/2,!0)),s+=n[t[t.length-1]][0].outerHTML,t.push(this.normalize(n.length-1-(t.length-1)/2,!0)),l=n[t[t.length-1]][0].outerHTML+l,a-=1;this._clones=t,e(s).addClass("cloned").appendTo(this.$stage),e(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,n=-1,r=0,i=0,o=[];++n<t;)r=o[n-1]||0,i=this._widths[this.relative(n)]+this.settings.margin,o.push(r+i*e);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,n={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(n)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,n=!this.settings.autoWidth,r=this.$stage.children();if(n&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],r.eq(t).css(e.css);else n&&(e.css.width=e.items.width,r.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,n,r,i=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,a=this.coordinates(this.current())+o,s=a+this.width()*i,l=[];for(n=0,r=this._coordinates.length;n<r;n++)e=this._coordinates[n-1]||0,t=Math.abs(this._coordinates[n])+o*i,(this.op(e,"<=",a)&&this.op(e,">",s)||this.op(t,"<",a)&&this.op(t,">",s))&&l.push(n);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],i.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(e("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},i.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map((function(t){return e(t)})),this._mergers=this._items.map((function(){return 1})),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},i.prototype.initialize=function(){var e,t,n;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:r,n=this.$element.children(t).width(),e.length&&n<=0&&this.preloadAutoWidthImages(e)),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},i.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},i.prototype.setup=function(){var t=this.viewport(),n=this.options.responsive,r=-1,i=null;n?(e.each(n,(function(e){e<=t&&e>r&&(r=Number(e))})),"function"===typeof(i=e.extend({},this.options,n[r])).stagePadding&&(i.stagePadding=i.stagePadding()),delete i.responsive,i.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+r))):i=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:i}}),this._breakpoint=r,this.settings=i,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},i.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},i.prototype.prepare=function(t){var n=this.trigger("prepare",{content:t});return n.data||(n.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:n.data}),n.data},i.prototype.update=function(){for(var t=0,n=this._pipe.length,r=e.proxy((function(e){return this[e]}),this._invalidated),i={};t<n;)(this._invalidated.all||e.grep(this._pipe[t].filter,r).length>0)&&this._pipe[t].run(i),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},i.prototype.width=function(e){switch(e=e||i.Width.Default){case i.Width.Inner:case i.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},i.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},i.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},i.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},i.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(t,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},i.prototype.onDragStart=function(t){var r=null;3!==t.which&&(e.support.transform?r={x:(r=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===r.length?12:4],y:r[16===r.length?13:5]}:(r=this.$stage.position(),r={x:this.settings.rtl?r.left+this.$stage.width()-this.width()+this.settings.margin:r.left,y:r.top}),this.is("animating")&&(e.support.transform?this.animate(r.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=r,this._drag.stage.current=r,this._drag.pointer=this.pointer(t),e(n).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(n).one("mousemove.owl.core touchmove.owl.core",e.proxy((function(t){var r=this.difference(this._drag.pointer,this.pointer(t));e(n).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(r.x)<Math.abs(r.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))}),this)))},i.prototype.onDragMove=function(e){var t=null,n=null,r=null,i=this.difference(this._drag.pointer,this.pointer(e)),o=this.difference(this._drag.stage.start,i);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),n=this.coordinates(this.maximum()+1)-t,o.x=((o.x-t)%n+n)%n+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),n=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),r=this.settings.pullDrag?-1*i.x/5:0,o.x=Math.max(Math.min(o.x,t+r),n+r)),this._drag.stage.current=o,this.animate(o.x))},i.prototype.onDragEnd=function(t){var r=this.difference(this._drag.pointer,this.pointer(t)),i=this._drag.stage.current,o=r.x>0^this.settings.rtl?"left":"right";e(n).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==r.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,0!==r.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(r.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},i.prototype.closest=function(t,n){var i=-1,o=30,a=this.width(),s=this.coordinates();return this.settings.freeDrag||e.each(s,e.proxy((function(e,l){return"left"===n&&t>l-o&&t<l+o?i=e:"right"===n&&t>l-a-o&&t<l-a+o?i=e+1:this.op(t,"<",l)&&this.op(t,">
2",s[e+1]!==r?s[e+1]:l-a)&&(i="left"===n?e+1:e),-1===i}),this)),this.settings.loop||(this.op(t,">",s[this.minimum()])?i=t=this.minimum():this.op(t,"<",s[this.maximum()])&&(i=t=this.maximum())),i},i.prototype.animate=function(t){var n=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),n&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):n?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},i.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},i.prototype.current=function(e){if(e===r)return this._current;if(0===this._items.length)return r;if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});t.data!==r&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},i.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,(function(e,t){return t}))},i.prototype.reset=function(e){(e=this.normalize(e))!==r&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},i.prototype.normalize=function(e,t){var n=this._items.length,i=t?0:this._clones.length;return!this.isNumeric(e)||n<1?e=r:(e<0||e>=n+i)&&(e=((e-i/2)%n+n)%n+i/2),e},i.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},i.prototype.maximum=function(e){var t,n,r,i=this.settings,o=this._coordinates.length;if(i.loop)o=this._clones.length/2+this._items.length-1;else if(i.autoWidth||i.merge){if(t=this._items.length)for(n=this._items[--t].width(),r=this.$element.width();t--&&!((n+=this._items[t].width()+this.settings.margin)>r););o=t+1}else o=i.center?this._items.length-1:this._items.length-i.items;return e&&(o-=this._clones.length/2),Math.max(o,0)},i.prototype.minimum=function(e){return e?0:this._clones.length/2},i.prototype.items=function(e){return e===r?this._items.slice():(e=this.normalize(e,!0),this._items[e])},i.prototype.mergers=function(e){return e===r?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},i.prototype.clones=function(t){var n=this._clones.length/2,i=n+this._items.length,o=function(e){return e%2===0?i+e/2:n-(e+1)/2};return t===r?e.map(this._clones,(function(e,t){return o(t)})):e.map(this._clones,(function(e,n){return e===t?o(n):null}))},i.prototype.speed=function(e){return e!==r&&(this._speed=e),this._speed},i.prototype.coordinates=function(t){var n,i=1,o=t-1;return t===r?e.map(this._coordinates,e.proxy((function(e,t){return this.coordinates(t)}),this)):(this.settings.center?(this.settings.rtl&&(i=-1,o=t+1),n=this._coordinates[t],n+=(this.width()-n+(this._coordinates[o]||0))/2*i):n=this._coordinates[o]||0,n=Math.ceil(n))},i.prototype.duration=function(e,t,n){return 0===n?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(n||this.settings.smartSpeed)},i.prototype.to=function(e,t){var n=this.current(),r=null,i=e-this.relative(n),o=(i>0)-(i<0),a=this._items.length,s=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(i)>a/2&&(i+=-1*o*a),(r=(((e=n+i)-s)%a+a)%a+s)!==e&&r-i<=l&&r-i>0&&(n=r-i,e=r,this.reset(n))):e=this.settings.rewind?(e%(l+=1)+l)%l:Math.max(s,Math.min(l,e)),this.speed(this.duration(n,e,t)),this.current(e),this.isVisible()&&this.update()},i.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},i.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},i.prototype.onTransitionEnd=function(e){if(e!==r&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},i.prototype.viewport=function(){var r;return this.options.responsiveBaseElement!==t?r=e(this.options.responsiveBaseElement).width():t.innerWidth?r=t.innerWidth:n.documentElement&&n.documentElement.clientWidth?r=n.documentElement.clientWidth:console.warn("Can not detect viewport width."),r},i.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter((function(){return 1===this.nodeType})).each(e.proxy((function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},i.prototype.add=function(t,n){var i=this.relative(this._current);n=n===r?this._items.length:this.normalize(n,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:n}),t=this.prepare(t),0===this._items.length||n===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[n-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[n].before(t),this._items.splice(n,0,t),this._mergers.splice(n,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate("items"),this.trigger("added",{content:t,position:n})},i.prototype.remove=function(e){(e=this.normalize(e,!0))!==r&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},i.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy((function(t,n){this.enter("pre-loading"),n=e(n),e(new Image).one("load",e.proxy((function(e){n.attr("src",e.target.src),n.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",n.attr("src")||n.attr("data-src")||n.attr("data-src-retina"))}),this))},i.prototype.destroy=function(){for(var r in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(n).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[r].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},i.prototype.op=function(e,t,n){var r=this.settings.rtl;switch(t){case"<":return r?e>n:e<n;case">":return r?e<n:e>n;case">=":return r?e<=n:e>=n;case"<=":return r?e>=n:e<=n}},i.prototype.on=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,n)},i.prototype.off=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on"+t,n)},i.prototype.trigger=function(t,n,r,o,a){var s={item:{count:this._items.length,index:this.current()}},l=e.camelCase(e.grep(["on",t,r],(function(e){return e})).join("-").toLowerCase()),u=e.Event([t,"owl",r||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},s,n));return this._supress[t]||(e.each(this._plugins,(function(e,t){t.onTrigger&&t.onTrigger(u)})),this.register({type:i.Type.Event,name:t}),this.$element.trigger(u),this.settings&&"function"===typeof this.settings[l]&&this.settings[l].call(this,u)),u},i.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy((function(e,t){this._states.current[t]===r&&(this._states.current[t]=0),this._states.current[t]++}),this))},i.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy((function(e,t){this._states.current[t]--}),this))},i.prototype.register=function(t){if(t.type===i.Type.Event){if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var n=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!n||!n.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:n.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===i.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].
vendor: 7,652 bytes, line 2
2concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy((function(n,r){return e.inArray(n,this._states.tags[t.name])===r}),this)))},i.prototype.suppress=function(t){e.each(t,e.proxy((function(e,t){this._supress[t]=!0}),this))},i.prototype.release=function(t){e.each(t,e.proxy((function(e,t){delete this._supress[t]}),this))},i.prototype.pointer=function(e){var n={x:null,y:null};return(e=(e=e.originalEvent||e||t.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(n.x=e.pageX,n.y=e.pageY):(n.x=e.clientX,n.y=e.clientY),n},i.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},i.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var n=Array.prototype.slice.call(arguments,1);return this.each((function(){var r=e(this),o=r.data("owl.carousel");o||(o=new i(this,"object"==typeof t&&t),r.data("owl.carousel",o),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(t,n){o.register({type:i.Type.Event,name:n}),o.$element.on(n+".owl.carousel.core",e.proxy((function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([n]),o[n].apply(this,[].slice.call(arguments,1)),this.release([n]))}),o))}))),"string"==typeof t&&"_"!==t.charAt(0)&&o[t].apply(o,n)}))},e.fn.owlCarousel.Constructor=i})(window.Zepto||window.jQuery,window,document),function(e,t){var n=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var e,n;for(e in t.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.Zepto||window.jQuery,window,document),function(e,t,n,r){var i=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy((function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var n=this._core.settings,i=n.center&&Math.ceil(n.items/2)||n.items,o=n.center&&-1*i||0,a=(t.property&&t.property.value!==r?t.property.value:this._core.current())+o,s=this._core.clones().length,l=e.proxy((function(e,t){this.load(t)}),this);for(n.lazyLoadEager>0&&(i+=n.lazyLoadEager,n.loop&&(a-=n.lazyLoadEager,i++));o++<i;)this.load(s/2+this._core.relative(a)),s&&e.each(this._core.clones(this._core.relative(a)),l),a++}}),this)},this._core.options=e.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1,lazyLoadEager:0},i.prototype.load=function(n){var r=this._core.$stage.children().eq(n),i=r&&r.find(".owl-lazy");!i||e.inArray(r.get(0),this._loaded)>-1||(i.each(e.proxy((function(n,r){var i,o=e(r),a=t.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src")||o.attr("data-srcset");this._core.trigger("load",{element:o,url:a},"lazy"),o.is("img")?o.one("load.owl.lazy",e.proxy((function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:a},"lazy")}),this)).attr("src",a):o.is("source")?o.one("load.owl.lazy",e.proxy((function(){this._core.trigger("loaded",{element:o,url:a},"lazy")}),this)).attr("srcset",a):((i=new Image).onload=e.proxy((function(){o.css({"background-image":'url("'+a+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:a},"lazy")}),this),i.src=a)}),this)),this._loaded.push(r.get(0)))},i.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(e,t){var n=function(r){this._core=r,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()}),this),"loaded.owl.lazy":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var i=this;e(t).on("load",(function(){i._core.settings.autoHeight&&i.update()})),e(t).resize((function(){i._core.settings.autoHeight&&(null!=i._intervalId&&clearTimeout(i._intervalId),i._intervalId=setTimeout((function(){i.update()}),250))}))};n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var t=this._core._current,n=t+this._core.settings.items,r=this._core.settings.lazyLoad,i=this._core.$stage.children().toArray().slice(t,n),o=[],a=0;e.each(i,(function(t,n){o.push(e(n).height())})),(a=Math.max.apply(null,o))<=1&&r&&this._previousHeight&&(a=this._previousHeight),this._previousHeight=a,this._core.$stage.parent().height(a).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!==typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.Zepto||window.jQuery,window,document),function(e,t,n){var r=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()}),this),"refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":e.proxy((function(t){if(t.namespace){var n=e(t.content).find(".owl-video");n.length&&(n.css("display","none"),this.fetch(n,e(t.content)))}}),this)},this._core.options=e.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy((function(e){this.play(e)}),this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1},r.prototype.fetch=function(e,t){var n=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",r=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),i=e.attr("data-width")||this._core.settings.videoWidth,o=e.attr("data-height")||this._core.settings.videoHeight,a=e.attr("href");if(!a)throw new Error("Missing video URL.");
vendor: 12,209 bytes, line 2
2if((r=a.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)n="youtube";else if(r[3].indexOf("vimeo")>-1)n="vimeo";else{if(!(r[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");n="vzaar"}r=r[6],this._videos[a]={type:n,id:r,width:i,height:o},t.attr("data-video",a),this.thumbnail(e,this._videos[a])},r.prototype.thumbnail=function(t,n){var r,i,o,a=n.width&&n.height?"width:"+n.width+"px;height:"+n.height+"px;":"",s=t.find("img"),l="src",u="",c=this._core.settings,d=function(n){i='<div class="owl-video-play-icon"></div>',r=c.lazyLoad?e("<div/>",{class:"owl-video-tn "+u,srcType:n}):e("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+n+")"}),t.after(r),t.after(i)};if(t.wrap(e("<div/>",{class:"owl-video-wrapper",style:a})),this._core.settings.lazyLoad&&(l="data-src",u="owl-lazy"),s.length)return d(s.attr(l)),s.remove(),!1;"youtube"===n.type?(o="//img.youtube.com/vi/"+n.id+"/hqdefault.jpg",d(o)):"vimeo"===n.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){o=e[0].thumbnail_large,d(o)}}):"vzaar"===n.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){o=e.framegrab_url,d(o)}})},r.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},r.prototype.play=function(t){var n,r=e(t.target).closest("."+this._core.settings.itemClass),i=this._videos[r.attr("data-video")],o=i.width||"100%",a=i.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),r=this._core.items(this._core.relative(r.index())),this._core.reset(r.index()),(n=e('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",a),n.attr("width",o),"youtube"===i.type?n.attr("src","//www.youtube.com/embed/"+i.id+"?autoplay=1&rel=0&v="+i.id):"vimeo"===i.type?n.attr("src","//player.vimeo.com/video/"+i.id+"?autoplay=1"):"vzaar"===i.type&&n.attr("src","//view.vzaar.com/"+i.id+"/player?autoplay=true"),e(n).wrap('<div class="owl-video-frame" />').insertAfter(r.find(".owl-video")),this._playing=r.addClass("owl-video-playing"))},r.prototype.isInFullScreen=function(){var t=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},r.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||window.jQuery,window,document),function(e,t,n,r){var i=function(t){this.core=t,this.core.options=e.extend({},i.Defaults,this.core.options),this.swapping=!0,this.previous=r,this.next=r,this.handlers={"change.owl.carousel":e.proxy((function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy((function(e){e.namespace&&(this.swapping="translated"==e.type)}),this),"translate.owl.carousel":e.proxy((function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};i.Defaults={animateOut:!1,animateIn:!1},i.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,n=e.proxy(this.clear,this),r=this.core.$stage.children().eq(this.previous),i=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,a=this.core.settings.animateOut;this.core.current()!==this.previous&&(a&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),r.one(e.support.animation.end,n).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(a)),o&&i.one(e.support.animation.end,n).addClass("animated owl-animated-in").addClass(o))}},i.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},i.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=i}(window.Zepto||window.jQuery,window,document),function(e,t,n){var r=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":e.proxy((function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":e.proxy((function(e,t,n){e.namespace&&this.play(t,n)}),this),"stop.owl.autoplay":e.proxy((function(e){e.namespace&&this.stop()}),this),"mouseover.owl.autoplay":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":e.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},r.Defaults,this._core.options)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},r.prototype._next=function(r){this._call=t.setTimeout(e.proxy(this._next,this,r),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||n.hidden||this._core.next(r||this._core.settings.autoplaySpeed)},r.prototype.read=function(){return(new Date).getTime()-this._time},r.prototype.play=function(n,r){var i;this._core.is("rotating")||this._core.enter("rotating"),n=n||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||n),n),this._paused?(this._time=this.read(),this._paused=!1):t.clearTimeout(this._call),this._time+=this.read()%n-i,this._timeout=n,this._call=t.setTimeout(e.proxy(this._next,this,r),n-i)},r.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,t.clearTimeout(this._call),this._core.leave("rotating"))},r.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,t.clearTimeout(this._call))},r.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||window.jQuery,window,document),function(e){var t=function(n){this._core=n,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")}),this),"added.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())}),this),"remove.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&"position"==e.property.name&&this.draw()}),this),"initialized.owl.carousel":e.proxy((function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=e.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers)};t.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},t.prototype.initialize=function(){var t,n=this._core.settings;for(t in this._controls.$relative=(n.navContainer?e(n.navContainer):e("<div>").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy((function(e){this.prev(n.navSpeed)}),this)),this._controls.$next=e("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy((function(e){this.next(n.navSpeed)}),this)),n.dotsData||(this._templates=[e('<button role="button">').addClass(n.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(n.dotsContainer?e(n.dotsContainer):e("<div>").addClass(n.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",e.proxy((function(t){var r=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(r,n.dotsSpeed)}),this)),this._overrides)this._core[t]=e.proxy(this[t],this)},t.prototype.destroy=function(){var e,t,n,r,i;for(e in i=this._core.settings,this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&i.navContainer?this._controls[t].html(""):this._controls[t].remove();for(r in this.overides)this._core[r]=this._overrides[r];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.prototype.update=function(){var e,t,n=this._core.clones().length/2,r=n+this._core.items().length,i=this._core.maximum(!0),o=this._core.settings,a=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],e=n,t=0;e<r;e++){if(t>=a||0===t){if(this._pages.push({start:Math.min(i,e-n),end:e-n+a-1}),Math.min(i,e-n)===i)break;t=0}t+=this._core.mergers(this._core.relative(e))}},t.prototype.draw=function(){var t,n=this._core.settings,r=this._core.items().length<=n.items,i=this._core.relative(this._core.current()),o=n.loop||n.rewind;this._controls.$relative.toggleClass("disabled",!n.nav||r),n.nav&&(this._controls.$previous.toggleClass("disabled",!o&&i<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&i>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!n.dots||r),n.dots&&(t=this._pages.length-this._controls.$absolute.children().length,n.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},t.prototype.onTrigger=function(t){var n=this._core.settings;
2t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:n&&(n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items)}},t.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy((function(e,n){return e.start<=t&&e.end>=t}),this)).pop()},t.prototype.getPosition=function(t){var n,r,i=this._core.settings;return"page"==i.slideBy?(n=e.inArray(this.current(),this._pages),r=this._pages.length,t?++n:--n,n=this._pages[(n%r+r)%r].start):(n=this._core.relative(this._core.current()),r=this._core.items().length,t?n+=i.slideBy:n-=i.slideBy),n},t.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},t.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},t.prototype.to=function(t,n,r){var i;!r&&this._pages.length?(i=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%i+i)%i].start,n)):e.proxy(this._overrides.to,this._core)(t,n)},e.fn.owlCarousel.Constructor.Plugins.Navigation=t}(window.Zepto||window.jQuery,window,document),function(e,t,n,r){var i=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy((function(n){n.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")}),this),"prepared.owl.carousel":e.proxy((function(t){if(t.namespace){var n=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!n)return;this._hashes[n]=t.content}}),this),"changed.owl.carousel":e.proxy((function(n){if(n.namespace&&"position"===n.property.name){var r=this._core.items(this._core.relative(this._core.current())),i=e.map(this._hashes,(function(e,t){return e===r?t:null})).join();if(!i||t.location.hash.slice(1)===i)return;t.location.hash=i}}),this)},this._core.options=e.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy((function(e){var n=t.location.hash.substring(1),i=this._core.$stage.children(),o=this._hashes[n]&&i.index(this._hashes[n]);o!==r&&o!==this._core.current()&&this._core.to(this._core.relative(o),!1,!0)}),this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var n,r;for(n in e(t).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(n,this._handlers[n]);for(r in Object.getOwnPropertyNames(this))"function"!=typeof this[r]&&(this[r]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document),function(e,t,n,r){var i=e("<support>").get(0).style,o="Webkit Moz O ms".split(" "),a={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},s={csstransforms:function(){return!!l("transform")},csstransforms3d:function(){return!!l("perspective")},csstransitions:function(){return!!l("transition")},cssanimations:function(){return!!l("animation")}};function l(t,n){var a=!1,s=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+o.join(s+" ")+s).split(" "),(function(e,t){if(i[t]!==r)return a=!n||t,!1})),a}function u(e){return l(e,!0)}s.csstransitions()&&(e.support.transition=new String(u("transition")),e.support.transition.end=a.transition.end[e.support.transition]),s.cssanimations()&&(e.support.animation=new String(u("animation")),e.support.animation.end=a.animation.end[e.support.animation]),s.csstransforms()&&(e.support.transform=new String(u("transform")),e.support.transform3d=s.csstransforms3d())}(window.Zepto||window.jQuery,window,document);var a=window.jQuery,s=function(e){function n(t){var n=e.call(this,t)||this;n.containerRef=function(e){n.container=e};var r=u(n.props),i=r[0],o=r[1];return n.options=i,n.propsWithoutOptions=o,n}return r(n,e),n.prototype.componentDidMount=function(){this.$ele=a(this.container),this.create()},n.prototype.UNSAFE_componentWillReceiveProps=function(){this.destory()},n.prototype.componentDidUpdate=function(){var e=u(this.props),t=e[0],n=e[1];this.options=t,this.propsWithoutOptions=n,this.create()},n.prototype.next=function(e){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"===typeof e?this.$ele.trigger("next.owl.carousel",[e]):this.$ele.trigger("next.owl.carousel",e)}
2,n.prototype.prev=function(e){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"===typeof e?this.$ele.trigger("prev.owl.carousel",[e]):this.$ele.trigger("prev.owl.carousel",e)},n.prototype.to=function(e,t){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"===typeof e&&"number"===typeof t?this.$ele.trigger("to.owl.carousel",[e,t]):this.$ele.trigger("to.owl.carousel")},n.prototype.create=function(e){if(!this.$ele)throw new Error("OwlCarousel is not created");this.$ele.owlCarousel(e||this.options)},n.prototype.destory=function(){if(!this.$ele)throw new Error("OwlCarousel is not created");this.$ele.trigger("destroy.owl.carousel")},n.prototype.play=function(e,t){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"===typeof e&&"number"===typeof t?this.$ele.trigger("play.owl.autoplay",[e,t]):this.$ele.trigger("play.owl.autoplay")},n.prototype.stop=function(){if(!this.$ele)throw new Error("OwlCarousel is not created");this.$ele.trigger("stop.owl.autoplay")},n.prototype.render=function(){var e=this.propsWithoutOptions,n=e.className,r=o(e,["className"]);return t.createElement("div",i({className:"owl-carousel "+n,ref:this.containerRef},r))},n}(e.Component),l=new Set(["items","margin","loop","center","mouseDrag","touchDrag","pullDrag","freeDrag","stagePadding","merge","mergeFit","autoWidth","startPosition","URLhashListener","nav","rewind","navText","navElement","slideBy","dots","dotsEach","dotData","lazyLoad","lazyContent","autoplay","autoplayTimeout","autoplayHoverPause","smartSpeed","fluidSpeed","autoplaySpeed","navSpeed","dotsSpeed","dragEndSpeed","callbacks","responsive","responsiveRefreshRate","responsiveBaseElement","video","videoHeight","videoWidth","animateOut","animateIn","fallbackEasing","info","nestedItemSelector","itemElement","stageElement","navContainer","dotsContainer","refreshClass","loadingClass","loadedClass","rtlClass","dragClass","grabClass","stageClass","stageOuterClass","navContainerClass","navClass","controlsClass","dotClass","dotsClass","autoHeightClass","responsiveClass","onInitialize","onInitialized","onResize","onResized","onRefresh","onRefreshed","onDrag","onDragged","onTranslate","onTranslated","onChange","onChanged","onLoadLazy","onLoadedLazy","onStopVideo","onPlayVideo"]);function u(e){var t={},n={};return Object.keys(e).forEach((function(r){l.has(r)?t[r]=e[r]:n[r]=e[r]})),[t,n]}return s}(n(4077))},6896:(e,t,n)=>{"use strict";var r=n(2407);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},6998:(e,t,n)=>{"use strict";e.exports=n(4121)},7452:(e,t,n)=>{"use strict";var r=n(3902),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,v="function"===typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function _(){}function k(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var x=k.prototype=new _;x.constructor=k,r(x,w.prototype),x.isPureReactComponent=!0;var C={current:null},S=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!E.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:C.current}}function N(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var j=/\/+/g,T=[];function L(e,t,n,r){if(T.length){var i=T.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function z(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>T.length&&T.push(e)}function O(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}
vendor: 3,501 bytes, line 2
2if(s)return n(r,e,""===t?"."+D(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var u=t+D(i=e[l],l);s+=O(i,u,n,r)}else if(null===e||"object"!==typeof e?u=null:u="function"===typeof(u=v&&e[v]||e["@@iterator"])?u:null,"function"===typeof u)for(e=u.call(e),l=0;!(i=e.next()).done;)s+=O(i=i.value,u=t+D(i,l++),n,r);else if("object"===i)throw n=""+e,Error(g(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function R(e,t,n){return null==e?0:O(e,"",t,n)}function D(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function I(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?$(e,r,n,(function(e){return e})):null!=e&&(N(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(j,"$&/")+"/")+n)),r.push(e))}function $(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(j,"$&/")+"/"),R(e,I,t=L(t,o,r,i)),z(t)}var A={current:null};function F(){var e=A.current;if(null===e)throw Error(g(321));return e}var H={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return $(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,M,t=L(null,null,t,n)),z(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return $(e,t,null,(function(e){return e})),t},only:function(e){if(!N(e))throw Error(g(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=u,t.PureComponent=k,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(g(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)S.call(t,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=P,t.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=N,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)}
2,t.useState=function(e){return F().useState(e)},t.version="16.14.0"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0,(()=>{"use strict";var e=n(6998),t=n.t(e,2),r=n(6896);const i=wp.i18n,o=(0,e.createContext)(null),a=(0,e.createContext)(null),s=(0,e.createContext)(null),l=(0,e.createContext)(null),u=(0,e.createContext)(null);var c,d=n(3446);class f{}c=f,f.getClassNames=(e,t,n)=>{let r=[t,e.customClass];return n.forEach((function(n){var i,o,a;"object"===typeof n&&r.push(t+"-"+(void 0===e[null===(i=Object.keys(n))||void 0===i?void 0:i[0]]?null===(o=Object.values(n))||void 0===o?void 0:o[0]:e[null===(a=Object.keys(n))||void 0===a?void 0:a[0]]));void 0!==e[n]&&r.push(t+"-"+e[n])})),r.join(" ")},f.getElementAttributes=(e,t,n)=>{let r=[];return t.forEach((function(t){var n,i,o,a;"object"===typeof t?r[`data-${null===(n=Object.keys(t))||void 0===n?void 0:n[0]}`]=void 0===e[null===(i=Object.keys(t))||void 0===i?void 0:i[0]]?null===(o=Object.values(t))||void 0===o?void 0:o[0]:e[null===(a=Object.keys(t))||void 0===a?void 0:a[0]]:void 0!==e[t]&&null!==e[t]&&("disabled"===t?r[`${t}`]=e[t]:r[`data-${t}`]=e[t])})),r},f.goToLink=(e,t)=>()=>{window.open(e,t)},f.getElementActions=(e,t,n)=>{if(null!==e&&void 0!==e&&e.link)return{onClick:c.goToLink(null===e||void 0===e?void 0:e.link,(null===e||void 0===e?void 0:e.target)||"_self")};{let n=[];return t.forEach((function(t){void 0!==e[t]&&(n[`${t}`]=e[t])})),n}},f.getElementStyles=(e,t)=>{let n={};return t.forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n},f.checkNotEmpty=e=>{var t;return void 0!==e&&"undefined"!==e&&null!==e&&""!==(null===e||void 0===e||null===(t=e.toString())||void 0===t?void 0:t.replace(/ /gi,""))},f.ajaxPost=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;var a,s,l=new FormData;for(var u in t)l.append(u,t[u]);void 0===t.nonce&&l.append("nonce",null===(a=window)||void 0===a||null===(s=a.sb_customizer)||void 0===s?void 0:s.nonce);null!==r&&r.setLoader(!0),fetch(e,{method:"POST",credentials:"same-origin",body:l}).then((e=>e.json())).then((e=>{n(e),null!==r&&r.setLoader(!1),null!==i&&(null===o||void 0===o?void 0:o.success)&&c.applyNotification(o.success,i)})).catch((e=>{null!==r&&r.setLoader(!1),null!==i&&(null===o||void 0===o?void 0:o.error)&&c.applyNotification(o.error,i)}))},f.applyNotification=(e,t)=>{t.setNotification({active:!0,type:null===e||void 0===e?void 0:e.type,icon:null===e||void 0===e?void 0:e.icon,text:null===e||void 0===e?void 0:e.text}),setTimeout((function(){t.setNotification({active:!1,type:null,icon:null,text:null})}),null!==e&&void 0!==e&&e.time?null===e||void 0===e?void 0:e.time:3e3)},f.addCssUnit=e=>c.checkNotEmpty(e)?(e=e.toString().trim()).match(/^[0-9]+$/)?`${e}px`:e.match(/^[0-9]+px$/)||e.match(/^[0-9]+em$/)||e.match(/^[0-9]+%$/)||e.match(/^[0-9]+vh$/)||e.match(/^[0-9]+vw$/)?e:void 0:"0px",f.findElementById=(e,t,n)=>{const r=Object.entries(e).find((e=>{let[r,i]=e;return i[t]===n}));return r?r[1]:void 0},f.findNestedElement=(e,t,n)=>{if("object"===typeof e){return null===e||void 0===e?void 0:e.find(((r,i)=>{if(r[t]===n)return r;{let i=void 0!==(null===r||void 0===r?void 0:r.sections)?Object.entries(r.sections):r;var o,a;if("string"===typeof r)i=Object.entries(null===(o=e[1])||void 0===o?void 0:o.controls)?Object.entries(null===(a=e[1])||void 0===a?void 0:a.controls):{};return c.findNestedElement(i,t,n)}}))}return!1},f.printIcon=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;const a=void 0!==o&&{width:o+"px"}||null;return null!==(t=window)&&void 0!==t&&null!==(n=t.sb_customizer)&&void 0!==n&&n.iconsList[e]?(0,d.jsx)("span",{className:(!1!==r?r:"")+(void 0!==o?" sb-custom-icon-size":""),style:a,"aria-hidden":"true",dangerouslySetInnerHTML:{__html:window.sb_customizer.iconsList[e]}},i):""},f.checkControlCondition=(e,t)=>{var n,r,i,o;let a=!(null===(n=window)||void 0===n||null===(r=n.sb_customizer)||void 0===r||!r.isPro||null===(i=window)||void 0===i||null===(o=i.sb_customizer)||void 0===o||!o.isPro);if(!0===(null===e||void 0===e?void 0:e.hidePro)&&!0!==a)return!1;if(void 0===(null===e||void 0===e?void 0:e.condition))return!0;{let n=0;
2Object.keys(e.condition).forEach((r=>{-1!==e.condition[r].indexOf(t[r])&&(n+=1)}));let r=n===Object.keys(e.condition).length;return!1===r&&!0===(null===e||void 0===e?void 0:e.conditionDimmed)?"dimmed":r}},f.getFeedStyling=(e,t,n)=>{let r="";return t.forEach((t=>{Object.values(t.sections).forEach((t=>{r+=c.getFeedStylingRecursive(t,e,n)}))})),r},f.getFeedStylingRecursive=(e,t,n)=>{let r="";return null===e||void 0===e||e.controls.forEach((function(e){let i=c.getSingleControlStyle(e,t,n);r+=!1!==i?i:"",void 0!==(null===e||void 0===e?void 0:e.controls)&&(r+=c.getFeedStylingRecursive(e,t,n))})),r},f.getSingleControlStyle=(e,t,n)=>{let r=c.checkControlCondition(e,t);if(void 0===(null===e||void 0===e?void 0:e.style)||!1===r)return!1;let i="",o="#sb-tiktok-feeds-container-"+n;return Object.entries(e.style).forEach((n=>{let r=t[null===e||void 0===e?void 0:e.id];if(void 0===r||null===r)return;let a=c.createCssStyle(e.type,r);i+=null!==a&&void 0!==a?`${o+" "+n[0]}{${n[1].replace("{{value}}",a)}}`:""})),i},f.createCssStyle=(e,t)=>{switch(e){case"boxshadow":return void 0===(null===t||void 0===t?void 0:t.enabled)||!1===(null===t||void 0===t?void 0:t.enabled)?null:`${c.addCssUnit(t.x)} ${c.addCssUnit(t.y)} ${c.addCssUnit(t.blur)} ${c.addCssUnit(t.spread)} ${t.color}`;
2case"borderradius":return void 0===(null===t||void 0===t?void 0:t.enabled)||!1===(null===t||void 0===t?void 0:t.enabled)?null:t.radius+"px";case"stroke":return void 0===(null===t||void 0===t?void 0:t.enabled)||!1===(null===t||void 0===t?void 0:t.enabled)?null:t.thickness+"px solid "+t.color;case"distance":let e="";return["top","right","bottom","left"].forEach((n=>{e+=c.checkNotEmpty(t[n])?`${t[n]}px `:"0px "})),e;case"font":let n="";return["family","weight","size","height"].forEach((e=>{let r=c.checkNotEmpty(t[e])&&"inherit"!==t[e];n+=r?`${"height"===e?"line":"font"}-${e}:${t[e]}${"size"===e?"px":""};`:""})),n;default:return t}},f.printDate=(e,t,n)=>{var r,o;let a=e,s=new Date,l=s.getTimezoneOffset(),u=null===(r=window.sb_customizer)||void 0===r||null===(o=r.pluginSettings)||void 0===o?void 0:o.translations,c=[null!==u&&void 0!==u&&u.second?null===u||void 0===u?void 0:u.second:(0,i.__)("second","feeds-for-tiktok"),null!==u&&void 0!==u&&u.minute?null===u||void 0===u?void 0:u.minute:(0,i.__)("minute","feeds-for-tiktok"),null!==u&&void 0!==u&&u.hour?null===u||void 0===u?void 0:u.hour:(0,i.__)("hour","feeds-for-tiktok"),null!==u&&void 0!==u&&u.day?null===u||void 0===u?void 0:u.day:(0,i.__)("day","feeds-for-tiktok"),null!==u&&void 0!==u&&u.week?null===u||void 0===u?void 0:u.week:(0,i.__)("week","feeds-for-tiktok"),null!==u&&void 0!==u&&u.month?null===u||void 0===u?void 0:u.month:(0,i.__)("month","feeds-for-tiktok"),null!==u&&void 0!==u&&u.year?null===u||void 0===u?void 0:u.year:(0,i.__)("year","feeds-for-tiktok")],d=[null!==u&&void 0!==u&&u.seconds?null===u||void 0===u?void 0:u.seconds:(0,i.__)("seconds","feeds-for-tiktok"),null!==u&&void 0!==u&&u.minutes?null===u||void 0===u?void 0:u.minutes:(0,i.__)("minutes","feeds-for-tiktok"),null!==u&&void 0!==u&&u.hours?null===u||void 0===u?void 0:u.hours:(0,i.__)("hours","feeds-for-tiktok"),null!==u&&void 0!==u&&u.days?null===u||void 0===u?void 0:u.days:(0,i.__)("days","feeds-for-tiktok"),null!==u&&void 0!==u&&u.weeks?null===u||void 0===u?void 0:u.weeks:(0,i.__)("weeks","feeds-for-tiktok"),null!==u&&void 0!==u&&u.months?null===u||void 0===u?void 0:u.months:(0,i.__)("months","feeds-for-tiktok"),null!==u&&void 0!==u&&u.years?null===u||void 0===u?void 0:u.years:(0,i.__)("years","feeds-for-tiktok")],f=["60","60","24","7","4.35","12","10"],p=s.getTime()/1e3,h=a+l,m="",v=t.dateFormat,g=null!==u&&void 0!==u&&u.ago?null===u||void 0===u?void 0:u.ago:(0,i.__)("ago","feeds-for-tiktok"),y=null,b={2:"F jS, g:i a",3:"F jS",4:"D F jS",5:"l F jS",6:"D M jS, Y",7:"l F jS, Y",8:"l F jS, Y - g:i a",9:"l M jS, 'y",10:"m.d.y",11:"m/d/y",12:"d.m.y",13:"d/m/y",14:"d-m-Y, G:i",15:"jS F Y, G:i",16:"d M Y, G:i",17:"l jS F Y, G:i",18:"m.d.y - G:i",19:"d.m.y - G:i"};if(void 0!==b[v])m=window.date_i18n(b[v],h);else if("custom"===v){let e=t.dateCustomFormat;try{m=window.date_i18n(e,h)}catch(_){m=(0,i.__)("Unsupported Format","feeds-for-tiktok")}}else{y=p>a?p-a:a-p;for(var w=0;y>=f[w]&&w<f.length-1;w++)y/=f[w];y=Math.round(y),1!==y&&(c[w]=d[w]),m=y+" "+c[w]+" "+g}return m},f.printText=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e,i=t.contentLength;return c.checkNotEmpty(e)&&r.length>i&&!1===n?(0,d.jsxs)(d.Fragment,{children:[r.substring(0,i),(0,d.jsx)("button",{className:"sb-post-readmorelink",children:"..."})]}):r},f.getHighlightedSectionRecursive=e=>{let t={};return null===e||void 0===e||e.controls.forEach((function(e){void 0!==(null===e||void 0===e?void 0:e.highlight)&&(t[null===e||void 0===e?void 0:e.highlight]=e),void 0!==(null===e||void 0===e?void 0:e.controls)&&(t={...t,...c.getHighlightedSectionRecursive(e)})})),t},f.getHighlightedSection=e=>{let t={};return e.forEach((e=>{Object.values(e.sections).forEach((e=>{void 0!==(null===e||void 0===e?void 0:e.highlight)&&(t[null===e||void 0===e?void 0:e.highlight]=e),t={...t,...c.getHighlightedSectionRecursive(e)}}))})),t},f.addHighlighter=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const{editorActiveSection:o,editorFeedHighlightedSection:a,editorHighlightedSection:l}=(0,e.useContext)(s);return(0,d.jsx)("div",{className:"sb-preview-highlight-ctn sb-tr-1","data-active":window.highlightedSection===t&&0===r,"data-dimmed":l.hoveredHighlightedSection!==t&&null!==l.hoveredHighlightedSection?"true":"false","data-hover":l.hoveredHighlightedSection===t&&window.highlightedSection!==t,"data-isparent":i,onMouseEnter:()=>{l.setHoveredHighlightedSection(t)},onMouseLeave:()=>{l.setHoveredHighlightedSection(null)},onClick:()=>{void 0!==a[t]&&o.setActiveSection(a[t])},children:(0,d.jsx)("span",{className:"sb-preview-highlight-txt",dangerouslySetInnerHTML:{__html:n.replace(/\s/g,"&nbsp;")}})})},f.printTooltip=function(e){var t,n,r,i,o;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s={type:null!==(t=a.type)&&void 0!==t?t:"default",position:null!==(n=a.position)&&void 0!==n?n:"top-center",textAlign:null!==(r=a.textAlign)&&void 0!==r?r:"left",width:null!==(i=a.width)&&void 0!==i?i:"default",replaceText:null===(o=a.replaceText)||void 0===o||o};return(0,d.jsx)("div",{className:"sb-tooltip","data-type":s.type,"data-position":s.position,"data-width":s.width,"data-textalign":s.textAlign,dangerouslySetInnerHTML:{__html:s.replaceText?e.replace(/\s/g,"&nbsp;"):e}})},f.copyToClipBoard=(e,t)=>{c.applyNotification({icon:"success",text:(0,i.__)("Copied to Clipboard","feeds-for-tiktok")},t);const n=document.createElement("textarea");
2n.className="sb-copy-clpboard",n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)},f.stringify=e=>JSON.stringify(e,((e,t)=>(isNaN(t)||Array.isArray(t)||"boolean"===typeof t||"string"===typeof t||(t=Number(t)),t))),f.jsonParse=e=>{try{return JSON.parse(e)}catch(t){return!1}},f.checkAPIKeys=(e,t,n,r,o)=>{let a={};!1===r&&(a={...a,upgradeProNotice:{heading:(0,i.__)("You're using TikTok Feeds Lite. To unlock more features consider","feeds-for-tiktok"),active:!0,actionText:(0,i.__)("upgrading to Pro","feeds-for-tiktok"),type:"default",close:!1,actionClick:()=>{window.open("https://smashballoon.com/tiktok-feeds/tiktok-lite-upgrade/?utm_campaign=tiktok-free&utm_source=lite-upgrade-bar&utm_medium=upgrade-link")}}});const s=new URLSearchParams(window.location.search),l=s.get("sw-feed"),u=s.get("feed_id");if(r&&l&&!0===o){let e=(0,i.__)("Once you are done creating the TikTok Feed, you can go back to Social plugin.","feeds-for-tiktok"),t=(0,i.__)("Go to Social Wall","feeds-for-tiktok"),n="social-wall";u&&(e=(0,i.__)("TikTok feed successfully created!","feeds-for-tiktok"),t=(0,i.__)("Go to Social Wall","feeds-for-tiktok"),n="social-wall-success"),a={...a,socialWallNotice:{heading:e,active:!0,actionText:t,type:n,close:!1,actionClick:()=>{window.location.href="admin.php?page=sbsw#/create-feed"}}}}return{...e,topNoticeBar:{...t,...a}}},f.getCurrentContext=()=>{let e=window.sb_customizer.isFeedEditor?s:a;return"settings"===window.sb_customizer.reactScreen&&(e=l),"aboutus"===window.sb_customizer.reactScreen&&(e=o),"support"===window.sb_customizer.reactScreen&&(e=u),e},f.exportStringToFile=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json";const r=document.createElement("a"),i=new Blob([e],{type:n});r.href=URL.createObjectURL(i),r.download=t,document.body.appendChild(r),r.click()},f.feedFlyPreview=(e,t,n,r,o)=>{var a,s,l,u;const d={action:"sbtt_feed_customizer_fly_preview",feedID:null===e||void 0===e||null===(a=e.feedData)||void 0===a||null===(s=a.feed_info)||void 0===s?void 0:s.id,previewSettings:c.stringify(o.current),feedName:null===e||void 0===e||null===(l=e.feedData)||void 0===l||null===(u=l.feed_info)||void 0===u?void 0:u.feed_name},f={success:{icon:"success",text:(0,i.__)("Preview updated successfully","feeds-for-tiktok")}};c.ajaxPost(r.ajaxHandler,d,(t=>{var n,r,i,o;null!==t&&void 0!==t&&null!==(n=t.data)&&void 0!==n&&n.posts&&null!==t&&void 0!==t&&null!==(r=t.data)&&void 0!==r&&r.errors&&e.setFeedData({...e.feedData,posts:null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i.posts,errors:null===t||void 0===t||null===(o=t.data)||void 0===o?void 0:o.errors})}),t,n,f)},f.convertDate=e=>new Date(e).getTime()/1e3,f.saveFeedData=function(e,t,n,r,o,a){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=arguments.length>8&&void 0!==arguments[8]&&arguments[8];const d={action:"sbtt_builder_update",update_feed:!0,feed_id:e.feedData.feed_info.id,feed_name:e.feedData.feed_info.feed_name,feed_style:t,settings:c.stringify(l?n.current:n.feedSettings),get_posts:u},f={success:{icon:"success",text:(0,i.__)("Feed saved successfully","feeds-for-tiktok")}};c.checkNotEmpty(localStorage.getItem("newCreatedFeed"))&&(o=null,a=null),c.ajaxPost(r.ajaxHandler,d,(t=>{var n,i;!0===u&&(null!==t&&void 0!==t&&null!==(n=t.data)&&void 0!==n&&n.posts&&e.setFeedData({...e.feedData,posts:null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i.posts}));!0===s&&(window.location.href=r.builderUrl),localStorage.removeItem("newCreatedFeed")}),o,a,f)},f.loadMorePosts=async function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const r=null===(t=window)||void 0===t?void 0:t.sbtt_feed_options,i={action:"sbtt_load_more_posts",nonce:null===r||void 0===r?void 0:r.nonce,feed_id:e,next_page:n};return new Promise(((e,t)=>{c.ajaxPost(null===r||void 0===r?void 0:r.ajaxHandler,i,(n=>{var r;if(null!==n&&void 0!==n&&null!==(r=n.data)&&void 0!==r&&r.posts){var i,o;const t={posts:null===n||void 0===n||null===(i=n.data)||void 0===i?void 0:i.posts,nextPage:null===n||void 0===n||null===(o=n.data)||void 0===o?void 0:o.next_page};e(t)}else t(new Error("No posts found"))}))}))},f.updateArray=(e,t)=>{let n=[...t];return n.includes(e)?n.splice(n.indexOf(e),1):n.push(e),n},f.feedsCountPerTier=()=>({free:2,basic:10,plus:20,pro:50}),f.checkFeedLimitReached=e=>{var t,n,r,i,o;if(void 0===e)return!1;let a=null!==(t=null===(n=window)||void 0===n||null===(r=n.sb_customizer)||void 0===r||null===(i=r.pluginStatus)||void 0===i?void 0:i.license_tier)&&void 0!==t?t:"free";return e>=(null!==(o=c.feedsCountPerTier()[a])&&void 0!==o?o:5)},f.sourcesPerTier=()=>({free:1,basic:5,plus:10,pro:25}),f.checkSourceLimitReached=e=>{var t,n,r,i,o;if(void 0===e)return!1;let a=null!==(t=null===(n=window)||void 0===n||null===(r=n.sb_customizer)||void 0===r||null===(i=r.pluginStatus)||void 0===i?void 0:i.license_tier)&&void 0!==t?t:"free";return e>=(null!==(o=c.sourcesPerTier()[a])&&void 0!==o?o:1)},f.canCombineSources=()=>{var e,t,n,r,i,o,a;if("free"===(null!==(e=null===(t=window)||void 0===t||null===(n=t.sb_customizer)||void 0===n||null===(r=n.pluginStatus)||void 0===r?void 0:r.license_tier)&&void 0!==e?e:"free"))return!1;let s=null!==(i=null===(o=window)||void 0===o||null===(a=o.sb_customizer)||void 0===a?void 0:a.tieredFeatures)&&void 0!==i?i:[];return!(!s||!s.includes("combine_feed_sources"))},f.checkTierHasFeature=e=>{var t,n,r,i,o,a,s;if("free"===(null!==(t=null===(n=window)||void 0===n||null===(r=n.sb_customizer)||void 0===r||null===(i=r.pluginStatus)||void 0===i?void 0:i.license_tier)&&void 0!==t?t:"free"))return!1;let l=null!==(o=null===(a=window)||void 0===a||null===(s=a.sb_customizer)||void 0===s?void 0:s.tieredFeatures)&&void 0!==o?o:[];return!(!l||!l.includes(e))},f.mapUpsellModalToTierFeature=e=>{const t={loadMoreModal:"load_more_button",listModal:"list_layout",masonryModal:"masonry_layout",carouselModal:"carousel_layout",galleryModal:"gallery_layout",filtersModal:"filter_posts",randomSortModal:"random_sorting",plusTemplateModal:"plus_templates",basicTemplateModal:"basic_templates",proHeaderModal:"header_stats_info",proPostModal:"post_stats_info",cardLayoutModal:"card_layout",playerExperienceModal:"inline_player"};return!!t[e]&&c.checkTierHasFeature(t[e])},f.checkSettingIsPro=e=>{var t,n,r,i;if(void 0===e)return!1;return(!!(null===(t=window)||void 0===t||null===(n=t.sb_customizer)||void 0===n||!n.isPro||null===(r=window)||void 0===r||null===(i=r.sb_customizer)||void 0===i||!i.isPro)||!0!==c.mapUpsellModalToTierFeature(e))&&e},f.openUpsellModal=(e,t)=>{t.setUpsellActive(e)},f.printProLabel=e=>{if(e)return(0,d.jsx)("span",{className:"sb-pro-label",children:"PRO"})},f.printRocketIcon=e=>{if(e)return c.printIcon("rocket","sb-rocket-svg",!1,12)}
2,f.decodeHTMLEntities=e=>{if("string"!==typeof e)return e;return Object.entries({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'}).forEach((t=>{let[n,r]=t;e=e.replaceAll(n,r)})),e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"")},f.getUpgradedProTier=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(void 0===e||void 0===e.item_name)return!1;let t=e.item_name.toLowerCase();return["custom","tiktok","plugin","wordpress","feeds","feed","pro"," "].forEach((e=>{t=t.replace(e,"")})),t},f.hasMeaningfulText=e=>"string"===typeof e&&/[\p{L}\p{N}]/u.test(e),f.generateAltText=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:95;if(!c.hasMeaningfulText(null===e||void 0===e?void 0:e.video_description))return(0,i.__)("TikTok video content","feeds-for-tiktok");const n=e.video_description;if(n.length<=t)return n;const r=[".","!","?",";"],o=[" and "," or "," but "," so "," because "," however "];for(const i of r){const e=n.lastIndexOf(i,t);if(e>t/2)return n.substring(0,e+1)}for(const i of o){const e=n.lastIndexOf(i,t);if(e>t/2)return n.substring(0,e)}let a=t;for(;a>t-20;){if(" "===n[a])return n.substring(0,a)+"...";a--}return n.substring(0,t)+"..."};const p=f,h=e=>{const t=!(null!==e&&void 0!==e&&e.text)&&Boolean(null===e||void 0===e?void 0:e.icon);return(0,d.jsxs)("button",{type:"button",className:p.getClassNames(e,"sb-btn",["type","size"]),...p.getElementActions(e,["onClick"]),...p.getElementAttributes(e,[{"icon-position":"left"},"full-width","boxshadow","disabled","loading"]),"data-onlyicon":t?"true":void 0,"aria-label":t?null===e||void 0===e?void 0:e.ariaLabel:void 0,style:p.getElementStyles(e,["fontSize","backgroundColor"]),children:[p.printIcon(e.icon,"sb-btn-icon",!1,null===e||void 0===e?void 0:e.iconSize)," ",e.text,void 0!==(null===e||void 0===e?void 0:e.tooltip)&&p.printTooltip(e.tooltip,{type:null===e||void 0===e?void 0:e.tooltipType,position:null===e||void 0===e?void 0:e.tooltipPosition})]})},m=(0,e.createContext)({gdprActive:!1,gdprConsented:!0,gdprPlaceholder:"",gdprAvatarPlaceholder:""}),v=m.Provider,g=()=>(0,e.useContext)(m),y=e=>{var t,n,r,o,a,s,l,u,c,f,m,v,y,b;let{feedSettings:w,headerData:_,isPro:k,isFeedEditor:x}=e;const{gdprActive:C,gdprConsented:S,gdprAvatarPlaceholder:E}=g(),P=(null===w||void 0===w?void 0:w.headerAvatar)||"small",N=!C||S;return _=_[0]||_,w.showHeader&&_&&(null===(t=_)||void 0===t?void 0:t.display_name)&&(0,d.jsxs)("section",{className:"sb-feed-header sb-fs","data-align":"left",children:[x&&p.addHighlighter("header","Header",0,!0),(0,d.jsxs)("div",{className:"sb-feed-header-content",children:[(0,d.jsxs)("div",{className:"sb-feed-header-profile",children:[w.headerContent.includes("avatar")&&(0,d.jsxs)("div",{className:"sb-relative",children:[(0,d.jsx)("img",{className:`sb-feed-header-logo ${P}`,src:N?(null===(n=_)||void 0===n?void 0:n.local_avatar_url)||(null===(r=_)||void 0===r?void 0:r.avatar_url_100):(null===(o=_)||void 0===o?void 0:o.local_avatar_url)||E||"",alt:null!==(a=_)&&void 0!==a&&a.display_name||null!==(s=_)&&void 0!==s&&s.username?(0,i.sprintf)((0,i.__)("%s avatar","feeds-for-tiktok"),_.display_name||_.username):(0,i.__)("Profile picture","feeds-for-tiktok")}),x&&p.addHighlighter("header-avatar","Profile Picture")]}),(0,d.jsxs)("div",{className:"sb-feed-header-user-info",children:[(0,d.jsxs)("div",{className:"sb-feed-header-display-name",children:[w.headerContent.includes("name")&&(0,d.jsxs)("span",{className:"sb-relative",children:[(0,d.jsx)("span",{className:"sb-feed-header-name",children:null===(l=_)||void 0===l?void 0:l.display_name}),x&&p.addHighlighter("header-name","Name")]}),w.headerContent.includes("username")&&(0,d.jsxs)("span",{className:"sb-relative",children:[(0,d.jsxs)("span",{className:"sb-feed-header-username",children:["@",null===(u=_)||void 0===u?void 0:u.username]}),x&&p.addHighlighter("header-username","Username")]})]}),k&&w.headerContent.includes("description")&&(null===(c=_)||void 0===c?void 0:c.bio_description)&&(0,d.jsxs)("div",{className:"sb-feed-header-description sb-relative",children:[(0,d.jsx)("span",{children:null===(f=_)||void 0===f?void 0:f.bio_description}),x&&p.addHighlighter("header-description","Description")]}),k&&w.headerContent.includes("stats")&&(0,d.jsxs)("div",{className:"sb-feed-header-stats-info sb-relative",children:[(0,d.jsxs)("span",{children:[(0,d.jsxs)("span",{className:"sb-feed-header-stats",children:[null===(m=_)||void 0===m?void 0:m.following_count," "]}),(0,d.jsx)("span",{className:"sb-feed-header-stats-description",children:(0,i.__)("Following","feeds-for-tiktok")})]}),(0,d.jsxs)("span",{children:[(0,d.jsxs)("span",{className:"sb-feed-header-stats",children:[null===(v=_)||void 0===v?void 0:v.follower_count," "]}),(0,d.jsx)("span",{className:"sb-feed-header-stats-description",children:(0,i.__)("Followers","feeds-for-tiktok")})]}),(0,d.jsxs)("span",{children:[(0,d.jsxs)("span",{className:"sb-feed-header-stats",children:[null===(y=_)||void 0===y?void 0:y.likes_count," "]}),(0,d.jsx)("span",{className:"sb-feed-header-stats-description",children:(0,i.__)("Likes","feeds-for-tiktok")})]}),x&&p.addHighlighter("header-stats","Stats")]})]})]}),w.headerContent.includes("button")&&(0,d.jsxs)("div",{className:"sb-feed-header-btn-ctn sb-relative",children:[(0,d.jsx)(h,{customClass:"sb-feed-header-btn sbtt-feed-header-btn",text:w.headerButtonContent,link:null===(b=_)||void 0===b?void 0:b.profile_deep_link,target:"_blank"}),x&&p.addHighlighter("header-button","Button")]})]})]})},b=e=>{let{headerData:t}=e;const n=(null===t||void 0===t?void 0:t.username)||"",r=n?(0,i.sprintf)((0,i.__)("%s avatar","feeds-for-tiktok"),n):"";return(0,d.jsxs)("div",{className:"sb-post-item-author",children:[(0,d.jsx)("img",{src:(null===t||void 0===t?void 0:t.local_avatar_url)||(null===t||void 0===t?void 0:t.avatar_url_100),alt:r,className:"sb-post-item-author-image"}),(0,d.jsxs)("p",{className:"sb-post-item-author-name",children:["@",null===t||void 0===t?void 0:t.username]})]})};function w(e){let{as:t="span",className:n="",...r}=e;return(0,d.jsx)(t,{className:`sb-visually-hidden ${n}`.trim(),...r})}const _=t=>{let{feedSettings:n,post:r,postIndex:o,isFeedEditor:a}=t;const[s,l]=(0,e.useState)(!1),u=null===r||void 0===r?void 0:r.video_description,c=(null===n||void 0===n?void 0:n.contentLength)||100,f=null===u||void 0===u?void 0:u.substring(0,c),h=s?(0,i.__)("Show less","feeds-for-tiktok"):(0,i.__)("Read more","feeds-for-tiktok");return(0,d.jsxs)("div",{className:"sb-post-item-caption sb-relative",children:[s?u:f,p.checkNotEmpty(u)&&u.length>c&&(0,d.jsxs)("button",{type:"button",className:"sb-post-readmorelink",onClick:()=>l(!s),"aria-expanded":s,children:[(0,d.jsx)("span",{"aria-hidden":"true",children:s?" ":"\u2026"}),(0,d.jsx)(w,{children:h})]}),a&&p.addHighlighter("post-caption","Caption",o)]})},k=()=>(0,d.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M0 2.38254C0 0.861336 1.63093 -0.102987 2.96384 0.630111L16.8138 8.24757C18.1953 9.00742 
218.1953 10.9926 16.8138 11.7524L2.96384 19.3699C1.63093 20.103 0 19.1387 0 17.6175V2.38254Z",fill:"white"})}),x=e=>{const t=e.fillColor?e.fillColor:"white",n="white"===t?"0.9":"0.6";return(0,d.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("g",{opacity:n,children:(0,d.jsx)("path",{d:"M7.99996 6.5C7.46953 6.5 6.96082 6.71071 6.58575 7.08579C6.21067 7.46086 5.99996 7.96957 5.99996 8.5C5.99996 9.03043 6.21067 9.53914 6.58575 9.91421C6.96082 10.2893 7.46953 10.5 7.99996 10.5C8.53039 10.5 9.0391 10.2893 9.41417 9.91421C9.78925 9.53914 9.99996 9.03043 9.99996 8.5C9.99996 7.96957 9.78925 7.46086 9.41417 7.08579C9.0391 6.71071 8.53039 6.5 7.99996 6.5ZM7.99996 11.8333C7.1159 11.8333 6.26806 11.4821 5.64294 10.857C5.01782 10.2319 4.66663 9.38406 4.66663 8.5C4.66663 7.61595 5.01782 6.7681 5.64294 6.14298C6.26806 5.51786 7.1159 5.16667 7.99996 5.16667C8.88401 5.16667 9.73186 5.51786 10.357 6.14298C10.9821 6.7681 11.3333 7.61595 11.3333 8.5C11.3333 9.38406 10.9821 10.2319 10.357 10.857C9.73186 11.4821 8.88401 11.8333 7.99996 11.8333ZM7.99996 3.5C4.66663 3.5 1.81996 5.57333 0.666626 8.5C1.81996 11.4267 4.66663 13.5 7.99996 13.5C11.3333 13.5 14.18 11.4267 15.3333 8.5C14.18 5.57333 11.3333 3.5 7.99996 3.5Z",fill:t})})})},C=e=>{const t=e.fillColor?e.fillColor:"white",n="white"===t?"0.9":"0.6";return(0,d.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{opacity:n,d:"M7.1123 12.6313C6.92822 12.6313 6.66162 12.4854 6.42676 12.333C2.89746 10.0479 0.618652 7.35645 0.618652 4.63965C0.618652 2.24023 2.28174 0.589844 4.33203 0.589844C5.60791 0.589844 6.55371 1.30078 7.1123 2.33545C7.67725 1.29443 8.62305 0.589844 9.89893 0.589844C11.9429 0.589844 13.606 2.24023 13.606 4.63965C13.606 7.35645 11.3271 10.0479 7.8042 12.333C7.56934 12.4854 7.29639 12.6313 7.1123 12.6313Z",fill:t})})},S=()=>(0,d.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M12.3626 4.78024C12.2749 4.73489 12.1895 4.68518 12.1067 4.63129C11.866 4.47217 11.6453 4.28468 11.4494 4.07285C10.9592 3.51199 10.7762 2.94299 10.7087 2.54462H10.7114C10.6551 2.21395 10.6784 2 10.6819 2H8.44929V10.6332C8.44929 10.7491 8.44929 10.8637 8.44441 10.9769C8.44441 10.9909 8.44306 11.0039 8.44225 11.0191C8.44225 11.0253 8.44225 11.0318 8.44089 11.0383C8.44089 11.04 8.44089 11.0416 8.44089 11.0432C8.41736 11.353 8.31806 11.6522 8.15174 11.9146C7.98542 12.177 7.75717 12.3944 7.48707 12.5479C7.20556 12.708 6.88717 12.792 6.5633 12.7916C5.52308 12.7916 4.68002 11.9434 4.68002 10.8959C4.68002 9.84836 5.52308 9.00015 6.5633 9.00015C6.76021 8.99997 6.9559 9.03095 7.14313 9.09196L7.14583 6.8187C6.57748 6.74528 6.00008 6.79045 5.45006 6.95136C4.90004 7.11226 4.38933 7.38541 3.95016 7.75357C3.56534 8.08792 3.24182 8.48687 2.99417 8.93245C2.89992 9.09494 2.54433 9.74788 2.50127 10.8076C2.47419 11.4091 2.65483 12.0322 2.74095 12.2898V12.2952C2.79511 12.4469 3.005 12.9644 3.34704 13.4007C3.62286 13.7507 3.94872 14.0581 4.31414 14.3131V14.3077L4.31956 14.3131C5.4004 15.0476 6.59878 14.9994 6.59878 14.9994C6.80623 14.991 7.50115 14.9994 8.29032 14.6253C9.16561 14.2107 9.66392 13.593 9.66392 13.593C9.98226 13.2239 10.2354 12.8032 10.4125 12.3491C10.6145 11.818 10.6819 11.1811 10.6819 10.9265V6.34639C10.709 6.36264 11.0697 6.60123 11.0697 6.60123C11.0697 6.60123 11.5894 6.93434 12.4003 7.15126C12.982 7.30563 13.7658 7.33813 13.7658 7.33813V5.12174C13.4911 5.15153 12.9335 5.06487 12.3626 4.78024Z",fill:"#696D80"})}),E=e=>{let{style:t={},className:n=""}=e;return(0,d.jsx)("svg",{"aria-hidden":"true",focusable:"false",className:n,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:t,children:(0,d.jsx)("g",{children:(0,d.jsx)("path",{d:"M10 16.6673L3.33334 10.0007L10 3.33398L11.1875 4.50065L6.52084 9.16732H16.6667V10.834H6.52084L11.1875 15.5007L10 16.6673Z",fill:"#2C324C"})})})},P=e=>{let{style:t={},className:n=""}=e;return(0,d.jsx)("svg",{"aria-hidden":"true",focusable:"false",className:n,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:t,children:(0,d.jsx)("g",{children:(0,d.jsx)("path",{d:"M10 16.6673L8.81254 15.5007L13.4792 10.834H3.33337V9.16732H13.4792L8.81254 4.50065L10 3.33398L16.6667 10.0007L10 16.6673Z",fill:"#2C324C"})})})},N=()=>(0,d.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M19.5 6.41L18.09 5L12.5 10.59L6.91 5L5.5 6.41L11.09 12L5.5 17.59L6.91 19L12.5 13.41L18.09 19L19.5 17.59L13.91 12L19.5 6.41Z",fill:"#434960"})}),j={play:[{d:"M8 5v14l11-7z",fill:"white"}],pause:[{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z",fill:"white"}
2],soundOn:[{d:"M3 9v6h4l5 4V5L7 9H3z",fill:"currentColor"},{d:"M16.5 12a4.5 4.5 0 0 0-2.5-4.03v8.05A4.5 4.5 0 0 0 16.5 12zM14 3.23v2.06A7 7 0 0 1 14 18.7v2.07A9 9 0 0 0 14 3.23z",fill:"currentColor"}],soundOff:[{d:"M3 9v6h4l5 4V5L7 9H3z",fill:"currentColor"},{d:"m16.3 8.9-1.4 1.4 1.7 1.7-1.7 1.7 1.4 1.4 1.7-1.7 1.7 1.7 1.4-1.4-1.7-1.7 1.7-1.7-1.4-1.4-1.7 1.7z",fill:"currentColor"}],close:[{d:"M6 6l12 12M18 6L6 18",stroke:"currentColor",strokeWidth:2.4}],like:[{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",fill:"currentColor"}],comment:[{d:"M12 2C6.48 2 2 5.9 2 10.7c0 2.6 1.3 4.93 3.36 6.53L4.3 21.4a.6.6 0 0 0 .87.66l4.1-2.3c.87.2 1.78.3 2.73.3 5.52 0 10-3.9 10-8.7S17.52 2 12 2zM7.5 12.2a1.4 1.4 0 1 1 0-2.8 1.4 1.4 0 0 1 0 2.8zm4.5 0a1.4 1.4 0 1 1 0-2.8 1.4 1.4 0 0 1 0 2.8zm4.5 0a1.4 1.4 0 1 1 0-2.8 1.4 1.4 0 0 1 0 2.8z",fill:"currentColor",fillRule:"evenodd"}],share:[{d:"M13.5 3.6a1 1 0 0 1 1.66-.75l7.5 6.6a1 1 0 0 1 0 1.5l-7.5 6.6a1 1 0 0 1-1.66-.75v-3.3c-4.1.1-7.2 1.5-9.6 4.6-.4.5-1.2.2-1.1-.4C3.7 12.6 7.4 8.6 13.5 7.9V3.6z",fill:"currentColor"}]},T=e=>{let{paths:t,size:n,viewBox:r="0 0 24 24"}=e;return(0,d.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:n,height:n,viewBox:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.map(((e,t)=>(0,d.jsx)("path",{d:e.d,fill:e.fill||"none",fillRule:e.fillRule,stroke:e.stroke,strokeWidth:e.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"},t)))})},L=()=>(0,d.jsx)(T,{paths:j.play,size:28}),z=()=>(0,d.jsx)(T,{paths:j.soundOff,size:20}),O=()=>(0,d.jsx)(T,{paths:j.soundOn,size:20}),R=()=>(0,d.jsx)(T,{paths:j.close,size:22}),D=()=>(0,d.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z",fill:"currentColor"})}),M=()=>(0,d.jsxs)("svg",{className:"sbtt-swipeview-verified",role:"img","aria-label":"Verified",width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("circle",{cx:"12",cy:"12",r:"11",fill:"currentColor"}),(0,d.jsx)("path",{fill:"#fff",d:"M10.2 16.6 5.9 12.3l1.6-1.6 2.7 2.7 6.3-6.3 1.6 1.6z"})]}),I=()=>(0,d.jsxs)("svg",{"aria-hidden":"true",focusable:"false",width:"44",height:"64",viewBox:"0 0 44 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{d:"M22 6v30",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"}),(0,d.jsx)("path",{d:"M12 16l10-10 10 10",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"}),(0,d.jsx)("circle",{cx:"22",cy:"52",r:"6",fill:"#fff"})]}),$=()=>(0,d.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M6 15l6-6 6 6",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}),A=()=>(0,d.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}),F=()=>(0,d.jsx)(T,{paths:j.like,size:26}),H=()=>(0,d.jsx)(T,{paths:j.comment,size:26}),U=()=>(0,d.jsx)(T,{paths:j.share,size:26}),B=e=>{let{post:t,fillColor:n}=e;return(0,d.jsxs)("span",{className:"sb-post-item-meta-likes",children:[(0,d.jsx)(C,{fillColor:n}),null===t||void 0===t?void 0:t.like_count,(0,d.jsx)(w,{children:(0,i.__)("likes","feeds-for-tiktok")})]})},W=e=>{let{post:t,fillColor:n}=e;return(0,d.jsxs)("span",{className:"sb-post-item-meta-views",children:[(0,d.jsx)(x,{fillColor:n}),null===t||void 0===t?void 0:t.view_count,(0,d.jsx)(w,{children:(0,i.__)("views","feeds-for-tiktok")})]})},V=e=>{var t,n,r,i;let{isPro:o,post:a,feedSettings:s,headerData:l,postIndex:u,layout:c,isFeedEditor:f}=e;return(0,d.jsxs)("div",{className:"sb-post-item-details",children:[o&&(null===s||void 0===s||null===(t=s.postElements)||void 0===t?void 0:t.includes("author_info"))&&"list"===c&&(0,d.jsx)(b,{headerData:l}),o&&(null===s||void 0===s||null===(n=s.postElements)||void 0===n?void 0:n.includes("caption"))&&(0,d.jsx)(_,{post:a,postIndex:u,feedSettings:s,isFeedEditor:f}),"list"===c&&(0,d.jsxs)("div",{className:"sb-post-item-meta",children:[o&&(null===s||void 0===s||null===(r=s.postElements)||void 0===r?void 0:r.includes("views"))&&(0,d.jsx)(W,{post:a,fillColor:"black"}),o&&(null===s||void 0===s||null===(i=s.postElements)||void 0===i?void 0:i.includes("like
2s"))&&(0,d.jsx)(B,{post:a,fillColor:"black"})]})]})},Q=t=>{var n;let{post:r,playerExperience:o,dynamicHeight:a}=t;const[s,l]=(0,e.useState)(r),u=(0,e.useRef)(null);(0,e.useEffect)((()=>{l(r)}),[r]),(0,e.useEffect)((()=>{if("inline"!==o)return;const e=u.current;e&&(e.focus(),document.activeElement!==e&&(e.setAttribute("tabindex","-1"),e.focus()))}),[o,null===r||void 0===r?void 0:r.id]);if(s.id!==r.id)return"";const c=(null===s||void 0===s?void 0:s.video_description)||(0,i.__)("Video","feeds-for-tiktok");return(0,d.jsxs)("video",{..."inline"===o?{autoPlay:!0}:{autoPlay:!0,loop:!0},controls:!0,ref:u,style:"inline"===o?{height:a||"inherit",width:"100%",backgroundColor:"black"}:{height:"80vh",width:"100%"},"aria-label":c,children:[(0,d.jsx)("source",{src:null!==(n=null===s||void 0===s?void 0:s.video_url)&&void 0!==n?n:"",type:"video/mp4"}),(0,i.__)("Your browser does not support the video tag.","feeds-for-tiktok")]})},q=e=>{const{className:t}=e;return(0,d.jsx)("div",{className:`sb-post-item-play ${t}`,children:(0,d.jsx)(k,{})})},Y=(e,t,n,r)=>({position:"relative",width:"large"===e?"385px":"100%",height:["large","portrait"].includes(e)||"masonry"===n?"100%":"269px",overflow:"hidden",borderRadius:"regular"===t?"8px":"0px",background:r?"#E8E8E8":"black",margin:"auto"}),K=t=>{var n,r,o,a,s;let{isPro:l,post:u,feedSettings:c,activeIndex:f,setActiveIndex:h,postIndex:m,isPlaying:v,setIsPlaying:y,layout:b,handlePostClick:w,isFeedEditor:_}=t;const{gdprActive:k,gdprConsented:x,gdprPlaceholder:C}=g(),S="list"===b?"large":"widget"===(null===c||void 0===c?void 0:c.feedTemplate)?"portrait":"medium",E=(null===c||void 0===c?void 0:c.postStyle)||"regular",P=l&&(null===c||void 0===c?void 0:c.videoPlayer)||"lightbox",N=l&&(null!==c&&void 0!==c&&null!==(n=c.postElements)&&void 0!==n&&n.includes("views")||null!==c&&void 0!==c&&null!==(r=c.postElements)&&void 0!==r&&r.includes("like
2s"))?"":"sb-no-meta",[j,T]=(0,e.useState)("inherit"),L=(0,e.useRef)(null),z=!k||x,O=((e,t,n,r)=>null!==e&&void 0!==e&&e.local_cover_image_url?e.local_cover_image_url:!t||n?null===e||void 0===e?void 0:e.cover_image_url:r||"")(u,k,x,C),R=k&&!x&&!(null!==u&&void 0!==u&&u.local_cover_image_url),D=p.hasMeaningfulText(null===u||void 0===u?void 0:u.video_description)?u.video_description:(0,i.__)("Open post","feeds-for-tiktok");return v&&l&&(null===u||void 0===u?void 0:u.video_url)&&z&&f===m&&"gallery"!==b?(0,d.jsx)("div",{className:"sb-post-item-image-wrap",style:Y(S,E,b,R),children:(0,d.jsx)(Q,{post:u,playerExperience:P,dynamicHeight:j})}):(0,d.jsxs)("button",{type:"button",ref:L,className:"sb-post-item-image-wrap sb-button-reset",style:Y(S,E,b,R),onClick:()=>{if(!_&&("lightbox"===P||"swipe"===P||"gallery"===b?w(m,L.current):z?(y(!0),h(m)):null!==u&&void 0!==u&&u.share_url&&window.open(u.share_url,"_blank","noopener,noreferrer"),L.current)){const e=L.current.clientHeight;T(`${e}px`)}},"aria-label":D,children:[(0,d.jsx)("img",{className:"sb-post-item-image",src:O,alt:p.generateAltText(u)}),("gallery"===b||(!v||f!==m)&&"list"!==b)&&(0,d.jsxs)(d.Fragment,{children:[(null===c||void 0===c||null===(o=c.postElements)||void 0===o?void 0:o.includes("playIcon"))&&(0,d.jsx)(q,{className:N}),(0,d.jsxs)("div",{className:"sb-post-item-meta",children:[l&&(null===c||void 0===c||null===(a=c.postElements)||void 0===a?void 0:a.includes("views"))&&(0,d.jsx)(W,{post:u}),l&&(null===c||void 0===c||null===(s=c.postElements)||void 0===s?void 0:s.includes("like
2s"))&&(0,d.jsx)(B,{post:u})]})]})]})},Z=e=>{var t,n;let{post:r,headerData:i,postIndex:o,feedSettings:a,isPro:s,isFeedEditor:l,handlePostClick:u,isPlaying:c,setIsPlaying:f,activeIndex:h,setActiveIndex:m,isListItem:v=!1}=e,g=null===a||void 0===a?void 0:a.layout,y=null===a||void 0===a?void 0:a.feedTemplate,w=parseInt(null===a||void 0===a?void 0:a.carouselDesktopColumns);i=((e,t)=>{var n;return(null===(n=e)||void 0===n?void 0:n.length)>1&&(e=e.filter((e=>e.open_id===t.open_id))),e[0]||e})(i,r),g=((e,t,n)=>["carousel","showcase_carousel"].includes(e)&&"carousel"===t&&1===n?"list":t)(y,g,w);const _="list"===g?"sb-post-list-item":"sb-post-block-item";return(0,d.jsxs)("div",{className:"sb-post-item-wrap",role:v?"listitem":void 0,children:[(0,d.jsxs)("div",{className:`sb-post-item sbtt-post-item ${_}`,"data-post-id":null===r||void 0===r?void 0:r.id,"data-processing-attempted":null!==r&&void 0!==r&&r.image_processing_attempted?"1":"0",children:[s&&(null===a||void 0===a||null===(t=a.postElements)||void 0===t?void 0:t.includes("author_info"))&&"list"!==g&&(0,d.jsx)(b,{headerData:i}),(null===a||void 0===a||null===(n=a.postElements)||void 0===n?void 0:n.includes("thumbnail"))&&(0,d.jsx)(K,{isPro:s,post:r,feedSettings:a,activeIndex:h,setActiveIndex:m,postIndex:o,isPlaying:c,setIsPlaying:f,layout:g,handlePostClick:u,isFeedEditor:l}),(0,d.jsx)(V,{isPro:s,post:r,feedSettings:a,headerData:i,postIndex:o,layout:g,isFeedEditor:l})]},o),l&&p.addHighlighter("tiktokfeed","Posts",o)]},o)};var X=n(2407);function G(e,t){if("function"===typeof e)return e(t);null!==e&&void 0!==e&&(e.current=t)}function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1;const r=t.map((t=>{const r=G(t,e);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let e=0;e<r.length;e++){const n=r[e];"function"==typeof n?n():G(t[e],null)}}}}function ee(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.useCallback(J(...n),n)}function te(t){const n=ne(t),r=e.forwardRef(((t,r)=>{const{children:i,...o}=t,a=e.Children.toArray(i),s=a.find(ie);if(s){const t=s.props.children,i=a.map((n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n));return(0,d.jsx)(n,{...o,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,i):null})}return(0,d.jsx)(n,{...o,ref:r,children:i})}));return r.displayName=`${t}.Slot`,r}function ne(t){const n=e.forwardRef(((t,n)=>{const{children:r,...i}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=function(){const e=o(...arguments);return i(...arguments),e}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,r.props);return r.type!==e.Fragment&&(o.ref=n?J(n,t):t),e.cloneElement(r,o)}return e.Children.count(r)>1?e.Children.only(null):null}));return n.displayName=`${t}.SlotClone`,n}var re=Symbol("radix.slottable");function ie(t){return e.isValidElement(t)&&"function"===typeof t.type&&"__radixId"in t.type&&t.type.__radixId===re}var oe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=te(`Primitive.${n}`),i=e.forwardRef(((e,t)=>{const{asChild:i,...o}=e,a=i?r:n;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(a,{...o,ref:t})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{});var ae=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),se=e.forwardRef(((e,t)=>(0,d.jsx)(oe.span,{...e,ref:t,style:{...ae,...e.style}})));se.displayName="VisuallyHidden";"undefined"===typeof window||!window.document||window.document.createElement;function le(e,t){let{checkForDefaultPrevented:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function ue(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n[0];if(1===n.length)return i;const o=()=>{const t=n.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(n){const r=t.reduce(((e,t)=>
vendor: 15,003 bytes, line 2
2{let{useScope:r,scopeName:i}=t;return{...e,...r(n)[`__scope${i}`]}}),{});return e.useMemo((()=>({[`__scope${i.scopeName}`]:r})),[r])}};return o.scopeName=i.scopeName,o}var ce=globalThis?.document?e.useLayoutEffect:()=>{},de=t[" useId ".trim().toString()]||(()=>{}),fe=0;function pe(t){const[n,r]=e.useState(de());return ce((()=>{t||r((e=>e??String(fe++)))}),[t]),t||(n?`radix-${n}`:"")}var he=t[" useInsertionEffect ".trim().toString()]||ce;function me(t){let{prop:n,defaultProp:r,onChange:i=()=>{},caller:o}=t;const[a,s,l]=function(t){let{defaultProp:n,onChange:r}=t;const[i,o]=e.useState(n),a=e.useRef(i),s=e.useRef(r);return he((()=>{s.current=r}),[r]),e.useEffect((()=>{a.current!==i&&(s.current?.(i),a.current=i)}),[i,a]),[i,o,s]}({defaultProp:r,onChange:i}),u=void 0!==n,c=u?n:a;{const t=e.useRef(void 0!==n);e.useEffect((()=>{const e=t.current;if(e!==u){const t=e?"controlled":"uncontrolled",n=u?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u}),[u,o])}const d=e.useCallback((e=>{if(u){const t=function(e){return"function"===typeof e}(e)?e(n):e;t!==n&&l.current?.(t)}else s(e)}),[u,n,s,l]);return[c,d]}Symbol("RADIX:SYNC_STATE");function ve(t){const n=e.useRef(t);return e.useEffect((()=>{n.current=t})),e.useMemo((()=>function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.current?.(...t)}),[])}var ge,ye="dismissableLayer.update",be="dismissableLayer.pointerDownOutside",we="dismissableLayer.focusOutside",_e=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ke=e.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=t,c=e.useContext(_e),[f,p]=e.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=e.useState({}),v=ee(n,(e=>p(e))),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),w=f?g.indexOf(f):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,k=w>=b,x=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis?.document;const r=ve(t),i=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!i.current){let t=function(){Se(be,r,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}}),[n,r]),{onPointerDownCapture:()=>i.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(o?.(e),s?.(e),e.defaultPrevented||l?.())}),h),C=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis?.document;const r=ve(t),i=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!i.current){Se(we,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(a?.(e),s?.(e),e.defaultPrevented||l?.())}),h);return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis?.document;const r=ve(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})}),[r,n])}((e=>{w===c.layers.size-1&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),h),e.useEffect((()=>{if(f)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(ge=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),Ce(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=ge)}}),[f,h,r,c]),e.useEffect((()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Ce())}),[f,c]),e.useEffect((()=>{const e=()=>m({});return document.addEventListener(ye,e),()=>document.removeEventListener(ye,e)}),[]),(0,d.jsx)(oe.div,{...u,ref:v,style:{pointerEvents:_?k?"auto":"none":void 0,...t.style},onFocusCapture:le(t.onFocusCapture,C.onFocusCapture),onBlurCapture:le(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:le(t.onPointerDownCapture,x.onPointerDownCapture)})}));ke.displayName="DismissableLayer";var xe=e.forwardRef(((t,n)=>{const r=e.useContext(_e),i=e.useRef(null),o=ee(n,i);return e.useEffect((()=>{const e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),(0,d.jsx)(oe.div,{...t,ref:o})}));function Ce(){const e=new CustomEvent(ye);document.dispatchEvent(e)}function Se(e,t,n,r){let{discrete:i}=r;const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?function(e,t){e&&X.flushSync((()=>e.dispatchEvent(t)))}(o,a):o.dispatchEvent(a)}xe.displayName="DismissableLayerBranch";var Ee="focusScope.autoFocusOnMount",Pe="focusScope.autoFocusOnUnmount",Ne={bubbles:!1,cancelable:!0},je=e.forwardRef(((t,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=t,[l,u]=e.useState(null),c=ve(o),f=ve(a),p=e.useRef(null),h=ee(n,(e=>u(e))),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(i){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:Oe(p.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Oe(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Oe(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[i,l,m.paused]),e.useEffect((()=>{if(l){Re.add(m);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Ee,Ne);l.addEventListener(Ee,c),l.dispatchEvent(n),n.defaultPrevented||(!function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=document.activeElement;for(const r of e)if(Oe(r,{select:t}),document.activeElement!==n)return}((e=Te(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Oe(l))}return()=>{l.removeEventListener(Ee,c),setTimeout((()=>{const e=new CustomEvent(Pe,Ne);l.addEventListener(Pe,f),l.dispatchEvent(e),e.defaultPrevented||Oe(t??document.body,{select:!0}),l.removeEventListener(Pe,f),Re.remove(m)}),0)}}var e}),[l,c,f,m]);const v=e.useCallback((e=>{if(!r&&!i)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[i,o]=function(e){const t=Te(e),n=Le(t,e),r=Le(t.reverse(),e);return[n,r]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&Oe(o,{select:!0})):(e.preventDefault(),r&&Oe(i,{select:!0})):n===t&&e.preventDefault()}}),[r,i,m.paused]);return(0,d.jsx)(oe.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})}));function Te(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Le(e,t){for(const n of e)if(!ze(n,{upTo:t}))return n}function ze(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Oe(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}je.displayName="FocusScope";var Re=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=De(e,t),e.unshift(t)},remove(t){e=De(e,t),e[0]?.resume()}}}();function De(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Me=e.forwardRef(((t,n)=>{const{container:r,...i}=t,[o,a]=e.useState(!1);ce((()=>a(!0)),[]);const s=r||o&&globalThis?.document?.body;return s?X.createPortal((0,d.jsx)(oe.div,{...i,ref:n}),s):null}));Me.displayName="Portal";var Ie=t=>{const{present:n,children:r}=t,i=function(t){const[n,r]=e.useState(),i=e.useRef(null),o=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[l,u]=function(t,n){return e.useReducer(((e,t)=>n[e][t]??e),t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=$e(i.current);a.current="mounted"===l?e:"none"}),[l]),ce((()=>{const e=i.current,n=o.current;if(n!==t){const r=a.current,i=$e(e);if(t)u("MOUNT");else if("none"===i||"none"===e?.display)u("UNMOUNT");else{u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,u]),ce((()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=$e(i.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(u("ANIMATION_END"),!o.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)}))}},s=e=>{e.target===n&&(a.current=$e(i.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}u("ANIMATION_END")}),[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback((e=>{i.current=e?getComputedStyle(e):null,r(e)}),[])}}(n),o="function"===typeof r?r({present:i.isPresent}):e.Children.only(r),a=ee(i.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"===typeof r||i.isPresent?e.cloneElement(o,{ref:a}):null};function $e(e){return e?.animationName||"none"}Ie.displayName="Presence";var Ae=0;function Fe(){e.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??He()),document.body.insertAdjacentElement("beforeend",e[1]??He()),Ae++,()=>{1===Ae&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Ae--}}),[])}function He(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ue=function(){return Ue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ue.apply(this,arguments)};function Be(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;function We(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var Ve="right-scroll-bar-position",Qe="width-before-scroll-bar";function qe(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}var Ye="undefined"!==typeof window?e.useLayoutEffect:e.useEffect,Ke=new WeakMap;function Ze(t,n){var r=function(t,n){var r=(0,e.useState)((function(){return{value:t,callback:n,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=n,r.facade}(n||null,(function(e){return t.forEach((function(t){return qe(t,e)}))}));return Ye((function(){var e=Ke.get(r);if(e){var n=new Set(e),i=new Set(t),o=r.current;n.forEach((function(e){i.has(e)||qe(e,null)})),i.forEach((function(e){n.has(e)||qe(e,o)}))}Ke.set(r,t)}),[t]),r}function Xe(e){return e}function Ge(e,t){void 0===t&&(t=Xe);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}var Je=function(e){void 0===e&&(e={});var t=Ge(null);return t.options=Ue({async:!0,ssr:!1},e),t}(),et=function(){},tt=e.forwardRef((function(t,n){var r=e.useRef(null),i=e.useState({onScrollCapture:et,onWheelCapture:et,onTouchMoveCapture:et}),o=i[0],a=i[1],s=t.forwardProps,l=t.children,u=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,h=t.noRelative,m=t.noIsolation,v=t.inert,g=t.allowPinchZoom,y=t.as,b=void 0===y?"div":y,w=t.gapMode,_=Be(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,x=Ze([r,n]),C=Ue(Ue({},_),o);return e.createElement(e.Fragment,null,d&&e.createElement(k,{sideCar:Je,removeScrollBar:c,shards:f,noRelative:h,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),s?e.cloneElement(e.Children.only(l),Ue(Ue({},C),{ref:x})):e.createElement(b,Ue({},C,{className:u,ref:x}),l))}));tt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tt.classNames={fullWidth:Qe,zeroRight:Ve};var nt,rt=function(t){var n=t.sideCar,r=Be(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return e.createElement(i,Ue({},r))};
vendor: 4,534 bytes, line 2
2rt.isSideCarExport=!0;function it(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nt||n.nc;return t&&e.setAttribute("nonce",t),e}var ot=function(){var e=0,t=null;return{add:function(n){var r,i;0==e&&(t=it())&&(i=n,(r=t).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},at=function(){var t=function(){var t=ot();return function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])}}();return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},st={left:0,top:0,right:0,gap:0},lt=function(e){return parseInt(e||"",10)||0},ut=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return st;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[lt(n),lt(r),lt(i)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ct=at(),dt="data-scroll-locked",ft=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(dt,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Ve," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Qe," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Ve," .").concat(Ve," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(Qe," .").concat(Qe," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(dt,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},pt=function(){var e=parseInt(document.body.getAttribute(dt)||"0",10);return isFinite(e)?e:0},ht=function(t){var n=t.noRelative,r=t.noImportant,i=t.gapMode,o=void 0===i?"margin":i;e.useEffect((function(){return document.body.setAttribute(dt,(pt()+1).toString()),function(){var e=pt()-1;e<=0?document.body.removeAttribute(dt):document.body.setAttribute(dt,e.toString())}}),[]);var a=e.useMemo((function(){return ut(o)}),[o]);return e.createElement(ct,{styles:ft(a,!n,o,r?"":"!important")})},mt=!1;if("undefined"!==typeof window)try{var vt=Object.defineProperty({},"passive",{get:function(){return mt=!0,!0}});window.addEventListener("test",vt,vt),window.removeEventListener("test",vt,vt)}catch(zr){mt=!1}var gt=!!mt&&{passive:!1},yt=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},bt=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),wt(e,r)){var i=_t(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},wt=function(e,t){return"v"===e?function(e){return yt(e,"overflowY")}(t):function(e){return yt(e,"overflowX")}(t)},_t=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},kt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xt=function(e){return[e.deltaX,e.deltaY]},Ct=function(e){return e&&"current"in e?e.current:e},St=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Et=0,Pt=[];function Nt(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const jt=(Tt=function(t){var n=e.useRef([]),r=e.useRef([0,0]),i=e.useRef(),o=e.useState(Et++)[0],a=e.useState(at)[0],s=e.useRef(t);e.useEffect((function(){s.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));
vendor: 6,076 bytes, line 2
2var e=We([t.lockRef.current],(t.shards||[]).map(Ct),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,o=kt(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var h=bt(d,c);if(!h)return!0;if(h?n=d:(n="v"===d?"h":"v",h=bt(d,c)),!h)return!1;if(!i.current&&"changedTouches"in e&&(l||u)&&(i.current=n),!n)return!0;var m=i.current||n;return function(e,t,n,r,i){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{if(!s)break;var p=_t(e,s),h=p[0],m=p[1]-p[2]-o*h;(h||m)&&wt(e,s)&&(d+=m,f+=h);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(i&&Math.abs(d)<1||!i&&a>d)||!c&&(i&&Math.abs(f)<1||!i&&-a>f))&&(u=!0),u}(m,t,e,"h"===m?l:u,!0)}),[]),u=e.useCallback((function(e){var t=e;if(Pt.length&&Pt[Pt.length-1]===a){var r="deltaY"in t?xt(t):kt(t),i=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,i=r,n[0]===i[0]&&n[1]===i[1]);var n,i}))[0];if(i&&i.should)t.cancelable&&t.preventDefault();else if(!i){var o=(s.current.shards||[]).map(Ct).filter(Boolean).filter((function(e){return e.contains(t.target)}));(o.length>0?l(t,o[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),c=e.useCallback((function(e,t,r,i){var o={name:e,delta:t,target:r,should:i,shadowParent:Nt(r)};n.current.push(o),setTimeout((function(){n.current=n.current.filter((function(e){return e!==o}))}),1)}),[]),d=e.useCallback((function(e){r.current=kt(e),i.current=void 0}),[]),f=e.useCallback((function(e){c(e.type,xt(e),e.target,l(e,t.lockRef.current))}),[]),p=e.useCallback((function(e){c(e.type,kt(e),e.target,l(e,t.lockRef.current))}),[]);e.useEffect((function(){return Pt.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,gt),document.addEventListener("touchmove",u,gt),document.addEventListener("touchstart",d,gt),function(){Pt=Pt.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,gt),document.removeEventListener("touchmove",u,gt),document.removeEventListener("touchstart",d,gt)}}),[]);var h=t.removeScrollBar,m=t.inert;return e.createElement(e.Fragment,null,m?e.createElement(a,{styles:St(o)}):null,h?e.createElement(ht,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},Je.useMedium(Tt),rt);var Tt,Lt=e.forwardRef((function(t,n){return e.createElement(tt,Ue({},t,{ref:n,sideCar:jt}))}));Lt.classNames=tt.classNames;const zt=Lt;var Ot=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Rt=new WeakMap,Dt=new WeakMap,Mt={},It=0,$t=function(e){return e&&(e.host||$t(e.parentNode))},At=function(e,t,n,r){var i=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=$t(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Mt[n]||(Mt[n]=new WeakMap);var o=Mt[n],a=[],s=new Set,l=new Set(i),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(Rt.get(e)||0)+1,u=(o.get(e)||0)+1;Rt.set(e,l),o.set(e,u),a.push(e),1===l&&i&&Dt.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",e,d)}}))};return c(t),s.clear(),It++,function(){a.forEach((function(e){var t=Rt.get(e)-1,i=o.get(e)-1;Rt.set(e,t),o.set(e,i),t||(Dt.has(e)||e.removeAttribute(r),Dt.delete(e)),i||e.removeAttribute(n)})),--It||(Rt=new WeakMap,Rt=new WeakMap,Dt=new WeakMap,Mt={})}},Ft=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ot(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),At(r,i,n,"aria-hidden")):function(){return null}},Ht="Dialog",[Ut,Bt]=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];const i=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const i=r?.[t]||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:i}})),[r,i])}};return i.scopeName=t,[function(n,i){const o=e.createContext(i),a=r.length;r=[...r,i];const s=n=>{const{scope:r,children:i,...s}=n,l=r?.[t]?.[a]||o,u=e.useMemo((()=>s),Object.values(s));return(0,d.jsx)(l.Provider,{value:u,children:i})};return s.displayName=n+"Provider",[s,function(r,s){const l=s?.[t]?.[a]||o,u=e.useContext(l);if(u)return u;if(void 0!==i)return i;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},ue(i,...n)]}(Ht),[Wt,Vt]=Ut(Ht),Qt=t=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=t,l=e.useRef(null),u=e.useRef(null),[c,f]=me({prop:i,defaultProp:o??!1,onChange:a,caller:Ht});return(0,d.jsx)(Wt,{scope:n,triggerRef:l,contentRef:u,contentId:pe(),titleId:pe(),descriptionId:pe(),open:c,onOpenChange:f,onOpenToggle:e.useCallback((()=>f((e=>!e))),[f]),modal:s,children:r})};Qt.displayName=Ht;var qt="DialogTrigger",Yt=e.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,i=Vt(qt,n),o=ee(t,i.triggerRef);return(0,d.jsx)(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":mn(i.open),...r,ref:o,onClick:le(e.onClick,i.onOpenToggle)})}
2));Yt.displayName=qt;var Kt="DialogPortal",[Zt,Xt]=Ut(Kt,{forceMount:void 0}),Gt=t=>{const{__scopeDialog:n,forceMount:r,children:i,container:o}=t,a=Vt(Kt,n);return(0,d.jsx)(Zt,{scope:n,forceMount:r,children:e.Children.map(i,(e=>(0,d.jsx)(Ie,{present:r||a.open,children:(0,d.jsx)(Me,{asChild:!0,container:o,children:e})})))})};Gt.displayName=Kt;var Jt="DialogOverlay",en=e.forwardRef(((e,t)=>{const n=Xt(Jt,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Vt(Jt,e.__scopeDialog);return o.modal?(0,d.jsx)(Ie,{present:r||o.open,children:(0,d.jsx)(nn,{...i,ref:t})}):null}));en.displayName=Jt;var tn=te("DialogOverlay.RemoveScroll"),nn=e.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,i=Vt(Jt,n);return(0,d.jsx)(zt,{as:tn,allowPinchZoom:!0,shards:[i.contentRef],children:(0,d.jsx)(oe.div,{"data-state":mn(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),rn="DialogContent",on=e.forwardRef(((e,t)=>{const n=Xt(rn,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Vt(rn,e.__scopeDialog);return(0,d.jsx)(Ie,{present:r||o.open,children:o.modal?(0,d.jsx)(an,{...i,ref:t}):(0,d.jsx)(sn,{...i,ref:t})})}));on.displayName=rn;var an=e.forwardRef(((t,n)=>{const r=Vt(rn,t.__scopeDialog),i=e.useRef(null),o=ee(n,r.contentRef,i);return e.useEffect((()=>{const e=i.current;if(e)return Ft(e)}),[]),(0,d.jsx)(ln,{...t,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(t.onCloseAutoFocus,(e=>{e.preventDefault(),r.triggerRef.current?.focus()})),onPointerDownOutside:le(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:le(t.onFocusOutside,(e=>e.preventDefault()))})})),sn=e.forwardRef(((t,n)=>{const r=Vt(rn,t.__scopeDialog),i=e.useRef(!1),o=e.useRef(!1);return(0,d.jsx)(ln,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||r.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,"pointerdown"===e.detail.originalEvent.type&&(o.current=!0));const n=e.target,a=r.triggerRef.current?.contains(n);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&o.current&&e.preventDefault()}})})),ln=e.forwardRef(((t,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=t,l=Vt(rn,r),u=e.useRef(null),c=ee(n,u);return Fe(),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(je,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,d.jsx)(ke,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":mn(l.open),...s,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(bn,{titleId:l.titleId}),(0,d.jsx)(wn,{contentRef:u,descriptionId:l.descriptionId})]})]})})),un="DialogTitle",cn=e.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,i=Vt(un,n);return(0,d.jsx)(oe.h2,{id:i.titleId,...r,ref:t})}));cn.displayName=un;var dn="DialogDescription",fn=e.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,i=Vt(dn,n);return(0,d.jsx)(oe.p,{id:i.descriptionId,...r,ref:t})}));fn.displayName=dn;var pn="DialogClose",hn=e.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,i=Vt(pn,n);return(0,d.jsx)(oe.button,{type:"button",...r,ref:t,onClick:le(e.onClick,(()=>i.onOpenChange(!1)))})}));function mn(e){return e?"open":"closed"}hn.displayName=pn;var vn="DialogTitleWarning",[gn,yn]=function(t,n){const r=e.createContext(n),i=t=>{const{children:n,...i}=t,o=e.useMemo((()=>i),Object.values(i));return(0,d.jsx)(r.Provider,{value:o,children:n})};return i.displayName=t+"Provider",[i,function(i){const o=e.useContext(r);if(o)return o;if(void 0!==n)return n;throw new Error(`\`${i}\` must be used within \`${t}\``)}]}(vn,{contentName:rn,titleName:un,docsSlug:"dialog"}),bn=t=>{let{titleId:n}=t;const r=yn(vn),i=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return e.useEffect((()=>
2{if(n){document.getElementById(n)||console.error(i)}}),[i,n]),null},wn=t=>{let{contentRef:n,descriptionId:r}=t;const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${yn("DialogDescriptionWarning").contentName}}.`;return e.useEffect((()=>{const e=n.current?.getAttribute("aria-describedby");if(r&&e){document.getElementById(r)||console.warn(i)}}),[i,n,r]),null};const _n=Qt,kn=Gt,xn=en,Cn=on,Sn=cn,En=hn,Pn=t=>{var n,r,o,a,s,l,u;let{closeModal:c,post:f,feedSettings:h,headerData:m,handleNext:v,handlePrev:y,showNext:b,showPrev:w,isPro:_,isLightboxVisible:k,setIsLightboxVisible:j}=t;const{gdprActive:T,gdprConsented:L,gdprAvatarPlaceholder:z}=g(),O=!T||L;let R=(null===f||void 0===f?void 0:f.video_description)||"";R.includes("  ")&&(R=R.replace(/ {2}/g,"<br /><br />")),R=R.replace(/#(\w+)/g,'<a href="https://www.tiktok.com/tag/$1" target="_blank" rel="noopener noreferrer">#$1</a>');let D=_?"lightbox":"lightbox-free";D=_&&null!==f&&void 0!==f&&f.video_url?"lightbox-pro":D,(null===(n=m)||void 0===n?void 0:n.length)>1&&(m=m.filter((e=>e.open_id===f.open_id))),m=m[0]||m,(0,e.useEffect)((()=>{k?document.body.classList.add("sbt-lightbox-modal-open"):document.body.classList.remove("sbt-lightbox-modal-open"),window.sbttCurrentLightboxPostID=null===f||void 0===f?void 0:f.id}),[k]);const M=(null===f||void 0===f?void 0:f.video_description)||(0,i.__)("TikTok post","feeds-for-tiktok");return(0,d.jsx)(_n,{open:!0,onOpenChange:e=>{e||"function"!==typeof c||c()},children:(0,d.jsx)(kn,{children:(0,d.jsx)(xn,{className:"sb-modal-ctn sbt-lightbox-modal","data-size":D,"data-type":null===h||void 0===h?void 0:h.feedTemplate,children:(0,d.jsxs)(Cn,{className:"sb-modal-insider",tabIndex:-1,"aria-modal":"true",onOpenAutoFocus:e=>{e.preventDefault(),e.currentTarget.focus()},children:[(0,d.jsx)(se,{asChild:!0,children:(0,d.jsx)(Sn,{children:M})}),(0,d.jsxs)("div",{className:"sbt-lightbox-modal-wrapper",children:[(0,d.jsx)(En,{asChild:!0,children:(0,d.jsx)("button",{type:"button",className:"sbt-lightbox-modal-close sb-button-reset","aria-label":(0,i.__)("Close","feeds-for-tiktok"),children:(0,d.jsx)(N,{})})}),(0,d.jsxs)("div",{className:"sbt-lightbox-modal-iframe-wrap",children:[O&&_&&(null===f||void 0===f?void 0:f.video_url)&&(0,d.jsx)(Q,{post:f}),O&&(!_||!(null!==f&&void 0!==f&&f.video_url))&&(0,d.jsx)("iframe",{src:`https://www.tiktok.com/embed/v2/${null===f||void 0===f?void 0:f.id}`,title:(null===f||void 0===f?void 0:f.video_description)||(0,i.__)("TikTok video","feeds-for-tiktok"),height:"758px",width:"325px",style:{border:"none",visibility:"unset",margin:"0 auto"}}),!O&&(0,d.jsx)("div",{className:"sbt-lightbox-modal-gdpr-notice",children:(0,d.jsx)("a",{href:null===f||void 0===f?void 0:f.share_url,target:"_blank",rel:"noopener noreferrer",children:(null===f||void 0===f?void 0:f.video_description)||(0,i.__)("View on TikTok","feeds-for-tiktok")})})]}),_&&(0,d.jsxs)("div",{className:"sbt-lightbox-modal-content",children:[(0,d.jsxs)("a",{className:"sbt-lightbox-modal-header",href:`https://www.tiktok.com/@${null===(r=m)||void 0===r?void 0:r.username}`,target:"_blank",rel:"noreferrer",children:[(0,d.jsx)("img",{className:"sbt-lightbox-modal-avatar",src:O?(null===(o=m)||void 0===o?void 0:o.local_avatar_url)||(null===(a=m)||void 0===a?void 0:a.avatar_url_100):(null===(s=m)||void 0===s?void 0:s.local_avatar_url)||z||"",alt:null!==(l=m)&&void 0!==l&&l.username?(0,i.sprintf)((0,i.__)("%s avatar","feeds-for-tiktok"),m.username):""}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("p",{className:"sbt-lightbox-modal-username",children:["@",null===(u=m)||void 0===u?void 0:u.username]}),(0,d.jsx)("p",{className:"sbt-lightbox-modal-date",children:p.printDate(null===f||void 0===f?void 0:f.create_time,h)})]})]}),(0,d.jsx)("div",{className:"sbt-lightbox-modal-caption",dangerouslySetInnerHTML:{__html:p.printText(R,h,!0)}}),(0,d.jsxs)("div",{className:"sbt-lightbox-modal-footer",children:[(0,d.jsxs)("div",{className:"sbt-lightbox-modal-stats",children:[(0,d.jsxs)("span",{className:"sbt-lightbox-modal-views",children:[(0,d.jsx)(x,{fillColor:"black"}),null===f||void 0===f?void 0:f.view_count,(0,d.jsx)(se,{children:(0,i.__)("views","feeds-for-tiktok")})]}),(0,d.jsxs)("span",{className:"sbt-lightbox-modal-likes",children:[(0,d.jsx)(C,{fillColor:"black"}),null===f||void 0===f?void 0:f.like_count,(0,d.jsx)(se,{children:(0,i.__)("likes","feeds-for-tiktok")})]})]}),(0,d.jsx)("a",{href:null===f||void 0===f?void 0:f.share_url,target:"_blank",rel:"noreferrer","aria-label":(0,i.__)("View on TikTok","feeds-for-tiktok"),
2children:(0,d.jsx)(S,{})})]})]}),w&&(0,d.jsx)("button",{type:"button",onClick:y,className:"sbt-lightbox-modal-prev sb-button-reset","aria-label":(0,i.__)("Previous post","feeds-for-tiktok"),children:(0,d.jsx)(E,{})}),b&&(0,d.jsx)("button",{type:"button",onClick:v,className:"sbt-lightbox-modal-next sb-button-reset","aria-label":(0,i.__)("Next post","feeds-for-tiktok"),children:(0,d.jsx)(P,{})})]})]})})})})},Nn={mute:!1,playPause:!1,progress:!1},jn="media",Tn="iframe",Ln="static";function zn(e){return!!e&&e.transport===jn}function On(e){return e&&/^https?:\/\//i.test(String(e))?String(e):""}function Rn(e){const t=String(e||"");return t?/^https?:\/\//i.test(t)?t:/^[a-z][a-z0-9+.-]*:/i.test(t)?"":t:""}function Dn(e){const t=e&&e.id;if(void 0===t||null===t)return"";const n=String(t);return/^\d+$/.test(n)?`https://www.tiktok.com/embed/v2/${n}`:""}function Mn(e,t,n){e.muted=n;const r=e.play();r&&r.catch&&r.catch((()=>{n?t.emit("autoplay-blocked",{intended:"muted"}):(e.muted=!0,t.emit("autoplay-blocked",{intended:"unmuted"}),e.play().catch((()=>{t.emit("autoplay-blocked",{intended:"muted"})})))}))}function In(){return{name:"native-video",transport:jn,canPlay:e=>!!Rn(e&&e.video_url),create(e,t){const n=document.createElement("video");n.src=Rn(e.video_url);let r=Rn(e.cover_image_url||e.local_cover_image_url);r&&(n.poster=r),n.muted=!0,n.playsInline=!0,n.setAttribute("playsinline",""),n.preload=t.preload||"metadata";const o=e&&e.video_description||(0,i.__)("TikTok video","feeds-for-tiktok");return n.setAttribute("aria-label",o),n.addEventListener("error",(()=>t.emit("error",{reason:"media-load-failed"}))),n.addEventListener("loadedmetadata",(()=>{!function(e,t,n){const r=e.videoWidth,i=e.videoHeight;if(!r||!i)return null;const o=r/i>.585;if(e.style.objectFit=o?"contain":"cover",e.setAttribute("data-fit",o?"contain":"cover"),!o||!n||!t)return null;const a=t.querySelector(".sbtt-swipeview-backdrop");if(a)return a;const s=document.createElement("div");s.className="sbtt-swipeview-backdrop",s.setAttribute("aria-hidden","true"),s.style.backgroundImage=`url("${n.replace(/"/g,"%22")}")`,t.insertBefore(s,t.firstChild)}(n,t.stage,r),t.emit("ready")})),n.addEventListener("playing",(()=>t.emit("playing"))),n.addEventListener("waiting",(()=>t.emit("stalled"))),n.addEventListener("ended",(()=>t.emit("ended"))),t.stage.appendChild(n),{name:"native-video",caps:{mute:!0,playPause:!0,progress:!0},play(e){const r=!e||!1!==e.muted;n.preload="auto",Mn(n,t,r)},pause(){n.pause()},setMuted(e){e?n.muted=!0:Mn(n,t,!1)},isPlaying:()=>!n.paused&&!n.ended,isMuted:()=>n.muted,progress:()=>({current:n.currentTime,duration:n.duration||0}),restart(){n.currentTime=0,Mn(n,t,n.muted)},prime(){if(!n.paused)return!1;n.muted=!0;const e=n.play(),t=()=>n.pause();return e&&e.then?e.then(t,(()=>{})):t(),!0},recycle(e){const i=Rn(e&&e.video_url);if(!i)return!1;n.pause(),n.muted=!0,n.preload="metadata",n.src=i,r=Rn(e.cover_image_url||e.local_cover_image_url),r?n.poster=r:n.removeAttribute("poster"),n.style.objectFit="",n.removeAttribute("data-fit");const o=t.stage&&t.stage.querySelector(".sbtt-swipeview-backdrop");return o&&o.remove(),!0},destroy(){n.pause(),n.removeAttribute("src"),n.load(),n.remove()}}}}}function $n(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=[];for(let i=e-n;i<=e+n;i+=1)i>=0&&i<t&&r.push(i);return r}function An(e,t){const n=e.map((()=>null)),r=new Set;e.forEach(((e,i)=>{null===e||-1===t.indexOf(e)||r.has(e)||(n[i]=e,r.add(e))}));const i=[];n.forEach(((e,t)=>{null===e&&i.push(t)}));return t.filter((e=>!r.has(e))).forEach((e=>{const t=i.shift();void 0!==t&&(n[t]=e)})),n}function Fn(){return"undefined"!==typeof performance&&performance&&"function"===typeof performance.now?performance.now():Date.now()}function Hn(e,t){let{index:n,total:r,viewportHeight:i}=t;const o=i>0?i:0,a=n>0?o:0,s=n<r-1?o:0;let l=e;return e>a?l=a:e<-s&&(l=-s),0===l?0:l}const Un=new Map;function Bn(e,t,n){const r=Date.now();r-(Un.get(e)||0)<250||(Un.set(e,r),function(e,t){try{"undefined"!==typeof window&&window.sbtt_debug_analytics&&console.debug("[swipeview anal
2ytics]",e,t)}catch(n){}}(e,{...t,schemaVersion:1,postId:null!==n&&void 0!==n?n:null}))}const Wn="suppressed",Vn="metadata";function Qn(){try{return(e="undefined"===typeof navigator?null:navigator.connection)?!0===e.saveData?Wn:!1===e.saveData&&"4g"===e.effectiveType?"auto":Vn:Vn}catch(t){return Vn}var e}const qn=(0,e.forwardRef)((function(t,n){let{post:r,trackIndex:i,isActive:o,unmuted:a,chain:s,startTimeoutMs:l,onAnalytics:u}=t;const c=(0,e.useRef)(null),f=(0,e.useRef)(null),p=(0,e.useRef)(0),h=(0,e.useRef)(null),m=(0,e.useRef)(!1),v=(0,e.useRef)(null),g=(0,e.useRef)(!1),y=(0,e.useRef)(!1),b=(0,e.useRef)(o),w=(0,e.useRef)(i),_=(0,e.useRef)(a),k=(0,e.useRef)(u);k.current=u;const[x,C]=(0,e.useState)(!1);(0,e.useEffect)((()=>{b.current=o}),[o]),(0,e.useEffect)((()=>{w.current=i}),[i]),(0,e.useEffect)((()=>{_.current=a}),[a]);const S=(0,e.useCallback)((()=>{h.current&&(clearTimeout(h.current),h.current=null)}),[]),E=(0,e.useCallback)((()=>{S(),m.current||(C(!0),h.current=setTimeout((()=>{if(m.current||!f.current)return;const e=p.current>=s.length-1;k.current("playback_stalled",{adapter:f.current.name,terminal:e},w.current,r&&r.id),e||j("error",{reason:"no-start"},f.current.name,p.current)}),l))}),[s,l,S,r]),P=(0,e.useCallback)((e=>{if(S(),m.current=!1,f.current&&(f.current.destroy(),f.current=null),c.current&&(c.current.innerHTML=""),g.current=!1,y.current=!1,!r)return;const t=0===e&&!b.current;g.current=t;const n=t?Qn():null;if(!t||n!==Wn)for(let i=e;i<s.length;i+=1){const e=s[i];if(!e.canPlay(r))continue;if(t&&!zn(e))return;p.current=i;const o=e.name;return f.current=e.create(r,{stage:c.current,emit:(e,t)=>j(e,t,o,i),...t?{preload:n}:{}}),i!==s.length-1||t||k.current("terminal_tier",{adapter:o},w.current,r.id),void(b.current&&(f.current.play({muted:!_.current}),E()))}}),[r,s,S,E]);function N(){return!f.current||!!g.current&&(!!y.current||s.findIndex((e=>e.canPlay(r)))!==p.current)}function j(e,t,n,i){if(g.current)"error"===e&&(y.current=!0);else{if("error"===e){const e=s[i+1];return k.current("playback_fallback",{from:n,to:e&&e.name||null,reason:t&&t.reason||"load-error"},w.current,r&&r.id),void P(i+1)}if("playing"===e)return m.current=!0,S(),void C(!1);"ended"!==e?"autoplay-blocked"!==e||k.current("autoplay_blocked",{intended:t&&t.intended},w.current,r&&r.id):b.current&&f.current&&f.current.restart&&f.current.restart()}}(0,e.useEffect)((()=>{const e=v.current,t=r?r.id:null;if(v.current=t,null===t)return f.current&&(f.current.destroy(),f.current=null),c.current&&(c.current.innerHTML=""),S(),void C(!1);if(e===t)return;const n=null!==e?s[p.current]:null,i=s.findIndex((e=>e.canPlay(r))),o=!!n&&i===p.current,a=!!f.current&&(b.current||s[p.current]&&s[p.current].transport===jn);if(null!==e&&f.current&&f.current.recycle&&o&&a&&!1!==f.current.recycle(r))return m.current=!1,void(b.current?E():(g.current=!0,y.current=!1,S(),C(!1)));P(0)}),[r&&r.id]),(0,e.useEffect)((()=>{if(o){if(N())return void P(0);g.current=!1,f.current.play({muted:!a}),E()}else{if(!f.current)return;S(),f.current.pause(),C(!1)}}),[o,a]),(0,e.useEffect)((()=>()=>{S(),f.current&&f.current.destroy(),f.current=null,v.current=null,g.current=!1,y.current=!1}),[]),(0,e.useImperativeHandle)(n,(()=>({playNow:()=>!(!f.current||N())&&(g.current=!1,f.current.play({muted:!_.current}),E(),!0),pauseNow:()=>!!f.current&&(f.current.pause(),!0),prime:()=>!(!f.current||!f.current.prime)&&!1!==f.current.prime(),togglePlay(){f.current&&(f.current.isPlaying()?f.current.pause():f.current.play({muted:!_.current}))},setMuted(e){f.current&&f.current.setMuted(e)},isPlaying:()=>!(!f.current||!f.current.isPlaying()),isMuted:()=>!!(f.current&&f.current.isMuted&&f.current.isMuted()),getCaps:()=>f.current&&f.current.caps||Nn,getTierIndex:()=>f.current?p.current:-1,getProgress:()=>f.current&&f.current.progress&&f.current.progress()||null})));const T=null!==i&&void 0!==i&&!!r,L=T?100*i:0;return(0,d.jsxs)("div",{className:"sbtt-swipeview-slot"+(o?" is-active":""),style:{top:`${L}%`,display:T?"":"none"},"data-track-index":null===i||void 0===i?void 0:i,...o?{}:{"aria-hidden":!0},children:[(0,d.jsx)("div",{className:"sbtt-swipeview-stage",ref:c,...o?{}:{inert:""}}),x&&(0,d.jsx)("div",{className:"sbtt-swipeview-loading","aria-hidden":"true",children:(0,d.jsx)("span",{className:"sbtt-swipeview-spinner"})})]})})),Yn="sbtt-swipeview-coach-seen";function Kn(){try{return!!window.matchMedia&&!window.matchMedia("(hover: hover) and (pointer: fine)").matches}catch(e){return!1}}function Zn(){try{return window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch(e){return!1}}function Xn(e){if(null===e||void 0===e||""===e)return null;const t="number"===typeof e?e:parseInt(e,10);return Number.isFinite(t)&&t>=0?t:null}const Gn=[{suffix:"B",unit:1e9},{suffix:"M",unit:1e6},{suffix:"K",unit:1e3}];function Jn(e){for(let t=0;t<Gn.length;t++){const{suffix:n,unit:r}=Gn[t];if(e>=r/1e3*999.5){const t=e/r;return`${t>=100?Math.round(t):Math.round(10*t)/10}${n}`}}return String(e)}function er(e,t){const n=tr(t);return"likes"===e?(0,i.sprintf)((0,i._n)("%s like","%s likes",t,"feeds-for-tiktok"),n):"comments"===e?(0,i.sprintf)((0,i._n)("%s comment","%s comments",t,"feeds-for-tiktok"),n):(0,i.sprintf)((0,i._n)("%s share","%s shares",t,"feeds-for-tiktok"),n)}
2function tr(e){try{return e.toLocaleString()}catch(t){return String(e)}}const nr=t=>{let{posts:n,startIndex:r,headerData:o,counts:a,opener:s,onClose:l}=t;const{gdprActive:u,gdprConsented:c,gdprAvatarPlaceholder:f}=g(),p=!u||c,h=(0,e.useRef)(null);h.current||(h.current=[In(),{name:"platform-embed",transport:Tn,canPlay:e=>!!Dn(e),create(e,t){const n=document.createElement("iframe");n.src=Dn(e),n.allow="autoplay; encrypted-media; picture-in-picture; fullscreen",n.referrerPolicy="strict-origin-when-cross-origin",n.setAttribute("scrolling","no"),n.setAttribute("title",e&&e.video_description||(0,i.__)("TikTok video embed","feeds-for-tiktok"));let r=!1;return n.addEventListener("load",(()=>{r=!0,t.emit("ready"),t.emit("playing")})),t.stage.appendChild(n),{name:"platform-embed",caps:{mute:!1,playPause:!1,progress:!1},play(){},pause(){},setMuted(){},isPlaying:()=>r,isMuted:()=>!1,progress:()=>null,restart(){},recycle(e){const t=Dn(e);t&&(r=!1,n.src=t,n.setAttribute("title",e&&e.video_description||(0,i.__)("TikTok video embed","feeds-for-tiktok")))},destroy(){n.src="about:blank",n.remove()}}}},{name:"poster-link",transport:Ln,canPlay:()=>!0,create(e,t){const n=document.createElement("div");n.className="sbtt-swipeview-fallback";const r=Rn(e&&(e.cover_image_url||e.local_cover_image_url));if(r){const e=document.createElement("img");e.className="sbtt-swipeview-fallback-poster",e.src=r,e.alt="",n.appendChild(e)}const o=document.createElement("p");o.className="sbtt-swipeview-fallback-message",o.textContent=(0,i.__)("This video can\u2019t be played here.","feeds-for-tiktok");const a=On(e&&e.share_url),s=document.createElement("a");return s.className="sbtt-swipeview-fallback-link",s.href=a||"#",s.target="_blank",s.rel="noopener noreferrer",s.textContent=(0,i.__)("Open on TikTok","feeds-for-tiktok"),n.appendChild(o),n.appendChild(s),t.stage.appendChild(n),t.emit("playing"),{name:"poster-link",caps:{mute:!1,playPause:!1,progress:!1},play(){},pause(){},setMuted(){},isPlaying:()=>!0,isMuted:()=>!0,progress:()=>null,restart(){},destroy(){n.remove()}}}}]);const m=h.current,v=n.length,[y,b]=(0,e.useState)((()=>Math.max(0,Math.min(r||0,v-1)))),[w,_]=(0,e.useState)(!0),[k,C]=(0,e.useState)((()=>An(new Array(3).fill(null),$n(y,v)))),[S,E]=(0,e.useState)({caps:{mute:!1,playPause:!1,progress:!1},playing:!1,muted:!1,progress:0,tierIndex:-1,sampled:!1}),[P]=(0,e.useState)(Zn),[N,j]=(0,e.useState)(!1),[T,B]=(0,e.useState)(!1),[W,V]=(0,e.useState)((()=>Kn()&&!function(){try{return"1"===window.localStorage.getItem(Yn)}catch(e){return!0}}())),[Q,q]=(0,e.useState)(!1),[Y,K]=(0,e.useState)(!1),Z=(0,e.useRef)(y);Z.current=y;const X=(0,e.useRef)(k);X.current=k;const G=(0,e.useRef)(!1),J=(0,e.useRef)(0),ee=(0,e.useRef)(0),te=(0,e.useRef)(0),ne=(0,e.useRef)(!1),re=(0,e.useRef)(new Set([y])),ie=(0,e.useRef)(Array.from({length:3},(()=>null))).current,oe=(0,e.useRef)(null),ae=(0,e.useRef)(null),le=(0,e.useRef)(!1);(0,e.useEffect)((()=>{C((e=>An(e,$n(y,v))))}),[y,v]);const ue=(0,e.useCallback)(((e,t,r)=>{Bn(e,t,null!==r&&void 0!==r?r:n[Z.current]&&n[Z.current].id)}),[n]),ce=(0,e.useCallback)(((e,t,n,r)=>{const i=null!==n&&void 0!==n?n:Z.current;"playback_fallback"===e?ue("swipeview_playback_fallback",{index:i,...t},r):"playback_stalled"===e?ue("swipeview_playback_stalled",{index:i,...t},r):"terminal_tier"===e?ue("swipeview_terminal_tier",{index:i,...t},r):"autoplay_blocked"===e&&(ue("swipeview_autoplay_blocked",{index:i,...t},r),!le.current&&i===Z.current&&t&&"unmuted"===t.intended&&q(!0))}),[ue]);(0,e.useEffect)((()=>(document.documentElement.classList.add("sbtt-swipeview-locked"),ue("swipeview_opened",{index:y,total:v}),()=>{document.documentElement.classList.remove("sbtt-swipeview-locked")})),[]);const de=(0,e.useCallback)((()=>{ue("swipeview_closed",{index:Z.current,slides_viewed:re.current.size}),l()}),[ue,l]);(0,e.useEffect)((()=>()=>{ae.current&&clearTimeout(ae.current)}),[]);const fe=(0,e.useCallback)((()=>{const e=X.current.indexOf(Z.current),t=-1!==e?ie[e]:null;if(!t)return;const n=t.getCaps(),r=t.isPlaying(),i=t.isMuted(),o=t.getProgress(),a=o&&o.duration>0?o.current/o.duration*100:0,s=t.getTierIndex();E({caps:n,playing:r,muted:i,progress:a,tierIndex:s,sampled:!0})}),[ie]);(0,e.useEffect)((()=>
2{if(!T)return;const e=setTimeout((()=>B(!1)),0);return()=>clearTimeout(e)}),[T]),(0,e.useEffect)((()=>{const e=setInterval(fe,250);return()=>clearInterval(e)}),[fe]);const pe=(0,e.useCallback)((()=>{setTimeout(fe,0)}),[fe]);(0,e.useEffect)((()=>{Q&&S.sampled&&S.caps.mute&&!S.muted&&(le.current=!0,q(!1))}),[Q,S.sampled,S.caps.mute,S.muted]),(0,e.useEffect)((()=>{if(!Q||!S.muted||!S.caps.mute)return void K(!1);const e=setTimeout((()=>K(!0)),350),t=setTimeout((()=>K(!1)),4500);return()=>{clearTimeout(e),clearTimeout(t)}}),[Q,S.muted,S.caps.mute,y]);const he=S.sampled&&S.caps.playPause&&!S.playing;(0,e.useEffect)((()=>he?(ae.current&&clearTimeout(ae.current),void j(!0)):N?(ae.current=setTimeout((()=>j(!1)),100),()=>{ae.current&&clearTimeout(ae.current)}):void 0),[he,N]),(0,e.useEffect)((()=>{if(!W)return;!function(){try{window.localStorage.setItem(Yn,"1")}catch(e){}}();let e=null,t=null;const n=()=>V(!1),r=["touchstart","wheel","scroll"];return e=setTimeout((()=>{r.forEach((e=>window.addEventListener(e,n,{passive:!0})))}),350),t=setTimeout(n,3200),()=>{clearTimeout(e),clearTimeout(t),r.forEach((e=>window.removeEventListener(e,n)))}}),[W]);const me=(0,e.useCallback)((()=>{const e=k.indexOf(y);return-1!==e?ie[e]:null}),[k,y,ie]),ve=(0,e.useRef)(new Set),ge=(0,e.useCallback)((e=>{let t=0;return ie.forEach(((n,r)=>{ve.current.has(r)||(r!==e?n&&n.prime&&n.prime()&&(ve.current.add(r),t+=1):ve.current.add(r))})),t>0}),[ie]);(0,e.useEffect)((()=>{ge()}),[]);const ye=(0,e.useCallback)((e=>{const t=Z.current+e;if(G.current||t<0||t>=v)return!1;G.current=!0,setTimeout((()=>{G.current=!1}),420),re.current.add(t);const n=X.current.indexOf(Z.current),r=X.current.indexOf(t),i=-1!==n?ie[n]:null,o=-1!==r?ie[r]:null;return i&&i.pauseNow&&i.pauseNow(),o&&o.playNow&&o.playNow(),ge(r),b(t),E((e=>0===e.progress?e:{...e,progress:0})),B(!0),q(!1),ue(e>0?"swipeview_next":"swipeview_prev",{index:t}),!0}),[v,ue,ge,ie]),be=(0,e.useCallback)((()=>{const e=me();e&&(e.togglePlay(),pe())}),[me,pe]),we=(0,e.useCallback)((()=>{const e=S.muted,t=me();t&&t.setMuted(!e),_(e),pe(),ue(e?"swipeview_unmuted":"swipeview_muted",{index:Z.current})}),[S.muted,me,ue,pe]),_e=(0,e.useCallback)((e=>{if(e.preventDefault(),e.ctrlKey)return;const t=Fn(),n=t-ee.current;if(ee.current=t,n>160&&(J.current=0,ne.current=!1),ne.current)return;if(J.current+=e.deltaY,Math.abs(J.current)<40)return;if(t-te.current<450)return;const r=J.current>0?1:-1;J.current=0,ne.current=!0,te.current=t,ye(r)}),[ye]),ke=(0,e.useRef)(null),xe=(0,e.useRef)({}),Ce=(0,e.useRef)(null),Se=(0,e.useCallback)((e=>{Ce.current||(Ce.current={wheel:e=>xe.current.wheel(e),touchstart:e=>xe.current.touchstart(e),touchmove:e=>xe.current.touchmove(e),touchend:e=>xe.current.touchend(e),touchcancel:e=>xe.current.touchcancel(e)});const t=Ce.current,n=ke.current;n&&n!==e&&Object.keys(t).forEach((e=>n.removeEventListener(e,t[e]))),ke.current=e,e&&Object.keys(t).forEach((n=>e.addEventListener(n,t[n],{passive:!1})))}),[]),Ee=(0,e.useRef)(null),[Pe,Ne]=(0,e.useState)(0),[je,Te]=(0,e.useState)(!1),[Le,ze]=(0,e.useState)(!0),Oe=(0,e.useRef)(!1),Re=(0,e.useCallback)((()=>{const e=Ee.current;e&&(Oe.current=e.moved),Ee.current=null,Te(!1),Ne(0),ze(!0)}),[]),De=(0,e.useCallback)((e=>{if(!e.touches||1!==e.touches.length)return void(Ee.current&&Re());const t=ke.current,n=t?t.getBoundingClientRect().height:0;Ee.current={startY:e.touches[0].clientY,startTime:Fn(),height:n,moved:!1},Te(!0),Ne(0)}),[Re]),Me=(0,e.useCallback)((e=>{const t=Ee.current;if(!t||!e.touches||1!==e.touches.length)return;e.preventDefault();const n=e.touches[0].clientY-t.startY;t.moved||function(e){return Math.abs(e)<=10}(n)||(t.moved=!0),Ne(Hn(n,{index:Z.current,total:v,viewportHeight:t.height}))}),[v]),Ie=(0,e.useCallback)((e=>{const t=Ee.current;if(!t)return;const n=e.changedTouches&&e.changedTouches[0],r=n?n.clientY-t.startY:0,i=function(e){let{dragOffset:t,viewportHeight:n,durationMs:r}=e;const i=Math.abs(t);if(0===i)return 0;const o=t<0?1:-1;return n>0&&i>n/2||i>60&&r<600?o:0}({dragOffset:Hn(r,{index:Z.current,total:v,viewportHeight:t.height}),viewportHeight:t.height,durationMs:Fn()-t.startTime});if(Re(),0===Z.current&&r>140)return void de();const o=0!==i&&ye(i);ze(!o)}),[ye,v,Re,de]),$e=(0,e.useCallback)((()=>{Ee.current&&Re()}),[Re]);(0,e.useEffect)((()=>{null===Ee.current&&Ne(0)}),[y]);const Ae=[".sbtt-swipeview-railcol",".sbtt-swipeview-rail",".sbtt-swipeview-meta-views-label"],Fe=(0,e.useCallback)(((e,t)=>{const n=oe.current;return!(!n||"number"!==typeof e||"number"!==typeof t)&&Ae.some((r=>{const i=n.querySelector(r);if(!i)return!1;const o=i.getBoundingClientRect();return!(!o.width||!o.height)&&(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)}))}),[]),He=(0,e.useCallback)((e=>{Oe.current?Oe.current=!1:e&&Fe(e.clientX,e.clientY)||be()}),[be,Fe]);xe.current={wheel:_e,touchstart:De,touchmove:Me,touchend:Ie,touchcancel:$e};const Ue=(0,e.useCallback)((e=>{const t=e.key,n="string"===typeof t&&1===t.length?t.toLowerCase():t;"ArrowDown"===t||"PageDown"===t||"j"===n?(e.preventDefault(),ye(1)):"ArrowUp"===t||"PageUp"===t||"k"===n?(e.preventDefault(),ye(-1)):" "===e.key?(e.preventDefault(),be()):"m"===n&&we()}),[ye,be,we]),{title:Be,caption:We,author:Ve}=(0,e.useMemo)((()=>function(e,t){if(!e)return{title:"",caption:"",author:null};let n=t;if(Array.isArray(n)){const t=n.length>1?n.filter((t=>t.open_id===e.open_id)):n;n=t[0]||t}const r=n&&n.username;return{title:r?`@${r}`:"",caption:e.video_description||"",author:n&&!Array.isArray(n)?n:null}}(n[y],o)),[n,y,o]),Qe=(0,e.useMemo)((()=>function(e,t,n){if(!e)return null;const r=t?e.local_avatar_url||e.avatar_url_100:e.local_avatar_url||n,i=On(e.profile_deep_link)||(e.username?On(`https://www.tiktok.com/@${e.username}`):"");return r&&i?{src:r,href:i,username:e.username||""}:null}(Ve,p,f)),[Ve,p,f]),qe=Qe?Qe.src:null,[Ye,Ke]=(0,e.useState)(!1);(0,e.useEffect)((()=>{Ke(!1)}),[qe]);const Ze=(0,e.useCallback)((e=>
2{e&&(e.complete&&0===e.naturalWidth?Ke(!0):e.addEventListener("error",(()=>Ke(!0))))}),[]),Xe=(0,e.useMemo)((()=>function(e,t){const n=!!(e&&t&&t.engagement);return{likes:n?Xn(e.like_count):null,comments:n?Xn(e.comment_count):null,shares:n?Xn(e.share_count):null,views:e&&t&&t.views?Xn(e.view_count):null}}(n[y],a)),[n,y,a]),Ge=(0,e.useMemo)((()=>Ve?On(Ve.profile_deep_link)||(Ve.username?On(`https://www.tiktok.com/@${Ve.username}`):""):""),[Ve]),Je=!(!Ve||!Ve.is_verified&&!Ve.verified),et=(0,e.useMemo)((()=>On(n[y]&&n[y].share_url)),[n,y]),[tt,nt]=(0,e.useState)(""),rt=(0,e.useRef)(null),it=(0,e.useCallback)((e=>{nt(e),rt.current&&clearTimeout(rt.current),rt.current=setTimeout((()=>nt("")),1800)}),[]);(0,e.useEffect)((()=>()=>{rt.current&&clearTimeout(rt.current)}),[]);const ot=(0,e.useCallback)((e=>it((0,i.sprintf)((0,i.__)("Copy this link: %s","feeds-for-tiktok"),e))),[it]),at=(0,e.useCallback)((e=>{if(!navigator.clipboard||!navigator.clipboard.writeText)return!1;let t;try{t=navigator.clipboard.writeText(e)}catch(r){return!1}const n=()=>{it((0,i.__)("Link copied","feeds-for-tiktok")),ue("swipeview_shared",{index:Z.current,method:"clipboard"})};return t&&"function"===typeof t.then?t.then(n,(()=>ot(e))):n(),!0}),[it,ot,ue]),st=(0,e.useCallback)((()=>{const e=et;if(e)if(Kn()){try{if(navigator.share){const t=navigator.share({title:Be,text:We,url:e});return void(t&&"function"===typeof t.then?t.then((()=>ue("swipeview_shared",{index:Z.current,method:"web-share"})),(t=>{t&&"AbortError"===t.name||at(e)||ot(e)})):ue("swipeview_shared",{index:Z.current,method:"web-share"}))}}catch(t){}at(e)||ot(e)}else at(e)||ot(e)}),[et,Be,We,at,ot,ue]),[lt,ut]=(0,e.useState)(!1),[ct,dt]=(0,e.useState)(!1),[ft,pt]=(0,e.useState)(null);(0,e.useEffect)((()=>{ut(!1)}),[y]),(0,e.useEffect)((()=>{lt||dt(!!ft&&ft.scrollHeight>ft.clientHeight+1)}),[ft,We,y,lt]);const ht=y>0,mt=y<v-1,vt={transform:`translateY(${Pe}px)`,transitionDuration:P||je||!Le?"0ms":"320ms"};return(0,d.jsx)(_n,{open:!0,onOpenChange:e=>{e||de()},children:(0,d.jsx)(kn,{children:(0,d.jsx)(xn,{className:"sbtt-swipeview-overlay",children:(0,d.jsxs)(Cn,{ref:oe,className:"sbtt-swipeview-content","aria-modal":"true","aria-keyshortcuts":"ArrowUp ArrowDown Space Escape M","aria-describedby":void 0,onKeyDown:Ue,onOpenAutoFocus:e=>{e.preventDefault(),oe.current&&oe.current.focus()},onCloseAutoFocus:e=>{e.preventDefault(),s&&s.focus&&s.focus()},children:[(0,d.jsx)(se,{asChild:!0,children:(0,d.jsx)(Sn,{children:(0,i.__)("Swipe view","feeds-for-tiktok")})}),(0,d.jsx)("button",{type:"button",className:"sbtt-swipeview-chrome sbtt-swipeview-close sb-button-reset",onClick:de,"aria-label":(0,i.__)("Close swipe view","feeds-for-tiktok"),"data-tip":(0,i.__)("Close  Esc","feeds-for-tiktok"),"data-tip-pos":"right",children:(0,d.jsx)(R,{})}),(0,d.jsx)(se,{asChild:!0,children:(0,d.jsx)("div",{className:"sbtt-swipeview-position",role:"status","aria-live":"polite",children:(0,i.sprintf)((0,i.__)("%1$s of %2$s","feeds-for-tiktok"),y+1,v)})}),(0,d.jsx)(se,{asChild:!0,children:(0,d.jsx)("div",{className:"sbtt-swipeview-playstate",role:"status","aria-live":"polite",children:S.caps.playPause?S.playing?(0,i.__)("Playing","feeds-for-tiktok"):(0,i.__)("Paused","feeds-for-tiktok"):""})}),W&&(0,d.jsxs)("div",{className:"sbtt-swipeview-coach","aria-hidden":"true",children:[(0,d.jsx)(I,{}),(0,d.jsx)("span",{children:(0,i.__)("Swipe up for next","feeds-for-tiktok")})]}),tt&&(0,d.jsx)("div",{className:"sbtt-swipeview-toast",role:"status","aria-live":"polite",children:tt}),(0,d.jsxs)("div",{className:"sbtt-swipeview-shell",children:[(0,d.jsxs)("div",{className:"sbtt-swipeview-frame","data-paused":he?"true":"false",children:[(0,d.jsxs)("div",{className:"sbtt-swipeview-viewport",children:[(0,d.jsx)("div",{className:"sbtt-swipeview-track",style:{transform:`translateY(calc(-${100*y}% + ${Pe}px))`,transitionDuration:P||je?"0ms":"320ms"},children:k.map(((e,t)=>(0,d.jsx)(qn,{ref:e=>{ie[t]=e},post:null!==e?n[e]:null,trackIndex:e,isActive:e===y,unmuted:w,chain:m,startTimeoutMs:4e3,onAnalytics:ce},t)))}),(0,d.jsx)("div",{ref:Se,className:"sbtt-swipeview-gestures","aria-hidden":"true",onClick:He})]}),N&&(0,d.jsx)("div",{className:"sbtt-swipeview-flash","aria-hidden":"true",children:(0,d.jsx)(L,{})}),(0,d.jsxs)("div",{className:"sbtt-swipeview-chrome sbtt-swipeview-toprow",children:[(0,d.jsxs)("button",{type:"button",className:"sbtt-swipeview-mute sb-button-reset"+(Y?" sbtt-swipeview-mute--hinting":""),onClick:we,disabled:!S.caps.mute,"data-muted":S.muted?"true":"false","aria-label":S.muted?(0,i.__)("Unmute","feeds-for-tiktok"):(0,i.__)("Mute","feeds-for-tiktok"),
2children:[S.muted?(0,d.jsx)(z,{}):(0,d.jsx)(O,{}),(0,d.jsx)("span",{className:"sbtt-swipeview-mute-label","aria-hidden":"true",children:(0,i.__)("Tap to unmute","feeds-for-tiktok")})]}),et&&(0,d.jsxs)("a",{className:"sbtt-swipeview-cta",href:et,target:"_blank",rel:"noopener noreferrer",children:[(0,d.jsx)(D,{}),(0,i.__)("View on TikTok","feeds-for-tiktok")]})]}),(Be||We||null!==Xe.views)&&(0,d.jsxs)("div",{className:"sbtt-swipeview-chrome sbtt-swipeview-meta",style:vt,children:[null!==Xe.views&&(0,d.jsxs)("span",{className:"sbtt-swipeview-meta-views",children:[(0,d.jsxs)("span",{"aria-hidden":"true",className:"sbtt-swipeview-meta-views-label",children:[(0,d.jsx)(x,{}),(0,i.sprintf)((0,i._n)("%s view","%s views",Xe.views,"feeds-for-tiktok"),Jn(Xe.views))]}),(0,d.jsx)(se,{children:(0,i.sprintf)((0,i._n)("%s view","%s views",Xe.views,"feeds-for-tiktok"),tr(Xe.views))})]}),Be&&(0,d.jsxs)("div",{className:"sbtt-swipeview-meta-row",children:[Ge?(0,d.jsxs)("a",{className:"sbtt-swipeview-meta-handle",href:Ge,target:"_blank",rel:"noopener noreferrer",children:[Be,Je&&(0,d.jsx)(M,{})]}):(0,d.jsxs)("span",{className:"sbtt-swipeview-meta-handle",children:[Be,Je&&(0,d.jsx)(M,{})]}),Ge&&(0,d.jsx)("a",{className:"sbtt-swipeview-meta-follow",href:Ge,target:"_blank",rel:"noopener noreferrer","aria-label":(0,i.sprintf)((0,i.__)("Follow %s on TikTok","feeds-for-tiktok"),Be),children:(0,i.__)("Follow","feeds-for-tiktok")})]}),We&&(0,d.jsx)("span",{id:"sbtt-swipeview-caption",ref:pt,className:"sbtt-swipeview-meta-caption"+(lt?" sbtt-swipeview-meta-caption--expanded":""),children:We}),We&&ct&&(0,d.jsx)("button",{type:"button",className:"sbtt-swipeview-caption-more sb-button-reset","aria-expanded":lt,"aria-controls":"sbtt-swipeview-caption",onClick:()=>ut((e=>!e)),children:lt?(0,i.__)("less","feeds-for-tiktok"):(0,i.__)("more","feeds-for-tiktok")})]}),S.caps.progress&&(0,d.jsx)("div",{className:"sbtt-swipeview-chrome sbtt-swipeview-progress",role:"progressbar","aria-label":(0,i.__)("Playback progress","feeds-for-tiktok"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(S.progress),children:(0,d.jsx)("span",{style:{width:`${S.progress}%`,transitionDuration:P||T?"0ms":"200ms"}})})]}),(0,d.jsxs)("div",{className:"sbtt-swipeview-railcol",children:[(0,d.jsxs)("div",{className:"sbtt-swipeview-rail-nav",children:[(0,d.jsx)("button",{type:"button",className:"sb-button-reset",onClick:()=>ye(-1),disabled:!ht,"aria-label":(0,i.__)("Previous video","feeds-for-tiktok"),"data-tip":(0,i.__)("Previous  \u2191 / K","feeds-for-tiktok"),"data-tip-pos":"right",children:(0,d.jsx)($,{})}),(0,d.jsx)("button",{type:"button",className:"sb-button-reset",onClick:()=>ye(1),disabled:!mt,"aria-label":(0,i.__)("Next video","feeds-for-tiktok"),"data-tip":(0,i.__)("Next  \u2193 / J","feeds-for-tiktok"),"data-tip-pos":"right",children:(0,d.jsx)(A,{})})]}),(0,d.jsx)("div",{className:"sbtt-swipeview-chrome sbtt-swipeview-rail",children:(0,d.jsxs)("div",{className:"sbtt-swipeview-rail-reel",style:vt,children:[Qe&&!Ye&&(0,d.jsx)("a",{className:"sbtt-swipeview-avatar",href:Qe.href,target:"_blank",rel:"noopener noreferrer","aria-label":Qe.username?(0,i.sprintf)((0,i.__)("%s on TikTok","feeds-for-tiktok"),`@${Qe.username}`):(0,i.__)("Open this creator on TikTok","feeds-for-tiktok"),children:(0,d.jsx)("img",{ref:Ze,src:Qe.src,alt:""})}),null!==Xe.likes&&(0,d.jsxs)("div",{className:"sbtt-swipeview-rail-item sbtt-swipeview-rail-item--readout",role:"img","aria-label":er("likes",Xe.likes),children:[(0,d.jsx)("span",{className:"sbtt-swipeview-rail-ic","aria-hidden":"true",children:(0,d.jsx)(F,{})}),(0,d.jsx)("span",{className:"sbtt-swipeview-rail-n","aria-hidden":"true",children:Jn(Xe.likes)})]}),et&&(0,d.jsxs)("a",{className:"sbtt-swipeview-rail-item",href:et,target:"_blank",rel:"noopener noreferrer","aria-label":null!==Xe.comments?(0,i.sprintf)((0,i.__)("%s comments, view on TikTok","feeds-for-tiktok"),tr(Xe.comments)):(0,i.__)("View comments on TikTok","feeds-for-tiktok"),children:[(0,d.jsx)("span",{className:"sbtt-swipeview-rail-ic","aria-hidden":"true",children:(0,d.jsx)(H,{})}),null!==Xe.comments&&(0,d.jsx)("span",{className:"sbtt-swipeview-rail-n","aria-hidden":"true",children:Jn(Xe.comments)})]}),et&&(0,d.jsxs)("button",{type:"button",className:"sbtt-swipeview-rail-item sb-button-reset",onClick:st,"aria-label":(0,i.__)("Share","feeds-for-tiktok"),
2children:[(0,d.jsx)("span",{className:"sbtt-swipeview-rail-ic","aria-hidden":"true",children:(0,d.jsx)(U,{})}),null!==Xe.shares&&(0,d.jsx)("span",{className:"sbtt-swipeview-rail-n","aria-hidden":"true",children:Jn(Xe.shares)})]}),et&&(0,d.jsxs)("a",{className:"sbtt-swipeview-rail-item sbtt-swipeview-rail-item--view",href:et,target:"_blank",rel:"noopener noreferrer",children:[(0,d.jsx)("span",{className:"sbtt-swipeview-rail-ic","aria-hidden":"true",children:(0,d.jsx)(D,{})}),(0,d.jsx)("span",{className:"sbtt-swipeview-rail-n",children:(0,i.__)("View","feeds-for-tiktok")})]})]})})]})]})]})})})})};function rr(t){let{isPro:n,feedSettings:r}=t;const{gdprActive:i,gdprConsented:o}=g(),[a,s]=(0,e.useState)(!1),[l,u]=(0,e.useState)([]),[c,d]=(0,e.useState)(0),f=(0,e.useRef)(null),p=(0,e.useRef)(!1),h=i&&!o,m=!!n&&"swipe"===(null===r||void 0===r?void 0:r.videoPlayer)&&!h,v=(0,e.useCallback)((e=>!(null===e||void 0===e||!e.video_url)),[]),y=(0,e.useMemo)((()=>{const e=Array.isArray(null===r||void 0===r?void 0:r.postElements)?r.postElements:[];return{engagement:-1!==e.indexOf("likes"),views:-1!==e.indexOf("views")}}),[r]),b=(0,e.useCallback)(((e,t,n)=>{const r=e.filter(v),i=r.findIndex((e=>e.id===t.id));return-1!==i&&(f.current=n||document.activeElement,u(r),d(i),s(!0),!0)}),[v]),w=(0,e.useCallback)((()=>{s(!1)}),[]);(0,e.useEffect)((()=>{if(p.current&&!a){const e=f.current;e&&e.focus&&e.focus()}p.current=a}),[a]);const _=(0,e.useCallback)(((e,t,n,r)=>{const i=e[t];m&&v(i)&&b(e,i,n)||r(t,n)}),[m,v,b]);return{swipeEnabled:m,counts:y,isSwipeOpen:a,swipeTrack:l,swipeStartIndex:c,opener:f.current,handlePostActivate:_,closeSwipeView:w}}const ir=t=>{let{feedSettings:n,headerData:r,posts:i,isPro:o,editorActiveDevice:a,isFeedEditor:s}=t;const[l,u]=(0,e.useState)(null),[c,f]=(0,e.useState)(null),[p,h]=(0,e.useState)(!1),[m,v]=(0,e.useState)(!1),g=(0,e.useRef)(null);(0,e.useEffect)((()=>{!p&&g.current&&(g.current.focus(),g.current=null)}),[p]);let y=n.gridDesktopColumns;if(s)switch(a.device){case"mobile":y=n.gridMobileColumns;break;case"tablet":y=n.gridTabletColumns;break;default:y=n.gridDesktopColumns}const b=rr({isPro:o,feedSettings:n}),w=(e,t)=>{g.current=t||null,u(i[e]),f(e),h(!0)},_=(e,t)=>{b.handlePostActivate(i,e,t,w)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"sb-grid-wrapper sb-fs",role:"list","data-grid-columns":y,"data-grid-tablet-columns":n.gridTabletColumns,"data-grid-mobile-columns":n.gridMobileColumns,style:{display:"grid",columnGap:`${n.horizontalSpacing}px`,rowGap:`${n.verticalSpacing}px`},children:i.map(((e,t)=>(0,d.jsx)(Z,{headerData:r,post:e,postIndex:t,feedSettings:n,isPro:o,isFeedEditor:s,handlePostClick:_,isPlaying:m,setIsPlaying:v,activeIndex:c,setActiveIndex:f,isListItem:!0},t)))}),p&&l&&(0,X.createPortal)((0,d.jsx)(Pn,{closeModal:()=>{u(null),h(!1),document.body.classList.remove("sbt-lightbox-modal-open")},post:l,headerData:r,feedSettings:n,handleNext:()=>{const e=i.findIndex((e=>e.id===l.id));e===i.length-1||(u(i[e+1]),f(e+1))},handlePrev:()=>{const e=i.findIndex((e=>e.id===l.id));0===e||(u(i[e-1]),f(e-1))},showNext:!(c===i.length-1),showPrev:!(0===c),isPro:o,isLightboxVisible:p,setIsLightboxVisible:h}),document.body),b.isSwipeOpen&&(0,X.createPortal)((0,d.jsx)(nr,{posts:b.swipeTrack,startIndex:b.swipeStartIndex,headerData:r,counts:b.counts,opener:b.opener,onClose:b.closeSwipeView}),document.body)]})};var or=n(6615),ar=n.n(or);const sr=()=>"undefined"!==typeof window?window.jQuery:null,lr=t=>{let{carouselRef:n}=t;const[r,o]=(0,e.useState)(!1),a=(0,e.useRef)(null),s=(0,e.useCallback)((()=>n.current?n.current.querySelector(".owl-carousel"):null),[n]),l=(0,e.useCallback)((()=>{const e=s(),t=sr();e&&t&&t(e).trigger("stop.owl.autoplay"),o(!0)}),[s]),u=(0,e.useCallback)((()=>{const e=s(),t=sr();e&&t&&t(e).trigger("play.owl.autoplay"),o(!1)}),[s]);return(0,e.useEffect)((()=>{const e=n.current;if(!e)return;const t=e=>{a.current&&a.current.contains(e.target)||l()};return e.addEventListener("focusin",t),()=>e.removeEventListener("focusin",t)}),[n,l]),(0,d.jsx)("button",{type:"button",ref:a,className:"sbt-carousel-autoplay-toggle sb-button-reset",onClick:()=>r?u():l(),"aria-label":r?(0,i.__)("Start automatic slide rotation","feeds-for-tiktok"):(0,i.__)("Pause automatic slide rotation","feeds-for-tiktok"),style:{position:"absolute",top:"8px",right:"8px",zIndex:20,display:"inline-flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"50%",border:"none",padding:0,background:"rgba(0,0,0,0.55)",cursor:"pointer"},children:r?(0,d.jsx)(k,{}):(0,d.jsxs)("svg",{width:"14",height:"16",viewBox:"0 0 18 20","aria-hidden":"true",focusable:"false",children:[(0,d.jsx)("rect",{x:"2",y:"1",width:"5",height:"18",rx:"1",fill:"white"}),(0,d.jsx)("rect",{x:"11",y:"1",width:"5",height:"18",rx:"1",fill:"white"})]})})},ur=t=>{let{feedSettings:n,headerData:r,posts:o,isPro:a,editorActiveDevice:s,isFeedEditor:l}=t;const[u,c]=(0,e.useState)(null),[f,p]=(0,e.useState)(null),[h,m]=(0,e.useState)(!1),[v,g]=(0,e.useState)(!1),y=(0,e.useRef)(null),b=(0,e.useRef)(null);(0,e.useEffect)((()=>{!h&&b.current&&(b.current.focus(),b.current=null)}),[h]);const w=!!n.carouselEnableAutoplay,_=(0,e.useCallback)((()=>{const e=y.current;if(!e)return;const t=e.querySelector(".owl-nav .owl-prev");t&&!t.getAttribute("aria-label")&&t.setAttribute("aria-label",(0,i.__)("Previous","feeds-for-tiktok")),t&&"presentation"===t.getAttribute("role")&&t.removeAttribute("role");const n=e.querySelector(".owl-nav .owl-next");n&&!n.getAttribute("aria-label")&&n.setAttribute("aria-label",(0,i.__)("Next","feeds-for-tiktok")),n&&"presentation"===n.getAttribute("role")&&n.removeAttribute("role"),e.querySelectorAll(".owl-dots .owl-dot").forEach(((e,t)=>{const n=(0,i.sprintf)((0,i.__)("Go to slide %d","feeds-for-tiktok"),t+1);e.getAttribute("aria-label")!==n&&e.setAttribute("aria-label",n),"presentation"===e.getAttribute("role")&&e.removeAttribute("role")})),e.querySelectorAll(".owl-item.cloned").forEach((e=>{"true"!==e.getAttribute("aria-hidden")&&e.setAttribute("aria-hidden","true"),e.querySelectorAll("button, a[href], input, select, textarea, [tabindex]").forEach((e=>{"-1"!==e.getAttribute("tabindex")&&e.setAttribute("tabindex","-1")}))}))}),[]);(0,e.useEffect)((()=>{const e=y.current;if(!e)return;_();const t=new MutationObserver((()=>_()));return t.observe(e,{childList:!0,subtree:!0}),()=>t.disconnect()}),[_,o]);let k=n.carouselDesktopColumns;if(l)switch(s.device){case"mobile":k=n.carouselMobileColumns;break;case"tablet":k=n.carouselTabletColumns;break;default:k=n.carouselDesktopColumns}let x={0:{items:n.carouselMobileColumns,rows:n.carouselMobileRows},600:{items:n.carouselTabletColumns,rows:n.carouselTabletRows},1024:{items:k,rows:n.carouselDesktopRows}};const C=(e,t)=>{b.current=t||null,c(o[e]),p(e),m(!0)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{ref:y,className:"sbt-carousel-ctn sb-fs",style:{position:"relative"},children:[w&&(0,d.jsx)(lr,{carouselRef:y}),(0,d.jsx)(ar(),{responsive:x,margin:parseInt(n.horizontalSpacing),loop:"infinity"===n.carouselLoopType,rewind:"rewind"===n.carouselLoopType,nav:n.carouselShowArrows,dots:n.carouselShowPagination,autoplay:n.carouselEnableAutoplay,autoplayTimeout:n.carouselIntervalTime,children:o.map(((e,t)=>(0,d.jsx)(Z,{headerData:r,post:e,postIndex:t,feedSettings:n,isPro:a,isFeedEditor:l,handlePostClick:C,isPlaying:v,setIsPlaying:g,activeIndex:f,setActiveIndex:p},t)))})]}),h&&u&&(0,X.createPortal)((0,d.jsx)(Pn,{closeModal:()=>{c(null),m(!1),document.body.classList.remove("sbt-lightbox-modal-open")},post:u,headerData:r,feedSettings:n,handleNext:()=>{const e=o.findIndex((e=>e.id===u.id));e===o.length-1||(c(o[e+1]),p(e+1))},handlePrev:()=>{const e=o.findIndex((e=>e.id===u.id));0===e||(c(o[e-1]),p(e-1))},showNext:!(f===o.length-1),showPrev:!(0===f),isPro:a,isLightboxVisible:h,setIsLightboxVisible:m}),document.body)]})};function cr(){return cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cr.apply(this,arguments)}function dr(e,t){return dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dr(e,t)}var fr=function(t){var n,r;function i(){var e;return(e=t.call(this)||this).state={columns:[],childRefs:[],hasDistributed:!1},e}r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,dr(n,r);var o=i.prototype;return o.componentDidUpdate=function(){this.state.hasDistributed||this.props.sequential||this.distributeChildren()},i.getDerivedStateFromProps=function(e,t){var n=e.children,r=e.columnsCount,o=r!==t.columns.length;return t&&n===t.children&&!o?null:cr({},i.getEqualCountColumns(n,r),{children:n,hasDistributed:!1})},o.shouldComponentUpdate=function(e){return e.children!==this.state.children||e.columnsCount!==this.props.columnsCount},o.distributeChildren=function(){var t=this,n=this.props,r=n.children,i=n.columnsCount,o=Array(i).fill(0);if(this.state.childRefs.every((function(e){return e.current.getBoundingClientRect().height}))){var a=Array.from({length:i},(function(){return[]})),s=0;
2e.Children.forEach(r,(function(n){if(n&&e.isValidElement(n)){var r=t.state.childRefs[s].current.getBoundingClientRect().height,i=o.indexOf(Math.min.apply(Math,o));o[i]+=r,a[i].push(n),s++}})),this.setState((function(e){return cr({},e,{columns:a,hasDistributed:!0})}))}},i.getEqualCountColumns=function(t,n){var r=Array.from({length:n},(function(){return[]})),i=0,o=[];return e.Children.forEach(t,(function(t){if(t&&e.isValidElement(t)){var a=e.createRef();o.push(a),r[i%n].push(e.createElement("div",{style:{display:"flex",justifyContent:"stretch"},key:i,ref:a},t)),i++}})),{columns:r,childRefs:o}},o.renderColumns=function(){var t=this.props,n=t.gutter,r=t.itemTag,i=t.itemStyle;return this.state.columns.map((function(t,o){return e.createElement(r,{key:o,style:cr({display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:n},i)},t.map((function(e){return e})))}))},o.render=function(){var t=this.props,n=t.gutter,r=t.className,i=t.style,o=t.containerTag;return e.createElement(o,{style:cr({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:n},i),className:r},this.renderColumns())},i}(e.Component);fr.propTypes={},fr.defaultProps={columnsCount:3,gutter:"0",className:null,style:{},containerTag:"div",itemTag:"div",itemStyle:{},sequential:!1};const pr=fr;var hr="undefined"!==typeof window?e.useLayoutEffect:e.useEffect,mr=function(){var t=function(){var t=(0,e.useState)(!1),n=t[0],r=t[1];return hr((function(){r(!0)}),[]),n}(),n=(0,e.useState)("undefined"!==typeof window?window.innerWidth:0),r=n[0],i=n[1],o=(0,e.useCallback)((function(){t&&i(window.innerWidth)}),[t]);return hr((function(){if(t)return window.addEventListener("resize",o),o(),function(){return window.removeEventListener("resize",o)}}),[t,o]),r},vr=function(t){var n=t.columnsCountBreakPoints,r=void 0===n?{350:1,750:2,900:3}:n,i=t.gutterBreakPoints,o=void 0===i?{}:i,a=t.children,s=t.className,l=void 0===s?null:s,u=t.style,c=void 0===u?null:u,d=mr(),f=(0,e.useCallback)((function(e,t){var n=Object.keys(e).sort((function(e,t){return e-t})),r=n.length>0?e[n[0]]:t;return n.forEach((function(t){t<d&&(r=e[t])})),r}),[d]),p=(0,e.useMemo)((function(){return f(r,1)}),[f,r]),h=(0,e.useMemo)((function(){return f(o,"10px")}),[f,o]);return e.createElement("div",{className:l,style:c},e.Children.map(a,(function(t,n){return e.cloneElement(t,{key:n,columnsCount:p,gutter:h})})))};vr.propTypes={};const gr=vr,yr=pr,br=t=>{let{feedSettings:n,posts:r,headerData:i,isPro:o,editorActiveDevice:a,isFeedEditor:s}=t;const[l,u]=(0,e.useState)(null),[c,f]=(0,e.useState)(null),[p,h]=(0,e.useState)(!1),[m,v]=(0,e.useState)(!1),g=(0,e.useRef)(null);(0,e.useEffect)((()=>{!p&&g.current&&(g.current.focus(),g.current=null)}),[p]);let y=n.masonryDesktopColumns;if(s)switch(a.device){case"mobile":y=parseInt(n.masonryMobileColumns);break;case"tablet":y=parseInt(n.masonryTabletColumns);break;default:y=parseInt(n.masonryDesktopColumns)}const b={350:parseInt(n.masonryMobileColumns),750:parseInt(n.masonryTabletColumns),900:y},w=rr({isPro:o,feedSettings:n}),_=(e,t)=>{g.current=t||null,u(r[e]),f(e),h(!0)},k=(e,t)=>{w.handlePostActivate(r,e,t,_)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(gr,{columnsCountBreakPoints:b,children:(0,d.jsx)(yr,{gutter:`${n.horizontalSpacing}px`,children:r.map(((e,t)=>(0,d.jsx)(Z,{post:e,headerData:i,postIndex:t,feedSettings:n,isPro:o,isFeedEditor:s,handlePostClick:k,isPlaying:m,setIsPlaying:v,activeIndex:c,setActiveIndex:f},t)))})}),p&&l&&(0,X.createPortal)((0,d.jsx)(Pn,{closeModal:()=>{u(null),h(!1),document.body.classList.remove("sbt-lightbox-modal-open")},post:l,headerData:i,feedSettings:n,handleNext:()=>{const e=r.findIndex((e=>e.id===l.id));e===r.length-1||(u(r[e+1]),f(e+1))},handlePrev:()=>{const e=r.findIndex((e=>e.id===l.id));0===e||(u(r[e-1]),f(e-1))},showNext:!(c===r.length-1),showPrev:!(0===c),isPro:o,isLightboxVisible:p,setIsLightboxVisible:h}),document.body),w.isSwipeOpen&&(0,X.createPortal)((0,d.jsx)(nr,{posts:w.swipeTrack,startIndex:w.swipeStartIndex,headerData:i,counts:w.counts,opener:w.opener,onClose:w.closeSwipeView}),document.body)]})},wr=t=>{let{feedSettings:n,posts:r,headerData:i,isPro:o,isFeedEditor:a}=t;const[s,l]=(0,e.useState)(null),[u,c]=(0,e.useState)(null),[f,p]=(0,e.useState)(!1),[h,m]=(0,e.useState)(!1),v=(0,e.useRef)(null);(0,e.useEffect)((()=>{!f&&v.current&&(v.current.focus(),v.current=null)}),[f]);const g=rr({isPro:o,feedSettings:n}),y=(e,t)=>{v.current=t||null,l(r[e]),c(e),p(!0)},b=(e,t)=>{g.handlePostActivate(r,e,t,y)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"sb-list-wrapper sb-fs",role:"list",children:r.map(((e,t)=>(0,d.jsx)(Z,{headerData:i,post:e,postIndex:t,feedSettings:n,isPro:o,isFeedEditor:a,handlePostClick:b,isPlaying:h,setIsPlaying:m,activeIndex:u,setActiveIndex:c,isListItem:!0},t)))}),f&&s&&(0,X.createPortal)((0,d.jsx)(Pn,{closeModal:()=>{l(null),p(!1),document.body.classList.remove("sbt-lightbox-modal-open")},post:s,headerData:i,feedSettings:n,handleNext:()=>{const e=r.findIndex((e=>e.id===s.id));e===r.length-1||(l(r[e+1]),c(e+1))},handlePrev:()=>{const e=r.findIndex((e=>e.id===s.id));0===e||(l(r[e-1]),c(e-1))},showNext:!(u===r.length-1),showPrev:!(0===u),isPro:o,isLightboxVisible:f,setIsLightboxVisible:p}
2),document.body),g.isSwipeOpen&&(0,X.createPortal)((0,d.jsx)(nr,{posts:g.swipeTrack,startIndex:g.swipeStartIndex,headerData:i,counts:g.counts,opener:g.opener,onClose:g.closeSwipeView}),document.body)]})},_r=t=>{var n;let{post:r,headerData:o,postIndex:a,feedSettings:s,isFeedEditor:l,isPlaying:u,setIsPlaying:c}=t;const{gdprActive:f,gdprConsented:h,gdprPlaceholder:m}=g();(null===(n=o)||void 0===n?void 0:n.length)>1&&(o=o.filter((e=>e.open_id===r.open_id))),o=o[0]||o;const[v,y]=(0,e.useState)("inherit"),w=(0,e.useRef)(null),k=!f||h,x=(null===r||void 0===r?void 0:r.local_cover_image_url)||(!f||h?null===r||void 0===r?void 0:r.cover_image_url:m||"");return(0,e.useEffect)((()=>{if(w.current){const e=w.current.clientHeight;y(e>0?`${e}px`:"inherit")}}),[u]),(0,d.jsxs)("div",{className:"sb-post-item-wrap sb-gallery-player",ref:w,children:[(0,d.jsxs)("div",{className:"sb-post-item sbtt-post-item sb-post-list-item","data-post-id":null===r||void 0===r?void 0:r.id,"data-processing-attempted":null!==r&&void 0!==r&&r.image_processing_attempted?"1":"0",children:[(0,d.jsx)("div",{className:"sb-post-item-image-wrap",style:{position:"relative",width:"385px",height:"100%",overflow:"hidden",borderRadius:"4px",background:"black",margin:"auto"},children:u&&null!==r&&void 0!==r&&r.video_url&&k?(0,d.jsx)(Q,{post:r,playerExperience:"inline",dynamicHeight:v}):(0,d.jsx)("button",{type:"button",className:"sb-button-reset sb-gallery-player-trigger",onClick:()=>{if(!l&&k){if(c(!0),w.current){const e=w.current.clientHeight;y(`${e}px`)}}else!l&&null!==r&&void 0!==r&&r.share_url&&window.open(r.share_url,"_blank","noopener,noreferrer")},"aria-label":(null===r||void 0===r?void 0:r.video_description)||(0,i.__)("Play video","feeds-for-tiktok"),children:(0,d.jsx)("img",{className:"sb-post-item-image",src:x,alt:p.generateAltText(r)})})}),(0,d.jsxs)("div",{className:"sb-post-item-details",children:[(0,d.jsx)(b,{headerData:o}),(0,d.jsx)(_,{post:r,postIndex:a,feedSettings:s,isFeedEditor:l}),(0,d.jsxs)("div",{className:"sb-post-item-meta",children:[(0,d.jsx)(W,{post:r,fillColor:"black"}),(0,d.jsx)(B,{post:r,fillColor:"black"})]})]})]},a),l&&p.addHighlighter("tiktokfeed","Posts",a)]},a)},kr=t=>{let{feedSettings:n,posts:r,headerData:i,isPro:o,editorActiveDevice:a,isFeedEditor:s,feedId:l}=t;const[u,c]=(0,e.useState)(r[0]||null),[f,p]=(0,e.useState)(r.length>0?0:null),[h,m]=(0,e.useState)(!1);let v=n.galleryDesktopColumns;if(s)switch(a.device){case"mobile":v=n.galleryMobileColumns;break;case"tablet":v=n.galleryTabletColumns;break;default:v=n.galleryDesktopColumns}const g=(e,t)=>{c(r[e]),m(!0),p(e);const n=document.getElementById(`sb-tiktok-feeds-container-${l}`);n&&n.scrollIntoView({behavior:"smooth"})};return(0,d.jsxs)(d.Fragment,{children:[u&&(0,d.jsx)(_r,{post:u,headerData:i,isPlaying:h,setIsPlaying:m}),(0,d.jsx)("div",{className:"sb-grid-wrapper sb-fs",role:"list","data-grid-columns":v,"data-grid-tablet-columns":n.galleryTabletColumns,"data-grid-mobile-columns":n.galleryMobileColumns,style:{display:"grid",columnGap:`${n.horizontalSpacing}px`,rowGap:`${n.verticalSpacing}px`},children:r.map(((e,t)=>(0,d.jsx)(Z,{headerData:i,post:e,postIndex:t,feedSettings:n,isPro:o,isFeedEditor:s,handlePostClick:g,isPlaying:h,setIsPlaying:m,activeIndex:f,setActiveIndex:p,isListItem:!0},t)))})]})},xr=e=>{var t;let{feedSettings:n,headerData:r,posts:o,isPro:a,isFeedEditor:s,feedId:l,editorActiveDevice:u="desktop"}=e;const c={headerData:r,posts:o,feedSettings:n,editorActiveDevice:u,isPro:a,isFeedEditor:s,feedId:l},f=(null===r||void 0===r||null===(t=r[0])||void 0===t?void 0:t.username)||(null===r||void 0===r?void 0:r.username),h=f?(0,i.sprintf)((0,i.__)("TikTok feed from @%s","feeds-for-tiktok"),f):(0,i.__)("TikTok feed","feeds-for-tiktok");return(0,d.jsxs)("section",{className:"sb-feed-posts sb-fs","data-avatar-size":"medium","aria-label":h,children:[o.length>0&&(()=>{switch(n.layout){case"grid":default:return(0,d.jsx)(ir,{...c});case"list":return(0,d.jsx)(wr,{...c});case"masonry":return(0,d.jsx)(br,{...c});case"carousel":return(0,d.jsx)(ur,{...c});case"gallery":return(0,d.jsx)(kr,{...c})}})(),s&&p.addHighlighter("posts-layout","Posts Layout",0,!0)]})},Cr=(0,e.createContext)(null);function Sr(t){let{children:n}=t;const[r,i]=(0,e.useState)(""),[o,a]=(0,e.useState)(""),s=(0,e.useRef)(null);(0,e.useEffect)((()=>()=>clearTimeout(s.current)),[]);const l=(0,e.useCallback)((function(e){let{assertive:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&(clearTimeout(s.current),t?a(""):i(""),s.current=setTimeout((()=>{t?a(String(e)):i(String(e))}),50))}),[]);return(0,d.jsxs)(Cr.Provider,{value:l,children:[n,(0,d.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sb-visually-hidden",children:r}),(0,d.jsx)("div",{role:"alert","aria-live":"assertive","aria-atomic":"true",className:"sb-visually-hidden",children:o})]})}const Er=t=>{const{feedSettings:n,feedId:r,isFeedEditor:o,posts:a,setPosts:s,postsList:l,setPostsList:u,postsPerPage:c}=t,f=(null===n||void 0===n?void 0:n.layout)||"grid",[m,v]=(0,e.useState)(1),[g,y]=(0,e.useState)(1),[b,w]=(0,e.useState)(c),[_,k]=(0,e.useState)((null===t||void 0===t?void 0:t.nextPage)||null),[x,C]=(0,e.useState)((null===t||void 0===t?void 0:t.nextPage)||null),S=(0,e.useContext)(Cr)||(()=>{}),E=(0,e.useRef)((null===l||void 0===l?void 0:l.length)||0),P=(0,e.useRef)(null),N=(0,e.useRef)(null);(0,e.useEffect)((()=>{const e=N.current;if(null===e||void 0===e)return;if(((null===l||void 0===l?void 0:l.length)||0)<=e)return;if(N.current=null,P.current)return;const t=document.getElementById(`sb-tiktok-feeds-container-${r}`);if(!t)return;const n=t.querySelectorAll("button.sb-post-item-image-wrap")[e]||t.querySelectorAll(".sb-post-item-wrap")[e];n&&("BUTTON"!==n.tagName&&n.setAttribute("tabindex","-1"),n.focus())}),[l,r]),(0,e.useEffect)((()=>
2{if(o)return;const e=(null===l||void 0===l?void 0:l.length)||0,t=e-E.current;t>0&&S((0,i.sprintf)((0,i._n)("Loaded %d more post","Loaded %d more posts",t,"feeds-for-tiktok"),t)),E.current=e}),[l,o,S]),(0,e.useEffect)((()=>{o||(w(c),y(1),u(null===a||void 0===a?void 0:a.slice(0,c)))}),[c]);return(0,e.useEffect)((()=>{if(a&&(null===a||void 0===a?void 0:a.length)>0){const e=[...a.slice(0,g*c)];u(e)}}),[a]),(0,e.useEffect)((()=>(null===a||void 0===a?void 0:a.length)>(null===l||void 0===l?void 0:l.length)?C(!0):C(!1)),[a,l]),!0===(null===n||void 0===n?void 0:n.showLoadButton)&&"carousel"!==f&&(o||_||x)&&(0,d.jsxs)("section",{className:"sb-load-button-ctn sb-fs",ref:P,children:[(0,d.jsx)(h,{text:null===n||void 0===n?void 0:n.loadButtonText,"full-width":!0,customClass:"sb-load-button",size:"small",onClick:o?null:async()=>{var e;if(N.current=null!==(e=P.current)&&void 0!==e&&e.contains(document.activeElement)?(null===l||void 0===l?void 0:l.length)||0:null,(null===a||void 0===a?void 0:a.length)>=c*(g+1))u((e=>[...e,...a.slice(b,b+c)]));else{const e=m+1;v(e);const t=await p.loadMorePosts(r,e);null!==t&&void 0!==t&&t.nextPage?k(t.nextPage):k(null),s((e=>[...e,...null===t||void 0===t?void 0:t.posts]))}w(b+c),y(g+1)}}),o&&p.addHighlighter("loadmore-button","Load More Button")]})};function Pr(e){const t=document.cookie.match(new RegExp("(?:^|;\\s*)"+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"=([^;]*)"));return t?decodeURIComponent(t[1]):null}const Nr={wpconsent:function(){try{if(window.WPConsent&&window.WPConsent.hasConsent)return!!window.WPConsent.hasConsent("marketing");const e=Pr("wpconsent_preferences");if(e){const t=JSON.parse(e);return t&&!0===t.marketing}}catch(e){}return!1},real_cookie_banner:function(){try{const e=document.cookie.match(/real_cookie_banner[^=]*=([^;]+)/);if(e&&e[1]){const t=decodeURIComponent(e[1]),n=t.indexOf("{");if(-1!==n){const e=JSON.parse(t.substring(n));if("main_all"===e.bc)return!0;if(e.d&&Object.keys(e.d).length>0)return!0}}}catch(e){}return!1},cookie_notice:function(){try{return"true"===Pr("cookie_notice_accepted")}catch(e){return!1}},cookie_law_info:function(){try{if(window.cookieyes&&window.cookieyes._ckyConsentStore&&window.cookieyes._ckyConsentStore.get){const e=window.cookieyes._ckyConsentStore.get("functional");return!0===e||"yes"===e}const e=Pr("cookieyes-consent");if(e)return-1!==e.indexOf("functional:yes")}catch(e){}return!1},cookiebot:function(){try{if(window.Cookiebot&&window.Cookiebot.consent)return!!window.Cookiebot.consented&&!!window.Cookiebot.consent.marketing;const e=Pr("CookieConsent");if(e){if("-1"===e)return!0;const t=e.match(/marketing:(true|false)/);return!!t&&"true"===t[1]}}catch(e){}return!1},complianz:function(){try{if("function"===typeof window.cmplz_has_consent)return!!window.cmplz_has_consent("marketing");const e=Pr("cmplz_marketing");if(e)return"allow"===e}catch(e){}return!1},borlabs:function(){try{if(window.BorlabsCookie&&window.BorlabsCookie.Consents&&window.BorlabsCookie.Consents.hasConsent)return window.BorlabsCookie.Consents.hasConsent("tiktok")||window.BorlabsCookie.Consents.hasConsent("marketing")}catch(e){}return!1},moove:function(){try{const e=Pr("moove_gdpr_popup");if(e){const t=JSON.parse(decodeURIComponent(e));return t&&("1"===t.thirdparty||1===t.thirdparty)}}catch(e){}return!1}},jr=()=>{const t=window.sbtt_gdpr_options||{},n=!!t.gdprActive,r=t.activePlugin||"",i=t.placeholder||"",o=t.avatarPlaceholder||"",a=(0,e.useCallback)((()=>!!(n&&r&&Nr[r])&&Nr[r]()),[n,r]),[s,l]=(0,e.useState)(!n||a());return(0,e.useEffect)((()=>{if(!n||s)return;if(a())return void l(!0);const e=()=>{a()&&l(!0)};window.addEventListener("wpconsent_consent_saved",e),document.addEventListener("wpconsent_consent_processed",e),window.addEventListener("CookiebotOnAccept",e),document.addEventListener("cmplz_status_change",e),document.addEventListener("cmplz_fire_categories",e),window.addEventListener("borlabs-cookie-consent-saved",e),window.addEventListener("RCBConsentChange",e),document.addEventListener("setCookieNotice",e),document.addEventListener("cookieyes_consent_update",e);const t=t=>{const n=t.target;if(!n)return;(n.classList.contains("cky-btn-accept")||n.classList.contains("cn-set-cookie")||n.classList.contains("moove-gdpr-infobar-allow-all")||"cn-accept-cookie"===n.id||"CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll"===n.id)&&setTimeout(e,500)};document.addEventListener("click",t,!0),"real_cookie_banner"===r&&window.consentApi&&window.consentApi.consent&&window.consentApi.consent("tiktok").then((function(e){e&&e.consentGiven&&l(!0)})).catch((function(){}));let i=null,o=null;return"moove"===r&&(i=setInterval((()=>
2{a()&&(clearInterval(i),o&&clearTimeout(o),l(!0))}),1e3),o=setTimeout((()=>{i&&clearInterval(i)}),3e5)),()=>{window.removeEventListener("wpconsent_consent_saved",e),document.removeEventListener("wpconsent_consent_processed",e),window.removeEventListener("CookiebotOnAccept",e),document.removeEventListener("cmplz_status_change",e),document.removeEventListener("cmplz_fire_categories",e),window.removeEventListener("borlabs-cookie-consent-saved",e),window.removeEventListener("RCBConsentChange",e),document.removeEventListener("setCookieNotice",e),document.removeEventListener("cookieyes_consent_update",e),document.removeEventListener("click",t,!0),i&&clearInterval(i),o&&clearTimeout(o)}}),[n,s,a]),{gdprActive:n,consented:s,placeholder:i,avatarPlaceholder:o}},Tr=t=>{const n=window.sbtt_feed_options,{feedSettings:r,feedId:i,headerData:o,nextPage:a}=t,s=(null===n||void 0===n?void 0:n.isPro)||!1,[l,u]=(0,e.useState)((null===t||void 0===t?void 0:t.posts)||[]),[c,f]=(0,e.useState)((null===r||void 0===r?void 0:r.numPostDesktop)||10),[p,h]=(0,e.useState)([]),{gdprActive:m,consented:g,placeholder:b,avatarPlaceholder:w}
2=jr();(0,e.useEffect)((()=>{_();const e=()=>{_()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),(0,e.useEffect)((()=>{(null===l||void 0===l?void 0:l.length)>0&&h(null===l||void 0===l?void 0:l.slice(0,c))}),[c]);const _=()=>{const e=window.innerWidth;let t=0;t=e<=480?(null===r||void 0===r?void 0:r.numPostMobile)||6:e<=640?(null===r||void 0===r?void 0:r.numPostTablet)||8:(null===r||void 0===r?void 0:r.numPostDesktop)||10,f(t);document.querySelectorAll(".sbtt-feed-container").forEach((e=>{e.offsetWidth<=480?e.classList.add("sb-narrow-width"):e.classList.remove("sb-narrow-width")}))},k={gdprActive:m,gdprConsented:g,gdprPlaceholder:b,gdprAvatarPlaceholder:w};return(0,d.jsx)(v,{value:k,children:(0,d.jsx)("section",{className:"sb-feed-wrapper sb-fs",id:"sb-tiktok-feeds-container-"+i,children:(0,d.jsxs)("section",{className:"sbtt-feed-container sb-fs","data-layout":r.layout,"data-feed-template":r.feedTemplate,"data-post-style":r.postStyle,"data-plugin":s?"pro":"free",children:[(0,d.jsx)(y,{feedSettings:r,headerData:o,isPro:s,isFeedEditor:!1}),(0,d.jsx)(xr,{feedSettings:r,headerData:o,posts:p,isPro:s,isFeedEditor:!1,feedId:i}),s&&(0,d.jsx)(Er,{feedSettings:r,feedId:i,isFeedEditor:!1,posts:l,setPosts:u,postsList:p,setPostsList:h,postsPerPage:c,nextPage:a})]})})})};function Lr(){const t=document.querySelectorAll(".sbtt-tiktok-feed");t.length>0&&t.forEach((t=>{const n=JSON.parse(t.getAttribute("data-feed-settings")),i=t.getAttribute("data-feed-id"),o=JSON.parse(t.getAttribute("data-feed-posts")),a=JSON.parse(t.getAttribute("data-feed-header")),s=t.getAttribute("data-next-page");r.createRoot(t).render((0,d.jsx)(e.StrictMode,{children:(0,d.jsx)(Sr,{children:(0,d.jsx)(Tr,{feedSettings:n,feedId:i,posts:o,headerData:a,nextPage:s})})}))}))}Lr(),window.sbttInitializeFeed=Lr})()})();
3//# sourceMappingURL=tikTokFeed.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.