vendor: 7,806 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/html2canvas-chunk.8_WCJqiX.js","js/rolldown-runtime-chunk.hePW80VL.js","js/index.es-chunk.BA1WJ--v.js"])))=>i.map(i=>d[i]); 2import{n as e,r as t,t as n}from"./rolldown-runtime-chunk.hePW80VL.js";import{n as r,t as i}from"./spinner-chunk.DjMBTS06.js";/* empty css *//* empty css *//* empty css */var a=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ee(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var F=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},I={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=I,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ee}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,F)}catch(e){F(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()}
vendor: 11,785 bytes, lines 2-4
2,e.version=`19.2.8`})),o=n(((e,t)=>{t.exports=a()})),s=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.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`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){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 s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),c=n(((e,t)=>{t.exports=s()})),l=n((e=>{var t=o();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=i.p;try{if(c.T=null,i.p=2,e)return e()}finally{c.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=l(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),u=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=l()})),d=n((e=>{var t=c(),n=o(),r=u();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(s(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return f(a),e;if(o===r)return f(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var c=!1,l=a.child;l;){if(l===n){c=!0,n=a,r=o;break}if(l===r){c=!0,r=a,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=a;break}if(l===r){c=!0,r=o,n=a;break}l=l.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||``,e=e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var ee=Array.isArray,F=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},L=[],ne=-1;function R(e){return{current:e}}function re(e){0>ne||(e.current=L[ne],L[ne]=null,ne--)}function z(e,t){ne++,L[ne]=e.current,e.current=t}var ie=R(null),ae=R(null),oe=R(null),se=R(null);function ce(e,t){switch(z(oe,t),z(ae,e),z(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zd(t),e=Qd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}re(ie),z(ie,e)}function le(){re(ie),re(ae),re(oe)}function ue(e){e.memoizedState!==null&&z(se,e);var t=ie.current,n=Qd(t,e.type);t!==n&&(z(ae,e),z(ie,n))}function B(e){ae.current===e&&(re(ie),re(ae)),se.current===e&&(re(se),cp._currentValue=te)}var de,fe;function pe(e){if(de===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||``,fe=-1<e.stack.indexOf(` 3 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 4`+de+e+fe}var me=!1;function he(e,t){if(!e||me)return``;me=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}
vendor: 20,335 bytes, lines 4-9
4else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(` 5`),l=s.split(` 6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=` 7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{me=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?pe(n):``}function ge(e,t){switch(e.tag){case 26:case 27:case 5:return pe(e.type);case 16:return pe(`Lazy`);case 13:return e.child!==t&&t!==null?pe(`Suspense Fallback`):pe(`Suspense`);case 19:return pe(`SuspenseList`);case 0:case 15:return he(e.type,!1);case 11:return he(e.type.render,!1);case 1:return he(e.type,!0);case 31:return pe(`Activity`);default:return``}}function _e(e){try{var t=``,n=null;do t+=ge(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 8Error generating stack: `+e.message+` 9`+e.stack}}var ve=Object.prototype.hasOwnProperty,ye=t.unstable_scheduleCallback,be=t.unstable_cancelCallback,xe=t.unstable_shouldYield,Se=t.unstable_requestPaint,Ce=t.unstable_now,we=t.unstable_getCurrentPriorityLevel,Te=t.unstable_ImmediatePriority,Ee=t.unstable_UserBlockingPriority,De=t.unstable_NormalPriority,Oe=t.unstable_LowPriority,ke=t.unstable_IdlePriority,Ae=t.log,je=t.unstable_setDisableYieldValue,Me=null,Ne=null;function Pe(e){if(typeof Ae==`function`&&je(e),Ne&&typeof Ne.setStrictMode==`function`)try{Ne.setStrictMode(Me,e)}catch{}}var Fe=Math.clz32?Math.clz32:Re,Ie=Math.log,Le=Math.LN2;function Re(e){return e>>>=0,e===0?32:31-(Ie(e)/Le|0)|0}var ze=256,Be=262144,Ve=4194304;function He(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ue(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=He(n))):i=He(o):i=He(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=He(n))):i=He(o)):i=He(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function We(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ge(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ke(){var e=Ve;return Ve<<=1,!(Ve&62914560)&&(Ve=4194304),e}function qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Je(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ye(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Fe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Xe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Xe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Fe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ze(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Fe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Qe(e,t){var n=t&-t;return n=n&42?1:$e(n),(n&(e.suspendedLanes|t))===0?n:0}function $e(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function et(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function tt(){var e=I.p;return e===0?(e=window.event,e===void 0?32:wp(e.type)):e}function nt(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var rt=Math.random().toString(36).slice(2),it=`__reactFiber$`+rt,at=`__reactProps$`+rt,ot=`__reactContainer$`+rt,st=`__reactEvents$`+rt,ct=`__reactListeners$`+rt,lt=`__reactHandles$`+rt,ut=`__reactResources$`+rt,dt=`__reactMarker$`+rt;function ft(e){delete e[it],delete e[at],delete e[st],delete e[ct],delete e[lt]}function pt(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ot]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xf(e);e!==null;){if(n=e[it])return n;e=xf(e)}return t}e=n,n=e.parentNode}return null}function mt(e){if(e=e[it]||e[ot]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ht(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function gt(e){var t=e[ut];return t||(t=e[ut]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function _t(e){e[dt]=!0}var vt=new Set,yt={};function bt(e,t){xt(e,t),xt(e+`Capture`,t)}function xt(e,t){for(yt[e]=t,e=0;e<t.length;e++)vt.add(t[e])}var St=RegExp(`^[: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]*$`),Ct={},wt={};function Tt(e){return ve.call(wt,e)?!0:ve.call(Ct,e)?!1:St.test(e)?wt[e]=!0:(Ct[e]=!0,!1)}function Et(e,t,n){if(Tt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function Dt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Ot(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function kt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function At(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function jt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mt(e){if(!e._valueTracker){var t=At(e)?`checked`:`value`;e._valueTracker=jt(e,t,``+e[t])}}function Nt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=At(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Pt(e){if(e=e||(typeof document<`u`?document:void 0),e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ft=/[\n"\\]/g;function It(e){return e.replace(Ft,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Lt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+kt(t)):e.value!==``+kt(t)&&(e.value=``+kt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):zt(e,o,kt(n)):zt(e,o,kt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+kt(s):e.removeAttribute(`name`)}function Rt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Mt(e);return}n=n==null?``:``+kt(n),t=t==null?n:``+kt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Mt(e)}function zt(e,t,n){t===`number`&&Pt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Bt(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=``+kt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Vt(e,t,n){if(t!=null&&(t=``+kt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+kt(n)}function Ht(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ee(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??(n=``),t=n}n=kt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Mt(e)}function Ut(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var V=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Wt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||V.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Gt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Wt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Wt(e,o,t[o])}function Kt(e){if(e.indexOf(`-`)===-1)return!1;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 qt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Jt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Yt(e){return Jt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Xt(){}var Zt=null;function Qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $t=null,en=null;function tn(e){var t=mt(e);if(t&&(e=t.stateNode)){var n=e[at]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Lt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+It(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[at]||null;if(!a)throw Error(i(90));Lt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Nt(r)}break a;case`textarea`:Vt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Bt(e,!!n.multiple,t,!1)}}}var nn=!1;function rn(e,t,n){if(nn)return e(t,n);nn=!0;try{return e(t)}finally{if(nn=!1,($t!==null||en!==null)&&(Du(),$t&&(t=$t,e=en,en=$t=null,tn(t),e)))for(t=0;t<e.length;t++)tn(e[t])}}function an(e,t){var n=e.stateNode;if(n===null)return null;var r=n[at]||null;if(r===null)return null;n=r[t];a: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)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var on=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),sn=!1;if(on)try{var cn={};Object.defineProperty(cn,"passive",{get:function(){sn=!0}}),window.addEventListener(`test`,cn,cn),window.removeEventListener(`test`,cn,cn)}catch{sn=!1}var ln=null,un=null,dn=null;function fn(){if(dn)return dn;var e,t=un,n=t.length,r,i=`value`in ln?ln.value:ln.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return dn=i.slice(e,1<r?1-r:void 0)}function pn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mn(){return!0}function hn(){return!1}function gn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?mn:hn,this.isPropagationStopped=hn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=mn)},persist:function(){},isPersistent:mn}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vn=gn(_n),yn=h({},_n,{view:0,detail:0}),bn=gn(yn),xn,Sn,Cn,wn=h({},yn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Cn&&(Cn&&e.type===`mousemove`?(xn=e.screenX-Cn.screenX,Sn=e.screenY-Cn.screenY):Sn=xn=0,Cn=e),xn)},movementY:function(e){return`movementY`in e?e.movementY:Sn}}),Tn=gn(wn),En=gn(h({},wn,{dataTransfer:0})),Dn=gn(h({},yn,{relatedTarget:0})),On=gn(h({},_n,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=gn(h({},_n,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),An=gn(h({},_n,{data:0})),jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Mn={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:`F
95`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Nn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nn[e])?!!t[e]:!1}function Fn(){return Pn}var In=gn(h({},yn,{key:function(e){if(e.key){var t=jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Mn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return e.type===`keypress`?pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Ln=gn(h({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=gn(h({},yn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),zn=gn(h({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bn=gn(h({},wn,{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})),Vn=gn(h({},_n,{newState:0,oldState:0})),Hn=[9,13,27,32],Un=on&&`CompositionEvent`in window,Wn=null;on&&`documentMode`in document&&(Wn=document.documentMode);var Gn=on&&`TextEvent`in window&&!Wn,Kn=on&&(!Un||Wn&&8<Wn&&11>=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=fn(),dn=un=ln=null,Zn=!1,e):null;switch(e){case`paste`: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 Kn&&t.locale!==`ko`?null:t.data;default:return null}}var er={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 tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!er[e.type]:t===`textarea`}function nr(e,t,n,r){$t?en?en.push(r):en=[r]:$t=r,t=Fd(t,`onChange`),0<t.length&&(n=new vn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var rr=null,ir=null;function ar(e){Dd(e,0)}function or(e){if(Nt(ht(e)))return e}function sr(e,t){if(e===`change`)return t}var cr=!1;if(on){var lr;if(on){var ur=`oninput`in document;if(!ur){var dr=document.createElement(`div`);dr.setAttribute(`oninput`,`return;`),ur=typeof dr.oninput==`function`}lr=ur}else lr=!1;cr=lr&&(!document.documentMode||9<document.documentMode)}function fr(){rr&&(rr.detachEvent(`onpropertychange`,pr),ir=rr=null)}function pr(e){if(e.propertyName===`value`&&or(ir)){var t=[];nr(t,ir,e,Qt(e)),rn(ar,t)}}function mr(e,t,n){e===`focusin`?(fr(),rr=t,ir=n,rr.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function hr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return or(ir)}function gr(e,t){if(e===`click`)return or(t)}function _r(e,t){if(e===`input`||e===`change`)return or(t)}function vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var yr=typeof Object.is==`function`?Object.is:vr;function br(e,t){if(yr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!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(!ve.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sr(e,t){var n=xr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pt(e.document)}return t}function Tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Er=on&&`documentMode`in document&&11>=document.documentMode,Dr=null,Or=null,kr=null,Ar=!1;function jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ar||Dr==null||Dr!==Pt(r)||(r=Dr,`selectionStart`in r&&Tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 76,732 bytes, line 9
9sNode:r.focusNode,focusOffset:r.focusOffset}),kr&&br(kr,r)||(kr=r,r=Fd(Or,`onSelect`),0<r.length&&(t=new vn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function Mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Nr={animationend:Mr(`Animation`,`AnimationEnd`),animationiteration:Mr(`Animation`,`AnimationIteration`),animationstart:Mr(`Animation`,`AnimationStart`),transitionrun:Mr(`Transition`,`TransitionRun`),transitionstart:Mr(`Transition`,`TransitionStart`),transitioncancel:Mr(`Transition`,`TransitionCancel`),transitionend:Mr(`Transition`,`TransitionEnd`)},Pr={},Fr={};on&&(Fr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),`TransitionEvent`in window||delete Nr.transitionend.transition);function Ir(e){if(Pr[e])return Pr[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fr)return Pr[e]=t[n];return e}var Lr=Ir(`animationend`),Rr=Ir(`animationiteration`),zr=Ir(`animationstart`),Br=Ir(`transitionrun`),Vr=Ir(`transitionstart`),Hr=Ir(`transitioncancel`),Ur=Ir(`transitionend`),Wr=new Map,Gr=`abort auxClick beforeToggle 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(` `);Gr.push(`scrollEnd`);function Kr(e,t){Wr.set(e,t),bt(t,[e])}var qr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Jr=[],Yr=0,Xr=0;function Zr(){for(var e=Yr,t=Xr=Yr=0;t<e;){var n=Jr[t];Jr[t++]=null;var r=Jr[t];Jr[t++]=null;var i=Jr[t];Jr[t++]=null;var a=Jr[t];if(Jr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ti(n,i,a)}}function Qr(e,t,n,r){Jr[Yr++]=e,Jr[Yr++]=t,Jr[Yr++]=n,Jr[Yr++]=r,Xr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function $r(e,t,n,r){return Qr(e,t,n,r),ni(e)}function ei(e,t){return Qr(e,null,null,t),ni(e)}function ti(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Fe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ni(e){if(50<vu)throw vu=0,yu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ri={};function ii(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.refCleanup=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 ai(e,t,n,r){return new ii(e,t,n,r)}function oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var n=e.alternate;return n===null?(n=ai(e.tag,t,e.key,e.mode),n.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=e.flags&65011712,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ci(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function li(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)oi(e)&&(s=1);else if(typeof e==`string`)s=$f(e,n,ie.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ai(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return ui(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ai(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ai(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ai(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ai(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ui(e,t,n,r){return e=ai(7,e,r,t),e.lanes=n,e}function di(e,t,n){return e=ai(6,e,null,t),e.lanes=n,e}function fi(e){var t=ai(18,null,null,0);return t.stateNode=e,t}function pi(e,t,n){return t=ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mi=new WeakMap;function hi(e,t){if(typeof e==`object`&&e){var n=mi.get(e);return n===void 0?(t={value:e,source:t,stack:_e(t)},mi.set(e,t),t):n}return{value:e,source:t,stack:_e(t)}}var gi=[],_i=0,vi=null,yi=0,bi=[],xi=0,Si=null,Ci=1,wi=``;function Ti(e,t){gi[_i++]=yi,gi[_i++]=vi,vi=e,yi=t}function Ei(e,t,n){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Si=e;var r=Ci;e=wi;var i=32-Fe(r)-1;r&=~(1<<i),n+=1;var a=32-Fe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ci=1<<32-Fe(t)+i|n<<i|r,wi=a+e}else Ci=1<<a|n<<i|r,wi=e}function Di(e){e.return!==null&&(Ti(e,1),Ei(e,1,0))}function Oi(e){for(;e===vi;)vi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null;for(;e===Si;)Si=bi[--xi],bi[xi]=null,wi=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null}function ki(e,t){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Ci=t.id,wi=t.overflow,Si=e}var Ai=null,ji=null,Mi=!1,Ni=null,Pi=!1,Fi=Error(i(519));function Ii(e){throw Vi(hi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Fi}function Li(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[it]=e,t[at]=r,n){case`dialog`:Od(`cancel`,t),Od(`close`,t);break;case`iframe`:case`object`:case`embed`:Od(`load`,t);break;case`video`:case`audio`:for(n=0;n<Td.length;n++)Od(Td[n],t);break;case`source`:Od(`error`,t);break;case`img`:case`image`:case`link`:Od(`error`,t),Od(`load`,t);break;case`details`:Od(`toggle`,t);break;case`input`:Od(`invalid`,t),Rt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Od(`invalid`,t);break;case`textarea`:Od(`invalid`,t),Ht(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Vd(t.textContent,n)?(r.popover!=null&&(Od(`beforetoggle`,t),Od(`toggle`,t)),r.onScroll!=null&&Od(`scroll`,t),r.onScrollEnd!=null&&Od(`scrollend`,t),r.onClick!=null&&(t.onclick=Xt),t=!0):t=!1,t||Ii(e,!0)}function H(e){for(Ai=e.return;Ai;)switch(Ai.tag){case 5:case 31:case 13:Pi=!1;return;case 27:case 3:Pi=!0;return;default:Ai=Ai.return}}function Ri(e){if(e!==Ai)return!1;if(!Mi)return H(e),Mi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||$d(e.type,e.memoizedProps)),n=!n),n&&ji&&Ii(e),H(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=bf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=bf(e)}else t===27?(t=ji,cf(e.type)?(e=yf,yf=null,ji=e):ji=t):ji=Ai?vf(e.stateNode.nextSibling):null;return!0}function zi(){ji=Ai=null,Mi=!1}function Bi(){var e=Ni;return e!==null&&(iu===null?iu=e:iu.push.apply(iu,e),Ni=null),e}function Vi(e){Ni===null?Ni=[e]:Ni.push(e)}var Hi=R(null),Ui=null,Wi=null;function Gi(e,t,n){z(Hi,t._currentValue),t._currentValue=n}function Ki(e){e._currentValue=Hi.current,re(Hi)}function qi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ji(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),qi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),qi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Yi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;yr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===se.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[cp]:e.push(cp))}a=a.return}e!==null&&Ji(t,e,n,r),t.flags|=262144}function Xi(e){for(e=e.firstContext;e!==null;){if(!yr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Zi(e){Ui=e,Wi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qi(e){return ea(Ui,e)}function $i(e,t){return Ui===null&&Zi(e),ea(e,t)}function ea(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wi===null){if(e===null)throw Error(i(308));Wi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wi=Wi.next=t;return n}var ta=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},na=t.unstable_scheduleCallback,ra=t.unstable_NormalPriority,ia={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function aa(){return{controller:new ta,data:new Map,refCount:0}}function oa(e){e.refCount--,e.refCount===0&&na(ra,function(){e.controller.abort()})}var sa=null,ca=0,la=0,ua=null;function da(e,t){if(sa===null){var n=sa=[];ca=0,la=yd(),ua={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ca++,t.then(fa,fa),t}function fa(){if(--ca===0&&sa!==null){ua!==null&&(ua.status=`fulfilled`);var e=sa;sa=null,la=0,ua=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function pa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ma=F.S;F.S=function(e,t){su=Ce(),typeof t==`object`&&t&&typeof t.then==`function`&&da(e,t),ma!==null&&ma(e,t)};var ha=R(null);function ga(){var e=ha.current;return e===null?Hl.pooledCache:e}function _a(e,t){t===null?z(ha,ha.current):z(ha,t.pool)}function va(){var e=ga();return e===null?null:{parent:ia._currentValue,pool:e}}var ya=Error(i(460)),ba=Error(i(474)),xa=Error(i(542)),Sa={then:function(){}};function Ca(e){return e=e.status,e===`fulfilled`||e===`rejected`}function wa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xt,Xt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Oa(e),e;default:if(typeof t.status==`string`)t.then(Xt,Xt);else{if(e=Hl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Oa(e),e}throw Ea=t,ya}}function Ta(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ea=e,ya):e}}var Ea=null;function Da(){if(Ea===null)throw Error(i(459));var e=Ea;return Ea=null,e}function Oa(e){if(e===ya||e===xa)throw Error(i(483))}var ka=null,Aa=0;function ja(e){var t=Aa;return Aa+=1,ka===null&&(ka=[]),wa(ka,e,t)}function Ma(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Na(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Pa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=si(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=di(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Ta(i)===t.type)?(t=a(t,n.props),Ma(t,n),t.return=e,t):(t=li(n.type,n.key,n.props,null,e.mode,r),Ma(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=pi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ui(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=di(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=li(t.type,t.key,t.props,null,e.mode,n),Ma(n,t),n.return=e,n;case v:return t=pi(t,e.mode,n),t.return=e,t;case O:return t=Ta(t),f(e,t,n)}if(ee(t)||M(t))return t=ui(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ja(t),n);if(t.$$typeof===C)return f(e,$i(e,t),n);Na(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Ta(n),p(e,t,n,r)}if(ee(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ja(n),r);if(n.$$typeof===C)return p(e,t,$i(e,n),r);Na(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Ta(r),m(e,t,n,r,i)}if(ee(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ja(r),i);if(r.$$typeof===C)return m(e,t,n,$i(t,r),i);Na(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Mi&&Ti(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Mi&&Ti(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Mi&&Ti(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Mi&&Ti(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Mi&&Ti(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Mi&&Ti(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Ta(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ma(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=ui(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=li(o.type,o.key,o.props,null,e.mode,c),Ma(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=pi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Ta(o),b(e,r,o,c)}if(ee(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,ja(o),c);if(o.$$typeof===C)return b(e,r,$i(e,o),c);Na(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=di(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Aa=0;var i=b(e,t,n,r);return ka=null,i}catch(t){if(t===ya||t===xa)throw t;var a=ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Fa=Pa(!0),Ia=Pa(!1),La=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function za(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Va(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Vl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ni(e),ti(e,null,n),t}return Qr(e,r,t,n),ni(e)}function Ha(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ze(e,n)}}function Ua(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Wa=!1;function Ga(){if(Wa){var e=ua;if(e!==null)throw e}}function Ka(e,t,n,r){Wa=!1;var i=e.updateQueue;La=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Wl&f)===f:(r&f)===f){f!==0&&f===la&&(Wa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:La=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ql|=o,e.lanes=o,e.memoizedState=d}}function qa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ja(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qa(n[e],t)}var Ya=R(null),Xa=R(0);function Za(e,t){e=Xl,z(Xa,e),z(Ya,t),Xl=e|t.baseLanes}function Qa(){z(Xa,Xl),z(Ya,Ya.current)}function $a(){Xl=Xa.current,re(Ya),re(Xa)}var eo=R(null),to=null;function no(e){var t=e.alternate;z(so,so.current&1),z(eo,e),to===null&&(t===null||Ya.current!==null||t.memoizedState!==null)&&(to=e)}function ro(e){z(so,so.current),z(eo,e),to===null&&(to=e)}function io(e){e.tag===22?(z(so,so.current),z(eo,e),to===null&&(to=e)):ao(e)}function ao(){z(so,so.current),z(eo,eo.current)}function oo(e){re(eo),to===e&&(to=null),re(so)}var so=R(0);function co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||hf(n)||gf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lo=0,uo=null,fo=null,po=null,mo=!1,ho=!1,go=!1,_o=0,vo=0,yo=null,bo=0;function xo(){throw Error(i(321))}function So(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yr(e[n],t[n]))return!1;return!0}function Co(e,t,n,r,i,a){return lo=a,uo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e===null||e.memoizedState===null?zs:Bs,go=!1,a=n(r,i),go=!1,ho&&(a=To(t,n,r,i)),wo(e),a}function wo(e){F.H=Rs;var t=fo!==null&&fo.next!==null;if(lo=0,po=fo=uo=null,mo=!1,vo=0,yo=null,t)throw Error(i(300));e===null||rc||(e=e.dependencies,e!==null&&Xi(e)&&(rc=!0))}function To(e,t,n,r){uo=e;var a=0;do{if(ho&&(yo=null),vo=0,ho=!1,25<=a)throw Error(i(301));if(a+=1,po=fo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}F.H=Vs,o=t(n,r)}while(ho);return o}function Eo(){var e=F.H,t=e.useState()[0];return t=typeof t.then==`function`?No(t):t,e=e.useState()[0],(fo===null?null:fo.memoizedState)!==e&&(uo.flags|=1024),t}function Do(){var e=_o!==0;return _o=0,e}function Oo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ko(e){if(mo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mo=!1}lo=0,po=fo=uo=null,ho=!1,vo=_o=0,yo=null}function Ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return po===null?uo.memoizedState=po=e:po=po.next=e,po}function jo(){if(fo===null){var e=uo.alternate;e=e===null?null:e.memoizedState}else e=fo.next;var t=po===null?uo.memoizedState:po.next;if(t!==null)po=t,fo=e;else{if(e===null)throw uo.alternate===null?Error(i(467)):Error(i(310));fo=e,e={memoizedState:fo.memoizedState,baseState:fo.baseState,baseQueue:fo.baseQueue,queue:fo.queue,next:null},po===null?uo.memoizedState=po=e:po=po.next=e}return po}function Mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function No(e){var t=vo;return vo+=1,yo===null&&(yo=[]),e=wa(yo,e,t),t=uo,(po===null?t.memoizedState:po.next)===null&&(t=t.alternate,F.H=t===null||t.memoizedState===null?zs:Bs),e}function Po(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return No(e);if(e.$$typeof===C)return Qi(e)}throw Error(i(438,String(e)))}function Fo(e){var t=null,n=uo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=uo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??(t={data:[],index:0}),n===null&&(n=Mo(),uo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Io(e,t){return typeof t==`function`?t(e):t}function Lo(e){return Ro(jo(),fo,e)}function Ro(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(lo&f)===f:(Wl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===la&&(d=!0);else if((lo&p)===p){u=u.next,p===la&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,uo.lanes|=p,Ql|=p;f=u.action,go&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,uo.lanes|=f,Ql|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!yr(o,e.memoizedState)&&(rc=!0,d&&(n=ua,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zo(e){var t=jo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);yr(o,t.memoizedState)||(rc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Bo(e,t,n){var r=uo,a=jo(),o=Mi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!yr((fo||a).memoizedState,n);if(s&&(a.memoizedState=n,rc=!0),a=a.queue,ds(Uo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||po!==null&&po.memoizedState.tag&1){if(r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,a,n,t),null),Hl===null)throw Error(i(349));o||lo&127||Vo(r,t,n)}return n}function Vo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=uo.updateQueue,t===null?(t=Mo(),uo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ho(e,t,n,r){t.value=n,t.getSnapshot=r,Wo(t)&&Go(e)}function Uo(e,t,n){return n(function(){Wo(t)&&Go(e)})}function Wo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yr(e,n)}catch{return!0}}function Go(e){var t=ei(e,2);t!==null&&Su(t,e,2)}function Ko(e){var t=Ao();if(typeof e==`function`){var n=e;if(e=n(),go){Pe(!0);try{n()}finally{Pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:e},t}function qo(e,t,n,r){return e.baseState=n,Ro(e,fo,typeof r==`function`?r:Io)}function Jo(e,t,n,r,a){if(Fs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};F.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Yo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Yo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=F.T,o={};F.T=o;try{var s=n(i,r),c=F.S;c!==null&&c(o,s),Xo(e,t,s)}catch(n){Qo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),F.T=a}}else try{a=n(i,r),Xo(e,t,a)}catch(n){Qo(e,t,n)}}function Xo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Zo(e,t,n)},function(n){return Qo(e,t,n)}):Zo(e,t,n)}function Zo(e,t,n){t.status=`fulfilled`,t.value=n,$o(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yo(e,n)))}function Qo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,$o(t),t=t.next;while(t!==r)}e.action=null}function $o(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function es(e,t){return t}function ts(e,t){if(Mi){var n=Hl.formState;if(n!==null){a:{var r=uo;if(Mi){if(ji){b:{for(var i=ji,a=Pi;i.nodeType!==8;){if(!a){i=null;break b}if(i=vf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ji=vf(i.nextSibling),r=i.data===`F!`;break a}}Ii(r)}r=!1}r&&(t=n[0])}}return n=Ao(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:es,lastRenderedState:t},n.queue=r,n=Ms.bind(null,uo,r),r.dispatch=n,r=Ko(!1),a=Ps.bind(null,uo,!1,r.queue),r=Ao(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Jo.bind(null,uo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ns(e){return rs(jo(),fo,e)}function rs(e,t,n){if(t=Ro(e,t,es)[0],e=Lo(Io)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=No(t)}catch(e){throw e===ya?xa:e}else r=t;t=jo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(uo.flags|=2048,os(9,{destroy:void 0},is.bind(null,i,n),null)),[r,a,e]}function is(e,t){e.action=t}function as(e){var t=jo(),n=fo;if(n!==null)return rs(t,n,e);jo(),t=t.memoizedState,n=jo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function os(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=uo.updateQueue,t===null&&(t=Mo(),uo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ss(){return jo().memoizedState}function cs(e,t,n,r){var i=Ao();uo.flags|=e,i.memoizedState=os(1|t,{destroy:void 0},n,r===void 0?null:r)}function ls(e,t,n,r){var i=jo();r=r===void 0?null:r;var a=i.memoizedState.inst;fo!==null&&r!==null&&So(r,fo.memoizedState.deps)?i.memoizedState=os(t,a,n,r):(uo.flags|=e,i.memoizedState=os(1|t,a,n,r))}function us(e,t){cs(8390656,8,e,t)}function ds(e,t){ls(2048,8,e,t)}function fs(e){uo.flags|=4;var t=uo.updateQueue;if(t===null)t=Mo(),uo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ps(e){var t=jo().memoizedState;return fs({ref:t,nextImpl:e}),function(){if(Vl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ms(e,t){return ls(4,2,e,t)}function hs(e,t){return ls(4,4,e,t)}function gs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _s(e,t,n){n=n==null?null:n.concat([e]),ls(4,4,gs.bind(null,t,e),n)}function vs(){}function ys(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&So(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bs(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&So(t,r[1]))return r[0];if(r=e(),go){Pe(!0);try{e()}finally{Pe(!1)}}return n.memoizedState=[r,t],r}function U(e,t,n){return n===void 0||lo&1073741824&&!(Wl&261930)?e.memoizedState=t:(e.memoizedState=n,e=xu(),uo.lanes|=e,Ql|=e,n)}function xs(e,t,n,r){return yr(n,t)?n:Ya.current===null?!(lo&42)||lo&1073741824&&!(Wl&261930)?(rc=!0,e.memoizedState=n):(e=xu(),uo.lanes|=e,Ql|=e,t):(e=U(e,n,r),yr(e,t)||(rc=!0),e)}function Ss(e,t,n,r,i){var a=I.p;I.p=a!==0&&8>a?a:8;var o=F.T,s={};F.T=s,Ps(e,!1,t,n);try{var c=i(),l=F.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ns(e,t,pa(c,r),bu(e)):Ns(e,t,r,bu(e))}catch(n){Ns(e,t,{then:function(){},status:`rejected`,reason:n},bu())}finally{I.p=a,o!==null&&s.types!==null&&(o.types=s.types),F.T=o}}function Cs(){}function ws(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ts(e).queue;Ss(e,a,t,te,n===null?Cs:function(){return Es(e),n(r)})}function Ts(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Es(e){var t=Ts(e);t.next===null&&(t=e.alternate.memoizedState),Ns(e,t.next.queue,{},bu())}function Ds(){return Qi(cp)}function Os(){return jo().memoizedState}function ks(){return jo().memoizedState}function As(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=bu();e=Ba(n);var r=Va(t,e,n);r!==null&&(Su(r,t,n),Ha(r,t,n)),t={cache:aa()},e.payload=t;return}t=t.return}}function js(e,t,n){var r=bu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fs(e)?Is(t,n):(n=$r(e,t,n,r),n!==null&&(Su(n,e,r),Ls(n,t,r)))}function Ms(e,t,n){Ns(e,t,n,bu())}function Ns(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))Is(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,yr(s,o))return Qr(e,t,i,0),Hl===null&&Zr(),!1}catch{}if(n=$r(e,t,i,r),n!==null)return Su(n,e,r),Ls(n,t,r),!0}return!1}function Ps(e,t,n,r){if(r={lane:2,revertLane:yd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Fs(e)){if(t)throw Error(i(479))}else t=$r(e,n,r,2),t!==null&&Su(t,e,2)}function Fs(e){var t=e.alternate;return e===uo||t!==null&&t===uo}function Is(e,t){ho=mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ls(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ze(e,n)}}var Rs={readContext:Qi,use:Po,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useLayoutEffect:xo,useInsertionEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useSyncExternalStore:xo,useId:xo,useHostTransitionStatus:xo,useFormState:xo,useActionState:xo,useOptimistic:xo,useMemoCache:xo,useCacheRefresh:xo};Rs.useEffectEvent=xo;var zs={readContext:Qi,use:Po,useCallback:function(e,t){return Ao().memoizedState=[e,t===void 0?null:t],e},useContext:Qi,useEffect:us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),cs(4194308,4,gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){cs(4,2,e,t)},useMemo:function(e,t){var n=Ao();t=t===void 0?null:t;var r=e();if(go){Pe(!0);try{e()}finally{Pe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ao();if(n!==void 0){var i=n(t);if(go){Pe(!0);try{n(t)}finally{Pe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=js.bind(null,uo,e),[r.memoizedState,e]},useRef:function(e){var t=Ao();return e={current:e},t.memoizedState=e},useState:function(e){e=Ko(e);var t=e.queue,n=Ms.bind(null,uo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vs,useDeferredValue:function(e,t){return U(Ao(),e,t)},useTransition:function(){var e=Ko(!1);return e=Ss.bind(null,uo,e.queue,!0,!1),Ao().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=uo,a=Ao();if(Mi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Hl===null)throw Error(i(349));Wl&127||Vo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,us(Uo.bind(null,r,o,e),[e]),r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,o,n,t),null),n},useId:function(){var e=Ao(),t=Hl.identifierPrefix;if(Mi){var n=wi,r=Ci;n=(r&~(1<<32-Fe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=_o++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=bo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ds,useFormState:ts,useActionState:ts,useOptimistic:function(e){var t=Ao();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ps.bind(null,uo,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fo,useCacheRefresh:function(){return Ao().memoizedState=As.bind(null,uo)},useEffectEvent:function(e){var t=Ao(),n={impl:e};return t.memoizedState=n,function(){if(Vl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Bs={readContext:Qi,use:Po,useCallback:ys,useContext:Qi,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Lo,useRef:ss,useState:function(){return Lo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){return xs(jo(),fo.memoizedState,e,t)},useTransition:function(){var e=Lo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:Os,useHostTransitionStatus:Ds,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){return qo(jo(),fo,e,t)},useMemoCache:Fo,useCacheRefresh:ks};Bs.useEffectEvent=ps;var Vs={readContext:Qi,use:Po,useCallback:ys,useContext:Qi,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:zo,useRef:ss,useState:function(){return zo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){var n=jo();return fo===null?U(n,e,t):xs(n,fo.memoizedState,e,t)},useTransition:function(){var e=zo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:Os,useHostTransitionStatus:Ds,useFormState:as,useActionState:as,useOptimistic:function(e,t){var n=jo();return fo===null?(n.baseState=e,[e,n.queue.dispatch]):qo(n,fo,e,t)},useMemoCache:Fo,useCacheRefresh:ks};Vs.useEffectEvent=ps;function Hs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Us={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=bu(),i=Ba(r);i.payload=t,n!=null&&(i.callback=n),t=Va(e,i,r),t!==null&&(Su(t,e,r),Ha(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=bu(),i=Ba(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Va(e,i,r),t!==null&&(Su(t,e,r),Ha(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=bu(),r=Ba(n);r.tag=2,t!=null&&(r.callback=t),t=Va(e,r,n),t!==null&&(Su(t,e,n),Ha(t,e,n))}};function Ws(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!br(n,r)||!br(i,a):!0}function Gs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Us.enqueueReplaceState(t,t.state,null)}function Ks(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function qs(e){qr(e)}function Js(e){console.error(e)}function Ys(e){qr(e)}function Xs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Zs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){return n=Ba(n),n.tag=3,n.payload={element:null},n.callback=function(){Xs(e,t)},n}function $s(e){return e=Ba(e),e.tag=3,e}function ec(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Zs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Zs(t,n,r),typeof i!=`function`&&(uu===null?uu=new Set([this]):uu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function tc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Yi(t,n,a,!0),n=eo.current,n!==null){switch(n.tag){case 31:case 13:return to===null?Pu():n.alternate===null&&Zl===0&&(Zl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Sa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),$u(e,r,a)),!1;case 22:return n.flags|=65536,r===Sa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),$u(e,r,a)),!1}throw Error(i(435,n.tag))}return $u(e,r,a),Pu(),!1}if(Mi)return t=eo.current,t===null?(r!==Fi&&(t=Error(i(423),{cause:r}),Vi(hi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=hi(r,n),a=Qs(e.stateNode,r,a),Ua(e,a),Zl!==4&&(Zl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Fi&&(e=Error(i(422),{cause:r}),Vi(hi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=hi(o,n),ru===null?ru=[o]:ru.push(o),Zl!==4&&(Zl=2),t===null)return!0;r=hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Qs(n.stateNode,r,e),Ua(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(uu===null||!uu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=$s(a),ec(a,e,n,r),Ua(n,a),!1}n=n.return}while(n!==null);return!1}var nc=Error(i(461)),rc=!1;function ic(e,t,n,r){t.child=e===null?Ia(t,null,n,r):Fa(t,e.child,n,r)}function ac(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Zi(t),r=Co(e,t,n,o,a,i),s=Do(),e!==null&&!rc?(Oo(e,t,i),kc(e,t,i)):(Mi&&s&&Di(t),t.flags|=1,ic(e,t,r,i),t.child)}function oc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!oi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,sc(e,t,a,r,i)):(e=li(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ac(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return kc(e,t,i)}return t.flags|=1,e=si(a,r),e.ref=t.ref,e.return=t,t.child=e}function sc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref){if(rc=!1,t.pendingProps=r=a,Ac(e,i))e.flags&131072&&(rc=!0);else return t.lanes=e.lanes,kc(e,t,i)}}return hc(e,t,n,r,i)}function cc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return uc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_a(t,a===null?null:a.cachePool),a===null?Qa():Za(t,a),io(t);else return r=t.lanes=536870912,uc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&_a(t,null),Qa(),ao(t)):(_a(t,a.cachePool),Za(t,a),ao(t),t.memoizedState=null);return ic(e,t,i,n),t.child}function lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uc(e,t,n,r,i){var a=ga();return a=a===null?null:{parent:ia._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&_a(t,null),Qa(),io(t),e!==null&&Yi(e,t,r,!0),t.childLanes=i,null}function dc(e,t){return t=wc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fc(e,t,n){return Fa(t,e.child,null,n),e=dc(t,t.pendingProps),e.flags|=2,oo(t),t.memoizedState=null,e}function pc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Mi){if(r.mode===`hidden`)return e=dc(t,r),t.lanes=536870912,lc(null,e);if(ro(t),(e=ji)?(e=mf(e,Pi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return t.lanes=536870912,null}return dc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ro(t),a){if(t.flags&256)t.flags&=-257,t=fc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(rc||Yi(e,t,n,!1),a=(n&e.childLanes)!==0,rc||a){if(r=Hl,r!==null&&(s=Qe(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ei(e,s),Su(r,e,s),nc;Pu(),t=fc(e,t,n)}else e=o.treeContext,ji=vf(s.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=dc(t,r),t.flags|=4096;return t}return e=si(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function mc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function hc(e,t,n,r,i){return Zi(t),n=Co(e,t,n,r,void 0,i),r=Do(),e!==null&&!rc?(Oo(e,t,i),kc(e,t,i)):(Mi&&r&&Di(t),t.flags|=1,ic(e,t,n,i),t.child)}function gc(e,t,n,r,i,a){return Zi(t),t.updateQueue=null,n=To(t,r,n,i),wo(e),r=Do(),e!==null&&!rc?(Oo(e,t,a),kc(e,t,a)):(Mi&&r&&Di(t),t.flags|=1,ic(e,t,n,a),t.child)}function _c(e,t,n,r,i){if(Zi(t),t.stateNode===null){var a=ri,o=n.contextType;typeof o==`object`&&o&&(a=Qi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Us,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ra(t),o=n.contextType,a.context=typeof o==`object`&&o?Qi(o):ri,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Hs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Us.enqueueReplaceState(a,a.state,null),Ka(t,r,a,i),Ga(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ks(n,s);a.props=c;var l=a.context,u=n.contextType;o=ri,typeof u==`object`&&u&&(o=Qi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Gs(t,a,r,o),La=!1;var f=t.memoizedState;a.state=f,Ka(t,r,a,i),Ga(),l=t.memoizedState,s||f!==l||La?(typeof d==`function`&&(Hs(t,n,d,r),l=t.memoizedState),(c=La||Ws(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,za(e,t),o=t.memoizedProps,u=Ks(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ri,typeof l==`object`&&l&&(c=Qi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Gs(t,a,r,c),La=!1,f=t.memoizedState,a.state=f,Ka(t,r,a,i),Ga();var p=t.memoizedState;o!==d||f!==p||La||e!==null&&e.dependencies!==null&&Xi(e.dependencies)?(typeof s==`function`&&(Hs(t,n,s,r),p=t.memoizedState),(u=La||Ws(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Xi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,mc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Fa(t,e.child,null,i),t.child=Fa(t,null,n,i)):ic(e,t,n,i),t.memoizedState=a.state,e=t.child):e=kc(e,t,i),e}function vc(e,t,n,r){return zi(),t.flags|=256,ic(e,t,n,r),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bc(e){return{baseLanes:e,cachePool:va()}}function xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=tu),e}function Sc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(so.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(Mi){if(a?no(t):ao(t),(e=ji)?(e=mf(e,Pi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return gf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(ao(t),a=t.mode,c=wc({mode:`hidden`,children:c},a),r=ui(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(null,r)):(no(t),Cc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(no(t),t.flags&=-257,t=Tc(e,t,n)):t.memoizedState===null?(ao(t),c=r.fallback,a=t.mode,r=wc({mode:`visible`,children:r.children},a),c=ui(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Fa(t,e.child,null,n),r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,t=lc(null,r)):(ao(t),t.child=e.child,t.flags|=128,t=null);else if(no(t),gf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Vi({value:r,source:null,stack:null}),t=Tc(e,t,n)}else if(rc||Yi(e,t,n,!1),s=(n&e.childLanes)!==0,rc||s){if(s=Hl,s!==null&&(r=Qe(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ei(e,r),Su(s,e,r),nc;hf(c)||Pu(),t=Tc(e,t,n)}else hf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ji=vf(c.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=Cc(t,r.children),t.flags|=4096);return t}return a?(ao(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=si(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ui(c,a,n,null),c.flags|=2):c=si(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,lc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=bc(n):(a=c.cachePool,a===null?a=va():(l=ia._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(e.child,r)):(no(t),n=e.child,e=n.sibling,n=si(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Cc(e,t){return t=wc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function wc(e,t){return e=ai(22,e,null,t),e.lanes=0,e}function Tc(e,t,n){return Fa(t,e.child,null,n),e=Cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qi(e.return,t,n)}function Dc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Oc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=so.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,z(so,o),ic(e,t,r,n),r=Mi?yi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ec(e,n,t);else if(e.tag===19)Ec(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&co(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Dc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&co(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Dc(t,!0,n,null,a,r);break;case`together`:Dc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function kc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ql|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Yi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=si(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=si(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Xi(e)))}function jc(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),Gi(t,ia,e.memoizedState.cache),zi();break;case 27:case 5:ue(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:Gi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ro(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(no(t),e=kc(e,t,n),e===null?null:e.sibling):Sc(e,t,n):(no(t),t.flags|=128,null);no(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||(Yi(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return Oc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),z(so,so.current),r)break;return null;case 22:return t.lanes=0,cc(e,t,n,t.pendingProps);case 24:Gi(t,ia,e.memoizedState.cache)}return kc(e,t,n)}function Mc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)rc=!0;else{if(!Ac(e,n)&&!(t.flags&128))return rc=!1,jc(e,t,n);rc=!!(e.flags&131072)}}else rc=!1,Mi&&t.flags&1048576&&Ei(t,yi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ta(t.elementType),t.type=e,typeof e==`function`)oi(e)?(r=Ks(e,r),t.tag=1,t=_c(null,t,e,r,n)):(t.tag=0,t=hc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=ac(null,t,e,r,n);break a}if(a===D){t.tag=14,t=oc(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return hc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ks(r,t.pendingProps),_c(e,t,r,a,n);case 3:a:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,za(e,t),Ka(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Gi(t,ia,r),r!==o.cache&&Ji(t,[ia],n,!0),Ga(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=vc(e,t,r,n);break a}if(r!==a){a=hi(Error(i(424)),t),Vi(a),t=vc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ji=vf(e.firstChild),Ai=t,Mi=!0,Ni=null,Pi=!0,n=Ia(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(zi(),r===a){t=kc(e,t,n);break a}ic(e,t,r,n)}t=t.child}return t;case 26:return mc(e,t),e===null?(n=zf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Mi||(n=t.type,e=t.pendingProps,r=Xd(oe.current).createElement(n),r[it]=t,r[at]=e,Wd(r,n,e),_t(r),t.stateNode=r):t.memoizedState=zf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ue(t),e===null&&Mi&&(r=t.stateNode=Sf(t.type,t.pendingProps,oe.current),Ai=t,Pi=!0,a=ji,cf(t.type)?(yf=a,ji=vf(r.firstChild)):ji=a),ic(e,t,t.pendingProps.children,n),mc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Mi&&((a=r=ji)&&(r=ff(r,t.type,t.pendingProps,Pi),r===null?a=!1:(t.stateNode=r,Ai=t,ji=vf(r.firstChild),Pi=!1,a=!0)),a||Ii(t)),ue(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,$d(a,o)?r=null:s!==null&&$d(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Co(e,t,Eo,null,null,n),cp._currentValue=a),mc(e,t),ic(e,t,r,n),t.child;case 6:return e===null&&Mi&&((e=n=ji)&&(n=pf(n,t.pendingProps,Pi),n===null?e=!1:(t.stateNode=n,Ai=t,ji=null,e=!0)),e||Ii(t)),null;case 13:return Sc(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fa(t,null,r,n):ic(e,t,r,n),t.child;case 11:return ac(e,t,t.type,t.pendingProps,n);case 7:return ic(e,t,t.pendingProps,n),t.child;case 8:return ic(e,t,t.pendingProps.children,n),t.child;case 12:return ic(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Gi(t,t.type,r.value),ic(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Zi(t),a=Qi(a),r=r(a),t.flags|=1,ic(e,t,r,n),t.child;case 14:return oc(e,t,t.type,t.pendingProps,n);case 15:return sc(e,t,t.type,t.pendingProps,n);case 19:return Oc(e,t,n);case 31:return pc(e,t,n);case 22:return cc(e,t,n,t.pendingProps);case 24:return Zi(t),r=Qi(ia),e===null?(a=ga(),a===null&&(a=Hl,o=aa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ra(t),Gi(t,ia,a)):((e.lanes&n)!==0&&(za(e,t),Ka(t,null,null,n),Ga()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Gi(t,ia,r),r!==a.cache&&Ji(t,[ia],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Gi(t,ia,r))),ic(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Nc(e){e.flags|=4}function Pc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(ju())e.flags|=8192;else throw Ea=Sa,ba}}else e.flags&=-16777217}function Fc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ep(t)){if(ju())e.flags|=8192;else throw Ea=Sa,ba}}function Ic(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ke(),e.lanes|=t,nu|=t)}function Lc(e,t){if(!Mi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)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 zc(e,t,n){var r=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rc(t),null;case 1:return Rc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ki(ia),le(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?Nc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bi())),Rc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Nc(t),o===null?(Rc(t),Pc(t,a,null,r,n)):(Rc(t),Fc(t,o))):o?o===e.memoizedState?(Rc(t),t.flags&=-16777217):(Nc(t),Rc(t),Fc(t,o)):(e=e.memoizedProps,e!==r&&Nc(t),Rc(t),Pc(t,a,e,r,n)),null;case 27:if(B(t),n=oe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}e=ie.current,Ri(t)?Li(t,e):(e=Sf(a,r,n),t.stateNode=e,Nc(t))}return Rc(t),null;case 5:if(B(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}if(o=ie.current,Ri(t))Li(t,o);else{var s=Xd(oe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[it]=t,o[at]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Wd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Nc(t)}}return Rc(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=oe.current,Ri(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ai,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[it]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Vd(e.nodeValue,n)),e||Ii(t,!0)}else e=Xd(e).createTextNode(r),e[it]=t,t.stateNode=e}return Rc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ri(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[it]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),e=!1}else n=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(oo(t),t):(oo(t),null);if(t.flags&128)throw Error(i(558))}return Rc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[it]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),a=!1}else a=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(oo(t),t):(oo(t),null)}return oo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ic(t,t.updateQueue),Rc(t),null);case 4:return le(),e===null&&jd(t.stateNode.containerInfo),Rc(t),null;case 10:return Ki(t.type),Rc(t),null;case 19:if(re(so),r=t.memoizedState,r===null)return Rc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Lc(r,!1);else{if(Zl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=co(e),o!==null){for(t.flags|=128,Lc(r,!1),e=o.updateQueue,t.updateQueue=e,Ic(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ci(n,e),n=n.sibling;return z(so,so.current&1|2),Mi&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ce()>cu&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=co(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ic(t,e),Lc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Mi)return Rc(t),null}else 2*Ce()-r.renderingStartTime>cu&&n!==536870912&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Rc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ce(),e.sibling=null,n=so.current,z(so,a?n&1|2:n&1),Mi&&Ti(t,r.treeForkCount),e);case 22:case 23:return oo(t),$a(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Rc(t),t.subtreeFlags&6&&(t.flags|=8192)):Rc(t),n=t.updateQueue,n!==null&&Ic(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&re(ha),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ki(ia),Rc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Bc(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ki(ia),le(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return B(t),null;case 31:if(t.memoizedState!==null){if(oo(t),t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(oo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(so),null;case 4:return le(),null;case 10:return Ki(t.type),null;case 22:case 23:return oo(t),$a(),e!==null&&re(ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ki(ia),null;case 25:return null;default:return null}}function Vc(e,t){switch(Oi(t),t.tag){case 3:Ki(ia),le();break;case 26:case 27:case 5:B(t);break;case 4:le();break;case 31:t.memoizedState!==null&&oo(t);break;case 13:oo(t);break;case 19:re(so);break;case 10:Ki(t.type);break;case 22:case 23:oo(t),$a(),e!==null&&re(ha);break;case 24:Ki(ia)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Qu(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Qu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Qu(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ja(t,n)}catch(t){Qu(e,e.return,t)}}}function Gc(e,t,n){n.props=Ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Qu(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Qu(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Qu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Qu(e,t,n)}else n.current=null}}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Qu(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Gd(r,e.type,n,t),r[at]=t}catch(t){Qu(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cf(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&cf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xt));else if(r!==4&&(r===27&&cf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&cf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Wd(t,r,n),t[it]=e,t[at]=n}catch(t){Qu(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,Jd=_p,e=wr(e),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yd={focusedElem:e,selectionRange:n},_p=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ks(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Qu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)df(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:df(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,al=e;break}al=t.return}}function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Sl(e,n),r&4&&Hc(5,n);break;case 1:if(Sl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Qu(n,n.return,e)}else{var i=Ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Qu(n,n.return,e)}}}r&64&&Wc(n),r&512&&Kc(n,n.return);break;case 3:if(Sl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ja(e,t)}catch(e){Qu(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:Sl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:Sl(e,n);break;case 31:Sl(e,n),r&4&&pl(e,n);break;case 13:Sl(e,n),r&4&&ml(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=nd.bind(null,n),_f(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||nl,i=tl;var a=nl;tl=r,(nl=t)&&!a?wl(e,n,!!(n.subtreeFlags&8772)):Sl(e,n),tl=i,nl=a}break;case 30:break;default:Sl(e,n)}}function cl(e){var t=e.alternate;t!==null&&(e.alternate=null,cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ft(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ll=null,ul=!1;function dl(e,t,n){for(n=n.child;n!==null;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(Ne&&typeof Ne.onCommitFiberUnmount==`function`)try{Ne.onCommitFiberUnmount(Me,n)}catch{}switch(n.tag){case 26:nl||qc(n,t),dl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nl||qc(n,t);var r=ll,i=ul;cf(n.type)&&(ll=n.stateNode,ul=!1),dl(e,t,n),Cf(n.stateNode),ll=r,ul=i;break;case 5:nl||qc(n,t);case 6:if(r=ll,i=ul,ll=null,dl(e,t,n),ll=r,ul=i,ll!==null){if(ul)try{(ll.nodeType===9?ll.body:ll.nodeName===`HTML`?ll.ownerDocument.body:ll).removeChild(n.stateNode)}catch(e){Qu(n,t,e)}else try{ll.removeChild(n.stateNode)}catch(e){Qu(n,t,e)}}break;case 18:ll!==null&&(ul?(e=ll,lf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hp(e)):lf(ll,n.stateNode));break;case 4:r=ll,i=ul,ll=n.stateNode.containerInfo,ul=!0,dl(e,t,n),ll=r,ul=i;break;case 0:case 11:case 14:case 15:Uc(2,n,t),nl||Uc(4,n,t),dl(e,t,n);break;case 1:nl||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:nl=(r=nl)||n.memoizedState!==null,dl(e,t,n),nl=r;break;default:dl(e,t,n)}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hp(e)}catch(e){Qu(t,t.return,e)}}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hp(e)}catch(e){Qu(t,t.return,e)}}function hl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new il),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new il),t;default:throw Error(i(435,e.tag))}}function gl(e,t){var n=hl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=rd.bind(null,e,t);t.then(r,r)}})}function _l(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(cf(c.type)){ll=c.stateNode,ul=!1;break a}break;case 5:ll=c.stateNode,ul=!1;break a;case 3:case 4:ll=c.stateNode.containerInfo,ul=!0;break a}c=c.return}if(ll===null)throw Error(i(160));fl(o,s,a),ll=null,ul=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yl(t,e),t=t.sibling}var vl=null;function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_l(t,e),bl(e),r&4&&(Uc(3,e,e.return),Hc(3,e),Uc(5,e,e.return));break;case 1:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&64&&tl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=vl;if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[dt]||o[it]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head >
9 title`))),Wd(o,r,n),o[it]=e,_t(o),r=o;break a;case`link`:var s=Zf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Wd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Zf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Wd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[it]=e,_t(o),r=o}e.stateNode=r}else Qf(a,e.type,e.stateNode)}else e.stateNode=Kf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Qf(a,e.type,e.stateNode):Kf(a,r,e.memoizedProps))}break;case 27:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),e.flags&32){a=e.stateNode;try{Ut(a,``)}catch(t){Qu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Yc(e,a,n===null?a:n.memoizedProps)),r&1024&&(rl=!0);break;case 6:if(_l(t,e),bl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Qu(e,e.return,t)}}break;case 3:if(Xf=null,a=vl,vl=Ef(t.containerInfo),_l(t,e),vl=a,bl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hp(t.containerInfo)}catch(t){Qu(e,e.return,t)}rl&&(rl=!1,xl(e));break;case 4:r=vl,vl=Ef(e.stateNode.containerInfo),_l(t,e),bl(e),vl=r;break;case 12:_l(t,e),bl(e);break;case 31:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 13:_l(t,e),bl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ou=Ce()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=nl;if(tl=u||a,nl=d||l,_l(t,e),nl=d,tl=u,bl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||tl||nl||Cl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Qu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Qu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?uf(m,!0):uf(l.stateNode,!1)}catch(e){Qu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,gl(e,n))));break;case 19:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 30:break;case 21:break;default:_l(t,e),bl(e)}}function bl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;$c(e,Zc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ut(o,``),n.flags&=-33),$c(e,Zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(i(161))}}catch(t){Qu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sl(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uc(4,t,t.return),Cl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),Cl(t);break;case 27:Cf(t.stateNode);case 26:case 5:qc(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function wl(e,t,n){for(n=n&&!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:wl(i,a,n),Hc(4,a);break;case 1:if(wl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Qu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;
vendor: 29,035 bytes, lines 9-10
9if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)qa(c[i],s)}catch(e){Qu(r,r.return,e)}}n&&o&64&&Wc(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:wl(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:wl(i,a,n);break;case 31:wl(i,a,n),n&&o&4&&pl(i,a);break;case 13:wl(i,a,n),n&&o&4&&ml(i,a);break;case 22:a.memoizedState===null&&wl(i,a,n),Kc(a,a.return);break;case 30:break;default:wl(i,a,n)}t=t.sibling}}function Tl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&oa(n))}function El(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&oa(e))}function Dl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ol(e,t,n,r),t=t.sibling}function Ol(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Dl(e,t,n,r),i&2048&&Hc(9,t);break;case 1:Dl(e,t,n,r);break;case 3:Dl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&oa(e)));break;case 12:if(i&2048){Dl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Qu(t,t.return,e)}}else Dl(e,t,n,r);break;case 31:Dl(e,t,n,r);break;case 13:Dl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Dl(e,t,n,r):(a._visibility|=2,kl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Dl(e,t,n,r):Al(e,t),i&2048&&Tl(o,t);break;case 24:Dl(e,t,n,r),i&2048&&El(t.alternate,t);break;default:Dl(e,t,n,r)}}function kl(e,t,n,r,i){for(i=i&&(!!(t.subtreeFlags&10256)||!1),t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:kl(a,o,s,c,i),Hc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,kl(a,o,s,c,i)):u._visibility&2?kl(a,o,s,c,i):Al(a,o),i&&l&2048&&Tl(o.alternate,o);break;case 24:kl(a,o,s,c,i),i&&l&2048&&El(o.alternate,o);break;default:kl(a,o,s,c,i)}t=t.sibling}}function Al(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Al(n,r),i&2048&&Tl(r.alternate,r);break;case 24:Al(n,r),i&2048&&El(r.alternate,r);break;default:Al(n,r)}t=t.sibling}}var jl=8192;function Ml(e,t,n){if(e.subtreeFlags&jl)for(e=e.child;e!==null;)Nl(e,t,n),e=e.sibling}function Nl(e,t,n){switch(e.tag){case 26:Ml(e,t,n),e.flags&jl&&e.memoizedState!==null&&tp(n,vl,e.memoizedState,e.memoizedProps);break;case 5:Ml(e,t,n);break;case 3:case 4:var r=vl;vl=Ef(e.stateNode.containerInfo),Ml(e,t,n),vl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=jl,jl=16777216,Ml(e,t,n),jl=r):Ml(e,t,n));break;default:Ml(e,t,n)}}function Pl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Rl(r,e)}Pl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Il(e),e=e.sibling}function Il(e){switch(e.tag){case 0:case 11:case 15:Fl(e),e.flags&2048&&Uc(9,e,e.return);break;case 3:Fl(e);break;case 12:Fl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ll(e)):Fl(e);break;default:Fl(e)}}function Ll(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Rl(r,e)}Pl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Uc(8,t,t.return),Ll(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ll(t));break;default:Ll(t)}e=e.sibling}}function Rl(e,t){for(;al!==null;){var n=al;switch(n.tag){case 0:case 11:case 15:Uc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:oa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,al=r;else a:for(n=e;al!==null;){r=al;var i=r.sibling,a=r.return;if(cl(r),r===n){al=null;break a}if(i!==null){i.return=a,al=i;break a}al=a}}}var zl={getCacheForType:function(e){var t=Qi(ia),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Qi(ia).controller.signal}},Bl=typeof WeakMap==`function`?WeakMap:Map,Vl=0,Hl=null,Ul=null,Wl=0,Gl=0,Kl=null,ql=!1,Jl=!1,Yl=!1,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=0,nu=0,ru=null,iu=null,au=!1,ou=0,su=0,cu=1/0,lu=null,uu=null,du=0,fu=null,pu=null,mu=0,hu=0,gu=null,_u=null,vu=0,yu=null;function bu(){return Vl&2&&Wl!==0?Wl&-Wl:F.T===null?tt():yd()}function xu(){if(tu===0){if(!(Wl&536870912)||Mi){var e=Be;Be<<=1,!(Be&3932160)&&(Be=262144),tu=e}else tu=536870912}return e=eo.current,e!==null&&(e.flags|=32),tu}function Su(e,t,n){(e===Hl&&(Gl===2||Gl===9)||e.cancelPendingCommit!==null)&&(ku(e,0),Eu(e,Wl,tu,!1)),Je(e,n),(!(Vl&2)||e!==Hl)&&(e===Hl&&(!(Vl&2)&&($l|=n),Zl===4&&Eu(e,Wl,tu,!1)),dd(e))}function Cu(e,t,n){if(Vl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||We(e,t),a=r?Lu(e,t):Fu(e,t,!0),o=r;do{if(a===0){Jl&&!r&&Eu(e,t,0,!1);break}if(n=e.current.alternate,o&&!Tu(n)){a=Fu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=ru;var l=c.current.memoizedState.isDehydrated;if(l&&(ku(c,s).flags|=256),s=Fu(c,s,!1),s!==2){if(Yl&&!l){c.errorRecoveryDisabledLanes|=o,$l|=o,a=4;break a}o=iu,iu=a,o!==null&&(iu===null?iu=o:iu.push.apply(iu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){ku(e,0),Eu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Eu(r,t,tu,!ql);break a;case 2:iu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=ou+300-Ce(),10<a)){if(Eu(r,t,tu,!ql),Ue(r,0,!0)!==0)break a;mu=t,r.timeoutHandle=nf(wu.bind(null,r,n,iu,lu,au,t,tu,$l,nu,ql,o,`Throttled`,-0,0),a);break a}wu(r,n,iu,lu,au,t,tu,$l,nu,ql,o,null,-0,0)}break}while(1);dd(e)}function wu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xt},Nl(t,a,d);var m=(a&62914560)===a?ou-Ce():(a&4194048)===a?su-Ce():0;if(m=rp(d,m),m!==null){mu=a,e.cancelPendingCommit=m(Wu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Eu(e,a,o,!l);return}}Wu(e,t,a,n,r,i,o,s,c)}function Tu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!yr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Eu(e,t,n,r){t&=~eu,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Fe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Xe(e,n,t)}function Du(){return Vl&6?!0:(fd(0,!1),!1)}function Ou(){if(Ul!==null){if(Gl===0)var e=Ul.return;else e=Ul,Wi=Ui=null,ko(e),ka=null,Aa=0,e=Ul;for(;e!==null;)Vc(e.alternate,e),e=e.return;Ul=null}}function ku(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,rf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),mu=0,Ou(),Hl=e,Ul=n=si(e.current,null),Wl=t,Gl=0,Kl=null,ql=!1,Jl=We(e,t),Yl=!1,nu=tu=eu=$l=Ql=Zl=0,iu=ru=null,au=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Fe(r),a=1<<i;t|=e[i],r&=~a}return Xl=t,Zr(),n}function Au(e,t){uo=null,F.H=Rs,t===ya||t===xa?(t=Da(),Gl=3):t===ba?(t=Da(),Gl=4):Gl=t===nc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Kl=t,Ul===null&&(Zl=1,Xs(e,hi(t,e.current)))}function ju(){var e=eo.current;return e===null?!0:(Wl&4194048)===Wl?to===null:(Wl&62914560)===Wl||Wl&536870912?e===to:!1}function Mu(){var e=F.H;return F.H=Rs,e===null?Rs:e}function Nu(){var e=F.A;return F.A=zl,e}function Pu(){Zl=4,ql||(Wl&4194048)!==Wl&&eo.current!==null||(Jl=!0),!(Ql&134217727)&&!($l&134217727)||Hl===null||Eu(Hl,Wl,tu,!1)}function Fu(e,t,n){var r=Vl;Vl|=2;var i=Mu(),a=Nu();(Hl!==e||Wl!==t)&&(lu=null,ku(e,t)),t=!1;var o=Zl;a:do try{if(Gl!==0&&Ul!==null){var s=Ul,c=Kl;switch(Gl){case 8:Ou(),o=6;break a;case 3:case 2:case 9:case 6:eo.current===null&&(t=!0);var l=Gl;if(Gl=0,Kl=null,Vu(e,s,c,l),n&&Jl){o=0;break a}break;default:l=Gl,Gl=0,Kl=null,Vu(e,s,c,l)}}Iu(),o=Zl;break}catch(t){Au(e,t)}while(1);return t&&e.shellSuspendCounter++,Wi=Ui=null,Vl=r,F.H=i,F.A=a,Ul===null&&(Hl=null,Wl=0,Zr()),o}function Iu(){for(;Ul!==null;)zu(Ul)}function Lu(e,t){var n=Vl;Vl|=2;var r=Mu(),a=Nu();Hl!==e||Wl!==t?(lu=null,cu=Ce()+500,ku(e,t)):Jl=We(e,t);a:do try{if(Gl!==0&&Ul!==null){t=Ul;var o=Kl;b:switch(Gl){case 1:Gl=0,Kl=null,Vu(e,t,o,1);break;case 2:case 9:if(Ca(o)){Gl=0,Kl=null,Bu(t);break}t=function(){Gl!==2&&Gl!==9||Hl!==e||(Gl=7),dd(e)},o.then(t,t);break a;case 3:Gl=7;break a;case 4:Gl=5;break a;case 7:Ca(o)?(Gl=0,Kl=null,Bu(t)):(Gl=0,Kl=null,Vu(e,t,o,7));break;case 5:var s=null;switch(Ul.tag){case 26:s=Ul.memoizedState;case 5:case 27:var c=Ul;if(s?ep(s):c.stateNode.complete){Gl=0,Kl=null;var l=c.sibling;if(l!==null)Ul=l;else{var u=c.return;u===null?Ul=null:(Ul=u,Hu(u))}break b}}Gl=0,Kl=null,Vu(e,t,o,5);break;case 6:Gl=0,Kl=null,Vu(e,t,o,6);break;case 8:Ou(),Zl=6;break a;default:throw Error(i(462))}}Ru();break}catch(t){Au(e,t)}while(1);return Wi=Ui=null,F.H=r,F.A=a,Vl=n,Ul===null?(Hl=null,Wl=0,Zr(),Zl):0}function Ru(){for(;Ul!==null&&!xe();)zu(Ul)}function zu(e){var t=Mc(e.alternate,e,Xl);e.memoizedProps=e.pendingProps,t===null?Hu(e):Ul=t}function Bu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=gc(n,t,t.pendingProps,t.type,void 0,Wl);break;case 11:t=gc(n,t,t.pendingProps,t.type.render,t.ref,Wl);break;case 5:ko(t);default:Vc(n,t),t=Ul=ci(t,Xl),t=Mc(n,t,Xl)}e.memoizedProps=e.pendingProps,t===null?Hu(e):Ul=t}function Vu(e,t,n,r){Wi=Ui=null,ko(t),ka=null,Aa=0;var i=t.return;try{if(tc(e,i,t,n,Wl)){Zl=1,Xs(e,hi(n,e.current)),Ul=null;return}}catch(t){if(i!==null)throw Ul=i,t;Zl=1,Xs(e,hi(n,e.current)),Ul=null;return}t.flags&32768?(Mi||r===1?e=!0:Jl||Wl&536870912?e=!1:(ql=e=!0,(r===2||r===9||r===3||r===6)&&(r=eo.current,r!==null&&r.tag===13&&(r.flags|=16384))),Uu(t,e)):Hu(t)}function Hu(e){var t=e;do{if(t.flags&32768){Uu(t,ql);return}e=t.return;var n=zc(t.alternate,t,Xl);if(n!==null){Ul=n;return}if(t=t.sibling,t!==null){Ul=t;return}Ul=t=e}while(t!==null);Zl===0&&(Zl=5)}function Uu(e,t){do{var n=Bc(e.alternate,e);if(n!==null){n.flags&=32767,Ul=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ul=e;return}Ul=e=n}while(e!==null);Zl=6,Ul=null}function Wu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Yu();while(du!==0);if(Vl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Xr,Ye(e,n,o,s,c,l),e===Hl&&(Ul=Hl=null,Wl=0),pu=t,fu=e,mu=n,hu=o,gu=a,_u=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,id(De,function(){return Xu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=F.T,F.T=null,a=I.p,I.p=2,s=Vl,Vl|=4;try{ol(e,t,n)}finally{Vl=s,I.p=a,F.T=r}}du=1,Gu(),Ku(),qu()}}function Gu(){if(du===1){du=0;var e=fu,t=pu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=F.T,F.T=null;var r=I.p;I.p=2;var i=Vl;Vl|=4;try{yl(t,e);var a=Yd,o=wr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Cr(s.ownerDocument.documentElement,s)){if(c!==null&&Tr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Sr(s,h),v=Sr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}_p=!!Jd,Yd=Jd=null}finally{Vl=i,I.p=r,F.T=n}}e.current=t,du=2}}function Ku(){if(du===2){du=0;var e=fu,t=pu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=F.T,F.T=null;var r=I.p;I.p=2;var i=Vl;Vl|=4;try{sl(e,t.alternate,t)}finally{Vl=i,I.p=r,F.T=n}}du=3}}function qu(){if(du===4||du===3){du=0,Se();var e=fu,t=pu,n=mu,r=_u;t.subtreeFlags&10256||t.flags&10256?du=5:(du=0,pu=fu=null,Ju(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(uu=null),et(n),t=t.stateNode,Ne&&typeof Ne.onCommitFiberRoot==`function`)try{Ne.onCommitFiberRoot(Me,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=F.T,i=I.p,I.p=2,F.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{F.T=t,I.p=i}}mu&3&&Yu(),dd(e),i=e.pendingLanes,n&261930&&i&42?e===yu?vu++:(vu=0,yu=e):vu=0,fd(0,!1)}}function Ju(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,oa(t)))}function Yu(){return Gu(),Ku(),qu(),Xu()}function Xu(){if(du!==5)return!1;var e=fu,t=hu;hu=0;var n=et(mu),r=F.T,a=I.p;try{I.p=32>n?32:n,F.T=null,n=gu,gu=null;var o=fu,s=mu;if(du=0,pu=fu=null,mu=0,Vl&6)throw Error(i(331));var c=Vl;if(Vl|=4,Il(o.current),Ol(o,o.current,s,n),Vl=c,fd(0,!1),Ne&&typeof Ne.onPostCommitFiberRoot==`function`)try{Ne.onPostCommitFiberRoot(Me,o)}catch{}return!0}finally{I.p=a,F.T=r,Ju(e,t)}}function Zu(e,t,n){t=hi(n,t),t=Qs(e.stateNode,t,2),e=Va(e,t,2),e!==null&&(Je(e,2),dd(e))}function Qu(e,t,n){if(e.tag===3)Zu(e,e,n);else for(;t!==null;){if(t.tag===3){Zu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(uu===null||!uu.has(r))){e=hi(n,e),n=$s(2),r=Va(t,n,2),r!==null&&(ec(n,r,t,e),Je(r,2),dd(r));break}}t=t.return}}function $u(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Yl=!0,i.add(n),e=ed.bind(null,e,t,n),t.then(e,e))}function ed(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Hl===e&&(Wl&n)===n&&(Zl===4||Zl===3&&(Wl&62914560)===Wl&&300>Ce()-ou?!(Vl&2)&&ku(e,0):eu|=n,nu===Wl&&(nu=0)),dd(e)}function td(e,t){t===0&&(t=Ke()),e=ei(e,t),e!==null&&(Je(e,t),dd(e))}function nd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),td(e,n)}function rd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),td(e,n)}function id(e,t){return ye(e,t)}var ad=null,od=null,sd=!1,cd=!1,ld=!1,ud=0;function dd(e){e!==od&&e.next===null&&(od===null?ad=od=e:od=od.next=e),cd=!0,sd||(sd=!0,vd())}function fd(e,t){if(!ld&&cd){ld=!0;do for(var n=!1,r=ad;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Fe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,_d(r,a))}else a=Wl,a=Ue(r,r===Hl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||We(r,a)||(n=!0,_d(r,a))}r=r.next}while(n);ld=!1}}function pd(){md()}function md(){cd=sd=!1;var e=0;ud!==0&&tf()&&(e=ud);for(var t=Ce(),n=null,r=ad;r!==null;){var i=r.next,a=hd(r,t);a===0?(r.next=null,n===null?ad=i:n.next=i,i===null&&(od=n)):(n=r,(e!==0||a&3)&&(cd=!0)),r=i}du!==0&&du!==5||fd(e,!1),ud!==0&&(ud=0)}function hd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Fe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ge(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Hl,n=Wl,n=Ue(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Gl===2||Gl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&be(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||We(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&be(r),et(n)){case 2:case 8:n=Ee;break;case 32:n=De;break;case 268435456:n=ke;break;default:n=De}return r=gd.bind(null,e),n=ye(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&be(r),e.callbackPriority=2,e.callbackNode=null,2}function gd(e,t){if(du!==0&&du!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Yu()&&e.callbackNode!==n)return null;var r=Wl;return r=Ue(e,e===Hl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Cu(e,r,t),hd(e,Ce()),e.callbackNode!=null&&e.callbackNode===n?gd.bind(null,e):null)}function _d(e,t){if(Yu())return null;Cu(e,t,!0)}function vd(){of(function(){Vl&6?ye(Te,pd):md()})}function yd(){if(ud===0){var e=la;e===0&&(e=ze,ze<<=1,!(ze&261888)&&(ze=256)),ud=e}return ud}function bd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Yt(``+e)}function xd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Sd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=bd((i[at]||null).action),o=r.submitter;o&&(t=(t=o[at]||null)?bd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new vn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ud!==0){var e=o?xd(i,o):new FormData(i);ws(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?xd(i,o):new FormData(i),ws(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Cd=0;Cd<Gr.length;Cd++){var wd=Gr[Cd];Kr(wd.toLowerCase(),`on`+(wd[0].toUpperCase()+wd.slice(1)))}Kr(Lr,`onAnimationEnd`),Kr(Rr,`onAnimationIteration`),Kr(zr,`onAnimationStart`),Kr(`dblclick`,`onDoubleClick`),Kr(`focusin`,`onFocus`),Kr(`focusout`,`onBlur`),Kr(Br,`onTransitionRun`),Kr(Vr,`onTransitionStart`),Kr(Hr,`onTransitionCancel`),Kr(Ur,`onTransitionEnd`),xt(`onMouseEnter`,[`mouseout`,`mouseover`]),xt(`onMouseLeave`,[`mouseout`,`mouseover`]),xt(`onPointerEnter`,[`pointerout`,`pointerover`]),xt(`onPointerLeave`,[`pointerout`,`pointerover`]),bt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),bt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),bt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),bt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),bt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),bt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Td=`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(` `),Ed=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Td));function Dd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){qr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){qr(e)}i.currentTarget=null,a=c}}}}function Od(e,t){var n=t[st];n===void 0&&(n=t[st]=new Set);var r=e+`__bubble`;n.has(r)||(Md(t,e,2,!1),n.add(r))}function kd(e,t,n){var r=0;t&&(r|=4),Md(n,e,r,t)}var Ad=`_reactListening`+Math.random().toString(36).slice(2);function jd(e){if(!e[Ad]){e[Ad]=!0,vt.forEach(function(t){t!==`selectionchange`&&(Ed.has(t)||kd(t,!1,e),kd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ad]||(t[Ad]=!0,kd(`selectionchange`,!1,t))}}function Md(e,t,n,r){switch(wp(t)){case 2:var i=vp;break;case 8:i=yp;break;default:i=bp}n=i.bind(null,t,n,e),i=void 0,!sn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Nd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=pt(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}rn(function(){var r=a,i=Qt(n),o=[];a:{var c=Wr.get(e);if(c!==void 0){var l=vn,u=e;switch(e){case`keypress`:if(pn(n)===0)break a;case`keydown`:case`keyup`:l=In;break;case`focusin`:u=`focus`,l=Dn;break;case`focusout`:u=`blur`,l=Dn;break;case`beforeblur`:case`afterblur`:l=Dn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Tn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=En;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Rn;break;case Lr:case Rr:case zr:l=On;break;case Ur:l=zn;break;case`scroll`:case`scrollend`:l=bn;break;case`wheel`:l=Bn;break;case`copy`:case`cut`:case`paste`:l=kn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Ln;break;case`toggle`:case`beforetoggle`:l=Vn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=an(m,p),g!=null&&d.push(Pd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Zt&&(u=n.relatedTarget||n.fromElement)&&(pt(u)||u[ot]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?pt(u):null,u!==null&&(f=s(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Tn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Ln,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:ht(l),h=u==null?c:ht(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,pt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Id,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Ld(o,c,l,d,!1),u!==null&&f!==null&&Ld(o,f,u,d,!0)}}a:{if(c=r?ht(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=sr;else if(tr(c)){if(cr)v=_r;else{v=hr;var y=mr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Kt(r.elementType)&&(v=sr):v=gr;if(v&&(v=v(e,r))){nr(o,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&zt(c,`number`,c.value)}switch(y=r?ht(r):window,e){case`focusin`:(tr(y)||y.contentEditable===`true`)&&(Dr=y,Or=r,kr=null);break;case`focusout`:kr=Or=Dr=null;break;case`mousedown`:Ar=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ar=!1,jr(o,n,i);break;case`selectionchange`:if(Er)break;case`keydown`:case`keyup`:jr(o,n,i)}var b;if(Un)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Zn?Yn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Kn&&n.locale!==`ko`&&(Zn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Zn&&(b=fn()):(ln=i,un=`value`in ln?ln.value:ln.textContent,Zn=!0)),y=Fd(r,x),0<y.length&&(x=new An(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Xn(n),b!==null&&(x.data=b)))),(b=Gn?Qn(e,n):$n(e,n))&&(x=Fd(r,`onBeforeInput`),0<x.length&&(y=new An(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),Sd(o,e,r,n,i)}Dd(o,t)})}function Pd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=an(e,n),i!=null&&r.unshift(Pd(e,i,a)),i=an(e,t),i!=null&&r.push(Pd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Id(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ld(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=an(n,a),l!=null&&o.unshift(Pd(n,l,c))):i||(l=an(n,a),l!=null&&o.push(Pd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Rd=/\r\n?/g,zd=/\u0000|\uFFFD/g;function Bd(e){return(typeof e==`string`?e:``+e).replace(Rd,` 10`).replace(zd,``)}function Vd(e,t){return t=Bd(t),Bd(e)===t}function Hd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ut(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ut(e,``+r);break;case`className`:Dt(e,`class`,r);break;case`tabIndex`:Dt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Dt(e,n,r);break;case`style`:Gt(e,r,o);break;case`data`:if(t!==`object`){Dt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Hd(e,t,`name`,a.name,a,null),Hd(e,t,`formEncType`,a.formEncType,a,null),Hd(e,t,`formMethod`,a.formMethod,a,null),Hd(e,t,`formTarget`,a.formTarget,a,null)):(Hd(e,t,`encType`,a.encType,a,null),Hd(e,t,`method`,a.method,a,null),Hd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`onScroll`:r!=null&&Od(`scroll`,e);break;case`onScrollEnd`:r!=null&&Od(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Yt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInl
10ine`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Od(`beforetoggle`,e),Od(`toggle`,e),Et(e,`popover`,r);break;case`xlinkActuate`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ot(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ot(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ot(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Et(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=qt.get(n)||n,Et(e,n,r))}}function Ud(e,t,n,r,a,o){switch(n){case`style`:Gt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Ut(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ut(e,``+r);break;case`onScroll`:r!=null&&Od(`scroll`,e);break;case`onScrollEnd`:r!=null&&Od(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!yt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[at]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Et(e,n,r)}}}function Wd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Od(`error`,e),Od(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Hd(e,t,o,s,n,null)}}a&&Hd(e,t,`srcSet`,n.srcSet,n,null),r&&Hd(e,t,`src`,n.src,n,null);return;case`input`:Od(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Hd(e,t,r,d,n,null)}}Rt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Od(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Hd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Bt(e,!!r,n,!0):Bt(e,!!r,t,!1);return;case`textarea`:for(s in Od(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Hd(e,t,s,c,n,null)}Ht(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Hd(e,t,l,r,n,null)}return;case`dialog`:Od(`beforetoggle`,e),Od(`toggle`,e),Od(`cancel`,e),Od(`close`,e);break;case`iframe`:case`object`:Od(`load`,e);break;case`video`:case`audio`:for(r=0;r<Td.length;r++)Od(Td[r],e);break;case`image`:Od(`error`,e),Od(`load`,e);break;case`details`:Od(`toggle`,e);break;case`embed`:case`source`:case`link`:Od(`error`,e),Od(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Hd(e,t,u,r,n,null)}return;default:if(Kt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ud(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Hd(e,t,c,r,n,null))}function Gd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Hd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Hd(e,t,p,m,r,f)}}Lt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Hd(e,t,o,null,r,l)}
vendor: 23,985 bytes, line 10
10for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Hd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Bt(e,!!n,n?[]:``,!1):Bt(e,!!n,t,!0)):Bt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Hd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Hd(e,t,s,a,r,o)}Vt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Hd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Hd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Hd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Hd(e,t,u,p,r,m)}return;default:if(Kt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ud(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Ud(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Hd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Hd(e,t,f,p,r,m)}function Kd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function qd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Kd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Kd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Jd=null,Yd=null;function Xd(e){return e.nodeType===9?e:e.ownerDocument}function Zd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Qd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function $d(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ef=null;function tf(){var e=window.event;return e&&e.type===`popstate`?e!==ef&&(ef=e,!0):(ef=null,!1)}var nf=typeof setTimeout==`function`?setTimeout:void 0,rf=typeof clearTimeout==`function`?clearTimeout:void 0,af=typeof Promise==`function`?Promise:void 0,of=typeof queueMicrotask==`function`?queueMicrotask:af===void 0?nf:function(e){return af.resolve(null).then(e).catch(sf)};function sf(e){setTimeout(function(){throw e})}function cf(e){return e===`head`}function lf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Cf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Cf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[dt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Cf(e.ownerDocument.body)}n=i}while(n);Hp(t)}function uf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function df(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:df(n),ft(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function ff(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[dt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=vf(e.nextSibling),e===null)break}return null}function pf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=vf(e.nextSibling),e===null))return null;return e}function mf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=vf(e.nextSibling),e===null))return null;return e}function hf(e){return e.data===`$?`||e.data===`$~`}function gf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function _f(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function vf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var yf=null;function bf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return vf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function xf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Sf(e,t,n){switch(t=Xd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Cf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ft(e)}var wf=new Map,Tf=new Set;function Ef(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Df=I.d;I.d={f:Of,r:kf,D:Mf,C:Nf,L:Pf,m:Ff,X:Lf,S:If,M:Rf};function Of(){var e=Df.f(),t=Du();return e||t}function kf(e){var t=mt(e);t!==null&&t.tag===5&&t.type===`form`?Es(t):Df.r(e)}var Af=typeof document>`u`?null:document;function jf(e,t,n){var r=Af;if(r&&typeof t==`string`&&t){var i=It(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Tf.has(i)||(Tf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Wd(t,`link`,e),_t(t),r.head.appendChild(t)))}}function Mf(e){Df.D(e),jf(`dns-prefetch`,e,null)}function Nf(e,t){Df.C(e,t),jf(`preconnect`,e,t)}function Pf(e,t,n){Df.L(e,t,n);var r=Af;if(r&&e&&t){var i=`link[rel="preload"][as="`+It(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+It(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+It(n.imageSizes)+`"]`)):i+=`[href="`+It(e)+`"]`;var a=i;switch(t){case`style`:a=Bf(e);break;case`script`:a=Wf(e)}wf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),wf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Vf(a))||t===`script`&&r.querySelector(Gf(a))||(t=r.createElement(`link`),Wd(t,`link`,e),_t(t),r.head.appendChild(t)))}}function Ff(e,t){Df.m(e,t);var n=Af;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+It(r)+`"][href="`+It(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Wf(e)}if(!wf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),wf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Gf(a)))return}r=n.createElement(`link`),Wd(r,`link`,e),_t(r),n.head.appendChild(r)}}}function If(e,t,n){Df.S(e,t,n);var r=Af;if(r&&e){var i=gt(r).hoistableStyles,a=Bf(e);t=t||`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Vf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=wf.get(a))&&Jf(e,n);var c=o=r.createElement(`link`);_t(c),Wd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,qf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Lf(e,t){Df.X(e,t);var n=Af;if(n&&e){var r=gt(n).hoistableScripts,i=Wf(e),a=r.get(i);a||(a=n.querySelector(Gf(i)),a||(e=h({src:e,async:!0},t),(t=wf.get(i))&&Yf(e,t),a=n.createElement(`script`),_t(a),Wd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t){Df.M(e,t);var n=Af;if(n&&e){var r=gt(n).hoistableScripts,i=Wf(e),a=r.get(i);a||(a=n.querySelector(Gf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=wf.get(i))&&Yf(e,t),a=n.createElement(`script`),_t(a),Wd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zf(e,t,n,r){var a=(a=oe.current)?Ef(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Bf(n.href),n=gt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Bf(n.href);var o=gt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Vf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),wf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},wf.set(e,n),o||Uf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Wf(n),n=gt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Bf(e){return`href="`+It(e)+`"`}function Vf(e){return`link[rel="stylesheet"][`+e+`]`}function Hf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Uf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Wd(t,`link`,n),_t(t),e.head.appendChild(t))}function Wf(e){return`[src="`+It(e)+`"]`}function Gf(e){return`script[async]`+e}function Kf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+It(n.href)+`"]`);if(r)return t.instance=r,_t(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),_t(r),Wd(r,`style`,a),qf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Bf(n.href);var o=e.querySelector(Vf(a));if(o)return t.state.loading|=4,t.instance=o,_t(o),o;r=Hf(n),(a=wf.get(a))&&Jf(r,a),o=(e.ownerDocument||e).createElement(`link`),_t(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Wd(o,`link`,r),t.state.loading|=4,qf(o,n.precedence,e),t.instance=o;case`script`:return o=Wf(n.src),(a=e.querySelector(Gf(o)))?(t.instance=a,_t(a),a):(r=n,(a=wf.get(o))&&(r=h({},n),Yf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),_t(a),Wd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,qf(r,n.precedence,e));return t.instance}function qf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Jf(e,t){e.crossOrigin??(e.crossOrigin=t.crossOrigin),e.referrerPolicy??(e.referrerPolicy=t.referrerPolicy),e.title??(e.title=t.title)}function Yf(e,t){e.crossOrigin??(e.crossOrigin=t.crossOrigin),e.referrerPolicy??(e.referrerPolicy=t.referrerPolicy),e.integrity??(e.integrity=t.integrity)}var Xf=null;function Zf(e,t,n){if(Xf===null){var r=new Map,i=Xf=new Map;i.set(n,r)}else i=Xf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[dt]||a[it]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Qf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function $f(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function ep(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function tp(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Bf(r.href),a=t.querySelector(Vf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ip.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,_t(a);return}a=t.ownerDocument||t,r=Hf(r),(i=wf.get(i))&&Jf(r,i),a=a.createElement(`link`),_t(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Wd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ip.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var np=0;function rp(e,t){return e.stylesheets&&e.count===0&&op(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&op(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&np===0&&(np=62500*qd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&op(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>np?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ip(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)op(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ap=null;function op(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ap=new Map,t.forEach(sp,e),ap=null,ip.call(e))}function sp(e,t){if(!(t.state.loading&4)){var n=ap.get(e);if(n)var r=n.get(null);else{n=new Map,ap.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ip.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var cp={$$typeof:C,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function lp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qe(0),this.hiddenUpdates=qe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function up(e,t,n,r,i,a,o,s,c,l,u,d){return e=new lp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ai(3,null,null,t),e.current=a,a.stateNode=e,t=aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ra(a),e}function dp(e){return e?(e=ri,e):ri}function fp(e,t,n,r,i,a){i=dp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ba(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Va(e,r,t),n!==null&&(Su(n,e,t),Ha(n,e,t))}function pp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mp(e,t){pp(e,t),(e=e.alternate)&&pp(e,t)}function hp(e){if(e.tag===13||e.tag===31){var t=ei(e,67108864);t!==null&&Su(t,e,67108864),mp(e,67108864)}}function gp(e){if(e.tag===13||e.tag===31){var t=bu();t=$e(t);var n=ei(e,t);n!==null&&Su(n,e,t),mp(e,t)}}var _p=!0;function vp(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=2,bp(e,t,n,r)}finally{I.p=a,F.T=i}}function yp(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=8,bp(e,t,n,r)}finally{I.p=a,F.T=i}}function bp(e,t,n,r){if(_p){var i=xp(r);if(i===null)Nd(e,t,r,Sp,n),Mp(e,r);else if(Pp(i,e,t,n,r))r.stopPropagation();else if(Mp(e,r),t&4&&-1<jp.indexOf(e)){for(;i!==null;){var a=mt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=He(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Fe(o);s.entanglements[1]|=c,o&=~c}dd(a),!(Vl&6)&&(cu=Ce()+500,fd(0,!1))}}break;case 31:case 13:s=ei(a,2),s!==null&&Su(s,a,2),Du(),mp(a,2)}if(a=xp(r),a===null&&Nd(e,t,r,Sp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Nd(e,t,r,null,n)}}function xp(e){return e=Qt(e),Cp(e)}var Sp=null;function Cp(e){if(Sp=null,e=pt(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=d(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Sp=e,null}function wp(e){switch(e){case`beforetoggle`: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`toggle`: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 2;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`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(we()){case Te:return 2;case Ee:return 8;case De:case Oe:return 32;case ke:return 268435456;default:return 32}default:return 32}}var W=!1,Tp=null,Ep=null,Dp=null,Op=new Map,kp=new Map,Ap=[],jp=`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`.split(` `);function Mp(e,t){switch(e){case`focusin`:case`focusout`:Tp=null;break;case`dragenter`:case`dragleave`:Ep=null;break;case`mouseover`:case`mouseout`:Dp=null;break;case`pointerover`:case`pointerout`:Op.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kp.delete(t.pointerId)}}function Np(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=mt(t),t!==null&&hp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Pp(e,t,n,r,i){switch(t){case`focusin`:return Tp=Np(Tp,e,t,n,r,i),!0;case`dragenter`:return Ep=Np(Ep,e,t,n,r,i),!0;case`mouseover`:return Dp=Np(Dp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Op.set(a,Np(Op.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kp.set(a,Np(kp.get(a)||null,e,t,n,r,i)),!0}return!1}function Fp(e){var t=pt(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,nt(e.priority,function(){gp(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,nt(e.priority,function(){gp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ip(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zt=r,n.target.dispatchEvent(r),Zt=null}else return t=mt(n),t!==null&&hp(t),e.blockedOn=n,!1;t.shift()}return!0}
vendor: 5,967 bytes, line 10
10function Lp(e,t,n){Ip(e)&&n.delete(t)}function Rp(){W=!1,Tp!==null&&Ip(Tp)&&(Tp=null),Ep!==null&&Ip(Ep)&&(Ep=null),Dp!==null&&Ip(Dp)&&(Dp=null),Op.forEach(Lp),kp.forEach(Lp)}function zp(e,n){e.blockedOn===n&&(e.blockedOn=null,W||(W=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rp)))}var Bp=null;function Vp(e){Bp!==e&&(Bp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bp===e&&(Bp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Cp(r||n)===null)continue;break}var a=mt(n);a!==null&&(e.splice(t,3),t-=3,ws(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hp(e){function t(t){return zp(t,e)}Tp!==null&&zp(Tp,e),Ep!==null&&zp(Ep,e),Dp!==null&&zp(Dp,e),Op.forEach(t),kp.forEach(t);for(var n=0;n<Ap.length;n++){var r=Ap[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ap.length&&(n=Ap[0],n.blockedOn===null);)Fp(n),n.blockedOn===null&&Ap.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[at]||null;if(typeof a==`function`)o||Vp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[at]||null)s=o.formAction;else if(Cp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vp(n)}}}function Up(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wp(e){this._internalRoot=e}Gp.prototype.render=Wp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;fp(n,bu(),e,t,null,null)},Gp.prototype.unmount=Wp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fp(e.current,2,null,e,null,null),Du(),t[ot]=null}};function Gp(e){this._internalRoot=e}Gp.prototype.unstable_scheduleHydration=function(e){if(e){var t=tt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ap.length&&t!==0&&t<Ap[n].priority;n++);Ap.splice(n,0,e),n===0&&Fp(e)}};var Kp=n.version;if(Kp!==`19.2.8`)throw Error(i(527,Kp,`19.2.8`));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var qp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:F,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jp.isDisabled&&Jp.supportsFiber)try{Me=Jp.inject(qp),Ne=Jp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=qs,s=Js,c=Ys;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=up(e,1,!1,null,null,n,r,null,o,s,c,Up),e[ot]=t.current,jd(e),new Wp(t)}})),f=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=d()})),p=n((e=>{var t=o();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useSyncExternalStore,a=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,o,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!i){if(i=!0,a=e,e=o(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,r(a,e))return t;var n=o(e);return u!==void 0&&u(t,n)?(a=e,t):(a=e,s=n)}var i=!1,a,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,o,u]);var p=i(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),m=n(((e,t)=>{t.exports=p()})),h=f(),g=t(o(),1),_=m();function v(e){e()}function y(){let e=null,t=null;return{clear(){e=null,t=null},notify(){v(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var b={notify(){},get:()=>[]};function x(e,t){let n,r=b,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=y())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=b)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var S=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,C=typeof navigator<`u`&&navigator.product===`ReactNative`,w=S||C?g.useLayoutEffect:g.useEffect,T=Symbol.for(`react-redux-context`),E=typeof globalThis<`u`?globalThis:{};function D(){if(!g.createContext)return{};
10let e=E[T]??(E[T]=new Map),t=e.get(g.createContext);return t||(t=g.createContext(null),e.set(g.createContext,t)),t}var O=D();function k(e){let{children:t,context:n,serverState:r,store:i}=e,a=g.useMemo(()=>{let e=x(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),o=g.useMemo(()=>i.getState(),[i]);w(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||O;return g.createElement(s.Provider,{value:a},t)}var A=k;function j(e=O){return function(){return g.useContext(e)}}var M=j();function N(e=O){let t=e===O?M:j(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var P=N();function ee(e=O){let t=e===O?P:N(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var F=ee(),I=(e,t)=>e===t;function te(e=O){let t=e===O?M:j(e),n=(e,n={})=>{let{equalityFn:r=I}=typeof n==`function`?{equalityFn:n}:n,{store:i,subscription:a,getServerState:o}=t();g.useRef(!0);let s=g.useCallback({[e.name](t){return e(t)}}[e.name],[e]),c=(0,_.useSyncExternalStoreWithSelector)(a.addNestedSub,i.getState,o||i.getState,s,r);return g.useDebugValue(c),c};return Object.assign(n,{withTypes:()=>n}),n}var L=te(),ne=t(u(),1),R=`modulepreload`,re=function(e){return`/umcu.frontend/`+e},z={},ie=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute(`nonce`));function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=re(t,n),t=s(t),t in z)return;z[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:R,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ae=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,oe=/^[\\/]{2}/;function se(e,t){return t+e.replace(/\\/g,`/`)}var ce=`popstate`;function le(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function ue(e={}){function t(e,t){var n;let r=(n=t.state)==null?void 0:n.masked,{pathname:i,search:a,hash:o}=r||e.location;return me(``,{pathname:i,search:a,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,r?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:he(t)}return _e(t,n,null,e)}function B(e,t){if(e===!1||e==null)throw Error(t)}function de(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function fe(){return Math.random().toString(36).substring(2,10)}function pe(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function me(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?ge(t):t,state:n,key:t&&t.key||r||fe(),mask:i}}function he({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function ge(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function _e(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=le(e)?e:me(h.location,e,t);n&&n(r,e),l=u()+1;let d=pe(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=le(e)?e:me(h.location,e,t);n&&n(r,e),l=u();let i=pe(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ve(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(ce,d),c=e,()=>{i.removeEventListener(ce,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ve(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),B(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:he(t);return i=i.replace(/ $/,`%20`),!n&&oe.test(i)&&(i=r+i),new URL(i,r)}function ye(e,t,n=`/`){return be(e,t,n,!1)}function be(e,t,n,r,i){let a=ze((typeof t==`string`?ge(t):t).pathname||`/`,n);if(a==null)return null;let o=i??xe(e),s=null,c=Re(a);for(let e=0;s==null&&e<o.length;++e)s=Pe(o[e],c,r);return s}function xe(e){let t=Se(e);return we(t),t}function Se(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;B(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}
10" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=qe([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(B(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Se(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:Me(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Le(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))a(e,t);else for(let n of Ce(e.path))a(e,t,!0,n)}),t}function Ce(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Ce(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function we(e){e.sort((e,t)=>e.score===t.score?Ne(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Te=/^:[\w-]+$/,Ee=3,De=2,Oe=1,ke=10,Ae=-2,je=e=>e===`*`;function Me(e,t){let n=e.split(`/`),r=n.length;return n.some(je)&&(r+=Ae),t&&(r+=De),n.filter(e=>!je(e)).reduce((e,t)=>e+(Te.test(t)?Ee:t===``?Oe:ke),r)}function Ne(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Pe(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Ie(u,l,s.matcher,s.compiledParams):Fe(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Fe({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;
10Object.assign(i,d.params),o.push({params:i,pathname:qe([a,d.pathname]),pathnameBase:Ye(qe([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=qe([a,d.pathnameBase]))}return o}function Fe(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Le(e.path,e.caseSensitive,e.end);return Ie(e,t,n,r)}function Ie(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Je(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Je(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Le(e,t=!1,n=!0){de(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Re(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return de(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ze(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Be(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?ge(e):e,a;return n?(n=Ke(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Ve(n.substring(1),`/`):Ve(n,t)):a=t,{pathname:a,search:Xe(r),hash:Ze(i)}}function Ve(e,t){let n=Je(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function He(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ue(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function We(e){let t=Ue(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Ge(e,t,n,r=!1){let i;typeof e==`string`?i=ge(e):(i={...e},B(!i.pathname||!i.pathname.includes(`?`),He(`?`,`pathname`,`search`,i)),B(!i.pathname||!i.pathname.includes(`#`),He(`#`,`pathname`,`hash`,i)),B(!i.search||!i.search.includes(`#`),He(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Be(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Ke=e=>e.replace(/[\\/]{2,}/g,`/`),qe=e=>Ke(e.join(`/`));function Je(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Ye=e=>Je(e).replace(/^\/*/,`/`),Xe=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ze=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Qe=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function $e(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function et(e){return qe(e.map(e=>e.route.path).filter(Boolean))||`/`}var tt=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function nt(e,t){let n=e;if(typeof n!=`string`||!ae.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(tt)try{let e=new URL(window.location.href),r=oe.test(n)?new URL(se(n,e.protocol)):new URL(n),a=ze(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{de(!1,`<Link to="${n}">
10 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var rt=new URL(`http://localhost`);function it(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),rt)}catch{return rt}}function at(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function ot(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function st(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!at(i,n),s=!at(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!ot(e,i)||!at(i,a)))throw Error(`External navigation is not allowed`)}var ct=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(ct);var lt=[`GET`,...ct];new Set(lt);var ut=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function dt(e){try{return ut.includes(new URL(e).protocol)}catch{return!1}}var ft=g.createContext(null);ft.displayName=`DataRouter`;var pt=g.createContext(null);pt.displayName=`DataRouterState`;var mt=g.createContext(!1);function ht(){return g.useContext(mt)}var gt=g.createContext({isTransitioning:!1});gt.displayName=`ViewTransition`;var _t=g.createContext(new Map);_t.displayName=`Fetchers`;var vt=g.createContext(null);vt.displayName=`Await`;var yt=g.createContext(null);yt.displayName=`Navigation`;var bt=g.createContext(null);bt.displayName=`Location`;var xt=g.createContext({outlet:null,matches:[],isDataRoute:!1});xt.displayName=`Route`;var St=g.createContext(null);St.displayName=`RouteError`;var Ct=`REACT_ROUTER_ERROR`,wt=`REDIRECT`,Tt=`ROUTE_ERROR_RESPONSE`;function Et(e){if(e.startsWith(`${Ct}:${wt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Dt(e){if(e.startsWith(`${Ct}:${Tt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Qe(t.status,t.statusText,t.data)}catch{}}function Ot(e,{relative:t}={}){B(kt(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=g.useContext(yt),{hash:i,pathname:a,search:o}=Ft(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:qe([n,a])),r.createHref({pathname:s,search:o,hash:i})}function kt(){return g.useContext(bt)!=null}function At(){return B(kt(),`useLocation() may be used only in the context of a <Router> component.`),g.useContext(bt).location}var jt=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Mt(e){g.useContext(yt).static||g.useLayoutEffect(e)}function Nt(){let{isDataRoute:e}=g.useContext(xt);return e?Xt():Pt()}function Pt(){B(kt(),`useNavigate() may be used only in the context of a <Router> component.`);let e=g.useContext(ft),{basename:t,navigator:n}=g.useContext(yt),{matches:r}=g.useContext(xt),{pathname:i}=At(),a=JSON.stringify(We(r)),o=g.useRef(!1);return Mt(()=>{o.current=!0}),g.useCallback((r,s={})=>{if(de(o.current,jt),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Ge(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:qe([t,c.pathname])),st(typeof r==`string`?r:he(r),n.createHref(c),it(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}g.createContext(null);function Ft(e,{relative:t}={}){let{matches:n}=g.useContext(xt),{pathname:r}=At(),i=JSON.stringify(We(n));return g.useMemo(()=>Ge(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function It(e,t,n){B(kt(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=g.useContext(yt),{matches:i}=g.useContext(xt),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Qt(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 11 12Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=At(),d;if(t){var f;let e=typeof t==`string`?ge(t):t;B(c===`/`||((f=e.pathname)==null?void 0:f.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let p=d.pathname||`/`,m=p;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);m=`/`+p.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):ye(e,{pathname:m});de(l||h!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),de(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=Ut(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:qe([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:qe([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&_?g.createElement(bt.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},_):_}function Lt(){let e=Yt(),t=$e(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=g.createElement(g.Fragment,null,g.createElement(`p`,null,`ð¿ Hey developer ð`),g.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,g.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,g.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),g.createElement(g.Fragment,null,g.createElement(`h2`,null,`Unexpected Application
12Error!`),g.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?g.createElement(`pre`,{style:i},n):null,o)}var Rt=g.createElement(Lt,null),zt=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Dt(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:g.createElement(xt.Provider,{value:this.props.routeContext},g.createElement(St.Provider,{value:e,children:this.props.component}));return this.context?g.createElement(Vt,{error:e},t):t}};zt.contextType=mt;var Bt=new WeakMap;function Vt({children:e,error:t}){let{basename:n,navigator:r}=g.useContext(yt);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Et(t.digest);if(e){let i=Bt.get(t);if(i)throw i;let a=nt(e.location,n),o=a.absoluteURL||a.to;if(st(e.location,o,it(r),`allow-explicit`),dt(o))throw Error(`Invalid redirect location`);if(tt&&!Bt.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Bt.set(t,n),n}}return g.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Ht({routeContext:e,match:t,children:n}){let r=g.useContext(ft);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(xt.Provider,{value:e},n)}function Ut(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r==null?void 0:r.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&(a==null?void 0:a[e.route.id])!==void 0);B(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n==null?void 0:n.onError,l=r&&c?(e,t)=>{var n;c(e,{location:r.location,params:((n=r.matches)==null||(n=n[0])==null?void 0:n.params)??{},pattern:et(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Rt,o&&(s<0&&c===0?(Qt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?g.createElement(n.route.Component,null):n.route.element?n.route.element:e,g.createElement(Ht,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?g.createElement(zt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function V(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wt(e){let t=g.useContext(ft);return B(t,V(e)),t}function Gt(e){let t=g.useContext(pt);return B(t,V(e)),t}function Kt(e){let t=g.useContext(xt);return B(t,V(e)),t}function qt(e){let t=Kt(e),n=t.matches[t.matches.length-1];return B(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Jt(){return qt(`useRouteId`)}function Yt(){var e;let t=g.useContext(St),n=Gt(`useRouteError`),r=qt(`useRouteError`);return t===void 0?(e=n.errors)==null?void 0:e[r]:t}function Xt(){let{router:e}=Wt(`useNavigate`),t=qt(`useNavigate`),n=g.useRef(!1);return Mt(()=>{n.current=!0}),g.useCallback(async(r,i={})=>{de(n.current,jt),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Zt={};function Qt(e,t,n){!t&&!Zt[e]&&(Zt[e]=!0,de(!1,n))}g.memo($t);function $t({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return It(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function en({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){B(!kt(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=g.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=ge(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=g.useMemo(()=>{let e=ze(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);
12return de(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:g.createElement(yt.Provider,{value:c},g.createElement(bt.Provider,{children:t,value:h}))}g.Component;var tn=`get`,nn=`application/x-www-form-urlencoded`;function rn(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function an(e){return rn(e)&&e.tagName.toLowerCase()===`button`}function on(e){return rn(e)&&e.tagName.toLowerCase()===`form`}function sn(e){return rn(e)&&e.tagName.toLowerCase()===`input`}function cn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ln(e,t){return e.button===0&&(!t||t===`_self`)&&!cn(e)}function un(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function dn(e,t){let n=un(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var fn=null;function pn(){if(fn===null)try{new FormData(document.createElement(`form`),0),fn=!1}catch{fn=!0}return fn}var mn=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function hn(e){return e!=null&&!mn.has(e)?(de(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${nn}"`),null):e}function gn(e,t){let n,r,i,a,o;if(on(e)){let o=e.getAttribute(`action`);r=o?ze(o,t):null,n=e.getAttribute(`method`)||tn,i=hn(e.getAttribute(`enctype`))||nn,a=new FormData(e)}else if(an(e)||sn(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?ze(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||tn,i=hn(e.getAttribute(`formenctype`))||hn(o.getAttribute(`enctype`))||nn,a=new FormData(o,e),!pn()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(rn(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=tn,r=null,i=nn,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function _n(e,t){if(e===!1||e==null)throw Error(t)}function vn(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&ze(i.pathname,t)===`/`?`${Je(t)}/_root.${r}`:`${Je(i.pathname)}.${r}`,i}async function yn(e,t){if(e.id in t)return t[e.id];try{let n=await ie(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bn(e){return e!=null&&typeof e.page==`string`}function xn(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Sn(e,t,n){return Dn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await yn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(xn).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Cn(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>{var r;return n[t].pathname!==e.pathname||((r=n[t].route.path)==null?void 0:r.endsWith(`*`))&&n[t].params[`*`]!==e.params[`*`]};return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){var l;let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParam
12s:((l=n[0])==null?void 0:l.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function wn(e,t,{includeHydrateFallback:n}={}){return Tn(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Tn(e){return[...new Set(e)]}function En(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Dn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!bn(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(En(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function On(){let e=g.useContext(ft);return _n(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function kn(){let e=g.useContext(pt);return _n(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var An=g.createContext(void 0);An.displayName=`FrameworkContext`;function jn(){let e=g.useContext(An);return _n(e,`You must render this element inside a <HydratedRouter> element`),e}function Mn(e,t){let n=g.useContext(An),[r,i]=g.useState(!1),[a,o]=g.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=g.useRef(null);g.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),g.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Nn(s,p),onBlur:Nn(c,m),onMouseEnter:Nn(l,p),onMouseLeave:Nn(u,m),onTouchStart:Nn(d,p)}]:[a,f,{}]:[!1,f,{}]}function Nn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Pn({page:e,...t}){let n=ht(),{nonce:r}=jn(),{router:i}=On(),a=g.useMemo(()=>ye(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?g.createElement(In,{page:e,matches:a,...t}):g.createElement(Ln,{page:e,matches:a,...t})):null}function Fn(e){let{manifest:t,routeModules:n}=jn(),[r,i]=g.useState([]);return g.useEffect(()=>{let r=!1;return Sn(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function In({page:e,matches:t,...n}){let r=At(),{future:i}=jn(),{basename:a}=On(),o=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=vn(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return g.createElement(g.Fragment,null,o.map(e=>g.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Ln({page:e,matches:t,...n}){let r=At(),{future:i,manifest:a,routeModules:o}=jn(),{basename:s}=On(),{loaderData:c,matches:l}=kn(),u=g.useMemo(()=>Cn(e,t,l,a,r,`data`),[e,t,l,a,r]),d=g.useMemo(()=>Cn(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{var t;let r=a.routes[e.route.id];!r||!r.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&(t=o[e.route.id])!=null&&t.shouldRevalidate||r.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=vn(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=g.useMemo(()=>wn(d,a),[d,a]),m=Fn(d);return g.createElement(g.Fragment,null,f.map(e=>g.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>g.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>g.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Rn(...e){return t=>
12{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}g.Component;var zn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{zn&&(window.__reactRouterVersion=`7.18.3`)}catch{}function Bn({basename:e,children:t,useTransitions:n,window:r}){let i=g.useRef();i.current??(i.current=ue({window:r,v5Compat:!0}));let a=i.current,[o,s]=g.useState({action:a.action,location:a.location}),c=g.useCallback(e=>{n===!1?s(e):g.startTransition(()=>s(e))},[n]);return g.useLayoutEffect(()=>a.listen(c),[a,c]),g.createElement(en,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var Vn=g.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:_,useTransitions:v}=g.useContext(yt),y=typeof l==`string`&&ae.test(l),b=nt(l,h);l=b.to;let x=Ot(l,{relative:r}),S=At(),C=null;if(o){let e=Ge(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:qe([h,e.pathname])),C=_.createHref(e)}let[w,T,E]=Mn(n,p),D=Kn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:v});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(b.isExternal||i),A=g.createElement(`a`,{...p,...E,href:(k?C:void 0)||b.absoluteURL||x,onClick:k?O:e,ref:Rn(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?g.createElement(g.Fragment,null,A,g.createElement(Pn,{page:x})):A});Vn.displayName=`Link`;var Hn=g.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Ft(a,{relative:c.relative}),d=At(),f=g.useContext(pt),{navigator:p,basename:m}=g.useContext(yt),h=f!=null&&Qn(u)&&o===!0,_=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&m&&(y=ze(y,m)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return g.createElement(Vn,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Hn.displayName=`NavLink`;var Un=g.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=tn,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=g.useContext(yt),_=Xn(),v=Zn(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&ae.test(s);return g.createElement(`form`,{ref:m,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=(r==null?void 0:r.getAttribute(`formmethod`))||o,p=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?g.startTransition(()=>p()):p()},...p,"data-discover":!b&&e===`render`?`true`:void 0})});Un.displayName=`Form`;function Wn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gn(e){let t=g.useContext(ft);return B(t,Wn(e)),t}function Kn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Nt(),d=At(),f=Ft(e,{relative:o});return g.useCallback(p=>{if(ln(p,t)){p.preventDefault();let t=n===void 0?he(d)===he(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?g.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function qn(e){de(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=g.useRef(un(e)),n=g.useRef(!1),r=At(),i=g.useMemo(()=>dn(r.search,n.current?null:t.current),[r.search]),a=Nt();return[i,g.useCallback((e,t)=>{let r=un(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Jn=0,Yn=()=>`__${String(++Jn)}__`;function Xn(){let{router:e}
12=Gn(`useSubmit`),{basename:t}=g.useContext(yt),n=Jt(),r=e.fetch,i=e.navigate;return g.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=gn(e,t);if(a.navigate===!1){let e=a.fetcherKey||Yn();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Zn(e,{relative:t}={}){let{basename:n}=g.useContext(yt),r=g.useContext(xt);B(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Ft(e||`.`,{relative:t})},o=At();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:qe([n,a.pathname])),he(a)}function Qn(e,{relative:t}={}){let n=g.useContext(gt);B(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Gn(`useViewTransitionState`),i=Ft(e,{relative:t});if(!n.isTransitioning)return!1;let a=ze(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=ze(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Fe(i.pathname,o)!=null||Fe(i.pathname,a)!=null}var $n=`dlab-determination-section`,er=`.${$n}--is-expandable`,tr=`.${$n}__title`,nr=`.${$n}__content`,rr=`${$n}--is-collapsed`,ir=()=>{document.querySelectorAll(er).forEach(e=>{let t=e.querySelector(tr);t&&t.addEventListener(`click`,e=>{ar(e.target.closest(er))})})};function ar(e){let t=e.querySelector(nr);e.classList.toggle(rr)?t.style.maxHeight=`0px`:t.style.maxHeight=`${t.scrollHeight}px`}var or=()=>{document.addEventListener(`DOMContentLoaded`,function(){if(window.history.length==1){let e=document.querySelector(`.back-link`);e&&(e.style.display=`none`)}})},sr=t(n(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()}))(),1),cr=`ACTIVE`,lr=`SET_MENU_OVERLAY`,ur=`SET_MENU_OVERLAY_TAB`,dr=`SET_MENU_CONTENT`;function fr(e,t=!0){return{type:lr,identifier:e,active:t}}function pr(e,t=!0){return{type:ur,item:e,active:t}}function mr(e){return{type:dr,items:e}}var hr=`SET_FOCUS_ITEM`;function gr(e){return{type:hr,item:{classList:[...e.classList],tagName:e.tagName,type:e.type,id:e.id}}}function _r(e,t){return function(){return e.apply(t,arguments)}}var{toString:vr}=Object.prototype,{getPrototypeOf:yr}=Object,{iterator:br,toStringTag:xr}=Symbol,Sr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Cr=e=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),wr=(e,t,n)=>e===Object.prototype||!n&&t===null,Tr=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(Cr(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},Er=(e,t)=>
12{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let i=yr(n);if(wr(n,i,n===e))return!1;if(Sr(n,t))return!0;n=i}return!1},Dr=(e,t)=>e!=null&&Er(e,t)?e[t]:void 0,Or=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=yr(e);if(t===null&&Tr(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);let o=a===e?t:yr(a);if(wr(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(let t of s)Cr(t)||Sr(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},kr=(e=>t=>{let n=vr.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ar=e=>(e=e.toLowerCase(),t=>kr(t)===e),jr=e=>t=>typeof t===e,{isArray:Mr}=Array,Nr=jr(`undefined`);function Pr(e){return e!==null&&!Nr(e)&&e.constructor!==null&&!Nr(e.constructor)&&Rr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Fr=Ar(`ArrayBuffer`);function Ir(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Fr(e.buffer),t}var Lr=jr(`string`),Rr=jr(`function`),zr=jr(`number`),Br=e=>typeof e==`object`&&!!e,Vr=e=>e===!0||e===!1,Hr=e=>{if(!Br(e))return!1;let t=yr(e);return(t===null||t===Object.prototype||yr(t)===null)&&!Er(e,xr)&&!Er(e,br)},Ur=e=>{if(!Br(e)||Pr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Wr=Ar(`Date`),Gr=Ar(`File`),Kr=e=>!!(e&&e.uri!==void 0),qr=e=>e&&e.getParts!==void 0,Jr=Ar(`Blob`),Yr=Ar(`FileList`),Xr=Ar(`Set`),Zr=e=>Br(e)&&Rr(e.pipe);function Qr(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:{}}var $r=Qr(),ei=$r.FormData===void 0?void 0:$r.FormData,ti=e=>{if(!e)return!1;if(ei&&e instanceof ei)return!0;let t=yr(e);if(!t||t===Object.prototype||!Rr(e.append))return!1;let n=kr(e);return n===`formdata`||n===`object`&&Rr(e.toString)&&e.toString()===`[object FormData]`},ni=Ar(`URLSearchParams`),[ri,ii,ai,oi]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(Ar),si=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function ci(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Mr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Pr(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function li(e,t){if(Pr(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var ui=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:{},di=e=>!Nr(e)&&e!==ui;function fi(...e){let{caseless:t,skipUndefined:n}=di(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&li(r,i)||i,o=Sr(r,a)?r[a]:void 0;Hr(o)&&Hr(e)?r[a]=fi(o,e):Hr(e)?r[a]=fi({},e):Mr(e)?r[a]=e.slice():(!n||!Nr(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||Pr(n)||(ci(n,i),typeof n!=`object`||Mr(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];wi.call(n,t)&&i(n[t],t)}}return r}var pi=(e,t,n,{allOwnKeys:r}={})=>(ci(t,(t,r)=>{n&&Rr(t)?Object.defineProperty(e,r,{__proto__:null,value:_r(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),mi=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hi=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},gi=(e,t,n,r)=>{let i,a,o,s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&yr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_i=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},vi=e=>{if(!e)return null;if(Mr(e))return e;let t=e.length;if(!zr(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},yi=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&yr(Uint8Array)),bi=(e,t)=>{let n=(e&&e[br]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},xi=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Si=Ar(`HTMLFormElement`),Ci=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:wi}=Object.prototype,Ti=Ar(`RegExp`),Ei=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};ci(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Di=e=>{Ei(e,(t,n)=>{if(Rr(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(Rr(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)})}})},Oi=(e,t)=>{let n={},r=e=>
12{e.forEach(e=>{n[e]=!0})};return Mr(e)?r(e):r(String(e).split(t)),n},ki=()=>{},Ai=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ji(e){return!!(e&&Rr(e.append)&&e[xr]===`FormData`&&e[br])}var Mi=e=>{let t=new WeakSet,n=e=>{if(Br(e)){if(t.has(e))return;if(Pr(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(Xr(e)){r=[];for(let t of e){let e=n(t);!Nr(e)&&r.push(e)}}else r=Mr(e)?[]:{},ci(e,(e,t)=>{let i=n(e);!Nr(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},Ni=Ar(`AsyncFunction`),Pi=e=>e&&(Br(e)||Rr(e))&&Rr(e.then)&&Rr(e.catch),Fi=((e,t)=>e?setImmediate:t?((e,t)=>(ui.addEventListener(`message`,({source:n,data:r})=>{n===ui&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),ui.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,Rr(ui.postMessage)),Ii=typeof queueMicrotask<`u`?queueMicrotask.bind(ui):typeof process<`u`&&process.nextTick||Fi,Li=e=>e!=null&&Rr(e[br]),H={isArray:Mr,isArrayBuffer:Fr,isBuffer:Pr,isFormData:ti,isArrayBufferView:Ir,isString:Lr,isNumber:zr,isBoolean:Vr,isObject:Br,isPlainObject:Hr,isEmptyObject:Ur,isReadableStream:ri,isRequest:ii,isResponse:ai,isHeaders:oi,isUndefined:Nr,isDate:Wr,isFile:Gr,isReactNativeBlob:Kr,isReactNative:qr,isBlob:Jr,isRegExp:Ti,isFunction:Rr,isStream:Zr,isURLSearchParams:ni,isTypedArray:yi,isFileList:Yr,forEach:ci,merge:fi,extend:pi,trim:si,stripBOM:mi,inherits:hi,toFlatObject:gi,kindOf:kr,kindOfTest:Ar,endsWith:_i,toArray:vi,forEachEntry:bi,matchAll:xi,isHTMLForm:Si,hasOwnProperty:Sr,hasOwnProp:Sr,hasOwnInPrototypeChain:Er,getSafeProp:Dr,toSafeFlatObject:Or,reduceDescriptors:Ei,freezeMethods:Di,toObjectSet:Oi,toCamelCase:Ci,noop:ki,toFiniteNumber:Ai,findKey:li,global:ui,isContextDefined:di,isSpecCompliantForm:ji,toJSONObject:Mi,isAsyncFn:Ni,isThenable:Pi,setImmediate:Fi,asap:Ii,isIterable:Li,isSafeIterable:e=>e!=null&&Er(e,br)&&Li(e)},Ri=H.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),zi=e=>{let t={},n,r,i;return e&&e.split(` 13`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=H.hasOwnProp(t,n);!n||a&&H.hasOwnProp(Ri,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function Bi(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Vi=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Hi=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Ui(e,t){return H.isArray(e)?e.map(e=>Ui(e,t)):Bi(String(e).replace(t,``))}var Wi=e=>Ui(e,Vi),Gi=e=>Ui(e,Hi);function Ki(e){let t=Object.create(null);return H.forEach(e.toJSON(),(e,n)=>{t[n]=Gi(e)}),t}var qi=Symbol(`internals`);function Ji(e){return e&&String(e).trim().toLowerCase()}function Yi(e){return e===!1||e==null?e:H.isArray(e)?e.map(Yi):Wi(String(e))}function Xi(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Zi=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Qi(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function $i(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function ea(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=Qi(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=Qi(i.slice(0,a));if(!Zi.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=Qi(i.slice(a+1));t[s]=$i(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var ta=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function na(e,t,n,r,i){if(H.isFunction(r))return r.call(this,t,n);if(i&&(t=n),H.isString(t)){if(H.isString(r))return t.indexOf(r)!==-1;if(H.isRegExp(r))return r.test(t)}}function ra(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function ia(e,t){let n=H.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var aa=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Ji(t);if(!i)return;let a=H.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Yi(e))}let a=(e,t)=>
13H.forEach(e,(e,n)=>i(e,n,t));if(H.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(H.isString(e)&&(e=e.trim())&&!ta(e))a(zi(e),t);else if(H.isObject(e)&&H.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!H.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],H.hasOwnProp(n,i)?(r=n[i],n[i]=H.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Ji(e),e){let n=H.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Xi(e);if(H.isFunction(t))return t.call(this,e,n);if(H.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Ji(e),e){let n=H.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||na(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Ji(e),e){let i=H.findKey(n,e);i&&(!t||na(n,n[i],i,t))&&(delete n[i],r=!0)}}return H.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||na(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return H.forEach(this,(r,i)=>{let a=H.findKey(n,i);if(a){t[a]=Yi(r),delete t[i];return}let o=e?ra(i):String(i).trim();o!==i&&delete t[i],t[o]=Yi(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return H.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&H.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(` 14`)}getSetCookie(){let e=this.get(`set-cookie`);return H.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return ea(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[qi]=this[qi]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Ji(e);t[r]||(ia(n,e),t[r]=!0)}return H.isArray(e)?e.forEach(r):r(e),this}};aa.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),H.reduceDescriptors(aa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),H.freezeMethods(aa);var oa=`[REDACTED ****]`;function sa(e){if(H.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(H.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function ca(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||H.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof aa&&(e=e.toJSON()),r.push(e);let t;if(H.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);H.isUndefined(r)||(t[n]=r)});else{if(!H.isPlainObject(e)&&sa(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?oa:i(a);H.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function la(e){try{return String(e)}catch{return``}}function ua(e){return e.errors.map(e=>{try{return e&&e.message?la(e.message):la(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var da=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&H.isArray(t.errors)&&t.errors.length&&(s=ua(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&H.hasOwnProp(e,`redact`)?e.redact:void 0,n=H.isArray(t)&&t.length>0?ca(e,t):H.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};da.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,da.ERR_BAD_OPTION=`ERR_BAD_OPTION`,da.ECONNABORTED=`ECONNABORTED`,da.ETIMEDOUT=`ETIMEDOUT`,da.ECONNREFUSED=`ECONNREFUSED`,da.ERR_NETWORK=`E
14RR_NETWORK`,da.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,da.ERR_DEPRECATED=`ERR_DEPRECATED`,da.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,da.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,da.ERR_CANCELED=`ERR_CANCELED`,da.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,da.ERR_INVALID_URL=`ERR_INVALID_URL`,da.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function fa(e){return H.isPlainObject(e)||H.isArray(e)}function pa(e){return H.endsWith(e,`[]`)?e.slice(0,-2):e}function ma(e,t,n){return e?e.concat(t).map(function(e,t){return e=pa(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function ha(e){return H.isArray(e)&&!e.some(fa)}var ga=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)});function _a(e,t,n){if(!H.isObject(e))throw TypeError(`target must be an object`);t=t||new FormData;let r=(e,t)=>{let r=H.getSafeProp(n,e);return H.isUndefined(r)?t:r},i=r(`metaTokens`,!0),a=r(`visitor`)||h,o=r(`dots`,!1),s=r(`indexes`,!1),c=r(`Blob`)||typeof Blob<`u`&&Blob,l=r(`maxDepth`,100),u=c&&H.isSpecCompliantForm(t),d=[];if(!H.isFunction(a))throw TypeError(`visitor must be a function`);function f(e){if(e===null)return``;if(H.isDate(e))return e.toISOString();if(H.isBoolean(e))return e.toString();if(!u&&H.isBlob(e))throw new da(`Blob is not supported. Use a Buffer instead.`);if(H.isArrayBuffer(e)||H.isTypedArray(e)){if(u&&typeof c==`function`)return new c([e]);throw new da(`Blob is not supported. Use a Buffer instead.`,da.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new da(`Object is too deeply nested (`+e+` levels). Max depth: `+l,da.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,t){if(l===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!H.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();
14return n.push(r),p(t+n.length-1),r})}function h(e,n,r){let a=e;if(H.isReactNative(t)&&H.isReactNativeBlob(e))return t.append(ma(r,n,o),f(e)),!1;if(e&&!r&&typeof e==`object`){if(H.endsWith(n,`{}`))n=i?n:n.slice(0,-2),e=m(e,1);else if(H.isArray(e)&&ha(e)||(H.isFileList(e)||H.endsWith(n,`[]`))&&(a=H.toArray(e)))return n=pa(n),a.forEach(function(e,r){!(H.isUndefined(e)||e===null)&&t.append(s===!0?ma([n],r,o):s===null?n:n+`[]`,f(e))}),!1}return fa(e)?!0:(t.append(ma(r,n,o),f(e)),!1)}let g=Object.assign(ga,{defaultVisitor:h,convertValue:f,isVisitable:fa});function _(e,n,r=0){if(!H.isUndefined(e)){if(p(r),d.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));d.push(e),H.forEach(e,function(e,i){(!(H.isUndefined(e)||e===null)&&a.call(t,e,H.isString(i)?i.trim():i,n,g))===!0&&_(e,n?n.concat(i):[i],r+1)}),d.pop()}}if(!H.isObject(e))throw TypeError(`data must be an object`);return _(e),t}function va(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ya(e,t){this._pairs=[],e&&_a(e,this,t)}var ba=ya.prototype;ba.append=function(e,t){this._pairs.push([e,t])},ba.toString=function(e){let t=e?t=>e.call(this,t,va):va;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function xa(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Sa(e,t,n){if(!t)return e;e=e||``;let r=H.isFunction(n)?{serialize:n}:n,i=H.getSafeProp(r,`encode`)||xa,a=H.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):H.isURLSearchParams(t)?t.toString():new ya(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Ca=Symbol(`internals`);function wa(e){return e?e.length:0}function Ta(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Ea(e,t){let n=e.handlers,r=wa(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var Da=class{constructor(){this.handlers=[],this[Ca]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[Ca];this.handlers??(this.handlers=[]),Ea(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[Ca];Ea(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(Ta(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Ea(this,this[Ca]))}forEach(e){let t=this[Ca];Ea(this,t),t.iterationDepth++;try{H.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(Ea(this,t),Ta(this.handlers),t.handlersLength=wa(this.handlers))}}},Oa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ka={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:ya,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Aa=e({hasBrowserEnv:()=>ja,hasStandardBrowserEnv:()=>Na,hasStandardBrowserWebWorkerEnv:()=>Pa,navigator:()=>Ma,origin:()=>Fa}),ja=typeof window<`u`&&typeof document<`u`,Ma=typeof navigator==`object`&&navigator||void 0,Na=ja&&(!Ma||[`ReactNative`,`NativeScript`,`NS`].indexOf(Ma.product)<0),Pa=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Fa=ja&&window.location.href||`http://localhost`,Ia={...Aa,...ka};function La(e,t){return _a(e,new Ia.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ia.isNode&&H.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var Ra=100;function za(e){if(e>Ra)throw new da(`FormData field is too deeply nested (`+e+` levels). Max depth: `+Ra,da.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ba(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)za(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Va(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Ha(e){function t(e,n,r,i){za(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&H.isArray(r)?r.length:a,s?(H.hasOwnProp(r,a)?r[a]=H.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!H.hasOwnProp(r,a)||!H.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&H.isArray(r[a])&&(r[a]=Va(r[a])),!o)}if(H.isFormData(e)&&H.isFunction(e.entries)){let n={};return H.forEachEntry(e,(e,r)=>{t(Ba(e),r,n,0)}),n}return null}var Ua=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),Wa=(e,t)=>e!=null&&H.hasOwnProp(e,t)?e[t]:void 0;function Ga(e,t,n){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Ka={transitional:Oa,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=H.isObject(e);
14if(i&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return r?JSON.stringify(Ha(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Wa(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return La(e,t).toString();if((a=H.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Wa(this,`env`),r=n&&n.FormData;return _a(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Ga(e)):e}],transformResponse:[function(e){let t=Wa(this,`transitional`)||Ka.transitional,n=t&&t.forcedJSONParsing,r=Wa(this,`responseType`),i=r===`json`;if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Wa(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?da.from(e,da.ERR_BAD_RESPONSE,this,null,Wa(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ia.classes.FormData,Blob:Ia.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};H.forEach(Ua,e=>{Ka.headers[e]={}});function qa(e,t){let n=this||Ka,r=t||n,i=aa.from(r.headers),a=r.data;return H.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Ja(e){return!!(e&&e.__CANCEL__)}var Ya=class extends da{constructor(e,t,n){super(e??`canceled`,da.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Xa(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new da(`Request failed with status code `+n.status,n.status>=400&&n.status<500?da.ERR_BAD_REQUEST:da.ERR_BAD_RESPONSE,n.config,n.request,n))}var Za=/[\t\n\r]/g;function Qa(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Za,``)}function $a(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function eo(e,t){e=e||10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function to(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&(clearTimeout(a),a=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||(a=setTimeout(()=>{a=null,o(i)},r-s)))},()=>i&&o(i),(...e)=>o(e)]}var no=(e,t,n=3)=>{let r=0,i=eo(50,250);return to(n=>{if(!n||!H.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},ro=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},io=(e,t=H.asap)=>(...n)=>t(()=>e(...n)),ao=Ia.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ia.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ia.origin),Ia.navigator&&/(msie|trident)/i.test(Ia.navigator.userAgent)):()=>!0,oo=Ia.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];H.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),H.isString(r)&&s.push(`path=${r}`),H.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),H.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function so(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function co(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var lo=/^https?:(?!\/\/)/i;function uo(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${oa}`)}function fo(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${oa}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${oa}`);return n===-1?r:`${r}#${uo(t.slice(n+1))}`}function po(e,t){if(typeof e==`string`){let n=Qa(e);if(lo.test(n))throw new da(`Invalid URL ${JSON.stringify(fo(n))}: missing "//" after protocol`,da.ERR_INVALID_URL,t)}}function mo(e,t,n,r){po(t,r);let i=!so(t);return e&&(i||n===!1)?(po(e,r),co(e,t)):t}var ho=e=>e instanceof aa?{...e}:e,go=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function _o(e,t){e=e||{},t=t||{};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return H.isPlainObject(e)&&H.isPlainObject(t)?H.merge.call({caseless:r},e,t):H.isPlainObject(t)?H.merge({},t):H.isArray(t)?t.slice():t}function i(e,t,n,i){if(!H.isUndefined(t))return r(e,t,n,i);if(!H.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!H.isUndefined(t))return r(void 0,t)}function o(e,t){if(!H.isUndefined(t))return r(void 0,t);
14if(!H.isUndefined(e))return r(void 0,e)}function s(n){let r=H.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!H.isUndefined(r)){if(H.isPlainObject(r)){if(H.hasOwnProp(r,n))return r[n]}else return}let i=H.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(H.isPlainObject(i)&&H.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(H.hasOwnProp(t,a))return r(n,i);if(H.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(ho(e),ho(t),n,!0)};return H.forEach(go({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=H.hasOwnProp(l,r)?l[r]:i,o=a(H.hasOwnProp(e,r)?e[r]:void 0,H.hasOwnProp(t,r)?t[r]:void 0,r);H.isUndefined(o)&&a!==c||(n[r]=o)}),H.hasOwnProp(t,`validateStatus`)&&H.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(H.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.val
14idateStatus),n}var vo=[`content-type`,`content-length`];function yo(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{vo.includes(t.toLowerCase())&&e.set(t,n)})}var bo=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function xo(e){let t=_o({},e),n=e=>H.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=aa.from(s),t.url=Sa(mo(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=H.getSafeProp(c,`username`)||``,n=H.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?bo(n):``)))}catch(t){throw da.from(t,da.ERR_BAD_OPTION_VALUE,e)}}if(H.isFormData(r)){let e=H.getSafeProp(r,`getHeaders`);Ia.hasStandardBrowserEnv||Ia.hasStandardBrowserWebWorkerEnv||H.isReactNative(r)?s.setContentType(void 0):H.isFunction(e)&&yo(s,e.call(r),n(`formDataHeaderPolicy`))}if(Ia.hasStandardBrowserEnv&&(H.isFunction(i)&&(i=i(t)),i===!0||i==null&&ao(t.url))){let e=a&&o&&oo.read(o);e&&s.set(a,e)}return t}var So=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=xo(e),i=r.data,a=aa.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p,m;function h(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function _(i){if(!g)return;if(g.status===0&&($a(Qa(r.url))||$a(Ia.origin))!==`file`&&!(g.responseURL&&g.responseURL.startsWith(`file:`))){n(new da(`Request aborted`,da.ECONNABORTED,e,g)),h(),g=null;return}try{i?m&&m(i):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let a=aa.from(`getAllResponseHeaders`in g&&g.getAllResponseHeaders());Xa(function(e){t(e),h()},function(e){n(e),h()},{data:!o||o===`text`||o===`json`?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:a,config:e,request:g}),g=null}`onloadend`in g?g.onloadend=_:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith(`file:`))||setTimeout(_)},g.onabort=function(){g&&(n(new da(`Request aborted`,da.ECONNABORTED,e,g)),h(),g=null)},g.onerror=function(t){let r=new da(t&&t.message?t.message:`Network Error`,da.ERR_NETWORK,e,g);r.event=t||null,n(r),h(),g=null},g.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Oa;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new da(t,i.clarifyTimeoutError?da.ETIMEDOUT:da.ECONNABORTED,e,g)),h(),g=null},i===void 0&&a.setContentType(null),`setRequestHeader`in g&&H.forEach(Ki(a),function(e,t){g.setRequestHeader(t,e)}),H.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),o&&o!==`json`&&(g.responseType=r.responseType),c&&([d,p,m]=no(c,!0),g.addEventListener(`progress`,d)),s&&g.upload&&([u,f]=no(s),g.upload.addEventListener(`progress`,u),g.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{g&&(n(!t||t.type?new Ya(null,e,g):t),g.abort(),h(),g=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let v=$a(r.url);if(v&&!Ia.protocols.includes(v)){n(new da(`Unsupported protocol `+v+`:`,da.ERR_BAD_REQUEST,e)),h();return}g.send(i||null)})},Co=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof da?t:new Ya(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new da(`timeout of ${t}ms exceeded`,da.ETIMEDOUT))},t),o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),e=null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>H.asap(o),s},wo=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},To=async function*(e,t){for await(let n of Eo(e))yield*wo(n,t)},Eo=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Do=(e,t,n,r)=>{let i=To(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Oo=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,ko=(e,t,n)=>t+2<n&&Oo(e.charCodeAt(t+1))&&Oo(e.charCodeAt(t+2)),Ao=e=>e<=57?e-48:(e&223)-55,jo=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Mo=e=>e===9||e===10||e===12||e===13||e===32,No=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Po=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Fo=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&ko(e,a,t)&&(o=Ao(e.charCodeAt(a+1))*16+Ao(e.charCodeAt(a+2)),a+=2),!Mo(o)){if(o===61){r++;continue}if(!jo(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?Po(e):No(n)},Io=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&ko(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>
14=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function Lo(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return Io(t===-1?e:e.slice(0,t),Fo)}var Ro=`1.20.0`,zo=65536,Bo={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:Vo}=H,Ho=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Uo=e=>{if(!H.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Wo=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Go=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},Ko=e=>{let t=H.global!==void 0&&H.global!==null?H.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=H.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?Vo(i):typeof fetch==`function`,c=Vo(a),l=Vo(o);if(!s)return!1;let u=s&&Vo(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&Wo(()=>{let e=!1,t=new a(Ia.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&Wo(()=>H.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new da(`Response type '${e}' is not supported`,da.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(H.isBlob(e))return e.size;if(H.isSpecCompliantForm(e))return(await new a(Ia.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(H.isArrayBufferView(e)||H.isArrayBuffer(e))return e.byteLength;if(H.isURLSearchParams(e)&&(e+=``),H.isString(e))return(await d(e)).byteLength},g=async(e,t)=>H.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T,maxRedirects:E}=xo(e),D=H.isNumber(w)&&w>-1,O=H.isNumber(T)&&T>-1,k=t=>H.hasOwnProp(e,t)?e[t]:void 0,A=i||fetch;b=b?(b+``).toLowerCase():`text`;let j=Co([l,d&&d.toAbortSignal()],_),M=null,N=j&&j.unsubscribe&&(()=>{j.unsubscribe()}),P,ee=null,F=()=>new da(`Request body larger than maxBodyLength limit`,da.ERR_BAD_REQUEST,e,M);try{let i,l=k(`auth`);if(l&&(i={username:H.getSafeProp(l,`username`)||``,password:H.getSafeProp(l,`password`)||``}),Go(t)){let e=new URL(t,Ia.origin);!i&&(e.username||e.password)&&(i={username:Uo(e.username),password:Uo(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(Ho((i.username||``)+`:`+(i.password||``))))),D&&typeof t==`string`&&t.startsWith(`data:`)&&Lo(t)>w)throw new da(`maxContentLength size of `+w+` exceeded`,da.ERR_BAD_RESPONSE,e,M);if(O&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(P=e,e>T))throw F()}let d=O&&(H.isReadableStream(s)||H.isStream(s)),_=(e,t,n)=>Do(e,zo,e=>{if(O&&e>T)throw ee=F();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(P=P??await g(x,s),P!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(H.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&ro(P,no(io(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new da(`Stream request bodies are not supported by the current fetch implementation`,da.ERR_NOT_SUPPORT,e,M);H.isString(S)||(S=S?`include`:`omit`);let I=c&&`credentials`in a.prototype;if(H.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+Ro,!1);let te=C==null?C:Object.assign(Object.create(null),C);te&&(delete te.body,delete te.headers,delete te.method,delete te.signal,delete te.duplex,delete te.credentials);let L=Object.assign(Object.create(null),te,{signal:j,method:n.toUpperCase(),headers:Ki(x.normalize()),body:s,duplex:`half`,credentials:I?S:void 0});
14c&&(H.forEach(Bo,(e,t)=>{L[t]===void 0&&(L[t]=e)}),L.signal===void 0&&(L.signal=null),L.body===void 0&&(L.body=null)),E===0&&(L.redirect=`manual`,te&&(te.redirect=`manual`)),M=c&&new a(t,L);let ne=await(c?A(M,te):A(t,L)),R=aa.from(ne.headers);if(D){let t=H.toFiniteNumber(R.getContentLength());if(t!=null&&t>w)throw new da(`maxContentLength size of `+w+` exceeded`,da.ERR_BAD_RESPONSE,e,M)}let re=p&&(b===`stream`||b===`response`);if(p&&ne.body&&(v||D||re&&N)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=ne[e]});let n=H.toFiniteNumber(R.getContentLength()),[r,i]=v&&ro(n,no(io(v),!0))||[],a=0;ne=new o(Do(ne.body,zo,t=>{if(D&&(a=t,a>w))throw new da(`maxContentLength size of `+w+` exceeded`,da.ERR_BAD_RESPONSE,e,M);r&&r(t)},()=>{i&&i(),N&&N()}),t)}b=b||`text`;let z=await m[H.findKey(m,b)||`text`](ne,e);if(D&&!p&&!re){let t;if(z!=null&&(typeof z.byteLength==`number`?t=z.byteLength:typeof z.size==`number`?t=z.size:typeof z==`string`&&(t=typeof r==`function`?new r().encode(z).byteLength:z.length)),typeof t==`number`&&t>w)throw new da(`maxContentLength size of `+w+` exceeded`,da.ERR_BAD_RESPONSE,e,M)}return!re&&N&&N(),await new Promise((t,n)=>{Xa(t,n,{data:z,headers:aa.from(ne.headers),status:ne.status,statusText:ne.statusText,config:e,request:M})})}catch(t){if(N&&N(),j&&j.aborted&&j.reason instanceof da){let n=j.reason;throw n.config=e,M&&(n.request=M),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(ee)throw M&&!ee.request&&(ee.request=M),ee;if(t instanceof da)throw M&&!t.request&&(t.request=M),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new da(`Network Error`,da.ERR_NETWORK,e,M,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw da.from(t,t&&t.code,e,M,t&&t.response)}}},qo=new Map,Jo=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=qo;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Ko(t)),l=c;return c};Jo();var Yo={http:null,xhr:So,fetch:{get:Jo}};H.forEach(Yo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Xo=e=>`- ${e}`,Zo=e=>H.isFunction(e)||e===null||e===!1;function Qo(e,t){e=H.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Zo(r)&&(i=Yo[(n=String(r)).toLowerCase()],i===void 0))throw new da(`Unknown adapter '${n}'`);if(i&&(H.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new da(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since : 15`+e.map(Xo).join(` 16`):` `+Xo(e[0]):`as no adapter specified`),da.ERR_NOT_SUPPORT)}return i}var $o={getAdapter:Qo,adapters:Yo};function es(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ya(null,e)}function ts(e){let t=H.toSafeFlatObject(e);return es(t),t.headers=aa.from(H.getSafeProp(t,`headers`)),t.data=qa.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1),$o.getAdapter(t.adapter||Ka.adapter,t)(t).then(function(e){es(t),t.response=e;try{e.data=qa.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=aa.from(e.headers),e},function(e){if(!Ja(e)&&(es(t),e&&e.response)){t.response=e.response;try{e.response.data=qa.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=aa.from(e.response.headers)}return Promise.reject(e)})}var ns={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{ns[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var rs={};ns.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Ro+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new da(r(i,` has been removed`+(t?` in `+t:``)),da.ERR_DEPRECATED);return t&&!rs[i]&&(rs[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},ns.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}
16`),!0)};function is(e,t,n){if(typeof e!=`object`||!e)throw new da(`options must be an object`,da.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new da(`option `+a+` must be `+n,da.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new da(`Unknown option `+a,da.ERR_BAD_OPTION)}}var as={assertOptions:is,validators:ns},os=as.validators,ss=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Da,response:new Da}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r=``;if(typeof n==`string`){let e=n.indexOf(` 17`);r=e===-1?``:n.slice(e+1)}if(!e.stack)e.stack=r;else if(r){let t=r.indexOf(` 18`),n=t===-1?-1:r.indexOf(` 19`,t+1),i=n===-1?``:r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+=` 20`+r)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t=t||{},t.url=e):t=e||{},t=_o(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&as.assertOptions(n,{silentJSONParsing:os.transitional(os.boolean),forcedJSONParsing:os.transitional(os.boolean),clarifyTimeoutError:os.transitional(os.boolean),legacyInterceptorReqResOrdering:os.transitional(os.boolean),advertiseZstdAcceptEncoding:os.transitional(os.boolean),validateStatusUndefinedResolves:os.transitional(os.boolean)},!1),r!=null&&(H.isFunction(r)?t.paramsSerializer={serialize:r}:as.assertOptions(r,{encode:os.function,serialize:os.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),as.assertOptions(t,{baseUrl:os.spelling(`baseURL`),withXsrfToken:os.spelling(`withXSRFToken`)},!0),t.method=(H.getSafeProp(t,`method`)||H.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=i&&H.merge(i.common,i[t.method]);i&&H.forEach(Ua.concat(`common`),e=>{delete i[e]}),t.headers=aa.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s=s&&e.synchronous;let n=t.transitional||Oa;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[ts.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);H.isThenable(n)&&(l=Promise.resolve(n).then(()=>ts.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=ts.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=_o(this.defaults,e),Sa(mo(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};H.forEach([`delete`,`get`,`head`,`options`],function(e){ss.prototype[e]=function(t,n){return this.request(_o(n||{},{method:e,url:t,data:n&&H.hasOwnProp(n,`data`)?n.data:void 0}))}}),H.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(_o(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}ss.prototype[e]=t(),e!==`query`&&(ss.prototype[e+`Form`]=t(!0))});var cs=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Ya(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function ls(e){return function(t){return e.apply(null,t)}}function us(e){return H.isObject(e)&&e.isAxiosError===!0}var ds={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
20setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ds).forEach(([e,t])=>{ds[t]===void 0&&(ds[t]=e)});function fs(e){let t=new ss(e),n=_r(ss.prototype.request,t);return H.extend(n,ss.prototype,t,{allOwnKeys:!0}),H.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return fs(_o(e,t))},n}var ps=fs(Ka);ps.Axios=ss,ps.CanceledError=Ya,ps.CancelToken=cs,ps.isCancel=Ja,ps.VERSION=Ro,ps.toFormData=_a,ps.AxiosError=da,ps.Cancel=ps.CanceledError,ps.all=function(e){return Promise.all(e)},ps.spread=ls,ps.isAxiosError=us,ps.mergeConfig=_o,ps.AxiosHeaders=aa,ps.formToJSON=e=>Ha(H.isHTMLForm(e)?new FormData(e):e),ps.getAdapter=$o.getAdapter,ps.HttpStatusCode=ds,ps.default=ps;var ms=t(n(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c={}.Object===Object&&{},l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h}))(),1),hs,gs;function _s(e){if(e==null)return``;if(typeof window>`u`)return e;let t=window.__TRANSLATIONS;if(!t)return e;let n=t[e];if(n!==void 0)return n;let r=ys(e);return r.length===0?e:vs(t).get(r)??e}function vs(e){if(hs===e&&gs!==void 0)return gs;hs=e;let t=new Map;return Object.entries(e).forEach(([e,n])=>{let r=ys(e);r.length>0&&!t.has(r)&&t.set(r,n)}),gs=t,gs}function ys(e){return bs(e).replace(/<[^>]+>/g,` `).replace(/\u00a0/g,` `).replace(/\s+([.,;:!?])/g,`$1`).replace(/\s+/g,` `).trim().normalize(`NFC`)}function bs(e){if(!e.includes(`&`)||typeof document>`u`)return e;let t=document.createElement(`textarea`);return t.innerHTML=e,t.value}var U=r();function xs(e){var t;let[n,r]=(0,g.useState)(e.value||``),[i,a]=(0,g.useState)([]),[o,s]=(0,g.useState)(!1),[c,l]=(0,g.useState)(!1),[u,d]=(0,g.useState)(``),f=_s(e.placeholderText||((t=e.element)==null?void 0:t.getAttribute(`placeholder`))),p=(0,g.useCallback)((0,ms.default)(e=>d(e),600),[]),m=e=>{l(!0),r(e),p(e)},h=e=>{e&&e.relatedTarget&&(e.relatedTarget.classList.contains(`autocomplete__input`)||e.relatedTarget.classList.contains(`autocomplete__option`))||s(!1)},_=()=>{i&&i.length>0&&s(!0)};return(0,g.useEffect)(()=>{let t=ps.CancelToken.source();return u?ps.get(`/${e.lang||`nl`}/autocomplete?term=${u}`,{cancelToken:t.token}).then(e=>{let t=e.data;t.length>0?s(!0):s(!1),a(t),l(!1)}).catch(e=>{console.log(e)}):(a([]),s(!1)),function(){t.cancel(),p.cancel()}},[u]),e.element&&(o?e.element.classList.add(`search__input--autocompleted`):e.element.classList.remove(`search__input--autocompleted`),e.element.autocomplete=`off`,e.element.placeholder=f,e.element.oninput=e=>m(e.target.value),e.element.onfocus=_,e.element.onblur=h),(0,U.jsxs)(U.Fragment,{children:[!e.element&&(0,U.jsx)(`input`,{autoComplete:`off`,type:e.type,className:(0,sr.default)(`${e.class} autocomplete__input`,{"search__input--autocompleted":o}),value:n,onChange:e=>m(e.target.value),onFocus:_,onBlur:()=>{window.setTimeout(h,100)},placeholder:f,name:e.fieldName}),o&&(0,U.jsx)(`div`,{className:`search-suggestions`,children:(0,U.jsx)(`ul`,{children:i.map((t,i)=>(0,U.jsxs)(`li`,{className:`search-suggestion`,children:[(0,U.jsx)(`span`,{className:`search-suggestion__decoration`}),(0,U.jsx)(`a`,{className:`autocomplete__option`,onFocus:()=>r(t),tabIndex:`0`,"data-suffix":e.suffix?` - ${e.suffix}`:``,onClick:()=>{e.element?(e.element.value=n,e.element.form.submit()):e.formName?document.querySelector(`form[name=${e.formName}]`).submit():r(t),e.updateTerm&&e.updateTerm(t),h()},children:t})]},`${t}-${i}`))})})]})}var Ss=g.memo(function(e){return e.overlayContent?(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(`div`,{dangerouslySetInnerHTML:{__html:e.overlayContent}})}):(0,U.jsx)(`div`,{children:`Content not correctly provided or absent`})},(e,t)=>e.overlayContent===t.overlayContent);function Cs(e){return(0,U.jsx)(U.Fragment,{})}function ws(e,t){return`items`in e&&`MenuContent`in e.items&&t in e.items.MenuContent&&`content`in e.items.MenuContent[t]?e.items.MenuContent[t].content:`-`}function Ts(e){return(0,U.jsx)(Ss,{...e,overlayContent:ws(e.reduxState,`cookies`)})}function Es(e){return(0,U.jsx)(Ss,{...e,overlayContent:ws(e.reduxState,`contact`)})}function Ds(e){return(0,U.jsx)(Ss,{...e,overlayContent:ws(e.reduxState,`practical`)})}function Os(e){return(0,U.jsx)(Ss,{...e,overlayContent:ws(e.reduxState,`appointment`)})}function ks(e){return(0,U.jsx)(Ss,{...e,overlayContent:ws(e.reduxState,`handleiding`)})}function As(e){return(0,U.jsx)(Ss,{...e,overlayContent:ws(e.reduxState,`overigesites`)})}function js(e){var t;let n=L(e=>e.menuState.overlayTab),r=(t=e.reduxState.items)==null?void 0:t.MenuContent;if(!r||Object.keys(r).length===0)return console.error(`Menu: MenuContent not configured`),(0,U.jsx)(`div`,{children:`Menu: content not configured`});let i=n||r[Object.keys(r)[0]].identifier;
20if(!(i in r))return console.log(`Menu: Tab not configured`),(0,U.jsx)(`div`,{children:`Menu: Tab not configured`});let a=`autocomplete-search`;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`search`,{className:`overlay-search-container`,children:(0,U.jsxs)(`form`,{method:`get`,action:`/${e.lang}/${e.search}`,name:a,children:[(0,U.jsx)(xs,{fieldName:`q`,formName:a,lang:e.lang,type:`search`,class:`overlay-search`,suffix:e.suffix,placeholderText:e.placeholderText}),(0,U.jsx)(`button`,{type:`submit`,className:`overlay-search__submit`,children:e.searchButtonName})]})}),(0,U.jsx)(`div`,{className:`overlay-content`,children:(0,U.jsx)(Ss,{...e,childNodes:e.childNodes,overlayContent:r[i].content})})]})}function Ms(e){let t=e.label?e.label:``,n=e.label?`overlay-button__label`:``;return(0,U.jsxs)(`li`,{className:`overlay-button overlay-button--active`,children:[(0,U.jsx)(`input`,{onChange:()=>e.click(),name:`category`,type:`radio`,className:`overlay-button__radio`,id:e.identifier,value:e.identifier,checked:e.checked}),(0,U.jsx)(`label`,{htmlFor:e.identifier,className:n,children:t})]})}function Ns(e){let t=F(),n=L(e=>e.menuState.overlayTab),r=e.reduxState.items.TabContent;r===void 0&&(r=e.reduxState.items.MenuContent);let i=r?Object.keys(r):[],a=n&&r!=null&&r[n]?n:i.length>0?r[i[0]].identifier:null,o=`autocomplete-search`;return(0,U.jsxs)(U.Fragment,{children:[a&&(0,U.jsx)(`div`,{className:(0,sr.default)(`radio-helper`,{"radio-helper--active":e.radioHelperActive}),children:(0,U.jsxs)(`div`,{className:`radio-helper-content`,children:[(0,U.jsx)(`div`,{className:`radio-helper__text`,children:`Gebruik uw pijltjestoetsen om snel te navigeren tussen de tabbladen`}),(0,U.jsx)(`div`,{className:`radio-helper__icon`})]})}),(0,U.jsx)(`div`,{className:`overlay-search-container`,children:(0,U.jsxs)(`form`,{method:`get`,action:`/${e.lang}/${e.search}`,name:o,children:[(0,U.jsx)(xs,{formName:o,fieldName:`q`,lang:e.lang,type:`search`,class:`overlay-search`,suffix:e.suffix,placeholderText:e.placeholderText}),(0,U.jsx)(`button`,{type:`submit`,className:`overlay-search__submit`,children:e.searchButtonName})]})}),a&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`ul`,{className:`overlay-filters`,children:i.map(e=>{let n=r[e];return(0,U.jsx)(Ms,{...n,click:()=>t(pr(n.identifier,!0)),checked:a===n.identifier},`tab-list-item-${n.identifier}`)})}),(0,U.jsx)(`div`,{className:`overlay-content`,children:(0,U.jsx)(Ss,{...e,childNodes:e.childNodes,overlayContent:r[a].content})})]})]})}function Ps(e){let t=document.querySelectorAll(`.main-content`)[0],n=document.querySelector(`body`),r=[`menu__close`,`overlay-search`,`overlay-search__submit`,`overlay-button__radio`,`overlay-list__link`,`autocomplete__option`],[i,a]=(0,g.useState)(!1),o=(0,g.useRef)(null),s=(0,g.useRef)(null),c=L(e=>e.menuState),l=L(e=>e.focusState),u=document.querySelectorAll(`.js-overlay`);(0,g.useEffect)(()=>{!r.some(e=>l.item.classList.indexOf(e)>-1)&&c.overlays.CookiesMenu===!1&&(_(u,!1),d(fr(`main`,!1)))},[r.some(e=>l.item.classList.indexOf(e)>-1)]),(0,g.useEffect)(()=>{c.overlays.CookiesMenu&&v()},[c.overlays.CookiesMenu]);let d=F(),f=!1,p=!1,m=`overlayTab`in c&&c.overlayTab?c.overlayTab:!1,h={EmptyMenu:Cs,MainMenu:Ns,AppointmentMenu:Os,PracticalMenu:Ds,ContactMenu:Es,SingleMenu:js,HandleidingMenu:ks,OverigeSitesMenu:As,CookiesMenu:Ts};function _(e,t=!1){e.forEach(e=>{let{menuOverlay:n}=e.dataset,r=`menuOverlayTab`in e.dataset&&e.dataset.menuOverlayTab;e.classList.remove(`has-active-overlay`),n===t&&(r?m&&r===m&&e.classList.add(`has-active-overlay`):m||e.classList.add(`has-active-overlay`))})}function v(){document.querySelectorAll(`#cookieConsent a[data-cookie]`).forEach(e=>{e.addEventListener(`click`,()=>{window.localStorage.setItem(`consent`,e.dataset.cookie),document.cookie=e.dataset.cookie,location.reload()})})}`overlays`in c&&Object.keys(c.overlays).length>0&&(f=!0),f?(t.classList.add(`main-content--blurred`),n.classList.add(`scroll-locked`),p=Object.keys(c.overlays)[0]):(t.classList.remove(`main-content--blurred`),n.classList.remove(`scroll-locked`));let y=Cs;if(p){if(p in h?y=h[p]:console.log(`menu not configured: `,p),p===`CookiesMenu`&&window.umcuUseNewCookieConsent)return null;_(u,p)}return(0,g.useEffect)(()=>{s!=null&&s!=null&&s.current!=null&&s.current!=null&&s.current.focus(),o.current.addEventListener(`focusin`,()=>{document.activeElement.classList.contains(`overlay-button__radio`)?i||a(!0):a(!1)})},[p]),(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(`nav`,{id:`navigation`,className:`menu-wrapper`,"aria-hidden":!f,"aria-label":`Menu`,children:(0,U.jsxs)(`div`,{className:`menu`,ref:o,children:[p!==`CookiesMenu`&&(0,U.jsx)(`button`,{type:`button`,ref:s,className:`menu__close`,onClick:()=>{_(u,!1),d(fr(`main`,!1))},"aria-label":`Sluiten`}),(0,U.jsx)(`div`,{className:`content-wrapper`,children:(0,U.jsx)(`div`,{className:(0,sr.default)(`overlay-container`,{"overlay-container--cookies":p==`CookiesMenu`,"overlay-container--main-menu":p==`MainMenu`}),children:(0,U.jsx)(y,{...e,reduxState:c,childNodes:e.childNodes,c
20omponentName:p,radioHelperActive:i})})})]})})})}function Fs(e){let t={};document.querySelectorAll(`.overlay-menu-content`).forEach(e=>{if(`menuOverlayType`in e.dataset&&`menuOverlayIdentifier`in e.dataset){let n=e.dataset.menuOverlayIdentifier,r=e.dataset.menuOverlayType;r in t||(t[r]={}),t[r][n]={label:`menuOverlayTitle`in e.dataset?e.dataset.menuOverlayTitle:`-`,content:e.innerHTML,identifier:n,type:r}}e.parentNode.removeChild(e)}),e.dispatch(mr(t))}function Is(e){document.querySelectorAll(`.js-overlay`).forEach(t=>{let n=`menuOverlay`in t.dataset&&t.dataset.menuOverlay,r=`menuOverlay`in t.dataset&&t.dataset.menuOverlayTab;n&&t.addEventListener(`click`,t=>{e.dispatch(pr(r)),e.dispatch(fr(n))})})}function Ls(e){document.querySelector(`body`).addEventListener(`focusin`,t=>{e.dispatch(gr(t.target))})}function Rs(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var zs=typeof Symbol==`function`&&Symbol.observable||`@@observable`,Bs=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Vs={INIT:`@@redux/INIT${Bs()}`,REPLACE:`@@redux/REPLACE${Bs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Bs()}`};function Hs(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Us(e,t,n){if(typeof e!=`function`)throw Error(Rs(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Rs(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Rs(1));return n(Us)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(Rs(3));return i}function d(e){if(typeof e!=`function`)throw Error(Rs(4));if(c)throw Error(Rs(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Rs(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!Hs(e))throw Error(Rs(7));if(e.type===void 0)throw Error(Rs(8));if(typeof e.type!=`string`)throw Error(Rs(17));if(c)throw Error(Rs(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(Rs(10));r=e,f({type:Vs.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Rs(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[zs](){return this}}}return f({type:Vs.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[zs]:m}}function Ws(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Vs.INIT})===void 0)throw Error(Rs(12));if(n(void 0,{type:Vs.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Rs(13))})}function Gs(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{Ws(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(Rs(14));o[s]=u,a=a||u!==l}return a=a||r.length!==Object.keys(e).length,a?o:e}}function Ks(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function qs(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Rs(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=Ks(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function Js(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Ys=Js(),Xs={opt:!0,active:!1,overlays:{},overlayItem:!1};function Zs(e=Xs,t){let n={...e};switch(t.type){case`OPT`:return n={...n,opt:t.opt},n;case cr:return n={...n,active:t.active},n;case lr:return t.active===!0?{...n,overlays:{[t.identifier]:t.active}}:{...n,overlays:{}};case ur:return t.active===!0?{...n,overlayTab:t.item}:{...n,overlayTab:!1};case dr:return{...n,items:t.items};default:return n}}function Qs(e={item:{classList:[],tagName:``,type:``,id:``}},t){switch(t.type){case hr:return{...e,item:t.item};default:return e}}function $s(e={},t){return t.type,e}var ec=Gs({componentConfig:$s,menuState:Zs,focusState:Qs}),tc=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Ks;function nc(e){return Us(ec,e,tc(qs(Ys)))}(function(){if(typeof window!=`object`)return;if(`IntersectionObserver`in window&&`IntersectionObserverEntry`in window&&`intersectionRatio`in window.IntersectionObserverEntry.prototype){`isIntersecting`in window.IntersectionObserverEntry.prototype||Ob
20ject.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch{return null}}var t=(function(t){for(var n=t,r=e(n);r;)n=r.ownerDocument,r=e(n);return n})(window.document),n=[],r=null,i=null;function a(e){this.time=e.time,this.target=e.target,this.rootBounds=m(e.rootBounds),this.boundingClientRect=m(e.boundingClientRect),this.intersectionRect=m(e.intersectionRect||p()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):+!!this.isIntersecting}function o(e,t){var n=t||{};if(typeof e!=`function`)throw Error(`callback must be a function`);if(n.root&&n.root.nodeType!=1&&n.root.nodeType!=9)throw Error(`root must be a Document or Element`);this._checkForIntersections=c(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(` `),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return r||(r=function(e,t){i=!e||!t?p():h(e,t),n.forEach(function(e){e._checkForIntersections()})}),r},o._resetCrossOriginUpdater=function(){r=null,i=null},o.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!(e&&e.nodeType==1))throw Error(`target must be an Element`);this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},o.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if(typeof e!=`number`||isNaN(e)||e<0||e>1)throw Error(`threshold must be a number between 0 and 1 inclusively`);return e!==n[t-1]})},o.prototype._parseRootMargin=function(e){var t=(e||`0px`).split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw Error(`rootMargin must be specified in pixels or percent`);return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},o.prototype._monitorIntersections=function(n){var r=n.defaultView;if(r&&this._monitoringDocuments.indexOf(n)==-1){var i=this._checkForIntersections,a=null,o=null;if(this.POLL_INTERVAL?a=r.setInterval(i,this.POLL_INTERVAL):(l(r,`resize`,i,!0),l(n,`scroll`,i,!0),this.USE_MUTATION_OBSERVER&&`MutationObserver`in r&&(o=new r.MutationObserver(i),o.observe(n,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(n),this._monitoringUnsubscribes.push(function(){var e=n.defaultView;e&&(a&&e.clearInterval(a),u(e,`resize`,i,!0)),u(n,`scroll`,i,!0),o&&o.disconnect()}),n!=(this.root&&(this.root.ownerDocument||this.root)||t)){var s=e(n);s&&this._monitorIntersections(s.ownerDocument)}}},o.prototype._unmonitorIntersections=function(n){var r=this._monitoringDocuments.indexOf(n);if(r!=-1){var i=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some(function(t){var r=t.element.ownerDocument;if(r==n)return!0;for(;r&&r!=i;){var a=e(r);if(r=a&&a.ownerDocument,r==n)return!0}return!1})){var a=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),a(),n!=i){var o=e(n);o&&this._unmonitorIntersections(o.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},o.prototype._checkForIntersections=function(){if(!(!this.root&&r&&!i)){var e=this._rootIsInDom(),t=e?this._getRootRect():p();
20this._observationTargets.forEach(function(n){var i=n.element,o=f(i),c=this._rootContainsTarget(i),l=n.entry,u=e&&c&&this._computeTargetAndRootIntersection(i,o,t),d=null;this._rootContainsTarget(i)?(!r||this.root)&&(d=t):d=p();var m=n.entry=new a({time:s(),target:i,boundingClientRect:o,rootBounds:d,intersectionRect:u});l?e&&c?this._hasCrossedThreshold(l,m)&&this._queuedEntries.push(m):l&&l.isIntersecting&&this._queuedEntries.push(m):this._queuedEntries.push(m)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},o.prototype._computeTargetAndRootIntersection=function(e,n,a){if(window.getComputedStyle(e).display!=`none`){for(var o=n,s=_(e),c=!1;!c&&s;){var l=null,u=s.nodeType==1?window.getComputedStyle(s):{};if(u.display==`none`)return null;if(s==this.root||s.nodeType==9){if(c=!0,s==this.root||s==t)r&&!this.root?!i||i.width==0&&i.height==0?(s=null,l=null,o=null):l=i:l=a;else{var p=_(s),m=p&&f(p),g=p&&this._computeTargetAndRootIntersection(p,m,a);m&&g?(s=p,l=h(m,g)):(s=null,o=null)}}else{var v=s.ownerDocument;s!=v.body&&s!=v.documentElement&&u.overflow!=`visible`&&(l=f(s))}if(l&&(o=d(l,o)),!o)break;s=s&&_(s)}return o}},o.prototype._getRootRect=function(){var e;if(this.root&&!v(this.root))e=f(this.root);else{var n=v(this.root)?this.root:t,r=n.documentElement,i=n.body;e={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},o.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return t.unit==`px`?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var a=this.thresholds[i];if(a==n||a==r||a<n!=a<r)return!0}},o.prototype._rootIsInDom=function(){return!this.root||g(t,this.root)},o.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return g(n,e)&&(!this.root||n==e.ownerDocument)},o.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},o.prototype._unregisterInstance=function(){var e=n.indexOf(this);e!=-1&&n.splice(e,1)};function s(){return window.performance&&performance.now&&performance.now()}function c(e,t){var n=null;return function(){n||(n=setTimeout(function(){e(),n=null},t))}}function l(e,t,n,r){typeof e.addEventListener==`function`?e.addEventListener(t,n,r||!1):typeof e.attachEvent==`function`&&e.attachEvent(`on`+t,n)}function u(e,t,n,r){typeof e.removeEventListener==`function`?e.removeEventListener(t,n,r||!1):typeof e.detachEvent==`function`&&e.detachEvent(`on`+t,n)}function d(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),a=Math.min(e.right,t.right),o=a-i,s=r-n;return o>=0&&s>=0&&{top:n,bottom:r,left:i,right:a,width:o,height:s}||null}function f(e){var t;try{t=e.getBoundingClientRect()}catch{}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function m(e){return!e||`x`in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function h(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function g(e,t){for(var n=t;n;){if(n==e)return!0;n=_(n)}return!1}function _(n){var r=n.parentNode;return n.nodeType==9&&n!=t?e(n):(r&&r.assignedSlot&&(r=r.assignedSlot.parentNode),r&&r.nodeType==11&&r.host?r.host:r)}function v(e){return e&&e.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=a})();var rc=function(e){if(!e||typeof e!=`function`)return;let t;window.addEventListener(`scroll`,n=>{window.clearTimeout(t),t=setTimeout(()=>{e()},66)},!1)},ic=()=>{let e=`card-toc__item--active`,t=`visible`,n,r=!1,i,a;rc(()=>{r&&(i!==a&&(i=a,document.querySelectorAll(`.card-toc__item`).forEach(t=>{t.classList.remove(e)}),i.classList.add(e)),r=!1)});function o(e){return e?e.replace(/(\r\n|\n|\r|\s)/gm,``):null}let s=r=>{if(!r)return;let a=r.querySelector(`.${t}`);if(r.querySelectorAll(`.${e}`).forEach(t=>{t.classList.remove(e)}),a){let t=r.querySelector(`a[href="#${o(a.getAttribute(`id`))}"]`);t&&(t.parentNode.classList.add(e),i=t.parentNode)}if(!a&&n){let t=r.querySelector(`a[href="#${o(n)}"]`);t&&(t.parentNode.classList.add(e),i=t.parentNode)}},c=new IntersectionObserver((e,r)=>
20{e.forEach(e=>{e.target.parentNode.hasAttribute(`id`)&&(e.isIntersecting?(n=e.target.parentNode.getAttribute(`id`),e.target.parentNode.classList.add(t)):e.target.parentNode.classList.remove(t))}),e.length>0&&s(e[0].target.closest(`.card`))},{threshold:[0],rootMargin:`100px`});function l(){document.querySelectorAll(`.card .heading-beta, .card .heading-alpha`).forEach(e=>{c.observe(e);let t=document.querySelector(`a[href="#${o(e.parentNode.id)}"]`);t&&t.addEventListener(`click`,e=>{r=!0,a=e.target.parentNode,window.scrollTo(window.scrollX,window.scrollY-1),window.scrollTo(window.scrollX,window.scrollY+1)})})}return{enableTOC:l}},ac=()=>{function e(e){let t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}}function t(t){let n=e(document.querySelector(t));window.scroll({top:n.top+-120,left:0,behavior:`smooth`})}window.location.hash&&!window.location.hash.match(/=/)&&document.querySelector(window.location.hash)&&(window.scrollTo(0,0),window.addEventListener(`load`,()=>{t(window.location.hash)})),document.addEventListener(`click`,e=>{if(e.target.classList.contains(`card-toc__link`)&&e.preventDefault(),e.target.matches(`a`)){let n=e.target.getAttribute(`href`);if(n){let r=n.substr(1);if(n.indexOf(`#`)===-1||r===``||e.target.classList.contains(`js-no-smooth`))return!0;document.querySelector(n)&&t(n)}}})};Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null});var oc=(e,t=200)=>{e.style.transitionProperty=`height, margin, padding`,e.style.transitionDuration=`${t}ms`,e.style.boxSizing=`border-box`,e.style.height=`${e.offsetHeight}px`,e.offsetHeight,e.style.overflow=`hidden`,e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout(()=>{e.style.display=`none`,e.style.removeProperty(`height`),e.style.removeProperty(`padding-top`),e.style.removeProperty(`padding-bottom`),e.style.removeProperty(`margin-top`),e.style.removeProperty(`margin-bottom`),e.style.removeProperty(`overflow`),e.style.removeProperty(`transition-duration`),e.style.removeProperty(`transition-property`)},t)},sc=(e,t=200)=>{e.style.removeProperty(`display`);let{display:n}=window.getComputedStyle(e);n===`none`&&(n=`block`),e.style.display=n;let r=e.offsetHeight;e.style.overflow=`hidden`,e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing=`border-box`,e.style.transitionProperty=`height, margin, padding`,e.style.transitionDuration=`${t}ms`,e.style.height=`${r}px`,e.style.removeProperty(`padding-top`),e.style.removeProperty(`padding-bottom`),e.style.removeProperty(`margin-top`),e.style.removeProperty(`margin-bottom`),window.setTimeout(()=>{e.style.removeProperty(`height`),e.style.removeProperty(`overflow`),e.style.removeProperty(`transition-duration`),e.style.removeProperty(`transition-property`)},t)},cc=(e,t=200)=>window.getComputedStyle(e).display===`none`?sc(e,t):oc(e,t),lc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define(n):typeof t==`object`&&t.exports?t.exports=n():e.EvEmitter=n()})(typeof window<`u`?window:e,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(!(!e||!t)){var n=this._events=this._events||{},r=n[e]=n[e]||[];return r.indexOf(t)==-1&&r.push(t),this}},t.once=function(e,t){if(!(!e||!t)){this.on(e,t);var n=this._onceEvents=this._onceEvents||{},r=n[e]=n[e]||{};return r[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(!(!n||!n.length)){var r=n.indexOf(t);return r!=-1&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(!(!n||!n.length)){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var a=n[i];r&&r[a]&&(this.off(e,a),delete r[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})})),uc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define(n):typeof t==`object`&&t.exports?t.exports=n():e.getSize=n()})(window,function(){function e(e){var t=parseFloat(e);return e.indexOf(`%`)==-1&&!isNaN(t)&&t}function t(){}var n=typeof console>`u`?t:function(e){console.error(e)},r=[`paddingLeft`,`paddingRight`,`paddingTop`,`paddingBottom`,`marginLeft`,`marginRight`,`marginTop`,`marginBottom`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`borderBottomWidth`],i=r.length;function a(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<i;t++){var n=r[t];e[n]=0}return e}function o(e){var t=getComputedStyle(e);return t||n(`Style returned `+t+`. Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1`),t}var s=!1,c;function l(){if(!s){s=!0;var t=document.createElement(`div`);t.style.width=`200px`,t.style.padding=`1px 2px 3px 4px`,t.style.borderStyle=`solid`,t.style.borderWidth=`1px 2px 3px 4px`,t.style.boxSizing=`border-box`;var n=document.body||document.documentElement;n.appendChild(t);var r=o(t);c=Math.round(e(r.width))==200,u.isBoxSizeOuter=c,n.removeChild(t)}}function u(t){if(l(),typeof t==`string`&&(t=document.querySelector(t)),!(!t||typeof t!=`object`||!t.nodeType)){var n=o(t);if(n.display==`none`)return a();var s={};s.width=t.offsetWidth,s.height=t.offsetHeight;for(var u=s.isBorderBox=n.boxSizing==`border-box`,d=0;d<i;d++){var f=r[d],p=n[f],m=parseFloat(p);s[f]=isNaN(m)?0:m}var h=s.paddingLeft+s.paddingRight,g=s.paddingTop+s.paddingBottom,_=s.marginLeft+s.marginRight,v=s.marginTop+s.marginBottom,y=s.borderLeftWidth+s.borderRightWidth,b=s.borderTopWidth+s.borderBottomWidth,x=u&&c,S=e(n.width);S!==!1&&(s.width=S+(x?0:h+y));var C=e(n.height);return C!==!1&&(s.height=C+(x?0:g+b)),s.innerWidth=s.width-(h+y),s.innerHeight=s.height-(g+b),s.outerWidth=s.width+_,s.outerHeight=s.height+v,s}}return u})})),dc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define(n):typeof t==`object`&&t.exports?t.exports=n():e.matchesSelector=n()})(window,function(){var e=(function(){var e=window.Element.prototype;if(e.matches)return`matches`;if(e.matchesSelector)return`matchesSelector`;for(var t=[`webkit`,`moz`,`ms`,`o`],n=0;n<t.length;n++){var r=t[n]+`MatchesSelector`;if(e[r])return r}})();return function(t,n){return t[e](n)}})})),fc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`desandro-matches-selector/matches-selector`],function(t){return n(e,t)}):typeof t==`object`&&t.exports?t.exports=n(e,dc()):e.fizzyUIUtils=n(e,e.matchesSelector)})(window,function(e,t){var n={};n.extend=function(e,t){for(var n in t)e[n]=t[n];return e},n.modulo=function(e,t){return(e%t+t)%t};var r=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:e==null?[]:typeof e==`object`&&typeof e.length==`number`?r.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);n!=-1&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return typeof e==`string`?document.querySelector(e):e},n.handleEvent=function(e){var t=`on`+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,r){e=n.makeArray(e);var i=[];return e.forEach(function(e){if(e instanceof HTMLElement){if(!r){i.push(e);return}t(e,r)&&i.push(e);for(var n=e.querySelectorAll(r),a=0;a<n.length;a++)i.push(n[a])}}),i},n.debounceMethod=function(e,t,n){n=n||100;var r=e.prototype[t],i=t+`Timeout`;e.prototype[t]=function(){var e=this[i];clearTimeout(e);var t=arguments,a=this;this[i]=setTimeout(function(){r.apply(a,t),delete a[i]},n)}},n.docReady=function(e){var t=document.readyState;t==`complete`||t==`interactive`?setTimeout(e):document.addEventListener(`DOMContentLoaded`,e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,n){return t+`-`+n}).toLowerCase()};var i=e.console;return n.htmlInit=function(t,r){n.docReady(function(){var a=n.toDashed(r),o=`data-`+a,s=document.querySelectorAll(`[`+o+`]`),c=document.querySelectorAll(`.js-`+a),l=n.makeArray(s).concat(n.makeArray(c)),u=o+`-options`,d=e.jQuery;l.forEach(function(e){var n=e.getAttribute(o)||e.getAttribute(u),a;try{a=n&&JSON.parse(n)}catch(t){i&&i.error(`Error parsing `+o+` on `+e.className+`: `+t);return}var s=new t(e,a);d&&d.data(e,r,s)})})},n})})),pc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`get-size/get-size`],function(t){return n(e,t)}):typeof t==`object`&&t.exports?t.exports=n(e,uc()):(e.Flickity=e.Flickity||{},e.Flickity.Cell=n(e,e.getSize))})(window,function(e,t){function n(e,t){this.element=e,this.parent=t,this.create()}var r=n.prototype;return r.create=function(){this.element.style.position=`absolute`,this.element.setAttribute(`aria-hidden`,`true`),this.x=0,this.shift=0,this.element.style[this.parent.originSide]=0},r.destroy=function(){this.unselect(),this.element.style.position=``;var e=this.parent.originSide;this.element.style[e]=``,this.element.style.transform=``,this.element.removeAttribute(`aria-hidden`)},r.getSize=function(){this.size=t(this.element)},r.setPosition=function(e){this.x=e,this.updateTarget(),this.renderPosition(e)},r.updateTarget=r.setDefaultTarget=function(){var e=this.parent.originSide==`left`?`marginLeft`:`marginRight`;this.target=this.x+this.size[e]+this.size.width*this.parent.cellAlign},r.renderPosition=function(e){var t=this.parent.originSide===`left`?1:-1,n=this.parent.options.percentPosition?e*t*(this.parent.size.innerWidth/this.size.width):e*t;this.element.style.transform=`translateX(`+this.parent.getPositionValue(n)+`)`},r.select=function(){this.element.classList.add(`is-selected`),this.element.removeAttribute(`aria-hidden`)},r.unselect=function(){this.element.classList.remove(`is-selected`),this.element.setAttribute(`aria-hidden`,`true`)},r.wrapShift=function(e){this.shift=e,this.renderPosition(this.x+this.parent.slideableWidth*e)},r.remove=function(){this.element.parentNode.removeChild(this.element)},n})})),mc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define(n):typeof t==`object`&&t.exports?t.exports=n():(e.Flickity=e.Flickity||{},e.Flickity.Slide=n())})(window,function(){function e(e){this.parent=e,this.isOriginLeft=e.originSide==`left`,this.cells=[],this.outerWidth=0,this.height=0}var t=e.prototype;return t.addCell=function(e){if(this.cells.push(e),this.outerWidth+=e.size.outerWidth,this.height=Math.max(e.size.outerHeight,this.height),this.cells.length==1){this.x=e.x;var t=this.isOriginLeft?`marginLeft`:`marginRight`;this.firstMargin=e.size[t]}},t.updateTarget=function(){var e=this.isOriginLeft?`marginRight`:`marginLeft`,t=this.getLastCell(),n=t?t.size[e]:0,r=this.outerWidth-(this.firstMargin+n);this.target=this.x+this.firstMargin+r*this.parent.cellAlign},t.getLastCell=function(){return this.cells[this.cells.length-1]}
20,t.select=function(){this.cells.forEach(function(e){e.select()})},t.unselect=function(){this.cells.forEach(function(e){e.unselect()})},t.getCellElements=function(){return this.cells.map(function(e){return e.element})},e})})),hc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`fizzy-ui-utils/utils`],function(t){return n(e,t)}):typeof t==`object`&&t.exports?t.exports=n(e,fc()):(e.Flickity=e.Flickity||{},e.Flickity.animatePrototype=n(e,e.fizzyUIUtils))})(window,function(e,t){var n={};return n.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},n.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var e=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(e),this.isAnimating){var t=this;requestAnimationFrame(function(){t.animate()})}},n.positionSlider=function(){var e=this.x;this.options.wrapAround&&this.cells.length>1&&(e=t.modulo(e,this.slideableWidth),e-=this.slideableWidth,this.shiftWrapCells(e)),this.setTranslateX(e,this.isAnimating),this.dispatchScrollEvent()},n.setTranslateX=function(e,t){e+=this.cursorPosition,e=this.options.rightToLeft?-e:e;var n=this.getPositionValue(e);this.slider.style.transform=t?`translate3d(`+n+`,0,0)`:`translateX(`+n+`)`},n.dispatchScrollEvent=function(){var e=this.slides[0];if(e){var t=-this.x-e.target,n=t/this.slidesWidth;this.dispatchEvent(`scroll`,null,[n,t])}},n.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},n.getPositionValue=function(e){return this.options.percentPosition?Math.round(e/this.size.innerWidth*1e4)*.01+`%`:Math.round(e)+`px`},n.settle=function(e){!this.isPointerDown&&Math.round(this.x*100)==Math.round(e*100)&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent(`settle`,null,[this.selectedIndex]))},n.shiftWrapCells=function(e){var t=this.cursorPosition+e;this._shiftCells(this.beforeShiftCells,t,-1);var n=this.size.innerWidth-(e+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,n,1)},n._shiftCells=function(e,t,n){for(var r=0;r<e.length;r++){var i=e[r],a=t>0?n:0;i.wrapShift(a),t-=i.size.outerWidth}},n._unshiftCells=function(e){if(!(!e||!e.length))for(var t=0;t<e.length;t++)e[t].wrapShift(0)},n.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},n.applyForce=function(e){this.velocity+=e},n.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?`freeScrollFriction`:`friction`]},n.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},n.applyDragForce=function(){if(!(!this.isDraggable||!this.isPointerDown)){var e=this.dragX-this.x-this.velocity;this.applyForce(e)}},n.applySelectedAttraction=function(){if(!(this.isDraggable&&this.isPointerDown||this.isFreeScrolling||!this.slides.length)){var e=(this.selectedSlide.target*-1-this.x)*this.options.selectedAttraction;this.applyForce(e)}},n})})),gc=n(((e,t)=>{(function(e,n){if(typeof define==`function`&&define.amd)define([`ev-emitter/ev-emitter`,`get-size/get-size`,`fizzy-ui-utils/utils`,`./cell`,`./slide`,`./animate`],function(t,r,i,a,o,s){return n(e,t,r,i,a,o,s)});else if(typeof t==`object`&&t.exports)t.exports=n(e,lc(),uc(),fc(),pc(),mc(),hc());else{var r=e.Flickity;e.Flickity=n(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,r.Cell,r.Slide,r.animatePrototype)}})(window,function(e,t,n,r,i,a,o){var s=e.jQuery,c=e.getComputedStyle,l=e.console;function u(e,t){for(e=r.makeArray(e);e.length;)t.appendChild(e.shift())}var d=0,f={};function p(e,t){var n=r.getQueryElement(e);if(!n){l&&l.error(`Bad element for Flickity: `+(n||e));return}if(this.element=n,this.element.flickityGUID){var i=f[this.element.flickityGUID];return i&&i.option(t),i}s&&(this.$element=s(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(t),this._create()}p.defaults={accessibility:!0,cellAlign:`center`,freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},p.createMethods=[];var m=p.prototype;r.extend(m,t.prototype),m._create=function(){var t=this.guid=++d;for(var n in this.element.flickityGUID=t,f[t]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?`right`:`left`,this.viewport=document.createElement(`div`),this.viewport.className=`flickity-viewport`,this._createSlider(),(this.options.resize||this.options.watchCSS)&&e.addEventListener(`resize`,this),this.options.on){var r=this.options.on[n];this.on(n,r)}p.createMethods.forEach(function(e){this[e]()},this),this.options.watchCSS?this.watchCSS():this.activate()},m.option=function(e){r.extend(this.options,e)},m.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add(`flickity-enabled`),this.options.rightToLeft&&this.element.classList.add(`flickity-rtl`),this.get
vendor: 5,498 bytes, line 20
20Size(),u(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener(`keydown`,this)),this.emitEvent(`activate`),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent(`ready`))},m._createSlider=function(){var e=document.createElement(`div`);e.className=`flickity-slider`,e.style[this.originSide]=0,this.slider=e},m._filterFindCellElements=function(e){return r.filterFindElements(e,this.options.cellSelector)},m.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},m._makeCells=function(e){return this._filterFindCellElements(e).map(function(e){return new i(e,this)},this)},m.getLastCell=function(){return this.cells[this.cells.length-1]},m.getLastSlide=function(){return this.slides[this.slides.length-1]},m.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},m._positionCells=function(e){e=e||0,this.maxCellHeight=e&&this.maxCellHeight||0;var t=0;if(e>0){var n=this.cells[e-1];t=n.x+n.size.outerWidth}for(var r=this.cells.length,i=e;i<r;i++){var a=this.cells[i];a.setPosition(t),t+=a.size.outerWidth,this.maxCellHeight=Math.max(a.size.outerHeight,this.maxCellHeight)}this.slideableWidth=t,this.updateSlides(),this._containSlides(),this.slidesWidth=r?this.getLastSlide().target-this.slides[0].target:0},m._sizeCells=function(e){e.forEach(function(e){e.getSize()})},m.updateSlides=function(){if(this.slides=[],this.cells.length){var e=new a(this);this.slides.push(e);var t=this.originSide==`left`?`marginRight`:`marginLeft`,n=this._getCanCellFit();this.cells.forEach(function(r,i){if(!e.cells.length){e.addCell(r);return}var o=e.outerWidth-e.firstMargin+(r.size.outerWidth-r.size[t]);n.call(this,i,o)?e.addCell(r):(e.updateTarget(),e=new a(this),this.slides.push(e),e.addCell(r))},this),e.updateTarget(),this.updateSelectedSlide()}},m._getCanCellFit=function(){var e=this.options.groupCells;if(!e)return function(){return!1};if(typeof e==`number`){var t=parseInt(e,10);return function(e){return e%t!==0}}var n=typeof e==`string`&&e.match(/^(\d+)%$/),r=n?parseInt(n[1],10)/100:1;return function(e,t){return t<=(this.size.innerWidth+1)*r}},m._init=m.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},m.getSize=function(){this.size=n(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var h={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return m.setCellAlign=function(){var e=h[this.options.cellAlign];this.cellAlign=e?e[this.originSide]:this.options.cellAlign},m.setGallerySize=function(){if(this.options.setGallerySize){var e=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=e+`px`}},m._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var e=this.cursorPosition,t=this.cells.length-1;this.beforeShiftCells=this._getGapCells(e,t,-1),e=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(e,0,1)}},m._getGapCells=function(e,t,n){for(var r=[];e>0;){var i=this.cells[t];if(!i)break;r.push(i),t+=n,e-=i.size.outerWidth}return r},m._containSlides=function(){if(!(!this.options.contain||this.options.wrapAround||!this.cells.length)){var e=this.options.rightToLeft,t=e?`marginRight`:`marginLeft`,n=e?`marginLeft`:`marginRight`,r=this.slideableWidth-this.getLastCell().size[n],i=r<this.size.innerWidth,a=this.cursorPosition+this.cells[0].size[t],o=r-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(e){i?e.target=r*this.cellAlign:(e.target=Math.max(e.target,a),e.target=Math.min(e.target,o))},this)}},m.dispatchEvent=function(e,t,n){var r=t?[t].concat(n):n;if(this.emitEvent(e,r),s&&this.$element){e+=this.options.namespaceJQueryEvents?`.flickity`:``;var i=e;if(t){var a=new s.Event(t);a.type=e,i=a}this.$element.trigger(i,n)}},m.select=function(e,t,n){if(this.isActive&&(e=parseInt(e,10),this._wrapSelect(e),(this.options.wrapAround||t)&&(e=r.modulo(e,this.slides.length)),this.slides[e])){var i=this.selectedIndex;this.selectedIndex=e,this.updateSelectedSlide(),n?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent(`select`,null,[e]),e!=i&&this.dispatchEvent(`change`,null,[e]),this.dispatchEvent(`cellSelect`)}},m._wrapSelect=function(e){var t=this.slides.length;if(!(this.options.wrapAround&&t>1))return e;var n=r.modulo(e,t),i=Math.abs(n-this.selectedIndex),a=Math.abs(n+t-this.selectedIndex),o=Math.abs(n-t-this.selectedIndex);!this.isDragSelect&&a<i?e+=t:!this.isDragSelect&&o<i&&(e-=t),e<0?this.x-=this.slideableWidth:e>=t&&(this.x+=this.slideableWidth)},m.previous=function(e,t){this.select(this.selectedIndex-1,e,t)},m.next=function(e,t){this.select(this.selectedIndex+1,e,t)},m.updateSelectedSlide=function(){var e=this.slides[this.selectedIndex];e&&(this.unselectSelectedSlide(),this.selectedSlide=e,e.select(),this.selectedCells=e.cells,this.selectedElements=e.getCellElements(),this.selectedCell=e.cells[0],this.selectedElement=this.selectedElements[0])},m.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},m.selectInitialIndex=function(){var e=this.options.initialIndex;
20if(this.isInitActivated){this.select(this.selectedIndex,!1,!0);return}if(e&&typeof e==`string`&&this.queryCell(e)){this.selectCell(e,!1,!0);return}var t=0;e&&this.slides[e]&&(t=e),this.select(t,!1,!0)},m.selectCell=function(e,t,n){var r=this.queryCell(e);if(r){var i=this.getCellSlideIndex(r);this.select(i,t,n)}},m.getCellSlideIndex=function(e){for(var t=0;t<this.slides.length;t++)if(this.slides[t].cells.indexOf(e)!=-1)return t},m.getCell=function(e){for(var t=0;t<this.cells.length;t++){var n=this.cells[t];if(n.element==e)return n}},m.getCells=function(e){e=r.makeArray(e);var t=[];return e.forEach(function(e){var n=this.getCell(e);n&&t.push(n)},this),t},m.getCellElements=function(){return this.cells.map(function(e){return e.element})},m.getParentCell=function(e){return this.getCell(e)||(e=r.getParent(e,`.flickity-slider > *`),this.getCell(e))},m.getAdjacentCellElements=function(e,t){if(!e)return this.selectedSlide.getCellElements();t=t===void 0?this.selectedIndex:t;var n=this.slides.length;if(1+e*2>=n)return this.getCellElements();for(var i=[],a=t-e;a<=t+e;a++){var o=this.options.wrapAround?r.modulo(a,n):a,s=this.slides[o];s&&(i=i.concat(s.getCellElements()))}return i},m.queryCell=function(e){if(typeof e==`number`)return this.cells[e];if(typeof e==`string`){if(e.match(/^[#.]?[\d/]/))return;e=this.element.querySelector(e)}return this.getCell(e)},m.uiChange=function(){this.emitEvent(`uiChange`)},m.childUIPointerDown=function(e){e.type!=`touchstart`&&e.preventDefault(),this.focus()},m.onresize=function(){this.watchCSS(),this.resize()},r.debounceMethod(p,`onresize`,150),m.resize=function(){if(!(!this.isActive||this.isAnimating||this.isDragging)){this.getSize(),this.options.wrapAround&&(this.x=r.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent(`resize`);var e=this.selectedElements&&this.selectedElements[0];this.selectCell(e,!1,!0)}},m.watchCSS=function(){this.options.watchCSS&&(c(this.element,`:after`).content.indexOf(`flickity`)==-1?this.deactivate():this.activate())},m.onkeydown=function(e){var t=document.activeElement&&document.activeElement!=this.element;if(!(!this.options.accessibility||t)){var n=p.keyboardHandlers[e.keyCode];n&&n.call(this)}},p.keyboardHandlers={37:function(){var e=this.options.rightToLeft?`next`:`previous`;this.uiChange(),this[e]()},39:function(){var e=this.options.rightToLeft?`previous`:`next`;this.uiChange(),this[e]()}},m.focus=function(){var t=e.pageYOffset;this.element.focus({preventScroll:!0}),e.pageYOffset!=t&&e.scrollTo(e.pageXOffset,t)},m.deactivate=function(){this.isActive&&(this.element.classList.remove(`flickity-enabled`),this.element.classList.remove(`flickity-rtl`),this.unselectSelectedSlide(),this.cells.forEach(function(e){e.destroy()}),this.element.removeChild(this.viewport),u(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute(`tabIndex`),this.element.removeEventListener(`keydown`,this)),this.isActive=!1,this.emitEvent(`deactivate`))},m.destroy=function(){this.deactivate(),e.removeEventListener(`resize`,this),this.allOff(),this.emitEvent(`destroy`),s&&this.$element&&s.removeData(this.element,`flickity`),delete this.element.flickityGUID,delete f[this.guid]},r.extend(m,o),p.data=function(e){e=r.getQueryElement(e);var t=e&&e.flickityGUID;return t&&f[t]},r.htmlInit(p,`flickity`),s&&s.bridget&&s.bridget(`flickity`,p),p.setJQuery=function(e){s=e},p.Cell=i,p.Slide=a,p})})),_c=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`ev-emitter/ev-emitter`],function(t){return n(e,t)}):typeof t==`object`&&t.exports?t.exports=n(e,lc()):e.Unipointer=n(e,e.EvEmitter)})(window,function(e,t){function n(){}function r(){}var i=r.prototype=Object.create(t.prototype);i.bindStartEvent=function(e){this._bindStartEvent(e,!0)},i.unbindStartEvent=function(e){this._bindStartEvent(e,!1)},i._bindStartEvent=function(t,n){n=n===void 0||n;var r=n?`addEventListener`:`removeEventListener`,i=`mousedown`;`ontouchstart`in e?i=`touchstart`:e.PointerEvent&&(i=`pointerdown`),t[r](i,this)},i.handleEvent=function(e){var t=`on`+e.type;this[t]&&this[t](e)},i.getTouch=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.identifier==this.pointerIdentifier)return n}},i.onmousedown=function(e){var t=e.button;t&&t!==0&&t!==1||this._pointerDown(e,e)},i.ontouchstart=function(e){this._pointerDown(e,e.changedTouches[0])},i.onpointerdown=function(e){this._pointerDown(e,e)},i._pointerDown=function(e,t){e.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=t.pointerId===void 0?t.identifier:t.pointerId,this.pointerDown(e,t))},i.pointerDown=function(e,t){this._bindPostStartEvents(e),this.emitEvent(`pointerDown`,[e,t])};var a={mousedown:[`mousemove`,`mouseup`],touchstart:[`touchmove`,`touchend`,`touchcancel`],pointerdown:[`pointermove`,`pointerup`,`pointercancel`]};return i._bindPostStartEvents=function(t){if(t){var n=a[t.type];
20n.forEach(function(t){e.addEventListener(t,this)},this),this._boundPointerEvents=n}},i._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){e.removeEventListener(t,this)},this),delete this._boundPointerEvents)},i.onmousemove=function(e){this._pointerMove(e,e)},i.onpointermove=function(e){e.pointerId==this.pointerIdentifier&&this._pointerMove(e,e)},i.ontouchmove=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerMove(e,t)},i._pointerMove=function(e,t){this.pointerMove(e,t)},i.pointerMove=function(e,t){this.emitEvent(`pointerMove`,[e,t])},i.onmouseup=function(e){this._pointerUp(e,e)},i.onpointerup=function(e){e.pointerId==this.pointerIdentifier&&this._pointerUp(e,e)},i.ontouchend=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerUp(e,t)},i._pointerUp=function(e,t){this._pointerDone(),this.pointerUp(e,t)},i.pointerUp=function(e,t){this.emitEvent(`pointerUp`,[e,t])},i._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},i._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},i.pointerDone=n,i.onpointercancel=function(e){e.pointerId==this.pointerIdentifier&&this._pointerCancel(e,e)},i.ontouchcancel=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerCancel(e,t)},i._pointerCancel=function(e,t){this._pointerDone(),this.pointerCancel(e,t)},i.pointerCancel=function(e,t){this.emitEvent(`pointerCancel`,[e,t])},r.getPointerPoint=function(e){return{x:e.pageX,y:e.pageY}},r})})),vc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`unipointer/unipointer`],function(t){return n(e,t)}):typeof t==`object`&&t.exports?t.exports=n(e,_c()):e.Unidragger=n(e,e.Unipointer)})(window,function(e,t){function n(){}var r=n.prototype=Object.create(t.prototype);r.bindHandles=function(){this._bindHandles(!0)},r.unbindHandles=function(){this._bindHandles(!1)},r._bindHandles=function(t){t=t===void 0||t;for(var n=t?`addEventListener`:`removeEventListener`,r=t?this._touchActionValue:``,i=0;i<this.handles.length;i++){var a=this.handles[i];this._bindStartEvent(a,t),a[n](`click`,this),e.PointerEvent&&(a.style.touchAction=r)}},r._touchActionValue=`none`,r.pointerDown=function(e,t){this.okayPointerDown(e)&&(this.pointerDownPointer={pageX:t.pageX,pageY:t.pageY},e.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(e),this.emitEvent(`pointerDown`,[e,t]))};var i={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},a={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return r.okayPointerDown=function(e){var t=i[e.target.nodeName],n=a[e.target.type],r=!t||n;return r||this._pointerReset(),r},r.pointerDownBlur=function(){var e=document.activeElement;e&&e.blur&&e!=document.body&&e.blur()},r.pointerMove=function(e,t){var n=this._dragPointerMove(e,t);this.emitEvent(`pointerMove`,[e,t,n]),this._dragMove(e,t,n)},r._dragPointerMove=function(e,t){var n={x:t.pageX-this.pointerDownPointer.pageX,y:t.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this._dragStart(e,t),n},r.hasDragStarted=function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3},r.pointerUp=function(e,t){this.emitEvent(`pointerUp`,[e,t]),this._dragPointerUp(e,t)},r._dragPointerUp=function(e,t){this.isDragging?this._dragEnd(e,t):this._staticClick(e,t)},r._dragStart=function(e,t){this.isDragging=!0,this.isPreventing
20Clicks=!0,this.dragStart(e,t)},r.dragStart=function(e,t){this.emitEvent(`dragStart`,[e,t])},r._dragMove=function(e,t,n){this.isDragging&&this.dragMove(e,t,n)},r.dragMove=function(e,t,n){e.preventDefault(),this.emitEvent(`dragMove`,[e,t,n])},r._dragEnd=function(e,t){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(e,t)},r.dragEnd=function(e,t){this.emitEvent(`dragEnd`,[e,t])},r.onclick=function(e){this.isPreventingClicks&&e.preventDefault()},r._staticClick=function(e,t){this.isIgnoringMouseUp&&e.type==`mouseup`||(this.staticClick(e,t),e.type!=`mouseup`&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},r.staticClick=function(e,t){this.emitEvent(`staticClick`,[e,t])},n.getPointerPoint=t.getPointerPoint,n})})),yc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`./flickity`,`unidragger/unidragger`,`fizzy-ui-utils/utils`],function(t,r,i){return n(e,t,r,i)}):typeof t==`object`&&t.exports?t.exports=n(e,gc(),vc(),fc()):e.Flickity=n(e,e.Flickity,e.Unidragger,e.fizzyUIUtils)})(window,function(e,t,n,r){r.extend(t.defaults,{draggable:`>1`,dragThreshold:3}),t.createMethods.push(`_createDrag`);var i=t.prototype;r.extend(i,n.prototype),i._touchActionValue=`pan-y`,i._createDrag=function(){this.on(`activate`,this.onActivateDrag),this.on(`uiChange`,this._uiChangeDrag),this.on(`deactivate`,this.onDeactivateDrag),this.on(`cellChange`,this.updateDraggable)},i.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},i.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove(`is-draggable`)},i.updateDraggable=function(){this.isDraggable=this.options.draggable==`>1`?this.slides.length>1:this.options.draggable,this.isDraggable?this.element.classList.add(`is-draggable`):this.element.classList.remove(`is-draggable`)},i.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},i.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},i._uiChangeDrag=function(){delete this.isFreeScrolling},i.pointerDown=function(t,n){if(!this.isDraggable){this._pointerDownDefault(t,n);return}this.okayPointerDown(t)&&(this._pointerDownPreventDefault(t),this.pointerDownFocus(t),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add(`is-pointer-down`),this.pointerDownScroll=o(),e.addEventListener(`scroll`,this),this._pointerDownDefault(t,n))},i._pointerDownDefault=function(e,t){this.pointerDownPointer={pageX:t.pageX,pageY:t.pageY},this._bindPostStartEvents(e),this.dispatchEvent(`pointerDown`,e,[t])};var a={INPUT:!0,TEXTAREA:!0,SELECT:!0};i.pointerDownFocus=function(e){a[e.target.nodeName]||this.focus()},i._pointerDownPreventDefault=function(e){var t=e.type==`touchstart`,n=e.pointerType==`touch`,r=a[e.target.nodeName];!t&&!n&&!r&&e.preventDefault()},i.hasDragStarted=function(e){return Math.abs(e.x)>this.options.dragThreshold},i.pointerUp=function(e,t){delete this.isTouchScrolling,this.viewport.classList.remove(`is-pointer-down`),this.dispatchEvent(`pointerUp`,e,[t]),this._dragPointerUp(e,t)},i.pointerDone=function(){e.removeEventListener(`scroll`,this),delete this.pointerDownScroll},i.dragStart=function(t,n){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),e.removeEventListener(`scroll`,this),this.dispatchEvent(`dragStart`,t,[n]))},i.pointerMove=function(e,t){var n=this._dragPointerMove(e,t);this.dispatchEvent(`pointerMove`,e,[t,n]),this._dragMove(e,t,n)},i.dragMove=function(e,t,n){if(this.isDraggable){e.preventDefault(),this.previousDragX=this.dragX;var r=this.options.rightToLeft?-1:1;this.options.wrapAround&&(n.x%=this.slideableWidth);var i=this.dragStartPosition+n.x*r;if(!this.options.wrapAround&&this.slides.length){var a=Math.max(-this.slides[0].target,this.dragStartPosition);i=i>a?(i+a)*.5:i;var o=Math.min(-this.getLastSlide().target,this.dragStartPosition);i=i<o?(i+o)*.5:i}this.dragX=i,this.dragMoveTime=new Date,this.dispatchEvent(`dragMove`,e,[t,n])}},i.dragEnd=function(e,t){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var n=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var r=this.getRestingPosition();this.isFreeScrolling=-r>this.slides[0].target&&-r<this.getLastSlide().target}else!this.options.freeScroll&&n==this.selectedIndex&&(n+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(n),delete this.isDragSelect,this.dispatchEvent(`dragEnd`,e,[t])}},i.dragEndRestingSelect=function(){var e=this.getRestingPosition(),t=Math.abs(this.getSlideDistance(-e,this.selectedIndex)),n=this._getClosestResting(e,t,1),r
20=this._getClosestResting(e,t,-1);return n.distance<r.distance?n.index:r.index},i._getClosestResting=function(e,t,n){for(var r=this.selectedIndex,i=1/0,a=this.options.contain&&!this.options.wrapAround?function(e,t){return e<=t}:function(e,t){return e<t};a(t,i)&&(r+=n,i=t,t=this.getSlideDistance(-e,r),t!==null);)t=Math.abs(t);return{distance:i,index:r-n}},i.getSlideDistance=function(e,t){var n=this.slides.length,i=this.options.wrapAround&&n>1,a=i?r.modulo(t,n):t,o=this.slides[a];if(!o)return null;var s=i?this.slideableWidth*Math.floor(t/n):0;return e-(o.target+s)},i.dragEndBoostSelect=function(){if(this.previousDragX===void 0||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var e=this.getSlideDistance(-this.dragX,this.selectedIndex),t=this.previousDragX-this.dragX;return e>0&&t>0?1:e<0&&t<0?-1:0},i.staticClick=function(e,t){var n=this.getParentCell(e.target),r=n&&n.element,i=n&&this.cells.indexOf(n);this.dispatchEvent(`staticClick`,e,[t,r,i])},i.onscroll=function(){var e=o(),t=this.pointerDownScroll.x-e.x,n=this.pointerDownScroll.y-e.y;(Math.abs(t)>3||Math.abs(n)>3)&&this._pointerDone()};function o(){return{x:e.pageXOffset,y:e.pageYOffset}}return t})})),bc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`./flickity`,`unipointer/unipointer`,`fizzy-ui-utils/utils`],function(t,r,i){return n(e,t,r,i)}):typeof t==`object`&&t.exports?t.exports=n(e,gc(),_c(),fc()):n(e,e.Flickity,e.Unipointer,e.fizzyUIUtils)})(window,function(e,t,n,r){var i=`http://www.w3.org/2000/svg`;function a(e,t){this.direction=e,this.parent=t,this._create()}a.prototype=Object.create(n.prototype),a.prototype._create=function(){this.isEnabled=!0,this.isPrevious=this.direction==-1;var e=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==e;var t=this.element=document.createElement(`button`);t.className=`flickity-button flickity-prev-next-button`,t.className+=this.isPrevious?` previous`:` next`,t.setAttribute(`type`,`button`),this.disable(),t.setAttribute(`aria-label`,this.isPrevious?`Previous`:`Next`);var n=this.createSVG();t.appendChild(n),this.parent.on(`select`,this.update.bind(this)),this.on(`pointerDown`,this.parent.childUIPointerDown.bind(this.parent))},a.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener(`click`,this),this.parent.element.appendChild(this.element)},a.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener(`click`,this)},a.prototype.createSVG=function(){var e=document.createElementNS(i,`svg`);e.setAttribute(`class`,`flickity-button-icon`),e.setAttribute(`viewBox`,`0 0 100 100`);var t=document.createElementNS(i,`path`),n=o(this.parent.options.arrowShape);return t.setAttribute(`d`,n),t.setAttribute(`class`,`arrow`),this.isLeft||t.setAttribute(`transform`,`translate(100, 100) rotate(180) `),e.appendChild(t),e};function o(e){return typeof e==`string`?e:`M `+e.x0+`,50 L `+e.x1+`,`+(e.y1+50)+` L `+e.x2+`,`+(e.y2+50)+` L `+e.x3+`,50 L `+e.x2+`,`+(50-e.y2)+` L `+e.x1+`,`+(50-e.y1)+` Z`}a.prototype.handleEvent=r.handleEvent,a.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var e=this.isPrevious?`previous`:`next`;this.parent[e]()}},a.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},a.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},a.prototype.update=function(){var e=this.parent.slides;if(this.parent.options.wrapAround&&e.length>1){this.enable();return}var t=e.length?e.length-1:0,n=this.isPrevious?0:t,r=this.parent.selectedIndex==n?`disable`:`enable`;this[r]()},a.prototype.destroy=function(){this.deactivate(),this.allOff()},r.extend(t.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),t.createMethods.push(`_createPrevNextButtons`);var s=t.prototype;return s._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new a(-1,this),this.nextButton=new a(1,this),this.on(`activate`,this.activatePrevNextButtons))},s.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on(`deactivate`,this.deactivatePrevNextButtons)},s.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off(`deactivate`,this.deactivatePrevNextButtons)},t.PrevNextButton=a,t})})),xc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`./flickity`,`unipointer/unipointer`,`fizzy-ui-utils/utils`],function(t,r,i){return n(e,t,r,i)}):typeof t==`object`&&t.exports?t.exports=n(e,gc(),_c(),fc()):n(e,e.Flickity,e.Unipointer,e.fizzyUIUtils)})(window,function(e,t,n,r){function i(e){this.parent=e,this._create()}i.prototype=Object.create(n.prototype),i.prototype._create=function(){this.holder=document.createElement(`ol`),this.holder.className=`flickity-page-dots`,this.dots=[],this.handleClick=this.onClick.bind(this),this.on(`pointerDown`,this.parent.childUIPointerDown.bind(this.parent))},i.prototype.activate=function(){this.setDots(),this.holder.addEventListener(`click`,this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},i.prototype.deactivate=function(){this.holder.removeEventListener(`click`,this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},i.prototype.setDots=function(){var e=this.parent.slides.length-this.dots.length;e>0?this.addDots(e):e<0&&this.removeDots(-e)},i.prototype.addDots=function(e){for(var t=document.createDocumentFragment(),n=[],r=this.dots.length,i=r+e,a=r;a<i;a++){var o=document.createElement(`li`);o.className=`dot`,o.setAttribute(`aria-label`,`Page dot `+(a+1)),t.appendChild(o),n.push(o)}this.holder.appendChild(t),this.dots=this.dots.concat(n)},i.prototype.removeDots=function(e){this.dots.splice(this.dots.length-e,e).forEach(function(e){this.holder.removeChild(e)},this)},i.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className=`dot`,this.selectedDot.removeAttribute(`aria-current`)),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className=`dot is-selected`,this.selectedDot.setAttribute(`aria-current`,`step`))},i.prototype.onTap=i.prototype.onClick=function(e){var t=e.target;if(t.nodeName==`LI`){this.parent.uiChange();var n=this.dots.indexOf(t);this.parent.select(n)}},i.prototype.destroy=function(){this.deactivate(),this.allOff()},t.PageDots=i,r.extend(t.defaults,{pageDots:!0}),t.createMethods.push(`_createPageDots`);var a=t.prototype;return a._createPageDots=function(){this.options.pageDots&&(this.pageDots=new i(this),this.on(`activate`,this.activatePageDots),this.on(`select`,this.updateSelectedPageDots),this.on(`cellChange`,this.updatePageDots),this.on(`resize`,this.updatePageDots),this.on(`deactivate`,this.deactivatePageDots))},a.activatePageDots=function(){this.pageDots.activate()},a.updateSelectedPageDots=function(){this.pageDots.updateSelected()},a.updatePageDots=function(){this.pageDots.setDots()},a.deactivatePageDots=function(){this.pageDots.deactivate()},t.PageDots=i,t})})),Sc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`ev-emitter/ev-emitter`,`fizzy-ui-utils/utils`,`./flickity`],function(e,t,r){return n(e,t,r)}):typeof t==`object`&&t.exports?t.exports=n(lc(),fc(),gc()):n(e.EvEmitter,e.fizzyUIUtils,e.Flickity)})(window,function(e,t,n){function r(e){this.parent=e,this.state=`stopped`,this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}r.prototype=Object.create(e.prototype),r.prototype.play=function(){if(this.state!=`playing`){if(document.hidden){document.addEventListener(`visibilitychange`,this.onVisibilityPlay);return}this.state=`playing`,document.addEventListener(`visibilitychange`,this.onVisibilityChange),this.tick()}},r.prototype.tick=function(){if(this.state==`playing`){var e=this.parent.options.autoPlay;e=typeof e==`number`?e:3e3;var t=this;this.clear(),this.timeout=setTimeout(function(){t.parent.next(!0),t.tick()},e)}},r.prototype.stop=function(){this.state=`stopped`,this.clear(),document.removeEventListener(`visibilitychange`,this.onVisibilityChange)},r.prototype.clear=function(){clearTimeout(this.timeout)},r.prototype.pause=function(){this.state==`playing`&&(this.state=`paused`,this.clear())},r.prototype.unpause=function(){this.state==`paused`&&this.play()},r.prototype.visibilityChange=function(){var e=document.hidden;this[e?`pause`:`unpause`]()},r.prototype.visibilityPlay=function(){this.play(),document.removeEventListener(`visibilitychange`,this.onVisibilityPlay)},t.extend(n.defaults,{pauseAutoPlayOnHover:!0}),n.createMethods.push(`_createPlayer`);var i=n.prototype;return i._createPlayer=function(){this.player=new r(this),this.on(`activate`,this.activatePlayer),this.on(`uiChange`,this.stopPlayer),this.on(`pointerDown`,this.stopPlayer),this.on(`deactivate`,this.deactivatePlayer)},i.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener(`mouseenter`,this))},i.playPlayer=function(){this.player.play()},i.stopPlayer=function(){this.player.stop()},i.pausePlayer=function(){this.player.pause()},i.unpausePlayer=function(){this.player.unpause()},i.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener(`mouseenter`,this)},i.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener(`mouseleave`,this))},i.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener(`mouseleave`,this)},n.Player=r,n})})),Cc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`./flickity`,`fizzy-ui-utils/utils`],function(t,r){return n(e,t,r)}):typeof t==`object`&&t.exports?t.exports=n(e,gc(),fc()):n(e,e.Flickity,e.fizzyUIUtils)})(window,function(e,t,n){function r(e){var t=document.createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element)}),t}var i=t.prototype;return i.insert=function(e,t){var n=this._makeCells(e);if(!(!n||!n.length)){var i=this.cells.length;t=t===void 0?i:t;var a=r(n),o=t==i;if(o)this.slider.appendChild(a);else{var s=this.cells[t].element;this.slider.insertBefore(a,s)}if(t===0)this.cells=n.concat(this.cells);else if(o)this.cells=this.cells.concat(n);else{var c=this.cells.splice(t,i-t);this.cells=this.cells.concat(n).concat(c)}this._sizeCells(n),this.cellChange(t,!0)}},i.append=function(e){this.insert(e,this.cells.length)},i.prepend=function(e){this.insert(e,0)},i.remove=function(e){var t=this.getCells(e);if(!(!t||!t.length)){var r=this.cells.length-1;t.forEach(function(e){e.remove();var t=this.cells.indexOf(e);r=Math.min(t,r),n.removeFrom(this.cells,e)},this),this.cellChange(r,!0)}},i.cellSizeChange=function(e){var t=this.getCell(e);if(t){t.getSize();var n=this.cells.indexOf(t);this.cellChange(n)}},i.cellChange=function(e,t){var n=this.selectedElement;this._positionCells(e),this._getWrapShiftCells(),this.setGallerySize();var r=this.getCell(n);r&&(this.selectedIndex=this.getCellSlideIndex(r)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent(`cellChange`,[e]),this.select(this.selectedIndex),t&&this.positionSliderAtSelected()},t})})),wc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`./flickity`,`fizzy-ui-utils/utils`],function(t,r){return n(e,t,r)}):typeof t==`object`&&t.exports?t.exports=n(e,gc(),fc()):n(e,e.Flickity,e.fizzyUIUtils)})(window,function(e,t,n){t.createMethods.push(`_createLazyload`);var r=t.prototype;r._createLazyload=function(){this.on(`select`,this.lazyLoad)},r.lazyLoad=function(){var e=this.options.lazyLoad;if(e){var t=typeof e==`number`?e:0,n=this.getAdjacentCellElements(t),r=[];
20n.forEach(function(e){var t=i(e);r=r.concat(t)}),r.forEach(function(e){new a(e,this)},this)}};function i(e){if(e.nodeName==`IMG`){var t=e.getAttribute(`data-flickity-lazyload`),r=e.getAttribute(`data-flickity-lazyload-src`),i=e.getAttribute(`data-flickity-lazyload-srcset`);if(t||r||i)return[e]}var a=e.querySelectorAll(`img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]`);return n.makeArray(a)}function a(e,t){this.img=e,this.flickity=t,this.load()}return a.prototype.handleEvent=n.handleEvent,a.prototype.load=function(){this.img.addEventListener(`load`,this),this.img.addEventListener(`error`,this);var e=this.img.getAttribute(`data-flickity-lazyload`)||this.img.getAttribute(`data-flickity-lazyload-src`),t=this.img.getAttribute(`data-flickity-lazyload-srcset`);this.img.src=e,t&&this.img.setAttribute(`srcset`,t),this.img.removeAttribute(`data-flickity-lazyload`),this.img.removeAttribute(`data-flickity-lazyload-src`),this.img.removeAttribute(`data-flickity-lazyload-srcset`)},a.prototype.onload=function(e){this.complete(e,`flickity-lazyloaded`)},a.prototype.onerror=function(e){this.complete(e,`flickity-lazyerror`)},a.prototype.complete=function(e,t){this.img.removeEventListener(`load`,this),this.img.removeEventListener(`error`,this);var n=this.flickity.getParentCell(this.img),r=n&&n.element;this.flickity.cellSizeChange(r),this.img.classList.add(t),this.flickity.dispatchEvent(`lazyLoad`,e,r)},t.LazyLoader=a,t})})),Tc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`./flickity`,`./drag`,`./prev-next-button`,`./page-dots`,`./player`,`./add-remove-cell`,`./lazyload`],n):typeof t==`object`&&t.exports&&(t.exports=n(gc(),yc(),bc(),xc(),Sc(),Cc(),wc()))})(window,function(e){return e})})),Ec=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`ev-emitter/ev-emitter`],function(t){return n(e,t)}):typeof t==`object`&&t.exports?t.exports=n(e,lc()):e.imagesLoaded=n(e,e.EvEmitter)})(typeof window<`u`?window:e,function(e,t){var n=e.jQuery,r=e.console;function i(e,t){for(var n in t)e[n]=t[n];return e}var a=Array.prototype.slice;function o(e){return Array.isArray(e)?e:typeof e==`object`&&typeof e.length==`number`?a.call(e):[e]}function s(e,t,a){if(!(this instanceof s))return new s(e,t,a);var c=e;if(typeof e==`string`&&(c=document.querySelectorAll(e)),!c){r.error(`Bad element for imagesLoaded `+(c||e));return}this.elements=o(c),this.options=i({},this.options),typeof t==`function`?a=t:i(this.options,t),a&&this.on(`always`,a),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))}s.prototype=Object.create(t.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(e){e.nodeName==`IMG`&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(!(!t||!c[t])){for(var n=e.querySelectorAll(`img`),r=0;r<n.length;r++){var i=n[r];this.addImage(i)}if(typeof this.options.background==`string`){var a=e.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var o=a[r];this.addElementBackgroundImages(o)}}}};var c={1:!0,9:!0,11:!0};s.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(t.backgroundImage);r!==null;){var i=r&&r[2];i&&this.addBackground(i,e),r=n.exec(t.backgroundImage)}},s.prototype.addImage=function(e){var t=new l(e);this.images.push(t)},s.prototype.addBackground=function(e,t){var n=new u(e,t);this.images.push(n)},s.prototype.check=function(){var e=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}function t(t,n,r){setTimeout(function(){e.progress(t,n,r)})}this.images.forEach(function(e){e.once(`progress`,t),e.check()})},s.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent(`progress`,[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log(`progress: `+n,e,t)},s.prototype.complete=function(){var e=this.hasAnyBroken?`fail`:`done`;if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent(`always`,[this]),this.jqDeferred){var t=this.hasAnyBroken?`reject`:`resolve`;this.jqDeferred[t](this)}};function l(e){this.img=e}l.prototype=Object.create(t.prototype),l.prototype.check=function(){if(this.getIsImageComplete()){this.confirm(this.img.naturalWi
20dth!==0,`naturalWidth`);return}this.proxyImage=new Image,this.proxyImage.addEventListener(`load`,this),this.proxyImage.addEventListener(`error`,this),this.img.addEventListener(`load`,this),this.img.addEventListener(`error`,this),this.proxyImage.src=this.img.src},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent(`progress`,[this,this.img,t])},l.prototype.handleEvent=function(e){var t=`on`+e.type;this[t]&&this[t](e)},l.prototype.onload=function(){this.confirm(!0,`onload`),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,`onerror`),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener(`load`,this),this.proxyImage.removeEventListener(`error`,this),this.img.removeEventListener(`load`,this),this.img.removeEventListener(`error`,this)};function u(e,t){this.url=e,this.element=t,this.img=new Image}return u.prototype=Object.create(l.prototype),u.prototype.check=function(){this.img.addEventListener(`load`,this),this.img.addEventListener(`error`,this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(this.img.naturalWidth!==0,`naturalWidth`),this.unbindEvents())},u.prototype.unbindEvents=function(){this.img.removeEventListener(`load`,this),this.img.removeEventListener(`error`,this)},u.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent(`progress`,[this,this.element,t])},s.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(n=t,n.fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(n(this))})},s.makeJQueryPlugin(),s})})),Dc=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([`flickity/js/index`,`imagesloaded/imagesloaded`],function(t,r){return n(e,t,r)}):typeof t==`object`&&t.exports?t.exports=n(e,Tc(),Ec()):e.Flickity=n(e,e.Flickity,e.imagesLoaded)})(window,function(e,t,n){t.createMethods.push(`_createImagesLoaded`);var r=t.prototype;return r._createImagesLoaded=function(){this.on(`activate`,this.imagesLoaded)},r.imagesLoaded=function(){if(!this.options.imagesLoaded)return;var e=this;function t(t,n){var r=e.getParentCell(n.img);e.cellSizeChange(r&&r.element),e.options.freeScroll||e.positionSliderAtSelected()}n(this.slider).on(`progress`,t)},t})})),Oc=t(Tc(),1);Dc();var kc=[],Ac=()=>{document.querySelectorAll(`.js-mini-card-swiper`).forEach(e=>{let t=new Oc.default(e,{cellAlign:`left`,pageDots:!0,prevNextButtons:!1,imagesLoaded:!0,contain:!0,watchCSS:!0,accessibility:!1});kc.push(t)}),jc()},jc=()=>{kc.forEach(e=>{e.resize()})},Mc=()=>{let e=`js-expandable-trigger`,t=`content-block__expand-content`,n=`block-expand--open`,r=`"block-expand"`,i=`block-expand`;if(document.querySelector(`.${e}`)==null)return!1;function a(e){let r=e.closest(`.content-block`);r&&(cc(r.querySelector(`.${t}`)),r.classList.contains(n)?r.classList.remove(n):r.classList.add(n),jc())}document.querySelectorAll(`.${e}`).forEach(e=>{let n=Array.prototype.filter.call(e.parentNode.children,t=>t!==e),r=document.createElement(`div`);r.classList.add(t),r.style.display=`none`,n.map(e=>{r.appendChild(e)}),e.parentNode.appendChild(r),e.parentNode.classList.add(`block-expand`)});let o=document.querySelector(`.block-expand`);function s(){let e=window.getComputedStyle(o,`:after`).getPropertyValue(`content`),n=`block`;(e===r||e===i)&&(n=`none`),document.querySelectorAll(`.${t}`).forEach(e=>{e.parentNode.classList.contains(`block-expand--open`)===!1&&(e.style.display=n)})}if(s(),window.addEventListener(`resize`,()=>{s()}),document.addEventListener(`click`,t=>{if(t.target.matches(`.${e}`)){let e=t.target.closest(`.content-block`),n=window.getComputedStyle(e,`:after`).getPropertyValue(`content`);(n===r||n===i)&&a(t.target)}},!1),document.addEventListener(`keydown`,t=>{let n=t.target.matches(`.${e}`),o=t.key;if(n&&(o===`Enter`||o===` `)){t.preventDefault();let e=t.target.closest(`.content-block`),n=window.getComputedStyle(e,`:after`).getPropertyValue(`content`);(n===r||n===i)&&a(t.target)}},!1),window.location.hash&&!window.location.hash.match(/=/)&&window.matchMedia(`(max-width: 767px)`).matches){let e=document.getElementById(window.location.hash.substring(1));e&&a(e)}},Nc=()=>{let e=document.querySelectorAll(`.parallex-image`),t=document.querySelectorAll(`.parallex-header-image`),n=()=>
20{e.forEach(e=>{let t=e.offsetHeight,n=e.getBoundingClientRect().top+window.scrollY,r=n+t,i=window.scrollY+window.innerHeight,a=window.scrollY,o=window.innerHeight;if(i>r&&a<n){let n=o-t,a=(i-r)/n*100;e.style.backgroundPosition=`center ${100-a}%`}})};return window.addEventListener(`load`,()=>{e.forEach(e=>{e.style.backgroundPosition=`center 100%`}),t.forEach(e=>{e.style.backgroundPosition=`center 25%`}),window.addEventListener(`scroll`,n)}),()=>{window.removeEventListener(`scroll`,n)}},Pc=()=>{document.querySelectorAll(`.js-background-image, img.mini-card__image`).forEach(e=>{let t=e.getAttribute(`src`);e.style.setProperty(`visibility`,`hidden`);let n=e.closest(`div`);n.style.setProperty(`background-image`,`url('${t}')`),n.style.setProperty(`background-size`,`cover`),n.style.setProperty(`background-repeat`,`no-repeat`),n.style.setProperty(`background-position`,`center`),n.style.setProperty(`-webkit-print-color-adjust`,`exact`),n.style.setProperty(`color-adjust`,`exact`),n.classList.add(`print-js-background-image`),e.addEventListener(`load`,r=>{e.currentSrc!==void 0&&e.currentSrc!==``&&(t=e.currentSrc),n.style.setProperty(`background-image`,`url('${t}')`)})})},Fc=()=>{document.querySelectorAll(`.js-background-image-campaign`).forEach(e=>{let t=e.getAttribute(`src`);e.style.setProperty(`visibility`,`hidden`);let n=e.closest(`div`);n.style.setProperty(`background-image`,`linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 80%), url('${t}')`),n.style.setProperty(`background-size`,`cover`),n.style.setProperty(`background-repeat`,`no-repeat`),n.style.setProperty(`background-position`,`center`),n.style.setProperty(`-webkit-print-color-adjust`,`exact`),n.style.setProperty(`color-adjust`,`exact`),n.classList.add(`print-js-background-image`),e.addEventListener(`load`,r=>{e.currentSrc!==void 0&&e.currentSrc!==``&&(t=e.currentSrc),n.style.setProperty(`background-image`,`linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 80%), url('${t}')`)})})},Ic=()=>{let e=document.querySelector(`.new-site-warning__inner`);if(e===void 0||e==null)return!1;let t=document.createElement(`span`),n=document.createTextNode(`Sluiten`);t.appendChild(n),t.classList.add(`new-site-warning__close`),e.appendChild(t),document.addEventListener(`click`,e=>{if(e.target.matches(`.new-site-warning__close`)){let e=document.querySelector(`.new-site-warning`);e.parentNode.removeChild(e)}})},Lc=()=>{let e=document.querySelector(`.bottom-bar`),t=`bottom-bar--visible`,n=`bottom-bar--hidden`,r=window.matchMedia(`(max-width: 768px)`),i=0;e&&window.addEventListener(`scroll`,()=>{let a=window.pageYOffset||document.documentElement.scrollTop;r.matches===!0?window.pageYOffset+window.innerHeight+300>=document.body.clientHeight?(e.classList.remove(n),e.classList.add(t)):a>i?(e.classList.remove(t),e.classList.add(n)):(e.classList.remove(n),e.classList.add(t)):(e.classList.remove(t),e.classList.add(n)),i=a<=0?0:a})},Rc=e=>{let t=`notification--active`,n=document.getElementById(`notification`);n.classList.contains(t)?n.classList.remove(t):n.classList.add(t)},zc=e=>{e.preventDefault();let t=`notification--active`,n=document.getElementById(`notification-language`);n.classList.contains(t)?n.classList.remove(t):n.classList.add(t)},Bc=()=>{let e=document.getElementsByClassName(`js-language-switch`)[0],t=document.getElementsByClassName(`notification--jump-to`),n=document.getElementsByClassName(`notification--language`);e&&(e.addEventListener(`focus`,zc),e.addEventListener(`blur`,zc)),Object.entries(t).forEach(([e,t])=>{t.addEventListener(`focus`,Rc),t.addEventListener(`blur`,Rc)}),Object.entries(n).forEach(([e,t])=>{t.addEventListener(`focus`,zc),t.addEventListener(`blur`,zc)})},Vc=()=>{let e=document.querySelector(`#back-to-top`);e&&window.addEventListener(`scroll`,()=>{window.pageYOffset>=200?e.classList.add(`quicklink-back-to-top--visible`):e.classList.remove(`quicklink-back-to-top--visible`)})},Hc=()=>{document.addEventListener(`change`,e=>{if(e.target.matches(`.js-submit-on-change`)){let t=e.target.closest(`form`);t!=null&&t.submit()}})},Uc=()=>
20{document.querySelectorAll(`.js-comments`).forEach(e=>{e.classList.add(`hidden`)}),document.addEventListener(`click`,e=>{if(e.target.matches(`.js-open-comments`)){e.preventDefault();let t=e.target.getAttribute(`href`);document.querySelector(t).classList.remove(`hidden`),e.target.parentNode.removeChild(e.target),document.querySelector(`#user-comment-reply`).classList.remove(`comment-form--hidden`)}},!1),document.querySelectorAll(`.js-comment-form`).forEach(e=>{e.classList.add(`comment-form--hidden`)}),document.addEventListener(`click`,e=>{if(e.target.matches(`.js-open-comment-form`)){e.preventDefault(),document.querySelectorAll(`.comment-form`).forEach(e=>{e.classList.add(`comment-form--hidden`)});let t=e.target.getAttribute(`href`);document.querySelector(t).classList.remove(`comment-form--hidden`),document.querySelector(`#user-comment-reply`).classList.remove(`comment-form--hidden`)}},!1)},Wc=`modal--displayed`,Gc=`modal-background__outer`,Kc=`modal-background__outer--displayed`,qc=`modal-background__inner`,Jc=`side-modal-container`,Yc=`side-modal-container--displayed`,Xc=document.createElement(`div`);document.querySelectorAll(`.side-modal-container`).forEach(e=>{document.querySelector(`.main-content`).appendChild(e)});function Zc(e,t=!1){let{body:n}=document,r=e.closest(`.${Jc}`);r.classList.contains(`side-modal-container--chatbot`)&&n.classList.remove(`scroll-locked`),n.classList.remove(Wc),r.classList.remove(Yc),Xc.classList.remove(Kc)}function Qc(e){let{body:t}=document,n=e.getAttribute(`href`),r=document.getElementById(n.substr(1)),i=r.querySelector(`.side-modal-content`),a=document.querySelector(`.${qc}`);r.classList.contains(`side-modal-container--chatbot`)&&t.classList.add(`scroll-locked`),t.classList.add(Wc),r.classList.add(Yc,`side-modal-container--animate`),i.classList.add(`side-modal-content--animate`),Xc.classList.add(Kc),a.classList.add(`modal-background__inner
20--animate`)}var $c=()=>{if(document.querySelectorAll(`.${Jc}`).length>0){Xc.classList.add(Gc);let e=document.createElement(`div`);e.classList.add(qc),Xc.appendChild(e);let t=document.querySelector(`.main-content`),{parentNode:n}=t;n.insertBefore(Xc,t)}document.querySelectorAll(`.side-modal-content`).forEach(e=>{e.closest(`.side-modal-container`).classList.contains(Yc)&&(Xc.classList.add(Kc),document.body.classList.add(Wc));let t=document.createElement(`button`);t.classList.add(`side-modal__close`);let n=document.createElement(`span`);n.classList.add(`side-modal__close-decoration`),t.appendChild(n),e.classList.contains(`onboarding`)&&t.classList.add(`side-modal__close--white`),e.classList.contains(`questionnaire`)||t.addEventListener(`click`,e=>{Zc(e.target)}),e.appendChild(t)}),document.addEventListener(`click`,e=>{let t=e.target.closest(`.js-toggle-side-modal`);t&&Qc(t),e.target.closest(`.js-close-side-modal`)&&Zc(e.target)},!1)},el=()=>{let e=`hidden`;function t(t){let n=t.getAttribute(`data-fieldset`),r=document.getElementById(n);r.classList.contains(e)?r.classList.remove(e):r.classList.add(e)}document.addEventListener(`click`,e=>{e.target.matches(`.js-toggle-fieldset`)&&t(e.target)},!1)},tl=()=>{let e=document.querySelector(`.bottom-bar`),t=document.querySelector(`.quicklinks`),n=document.querySelector(`.quicklink-back-to-top`),r=`quicklinks--visible`,i=`quicklinks--bottombar-visible`,a=`quicklinks--footer-visible`,o=`quicklinks--bottom-footer-visible`,s=window.matchMedia(`(max-width: 768px)`);t&&(t.classList.add(i),window.addEventListener(`scroll`,()=>{n&&(window.pageYOffset>=200?n.classList.add(r):n.classList.remove(r)),window.innerHeight+window.pageYOffset+80>=document.body.offsetHeight?t.classList.contains(a)||t.classList.add(a):t.classList.contains(a)&&t.classList.remove(a),s.matches===!0&&(e!=null&&e.classList.contains(`bottom-bar--visible`)?t.classList.contains(i)||t.classList.add(i):t.classList.contains(i)&&t.classList.remove(i)),t.classList.contains(a)&&t.classList.contains(i)?(t.classList.remove(a),t.classList.remove(i),t.classList.add(o)):t.classList.remove(o)}))},nl=()=>{function e(e){let t=document.getElementsByClassName(`gallery`)[0],n=parseInt(window.getComputedStyle(t).getPropertyValue(`grid-auto-rows`)),r=parseInt(window.getComputedStyle(t).getPropertyValue(`grid-row-gap`)),i=(e.querySelector(`.gallery__content`).getBoundingClientRect().height+r)/(n+r),a=Math.ceil(i);e.style.gridRowEnd=`span ${a}`}function t(){let t=document.getElementsByClassName(`gallery__item`);for(let n=0;n<t.length;n++)e(t[n])}function n(){let e=document.getElementsByClassName(`gallery-detail-card`)[0],t=document.getElementsByClassName(`gallery__display-toggle`)[0];window.scrollTo(0,0),e.classList.contains(`gallery-detail-card--open`)?(e.classList.remove(`gallery-detail-card--open`),t.classList.remove(`gallery__display-toggle--open`)):(e.classList.add(`gallery-detail-card--open`),t.classList.add(`gallery__display-toggle--open`))}window.addEventListener(`resize`,()=>{t()}),window.addEventListener(`load`,()=>{t()}),document.addEventListener(`click`,e=>{e.target.classList.contains(`gallery__display-toggle`)&&n()})},rl=()=>{let e=`faq-item__answer`,t=`faq-item`,n=`faq-item--open`,r=`faq-item__answer--open`;function i(i,o){if(i.classList.contains(e)){let e=i.closest(`.${t}`);cc(i),i.classList.contains(r)===!0?(i.classList.remove(r),e.setAttribute(`open`,!1),e.setAttribute(`aria-expanded`,!1),e.classList.remove(n)):(a(o),i.classList.add(r),e.setAttribute(`open`,!0),e.setAttribute(`aria-expanded`,!0),e.classList.add(n))}}function a(t){let i=t.getElementsByClassName(`faq-item`),a=t.getElementsByClassName(e);for(let e=0;e<i.length;e++)a[e].classList.contains(r)&&(a[e].classList.remove(r),i[e].classList.remove(n),i[e].setAttribute(`open`,!1),i[e].setAttribute(`aria-expanded`,!1),cc(a[e]))}document.querySelectorAll(`.faq-item-list`).forEach(n=>{let r=n.getElementsByClassName(`faq-item`);for(let e=0;e<r.length;e++)r[e].setAttribute(`open`,!1),r[e].setAttribute(`aria-expanded`,!1);n.addEventListener(`click`,r=>{r.target.classList.contains(`faq-item__question`)&&(r.preventDefault(),i(r.target.nextElementSibling,n)),r.target.classList.contains(t)&&i(r.target.getElementsByClassName(e)[0],n)},!1)})},il=()=>{let e=`gene-panel-item-list`,t=`gene-items__container`,n=`gene-panel-item`,r=`gene-panel-item--open`,i=`gene-panel-item__list--open`,a=`gene-name`,o=document.getElementsByClassName(e);function s(e){if(e.classList.contains(`coverage-panel`)&&cc(e),e.classList.contains(t)){let t=e.closest(`.${n}`);if(cc(e),e.classList.contains(i)===!0)e.classList.remove(i),t.setAttribute(`open`,!1),t.classList.remove(r);else{for(let e=0;e<o.length;e++)c(o[e]);e.classList.add(i),t.setAttribute(`open`,!0),t.classList.add(r)}}}function c(e){let a=e.getElementsByClassName(n),o=e.getElementsByClassName(t);for(let e=0;e<a.length;e++)o[e].classList.contains(i)&&(o[e].classList.remove(i),a[e].classList.remove(r),a[e].setAttribute(`open`,!1),cc(o[e].closest(`.${n}`).nextElementSibling),cc(o[e]))}function l(e){if(e.target.classList.contains(`overlay-gene-panel-item__name`)){let r=e.target.closest(`.${n}`).querySelector(`.${t}`);e.preventDefault(),s(r),s(e.target.closest(`.${n}`).nextElementSibling);let i=e.target.closest(`.gene-panel-item`).querySelector(`.gene-name`);e.target.closest(`.gene-panel-item`).querySelector(`.selected`)||i.click()}}document.querySelectorAll(`.${a}
20`).forEach(e=>{e.addEventListener(`click`,e=>{let t=e.target.getAttribute(`attr-coverage-percentage-left`),r=e.target.getAttribute(`attr-coverage-percentage-right`),i=e.target.getAttribute(`attr-omim-link`);e.target.closest(`.gene-panel-item`).nextElementSibling.querySelector(`.omim-link`).setAttribute(`href`,i);let o=e.target.getAttribute(`attr-transcript`),s=e.target.closest(`.genes-list`).getElementsByClassName(a);for(let e=0;e<s.length;e++)s[e].classList.remove(`selected`);e.target.classList.add(`selected`),e.target.closest(`.${n}`).nextElementSibling.querySelector(`.coverage-percentage-left .result`).innerText=`${t}%`,e.target.closest(`.${n}`).nextElementSibling.querySelector(`.coverage-percentage-right .result`).innerText=`${r}%`,e.target.closest(`.${n}`).nextElementSibling.querySelector(`.transcript .result`).innerText=`${o}`})}),document.querySelectorAll(`.${e}`).forEach(e=>{let t=e.getElementsByClassName(n);for(let e=0;e<t.length;e++)t[e].setAttribute(`open`,!1);e.addEventListener(`click`,t=>{l(t,e)},!1),e.addEventListener(`keypress`,function(t){t.key===`Enter`&&l(t,e)})});let u=document.getElementById(`gene-panel-input-filter-search`);u&&u.addEventListener(`input`,d);function d(e){f();let t=u.value.toLowerCase();if(t.length>2){for(let e=0;e<o.length;e++)c(o[e]);let e=document.getElementsByClassName(`gene-panel-category`);for(let r=0;r<e.length;r++)if(e[r].querySelector(`.heading-beta`).textContent.toLowerCase().indexOf(t)===-1){let i=e[r].getElementsByClassName(n),a=0;for(let e=0;e<i.length;e++)i[e].textContent.toLowerCase().indexOf(t)===-1?i[e].classList.add(`hidden`):(i[e].classList.remove(`hidden`),a++);a==0&&e[r].classList.add(`hidden`)}}else f()}function f(){let e=document.getElementsByClassName(n);for(let t=0;t<e.length;t++)e[t].classList.remove(`hidden`);let t=document.getElementsByClassName(`gene-panel-category`);for(let e=0;e<t.length;e++)t[e].classList.remove(`hidden`)}},al=`filter-button-options`,ol=`filter-button-options--open`,sl=`filter-button-trigger`,cl=`filter-button-trigger--open`,ll=()=>{if(!document.querySelector(`.js-show-more-options`))return;let e=document.querySelector(`.${al}`),t=document.querySelector(`.${sl}`);e.classList.remove(ol),t.classList.remove(cl)},ul=()=>{document.addEventListener(`click`,e=>{if(e.target.matches(`.js-show-more-options`)){let e=document.querySelector(`.${al}`),t=document.querySelector(`.${sl}`);e&&t&&(e.classList.contains(ol)?ll():(e.classList.add(ol),t.classList.add(cl)))}})};function dl(e=``){return e.trim().split(` `).filter(e=>!!e.trim())}function fl(e){Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function pl(e,t=0){return setTimeout(e,t)}function ml(){return Date.now()}function hl(e){return window.getComputedStyle(e,null)}function gl(e,t=`x`){let n=hl(e),r=n.transform||n.webkitTransform;if(!r||r===`none`)return 0;let i=new DOMMatrixReadOnly(r);return t===`x`?i.m41:i.m42}function _l(e){return typeof e==`object`&&!!e&&!!e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`}function vl(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement||!!e&&typeof e==`object`&&(e.nodeType===1||e.nodeType===11)}function yl(e,...t){let n=Object(e);for(let e=0;e<t.length;e+=1){let r=t[e];if(r==null||vl(r))continue;let i=r,a=Object.keys(Object(i));for(let e=0,t=a.length;e<t;e+=1){let t=a[e];if(t===`__proto__`||t===`constructor`||t===`prototype`)continue;let r=Object.getOwnPropertyDescriptor(i,t);if(!r||!r.enumerable)continue;let o=i[t];_l(n[t])&&_l(o)?o.__swiper__?n[t]=o:yl(n[t],o):!_l(n[t])&&_l(o)?(n[t]={},o.__swiper__?n[t]=o:yl(n[t],o)):n[t]=o}}return n}function bl(e,t,n){e.style.setProperty(t,n)}function xl(e,t=``){let n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(e=>e.matches(t)):n}function Sl(e,t){let n=[t];for(;n.length>0;){let t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}return!1}function Cl(e,t){let n=t.contains(e);return!n&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=Sl(e,t))),n}function wl(e){try{console.warn(e)}catch{}}function Tl(e,t=[]){let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:dl(t)),n}function El(e,t){let n=[],r=e.previousElementSibling;for(;r;)(!t||r.matches(t))&&n.push(r),r=r.previousElementSibling;return n}function Dl(e,t){let n=[],r=e.nextElementSibling;for(;r;)(!t||r.matches(t))&&n.push(r),r=r.nextElementSibling;return n}function Ol(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}function kl(e){if(!(!e||!e.parentNode))return[...e.parentNode.children].indexOf(e)}function Al(e,t){let n=[],r=e.parentElement;for(;r;)(!t||r.matches(t))&&n.push(r),r=r.parentElement;return n}function jl(e,t,n){{let n=window.getComputedStyle(e,null);return e[t===`width`?`offsetWidth`:`offsetHeight`]+parseFloat(n.getPropertyValue(t===`width`?`margin-right`:`margin-top`))+parseFloat(n.getPropertyValue(t===`width`?`margin-left`:`margin-bottom`))}}function Ml(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function Nl(e,t=``){let n=globalThis.trustedTypes;e.innerHTML=n===void 0?t:n.createPolicy(`html`,{createHTML:e=>e}).createHTML(t)}function Pl(e){"@babel/helpers - typeof";return Pl=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Pl(e)}function Fl(e,t){if(Pl(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Pl(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Il(e){var t=Fl(e,`string`);return Pl(t)==`symbol`?t:t+``}function Ll(e,t,n){return(t=Il(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rl;function zl(){return typeof window>`u`?{touch:!1}:{touch:`ontouchstart`in window||navigator.maxTouchPoints>0}}function Bl(){return Rl||(Rl=zl()),Rl}var Vl;function Hl({userAgent:e}={}){if(typeof window>`u`)return{ios:!1,android:!1};let t=Bl(),n=navigator.platform,r=e||navigator.userAgent,i={ios:!1,android:!1},a=/(Android);?[\s/]+([\d.]+)?/.test(r),o=/(iPhone\sOS|iOS|iPod)/.test(r),s=/iPad/.test(r),c=n===`MacIntel`&&t.touch&&navigator.maxTouchPoints>1,l=s||c;return a&&n!==`Win32`&&(i.os=`android`,i.android=!0),(l||o)&&(i.os=`ios`,i.ios=!0),i}function Ul(e={}){return Vl||(Vl=Hl(e)),Vl}var Wl;function Gl(){if(typeof window>`u`)return{isSafari:!1,isWebView:!1,need3dFix:!1};let e=Ul(),t=navigator.userAgent,n=t.toLowerCase(),r=n.includes(`safari`)&&!n.includes(`chrome`)&&!n.includes(`android`),i=/(iPhone|iPod|iPad).*AppleWeb
20Kit(?!.*Safari)/i.test(t);return{isSafari:r,isWebView:i,need3dFix:r||i&&e.ios}}function Kl(){return Wl||(Wl=Gl()),Wl}var ql=(e,t)=>{if(!e||e.destroyed||!e.params||!e.params.lazyPreload)return;let n=t.closest(e.isElement?`swiper-slide`:`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{if(n.shadowRoot){let t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);t&&!t.lazyPreloaderManaged&&t.remove()}})),t&&!t.lazyPreloaderManaged&&t.remove()}},Jl=(e,t)=>{if(!e.slides[t])return;let n=e.slides[t].querySelector(`[loading="lazy"]`);n&&n.removeAttribute(`loading`)},Yl=e=>{if(!e||e.destroyed||!e.params||!e.params.lazyPreload)return;let t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);let r=e.params.slidesPerView===`auto`?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&(e.params.grid.rows??1)>1){let n=i,a=[n-t];a.push(...Array.from({length:t}).map((e,t)=>n+r+t)),e.slides.forEach((t,n)=>{t.column!==void 0&&a.includes(t.column)&&Jl(e,n)});return}let a=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=a+t;r+=1){let t=(r%n+n)%n;(t<i||t>a)&&Jl(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(a+t,n-1);r+=1)r!==i&&(r>a||r<i)&&Jl(e,r)};function Xl(e,t=`window`,n){if(!e||t===`container`&&!n)return;let r=!1,i=t===`window`?window.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>{if(typeof e==`string`&&e.indexOf(`@`)===0){let t=parseFloat(e.substr(1));return{value:i*t,point:e}}return{value:e,point:e}});a.sort((e,t)=>parseInt(String(e.value),10)-parseInt(String(t.value),10));for(let e=0;e<a.length;e+=1){let{point:i,value:o}=a[e];t===`window`?window.matchMedia(`(min-width: ${o}px)`).matches&&(r=i):o<=n.clientWidth&&(r=i)}return r||`max`}var Zl=(e,t)=>!!(e.grid&&t.grid&&t.grid.rows>1);function Ql(){let e=this,{realIndex:t,initialized:n,params:r,el:i}=e,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;let o=r.breakpointsBase===`window`||!r.breakpointsBase?r.breakpointsBase:`container`,s=[`window`,`container`].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:document.querySelector(r.breakpointsBase),c=e.getBreakpoint(a,o,s);if(!c||e.currentBreakpoint===c)return;let l=a,u=(c in l?l[c]:void 0)||e.originalParams,d=Zl(e,r),f=Zl(e,u),p=e.params.grabCursor,m=u.grabCursor,h=r.enabled;d&&!f?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill===`column`||!u.grid.fill&&r.grid.fill===`column`)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!m?e.unsetGrabCursor():!p&&m&&e.setGrabCursor();let g=(e,t)=>e[t];[`navigation`,`pagination`,`scrollbar`].forEach(t=>{var n,i;let a=g(u,t);if(a===void 0)return;let o=g(r,t),s=typeof o==`object`&&!!o&&o.enabled,c=typeof a==`object`&&!!a&&a.enabled,l=e[t];s&&!c&&(l==null||(n=l.disable)==null||n.call(l)),!s&&c&&(l==null||(i=l.enable)==null||i.call(l))});let _=u.direction&&u.direction!==r.direction,v=r.loop&&(u.slidesPerView!==r.slidesPerView||_),y=r.loop;_&&n&&e.changeDirection(),yl(e.params,u);let b=e.params.enabled,x=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!b?e.disable():!h&&b&&e.enable(),e.currentBreakpoint=c,e.emit(`_beforeBreakpoint`,u),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&x?(e.loopCreate(t),e.updateSlides()):y&&!x&&e.loopDestroy()),e.emit(`breakpoint`,u)}var $l={setBreakpoint:Ql,getBreakpoint:Xl};function eu(){let e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){let t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+r*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?`lock`:`unlock`)}var tu={checkOverflow:eu};function nu(e,t){let n=[];
20return e.forEach(e=>{typeof e==`object`?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):typeof e==`string`&&n.push(t+e)}),n}function ru(){let e=this,{classNames:t,params:n,rtl:r,el:i,device:a}=e,o=nu([`initialized`,n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill===`column`},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function iu(){let e=this,{el:t,classNames:n}=e;!t||typeof t==`string`||(t.classList.remove(...n),e.emitContainerClasses())}var au={addClasses:ru,removeClasses:iu},ou={init:!0,direction:`horizontal`,oneWayMovement:!1,swiperElementNodeName:`SWIPER-CONTAINER`,touchEventsTarget:`wrapper`,initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:`swiper`,enabled:!0,focusableElements:`input, select, option, textarea, button, video, label`,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:`slide`,breakpoints:void 0,breakpointsBase:`window`,spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:`swiper-no-swiping`,noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:`swiper-`,slideClass:`swiper-slide`,slideBlankClass:`swiper-slide-blank`,slideActiveClass:`swiper-slide-active`,slideVisibleClass:`swiper-slide-visible`,slideFullyVisibleClass:`swiper-slide-fully-visible`,slideNextClass:`swiper-slide-next`,slidePrevClass:`swiper-slide-prev`,wrapperClass:`swiper-wrapper`,lazyPreload:!0,lazyPreloaderClass:`swiper-lazy-preloader`,lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1},su={on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;let i=n?`unshift`:`push`;return e.split(` `).forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;let i=function(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)};return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){let n=this;if(!n.eventsListeners||n.destroyed||typeof e!=`function`)return n;let r=t?`unshift`:`push`;return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;let n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){let n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(` `).forEach(e=>{t===void 0?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n},emit(...e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;if(typeof e[0]==`string`||Array.isArray(e[0]))n=e[0],r=e.slice(1,e.length),i=t;else{let a=e[0];n=a.events,r=a.data??[],i=a.context||t}
20return r.unshift(i),(Array.isArray(n)?n:n.split(` `)).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};function cu(e){let t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function lu(){let e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction=`auto`))}function uu(e){let t=this;t.destroyed||(ql(t,e.target),!(t.params.cssMode||t.params.slidesPerView!==`auto`&&!t.params.autoHeight)&&t.update())}function du(){var e;let t=this,{params:n,el:r}=t;if(r&&r.offsetWidth===0)return;n.breakpoints&&t.setBreakpoint();let{allowSlideNext:i,allowSlidePrev:a,snapGrid:o}=t,s=t.virtual&&((e=t.params.virtual)==null?void 0:e.enabled);t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();let c=s&&n.loop;if((n.slidesPerView===`auto`||n.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!c){let e=s?t.virtual.slides.length:t.slides.length;t.slideTo(e-1,0,!1,!0)}else t.params.loop&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0);if(t.autoplay&&t.autoplay.running&&t.autoplay.paused){let e=t.autoplay;clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)}t.allowSlidePrev=a,t.allowSlideNext=i,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function fu(){let e=this;if(e.destroyed)return;let{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.translate=e.isHorizontal()?-t.scrollLeft:-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i,a=e.maxTranslate()-e.minTranslate();i=a===0?0:(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit(`setTranslate`,e.translate,!1)}function pu(e){let t=this;if(t.destroyed)return;let n=t.touchEventsData,r=e.originalEvent??e;if(r.type!==`touchend`&&r.type!==`touchcancel`){if(n.touchId!==null||r.pointerId!==n.pointerId)return}else{let e=[...r.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return}if([`pointercancel`,`pointerout`,`pointerleave`,`contextmenu`].includes(r.type)&&!([`pointercancel`,`contextmenu`].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;let{params:i,touches:a,rtlTranslate:o,slidesGrid:s,enabled:c}=t;if(!c||!i.simulateTouch&&r.pointerType===`mouse`)return;if(n.allowTouchCallbacks&&t.emit(`touchEnd`,r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);let l=ml(),u=l-n.touchStartTime;if(t.allowClick){let e=r.path??(r.composedPath&&r.composedPath());t.updateClickedSlide(e&&e[0],e),t.emit(`tap click`,r),u<300&&l-n.lastClickTime<300&&t.emit(`doubleTap doubleClick`,r)}if(n.lastClickTime=ml(),pl(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let d;if(d=i.followFinger?o?t.translate:-t.translate:-(n.currentTranslate??0),i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:d});return}let f=d>=-t.maxTranslate()&&!t.params.loop,p=0,m=t.slidesSizesGrid[0];for(let e=0;e<s.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){let t=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;s[e+t]===void 0?(f||d>=s[e])&&(p=e,m=s[s.length-1]-s[s.length-2]):(f||d>=s[e]&&d<s[e+t])&&(p=e,m=s[e+t]-s[e])}let h=null,g=null;if(i.rewind){if(t.isBeginning){var _;g=(_=i.virtual)!=null&&_.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1}else t.isEnd&&(h=0)}let v=(d-s[p])/m,y=p<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(u>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection===`next`&&(v>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?h:p+y):t.slideTo(p)),t.swipeDirection===`prev`&&(v>1-i.longSwipesRatio?t.slideTo(p+y):g!==null&&v<0&&Math.abs(v)>i.longSwipesRatio?t.slideTo(g):t.slideTo(p))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(p+y):t.slideTo(p):(t.swipeDirection===`next`&&t.slideTo(h===null?p+y:h),t.swipeDirection===`prev`&&t.slideTo(g===null?p:g))}}function mu(e){let t=this;if(t.destroyed)return;let n=t.touchEventsData,{params:r,touches:i,rtlTranslate:a,enabled:o}=t;if(!o||!r.simulateTouch&&e.pointerType===`mouse`)return;let s=e,c=s.originalEvent??s;if(c.type===`pointermove`&&(n.touchId!==null||c.pointerId!==n.pointerId))return;let l;if(c.type===`touchmove`){let e=[...c.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return;l=e}else l=c;if(!n.isTouched){n.startMoving&&n.isScrolling&&t.emit(`touchMoveOpposite`,c);return}let u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper){i.startX=u,i.startY=d;return}if(!t.allowTouchMove){c.target.matches(n.focusableElements)||(t.allowClick=!1),n.isTouched&&(Object.assign(i,{startX:u,startY:d,currentX:u,currentY:d}),n.touchStartTime=ml());return}if(r.touchReleaseOnEdges&&!r.loop){if(t.isVertical()){if(d<i.startY&&t.translate<=t.maxTranslate()||d>i.startY&&t.translate>=t.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(a&&(u>i.startX&&-t.translate<=t.maxTranslate()||u<i.startX&&-t.translate>=t.minTranslate()))return;else if(!a&&(u<i.startX&&t.translate<=t.maxTranslate()||u>i.startX&&t.translate>=t.minTranslate()))return}if(document.activeElement&&document.activeElement.matches(n.focusableElements)&&document.activeElement!==c.target&&c.pointerType!==`mouse`&&document.activeElement.blur(),document.activeElement&&c.target===document.activeElement&&c.target.matches(n.focusableElements)){n.isMoved=!0,t.allowClick=!1;return}n.allowTouchCallbacks&&t.emit(`touchMove`,c),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=u,i.currentY=d;let f=i.currentX-i.startX,p=i.currentY-i.startY;if(t.params.threshold&&Math.sqrt(f**2+p**2)<t.params.threshold)return;if(n.isScrolling===void 0){let e;t.isHorizontal()&&i.currentY===i.startY||t.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:f*f+p*p>=25&&(e=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,n.isScrolling=t.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(n.isScrolling&&t.emit(`touchMoveOpposite`,c),n.startMoving===void 0&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling||c.type===`touchmove`&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;t.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let m=t.isHorizontal()?f:p,h=t.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;r.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),h=Math.abs(h)*(a?1:-1)),i.diff=m,m*=r.touchRatio,a&&(m=-m,h=-h);let g=t.touchesDirection;t.swipeDirection=m>0?`prev`:`next`,t.touchesDirection=h>0?`prev`:`next`;let _=t.params.loop&&!r.cssMode,v=t.touchesDirection===`next`&&t.allowSlideNext||t.touchesDirection===`prev`&&t.allowSlidePrev;if(!n.isMoved){if(_&&v&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){let e=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
20t.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,r.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit(`sliderFirstMove`,c)}if(new Date().getTime(),r._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&g!==t.touchesDirection&&_&&v&&Math.abs(m)>=1){Object.assign(i,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}t.emit(`sliderMove`,c),n.isMoved=!0;let y=n.startTranslate??0;n.currentTranslate=m+y;let b=!0,x=r.resistanceRatio;if(r.touchReleaseOnEdges&&(x=0),m>0?(_&&v&&n.allowThresholdMove&&n.currentTranslate>(r.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-(r.slidesPerView!==`auto`&&t.slides.length-r.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:`prev`,setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>t.minTranslate()&&(b=!1,r.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+y+m)**x))):m<0&&(_&&v&&n.allowThresholdMove&&n.currentTranslate<(r.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+(r.slidesPerView!==`auto`&&t.slides.length-r.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:`next`,setTranslate:!0,activeSlideIndex:t.slides.length-(r.slidesPerView===`auto`?t.slidesPerViewDynamic():Math.ceil(parseFloat(String(r.slidesPerView))))}),n.currentTranslate<t.maxTranslate()&&(b=!1,r.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-y-m)**x))),b&&(c.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection===`next`&&(n.currentTranslate??0)<y&&(n.currentTranslate=y),!t.allowSlidePrev&&t.swipeDirection===`prev`&&(n.currentTranslate??0)>y&&(n.currentTranslate=y),!t.allowSlidePrev&&!t.allowSlideNext&&(n.currentTranslate=y),r.threshold>0){if(Math.abs(m)>r.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=t.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&t.freeMode||r.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate??0))}function hu(e,t){function n(t){if(!t||t===document||t===window)return null;let r=t;r.assignedSlot&&(r=r.assignedSlot);let i=r.closest(e);if(!i&&!r.getRootNode)return null;let a=r.getRootNode();return i||n(a.host)}return n(t)}function gu(e,t,n){let{params:r}=e,i=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return i&&(n<=a||n>=window.innerWidth-a)?i===`prevent`&&(t.preventDefault(),!0):!0}function _u(e){let t=this;if(t.destroyed)return;let n=e.originalEvent??e,r=t.touchEventsData;if(n.type===`pointerdown`){let e=n;if(r.pointerId!==null&&r.pointerId!==e.pointerId)return;r.pointerId=e.pointerId}else n.type===`touchstart`&&n.targetTouches.length===1&&(r.touchId=n.targetTouches[0].identifier);if(n.type===`touchstart`){gu(t,n,n.targetTouches[0].pageX);return}let{params:i,touches:a,enabled:o}=t;if(!o||!i.simulateTouch&&n.pointerType===`mouse`||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let s=n.target;if(i.touchEventsTarget===`wrapper`&&!Cl(s,t.wrapperEl))return;let c=n;if(typeof c.which==`number`&&c.which===3||typeof c.button==`number`&&c.button>0||r.isTouched&&r.isMoved)return;let l=!!i.noSwipingClass&&i.noSwipingClass!==``,u=n.composedPath?n.composedPath():n.path;l&&n.target&&n.target.shadowRoot&&u&&(s=u[0]);let d=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(i.noSwiping&&(f?hu(d,s):s.closest(d))){t.allowClick=!0;return}if(i.swipeHandler&&typeof i.swipeHandler==`string`&&!s.closest(i.swipeHandler))return;let p=n;a.currentX=p.pageX,a.currentY=p.pageY;let m=a.currentX,h=a.currentY;if(!gu(t,n,m))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=h,r.touchStartTime=ml(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(r.allowThresholdMove=!1);let g=!0;s.matches(r.focusableElements)&&(g=!1,s.nodeName===`SELECT`&&(r.isTouched=!1)),document.activeElement&&document.activeElement.matches(r.focusableElements)&&document.activeElement!==s&&(p.pointerType===`mouse`||p.pointerType!==`mouse`&&!s.matches(r.focusableElements))&&document.activeElement.blur();let _=g&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||_)&&!s.isContentEditable&&n.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit(`touchStart`,n)}var vu=(e,t)=>
20{let{params:n,el:r,wrapperEl:i,device:a}=e,o=!!n.nested,s=t===`on`?`addEventListener`:`removeEventListener`,c=t;if(!r||typeof r==`string`)return;document[s](`touchstart`,e.onDocumentTouchStart,{passive:!1,capture:o}),r[s](`touchstart`,e.onTouchStart,{passive:!1}),r[s](`pointerdown`,e.onTouchStart,{passive:!1}),document[s](`touchmove`,e.onTouchMove,{passive:!1,capture:o}),document[s](`pointermove`,e.onTouchMove,{passive:!1,capture:o}),document[s](`touchend`,e.onTouchEnd,{passive:!0}),document[s](`pointerup`,e.onTouchEnd,{passive:!0}),document[s](`pointercancel`,e.onTouchEnd,{passive:!0}),document[s](`touchcancel`,e.onTouchEnd,{passive:!0}),document[s](`pointerout`,e.onTouchEnd,{passive:!0}),document[s](`pointerleave`,e.onTouchEnd,{passive:!0}),document[s](`contextmenu`,e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&r[s](`click`,e.onClick,!0),n.cssMode&&i[s](`scroll`,e.onScroll);let l=t=>{e[c](t,du,!0)};n.updateOnWindowResize?l(a.ios||a.android?`resize orientationchange observerUpdate`:`resize observerUpdate`):l(`observerUpdate`),n.lazyPreload&&r[s](`load`,e.onLoad,{capture:!0})};function yu(){let e=this,{params:t}=e;e.onTouchStart=_u.bind(e),e.onTouchMove=mu.bind(e),e.onTouchEnd=pu.bind(e),e.onDocumentTouchStart=lu.bind(e),t.cssMode&&(e.onScroll=fu.bind(e)),e.onClick=cu.bind(e),e.onLoad=uu.bind(e),vu(e,`on`)}function bu(){vu(this,`off`)}var xu={attachEvents:yu,detachEvents:bu};function Su(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let n=t.params.touchEventsTarget===`container`?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor=`move`,n.style.cursor=e?`grabbing`:`grab`,t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Cu(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget===`container`?`el`:`wrapperEl`].style.cursor=``,e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var wu={setGrabCursor:Su,unsetGrabCursor:Cu};function Tu(e,t){var n;let r=this,{params:i,slidesEl:a}=r;if(!i.loop||r.virtual&&(n=r.params.virtual)!=null&&n.enabled)return;let o=()=>{xl(a,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute(`data-swiper-slide-index`,String(t))})},s=()=>{let e=xl(a,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(r.recalcSlides(),r.updateSlides())},c=r.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||c)&&s();let l=i.slidesPerGroup*(c?i.grid.rows:1),u=r.slides.length%l!==0,d=c&&r.slides.length%i.grid.rows!==0,f=e=>{for(let t=0;t<e;t+=1){let e=r.isElement?Tl(`swiper-slide`,[i.slideBlankClass]):Tl(`div`,[i.slideClass,i.slideBlankClass]);r.slidesEl.append(e)}};u?(i.loopAddBlankSlides?(f(l-r.slides.length%l),r.recalcSlides(),r.updateSlides()):wl(`Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`),o()):(d&&(i.loopAddBlankSlides?(f(i.grid.rows-r.slides.length%i.grid.rows),r.recalcSlides(),r.updateSlides()):wl(`Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`)),o());let p=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;r.loopFix({slideRealIndex:e,direction:p?void 0:`next`,initial:t})}function Eu(){var e;let t=this,{params:n,slidesEl:r}=t;if(!n.loop||!r||t.virtual&&(e=t.params.virtual)!=null&&e.enabled)return;t.recalcSlides();let i=[];t.slides.forEach(e=>{let t=e,n=t.swiperSlideIndex===void 0?Number(e.getAttribute(`data-swiper-slide-index`)):t.swiperSlideIndex;i[n]=e}),t.slides.forEach(e=>{e.removeAttribute(`data-swiper-slide-index`)}),i.forEach(e=>{r.append(e)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}function Du(e={}){var t,n;let{slideRealIndex:r,slideTo:i=!0,direction:a,setTranslate:o,activeSlideIndex:s,initial:c,byController:l,byMousewheel:u}=e,d=s,f=this;if(!f.params.loop)return;f.emit(`beforeLoopFix`),f.__loopFixInProgress__=!0;let{slides:p,allowSlidePrev:m,allowSlideNext:h,slidesEl:g,params:_}=f,{centeredSlides:v,slidesOffsetBefore:y,slidesOffsetAfter:b,initialSlide:x}=_,S=v||!!y||!!b;if(f.allowSlidePrev=!0,f.allowSlideNext=!0,f.virtual&&(t=_.virtual)!=null&&t.enabled){if(i){let e=f.virtual.slides.length,t=f.virtual.slidesBefore??0;!S&&f.snapIndex===0?f.slideTo(e,0,!1,!0):S&&f.snapIndex<_.slidesPerView?f.slideTo(e+f.snapIndex,0,!1,!0):f.snapIndex===f.snapGrid.length-1&&f.slideTo(t,0,!1,!0)}f.allowSlidePrev=m,f.allowSlideNext=h,f.__loopFixInProgress__=!1,f.emit(`loopFix`);return}let C=_.slidesPerView;C===`auto`?C=f.slidesPerViewDynamic():(C=Math.ceil(parseFloat(String(_.slidesPerView))),S&&C%2==0&&(C+=1));let w=_.slidesPerGroupAuto?C:_.slidesPerGroup,T=e=>(typeof e==`function`?e.call(f):e)||0,E=f.slidesGrid.length>1?(f.slidesGrid[f.slidesGrid.length-1]-f.slidesGrid[0])/(f.slidesGrid.length-1):f.size,D=E>0?T(y)/E:0,O=E>0?T(b)/E:0,k=S?Math.max(w,(v?Math.ceil(C/2):0)+Math.ceil(Math.max(D,O))):w;k%w!==0&&(k+=w-k%w),k+=_.loopAdditionalSlides,f.loopedSlides=k;let A=f.grid&&_.grid&&_.grid.rows>1;p.length<C+k||f.params.effect===`cards`&&p.length<C+k*2?wl(`Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters`):A&&_.grid.fill===`row`&&wl("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let j=[],M=[],N=A?Math.ceil(p.length/_.grid.rows):p.length,P=c&&N-x<C&&!S,ee=P?x:f.activeIndex;d===void 0?d=f.getSlideIndex(p.find(e=>e.classList.contains(_.slideActiveClass))):ee=d;let F=a===`next`||!a,I=a===`prev`||!a,te=0,L=0,ne=(A?p[d].column??0:d)+(S&&o===void 0?(v?-C/2+.5:0)-D:0);if(ne<k){te=Math.max(k-ne,w);for(let e=0;e<k-ne;e+=1){let t=e-Math.floor(e/N)*N;if(A){let e=N-t-1;for(let t=p.length-1;t>=0;--t)p[t].column===e&&j.push(t)}else j.push(N-t-1)}}else if(ne+C>N-k){L=Math.max(ne-(N-k*2),w),P&&(L=Math.max(L,C-N+x+1));for(let e=0;e<L;e+=1){let t=e-Math.floor(e/N)*N;A?p.forEach((e,n)=>{e.column===t&&M.push(n)}):M.push(t)}}if(f.__preventObserver__=!0,requestAnimationFrame(()=>{f.__preventObserver__=!1}),f.params.effect===`cards`&&p.length<C+k*2&&(M.includes(d)&&M.splice(M.indexOf(d),1),j.includes(d)&&j.splice(j.indexOf(d),1)),I&&j.forEac
20h(e=>{let t=p[e];t.swiperLoopMoveDOM=!0,g.prepend(t),t.swiperLoopMoveDOM=!1}),F&&M.forEach(e=>{let t=p[e];t.swiperLoopMoveDOM=!0,g.append(t),t.swiperLoopMoveDOM=!1}),f.recalcSlides(),_.slidesPerView===`auto`?f.updateSlides():A&&(j.length>0&&I||M.length>0&&F)&&f.slides.forEach((e,t)=>{f.grid.updateSlide(t,e,f.slides)}),_.watchSlidesProgress&&f.updateSlidesOffset(),i){if(j.length>0&&I){if(r===void 0){let e=f.slidesGrid[ee],t=f.slidesGrid[ee+te]-e;u?f.setTranslate(f.translate-t):(f.slideTo(ee+Math.ceil(te),0,!1,!0),o&&(f.touchEventsData.startTranslate=f.touchEventsData.startTranslate-t,f.touchEventsData.currentTranslate=f.touchEventsData.currentTranslate-t))}else if(o){let e=A?j.length/_.grid.rows:j.length;f.slideTo(f.activeIndex+e,0,!1,!0),f.touchEventsData.currentTranslate=f.translate}}else if(M.length>0&&F){if(r===void 0){let e=f.slidesGrid[ee],t=f.slidesGrid[ee-L]-e;u?f.setTranslate(f.translate-t):(f.slideTo(ee-L,0,!1,!0),o&&(f.touchEventsData.startTranslate=f.touchEventsData.startTranslate-t,f.touchEventsData.currentTranslate=f.touchEventsData.currentTranslate-t))}else{let e=A?M.length/_.grid.rows:M.length;f.slideTo(f.activeIndex-e,0,!1,!0)}}}f.allowSlidePrev=m,f.allowSlideNext=h;let R=(n=f.controller)==null?void 0:n.control;if(R&&!l){let e={slideRealIndex:r,direction:a,setTranslate:o,activeSlideIndex:d,byController:!0};Array.isArray(R)?R.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===_.slidesPerView&&i})}):R instanceof f.constructor&&R.params.loop&&R.loopFix({...e,slideTo:R.params.slidesPerView===_.slidesPerView&&i})}f.__loopFixInProgress__=!1,f.emit(`loopFix`)}var Ou={loopCreate:Tu,loopFix:Du,loopDestroy:Eu};function ku(e,t){return function(n={}){let r=Object.keys(n)[0],i=n[r];if(typeof i!=`object`||!i){yl(t,n);return}if(e[r]===!0&&(e[r]={enabled:!0}),r===`navigation`&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),[`pagination`,`scrollbar`].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),!(r in e&&`enabled`in i)){yl(t,n);return}typeof e[r]==`object`&&!(`enabled`in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),yl(t,n)}}var Au=({swiper:e,extendParams:t,on:n})=>{let r=[],i=(t,n={})=>{let i=window.MutationObserver||window.WebkitMutationObserver;if(!i)return;let a=new i(t=>{if(e.__preventObserver__)return;if(t.length===1){e.emit(`observerUpdate`,t[0]);return}let n=function(){e.emit(`observerUpdate`,t[0])};window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,0)});a.observe(t,{attributes:n.attributes===void 0||n.attributes,childList:e.isElement||n.childList===void 0||n.childList,characterData:n.characterData===void 0||n.characterData}),r.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n(`init`,()=>{if(e.params.observer){if(e.params.observeParents){let t=Al(e.hostEl);for(let e=0;e<t.length;e+=1)i(t[e])}i(e.hostEl,{childList:e.params.observeSlideChildren}),i(e.wrapperEl,{attributes:!1})}}),n(`destroy`,()=>{r.forEach(e=>{e.disconnect()}),r.splice(0,r.length)})},ju=({swiper:e,on:t,emit:n})=>{let r=null,i=null,a=()=>{!e||e.destroyed||!e.initialized||(n(`beforeResize`),n(`resize`))},o=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(t=>{i=window.requestAnimationFrame(()=>{let{width:n,height:r}=e,i=n,o=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{if(r&&r!==e.el)return;let a=Array.isArray(t)?t[0]:t;i=n?n.width:a.inlineSize,o=n?n.height:a.blockSize}),(i!==n||o!==r)&&a()})}),r.observe(e.el))},s=()=>{i&&window.cancelAnimationFrame(i),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},c=()=>{!e||e.destroyed||!e.initialized||n(`orientationchange`)};t(`init`,()=>{if(e.params.resizeObserver&&window.ResizeObserver!==void 0){o();return}window.addEventListener(`resize`,a),window.addEventListener(`orientationchange`,c)}),t(`destroy`,()=>{s(),window.removeEventListener(`resize`,a),window.removeEventListener(`orientationchange`,c)})};function Mu(e,t=!0,n){var r;let i=this,{enabled:a,params:o,animating:s}=i;if(!a||i.destroyed)return i;e===void 0&&(e=i.params.speed);let c=o.slidesPerGroup;o.slidesPerView===`auto`&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(c=Math.max(i.slidesPerViewDynamic(`current`,!0),1));let l=i.activeIndex<o.slidesPerGroupSkip?1:c,u=i.virtual&&((r=o.virtual)==null?void 0:r.enabled);if(o.loop){if(s&&!u&&o.loopPreventsSliding)return!1;if(i.loopFix({direction:`next`}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return o.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)}function Nu(e,t=!0,n){var r;let i=this,{params:a,snapGrid:o,slidesGrid:s,rtlTranslate:c,enabled:l,animating:u}=i;if(!l||i.destroyed)return i;e===void 0&&(e=i.params.speed);let d=i.virtual&&((r=a.virtual)==null?void 0:r.enabled);if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;i.loopFix({direction:`prev`}),i._clientLeft=i.wrapperEl.clientLeft}let f=c?i.translate:-i.translate;function p(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let m=p(f),h=o.map(e=>p(e)),g=a.freeMode&&a.freeMode.enabled,_=o[h.indexOf(m)-1];if(_===void 0&&(a.cssMode||g)){let e;o.forEach((t,n)=>{m>=t&&(e=n)}),e!==void 0&&(_=g?o[e]:o[e>0?e-1:e])}let v=0;if(_!==void 0&&(v=s.indexOf(_),v<0&&(v=i.activeIndex-1),a.slidesPerView===`auto`&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(v=v-i.slidesPerViewDynamic(`previous`,!0)+1,v=Math.max(v,0))),a.rewind&&i.isBeginning){var y;let r=(y=i.params.virtual)!=null&&y.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,e,t,n)}return a.loop&&i.activeIndex===0&&a.cssMode?(requestAnimationFrame(()=>{i.slideTo(v,e,t,n)}),!0):i.slideTo(v,e,t,n)}function Pu(e,t=!0,n){let r=this;if(!r.destroyed)return e===void 0&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function Fu(e=0,t,n=!0,r,i){var a;typeof e==`string`&&(e=parseInt(e,10));let o=this,s=e;s<0&&(s=0);let{params:c,snapGrid:l,slidesGrid:u,previousIndex:d,activeIndex:f,rtlTranslate:p,wrapperEl:m,enabled:h}=o;if(!h&&!r&&!i||o.destroyed||o.animating&&c.preventInteractionOnTransition)return!1;t===void 0&&(t=o.params.speed);let g=Math.min(o.params.slidesPerGroupSkip,s),_=g+Math.floor((s-g)/o.params.slidesPerGroup);_>=l.length&&(_=l.length-1);let v=-l[_];
20if(c.normalizeSlideIndex)for(let e=0;e<u.length;e+=1){let t=-Math.floor(v*100),n=Math.floor(u[e]*100),r=Math.floor(u[e+1]*100);u[e+1]===void 0?t>=n&&(s=e):t>=n&&t<r-(r-n)/2?s=e:t>=n&&t<r&&(s=e+1)}if(o.initialized&&s!==f&&(!o.allowSlideNext&&(p?v>o.translate&&v>o.minTranslate():v<o.translate&&v<o.minTranslate())||!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(f||0)!==s))return!1;s!==(d||0)&&n&&o.emit(`beforeSlideChangeStart`),o.updateProgress(v);let y;y=s>f?`next`:s<f?`prev`:`reset`;let b=o.virtual&&((a=o.params.virtual)==null?void 0:a.enabled);if(!(b&&i)&&(p&&-v===o.translate||!p&&v===o.translate))return o.updateActiveIndex(s),c.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),c.effect!==`slide`&&o.setTranslate(v),y!==`reset`&&(o.transitionStart(n,y),o.transitionEnd(n,y)),!1;if(c.cssMode){let e=o.isHorizontal(),n=p?v:-v;return t===0?(b&&(o.wrapperEl.style.scrollSnapType=`none`,o._immediateVirtual=!0),b&&!o._cssModeVirtualInitialSet&&(o.params.initialSlide??0)>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?`scrollLeft`:`scrollTop`]=n})):m[e?`scrollLeft`:`scrollTop`]=n,b&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType=``,o._immediateVirtual=!1})):m.scrollTo({[e?`left`:`top`]:n,behavior:`smooth`}),!0}let x=Kl().isSafari;return b&&!i&&x&&o.isElement&&o.virtual.update(!1,!1,s),o.setTransition(t),o.setTranslate(v),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit(`beforeTransitionStart`,t,r),o.transitionStart(n,y),t===0?o.transitionEnd(n,y):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){!o||o.destroyed||e.target===this&&(o.wrapperEl.removeEventListener(`transitionend`,o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,y))}),o.wrapperEl.addEventListener(`transitionend`,o.onSlideToWrapperTransitionEnd)),!0}function Iu(){let e=this;if(e.destroyed)return;let{params:t,slidesEl:n,clickedSlide:r,clickedIndex:i}=e;if(r===void 0||i===void 0)return;let a=t.slidesPerView===`auto`?e.slidesPerViewDynamic():t.slidesPerView,o=e.getSlideIndexWhenGrid(i),s,c=e.isElement?`swiper-slide`:`.${t.slideClass}`,l=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;s=parseInt(r.getAttribute(`data-swiper-slide-index`),10),t.centeredSlides?e.slideToLoop(s):o>(l?(e.slides.length-a)/2-(e.params.grid.rows-1):e.slides.length-a)?(e.loopFix(),o=e.getSlideIndex(xl(n,`${c}[data-swiper-slide-index="${s}"]`)[0]),pl(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}function Lu(e,t=!0,n,r=.5){let i=this;if(i.destroyed)return;e===void 0&&(e=i.params.speed);let a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),c=i.rtlTranslate?i.translate:-i.translate;if(c>=i.snapGrid[s]){let e=i.snapGrid[s],t=i.snapGrid[s+1];c-e>(t-e)*r&&(a+=i.params.slidesPerGroup)}else{let e=i.snapGrid[s-1],t=i.snapGrid[s];c-e<=(t-e)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)}function Ru(e=0,t,n=!0,r){typeof e==`string`&&(e=parseInt(e,10));let i=this;if(i.destroyed)return;t===void 0&&(t=i.params.speed);let a=i.grid&&i.params.grid&&i.params.grid.rows>1,o=e;if(i.params.loop){var s;if(i.virtual&&(s=i.params.virtual)!=null&&s.enabled)o+=i.virtual.slidesBefore??0;else{let e;if(a){let t=o*i.params.grid.rows,n=i.slides.find(e=>Number(e.getAttribute(`data-swiper-slide-index`))===t);e=(n==null?void 0:n.column)??0}else e=i.getSlideIndexByData(o);let t=a?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n,slidesOffsetBefore:s,slidesOffsetAfter:c}=i.params,l=n||!!s||!!c,u;i.params.slidesPerView===`auto`?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(String(i.params.slidesPerView))),l&&u%2==0&&(u+=1));let d=t-e<u;if(l&&(d=d||e<Math.ceil(u/2)),r&&l&&i.params.slidesPerView!==`auto`&&!a&&(d=!1),d){let n=l?e<i.activeIndex?`prev`:`next`:e-i.activeIndex-1<i.params.slidesPerView?`next`:`prev`;i.loopFix({direction:n,slideTo:!0,activeSlideIndex:n===`next`?e+1:e-t+1,slideRealIndex:n===`next`?i.realIndex:void 0})}if(a){let e=o*i.params.grid.rows,t=i.slides.find(t=>Number(t.getAttribute(`data-swiper-slide-index`))===e);o=(t==null?void 0:t.column)??0}else o=i.getSlideIndexByData(o)}}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}var zu={slideTo:Fu,slideToLoop:Ru,slideNext:Mu,slidePrev:Nu,slideReset:Pu,slideToClosest:Lu,slideToClickedSlide:Iu};function Bu(e,t){let n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?`0ms`:``),n.emit(`setTransition`,e,t)}function Vu({swiper:e,runCallbacks:t,direction:n,step:r}){let{activeIndex:i,previousIndex:a}=e,o=n;o||(o=i>a?`next`:i<a?`prev`:`reset`),e.emit(`transition${r}`),t&&o===`reset`?e.emit(`slideResetTransition${r}`):t&&i!==a&&(e.emit(`slideChangeTransition${r}`),o===`next`?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function Hu(e=!0,t){let n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Vu({swiper:n,runCallbacks:e,direction:t,step:`End`}))}function Uu(e=!0,t){let n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Vu({swiper:n,runCallbacks:e,direction:t,step:`Start`}))}var Wu={setTransition:Bu,transitionStart:Uu,transitionEnd:Hu};function Gu(e=this.isHorizontal()?`x`:`y`){let t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:a}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let o=gl(a,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function Ku(){return-this.snapGrid[this.snapGrid.length-1]}function qu(){return-this.snapGrid[0]}function Ju(e,t){let n=this,{rtlTranslate:r,params:i,wrapperEl:a,progress:o}=n,s=0,c=0;n.isHorizontal()?s=r?-e:e:c=e,i.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:c,i.cssMode?a[n.isHorizontal()?`scrollLeft`:`scrollTop`]=n.isHorizontal()?-s:-c:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${s}px, ${c}px, 0px)`);let l,u=n.maxTranslate()-n.minTranslate();l=u===0?0:(e-n.minTranslate())/u,l!==o&&n.updateProgress(e),n.emit(`setTranslate`,n.translate,t)}function Yu(e=0,t=this.params.speed,n=!0,r=!0,i){let a=this,{params:o,wrapperEl:s}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let c=a.minTranslate(),l=a.maxTranslate(),u;if(u=r&&e>c?c:r&&e<l?l:e,a.updateProgress(u),o.cssMode){let e=a.isHorizontal();return t===0?s[e?`scrollLeft`:`scrollTop`]=-u:s.scrollTo({[e?`left`:`top`]:-u,behavior:`smooth`}),!0}return t===0?(a.setTransition(0),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionEnd`))):(a.setTransition(t),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionStart`)),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit(`transitionEnd`))}),a.wrapperEl.addEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd))),!0}var Xu={getTranslate:Gu,setTranslate:Ju,minTranslate:qu,maxTranslate:Ku,translateTo:Yu};function Zu(e){let{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate,i;for(let e=0;e<t.length;e+=1)t[e+1]===void 0?r>=t[e]&&(i=e):r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1);return n.normalizeSlideIndex&&(i<0||i===void 0)&&(i=0),i}function Qu(e){var t,n;let r=this,i=r.rtlTranslate?r.translate:-r.translate,{snapGrid:a,params:o,activeIndex:s,realIndex:c,snapIndex:l}=r,u=e,d,f=e=>{let t=r.virtual.slides,n=e-(r.virtual.slidesBefore??0);return n<0&&(n=t.length+n),n>=t.length&&(n-=t.length),n};if(u===void 0&&(u=Zu(r)),a.indexOf(i)>=0)d=a.indexOf(i);else{let e=Math.min(o.slidesPerGroupSkip,u);d=e+Math.floor((u-e)/o.slidesPerGroup)}if(d>=a.length&&(d=a.length-1),u===s&&!r.params.loop){d!==l&&(r.snapIndex=d,r.emit(`snapIndexChange`));return}if(u===s&&r.params.loop&&r.virtual&&(t=r.params.virtual)!=null&&t.enabled){r.realIndex=f(u);return}let p=r.grid&&o.grid&&o.grid.rows>1,m;if(r.virtual&&(n=o.virtual)!=null&&n.enabled)m=o.loop?f(u):u;else if(p){let e=r.slides.find(e=>e.column===u),t=parseInt(e.getAttribute(`data-swiper-slide-index`),10);Number.isNaN(t)&&(t=Math.max(r.slides.indexOf(e),0)),m=Math.floor(t/o.grid.rows)}else if(r.slides[u]){let e=r.slides[u].getAttribute(`data-swiper-slide-index`);m=e?parseInt(e,10):u}else m=u;Object.assign(r,{previousSnapIndex:l,snapIndex:d,previousRealIndex:c,realIndex:m,previousIndex:s,activeIndex:u}),r.initialized&&Yl(r),!r.__loopFixInProgress__&&(r.emit(`activeIndexChange`),r.emit(`snapIndexChange`),(r.initialized||r.params.runCallbacksOnInit)&&((r.__lastEmittedRealIndex__??c)!==m&&r.emit(`realIndexChange`),r.emit(`slideChange`)),r.__lastEmittedRealIndex__=m)}function $u(e){var t;let n=this,r=[],i=n.virtual&&((t=n.params.virtual)==null?void 0:t.enabled),a=0,o;typeof e==`number`?n.setTransition(e):e===!0&&n.setTransition(n.params.speed);let s=e=>i?n.slides[n.getSlideIndexByData(e)]:n.slides[e];if(n.params.slidesPerView!==`auto`&&n.params.slidesPerView>
201){if(n.params.centeredSlides)(n.visibleSlides||[]).forEach(e=>{r.push(e)});else for(o=0;o<Math.ceil(n.params.slidesPerView);o+=1){let e=n.activeIndex+o;if(e>n.slides.length&&!i)break;let t=s(e);t&&r.push(t)}}else{let e=s(n.activeIndex);e&&r.push(e)}for(o=0;o<r.length;o+=1)if(r[o]!==void 0){let e=r[o].offsetHeight;a=e>a?e:a}(a||a===0)&&(n.wrapperEl.style.height=`${a}px`)}function ed(e,t){let n=this,r=n.params,i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let a=!1,o;if(i){for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){a=!0,o=e;break}}if(i&&a){var s;n.clickedSlide=i,n.clickedIndex=n.virtual&&(s=n.params.virtual)!=null&&s.enabled?parseInt(i.getAttribute(`data-swiper-slide-index`),10):o}else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}function td(e){let t=this;if(e===void 0){let n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}let n=t.params,r=t.maxTranslate()-t.minTranslate(),{progress:i,isBeginning:a,isEnd:o}=t,s=t.progressLoop,c=a,l=o;if(r===0)i=0,a=!0,o=!0;else{i=(e-t.minTranslate())/r;let n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;a=n||i<=0,o=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){let n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],a=t.slidesGrid[r],o=t.slidesGrid[t.slidesGrid.length-1],c=Math.abs(e);s=c>=i?(c-i)/o:(c+o-a)/o,s>1&&--s}Object.assign(t,{progress:i,progressLoop:s,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!c&&t.emit(`reachBeginning toEdge`),o&&!l&&t.emit(`reachEnd toEdge`),(c&&!a||l&&!o)&&t.emit(`fromEdge`),t.emit(`progress`,i)}function nd(){let e=this,t,n,r=e.el;t=e.params.width!==void 0&&e.params.width!==null?e.params.width:r.clientWidth,n=e.params.height!==void 0&&e.params.height!==null?e.params.height:r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Ol(r,`padding-left`)||`0`,10)-parseInt(Ol(r,`padding-right`)||`0`,10),n=n-parseInt(Ol(r,`padding-top`)||`0`,10)-parseInt(Ol(r,`padding-bottom`)||`0`,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function rd(){var e;let t=this;function n(e,n){return parseFloat(e.getPropertyValue(t.getDirectionLabel(n))||`0`)}let r=t.params,{wrapperEl:i,slidesEl:a,rtlTranslate:o,wrongRTL:s}=t,c=!!(t.virtual&&(e=r.virtual)!=null&&e.enabled),l=c?t.virtual.slides.length:t.slides.length,u=xl(a,`.${t.params.slideClass}, swiper-slide`),d=c?t.virtual.slides.length:u.length,f=[],p=[],m=[],h=e=>typeof e==`function`?e.call(t):e,g=h(r.slidesOffsetBefore),_=h(r.slidesOffsetAfter),v=t.snapGrid.length,y=t.slidesGrid.length,b=t.size-g-_,x=r.spaceBetween,S=-g,C=0,w=0;if(b===void 0)return;typeof x==`string`&&x.indexOf(`%`)>=0?x=parseFloat(x.replace(`%`,``))/100*b:typeof x==`string`&&(x=parseFloat(x)),t.virtualSize=-x-g-_,u.forEach(e=>{o?e.style.marginLeft=``:e.style.marginRight=``,e.style.marginBottom=``,e.style.marginTop=``}),r.centeredSlides&&r.cssMode&&(bl(i,`--swiper-centered-offset-before`,``),bl(i,`--swiper-centered-offset-after`,``)),r.cssMode&&(bl(i,`--swiper-slides-offset-before`,`${g}px`),bl(i,`--swiper-slides-offset-after`,`${_}px`));let T=r.grid&&r.grid.rows>1&&t.grid;T?t.grid.initSlides(u):t.grid&&t.grid.unsetSlides();let E=0,D=r.slidesPerView===`auto`&&r.breakpoints&&Object.keys(r.breakpoints).filter(e=>{let t=r.breakpoints[e];return(t==null?void 0:t.slidesPerView)!==void 0}).length>0;for(let e=0;e<d;e+=1){E=0;let i=u[e];if(!(i&&(T&&t.grid.updateSlide(e,i,u),Ol(i,`display`)===`none`))){if(c&&r.slidesPerView===`auto`){var O;(O=r.virtual)!=null&&O.slidesPerViewAutoSlideSize&&(E=r.virtual.slidesPerViewAutoSlideSize),E&&i&&(r.roundLengths&&(E=Math.floor(E)),i.style[t.getDirectionLabel(`width`)]=`${E}px`)}else if(r.slidesPerView===`auto`){D&&(i.style[t.getDirectionLabel(`width`)]=``);let e=getComputedStyle(i),a=i.style.transform,o=i.style.webkitTransform;if(a&&(i.style.transform=`none`),o&&(i.style.webkitTransform=`none`),r.roundLengths)E=t.isHorizontal()?jl(i,`width`):jl(i,`height`);else{let t=n(e,`width`),r=n(e,`padding-left`),a=n(e,`padding-right`),o=n(e,`margin-left`),s=n(e,`margin-right`),c=e.getPropertyValue(`box-sizing`);if(c&&c===`border-box`)E=t+o+s;else{let{clientWidth:e,offsetWidth:n}=i;E=t+r+a+o+s+(n-e)}}a&&(i.style.transform=a),o&&(i.style.webkitTransform=o),r.roundLengths&&(E=Math.floor(E))}else E=(b-(r.slidesPerView-1)*x)/r.slidesPerView,r.roundLengths&&(E=Math.floor(E)),i&&(i.style[t.getDirectionLabel(`width`)]=`${E}px`);
20i&&(i.swiperSlideSize=E),m.push(E),r.centeredSlides?(S=S+E/2+C/2+x,C===0&&e!==0&&(S=S-b/2-x),e===0&&(S=S-b/2-x),Math.abs(S)<1/1e3&&(S=0),r.roundLengths&&(S=Math.floor(S)),w%r.slidesPerGroup===0&&f.push(S),p.push(S)):(r.roundLengths&&(S=Math.floor(S)),(w-Math.min(t.params.slidesPerGroupSkip,w))%t.params.slidesPerGroup===0&&f.push(S),p.push(S),S=S+E+x),t.virtualSize+=E+x,C=E,w+=1}}if(t.virtualSize=Math.max(t.virtualSize,b)+_,o&&s&&(r.effect===`slide`||r.effect===`coverflow`)&&(i.style.width=`${t.virtualSize+x}px`),r.setWrapperSize&&(i.style[t.getDirectionLabel(`width`)]=`${t.virtualSize+x}px`),T&&t.grid.updateWrapperSize(E,f),!r.centeredSlides){let e=r.slidesPerView!==`auto`&&r.slidesPerView%1!=0,n=r.snapToSlideEdge&&!r.loop&&(r.slidesPerView===`auto`||e),i=f.length;if(n){let e;if(r.slidesPerView===`auto`){e=1;let t=0;for(let n=m.length-1;n>=0&&(t+=m[n]+(n<m.length-1?x:0),t<=b);--n)e=m.length-n}else e=Math.floor(r.slidesPerView);i=Math.max(d-e,0)}let a=[];for(let e=0;e<f.length;e+=1){let o=f[e];r.roundLengths&&(o=Math.floor(o)),n?e<=i&&a.push(o):f[e]<=t.virtualSize-b&&a.push(o)}f=a,Math.floor(t.virtualSize-b)-Math.floor(f[f.length-1])>1&&(n||f.push(t.virtualSize-b))}if(c&&r.loop){let e=m[0]+x,n=(t.virtual.slidesBefore??0)+(t.virtual.slidesAfter??0);if(r.slidesPerGroup>1){let t=Math.ceil(n/r.slidesPerGroup),i=e*r.slidesPerGroup;for(let e=0;e<t;e+=1)f.push(f[f.length-1]+i)}for(let i=0;i<n;i+=1)r.slidesPerGroup===1&&f.push(f[f.length-1]+e),p.push(p[p.length-1]+e),t.virtualSize+=e}if(f.length===0&&(f=[0]),x!==0){let e=t.isHorizontal()&&o?`marginLeft`:t.getDirectionLabel(`marginRight`);u.filter((e,t)=>!r.cssMode||r.loop?!0:t!==u.length-1).forEach(t=>{t.style[e]=`${x}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;m.forEach(t=>{e+=t+(x||0)}),e-=x;let t=e>b?e-b:0;f=f.map(e=>e<=0?-g:e>t?t+_:e)}if(r.centerInsufficientSlides){let e=0;if(m.forEach(t=>{e+=t+(x||0)}),e-=x,e<b){let t=(b-e)/2;f.forEach((e,n)=>{f[n]=e-t}),p.forEach((e,n)=>{p[n]=e+t})}}if(Object.assign(t,{slides:u,snapGrid:f,slidesGrid:p,slidesSizesGrid:m}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){bl(i,`--swiper-centered-offset-before`,`${-f[0]}px`),bl(i,`--swiper-centered-offset-after`,`${t.size/2-m[m.length-1]/2}px`);let e=-t.snapGrid[0],n=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+n)}if(d!==l&&t.emit(`slidesLengthChange`),f.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit(`snapGridLengthChange`)),p.length!==y&&t.emit(`slidesGridLengthChange`),r.watchSlidesProgress&&t.updateSlidesOffset(),t.emit(`slidesUpdated`),!c&&!r.cssMode&&(r.effect===`slide`||r.effect===`fade`)){let e=`${r.containerModifierClass}backface-hidden`,n=t.el.classList.contains(e);d<=r.maxBackfaceHiddenSlides?n||t.el.classList.add(e):n&&t.el.classList.remove(e)}}var id=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function ad(){var e;let t=this,{slides:n,params:r,slidesEl:i,activeIndex:a}=t,o=!!(t.virtual&&(e=r.virtual)!=null&&e.enabled),s=t.grid&&r.grid&&r.grid.rows>1,c=e=>xl(i,`.${r.slideClass}${e}, swiper-slide${e}`)[0],l,u,d;if(o){if(r.loop){let e=t.virtual.slides,n=a-(t.virtual.slidesBefore??0);n<0&&(n=e.length+n),n>=e.length&&(n-=e.length),l=c(`[data-swiper-slide-index="${n}"]`)}else l=c(`[data-swiper-slide-index="${a}"]`)}else s?(l=n.find(e=>e.column===a),d=n.find(e=>e.column===a+1),u=n.find(e=>e.column===a-1)):l=n[a];l&&(s||(d=Dl(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!d&&(d=n[0]),u=El(l,`.${r.slideClass}, swiper-slide`)[0],r.loop)),n.forEach(e=>{id(e,e===l,r.slideActiveClass),id(e,e===d,r.slideNextClass),id(e,e===u,r.slidePrevClass)}),t.emitSlidesClasses()}function od(){let e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}var sd=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function cd(e=this&&this.translate||0){let t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:a}=t;if(r.length===0)return;r[0].swiperSlideOffset===void 0&&t.updateSlidesOffset();let o=-e;i&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s==`string`&&s.indexOf(`%`)>=0?s=parseFloat(s.replace(`%`,``))/100*t.size:typeof s==`string`&&(s=parseFloat(s));for(let e=0;e<r.length;e+=1){let c=r[e],l=c.swiperSlideOffset??0;n.cssMode&&n.centeredSlides&&(l-=r[0].swiperSlideOffset??0);let u=c.swiperSlideSize??0,d=(o+(n.centeredSlides?t.minTranslate():0)-l)/(u+s),f=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-l)/(u+s),p=-(o-l),m=p+t.slidesSizesGrid[e],h=p>=0&&p<=t.size-t.slidesSizesGrid[e],g=p>=0&&p<t.size-1||m>1&&m<=t.size||p<=0&&m>=t.size;g&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(e)),sd(c,g,n.slideVisibleClass),sd(c,h,n.slideFullyVisibleClass),c.progress=i?-d:d,c.originalProgress=i?-f:f}}var ld={eventsEmitter:su,update:{updateSize:nd,updateSlides:rd,updateAutoHeight:$u,updateSlidesOffset:od,updateSlidesProgress:cd,updateProgress:td,updateSlidesClasses:ad,updateActiveIndex:Qu,updateClickedSlide:ed},translate:Xu,transition:Wu,slide:zu,loop:Ou,grabCursor:wu,events:xu,breakpoints:$l,checkOverflow:tu,classes:au},ud={},dd=class e{constructor(...t){let n,r;if(t.length===1&&t[0]!==null&&typeof t[0]==`object`&&Object.prototype.toString.call(t[0]).slice(8,-1)===`Object`?r=t[0]:[n,r]=t,r||(r={}),r=yl({},r),n&&!r.el&&(r.el=n),r.el&&typeof r.el==`string`&&typeof document<`u`&&document.querySelectorAll(r.el).length>1){let t=[];return document.querySelectorAll(r.el).forEach(n=>{let i=yl({},r,{el:n});t.push(new e(i))}),t}let i=this;i.__swiper__=!0,i.support=Bl(),i.device=Ul({userAgent:r.userAgent??void 0}),i.browser=Kl(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__||[]],r.modules&&Array.isArray(r.modules)&&r.modules.forEac
20h(e=>{let t=e;typeof t==`function`&&i.modules.indexOf(t)<0&&i.modules.push(t)});let a={};if(i.modules.forEach(e=>{e({params:r,swiper:i,extendParams:ku(r,a),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})}),i.params=yl({},yl({},ou,a),ud,r),i.originalParams=yl({},i.params),i.passedParams=yl({},r),i.params&&i.params.on){let e=i.params.on;Object.keys(e).forEach(t=>{let n=e[t];n&&i.on(t,n)})}return i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction===`horizontal`},isVertical(){return i.params.direction===`vertical`},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit(`_swiper`),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:`height`,"margin-top":`margin-left`,"margin-bottom ":`margin-right`,"margin-left":`margin-top`,"margin-right":`margin-bottom`,"padding-left":`padding-top`,"padding-right":`padding-bottom`,marginRight:`marginBottom`}[e]}isHorizontal(){return this.params.direction===`horizontal`}isVertical(){return this.params.direction===`vertical`}cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23}getSlideIndex(e){let{slidesEl:t,params:n}=this,r=kl(xl(t,`.${n.slideClass}, swiper-slide`)[0]);return kl(e)-(r??0)}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>Number(t.getAttribute(`data-swiper-slide-index`))===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill===`column`?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill===`row`&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=xl(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit(`enable`))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit(`disable`))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let n=this.minTranslate(),r=(this.maxTranslate()-n)*e+n;this.translateTo(r,t===void 0?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){if(!this.params._emitClasses||!this.el)return;let e=this.el.className.split(` `).filter(e=>e.indexOf(`swiper`)===0||e.indexOf(this.params.containerModifierClass)===0);this.emit(`_containerClasses`,e.join(` `))}getSlideClasses(e){return this.destroyed?``:e.className.split(` `).filter(e=>e.indexOf(`swiper-slide`)===0||e.indexOf(this.params.slideClass)===0).join(` `)}emitSlidesClasses(){if(!this.params._emitClasses||!this.el)return;let e=[];this.slides.forEach(t=>{let n=this.getSlideClasses(t);e.push({slideEl:t,classNames:n}),this.emit(`_slideClass`,t,n)}),this.emit(`_slideClasses`,e)}slidesPerViewDynamic(e=`current`,t=!1){let{params:n,slides:r,slidesGrid:i,slidesSizesGrid:a,size:o,activeIndex:s}=this,c=1;if(typeof n.slidesPerView==`number`)return n.slidesPerView;if(!o)return c;if(n.centeredSlides){let e=r[s]?Math.ceil(r[s].swiperSlideSize??0):0,t=!1;for(let n=s+1;n<r.length;n+=1)r[n]&&!t&&(e+=Math.ceil(r[n].swiperSlideSize??0),c+=1,e>o&&(t=!0));for(let n=s-1;n>=0;--n)r[n]&&!t&&(e+=r[n].swiperSlideSize??0,c+=1,e>o&&(t=!0))}else if(e===`current`)for(let e=s+1;e<r.length;e+=1)(t?i[e]+a[e]-i[s]<o:i[e]-i[s]<o)&&(c+=1);else for(let e=s-1;e>=0;--e)i[s]-i[e]<o&&(c+=1);return c}update(){var e;let t=this;if(!t||t.destroyed)return;let{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),r.lazyPreload&&[...t.el.querySelectorAll(`[loading="lazy"]`)].forEac
20h(e=>{e.complete&&ql(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){let e=t.rtlTranslate?t.translate*-1:t.translate,n=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}let a;if((e=r.freeMode)!=null&&e.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView===`auto`||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){var o;let e=t.virtual&&(o=r.virtual)!=null&&o.enabled?t.virtual.slides.length:t.slides.length;a=t.slideTo(e-1,0,!1,!0)}else a=t.slideTo(t.activeIndex,0,!1,!0);a||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit(`update`)}changeDirection(e,t=!0){let n=this,r=n.params.direction;return e||(e=r===`horizontal`?`vertical`:`horizontal`),e===r||e!==`horizontal`&&e!==`vertical`?n:(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.rtlTranslate=e===`horizontal`&&n.rtl,n.slides.forEach(t=>{e===`vertical`?t.style.width=``:t.style.height=``}),n.emit(`changeDirection`),t&&n.update(),n)}changeLanguageDirection(e){let t=this;t.rtl&&e===`rtl`||!t.rtl&&e===`ltr`||(t.rtl=e===`rtl`,t.rtlTranslate=t.params.direction===`horizontal`&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir=`rtl`):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir=`ltr`),t.update())}mount(e){let t=this;if(t.mounted)return!0;if(typeof document>`u`)return!1;let n=e??t.params.el,r=null;if(typeof n==`string`?r=document.querySelector(n):n instanceof HTMLElement&&(r=n),!r)return!1;r.swiper=t;let i=r.parentNode;i&&i.host&&i.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let a=()=>`.${(t.params.wrapperClass||``).trim().split(` `).join(`.`)}`,o=r&&r.shadowRoot?r.shadowRoot.querySelector(a()):xl(r,a())[0];!o&&t.params.createElements&&(o=Tl(`div`,t.params.wrapperClass),r.append(o),xl(r,`.${t.params.slideClass}`).forEach(e=>{o.append(e)}));let s=t.isElement?r.parentNode.host:null;return Object.assign(t,{el:r,wrapperEl:o,slidesEl:t.isElement&&!s.slideSlots?s:o,hostEl:t.isElement?s:r,mounted:!0,rtl:r.dir.toLowerCase()===`rtl`||Ol(r,`direction`)===`rtl`,rtlTranslate:t.params.direction===`horizontal`&&(r.dir.toLowerCase()===`rtl`||Ol(r,`direction`)===`rtl`),wrongRTL:Ol(o,`display`)===`-webkit-box`}),!0}init(e){var t;let n=this;if(n.initialized||n.mount(e)===!1)return n;if(n.emit(`beforeInit`),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&(t=n.params.virtual)!=null&&t.enabled?n.slideTo((n.params.initialSlide??0)+(n.virtual.slidesBefore??0),0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents(),n.params.lazyPreload){let e=[...n.el.querySelectorAll(`[loading="lazy"]`)];n.isElement&&e.push(...n.hostEl.querySelectorAll(`[loading="lazy"]`)),e.forEach(e=>{e.complete?ql(n,e):e.addEventListener(`load`,e=>{ql(n,e.target)})})}return n.initialized=!0,Yl(n),n.emit(`init`),n.emit(`afterInit`),n}destroy(e=!0,t=!0){let n=this,{params:r,el:i,wrapperEl:a,slides:o}=n;return n.params===void 0||n.destroyed?null:(n.emit(`beforeDestroy`),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&typeof i!=`string`&&i.removeAttribute(`style`),a&&a.removeAttribute(`style`),o&&o.length&&o.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute(`style`),e.removeAttribute(`data-swiper-slide-index`)})),n.emit(`destroy`),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),e!==!1&&(n.el&&typeof n.el!=`string`&&(n.el.swiper=null),fl(n)),n.destroyed=!0,null)}static extendDefaults(e){yl(ud,e)}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);let n=e.prototype.__modules__;typeof t==`function`&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>e.installModule(t)),e):(e.installModule(t),e)}};Ll(dd,`extendedDefaults`,void 0),Ll(dd,`defaults`,void 0),Object.defineProperty(dd,"extendedDefaults",{get(){return ud}}),Object.defineProperty(dd,"defaults",{get(){return ou}});var fd=ld,pd=dd.prototype;
20Object.keys(fd).forEach(e=>{let t=fd[e];Object.keys(t).forEach(e=>{pd[e]=t[e]})}),dd.use([ju,Au]);function md(e,t,n,r){let i=n??{},a=t??{};return e.params.createElements&&Object.keys(r).forEach(t=>{if(!i[t]&&i.auto===!0){let n=xl(e.el,`.${r[t]}`)[0];n||(n=Tl(`div`,r[t]),n.className=r[t],e.el.append(n)),i[t]=n,a[t]=n}}),i}var hd=`<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>`,gd=({swiper:e,extendParams:t,on:n,emit:r})=>{t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:`swiper-button-disabled`,hiddenClass:`swiper-button-hidden`,lockClass:`swiper-button-lock`,navigationDisabledClass:`swiper-navigation-disabled`}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:hd};function i(){return e.params.navigation}function a(t){let n;return t&&typeof t==`string`&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&(typeof t==`string`&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&typeof t==`string`&&n&&n.length>1&&e.el.querySelectorAll(t).length===1?n=e.el.querySelector(t):n&&n.length===1&&(n=n[0])),t&&!n?t:n)}function o(t,n){let r=i();Ml(t).forEach(t=>{t&&(t.classList[n?`add`:`remove`](...r.disabledClass.split(` `)),t.tagName===`BUTTON`&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](r.lockClass))})}function s(){let{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop){o(n,!1),o(t,!1);return}o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function c(t){t.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r(`navigationPrev`))}function l(t){t.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r(`navigationNext`))}function u(){e.params.navigation=md(e,e.originalParams.navigation,e.params.navigation,{nextEl:`swiper-button-next`,prevEl:`swiper-button-prev`});let t=i();if(!(t.nextEl||t.prevEl))return;let n=a(t.nextEl),r=a(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r});let o=Ml(n),s=Ml(r),u=(n,r)=>{if(n){if(t.addIcons&&n.matches(`.swiper-button-next,.swiper-button-prev`)&&!n.querySelector(`svg`)){let e=document.createElement(`div`);Nl(e,hd);let t=e.querySelector(`svg`);t&&n.appendChild(t),e.remove()}n.addEventListener(`click`,r===`next`?l:c)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(` `))};o.forEach(e=>u(e,`next`)),s.forEach(e=>u(e,`prev`))}function d(){let t=i(),{nextEl:n,prevEl:r}=e.navigation,a=Ml(n),o=Ml(r),s=(e,n)=>{e.removeEventListener(`click`,n===`next`?l:c),e.classList.remove(...t.disabledClass.split(` `))};a.forEach(e=>s(e,`next`)),o.forEach(e=>s(e,`prev`))}n(`init`,()=>{i().enabled===!1?p():(u(),s())}),n(`toEdge fromEdge lock unlock`,()=>{s()}),n(`destroy`,()=>{d()}),n(`enable disable`,()=>{let t=i(),{nextEl:n,prevEl:r}=e.navigation,a=Ml(n),o=Ml(r);if(e.enabled){s();return}[...a,...o].filter(e=>!!e).forEach(e=>e.classList.add(t.lockClass))}),n(`click`,(t,n)=>{let a=i(),{nextEl:o,prevEl:s}=e.navigation,c=Ml(o),l=Ml(s),u=n.target,d=l.includes(u)||c.includes(u);if(e.isElement&&!d){let e=n.composedPath?n.composedPath():[];e.length&&(d=e.find(e=>c.includes(e)||l.includes(e)))}if(a.hideOnClick&&!d){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===u||e.pagination.el.contains(u)))return;let t;c.length?t=c[0].classList.contains(a.hiddenClass):l.length&&(t=l[0].classList.contains(a.hiddenClass)),r(t===!0?`navigationShow`:`navigationHide`),[...c,...l].filter(e=>!!e).forEach(e=>e.classList.toggle(a.hiddenClass))}});let f=()=>{let t=i();e.el.classList.remove(...t.navigationDisabledClass.split(` `)),u(),s()},p=()=>{let t=i();e.el.classList.add(...t.navigationDisabledClass.split(` `)),d()};Object.assign(e.navigation,{enable:f,disable:p,update:s,init:u,destroy:d})};function _d(e=``){return`.${e.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g,`\\$1`).replace(/ /g,`.`)}`}var vd=e=>{var t;return!!e.virtual&&!!((t=e.params.virtual)!=null&&t.enabled)},yd=e=>{var t;return!!((t=e.params.freeMode)!=null&&t.enabled)},bd=e=>{var t;if(vd(e))return e.virtual.slides.length;let n=(t=e.params.grid)==null?void 0:t.rows;return e.grid&&n&&n>1?e.slides.length/Math.ceil(n):e.slides.length},xd=({swiper:e,extendParams:t,on:n,emit:r})=>{let i=`swiper-pagination`;t({pagination:{el:null,bulletElement:`span`,clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:`bullets`,dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0;function s(){return e.params.pagination}function c(){return!s().el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function l(e,t){let{bulletActiveClass:n}=s();if(!e)return;let r=e[`${t===`prev`?`previous`:`next`}ElementSibling`];r&&(r.classList.add(`${n}-${t}`),r=r[`${t===`prev`?`previous`:`next`}ElementSibling`],r&&r.classList.add(`${n}-${t}-${t}`))}function u(e,t,n){if(e%=n,t%=n,t===e+1)return`next`;if(t===e-1)return`previous`}function d(t){let n=t.target.closest(_d(s().bulletClass));if(!n)return;t.preventDefault();let r=(kl(n)??0)*(e.params.slidesPerGroup??1);if(e.params.loop){if(e.realIndex===r)return;let t=u(e.realIndex,r,e.slides.length);t===`next`?e.slideNext():t===`previous`?e.slidePrev():e.slideToLoop(r)}else e.slideTo(r)}function f(){let t=e.rtl,n=s();if(c())return;
20let i=Ml(e.pagination.el),u,d,f=bd(e),p=e.params.loop?Math.ceil(f/(e.params.slidesPerGroup??1)):e.snapGrid.length;if(e.params.loop?(d=e.previousRealIndex||0,u=(e.params.slidesPerGroup??1)>1?Math.floor(e.realIndex/(e.params.slidesPerGroup??1)):e.realIndex):e.snapIndex===void 0?(d=e.previousIndex||0,u=e.activeIndex||0):(u=e.snapIndex,d=e.previousSnapIndex),n.type===`bullets`&&e.pagination.bullets&&e.pagination.bullets.length>0){let r=e.pagination.bullets,s=0,c=0,f=0;if(n.dynamicBullets){a=jl(r[0],e.isHorizontal()?`width`:`height`);let t=e.isHorizontal()?`width`:`height`;i.forEach(e=>{e.style[t]=`${(a??0)*(n.dynamicMainBullets+4)}px`}),n.dynamicMainBullets>1&&d!==void 0&&(o+=u-(d||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),s=Math.max(u-o,0),c=s+(Math.min(r.length,n.dynamicMainBullets)-1),f=(c+s)/2}if(r.forEach(e=>{let t=[``,`-next`,`-next-next`,`-prev`,`-prev-prev`,`-main`].map(e=>`${n.bulletActiveClass}${e}`).flatMap(e=>typeof e==`string`&&e.includes(` `)?e.split(` `):[e]);e.classList.remove(...t)}),i.length>1)r.forEach(t=>{let r=kl(t);r===u?t.classList.add(...n.bulletActiveClass.split(` `)):e.isElement&&t.setAttribute(`part`,`bullet`),n.dynamicBullets&&r!==void 0&&(r>=s&&r<=c&&t.classList.add(...`${n.bulletActiveClass}-main`.split(` `)),r===s&&l(t,`prev`),r===c&&l(t,`next`))});else{let t=r[u];if(t&&t.classList.add(...n.bulletActiveClass.split(` `)),e.isElement&&r.forEach((e,t)=>{e.setAttribute(`part`,t===u?`bullet-active`:`bullet`)}),n.dynamicBullets){let e=r[s],t=r[c];for(let e=s;e<=c;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(` `));l(e,`prev`),l(t,`next`)}}if(n.dynamicBullets){let i=Math.min(r.length,n.dynamicMainBullets+4),o=((a??0)*i-(a??0))/2-f*(a??0),s=t?`right`:`left`,c=e.isHorizontal()?s:`top`;r.forEach(e=>{e.style[c]=`${o}px`})}}i.forEach((t,i)=>{if(n.type===`fraction`&&(t.querySelectorAll(_d(n.currentClass)).forEach(e=>{e.textContent=String(n.formatFractionCurrent(u+1))}),t.querySelectorAll(_d(n.totalClass)).forEach(e=>{e.textContent=String(n.formatFractionTotal(p))})),n.type===`progressbar`){let r;r=n.progressbarOpposite?e.isHorizontal()?`vertical`:`horizontal`:e.isHorizontal()?`horizontal`:`vertical`;let i=(u+1)/p,a=1,o=1;r===`horizontal`?a=i:o=i,t.querySelectorAll(_d(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}n.type===`custom`&&n.renderCustom?(Nl(t,n.renderCustom(e,u+1,p)),i===0&&r(`paginationRender`,t)):(i===0&&r(`paginationRender`,t),r(`paginationUpdate`,t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](n.lockClass)})}function p(){let t=s();if(c())return;let n=bd(e),i=Ml(e.pagination.el),a=``;if(t.type===`bullets`){let r=e.params.loop?Math.ceil(n/(e.params.slidesPerGroup??1)):e.snapGrid.length;e.params.freeMode&&yd(e)&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?a+=t.renderBullet.call(e,n,t.bulletClass):a+=`<${t.bulletElement} ${e.isElement?`part="bullet"`:``} class="${t.bulletClass}"></${t.bulletElement}>`}t.type===`fraction`&&(a=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),t.type===`progressbar`&&(a=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(n=>{t.type!==`custom`&&Nl(n,a||``),t.type===`bullets`&&e.pagination.bullets.push(...Array.from(n.querySelectorAll(_d(t.bulletClass))))}),t.type!==`custom`&&r(`paginationRender`,i[0])}function m(){e.params.pagination=md(e,e.originalParams.pagination,e.params.pagination,{el:`swiper-pagination`});let t=s();if(!t.el)return;let n;if(typeof t.el==`string`&&e.isElement&&(n=e.el.querySelector(t.el)),!n&&typeof t.el==`string`&&(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),!(!n||Array.isArray(n)&&n.length===0)){if(e.params.uniqueNavElements&&typeof t.el==`string`&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1)){let t=n.find(t=>Al(t,`.swiper`)[0]===e.el);t&&(n=t)}Array.isArray(n)&&n.length===1&&(n=n[0]),Object.assign(e.pagination,{el:n}
20),Ml(n).forEach(n=>{t.type===`bullets`&&t.clickable&&n.classList.add(...(t.clickableClass||``).split(` `)),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.type===`bullets`&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),t.type===`progressbar`&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener(`click`,d),e.enabled||n.classList.add(t.lockClass)})}}function h(){let t=s();if(c())return;let n=e.pagination.el;n&&Ml(n).forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||``).split(` `)),n.removeEventListener(`click`,d))}),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(` `)))}n(`changeDirection`,()=>{if(!e.pagination||!e.pagination.el)return;let t=s();Ml(e.pagination.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n(`init`,()=>{s().enabled===!1?_():(m(),p(),f())}),n(`activeIndexChange`,()=>
20{e.snapIndex===void 0&&f()}),n(`snapIndexChange`,()=>{f()}),n(`snapGridLengthChange`,()=>{p(),f()}),n(`destroy`,()=>{h()}),n(`enable disable`,()=>{let{el:t}=e.pagination;if(t){let n=s();Ml(t).forEach(t=>t.classList[e.enabled?`remove`:`add`](n.lockClass))}}),n(`lock unlock`,()=>{f()}),n(`click`,(t,n)=>{let i=n.target,a=Ml(e.pagination.el),o=s();if(o.el&&o.hideOnClick&&a&&a.length>0&&!i.classList.contains(o.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;a[0].classList.contains(o.hiddenClass)===!0?r(`paginationShow`):r(`paginationHide`),a.forEach(e=>e.classList.toggle(o.hiddenClass))}});let g=()=>{let t=s();e.el.classList.remove(t.paginationDisabledClass);let{el:n}=e.pagination;n&&Ml(n).forEach(e=>e.classList.remove(t.paginationDisabledClass)),m(),p(),f()},_=()=>{let t=s();e.el.classList.add(t.paginationDisabledClass);let{el:n}=e.pagination;n&&Ml(n).forEach(e=>e.classList.add(t.paginationDisabledClass)),h()};Object.assign(e.pagination,{enable:g,disable:_,render:p,update:f,init:m,destroy:h})},Sd=[],Cd=(e,t)=>{let n=t.querySelector(`.mini-card-carousel__total`);!e.pagination.bullets||!n||(e.allowSlideNext=e.snapIndex!==e.pagination.bullets.length-1,e.allowSlidePrev=e.snapIndex!==0,t.querySelector(`.mini-card-carousel__total`).innerHTML=`${e.snapIndex+1} / ${e.pagination.bullets.length}`)},wd=()=>{document.querySelectorAll(`.swiper-container`).forEach(e=>{let t=new dd(e,{modules:[gd,xd],direction:`horizontal`,slidesPerView:`auto`,spaceBetween:20,observer:!0,observeParents:!0,observeSlideChildren:!0,pagination:{el:e.querySelector(`.swiper-pagination`),dynamicBullets:!0},navigation:{nextEl:e.querySelector(`.mini-card-carousel__next`),prevEl:e.querySelector(`.mini-card-carousel__previous`)},on:{afterInit:t=>{Cd(t,e)},snapIndexChange:t=>{Cd(t,e)},observerUpdate:t=>{Cd(t,e)}}});Sd.push(t)})},Td=()=>{window.addEventListener(`beforeprint`,()=>{Array.from(document.querySelectorAll(`.link, .link-list__item, a.button`)).filter(e=>e.attributes.href&&!e.attributes.href.value.match(/^\s*http/i)).forEach(e=>e.href=new URL(e.href,document.baseURI).href)})},Ed=t(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,c;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,c=e},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw c}}}}function r(e){return s(e)||o(e)||a(e)||i()}function i(){throw TypeError(`Invalid attempt to spread non-iterable instance. 22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}}function o(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function s(e){if(Array.isArray(e))return c(e)}function c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(){function e(t,n){var r=this;if(l(this,e),f(this,`defaultOptions`,{sourceAttr:`href`,overlay:!0,overlayOpacity:.7,spinner:!0,nav:!0,navText:[`‹`,`›`],captions:!0,captionDelay:0,captionSelector:`img`,captionType:`attr`,captionsData:`title`,captionPosition:`bottom`,captionClass:``,captionHTML:!0,close:!0,closeText:`×`,swipeClose:!0,showCounter:!0,fileExt:`png|jpg|jpeg|gif|webp|avif`,animationSlide:!0,animationSpeed:250,preloading:!0,enableKeyboard:!0,loop:!0,rel:!1,docClose:!0,swipeTolerance:50,className:`simple-lightbox`,widthRatio:.8,heightRatio:.9,scaleImageToRatio:!1,disableRightClick:!1,disableScroll:!0,alertError:!0,alertErrorMessage:`Image not found, next image will be loaded`,additionalHtml:!1,history:!0,throttleInterval:0,doubleTapZoom:2,maxZoom:10,htmlClass:`has-lightbox`,rtl:!1,fixedClass:`sl-fixed`,fadeSpeed:300,uniqueImages:!0,focus:!0,scrollZoom:!0,scrollZoomFactor:.5,download:!1}),f(this,`transitionPrefix`,void 0),f(this,`isPassiveEventsSupported`,void 0),f(this,`transitionCapable`,!1),f(this,`isTouchDevice`,`ontouchstart`in window),f(this,`isAppleDevice`,/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),f(this,`initialLocationHash`,void 0),f(this,`pushStateSupport`,`pushState`in history),f(this,`isOpen`,!1),f(this,`isAnimating`,!1),f(this,`isClosing`,!1),f(this,`isFadeIn`,!1),f(this,`urlChangedOnce`,!1),f(this,`hashReseted`,!1),f(this,`historyHasChanges`,!1),f(this,`historyUpdateTimeout`,null),f(this,`currentImage`,void 0),f(this,`eventNamespace`,`simplelightbox`),f(this,`domNo
22des`,{}),f(this,`loadedImages`,[]),f(this,`initialImageIndex`,0),f(this,`currentImageIndex`,0),f(this,`initialSelector`,null),f(this,`globalScrollbarWidth`,0),f(this,`controlCoordinates`,{swipeDiff:0,swipeYDiff:0,swipeStart:0,swipeEnd:0,swipeYStart:0,swipeYEnd:0,mousedown:!1,imageLeft:0,zoomed:!1,containerHeight:0,containerWidth:0,containerOffsetX:0,containerOffsetY:0,imgHeight:0,imgWidth:0,capture:!1,initialOffsetX:0,initialOffsetY:0,initialPointerOffsetX:0,initialPointerOffsetY:0,initialPointerOffsetX2:0,initialPointerOffsetY2:0,initialScale:1,initialPinchDistance:0,pointerOffsetX:0,pointerOffsetY:0,pointerOffsetX2:0,pointerOffsetY2:0,targetOffsetX:0,targetOffsetY:0,targetScale:0,pinchOffsetX:0,pinchOffsetY:0,limitOffsetX:0,limitOffsetY:0,scaleDifference:0,targetPinchDistance:0,touchCount:0,doubleTapped:!1,touchmoveCount:0}),this.options=Object.assign(this.defaultOptions,n),this.isPassiveEventsSupported=this.checkPassiveEventsSupport(),typeof t==`string`?(this.initialSelector=t,this.elements=Array.from(document.querySelectorAll(t))):this.elements=t.length!==void 0&&t.length>0?Array.from(t):[t],this.relatedElements=[],this.transitionPrefix=this.calculateTransitionPrefix(),this.transitionCapable=this.transitionPrefix!==!1,this.initialLocationHash=this.hash,this.options.rel&&(this.elements=this.getRelated(this.options.rel)),this.options.uniqueImages){var i=[];this.elements=Array.from(this.elements).filter(function(e){var t=e.getAttribute(r.options.sourceAttr);return i.indexOf(t)===-1&&(i.push(t),!0)})}this.createDomNodes(),this.options.close&&this.domNodes.wrapper.appendChild(this.domNodes.closeButton),this.options.nav&&this.domNodes.wrapper.appendChild(this.domNodes.navigation),this.options.spinner&&this.domNodes.wrapper.appendChild(this.domNodes.spinner),this.addEventListener(this.elements,`click.`+this.eventNamespace,function(e){if(r.isValidLink(e.currentTarget)){if(e.preventDefault(),r.isAnimating)return!1;r.initialImageIndex=r.elements.indexOf(e.currentTarget),r.openImage(e.currentTarget)}}),this.options.docClose&&this.addEventListener(this.domNodes.wrapper,[`click.`+this.eventNamespace,`touchstart.`+this.eventNamespace],function(e){r.isOpen&&e.target===e.currentTarget&&r.close()}),this.options.disableRightClick&&this.addEventListener(document.body,`contextmenu.`+this.eventNamespace,function(e){e.target.parentElement.classList.contains(`sl-image`)&&e.preventDefault()}),this.options.enableKeyboard&&this.addEventListener(document.body,`keyup.`+this.eventNamespace,this.throttle(function(e){if(r.controlCoordinates.swipeDiff=0,r.isAnimating&&e.key===`Escape`){r.currentImage.setAttribute(`src`,``),r.isAnimating=!1,r.close();return}r.isOpen&&(e.preventDefault(),e.key===`Escape`&&r.close(),!r.isAnimating&&[`ArrowLeft`,`ArrowRight`].indexOf(e.key)>-1&&r.loadImage(e.key===`ArrowRight`?1:-1))},this.options.throttleInterval)),this.addEvents()}return d(e,[{key:`checkPassiveEventsSupport`,value:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener(`testPassive`,null,t),window.removeEventListener(`testPassive`,null,t)}catch{}return e}},{key:`getCaptionElement`,value:function(e){if(this.options.captionSelector.startsWith(`+`)){var t=this.options.captionSelector.replace(/^\+/,``).trimStart(),n=e.nextElementSibling;return n&&n.matches(t)?n:!1}if(this.options.captionSelector.startsWith(`>`)){var r=this.options.captionSelector.replace(/^>/,``).trimStart();return e.querySelector(r)}return e.querySelector(this.options.captionSelector)}},{key:`generateQuerySelector`,value:function(e){var t=e.tagName,n=e.id,r=e.className,i=e.parentNode;if(t===`HTML`)return`HTML`;var a=t;if(a+=n===``?``:`#${n}`,r)for(var o=r.trim().split(/\s/),s=0;s<o.length;s++)a+=`.${o[s]}`;for(var c=1,l=e;l.previousElementSibling;l=l.previousElementSibling)c+=1;return a+=`:nth-child(${c})`,`${this.generateQuerySelector(i)} > ${a}`}},{key:`createDomNodes`,value:function(){if(this.domNodes.overlay=document.createElement(`div`),this.domNodes.overlay.classList.add(`sl-overlay`),this.domNodes.overlay.dataset.opacityTarget=this.options.overlayOpacity,this.domNodes.closeButton=document.createElement(`button`),this.domNodes.closeButton.classList.add(`sl-close`),this.domNodes.closeButton.innerHTML=this.options.closeText,this.domNodes.spinner=document.createElement(`div`),this.domNodes.spinner.classList.add(`sl-spinner`),this.domNodes.spinner.innerHTML=`<div></div>`,this.domNodes.navigation=document.createElement(`div`),this.domNodes.navigation.classList.add(`sl-navigation`),this.domNodes.navigation.innerHTML=`<button class="sl-prev">${this.options.navText[0]}</button><button class="sl-next">${this.options.navText[1]}</button>`,this.domNodes.counter=document.createElement(`div`),this.domNodes.counter.classList.add(`sl-counter`),this.domNodes.counter.innerHTML=`<span class="sl-current"></span>/<span class="sl-total"></span>`,this.domNodes.download=document.createElement(`div`),this.domNodes.download.classList.add(`sl-download`),this.domNodes.downloadLink=document.createElement(`a`),this.domNodes.downloadLink.setAttribute(`download`,``),this.domNodes.downloadLink.textContent=this.options.download,this.domNodes.download.appendChild(this.domNodes.downloadLink),this.domNodes.caption=document.createElement(`div`),this.domNodes.caption.classList.add(`sl-caption`,`pos-`+this.options.captionPosition),this.options.captionClass){var e,t=this.options.captionClass.split(/[\s,]+/);(e=this.domNodes.caption.classList).add.apply(e,r(t))}this.domNodes.image=document.createElement(`div`),this.domNodes.image.classList.add(`sl-image`),this.domNodes.wrapper=document.createElement(`div`),this.domNodes.wrapper.classList.add(`sl-wrapper`),this.domNodes.wrapper.setAttribute(`tabindex`,-1),this.domNodes.wrapper.setAttribute(`role`,`dialog`),this.domNodes.wrapper.setAttribute(`aria-hidden`,!1),this.options.className&&this.domNodes.wrapper.classList.add(this.options.className),this.options.rtl&&this.domNodes.wrapper.classList.add(`sl-dir-rtl`)}},{key:`throttle`,value:function(e,t){var n;return function(){n||(e.apply(this,arguments),n=!0,setTimeout(function(){return n=!1},t))}}}
22,{key:`isValidLink`,value:function(e){return!this.options.fileExt||e.getAttribute(this.options.sourceAttr)&&RegExp(`(`+this.options.fileExt+`)($|\\?.*$)`,`i`).test(e.getAttribute(this.options.sourceAttr))}},{key:`calculateTransitionPrefix`,value:function(){var e=(document.body||document.documentElement).style;return`transition`in e?``:`WebkitTransition`in e?`-webkit-`:`MozTransition`in e?`-moz-`:`OTransition`in e&&`-o`}},{key:`getScrollbarWidth`,value:function(){var e=0,t=document.createElement(`div`);return t.classList.add(`sl-scrollbar-measure`),document.body.appendChild(t),e=t.offsetWidth-t.clientWidth,document.body.removeChild(t),e}},{key:`toggleScrollbar`,value:function(e){var t=0,n=[].slice.call(document.querySelectorAll(`.`+this.options.fixedClass));if(e===`hide`){var r=window.innerWidth;if(!r){var i=document.documentElement.getBoundingClientRect();r=i.right-Math.abs(i.left)}if(document.body.clientWidth<r||this.isAppleDevice){var a=parseInt(window.getComputedStyle(document.body).paddingRight||0,10);t=this.getScrollbarWidth(),document.body.dataset.originalPaddingRight=a,(t>0||t==0&&this.isAppleDevice)&&(document.body.classList.add(`hidden-scroll`),document.body.style.paddingRight=a+t+`px`,n.forEach(function(e){var n=e.style.paddingRight,r=window.getComputedStyle(e)[`padding-right`];e.dataset.originalPaddingRight=n,e.style.paddingRight=`${parseFloat(r)+t}px`}))}}else document.body.classList.remove(`hidden-scroll`),document.body.style.paddingRight=document.body.dataset.originalPaddingRight+`px`,n.forEach(function(e){var t=e.dataset.originalPaddingRight;t!==void 0&&(e.style.paddingRight=t)});return t}},{key:`close`,value:function(){var e=this;if(!this.isOpen||this.isAnimating||this.isClosing)return!1;this.isClosing=!0;var t=this.relatedElements[this.currentImageIndex];for(var n in t.dispatchEvent(new Event(`close.simplelightbox`)),this.options.history&&(this.historyHasChanges=!1,this.hashReseted||this.resetHash()),this.removeEventListener(document,`focusin.`+this.eventNamespace),this.fadeOut(this.domNodes.overlay,this.options.fadeSpeed),this.fadeOut(document.querySelectorAll(`.sl-image img, .sl-close, .sl-navigation, .sl-image .sl-caption, .sl-counter`),this.options.fadeSpeed,function(){e.options.disableScroll&&e.toggleScrollbar(`show`),e.options.htmlClass&&e.options.htmlClass!==``&&document.querySelector(`html`).classList.remove(e.options.htmlClass),document.body.removeChild(e.domNodes.wrapper),e.options.overlay&&document.body.removeChild(e.domNodes.overlay),e.domNodes.additionalHtml=null,e.domNodes.download=null,t.dispatchEvent(new Event(`closed.simplelightbox`)),e.isClosing=!1}),this.currentImage=null,this.isOpen=!1,this.isAnimating=!1,this.controlCoordinates)this.controlCoordinates[n]=0;this.controlCoordinates.mousedown=!1,this.controlCoordinates.zoomed=!1,this.controlCoordinates.capture=!1,this.controlCoordinates.initialScale=this.minMax(1,1,this.options.maxZoom),this.controlCoordinates.doubleTapped=!1}},{key:`hash`,get:function(){return window.location.hash.substring(1)}},{key:`preload`,value:function(){var e=this,t=this.currentImageIndex,n=this.relatedElements.length,r=t+1<0?n-1:t+1>=n-1?0:t+1,i=t-1<0?n-1:t-1>=n-1?0:t-1,a=new Image,o=new Image;a.addEventListener(`load`,function(n){var r=n.target.getAttribute(`src`);e.loadedImages.indexOf(r)===-1&&e.loadedImages.push(r),e.relatedElements[t].dispatchEvent(new Event(`nextImageLoaded.`+e.eventNamespace))}),a.setAttribute(`src`,this.relatedElements[r].getAttribute(this.options.sourceAttr)),o.addEventListener(`load`,function(n){var r=n.target.getAttribute(`src`);e.loadedImages.indexOf(r)===-1&&e.loadedImages.push(r),e.relatedElements[t].dispatchEvent(new Event(`prevImageLoaded.`+e.eventNamespace))}),o.setAttribute(`src`,this.relatedElements[i].getAttribute(this.options.sourceAttr))}},{key:`loadImage`,value:function(e){var t=this,n=e;this.options.rtl&&(e=-e),this.relatedElements[this.currentImageIndex].dispatchEvent(new Event(`change.`+this.eventNamespace)),this.relatedElements[this.currentImageIndex].dispatchEvent(new Event((e===1?`next`:`prev`)+`.`+this.eventNamespace));var r=this.currentImageIndex+e;if(this.isAnimating||(r<0||r>=this.relatedElements.length)&&this.options.loop===!1)return!1;this.currentImageIndex=r<0?this.relatedElements.length-1:r>this.relatedElements.length-1?0:r,this.domNodes.counter.querySelector(`.sl-current`).innerHTML=this.currentImageIndex+1,this.options.animationSlide&&this.slide(this.options.animationSpeed/1e3,-100*n-this.controlCo
22ordinates.swipeDiff+`px`),this.fadeOut(this.domNodes.image,this.options.fadeSpeed,function(){t.isAnimating=!0,t.isClosing?t.isAnimating=!1:setTimeout(function(){var e=t.relatedElements[t.currentImageIndex];t.currentImage&&(t.currentImage.setAttribute(`src`,e.getAttribute(t.options.sourceAttr)),t.loadedImages.indexOf(e.getAttribute(t.options.sourceAttr))===-1&&t.show(t.domNodes.spinner),t.domNodes.image.contains(t.domNodes.caption)&&t.domNodes.image.removeChild(t.domNodes.caption),t.adjustImage(n),t.options.preloading&&t.preload())},100)})}},{key:`adjustImage`,value:function(e){var t=this;if(!this.currentImage)return!1;var n=new Image,r=window.innerWidth*this.options.widthRatio,i=window.innerHeight*this.options.heightRatio;n.setAttribute(`src`,this.currentImage.getAttribute(`src`)),this.currentImage.dataset.scale=1,this.currentImage.dataset.translateX=0,this.currentImage.dataset.translateY=0,this.zoomPanElement(0,0,1),n.addEventListener(`error`,function(n){t.relatedElements[t.currentImageIndex].dispatchEvent(new Event(`error.`+t.eventNamespace)),t.isAnimating=!1,t.isOpen=!0,t.domNodes.spinner.style.display=`none`;var r=e===1||e===-1;if(t.initialImageIndex===t.currentImageIndex&&r)return t.close();t.options.alertError&&alert(t.options.alertErrorMessage),t.loadImage(r?e:1)}),n.addEventListener(`load`,function(n){e!==void 0&&(t.relatedElements[t.currentImageIndex].dispatchEvent(new Event(`changed.`+t.eventNamespace)),t.relatedElements[t.currentImageIndex].dispatchEvent(new Event((e===1?`nextDone`:`prevDone`)+`.`+t.eventNamespace))),t.options.history&&t.updateURL(),t.loadedImages.indexOf(t.currentImage.getAttribute(`src`))===-1&&t.loadedImages.push(t.currentImage.getAttribute(`src`));var a=n.target.width,o=n.target.height;if(t.options.scaleImageToRatio||a>r||o>i){var s=a/o>r/i?a/r:o/i;a/=s,o/=s}t.domNodes.image.style.top=(window.innerHeight-o)/2+`px`,t.domNodes.image.style.left=(window.innerWidth-a-t.globalScrollbarWidth)/2+`px`,t.domNodes.image.style.width=a+`px`,t.domNodes.image.style.height=o+`px`,t.domNodes.spinner.style.display=`none`,t.options.focus&&t.forceFocus(),t.fadeIn(t.currentImage,t.options.fadeSpeed,function(){t.options.focus&&t.domNodes.wrapper.focus()}),t.isOpen=!0;var c,l;typeof t.options.captionSelector==`string`?c=t.options.captionSelector===`self`?t.relatedElements[t.currentImageIndex]:t.getCaptionElement(t.relatedElements[t.currentImageIndex]):typeof t.options.captionSelector==`function`&&(c=t.options.captionSelector(t.relatedElements[t.currentImageIndex])),t.options.captions&&c&&(l=t.options.captionType===`data`?c.dataset[t.options.captionsData]:t.options.captionType===`text`?c.innerHTML:c.getAttribute(t.options.captionsData)),t.options.loop?t.relatedElements.length===1?t.hide(t.domNodes.navigation.querySelectorAll(`.sl-prev, .sl-next`)):t.show(t.domNodes.navigation.querySelectorAll(`.sl-prev, .sl-next`)):(t.currentImageIndex===0&&t.hide(t.domNodes.navigation.querySelector(`.sl-prev`)),t.currentImageIndex>=t.relatedElements.length-1&&t.hide(t.domNodes.navigation.querySelector(`.sl-next`)),t.currentImageIndex>0&&t.show(t.domNodes.navigation.querySelector(`.sl-prev`)),t.currentImageIndex<t.relatedElements.length-1&&t.show(t.domNodes.navigation.querySelector(`.sl-next`))),e===1||e===-1?(t.options.animationSlide&&(t.slide(0,100*e+`px`),setTimeout(function(){t.slide(t.options.animationSpeed/1e3,`0px`)},50)),t.fadeIn(t.domNodes.image,t.options.fadeSpeed,function(){t.isAnimating=!1,t.setCaption(l,a)})):(t.isAnimating=!1,t.setCaption(l,a)),t.options.additionalHtml&&!t.domNodes.additionalHtml&&(t.domNodes.additionalHtml=document.createElement(`div`),t.domNodes.additionalHtml.classList.add(`sl-additional-html`),t.domNodes.additionalHtml.innerHTML=t.options.additionalHtml,t.domNodes.image.appendChild(t.domNodes.additionalHtml)),t.options.download&&t.domNodes.downloadLink.setAttribute(`href`,t.currentImage.getAttribute(`src`))})}},{key:`zoomPanElement`,value:function(e,t,n){this.currentImage.style[this.transitionPrefix+`transform`]=`translate(`+e+`,`+t+`) scale(`+n+`)`}},{key:`minMax`,value:function(e,t,n){return e<t?t:e>n?n:e}},{key:`setZoomData`,value:function(e,t,n){this.currentImage.dataset.scale=e,this.currentImage.dataset.translateX=t,this.currentImage.dataset.translateY=n}}
22,{key:`hashchangeHandler`,value:function(){this.isOpen&&this.hash===this.initialLocationHash&&(this.hashReseted=!0,this.close())}},{key:`addEvents`,value:function(){var e=this;if(this.addEventListener(window,`resize.`+this.eventNamespace,function(t){e.isOpen&&e.adjustImage()}),this.addEventListener(this.domNodes.closeButton,[`click.`+this.eventNamespace,`touchstart.`+this.eventNamespace],this.close.bind(this)),this.options.history&&setTimeout(function(){e.addEventListener(window,`hashchange.`+e.eventNamespace,function(t){e.isOpen&&e.hashchangeHandler()})},40),this.addEventListener(this.domNodes.navigation.getElementsByTagName(`button`),`click.`+this.eventNamespace,function(t){if(!t.currentTarget.tagName.match(/button/i))return!0;t.preventDefault(),e.controlCoordinates.swipeDiff=0,e.loadImage(t.currentTarget.classList.contains(`sl-next`)?1:-1)}),this.options.scrollZoom){var t=1;this.addEventListener(this.domNodes.image,[`mousewheel`,`DOMMouseScroll`],function(n){if(e.controlCoordinates.mousedown||e.isAnimating||e.isClosing||!e.isOpen)return!0;e.controlCoordinates.containerHeight==0&&(e.controlCoordinates.containerHeight=e.getDimensions(e.domNodes.image).height,e.controlCoordinates.containerWidth=e.getDimensions(e.domNodes.image).width,e.controlCoordinates.imgHeight=e.getDimensions(e.currentImage).height,e.controlCoordinates.imgWidth=e.getDimensions(e.currentImage).width,e.controlCoordinates.containerOffsetX=e.domNodes.image.offsetLeft,e.controlCoordinates.containerOffsetY=e.domNodes.image.offsetTop,e.controlCoordinates.initialOffsetX=parseFloat(e.currentImage.dataset.translateX),e.controlCoordinates.initialOffsetY=parseFloat(e.currentImage.dataset.translateY));var r=n.delta||n.wheelDelta;r===void 0&&(r=n.detail),r=Math.max(-1,Math.min(1,r)),t+=r*e.options.scrollZoomFactor*t,t=Math.max(1,Math.min(e.options.maxZoom,t)),e.controlCoordinates.targetScale=t;var i=document.documentElement.scrollTop||document.body.scrollTop;e.controlCoordinates.pinchOffsetX=n.pageX,e.controlCoordinates.pinchOffsetY=n.pageY-i||0,e.controlCoordinates.limitOffsetX=(e.controlCoordinates.imgWidth*e.controlCoordinates.targetScale-e.controlCoordinates.containerWidth)/2,e.controlCoordinates.limitOffsetY=(e.controlCoordinates.imgHeight*e.controlCoordinates.targetScale-e.controlCoordinates.containerHeight)/2,e.controlCoordinates.scaleDifference=e.controlCoordinates.targetScale-e.controlCoordinates.initialScale,e.controlCoordinates.targetOffsetX=e.controlCoordinates.imgWidth*e.controlCoordinates.targetScale<=e.controlCoordinates.containerWidth?0:e.minMax(e.controlCoordinates.initialOffsetX-(e.controlCoordinates.pinchOffsetX-e.controlCoordinates.containerOffsetX-e.controlCoordinates.containerWidth/2-e.controlCoordinates.initialOffsetX)/(e.controlCoordinates.targetScale-e.controlCoordinates.scaleDifference)*e.controlCoordinates.scaleDifference,e.controlCoordinates.limitOffsetX*-1,e.controlCoordinates.limitOffsetX),e.controlCoordinates.targetOffsetY=e.controlCoordinates.imgHeight*e.controlCoordinates.targetScale<=e.controlCoordinates.containerHeight?0:e.minMax(e.controlCoordinates.initialOffsetY-(e.controlCoordinates.pinchOffsetY-e.controlCoordinates.containerOffsetY-e.controlCoordinates.containerHeight/2-e.controlCoordinates.initialOffsetY)/(e.controlCoordinates.targetScale-e.controlCoordinates.scaleDifference)*e.controlCoordinates.scaleDifference,e.controlCoordinates.limitOffsetY*-1,e.controlCoordinates.limitOffsetY),e.zoomPanElement(e.controlCoordinates.targetOffsetX+`px`,e.controlCoordinates.targetOffsetY+`px`,e.controlCoordinates.targetScale),e.controlCoordinates.targetScale>1?(e.controlCoordinates.zoomed=!0,(!e.domNodes.caption.style.opacity||e.domNodes.caption.style.opacity>0)&&e.domNodes.caption.style.display!==`none`&&e.fadeOut(e.domNodes.caption,e.options.fadeSpeed)):(e.controlCoordinates.initialScale===1&&(e.controlCoordinates.zoomed=!1,e.domNodes.caption.style.display===`none`&&e.fadeIn(e.domNodes.caption,e.options.fadeSpeed)),e.controlCoordinates.initialPinchDistance=null,e.controlCoordinates.capture=!1),e.controlCoordinates.initialPinchDistance=e.controlCo
22ordinates.targetPinchDistance,e.controlCoordinates.initialScale=e.controlCoordinates.targetScale,e.controlCoordinates.initialOffsetX=e.controlCoordinates.targetOffsetX,e.controlCoordinates.initialOffsetY=e.controlCoordinates.targetOffsetY,e.setZoomData(e.controlCoordinates.targetScale,e.controlCoordinates.targetOffsetX,e.controlCoordinates.targetOffsetY),e.zoomPanElement(e.controlCoordinates.targetOffsetX+`px`,e.controlCoordinates.targetOffsetY+`px`,e.controlCoordinates.targetScale)})}this.addEventListener(this.domNodes.image,[`touchstart.`+this.eventNamespace,`mousedown.`+this.eventNamespace],function(t){if(t.target.tagName===`A`&&t.type===`touchstart`)return!0;if(t.type===`mousedown`)t.preventDefault(),e.controlCoordinates.initialPointerOffsetX=t.clientX,e.controlCoordinates.initialPointerOffsetY=t.clientY,e.controlCoordinates.containerHeight=e.getDimensions(e.domNodes.image).height,e.controlCoordinates.containerWidth=e.getDimensions(e.domNodes.image).width,e.controlCoordinates.imgHeight=e.getDimensions(e.currentImage).height,e.controlCoordinates.imgWidth=e.getDimensions(e.currentImage).width,e.controlCoordinates.containerOffsetX=e.domNodes.image.offsetLeft,e.controlCoordinates.containerOffsetY=e.domNodes.image.offsetTop,e.controlCoordinates.initialOffsetX=parseFloat(e.currentImage.dataset.translateX),e.controlCoordinates.initialOffsetY=parseFloat(e.currentImage.dataset.translateY),e.controlCoordinates.capture=!0;else{if(e.controlCoordinates.touchCount=t.touches.length,e.controlCoordinates.initialPointerOffsetX=t.touches[0].clientX,e.controlCoordinates.initialPointerOffsetY=t.touches[0].clientY,e.controlCoordinates.containerHeight=e.getDimensions(e.domNodes.image).height,e.controlCoordinates.containerWidth=e.getDimensions(e.domNodes.image).width,e.controlCoordinates.imgHeight=e.getDimensions(e.currentImage).height,e.controlCoordinates.imgWidth=e.getDimensions(e.currentImage).width,e.controlCoordinates.containerOffsetX=e.domNodes.image.offsetLeft,e.controlCoordinates.containerOffsetY=e.domNodes.image.offsetTop,e.controlCoordinates.touchCount===1){if(!e.controlCoordinates.doubleTapped)e.controlCoordinates.doubleTapped=!0,setTimeout(function(){e.controlCoordinates.doubleTapped=!1},300);else return e.currentImage.classList.add(`sl-transition`),e.controlCoordinates.zoomed?(e.controlCoordinates.initialScale=1,e.setZoomData(e.controlCoordinates.initialScale,0,0),e.zoomPanElement(`0px`,`0px`,e.controlCoordinates.initialScale),e.controlCoordinates.zoomed=!1):(e.controlCoordinates.initialScale=e.options.doubleTapZoom,e.setZoomData(e.controlCoordinates.initialScale,0,0),e.zoomPanElement(`0px`,`0px`,e.controlCoordinates.initialScale),(!e.domNodes.caption.style.opacity||e.domNodes.caption.style.opacity>0)&&e.domNodes.caption.style.display!==`none`&&e.fadeOut(e.domNodes.caption,e.options.fadeSpeed),e.controlCoordinates.zoomed=!0),setTimeout(function(){e.currentImage&&e.currentImage.classList.remove(`sl-transition`)},200),!1;e.controlCoordinates.initialOffsetX=parseFloat(e.currentImage.dataset.translateX),e.controlCoordinates.initialOffsetY=parseFloat(e.currentImage.dataset.translateY)}else e.controlCoordinates.touchCount===2&&(e.controlCoordinates.initialPointerOffsetX2=t.touches[1].clientX,e.controlCoordinates.initialPointerOffsetY2=t.touches[1].clientY,e.controlCoordinates.initialOffsetX=parseFloat(e.currentImage.dataset.translateX),e.controlCoordinates.initialOffsetY=parseFloat(e.currentImage.dataset.translateY),e.controlCoordinates.pinchOffsetX=(e.controlCoordinates.initialPointerOffsetX+e.controlCoordinates.initialPointerOffsetX2)/2,e.controlCoordinates.pinchOffsetY=(e.controlCoordinates.initialPointerOffsetY+e.controlCoordinates.initialPointerOffsetY2)/2,e.controlCoordinates.initialPinchDistance=Math.sqrt((e.controlCoordinates.initialPointerOffsetX-e.controlCoordinates.initialPointerOffsetX2)*(e.controlCoordinates.initialPointerOffsetX-e.controlCoordinates.initialPointerOffsetX2)+(e.controlCoordinates.initialPointerOffsetY-e.controlCoordinates.initialPointerOffsetY2)*(e.controlCoordinates.initialPointerOffsetY-e.controlCoordinates.initialPointerOffsetY2)));
22e.controlCoordinates.capture=!0}return e.controlCoordinates.mousedown?!0:(e.transitionCapable&&(e.controlCoordinates.imageLeft=parseInt(e.domNodes.image.style.left,10)),e.controlCoordinates.mousedown=!0,e.controlCoordinates.swipeDiff=0,e.controlCoordinates.swipeYDiff=0,e.controlCoordinates.swipeStart=t.pageX||t.touches[0].pageX,e.controlCoordinates.swipeYStart=t.pageY||t.touches[0].pageY,!1)}),this.addEventListener(this.domNodes.image,[`touchmove.`+this.eventNamespace,`mousemove.`+this.eventNamespace,`MSPointerMove`],function(t){if(!e.controlCoordinates.mousedown)return!0;if(t.type===`touchmove`){if(e.controlCoordinates.capture===!1)return!1;e.controlCoordinates.pointerOffsetX=t.touches[0].clientX,e.controlCoordinates.pointerOffsetY=t.touches[0].clientY,e.controlCoordinates.touchCount=t.touches.length,e.controlCoordinates.touchmoveCount++,e.controlCoordinates.touchCount>1?(e.controlCoordinates.pointerOffsetX2=t.touches[1].clientX,e.controlCoordinates.pointerOffsetY2=t.touches[1].clientY,e.controlCoordinates.targetPinchDistance=Math.sqrt((e.controlCoordinates.pointerOffsetX-e.controlCoordinates.pointerOffsetX2)*(e.controlCoordinates.pointerOffsetX-e.controlCoordinates.pointerOffsetX2)+(e.controlCoordinates.pointerOffsetY-e.controlCoordinates.pointerOffsetY2)*(e.controlCoordinates.pointerOffsetY-e.controlCoordinates.pointerOffsetY2)),e.controlCoordinates.initialPinchDistance===null&&(e.controlCoordinates.initialPinchDistance=e.controlCoordinates.targetPinchDistance),Math.abs(e.controlCoordinates.initialPinchDistance-e.controlCoordinates.targetPinchDistance)>=1&&(e.controlCoordinates.targetScale=e.minMax(e.controlCoordinates.targetPinchDistance/e.controlCoordinates.initialPinchDistance*e.controlCoordinates.initialScale,1,e.options.maxZoom),e.controlCoordinates.limitOffsetX=(e.controlCoordinates.imgWidth*e.controlCoordinates.targetScale-e.controlCoordinates.containerWidth)/2,e.controlCoordinates.limitOffsetY=(e.controlCoordinates.imgHeight*e.controlCoordinates.targetScale-e.controlCoordinates.containerHeight)/2,e.controlCoordinates.scaleDifference=e.controlCoordinates.targetScale-e.controlCoordinates.initialScale,e.controlCoordinates.targetOffsetX=e.controlCoordinates.imgWidth*e.controlCoordinates.targetScale<=e.controlCoordinates.containerWidth?0:e.minMax(e.controlCoordinates.initialOffsetX-(e.controlCoordinates.pinchOffsetX-e.controlCoordinates.containerOffsetX-e.controlCoordinates.containerWidth/2-e.controlCoordinates.initialOffsetX)/(e.controlCoordinates.targetScale-e.controlCoordinates.scaleDifference)*e.controlCoordinates.scaleDifference,e.controlCoordinates.limitOffsetX*-1,e.controlCoordinates.limitOffsetX),e.controlCoordinates.targetOffsetY=e.controlCoordinates.imgHeight*e.controlCoordinates.targetScale<=e.controlCoordinates.containerHeight?0:e.minMax(e.controlCoordinates.initialOffsetY-(e.controlCoordinates.pinchOffsetY-e.controlCoordinates.containerOffsetY-e.controlCoordinates.containerHeight/2-e.controlCoordinates.initialOffsetY)/(e.controlCoordinates.targetScale-e.controlCoordinates.scaleDifference)*e.controlCoordinates.scaleDifference,e.controlCoordinates.limitOffsetY*-1,e.controlCoordinates.limitOffsetY),e.zoomPanElement(e.controlCoordinates.targetOffsetX+`px`,e.controlCoordinates.targetOffsetY+`px`,e.controlCoordinates.targetScale),e.controlCoordinates.targetScale>1&&(e.controlCoordinates.zoomed=!0,(!e.domNodes.caption.style.opacity||e.domNodes.caption.style.opacity>0)&&e.domNodes.caption.style.display!==`none`&&e.fadeOut(e.domNodes.caption,e.options.fadeSpeed)),e.controlCoordinates.initialPinchDistance=e.controlCoordinates.targetPinchDistance,e.controlCoordinates.initialScale=e.controlCoordinates.targetScale,e.controlCoordinates.initialOffsetX=e.controlCoordinates.targetOffsetX,e.controlCoordinates.initialOffsetY=e.controlCoordinates.targetOffsetY)):(e.controlCoordinates.targetScale=e.controlCoordinates.initialScale,e.controlCoordinates.limitOffsetX=(e.controlCoordinates.imgWidth*e.controlCoordinates.targetScale-e.controlCoordinates.containerWidth)/2,e.controlCoordinates.limitOffsetY=(e.controlCoordinates.imgHeight*e.controlCo
22ordinates.targetScale-e.controlCoordinates.containerHeight)/2,e.controlCoordinates.targetOffsetX=e.controlCoordinates.imgWidth*e.controlCoordinates.targetScale<=e.controlCoordinates.containerWidth?0:e.minMax(e.controlCoordinates.pointerOffsetX-(e.controlCoordinates.initialPointerOffsetX-e.controlCoordinates.initialOffsetX),e.controlCoordinates.limitOffsetX*-1,e.controlCoordinates.limitOffsetX),e.controlCoordinates.targetOffsetY=e.controlCoordinates.imgHeight*e.controlCoordinates.targetScale<=e.controlCoordinates.containerHeight?0:e.minMax(e.controlCoordinates.pointerOffsetY-(e.controlCoordinates.initialPointerOffsetY-e.controlCoordinates.initialOffsetY),e.controlCoordinates.limitOffsetY*-1,e.controlCoordinates.limitOffsetY),Math.abs(e.controlCoordinates.targetOffsetX)===Math.abs(e.controlCoordinates.limitOffsetX)&&(e.controlCoordinates.initialOffsetX=e.controlCoordinates.targetOffsetX,e.controlCoordinates.initialPointerOffsetX=e.controlCoordinates.pointerOffsetX),Math.abs(e.controlCoordinates.targetOffsetY)===Math.abs(e.controlCoordinates.limitOffsetY)&&(e.controlCoordinates.initialOffsetY=e.controlCoordinates.targetOffsetY,e.controlCoordinates.initialPointerOffsetY=e.controlCoordinates.pointerOffsetY),e.setZoomData(e.controlCoordinates.initialScale,e.controlCoordinates.targetOffsetX,e.controlCoordinates.targetOffsetY),e.zoomPanElement(e.controlCoordinates.targetOffsetX+`px`,e.controlCoordinates.targetOffsetY+`px`,e.controlCoordinates.targetScale))}if(t.type===`mousemove`&&e.controlCoordinates.mousedown){if(t.type==`touchmove`)return!0;if(t.preventDefault(),e.controlCoordinates.capture===!1)return!1;e.controlCoordinates.pointerOffsetX=t.clientX,e.controlCoordinates.pointerOffsetY=t.clientY,e.controlCoordinates.targetScale=e.controlCoordinates.initialScale,e.controlCoordinates.limitOffsetX=(e.controlCoordinates.imgWidth*e.controlCoordinates.targetScale-e.controlCoordinates.containerWidth)/2,e.controlCoordinates.limitOffsetY=(e.controlCoordinates.imgHeight*e.controlCoordinates.targetScale-e.controlCoordinates.containerHeight)/2,e.controlCoordinates.targetOffsetX=e.controlCoordinates.imgWidth*e.controlCoordinates.targetScale<=e.controlCoordinates.containerWidth?0:e.minMax(e.controlCoordinates.pointerOffsetX-(e.controlCoordinates.initialPointerOffsetX-e.controlCoordinates.initialOffsetX),e.controlCoordinates.limitOffsetX*-1,e.controlCoordinates.limitOffsetX),e.controlCoordinates.targetOffsetY=e.controlCoordinates.imgHeight*e.controlCoordinates.targetScale<=e.controlCoordinates.containerHeight?0:e.minMax(e.controlCoordinates.pointerOffsetY-(e.controlCoordinates.initialPointerOffsetY-e.controlCoordinates.initialOffsetY),e.controlCoordinates.limitOffsetY*-1,e.controlCoordinates.limitOffsetY),Math.abs(e.controlCoordinates.targetOffsetX)===Math.abs(e.controlCoordinates.limitOffsetX)&&(e.controlCoordinates.initialOffsetX=e.controlCoordinates.targetOffsetX,e.controlCoordinates.initialPointerOffsetX=e.controlCoordinates.pointerOffsetX),Math.abs(e.controlCoordinates.targetOffsetY)===Math.abs(e.controlCoordinates.limitOffsetY)&&(e.controlCoordinates.initialOffsetY=e.controlCoordinates.targetOffsetY,e.controlCoordinates.initialPointerOffsetY=e.controlCoordinates.pointerOffsetY),e.setZoomData(e.controlCoordinates.initialScale,e.controlCoordinates.targetOffsetX,e.controlCoordinates.targetOffsetY),e.zoomPanElement(e.controlCoordinates.targetOffsetX+`px`,e.controlCoordinates.targetOffsetY+`px`,e.controlCoordinates.targetScale)}e.controlCoordinates.zoomed||(e.controlCoordinates.swipeEnd=t.pageX||t.touches[0].pageX,e.controlCoordinates.swipeYEnd=t.pageY||t.touches[0].pageY,e.controlCoordinates.swipeDiff=e.controlCoordinates.swipeStart-e.controlCoordinates.swipeEnd,e.controlCoordinates.swipeYDiff=e.controlCoordinates.swipeYStart-e.controlCoordinates.swipeYEnd,e.options.animationSlide&&e.slide(0,-e.controlCoordinates.swipeDiff+`px`))}),this.addEventListener(this.domNodes.image,[`touchend.`+this.eventNamespace,`mouseup.`+this.eventNamespace,`touchcancel.`+this.eventNamespace,`mouseleave.`+this.eventNamespace,`pointerup`,`pointercancel`,`MSPointerUp`,`MSPointerCancel`],function(t){if(e.isTouchDevice&&t.type===`touchend`&&(e.controlCo
22ordinates.touchCount=t.touches.length,e.controlCoordinates.touchCount===0?(e.currentImage&&e.setZoomData(e.controlCoordinates.initialScale,e.controlCoordinates.targetOffsetX,e.controlCoordinates.targetOffsetY),e.controlCoordinates.initialScale===1&&(e.controlCoordinates.zoomed=!1,e.domNodes.caption.style.display===`none`&&e.fadeIn(e.domNodes.caption,e.options.fadeSpeed)),e.controlCoordinates.initialPinchDistance=null,e.controlCoordinates.capture=!1):e.controlCoordinates.touchCount===1?(e.controlCoordinates.initialPointerOffsetX=t.touches[0].clientX,e.controlCoordinates.initialPointerOffsetY=t.touches[0].clientY):e.controlCoordinates.touchCount>1&&(e.controlCoordinates.initialPinchDistance=null)),e.controlCoordinates.mousedown){e.controlCoordinates.mousedown=!1;var n=!0;e.options.loop||(e.currentImageIndex===0&&e.controlCoordinates.swipeDiff<0&&(n=!1),e.currentImageIndex>=e.relatedElements.length-1&&e.controlCoordinates.swipeDiff>0&&(n=!1)),Math.abs(e.controlCoordinates.swipeDiff)>e.options.swipeTolerance&&n?e.loadImage(e.controlCoordinates.swipeDiff>0?1:-1):e.options.animationSlide&&e.slide(e.options.animationSpeed/1e3,`0px`),e.options.swipeClose&&Math.abs(e.controlCoordinates.swipeYDiff)>50&&Math.abs(e.controlCoordinates.swipeDiff)<e.options.swipeTolerance&&e.close()}}),this.addEventListener(this.domNodes.image,[`dblclick`],function(t){if(!e.isTouchDevice)return e.controlCoordinates.initialPointerOffsetX=t.clientX,e.controlCoordinates.initialPointerOffsetY=t.clientY,e.controlCoordinates.containerHeight=e.getDimensions(e.domNodes.image).height,e.controlCoordinates.containerWidth=e.getDimensions(e.domNodes.image).width,e.controlCoordinates.imgHeight=e.getDimensions(e.currentImage).height,e.controlCoordinates.imgWidth=e.getDimensions(e.currentImage).width,e.controlCoordinates.containerOffsetX=e.domNodes.image.offsetLeft,e.controlCoordinates.containerOffsetY=e.domNodes.image.offsetTop,e.currentImage.classList.add(`sl-transition`),e.controlCoordinates.zoomed?(e.controlCoordinates.initialScale=1,e.setZoomData(e.controlCoordinates.initialScale,0,0),e.zoomPanElement(`0px`,`0px`,e.controlCoordinates.initialScale),e.controlCoordinates.zoomed=!1,e.domNodes.caption.style.display===`none`&&e.fadeIn(e.domNodes.caption,e.options.fadeSpeed)):(e.controlCoordinates.initialScale=e.options.doubleTapZoom,e.setZoomData(e.controlCoordinates.initialScale,0,0),e.zoomPanElement(`0px`,`0px`,e.controlCoordinates.initialScale),(!e.domNodes.caption.style.opacity||e.domNodes.caption.style.opacity>0)&&e.domNodes.caption.style.display!==`none`&&e.fadeOut(e.domNodes.caption,e.options.fadeSpeed),e.controlCoordinates.zoomed=!0),setTimeout(function(){e.currentImage&&(e.currentImage.classList.remove(`sl-transition`),e.currentImage.style[e.transitionPrefix+`transform-origin`]=null)},200),e.controlCoordinates.capture=!0,!1})}},{key:`getDimensions`,value:function(e){var t=window.getComputedStyle(e),n=e.offsetHeight,r=e.offsetWidth,i=parseFloat(t.borderTopWidth),a=parseFloat(t.borderBottomWidth),o=parseFloat(t.paddingTop),s=parseFloat(t.paddingBottom),c=parseFloat(t.borderLeftWidth),l=parseFloat(t.borderRightWidth),u=parseFloat(t.paddingLeft),d=parseFloat(t.paddingRight);return{height:n-a-i-o-s,width:r-c-l-u-d}}},{key:`updateHash`,value:function(){var e=`pid=`+(this.currentImageIndex+1),t=window.location.href.split(`#`)[0]+`#`+e;this.hashReseted=!1,this.pushStateSupport?window.history[this.historyHasChanges?`replaceState`:`pushState`](``,document.title,t):this.historyHasChanges?window.location.replace(t):window.location.hash=e,this.historyHasChanges||(this.urlChangedOnce=!0),this.historyHasChanges=!0}},{key:`resetHash`,value:function(){this.hashReseted=!0,this.urlChangedOnce?history.back():this.pushStateSupport?history.pushState(``,document.title,window.location.pathname+window.location.search):window.location.hash=``,clearTimeout(this.historyUpdateTimeout)}},{key:`updateURL`,value:function(){clearTimeout(this.historyUpdateTimeout),this.historyHasChanges?this.historyUpdateTimeout=setTimeout(this.updateHash.bind(this),800):this.updateHash()}},{key:`setCaption`,value:function(e,t,n){var r=this;if(this.options.captions&&e&&e!==``&&e!==void 0){var i=n??this.options.captionHTML??!0?`innerHTML`:`innerText`;this.hide(this.domNodes.caption),this.domNodes.caption.style.width=t+`px`,this.domNodes.caption[i]=e,this.domNodes.image.appendChild(this.domNodes.caption),setTimeout(function(){r.fadeIn(r.domNodes.caption,r.options.fadeSpeed)},this.options.captionDelay)}}},{key:`slide`,value:function(e,t){if(!this.transitionCapable)return this.domNodes.image.style.left=t;this.domNodes.image.style[this.transitionPrefix+`transform`]=`translateX(`+t+`)`,this.domNodes.image.style[this.transitionPrefix+`transition`]=this.transitionPrefix+`transform `+e+`s linear`}},{key:`getRelated`,value:function(e){return e&&e!==!1&&e!==`nofollow`?Array.from(this.elements).filter(function(t){return t.getAttribute(`rel`)===e}):this.elements}},{key:`openImage`,value:function(e){var t=this;e.dispatchEvent(new Event(`show.`+this.eventNamespace)),this.globalScrollbarWidth=this.getScrollbarWidth(),this.options.disableScroll&&(this.toggleScrollbar(`hide`),this.globalScrollbarWidth=0),this.options.htmlClass&&this.options.htmlClass!==``&&document.querySelector(`html`).classList.add(this.options.htmlClass),document.body.appendChild(this.domNodes.wrapper),this.domNodes.wrapper.appendChild(this.domNodes.image),this.options.overlay&&document.body.appendChild(this.domNodes.overlay),this.relatedElements=this.getRelated(e.rel),this.options.showCounter&&(this.relatedElements.length==1&&this.domNodes.wrapper.contains(this.domNodes.counter)?this.domNodes.wrapper.removeChild(this.domNodes.counter):this.relatedElements.length>1&&!this.domNodes.wrapper.contains(this.domNodes.counter)&&this.domNodes.wrapper.appendChild(this.domNodes.counter)),this.options.download&&this.domNodes.download&&this.domNodes.wrapper.appendChild(this.domNodes.download),this.isAnimating=!0,this.currentImageIndex=this.relatedElements.indexOf(e);var n=e.getAttribute(this.options.sourceAttr);this.currentImage=document.createElement(`img`),this.currentImage.style.display=`none`,this.currentImage.setAttribute(`src`,n),this.currentImage.dataset.scale=1,this.currentImage.dataset.translateX=0,this.currentImage.dataset.translateY=0,this.loadedImages.indexOf(n)===-1&&this.loadedImages.push(n),this.domNodes.image.innerHTML=``,this.domNodes.image.setAttribute(`style`,``),this.domNodes.image.appendChild(this.currentImage),this.fadeIn(this.domNodes.overlay,this.options.fadeSpeed),this.fadeIn([this.domNodes.counter,this.domNodes.navigation,this.domNodes.closeButton,this.domNodes.download],this.options.fadeSpeed),this.show(this.domNodes.spinner),this.domNodes.counter.querySelector(`.sl-current`).innerHTML=this.currentImageIndex+1,this.domNodes.counter.querySelector(`.sl-total`).innerHTML=this.relatedElements.length,this.adjustImage(),this.options.preloading&&this.preload(),setTimeout(function(){e.dispatchEvent(new Event(`shown.`+t.eventNamespace))},this.options.animationSpeed)}},{key:`forceFocus`,value:function(){var e=this;this.removeEventListener(document,`focusin.`+this.eventNamespace),this.addEventListener(document,`focusin.`+this.eventNamespace,function(t){document!==t.target&&e.domNodes.wrapper!==t.target&&!e.domNodes.wrapper.contains(t.target)&&e.domNodes.wrapper.focu
22s()})}},{key:`addEventListener`,value:function(e,r,i,a){e=this.wrap(e),r=this.wrap(r);var o=n(e),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;c.namespaces||(c.namespaces={});var l=n(r),u;try{for(l.s();!(u=l.n()).done;){var d=u.value,f=a||!1;[`touchstart`,`touchmove`,`mousewheel`,`DOMMouseScroll`].indexOf(d.split(`.`)[0])>=0&&this.isPassiveEventsSupported&&(t(f)===`object`?f.passive=!0:f={passive:!0}),c.namespaces[d]=i,c.addEventListener(d.split(`.`)[0],i,f)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){o.e(e)}finally{o.f()}}},{key:`removeEventListener`,value:function(e,t){e=this.wrap(e),t=this.wrap(t);var r=n(e),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=n(t),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;a.namespaces&&a.namespaces[c]&&(a.removeEventListener(c.split(`.`)[0],a.namespaces[c]),delete a.namespaces[c])}}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}}},{key:`fadeOut`,value:function(e,t,r){var i=this;e=this.wrap(e);var a=n(e),o;try{for(a.s();!(o=a.n()).done;){var s=o.value;s.style.opacity=parseFloat(s)||window.getComputedStyle(s).getPropertyValue(`opacity`)}}catch(e){a.e(e)}finally{a.f()}this.isFadeIn=!1;var c=16.66666/(t||this.options.fadeSpeed);(function t(){var a=parseFloat(e[0].style.opacity);if((a-=c)<0){var o=n(e),s;try{for(o.s();!(s=o.n()).done;){var l=s.value;l.style.display=`none`,l.style.opacity=1}}catch(e){o.e(e)}finally{o.f()}r&&r.call(i,e)}else{var u=n(e),d;try{for(u.s();!(d=u.n()).done;){var f=d.value;f.style.opacity=a}}catch(e){u.e(e)}finally{u.f()}requestAnimationFrame(t)}})()}},{key:`fadeIn`,value:function(e,t,r,i){var a=this;e=this.wrap(e);var o=n(e),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;c&&(c.style.opacity=0,c.style.display=i||`block`)}}catch(e){o.e(e)}finally{o.f()}this.isFadeIn=!0;var l=parseFloat(e[0].dataset.opacityTarget||1),u=16.66666*l/(t||this.options.fadeSpeed);(function t(){var i=parseFloat(e[0].style.opacity);if((i+=u)>l){var o=n(e),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;c&&(c.style.opacity=l)}}catch(e){o.e(e)}finally{o.f()}r&&r.call(a,e)}else{var d=n(e),f;try{for(d.s();!(f=d.n()).done;){var p=f.value;p&&(p.style.opacity=i)}}catch(e){d.e(e)}finally{d.f()}if(!a.isFadeIn)return;requestAnimationFrame(t)}})()}},{key:`hide`,value:function(e){e=this.wrap(e);var t=n(e),r;try{for(t.s();!(r=t.n()).done;){var i=r.value;i.style.display!=`none`&&(i.dataset.initialDisplay=i.style.display),i.style.display=`none`}}catch(e){t.e(e)}finally{t.f()}}},{key:`show`,value:function(e,t){e=this.wrap(e);var r=n(e),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;a.style.display=a.dataset.initialDisplay||t||`block`}}catch(e){r.e(e)}finally{r.f()}}},{key:`wrap`,value:function(e){return typeof e[Symbol.iterator]==`function`&&typeof e!=`string`?e:[e]}},{key:`on`,value:function(e,t){e=this.wrap(e);var r=n(this.elements),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;a.fullyNamespacedEvents||(a.fullyNamespacedEvents={});var o=n(e),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;a.fullyNamespacedEvents[c]=t,a.addEventListener(c,t)}}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:`off`,value:function(e){e=this.wrap(e);var t=n(this.elements),r;try{for(t.s();!(r=t.n()).done;){var i=r.value,a=n(e),o;try{for(a.s();!(o=a.n()).done;){var s=o.value;i.fullyNamespacedEvents!==void 0&&s in i.fullyNamespacedEvents&&i.removeEventListener(s,i.fullyNamespacedEvents[s])}}catch(e){a.e(e)}finally{a.f()}}}catch(e){t.e(e)}finally{t.f()}return this}},{key:`open`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;e=e||this.elements[0],typeof jQuery<`u`&&e instanceof jQuery&&(e=e.get(0)),t>0&&(e=this.elements[t]),this.initialImageIndex=this.elements.indexOf(e),this.initialImageIndex>-1&&this.openImage(e)}},{key:`openPosition`,value:function(e){var t=this.elements[e];this.open(t,e)}},{key:`next`,value:function(){this.loadImage(1)}},{key:`prev`,value:function(){this.loadImage(-1)}},{key:`getLighboxData`,value:function(){return{currentImageIndex:this.currentImageIndex,currentImage:this.currentImage,globalScrollbarWidth:this.globalScrollbarWidth}}},{key:`destroy`,value:function(){this.off([`close.`+this.eventNamespace,`closed.`+this.eventNamespace,`nextImageLoaded.`+this.eventNamespace,`prevImageLoaded.`+this.eventNamespace,`change.`+this.eventNamespace,`nextDone.`+this.eventNamespace,`prevDone.`+this.eventNamespace,`error.`+this.eventNamespace,`changed.`+this.eventNamespace,`next.`+this.eventNamespace,`prev.`+this.eventNamespace,`show.`+this.eventNamespace,`shown.`+this.eventNamespace]),this.removeEventListener(this.elements,`click.`+this.eventNamespace),this.removeEventListener(document,`focusin.`+this.eventNamespace),this.removeEventListener(document.body,`contextmenu.`+this.eventNamespace),this.removeEventListener(document.body,`keyup.`+this.eventNamespace),this.removeEventListener(this.domNodes.navigation.getElementsByTagName(`button`),`click.`+this.eventNamespace),this.removeEventListener(this.domNodes.closeButton,`click.`+this.eventNamespace),this.removeEventListener(window,`resize.`+this.eventNamespace),this.removeEventListener(window,`hashchange.`+this.eventNamespace),this.close(),this.isOpen&&(document.body.removeChild(this.domNodes.wrapper),document.body.removeChild(this.domNodes.overlay)),this.elements=null}},{key:`refresh`,value:function(){if(!this.initialSelector)throw`refreshing only works when you initialize using a selector!`;var e=this.options,t=this.initialSelector;return this.destroy(),this.constructor(t,e),this}}]),e}();e.default=p,{}.SimpleLightbox=p}))(),1),Dd=()=>{document.querySelectorAll(`.mini-card-image-carousel`).forEach((e,t)=>{let n=`lightbox-carousel-${t}`;e.classList.add(n),new Ed.default(`.${n} .lightbox--image`,{fileExt:!1,animationSlide:!1,uniqueImages:!1,closeText:`<div class="lightbox--image__close"></div>`,navText:[`<div class="lightbox--image__previous"><div class="lightbox--image__previousIcon"></div></div>`,`<div class="lightbox--image__next"><div class="lightbox--image__nextIcon"></div></div>`]})})},Od=()=>{let e=`js-moreless-trigger`,t=`more-less-item`,n=5;if(document.querySelector(`.${e}`)==null)return!1;document.querySelectorAll(`.${e}
22`).forEach(e=>{n=parseInt(e.getAttribute(`data-max-items`)),Array.prototype.slice.call(e.parentNode.querySelectorAll(`.more-less-item`),n,e.parentNode.querySelectorAll(`.more-less-item`).length).forEach(e=>{e.style.display=`none`})}),document.addEventListener(`click`,r=>{if(r.target.matches(`.${e}`)){let e=r.target.getAttribute(`data-moreless-state`),i=r.target.getAttribute(`data-less-text`),a=r.target.getAttribute(`data-more-text`);n=parseInt(r.target.getAttribute(`data-max-items`)),e===`more`?(Array.prototype.slice.call(r.target.parentNode.querySelectorAll(`.${t}`),n,r.target.parentNode.querySelectorAll(`.${t}`).length).forEach(e=>{cc(e)}),r.target.setAttribute(`data-moreless-state`,`less`),r.target.textContent=a):(Array.prototype.slice.call(r.target.parentNode.querySelectorAll(`.${t}`),n,r.target.parentNode.querySelectorAll(`.${t}`).length).forEach(e=>{cc(e)}),r.target.setAttribute(`data-moreless-state`,`more`),r.target.textContent=i)}},!1)},kd=()=>{document.body.setAttribute(`tabindex`,`-1`),document.addEventListener(`click`,function(e){e.target.closest(`a, button, input, textarea, select, [tabindex]`)||document.body.focus()})},Ad=e=>{document.triggerCookieWarning=()=>{e.dispatch(fr(`CookiesMenu`))},document.getConsentCookie=()=>document.location.hostname.startsWith(`preview`)?`yes`:document.cookie.split(`;`).map(e=>e.trim()).map(e=>e.split(`=`)).reduce((e,[t,n])=>(e[t]=n,e),{})[`.AspNet.Consent`]},jd=(e,t)=>{let n=[];switch(e){case`video`:t.forEach(e=>{let t=``;`identifier`in e.dataset&&(t=e.dataset.identifier),n.push({href:e.querySelector(`a`).getAttribute(`href`),types:(e.dataset.type||``).split(`,`).map(e=>e.trim()).filter(Boolean),label:e.querySelector(`h3`).textContent,searchContent:e.dataset.searchcontent,identifier:t,intro:e.querySelector(`.video-index-item__intro`).textContent,body:e.querySelector(`.paragraph`).textContent,time:e.querySelector(`.video-index-item__time`).textContent,button:e.querySelector(`.button.button--primary`).textContent,buttonLink:e.querySelector(`.button.button--primary`).getAttribute(`href`),image:{src:e.querySelector(`.video-index-item__image`).getAttribute(`src`),alt:e.querySelector(`.video-index-item__image`).getAttribute(`alt`)},video:e.querySelector(`.iframed-video__iframe`).getAttribute(`src`)})});break;case`thesis`:t.forEach(e=>{let t=``;`identifier`in e.dataset&&(t=e.dataset.identifier),n.push({href:e.querySelector(`a`).getAttribute(`href`),types:e.dataset.type.split(`,`),label:e.querySelector(`h3`).textContent,searchContent:e.dataset.searchcontent,identifier:t,body:e.querySelector(`.paragraph`).textContent,button:e.querySelector(`.single-text-link`).textContent,buttonLink:e.querySelector(`.single-text-link`).getAttribute(`href`),image:{src:e.querySelector(`.thesis-index-item__image`).getAttribute(`src`),alt:e.querySelector(`.thesis-index-item__image`).getAttribute(`alt`)}})});break;case`vcard`:t.forEach(e=>{let t=``;`identifier`in e.dataset&&(t=e.dataset.identifier),n.push({href:e.querySelector(`a`).getAttribute(`href`),label:e.querySelector(`.index-block__title`).textContent,body:e.querySelector(`.index-block__subtitle`).textContent,searchContent:e.dataset.searchcontent,identifier:t,image:{src:e.querySelector(`.index-block__image`).getAttribute(`src`),alt:e.querySelector(`.index-block__image`).getAttribute(`alt`)}})});break;case`search`:t.forEach(e=>{let t=``;`identifier`in e.dataset&&(t=e.dataset.identifier),n.push({href:e.querySelector(`a`).getAttribute(`href`),types:e.dataset.type.split(`,`),label:e.querySelector(`.search-index-item__title`).textContent,text:e.querySelector(`.search-index-item__text`).textContent,tag:e.querySelector(`.search-index-item__tag`).textContent,identifier:t})});break;default:t.forEach(e=>{let t=``;`identifier`in e.dataset&&(t=e.dataset.identifier),n.push({href:e.querySelector(`a`).getAttribute(`href`),types:e.dataset.type.split(`,`),label:e.querySelector(`a`).textContent,searchContent:e.dataset.searchcontent,identifier:t})})}return n};function Md(e){return(0,U.jsx)(U.Fragment,{children:Object.keys(e.results).map((t,n)=>(0,U.jsxs)(`div`,{className:`content-block index-block`,children:[e.hasOwnProperty(`noheaders`)===!1&&(0,U.jsx)(`h2`,{className:`index-block__header`,children:t}),(0,U.jsx)(`ol`,{className:`index-block__list`,children:e.results[t].map((e,t)=>
22{let n=`identifier`in e&&e.identifier!==``?e.identifier:t;return(0,U.jsx)(`li`,{className:`index-block__item`,children:(0,U.jsxs)(`a`,{className:`index-block__link`,href:e.href,children:[e.label,(0,U.jsx)(`span`,{className:`index-block__link-decoration`})]})},`${n}-${e.label}`)})})]},n))})}function Nd(e){return(0,U.jsx)(U.Fragment,{children:Object.keys(e.results).map((t,n)=>(0,U.jsxs)(`div`,{className:`content-block index-block`,children:[e.hasOwnProperty(`noheaders`)===!1&&(0,U.jsx)(`h2`,{className:`index-block__header`,children:t}),(0,U.jsx)(`ol`,{className:(0,sr.default)(`index-block__list`,{"index-block__list--research":e.parentProps.hasOwnProperty(`triplecolumn`)===!0&&e.parentProps.triplecolumn===`true`}),children:e.results[t].map((e,t)=>{let n=`identifier`in e&&e.identifier!==``?e.identifier:t;return(0,U.jsx)(`li`,{className:`index-block__item`,children:(0,U.jsxs)(`a`,{className:`index-block__link`,href:e.href,children:[e.label,(0,U.jsx)(`span`,{className:`index-block__link-decoration`})]})},`${n}-${e.label}`)})})]},n))})}function Pd(e){return(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`ol`,{children:Object.keys(e.results).map((t,n)=>(0,U.jsx)(U.Fragment,{children:e.results[t].map((e,t)=>{let n=`identifier`in e&&e.identifier!==``?e.identifier:t;return(0,U.jsx)(`li`,{className:`index-block__item`,children:(0,U.jsxs)(`div`,{className:`thesis-index-item`,children:[(0,U.jsxs)(`div`,{className:`thesis-index-item__text`,children:[(0,U.jsx)(`h3`,{className:`thesis-index-item__header`,children:e.label}),(0,U.jsx)(`p`,{className:`paragraph`,children:e.body}),(0,U.jsxs)(`a`,{href:e.buttonLink,className:`single-text-link`,children:[e.button,(0,U.jsx)(`span`,{className:`single-text-link-decoration`})]})]}),(0,U.jsx)(`img`,{src:e.image.src,alt:e.image.alt,className:`thesis-index-item__image`})]})},`${n}-${e.label}`)})}))})})}function Fd(e){return(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`ol`,{children:Object.keys(e.results).map((t,n)=>(0,U.jsx)(g.Fragment,{children:e.results[t].map((n,r)=>{let i=`identifier`in n&&n.identifier!==``?n.identifier:`${t}-${r}`;return(0,U.jsxs)(`li`,{className:`video-index-item`,onClick:t=>e.setPopupData(n),children:[(0,U.jsxs)(`div`,{className:`video-index-item__text`,children:[(0,U.jsx)(`h3`,{className:`video-index-item__header`,children:n.label}),(0,U.jsx)(`p`,{className:`video-index-item__intro`,children:n.intro})]}),(0,U.jsxs)(`div`,{className:`video-index-item__image`,children:[(0,U.jsx)(`img`,{src:n.image.src,alt:n.image.alt}),(0,U.jsx)(`span`,{className:`video-index-item__time`,children:n.time})]})]},i)})},t))})})}function Id(e){return(0,U.jsx)(U.Fragment,{children:Object.keys(e.results).map((t,n)=>(0,U.jsxs)(`div`,{className:`index-block index-block--vcard`,children:[(0,U.jsx)(`h2`,{className:`index-block__header index-block__header--vcard`,children:t}),(0,U.jsx)(`ol`,{className:`index-block__list index-block__list--vcard`,children:e.results[t].map((e,t)=>{let n=`identifier`in e&&e.identifier!==``?e.identifier:t;return(0,U.jsx)(`li`,{className:`index-block__item index-block__item--vcard`,children:(0,U.jsxs)(`a`,{href:e.href,className:`index-block__link--vcard`,children:[(0,U.jsx)(`div`,{className:`index-block-image-container`,style:{backgroundImage:`url('${e.image.src}')`},children:(0,U.jsx)(`img`,{className:`index-block__image js-background-image`,src:e.image.src,alt:e.image.alt,style:{visibility:`hidden`}})}),(0,U.jsxs)(`div`,{className:`index-block__content`,children:[(0,U.jsx)(`div`,{className:`index-block__text index-block__title`,children:e.label}),(0,U.jsx)(`div`,{className:`index-block__subtitle`,children:e.body})]})]})},`${n}-${e.label}`)})})]},n))})}function Ld(e){return(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`ol`,{className:`index-block__list`,children:Object.keys(e.results).map((t,n)=>(0,U.jsx)(U.Fragment,{children:e.results[t].map((e,t)=>{let n=`identifier`in e&&e.identifier!==``?e.identifier:t;return(0,U.jsx)(`li`,{className:`index-block__item`,children:(0,U.jsxs)(`div`,{className:`search-index-item`,children:[(0,U.jsx)(`a`,{href:e.url,className:`search-index-item__title`,children:e.label}),(0,U.jsx)(`p`,{className:`paragraph search-index-item__text`,children:e.text}),(0,U.jsx)(`span`,{className:`search-index-item__tag`,children:e.tag})]})},`${n}-${e.label}`)})}))})})}function Rd(e){let[t,n]=(0,g.useState)(``),[r,i]=(0,g.useState)(`all`),[a,o]=(0,g.useState)(``),[s,c]=(0,g.useState)(``),[l,u]=(0,g.useState)([]),[d,f]=(0,g.useState)([]),[p,m]=(0,g.useState)([]),[h,_]=(0,g.useState)([]),[v,y]=(0,g.useState)({});console.log(`test`),(0,g.useEffect)(()=>{let t=[];
22e.childNodes.querySelectorAll(`[name=filter-type]`).forEach(e=>{t.push({value:e.getAttribute(`value`),label:e.parentNode.querySelector(`label`).textContent})}),m(t);let r=[];e.childNodes.querySelectorAll(`[name=filter-type-more]`).forEach(e=>{r.push({value:e.getAttribute(`value`),label:e.parentNode.querySelector(`label`).textContent})}),_(r);let a=jd(e.hasOwnProperty(`indextype`)?e.indextype:`default`,e.childNodes.querySelectorAll(`.index-block__item`));f(a),t.length>0&&i(t[0].value);let s=e.childNodes.querySelector(`#input-filter-search`);s!==void 0&&typeof s.getAttribute(`value`)==`string`&&n(s.getAttribute(`value`)),o((s==null?void 0:s.placeholder)||`Waar bent u naar op zoek?`),c((e==null?void 0:e.noresult)||`Geen resultaten`),window.location.hash!==``&&t.some(e=>{if(window.location.hash===`#${encodeURIComponent(e.value)}`)return i(e.value),!0}),document.querySelectorAll(`.index-block`).forEach(e=>e.remove()),document.querySelectorAll(`.index-form`)[0].remove()},[]),(0,g.useEffect)(()=>{let e=d.filter(e=>r&&r!==``&&r!==`all`?e.types.indexOf(r)>-1:!0);e=e.filter(e=>!t||e.searchContent.toLowerCase().indexOf(t.toLowerCase())>-1);let n={};e.forEach(e=>{n.hasOwnProperty(e.label[0].toLowerCase())===!1&&(n[e.label[0].toLowerCase()]=[]),n[e.label[0].toLowerCase()].push(e)}),u(n)},[d,t,r]);let b=e=>{e.preventDefault(),e.stopPropagation(),n(e.target.value)},x=e=>{i(e.target.value),window.location.hash=e.target.value},S=Md;e.hasOwnProperty(`indextype`)&&e.indextype===`video`&&(S=Fd),e.hasOwnProperty(`indextype`)&&e.indextype===`thesis`&&(S=Pd),e.hasOwnProperty(`indextype`)&&e.indextype===`vcard`&&(S=Id),e.hasOwnProperty(`indextype`)&&e.indextype===`research`&&(S=Nd),e.hasOwnProperty(`indextype`)&&e.indextype===`search`&&(S=Ld);let C={...e};return delete C.childNodes,(0,U.jsxs)(U.Fragment,{children:[e.hasOwnProperty(`indextype`)&&e.indextype===`video`&&v.hasOwnProperty(`label`)&&(0,U.jsx)(`div`,{className:`video-overlay`,children:(0,U.jsxs)(`div`,{className:`video-overlay__inner`,children:[(0,U.jsx)(`span`,{className:`video-overlay__close`,onClick:e=>y({}),children:`Close`}),(0,U.jsx)(`div`,{className:`shaped-content shaped-content--singular`,children:(0,U.jsx)(`div`,{className:`iframed-video`,children:(0,U.jsx)(`iframe`,{className:`iframed-video__iframe`,src:v.video,frameBorder:`0`,allow:`accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture`,allowFullScreen:``,title:`iFrame video`})})}),(0,U.jsx)(`h2`,{className:`heading-gamma`,children:v.label}),(0,U.jsx)(`h3`,{className:`heading-beta`,children:v.intro}),(0,U.jsx)(`p`,{className:`paragraph`,children:v.body}),(0,U.jsx)(`p`,{className:`paragraph`,children:(0,U.jsx)(`a`,{href:v.buttonLink,className:`button button--primary button--arrowed`,children:v.button})})]})}),(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`form`,{action:`.`,onSubmit:e=>{e.preventDefault()},children:(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{className:`hidden`,children:`Zoeken`}),(0,U.jsxs)(`div`,{className:`input-group`,children:[(0,U.jsx)(`label`,{htmlFor:`input-filter-search`,className:`hidden`,children:`Zoekterm`}),(0,U.jsx)(`input`,{id:`input-filter-search`,type:`search`,className:`search`,value:t,placeholder:_s(a),onChange:b})]}),(0,U.jsxs)(`div`,{className:`input-group`,children:[p.map((e,t)=>(0,U.jsxs)(`div`,{className:`filter-button`,children:[(0,U.jsx)(`input`,{className:`filter-button__radio`,type:`radio`,name:`filter-type`,id:`input-filter-type-${t}`,value:e.value,onChange:x,checked:e.value===r}),(0,U.jsx)(`label`,{className:`filter-button__label`,htmlFor:`input-filter-type-${t}`,children:e.label})]},e.value)),h.length>1&&(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(`div`,{className:`filter-buttons-more`,children:[(0,U.jsx)(`button`,{type:`button`,className:`filter-button-trigger js-show-more-options`,children:`Meer`}),(0,U.jsx)(`div`,{className:`filter-button-options`,children:h.map((e,t)=>(0,U.jsxs)(`div`,{className:`filter-button-more`,children:[(0,U.jsx)(`input`,{className:`filter-button__radio`,type:`radio`,name:`filter-type-more`,id:`input-filter-type-more${t}`,value:e.value,onChange:x,checked:e.value===r}),(0,U.jsx)(`label`,{className:`filter-button__label filter-button__label--more`,htmlFor:`input-filter-type-more${t}`,children:e.label})]},e.value))})]})})]})]})})}),(0,U.jsx)(S,{results:l,setPopupData:y,parentProps:C}),Object.keys(l).length===0&&(0,U.jsx)(`div`,{children:s})]})}ps.defaults.baseURL=`//`,ps.defaults.headers.common.Accept=`application/json`,ps.defaults.headers.common[`X-Requested-With`]=`XMLHttpRequest`,ps.defaults.headers.post[`Content-Type`]=`application/json`;function zd(e){if(e.links){let t={submit:Bd,"set-step":Hd,link:Vd,close:Ud};return(0,U.jsx)(`ul`,{className:`button-stack`,children:e.links.map((n,r)=>{let i=t[n.type];return(0,U.jsx)(`li`,{className:`button-stack__item`,children:(0,U.jsx)(i,{link:n,first:r===0,currentStep:e.currentStep,previousStep:e.previousStep,setCurrentStep:e.setCurrentStep,formLength:e.formLength,setAnswer:e.setAnswer})},`button-stack-${r}`)})})}return null}function Bd(e){return(0,U.jsx)(`input`,{type:`submit`,className:(0,sr.default)(`button`,{"button--primary":e.first,"button--secondary":!e.first}),value:e.link.text})}function Vd(e){return(0,U.jsx)(`a`,{href:e.link.url,className:(0,sr.default)(`button button--arrowed`,{"button--primary":e.first,"button--secondary":!e.first}),children:e.link.text})}function Hd(e){if(e.link.nextstep>e.formLength||e.link.nextstep<1)return null;let t=e.currentStep===`close`?e.previousStep:e.link.nextstep;return(0,U.jsx)(`button`,{onClick:()=>{e.setCurrentStep(t)},className:(0,sr.default)(`button`,{"button--primary":e.first,"button--secondary":!e.first}),type:`button`,children:e.link.text})}function Ud(e){return(0,U.jsx)(`button`,{onClick:t=>{e.setCurrentStep(1),e.setAnswer({}),Zc(t.target)},type:`button`,className:(0,sr.default)(`button`,{"button--primary":e.first,"button--secondary":!e.first}),children:e.link.text})}function Wd(e){return(0,U.jsx)(`p`,{className:`paragraph`,children:e.step.content.options.map((t,n)=>(0,U.jsxs)(g.Fragment,{children:[(0,U.jsx)(`input`,{type:`radio`,onCh
22ange:()=>e.setAnswer({...e.answers,[e.step.content.guid]:t.value}),className:`radio`,value:t.value,id:`${e.step.content.name}-${t.value}`,name:e.step.content.name,checked:t.value===e.answers[e.step.content.guid]}),(0,U.jsx)(`label`,{htmlFor:`${e.step.content.name}-${t.value}`,children:t.label})]},`${e.step.content.name}-${n}`))})}function Gd(e){return(0,U.jsx)(`div`,{className:`scale-grid`,children:e.step.content.options.map((t,n)=>(0,U.jsxs)(g.Fragment,{children:[(0,U.jsx)(`input`,{type:`radio`,onChange:()=>e.setAnswer({...e.answers,[e.step.content.guid]:t.value}),className:`scale`,value:t.value,id:`${e.step.content.name}-${t.value}`,name:e.step.content.name,checked:t.value===e.answers[e.step.content.guid]}),(0,U.jsx)(`label`,{htmlFor:`${e.step.content.name}-${t.value}`,children:t.label})]},`${e.step.content.name}-${n}`))})}function Kd(e){return(0,U.jsx)(`p`,{className:`paragraph`,children:(0,U.jsx)(`input`,{type:`text`,id:e.step.content.name,name:e.step.content.name,onChange:t=>e.setAnswer({...e.answers,[e.step.content.guid]:t.target.value}),value:e.answers[e.step.content.guid]||``,placeholder:e.step.content.placeholder})})}function qd(e){return(0,U.jsx)(`p`,{className:`paragraph`,children:(0,U.jsx)(`textarea`,{id:e.step.content.name,name:e.step.content.name,onChange:t=>e.setAnswer({...e.answers,[e.step.content.guid]:t.target.value}),value:e.answers[e.step.content.guid]||``,placeholder:e.step.content.placeholder})})}function Jd(e){let{step:t}=e;if(t){let n={radio:Wd,scale:Gd,text:Kd,"text-area":qd}[t.content.input_type],r=e.answers.hasOwnProperty(e.step.content.guid)&&e.answers[e.step.content.guid]!==``,{mandatory:i}=e.step.content;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`h3`,{className:`heading-gamma`,children:t.content.title}),e.step.content.text&&(0,U.jsx)(`p`,{className:`paragraph`,children:t.content.text}),e.step.content.help_text&&(0,U.jsx)(`p`,{className:`paragraph paragraph--help`,children:t.content.help_text}),t.type===`form-question`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`fieldset`,{children:(0,U.jsx)(n,{step:t,answers:e.answers,setAnswer:e.setAnswer})}),(0,U.jsxs)(`ul`,{className:`button-stack button-stack--questionnaire`,children:[(0,U.jsx)(`li`,{className:`button-stack__item`,children:(0,U.jsx)(`button`,{onClick:()=>{e.setCurrentStep(e.currentStep-1)},className:`button`,type:`button`,children:`Terug`})}),(0,U.jsx)(`li`,{children:(0,U.jsx)(`button`,{onClick:()=>{e.setCurrentStep(e.currentStep+1)},className:(0,sr.default)(`button button--primary`,{"button--disabled":!r&&i}),type:`button`,disabled:!r&&i&&`disabled`,children:`Verder`})})]})]}):(0,U.jsx)(zd,{links:t.content.links,currentStep:e.currentStep,previousStep:e.previousStep,setCurrentStep:e.setCurrentStep,formLength:e.formLength,setAnswer:e.setAnswer})]})}return null}function Yd(e){let[t,n]=(0,g.useState)(1),[r,i]=(0,g.useState)(1),[a,o]=(0,g.useState)(null),[s,c]=(0,g.useState)(null),[l,u]=(0,g.useState)(!1),[d,f]=(0,g.useState)({}),[p,m]=(0,g.useState)({}),h=()=>{n(`loading`);let e={guid:p.guid,environmentId:p.environmentId,data:[]};Object.entries(d).forEach(([t,n])=>{e.data.push({guid:t,value:n})}),ps.post(p.returnUrl,{formAnswers:e}).then(e=>{n(`final`)}).catch(e=>{n(`error`)})},_=e=>{i(t),n(`close`)};return(0,g.useEffect)(()=>{m(window.formData);let e=document.getElementsByClassName(`side-modal__close`)[0];e&&e.addEventListener(`click`,_)}),(0,g.useEffect)(()=>{p.hasOwnProperty(`form_steps`)&&(t===`close`?(c(p.form_close),u(!0)):(c(p.form_steps.find(e=>e.step===t)),u(!1)))},[t]),(0,g.useEffect)(()=>{p.hasOwnProperty(`form_steps`)&&(o(p.form_steps.length),c(p.form_steps.find(e=>e.step===t)))},[p]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`side_modal-content__heading`,children:(0,U.jsx)(`p`,{className:`paragraph questionnaire-title`,children:p.questionnaire_title})}),(0,U.jsx)(`progress`,{className:(0,sr.default)(`questionnaire-progress`,{"questionnaire-progress--hidden":l,"questionnaire-progress--error":t===`error`,"questionnaire-progress--loading":t===`loading`}),id:`form-progress`,max:a,value:t==`final`||t==`error`||t==`loading`?a:t}),(0,U.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),h()},children:[(0,U.jsx)(Jd,{step:s,currentStep:t,previousStep:r,setCurrentStep:n,answers:d,setAnswer:f,formLength:a}),t===`error`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{className:`paragraph`,children:`Er ging wat mis met het opslaan verzenden van de enquete.`}),(0,U.jsxs)(`div`,{className:`questionnaire-actions--error`,children:[(0,U.jsx)(`button`,{className:`button button--secondary`,onClick:()=>{n(1)},children:`Opnieuw invullen`}),(0,U.jsx)(`button`,{className:`button button--primary`,onClick:()=>{h()},children:`Nogmaals verzenden`})]})]}),t===`loading`&&(0,U.jsx)(`p`,{className:`paragraph`,children:`Bezig met het verzenden van de enquete.`})]})]})}function Xd(e){return(0,U.jsx)(`div`,{className:(0,sr.default)(`loader-animation`,{"loader-animation--small":e.small}),children:(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,className:`loader-animation__image`,viewBox:`0 0 100 100`,children:[(0,U.jsx)(`g`,{transform:`rotate(0 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`-0.9166666666666666s`,repeatCount:`indefinite`})})}),(0,U.jsx)(`g`,{transform:`rotate(30 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`-0.8333333333333334s`,repeatCount:`indefinite`})})}),(0,U.jsx)(`g`,{transform:`rotate(60 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`-0.75s`,repeatCount:`indefinite`})})}),(0,U.jsx)(`g`,{transform:`rotate(90 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`-0.6666666666666666s`,repeatCount:`indefinite`})})}),(0,U.jsx)(`g`,{transform:`rotate(120 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`-0.5833333333333334s`,repeatCount:`indefinite`})})}),(0,U.jsx)(`g`,{transform:`rotate(150 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`-0.5s`,repeatCount:`indefinite`})})}),(0,U.jsx)(`g`,{transform:`rotate(180 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`-0.4166666666666667s`,repeatCount:`indefinite`})})}),(0,U.jsx)(`g`,{transform:`rotate(210 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`-0.3333333333333333s`,repeatCount:`indefinite`})})}),(0,U.jsx)(`g`,{transform:`rotate(240 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`-0.25s`,repeatCount:`indefinite`})})}),(0,U.jsx)(`g`,{transform:`rotate(270 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`-0.16666666666666666s`,repeatCount:`indefinite`})})}),(0,U.jsx)(`g`,{transform:`rotate(300 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`-0.08333333333333333s`,repeatCount:`indefinite`})})}),(0,U.jsx)(`g`,{transform:`rotate(330 50 50)`,children:(0,U.jsx)(`rect`,{x:`48`,y:`18`,rx:`2`,ry:`2.24`,width:`4`,height:`16`,fill:`#ffffff`,children:(0,U.jsx)(`animate`,{attributeName:`opacity`,values:`1;0`,keyTimes:`0;1`,dur:`1s`,begin:`0s`,repeatCount:`indefinite`})})})]})})}function Zd(e){let{step:t}=e;return t&&!e.loading?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`onboarding-content`,children:[(0,U.jsx)(`div`,{className:`onboarding__img`,children:(0,U.jsx)(`img`,{src:t.image,alt:t.imageAlt})}),(0,U.jsx)(`div`,{className:`onboarding__title`,children:t.title}),(0,U.jsx)(`div`,{className:`onboarding__text`,dangerouslySetInnerHTML:{__html:t.content}})]}),(0,U.jsxs)(`div`,{className:`onboarding-navigation`,children:[e.currentStep===1&&(0,U.jsx)(`button`,{onClick:e=>{Zc(e.target)},className:`button button--transparent onboarding__button--skip`,children:`Overslaan`}),e.currentStep>1&&e.currentStep<e.onboardingLength&&(0,U.jsx)(`button`,{onClick:()=>{e.setCurrentStep(e.currentStep-1)},className:`button button--transparent onboarding__button--previous`,type:`button`,children:`Terug`}),e.currentStep!==e.onboardingLength&&(0,U.jsx)(`button`,{onClick:()=>{e.setCurrentStep(e.currentStep+1)},className:`button onboarding__button--next`,type:`button`,children:`Volgende`}),e.currentStep===e.onboardingLength&&(0,U.jsx)(`button`,{onClick:e=>{Zc(e.target)},className:`button onboarding__button--next`,children:`Check mijn gegevens`})]})]}):null}function Qd(e){let[t,n]=(0,g.useState)(1),[r,i]=(0,g.useState)([]),[a,o]=(0,g.useState)([]),[s,c]=(0,g.useState)(null),[l,u]=(0,g.useState)(!0);return(0,g.useEffect)(()=>{ps.get(`/api/v2/onboarding/${e.source}`).then(e=>{i(e.data),u(!1)}).catch(e=>{console.log(e)})},[]),(0,g.useEffect)(()=>{r.hasOwnProperty(`onboarding_steps`)&&(c(r.onboarding_steps.length),o(r.onboarding_steps[t-1]))},[r]),(0,g.useEffect)(()=>{r.hasOwnProperty(`onboarding_steps`)&&o(r.onboarding_steps[t-1]),document.activeElement.blur()},[t]),(0,U.jsxs)(U.Fragment,{children:[t>1&&(0,U.jsxs)(`span`,{className:`onboarding__counter`,children:[t,`/`,s]}),l&&(0,U.jsx)(Xd,{small:!0}
22),(0,U.jsx)(Zd,{step:a,currentStep:t,setCurrentStep:n,onboardingLength:s,loading:l})]})}var $d=t(n(((e,t)=>{var n=`Expected a function`,r=NaN,i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l={}.Object===Object&&{},u=typeof self==`object`&&self&&self.Object===Object&&self,d=l||u||Function(`return this`)(),f=Object.prototype.toString,p=Math.max,m=Math.min,h=function(){return d.Date.now()};function g(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,g=!0;if(typeof e!=`function`)throw TypeError(n);t=x(t)||0,v(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?p(x(r.maxWait)||0,t):o,g=`trailing`in r?!!r.trailing:g);function _(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function y(e){return u=e,c=setTimeout(C,t),d?_(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?m(i,o-r):i}function S(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=h();if(S(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,g&&i?_(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(h())}function D(){var e=h(),n=S(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return y(l);if(f)return c=setTimeout(C,t),_(l)}return c===void 0&&(c=setTimeout(C,t)),s}return D.cancel=T,D.flush=E,D}function _(e,t,r){var i=!0,a=!0;if(typeof e!=`function`)throw TypeError(n);return v(r)&&(i=`leading`in r?!!r.leading:i,a=`trailing`in r?!!r.trailing:a),g(e,t,{leading:i,maxWait:t,trailing:a})}function v(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function y(e){return!!e&&typeof e==`object`}function b(e){return typeof e==`symbol`||y(e)&&f.call(e)==`[object Symbol]`}function x(e){if(typeof e==`number`)return e;if(b(e))return r;if(v(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=v(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(i,``);var n=o.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}t.exports=_}))(),1),ef=({text:e,highlight:t})=>{let n=e.split(RegExp(`(${t})`,`gi`));return(0,U.jsx)(U.Fragment,{children:n.map((e,n)=>e.toLowerCase()===(t==null?void 0:t.toLowerCase())?(0,U.jsx)(`strong`,{children:e},n):e)})},tf=({provision:e,focusElementRef:t,onNextResult:n,onPreviousResult:r,highlight:i=``})=>{let a=e=>{if(e.key===`ArrowDown`){e.preventDefault(),n();return}e.key===`ArrowUp`&&(e.preventDefault(),r())},o=e.synonyms.toLowerCase().includes(i.toLowerCase());return(0,U.jsx)(`li`,{className:`dlab-provision-suggestion`,children:(0,U.jsxs)(`a`,{ref:t,href:e.url,tabIndex:0,onKeyDown:a,className:`dlab-provision-suggestion__link`,children:[(0,U.jsxs)(`div`,{className:`dlab-provision-suggestion__text`,children:[(0,U.jsx)(`h3`,{className:`dlab-provision-suggestion__title`,children:(0,U.jsx)(ef,{highlight:i,text:e.title})}),o&&(0,U.jsx)(`p`,{className:`dlab-provision-suggestion__excerpt`,children:(0,U.jsx)(ef,{highlight:i,text:e.synonyms})})]}),(0,U.jsx)(`p`,{className:`dlab-provision-suggestion__lab`,children:e.lab})]})})},nf=({totalCount:e,provisions:t,allLink:n,searchTerm:r,setFocusRefForIndex:i,onPreviousResult:a,onNextResult:o})=>(0,U.jsxs)(`div`,{className:`dlab-provision-suggestions`,children:[(0,U.jsx)(`ul`,{className:`dlab-provision-suggestions_list`,children:t.map((e,t)=>(0,U.jsx)(tf,{highlight:r,provision:e,focusElementRef:e=>{i(t,e)},onPreviousResult:()=>a(t),onNextResult:()=>o(t)},`${e.slug}-${t}`))}),(0,U.jsxs)(`a`,{ref:e=>{i(t.length,e)},href:n,onKeyDown:e=>{e.key===`ArrowUp`&&(e.preventDefault(),a(t.length))},className:`single-text-link dlab-provision-suggestions__all_link`,children:[`Toon alle `,e,` resultaten`]})]}
22),rf=2,af=({onChange:e,onNextResult:t,term:n,focusRef:r,open:i=!1,loading:a=!1,animate:o=!1,children:s})=>{let c=(0,g.useRef)(null),[l,u]=(0,g.useState)(0);return(0,g.useEffect)(()=>{var e;u(((e=c.current)==null?void 0:e.offsetHeight)||0)},[]),(0,U.jsxs)(`div`,{className:`dlab-search-box ${o?`dlab-search-box--animate`:``}`,children:[l&&(0,U.jsx)(`div`,{className:`dlab-search-box__placeholder`,style:{height:l+rf}}),(0,U.jsxs)(`div`,{className:`dlab-search-box__overlay ${i?`dlab-search-box__overlay--is-open`:``}`,children:[(0,U.jsx)(`form`,{className:`dlab-search-box__form`,action:`/bepalingenwijzer/zoeken`,method:`get`,ref:c,id:`dlab-search-box`,children:(0,U.jsxs)(`div`,{className:`dlab-search-box__fieldset`,children:[(0,U.jsx)(`label`,{className:`hidden`,htmlFor:`dlab-search-box__input`,children:`Zoeken op bepalingen, verrichtingen of verwekkers`}),(0,U.jsx)(`input`,{type:`search`,id:`dlab-search-box__input`,className:`dlab-search-box__input`,name:`q`,"data-lang":`nl`,placeholder:`Zoeken op bepalingen, verrichtingen of verwekkers`,autoComplete:`off`,autoCorrect:`off`,autoCapitalize:`off`,spellCheck:`false`,value:n,ref:r,onChange:t=>{e(t.target.value)},onKeyDown:t&&(e=>{t&&e.key===`ArrowDown`&&(e.preventDefault(),t())})}),(0,U.jsx)(`button`,{type:`submit`,className:`dlab-search-box__button`,children:`Zoeken`})]})}),a&&(0,U.jsx)(`progress`,{className:`dlab-search-box__progress`}),s]})]})};function of(e,t,n){let r=ps.CancelToken.source();return ps.get(`/bepalingenwijzer/api/autocomplete?term=${encodeURIComponent(e)}`,{cancelToken:r.token}).then(({data:{results:e,totalCount:n}})=>t(e,n)).catch(e=>{n(e)}),()=>{r.cancel()}}var sf=({value:e})=>{let[t,n]=(0,g.useState)(e||``),[r,i]=(0,g.useState)([]),[a,o]=(0,g.useState)(!1),[s,c]=(0,g.useState)(0),[l,u]=(0,g.useState)(!1),[d,f]=(0,g.useState)(0),p=(0,g.useRef)([]),m=(0,g.useRef)(null),[h,_]=(0,g.useState)(e||``),v=(0,g.useMemo)(()=>(0,$d.default)(_,200,{leading:!0}),[]);(0,g.useEffect)(()=>{if(h===``){c(0),i([]),f(0),u(!1);return}if(h)return u(!0),of(h,function(e,t){o(!1),u(!1),i(e),f(t)},function(e){ps.isCancel(e)||(o(!0),u(!1),i([]),f(0))})},[h,s]);let y=e=>{c(0),o(!1),u(!1),n(e),e===``?(_(``),v.cancel()):v(e)},b=e=>{e&&e.focus()},x=()=>c(s+1),S=!!r.length;return(0,U.jsxs)(af,{open:S||!!a||s>0,animate:!0,term:t,onChange:y,onNextResult:()=>{b(p.current[0])},focusRef:m,loading:l,children:[!l&&a&&(0,U.jsxs)(`div`,{className:`dlab-search-autocomplete__error`,children:[(0,U.jsx)(`p`,{children:`Er ging wat mis bij het laden van de resultaten.`}),(0,U.jsx)(`button`,{className:`button button--secondary`,onClick:x,children:`Probeer opnieuw`})]}),!l&&!a&&S&&(0,U.jsx)(nf,{totalCount:d,provisions:r,allLink:`/bepalingenwijzer/zoeken?q=${t}`,searchTerm:t,setFocusRefForIndex:(e,t)=>{p.current[e]=t},onPreviousResult:e=>{let t=p.current[e-1]||m.current;b(t)},onNextResult:e=>{let t=p.current[e+1];b(t)}})]})},cf=`js-dlab-search__provision-preview-portal`,lf=({previewElement:e})=>{let t=(0,g.useRef)(null);return(0,g.useEffect)(()=>{let n=t.current;return e.classList.add(`dlab-search-result__preview--active`),n==null||n.appendChild(e),()=>{n==null||n.removeChild(e)}},[e]),ne.createPortal((0,U.jsx)(`div`,{className:`dlab-search__provision-preview`,ref:t}),document.querySelector(`.${cf}`))},uf=`#dlab-search-results`,df=`.dlab-search-result__link`,ff=`.dlab-search-result__preview`,pf=`dlab-search-result__link--selected`;function mf(e){let t=document.querySelector(uf);return t.outerHTML=e,document.querySelector(df)}function hf(){let e=document.querySelector(uf);e.innerHTML=`<p>Geen resultaten</p>`}function gf(e,t){let n=n=>{let r=n.target,i=r==null?void 0:r.closest(df),a=document.activeElement;i instanceof HTMLElement&&(a!==e.current&&a instanceof HTMLElement&&a.blur(),t(i))};return window.addEventListener(`mouseover`,n),()=>{window.removeEventListener(`mouseover`,n)}}function _f(e,t){var n;if(document.querySelectorAll(`.${pf}`).forEach(e=>{e.classList.remove(pf)}),!e){t(null);return}e.classList.add(pf);let r=(n=e.parentElement)==null||(n=n.querySelector(ff))==null?void 0:n.cloneNode(!0);r&&t(r)}function vf(e,t){let n=n=>{let r=document.querySelector(`.${pf}`);if(r||document.activeElement===e.current){let a=document.querySelectorAll(df),o=[...a].findIndex(e=>e===r),s=a[o+1],c=a[o-1];if(n.key===`Enter`&&r&&(n.preventDefault(),r.click()),n.key===`ArrowDown`&&s&&(n.preventDefault(),s.focus(),t(s)),n.key===`ArrowUp`&&c&&(n.preventDefault(),c.focus(),t(c)),n.key===`ArrowUp`&&!c){var i;n.preventDefault(),(i=e.current)==null||i.focus()}}};
22return window.addEventListener(`keydown`,n),()=>{window.removeEventListener(`keydown`,n)}}function yf(e,t,n=()=>{}){let r=ps.CancelToken.source();return ps.get(`bepalingenwijzer/api/search/html?${e.toString()}`,{cancelToken:r.token}).then(e=>{t(e.data)}).catch(e=>{ps.isCancel(e)||n()}),r}var bf=({term:e})=>{let[t,n]=qn(),[r,i]=(0,g.useState)({}),[a,o]=(0,g.useState)(e||``),[s,c]=(0,g.useState)(e||``),l=(0,g.useMemo)(()=>(0,$d.default)(c,200),[]),[u,d]=(0,g.useState)(0),[f,p]=(0,g.useState)(!1),[m,h]=(0,g.useState)(!1),_=(0,g.useRef)(null),[v,y]=(0,g.useState)(null),[b,x]=(0,g.useState)(null);return(0,g.useEffect)(()=>{t.set(`q`,s),n(t,{replace:!0})},[s,t,n]),(0,g.useEffect)(()=>{let e=t.toString(),n=r[e];if(n)h(!1),x(mf(n));else{let n=yf(t,function(t){h(!1),p(!1),x(mf(t)),i({...r,[e]:t})},function(){p(!0),h(!1),hf(),x(null)});return()=>{n.cancel()}}},[u,r,t]),(0,g.useEffect)(()=>vf(_,x),[]),(0,g.useEffect)(()=>gf(_,x),[]),(0,g.useEffect)(()=>_f(b,y),[b]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(af,{term:a,onChange:e=>{d(0),p(!1),y(null),o(e),l(e)},focusRef:_,loading:m}),v&&(0,U.jsx)(lf,{previewElement:v}),!m&&f&&(0,U.jsxs)(`div`,{className:`dlab-search__error`,children:[(0,U.jsx)(`p`,{children:`Er ging wat mis bij het laden van de resultaten.`}),(0,U.jsx)(`button`,{className:`button button--secondary`,onClick:()=>{d(u+1)},children:`Probeer opnieuw`})]})]})},xf=g.createContext();function Sf(){let{comments:e,articleSlug:t,articleId:n,captcha:r}=(0,g.useContext)(xf);return e.map(e=>(0,U.jsx)(Cf,{comment:e,articleSlug:t,articleId:n,captcha:r},e.id))}function Cf({comment:e}){let t=`#user-comment-reply-${e.id}`,n=e.parentCommentId!=null&&e.parentCommentId>0?`user-comment child`:`user-comment`,r=new Date(e.publishedDate);return r.toLocaleDateString(`nl-NL`),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`article`,{className:n,children:[(0,U.jsxs)(`header`,{className:`user-comment__header`,children:[(0,U.jsx)(`span`,{className:`user-comment__name`,children:e.name}),`,`,(0,U.jsxs)(`time`,{dateTime:r.toLocaleDateString(`nl-NL`),children:[r.toLocaleDateString(`nl-NL`),` om`,` `,`0${r.getHours()}`.slice(-2),`:`,`0${r.getMinutes()}`.slice(-2)]})]}),(0,U.jsx)(`p`,{className:`paragraph`,children:e.message}),e.parentCommentId==null&&(0,U.jsx)(`p`,{className:`paragraph paragraph--right`,children:(0,U.jsxs)(`a`,{href:t,className:`single-text-link js-no-smooth js-open-comment-form`,children:[`Reageer`,(0,U.jsx)(`span`,{className:`single-text-link-decoration`})]})})]}),e.parentCommentId==null&&(0,U.jsx)(Tf,{root:!1,parentId:e.id})]})}function wf({comments:e}){return e&&e.length>0?(0,U.jsx)(`div`,{className:`content-container`,children:(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`p`,{className:`paragraph`,children:(0,U.jsxs)(`a`,{href:`#comments-1`,className:`button button--arrowed button--primary js-open-comments`,children:[`Reacties (`,e.length,`)`]})})})}):(0,U.jsx)(`div`,{className:`content-container empty-comments`,children:(0,U.jsxs)(`div`,{className:`content-block`,children:[(0,U.jsx)(`p`,{className:`paragraph`,children:`Er zijn nog geen reacties op dit artikel`}),(0,U.jsx)(`p`,{className:`paragraph`,children:(0,U.jsx)(`a`,{className:`button button--arrowed button--primary js-open-comments`,href:`#comments-1`,children:`Reageer als eerste`})})]})})}function Tf({root:e,parentId:t}){let[n,r]=(0,g.useState)({email:``,name:``,message:``,captchaCode:``}),[i,a]=(0,g.useState)({email:``,name:``,message:``,captchaCode:``}),[o,s]=(0,g.useState)(!1),{baseUrl:c,comments:l,articleSlug:u,articleId:d,captcha:f,afterSubmit:p}=(0,g.useContext)(xf),m=``;f!=null&&f.image!==void 0&&(m=`data:image/gif;base64,${f.image}`);let h=e===!0?`user-comment-reply`:`user-comment-reply-${t}`,_=e===!0?`comment-form js-comment-form`:`comment-form js-comment-form comment-form--hidden`,v=t==null?`Reageer op dit artikel`:`Reageer op deze reactie`,y=e=>{e.persist(),r(t=>({...t,[e.target.name]:e.target.value}))},b=e=>{let t={};return(!e.name||e.name.length>50||e.name.length<3)&&(t.name=`Naam is een verplicht veld`),(!e.message||e.message.length>1e3||e.message.length<3)&&(t.message=`Reactie is een verplicht veld`),e.email?/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e.email)||(t.email=`E-mailadres is ongeldig`):t.email=`E-mailadres is een verplicht veld`,t};return(0,U.jsxs)(U.Fragment,{children:[o&&(0,U.jsx)(`em`,{children:`Bedankt, uw reactie is geplaatst.`}),!o&&(0,U.jsx)(`form`,{method:`post`,onSubmit:e=>{e.preventDefault();let i=b(n),o=Object.keys(i).length===0;if(a(i),o){let e={comment:{name:n.name,email:n.email,message:n.message,articleId:d,ParentCommentId:t},captchaCode:n.captchaCode,CheckId:f.code,articleSlug:u};ps.post(`${c}/api/comments`,e).then(e=>{e.data.error===!0?a(e.data.validators):(s(!0),r({email:``,name:``,message:``,captchaCode:``}),p(e.data))}).catch(e=>{console.dir(e);let t={};t.name=`Er is een fout opgetreden.`,a(t)})}else console.log(`errors try again`,i)},id:h,className:_,children:(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{className:`heading-gamma`,children:`Reageer`}),(0,U.jsxs)(`p`,{className:`paragraph`,children:[(0,U.jsx)(`label`,{className:`label label--required`,htmlFor:`Name`,children:`N
22aam`}),(0,U.jsx)(`input`,{type:`text`,name:`name`,required:`required`,minLength:`3`,maxLength:`50`,htmlFor:`Name`,onChange:y,value:n.name,id:`user-comment-reply-input-name`,placeholder:`Vul uw naam in`}),i!==void 0&&i.hasOwnProperty(`name`)&&i.name&&(0,U.jsx)(`span`,{className:`error-text`,children:i.name})]}),(0,U.jsxs)(`p`,{className:`paragraph`,children:[(0,U.jsxs)(`label`,{className:`label label--required`,htmlFor:`Email`,children:[`E-mailadres`,` `]}),`(enkel voor de redactie, deze wordt niet weergegeven op de website)`,(0,U.jsx)(`input`,{type:`email`,name:`email`,required:`required`,htmlFor:`Email`,onChange:y,value:n.email,id:`user-comment-reply-input-email`,placeholder:`[email protected]`}),i!==void 0&&i.hasOwnProperty(`email`)&&i.email&&(0,U.jsx)(`span`,{className:`error-text`,children:i.email})]}),(0,U.jsxs)(`p`,{className:`paragraph`,children:[(0,U.jsx)(`label`,{className:`label label--required`,htmlFor:`Message`,children:`Reactie`}),(0,U.jsx)(`textarea`,{name:`message`,htmlFor:`Message`,onChange:y,value:n.message,required:`required`,minLength:`3`,maxLength:`1000`,id:`user-comment-reply-input-remarks`,placeholder:v}),i!==void 0&&i.hasOwnProperty(`message`)&&i.message&&(0,U.jsx)(`span`,{className:`error-text`,children:i.message})]}),m!=``&&(0,U.jsxs)(`p`,{className:`paragraph`,children:[(0,U.jsx)(`label`,{className:`label label--required`,children:`Spam controle`}),(0,U.jsx)(`input`,{type:`text`,name:`captchaCode`,onChange:y,value:n.captchaCode,id:`user-comment-reply-input-captcha`,placeholder:`Vul de code in`,required:`required`}),(0,U.jsx)(`span`,{className:`paragraph`,children:`Om spam te voorkomen vragen we u de onderstaande code over te typen.`}),(0,U.jsx)(`img`,{src:m,className:`captcha-image`}),i!==void 0&&i.hasOwnProperty(`captchaCode`)&&i.captchaCode&&(0,U.jsx)(`span`,{className:`error-text`,children:i.captchaCode})]}),(0,U.jsx)(`p`,{className:`paragraph`,children:(0,U.jsx)(`input`,{type:`submit`,className:`button button--primary`,value:`Stuur bericht`})})]})})]})}function Ef(e){let[t,n]=(0,g.useState)([]),[r,i]=(0,g.useState)({});(0,g.useEffect)(()=>{ps.get(`${e.baseUrl}/api/comments?articleId=${e.articleId}`).then(e=>{n(e.data)}).catch(e=>{console.log(e)})},[]),(0,g.useEffect)(()=>{ps.post(`${e.baseUrl}/api/captcha`).then(e=>{i(e.data)}).catch(e=>{console.log(e)})},[]);let a=t.length>0?`heading-gamma`:`heading-gamma hidden`;return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(xf.Provider,{value:{baseUrl:e.baseUrl,comments:t,articleSlug:e.articleSlug,articleId:e.articleId,captcha:r,afterSubmit(t){ps.get(`${e.baseUrl}/api/comments?articleId=${e.articleId}`).then(e=>{n(e.data)}).catch(e=>{console.log(e)})}},children:[(0,U.jsx)(wf,{comments:t}),(0,U.jsx)(`div`,{className:`content-container`,children:(0,U.jsxs)(`div`,{className:`content-block js-comments`,id:`comments-1`,children:[(0,U.jsx)(`h3`,{className:a,children:`Reacties`}),(0,U.jsx)(Sf,{})]})}),(0,U.jsx)(Tf,{root:!0,parentId:null})]})})}var Df=RegExp(`(%[a-f0-9]{2})+`,`gi`),Of=/^[a-f\d]{2}$/i;function kf(e,t){if(e.codePointAt(t)!==37||t+3>e.length)return;let n=e.slice(t+1,t+3);if(Of.test(n))return{byte:Number.parseInt(n,16),next:t+3}}function Af(e){return e<=127?1:e>=194&&e<=223?2:e>=224&&e<=239?3:e>=240&&e<=244?4:0}function jf(e){return e>=128&&e<=191}function Mf(e){try{return decodeURIComponent(e)}catch{let t=``,n=0;for(;n<e.length;){if(e.codePointAt(n)!==37){t+=e.charAt(n),n++;continue}let r=kf(e,n);if(!r){t+=e.charAt(n),n++;continue}let i=Af(r.byte);if(i===0){t+=e.slice(n,n+3),n+=3;continue}let a=r.next,o=!0;for(let t=1;t<i;t++){let t=kf(e,a);if(!t||!jf(t.byte)){o=!1;break}a=t.next}if(o){let r=e.slice(n,a);try{t+=decodeURIComponent(r),n=a;continue}catch{}}t+=e.slice(n,n+3),n+=3}return t}}function Nf(e){let t={"%FE%FF":`��`,"%FF%FE":`��`},n=Df.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{let e=Mf(n[0]);e!==n[0]&&(t[n[0]]=e)}n=Df.exec(e)}t[`%C2`]=`�`;let r=Object.keys(t);for(let n of r)e=e.replace(new RegExp(n,`g`),t[n]);return e}function Pf(e){if(typeof e!=`string`)throw TypeError(`Expected \`encodedURI\` to be of type \`string\`, got \`${typeof e}\``);try{return decodeURIComponent(e)}catch{return Nf(e)}}function Ff(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t!=null&&t.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let a=e[r];t(r,a,e)&&Object.defineProperty(n,r,i)}}return n}function If(e,t){if(typeof e!=`string`||typeof t!=`string`)throw TypeError("Expected the arguments to be of type `string`");if(e===``||t===``)return[];let n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}var Lf=e({exclude:()=>rp,extract:()=>Zf,parse:()=>Qf,parseUrl:()=>ep,pick:()=>np,stringify:()=>$f,stringifyUrl:()=>tp}),Rf=e=>e==null,zf=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Bf=Symbol(`encodeFragmentIdentifier`);function Vf(e){switch(e.arrayFormat){case`index`:return t=>(n,r)=>{let i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?(n.push([Wf(t,e),`[`,i,`]`].join(``)),n):(n.push([Wf(t,e),`[`,Wf(i,e),`]=`,Wf(r,e)].join(``)),n)};case`bracket`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?(n.push([Wf(t,e),`[]`].join(``)),n):(n.push([Wf(t,e),`[]=`,Wf(r,e)].join(``)),n);case`colon-list-separator`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?(n.push([Wf(t,e),`:list=`].join(``)),n):(n.push([Wf(t,e),`:list=`,Wf(r,e)].join(``)),n);case`comma`:case`separator`:case`bracket-separator`:{let t=e.arrayFormat===`bracket-separator`?`[]=`:`=`;return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===``?r:(i=i===null?``:i,r.length===0?(r.push([Wf(n,e),t,Wf(i,e)].join(``)),r):(r.push(Wf(i,e)),r))}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?(n.push(Wf(t,e)),n):(n.push([Wf(t,e),`=`,Wf(r,e)].join(``)),n)}}function Hf(e){let t;switch(e.arrayFormat){case`index`:return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}if(!Array.isArray(r[e])){r[e]=[r[e],n];return}r[e].push(n)};case`colon-list-separator`:return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}if(!Array.isArray(r[e])){r[e]=[r[e],n];return}r[e].push(n)};case`comma`:case`separator`:return(t,n,r)=>{r[t]=typeof n==`string`&&n.includes(e.arrayFormatSeparator)?n.split(e.arrayFormatSeparator).map(t=>Gf(t,e)):n===null?n:Gf(n,e)};case`bracket-separator`:return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,``),!i){r[t]=n&&Gf(n,e);return}let a=n===null?[]:Gf(n,e).split(e.arrayFormatSeparator);if(r[t]===void 0){r[t]=a;return}Array.isArray(r[t])||(r[t]=[r[t]]);for(let e of a)r[t].push(e)};default:return(e,t,n)=>{if(n[e]===void 0){n[e]=t;return}if(Array.isArray(n[e])){n[e].push(t);return}n[e]=[n[e],t]}}}function Uf(e){if(typeof e!=`string`||e.length!==1)throw TypeError(`arrayFormatSeparator must be single character string`)}function Wf(e,t){return t.encode?t.strict?zf(e):encodeURIComponent(e):e}function Gf(e,t){return t.decode?Pf(e):e}function Kf(e){return Array.isArray(e)?e.sort():typeof e==`object`?Kf(Object.keys(e)).sort((e,t)=>
22Number(e)-Number(t)).map(t=>e[t]):e}function qf(e){let t=e.indexOf(`#`);return t!==-1&&(e=e.slice(0,t)),e}function Jf(e){let t=``,n=e.indexOf(`#`);return n!==-1&&(t=e.slice(n)),t}function Yf(e){let t=e.indexOf(`?`);return t===-1?e:e.slice(0,t)}function Xf(e,t,n){return n===`string`&&typeof e==`string`?e:typeof n==`function`&&typeof e==`string`?n(e):n===`boolean`&&e===null?!0:n===`boolean`&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:n===`boolean`&&e!==null&&(e.toLowerCase()===`1`||e.toLowerCase()===`0`)?e.toLowerCase()===`1`:n===`string[]`&&t.arrayFormat!==`none`&&typeof e==`string`?[e]:n===`number[]`&&t.arrayFormat!==`none`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?[Number(e)]:n===`number`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):e}function Zf(e){e=qf(e);let t=e.indexOf(`?`);return t===-1?``:e.slice(t+1)}function Qf(e,t){t={decode:!0,sort:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},Uf(t.arrayFormatSeparator);let n=Hf(t),r=Object.create(null);if(typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e)||/^&+$/.test(e))return r;let i=0,a=e.indexOf(`&`);a===-1&&(a=e.length);for(let o=a;o<=e.length;o++){if(o<e.length&&e[o]!==`&`)continue;if(o===i){i=o+1;continue}let a=e.slice(i,o),s=t.decode?a.replaceAll(`+`,` `):a,[c,l]=If(s,`=`);c===void 0&&(c=s),l=l===void 0?null:[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?l:Gf(l,t),n(Gf(c,t),l,r),i=o+1}for(let[e,n]of Object.entries(r))if(typeof n==`object`&&n&&t.types[e]!==`string`)for(let[r,i]of Object.entries(n)){let a=t.types[e],o=typeof a==`function`?a:a?a.replace(`[]`,``):void 0;n[r]=Xf(i,t,o)}else r[e]=typeof n==`object`&&n&&t.types[e]===`string`?Object.values(n).join(t.arrayFormatSeparator):Xf(n,t,t.types[e]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&typeof n==`object`&&!Array.isArray(n)?Kf(n):n,e},Object.create(null))}function $f(e,t){if(!e)return``;t={encode:!0,strict:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,...t},Uf(t.arrayFormatSeparator);let n=n=>t.skipNull&&Rf(e[n])||t.skipEmptyString&&e[n]===``,r=Vf(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(n=>{let i=e[n];if(t.replacer&&(i=t.replacer(n,i),i===void 0)||i===void 0)return``;if(i===null)return Wf(n,t);if(Array.isArray(i)){if(i.length===0&&t.arrayFormat===`bracket-separator`)return Wf(n,t)+`[]`;let e=i;t.replacer&&(e=i.map((e,r)=>t.replacer(`${n}[${r}]`,e)).filter(e=>e!==void 0));let a=e.reduce(r(n),[]),o=[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?t.arrayFormatSeparator:`&`;return a.join(o)}return Wf(n,t)+`=`+Wf(i,t)}).filter(e=>e.length>0).join(`&`)}function ep(e,t){t={decode:!0,...t};let[n,r]=If(e,`#`);return n===void 0&&(n=e),{url:Yf(n??``),query:Qf(Zf(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:Gf(r,t)}:{}}}function tp(e,t){t={encode:!0,strict:!0,[Bf]:!0,...t};let n=Yf(qf(e.url))||``,r=$f({...Qf(Zf(e.url),{sort:!1,...t}),...e.query},t);r&&(r=`?${r}`);let i=Jf(e.url);if(typeof e.fragmentIdentifier==`string`){let r=new URL(n,`https://query-string.invalid`);r.hash=e.fragmentIdentifier,i=t[Bf]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${i}`}
22function np(e,t,n){n={parseFragmentIdentifier:!0,[Bf]:!1,...n};let{url:r,query:i,fragmentIdentifier:a}=ep(e,n);return tp({url:r,query:Ff(i,t),fragmentIdentifier:a},n)}function rp(e,t,n){if(Array.isArray(t)){let r=new Set(t);return np(e,e=>!r.has(e),n)}return np(e,(e,n)=>!t(e,n),n)}var ip=Lf,ap=ip.parse(document.location.search),op=ip.parse(document.location.hash).searchTerm||ap.q||``,sp=`search`,cp=e=>{let[t,n]=(0,g.useState)([]),[r,a]=(0,g.useState)([]),[o,s]=(0,g.useState)(0),[c,l]=(0,g.useState)(1),[u,d]=(0,g.useState)(void 0),[f,p]=(0,g.useState)(``),[m,h]=(0,g.useState)(1),[_,v]=(0,g.useState)(!0);(0,g.useEffect)(()=>{if(u===void 0){d(op);return}if(u===``){n([]),a([]),p(``),h(1),v(!1);return}v(!0);let t=f?`&tag=${f}`:``,r=`&page=${m}`;async function i(){await ps.get(`/${e.lang}/search/api?q=${u}${r}${t}`).then(function(e){e.data.pages<m&&h(1),n(e.data.results),a(e.data.tags),l(e.data.pages),s(e.data.total)}).catch(function(e){console.error(e)}).finally(()=>{document.activeElement instanceof HTMLElement&&!(document.activeElement instanceof HTMLInputElement)&&document.activeElement.blur(),v(!1)})}i()},[e.baseUrl,e.index,e.lang,e.site,u,m,f]);let y=r.filter((e,t)=>t>2),[b]=y.filter(e=>e.tag===f),x=e.showAllTags?r:r.filter((e,t)=>!y.includes(e)&&t<(b?2:3)),S=e=>{ll(),h(1),p(e)};return(0,U.jsxs)(`form`,{method:`get`,action:`/${e.lang}/${e.search}`,name:sp,className:`home-hero-search`,children:[(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`fieldset`,{children:(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`legend`,{className:`hidden`,children:e.translationTitle}),(0,U.jsxs)(`div`,{className:`input-group`,children:[(0,U.jsx)(`label`,{htmlFor:`input-filter-search`,className:`hidden`,children:e.translationSearchedFor}),(0,U.jsx)(xs,{formName:sp,updateTerm:()=>v(!0),lang:e.lang,type:`search`,fieldName:`q`,placeholderText:e.placeholder,class:`search search--no-icon`,value:op}),(0,U.jsx)(`button`,{type:`submit`,className:`home-hero-search__button`,children:e.translationTitle})]}),r.length>0&&(0,U.jsx)(`div`,{className:`search-index__filters`,children:(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`button`,{type:`button`,onClick:()=>S(``),className:(0,sr.default)(`filter-button`,`search-index-filter__button`,{"search-index-filter__button--active":f===``}),children:(0,U.jsx)(`div`,{children:e.translationAll})}),!!b&&(0,U.jsx)(`button`,{type:`button`,onClick:()=>S(``),className:`filter-button search-index-filter__button search-index-filter__button--active`,children:(0,U.jsx)(`div`,{children:b.tagPretty})}),!!x.length&&x.map((e,t)=>(0,U.jsx)(`button`,{type:`button`,onClick:()=>S(e.tag),className:(0,sr.default)(`filter-button`,`search-index-filter__button`,{"search-index-filter__button--active":e.tag===f}),children:(0,U.jsx)(`div`,{children:e.tagPretty})},t)),!e.showAllTags&&!!y.length&&(0,U.jsxs)(`li`,{className:`filter-buttons-more`,children:[(0,U.jsxs)(`button`,{type:`button`,className:`filter-button-trigger js-show-more-options`,children:[e.translationMore,(0,U.jsx)(`span`,{className:`filter-button-trigger-decoration`})]}),(0,U.jsx)(`div`,{className:`filter-button-options`,children:(0,U.jsx)(`ul`,{children:y.filter(e=>e.tag!==f).map((e,t)=>(0,U.jsx)(`li`,{onClick:()=>S(e.tag),className:`filter-button search-index-filter__button search-index-filter__button--more`,children:(0,U.jsx)(`div`,{children:e.tagPretty})},t))})})]})]})})]})})}),_&&(0,U.jsx)(i,{spinning:_}),!_&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`content-block`,style:{position:`relative`},children:[(0,U.jsxs)(`p`,{className:`paragraph`,children:[t.length>1&&(0,U.jsxs)(U.Fragment,{children:[e.translationThereAre,` `,(0,U.jsx)(`strong`,{children:o}),` `,e.translationResultsFound]}),t.length===1&&(0,U.jsxs)(U.Fragment,{children:[e.translationThereIs,` `,(0,U.jsx)(`strong`,{children:o}),` `,e.translationResultFound]}),t.length===0&&(0,U.jsxs)(U.Fragment,{children:[e.translationThereAre,` `,(0,U.jsx)(`strong`,{children:e.translationNone}),` `,e.translationResultsFound]})]}),(0,U.jsx)(`ol`,{className:`index-block__list`,children:t.map((e,t)=>(0,U.jsx)(`li`,{className:`index-block__item`,children:(0,U.jsxs)(`div`,{className:`search-index-item`,children:[(0,U.jsxs)(`a`,{href:e.type===`external`?e.url:e.slug,className:(0,sr.default)(`search-index-item__title`,{"search-index-item__tag--external":e.type===`external`}),children:[(0,U.jsx)(`div`,{dangerouslySetInnerHTML:{__html:e.title}}
22),(0,U.jsx)(`span`,{className:`search-index-item__title-decoration`})]}),(0,U.jsx)(`p`,{className:`paragraph search-index-item__text`,dangerouslySetInnerHTML:{__html:e.description}}),e.type===`external`?(0,U.jsx)(`span`,{className:`search-index-item__tag search-index-item__tag--external`,children:e.url}):(0,U.jsx)(`span`,{className:`search-index-item__tag`,children:e.typePretty})]})},t))})]}),(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`div`,{className:`content-wrapper`,children:(0,U.jsx)(`div`,{className:`content-container`,children:(0,U.jsxs)(`div`,{className:`paginator`,children:[m!==1&&(0,U.jsxs)(`a`,{className:`button button--secondary`,href:`#`,onClick:()=>h(m-1),children:[e.translationPrevious,` 20 `,e.translationResults]}),m<c&&(0,U.jsxs)(`a`,{className:`button button--primary button--arrowed`,href:`#`,onClick:()=>h(m+1),children:[e.translationNext,` 20 `,e.translationResults]})]})})})})]})]})},lp=({header:e,data:t,onClick:n})=>(0,U.jsxs)(`div`,{className:`index-block`,children:[(0,U.jsx)(`h2`,{className:`index-block__header`,children:e}),(0,U.jsx)(`ol`,{className:`index-block__list`,children:t.map(({value:e,text:t})=>(0,U.jsx)(`li`,{className:`index-block__item`,children:(0,U.jsxs)(`a`,{href:`#`,className:`index-block__link`,onClick:t=>{n(e),t.preventDefault()},children:[t,(0,U.jsx)(`span`,{className:`index-block__link-decoration`})]})},`${t}-${JSON.stringify(e)}`))})]}),up=({term:e,definition:t,language:n,tags:r})=>(0,U.jsxs)(`div`,{className:`term`,children:[(0,U.jsx)(`div`,{className:`term__title`,children:e}),(0,U.jsx)(`div`,{className:`term__definition`,dangerouslySetInnerHTML:{__html:t}}),(0,U.jsxs)(`div`,{className:`term__tags`,children:[(0,U.jsx)(`div`,{className:`term__tag term__tag--light-blue`,children:n}),r.map(e=>(0,U.jsx)(`div`,{className:`term__tag`,children:e},e))]})]}),dp=[{label:`NL/EN`,source:`nl`,target:`en`},{label:`EN/NL`,source:`en`,target:`nl`}],fp={dictionary:[],pagetitle_en:``,pagetitle_nl:``,pageintro_en:``,pageintro_nl:``},pp=({defaultTranslation:e=`nl/en`,baseUrl:t=`https://umcu-services.azurewebsites.net`})=>{let[n,r]=(0,g.useState)(fp),[a,o]=(0,g.useState)(null),[s,c]=(0,g.useState)(``),[l,u]=(0,g.useState)(!0),[d,f]=(0,g.useState)(!1),[p,m]=(0,g.useState)(dp.find(t=>t.label.toLowerCase()===e.toLowerCase())||dp[0]),h=(0,g.useMemo)(()=>n.dictionary.filter(e=>e.terms[p.source].toLowerCase().includes(s.toLowerCase())).reduce((e,t)=>{let n=t.terms[p.source].charAt(0);return n===``?e:{...e,[n]:[...e[n]||[],t]}},{}),[n,p,s]);(0,g.useEffect)(()=>{Promise.resolve().then(()=>u(!0)).then(()=>ps.get(`${t}/api/dictionary`)).then(({data:e})=>r(e)).catch(e=>{console.error(e),f(!0)}).finally(()=>u(!1))},[t]);let _=e=>{o(e)};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`h1`,{className:`heading-alpha`,children:p.source===`nl`?n.pagetitle_nl:n.pagetitle_en})}),(0,U.jsx)(`div`,{className:`content-block`,dangerouslySetInnerHTML:{__html:p.source===`nl`?n.pageintro_nl:n.pageintro_en}}),(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`form`,{action:`.`,onSubmit:e=>{e.preventDefault()},children:(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{className:`hidden`,children:`Zoeken`}),(0,U.jsxs)(`div`,{className:`input-group`,children:[(0,U.jsx)(`label`,{htmlFor:`input-filter-search`,className:`hidden`,children:`Zoekterm`}),(0,U.jsx)(`input`,{autoComplete:`off`,id:`input-filter-search`,className:`search`,type:`search`,value:s,onChange:e=>{o(null),c(e.currentTarget.value)},placeholder:p.source===`nl`?`Zoek de betekenis of vertaling van een woord`:`Search for the meaning or translation of a word`})]}),(0,U.jsx)(`div`,{className:`input-group`,children:dp.map((e,t)=>(0,U.jsxs)(`div`,{className:`filter-button`,children:[(0,U.jsx)(`input`,{className:`filter-button__radio`,type:`radio`,name:`filter-type`,id:`input-filter-type-${t}`,onChange:()=>m(e),checked:e===p}),(0,U.jsx)(`label`,{className:`filter-button__label`,htmlFor:`input-filter-type-${t}`,children:e.label})]},e.label))})]})})}),a&&(0,U.jsxs)(`div`,{className:`content-block`,children:[(0,U.jsx)(`p`,{className:`paragraph`,children:p.source===`nl`?`Je hebt gezocht op:`:`You searched for:`}),(0,U.jsxs)(`div`,{className:`dictionary__terms`,children:[(0,U.jsx)(up,{term:a.terms[p.source],definition:a.definitions[p.source],language:p.source,tags:a.keywords[p.source]}),(0,U.jsx)(up,{term:a.terms[p.target],definition:a.definitions[p.target],language:p.target,tags:a.keywords[p.target]})]})]}),d&&(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`p`,{className:`paragraph`,children:p.source===`nl`?`Sorry, er is een fout opgetreden.`:`Sorry, an error has occurred.`})}),l&&(0,U.jsx)(i,{spinning:!0}),Object.keys(h).sort().map(e=>(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(lp,{header:e,data:h[e].map(e=>({text:e.terms[p.source],value:e})),onClick:_})},e))]})},mp=({fact:e})=>{let t=e.split(`;`),n=t[Math.floor(Math.random()*t.length)];return(0,U.jsxs)(`div`,{className:`fact-card-container`,children:[(0,U.jsx)(`h2`,{children:`Wist je dat...`}),(0,U.jsx)(`p`,{children:n&&n})]})},hp=({title:e,paragraph:t,images:n})=>{let[r,i]=g.useState(1),a=n&&JSON.parse(n);return g.useEffect(()=>{let e=document.getElementById(`header-carousel__image`);if(a.length>1){let t=setInterval(()=>{r===(a==null?void 0:a.length)-1?(i(0),e.innerHTML=`<img className="
22carousel-image" src='${a[r].url}?fm=webp&q=75&width=352 352w' />`):(i(r+1),e.innerHTML=`<img className="carousel-image" src='${a[r].url}?fm=webp&q=75&width=352 352w' />`)},6e3);return()=>clearInterval(t)}},[r,a]),(0,U.jsxs)(`div`,{className:`header-carousel__container`,children:[(0,U.jsxs)(`div`,{className:`header-carousel__content`,children:[(0,U.jsx)(`h1`,{className:`header-carousel__title alpha`,children:e||null}),(0,U.jsx)(`p`,{className:`paragraph paragraph--intro`,children:t||null})]}),a[0]&&(0,U.jsx)(`div`,{id:`header-carousel__image`,className:`header-carousel__image`,children:(0,U.jsx)(`img`,{className:`carousel-image`,src:a[0].url})})]})},gp=({title:e,elements:t})=>{let[n,r]=(0,g.useState)(0),[i,a]=(0,g.useState)(0),[o,s]=(0,g.useState)(`auto`),c=(0,g.useRef)(null),l=t&&JSON.parse(t);(0,g.useEffect)(()=>{let e=document.querySelector(`.timeline-carousel-items`);if(e){let t=window.innerWidth,r;r=t<=768?45:t>768&&t<=1024?35:t>1024&&t<=1600?20:15,e.style.transform=`translateX(-${n*r}%)`}},[n]),(0,g.useEffect)(()=>{c.current&&s(`${c.current.scrollHeight+50}px`)},[i]);let u=()=>{s(`60px`),setTimeout(()=>{c.current&&s(`${c.current.scrollHeight+50}px`)},500)},d=()=>{document.querySelectorAll(`.circular-line`).forEach((e,t)=>{setTimeout(()=>{e.classList.add(`animate`)},350+t*250),setTimeout(()=>{e.classList.remove(`animate`)},1500+t*250)});let e=document.querySelector(`.timeline-content`);e.classList.remove(`active`),setTimeout(()=>{e.classList.add(`active`)},600)},f=e=>{r(e),setTimeout(()=>{a(e)},500),d(),u()},p=e=>{r(t=>e===`next`?t<l.length-1?t+1:0:t>0?t-1:l.length-1),setTimeout(()=>{a(t=>e===`next`?t<l.length-1?t+1:0:t>0?t-1:l.length-1)},500),u(),d()};return(0,U.jsxs)(`div`,{className:`timeline`,children:[(0,U.jsxs)(`div`,{className:`time-scale`,children:[(0,U.jsx)(`button`,{className:`timeline-carousel-prev-button`,"aria-label":`Vorige`,onClick:()=>p(`prev`)}),(0,U.jsx)(`div`,{className:`circular-line`}),(0,U.jsx)(`div`,{className:`circular-line`}),(0,U.jsx)(`div`,{className:`circular-line`}),(0,U.jsx)(`div`,{className:`circular-line`}),(0,U.jsx)(`div`,{className:`horizontal-line`}),(0,U.jsx)(`div`,{className:`timeline-carousel`,children:(0,U.jsxs)(`div`,{className:`timeline-carousel-items`,children:[(0,U.jsx)(`h2`,{className:`timeline-title`,children:_s(e)}),(0,U.jsx)(`div`,{className:`timeline-carousel-item-container`,"data-attr-active-element":n,children:l.map((e,t)=>(0,U.jsxs)(`div`,{className:`timeline-carousel-item`,children:[(0,U.jsx)(`div`,{className:`ripple`,style:{animationDelay:`${Math.random()*5}s`}}),(0,U.jsx)(`div`,{className:`timeline-ball`,onClick:()=>f(t)}),(0,U.jsxs)(`div`,{className:`timeline-title-container`,onClick:()=>f(t),children:[(0,U.jsx)(`div`,{className:`timeline-number`,children:t+1}),(0,U.jsxs)(`div`,{className:`title-intro-container`,children:[(0,U.jsx)(`h2`,{className:`title`,children:_s(e.Title)}),(0,U.jsx)(`div`,{className:`intro`,children:_s(e.IntroText)})]})]}),(0,U.jsx)(`div`,{className:`item-vertical-line`})]},t))})]})}),(0,U.jsx)(`button`,{className:`timeline-carousel-next-button`,"aria-label":`Volgende`,onClick:()=>p(`next`)})]}),(0,U.jsxs)(`div`,{className:`timeline-content`,style:{height:o},ref:c,children:[(0,U.jsx)(`h2`,{className:`title`,children:_s(l[i].Title)}),(0,U.jsx)(`div`,{className:l[i].Text.length>350?`two-column-text`:`one-column-text`,dangerouslySetInnerHTML:{__html:_s(l[i].Text)}})]})]})};function _p(e){return Object.keys(e)}function vp(e){return e&&typeof e==`object`&&!Array.isArray(e)}function yp(e,t){let n={...e},r=t;return vp(e)&&vp(t)&&Object.keys(t).forEach(t=>{vp(r[t])&&t in e?n[t]=yp(n[t],r[t]):n[t]=r[t]}),n}function bp(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function xp(e){var t;return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split(`*`)[0].trim()}function Sp(e){let t=xp(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function Cp(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function wp(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?Cp(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?Cp(n):n}}return r}return n}var W=wp(`rem`,{shouldScale:!0}),Tp=wp(`em`);function Ep(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function Dp(e){if(typeof e==`number`)return!0;
22if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}function Op(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==g.Fragment}function kp(e){let t=(0,g.createContext)(null);return[t,()=>{let n=(0,g.use)(t);if(n===null)throw Error(e);return n}]}var Ap={app:100,modal:200,popover:300,overlay:400,max:9999};function jp(e){return Ap[e]}var Mp=()=>{};function Np(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||Mp:n=>{if(n.key===`Escape`){var r;e(n),(r=t.onTrigger)==null||r.call(t)}}}function Pp(e,t=`size`,n=!0){if(e!==void 0)return Dp(e)?n?W(e):e:`var(--${t}-${e})`}function Fp(e){return Pp(e,`mantine-spacing`)}function Ip(e){return e===void 0?`var(--mantine-radius-default)`:Pp(e,`mantine-radius`)}function Lp(e){return Pp(e,`mantine-font-size`)}function Rp(e){return Pp(e,`mantine-line-height`,!1)}function zp(e){if(e)return Pp(e,`mantine-shadow`,!1)}function Bp(e,t){return n=>{e==null||e(n),t==null||t(n)}}function Vp(e,t){return e in t?Sp(t[e]):Sp(e)}function Hp(e,t){let n=e.map(e=>({value:e,px:Vp(e,t)}));return n.sort((e,t)=>e.px-t.px),n}function Up(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function Wp(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function Gp(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function Kp(e){let t=(0,g.useRef)(e);return(0,g.useEffect)(()=>{t.current=e}),(0,g.useMemo)(()=>((...e)=>{var n;return(n=t.current)==null?void 0:n.call(t,...e)}),[])}function qp(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=Kp(e),s=(0,g.useRef)(0),c=(0,g.useRef)(0),l=(0,g.useRef)(null),u=(0,g.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(s.current!==0){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,g.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}var Jp=[`mousedown`,`touchstart`];function Yp(e,t,n,r=!0){let i=(0,g.useRef)(null),a=t||Jp,o=(0,g.useEffectEvent)(t=>{let{target:r}=t??{};if(!document.body.contains(r)&&(r==null?void 0:r.tagName)!==`HTML`)return;let a=t.composedPath();Array.isArray(n)?n.every(e=>!!e&&!a.includes(e))&&e(t):i.current&&!a.includes(i.current)&&e(t)}),s=a.join(`,`);return(0,g.useEffect)(()=>{if(!r)return;let e=s.split(`,`);return e.forEach(e=>document.addEventListener(e,o)),()=>{e.forEach(e=>document.removeEventListener(e,o))}},[s,r]),i}function Xp(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window&&window.matchMedia(e).matches}function Zp(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,g.useState)(n?t:Xp(e));return(0,g.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}var Qp=typeof document<`u`?g.useLayoutEffect:g.useEffect;function $p(e,t){let n=(0,g.useRef)(!1);(0,g.useEffect)(()=>()=>{n.current=!1},[]),(0,g.useEffect)(()=>
22{if(n.current)return e();n.current=!0},t)}function em({opened:e,shouldReturnFocus:t=!0}){let n=(0,g.useRef)(null),r=()=>{var e;n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&((e=n.current)==null||e.focus({preventScroll:!0}))};return $p(()=>{let i=-1,a=e=>{e.key===`Tab`&&window.clearTimeout(i)};if(document.addEventListener(`keydown`,a),e)n.current=document.activeElement;else if(t){let e=document.activeElement;i=window.setTimeout(()=>{let t=document.activeElement;(t===null||t===document.body||t===e)&&r()},10)}return()=>{window.clearTimeout(i),document.removeEventListener(`keydown`,a)}},[e,t]),r}var tm=/input|select|textarea|button|object/,nm=`a, input, select, textarea, button, object, [tabindex]`;function rm(e){return e.style.display===`none`}function im(e){if(e.getAttribute(`aria-hidden`)||e.getAttribute(`hidden`)||e.getAttribute(`type`)===`hidden`)return!1;let t=e;for(;t&&t!==document.body&&t.nodeType!==11;){if(rm(t))return!1;t=t.parentNode}return!0}function am(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function om(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(am(e));return(tm.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&im(e)}function sm(e){let t=am(e);return(Number.isNaN(t)||t>=0)&&om(e)}function cm(e){return Array.from(e.querySelectorAll(nm)).filter(sm)}function lm(e,t){let n=cm(e);if(!n.length){t.preventDefault();return}let r=n[t.shiftKey?0:n.length-1],i=e.getRootNode(),a=r===i.activeElement||e===i.activeElement,o=i.activeElement;if(o.tagName===`INPUT`&&o.getAttribute(`type`)===`radio`&&(a=n.filter(e=>e.getAttribute(`type`)===`radio`&&e.getAttribute(`name`)===o.getAttribute(`name`)).includes(r)),!a)return;t.preventDefault();let s=n[t.shiftKey?n.length-1:0];s&&s.focus()}function um(e=!0){let t=(0,g.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(nm));t=n.find(sm)||n.find(om)||null,!t&&om(e)&&(t=e)}t?t.focus({preventScroll:!0}):console.warn(`[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node`,e)},r=(0,g.useCallback)(r=>{if(e){if(r===null){t.current=null;return}t.current!==r&&(setTimeout(()=>{r.getRootNode()?n(r):console.warn(`[@mantine/hooks/use-focus-trap] Ref node is not part of the dom`,r)}),t.current=r)}},[e]);return(0,g.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});let r=e=>{e.key===`Tab`&&t.current&&lm(t.current,e)};return document.addEventListener(`keydown`,r),()=>document.removeEventListener(`keydown`,r)},[e]),r}function dm(e){let t=(0,g.useId)(),[n,r]=(0,g.useState)(`mantine-${t.replace(/:/g,``)}`),i=(0,g.useRef)(!1);return Qp(()=>{i.current||(i.current=!0,r(Gp()))},[]),typeof e==`string`?e:n}function fm(e,t,n){let r=(0,g.useEffectEvent)(t);(0,g.useEffect)(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function pm(e,t=`use-local-storage`){try{return JSON.stringify(e)}catch{throw Error(`@mantine/hooks ${t}: Failed to serialize the value`)}}function mm(e){try{return e&&JSON.parse(e)}catch{return e}}function hm(e){return{getItem:t=>{try{return window[e].getItem(t)}catch{return console.warn(`use-local-storage: Failed to get value from storage, localStorage is blocked`),null}},setItem:(t,n)=>{try{window[e].setItem(t,n)}catch{console.warn(`use-local-storage: Failed to set value to storage, localStorage is blocked`)}},removeItem:t=>{try{window[e].removeItem(t)}catch{console.warn(`use-local-storage: Failed to remove value from storage, localStorage is blocked`)}}}}function gm(e,t){let n=e===`localStorage`?`mantine-local-storage`:`mantine-session-storage`,{getItem:r,setItem:i,removeItem:a}=hm(e);return function({key:o,defaultValue:s,getInitialValueInEffect:c=!0,sync:l=!0,deserialize:u=mm,serialize:d=e=>pm(e,t)}){let f=(0,g.useCallback)(t=>{let n;try{n=typeof window>`u`||!(e in window)||window[e]===null||!!t}catch{n=!0}if(n)return s;let i=r(o);return i===null?s:u(i)},[o,s]),[p,m]=(0,g.useState)(f(c)),h=(0,g.useCallback)(e=>{e instanceof Function?m(t=>{let r=e(t);return i(o,d(r)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:r}}))}),r}):(i(o,d(e)),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:e}})),m(e))},[o]),_=(0,g.useCallback)(()=>{a(o),m(s),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:s}}))},[o,s]);return fm(`storage`,t=>{l&&t.storageArea===window[e]&&t.key===o&&m(u(t.newValue??void 0))}),fm(n,e=>
22{l&&e.detail.key===o&&m(e.detail.value)}),(0,g.useEffect)(()=>{s!==void 0&&p===void 0&&h(s)},[s,p,h]),(0,g.useEffect)(()=>{let e=f();e!==void 0&&h(e)},[o]),[p===void 0?s:p,h,_]}}function _m(e){let{getItem:t}=hm(e);return function({key:n,defaultValue:r,deserialize:i=mm}){let a;try{a=typeof window>`u`||!(e in window)||window[e]===null}catch{a=!0}if(a)return r;let o=t(n);return o===null?r:i(o)}}function vm(e){return gm(`localStorage`,`use-local-storage`)(e)}_m(`localStorage`);function ym(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function bm(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=ym(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():ym(e,null)}),t.clear()}}}function xm(...e){return(0,g.useCallback)(bm(...e),e)}function Sm(e,t,n=`ltr`){let r=(0,g.useRef)(!1),i=(0,g.useRef)(!1),a=(0,g.useRef)(0),o=(0,g.useRef)(null),[s,c]=(0,g.useState)(!1);return(0,g.useEffect)(()=>(r.current=!0,()=>{var e;(e=o.current)==null||e.call(o)}),[]),{ref:(0,g.useCallback)(s=>{let l=({x:t,y:i})=>{cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{if(r.current&&s){s.style.userSelect=`none`;let r=s.getBoundingClientRect();if(r.width&&r.height){let a=Wp((t-r.left)/r.width,0,1);e({x:n===`ltr`?a:1-a,y:Wp((i-r.top)/r.height,0,1)})}}})},u=()=>{document.addEventListener(`mousemove`,h),document.addEventListener(`mouseup`,p),document.addEventListener(`touchmove`,_,{passive:!1}),document.addEventListener(`touchend`,p)},d=()=>{document.removeEventListener(`mousemove`,h),document.removeEventListener(`mouseup`,p),document.removeEventListener(`touchmove`,_),document.removeEventListener(`touchend`,p)},f=()=>{!i.current&&r.current&&(i.current=!0,typeof(t==null?void 0:t.onScrubStart)==`function`&&t.onScrubStart(),c(!0),u())},p=()=>{i.current&&r.current&&(i.current=!1,c(!1),d(),setTimeout(()=>{typeof(t==null?void 0:t.onScrubEnd)==`function`&&t.onScrubEnd()},0))},m=e=>{f(),e.preventDefault(),h(e)},h=e=>l({x:e.clientX,y:e.clientY}),g=e=>{e.cancelable&&e.preventDefault(),f(),_(e)},_=e=>{e.cancelable&&e.preventDefault(),l({x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY})};return s==null||s.addEventListener(`mousedown`,m),s==null||s.addEventListener(`touchstart`,g,{passive:!1}),o.current=()=>{d(),cancelAnimationFrame(a.current)},()=>{s&&(s.removeEventListener(`mousedown`,m),s.removeEventListener(`touchstart`,g))}},[n,e]),active:s}}function Cm({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,g.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r==null||r(e,...t)},!1]:[e,r,!0]}function wm(e,t){return Zp(`(prefers-reduced-motion: reduce)`,e,t)}function Tm(e=!1,t={}){let[n,r]=(0,g.useState)(e),i=(0,g.useCallback)(()=>{r(e=>{if(!e){var n;return(n=t.onOpen)==null||n.call(t),!0}return e})},[t.onOpen]),a=(0,g.useCallback)(()=>{r(e=>{if(e){var n;return(n=t.onClose)==null||n.call(t),!1}return e})},[t.onClose]);return[n,{open:i,close:a,toggle:(0,g.useCallback)(()=>{n?a():i()},[a,i,n]),set:r}]}function Em(e){let t=(0,g.useRef)(void 0);return(0,g.useEffect)(()=>{t.current=e},[e]),t.current}var Dm=[`mouse`,`touch`],Om=10;function km(e,t={}){let{threshold:n=400,events:r=Dm,cancelOnMove:i=!1,onStart:a,onFinish:o,onCancel:s}=t,c=(0,g.useRef)(!1),l=(0,g.useRef)(!1),u=(0,g.useRef)(-1),d=(0,g.useRef)(null);(0,g.useEffect)(()=>()=>window.clearTimeout(u.current),[]);let f=r.join(`,`);return(0,g.useMemo)(()=>{if(typeof e!=`function`)return{};let t=i!==!1,f=i===!0?Om:i===!1?0:i,p=t=>{!Mm(t)&&!jm(t)||(a&&a(t),d.current=Am(t),l.current=!0,u.current=window.setTimeout(()=>{e(t),c.current=!0},n))},m=e=>{!Mm(e)&&!jm(e)||(c.current?o&&o(e):l.current&&s&&s(e),c.current=!1,l.current=!1,d.current=null,u.current!==-1&&(window.clearTimeout(u.current),u.current=-1))},h=e=>{if(!t||!l.current||c.current)return;let n=Am(e);if(!n||!d.current)return;let r=n.x-d.current.x,i=n.y-d.current.y;Math.sqrt(r*r+i*i)>f&&m(e)},g={};return r.includes(`mouse`)&&(g.onMouseDown=p,g.onMouseUp=m,g.onMouseLeave=m,t&&(g.onMouseMove=h)),r.includes(`touch`)&&(g.onTouchStart=p,g.onTouchEnd=m,g.onTouchCancel=m,t&&(g.onTouchMove=h)),g},[e,n,s,o,a,i,f])}function Am(e){if(jm(e)){let t=e.touches[0]??e.changedTouches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function jm(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:`touches`in e.nativeEvent}function Mm(e){return e.nativeEvent instanceof MouseEvent}function Nm(){return`development`}function Pm(e,t){return t.length===0?e:t.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t)}function Fm(e){var t;return e==null||(t=e.props)==null?void 0:t.ref}function Im(e,t=document){let n=t.querySelector(e);
22if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t<r.length;t+=1){let n=r[t];if(n.shadowRoot){let t=Im(e,n.shadowRoot);if(t)return t}}return null}function Lm(e,t=document){let n=[],r=t.querySelectorAll(e);n.push(...Array.from(r));let i=t.querySelectorAll(`*`);for(let t=0;t<i.length;t+=1){let r=i[t];if(r.shadowRoot){let t=Lm(e,r.shadowRoot);n.push(...t)}}return n}function Rm(e){if(!e)return document;let t=e.getRootNode();return t instanceof ShadowRoot||t instanceof Document?t:document}function zm(e){let t=g.Children.toArray(e);return t.length!==1||!Op(t[0])?null:t[0]}function Bm(e){return e}function Vm(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Vm(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Hm(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Vm(e))&&(r&&(r+=` `),r+=t);return r}var Um={};function Wm(e){let t={};return e.forEach(e=>{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=Hm(t[e],n):t[e]=n})}),t}function Gm({theme:e,classNames:t,props:n,stylesCtx:r}){return Wm((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||Um))}function Km({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function qm(e){return e===`auto`||e===`dark`||e===`light`}function Jm({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return qm(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&qm(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function Ym(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function Xm(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Zm(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function Qm(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function $m(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function eh(e){return Xm(e)?Zm(e):e.startsWith(`rgb`)?Qm(e):e.startsWith(`hsl`)?$m(e):{r:0,g:0,b:0,a:1}}function th(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function nh(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function rh(e){if(e.startsWith(`oklch(`))return(nh(e)||0)/100;let{r:t,g:n,b:r}=eh(e),i=t/255,a=n/255,o=r/255,s=th(i),c=th(a),l=th(o);return .2126*s+.7152*c+.0722*l}function ih(e,t=.179){return!e.startsWith(`var(`)&&rh(e)>t}function ah({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:ih(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:ih(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};
22if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:ih(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][Ym(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:ih(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:ih(e,t.luminanceThreshold),shade:a,variable:void 0}}function oh(e,t){let n=ah({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function sh(e){return Array.isArray(e)?e:Array(10).fill(e)}function ch(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function lh(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=eh(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function uh(e,t){let n={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(e==null?void 0:e.deg)??t.defaultGradient.deg??0},r=oh(n.from,t),i=oh(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function dh(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=eh(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var fh=dh,ph=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=ah({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&ch(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${W(1)} solid transparent`}:{background:e,hover:lh(e,.1),color:r,border:`${W(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:lh(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${W(1)} solid transparent`}}return{background:dh(e,.1),hover:dh(e,.12),color:e,border:`${W(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${W(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:dh(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:dh(e,.05),color:e,border:`${W(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:dh(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}}return{background:`transparent`,hover:dh(e,.12),color:e,border:`${W(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${W(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:lh(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:lh(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:lh(t.white,.01),color:e,border:`${W(1)} solid transparent`}:n===`gradient`?{background:uh(r,t),hover:uh(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${W(1)} solid var(--mantine-color-default-border)`}:{}};function mh({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&ah({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function hh(e,t,n){return mh({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function gh(e,t){let n=e.colors[e.primaryColor];
22return ch(n)?e.autoContrast?hh(n,e,t):`var(--mantine-color-white)`:mh({color:n[Ym(e,t)],theme:e,autoContrast:null})}function _h(e,t){return typeof e==`boolean`?e:t.autoContrast}var vh=(0,g.createContext)(null);function yh(){let e=(0,g.use)(vh);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function bh(){return yh().cssVariablesResolver}function xh(){return yh().classNamesPrefix}function Sh(){return yh().getStyleNonce}function Ch(){return yh().withStaticClasses}function wh(){return yh().headless}function Th(){var e;return(e=yh().stylesTransform)==null?void 0:e.sx}function Eh(){var e;return(e=yh().stylesTransform)==null?void 0:e.styles}function Dh(){return yh().env||`default`}function Oh(){return yh().deduplicateInlineStyles}function kh(e,t){var n,r;let i=typeof window<`u`&&`matchMedia`in window&&((n=window.matchMedia(`(prefers-color-scheme: dark)`))==null?void 0:n.matches),a=e===`auto`?i?`dark`:`light`:e;(r=t())==null||r.setAttribute(`data-mantine-color-scheme`,a)}function Ah({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,g.useRef)(null),[a,o]=(0,g.useState)(()=>e.get(t)),s=r||a,c=(0,g.useCallback)(t=>{r||(kh(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,g.useCallback)(()=>{o(t),kh(t,n),e.clear()},[e.clear,t]);return(0,g.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),Qp(()=>{kh(e.get(t),n)},[]),(0,g.useEffect)(()=>{var e;if(r)return kh(r,n),()=>{};r===void 0&&kh(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let t=e=>{a===`auto`&&kh(e.matches?`dark`:`light`,n)};return(e=i.current)==null||e.addEventListener(`change`,t),()=>{var e;return(e=i.current)==null?void 0:e.removeEventListener(`change`,t)}},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}var jh={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},Mh=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,Nh={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:jh,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:ph,autoContrast:!1,luminanceThreshold:.3,fontFamily:Mh,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:Mh,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:W(34),lineHeight:`1.3`},h2:{fontSize:W(26),lineHeight:`1.35`},h3:{fontSize:W(22),lineHeight:`1.4`},h4:{fontSize:W(18),lineHeight:`1.45`},h5:{fontSize:W(16),lineHeight:`1.5`},h6:{fontSize:W(14),lineHeight:`1.5`}}},fontSizes:{xs:W(12),sm:W(14),md:W(16),lg:W(18),xl:W(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:W(2),sm:W(4),md:W(8),lg:W(16),xl:W(32)},spacing:{xs:W(10),sm:W(12),md:W(16),lg:W(20),xl:W(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), 0 ${W(1)} ${W(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(10)} ${W(15)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(7)} ${W(7)} ${W(-5)}`,md:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(20)} ${W(25)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(10)} ${W(10)} ${W(-5)}`,lg:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(28)} ${W(23)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(12)} ${W(12)} ${W(-7)}`,xl:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(36)} ${W(28)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(17)} ${W(17)} ${W(-7)}`},other:{},components:{}},Ph=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more â https://mantine.dev/theming/colors/#primary-color`,Fh=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function Ih(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function Lh(e){if(!(e.primaryColor in e.colors))throw Error(Ph);if(typeof e.primaryShade==`object`&&(!Ih(e.primaryShade.dark)||!Ih(e.primaryShade.light))||typeof e.primaryShade==`number`&&!Ih(e.primaryShade))throw Error(Fh)}function Rh(e,t){var n;if(!t)return Lh(e),e;let r=yp(e,t);return t.fontFamily&&!((n=t.headings)!=null&&n.fontFamily)&&(r.headings={...r.headings,fontFamily:t.fontFamily}),Lh(r),r}var zh=(0,g.createContext)(null),Bh=()=>(0,g.use)(zh)||Nh;function Vh(){let e=(0,g.use)(zh);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function Hh({theme:e,children:t,inherit:n=!0}){let r=Bh(),i=(0,g.useMemo)(()=>Rh(n?r:Nh,e),[e,r,n]);return(0,U.jsx)(zh,{value:i,children:t})}Hh.displayName=`@mantine/core/MantineThemeProvider`;function Uh(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function Wh(e,t){let n=t?[t]:[`:root`,`:host`],r=Uh(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=Uh(e.dark),o=Uh(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function Gh({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Ym(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:fh(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Ym(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:lh(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:lh(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:fh(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}
22function Kh(e,t,n){_p(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var qh=e=>{let t=Ym(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:W(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":gh(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":gh(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};Kh(r.variables,e.breakpoints,`breakpoint`),Kh(r.variables,e.spacing,`spacing`),Kh(r.variables,e.fontSizes,`font-size`),Kh(r.variables,e.lineHeights,`line-height`),Kh(r.variables,e.shadows,`shadow`),Kh(r.variables,e.radius,`radius`),Kh(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),_p(e.colors).forEach(t=>{let n=e.colors[t];if(ch(n)){Object.assign(r.light,Gh({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,Gh({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=hh(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=hh(n,e,`dark`);return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,Gh({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,Gh({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;
22return _p(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function Jh({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Ym(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:fh(e.colors[t][n],.1),[`--mantine-color-${r}-light-hover`]:fh(e.colors[t][n],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:fh(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Ym(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:fh(e.colors[t][Math.max(0,a-2)],.15),[`--mantine-color-${r}-light-hover`]:fh(e.colors[t][Math.max(0,a-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(a-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:fh(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function Yh(e,t,n){_p(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var Xh=e=>{let t=Ym(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:W(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":gh(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":gh(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};Yh(r.variables,e.breakpoints,`breakpoint`),Yh(r.variables,e.spacing,`spacing`),Yh(r.variables,e.fontSizes,`font-size`),Yh(r.variables,e.lineHeights,`line-height`),Yh(r.variables,e.shadows,`shadow`),Yh(r.variables,e.radius,`radius`),Yh(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}
22),_p(e.colors).forEach(t=>{let n=e.colors[t];if(ch(n)){Object.assign(r.light,Jh({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,Jh({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0}));return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,Jh({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,Jh({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return _p(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function Zh(){let e=Vh(),t=Sh(),n=_p(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=Sp(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:Tp(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:Tp(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,U.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:n}})}function Qh({theme:e,generator:t}){let n=qh(e),r=t==null?void 0:t(e);return r?yp(n,r):n}var $h=qh(Nh);function eg(e){let t={variables:{},light:{},dark:{}};return _p(e.variables).forEach(n=>{$h.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),_p(e.light).forEach(n=>{$h.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),_p(e.dark).forEach(n=>{$h.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function tg(e){return Wh({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function ng({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=Vh(),r=Sh(),i=Qh({theme:n,generator:bh()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=Wh(a?eg(i):i,e);return o?(0,U.jsx)(`style`,{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${o}${a?``:tg(e)}`}}):null}ng.displayName=`@mantine/CssVariables`;function rg({respectReducedMotion:e,getRootElement:t}){Qp(()=>{var n;e&&((n=t())==null||n.setAttribute(`data-respect-reduced-motion`,`true`))},[e])}function ig({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=Jm(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=Ah({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return rg({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:d}),(0,U.jsx)(vh,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,U.jsxs)(Hh,{theme:e,children:[o&&(0,U.jsx)(ng,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,U.jsx)(Zh,{}),t]})})}ig.displayName=`@mantine/core/MantineProvider`;function ag(e,t,n){let r=Vh(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){var o;let t=(o=r.components[e])==null?void 0:o.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...Ep(n)}}function og(e){return e}function sg(...e){return e.reduce((e,t)=>yp(e,t),{})}function cg({classNames:e,styles:t,props:n,stylesCtx:r}){let i=Vh();return{resolvedClassNames:e===void 0?void 0:Gm({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:Km({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var lg={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function ug({theme:e,options:t,unstyled:n}){return Hm((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||lg[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function dg({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return Gm({theme:i,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:t})[e]}
22function fg({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return Gm({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function pg({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function mg({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function hg({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function gg({options:e,classes:t,selector:n,unstyled:r}){return e!=null&&e.variant&&!r?t[`${n}--${e.variant}`]:void 0}function _g({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return Hm(ug({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),gg({options:t,classes:s,selector:r,unstyled:c||m}),a[r],fg({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),dg({selector:r,stylesCtx:f,options:t,props:d,theme:e}),pg({rootSelector:u,selector:r,className:l}),mg({selector:r,classes:s,unstyled:c||m}),p&&!m&&hg({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function vg({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...vg({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function yg({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&Km({theme:e,styles:n==null?void 0:n.styles,props:(n==null?void 0:n.props)||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...vg({style:n==null?void 0:n.style,theme:e})}}function bg(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...Ep(t[n])}}),e),{})}function xg({props:e,stylesCtx:t,themeName:n,theme:r}){var i;let a=(i=Eh())==null?void 0:i();return{getTransformedStyles:i=>a?[...i.map(n=>a(n,{props:e,theme:r,ctx:t})),...n.map(n=>{var i;return a((i=r.components[n])==null?void 0:i.styles,{props:e,theme:r,ctx:t})})].filter(Boolean):[],withStylesTransform:!!a}}function Sg({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=Vh(),m=xh(),h=Ch(),g=wh(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=xg({props:n,stylesCtx:r,themeName:_,theme:p}),b=Gm({theme:p,classNames:c,props:n,stylesCtx:r}),x=_.map(e=>{var t;return Gm({theme:p,classNames:(t=p.components[e])==null?void 0:t.classNames,props:n,stylesCtx:r})}),S=v?{}:Km({theme:p,styles:l,props:n,stylesCtx:r}),C={};if(!v)for(let e of _){var w;let t=Km({theme:p,styles:(w=p.components[e])==null?void 0:w.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))C[e]={...C[e],...t[e]}}let T=bg([g?{}:d==null?void 0:d(p,n,r),..._.map(e=>{var t,i;return(t=p.components)==null||(t=t[e])==null||(i=t.vars)==null?void 0:i.call(t,p,n,r)}),u==null?void 0:u(p,n,r)]),E=vg({style:a,theme:p});return(e,a)=>({...f==null?void 0:f[e],className:_g({theme:p,options:a,themeName:_,selector:e,classNamesPrefix:m,resolvedClassNames:b,resolvedThemeClassNames:x,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([a==null?void 0:a.styles,l])}),style:yg({theme:p,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:v,resolvedStyles:S,resolvedThemeStyles:C,resolvedVars:T,resolvedRootStyle:E})})}function Cg(e){return _p(e).reduce((t,n)=>e[n]===void 0?t:`${t}${bp(n)}:${e[n]};`,``).trim()}function wg({selector:e,styles:t,media:n,container:r}){let i=t?Cg(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${Cg(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${Cg(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function Tg(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)&4294967295;return(t>>>0).toString(36)}function Eg({deduplicate:e,...t}){let n=Sh(),r=wg(t);return e?(0,U.jsx)(`style`,{href:`mantine-${Tg(r)}`,precedence:`mantine`,nonce:n==null?void 0:n(),children:r}):(0,U.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n==null?void 0:n(),dangerouslySetInnerHTML:{__html:r}}
22)}function Dg(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)&4294967295;return(t>>>0).toString(36)}function Og(e,t){return`__mdi__-${Dg(`${e?Cg(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${Cg(e.styles)}`).join(`|`):``}`)}`}function kg(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:b,pis:x,pie:S,bd:C,bdrs:w,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:M,lh:N,fs:P,tt:ee,td:F,w:I,miw:te,maw:L,h:ne,mih:R,mah:re,bgsz:z,bgp:ie,bgr:ae,bga:oe,pos:se,top:ce,left:le,bottom:ue,right:B,inset:de,display:fe,flex:pe,hiddenFrom:me,visibleFrom:he,lightHidden:ge,darkHidden:_e,sx:ve,...ye}=e;return{styleProps:Ep({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:x,pie:S,pe:y,ps:b,bd:C,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:M,lh:N,fs:P,tt:ee,td:F,w:I,miw:te,maw:L,h:ne,mih:R,mah:re,bgsz:z,bgp:ie,bgr:ae,bga:oe,pos:se,top:ce,left:le,bottom:ue,right:B,inset:de,display:fe,flex:pe,bdrs:w,hiddenFrom:me,visibleFrom:he,lightHidden:ge,darkHidden:_e,sx:ve}),rest:ye}}var Ag={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function jg(e,t){let n=ah({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function Mg(e,t){let n=ah({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:jg(e,t)}function Ng(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${W(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${jg(i.join(` `),t)}`),a.trim()}return e}var Pg={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function Fg(e){return typeof e==`string`&&e in Pg?Pg[e]:e}var Ig=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function Lg(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&Ig.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?W(e):e}function Rg(e){return e}var zg=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function Bg(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&zg.includes(e)?`var(--mantine-${e}-line-height)`:e}function Vg(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?W(e):e}function Hg(e){return typeof e==`number`?W(e):e}function Ug(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return W(e);
22let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var Wg={color:jg,textColor:Mg,fontSize:Lg,spacing:Ug,radius:Vg,identity:Rg,size:Hg,lineHeight:Bg,fontFamily:Fg,border:Ng};function Gg(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function Kg({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(Gg(e))-Number(Gg(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function qg(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function Jg(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function Yg(e){return typeof e==`object`&&e?_p(e).filter(e=>e!==`base`):[]}function Xg(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function Zg({styleProps:e,data:t,theme:n}){return Kg(_p(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=Jg(e[i]);if(!qg(e[i]))return o.forEach(e=>{r.inlineStyles[e]=Wg[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=Yg(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=Wg[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:Wg[a.type](Xg(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Qg(){return`__m__-${(0,g.useId)().replace(/[:«»]/g,``)}`}function $g(e){return e}var e_=$g;function t_(e){return e}function n_(e){let t=e;return t.extend=t_,t.withProps=e=>{let n=n=>(0,U.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function r_(e){return n_(e)}function i_(e){let t=e;return t.withProps=e=>{let n=n=>(0,U.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=t_,t}function a_(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function o_(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[a_(n)]=e[n]),t},{})}function s_(e){return e?typeof e==`string`?{[a_(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...s_(t)}),{}):o_(e):null}function c_(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...c_(n,t)}),{}):typeof e==`function`?e(t):e??{}}function l_({theme:e,style:t,vars:n,styleProps:r}){let i=c_(t,e),a=c_(n,e);return{...i,...a,...r}}function u_({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){var h,g;let _=Vh(),v=e||`div`,{styleProps:y,rest:b}=kg(m),x=(h=Th())==null||(g=h())==null?void 0:g.call(h,y.sx),S=Qg(),C=Zg({styleProps:y,theme:_,data:Ag}),w=Oh(),T=w&&C.hasResponsiveStyles?Og(C.styles,C.media):S,E={ref:p,style:l_({theme:_,style:t,vars:n,styleProps:C.inlineStyles}),className:Hm(r,x,{[T]:C.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":Dp(o)?void 0:o||void 0,size:f,...s_(a),...b};return(0,U.jsxs)(U.Fragment,{children:[C.hasResponsiveStyles&&(0,U.jsx)(Eg,{selector:`.${T}`,styles:C.styles,media:C.media,deduplicate:w}),typeof d==`function`?d(E):(0,U.jsx)(v,{...E})]})}u_.displayName=`@mantine/core/Box`;var d_=e_(u_),f_=(0,g.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function p_(){return(0,g.use)(f_)}var[m_,h_]=kp(`ScrollArea.Root component was not found in tree`);function g_(e,t){let n=(0,g.useEffectEvent)(t);Qp(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function __(e){let{style:t,...n}=e,r=h_(),[i,a]=(0,g.useState)(0),[o,s]=(0,g.useState)(0),c=!!(i&&o);return g_(r.scrollbarX,()=>{var e;let t=((e=r.scrollbarX)==null?void 0:e.offsetHeight)||0;r.onCornerHeightChange(t),s(t)}),g_(r.scrollbarY,()=>{var e;let t=((e=r.scrollbarY)==null?void 0:e.offsetWidth)||0;r.onCornerWidthChange(t),a(t)}),c?(0,U.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function v_(e){let t=h_(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,U.jsx)(__,{...e}):null}var y_={scrollHideDelay:1e3,type:`hover`};function b_(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=ag(`ScrollAreaRoot`,y_,e),[s,c]=(0,g.useState)(null),[l,u]=(0,g.useState)(null),[d,f]=(0,g.useState)(null),[p,m]=(0,g.useState)(null),[h,_]=(0,g.useState)(null),[v,y]=(0,g.useState)(0),[b,x]=(0,g.useState)(0),[S,C]=(0,g.useState)(!1),[w,T]=(0,g.useState)(!1),E=xm(a,c);return(0,U.jsx)(m_,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:h,onScrollbarYChange:_,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:y,onCornerHeight
22Change:x,getStyles:i},children:(0,U.jsx)(d_,{...o,ref:E,__vars:{"--sa-corner-width":r===`xy`?`${v}px`:`0px`,"--sa-corner-height":r===`xy`?`${b}px`:`0px`}})})}b_.displayName=`@mantine/core/ScrollAreaRoot`;function x_(e,t){let n=e/t;return Number.isNaN(n)?0:n}function S_(e){let t=x_(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function C_(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function w_(e,[t,n]){return Math.min(n,Math.max(t,e))}function T_(e,t,n=`ltr`){let r=S_(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=w_(e,n===`ltr`?[0,o]:[o*-1,0]);return C_([0,o],[0,s])(c)}function E_(e,t,n,r=`ltr`){let i=S_(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return C_([c,l],d)(e)}function D_(e,t){return e>0&&e<t}function O_(e){return e?parseInt(e,10):0}function k_(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e==null||e(r),(n===!1||!r.defaultPrevented)&&(t==null||t(r))}}var[A_,j_]=kp(`ScrollAreaScrollbar was not found in tree`);function M_(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=h_(),[p,m]=(0,g.useState)(null),h=xm(u,m),_=(0,g.useRef)(null),v=(0,g.useRef)(``),{viewport:y}=f,b=t.content-t.viewport,x=(0,g.useEffectEvent)(c),S=Kp(o),C=qp(l,10),w=e=>{if(_.current){let t=e.clientX-_.current.left,n=e.clientY-_.current.top;s({x:t,y:n})}};return(0,g.useEffect)(()=>{let e=e=>{let t=e.target;p!=null&&p.contains(t)&&x(e,b)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[y,p,b]),(0,g.useEffect)(S,[t,S]),g_(p,C),g_(f.content,C),(0,U.jsx)(A_,{value:{scrollbar:p,hasThumb:n,onThumbChange:Kp(r),onThumbPointerUp:Kp(i),onThumbPositionChange:S,onThumbPointerDown:Kp(a)},children:(0,U.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:k_(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),_.current=p.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,w(e))}),onPointerMove:k_(e.onPointerMove,w),onPointerUp:k_(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=v.current,_.current=null}})})}var N_=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=h_(),[s,c]=(0,g.useState)(),l=(0,g.useRef)(null),u=xm(i,l,o.onScrollbarXChange);return(0,g.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,U.jsx)(M_,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${S_(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),D_(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:O_(s.paddingLeft),paddingEnd:O_(s.paddingRight)}})}})};N_.displayName=`@mantine/core/ScrollAreaScrollbarX`;function P_(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=h_(),[s,c]=(0,g.useState)(),l=(0,g.useRef)(null),u=xm(i,l,o.onScrollbarYChange);return(0,g.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,U.jsx)(M_,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${S_(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),D_(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:O_(s.paddingTop),paddingEnd:O_(s.paddingBottom)}})}})}P_.displayName=`@mantine/core/ScrollAreaScrollbarY`;function F_(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=p_(),i=h_(),a=(0,g.useRef)(null),o=(0,g.useRef)(0),[s,c]=(0,g.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=x_(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>E_(e,o.current,s,t);return t===`horizontal`?(0,U.jsx)(N_,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=T_(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}}
22,onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,U.jsx)(P_,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=T_(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}F_.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function I_(e){let t=h_(),{forceMount:n,...r}=e,[i,a]=(0,g.useState)(!1),o=e.orientation===`horizontal`,s=qp(()=>{if(t.viewport){let e=t.viewport.offsetWidth<t.viewport.scrollWidth,n=t.viewport.offsetHeight<t.viewport.scrollHeight;a(o?e:n)}},10);return g_(t.viewport,s),g_(t.content,s),n||i?(0,U.jsx)(F_,{"data-state":i?`visible`:`hidden`,...r}):null}I_.displayName=`@mantine/core/ScrollAreaScrollbarAuto`;function L_(e){let{forceMount:t,...n}=e,r=h_(),[i,a]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,U.jsx)(I_,{"data-state":i?`visible`:`hidden`,...n}):null}L_.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function R_(e){let{forceMount:t,...n}=e,r=h_(),i=e.orientation===`horizontal`,[a,o]=(0,g.useState)(`hidden`),s=qp(()=>o(`idle`),100);return(0,g.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,g.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,U.jsx)(F_,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:k_(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:k_(e.onPointerLeave,()=>o(`idle`))}):null}function z_(e){let{forceMount:t,...n}=e,r=h_(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,g.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,U.jsx)(L_,{...n,forceMount:t}):r.type===`scroll`?(0,U.jsx)(R_,{...n,forceMount:t}):r.type===`auto`?(0,U.jsx)(I_,{...n,forceMount:t}):r.type===`always`?(0,U.jsx)(F_,{...n}):null}z_.displayName=`@mantine/core/ScrollAreaScrollbar`;function B_(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function V_(e){let{style:t,ref:n,...r}=e,i=h_(),a=j_(),{onThumbPositionChange:o}=a,s=xm(n,a.onThumbChange),c=(0,g.useRef)(void 0),l=qp(()=>{c.current&&(c.current(),c.current=void 0)},100);return(0,g.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=B_(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,U.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,he
22ight:`var(--sa-thumb-height)`,...t},onPointerDownCapture:k_(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:k_(e.onPointerUp,a.onThumbPointerUp)})}V_.displayName=`@mantine/core/ScrollAreaThumb`;function H_(e){let{forceMount:t,...n}=e,r=j_();return t||r.hasThumb?(0,U.jsx)(V_,{...n}):null}H_.displayName=`@mantine/core/ScrollAreaThumb`;function U_({children:e,style:t,ref:n,onWheel:r,...i}){let a=h_(),o=xm(n,a.onViewportChange),s=e=>{if(r==null||r(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,U.jsx)(d_,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,U.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}U_.displayName=`@mantine/core/ScrollAreaViewport`;var W_={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function G_(){return typeof window<`u`}function K_(e){return Y_(e)?(e.nodeName||``).toLowerCase():`#document`}function q_(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function J_(e){var t;return(t=(Y_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Y_(e){return G_()?e instanceof Node||e instanceof q_(e).Node:!1}function X_(e){return G_()?e instanceof Element||e instanceof q_(e).Element:!1}function Z_(e){return G_()?e instanceof HTMLElement||e instanceof q_(e).HTMLElement:!1}function Q_(e){return!G_()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof q_(e).ShadowRoot}function $_(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=uv(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ev(e){return/^(table|td|th)$/.test(K_(e))}function tv(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var nv=/transform|translate|scale|rotate|perspective|filter/,rv=/paint|layout|strict|content/,iv=e=>!!e&&e!==`none`,av;function ov(e){let t=X_(e)?uv(e):e;return iv(t.transform)||iv(t.translate)||iv(t.scale)||iv(t.rotate)||iv(t.perspective)||!cv()&&(iv(t.backdropFilter)||iv(t.filter))||nv.test(t.willChange||``)||rv.test(t.contain||``)}function sv(e){let t=fv(e);for(;Z_(t)&&!lv(t);){if(ov(t))return t;if(tv(t))return null;t=fv(t)}return null}function cv(){return av??(av=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`)),av}function lv(e){return/^(html|body|#document)$/.test(K_(e))}function uv(e){return q_(e).getComputedStyle(e)}function dv(e){return X_(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fv(e){if(K_(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Q_(e)&&e.host||J_(e);return Q_(t)?t.host:t}function pv(e){let t=fv(e);return lv(t)?(e.ownerDocument||e).body:Z_(t)&&$_(t)?t:pv(t)}function mv(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let i=pv(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=q_(i);if(a){let e=hv(o);return t.concat(o,o.visualViewport||[],$_(i)?i:[],e&&n?mv(e):[])}return t.concat(i,mv(i,[],n))}function hv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var gv=[`top`,`right`,`bottom`,`left`],_v=Math.min,vv=Math.max,yv=Math.round,bv=Math.floor,xv=e=>({x:e,y:e}),Sv={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Cv(e,t,n){return vv(e,_v(t,n))}function wv(e,t){return typeof e==`function`?e(t):e}function Tv(e){return e.split(`-`)[0]}function Ev(e){return e.split(`-`)[1]}function Dv(e){return e===`x`?`y`:`x`}function Ov(e){return e===`y`?`height`:`width`}function kv(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Av(e){return Dv(kv(e))}function jv(e,t,n){n===void 0&&(n=!1);
22let r=Ev(e),i=Av(e),a=Ov(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Bv(o)),[o,Bv(o)]}function Mv(e){let t=Bv(e);return[Nv(e),t,Nv(t)]}function Nv(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Pv=[`left`,`right`],Fv=[`right`,`left`],Iv=[`top`,`bottom`],Lv=[`bottom`,`top`];function Rv(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Fv:Pv:t?Pv:Fv;case`left`:case`right`:return t?Iv:Lv;default:return[]}}function zv(e,t,n,r){let i=Ev(e),a=Rv(Tv(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Nv)))),a}function Bv(e){let t=Tv(e);return Sv[t]+e.slice(t.length)}function Vv(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Hv(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Vv(e)}function Uv(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var Wv=typeof document<`u`?g.useLayoutEffect:function(){},Gv={...g}.useInsertionEffect||(e=>e());function Kv(e){let t=g.useRef(()=>{});return Gv(()=>{t.current=e}),g.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function qv(e,t,n){let{reference:r,floating:i}=e,a=kv(t),o=Av(t),s=Ov(o),c=Tv(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Ev(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Jv(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=wv(t,e),p=Hv(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Uv(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Uv(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Yv=50,Xv=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Jv},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=qv(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Yv&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=qv(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Zv=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=wv(e,t)||{};if(l==null)return{};let d=Hv(u),f={x:n,y:r},p=Av(i),m=Ov(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=_v(d[_],T),D=_v(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Cv(E,k,O),j=!c.arrow&&Ev(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Qv=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n,r;let{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p=`bestFit`,fallbackAxisSideDirection:m=`none`,flipAlignment:h=!0,...g}=wv(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};let _=Tv(i),v=kv(s),y=Tv(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=f||(y||!h?[Bv(s)]:Mv(s)),S=m!==`
22none`;!f&&S&&x.push(...zv(s,h,m,b));let C=[s,...x],w=await c.detectOverflow(t,g),T=[],E=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&T.push(w[_]),d){let e=jv(i,o,b);T.push(w[e[0]],w[e[1]])}if(E=[...E,{placement:i,overflows:T}],!T.every(e=>e<=0)){var D,O;let e=(((D=a.flip)==null?void 0:D.index)||0)+1,t=C[e];if(t&&(d!==`alignment`||v===kv(t)||E.every(e=>kv(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])==null?void 0:O.placement;if(!n)switch(p){case`bestFit`:{var k;let e=(k=E.filter(e=>{if(S){let t=kv(e.placement);return t===v||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])==null?void 0:k[0];e&&(n=e);break}case`initialPlacement`:n=s}if(i!==n)return{reset:{placement:n}}}return{}}}};function $v(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ey(e){return gv.some(t=>e[t]>=0)}var ty=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=wv(e,t);switch(i){case`referenceHidden`:{let e=$v(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ey(e)}}}case`escaped`:{let e=$v(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ey(e)}}}default:return{}}}}};function ny(e){let t=_v(...e.map(e=>e.left)),n=_v(...e.map(e=>e.top)),r=vv(...e.map(e=>e.right)),i=vv(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function ry(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>Uv(ny(e)))}var iy=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=wv(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=ry(u),f=Uv(ny(u)),p=Hv(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(kv(n)===`y`){let e=d[0],t=d[d.length-1],r=Tv(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return Uv({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=Tv(n)===`left`,t=vv(...d.map(e=>e.right)),r=_v(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return Uv({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},ay=new Set([`left`,`top`]);async function oy(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Tv(n),s=Ev(n),c=kv(n)===`y`,l=ay.has(o)?-1:1,u=a&&c?-1:1,d=wv(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var sy=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,c=await oy(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},cy=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=wv(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=kv(i),p=Dv(f),m=u[p],h=u[f],g=(e,t)=>Cv(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},ly=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=wv(e,t),u={x:n,y:r},d=kv(i),f=Dv(d),p=u[f],m=u[d],h=wv(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var _,v;let e=f===`y`?`width`:`height`,t=ay.has(Tv(i)),n=a.reference[d]-a.floating[e]+(t&&((_=o.offset)==null?void 0:_[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:((v=o.offset)==null?void 0:v[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},uy=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=wv(e,t),c=await i.detectOverflow(t,s),l=Tv(n),u=Ev(n),d=kv(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=_v(p-c[m],g),y=_v(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*vv(c.left,c.right):S=p-2*vv(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function dy(e){let t=uv(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Z_(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=yv(n)!==a||yv(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function fy(e){return X_(e)?e:e.contextElement}function py(e){let t=fy(e);
vendor: 4,276 bytes, line 22
22if(!Z_(t))return xv(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=dy(t),o=(a?yv(n.width):n.width)/r,s=(a?yv(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var my=xv(0);function hy(e){let t=q_(e);return!cv()||!t.visualViewport?my:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gy(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===q_(e)}function _y(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=fy(e),o=xv(1);t&&(r?X_(r)&&(o=py(r)):o=py(e));let s=gy(a,n,r)?hy(a):xv(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=q_(a),t=X_(r)?q_(r):r,n=e,i=hv(n);for(;i&&t!==n;){let e=py(i),t=i.getBoundingClientRect(),r=uv(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=q_(i),i=hv(n)}}return Uv({width:u,height:d,x:c,y:l})}function vy(e,t){let n=dv(e).scrollLeft;return t?t.left+n:_y(J_(e)).left+n}function yy(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-vy(e,n),y:n.top+t.scrollTop}}function by(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=J_(r),s=t?tv(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=xv(1),u=xv(0),d=Z_(r);if((d||!a)&&((K_(r)!==`body`||$_(o))&&(c=dv(r)),d)){let e=_y(r);l=py(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?yy(o,c):xv(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function xy(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Sy(e){let t=dv(e),n=e.ownerDocument.body,r=vv(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=vv(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+vy(e),o=-t.scrollTop;return uv(n).direction===`rtl`&&(a+=vv(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Cy=25;function wy(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=q_(e),a=J_(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!cv()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(vy(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Cy&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Ty(e,t){let n=_y(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=py(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ey(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=wy(e,n,t);else if(t===`document`)r=Sy(J_(e));else if(X_(t))r=Ty(t,n);else{let n=hy(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Uv(r)}function Dy(e,t){let n=t.get(e);if(n)return n;let r=mv(e,[],!1).filter(e=>X_(e)&&K_(e)!==`body`),i=null,a=uv(e).position===`fixed`,o=a?fv(e):e;for(;X_(o)&&!lv(o);){let e=uv(o),t=ov(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=fv(o)}return t.set(e,r),r}function Oy(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?tv(t)?[]:Dy(t,this._c):[].concat(n),r],o=Ey(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ey(t,a[e],i);s=vv(n.top,s),c=_v(n.right,c),l=_v(n.bottom,l),u=vv(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function ky(e){let{width:t,height:n}=dy(e);return{width:t,height:n}}function Ay(e,t,n){let r=Z_(t),i=J_(t),a=n===`fixed`,o=_y(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=xv(0);if((r||!a)&&((K_(t)!==`body`||$_(i))&&(s=dv(t)),r)){let e=_y(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=vy(i));let l=i&&!r&&!a?yy(i,s):xv(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function jy(e){return uv(e).position===`static`}function My(e,t){if(!Z_(e)||uv(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return J_(e)===n&&(n=n.ownerDocument.body),n}function Ny(e,t){let n=q_(e);
22if(tv(e))return n;if(!Z_(e)){let t=fv(e);for(;t&&!lv(t);){if(X_(t)&&!jy(t))return t;t=fv(t)}return n}let r=My(e,t);for(;r&&ev(r)&&jy(r);)r=My(r,t);return r&&lv(r)&&jy(r)&&!ov(r)?n:r||sv(e)||n}var Py=async function(e){let t=this.getOffsetParent||Ny,n=this.getDimensions,r=await n(e.floating);return{reference:Ay(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fy(e){return uv(e).direction===`rtl`}var Iy={convertOffsetParentRelativeRectToViewportRelativeRect:by,getDocumentElement:J_,getClippingRect:Oy,getOffsetParent:Ny,getElementRects:Py,getClientRects:xy,getDimensions:ky,getScale:py,isElement:X_,isRTL:Fy};function Ly(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ry(e,t,n){let r=null,i,a=J_(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=bv(d),h=bv(a.clientWidth-(u+f)),g=bv(a.clientHeight-(d+p)),_=bv(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:vv(0,_v(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Ly(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=q_(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function zy(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=fy(e),u=i||a?[...l?mv(l):[],...t?mv(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ry(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?_y(e):null;c&&g();function g(){let t=_y(e);h&&!Ly(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d==null||d(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var By=sy,Vy=cy,Hy=Qv,Uy=uy,Wy=ty,Gy=Zv,Ky=iy,qy=ly,Jy=(e,t,n)=>{let r=new Map,i=n??{},a={...Iy,...i.platform,_c:r};return Xv(e,t,{...i,platform:a})},Yy=typeof document<`u`?g.useLayoutEffect:function(){};function Xy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Xy(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Xy(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Zy(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qy(e,t){let n=Zy(e);return Math.round(t*n)/n}function $y(e){let t=g.useRef(e);return Yy(()=>{t.current=e}),t}function eb(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);Xy(f,r)||p(r);let[m,h]=g.useState(null),[_,v]=g.useState(null),y=g.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=g.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||m,S=o||_,C=g.useRef(null),w=g.useRef(null),T=g.useRef(u),E=c!=null,D=$y(c),O=$y(i),k=$y(l),A=g.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Jy(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Xy(T.current,t)&&(T.current=t,ne.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Yy(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=g.useRef(!1);Yy(()=>(j.current=!0,()=>{j.current=!1}),[]),Yy(()=>
22{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=g.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=g.useMemo(()=>({reference:x,floating:S}),[x,S]),P=g.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Qy(N.floating,u.x),r=Qy(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Zy(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var tb=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Gy({element:r.current,padding:i}).fn(n):r?Gy({element:r,padding:i}).fn(n):{}}}},nb=(e,t)=>{let n=By(e);return{name:n.name,fn:n.fn,options:[e,t]}},rb=(e,t)=>{let n=Vy(e);return{name:n.name,fn:n.fn,options:[e,t]}},ib=(e,t)=>({fn:qy(e).fn,options:[e,t]}),ab=(e,t)=>{let n=Hy(e);return{name:n.name,fn:n.fn,options:[e,t]}},ob=(e,t)=>{let n=Uy(e);return{name:n.name,fn:n.fn,options:[e,t]}},sb=(e,t)=>{let n=Wy(e);return{name:n.name,fn:n.fn,options:[e,t]}},cb=(e,t)=>{let n=Ky(e);return{name:n.name,fn:n.fn,options:[e,t]}},lb=(e,t)=>{let n=tb(e);return{name:n.name,fn:n.fn,options:[e,t]}};function ub(e){let t=g.useRef(void 0),n=g.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e==null?void 0:e())}},e);return g.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&(t.current(),t.current=void 0),e!=null&&(t.current=n(e))},e)}var db=`ArrowLeft`,fb=`ArrowRight`,pb=`ArrowUp`,mb=`ArrowDown`,hb=[db,fb],gb=[pb,mb];[...hb,...gb];var _b={...g},vb=!1,yb=0,bb=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+yb++;function xb(){let[e,t]=g.useState(()=>vb?bb():void 0);return Wv(()=>{e??t(bb())},[]),g.useEffect(()=>{vb=!0},[]),e}var Sb=_b.useId||xb;function Cb(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var wb=g.createContext(null),Tb=g.createContext(null),Eb=()=>{var e;return((e=g.useContext(wb))==null?void 0:e.id)||null},Db=()=>g.useContext(Tb);function Ob(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=Sb(),a=g.useRef({}),[o]=g.useState(()=>Cb()),s=Eb()!=null,[c,l]=g.useState(r.reference),u=Kv((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n==null||n(e,t,r)}),d=g.useMemo(()=>({setPositionReference:l}),[]),f=g.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return g.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function kb(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=Ob({...n,elements:{reference:(t==null?void 0:t.reference)??null,floating:(t==null?void 0:t.floating)??null}}),a=n.rootContext||i,o=a.elements,[s,c]=g.useState(null),[l,u]=g.useState(null),d=(o==null?void 0:o.domReference)||s,f=g.useRef(null),p=Db();Wv(()=>{d&&(f.current=d)},[d]);let m=eb({...n,elements:{...o,...l&&{reference:l}}}),h=g.useCallback(e=>{let t=X_(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),_=g.useCallback(e=>{(X_(e)||e===null)&&(f.current=e,c(e)),(X_(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!X_(e))&&m.refs.setReference(e)},[m.refs]),v=g.useMemo(()=>({...m.refs,setReference:_,setPositionReference:h,domReference:f}),[m.refs,_,h]),y=g.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),b=g.useMemo(()=>({...m,...a,refs:v,elements:y,nodeId:r}),[m,v,y,r,a]);return Wv(()=>{a.dataRef.current.floatingContext=b;let e=p==null?void 0:p.nodesRef.current.find(e=>e.id===r);e&&(e.context=b)}),g.useMemo(()=>({...m,context:b,refs:v,elements:y}),[m,v,y,b])}var Ab={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},jb=Bm((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":W(t),"--scrollarea-over-scroll-behavior":i}}}),Mb=n_(e=>{let t=ag(`ScrollArea`,Ab,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:_,onBottomReached:v,onTopReached:y,onLeftReached:b,onRightReached:x,overscrollBehavior:S,startScrollPosition:C,verticalScrollbarPosition:w,attributes:T,...E}=t,[D,O]=(0,g.useState)(!1),[k,A]=(0,g.useState)(!1),[j,M]=(0,g.useState)(!1),N=(0,g.useRef)(!0),P=(0,g.useRef)(!1),ee=(0,g.useRef)(!0),F=(0,g.useRef)(!1),I=Sg({name:`ScrollArea`,props:t,classes:W_,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:c,varsResolver:jb}),te=(0,g.useRef)(null),[L,ne]=(0,g.useState)(null),R=ub([f,te,(0,g.useCallback)(e=>{ne(t=>t===e?t:e)},[])]);return g_(h===`present`?L:null,()=>{let e=te.current;e&&(A(e.scrollHeight>e.clientHeight),M(e.scrollWidth>e.clientWidth))}),Qp(()=>{C&&te.current&&te.current.scrollTo({left:C.x??0,top:C.y??0})},[]),(0,U.jsxs)(b_,{getStyles:I,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:_,...I(`root`),...E,children:[(0,U.jsx)(U_,{...d,...I(`viewport`,{style:d==null?void 0:d.style}),ref:R,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":_||void 0,"data-vertical-scrollbar-position":w||void 0,"data-horizontal-hidden":h===`present`&&!j?`true`:void 0,"data-vertical-hidden":h===`present`&&!k?`true`:void 0,onScroll:e=>{var t;d==null||(t=d.onScroll)==null||t.call(d,e),p==null||p({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:n,scrollHeight:r,clientHeight:i,scrollLeft:a,scrollWidth:o,clientWidth:s}=e.currentTarget,c=n-(r-i)>=-.8,l=n===0;c&&!P.current&&(v==null||v()),l&&!N.current&&(y==null||y()),P.current=c,N.current=l;let u=a-(o-s)>=-.8,f=a===0;u&&!F.current&&(x==null||x()),f&&!ee.current&&(b==null||b()),F.current=u,ee.current=f},children:m}),(_===`xy`||_===`x`)&&(0,U.jsx)(z_,{...I(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":w||void 0,"data-hidden":l===`never`||h===`present`&&!j||void 0,forceMount:!0,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:(0,U.jsx)(H_,{...I(`thumb`)})}),(_===`xy`||_===`y`)&&(0,U.jsx)(z_,{...I(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":w||void 0,"data-hidden":l===`never`||h===`present`&&!k||void 0,forceMount:!0,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:(0,U.jsx)(H_,{...I(`thumb`)})}),(0,U.jsx)(v_,{...I(`corner`),"data-vertical-scrollbar-position":w||void 0,"data-hovered":D||void 0,"data-hidden":l===`never`||void 0})]})});Mb.displayName=`@mantine/core/ScrollArea`;var Nb=n_(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:_,vars:v,onBottomReached:y,onTopReached:b,startScrollPosition:x,verticalScrollbarPosition:S,onOverflowChange:C,...w}=ag(`ScrollAreaAutosize`,Ab,e),T=(0,g.useRef)(null),[E,D]=(0,g.useState)(null),O=ub([u,T,(0,g.useCallback)(e=>{D(t=>t===e?t:e)},[])]),k=(0,g.useRef)(!1),A=(0,g.useRef)(!1),j=(0,g.useEffectEvent)(()=>{let e=T.current;if(!e||!C)return;let t=e.scrollHeight>e.clientHeight;t!==k.current&&(A.current?C(t):(A.current=!0,t&&C(!0)),k.current=t)});return g_(C?E:null,j),(0,U.jsx)(d_,{...w,variant:p,style:[{display:`flex`,overflow:`hidden`},_],children:(0,U.jsx)(d_,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,U.jsx)(Mb,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:O,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:v,scrollbars:h,onBottomReached:y,onTopReached:b,startScrollPosition:x,verticalScrollbarPosition:S,"data-autosize":`true`,children:t})})})});Mb.classes=W_,Mb.varsResolver=jb,Nb.displayName=`@mantine/core/ScrollAreaAutosize`,Nb.classes=W_,Mb.Autosize=Nb;var Pb={root:`m_87cf2631`},Fb={__staticSelector:`UnstyledButton`},Ib=i_(e=>{let t=ag(`UnstyledButton`,Fb,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t,d=Sg({name:i,props:t,classes:Pb,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l});return(0,U.jsx)(d_,{...d(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});Ib.classes=Pb,Ib.displayName=`@mantine/core/UnstyledButton`;var Lb={root:`m_515a97f8`},Rb=n_(e=>{let t=ag(`VisuallyHidden`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,...l}=t,u=Sg({name:`VisuallyHidden`,classes:Lb,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c});return(0,U.jsx)(d_,{component:`span`,...u(`root`),...l})});Rb.classes=Lb,Rb.displayName=`@mantine/core/VisuallyHidden`;var zb={root:`m_1b7284a3`}
22,Bb=Bm((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:Ip(t),"--paper-shadow":zp(n)}})),Vb=i_(e=>{let t=ag(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=Sg({name:`Paper`,props:t,classes:zb,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:Bb});return(0,U.jsx)(d_,{mod:[{withBorder:s},f],...h(`root`),variant:d,...m})});Vb.classes=zb,Vb.varsResolver=Bb,Vb.displayName=`@mantine/core/Paper`;function Hb(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function Ub(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var Wb={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function Gb({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function Kb({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=Gb({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[Wb[c]]:r},d=-t/2;return c===`left`?{...u,...Hb(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...Hb(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...Ub(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...Ub(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function qb({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function Jb({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=p_();return a?(0,U.jsx)(`div`,{role:`presentation`,...l,style:{...c,...Kb({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}Jb.displayName=`@mantine/core/FloatingArrow`;function Yb(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}var Xb={root:`m_9814e45f`},Zb={zIndex:jp(`modal`)},Qb=Bm((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&dh(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${W(i)})`:void 0,"--overlay-radius":a===void 0?void 0:Ip(a),"--overlay-z-index":o==null?void 0:o.toString()}})),$b=i_(e=>{let t=ag(`Overlay`,Zb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fixed:c,center:l,children:u,radiu
22s:d,zIndex:f,gradient:p,blur:m,color:h,backgroundOpacity:g,mod:_,attributes:v,...y}=t,b=Sg({name:`Overlay`,props:t,classes:Xb,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Qb});return(0,U.jsx)(d_,{...b(`root`),mod:[{center:l,fixed:c},_],...y,children:u})});$b.classes=Xb,$b.varsResolver=Qb,$b.displayName=`@mantine/core/Overlay`;function ex(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}function tx({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||ex(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=ex(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return ex(n)}var nx={reuseTargetNode:!0},rx=n_(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=ag(`Portal`,nx,e),[o,s]=(0,g.useState)(!1),c=(0,g.useRef)(null);return Qp(()=>(s(!0),c.current=tx({target:n,reuseTargetNode:r,...a}),ym(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,ne.createPortal)((0,U.jsx)(U.Fragment,{children:t}),c.current)});rx.displayName=`@mantine/core/Portal`;var ix=n_(({withinPortal:e=!0,children:t,...n})=>Dh()===`test`||!e?(0,U.jsx)(U.Fragment,{children:t}):(0,U.jsx)(rx,{...n,children:t}));ix.displayName=`@mantine/core/OptionalPortal`;var ax=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),ox={fade:{in:{opacity:1},out:{opacity:0}
22,transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`}
22,common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...ax(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...ax(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...ax(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...ax(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...ax(`top`),common:{transformOrigin:`top right`}}},sx={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function cx({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in ox?{transitionProperty:ox[e].transitionProperty,...i,...ox[e].common,...ox[e][sx[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[sx[t]]}}function lx({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=Vh(),d=wm(),f=u.respectReducedMotion?d:!1,[p,m]=(0,g.useState)(f?0:e),[h,_]=(0,g.useState)(r?`entered`:`exited`),v=(0,g.useRef)(-1),y=(0,g.useRef)(-1),b=(0,g.useRef)(-1);function x(){window.clearTimeout(v.current),window.clearTimeout(y.current),cancelAnimationFrame(b.current)}let S=n=>{x();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;m(l),l===0?(typeof r==`function`&&r(),typeof c==`function`&&c(),_(n?`entered`:`exited`)):b.current=requestAnimationFrame(()=>{ne.flushSync(()=>{_(n?`pre-entering`:`pre-exiting`)}),b.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),_(n?`entering`:`exiting`),v.current=window.setTimeout(()=>{typeof c==`function`&&c(),_(n?`entered`:`exited`)},l)})})},C=e=>{if(x(),typeof(e?c:l)!=`number`){S(e);return}y.current=window.setTimeout(()=>{S(e)},e?c:l)};return $p(()=>{C(r)},[r]),(0,g.useEffect)(()=>()=>{x()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function ux({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=Dh(),{transitionDuration:h,transitionStatus:_,transitionTimingFunction:v}=lx({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,U.jsx)(U.Fragment,{children:o({})}):e?o({display:`none`}):null;if(h===0)return e?t===`display-none`?a?(0,U.jsx)(U.Fragment,{children:o({})}):o({display:`none`}):(0,U.jsx)(g.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,U.jsx)(U.Fragment,{children:o({})}):null;let y=_===`exited`;if(e){let e=o(y?t===`display-none`?{display:`none`}:{}:cx({transition:n,duration:h,state:_,timingFunction:v}));return t===`display-none`?e:(0,U.jsx)(g.Activity,{mode:y?`hidden`:`visible`,children:e})}return y?null:(0,U.jsx)(U.Fragment,{children:o(cx({transition:n,duration:h,state:_,timingFunction:v}))})}ux.displayName=`@mantine/core/Transition`;var[dx,fx]=kp(`Popover component was not found in the tree`);function px({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:i,open:a}){let o=(0,g.useRef)(!1),s=(0,g.useRef)(!1),c=(0,g.useRef)(null),l=(0,g.useRef)(t);l.current=t;
22let u=(e,t,n)=>{i({getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t,toJSON:()=>void 0}),contextElement:n}),a()},d=Bp(e.onMouseDown,e=>{t||e.button===2&&e.stopPropagation()}),f=Bp(e.onContextMenu,e=>{t||e.defaultPrevented||(e.preventDefault(),!s.current&&(u(e.clientX,e.clientY,e.currentTarget),o.current&&(s.current=!0)))}),p=km(e=>{if(l.current||s.current)return;let t=e,n=t.touches[0]??t.changedTouches[0];n&&(u(n.clientX,n.clientY,c.current),s.current=!0)},{threshold:r,events:[`touch`],cancelOnMove:!0,onStart:e=>{o.current=!0,s.current=!1,c.current=e.currentTarget},onFinish:e=>{o.current=!1,s.current=!1,l.current||e.preventDefault()},onCancel:()=>{o.current=!1,s.current=!1}});return{onContextMenu:f,onMouseDown:d,onTouchStart:Bp(e.onTouchStart,p.onTouchStart),onTouchEnd:Bp(e.onTouchEnd,p.onTouchEnd),onTouchCancel:Bp(e.onTouchCancel,p.onTouchCancel),onTouchMove:Bp(e.onTouchMove,p.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`},"data-expanded":n?!0:void 0}}function mx(e){let{children:t,disabled:n,longPressDelay:r}=ag(`PopoverContextMenu`,null,e),i=zm(t);if(!i)throw Error(`Popover.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=fx(),o=px({childProps:i.props,disabled:n||a.disabled,opened:a.opened,longPressDelay:r,setReference:a.reference,open:()=>{a.opened||a.onToggle()}});return(0,g.cloneElement)(i,o)}mx.displayName=`@mantine/core/PopoverContextMenu`;function hx({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=xm(um(t),r),a=zm(e);return a?(0,g.cloneElement)(a,{[n]:i}):e}function gx(e){return(0,U.jsx)(Rb,{tabIndex:-1,"data-autofocus":!0,...e})}hx.displayName=`@mantine/core/FocusTrap`,gx.displayName=`@mantine/core/FocusTrapInitialFocus`,hx.InitialFocus=gx;var _x={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`},vx=n_(e=>{var t,n,r,i;let a=ag(`PopoverDropdown`,null,e),{className:o,style:s,vars:c,children:l,onKeyDownCapture:u,variant:d,classNames:f,styles:p,ref:m,...h}=a,g=fx(),{dir:_}=p_(),v=g.arrowPosition===`merge`&&g.withArrow?qb({position:g.placement,dir:_}):void 0,y=em({opened:g.opened,shouldReturnFocus:g.returnFocus}),b=g.withRoles?{"aria-labelledby":g.getTargetId(),id:g.getDropdownId(),role:`dialog`,tabIndex:-1}:{},x=xm(m,g.floating);return g.disabled?null:(0,U.jsx)(ix,{...g.portalProps,withinPortal:g.withinPortal,children:(0,U.jsx)(ux,{mounted:g.opened,...g.transitionProps,transition:((t=g.transitionProps)==null?void 0:t.transition)||`fade`,duration:((n=g.transitionProps)==null?void 0:n.duration)??150,keepMounted:g.keepMounted,keepMountedMode:g.keepMountedMode,exitDuration:typeof((r=g.transitionProps)==null?void 0:r.exitDuration)==`number`?g.transitionProps.exitDuration:(i=g.transitionProps)==null?void 0:i.duration,children:e=>{var t;return(0,U.jsx)(hx,{active:g.trapFocus&&g.opened,innerRef:x,children:(0,U.jsxs)(d_,{...b,...h,variant:d,onKeyDownCapture:Np(()=>{var e,t;(e=g.onClose)==null||e.call(g),(t=g.onDismiss)==null||t.call(g)},{active:g.closeOnEscape,onTrigger:y,onKeyDown:u}),"data-position":g.placement,"data-fixed":g.floatingStrategy===`fixed`||void 0,...g.getStyles(`dropdown`,{className:o,props:a,classNames:f,styles:p,style:[{...e,...v,zIndex:g.zIndex,top:g.y??0,left:g.x??0,width:g.width===`target`?void 0:W(g.width),...g.referenceHidden?{display:`none`}:null},(t=g.resolvedStyles)==null?void 0:t.dropdown,p==null?void 0:p.dropdown,s]}),children:[l,(0,U.jsx)(Jb,{ref:g.arrowRef,arrowX:g.arrowX,arrowY:g.arrowY,visible:g.withArrow,position:g.placement,arrowSize:g.arrowSize,arrowRadius:g.arrowRadius,arrowOffset:g.arrowOffset,arrowPosition:g.arrowPosition,...g.getStyles(`arrow`,{props:a,classNames:f,styles:p})})]})})}})})});vx.classes=_x,vx.displayName=`@mantine/core/PopoverDropdown`;var yx={refProp:`ref`,popupType:`dialog`},bx=n_(e=>{let{children:t,refProp:n,popupType:r,ref:i,...a}=ag(`PopoverTarget`,yx,e),o=zm(t);if(!o)throw Error(`Popover.Target component children should be an element or a component that accepts ref. Fragments, str
22ings, numbers and other primitive values are not supported`);let s=a,c=fx(),l=xm(c.reference,Fm(o),i),u=c.withRoles?{"aria-haspopup":r,"aria-expanded":c.opened,"aria-controls":c.opened?c.getDropdownId():void 0,id:c.getTargetId()}:{},d=o.props;return(0,g.cloneElement)(o,{...s,...u,...c.targetProps,className:Hm(c.targetProps.className,s.className,d.className),[n]:l,...c.controlled?null:{onClick:e=>{var t;c.onToggle(),(t=d.onClick)==null||t.call(d,e)}}})});bx.displayName=`@mantine/core/PopoverTarget`;function xx(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function Sx(e,t,n,r){let i=xx(e.middlewares),a=[nb(e.offset),sb()];if(i.flip&&!n){let e=typeof i.flip==`boolean`?{}:i.flip,t=r?{fallbackStrategy:`initialPlacement`,...e}:e;a.push(ab(t))}if(i.shift){let t=typeof i.shift==`boolean`?{}:i.shift;a.push(rb(n=>{let r=n.placement.startsWith(`top`)||n.placement.startsWith(`bottom`);return{limiter:ib(),padding:5,...e.width===`target`&&r?{mainAxis:!1}:null,...t}}))}return i.inline&&a.push(typeof i.inline==`boolean`?cb():cb(i.inline)),a.push(lb({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width===`target`)&&a.push(ob({...typeof i.size==`boolean`?{}:i.size,apply({rects:n,availableWidth:r,availableHeight:a,...o}){var s;let c=((s=t().refs.floating.current)==null?void 0:s.style)??{};i.size&&(typeof i.size==`object`&&i.size.apply?i.size.apply({rects:n,availableWidth:r,availableHeight:a,...o}):Object.assign(c,{maxWidth:`${r}px`,maxHeight:`${a}px`})),e.width===`target`&&Object.assign(c,{width:`${n.reference.width}px`})}})),a}function Cx(e){let[t,n]=Cm({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,g.useRef)(t),[i,a]=(0,g.useState)(null),o=e.preventPositionChangeWhenVisible!==!1,s=(0,g.useRef)(t);t!==s.current&&(s.current=t,t&&i!==null&&a(null));let c=(0,g.useCallback)(()=>a(null),[]),l=()=>{t&&!e.disabled&&n(!1)},u=()=>{e.disabled||n(!t)},d=kb({open:t,strategy:e.strategy,placement:o?i??e.position:e.position,middleware:Sx(e,()=>d,o&&i!==null,o),whileElementsMounted:e.keepMounted?void 0:zy});(0,g.useEffect)(()=>{if(!e.keepMounted)return;let n=d.refs.reference.current,r=d.refs.floating.current;if(t&&n&&r)return zy(n,r,d.update)},[e.keepMounted,t,d.update,d.elements.reference,d.elements.floating]);let f=(0,g.useRef)(!1);Qp(()=>{if(!t){f.current=!1;return}if(!o||i!==null)return;let e=d.refs.floating.current;if(!(!e||e.offsetHeight===0||e.offsetWidth===0)){if(!f.current){f.current=!0,d.update();return}d.isPositioned&&a(d.placement)}},[o,t,d.isPositioned,d.placement,i,d.update]);let p=(0,g.useRef)(d.placement);return Qp(()=>{if(p.current!==d.placement){var t;p.current=d.placement,(t=e.onPositionChange)==null||t.call(e,d.placement)}},[d.placement]),$p(()=>{if(t!==r.current){var n,i;t?(i=e.onOpen)==null||i.call(e):(n=e.onClose)==null||n.call(e)}r.current=t},[t,e.onClose,e.onOpen]),{floating:d,controlled:typeof e.opened==`boolean`,opened:t,onClose:l,onToggle:u,resetLockedPlacement:c}}var wx={position:`bottom`,offset:8,transitionProps:{transition:`fade`,duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,preventPositionChangeWhenVisible:!0,clickOutsideEvents:[`mousedown`,`touchstart`],zIndex:jp(`popover`),__staticSelector:`Popover`,width:`max-content`},Tx=Bm((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:Ip(t),"--popover-shadow":zp(n)}}));function Ex(e){var t,n,r;let i=ag(`Popover`,wx,e),{children:a,position:o,offset:s,onPositionChange:c,opened:l,transitionProps:u,onExitTransitionEnd:d,onEnterTransitionEnd:f,width:p,middlewares:m,withArrow:h,arrowSize:_,arrowOffset:v,arrowRadius:y,arrowPosition:b,unstyled:x,classNames:S,styles:C,closeOnClickOutside:w,withinPortal:T,portalProps:E,closeOnEscape:D,clickOutsideEvents:O,trapFocus:k,onClose:A,onDismiss:j,onOpen:M,onChange:N,zIndex:P,radius:ee,shadow:F,id:I,defaultOpened:te,__staticSelector:L,withRoles:ne,disabled:R,returnFocus:re,variant:z,keepMounted:ie,keepMountedMode:ae,vars:oe,floatingStrategy:se,withOverlay:ce,overlayProps:le,hideDetached:ue,attributes:B,preventPositionChangeWhenVisible:de,...fe}=i,pe=Sg({name:L,props:i,classes:_x,classNames:S,styles:C,unstyled:x,attributes:B,rootSelector:`dropdown`,vars:oe,varsResolver:Tx}),{resolvedStyles:me}=cg({classNames:S,styles:C,props:i}),he=(0,g.useRef)(null),[ge,_e]=(0,g.useState)(null),[ve,ye]=(0,g.useState)(null),{dir:be}=p_(),xe=Dh(),Se=dm(I),Ce=Cx({middlewares:m,width:p,position:Yb(be,o),offset:typeof s==`
22number`?s+(h?_/2:0):s,arrowRef:he,arrowOffset:v,onPositionChange:c,opened:l,defaultOpened:te,onChange:N,onOpen:M,onClose:A,onDismiss:j,strategy:se,disabled:R,preventPositionChangeWhenVisible:de,keepMounted:ie});Yp(()=>{w&&(Ce.onClose(),j==null||j())},O,[ge,ve]);let we=(0,g.useCallback)(e=>{_e(e),Ce.floating.refs.setReference(e)},[Ce.floating.refs.setReference]),Te=(0,g.useCallback)(e=>{ye(e),Ce.floating.refs.setFloating(e)},[Ce.floating.refs.setFloating]),Ee=(0,g.useCallback)(()=>{var e;u==null||(e=u.onExited)==null||e.call(u),d==null||d(),Ce.resetLockedPlacement()},[u==null?void 0:u.onExited,d,Ce.resetLockedPlacement]),De=(0,g.useCallback)(()=>{var e;u==null||(e=u.onEntered)==null||e.call(u),f==null||f()},[u==null?void 0:u.onEntered,f]);return(0,U.jsxs)(dx,{value:{returnFocus:re,disabled:R,controlled:Ce.controlled,reference:we,floating:Te,x:Ce.floating.x,y:Ce.floating.y,arrowX:(t=Ce.floating)==null||(t=t.middlewareData)==null||(t=t.arrow)==null?void 0:t.x,arrowY:(n=Ce.floating)==null||(n=n.middlewareData)==null||(n=n.arrow)==null?void 0:n.y,opened:Ce.opened,arrowRef:he,transitionProps:{...u,onExited:Ee,onEntered:De},width:p,withArrow:h,arrowSize:_,arrowOffset:v,arrowRadius:y,arrowPosition:b,placement:Ce.floating.placement,trapFocus:k,withinPortal:T,portalProps:E,zIndex:P,radius:ee,shadow:F,closeOnEscape:D,onDismiss:j,onClose:Ce.onClose,onToggle:Ce.onToggle,getTargetId:()=>Se,getDropdownId:()=>`${Se}-dropdown`,withRoles:ne,targetProps:fe,__staticSelector:L,classNames:S,styles:C,unstyled:x,variant:z,keepMounted:ie,keepMountedMode:ae,getStyles:pe,resolvedStyles:me,floatingStrategy:se,referenceHidden:ue&&xe!==`test`?(r=Ce.floating.middlewareData.hide)==null?void 0:r.referenceHidden:!1},children:[a,ce&&(0,U.jsx)(ux,{transition:`fade`,mounted:Ce.opened,duration:(u==null?void 0:u.duration)||250,exitDuration:(u==null?void 0:u.exitDuration)||250,children:e=>(0,U.jsx)(ix,{withinPortal:T,children:(0,U.jsx)($b,{...le,...pe(`overlay`,{className:le==null?void 0:le.className,style:[e,le==null?void 0:le.style]})})})})]})}Ex.Target=bx,Ex.Dropdown=vx,Ex.ContextMenu=mx,Ex.varsResolver=Tx,Ex.displayName=`@mantine/core/Popover`,Ex.extend=e=>e,Ex.withProps=e=>{let t=t=>(0,U.jsx)(Ex,{...e,...t});return t.extend=Ex.extend,t.displayName=`WithProps(${Ex.displayName})`,t};var Dx={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},Ox=({className:e,...t})=>(0,U.jsxs)(d_,{component:`span`,className:Hm(Dx.barsLoader,e),...t,children:[(0,U.jsx)(`span`,{className:Dx.bar}),(0,U.jsx)(`span`,{className:Dx.bar}),(0,U.jsx)(`span`,{className:Dx.bar})]});Ox.displayName=`@mantine/core/Bars`;var kx=({className:e,...t})=>(0,U.jsxs)(d_,{component:`span`,className:Hm(Dx.dotsLoader,e),...t,children:[(0,U.jsx)(`span`,{className:Dx.dot}),(0,U.jsx)(`span`,{className:Dx.dot}),(0,U.jsx)(`span`,{className:Dx.dot})]});kx.displayName=`@mantine/core/Dots`;var Ax=({className:e,...t})=>(0,U.jsx)(d_,{component:`span`,className:Hm(Dx.ovalLoader,e),...t});Ax.displayName=`@mantine/core/Oval`;var jx={bars:Ox,oval:Ax,dots:kx},Mx={loaders:jx,type:`oval`},Nx=Bm((e,{size:t,color:n})=>({root:{"--loader-size":Pp(t,`loader-size`),"--loader-color":n?oh(n,e):void 0}})),Px=n_(e=>{let t=ag(`Loader`,Mx,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=Sg({name:`Loader`,props:t,classes:Dx,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:Nx});return p?(0,U.jsx)(d_,{...g(`root`),...h,children:p}):(0,U.jsx)(d_,{...g(`root`),component:d[i],variant:f,size:n,...h})});Px.defaultLoaders=jx,Px.classes=Dx,Px.varsResolver=Nx,Px.displayName=`@mantine/core/Loader`;function Fx({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,U.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,U.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}Fx.displayName=`@mantine/core/CloseIcon`;var Ix={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},Lx={variant:`subtle`},Rx=Bm((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":Pp(t,`cb-size`),"--cb-radius":n===void 0?void 0:Ip(n),"--cb-icon-size":W(r)}})),zx=i_(e=>{let t=ag(`CloseButton`,Lx,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=Sg({name:_||`CloseButton`,props:t,className:o,style:c,classes:Ix,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:Rx});return(0,U.jsxs)(Ib,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,U.jsx)(Fx,{}),r]})});zx.classes=Ix,zx.varsResolver=Rx,zx.displayName=`@mantine/core/CloseButton`;
22function Bx(e){return g.Children.toArray(e).filter(Boolean)}var Vx={root:`m_4081bf90`},Hx={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},Ux=Bm((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":Fp(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),Wx=n_(e=>{let t=ag(`Group`,Hx,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=Bx(s),x=b.length,S=Fp(c??`md`),C=Sg({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:Vx,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:Ux});return(0,U.jsx)(d_,{...C(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});Wx.classes=Vx,Wx.varsResolver=Ux,Wx.displayName=`@mantine/core/Group`;var[Gx,Kx]=kp(`ModalBase component was not found in tree`);function qx({opened:e,transitionDuration:t}){let[n,r]=(0,g.useState)(e),i=(0,g.useRef)(-1),a=wm()?0:t;return(0,g.useEffect)(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function Jx({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:o}){let s=dm(e),[c,l]=(0,g.useState)(!1),[u,d]=(0,g.useState)(!1),f=qx({opened:n,transitionDuration:typeof(t==null?void 0:t.duration)==`number`?t==null?void 0:t.duration:200});return fm(`keydown`,e=>{var t;e.key===`Escape`&&i&&!e.isComposing&&n&&((t=e.target)==null?void 0:t.getAttribute(`data-mantine-stop-propagation`))!==`true`&&a()},{capture:!0}),em({opened:n,shouldReturnFocus:r&&o}),{_id:s,titleMounted:c,bodyMounted:u,shouldLockScroll:f,setTitleMounted:l,setBodyMounted:d}}var Yx=function(){return Yx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Yx.apply(this,arguments)};function Xx(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,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}function Zx(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Qx=`right-scroll-bar-position`,$x=`width-before-scroll-bar`,eS=`with-scroll-bars-hidden`,tS=`--removed-body-scroll-bar-size`;function nS(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function rS(e,t){var n=(0,g.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var iS=typeof window<`u`?g.useLayoutEffect:g.useEffect,aS=new WeakMap;function oS(e,t){var n=rS(t||null,function(t){return e.forEach(function(e){return nS(e,t)})});return iS(function(){var t=aS.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||nS(e,null)}),i.forEach(function(e){r.has(e)||nS(e,a)})}aS.set(n,e)},[e]),n}function sS(e){return e}function cS(e,t){t===void 0&&(t=sS);var n=[],r=!1;return{read:function(){if(r)throw 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 a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function lS(e){e===void 0&&(e={});var t=cS(null);return t.options=Yx({async:!0,ssr:!1},e),t}var uS=function(e){var t=e.sideCar,n=Xx(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return g.createElement(r,Yx({},n))};
vendor: 6,936 bytes, lines 22-62
22uS.isSideCarExport=!0;function dS(e,t){return e.useMedium(t),uS}var fS=lS(),pS=function(){},mS=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:pS,onWheelCapture:pS,onTouchMoveCapture:pS}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Xx(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=oS([n,t]),w=Yx(Yx({},x),i);return g.createElement(g.Fragment,null,u&&g.createElement(S,{sideCar:fS,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?g.cloneElement(g.Children.only(s),Yx(Yx({},w),{ref:C})):g.createElement(y,Yx({},w,{className:c,ref:C}),s))});mS.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mS.classNames={fullWidth:$x,zeroRight:Qx};var hS=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function gS(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=hS();return t&&e.setAttribute(`nonce`,t),e}function _S(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vS(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var yS=function(){var e=0,t=null;return{add:function(n){e==0&&(t=gS())&&(_S(t,n),vS(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bS=function(){var e=yS();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xS=function(){var e=bS();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},SS={left:0,top:0,right:0,gap:0},CS=function(e){return parseInt(e||``,10)||0},wS=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[CS(n),CS(r),CS(i)]},TS=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return SS;var t=wS(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])}},ES=xS(),DS=`data-scroll-locked`,OS=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 23 .${eS} { 24 overflow: hidden ${r}; 25 padding-right: ${s}px ${r}; 26 } 27 body[${DS}] { 28 overflow: hidden ${r}; 29 overscroll-behavior: contain; 30 ${[t&&`position: relative ${r};`,n===`margin`&&` 31 padding-left: ${i}px; 32 padding-top: ${a}px; 33 padding-right: ${o}px; 34 margin-left:0; 35 margin-top:0; 36 margin-right: ${s}px ${r}; 37 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 38 } 39 40 .${Qx} { 41 right: ${s}px ${r}; 42 } 43 44 .${$x} { 45 margin-right: ${s}px ${r}; 46 } 47 48 .${Qx} .${Qx} { 49 right: 0 ${r}; 50 } 51 52 .${$x} .${$x} { 53 margin-right: 0 ${r}; 54 } 55 56 body[${DS}] { 57 ${tS}: ${s}px; 58 } 59`},kS=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},AS=function(){g.useEffect(function(){return document.body.setAttribute(DS,(kS()+1).toString()),function(){var e=kS()-1;e<=0?document.body.removeAttribute(DS):document.body.setAttribute(DS,e.toString())}},[])},jS=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;AS();var a=g.useMemo(function(){return TS(i)},[i]);return g.createElement(ES,{styles:OS(a,!t,i,n?``:`!important`)})},MS=!1;if(typeof window<`u`)try{var NS=Object.defineProperty({},"passive",{get:function(){return MS=!0,!0}});window.addEventListener(`test`,NS,NS),window.removeEventListener(`test`,NS,NS)}catch{MS=!1}var PS=MS?{passive:!1}:!1,FS=function(e){return e.tagName===`TEXTAREA`},IS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!FS(e)&&n[t]===`visible`)},LS=function(e){return IS(e,`overflowY`)},RS=function(e){return IS(e,`overflowX`)},zS=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),HS(e,r)){var i=US(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},BS=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},VS=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},HS=function(e,t){return e===`v`?LS(t):RS(t)},US=function(e,t){return e===`v`?BS(t):VS(t)},WS=function(e,t){return e===`h`&&t===`rtl`?-1:1},GS=function(e,t,n,r,i){var a=WS(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=US(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&HS(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},KS=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qS=function(e){return[e.deltaX,e.deltaY]},JS=function(e){return e&&`current`in e?e.current:e},YS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},XS=function(e){return` 60 .block-interactivity-${e} {pointer-events: none;} 61 .allow-interactivity-${e} {pointer-events: all;} 62`},ZS=0,QS=[];function $S(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),i=g.useState(ZS++)[0],a=g.useState(xS)[0],o=g.useRef(e);g.useEffect(function(){o.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Zx([e.lockRef.current],(e.shards||[]).map(JS),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=g.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=KS(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=zS(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=zS(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return GS(h,t,e,h===`h`?s:c,!0)},[]),c=g.useCallback(function(e){var n=e;if(!(!QS.length||QS[QS.length-1]!==a)){var r=`deltaY`in n?qS(n):KS(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&YS(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
62if(!i){var c=(o.current.shards||[]).map(JS).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=g.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:eC(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=g.useCallback(function(e){n.current=KS(e),r.current=void 0},[]),d=g.useCallback(function(t){l(t.type,qS(t),t.target,s(t,e.lockRef.current))},[]),f=g.useCallback(function(t){l(t.type,KS(t),t.target,s(t,e.lockRef.current))},[]);g.useEffect(function(){return QS.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,PS),document.addEventListener(`touchmove`,c,PS),document.addEventListener(`touchstart`,u,PS),function(){QS=QS.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,PS),document.removeEventListener(`touchmove`,c,PS),document.removeEventListener(`touchstart`,u,PS)}},[]);var p=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(a,{styles:XS(i)}):null,p?g.createElement(jS,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function eC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var tC=dS(fS,$S),nC=g.forwardRef(function(e,t){return g.createElement(mS,Yx({},e,{ref:t,sideCar:tC}))});nC.classNames=mS.classNames;function rC({keepMounted:e,keepMountedMode:t=`activity`,opened:n,onClose:r,id:i,transitionProps:a,onExitTransitionEnd:o,onEnterTransitionEnd:s,trapFocus:c,closeOnEscape:l,returnFocus:u,closeOnClickOutside:d,withinPortal:f,portalProps:p,lockScroll:m,children:h,zIndex:g,shadow:_,padding:v,__vars:y,unstyled:b,removeScrollProps:x,...S}){let{_id:C,titleMounted:w,bodyMounted:T,shouldLockScroll:E,setTitleMounted:D,setBodyMounted:O}=Jx({id:i,transitionProps:a,opened:n,trapFocus:c,closeOnEscape:l,onClose:r,returnFocus:u}),{key:k,...A}=x||{};return(0,U.jsx)(ix,{...p,withinPortal:f,children:(0,U.jsx)(Gx,{value:{opened:n,onClose:r,closeOnClickOutside:d,onExitTransitionEnd:o,onEnterTransitionEnd:s,transitionProps:{...a,keepMounted:e,keepMountedMode:t},getTitleId:()=>`${C}-title`,getBodyId:()=>`${C}-body`,titleMounted:w,bodyMounted:T,setTitleMounted:D,setBodyMounted:O,trapFocus:c,closeOnEscape:l,zIndex:g,unstyled:b},children:(0,U.jsx)(nC,{enabled:E&&m,...A,children:(0,U.jsx)(d_,{...S,id:C,__vars:{...y,"--mb-z-index":(g||jp(`modal`)).toString(),"--mb-shadow":zp(_),"--mb-padding":Fp(v)},children:h})},k)})})}rC.displayName=`@mantine/core/ModalBase`;function iC(){let e=Kx();return(0,g.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var aC={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function oC({className:e,...t}){let n=iC(),r=Kx();return(0,U.jsx)(d_,{id:n,className:Hm({[aC.body]:!r.unstyled},e),...t})}oC.displayName=`@mantine/core/ModalBaseBody`;function sC({className:e,onClick:t,...n}){let r=Kx();return(0,U.jsx)(zx,{...n,onClick:e=>{r.onClose(),t==null||t(e)},className:Hm({[aC.close]:!r.unstyled},e),unstyled:r.unstyled})}sC.displayName=`@mantine/core/ModalBaseCloseButton`;function cC({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=Kx();return(0,U.jsx)(ux,{mounted:s.opened,transition:`pop`,...s.transitionProps,onExited:()=>{var e,t,n;(e=s.onExitTransitionEnd)==null||e.call(s),(t=s.transitionProps)==null||(n=t.onExited)==null||n.call(t)},onEntered:()=>{var e,t,n;(e=s.onEnterTransitionEnd)==null||e.call(s),(t=s.transitionProps)==null||(n=t.onEntered)==null||n.call(t)},...e,children:e=>(0,U.jsx)(`div`,{...n,className:Hm({[aC.inner]:!s.unstyled},n.className),children:(0,U.jsx)(hx,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,U.jsx)(Vb,{...o,component:`section`,role:`dialog`,tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,e],className:Hm({[aC.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}cC.displayName=`@mantine/core/ModalBaseContent`;function lC({className:e,...t}){let n=Kx();return(0,U.jsx)(d_,{component:`header`,className:Hm({[aC.header]:!n.unstyled},e),...t})}lC.displayName=`@mantine/core/ModalBaseHeader`;var uC={duration:200,timingFunction:`ease`,transition:`fade`};function dC(e){let t=Kx();return{...uC,...t.transitionProps,...e}}function fC({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=Kx(),o=dC(t);return(0,U.jsx)(ux,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,U.jsx)($b,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e==null||e(t),a.closeOnClickOutside&&a.onClose()},...i})})}fC.displayName=`@mantine/core/ModalBaseOverlay`;function pC(){let e=Kx();return(0,g.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function mC({className:e,...t}){let n=pC(),r=Kx();return(0,U.jsx)(d_,{component:`h2`,className:Hm({[aC.title]:!r.unstyled},e),id:n,...t})}mC.displayName=`@mantine/core/ModalBaseTitle`;function hC({children:e}){return(0,U.jsx)(U.Fragment,{children:e})}var gC=(0,g.createContext)({size:`sm`}),_C=n_(e=>{let t=ag(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,g.use)(gC),{resolvedClassNames:l,resolvedStyles:u}=cg({classNames:a,styles:o,props:t});return(0,U.jsx)(zx,{variant:r||`transparent`,size:n||(c==null?void 0:c.size)||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});_C.displayName=`@mantine/core/InputClearButton`;var vC={xs:7,sm:8,md:10,lg:12,xl:15};function yC({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,U.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:vC[i]},children:[o,n||r]}):n===null?null:n||o||r}var bC=(0,g.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),xC={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},SC=Bm((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${Lp(t)} - ${W(2)})`}})),CC=n_(e=>{let t=ag(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=ag(`InputDescription`,null,t),f=(0,g.use)(bC),p=Sg({name:[`InputWrapper`,c],props:t,classes:xC,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:SC}),m=l&&(f==null?void 0:f.getStyles)||p;return(0,U.jsx)(d_,{component:`p`,...m(`description`,f!=null&&f.getStyles?{className:r,style:i}:void 0),...d})});CC.classes=xC,CC.varsResolver=SC,CC.displayName=`@mantine/core/InputDescription`;var wC=Bm((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${Lp(t)} - ${W(2)})`}})),TC=n_(e=>{let t=ag(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u
62=!0,...d}=t,f=Sg({name:[`InputWrapper`,l],props:t,classes:xC,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:wC}),p=(0,g.use)(bC),m=u&&(p==null?void 0:p.getStyles)||f;return(0,U.jsx)(d_,{component:`p`,...m(`error`,p!=null&&p.getStyles?{className:r,style:i}:void 0),...d})});TC.classes=xC,TC.varsResolver=wC,TC.displayName=`@mantine/core/InputError`;var EC={labelElement:`label`},DC=Bm((e,{size:t})=>({label:{"--input-label-size":Lp(t),"--input-asterisk-color":void 0}})),OC=n_(e=>{let t=ag(`InputLabel`,EC,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:h,..._}=t,v=Sg({name:[`InputWrapper`,p],props:t,classes:xC,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:DC}),y=(0,g.use)(bC),b=(y==null?void 0:y.getStyles)||v,x=_.component||c,S=typeof x!=`string`||x===`label`;return(0,U.jsxs)(d_,{...b(`label`,y!=null&&y.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:S?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d==null||d(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},..._,children:[f,l&&(0,U.jsx)(`span`,{...b(`required`),"aria-hidden":!0,children:` *`})]})});OC.classes=xC,OC.varsResolver=DC,OC.displayName=`@mantine/core/InputLabel`;var kC=n_(e=>{let t=ag(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t,p=Sg({name:[`InputPlaceholder`,c],props:t,classes:xC,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`});return(0,U.jsx)(d_,{...p(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});kC.classes=xC,kC.displayName=`@mantine/core/InputPlaceholder`;var AC=Bm((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${Lp(t)} - ${W(2)})`}})),jC=n_(e=>{let t=ag(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=Sg({name:[`InputWrapper`,l],props:t,classes:xC,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:AC}),p=(0,g.use)(bC),m=u&&(p==null?void 0:p.getStyles)||f;return(0,U.jsx)(d_,{component:`p`,...m(`success`,p!=null&&p.getStyles?{className:r,style:i}:void 0),...d})});jC.classes=xC,jC.varsResolver=AC,jC.displayName=`@mantine/core/InputSuccess`;function MC(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var NC={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},PC=Bm((e,{size:t})=>({label:{"--input-label-size":Lp(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${Lp(t)} - ${W(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${Lp(t)} - ${W(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${Lp(t)} - ${W(2)})`}})),FC=n_(e=>{let t=ag(`InputWrapper`,NC,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,success:h,description:_,labelProps:v,descriptionProps:y,errorProps:b,successProps:x,labelElement:S,children:C,withAsterisk:w,id:T,required:E,__stylesApiProps:D,mod:O,attributes:k,...A}=t,j=Sg({name:[`InputWrapper`,u],props:D||t,classes:xC,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:k,vars:s,varsResolver:PC}),M={size:c,variant:l,__staticSelector:u},N=dm(T),P=typeof w==`boolean`?w:E,ee=(b==null?void 0:b.id)||`${N}-error`,F=(x==null?void 0:x.id)||`${N}-success`,I=(y==null?void 0:y.id)||`${N}-description`,te=N,L=!!m&&typeof m!=`boolean`,ne=!!h&&typeof h!=`boolean`&&!m,R=!!_,re=L&&f.includes(`error`),z=ne&&f.includes(`error`),ie=R&&f.includes(`description`),ae=`${re?ee:``} ${z?F:``} ${ie?I:``}`,oe=ae.trim().length>0?ae.trim():void 0,se=(v==null?void 0:v.id)||`${N}-label`,ce=p&&(0,U.jsx)(OC,{labelElement:S,id:se,htmlFor:te,required:P,...M,...v,children:p},`label`),le=R&&(0,U.jsx)(CC,{...y,...M,size:(y==null?void 0:y.size)||M.size,id:(y==null?void 0:y.id)||I,children:_},`description`),ue=(0,U.jsx)(g.Fragment,{children:d(C)},`input`),B=L&&(0,g.createElement)(TC,{...b,...M,size:(b==null?void 0:b.size)||M.size,key:`error`,id:(b==null?void 0:b.id)||ee},m),de=ne&&(0,g.createElement)(jC,{...x,...M,size:(x==null?void 0:x.size)||M.size,key:`success`,id:(x==null?void 0:x.id)||F},h),fe=f.map(e=>{switch(e){case`label`:return ce;case`input`:return ue;case`description`:return le;case`error`:return B||de;default:return null}});return(0,U.jsx)(bC,{value:{getStyles:j,describedBy:oe,inputId:te,labelId:se,...MC(f,{hasDescription:R,hasError:L||ne})},children:(0,U.jsx)(d_,{variant:l,size:c,mod:[{error:!!m,success:!!h&&!m},O],id:S===`label`?void 0:T,...j(`root`),...A,children:fe})})});FC.classes=xC,FC.varsResolver=PC,FC.displayName=`@mantine/core/InputWrapper`;var IC={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`}
62,LC=Bm((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":Pp(t.size,`input-height`),"--input-fz":Lp(t.size),"--input-radius":t.radius===void 0?void 0:Ip(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:W(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:W(t.rightSectionWidth),"--input-padding-y":t.multiline?Pp(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),RC=i_(e=>{let t=ag(`Input`,IC,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,success:p,disabled:m,leftSection:h,leftSectionProps:_,leftSectionWidth:v,rightSection:y,rightSectionProps:b,rightSectionWidth:x,rightSectionPointerEvents:S,leftSectionPointerEvents:C,variant:w,vars:T,pointer:E,multiline:D,radius:O,id:k,withAria:A,withErrorStyles:j,withSuccessStyles:M,mod:N,inputSize:P,attributes:ee,__clearSection:F,__clearable:I,__clearSectionMode:te,__defaultRightSection:L,loading:ne,loadingPosition:R,__bottomSection:re,__bottomSectionProps:z,rootRef:ie,dir:ae,...oe}=t,{styleProps:se,rest:ce}=kg(oe),le=(0,g.use)(bC),ue={offsetBottom:le==null?void 0:le.offsetBottom,offsetTop:le==null?void 0:le.offsetTop},B=Sg({name:[`Input`,c],props:l||t,classes:xC,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:ee,stylesCtx:ue,rootSelector:`wrapper`,vars:T,varsResolver:LC}),de=A?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":le==null?void 0:le.describedBy,id:(le==null?void 0:le.inputId)||k}:{},fe=ne?(0,U.jsx)(Px,{size:R===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,pe=ne&&R===`left`?fe:h,me=yC({__clearable:I,__clearSection:F,rightSection:ne&&R===`right`?fe:y,__defaultRightSection:L,size:u,__clearSectionMode:te});return(0,U.jsx)(gC,{value:{size:u||`sm`},children:(0,U.jsxs)(d_,{ref:ie,dir:ae,...B(`wrapper`),...se,...d,mod:[{error:!!f&&j,success:!!p&&!f&&M,pointer:E,disabled:m,multiline:D,withRightSection:!!me,withLeftSection:!!pe,withBottomSection:!!re},N],variant:w,size:u,children:[pe&&(0,U.jsx)(`div`,{..._,"data-position":`left`,...B(`section`,{className:_==null?void 0:_.className,style:_==null?void 0:_.style}),children:pe}),(0,U.jsx)(d_,{component:`input`,...ce,...de,required:s,mod:{disabled:m,error:!!f&&j,success:!!p&&!f&&M},variant:w,__size:P,...B(`input`)}),re&&(0,U.jsx)(`div`,{...z,...B(`bottomSection`,{className:z==null?void 0:z.className,style:z==null?void 0:z.style}),children:re}),me&&(0,U.jsx)(`div`,{...b,"data-position":`right`,...B(`section`,{className:b==null?void 0:b.className,style:b==null?void 0:b.style}),children:me})]})})});RC.classes=xC,RC.varsResolver=LC,RC.Wrapper=FC,RC.Label=OC,RC.Error=TC,RC.Success=jC,RC.Description=CC,RC.Placeholder=kC,RC.ClearButton=_C,RC.displayName=`@mantine/core/Input`;function zC(e,t,n){let r=ag([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...A}=r,{styleProps:j,rest:M}=kg(A),N={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...M,classNames:l,styles:u,unstyled:f,wrapperProps:{...N,...j},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var BC={__staticSelector:`InputBase`,withAria:!0,size:`sm`},VC=i_(e=>{let{inputProps:t,wrapperProps:n,...r}=zC(`InputBase`,BC,e);return(0,U.jsx)(RC.Wrapper,{...n,children:(0,U.jsx)(RC,{...t,...r})})});VC.classes={...RC.classes,...RC.Wrapper.classes},VC.displayName=`@mantine/core/InputBase`;var HC={gap:{type:`spacing`,property:`gap`},rowGap:{type:`spacing`,property:`rowGap`},columnGap:{type:`spacing`,property:`columnGap`},align:{type:`identity`,property:`alignItems`},justify:{type:`identity`,property:`justifyContent`},wrap:{type:`identity`,property:`flexWrap`},direction:{type:`identity`,property:`flexDirection`}},UC={root:`m_8bffd616`},WC=i_(e=>{let t=ag(`Flex`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m,attributes:h,...g}=t,_=Sg({name:`Flex`,classes:UC,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=Vh(),y=Qg(),b=Zg({styleProps:{gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m},theme:v,data:HC}),x=Oh(),S=x&&b.hasResponsiveStyles?Og(b.styles,b.media):y;return(0,U.jsxs)(U.Fragment,{children:[b.hasResponsiveStyles&&(0,U.jsx)(Eg,{selector:`.${S}`,styles:b.styles,media:b.media,deduplicate:x}),(0,U.jsx)(d_,{..._(`root`,{className:S,style:Ep(b.inlineStyles)}),...g})]})});WC.classes=UC,WC.displayName=`@mantine/core/Flex`;function GC({style:e,size:t=16,...n}
62){return(0,U.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:W(t),height:W(t),display:`block`},...n,children:(0,U.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}GC.displayName=`@mantine/core/AccordionChevron`;var KC={root:`m_b6d8b162`};function qC(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var JC={inherit:!1},YC=Bm((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":Lp(i),"--text-lh":Rp(i),"--text-gradient":t===`gradient`?uh(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),XC=i_(e=>{let t=ag(`Text`,JC,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t,x=Sg({name:[`Text`,l],props:t,classes:KC,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:YC});return(0,U.jsx)(d_,{...x(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{truncate:qC(r),lineClamp:typeof n==`number`,inline:i,inherit:a},_],size:v,...b})});XC.classes=KC,XC.varsResolver=YC,XC.displayName=`@mantine/core/Text`;var[ZC,QC]=kp(`AppShell was not found in tree`),$C={root:`m_89ab340`,navbar:`m_45252eee`,aside:`m_9cdde9a`,header:`m_3b16f56b`,main:`m_8983817`,footer:`m_3840c879`,section:`m_6dcfc7c7`},ew=n_(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=ag(`AppShellAside`,null,e),d=QC();return d.disabled?null:(0,U.jsx)(d_,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`aside`,{className:Hm({[nC.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`}})});ew.classes=$C,ew.displayName=`@mantine/core/AppShellAside`;var tw=n_(e=>{var t;let{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,withBorder:c,zIndex:l,mod:u,...d}=ag(`AppShellFooter`,null,e),f=QC();return f.disabled?null:(0,U.jsx)(d_,{component:`footer`,mod:[{"with-border":c??f.withBorder},u],...f.getStyles(`footer`,{className:Hm({[nC.classNames.zeroRight]:f.offsetScrollbars},r),classNames:n,styles:a,style:i}),...d,__vars:{"--app-shell-footer-z-index":(t=l??f.zIndex)==null?void 0:t.toString()}})});tw.classes=$C,tw.displayName=`@mantine/core/AppShellFooter`;var nw=n_(e=>{var t;let{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,withBorder:c,zIndex:l,mod:u,...d}=ag(`AppShellHeader`,null,e),f=QC();return f.disabled?null:(0,U.jsx)(d_,{component:`header`,mod:[{"with-border":c??f.withBorder},u],...f.getStyles(`header`,{className:Hm({[nC.classNames.zeroRight]:f.offsetScrollbars},r),classNames:n,styles:a,style:i}),...d,__vars:{"--app-shell-header-z-index":(t=l??f.zIndex)==null?void 0:t.toString()}})});nw.classes=$C,nw.displayName=`@mantine/core/AppShellHeader`;var rw=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`AppShellMain`,null,e),s=QC();return(0,U.jsx)(d_,{component:`main`,...s.getStyles(`main`,{className:n,style:r,classNames:t,styles:i}),...o})});rw.classes=$C,rw.displayName=`@mantine/core/AppShellMain`;var iw=n_(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=ag(`AppShellNavbar`,null,e),d=QC();return d.disabled?null:(0,U.jsx)(d_,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`navbar`,{className:n,classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`}})});iw.classes=$C,iw.displayName=`@mantine/core/AppShellNavbar`;var aw=i_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,grow:o,mod:s,...c}=ag(`AppShellSection`,null,e),l=QC();return(0,U.jsx)(d_,{mod:[{grow:o},s],...l.getStyles(`section`,{className:n,style:r,classNames:t,styles:i}),...c})});aw.classes=$C,aw.displayName=`@mantine/core/AppShellSection`;function ow(e){return typeof e==`object`?e.base:e}function sw(e){let t=typeof e==`object`&&!!e&&e.base!==void 0&&Object.keys(e).length===1;return typeof e==`number`||typeof e==`string`||t}function cw(e){return!(typeof e!=`object`||!e||Object.keys(e).length===1&&`base`in e)}function lw({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:i,mode:a}){var o,s,c;let l=r==null?void 0:r.width,u=`translateX(var(--app-shell-aside-width))`,d=`translateX(calc(var(--app-shell-aside-width) * -1))`;if((r==null?void 0:r.breakpoint)!==void 0&&!(r!=null&&(o=r.collapsed)!=null&&o.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},a===`fixed`?(n[r==null?void 0:r.breakpoint][`--app-shell-aside-width`]=`100%`,n[r==null?void 0:r.breakpoint][`--app-shell-aside-offset`]=`0px`):(n[r==null?void 0:r.breakpoint][`--app-shell-aside-width`]=`0px`,n[r==null?void 0:r.breakpoint][`--app-shell-aside-offset`]=`0px`)),sw(l)){let t=W(ow(l));e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t}if(cw(l)&&(l.base!==void 0&&(e[`--app-shell-aside-width`]=W(l.base),e[`--app-shell-aside-offset`]=W(l.base)),_p(l).forEach(e
62=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-aside-width`]=W(l[e]),t[e][`--app-shell-aside-offset`]=W(l[e]))})),(r==null?void 0:r.breakpoint)!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-aside-position`]=`sticky`,t[r.breakpoint][`--app-shell-aside-grid-row`]=`2`,t[r.breakpoint][`--app-shell-aside-grid-column`]=`3`,t[r.breakpoint][`--app-shell-main-column-end`]=`3`),r!=null&&(s=r.collapsed)!=null&&s.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-aside-transform`]=u,t[e][`--app-shell-aside-transform-rtl`]=d,a===`fixed`?t[e][`--app-shell-aside-offset`]=`0px !important`:(t[e][`--app-shell-aside-width`]=`0px`,t[e][`--app-shell-aside-display`]=`none`,t[e][`--app-shell-main-column-end`]=`-1`),t[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`}if(r!=null&&(c=r.collapsed)!=null&&c.mobile){let e=Vp(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},a===`fixed`?(n[e][`--app-shell-aside-width`]=`100%`,n[e][`--app-shell-aside-offset`]=`0px`):n[e][`--app-shell-aside-width`]=`0px`,n[e][`--app-shell-aside-transform`]=u,n[e][`--app-shell-aside-transform-rtl`]=d,n[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`}}
62function uw({baseStyles:e,minMediaStyles:t,footer:n,mode:r}){let i=n==null?void 0:n.height,a=r===`static`?!0:(n==null?void 0:n.offset)??!0;if(r===`static`&&n&&(e[`--app-shell-footer-position`]=`sticky`,e[`--app-shell-footer-grid-column`]=`1 / -1`,e[`--app-shell-footer-grid-row`]=`3`),sw(i)){let t=W(ow(i));e[`--app-shell-footer-height`]=t,a&&(e[`--app-shell-footer-offset`]=t)}cw(i)&&(i.base!==void 0&&(e[`--app-shell-footer-height`]=W(i.base),a&&(e[`--app-shell-footer-offset`]=W(i.base))),_p(i).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-footer-height`]=W(i[e]),a&&(t[e][`--app-shell-footer-offset`]=W(i[e])))})),n!=null&&n.collapsed&&(e[`--app-shell-footer-transform`]=`translateY(var(--app-shell-footer-height))`,r===`fixed`&&(e[`--app-shell-footer-offset`]=`0px !important`))}function dw({baseStyles:e,minMediaStyles:t,header:n,mode:r}){let i=n==null?void 0:n.height,a=r===`static`?!0:(n==null?void 0:n.offset)??!0;if(r===`static`&&n&&(e[`--app-shell-header-position`]=`sticky`,e[`--app-shell-header-grid-column`]=`1 / -1`,e[`--app-shell-header-grid-row`]=`1`),sw(i)){let t=W(ow(i));e[`--app-shell-header-height`]=t,a&&(e[`--app-shell-header-offset`]=t)}cw(i)&&(i.base!==void 0&&(e[`--app-shell-header-height`]=W(i.base),a&&(e[`--app-shell-header-offset`]=W(i.base))),_p(i).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-header-height`]=W(i[e]),a&&(t[e][`--app-shell-header-offset`]=W(i[e])))})),n!=null&&n.collapsed&&(e[`--app-shell-header-transform`]=`translateY(calc(var(--app-shell-header-height) * -1))`,r===`fixed`&&(e[`--app-shell-header-offset`]=`0px !important`))}function fw({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:i,mode:a}){var o,s,c;let l=r==null?void 0:r.width,u=`translateX(calc(var(--app-shell-navbar-width) * -1))`,d=`translateX(var(--app-shell-navbar-width))`;if((r==null?void 0:r.breakpoint)!==void 0&&!(r!=null&&(o=r.collapsed)!=null&&o.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint][`--app-shell-navbar-offset`]=`0px`,n[r==null?void 0:r.breakpoint][`--app-shell-navbar-width`]=`100%`,a===`static`&&(n[r==null?void 0:r.breakpoint][`--app-shell-navbar-grid-width`]=`0px`)),sw(l)){let t=W(ow(l));e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}if(cw(l)&&(l.base!==void 0&&(e[`--app-shell-navbar-width`]=W(l.base),e[`--app-shell-navbar-offset`]=W(l.base),a===`static`&&(e[`--app-shell-navbar-grid-width`]=W(l.base))),_p(l).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-navbar-width`]=W(l[e]),t[e][`--app-shell-navbar-offset`]=W(l[e]),a===`static`&&(t[e][`--app-shell-navbar-grid-width`]=W(l[e])))})),(r==null?void 0:r.breakpoint)!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-navbar-position`]=`sticky`,t[r.breakpoint][`--app-shell-navbar-grid-row`]=`2`,t[r.breakpoint][`--app-shell-navbar-grid-column`]=`1`,t[r.breakpoint][`--app-shell-main-column-start`]=`2`),r!=null&&(s=r.collapsed)!=null&&s.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-navbar-transform`]=u,t[e][`--app-shell-navbar-transform-rtl`]=d,a===`fixed`?t[e][`--app-shell-navbar-offset`]=`0px !important`:(t[e][`--app-shell-navbar-width`]=`0px`,t[e][`--app-shell-navbar-display`]=`none`,t[e][`--app-shell-main-column-start`]=`1`)}if(r!=null&&(c=r.collapsed)!=null&&c.mobile){let e=Vp(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},n[e][`--app-shell-navbar-width`]=`100%`,n[e][`--app-shell-navbar-offset`]=`0px`,a===`static`&&(n[e][`--app-shell-navbar-grid-width`]=`0px`),n[e][`--app-shell-navbar-transform`]=u,n[e][`--app-shell-navbar-transform-rtl`]=d}}function pw(e){return Number(e)===0?`0px`:Fp(e)}function mw({padding:e,baseStyles:t,minMediaStyles:n}){sw(e)&&(t[`--app-shell-padding`]=pw(ow(e))),cw(e)&&(e.base&&(t[`--app-shell-padding`]=pw(e.base)),_p(e).forEach(t=>{t!==`base`&&(n[t]=n[t]||{},n[t][`--app-shell-padding`]=pw(e[t]))}))}function hw({navbar:e,header:t,footer:n,aside:r,padding:i,theme:a,mode:o}){let s={},c={},l={};o===`static`&&(l[`--app-shell-main-grid-column`]=`1 / -1`,l[`--app-shell-main-grid-row`]=`2`),fw({baseStyles:l,minMediaStyles:s,maxMediaStyles:c,navbar:e,theme:a,mode:o}),lw({baseStyles:l,minMediaStyles:s,maxMediaStyles:c,aside:r,theme:a,mode:o}),dw({baseStyles:l,minMediaStyles:s,header:t,mode:o}),uw({baseStyles:l,minMediaStyles:s,footer:n,mode:o}),mw({baseStyles:l,minMediaStyles:s,padding:i});let u=Hp(_p(s),a.breakpoints).map(e=>({query:`(min-width: ${Tp(e.px)})`,styles:s[e.value]})),d=Hp(_p(c),a.breakpoints).map(e=>({query:`(max-width: ${Tp(e.px)})`,styles:c[e.value]}));return{baseStyles:l,media:[...u,...d]}}function gw({navbar:e,header:t,aside:n,footer:r,padding:i,mode:a,selector:o}){let s=Vh(),c=yh(),{media:l,baseStyles:u}
62=hw({navbar:e,header:t,footer:r,aside:n,padding:i,theme:s,mode:a});return(0,U.jsx)(Eg,{media:l,styles:u,selector:o||c.cssVariablesSelector})}function _w({transitionDuration:e,disabled:t}){let[n,r]=(0,g.useState)(!0),i=(0,g.useRef)(-1),a=(0,g.useRef)(-1);return fm(`resize`,()=>{r(!0),clearTimeout(i.current),i.current=window.setTimeout(()=>(0,g.startTransition)(()=>{r(!1)}),200)}),Qp(()=>{r(!0),clearTimeout(a.current),a.current=window.setTimeout(()=>(0,g.startTransition)(()=>{r(!1)}),e||0)},[t,e]),n}var vw={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:`ease`,zIndex:jp(`app`),mode:`fixed`},yw=Bm((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}})),bw=n_(e=>{let t=ag(`AppShell`,vw,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,navbar:c,withBorder:l,padding:u,transitionDuration:d,transitionTimingFunction:f,header:p,zIndex:m,layout:h,disabled:g,aside:_,footer:v,offsetScrollbars:y=!0,mode:b,mod:x,attributes:S,id:C,...w}=t,T=Sg({name:`AppShell`,classes:$C,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:S,vars:s,varsResolver:yw}),E=_w({disabled:g,transitionDuration:d}),D=dm(C);return(0,U.jsxs)(ZC,{value:{getStyles:T,withBorder:l,zIndex:m,disabled:g,offsetScrollbars:y,mode:b},children:[(0,U.jsx)(gw,{navbar:c,header:p,aside:_,footer:v,padding:u,mode:b,selector:b===`static`?`#${D}`:void 0}),(0,U.jsx)(d_,{...T(`root`),id:D,mod:[{resizing:E,layout:h,disabled:g,mode:b},x],...w})]})});bw.classes=$C,bw.varsResolver=yw,bw.displayName=`@mantine/core/AppShell`,bw.Navbar=iw,bw.Header=nw,bw.Main=rw,bw.Aside=ew,bw.Footer=tw,bw.Section=aw;function xw(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>xw(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function Sw(e){return e?e.map(e=>xw(e)):[]}function Cw(e){return e.reduce((e,t)=>`group`in t?{...e,...Cw(t.items)}:(e[`${t.value}`]=t,e),{})}var ww={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},Tw={error:null},Ew=Bm((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":Pp(t,`combobox-chevron-size`),"--combobox-chevron-color":n?oh(n,e):void 0}})),Dw=n_(e=>{let t=ag(`ComboboxChevron`,Tw,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,attributes:u,mod:d,...f}=t,p=Sg({name:`ComboboxChevron`,classes:ww,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,varsResolver:Ew,attributes:u,rootSelector:`chevron`});return(0,U.jsx)(d_,{component:`svg`,...f,...p(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},d],children:(0,U.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});Dw.classes=ww,Dw.varsResolver=Ew,Dw.displayName=`@mantine/core/ComboboxChevron`;var[Ow,kw]=kp(`Combobox component was not found in tree`);function Aw({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,U.jsx)(RC.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e==null||e(t)},onClick:e=>{n(),t==null||t(e)}})}Aw.displayName=`@mantine/core/ComboboxClearButton`;var jw=n_(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=ag(`ComboboxDropdown`,null,e),s=kw();return(0,U.jsx)(Ex.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,"data-floating-height":s.floatingHeight||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});jw.classes=ww,jw.displayName=`@mantine/core/ComboboxDropdown`;var Mw={refProp:`ref`},Nw=n_(e=>{let{children:t,refProp:n,ref:r}=ag(`ComboboxDropdownTarget`,Mw,e);if(kw(),!Op(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, str
62ings, numbers and other primitive values are not supported`);return(0,U.jsx)(Ex.Target,{ref:r,refProp:n,children:t})});Nw.displayName=`@mantine/core/ComboboxDropdownTarget`;var Pw=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`ComboboxEmpty`,null,e),s=kw();return(0,U.jsx)(d_,{...s.getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});Pw.classes=ww,Pw.displayName=`@mantine/core/ComboboxEmpty`;function Fw({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=kw(),[c,l]=(0,g.useState)(null),u=t=>{if(e==null||e(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t==null||t(e)};return{...d,onKeyDown:u,onClick:f}}var Iw={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Lw=n_(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=ag(`ComboboxEventsTarget`,Iw,e),u=zm(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=kw(),f=Fw({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s});return(0,g.cloneElement)(u,{...f,...l,[n]:xm(c,d.store.targetRef,Fm(u))})});Lw.displayName=`@mantine/core/ComboboxEventsTarget`;var Rw=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`ComboboxFooter`,null,e),s=kw();return(0,U.jsx)(d_,{...s.getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Rw.classes=ww,Rw.displayName=`@mantine/core/ComboboxFooter`;var zw=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=ag(`ComboboxGroup`,null,e),u=kw(),d=dm(c),f=s!=null&&s!==!1&&s!==``;return(0,U.jsxs)(d_,{role:`group`,"aria-labelledby":f?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[f&&(0,U.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});zw.classes=ww,zw.displayName=`@mantine/core/ComboboxGroup`;var Bw=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`ComboboxHeader`,null,e),s=kw();return(0,U.jsx)(d_,{...s.getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Bw.classes=ww,Bw.displayName=`@mantine/core/ComboboxHeader`;function Vw({value:e,valuesDivider:t=`,`,...n}){return(0,U.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}Vw.displayName=`@mantine/core/ComboboxHiddenInput`;var Hw=n_(e=>{let t=ag(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:f,selected:p,mod:m,...h}=t,_=kw(),v=(0,g.useId)(),y=c||v;return(0,U.jsx)(d_,{..._.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),...h,id:y,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":f,"combobox-selected":p},m],role:`option`,onClick:e=>{if(f)e.preventDefault();else{var n;(n=_.onOptionSubmit)==null||n.call(_,t.value,t),s==null||s(e)}},onMouseDown:e=>{e.preventDefault(),u==null||u(e)},onMouseOver:e=>{_.resetSelectionOnOptionHover&&_.store.resetSelectedOption(),d==null||d(e)}})});
62Hw.classes=ww,Hw.displayName=`@mantine/core/ComboboxOption`;var Uw=n_(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=ag(`ComboboxOptions`,null,e),l=kw(),u=dm(a);return(0,g.useEffect)(()=>{l.store.setListId(u)},[u]),(0,U.jsx)(d_,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o==null||o(e)}})});Uw.classes=ww,Uw.displayName=`@mantine/core/ComboboxOptions`;var Ww={withAriaAttributes:!0,withKeyboardNavigation:!0},Gw=n_(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=ag(`ComboboxSearch`,Ww,e),f=kw(),p=f.getStyles(`search`),m=Fw({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,U.jsx)(RC,{ref:xm(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});Gw.classes=ww,Gw.displayName=`@mantine/core/ComboboxSearch`;var Kw={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},qw=n_(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=ag(`ComboboxTarget`,Kw,e),u=zm(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=kw(),f=Fw({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),p=(0,g.cloneElement)(u,{...f,...l});return(0,U.jsx)(Ex.Target,{refProp:n,ref:xm(c,d.store.targetRef),children:p})});qw.displayName=`@mantine/core/ComboboxTarget`;
62function Jw(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function Yw(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function Xw(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute(`data-combobox-disabled`))return t;return-1}function Zw({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:a=!0,scrollBehavior:o=`instant`}={}){let[s,c]=Cm({value:t,defaultValue:e,finalValue:!1,onChange:n}),l=(0,g.useRef)(null),u=(0,g.useRef)(-1),d=(0,g.useRef)(null),f=(0,g.useRef)(null),p=(0,g.useRef)(-1),m=(0,g.useRef)(-1),h=(0,g.useRef)(-1),_=(0,g.useCallback)((e=`unknown`)=>{s||(c(!0),i==null||i(e))},[c,i,s]),v=(0,g.useCallback)((e=`unknown`)=>{s&&(c(!1),r==null||r(e))},[c,r,s]),y=(0,g.useCallback)((e=`unknown`)=>{s?v(e):_(e)},[v,_,s]),b=(0,g.useCallback)(()=>{let e=Rm(f.current),t=Im(`#${l.current} [data-combobox-selected]`,e);t==null||t.removeAttribute(`data-combobox-selected`),t==null||t.removeAttribute(`aria-selected`)},[]),x=(0,g.useCallback)(e=>{let t=Rm(f.current),n=Im(`#${l.current}`,t),r=n?Lm(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r!=null&&r[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(b(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].setAttribute(`aria-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,b]),S=(0,g.useCallback)(()=>{let e=Rm(f.current),t=Im(`#${l.current} [data-combobox-active]`,e);if(t){let n=Lm(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return x(n)}return x(0)},[x]),C=(0,g.useCallback)(()=>{let e=Rm(f.current),t=Lm(`#${l.current} [data-combobox-option]`,e);return x(Yw(u.current,t,a))},[x,a]),w=(0,g.useCallback)(()=>{let e=Rm(f.current),t=Lm(`#${l.current} [data-combobox-option]`,e);return x(Jw(u.current,t,a))},[x,a]),T=(0,g.useCallback)(()=>{let e=Rm(f.current),t=Lm(`#${l.current} [data-combobox-option]`,e);return x(Xw(t))},[x]),E=(0,g.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){var n;u.current=e;let r=Rm(f.current),i=Lm(`#${l.current} [data-combobox-option]`,r);t!=null&&t.scrollIntoView&&((n=i[e])==null||n.scrollIntoView({block:`nearest`,behavior:o}));return}h.current=window.setTimeout(()=>{var n;let r=Rm(f.current),i=Lm(`#${l.current} [data-combobox-option]`,r),a=i.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=a,t!=null&&t.scrollIntoView&&((n=i[a])==null||n.scrollIntoView({block:`nearest`,behavior:o}))},0)},[]),D=(0,g.useCallback)(()=>{u.current=-1,b()},[b]),O=(0,g.useCallback)(()=>{var e;let t=Rm(f.current);(e=Lm(`#${l.current} [data-combobox-option]`,t))==null||(e=e[u.current])==null||e.click()},[]),k=(0,g.useCallback)(e=>{l.current=e},[]),A=(0,g.useCallback)(()=>{p.current=window.setTimeout(()=>{var e;return(e=d.current)==null?void 0:e.focus()},0)},[]),j=(0,g.useCallback)(()=>{m.current=window.setTimeout(()=>{var e;return(e=f.current)==null?void 0:e.focus()},0)},[]),M=(0,g.useCallback)(()=>u.current,[]);return(0,g.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:_,closeDropdown:v,toggleDropdown:y,selectedOptionIndex:u.current,getSelectedOptionIndex:M,selectOption:x,selectFirstOption:T,selectActiveOption:S,selectNextOption:C,selectPreviousOption:w,resetSelectedOption:D,updateSelectedOptionIndex:E,listId:l.current,setListId:k,clickSelectedOption:O,searchRef:d,focusSearchInput:A,targetRef:f,focusTarget:j}}var Qw={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},$w=Bm((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":Lp(t),"--combobox-option-padding":Pp(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:W(n),"--combobox-option-fz":Lp(t),"--combobox-option-padding":Pp(t,`combobox-option-padding`)}})),eT=e=>{let t=ag(`Combobox`,Qw,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:l,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:m,attributes:h,floatingHeight:g,middlewares:_,...v}=t,y=g===`viewport`?{..._,flip:!1,size:{...typeof(_==null?void 0:_.size)==`object`?_.size:{},padding:typeof(_==null?void 0:_.size)==`object`&&_.size.padding!==void 0?_.size.padding:10,apply:({availableHeight:e,availableWidth:t,elements:n,...r})=>{n.floating.style.setProperty(`--combobox-floating-max-height`,`${e}px`);let i=_==null?void 0:_.size;typeof i==`object`&&i.apply?i.apply({availableHeight:e,availableWidth:t,elements:n,...r}):i&&Object.assign(n.floating.style,{maxWidth:`${t}px`,maxHeight:`${e}px`})}}}:_,b=Zw(),x=o||b,S=Sg({name:p||`Combobox`,classes:ww,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:$w}),C=()=>{l==null||l(),x.closeDropdown()};return(0,U.jsx)(Ow,{value:{getStyles:S,store:x,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m,floatingHeight:g},children:(0,U.jsx)(Ex,{opened:x.dropdownOpened,...v,middlewares:y,onChange:e=>!e&&C(),withRoles:!1,unstyled:i,children:a})})};eT.extend=e=>e,eT.classes=ww,eT.varsResolver=$w,eT.displayName=`@mantine/core/Combobox`,eT.Target=qw,eT.Dropdown=jw,eT.Options=Uw,eT.Option=Hw,eT.Search=Gw,eT.Empty=Pw,eT.Chevron=Dw,eT.Footer=Rw,eT.Header=Bw,eT.EventsTarget=Lw,eT.DropdownTarget=Nw,eT.Group=zw,eT.ClearButton=Aw,eT.HiddenInput=Vw;function tT({children:e,role:t}){let n=(0,g.use)(bC);return n?(0,U.jsx)(`div`,{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):(0,U.jsx)(U.Fragment,{children:e})}var nT=(0,g.createContext)(null),rT={hiddenInputValuesSeparator:`,`},iT=r_((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=ag(`CheckboxGroup`,rT,e),[m,h]=Cm({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=typeof e==`string`?e:e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;
62if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,U.jsx)(nT,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,U.jsxs)(RC.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`CheckboxGroup`,children:[(0,U.jsx)(tT,{role:`group`,children:o}),(0,U.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));iT.classes=RC.Wrapper.classes,iT.displayName=`@mantine/core/CheckboxGroup`;var aT={card:`m_26775b0a`},oT=(0,g.createContext)(null),sT={withBorder:!0},cT=Bm((e,{radius:t})=>({card:{"--card-radius":Ip(t)}})),lT=n_(e=>{let t=ag(`CheckboxCard`,sT,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,checked:c,mod:l,withBorder:u,value:d,onClick:f,defaultChecked:p,onChange:m,indeterminate:h,attributes:_,...v}=t,y=Sg({name:`CheckboxCard`,classes:aT,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,vars:s,varsResolver:cT,rootSelector:`card`}),b=(0,g.use)(nT),[x,S]=Cm({value:typeof c==`boolean`?c:b?b.value.includes(d||``):void 0,defaultValue:p,finalValue:!1,onChange:m});return(0,U.jsx)(oT,{value:{checked:x,indeterminate:h},children:(0,U.jsx)(Ib,{mod:[{"with-border":u,checked:x,indeterminate:h},l],...y(`card`),...v,role:`checkbox`,"aria-checked":h?`mixed`:x,onClick:e=>{f==null||f(e),b==null||b.onChange(d||``),S(!x)}})})});lT.displayName=`@mantine/core/CheckboxCard`,lT.classes=aT,lT.varsResolver=cT;function uT({size:e,style:t,...n}){let r=e===void 0?t:{width:W(e),height:W(e),...t};return(0,U.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:r,"aria-hidden":!0,...n,children:(0,U.jsx)(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function dT({indeterminate:e,...t}){return e?(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 32 6`,"aria-hidden":!0,...t,children:(0,U.jsx)(`rect`,{width:`32`,height:`6`,fill:`currentColor`,rx:`3`})}):(0,U.jsx)(uT,{...t})}var fT={indicator:`m_5e5256ee`,icon:`m_1b1c543a`,"indicator--outline":`m_76e20374`},pT={icon:dT,variant:`filled`,radius:`sm`},mT=Bm((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=ah({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--checkbox-size":Pp(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:Ip(t),"--checkbox-color":a===`outline`?c:oh(n,e),"--checkbox-icon-color":i?oh(i,e):_h(o,e)?mh({color:n,theme:e,autoContrast:o}):void 0}}}),hT=n_(e=>{let t=ag(`CheckboxIndicator`,pT,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,icon:c,indeterminate:l,radius:u,color:d,iconColor:f,autoContrast:p,checked:m,mod:h,variant:_,disabled:v,attributes:y,...b}=t,x=Sg({name:`CheckboxIndicator`,classes:fT,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:mT,rootSelector:`indicator`}),S=(0,g.use)(oT),C=typeof l==`boolean`?l:S==null?void 0:S.indeterminate,w=typeof m==`boolean`||typeof l==`boolean`?m||l:(S==null?void 0:S.checked)||(S==null?void 0:S.indeterminate)||!1;return(0,U.jsx)(d_,{...x(`indicator`,{variant:_}),variant:_,mod:[{checked:w,disabled:v},h],...b,children:(0,U.jsx)(c,{indeterminate:C,...x(`icon`)})})});hT.displayName=`@mantine/core/CheckboxIndicator`,hT.classes=fT,hT.varsResolver=mT;var gT={root:`m_5f75b09e`,body:`m_5f6e695e`,labelWrapper:`m_d3ea56bb`,label:`m_8ee546b8`,description:`m_328f68c0`,error:`m_8e8a99cc`},_T=gT;function vT({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:i,unstyled:a,children:o,label:s,description:c,id:l,disabled:u,error:d,size:f,labelPosition:p=`left`,bodyElement:m=`div`,labelElement:h=`label`,variant:g,style:_,vars:v,mod:y,attributes:b,...x}){let S=Sg({name:e,props:t,className:n,style:_,classes:gT,classNames:r,styles:i,unstyled:a,attributes:b}),C=c?`${l}-description`:void 0,w=d&&typeof d!=`boolean`?`${l}-error`:void 0;return(0,U.jsx)(d_,{...S(`root`),__vars:{"--label-fz":Lp(f),"--label-lh":Pp(f,`label-lh`)},mod:[{"label-position":p},y],variant:g,size:f,...x,children:(0,U.jsxs)(d_,{component:m,htmlFor:m===`label`?l:void 0,...S(`body`),children:[o,(0,U.jsxs)(`div`,{...S(`labelWrapper`),"data-disabled":u||void 0,children:[s&&(0,U.jsx)(d_,{component:h,htmlFor:h===`label`?l:void 0,...S(`label`),"data-disabled":u||void 0,children:s}),c&&(0,U.jsx)(RC.Description,{id:C,size:f,__inheritStyles:!1,...S(`description`),children:c}),d&&typeof d!=`boolean`&&(0,U.jsx)(RC.Error,{id:w,size:f,__inheritStyles:!1,...S(`error`),
62children:d})]})]})})}vT.displayName=`@mantine/core/InlineInput`;var yT={root:`m_bf2d988c`,inner:`m_26062bec`,input:`m_26063560`,icon:`m_bf295423`,"input--outline":`m_215c4542`},bT={labelPosition:`right`,icon:dT,withErrorStyles:!0,variant:`filled`,radius:`sm`},xT=Bm((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=ah({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--checkbox-size":Pp(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:Ip(t),"--checkbox-color":a===`outline`?c:oh(n,e),"--checkbox-icon-color":i?oh(i,e):_h(o,e)?mh({color:n,theme:e,autoContrast:o}):void 0}}}),ST=n_(e=>{var t;let n=ag(`Checkbox`,bT,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,color:l,label:u,id:d,size:f,radius:p,wrapperProps:m,checked:h,labelPosition:_,description:v,error:y,disabled:b,variant:x,indeterminate:S,icon:C,rootRef:w,iconColor:T,onChange:E,autoContrast:D,mod:O,attributes:k,readOnly:A,onClick:j,withErrorStyles:M,ref:N,...P}=n,ee=(0,g.useRef)(null),F=(0,g.use)(nT),I=f||(F==null?void 0:F.size),te=Sg({name:`Checkbox`,props:n,classes:yT,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:k,vars:c,varsResolver:xT}),{styleProps:L,rest:ne}=kg(P),R=dm(d),re=[v?`${R}-description`:void 0,y&&typeof y!=`boolean`?`${R}-error`:void 0,ne[`aria-describedby`]].filter(Boolean).join(` `)||void 0,z={checked:(F==null?void 0:F.value.includes(ne.value))??h,onChange:e=>{A||(F==null||F.onChange(e),E==null||E(e))}},ie=(F==null||(t=F.isDisabled)==null?void 0:t.call(F,ne.value))??!1,ae=b||ie;return(0,g.useEffect)(()=>{ee.current&&(ee.current.indeterminate=S||!1,S?ee.current.setAttribute(`data-indeterminate`,`true`):ee.current.removeAttribute(`data-indeterminate`))},[S]),(0,U.jsx)(vT,{...te(`root`),__staticSelector:`Checkbox`,__stylesApiProps:n,id:R,size:I,labelPosition:_,label:u,description:v,error:y,disabled:ae,classNames:r,styles:o,unstyled:s,"data-checked":z.checked||h||void 0,variant:x,ref:w,mod:O,attributes:k,inert:ne.inert,...L,...m,children:(0,U.jsxs)(d_,{...te(`inner`),mod:{labelPosition:_},children:[(0,U.jsx)(d_,{component:`input`,id:R,ref:xm(ee,N),mod:{error:!!y,"with-error-styles":M},...te(`input`,{focusable:!0,variant:x}),...ne,...z,"aria-describedby":re,disabled:ae,inert:ne.inert,type:`checkbox`,onClick:e=>{A&&z.checked===void 0&&e.preventDefault(),j==null||j(e)}}),(0,U.jsx)(C,{indeterminate:S,...te(`icon`)})]})})});ST.classes={...yT,..._T},ST.varsResolver=xT,ST.displayName=`@mantine/core/Checkbox`,ST.Group=iT,ST.Indicator=hT,ST.Card=lT;function CT(e){return`group`in e}function wT({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a<e.length;a+=1){let o=e[a];if(i.length===n)return i;CT(o)&&i.push({group:o.group,items:wT({options:o.items,search:t,limit:n-i.length})}),CT(o)||o.label.toLowerCase().includes(r)&&i.push(o)}return i}function TT(e){if(e.length===0)return!0;for(let t of e)if(!(`group`in t)||t.items.length>0)return!1;return!0}function ET(e,t=new Set){if(Array.isArray(e))for(let n of e)if(CT(n))ET(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function DT(e,t){return Array.isArray(e)?e.includes(t):e===t}function OT({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!CT(e)){let s=DT(r,e.value),c=t&&(s?(0,U.jsx)(uT,{className:ww.optionsDropdownCheckIcon}):n?(0,U.jsx)(`div`,{className:ww.optionsDropdownCheckPlaceholder}):null),l=(0,U.jsxs)(U.Fragment,{children:[i===`left`&&c,(0,U.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,U.jsx)(eT.Option,{value:e.value,disabled:e.disabled,className:Hm({[ww.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,U.jsx)(OT,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,U.jsx)(eT.Group,{label:e.group,children:s})}function kT({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,floatingHeight:s,withScrollArea:c=!0,filterOptions:l=!0,withCheckIcon:u=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:_,scrollAreaProps:v,"aria-label":y}){let b=kw();ET(e);let x=typeof i==`string`?(r||wT)({options:e,search:l?i:``,limit:a??1/0}):e,S=TT(x),C=x.map((e,t)=>(0,U.jsx)(OT,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},CT(e)?`group-${typeof e.group==`string`?e.group:t}`:`${e.value}`));return(0,U.jsx)(eT.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,U.jsxs)(eT.Options,{labelledBy:g,"aria-label":y,children:[c?(0,U.jsx)(Mb.Autosize,{mah:(s??b.floatingHeight)===`viewport`?`var(--combobox-floating-options-max-height)`:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...v,children:C}):C,S&&m&&(0,U.jsx)(eT.Empty,{children:m})]})})}var AT={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},jT={orientation:`horizontal`},MT=Bm((e,{borderWidth:t})=>({group:{"--button-border-width":W(t)}})),NT=n_(e=>{let t=ag(`ButtonGroup`,jT,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=ag(`ButtonGroup`,jT,e),p=Sg({name:`ButtonGroup`,props:t,classes:AT,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:MT,rootSelector:`group`});return(0,U.jsx)(d_,{...p(`group`),mod:[{orientation:s},u],role:`group`,...f})});NT.classes=AT,NT.varsResolver=MT,NT.displayName=`@mantine/core/ButtonGroup`;var PT=Bm((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":Pp(o,`section-height`),"--section-padding-x":Pp(o,`section-padding-x`),"--section-fz":o!=null&&o.includes(`compact`)?Lp(o.replace(`compact-`,``)):Lp(o),"--section-radius":t===void 0?void 0:Ip(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),FT=n_(e=>{let t=ag(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t,p=Sg({name:`ButtonGroupSection`,props:t,classes:AT,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:PT,rootSelector:`groupSection`});return(0,U.jsx)(d_,{...p(`groupSection`),...f})});FT.classes=AT,FT.varsResolver=PT,FT.displayName=`@mantine/core/ButtonGroupSection`;var IT={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${W(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},LT=Bm((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":Pp(a,`button-height`),"--button-padding-x":Pp(a,`button-padding-x`),"--button-fz":a!=null&&a.includes(`compact`)?Lp(a.replace(`compact-`,``)):Lp(a),"--button-radius":t===void 0?void 0:Ip(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}
62),RT=i_(e=>{let t=ag(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=Sg({name:`Button`,props:t,classes:AT,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:LT}),T=!!c,E=!!l;return(0,U.jsxs)(Ib,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,U.jsx)(ux,{mounted:p,transition:IT,duration:150,children:e=>(0,U.jsx)(d_,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,U.jsx)(Px,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,U.jsxs)(`span`,{...w(`inner`),children:[c&&(0,U.jsx)(d_,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,U.jsx)(d_,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,U.jsx)(d_,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});RT.classes=AT,RT.varsResolver=LT,RT.displayName=`@mantine/core/Button`,RT.Group=NT,RT.GroupSection=FT;var[zT,BT]=kp(`Card component was not found in tree`),VT={root:`m_e615b15f`,section:`m_599a2148`},HT=i_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,withBorder:o,inheritPadding:s,mod:c,...l}=ag(`CardSection`,null,e),u=BT();return(0,U.jsx)(d_,{mod:[{"with-border":o,"inherit-padding":s},c],...u.getStyles(`section`,{className:n,style:r,styles:i,classNames:t}),...l})});HT.classes=VT,HT.displayName=`@mantine/core/CardSection`;var UT=Bm((e,{padding:t})=>({root:{"--card-padding":Fp(t)}})),WT={orientation:`vertical`},GT=i_(e=>{let t=ag(`Card`,WT,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,padding:l,attributes:u,orientation:d,...f}=t,p=Sg({name:`Card`,props:t,classes:VT,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:UT}),m=g.Children.toArray(c),h=m.map((e,t)=>{var n;return typeof e==`object`&&e&&`type`in e&&(e.type===HT||((n=e.type)==null?void 0:n.displayName)===`@mantine/core/CardSection`)?(0,g.cloneElement)(e,{"data-orientation":d,"data-first-section":t===0||void 0,"data-last-section":t===m.length-1||void 0}):e});return(0,U.jsx)(zT,{value:{getStyles:p},children:(0,U.jsx)(Vb,{unstyled:o,"data-orientation":d,...p(`root`),...f,children:h})})});GT.classes=VT,GT.varsResolver=UT,GT.displayName=`@mantine/core/Card`,GT.Section=HT;function KT(e){let t=e.currentTarget;return Rm(t).activeElement!==t}var qT={root:`m_4451eb3a`},JT=i_(e=>{let t=ag(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:c,mod:l,attributes:u,...d}=t,f=Sg({name:`Center`,props:t,classes:qT,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s});return(0,U.jsx)(d_,{mod:[{inline:c},l],...f(`root`),...d})});JT.classes=qT,JT.displayName=`@mantine/core/Center`;var YT={root:`m_7485cace`},XT={strategy:`block`},ZT=Bm((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:Pp(t,`container-size`)}})),QT=n_(e=>{let t=ag(`Container`,XT,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fluid:c,mod:l,attributes:u,strategy:d,...f}=t,p=Sg({name:`Container`,classes:YT,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:ZT});return(0,U.jsx)(d_,{mod:[{fluid:c,strategy:d},l],...p(`root`),...f})});QT.classes=YT,QT.varsResolver=ZT,QT.displayName=`@mantine/core/Container`;var[$T,eE]=kp(`Drawer component was not found in tree`),tE={root:`m_f11b401e`,header:`m_5a7c2c9`,content:`m_b8a05bbd`,inner:`m_31cd769a`},nE=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`DrawerBody`,null,e),s=eE();return(0,U.jsx)(oC,{...s.getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});nE.classes=tE,nE.displayName=`@mantine/core/DrawerBody`;var rE=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`DrawerCloseButton`,null,e),s=eE();return(0,U.jsx)(sC,{...s.getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});rE.classes=tE,rE.displayName=`@mantine/core/DrawerCloseButton`;var iE=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,radius:s,__hidden:c,...l}=ag(`DrawerContent`,null,e),u=eE(),d=u.scrollAreaComponent||hC;return(0,U.jsx)(cC,{...u.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:u.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),...l,radius:s||u.radius||0,"data-hidden":c||void 0,children:(0,U.jsx)(d,{style:{height:`calc(100vh - var(--drawer-offset) * 2)`},children:o})})});iE.classes=tE,iE.displayName=`@mantine/core/DrawerContent`;var aE=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`DrawerHeader`,null,e),s=eE();return(0,U.jsx)(lC,{...s.getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});aE.classes=tE,aE.displayName=`@mantine/core/DrawerHeader`;var oE=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`DrawerOverlay`,null,e),s=eE();return(0,U.jsx)(fC,{...s.getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});oE.classes=tE,oE.displayName=`@mantine/core/DrawerOverlay`;function sE(e){switch(e){case`top`:return`flex-start`;case`bottom`:return`flex-end`;default:return}}function cE(e){if(e===`top`||e===`bottom`)return`0 0 calc(100% - var(--drawer-offset, 0rem) * 2)`}var lE={top:`slide-down`,bottom:`slide-up`,left:`slide-right`,right:`slide-left`},uE={top:`slide-down`,bottom:`slide-up`,right:`slide-right`,left:`slide-left`},dE={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:jp(`modal`),position:`left`},fE=Bm((e,{position:t,size:n,offset:r})=>
62({root:{"--drawer-size":Pp(n,`drawer-size`),"--drawer-flex":cE(t),"--drawer-height":t===`left`||t===`right`?void 0:`var(--drawer-size)`,"--drawer-align":sE(t),"--drawer-justify":t===`right`?`flex-end`:void 0,"--drawer-offset":W(r)}})),pE=n_(e=>{let t=ag(`DrawerRoot`,dE,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,scrollAreaComponent:c,position:l,transitionProps:u,radius:d,attributes:f,...p}=t,{dir:m}=p_(),h=Sg({name:`Drawer`,classes:tE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:fE}),g=(m===`rtl`?uE:lE)[l];return(0,U.jsx)($T,{value:{scrollAreaComponent:c,getStyles:h,radius:d},children:(0,U.jsx)(rC,{...h(`root`),transitionProps:{transition:g,...u},"data-offset-scrollbars":c===Mb.Autosize||void 0,unstyled:o,...p})})});pE.classes=tE,pE.varsResolver=fE,pE.displayName=`@mantine/core/DrawerRoot`;var mE=(0,g.createContext)(null);function hE({children:e}){let[t,n]=(0,g.useState)([]),[r,i]=(0,g.useState)(jp(`modal`));return(0,U.jsx)(mE,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}hE.displayName=`@mantine/core/DrawerStack`;var gE=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`DrawerTitle`,null,e),s=eE();return(0,U.jsx)(mC,{...s.getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});gE.classes=tE,gE.displayName=`@mantine/core/DrawerTitle`;var _E={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:jp(`modal`),withOverlay:!0,withCloseButton:!0},vE=n_(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,opened:s,stackId:c,zIndex:l,...u}=ag(`Drawer`,_E,e),d=(0,g.use)(mE),f=!!t||i,p=d&&c?{closeOnEscape:d.currentId===c,trapFocus:d.currentId===c,zIndex:d.getZIndex(c)}:{},m=n===!1?!1:c&&d?d.currentId===c:s;return(0,g.useEffect)(()=>{d&&c&&(s?d.addModal(c,l||jp(`modal`)):d.removeModal(c))},[s,c,l]),(0,U.jsxs)(pE,{opened:s,zIndex:d&&c?d.getZIndex(c):l,...u,...p,children:[n&&(0,U.jsx)(oE,{visible:m,transitionProps:d&&c?{duration:0}:void 0,...r}),(0,U.jsxs)(iE,{__hidden:d&&c&&s?c!==d.currentId:!1,children:[f&&(0,U.jsxs)(aE,{children:[t&&(0,U.jsx)(gE,{children:t}),i&&(0,U.jsx)(rE,{...a})]}),(0,U.jsx)(nE,{children:o})]})]})});vE.classes=tE,vE.displayName=`@mantine/core/Drawer`,vE.Root=pE,vE.Overlay=oE,vE.Content=iE,vE.Body=nE,vE.Header=aE,vE.Title=gE,vE.CloseButton=rE,vE.Stack=hE;var[yE,bE]=kp(`Grid component was not found in tree`),xE=(e,t)=>{if(e===`content`)return`auto`;if(e===`auto`)return`0rem`;if(e)return e===t?`100%`:`calc(${100*e/t}% - ${(t-e)/t} * var(--grid-column-gap))`},SE=(e,t,n)=>n||e===`auto`?`100%`:e===`content`?`unset`:xE(e,t),CE=(e,t)=>{if(e)return e===`auto`||t?`1`:`auto`},wE=(e,t)=>{if(e===0)return`0`;if(e)return`calc(${100*e/t}% + ${e/t} * var(--grid-column-gap))`};function TE({span:e,order:t,offset:n,align:r,selector:i}){var a;let o=Vh(),s=bE(),c=s.breakpoints||o.breakpoints,l=Up(e),u=l===void 0?12:l,d=Ep({"--col-order":(a=Up(t))==null?void 0:a.toString(),"--col-flex-grow":CE(u,s.grow),"--col-flex-basis":xE(u,s.columns),"--col-width":u===`content`?`auto`:void 0,"--col-max-width":SE(u,s.columns,s.grow),"--col-offset":wE(Up(n),s.columns),"--col-align-self":Up(r)}),f=_p(c).reduce((i,a)=>{var o;return i[a]||(i[a]={}),typeof t==`object`&&t[a]!==void 0&&(i[a][`--col-order`]=(o=t[a])==null?void 0:o.toString()),typeof e==`object`&&e[a]!==void 0&&(i[a][`--col-flex-grow`]=CE(e[a],s.grow),i[a][`--col-flex-basis`]=xE(e[a],s.columns),i[a][`--col-width`]=e[a]===`content`?`auto`:void 0,i[a][`--col-max-width`]=SE(e[a],s.columns,s.grow)),typeof n==`object`&&n[a]!==void 0&&(i[a][`--col-offset`]=wE(n[a],s.columns)),typeof r==`object`&&r[a]!==void 0&&(i[a][`--col-align-self`]=r[a]),i},{}),p=Hp(_p(f),c).filter(e=>_p(f[e.value]).length>0).map(e=>({query:s.type===`container`?`mantine-grid (min-width: ${c[e.value]})`:`(min-width: ${c[e.value]})`,styles:f[e.value]}));return(0,U.jsx)(Eg,{styles:d,media:s.type===`container`?void 0:p,container:s.type===`container`?p:void 0,selector:i})}var EE={container:`m_8478a6da`,root:`m_410352e9`,inner:`m_dee7bd2f`,col:`m_96bdd299`},DE={span:12}
62,OE=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,span:o,order:s,offset:c,align:l,...u}=ag(`GridCol`,DE,e),d=bE(),f=Qg();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(TE,{selector:`.${f}`,span:o,order:s,offset:c,align:l}),(0,U.jsx)(d_,{...d.getStyles(`col`,{className:Hm(n,f),style:r,classNames:t,styles:i}),...u})]})});OE.classes=EE,OE.displayName=`@mantine/core/GridCol`;function kE({gap:e,rowGap:t,columnGap:n,selector:r,breakpoints:i,type:a}){let o=Vh(),s=i||o.breakpoints,c=Ep({"--grid-gap":Fp(Up(e)),"--grid-row-gap":Fp(Up(t)),"--grid-column-gap":Fp(Up(n))}),l=_p(s).reduce((r,i)=>(r[i]||(r[i]={}),typeof e==`object`&&e[i]!==void 0&&(r[i][`--grid-gap`]=Fp(e[i])),typeof t==`object`&&t[i]!==void 0&&(r[i][`--grid-row-gap`]=Fp(t[i])),typeof n==`object`&&n[i]!==void 0&&(r[i][`--grid-column-gap`]=Fp(n[i])),r),{}),u=Hp(_p(l),s).filter(e=>_p(l[e.value]).length>0).map(e=>({query:a===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:l[e.value]}));return(0,U.jsx)(Eg,{styles:c,media:a===`container`?void 0:u,container:a===`container`?u:void 0,selector:r})}var AE={gap:`md`,columns:12},jE=Bm((e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}})),ME=n_(e=>{let t=ag(`Grid`,AE,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,grow:c,gap:l,rowGap:u,columnGap:d,columns:f,align:p,justify:m,children:h,breakpoints:g,type:_,attributes:v,...y}=t,b=Sg({name:`Grid`,classes:EE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:jE}),x=Qg();return _===`container`&&g?(0,U.jsxs)(yE,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,U.jsx)(kE,{selector:`.${x}`,...t}),(0,U.jsx)(`div`,{...b(`container`),children:(0,U.jsx)(d_,{...b(`root`,{className:x}),...y,children:(0,U.jsx)(`div`,{...b(`inner`),children:h})})})]}):(0,U.jsxs)(yE,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,U.jsx)(kE,{selector:`.${x}`,...t}),(0,U.jsx)(d_,{...b(`root`,{className:x}),...y,children:(0,U.jsx)(`div`,{...b(`inner`),children:h})})]})});ME.classes=EE,ME.varsResolver=jE,ME.displayName=`@mantine/core/Grid`,ME.Col=OE;var NE={root:`m_9e117634`},PE=Bm((e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:Ip(t),"--image-object-fit":n}})),FE=i_(e=>{let t=ag(`Image`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,onError:c,src:l,radius:u,fit:d,fallbackSrc:f,mod:p,attributes:m,...h}=t,[_,v]=(0,g.useState)(!l);(0,g.useEffect)(()=>v(!l),[l]);let y=Sg({name:`Image`,classes:NE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:s,varsResolver:PE});return _&&f?(0,U.jsx)(d_,{component:`img`,src:f,...y(`root`),onError:c,mod:[`fallback`,p],...h}):(0,U.jsx)(d_,{component:`img`,...y(`root`),src:l,onError:e=>{c==null||c(e),v(!0)},mod:p,...h})});FE.classes=NE,FE.varsResolver=PE,FE.displayName=`@mantine/core/Image`;var IE=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],LE={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function RE(e){Object.keys(LE).forEach(t=>{e.style.setProperty(t,LE[t],`important`)})}function zE(e){let t=window.getComputedStyle(e);if(t===null)return null;let n={};for(let e of IE)n[e]=t[e];return n.boxSizing===``?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}var BE=null;function VE(e,t,n=1,r=1/0){BE||(BE=document.createElement(`textarea`),BE.setAttribute(`tabindex`,`-1`),BE.setAttribute(`aria-hidden`,`true`),BE.setAttribute(`aria-label`,`autosize measurement`),RE(BE)),BE.parentNode===null&&document.body.appendChild(BE);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;
62Object.keys(o).forEach(e=>{BE.style[e]=o[e]}),RE(BE),BE.value=t;let c=s===`border-box`?BE.scrollHeight+a:BE.scrollHeight-i;BE.value=t,c=s===`border-box`?BE.scrollHeight+a:BE.scrollHeight-i,BE.value=`x`;let l=BE.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);let d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function HE({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,g.useRef)(null),s=xm(o,r),c=(0,g.useRef)(0),l=(0,g.useRef)(0),u=()=>{let n=o.current;if(!n)return;let r=zE(n);if(!r)return;let[i]=VE(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},d=e=>{a||u(),n==null||n(e)};return(0,g.useLayoutEffect)(u),(0,g.useEffect)(()=>{let e=()=>u();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,g.useEffect)(()=>{let e=o.current;if(!e||typeof ResizeObserver>`u`)return;l.current=e.offsetWidth;let t=new ResizeObserver(()=>{o.current&&o.current.offsetWidth!==l.current&&(l.current=o.current.offsetWidth,u())});return t.observe(e),()=>t.disconnect()},[]),(0,g.useEffect)(()=>{let e=()=>u();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,g.useEffect)(()=>{let e=e=>{var t;if(((t=o.current)==null?void 0:t.form)===e.target&&!a){let e=o.current.value;requestAnimationFrame(()=>{o.current&&e!==o.current.value&&u()})}};return document.body.addEventListener(`reset`,e),()=>document.body.removeEventListener(`reset`,e)},[a]),(0,U.jsx)(`textarea`,{rows:t,...i,onChange:d,ref:s})}var UE=n_(e=>{let{autosize:t,maxRows:n,minRows:r,__staticSelector:i,resize:a,bottomSection:o,bottomSectionProps:s,...c}=ag([`Input`,`InputWrapper`,`Textarea`],null,e),l=t&&Nm()!==`test`,u=l?{maxRows:n,minRows:r}:{};return(0,U.jsx)(VC,{component:l?HE:`textarea`,...c,__staticSelector:i||`Textarea`,__bottomSection:o,__bottomSectionProps:s,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...u})});UE.classes=VC.classes,UE.displayName=`@mantine/core/Textarea`;var WE={root:`m_6e45937b`,loader:`m_e8eb006c`,overlay:`m_df587f17`},GE={transitionProps:{transition:`fade`,duration:0},overlayProps:{backgroundOpacity:.75},zIndex:jp(`overlay`)},KE=Bm((e,{zIndex:t})=>({root:{"--lo-z-index":t==null?void 0:t.toString()}})),qE=n_(e=>{let t=ag(`LoadingOverlay`,GE,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,transitionProps:c,loaderProps:l,overlayProps:u,visible:d,zIndex:f,attributes:p,onEnter:m,onEntered:h,onExit:g,onExited:_,...v}=t,y=Vh(),b=Sg({name:`LoadingOverlay`,classes:WE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:KE}),x={...GE.overlayProps,...u};return(0,U.jsx)(ux,{transition:`fade`,...c,mounted:!!d,onEnter:m,onEntered:h,onExit:g,onExited:_,children:e=>(0,U.jsxs)(d_,{...b(`root`,{style:e}),...v,children:[(0,U.jsx)(Px,{unstyled:o,...l,...b(`loader`,{className:l==null?void 0:l.className,style:l==null?void 0:l.style})}),(0,U.jsx)($b,{...x,...b(`overlay`,{className:x==null?void 0:x.className,style:x==null?void 0:x.style}),darkHidden:!0,unstyled:o,color:(u==null?void 0:u.color)||y.white}),(0,U.jsx)($b,{...x,...b(`overlay`,{className:x==null?void 0:x.className,style:x==null?void 0:x.style}),lightHidden:!0,unstyled:o,color:(u==null?void 0:u.color)||y.colors.dark[5]})]})})});qE.classes=WE,qE.varsResolver=KE,qE.displayName=`@mantine/core/LoadingOverlay`;function JE({size:e,style:t,...n}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 5 5`,style:{width:W(e),height:W(e),...t},"aria-hidden":!0,...n,children:(0,U.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var[YE,XE]=kp(`Modal component was not found in tree`),ZE={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},QE=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`ModalBody`,null,e),s=XE();return(0,U.jsx)(oC,{...s.getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});QE.classes=ZE,QE.displayName=`@mantine/core/ModalBody`;var $E=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`ModalCloseButton`,null,e),s=XE();return(0,U.jsx)(sC,{...s.getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});$E.classes=ZE,$E.displayName=`@mantine/core/ModalCloseButton`;var eD=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=ag(`ModalContent`,null,e),l=XE(),u=l.scrollAreaComponent||hC;return(0,U.jsx)(cC,{...l.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:l.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),"data-full-screen":l.fullScreen||void 0,"data-modal-content":!0,"data-hidden":s||void 0,...c,children:(0,U.jsx)(u,{style:{maxHeight:l.fullScreen?`100dvh`:`calc(100dvh - (${W(l.yOffset)} * 2))`},children:o})})});eD.classes=ZE,eD.displayName=`@mantine/core/ModalContent`;var tD=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`ModalHeader`,null,e),s=XE();return(0,U.jsx)(lC,{...s.getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});tD.classes=ZE,tD.displayName=`@mantine/core/ModalHeader`;var nD=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`ModalOverlay`,null,e),s=XE();return(0,U.jsx)(fC,{...s.getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});nD.classes=ZE,nD.displayName=`@mantine/core/ModalOverlay`;var rD={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:jp(`modal`),transitionProps:{duration:200,transition:`fade-
62down`},yOffset:`5dvh`},iD=Bm((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:Ip(t),"--modal-size":Pp(n,`modal-size`),"--modal-y-offset":W(r),"--modal-x-offset":W(i)}})),aD=n_(e=>{let t=ag(`ModalRoot`,rD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,yOffset:c,scrollAreaComponent:l,radius:u,fullScreen:d,centered:f,xOffset:p,__staticSelector:m,attributes:h,...g}=t,_=Sg({name:m,classes:ZE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:iD});return(0,U.jsx)(YE,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,U.jsx)(rC,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===Mb.Autosize||void 0,unstyled:o,...g})})});aD.classes=ZE,aD.varsResolver=iD,aD.displayName=`@mantine/core/ModalRoot`;var oD=(0,g.createContext)(null);function sD({children:e}){let[t,n]=(0,g.useState)([]),[r,i]=(0,g.useState)(jp(`modal`));return(0,U.jsx)(oD,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}sD.displayName=`@mantine/core/ModalStack`;var cD=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=ag(`ModalTitle`,null,e),s=XE();return(0,U.jsx)(mC,{...s.getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});cD.classes=ZE,cD.displayName=`@mantine/core/ModalTitle`;var lD={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:jp(`modal`),transitionProps:{duration:200,transition:`fade-
62down`},withOverlay:!0,withCloseButton:!0},uD=n_(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,radius:s,opened:c,stackId:l,zIndex:u,...d}=ag(`Modal`,lD,e),f=(0,g.use)(oD),p=!!t||i,m=f&&l?{closeOnEscape:f.currentId===l,trapFocus:f.currentId===l,zIndex:f.getZIndex(l)}:{},h=n===!1?!1:l&&f?f.currentId===l:c;return(0,g.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||jp(`modal`)):f.removeModal(l))},[c,l,u]),(0,U.jsxs)(aD,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,U.jsx)(nD,{visible:h,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,U.jsxs)(eD,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,U.jsxs)(tD,{children:[t&&(0,U.jsx)(cD,{children:t}),i&&(0,U.jsx)($E,{...a})]}),(0,U.jsx)(QE,{children:o})]})]})});uD.classes=ZE,uD.displayName=`@mantine/core/Modal`,uD.Root=aD,uD.Overlay=nD,uD.Content=eD,uD.Body=QE,uD.Header=tD,uD.Title=cD,uD.CloseButton=$E,uD.Stack=sD;function dD(e,t){let n=t.trim().toLowerCase();if(n===``)return;let r=Object.values(e).filter(e=>!e.disabled&&e.label.trim().toLowerCase()===n);return r.length===1?r[0]:void 0}var fD=(0,g.createContext)(null),pD=r_((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,name:s,readOnly:c,disabled:l,...u}=ag(`RadioGroup`,null,e),d=dm(s),[f,p]=Cm({value:t,defaultValue:n,finalValue:``,onChange:r});return(0,U.jsx)(fD,{value:{value:f,onChange:e=>!c&&p(typeof e==`string`?e:e.currentTarget.value),size:i,name:d,disabled:l},children:(0,U.jsx)(RC.Wrapper,{size:i,...a,...u,labelElement:`div`,__staticSelector:`RadioGroup`,children:(0,U.jsx)(tT,{role:`radiogroup`,children:o})})})}));pD.classes=RC.Wrapper.classes,pD.displayName=`@mantine/core/RadioGroup`;var mD={card:`m_9dc8ae12`},hD=(0,g.createContext)(null),gD={withBorder:!0},_D=Bm((e,{radius:t})=>({card:{"--card-radius":Ip(t)}})),vD=n_(e=>{let t=ag(`RadioCard`,gD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,checked:c,mod:l,withBorder:u,value:d,onClick:f,name:p,onKeyDown:m,attributes:h,..._}=t,v=Sg({name:`RadioCard`,classes:mD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:_D,rootSelector:`card`}),{dir:y}=p_(),b=(0,g.use)(fD),x=typeof c==`boolean`?c:(b==null?void 0:b.value)===d||!1,S=p||(b==null?void 0:b.name),C=e=>{if(m==null||m(e),S&&[`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`].includes(e.nativeEvent.code)){e.preventDefault();let t=Array.from(document.querySelectorAll(`[role="radio"][name="${S}"]`)),n=t.findIndex(t=>t===e.target),r=n+1>=t.length?0:n+1,i=n-1<0?t.length-1:n-1;e.nativeEvent.code===`ArrowDown`&&(t[r].focus(),t[r].click()),e.nativeEvent.code===`ArrowUp`&&(t[i].focus(),t[i].click()),e.nativeEvent.code===`ArrowLeft`&&(t[y===`ltr`?i:r].focus(),t[y===`ltr`?i:r].click()),e.nativeEvent.code===`ArrowRight`&&(t[y===`ltr`?r:i].focus(),t[y===`ltr`?r:i].click())}};return(0,U.jsx)(hD,{value:{checked:x},children:(0,U.jsx)(Ib,{mod:[{"with-border":u,checked:x},l],...v(`card`),..._,role:`radio`,"aria-checked":x,name:S,onClick:e=>{f==null||f(e),b==null||b.onChange(d||``)},onKeyDown:C})})});vD.displayName=`@mantine/core/RadioCard`,vD.classes=mD,vD.varsResolver=_D;var yD={indicator:`m_717d7ff6`,icon:`m_3e4da632`,"indicator--outline":`m_2980836c`},bD={icon:JE},xD=Bm((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=ah({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--radio-size":Pp(r,`radio-size`),"--radio-radius":t===void 0?void 0:Ip(t),"--radio-color":a===`outline`?c:oh(n,e),"--radio-icon-size":typeof r==`number`?`calc(${Pp(r,`radio-size`)} * 0.4)`:Pp(r,`radio-icon-size`),"--radio-icon-color":i?oh(i,e):_h(o,e)?mh({color:n,theme:e,autoContrast:o}):void 0}}}),SD=n_(e=>{let t=ag(`RadioIndicator`,bD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,icon:c,radius:l,color:u,iconColor:d,autoContrast:f,checked:p,mod:m,variant:h,disabled:_,attributes:v,...y}=t,b=Sg({name:`RadioIndicator`,classes:yD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:xD,rootSelector:`indicator`}),x=(0,g.use)(hD),S=typeof p==`boolean`?p:(x==null?void 0:x.checked)||!1;return(0,U.jsx)(d_,{...b(`indicator`,{variant:h}),variant:h,mod:[{checked:S,disabled:_},m],...y,children:(0,U.jsx)(c,{...b(`icon`)})})});SD.displayName=`@mantine/core/RadioIndicator`,SD.classes=yD,SD.varsResolver=xD;var CD={root:`m_f3f1af94`,inner:`m_89c4f5e4`,icon:`m_f3ed6b2b`,radio:`m_8a3dbb89`,"radio--outline":`m_1bfe9d39`},wD={labelPosition:`right`,withErrorStyles:!0},TD=Bm((e,{size:t,radius:n,color:r,iconColor:i,variant:a,autoContrast:o})=>{let s=ah({color:r||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--radio-size":Pp(t,`radio-size`),"--radio-radius":n===void 0?void 0:Ip(n),"--radio-color":a===`outline`?c:oh(r,e),"--radio-icon-color":i?oh(i,e):_h(o,e)?mh({color:r,theme:e,autoContrast:o}):void 0,"--radio-icon-size":Pp(t,`radio-icon-size`)}}}),ED=n_(e=>{let t=ag(`Radio`,wD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,id:c,size:l,label:u,labelPosition:d,description:f,error:p,radius:m,color:h,variant:_,disabled:v,wrapperProps:y,icon:b=JE,rootRef:x,iconColor:S,onChange:C,mod:w,attributes:T,withErrorStyles:E,checked:D,...O}=t,k=Sg({name:`Radio`,classes:CD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:s,varsResolver:TD}),A=(0,g.use)(fD),j=(A==null?void 0:A.size)??l,M=t.size?l:j,{styleProps:N,rest:P}=kg(O),ee=dm(c),F=[f?`${ee}-description`:void 0,p&&typeof p!=`boolean`?`${ee}
62-error`:void 0,P[`aria-describedby`]].filter(Boolean).join(` `)||void 0,I=A?A.value===P.value:void 0,te={checked:I??D,name:P.name??(A==null?void 0:A.name),onChange:e=>{A==null||A.onChange(e),C==null||C(e)},disabled:(A==null?void 0:A.disabled)??v};return(0,U.jsx)(vT,{...k(`root`),__staticSelector:`Radio`,__stylesApiProps:t,id:ee,size:M,labelPosition:d,label:u,description:f,error:p,disabled:te.disabled,classNames:n,styles:a,unstyled:o,"data-checked":(I??D)||void 0,variant:_,ref:x,mod:w,attributes:T,...N,...y,children:(0,U.jsxs)(d_,{...k(`inner`),mod:{"label-position":d},children:[(0,U.jsx)(d_,{...k(`radio`,{focusable:!0,variant:_}),...P,...te,component:`input`,mod:{error:!!p,"with-error-styles":E},id:ee,type:`radio`,"aria-describedby":F}),(0,U.jsx)(b,{...k(`icon`),"aria-hidden":!0})]})})});ED.classes=CD,ED.varsResolver=TD,ED.displayName=`@mantine/core/Radio`,ED.Group=pD,ED.Card=vD,ED.Indicator=SD;var DD={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},OD=r_(e=>{let t=ag([`Input`,`InputWrapper`,`Select`],DD,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:h,defaultValue:_,selectFirstOptionOnChange:v,selectFirstOptionOnDropdownOpen:y,onOptionSubmit:b,comboboxProps:x,readOnly:S,disabled:C,filter:w,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,size:k,searchable:A,rightSection:j,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:ee,name:F,form:I,searchValue:te,defaultSearchValue:L,onSearchChange:ne,allowDeselect:R,error:re,rightSectionPointerEvents:z,id:ie,clearable:ae,clearSectionMode:oe,clearButtonProps:se,hiddenInputProps:ce,renderOption:le,onClear:ue,autoComplete:B,scrollAreaProps:de,__defaultRightSection:fe,__clearSection:pe,__clearable:me,chevronColor:he,autoSelectOnBlur:ge,openOnFocus:_e,attributes:ve,...ye}=t,be=(0,g.useMemo)(()=>Sw(m),[m]),xe=(0,g.useRef)({}),Se=(0,g.useMemo)(()=>Cw(be),[be]),Ce=dm(ie),[we,Te,Ee]=Cm({value:h,defaultValue:_,finalValue:null,onChange:p}),De=we==null?void 0:`${we}`in Se?Se[`${we}`]:xe.current[`${we}`],Oe=Em(De),[ke,Ae,je]=Cm({value:te,defaultValue:L,finalValue:De?De.label:``,onChange:ne}),Me=Zw({opened:o,defaultOpened:s,onDropdownOpen:()=>{l==null||l(),y?Me.selectFirstOption():Me.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c==null||c(),setTimeout(Me.resetSelectedOption,0)}}),Ne=e=>{Ae(e),Me.resetSelectedOption()},{resolvedClassNames:Pe,resolvedStyles:Fe}=cg({props:t,styles:r,classNames:n});(0,g.useEffect)(()=>{v&&Me.selectFirstOption()},[v,ke]),(0,g.useEffect)(()=>{h===null&&Ne(``),h!=null&&De&&((Oe==null?void 0:Oe.value)!==De.value||(Oe==null?void 0:Oe.label)!==De.label)&&Ne(De.label)},[h,De]),(0,g.useEffect)(()=>{var e,t;!Ee&&!je&&Ne(we==null?``:`${we}`in Se?(e=Se[`${we}`])==null?void 0:e.label:((t=xe.current[`${we}`])==null?void 0:t.label)||``)},[Se,we]),(0,g.useEffect)(()=>{we&&`${we}`in Se&&(xe.current[`${we}`]=Se[`${we}`])},[Se,we]);let Ie=(0,U.jsx)(eT.ClearButton,{...se,onClear:()=>{Te(null,null),Ne(``),ue==null||ue()}}),Le=ae&&we!=null&&!C&&!S;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(eT,{store:Me,__staticSelector:`Select`,classNames:Pe,styles:Fe,unstyled:i,readOnly:S,size:k,attributes:ve,floatingHeight:O,keepMounted:ge,onOptionSubmit:e=>{b==null||b(e);let t=R&&`${Se[e].value}`==`${we}`?null:Se[e],n=t?t.value:null;n!==we&&Te(n,t),!Ee&&Ne(n==null?``:(t==null?void 0:t.label)||``),Me.closeDropdown()},...x,children:[(0,U.jsx)(eT.Target,{targetType:A?`input`:`button`,autoComplete:B,withExpandedAttribute:!0,children:(0,U.jsx)(VC,{id:Ce,__defaultRightSection:(0,U.jsx)(eT.Chevron,{size:k,error:re,unstyled:i,color:he}),__clearSection:Ie,__clearable:Le,__clearSectionMode:oe,rightSection:j,rightSectionPointerEvents:z||`none`,...ye,size:k,__staticSelector:`Select`,disabled:C,readOnly:S||!A,value:ke,onChange:e=>{if(KT(e)){if(!S){let t=dD(Se,e.currentTarget.value);t&&`${t.value}`!=`${we}`&&(Te(t.value,t),!Ee&&Ne(t.label))}return}Ne(e.currentTarget.value),Me.openDropdown(),v&&Me.selectFirstOption()},onFocus:e=>{_e&&A&&Me.openDropdown(),u==null||u(e)},onBlur:e=>{ge&&Me.clickSelectedOption(),A&&Me.closeDropdown();let t=we!=null&&(`${we}`in Se?Se[`${we}`]:xe.current[`${we}`]);Ne(t&&t.label||``),d==null||d(e)},onClick:e=>{A?Me.openDropdown():Me.toggleDropdown(),f==null||f(e)},classNames:Pe,styles:Fe,unstyled:i,pointer:!A,error:re,attributes:ve})}),(0,U.jsx)(kT,{data:be,hidden:S||C,filter:w,search:ke,limit:T,hiddenWhenEmpty:!ee,withScrollArea:E,maxDropdownHeight:D,filterOptions:!!A&&(De==null?void 0:De.label)!==ke,value:we,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:ee,unstyled:i,labelId:ye.label?`${Ce}-label`:void 0,"aria-label":ye.label?void 0:ye[`aria-label`],renderOption:le,scrollAreaProps:de})]}),(0,U.jsx)(eT.HiddenInput,{value:we,name:F,form:I,disabled:C,...ce})]})});OD.classes={...VC.classes,...eT.classes},OD.displayName=`@mantine/core/Select`;function kD(e){if(e!==void 0)return typeof e==`number`?W(e):e}function AD({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){var o;let s=Vh(),c=t===void 0?e:t,l=r!==void 0,u=Ep({"--sg-spacing-x":Fp(Up(e)),"--sg-spacing-y":Fp(Up(c)),"--sg-auto-rows":i,...l?{"
62--sg-min-col-width":kD(r)}:{"--sg-cols":(o=Up(n))==null?void 0:o.toString()}}),d=_p(s.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=Fp(e[r])),typeof c==`object`&&c[r]!==void 0&&(t[r][`--sg-spacing-y`]=Fp(c[r])),!l&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),f=Hp(_p(d),s.breakpoints).filter(e=>_p(d[e.value]).length>0).map(e=>({query:`(min-width: ${s.breakpoints[e.value]})`,styles:d[e.value]}));return(0,U.jsx)(Eg,{styles:u,media:f,selector:a})}function jD(e){return typeof e==`object`&&e?_p(e):[]}function MD(e){return e.sort((e,t)=>Sp(e)-Sp(t))}function ND({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return MD(Array.from(new Set([...jD(e),...jD(t),...r===void 0?jD(n):[]])))}function PD({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){var o;let s=t===void 0?e:t,c=r!==void 0,l=Ep({"--sg-spacing-x":Fp(Up(e)),"--sg-spacing-y":Fp(Up(s)),"--sg-auto-rows":i,...c?{"--sg-min-col-width":kD(r)}:{"--sg-cols":(o=Up(n))==null?void 0:o.toString()}}),u=ND({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}),d=u.reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=Fp(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=Fp(s[r])),!c&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),f=u.map(e=>({query:`simple-grid (min-width: ${e})`,styles:d[e]}));return(0,U.jsx)(Eg,{styles:l,container:f,selector:a})}var FD={container:`m_925c2d2c`,root:`m_2415a157`},ID={cols:1,spacing:`md`,type:`media`},LD=n_(e=>{let t=ag(`SimpleGrid`,ID,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,cols:c,verticalSpacing:l,spacing:u,type:d,minColWidth:f,autoFlow:p,autoRows:m,attributes:h,...g}=t,_=Sg({name:`SimpleGrid`,classes:FD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=Qg(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(PD,{...t,selector:`.${v}`}),(0,U.jsx)(`div`,{..._(`container`),children:(0,U.jsx)(d_,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(AD,{...t,selector:`.${v}`}),(0,U.jsx)(d_,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});LD.classes=FD,LD.displayName=`@mantine/core/SimpleGrid`;var[RD,zD]=kp(`SliderProvider was not found in tree`);function BD({size:e,disabled:t,variant:n,color:r,thumbSize:i,radius:a,orientation:o,...s}){let{getStyles:c}=zD();return(0,U.jsx)(d_,{tabIndex:-1,variant:n,size:e,...c(`root`),mod:{orientation:o},...s})}BD.displayName=`@mantine/core/SliderRoot`;function VD({max:e,min:t,value:n,position:r,label:i,dragging:a,onMouseDown:o,onKeyDownCapture:s,labelTransitionProps:c,labelAlwaysOn:l,thumbLabel:u,thumbValueText:d,onFocus:f,onBlur:p,showLabelOnHover:m,isHovered:h,children:_=null,disabled:v,orientation:y=`horizontal`,ref:b}){let{getStyles:x}=zD(),[S,C]=(0,g.useState)(!1),w=l||a||S||m&&h,T=typeof d==`function`?d(n):d;return(0,U.jsxs)(d_,{tabIndex:v?-1:0,role:`slider`,"aria-label":u,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":n,"aria-valuetext":T,"aria-disabled":v,"aria-orientation":y,ref:b,__vars:{"--slider-thumb-offset":`${r}%`},...x(`thumb`,{focusable:!0}),mod:{dragging:a,disabled:v},onFocus:e=>{C(!0),typeof f==`function`&&f(e)},onBlur:e=>{C(!1),typeof p==`function`&&p(e)},onTouchStart:o,onMouseDown:o,onKeyDownCapture:s,onClick:e=>e.stopPropagation(),children:[_,(0,U.jsx)(ux,{mounted:i!=null&&!!w,transition:`fade`,duration:0,...c,children:e=>(0,U.jsx)(`div`,{...x(`label`,{style:e}),children:i})})]})}VD.displayName=`@mantine/core/SliderThumb`;function HD({value:e,min:t,max:n}){let r=(e-t)/(n-t)*100;return Math.min(Math.max(r,0),100)}function UD({mark:e,offset:t,value:n,inverted:r=!1,startPointValue:i}){return typeof i==`number`&&!r?e.value>=i&&e.value<=n||e.value<=i&&e.value>=n:r?typeof t==`number`&&e.value<=t||e.value>=n:typeof t==`number`?e.value>=t&&e.value<=n:e.value<=n}function WD({marks:e,min:t,max:n,disabled:r,value:i,offset:a,inverted:o,startPointValue:s}){let{getStyles:c}=zD();if(!e)return null;let l=e.map((e,l)=>e.hidden?null:(0,g.createElement)(d_,{...c(`markWrapper`),__vars:{"--mark-offset":`${HD({value:e.value,min:t,max:n})}%`},key:l},(0,U.jsx)(d_,{...c(`mark`),mod:{filled:UD({mark:e,value:i,offset:a,inverted:o,startPointValue:s}),disabled:r}}),e.label&&(0,U.jsx)(`div`,{...c(`markLabel`),children:e.label})));return(0,U.jsx)(`div`,{children:l})}WD.displayName=`@mantine/core/SliderMarks`;function GD({filled:e,children:t,offset:n,disabled:r,marksOffset:i,inverted:a,startPointValue:o,containerProps:s,...c}){let{getStyles:l}=zD();return(0,U.jsx)(d_,{...l(`trackContainer`),mod:{disabled:r},...s,children:(0,U.jsxs)(d_,{...l(`track`),mod:{inverted:a,disabled:r},children:[(0,U.jsx)(d_,{mod:{inverted:a,disabled:r},__vars:{"--slider-bar-width":`calc(${e}% + 2 * var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...l(`bar`)}),t,(0,U.jsx)(WD,{...c,offset:i,disabled:r,inverted:a,startPointValue:o})]})})}GD.displayName=`@mantine/core/SliderTrack`;function KD({value:e,containerWidth:t,min:n,max:r,step:i,precision:a}){let o=(t?Math.min(Math.max(e,0),t)/t:e)*(r-n),s=(o===0?0:Math.round(o/i)*i)+n,c=Math.max(s,n);return a===void 0?c:Number(c.toFixed(a))}function qD(e,t){return parseFloat(e.toFixed(t))}function JD(e){if(!e)return 0;let t=e.toString().split(`.`);return t.length>1?t[1].length:0}function YD(e,t){let n=[...t].sort((e,t)=>
62e.value-t.value).find(t=>t.value>e);return n?n.value:e}function XD(e,t){let n=[...t].sort((e,t)=>t.value-e.value).find(t=>t.value<e);return n?n.value:e}function ZD(e){let t=[...e].sort((e,t)=>e.value-t.value);return t.length>0?t[0].value:0}function QD(e){let t=[...e].sort((e,t)=>e.value-t.value);return t.length>0?t[t.length-1].value:100}var $D={root:`m_dd36362e`,label:`m_c9357328`,thumb:`m_c9a9a60a`,trackContainer:`m_a8645c2`,track:`m_c9ade57f`,bar:`m_38aeed47`,markWrapper:`m_b7b0423a`,mark:`m_dd33bc19`,markLabel:`m_68c77a5b`},eO={radius:`xl`,min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:`fade`,duration:0},thumbLabel:``,showLabelOnHover:!0,scale:e=>e,size:`md`},tO=Bm((e,{size:t,color:n,thumbSize:r,radius:i})=>({root:{"--slider-size":Pp(t,`slider-size`),"--slider-color":n?oh(n,e):void 0,"--slider-radius":i===void 0?void 0:Ip(i),"--slider-thumb-size":r===void 0?`calc(var(--slider-size) * 2)`:W(r)}})),nO=n_(e=>{let t=ag(`Slider`,eO,e),{classNames:n,styles:r,value:i,onChange:a,onChangeEnd:o,size:s,min:c,max:l,domain:u,step:d,precision:f,defaultValue:p,name:m,marks:h,label:_,labelTransitionProps:v,labelAlwaysOn:y,thumbLabel:b,thumbValueText:x,showLabelOnHover:S,thumbChildren:C,disabled:w,unstyled:T,scale:E,inverted:D,startPointValue:O,orientation:k,className:A,style:j,vars:M,hiddenInputProps:N,restrictToMarks:P,thumbProps:ee,attributes:F,ref:I,...te}=t,L=Sg({name:`Slider`,props:t,classes:$D,classNames:n,className:A,styles:r,style:j,attributes:F,vars:M,varsResolver:tO,unstyled:T}),{dir:ne}=p_(),[R,re]=(0,g.useState)(!1),[z,ie]=Cm({value:typeof i==`number`?Wp(i,c,l):i,defaultValue:typeof p==`number`?Wp(p,c,l):p,finalValue:Wp(0,c,l),onChange:a}),ae=(0,g.useRef)(z),oe=(0,g.useRef)(o);(0,g.useEffect)(()=>{oe.current=o},[o]);let se=(0,g.useRef)(null),ce=(0,g.useRef)(null),[le,ue]=u||[c,l],B=HD({value:z,min:le,max:ue}),de=E(z),fe=typeof _==`function`?_(de):_,pe=f??JD(d),me=typeof O==`number`&&!D,he=me?HD({value:O,min:le,max:ue}):0,ge=me?Math.min(B,he):0,_e=me?Math.abs(B-he):B,ve=(0,g.useCallback)(({x:e})=>{if(!w){let t=Wp(KD({value:e,min:le,max:ue,step:d,precision:pe}),c,l);ie(P&&h!=null&&h.length?Pm(t,h.map(e=>e.value)):t),ae.current=t}},[w,c,l,le,ue,d,pe,ie,h,P]),{ref:ye,active:be}=Sm(({x:e,y:t})=>ve({x:k===`vertical`?1-t:e}),{onScrubEnd:(0,g.useCallback)(()=>{if(!w&&oe.current){let e=P&&h!=null&&h.length?Pm(ae.current,h.map(e=>e.value)):ae.current;oe.current(e)}},[w,h,P])},ne),xe=(0,g.useCallback)(e=>{!w&&oe.current&&oe.current(e)},[w]),Se=e=>{if(!w)switch(e.key){case`ArrowUp`:{var t;if(e.preventDefault(),(t=ce.current)==null||t.focus(),P&&h){let e=YD(z,h);ie(e),xe(e);break}let n=qD(Math.min(Math.max(z+d,le),ue),pe);ie(n),xe(n);break}case`ArrowRight`:{var n;if(e.preventDefault(),(n=ce.current)==null||n.focus(),P&&h){let e=ne===`rtl`?XD(z,h):YD(z,h);ie(e),xe(e);break}let t=qD(Math.min(Math.max(ne===`rtl`?z-d:z+d,le),ue),pe);ie(t),xe(t);break}case`ArrowDown`:{var r;if(e.preventDefault(),(r=ce.current)==null||r.focus(),P&&h){let e=XD(z,h);ie(e),xe(e);break}let t=qD(Math.min(Math.max(z-d,le),ue),pe);ie(t),xe(t);break}case`ArrowLeft`:{var i;if(e.preventDefault(),(i=ce.current)==null||i.focus(),P&&h){let e=ne===`rtl`?YD(z,h):XD(z,h);ie(e),xe(e);break}let t=qD(Math.min(Math.max(ne===`rtl`?z+d:z-d,le),ue),pe);ie(t),xe(t);break}case`Home`:var a;if(e.preventDefault(),(a=ce.current)==null||a.focus(),P&&h){ie(ZD(h)),xe(ZD(h));break}ie(c),xe(c);break;case`End`:var o;if(e.preventDefault(),(o=ce.current)==null||o.focus(),P&&h){ie(QD(h)),xe(QD(h));break}ie(l),xe(l)}};return(0,U.jsx)(RD,{value:{getStyles:L},children:(0,U.jsxs)(BD,{...te,ref:xm(I,se),onKeyDownCapture:Se,onMouseDownCapture:()=>{var e;return(e=se.current)==null?void 0:e.focus()},size:s,disabled:w,orientation:k,children:[(0,U.jsx)(GD,{inverted:D,offset:ge,filled:_e,marks:h,min:le,max:ue,value:de,startPointValue:me?O:void 0,disabled:w,containerProps:{ref:ye,onMouseEnter:S?()=>re(!0):void 0,onMouseLeave:S?()=>re(!1):void 0},children:(0,U.jsx)(VD,{max:ue,min:le,value:de,position:B,dragging:be,label:fe,ref:ce,labelTransitionProps:v,labelAlwaysOn:y,thumbLabel:b,thumbValueText:x,showLabelO
62nHover:S,isHovered:R,disabled:w,orientation:k,...ee,children:C})}),(0,U.jsx)(`input`,{type:`hidden`,name:m,value:de,...N})]})})});nO.classes=$D,nO.varsResolver=tO,nO.displayName=`@mantine/core/Slider`;var rO={root:`m_6d731127`},iO={gap:`md`,align:`stretch`,justify:`flex-start`},aO=Bm((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":Fp(t),"--stack-align":n,"--stack-justify":r}})),oO=n_(e=>{let t=ag(`Stack`,iO,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:c,justify:l,gap:u,variant:d,attributes:f,...p}=t,m=Sg({name:`Stack`,props:t,classes:rO,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:aO});return(0,U.jsx)(d_,{...m(`root`),variant:d,...p})});oO.classes=rO,oO.varsResolver=aO,oO.displayName=`@mantine/core/Stack`;var sO=(0,g.createContext)(null),cO={hiddenInputValuesSeparator:`,`},lO=r_((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=ag(`SwitchGroup`,cO,e),[m,h]=Cm({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,U.jsx)(sO,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,U.jsxs)(RC.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`SwitchGroup`,children:[(0,U.jsx)(tT,{role:`group`,children:o}),(0,U.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));lO.classes=RC.Wrapper.classes,lO.displayName=`@mantine/core/SwitchGroup`;var uO={root:`m_5f93f3bb`,input:`m_926b4011`,track:`m_9307d992`,thumb:`m_93039a1d`,trackLabel:`m_8277e082`},dO={labelPosition:`right`,withThumbIndicator:!0},fO=Bm((e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:Ip(t),"--switch-height":Pp(r,`switch-height`),"--switch-width":Pp(r,`switch-width`),"--switch-thumb-size":Pp(r,`switch-thumb-size`),"--switch-label-font-size":Pp(r,`switch-label-font-size`),"--switch-track-label-padding":Pp(r,`switch-track-label-padding`),"--switch-color":n?oh(n,e):void 0}})),pO=n_(e=>{var t;let n=ag(`Switch`,dO,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,color:l,label:u,offLabel:d,onLabel:f,id:p,size:m,radius:h,wrapperProps:_,thumbIcon:v,checked:y,defaultChecked:b,onChange:x,labelPosition:S,description:C,error:w,disabled:T,variant:E,rootRef:D,mod:O,withThumbIndicator:k,attributes:A,...j}=n,M=(0,g.use)(sO),N=m||(M==null?void 0:M.size),P=Sg({name:`Switch`,props:n,classes:uO,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:A,vars:c,varsResolver:fO}),{styleProps:ee,rest:F}=kg(j),I=dm(p),te=[C?`${I}-description`:void 0,w&&typeof w!=`boolean`?`${I}-error`:void 0,F[`aria-describedby`]].filter(Boolean).join(` `)||void 0,L={checked:(M==null?void 0:M.value.includes(F.value))??y,onChange:e=>{M==null||M.onChange(e),x==null||x(e)}},ne=T||(M==null||(t=M.isDisabled)==null?void 0:t.call(M,F.value)),[R,re]=Cm({value:L.checked??y,defaultValue:b,finalValue:!1});return(0,U.jsxs)(vT,{...P(`root`),__staticSelector:`Switch`,__stylesApiProps:n,id:I,size:N,labelPosition:S,label:u,description:C,error:w,disabled:ne,bodyElement:`label`,labelElement:`span`,classNames:r,styles:o,unstyled:s,"data-checked":L.checked,variant:E,ref:D,mod:O,attributes:A,inert:F.inert,...ee,..._,children:[(0,U.jsx)(`input`,{...F,...L,disabled:ne,checked:R,"data-checked":L.checked,onChange:e=>{var t;(t=L.onChange)==null||t.call(L,e),re(e.currentTarget.checked)},id:I,type:`checkbox`,role:`switch`,inert:F.inert,"aria-describedby":te,...P(`input`)}),(0,U.jsxs)(d_,{"aria-hidden":`true`,component:`span`,mod:{error:w,"label-position":S,"without-labels":!f&&!d},...P(`track`),children:[(0,U.jsx)(d_,{component:`span`,mod:{"reduce-motion":!0,"with-thumb-indicator":k&&!v},...P(`thumb`),children:v}),(0,U.jsx)(`span`,{...P(`trackLabel`),children:R?f:d})]})]})});pO.classes={...uO,..._T},pO.varsResolver=fO,pO.displayName=`@mantine/core/Switch`,pO.Group=lO;var[mO,hO]=kp(`Table component was not found in the tree`),gO={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollC
62ontainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function _O(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function vO(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=n_(r=>{let i=ag(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=hO();return(0,U.jsx)(d_,{component:e,..._O(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=gO,r}var yO=vO(`th`,{columnBorder:!0}),bO=vO(`td`,{columnBorder:!0}),xO=vO(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),SO=vO(`thead`,{stickyHeader:!0}),CO=vO(`tbody`),wO=vO(`tfoot`),TO=vO(`caption`,{captionSide:!0}),EO={type:`scrollarea`},DO=Bm((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":W(t),"--table-max-height":W(n),"--table-overflow":r===`native`?`auto`:void 0}})),OO=n_(e=>{let t=ag(`TableScrollContainer`,EO,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=Sg({name:`TableScrollContainer`,classes:gO,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:DO,rootSelector:`scrollContainer`});return(0,U.jsx)(d_,{component:d===`scrollarea`?Mb:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,U.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});OO.classes=gO,OO.varsResolver=DO,OO.displayName=`@mantine/core/TableScrollContainer`;function kO({data:e}){return(0,U.jsxs)(U.Fragment,{children:[e.caption&&(0,U.jsx)(TO,{children:e.caption}),e.head&&(0,U.jsx)(SO,{children:(0,U.jsx)(xO,{children:e.head.map((e,t)=>(0,U.jsx)(yO,{children:e},t))})}),e.body&&(0,U.jsx)(CO,{children:e.body.map((e,t)=>(0,U.jsx)(xO,{children:e.map((e,t)=>(0,U.jsx)(bO,{children:e},t))},t))}),e.foot&&(0,U.jsx)(wO,{children:(0,U.jsx)(xO,{children:e.foot.map((e,t)=>(0,U.jsx)(yO,{children:e},t))})})]})}kO.displayName=`@mantine/core/TableDataRenderer`;var AO={withRowBorders:!0,verticalSpacing:7},jO=Bm((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":Fp(r),"--table-vertical-spacing":Fp(i),"--table-border-color":a?oh(a,e):void 0,"--table-striped-color":c&&o?oh(o,e):void 0,"--table-highlight-on-hover-color":l&&s?oh(s,e):void 0,"--table-sticky-header-offset":d?W(u):void 0}})),MO=n_(e=>{let t=ag(`Table`,AO,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:w,tabularNums:T,attributes:E,...D}=t,O=Sg({name:`Table`,props:t,className:r,style:i,classes:gO,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:jO});return(0,U.jsx)(mO,{value:{getStyles:O,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,U.jsx)(d_,{component:`table`,mod:[{withTableBorder:_,tabularNums:T},w],...O(`table`),...D,children:x||!!b&&(0,U.jsx)(kO,{data:b})})})});MO.classes=gO,MO.varsResolver=jO,MO.displayName=`@mantine/core/Table`,MO.Td=bO,MO.Th=yO,MO.Tr=xO,MO.Thead=SO,MO.Tbody=CO,MO.Tfoot=wO,MO.Caption=TO,MO.ScrollContainer=OO,MO.DataRenderer=kO;var NO=n_(e=>{let t=ag([`Input`,`InputWrapper`,`TextInput`],null,e);return(0,U.jsx)(VC,{component:`input`,...t,__staticSelector:`TextInput`})});NO.classes=VC.classes,NO.displayName=`@mantine/core/TextInput`;var PO=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],FO=[`xs`,`sm`,`md`,`lg`,`xl`];function IO(e,t){let n=t===void 0?`h${e}`:t;return PO.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:FO.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:W(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var LO={root:`m_8a5d1357`},RO={order:1},zO=Bm((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=IO(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),BO=n_(e=>{let t=ag(`Title`,RO,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=Sg({name:`Title`,props:t,classes:LO,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:zO});return[1,2,3,4,5,6].includes(s)?(0,U.jsx)(d_,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,lineClamp:typeof d==`number`},p],size:l,...h}):null});BO.classes=LO,BO.varsResolver=zO,BO.displayName=`@mantine/core/Title`;var[VO,HO]=kp(`Carousel component was not found in tree`),UO={root:`m_17884d0f`,viewport:`m_a2dae653`,container:`m_fcd81474`,controls:`m_39bc3463`,control:`m_64f58e10`,indicators:`m_71ea3ab1`,indicator:`m_eae68602`,slide:`m_d98df724`},WO=n_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,mod:o,...s}
62=ag(`CarouselSlide`,null,e),c=HO();return(0,U.jsx)(d_,{mod:[{orientation:c.orientation},o],role:`group`,"aria-roledescription":`slide`,"aria-label":`Carousel slide`,...c.getStyles(`slide`,{className:n,style:r,classNames:t,styles:i}),...s})});WO.classes=UO,WO.displayName=`@mantine/carousel/CarouselSlide`;function GO({slideGap:e,slideSize:t,selector:n}){let r=Vh(),i=Ep({"--carousel-slide-gap":Fp(Up(e)),"--carousel-slide-size":W(Up(t))}),a=_p(r.breakpoints).reduce((n,r)=>(n[r]||(n[r]={}),typeof e==`object`&&e[r]!==void 0&&(n[r][`--carousel-slide-gap`]=Fp(e[r])),typeof t==`object`&&t[r]!==void 0&&(n[r][`--carousel-slide-size`]=Fp(t[r])),n),{}),o=Hp(_p(a),r.breakpoints).filter(e=>_p(a[e.value]).length>0).map(e=>({query:`(min-width: ${r.breakpoints[e.value]})`,styles:a[e.value]}));return(0,U.jsx)(Eg,{styles:i,media:o,selector:n})}function KO(e){return typeof e==`object`&&e?_p(e):[]}function qO(e){return e.sort((e,t)=>Sp(e)-Sp(t))}function JO({slideGap:e,slideSize:t}){return qO(Array.from(new Set([...KO(e),...KO(t)])))}function YO({slideGap:e,slideSize:t,selector:n}){let r=Ep({"--carousel-slide-gap":Fp(Up(e)),"--carousel-slide-size":W(Up(t))}),i=JO({slideGap:e,slideSize:t}).reduce((n,r)=>(n[r]||(n[r]={}),typeof e==`object`&&e[r]!==void 0&&(n[r][`--carousel-slide-gap`]=Fp(e[r])),typeof t==`object`&&t[r]!==void 0&&(n[r][`--carousel-slide-size`]=Fp(t[r])),n),{}),a=Object.keys(i).map(e=>({query:`carousel (min-width: ${e})`,styles:i[e]}));return(0,U.jsx)(Eg,{styles:r,container:a,selector:n})}function XO({dir:e,orientation:t,direction:n}){return n===`previous`?t===`horizontal`?90*(e===`ltr`?1:-1):-180:t===`horizontal`?90*(e===`ltr`?-1:1):0}function ZO(e){return Object.prototype.toString.call(e)===`[object Object]`}function QO(e){return ZO(e)||Array.isArray(e)}function $O(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function ek(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!QO(r)||!QO(i)?r===i:ek(r,i)})}function tk(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function nk(e,t){if(e.length!==t.length)return!1;let n=tk(e),r=tk(t);return n.every((e,t)=>{let n=r[t];return ek(e,n)})}function rk(e){return typeof e==`number`}function ik(e){return typeof e==`string`}function ak(e){return typeof e==`boolean`}function ok(e){return Object.prototype.toString.call(e)===`[object Object]`}function sk(e){return Math.abs(e)}function ck(e){return Math.sign(e)}function lk(e,t){return sk(e-t)}function uk(e,t){return e===0||t===0||sk(e)<=sk(t)?0:sk(lk(sk(e),sk(t))/e)}function dk(e){return Math.round(e*100)/100}function fk(e){return _k(e).map(Number)}function pk(e){return e[mk(e)]}function mk(e){return Math.max(0,e.length-1)}function hk(e,t){return t===mk(e)}function gk(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function _k(e){return Object.keys(e)}function vk(e,t){return[e,t].reduce((e,t)=>(_k(t).forEach(n=>{let r=e[n],i=t[n];e[n]=ok(r)&&ok(i)?vk(r,i):i}),e),{})}function yk(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function bk(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return ik(e)?n[e](r):e(t,r,i)}return{measure:o}}function xk(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function Sk(e,t,n,r){let i=xk(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&(c=t.requestAnimationFrame(d))}function f(){c||(c=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function Ck(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function wk(e=0,t=0){let n=sk(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}
vendor: 4,795 bytes, line 62
62function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function Tk(e,t,n){let{constrain:r}=wk(0,e),i=e+1,a=o(t);function o(e){return n?sk((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return Tk(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function Ek(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=xk(),w=xk(),T=wk(50,225).constrain(p.measure(20)),E={mouse:300,touch:400},D={mouse:500,touch:600},O=m?43:25,k=!1,A=0,j=0,M=!1,N=!1,P=!1,ee=!1;function F(e){if(!v)return;function n(t){(ak(v)||v(e,t))&&re(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,ie).add(r,`contextmenu`,ie).add(r,`click`,ae,!0)}function I(){C.clear(),w.clear()}function te(){let e=ee?n:t;w.add(e,`touchmove`,z,S).add(e,`touchend`,ie).add(e,`mousemove`,z,S).add(e,`mouseup`,ie)}function L(e){let t=e.nodeName||``;return x.includes(t)}function ne(){return(m?D:E)[ee?`mouse`:`touch`]}function R(e,t){let n=d.add(ck(e)*-1),r=u.byDistance(e,!m).distance;return m||sk(e)<T?r:g&&t?r*.5:u.byIndex(n.get(),0).distance}function re(e){let t=yk(e,r);ee=t,P=m&&t&&!e.buttons&&k,k=lk(i.get(),o.get())>=2,!(t&&e.button!==0)&&(L(e.target)||(M=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),te(),A=a.readPoint(e),j=a.readPoint(e,y),f.emit(`pointerDown`)))}function z(e){if(!yk(e,r)&&e.touches.length>=2)return ie(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=lk(t,A),c=lk(n,j);if(!N&&!ee&&(!e.cancelable||(N=o>c,!N)))return ie(e);let u=a.pointerMove(e);o>h&&(P=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function ie(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*ne(),r=R(b(n),t),i=uk(n,r),o=O-10*i,s=_+i/50;N=!1,M=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),ee=!1,f.emit(`pointerUp`)}function ae(e){P&&(e.stopPropagation(),e.preventDefault(),P=!1)}function oe(){return M}return{init:F,destroy:I,pointerDown:oe}}function Dk(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(yk(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&sk(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function Ok(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function kk(e){function t(t){return t/100*e}return{measure:t}}function Ak(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(sk(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(ak(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function jk(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=ck(a),d=u,x}function p(){return sk(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function Mk(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=wk(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=sk(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&sk(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function Nk(e,t,n,r,i){let a=wk(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return lk(e,t)<=1}function u(){let e=o[0],t=pk(o);return wk(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=hk(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}
62function Pk(e,t,n){let r=t[0];return{limit:wk(n?r-e:pk(t),r)}}function Fk(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=wk(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1&&a(n.get())}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function Ik(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function Lk(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>pk(e)[o]-e[0][a]).map(sk)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-sk(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function Rk(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=hk(n,t);return r?gk(pk(n[0])+1):i?gk(mk(a)-pk(n)[0]+1,pk(n)[0]):e})}return{slideRegistry:l}}function zk(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>sk(e)-sk(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>sk(e.diff)-sk(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>ck(e)===r);return a.length?c(a):pk(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function Bk(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();
62a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function Vk(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));rk(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(ak(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function Hk(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return rk(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function Uk(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=dk(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function Wk(e,t,n,r,i,a,o,s,c){let l=.5,u=fk(i),d=fk(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:Hk(-1),translate:Uk(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){let e=t-o[0]-1;return g(m(u,e),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function Gk(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(ak(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function Kk(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return _k(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];
vendor: 4,226 bytes, line 62
62return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function qk(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return sk(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(pk(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=hk(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(sk)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function Jk(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=rk(n);function p(e,t){return fk(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?fk(e).reduce((n,f,p)=>{let m=pk(n)||0,h=m===0,g=f===mk(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=sk(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function Yk(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=Ok(),w=C.measure(t),T=n.map(C.measure),E=Ck(c,l),D=E.measureSize(w),O=kk(D),k=bk(s,D),A=!d&&!!v,{slideSizes:j,slideSizesWithGaps:M,startGap:N,endGap:P}=qk(E,w,T,n,d||!!v,i),ee=Jk(E,D,g,d,w,T,N,P,2),{snaps:F,snapsAligned:I}=Lk(E,k,w,T,ee),te=-pk(F)+pk(M),{snapsContained:L,scrollContainLimit:ne}=Nk(D,te,I,v,2),R=A?L:I,{limit:re}=Pk(te,R,d),z=Tk(mk(R),u,d),ie=z.clone(),ae=fk(n),oe=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},se=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},ce=Sk(r,i,()=>oe(Se),e=>se(Se,e)),le=.68,ue=R[z.get()],B=Hk(ue),de=Hk(ue),fe=Hk(ue),pe=Hk(ue),me=jk(B,fe,de,pe,f,le),he=zk(d,R,te,re,pe),ge=Bk(ce,z,ie,me,he,pe,o),_e=Ik(re),ve=xk(),ye=Kk(t,n,o,h),{slideRegistry:be}=Rk(A,v,R,ne,ee,ae),xe=Vk(e,n,be,ge,me,ve,o,S),Se={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:T,animation:ce,axis:E,dragHandler:Ek(E,e,r,i,pe,Dk(E,i),B,ce,ge,me,he,z,o,O,p,m,_,le,x),eventStore:ve,percentOfView:O,index:z,indexPrevious:ie,limit:re,location:B,offsetLocation:fe,previousLocation:de,options:a,resizeHandler:Ak(t,o,i,n,E,y,C),scrollBody:me,scrollBounds:Mk(re,fe,pe,me,O),scrollLooper:Fk(te,re,fe,[B,fe,de,pe]),scrollProgress:_e,scrollSnapList:R.map(_e.get),scrollSnaps:R,scrollTarget:he,scrollTo:ge,slideLooper:Wk(E,D,te,j,M,F,R,fe,n),slideFocus:xe,slidesHandler:Gk(t,o,b),slidesInView:ye,slideIndexes:ae,slideRegistry:be,slidesToScroll:ee,target:pe,translate:Uk(E,t)};return Se}function Xk(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var Zk={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Qk(e){function t(e,t){return vk(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,_k(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>_k(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function $k(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>
62Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function eA(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=Qk(i),o=$k(a),s=xk(),c=Xk(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=D,g=!1,_,v=l(Zk,eA.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(ik(t)?e.querySelector(t):t)||e.children[0];let r=ik(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function T(t){let n=Yk(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?T(Object.assign({},t,{loop:!1})):n}function E(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=T(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,D)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(oe),_.eventHandler.init(oe),_.resizeHandler.init(oe),_.slidesHandler.init(oe),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(oe),x=o.init(oe,b)))}function D(e,t){let n=I();O(),E(l({startIndex:n},e),t),c.emit(`reInit`)}function O(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function k(){g||(g=!0,s.clear(),O(),c.emit(`destroy`),c.clear())}function A(e,t,n){!y.active||g||(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function j(e){A(_.index.add(1).get(),e,-1)}function M(e){A(_.index.add(-1).get(),e,1)}function N(){return _.index.add(1).get()!==I()}function P(){return _.index.add(-1).get()!==I()}function ee(){return _.scrollSnapList}function F(){return _.scrollProgress.get(_.offsetLocation.get())}function I(){return _.index.get()}function te(){return _.indexPrevious.get()}function L(){return _.slidesInView.get()}function ne(){return _.slidesInView.get(!1)}function R(){return x}function re(){return _}function z(){return e}function ie(){return S}function ae(){return C}let oe={canScrollNext:N,canScrollPrev:P,containerNode:ie,internalEngine:re,destroy:k,off:p,on:f,emit:m,plugins:R,previousScrollSnap:te,reInit:h,rootNode:z,scrollNext:j,scrollPrev:M,scrollProgress:F,scrollSnapList:ee,scrollTo:A,selectedScrollSnap:I,slideNodes:ae,slidesInView:L,slidesNotInView:ne};return E(t,n),setTimeout(()=>c.emit(`init`),0),oe}eA.globalOptions=void 0;function tA(e={},t=[]){let n=(0,g.useRef)(e),r=(0,g.useRef)(t),[i,a]=(0,g.useState)(),[o,s]=(0,g.useState)(),c=(0,g.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,g.useEffect)(()=>{ek(n.current,e)||(n.current=e,c())},[e,c]),(0,g.useEffect)(()=>{nk(r.current,t)||(r.current=t,c())},[t,c]),(0,g.useEffect)(()=>{if($O()&&o){eA.globalOptions=tA.globalOptions;let e=eA(o,n.current,r.current);return a(e),()=>e.destroy()}a(void 0)},[o,a]),[s,i]}tA.globalOptions=void 0;var nA={controlSize:26,controlsOffset:`sm`,slideSize:`100%`,slideGap:0,orientation:`horizontal`,includeGapInSize:!0,initialSlide:0,withControls:!0,withIndicators:!1,withKeyboardEvents:!0,type:`media`},rA={align:`center`,loop:!1,slidesToScroll:1,dragFree:!1,inViewThreshold:0,skipSnaps:!1,containScroll:`trimSnaps`},iA=Bm((e,{height:t,controlSize:n,controlsOffset:r})=>({root:{"--carousel-height":W(t),"--carousel-control-size":W(n),"--carousel-controls-offset":Fp(r)}})),aA=n_(e=>{let t=ag(`Carousel`,nA,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,getEmblaApi:l,onNextSlide:u,onPreviousSlide:d,onSlideChange:f,nextControlProps:p,previousControlProps:m,controlSize:h,controlsOffset:_,slideSize:v,slideGap:y,orientation:b,height:x,includeGapInSize:S,draggable:C,initialSlide:w,withControls:T,withIndicators:E,plugins:D,nextControlIcon:O,previousControlIcon:k,withKeyboardEvents:A,mod:j,type:M,emblaOptions:N,attributes:P,getIndicatorProps:ee,id:F,...I}=t,te=Sg({name:`Carousel`,classes:UO,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:P,vars:s,varsResolver:iA}),L=dm(F),ne=Qg(),{dir:R}=p_(),[re,z]=tA({axis:b===`horizontal`?`x`:`y`,direction:b===`horizontal`?R:void 0,startIndex:w,...rA,...N},D),[ie,ae]=(0,g.useState)(0),[oe,se]=(0,g.useState)(0),ce=(0,g.useCallback)(e=>z&&z.scrollTo(e),[z]),le=(0,g.useCallback)(()=>
62{if(!z)return;let e=z.selectedScrollSnap();ae(e),e!==ie&&(f==null||f(e))},[z,ae,f,ie]),ue=(0,g.useCallback)(()=>{z==null||z.scrollPrev(),d==null||d()},[z]),B=(0,g.useCallback)(()=>{z==null||z.scrollNext(),u==null||u()},[z]),de=(0,g.useCallback)(e=>{A&&(e.key===`ArrowRight`&&(e.preventDefault(),B()),e.key===`ArrowLeft`&&(e.preventDefault(),ue()),e.key===`Home`&&(e.preventDefault(),z==null||z.scrollTo(0)),e.key===`End`&&(e.preventDefault(),z==null||z.scrollTo(z.scrollSnapList().length-1)))},[z,B,ue]);(0,g.useEffect)(()=>{if(z)return l==null||l(z),le(),se(z.scrollSnapList().length),z.on(`select`,le),()=>{z.off(`select`,le)}},[z,N==null?void 0:N.slidesToScroll,le]),(0,g.useEffect)(()=>{z&&(z.reInit(),se(z.scrollSnapList().length),ae(e=>Wp(e,0,g.Children.toArray(c).length-1)))},[g.Children.toArray(c).length,N==null?void 0:N.slidesToScroll]);let fe=(z==null?void 0:z.canScrollPrev())||!1,pe=(z==null?void 0:z.canScrollNext())||!1,me=(0,g.useCallback)((e,t)=>{let n=b===`horizontal`,r=n?`ArrowRight`:`ArrowDown`,i=n?`ArrowLeft`:`ArrowUp`;if(e.key===r){var a;e.preventDefault();let n=t<oe-1?t+1:0;ce(n),(a=e.currentTarget.parentElement)==null||(a=a.children[n])==null||a.focus()}if(e.key===i){var o;e.preventDefault();let n=t>0?t-1:oe-1;ce(n),(o=e.currentTarget.parentElement)==null||(o=o.children[n])==null||o.focus()}if(e.key===`Home`){var s;e.preventDefault(),ce(0),(s=e.currentTarget.parentElement)==null||(s=s.children[0])==null||s.focus()}if(e.key===`End`){var c;e.preventDefault(),ce(oe-1),(c=e.currentTarget.parentElement)==null||(c=c.children[oe-1])==null||c.focus()}},[b,oe,ce]),he=Array(oe).fill(0).map((e,t)=>(0,g.createElement)(Ib,{...te(`indicator`),key:t,role:`tab`,"aria-label":`Go to slide ${t+1}`,"aria-selected":t===ie,tabIndex:t===ie?0:-1,"data-active":t===ie||void 0,onClick:()=>ce(t),onKeyDown:e=>me(e,t),"data-orientation":b,onMouseDown:e=>e.preventDefault(),...ee==null?void 0:ee(t)}));return(0,U.jsxs)(VO,{value:{getStyles:te,orientation:b},children:[M===`container`?(0,U.jsx)(YO,{...t,selector:`.${ne}`}):(0,U.jsx)(GO,{...t,selector:`.${ne}`}),(0,U.jsxs)(d_,{role:`region`,"aria-roledescription":`carousel`,...te(`root`,{className:ne}),...I,id:L,mod:[{orientation:b,"include-gap-in-size":S},j],onKeyDownCapture:de,children:[(0,U.jsx)(Rb,{role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:oe>0&&`Slide ${ie+1} of ${oe}`}),T&&(0,U.jsxs)(`div`,{...te(`controls`),"data-orientation":b,children:[(0,U.jsx)(Ib,{"aria-controls":L,"aria-label":`Previous slide`,"aria-disabled":!fe,"data-inactive":!fe||void 0,"data-type":`previous`,tabIndex:fe?0:-1,...m,...te(`control`,{className:m==null?void 0:m.className,style:m==null?void 0:m.style}),onClick:e=>{var t;ue(),m==null||(t=m.onClick)==null||t.call(m,e)},children:k===void 0?(0,U.jsx)(GC,{style:{transform:`rotate(${XO({dir:R,orientation:b,direction:`previous`})}deg)`}}):k}),(0,U.jsx)(Ib,{"aria-controls":L,"aria-label":`Next slide`,"aria-disabled":!pe,"data-inactive":!pe||void 0,"data-type":`next`,tabIndex:pe?0:-1,...te(`control`,{className:p==null?void 0:p.className,style:p==null?void 0:p.style}),...p,onClick:e=>{var t;B(),p==null||(t=p.onClick)==null||t.call(p,e)},children:O===void 0?(0,U.jsx)(GC,{style:{transform:`rotate(${XO({dir:R,orientation:b,direction:`next`})}deg)`}}):O})]}),(0,U.jsx)(`div`,{...te(`viewport`),ref:re,"data-type":M,children:(0,U.jsx)(`div`,{...te(`container`,{className:ne}),"data-orientation":b,children:c})}),E&&(0,U.jsx)(`div`,{...te(`indicators`),role:`tablist`,"aria-label":`Slides`,"data-orientation":b,children:he})]})]})});aA.classes=UO,aA.varsResolver=iA,aA.displayName=`@mantine/carousel/Carousel`,aA.Slide=WO;var oA={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},sA=(e,t,n,r)=>{let i=(0,g.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...l},u)=>(0,g.createElement)(`svg`,{ref:u,...oA[e],width:i,height:i,className:[`tabler-icon`,`tabler-icon-${t}`,s].join(` `),...e===`filled`?{fill:n}:{strokeWidth:a,stroke:n},...l},[o&&(0,g.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>
62(0,g.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i},cA=sA(`outline`,`check`,`Check`,[[`path`,{d:`M5 12l5 5l10 -10`,key:`svg-0`}]]),lA=sA(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),uA=sA(`outline`,`chevron-up`,`ChevronUp`,[[`path`,{d:`M6 15l6 -6l6 6`,key:`svg-0`}]]),dA=sA(`outline`,`edit`,`Edit`,[[`path`,{d:`M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1`,key:`svg-0`}],[`path`,{d:`M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415`,key:`svg-1`}],[`path`,{d:`M16 5l3 3`,key:`svg-2`}]]),fA=sA(`outline`,`search`,`Search`,[[`path`,{d:`M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`,key:`svg-0`}],[`path`,{d:`M21 21l-6 -6`,key:`svg-1`}]]),pA=sA(`outline`,`selector`,`Selector`,[[`path`,{d:`M8 9l4 -4l4 4`,key:`svg-0`}],[`path`,{d:`M16 15l-4 4l-4 -4`,key:`svg-1`}]]),mA=sA(`outline`,`trash`,`Trash`,[[`path`,{d:`M4 7l16 0`,key:`svg-0`}],[`path`,{d:`M10 11l0 6`,key:`svg-1`}],[`path`,{d:`M14 11l0 6`,key:`svg-2`}],[`path`,{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,key:`svg-3`}],[`path`,{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`,key:`svg-4`}]]),hA=({questions:e,instanceId:t,answers:n,handleAnswerChange:r,matchedResult:i,setEmbla:a,scrollNext:o,scrollPrev:s,introduction:c,title:l,selectPlaceholder:u,timeLabel:d,startButtonLabel:f,disclaimerTitle:p,disclaimerPrimaryText:m,disclaimerSecondaryText:h,cancelButtonLabel:_,understoodButtonLabel:v,multipleAnswersLabel:y,previousButtonLabel:b,nextButtonLabel:x,completedTitle:S,completedText:C,adviceButtonLabel:w,resultTitle:T,noResultText:E})=>{let D=(0,g.useCallback)((e,n,i,a)=>{let o=i.length>3;if(n===`dropdownlist`)return(0,U.jsx)(OD,{placeholder:_s(u),data:i.map(e=>({value:e.Id,label:_s(e.Label)})),value:a[0]||null,onChange:t=>{t&&r(e,t,!1)}});if(n===`radiobuttonlist`){let n=i.map(e=>(0,U.jsx)(ED,{value:e.Id,label:_s(e.Label)},e.Id));return(0,U.jsx)(pD,{name:`${t}-${e}`,onChange:t=>r(e,t,!1),children:o?(0,U.jsx)(LD,{cols:2,spacing:`xl`,verticalSpacing:`sm`,children:n}):(0,U.jsx)(oO,{children:n})})}let s=i.map(t=>(0,U.jsx)(ST,{value:t.Id,label:_s(t.Label),checked:a.includes(t.Id),onChange:()=>r(e,t.Id,!0)},t.Id));return o?(0,U.jsx)(LD,{cols:2,spacing:`xl`,verticalSpacing:`sm`,children:s}):(0,U.jsx)(oO,{children:s})},[r,t,u]);return(0,U.jsxs)(aA,{getEmblaApi:a,slideSize:`100%`,withControls:!1,withIndicators:!1,height:`100%`,flex:1,emblaOptions:{loop:!1,dragFree:!1,align:`center`,watchDrag:!1},children:[(0,U.jsx)(aA.Slide,{className:`carousel-slide`,children:(0,U.jsxs)(`div`,{className:`checklist-item`,children:[(0,U.jsxs)(`div`,{className:`checklist-item-content`,children:[(0,U.jsxs)(`div`,{className:`checklist-item-header`,children:[(0,U.jsx)(`div`,{className:`checklist-title`,children:_s(l)}),(0,U.jsxs)(`div`,{className:`checklist-time`,children:[(0,U.jsx)(cA,{stroke:2}),` `,_s(d)]})]}),c&&(0,U.jsx)(`p`,{className:`checklist-introduction`,children:_s(c)})]}),(0,U.jsxs)(`div`,{className:`checklist-item-footer`,children:[(0,U.jsx)(`div`,{className:`checklist-button-container`,children:(0,U.jsx)(`div`,{className:`button button--primary`,onClick:o,children:_s(f)})}),(0,U.jsx)(`div`,{className:`checklist-image-container`,children:(0,U.jsx)(`img`,{src:`/images/logo-umcu.svg`,alt:`UMC Utrecht`})})]})]})}),(0,U.jsx)(aA.Slide,{className:`carousel-slide`,children:(0,U.jsxs)(`div`,{className:`checklist-item`,children:[(0,U.jsxs)(`div`,{className:`checklist-item-content`,children:[(0,U.jsx)(`div`,{className:`checklist-item-header`,children:(0,U.jsx)(`div`,{className:`checklist-title`,children:_s(p)})}),(0,U.jsx)(`div`,{className:`checklist-introduction`,children:_s(m)}),(0,U.jsx)(`div`,{className:`checklist-introduction`,children:_s(h)})]}),(0,U.jsxs)(`div`,{className:`checklist-item-footer`,children:[(0,U.jsxs)(`div`,{className:`checklist-button-container`,children:[(0,U.jsx)(`div`,{className:`button button--transparent button--white--text button--centered`,onClick:s,children:_s(_)}),(0,U.jsx)(`div`,{className:`button button--secondary`,onClick:o,children:_s(v)})]}),(0,U.jsx)(`div`,{className:`checklist-image-container`,children:(0,U.jsx)(`img`,{src:`/images/logo-umcu.svg`,alt:`UMC Utrecht`})})]})]})}),e.map(e=>{let r=n[`${t}-${e.id}`]||[],i=r.length>0;return(0,U.jsx)(aA.Slide,{className:`carousel-slide`,children:(0,U.jsxs)(`div`,{className:`checklist-item`,children:[(0,U.jsxs)(`div`,{className:`checklist-item-content`,children:[(0,U.jsx)(`div`,{className:`checklist-slider`,children:`\xA0`}),(0,U.jsx)(`div`,{className:`checklist-item-header`,children:(0,U.jsxs)(`div`,{className:`checklist-title`,children:[_s(e.question),e.type===`checkboxlist`&&(0,U.jsx)(`span`,{className:`multiple-answers`,children:_s(y)})]})}),(0,U.jsx)(`div`,{className:`checklist-options`,children:D(e.id,e.type,e.options,r)})]}),(0,U.jsx)(`div`,{className:`checklist-item-footer`,children:(0,U.jsxs)(`div`,{className:`checklist-button-container`,children:[(0,U.jsx)(`div`,{className:`button button--transparent button--back`,onClick:s,children:_s(b)}),(0,U.jsx)(`div`,{className:`button button--primary ${i?``:`button--disabled`}`,onClick:()=>{i&&o()},children:_s(x)})]})})]})},e.id)}),(0,U.jsx)(aA.Slide,{className:`carousel-slide`,children:(0,U.jsxs)(`div`,{className:`checklist-item checklist-item-last`,children:[(0,U.jsxs)(`div`,{className:`checklist-item-content`,children:[(0,U.jsx)(`div`,{className:`checklist-slider`,children:`\xA0`}),(0,U.jsx)(`div`,{className:`checklist-item-header`,children:(0,U.jsx)(`div`,{className:`checklist-title`,children:_s(S)})}),(0,U.jsx)(`div`,{className:`checklist-introduction`,children:_s(C)})]}),(0,U.jsx)(`div`,{className:`checklist-item-footer`,children:(0,U.jsxs)(`div`,{className:`checklist-button-container`,children:[(0,U.jsx)(`div`,{className:`button button--transparent button--centered button--back`,onClick:s,children:_s(b)}),(0,U.jsx)(`div`,{className:`button button--secondary`,onClick:o,children:_s(w)})]})})]})}),(0,U.jsx)(aA.Slide,{className:`carousel-slide`,children:(0,U.jsxs)(`div`,{className:`checklist-item checklist-item-result`,children:[(0,U.jsxs)(`div`,{className:`checklist-item-content`,children:[(0,U.jsx)(`div`,{className:`checklist-item-header`,children:(0,U.jsx)(`div`,{className:`checklist-title`,children:_s(T)})}),(0,U.jsx)(`div`,{className:`checklist-introduction`,children:i?(0,U.jsx)(`div`,{dangerouslySetInnerHTML:{__html:_s(i.resulttext)}}):_s(E)})]}),(0,U.jsxs)(`div`,{className:`checklist-item-footer`,children:[(0,U.jsx)(`div`,{className:`checklist-button-container`,children:(0,U.jsx)(`div`,{className:`button button--transparent button--centered button--back`,onClick:s,children:_s(b)})}),(0,U.jsx)(`div`,{className:`checklist-image-container`,children:(0,U.jsx)(`img`,{src:`/images/logo-umcu.png`,alt:`UMC Utrecht`})})]})]})})]})},gA=()=>g.useMemo(()=>crypto.randomUUID(),[]),_A=({image:e,title:t,introduction:n,elements:r,selectPlaceholder:i,timeLabel:a,startButtonLabel:o,disclaimerTitle:s,disclaimerPrimaryText:c,disclaimerSecondaryText:l,cancelButtonLabel:u,understoodButtonLabel:d,multipleAnswersLabel:f,previousButtonLabel:p,nextButtonLabel:m,completedTitle:h,completedText:_,adviceButtonLabel:v,resultTitle:y,noResultText:b,unknownResultLabel:x})=>{let S=(0,g.useMemo)(()=>r&&JSON.parse(r),[r]),C=(S==null?void 0:S.questions)||[],w=(S==null?void 0:S.results)||[],T=gA(),[E,D]=(0,g.useState)(null),[O,k]=(0,g.useState)({}),[A,j]=(0,g.useState)(0),[M,N]=(0,g.useState)(`start`),P=(0,g.useRef)(null),ee=(0,g.useRef)(null),[F,I]=(0,g.useState)(),[te]=(0,g.useState)(new Date),[L,ne]=(0,g.useState)(new Date),R=(0,g.useCallback)(()=>
62{if(ee.current){let e=ee.current.getBoundingClientRect().top+window.scrollY-50;window.scrollTo({top:e,behavior:`smooth`})}},[]);(0,g.useEffect)(()=>{if(!E)return;let e=()=>{let e=E.selectedScrollSnap();j(e),e===0?N(`start`):e===1?N(`disclaimer`):e===C.length+2?N(`done`):e===C.length+3?N(`result`):N(null)};e(),E.on(`select`,e)},[E,C.length]);let re=(0,g.useCallback)(()=>{P.current&&I(P.current.clientHeight)},[]);(0,g.useEffect)(()=>(re(),window.addEventListener(`resize`,re),()=>window.removeEventListener(`resize`,re)),[re]);let z=(0,g.useCallback)((e,t,n)=>{let r=`${T}-${e}`;k(e=>{if(n){let n=e[r]||[];return{...e,[r]:n.includes(t)?n.filter(e=>e!==t):[...n,t]}}return{...e,[r]:[t]}})},[T]),ie=Object.values(O).flat(),ae=w.find(e=>{var t;return((t=e.resultlogic)==null?void 0:t.length)&&ie.every(t=>e.resultlogic.includes(t))})||w.find(e=>{var t;return!((t=e.resultlogic)!=null&&t.length)}),oe=2+C.length,se=A>=2&&A<=oe,ce=(A-2+1)/C.length*100,le=(0,g.useCallback)(async()=>{if(console.log(`Sending progress`),!(!window||!ae))try{await ps.post(`/nl/campaign/progress`,{id:T,title:t,url:window.location.href,startingTime:te.toISOString(),endingTime:L.toISOString(),progress:Math.round(ce),result:(ae==null?void 0:ae.resulttext)||x})}catch(e){console.error(`Error sending progress:`,e)}},[T,te,ae,ce,x]),ue=(0,g.useCallback)(()=>{le(),E==null||E.scrollNext(),ne(new Date),R()},[E,le]),B=(0,g.useCallback)(()=>{le(),E==null||E.scrollPrev(),ne(new Date)},[E,le]);return(0,U.jsx)(`div`,{className:`content-container content-container--checklist`,children:(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsxs)(`div`,{className:`campaign-checklist`,ref:ee,style:{minHeight:F?`${F}px`:void 0},children:[e&&(0,U.jsx)(`img`,{className:`hero-image`,src:e,alt:t,ref:P,onLoad:re}),(0,U.jsxs)(`div`,{className:`checklist-container ${e?``:`full-width`}`,"data-attr-active-element":M||void 0,children:[se&&(0,U.jsx)(`div`,{className:`checklist-progress`,children:(0,U.jsx)(nO,{value:ce,color:`#fff`,label:null,disabled:!0})}),(0,U.jsx)(hA,{questions:C,instanceId:T,answers:O,handleAnswerChange:z,matchedResult:ae,setEmbla:D,scrollNext:ue,scrollPrev:B,introduction:n,title:t,selectPlaceholder:i,timeLabel:a,startButtonLabel:o,disclaimerTitle:s,disclaimerPrimaryText:c,disclaimerSecondaryText:l,cancelButtonLabel:u,understoodButtonLabel:d,multipleAnswersLabel:f,previousButtonLabel:p,nextButtonLabel:m,completedTitle:h,completedText:_,adviceButtonLabel:v,resultTitle:y,noResultText:b,unknownResultLabel:x})]})]})})})};function vA({slug:e}){let[t,{open:n,close:r}]=Tm(!1);return(0,U.jsxs)(d_,{className:`share-drawer-container`,hiddenFrom:`md`,children:[(0,U.jsxs)(oO,{children:[(0,U.jsxs)(XC,{className:`share-drawer-title`,children:[`Vragen, opmerkingen of tips voor de redactie?`,` `]}),(0,U.jsxs)(Wx,{gap:`10`,children:[(0,U.jsx)(`div`,{className:`button button--secondary button--share-button`,onClick:n,children:`Delen`}),(0,U.jsx)(`a`,{href:`/nl/colofon`,className:`button button--secondary button--mail-button`,children:`Mail de redactie`})]})]}),(0,U.jsx)(vE,{opened:t,onClose:r,position:`bottom`,className:`share-drawer`,children:(0,U.jsxs)(oO,{gap:`sm`,children:[(0,U.jsxs)(Wx,{className:`social-share__row`,onClick:()=>window.open(`https://www.facebook.com/sharer/sharer.php?u=https://www.umcutrecht.nl/nieuws/`+e,`_blank`),children:[(0,U.jsx)(`div`,{className:`social-share__news-article-link social-share__link--facebook social-share__link--mobile`}),(0,U.jsx)(XC,{className:`social-share__link--mobile-title`,children:`Facebook`})]}),(0,U.jsxs)(Wx,{className:`social-share__row`,onClick:()=>window.open(`https://www.instagram.com`,`_blank`),children:[(0,U.jsx)(`div`,{className:`social-share__news-article-link social-share__link--instagram social-share__link--mobile`}),(0,U.jsx)(XC,{className:`social-share__link--mobile-title`,children:`Instagram`})]}),(0,U.jsxs)(Wx,{className:`social-share__row`,onClick:()=>window.open(`https://www.linkedin.com/shareArticle?mini=true&url=https://www.umcutrecht.nl/nieuws/`+e,`_blank`),children:[(0,U.jsx)(`div`,{className:`social-share__news-article-link social-share__link--linkedin social-share__link--mobile`}
62),(0,U.jsx)(XC,{className:`social-share__link--mobile-title`,children:`LinkedIn`})]}),(0,U.jsxs)(Wx,{className:`social-share__row`,onClick:()=>window.open(`https://www.threads.net/`,`_blank`),children:[(0,U.jsx)(`div`,{className:`social-share__news-article-link social-share__link--threads social-share__link--mobile`}),(0,U.jsx)(XC,{className:`social-share__link--mobile-title`,children:`Threads`})]}),(0,U.jsxs)(Wx,{className:`social-share__row`,onClick:()=>window.open(`https://bsky.app/intent/compose?text=Check%20this%20out:%20https://www.umcutrecht.nl/nieuws/`+e,`_blank`),children:[(0,U.jsx)(`div`,{className:`social-share__news-article-link social-share__link--bluesky social-share__link--mobile`}),(0,U.jsx)(XC,{className:`social-share__link--mobile-title`,children:`Bluesky`})]})]})})]})}function yA(e){let t=document.createElement(`div`);return t.setAttribute(`id`,e),document.body.appendChild(t),t}var bA=`umcu-modal-root`;function xA({children:e,opened:t,size:n=`md`}){let[r,i]=(0,g.useState)(null);return(0,g.useLayoutEffect)(()=>{let e=document.getElementById(bA)||yA(bA);i(e)},[]),r?(0,ne.createPortal)(t&&(0,U.jsx)(nC,{removeScrollBar:!1,children:(0,U.jsxs)(`div`,{className:(0,sr.default)(`umcu-generic-modal__root`,{"umcu-generic-modal__xs":n===`xs`,"umcu-generic-modal__sm":n===`sm`,"umcu-generic-modal__md":n===`md`,"umcu-generic-modal__lg":n===`lg`,"umcu-generic-modal__xl":n===`xl`}),children:[(0,U.jsx)(`div`,{className:`umcu-generic-modal__overlay`}),(0,U.jsx)(`div`,{className:`umcu-generic-modal__inner`,children:(0,U.jsx)(`div`,{className:`umcu-generic-modal__content`,children:(0,U.jsx)(`div`,{className:`umcu-generic-modal__body`,children:e})})})]})}),r):null}var SA=({user:e,handleCancelEdit:t,handleConfirmEdit:n,setSelectedDivision:r,selectedDivision:i,showSuccess:a})=>a?(0,U.jsxs)(JT,{style:{flexDirection:`column`,padding:32},children:[(0,U.jsx)(cA,{size:48,color:`green`}),(0,U.jsx)(XC,{mt:`sm`,fw:500,children:`Divisie is aangepast`})]}):(0,U.jsxs)(oO,{children:[(0,U.jsx)(BO,{size:`xl`,children:`Wijzigen`}),(0,U.jsxs)(XC,{size:`md`,children:[`Wilt u de divisie van `,(0,U.jsx)(`strong`,{children:e==null?void 0:e.email}),` wijzigen?`]}),(0,U.jsx)(OD,{label:`Divisie`,placeholder:`Selecteer een divisie`,data:[{value:`Raad van Bestuur`,label:`Raad van Bestuur`},{value:`Directie Strategie en Beleid`,label:`Directie Strategie en Beleid`},{value:`Directie Informatie Technologie`,label:`Directie Informatie Technologie`},{value:`Directie Informatievoorziening en Financiën`,label:`Directie Informatievoorziening en Financiën`},{value:`Directie Facilitair Bedrijf`,label:`Directie Facilitair Bedrijf`},{value:`Kwaliteit en patiëntveiligheid`,label:`Kwaliteit en patiëntveiligheid`},{value:`Onderwijscentrum`,label:`Onderwijscentrum`},{value:`Personeel en Organisatie`,label:`Personeel en Organisatie`},{value:`Directie Marketing en Communicatie`,label:`Directie Marketing en Communicatie`},{value:`Divisie Beeld`,label:`Divisie Beeld`},{value:`Divisie Cancer Center`,label:`Divisie Cancer Center`},{value:`Divisie Hart en Longen`,label:`Divisie Hart en Longen`},{value:`Divisie Heelkundige Specialismen`,label:`Divisie Heelkundige Specialismen`},{value:`Divisie Hersenen`,label:`Divisie Hersenen`},{value:`Divisie Interne Geneeskunde en Dermatologie`,label:`Divisie Interne Geneeskunde en Dermatologie`},{value:`Divisie Julius Centrum`,label:`Divisie Julius Centrum`},{value:`Divisie Kinderen`,label:`Divisie Kinderen`},{value:`Divisie Laboratoria, Apotheek en Biomedische Genetica`,label:`Divisie Laboratoria, Apotheek en Biomedische Genetica`},{value:`Divisie Vitale Functies`,label:`Divisie Vitale Functies`},{value:`Divisie Vrouw en Baby`,label:`Divisie Vrouw en Baby`},{value:`WKZ`,label:`WKZ`},{value:`Extern`,label:`Extern`}],value:i,onChange:e=>{e!==null&&r(e)},required:!0}),(0,U.jsxs)(Wx,{justify:`flex-end`,children:[(0,U.jsx)(`button`,{className:`button button--secondary`,onClick:t,children:`Annuleren`}),(0,U.jsx)(`button`,{className:`button button--primary`,onClick:n,children:`Opslaan`})]})]}),CA=({handleAddUser:e,addDivision:t,setAddDivision:n,addEmail:r,setAddEmail:i,emailError:a,setEmailError:o,loading:s,showAddSuccess:c})=>(0,U.jsxs)(oO,{mt:40,mb:40,children:[(0,U.jsx)(qE,{visible:s,loaderProps:{children:c?(0,U.jsxs)(oO,{align:`center`,gap:4,children:[(0,U.jsx)(cA,{size:40,color:`green`}),(0,U.jsx)(`div`,{className:`add-user-text`,children:`Gebruiker is aangemaakt`})]}):(0,U.jsx)(Px,{})},overlayProps:{opacity:.8}}),(0,U.jsx)(BO,{mb:20,ff:`inherit`,lh:1.33,order:1,children:`Floating license beheer`}),(0,U.jsx)(BO,{ff:`inherit`,lh:1.33,size:`xl`,order:2,children:`Maak een nieuwe gebruiker aan`}),(0,U.jsxs)(WC,{gap:20,direction:{base:`column`,sm:`row`},children:[(0,U.jsx)(NO,{className:`text-input`,placeholder:`Vul hier een email adres in`,value:r,mt:0,onChange:e=>{i(e.currentTarget.value),a&&o(null)},error:a}),(0,U.jsx)(OD,{className:`select-input`,placeholder:`Selecteer een divisie`,mt:0,value:t,data:[{value:`Raad van Bestuur`,label:`Raad van Bestuur`},{value:`Directie Strategie en Beleid`,label:`Directie Strategie en Beleid`},{value:`Directie Informatie Technologie`,label:`Directie Informatie Technologie`},{value:`Directie Informatievoorziening en Financiën`,label:`Directie Informatievoorziening en Financiën`},{value:`Directie Facilitair Bedrijf`,label:`Directie Facilitair Bedrijf`},{value:`Kwaliteit en patiëntveiligheid`,label:`Kwaliteit en patiëntveiligheid`},{value:`Onderwijscentrum`,label:`Onderwijscentrum`},{value:`Personeel en Organisatie`,label:`Personeel en Organisatie`},{value:`Directie Marketing en Communicatie`,label:`Directie Marketing en Communicatie`},{value:`Divisie Beeld`,label:`Divisie Beeld`},{value:`Divisie Cancer Center`,label:`Divisie Cancer Center`},{value:`Divisie Hart en Longen`,label:`Divisie Hart en Longen`},{value:`Divisie Heelkundige Specialismen`,label:`Divisie Heelkundige Specialismen`},{value:`Divisie Hersenen`,label:`Divisie Hersenen`},{value:`Divisie Interne Geneeskunde en Dermatologie`,label:`Divisie Interne Geneeskunde en Dermatologie`},{value:`Divisie Julius Centrum`,label:`Divisie Julius Centrum`},{value:`Divisie Kinderen`,label:`Divisie Kinderen`},{value:`Divisie Laboratoria, Apotheek en Biomedische Genetica`,label:`Divisie Laboratoria, Apotheek en Biomedische Genetica`},{value:`Divisie Vitale Functies`,label:`Divisie Vitale Functies`},{value:`Divisie Vrouw en Baby`,label:`Divisie Vrouw en Baby`},{value:`WKZ`,label:`WKZ`},{value:`Extern`,label:`Extern`}],onChange:e=>n(e??``),required:!0}),(0,U.jsx)(`button`,{className:`button button--primary`,onClick:e,style:{height:48},children:`Toevoegen`})]})]}),wA=({user:e,onConfirm:t,onCancel:n,showSuccess:r})=>(0,U.jsx)(oO,{children:r?(0,U.jsxs)(JT,{style:{flexDirection:`column`,padding:32},children:[(0,U.jsx)(cA,{size:48,color:`green`}),(0,U.jsx)(XC,{mt:`sm`,fw:500,children:`Gebruiker is verwijderd`})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(BO,{size:`xl`,children:`Verwijderen`}),(0,U.jsxs)(XC,{size:`md`,mb:`md`,children:[`Weet je zeker dat je `,(0,U.jsx)(`strong`,{children:e==null?void 0:e.email}),` wilt verwijderen?`]}),(0,U.jsxs)(Wx,{justify:`flex-end`,children:[(0,U.jsx)(`button`,{className:`button button--secondary`,onClick:n,children:`Annuleren`}),(0,U.jsx)(`button`,{className:`button button--primary`,onClick:t,children:`Ja, verwijderen`})]})]})});function TA(e){let t=new Date(e);return`${String(t.getDate()).padStart(2,`0`)}-${String(t.getMonth()+1).padStart(2,`0`)}-${t.getFullYear()}`}function EA({children:e,reversed:t,sorted:n,onSort:r,canSort:i}){let a=n?t?uA:lA:pA;return(0,U.jsx)(MO.Th,{className:`th`,children:(0,U.jsx)(Ib,{onClick:r,className:`control`,children:(0,U.jsxs)(Wx,{justify:`space-between`,"align-items":`center`,wrap:`nowrap`,className:`group`,children:[(0,U.jsx)(XC,{fw:1,fz:`sm`,children:e}),i&&(0,U.jsx)(JT,{className:`icon`,children:(0,U.jsx)(a,{size:16,stroke:1.5})})]})})})}function DA(e,t){let n=t.toLowerCase().trim();return e.filter(e=>[`email`,`division`,`createdAt`,`lastActivatedAt`,`activationCount`].some(t=>{let r=e[t];return r==null?!1:typeof r==`number`?r.toString().includes(n):r.toLowerCase().includes(n)}))}function OA(e,t){let{sortBy:n}=t;return DA(n?[...e].sort((e,r)=>{let i=e[n],a=r[n];return typeof i==`number`&&typeof a==`number`?t.reversed?a-i:i-a:t.reversed?String(a).localeCompare(String(i)):String(i).localeCompare(String(a))}):e,t.search)}function kA(){let[e,t]=(0,g.useState)(!1),[n,r]=(0,g.useState)(!1),[i,a]=(0,g.useState)(null),[o,s]=(0,g.useState)(``),[c,l]=(0,g.useState)(``),[u,d]=(0,g.useState)(``),[f,p]=(0,g.useState)(``),[m,h]=(0,g.useState)([]),[_,v]=(0,g.useState)([]),[y,b]=(0,g.useState)(null),[x,S]=(0,g.useState)(!1),[C,w]=(0,g.useState)(null),[T,E]=Tm(!1),[D,O]=Tm(!1),[k,A]=(0,g.useState)(null),[j,M]=(0,g.useState)(!1),[N,P]=(0,g.useState)(!1),[ee,F]=(0,g.useState)(!1);(0,g.useEffect)(()=>{I()},[]);let I=async()=>{O.open(),A(null);try{let e=await fetch(`/nl/floatinglicenses/user`);if(e.status===401){window.location.href=`/auth/login?returnUrl=/nl/floatinglicenses/admin`;return}if(!e.ok)throw Error(`Failed to fetch users (${e.status})`);let t=await e.json();h(t),v(OA(t,{sortBy:y,reversed:x,search:f}))}catch(e){console.error(`Error fetching users:`,e),A(`Gebruikers laden is mislukt. Probeer het opnieuw.`)}finally{O.close()}},te=e=>{a(e),t(!0)},L=e=>{a(e),s(e.division),r(!0)},ne=async()=>
62{if(!i)return;let e=await fetch(`/nl/floatinglicenses/user`,{method:`DELETE`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({user:i})});if(e.status===401){window.location.href=`/auth/login?returnUrl=/nl/floatinglicenses/admin`;return}if(!e.ok){console.error(`Failed to delete user:`,i.email);return}P(!0),await I(),setTimeout(()=>{P(!1),t(!1),a(null)},2e3)},R=async()=>{if(!i)return;i.division=o;let e=await fetch(`/nl/floatinglicenses/user`,{method:`PUT`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({user:i})});if(e.status===401){window.location.href=`/auth/login?returnUrl=/nl/floatinglicenses/admin`;return}if(!e.ok){console.error(`Failed to edit user:`,i.email);return}F(!0),await I(),setTimeout(()=>{F(!1),r(!1),a(null)},2e3)},re=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),z=async()=>{if(E.open(),!re(c)){w(`Dit is geen geldig email adres`),E.close();return}if(!c||!u){w(`Email en divisie zijn verplicht`),E.close();return}let e=await fetch(`/nl/floatinglicenses/user`,{method:`POST`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({user:{email:c,division:u}})});if(e.status===401){window.location.href=`/auth/login?returnUrl=/nl/floatinglicenses/admin`;return}if(!e.ok){let t=await e.json(),n=(t==null?void 0:t.error)??`Toevoegen mislukt`;w(n),E.close();return}l(``),d(``),w(null),M(!0),await I(),setTimeout(()=>{M(!1),E.close()},2e3)},ie=()=>{t(!1),a(null)},ae=()=>{r(!1),a(null)},oe=e=>{let t=e===y&&!x;S(t),b(e),v(OA(m,{sortBy:e,reversed:t,search:f}))},se=e=>{let{value:t}=e.currentTarget;p(t),v(OA(m,{sortBy:y,reversed:x,search:t}))},ce=_.map(e=>(0,U.jsxs)(MO.Tr,{children:[(0,U.jsx)(MO.Td,{children:e.email}),(0,U.jsx)(MO.Td,{children:e.division}),(0,U.jsx)(MO.Td,{children:TA(e.createdAt)}),(0,U.jsx)(MO.Td,{children:TA(e.lastActivatedAt)}),(0,U.jsx)(MO.Td,{children:e.activationCount}),(0,U.jsx)(MO.Td,{className:`actions`,children:(0,U.jsx)(RT,{title:`Wijzigen`,onClick:()=>L(e),children:(0,U.jsx)(dA,{size:24,stroke:1.5})})}),(0,U.jsx)(MO.Td,{className:`actions`,children:(0,U.jsx)(RT,{title:`Verwijderen`,color:`red`,onClick:()=>te(e),children:(0,U.jsx)(mA,{size:24,stroke:1.5})})})]},e.email));return(0,U.jsxs)(QT,{size:`lg`,mb:100,mt:40,className:`floating-licenses-table`,children:[(0,U.jsx)(CA,{handleAddUser:z,addDivision:u,setAddDivision:d,addEmail:c,setAddEmail:l,emailError:C,setEmailError:w,loading:T,showAddSuccess:j}),(0,U.jsx)(BO,{size:`xl`,ff:`inherit`,lh:1.33,order:2,children:`Overzicht`}),k&&(0,U.jsxs)(Wx,{mb:`md`,children:[(0,U.jsx)(XC,{c:`red`,role:`alert`,children:k}),(0,U.jsx)(RT,{onClick:I,loading:D,children:`Opnieuw proberen`})]}),(0,U.jsxs)(Mb,{children:[(0,U.jsx)(qE,{visible:D,loaderProps:{children:(0,U.jsx)(Px,{})},overlayProps:{opacity:.9,blur:2}}),(0,U.jsx)(NO,{placeholder:`Zoeken`,rightSection:(0,U.jsx)(fA,{size:30,stroke:1.5}),value:f,onChange:se}),(0,U.jsxs)(MO,{horizontalSpacing:`xs`,verticalSpacing:`xs`,withRowBorders:!1,children:[(0,U.jsx)(MO.Thead,{children:(0,U.jsxs)(MO.Tr,{children:[(0,U.jsx)(EA,{sorted:y===`email`,reversed:x,onSort:()=>oe(`email`),canSort:!0,children:`E-mail`}),(0,U.jsx)(EA,{sorted:y===`division`,reversed:x,onSort:()=>oe(`division`),canSort:!0,children:`Divisie`}),(0,U.jsx)(EA,{sorted:y===`createdAt`,reversed:x,onSort:()=>oe(`createdAt`),canSort:!0,children:`Aangemaakt`}),(0,U.jsx)(EA,{sorted:y===`lastActivatedAt`,reversed:x,onSort:()=>oe(`lastActivatedAt`),canSort:!0,children:`Laatst geactiveerd`}),(0,U.jsx)(EA,{sorted:y===`activationCount`,reversed:x,onSort:()=>oe(`activationCount`),canSort:!0,children:`Aant. 6 mnd`})]})}),(0,U.jsx)(MO.Tbody,{children:ce.length>0?ce:(0,U.jsx)(MO.Tr,{children:(0,U.jsx)(MO.Td,{colSpan:5,children:(0,U.jsx)(XC,{fw:500,ta:`center`,children:`Geen gebruikers gevonden`})})})})]})]}),(0,U.jsx)(xA,{opened:e,size:`lg`,children:(0,U.jsx)(wA,{user:i,onConfirm:ne,onCancel:ie,showSuccess:N})}),(0,U.jsx)(xA,{opened:n,size:`xl`,children:(0,U.jsx)(SA,{handleCancelEdit:ae,handleConfirmEdit:R,selectedDivision:o,setSelectedDivision:s,user:i,showSuccess:ee})})]})}function AA(){let[e,t]=(0,g.useState)(``),[n,r]=(0,g.useState)(null),i=async()=>
62{if(!a(e)){r(`Dit is geen geldig email adres`);return}r(null);let t=await fetch(`/nl/floatinglicenses/activateuser`,{method:`PUT`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({user:{email:e}})});if(t.ok)window.location.href=`https://app.kontent.ai/`;else{let e=await t.json(),n=(e==null?void 0:e.error)||`Onbekende fout`;r(n)}},a=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);return(0,U.jsx)(QT,{size:`lg`,mt:40,mb:100,className:`floating-licenses-form`,children:(0,U.jsxs)(oO,{children:[(0,U.jsx)(BO,{mb:20,ff:`inherit`,lh:1.33,children:`Je floating license account in Kontent.ai activeren`}),(0,U.jsxs)(WC,{gap:`xs`,align:`flex-start`,direction:{base:`column`,sm:`row`},children:[(0,U.jsxs)(oO,{className:`blue-stack`,w:{base:`100%`,sm:`50%`},children:[(0,U.jsx)(BO,{size:`xl`,ff:`inherit`,lh:1.33,order:2,children:`Activeer je account`}),(0,U.jsxs)(XC,{children:[`Ben je een UMC Utrecht-redacteur met een account in Kontent.ai (voorheen Kentico)?`,(0,U.jsx)(`br`,{}),`Activeer dan eerst hier je account.`,(0,U.jsx)(`br`,{}),`Vul hieronder je UMC-mailadres in, activeer je account en log vervolgens in op het dashboard van Kontent.ai.`,(0,U.jsx)(`br`,{}),(0,U.jsx)(`br`,{}),(0,U.jsx)(`i`,{children:`Je account is dan een dag lang geactiveerd. Elke dag vanaf 00.00 uur worden alle licenties weer gedeactiveerd.`}),(0,U.jsx)(`br`,{})]}),(0,U.jsx)(NO,{placeholder:`Vul hier je email adres in`,value:e,onChange:e=>{t(e.currentTarget.value),n&&r(null)},error:n}),(0,U.jsx)(`button`,{className:`button button--primary`,onClick:()=>i(),children:`Activeer je account`}),(0,U.jsx)(`a`,{href:`https://app.kontent.ai/`,target:`_blank`,className:`button button--secondary`,children:`Login bij Kontent.ai`})]}),(0,U.jsxs)(oO,{className:`stack`,w:{base:`100%`,sm:`50%`},children:[(0,U.jsx)(BO,{order:2,size:`xl`,ff:`inherit`,lh:1.33,children:`Nog geen account voor Kontent.ai?`}),(0,U.jsx)(XC,{children:`Heb je nog geen toegang en wil je wel als redacteur aan de slag op de site van het UMC Utrecht? Vraag dan een account aan via de Howtoedit-site van het UMC Utrecht.`}),(0,U.jsx)(`a`,{href:`https://howtoedit.umcutrecht.nl/nl/account-aanvragen`,target:`_blank`,className:`button button--primary`,children:`Account aanvragen`}),(0,U.jsx)(BO,{order:2,size:`xl`,ff:`inherit`,lh:1.33,children:`Rechtstreeks inloggen in Kontent.ai`}),(0,U.jsx)(XC,{children:`Heb je een volledig account in Kontent.ai, dan kun je rechtstreeks naar de Kontent.ai-omgeving gaan.`}),(0,U.jsx)(`a`,{href:`https://app.kontent.ai/546dd520-97db-01b7-154d-79bb6d950a2d`,target:`_blank`,className:`button button--secondary`,children:`Naar edit-omgeving van Kontent.ai`})]})]})]})})}var jA=({title:e,image:t,url:n})=>{let r={backgroundImage:`url(${t})`},i=()=>{window.open(n,`_self`)};return(0,U.jsx)(`div`,{className:`nav-card-container`,style:r,onClick:()=>i(),children:(0,U.jsx)(`div`,{className:`nav-card-title`,children:e})})},MA=({title:e,text:t})=>(0,U.jsxs)(`div`,{className:`post-it-container`,children:[(0,U.jsx)(`img`,{src:`/images/thumbtack.png`,alt:``,className:`post-it-thumbtack__left`}),(0,U.jsx)(`img`,{src:`/images/thumbtack.png`,alt:``,className:`post-it-thumbtack__right`}),(0,U.jsx)(`h4`,{children:e}),(0,U.jsx)(`div`,{id:`post-it-body`,dangerouslySetInnerHTML:{__html:t.toString()}})]}),NA=`https://umcu-website-surveyjsapi-test.azurewebsites.net/api/v1/captcha`,PA=`https://umcu-website-surveyjsapi-test.azurewebsites.net/api/v1/captcha/validate`,FA=({title:e,message:t,id:n,language:r,api:i})=>{let[a,o]=g.useState(localStorage.getItem(n)===null),[s,c]=g.useState(void 0),[l,u]=g.useState(``),[d,f]=g.useState(``),[p,m]=g.useState(),h=async()=>{try{let e=await fetch(NA);if(e.ok){let t=await e.json();c(t)}else o(!1)}catch{console.log(document.getElementById(`friends_banner`)),o(!1)}},_=async()=>{try{return await fetch(PA,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({input:l,code:s.code})})}catch{m(`Er is iets mis gegaan met het valideren van de captcha.`)}},v=async e=>{e.preventDefault();let t=await _();if(t!=null&&t.ok){let e=await t.json();if(e.valid||m(`Captcha is niet correct!`),e.valid)try{(await fetch(i,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({Id:n,Language:r,Email:d})})).ok&&localStorage.setItem(n,`false`),o(!1)}catch{o(!1)}}};(0,g.useEffect)(()=>{h()},[]);let y=()=>{localStorage.setItem(n,`false`),o(!1)};return a?(0,U.jsxs)(`div`,{id:`friends_banner`,className:`friends-of-banner-container`,children:[(0,U.jsx)(`button`,{className:`banner-close-icon`,onClick:()=>y()}),(0,U.jsx)(`h2`,{children:e}),(0,U.jsx)(`p`,{children:t}),(0,U.jsxs)(`form`,{onSubmit:e=>v(e),children:[(0,U.jsx)(`label`,{htmlFor:``,children:`E-mail adres`}),(0,U.jsx)(`input`,{type:`email`,placeholder:`[email protected]`,required:!0,onChange:e=>f(e.target.value)}),(0,U.jsx)(`img`,{className:`banner-captcha-img`,src:`data:image/gif;base64,${s.image}`,alt:`banner-captcha-img`}),p&&(0,U.jsx)(`p`,{style:{color:`#f8901f`},children:p}),(0,U.jsx)(`input`,{type:`text`,placeholder:`captcha tekst`,required:!0,onChange:e=>{u(e.target.value),m(null)}}),(0,U.jsx)(`button`,{type:`submit`,children:`Verzenden`})]})]}):(0,U.jsx)(U.Fragment,{})};function IA({elements:e}){let[t,n]=(0,g.useState)(0),r=(0,g.useRef)(null),i=(0,g.useRef)(null),[a,o]=(0,g.useState)(typeof window<`u`?window.innerWidth:1200),s=typeof e==`string`?JSON.parse(e):e;(0,g.useEffect)(()=>{let e=()=>{o(window.innerWidth)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let c=(0,g.useCallback)(()=>
62{if(!s)return[];let e=[];if(e=a>=1200?s.largeImages||[]:a>=768?s.mediumImages||[]:s.smallImages||[],e.length>1){i.current===null&&(i.current=Math.floor(Math.random()*e.length));let t=i.current;return[...e.slice(t),...e.slice(0,t)]}return e},[a,s])(),l=s&&s.videos||[],u=s.heroAnimation&&s.heroAnimation.includes(`image_slideshow`),d=s.heroAnimation&&s.heroAnimation.includes(`ken_burns_effect`);if((0,g.useEffect)(()=>{if(!c||c.length<=1||!u)return;let e=()=>{r.current=setInterval(()=>{n(e=>(e+1)%c.length)},1e4)},t=()=>{r.current&&(clearInterval(r.current),r.current=null)};return e(),()=>t()},[c]),l&&l.length>0){let e=l[0];return(0,U.jsx)(`div`,{className:`home-hero-v2-image`,children:(0,U.jsx)(`video`,{style:{width:`100%`,height:`100%`,objectFit:`cover`,borderRadius:`8px`},autoPlay:!0,loop:!0,muted:!0,playsInline:!0,src:e.url,"aria-label":e.description||`Hero video`,children:`Your browser does not support the video tag.`})})}if(!c||c.length===0)return null;let f=``;return d&&(f=`animated-zoom`),(0,U.jsx)(`div`,{className:`home-hero-v2-image`,children:(0,U.jsx)(`div`,{className:`hero-image-crossdissolve`,children:c.map((e,n)=>(0,U.jsx)(`div`,{className:`hero-image-slide ${n===t?`active`:``}`,children:(0,U.jsx)(FE,{className:f,radius:`md`,w:`100%`,fit:`cover`,src:e.url,alt:e.description||`Hero image ${n+1}`})},n))})})}function LA({elements:e}){let[t,n]=(0,g.useState)(typeof window<`u`?window.innerWidth:1200),r=typeof e==`string`?JSON.parse(e):e;if((0,g.useEffect)(()=>{let e=()=>{n(window.innerWidth)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),!Array.isArray(r)||r.length===0)return null;let i=t>768;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`homepage-v2-theme-container ${i?``:`hidden`}`,children:r.map((e,t)=>(0,U.jsx)(RA,{item:e},t))}),(0,U.jsx)(aA,{className:i?`hidden homepage-v2-theme-container carousel-mobile`:`homepage-v2-theme-container carousel-mobile`,withIndicators:!1,withControls:!1,height:`auto`,slideSize:`70%`,slideGap:`md`,"aria-label":`Theme content carousel`,emblaOptions:{loop:!1,align:`center`,slidesToScroll:1,containScroll:`trimSnaps`},children:r.map((e,t)=>(0,U.jsx)(aA.Slide,{children:(0,U.jsx)(RA,{item:e})},t))})]})}function RA({item:e}){let{imagePosition:t=`above`,linkUrl:n,title:r,imageUrl:i,imageDescription:a=``,text:o}=e;return(0,U.jsxs)(n?`a`:`div`,{...n?{href:n}:{onClick:e=>{n?window.location.href=n:e.preventDefault()}},className:`homepage-v2-theme-component-link ${t}`,children:[(0,U.jsxs)(`div`,{className:`homepage-v2-theme-component-text-container`,children:[(0,U.jsx)(`h3`,{className:`title`,children:_s(r)}),o&&(0,U.jsx)(`p`,{className:`homepage-v2-theme-component-link-text`,dangerouslySetInnerHTML:{__html:_s(o)}}),(0,U.jsx)(`div`,{className:`link-icon-container`,children:(0,U.jsx)(`div`,{className:`link-icon`,children:`\xA0`})})]}),(0,U.jsx)(`div`,{className:`homepage-v2-theme-image-block`,children:i&&(0,U.jsx)(FE,{src:i,alt:a||r,className:`homepage-v2-theme-image`,fit:`cover`})})]})}function zA({elements:e}){let[t,n]=(0,g.useState)(typeof window<`u`?window.innerWidth:1200),r=typeof e==`string`?JSON.parse(e):e;return(0,g.useEffect)(()=>{let e=()=>{n(window.innerWidth)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),!Array.isArray(r)||r.length===0?null:(0,U.jsx)(aA,{className:`homepage-v2-image-container`,withIndicators:!0,withControls:!0,"aria-label":`Homepage image carousel`,previousControlProps:{"aria-label":`Previous slide`},nextControlProps:{"aria-label":`Next slide`},"min-height":`475px`,slideSize:`100%`,slideGap:`0`,emblaOptions:{loop:!0,align:`center`,slidesToScroll:1,containScroll:`trimSnaps`},children:r.map((e,t)=>(0,U.jsx)(aA.Slide,{children:(0,U.jsx)(BA,{item:e})},t))})}function BA({item:e}){let{imagePosition:t=`above`,linkUrl:n,LinkText:r,title:i,imageUrl:a,imageDescription:o=``,text:s}=e;return(0,U.jsxs)(`div`,{className:`homepage-v2-image-component-link ${t}`,children:[(0,U.jsxs)(`div`,{className:`homepage-v2-image-component-text-container`,children:[(0,U.jsxs)(`div`,{className:`content`,children:[(0,U.jsx)(`h2`,{className:`title`,children:_s(i)}),s&&(0,U.jsx)(`p`,{className:`homepage-v2-image-component-link-text`,dangerouslySetInnerHTML:{__html:_s(s)}})]}),n&&(0,U.jsx)(`a`,{href:n,className:`button button--primary`,onClick:e=>{e.stopPropagation(),n&&(window.location.href=n)},children:_s(r)})]}),(0,U.jsx)(`div`,{className:`homepage-v2-image-block`,children:a&&(0,U.jsx)(FE,{src:a,alt:o||i,className:`homepage-v2-image`,fit:`cover`})})]})}function VA({elements:e,formId:t}){var n,r;let i=typeof e==`string`?JSON.parse(e):e,a=(i==null||(n=i[0])==null?void 0:n.sections)||[],o=`rubrics-v2-${t||`rubrics-form-${
62(i==null||(r=i[0])==null?void 0:r.title_for_additional_criteria)||`default`}`}`,[s,c]=(0,g.useState)(new Set),[l,u]=(0,g.useState)({}),[d,f]=(0,g.useState)({}),[p,m]=(0,g.useState)(``);(0,g.useEffect)(()=>{let e=localStorage.getItem(o);if(e)try{let t=JSON.parse(e);c(new Set(t.disabledRows||[])),u(t.radioSelections||{}),f(t.textareaValues||{}),m(t.additionalCriteria||``)}catch(e){console.error(`Error loading saved rubrics data:`,e)}},[o]),(0,g.useEffect)(()=>{let e={disabledRows:Array.from(s),radioSelections:l,textareaValues:d,additionalCriteria:p};localStorage.setItem(o,JSON.stringify(e))},[s,l,d,p,o]);let h=e=>{c(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},_=(e,t)=>{u(n=>({...n,[e]:t}))},v=(e,t)=>{f(n=>({...n,[e]:t}))},y=e=>{var t;let n=l[e],r=(t=d[e])==null?void 0:t.trim();return!n&&!r},b=e=>!e.rows||e.rows.length===0||e.rows.every(e=>y(e.codename)),x=e=>!e.subsections||e.subsections.length===0||e.subsections.every(e=>b(e));return(0,U.jsx)(`div`,{className:`rubrics-v2-table`,children:(0,U.jsxs)(oO,{children:[a.map(e=>{var t;return(0,U.jsxs)(oO,{gap:`0`,className:x(e)?`empty-section`:``,children:[(0,U.jsx)(BO,{order:2,className:`section-title ${e.color}`,fw:500,px:25,py:10,children:e.title}),(t=e.subsections)==null?void 0:t.map(e=>{var t;return(0,U.jsxs)(oO,{spacing:`sm`,className:b(e)?`empty-subsection`:``,children:[(0,U.jsx)(BO,{order:3,className:`subsection-title`,px:25,py:10,fw:600,children:e.title}),(t=e.rows)==null?void 0:t.map(e=>{let t=s.has(e.codename),n=y(e.codename);return(0,U.jsxs)(Wx,{align:`stretch`,spacing:`xl`,style:{marginBottom:`1rem`},className:`rubrics-v2-row${t?` disabled`:``}${n?` empty-row`:``}`,ml:25,children:[(0,U.jsxs)(d_,{style:{flex:1},children:[(0,U.jsx)(`div`,{style:{marginBottom:`24px`,paddingRight:`40px`,fontWeight:600,fontSize:`17px`,fontStyle:`normal`,lineHeight:`27px`},children:e.question}),(0,U.jsx)(ED.Group,{disabled:t,value:l[e.codename]||null,onChange:t=>_(e.codename,t),children:(0,U.jsxs)(oO,{gap:`12px`,children:[(0,U.jsx)(ED,{value:`1`,label:e.answer_1,style:{fontWeight:400,fontSize:`17px`}}),(0,U.jsx)(ED,{value:`2`,label:e.answer_2,style:{fontWeight:400,fontSize:`17px`}}),(0,U.jsx)(ED,{value:`3`,label:e.answer_3,style:{fontWeight:400,fontSize:`17px`}}),(0,U.jsx)(ED,{value:`4`,label:e.answer_4,style:{fontWeight:400,fontSize:`17px`}})]})})]}),(0,U.jsx)(d_,{className:`rubrics-v2-row__textarea-box`,miw:{base:0,md:400},children:(0,U.jsx)(UE,{placeholder:`Write your comments here...`,mr:{base:0,md:40},disabled:t,autosize:!0,minRows:3,value:d[e.codename]||``,onChange:t=>v(e.codename,t.target.value)})}),(0,U.jsx)(`div`,{className:`show-icon`,onClick:()=>h(e.codename),style:{cursor:`pointer`,height:40,width:30}})]},e.codename)})]},e.codename)})]},e.codename)}),(0,U.jsxs)(`div`,{className:`rubrics-v2-additional-criteria`,children:[(0,U.jsx)(BO,{order:3,className:`subsection-title`,pt:32,pb:32,pl:25,pr:25,mb:10,children:i[0].title_for_additional_criteria}),(0,U.jsx)(UE,{placeholder:`Enter additional criteria here...`,value:p,onChange:e=>m(e.target.value),minRows:4,autosize:!0,w:{base:`100%`,md:`66%`}})]})]})})}function HA({elements:e,formId:t}){let[n,r]=(0,g.useState)({}),i=typeof e==`string`?JSON.parse(e):e,a=`rubrics-v2-personal-data-${t||`default`}`;(0,g.useEffect)(()=>{let e=localStorage.getItem(a);if(e)try{r(JSON.parse(e))}catch(e){console.error(`Error loading saved personal data:`,e)}},[a]),(0,g.useEffect)(()=>{localStorage.setItem(a,JSON.stringify(n))},[n,a]);let o=(e,t)=>{r(n=>({...n,[e]:t}))},{column1:s,column2:c}=(e=>{if(!e)return{column1:[],column2:[]};let t=new DOMParser().parseFromString(e,`text/html`).querySelectorAll(`td`),n=(e,t)=>{let n=[],r=e.querySelector(`ul`);return r&&r.querySelectorAll(`:scope > li`).forEach((e,r)=>{let i=e.querySelector(`ul`),a=``;for(let t of e.childNodes)t.nodeType===Node.TEXT_NODE&&(a+=t.textContent);if(a=a.trim(),i){let e=Array.from(i.querySelectorAll(`li`)).map(e=>e.textContent.trim());n.push({type:`select`,label:a,name:`field-col${t}-${r}`,options:e})}else n.push({type:`text`,label:a,name:`field-col${t}-${r}`})}),n};return{column1:t[0]?n(t[0],1):[],column2:t[1]?n(t[1],2):[]}})(i==null?void 0:i.html);return(0,U.jsx)(`div`,{className:`rubrics-v2-personal-data`,children:(0,U.jsxs)(ME,{gap:`xl`,children:[(0,U.jsx)(ME.Col,{span:{base:12,md:6},children:(0,U.jsx)(oO,{spacing:`md`,children:s.map(e=>e.type===`select`?(0,U.jsx)(OD,{label:e.label,placeholder:`Select an option`,value:n[e.name]||null,onChange:t=>o(e.name,t),data:e.options,searchable:!0,clearable:!0},e.name):(0,U.jsx)(NO,{label:e.label,value:n[e.name]||``,onChange:t=>o(e.name,t.target.value)},e.name))})}),(0,U.jsx)(ME.Col,{span:{base:12,md:6},children:(0,U.jsx)(oO,{spacing:`md`,children:c.map(e=>e.type===`select`?(0,U.jsx)(OD,{label:e.label,placeholder:`Select an option`,value:n[e.name]||null,onChange:t=>o(e.name,t),data:e.options,searchable:!0,clearable:!0},e.name):(0,U.jsx)(NO,{label:e.label,value:n[e.name]||``,onChange:t=>o(e.name,t.target.value)},e.name))})})]})})}function UA({elements:e,formId:t,onValidityChange:n}){let[r,i]=(0,g.useState)({}),a=typeof e==`string`?JSON.parse(e):e,o=`rubrics-v2-pre-conditions-${t||`default`}`;
62(0,g.useEffect)(()=>{let e=localStorage.getItem(o);if(e)try{i(JSON.parse(e))}catch(e){console.error(`Error loading saved pre-conditions:`,e)}},[o]),(0,g.useEffect)(()=>{localStorage.setItem(o,JSON.stringify(r))},[r,o]),(0,g.useEffect)(()=>{n&&n(c.filter(e=>e.required).every(e=>r[e.name]))},[r]);let s=(e,t)=>{i(n=>({...n,[e]:t}))},c=(e=>{if(!e)return[];let t=new DOMParser().parseFromString(e,`text/html`),n=[];return t.querySelectorAll(`ul > li`).forEach((e,t)=>{let r=e.textContent.trim(),i=r.includes(`*`),a=r.replace(/\s*\*\s*$/,``);n.push({name:`condition-${t}`,label:a,required:i})}),n})(a==null?void 0:a.html);return(0,U.jsx)(`div`,{className:`rubrics-v2-pre-conditions`,children:(0,U.jsx)(oO,{spacing:`md`,children:c.map(e=>(0,U.jsx)(ST,{label:e.required?`${e.label} *`:e.label,checked:r[e.name]||!1,onChange:t=>s(e.name,t.currentTarget.checked)},e.name))})})}function WA({title:e,personalDataElements:t,preConditionsElements:n,tableElements:r,formId:i,showIntroblock:a,introblockElements:o,preconditionsTitle:s,signatureDateElements:c}){let[l,u]=(0,g.useState)(0),[d,f]=(0,g.useState)(!1),[p,m]=(0,g.useState)(!1),[h,_]=(0,g.useState)({}),v=c?(typeof c==`string`?JSON.parse(c):c).html:null,y=v?Array.from(new DOMParser().parseFromString(v,`text/html`).querySelectorAll(`li`)).map(e=>e.textContent.trim()):[],b=`rubrics-v2-signature-${i||`default`}`;(0,g.useEffect)(()=>{let e=localStorage.getItem(b);if(e)try{_(JSON.parse(e))}catch{}},[b]),(0,g.useEffect)(()=>{localStorage.setItem(b,JSON.stringify(h))},[h,b]);let x=o?(typeof o==`string`?JSON.parse(o):o).html:null;return(0,U.jsx)(`div`,{className:`rubrics-v2-container`,children:(0,U.jsxs)(oO,{spacing:`lg`,gap:0,children:[(0,U.jsx)(BO,{order:1,className:`rubrics-v2-title`,mb:{base:20,md:40},children:e}),a&&x&&(0,U.jsx)(XC,{className:`content-block no-print`,w:{base:`100%`,md:`75%`},children:(0,U.jsx)(`span`,{className:`rubrics-introblock`,dangerouslySetInnerHTML:{__html:x}})}),t&&(0,U.jsx)(d_,{className:`content-block`,w:{base:`100%`,md:`75%`},children:(0,U.jsx)(`span`,{className:`rubrics-personaldata`,children:(0,U.jsx)(HA,{elements:t,formId:i},`personal-${l}`)})}),n&&n.html!=`<p><br></p>`&&(0,U.jsxs)(`div`,{className:`content-block pagebreak`,children:[s&&(0,U.jsx)(`h3`,{className:`heading-alpha`,children:s}),(0,U.jsx)(`span`,{className:`rubrics-preconditions`,children:(0,U.jsx)(UA,{elements:n,formId:i,onValidityChange:f},`preconditions-${l}`)})]}),r&&(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`div`,{className:`rubrics-table-container`,children:(0,U.jsx)(VA,{elements:r,formId:i},`table-${l}`)})}),y.length>0&&(0,U.jsx)(Wx,{className:`content-block rubrics-signature-and-date`,gap:`xl`,w:{base:`100%`,md:`66%`},children:y.map((e,t)=>(0,U.jsx)(NO,{w:{base:`100%`,sm:`50%`},label:e,value:h[t]||``,onChange:e=>_(n=>({...n,[t]:e.target.value}))},t))}),(0,U.jsxs)(Wx,{mb:120,align:`flex-end`,children:[(0,U.jsxs)(oO,{gap:0,children:[p&&(0,U.jsx)(`p`,{className:`rubrics-v2-preconditions-error`,children:`Please check all required precondition fields before downloading.`}),(0,U.jsx)(`div`,{className:`button button--primary${n&&!d?` button--disabled`:``}`,onClick:()=>{n&&!d?m(!0):(m(!1),window.print())},"aria-disabled":n&&!d,children:`Download self-assessment form`})]}),(0,U.jsx)(`div`,{className:`button button--secondary`,onClick:()=>{var e;if(!window.confirm(`Are you sure you want to clear all fields? This action cannot be undone.`))return;let t=i||`default`;localStorage.removeItem(`rubrics-v2-personal-data-${t}`),localStorage.removeItem(`rubrics-v2-pre-conditions-${t}`),localStorage.removeItem(`rubrics-v2-signature-${t}`);let n=typeof r==`string`?JSON.parse(r):r,a=i||`rubrics-form-${(n==null||(e=n[0])==null?void 0:e.title_for_additional_criteria)||`default`}`;localStorage.removeItem(`rubrics-v2-${a}`),window.location.reload()},children:`Clear fields`})]})]})})}function GA({value:e,onChange:t,disabled:n,className:r}){let i=(0,g.useRef)(null);return(0,g.useEffect)(()=>{let e=i.current;e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`)}
62,[e]),(0,U.jsx)(`textarea`,{ref:i,className:r,value:e,onChange:t,disabled:n})}var KA={blush:`#decebf`,sage:`#a1a79e`,evergreen:`#68756d`,disabled:`#ccd2d6`};function qA(e){return e<=33.33?KA.blush:e<=66.66?KA.sage:KA.evergreen}function JA({value:e,onChange:t,disabled:n}){let r=(0,g.useRef)(null),i=(0,g.useRef)(!1),a=(0,g.useCallback)(e=>{if(!r.current)return 0;let t=r.current.getBoundingClientRect();return Math.max(0,Math.min(100,(e-t.left)/t.width*100))},[]),o=(0,g.useCallback)(e=>{n||e.button!==0||(i.current=!0,t(a(e.clientX)),e.preventDefault())},[n,t,a]);(0,g.useEffect)(()=>{let e=e=>{i.current&&t(a(e.clientX))},n=()=>{i.current=!1};return window.addEventListener(`mousemove`,e),window.addEventListener(`mouseup`,n),()=>{window.removeEventListener(`mousemove`,e),window.removeEventListener(`mouseup`,n)}},[a,t]);let s=e||0,c=n?KA.disabled:qA(s);return(0,U.jsx)(`div`,{ref:r,className:`slider-container`,onMouseDown:o,style:{cursor:n?`default`:`grab`},children:(0,U.jsx)(`div`,{className:`slider-background`,children:(0,U.jsx)(`div`,{className:`slider`,style:{width:s>0?`${s}%`:`30px`,borderColor:c}})})})}function YA({elements:e,formId:t}){let n=typeof e==`string`?JSON.parse(e):e,r=n==null?void 0:n[0],i=(r==null?void 0:r.sections)||[],a=`rubrics-${t||(r==null?void 0:r.title_for_additional_criteria)||`default`}`,[o,s]=(0,g.useState)(new Set),[c,l]=(0,g.useState)({}),[u,d]=(0,g.useState)({}),[f,p]=(0,g.useState)(``);(0,g.useEffect)(()=>{let e=localStorage.getItem(a);if(e)try{let t=JSON.parse(e);s(new Set(t.disabledRows||[])),l(t.feedbackValues||{}),d(t.sliderValues||{}),p(t.additionalCriteria||``)}catch{}},[a]),(0,g.useEffect)(()=>{localStorage.setItem(a,JSON.stringify({disabledRows:Array.from(o),feedbackValues:c,sliderValues:u,additionalCriteria:f}))},[o,c,u,f,a]);let m=e=>{s(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},h=(e,t)=>{l(n=>({...n,[e]:t}))},_=(e,t)=>{d(n=>({...n,[e]:t}))};return r?(0,U.jsxs)(`div`,{className:`rubrics-table`,children:[(0,U.jsxs)(`div`,{className:`table-row`,children:[(0,U.jsx)(`div`,{className:`table-header ${r.color_column_1}`,children:r.column_1}),(0,U.jsx)(`div`,{className:`table-header ${r.color_column_2}`,children:r.column_2}),(0,U.jsx)(`div`,{className:`table-header ${r.color_column_3}`,children:r.column_3}),(0,U.jsx)(`div`,{className:`table-header ${r.color_column_4}`,children:r.column_4}),(0,U.jsx)(`div`,{className:`table-header ${r.color_column_5}`,children:r.column_5}),(0,U.jsx)(`div`,{className:`table-header`})]}),i.map(e=>{var t,n,r;let i=(t=e.subsections)==null?void 0:t[e.subsections.length-1],a=i==null||(n=i.rows)==null||(n=n[i.rows.length-1])==null?void 0:n.codename;return(0,U.jsxs)(g.Fragment,{children:[(0,U.jsxs)(`div`,{className:`rubrics-table-section`,children:[(0,U.jsx)(`div`,{className:`rubrics-table-section-cell`,children:e.column_1}),(0,U.jsx)(`div`,{className:`rubrics-table-section-cell`,children:e.column_2}),(0,U.jsx)(`div`,{className:`rubrics-table-section-cell`,children:e.column_3}),(0,U.jsx)(`div`,{className:`rubrics-table-section-cell`,children:e.column_4}),(0,U.jsx)(`div`,{className:`rubrics-table-section-cell`,children:e.column_5}),(0,U.jsx)(`div`,{className:`rubrics-table-section-cell`})]}),(r=e.subsections)==null?void 0:r.map(t=>{var n;return(n=t.rows)==null?void 0:n.map((n,r)=>{let i=o.has(n.codename),s=n.codename===a;return(0,U.jsxs)(`div`,{className:`rubrics-table-row${i?` disabled`:``}${s?` last`:``}`,"data-roles":JSON.stringify(e.roles||[]),children:[(0,U.jsx)(`div`,{className:`rubrics-table-row-cell`,children:r===0&&t.title}),(0,U.jsxs)(`div`,{className:`rubrics-table-row-cell table-content`,children:[(0,U.jsxs)(`div`,{className:`table-content-cell-container`,children:[(0,U.jsx)(`div`,{className:`table-cell`,dangerouslySetInnerHTML:{__html:n.column_1}}),(0,U.jsx)(`div`,{className:`table-cell`,dangerouslySetInnerHTML:{__html:n.column_2}}),(0,U.jsx)(`div`,{className:`table-cell`,dangerouslySetInnerHTML:{__html:n.column_3}})]}),(0,U.jsx)(`div`,{className:`rubrics-table-slider-row`,children:(0,U.jsx)(JA,{value:u[n.codename]||0,onChange:e=>_(n.codename,e),disabled:i})})]}),(0,U.jsx)(`div`,{className:`rubrics-table-row-cell`,children:(0,U.jsx)(GA,{className:`rubrics-table-input`,disabled:i,value:c[n.codename]||``,onChange:e=>
62h(n.codename,e.target.value)})}),(0,U.jsx)(`div`,{className:`rubrics-table-row-cell button-column ${i?`disabled`:`enabled`}`,"data-kentico-id":n.codename,onClick:()=>m(n.codename)})]},n.codename)})})]},e.codename)}),r.title_for_additional_criteria&&(0,U.jsx)(`div`,{className:`rubrics-table-section additional`,children:(0,U.jsx)(`div`,{className:`rubrics-table-section-cell`,children:r.title_for_additional_criteria})}),(0,U.jsx)(`div`,{className:`rubrics-table-row rubrics-table-additional-row`,children:(0,U.jsx)(`div`,{className:`rubrics-table-row-cell additional`,children:(0,U.jsx)(GA,{className:`rubrics-table-input`,value:f,onChange:e=>p(e.target.value)})})}),r.additional_notes&&(0,U.jsx)(`div`,{className:`rubrics-table__notes`,dangerouslySetInnerHTML:{__html:r.additional_notes},style:{marginTop:`1rem`,fontSize:`13px`}})]}):null}function XA(e){if(!e)return[];let t=new DOMParser().parseFromString(e,`text/html`);return Array.from(t.querySelectorAll(`li`)).map(e=>e.textContent.trim())}function ZA({title:e,personalDataElements:t,preConditionsElements:n,tableElements:r,formId:i,showIntroblock:a,introblockElements:o,preconditionsTitle:s,signatureDateElements:c}){let[l,u]=(0,g.useState)(0),[d,f]=(0,g.useState)(!1),[p,m]=(0,g.useState)(!1),[h,_]=(0,g.useState)({}),v=XA(c?(typeof c==`string`?JSON.parse(c):c).html:null),y=`rubrics-signature-${i||`default`}`;(0,g.useEffect)(()=>{let e=localStorage.getItem(y);if(e)try{_(JSON.parse(e))}catch{}},[y]),(0,g.useEffect)(()=>{localStorage.setItem(y,JSON.stringify(h))},[h,y]);let b=(()=>{if(!n)return!1;try{var e;return(((e=typeof n==`string`?JSON.parse(n):n)==null?void 0:e.html)||``).includes(`*`)}catch{return!1}})()&&!d,x=o?(typeof o==`string`?JSON.parse(o):o).html:null;return(0,U.jsx)(`div`,{className:`rubrics-v2-container`,children:(0,U.jsxs)(oO,{spacing:`lg`,gap:0,children:[(0,U.jsx)(BO,{order:1,className:`rubrics-v2-title`,mb:{base:20,md:40},children:e}),a&&x&&(0,U.jsx)(XC,{className:`content-block no-print`,w:{base:`100%`,md:`100%`},children:(0,U.jsx)(`span`,{className:`rubrics-introblock`,dangerouslySetInnerHTML:{__html:x}})}),t&&(0,U.jsx)(d_,{className:`content-block`,w:{base:`100%`,xl:`50%`},children:(0,U.jsx)(`span`,{className:`rubrics-personaldata`,children:(0,U.jsx)(HA,{elements:t,formId:i},`personal-${l}`)})}),n&&(0,U.jsxs)(`div`,{className:`content-block pagebreak`,children:[s&&(0,U.jsx)(`h3`,{className:`heading-alpha`,children:s}),(0,U.jsx)(`span`,{className:`rubrics-preconditions`,children:(0,U.jsx)(UA,{elements:n,formId:i,onValidityChange:f},`preconditions-${l}`)})]}),r&&(0,U.jsx)(`div`,{className:`content-block`,children:(0,U.jsx)(`div`,{className:`rubrics-table-container`,children:(0,U.jsx)(YA,{elements:r,formId:i},`table-${l}`)})}),v.length>0&&(0,U.jsx)(Wx,{className:`content-block rubrics-signature-and-date`,gap:`xl`,w:{base:`100%`,md:`50%`},wrap:`nowrap`,children:v.map((e,t)=>(0,U.jsx)(NO,{w:{base:`100%`,md:`50%`},label:e,value:h[t]||``,onChange:e=>_(n=>({...n,[t]:e.target.value}))},t))}),(0,U.jsxs)(Wx,{mb:120,align:`flex-end`,children:[(0,U.jsxs)(oO,{gap:0,children:[p&&(0,U.jsx)(`p`,{className:`rubrics-preconditions-error`,children:`Please check all required precondition fields before downloading.`}),(0,U.jsx)(`div`,{className:`button button--primary${b?` button--disabled`:``}`,onClick:()=>{b?m(!0):(m(!1),window.print())},"aria-disabled":b,children:`Download rubric`})]}),(0,U.jsx)(`div`,{className:`button button--secondary`,onClick:()=>{var e;if(!window.confirm(`Are you sure you want to clear all fields? This action cannot be undone.`))return;let t=i||`default`;localStorage.removeItem(`rubrics-v2-personal-data-${t}`),localStorage.removeItem(`rubrics-v2-pre-conditions-${t}`),localStorage.removeItem(`rubrics-signature-${t}`);let n=typeof r==`string`?JSON.parse(r):r,a=i||`rubrics-${(n==null||(e=n[0])==null?void 0:e.title_for_additional_criteria)||`default`}`;localStorage.removeItem(`rubrics-${a}`),window.location.reload()},children:`Clear fields`})]})]})})}var QA=[{value:`nl`,label:`Nederlands`},{value:`en`,label:`English`},{value:`de`,label:`Deutsch`},{value:`fr`,label:`Français`},{value:`es`,label:`Español`},{value:`ar`,label:`Ø§ÙØ¹Ø±Ø¨ÙØ©`},{value:`tr`,label:`Türkçe`},{value:`pl`,label:`Polski`},{value:`fy`,label:`Frysk`},{value:`it`,label:`Italiano`},{value:`zh`,label:`䏿`}];async function $A(e){(await fetch(`/api/translation/set-language`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({language:e})})).ok&&window.location.reload()}function ej({currentLanguage:e=`nl`}){let[t,{close:n,toggle:r}]=Tm(!1),[i,a]=(0,g.useState)(e);return(0,g.useEffect)(()=>{a(e)},[e]),(0,U.jsxs)(Ex,{opened:t,onClose:n,width:400,withArrow:!1,shadow:`md`,position:`bottom-end`,children:[(0,U.jsx)(Ex.Target,{children:(0,U.jsx)(`button`,{className:`accessible-translate-button`,onClick:r,"aria-expanded":t,"aria-haspopup":`dialog`,children:`Translate`})}),(0,U.jsx)(Ex.Dropdown,{p:`24px`,className:`translate-popover`,bdrs:`0 20px`,children:(0,U.jsxs)(oO,{gap:`md`,children:[(0,U.jsxs)(Wx,{justify:`space-between`,align:`center`,children:[(0,U.jsx)(XC,{fw:600,size:`20px`,children:`Translate`}),(0,U.jsx)(zx,{onClick:n,"aria-label":`Sluiten`,c:`link.5`,h:30,w:30})]}),(0,U.jsx)(OD,{data:QA,value:i,onChange:e=>a(e??`nl`),allowDeselect:!1,classNames:{dropdown:`translate-select__dropdown`,option:`translate-select__option`}}),(0,U.jsx)(RT,{w:`fit-content`,onClick:()=>$A(i),className:`button button--primary`,children:`Translate`}),(0,U.jsx)(XC,{size:`17px`,lh:`27px`,fw:400,children:`Text translations on this website are provided by Google Translate Services. UMC Utrecht is not responsible for any translation errors or their consequences. If you have any health concerns, please consult your doctor.`}),(0,U.jsxs)(XC,{size:`15px`,c:`dimmed`,ta:`right`,fw:400,children:[`Translated by`,` `,(0,U.jsx)(XC,{fw:600,size:`18px`,span:!0,c:`dimmed`,className:`translate-popover__google-logo`,children:`Google`})]})]})})]})}var tj=class e{static isAvailable(){return typeof window<`u`}static isFileReaderAvailable(){return e.isAvailable()?!!window.FileReader:!1}static getLocation(){if(e.isAvailable())return window.location}static getVisualViewport(){return e.isAvailable()?window.visualVie
62wport:null}static getInnerWidth(){if(e.isAvailable())return window.innerWidth}static getInnerHeight(){return e.isAvailable()?window.innerHeight:null}static getDevicePixelRatio(){return e.isAvailable()?window.devicePixelRatio:null}static getWindow(){if(e.isAvailable())return window}static hasOwn(t){if(e.isAvailable())return t in window}static getSelection(){if(e.isAvailable()&&window.getSelection)return window.getSelection()}static requestAnimationFrame(t){if(e.isAvailable())return window.requestAnimationFrame(t)}static isEventListenerAvailable(){return e.isAvailable()?typeof window.addEventListener==`function`&&typeof window.removeEventListener==`function`:!1}static addEventListener(t,n,r){e.isEventListenerAvailable()&&window.addEventListener(t,n,r)}static removeEventListener(t,n,r){e.isEventListenerAvailable()&&window.removeEventListener(t,n,r)}static matchMedia(t){return!e.isAvailable()||window.matchMedia===void 0?null:window.matchMedia(t)}static getScreenOrientationType(){var t,n;if(e.isAvailable())return(n=(t=window.screen)==null?void 0:t.orientation)==null?void 0:n.type}},nj=class e{static isAvailable(){return typeof document<`u`}static getBody(){if(e.isAvailable())return document.body}static getDocumentElement(){if(e.isAvailable())return document.documentElement}static getDocument(){if(e.isAvailable())return document}static getCookie(){if(e.isAvailable())return document.cookie}static setCookie(t){e.isAvailable()&&(document.cookie=t)}static activeElementBlur(){if(!e.isAvailable())return;let t=document.activeElement;t&&t.blur&&t.blur()}static createElement(t){if(e.isAvailable())return document.createElement(t)}static getComputedStyle(t){return e.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration}static addEventListener(t,n){e.isAvailable()&&document.addEventListener(t,n)}static removeEventListener(t,n){e.isAvailable()&&document.removeEventListener(t,n)}},rj=typeof globalThis<`u`?globalThis.document:(void 0).document,G={version:``,designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(e){this.designMode.showEmptyDescriptions=e},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(e){this.designMode.showEmptyTitles=e},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:`default`},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(e){this.localization.useLocalTimeZone=e},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(e){this.localization.storeDuplicatedTranslations=e},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(e){this.localization.defaultLocaleName=e},web:{onBeforeRequestChoices:(e,t)=>{},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(e){this.web.encodeUrlParams=e},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(e){this.web.cacheLoadedChoices=e},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(e){this.web.cacheLoadedChoices=e},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(e){this.web.disableQuestionWhileLoadingChoices=e},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(e){this.triggers.executeCompleteOnValueChanged=e},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(e){this.triggers.changeNavigationButtonsOnComplete=e},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(e){this.triggers.executeSkipOnValueChanged=e},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1,matrixDropdownColumnSerializeTitle:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(e){this.serialization.itemValueSerializeAsObject=e},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(e){this.serialization.itemValueSerializeDisplayText=e},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject}
62,set serializeLocalizableStringAsObject(e){this.serialization.localizableStringSerializeAsObject=e},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(e){this.lazyRender.enabled=e},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(e){this.lazyRender.firstBatchSize=e},matrix:{defaultCellType:`dropdown`,defaultRowName:`default`,totalsSuffix:`-total`,maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:{file:{minWidth:`240px`},comment:{minWidth:`200px`}},rateSize:`small`},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(e){this.matrix.defaultRowName=e},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(e){this.matrix.defaultCellType=e},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(e){this.matrix.totalsSuffix=e},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(e){this.matrix.maxRowCount=e},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(e){this.matrix.maxRowCountInCondition=e},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(e){this.matrix.renderRemoveAsIcon=e},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(e){this.panel.maxPanelCountInCondition=e},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(e){this.panel.maxPanelCount=e},readOnly:{enableValidation:!1,commentRenderMode:`textarea`,textRenderMode:`input`},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(e){this.readOnly.commentRenderMode=e},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(e){this.readOnly.textRenderMode=e},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(e){this.numbering.includeQuestionsWithHiddenTitle=e},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(e){this.numbering.includeQuestionsWithHiddenNumber=e},enterKeyAction:`default`,comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:(e,t)=>e},expressionDisableConversionChar:`#`,expressionVariableDelimiters:{start:`{`,end:`}`},expressionElementPropertyPrefix:`$`,expressionQuestionTrackDependencies:!1,get commentPrefix(){return G.commentSuffix},set commentPrefix(e){G.commentSuffix=e},commentSuffix:`-Comment`,itemValueSeparator:`|`,ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,dropdownSaveOnOutsideClick:!1,confirmActionFunc:void 0,confirmActionAsync:void 0,minWidth:`300px`,maxWidth:`100%`,maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},autoAdvanceDelay:300,itemFlowDirection:`column`,get showItemsInOrder(){return G.itemFlowDirection},set showItemsInOrder(e){G.itemFlowDirection=e},noneItemValue:`none`,refuseItemValue:`refused`,dontKnowItemValue:`dontknow`,specialChoicesOrder:{selectAllItem:[-1],noneItem:[1],refuseItem:[2],dontKnowItem:[3],otherItem:[4]},choicesSeparator:`, `,supportedValidators:{question:[`expression`],comment:[`text`,`regex`],text:[`numeric`,`text`,`regex`,`email`],checkbox:[`answercount`],imagepicker:[`answercount`]},expressionVariables:{survey:`survey`,self:`self`,parent:`parent`,matrix:`matrix`,composite:`composite`,item:`item`,choice:`choice`,column:`column`,row:`row`,prevRow:`prevRow`,nextRow:`nextRow`,totalRow:`totalRow`,rowIndex:`rowIndex`,visibleRowIndex:`visibleRowIndex`,rowValue:`rowValue`,rowName:`rowName`,rowTitle:`rowTitle`,panel:`panel`,prevPanel:`prevPanel`,nextPanel:`nextPanel`,parentPanel:`parentPanel`,panelIndex:`panelIndex`,visiblePanelIndex:`visiblePanelIndex`,unwrapPostfix:`-unwrapped`},minDate:``,maxDate:`2999-12-31`,showDialog:void 0,showDefaultItemsInCreator:!0,customIcons:{},rankingDragHandleArea:`entireItem`,environment:rj?{root:rj,_rootElement:nj.getBody(),get rootElement(){return this._rootElement??nj.getBody()},set rootElement(e){this._rootElement=e},_popupMountContainer:nj.getBody(),get popupMountContainer(){return this._popupMountContainer??nj.getBody()},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:rj.head,stylesSheetsMountContainer:rj.head}:void 0,showMaxLengthIndicator:!0,animationEnabled:!0,titleTags:{survey:`div`,page:`div`,panel:`div`,question:`div`},questions:{inputTypes:[`color`,`date`,`datetime-local`,`email`,`month`,`number`,`password`,`range`,`tel`,`text`,`time`,`url`,`week`],dataList:`.name.honorific-prefix.given-name.additional-name.family-name.honorific-suffix.nickname.organization-title.username.new-password.current-password.organization.street-address.address-line1.address-line2.address-line3.address-level4.address-level3.address-level2.address-level1.country.country-name.postal-code.cc-name.cc-given-name.cc-additional-name.cc-family-name.cc-number.cc-exp.cc-exp-month.cc-exp-year.cc-csc.cc-type.transaction-currency.transaction-amount.language.bday.bday-day.bday-month.bday-year.sex.url.photo.tel.tel-country-code.tel-national.tel-area-code.tel-local.tel-local-prefix.tel-local-suffix.tel-extension.email.impp`.split(`.`)},legacyProgressBarView:!1,maskSettings:{patternPlaceholderChar:`_`,patternEscapeChar:`\\`,patternDefinitions:{9:/[0-9]/,a:/[a-zA-Z]/,"#":/[a-zA-Z0-9]/}},storeUtcDates:!1,onDateCreated:(e,t,n)=>e,parseNumber:(e,t)=>t,acceptedFileCategories:{image:[`.png`,`.jpg`,`.jpeg`,`.gif`,`.bmp`,`.tiff`,`.svg`],video:[`.mp4`,`.avi`,`.mov`,`.wmv`,`.flv`,`.mkv`,`.webm`],audio:[`.mp3`,`.wav`,`.aac`,`.ogg`,`.wma`,`.flac`],document:[`.pdf`,`.doc`,`.docx`,`.xls`,`.xlsx`,`.ppt`,`.pptx`,`.txt`,`.rtf`,`.odt`],archive:[`.zip`,`.rar`,`.7z`,`.tar`,`.gz`]},customFileCategoryName:`custom`};function ij(e){if(typeof e==`string`){if(!isNaN(Number(e)))return Number(e);if(e.includes(`px`))return parseFloat(e)}if(typeof e==`number`)return e}function aj(e){if(ij(e)===void 0)return e}function oj(e,t){if(!(!t||!e)&&typeof t==`object`)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&typeof r==`object`?((!t[n]||typeof t[n]!=`object`)&&(t[n]={}),oj(r,t[n])):t[n]=r}}function sj(e,t,n){let r=new Map,i=new Map,a=new Map,o=new Map;
62e.forEach(e=>{let t=n(e);if(!r.has(t))r.set(n(e),e);else throw Error(`keys must be unique`)}),t.forEach(e=>{let t=n(e);if(!i.has(t))i.set(t,e);else throw Error(`keys must be unique`)});let s=[],c=[];i.forEach((e,t)=>{r.has(t)?a.set(t,a.size):s.push(e)}),r.forEach((e,t)=>{i.has(t)?o.set(t,o.size):c.push(e)});let l=[];a.forEach((e,t)=>{let n=o.get(t),r=i.get(t);n!==e&&l.push({item:r,movedForward:n<e})});let u=Array(e.length),d=0,f=Array.from(a.keys());e.forEach((e,t)=>{a.has(n(e))?(u[t]=i.get(f[d]),d++):u[t]=e});let p=new Map,m=[];u.forEach(e=>{let t=n(e);i.has(t)?m.length>0&&(p.set(t,m),m=[]):m.push(e)});let h=[];return i.forEach((e,t)=>{p.has(t)&&p.get(t).forEach(e=>{h.push(e)}),h.push(e)}),m.forEach(e=>{h.push(e)}),{reorderedItems:l,deletedItems:c,addedItems:s,mergedItems:h}}function cj(e){return Math.floor(e*100)/100}function lj(e){return function(){var t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function uj(e,t){if(!t)return G.onDateCreated(new Date,e,t);!G.storeUtcDates&&typeof t==`string`&&dj(t)&&(t+=`T00:00:00`);let n=new Date(t);return G.onDateCreated(n,e,t)}function dj(e){return e.indexOf(`T`)>0||!/\d{4}-\d{2}-\d{2}/.test(e)?!1:!isNaN(new Date(e).getTime())}function fj(e,t=`filter`){return e=G.comparator.normalizeTextCallback(e,t),e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/\u0131/g,`i`).toLowerCase()}var K=class e{static isValueEmpty(t){if(Array.isArray(t)&&t.length===0)return!0;if(t&&e.isValueObject(t)&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return!t&&t!==0&&t!==!1}static isValueUndefined(e){return e==null||typeof e==`number`&&isNaN(e)}static isArrayContainsEqual(t,n){if(!Array.isArray(t)||!Array.isArray(n)||t.length!==n.length)return!1;for(var r=0;r<t.length;r++){for(var i=0;i<n.length&&!e.isTwoValueEquals(t[r],n[i]);i++);if(i===n.length)return!1}return!0}static checkIfArraysEqual(t,n,r){if(!Array.isArray(t)||!Array.isArray(n)||t.length!==n.length)return!1;if(r.ignoreOrder!==void 0&&r.ignoreOrder){for(var i=[],a=[],o=0;o<t.length;o++)i.push(t[o]),a.push(n[o]);i.sort(),a.sort(),t=i,n=a}for(var o=0;o<t.length;o++)if(!e.checkIfValuesEqual(t[o],n[o],r))return!1;return!0}static isArraysEqual(t,n,r=!1,i,a){return e.checkIfArraysEqual(t,n,{ignoreOrder:r,caseSensitive:i,trimStrings:a})}static compareStrings(e,t){let n=G.comparator.normalizeTextCallback;if(e&&(e=n(e,`compare`).trim()),t&&(t=n(t,`compare`).trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;let r=-1;for(let n=0;n<e.length&&n<t.length;n++){if(this.isCharDigit(e[n])&&this.isCharDigit(t[n])){r=n;break}if(e[n]!==t[n])break}if(r>-1){let n=this.getNumberFromStr(e,r),i=this.getNumberFromStr(t,r);if(!Number.isNaN(n)&&!Number.isNaN(i)&&n!==i)return n>i?1:-1}return e>t?1:-1}static checkIfValuesEqual(t,n,r){if(t===n||Array.isArray(t)&&t.length===0&&n===void 0||Array.isArray(n)&&n.length===0&&t===void 0||t==null&&n===``||n==null&&t===``)return!0;let i=r.caseSensitive===void 0?G.comparator.caseSensitive:r.caseSensitive,a=r.trimStrings===void 0?G.comparator.trimStrings:r.trimStrings;if(typeof t==`string`&&typeof n==`string`){let e=G.comparator.normalizeTextCallback;return t=e(t,`compare`),n=e(n,`compare`),a&&(t=t.trim(),n=n.trim()),i||(t=t.toLowerCase(),n=n.toLowerCase()),t===n}if(t instanceof Date&&n instanceof Date)return t.getTime()==n.getTime();let o=!r.doNotConvertNumbers;if(o&&e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((t===!0||t===!1)&&typeof n==`string`)return t.toString()===n.toLocaleLowerCase();if((n===!0||n===!1)&&typeof t==`string`)return n.toString()===t.toLocaleLowerCase();let s=e.isValueObject(t),c=e.isValueObject(n);if(!s&&!c&&(o||typeof t!=`number`&&typeof n!=`number`))return t==n;if(!s||!c)return!1;if(t.equals&&n.equals)return t.equals(n);if(Array.isArray(t)&&Array.isArray(n))return e.checkIfArraysEqual(t,n,r);for(var l in t)if(t.hasOwnProperty(l)&&(!n.hasOwnProperty(l)||!this.checkIfValuesEqual(t[l],n[l],r)))return!1;for(l in n)if(n.hasOwnProperty(l)&&!t.hasOwnProperty(l))return!1;return!0}static isTwoValueEquals(e,t,n=!1,r,i){return this.checkIfValuesEqual(e,t,{ignoreOrder:n,caseSensitive:r,trimStrings:i})}static randomizeArray(e,t){let n=e=>{e.sort((e,t)=>
62e.uniqueId-t.uniqueId);let n=lj(t||Date.now());for(var r=e.length-1;r>0;r--){var i=Math.floor(n()*(r+1));[e[r],e[i]]=[e[i],e[r]]}},r={};for(let t=0;t<e.length;t++){let n=e[t];if(n.randomize===!1)continue;let i=n.randomizeCategory||``;r[i]||(r[i]={indices:[],items:[]}),r[i].indices.push(t),r[i].items.push(n)}for(let t in r){let{indices:i,items:a}=r[t];n(a);for(let t=0;t<i.length;t++)e[i[t]]=a[t]}return e}static getUnbindValue(t){if(Array.isArray(t)){let n=[];for(let r=0;r<t.length;r++)n.push(e.getUnbindValue(t[r]));return n}return t&&e.isValueObject(t)&&!(t instanceof Date)?JSON.parse(JSON.stringify(t)):t}static createCopy(e){return this.createCopyWithPrefix(e,void 0)}static createCopyWithPrefix(e,t){var n={};if(!e)return n;for(var r in e){let i=t?t+r:r;n[i]=e[r]}return n}static createDiff(t,n){let r={};if(typeof t!=`object`||typeof n!=`object`)return r;for(let i in t)e.isTwoValueEquals(t[i],n[i])||(r[i]=t[i]);return r}static isConvertibleToNumber(e){return e!=null&&!Array.isArray(e)&&!isNaN(e)}static isValueObject(e,t){return e instanceof Object&&(!t||!Array.isArray(e))}static isNumber(e){return!isNaN(this.getNumber(e))}static getNumber(t){let n=e.getNumberCore(t);return G.parseNumber(t,n)}static getNumberCore(t){if(typeof t==`string`){if(t=t.trim(),!t)return NaN;if(t.indexOf(`0x`)==0)return t.length>32?NaN:parseInt(t);if(t.length>15&&e.isDigitsOnly(t)||e.isStringHasOperator(t))return NaN}t=this.prepareStringToNumber(t);let n=parseFloat(t);return isNaN(n)||!isFinite(t)?NaN:n}static isStringHasOperator(e){if(e.lastIndexOf(`-`)>0||e.lastIndexOf(`+`)>0)return!1;for(let t=0;t<4;t++)if(e.indexOf(`*^/%`[t])>-1)return!0;return!1}static prepareStringToNumber(e){if(typeof e!=`string`||!e)return e;let t=e.indexOf(`,`);return t>-1&&e.indexOf(`,`,t+1)<0?e.replace(`,`,`.`):e}static getMaxLength(e,t){return e<0&&(e=t),e>0?e:null}static getRemainingCharacterCounterText(e,t){return!t||t<=0||!G.showMaxLengthIndicator?``:[e?e.length:`0`,t].join(`/`)}static getNumberByIndex(t,n,r){if(t<0)return``;var i=1,a=``,o=n&&n[n.length-1]!==`.`?``:`.`,s=!0,c=`A`,l=``;let u=t=>{if(!t)return!1;for(var n=0;n<t.length;n++)if(e.isCharDigit(t[n]))return!0;return!1};if(n){l=n;for(var d=l.length-1,f=u(l),p=function(){return f&&!e.isCharDigit(l[d])||e.isCharNotLetterAndDigit(l[d])};d>=0&&p();)d--;var m=``;for(d<l.length-1&&(m=l.substring(d+1),l=l.substring(0,d+1)),d=l.length-1;d>=0&&!(p()||(d--,!f)););c=l.substring(d+1),a=l.substring(0,d+1),parseInt(c)?i=parseInt(c):c.length==1&&(s=!1),(m||a)&&(o=m)}if(r>-1&&u(a)&&(a=this.getNumberByIndex(r,a)),s){let e=(t+i).toString();for(;e.length<c.length;)e=`0`+e;return a+e+o}return a+String.fromCharCode(c.charCodeAt(0)+t)+o}static isCharNotLetterAndDigit(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)}static isCharDigit(e){return e>=`0`&&e<=`9`}static isDigitsOnly(t){if(!t)return!1;for(let n=0;n<t.length;n++)if(!e.isCharDigit(t[n]))return!1;return!0}static getNumberFromStr(e,t){if(!this.isCharDigit(e[t]))return NaN;let n=``;for(;t<e.length&&this.isCharDigit(e[t]);)n+=e[t],t++;return n?this.getNumber(n):NaN}static countDecimals(t){if(e.isNumber(t)&&Math.floor(t)!==t){let e=t.toString().split(`.`);return e.length>1&&e[1].length||0}return 0}static correctAfterPlusMinis(t,n,r){let i=e.countDecimals(t),a=e.countDecimals(n);if(i>0||a>0){let e=Math.max(i,a);r=parseFloat(r.toFixed(e))}return r}static sumAnyValues(t,n){if(!e.isNumber(t)||!e.isNumber(n)){if(Array.isArray(t)&&Array.isArray(n))return[].concat(t,n);if(Array.isArray(t)||Array.isArray(n)){let i=Array.isArray(t)?t:n,a=i===t?n:t;if(typeof a==`string`){let e=i.join(`, `);return i===t?e+a:a+e}if(typeof a==`number`){let t=0;for(var r=0;r<i.length;r++)typeof i[r]==`number`&&(t=e.correctAfterPlusMinis(t,i[r],t+i[r]));return e.correctAfterPlusMinis(t,a,t+a)}}return t+n}return typeof t==`string`||typeof n==`string`?t+n:e.correctAfterPlusMinis(t,n,t+n)}static correctAfterMultiple(t,n,r){let i=e.countDecimals(t)+e.countDecimals(n);return i>0&&(r=parseFloat(r.toFixed(i))),r}static findObjByPropValue(t,n,r){for(var i=0;i<t.length;i++)if(e.isTwoValueEquals(t[i][n],r))return t[i]}static convertArrayObjectToValue(t,n){let r=[];if(!t||!Array.isArray(t))return r;for(var i=0;i<t.length;i++){let a=t[i]?t[i][n]:void 0;e.isValueEmpty(a)||r.push(a)}return r}static convertDateToString(e){let t=e=>e<10?`0`+e.toString():e.toString();return e.getFullYear()+`-`+t(e.getMonth()+1)+`-`+t(e.getDate())}static convertDateTimeToString(e,t,n){let r=e=>e<10?`0`+e.toString():e.toString(),i=t?`T`:` `,a=this.convertDateToString(e)+i+r(e.getHours())+`:`+r(e.getMinutes());return n&&(a+=`:`+r(e.getSeconds())),a}static convertValToQuestionVal(t,n){return t instanceof Date?n===`datetime-local`?e.convertDateTimeToString(t,!0):n===`datetime-seconds`?e.convertDateTimeToString(t,!0,!0):e.convertDateToString(t):this.getUnbindValue(t)}static compareVerions(e,t){if(!e&&!t)return 0;let n=e.split(`.`),r=t.split(`.`),i=n.length,a=r.length;for(let e=0;e<i&&e<a;e++){let t=n[e],i=r[e];if(t.length===i.length){if(t!==i)return t<i?-1:1}else return t.length<i.length?-1:1}return i===a?0:i<a?-1:1}static isUrlYoutubeVideo(e){if(!e)return!1;
62let t=[`www.youtube.com`,`m.youtube.com`,`youtube.com`,`youtu.be`];e=e.toLowerCase(),e=e.replace(/^https?:\/\//,``);for(let n=0;n<t.length;n++)if(e.indexOf(t[n]+`/`)===0)return!0;return!1}};String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,function(t,n){return e[n]===void 0?t:e[n]})});function q(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var pj={pagePrevText:`Previous`,pageNextText:`Next`,completeText:`Complete`,previewText:`Preview`,editText:`Edit`,startSurveyText:`Start`,commentText:`Please leave a comment`,otherItemText:`Other (describe)`,noneItemText:`None`,refuseItemText:`Refuse to answer`,dontKnowItemText:`Don't know`,selectAllItemText:`Select All`,deselectAllItemText:`Deselect all`,progressText:`Page {0} of {1}`,indexText:`{0} of {1}`,panelDynamicProgressText:`{0} of {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Answered {0}/{1} questions`,emptySurvey:`The survey doesn't contain any visible elements.`,completingSurvey:`Thank you for completing the survey`,completingSurveyBefore:`You have already completed this survey.`,loadingSurvey:`Loading Survey...`,placeholder:`Select...`,ratingOptionsCaption:`Select...`,buttongroupOptionsCaption:`Select...`,value:`value`,requiredError:`Response required.`,requiredErrorInPanel:`Response required: answer at least one question.`,requiredInAllRowsError:`Response required: answer questions in all rows.`,eachRowUniqueError:`Each row must have a unique value.`,numericError:`The value should be numeric.`,minError:`The value should not be less than {0}`,stepError:`Please enter a value that matches the step size of {0}.`,maxError:`The value should not be greater than {0}`,invalidInputError:`Invalid input`,textNoDigitsAllow:`Numbers are not allowed.`,incompletePatternError:`Please complete the value to match the required format.`,textMinLength:`Please enter at least {0} character(s).`,textMaxLength:`Please enter no more than {0} character(s).`,textMinMaxLength:`Please enter at least {0} and no more than {1} characters.`,minRowCountError:`Please fill in at least {0} row(s).`,minSelectError:`Please select at least {0} option(s).`,maxSelectError:`Please select no more than {0} option(s).`,numericMinMax:`The '{0}' should be at least {1} and at most {2}`,numericMin:`The '{0}' should be at least {1}`,numericMax:`The '{0}' should be at most {1}`,invalidEmail:`Please enter a valid e-mail address.`,invalidExpression:`The expression: {0} should return 'true'.`,urlRequestError:`The request returned error '{0}'. {1}`,urlGetChoicesError:`The request returned empty data or the 'path' property is incorrect`,exceedMaxSize:`The file size should not exceed {0}.`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`The maximum number of files you can upload is {0}.`,noUploadFilesHandler:`Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.`,otherRequiredError:`Response required: enter another value.`,uploadingFile:`Your file is uploading. Please wait several seconds and try again.`,loadingFile:`Loading...`,chooseFile:`Choose file(s)...`,noFileChosen:`No file selected`,filePlaceholder:`Drag and drop a file here or click the button below to select a file to upload.`,confirmDelete:`Are you sure you want to delete this record?`,keyDuplicationError:`This value should be unique.`,addColumn:`Add Column`,addRow:`Add Row`,removeRow:`Remove`,noRowsText:`There are no rows.`,rowIndexTemplateTitle:`Row {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Add new`,removePanel:`Remove`,showDetails:`Show Details`,hideDetails:`Hide Details`,choices_Item:`item`,choices_Choice:`Choice option`,matrix_column:`Column`,matrix_row:`Row`,multipletext_itemname:`text`,savingData:`The results are being saved on the server...`,savingDataError:`An error occurred and we could not save the results.`,savingDataSuccess:`The results were saved successfully!`,saveAgainButton:`Try again`,timerMin:`min`,timerSec:`sec`,timerSpentAll:`You have spent {0} on this page and {1} in total.`,timerSpentPage:`You have spent {0} on this page.`,timerSpentSurvey:`You have spent {0} in total.`,timerLimitAll:`You have spent {0} of {1} on this page and {2} of {3} in total.`,timerLimitPage:`You have spent {0} of {1} on this page.`,timerLimitSurvey:`You have spent {0} of {1} in total.`,clearCaption:`Clear`,selectCaption:`Select`,signaturePlaceHolder:`Sign here`,signaturePlaceHolderReadOnly:`No signature`,chooseFileCaption:`Select File`,takePhotoCaption:`Take Photo`,photoPlaceholder:`Click the button below to take a photo using the camera.`,fileOrPhotoPlaceholder:`Drag and drop or select a file to upload or take a photo using the camera.`,replaceFileCaption:`Replace file`,removeFileCaption:`Remove this file`,booleanCheckedLabel:`Yes`,booleanUncheckedLabel:`No`,confirmRemoveFile:`Are you sure that you want to remove this file: {0}?`,confirmRemoveAllFiles:`Are you sure that you want to remove all files?`,questionTitlePatternText:`Question Title`,modalCancelButtonText:`Cancel`,modalApplyButtonText:`Apply`,filterStringPlaceholder:`Type to search...`,emptyMessage:`No data to display`,loadingPage:`Loading...`,loadingData:`Loa
62ding...`,noEntriesText:`No entries yet. 63Click the button below to add a new entry.`,noEntriesReadonlyText:`No entries`,tabTitlePlaceholder:`New Panel`,more:`More`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`All choices are selected for ranking`,selectToRankEmptyUnrankedAreaText:`Drag choices here to rank them`,ok:`OK`,cancel:`Cancel`,createCustomItem:`Create "{0}" item...`,toc:`Table of contents`,progressbar:`Progress bar`},mj={currentLocaleValue:``,defaultLocaleValue:`en`,locales:{},localeNames:{},localeNamesInEnglish:{},localeDirections:{},supportedLocales:[],useEnglishNames:!1,get showNamesInEnglish(){return this.useEnglishNames},set showNamesInEnglish(e){this.useEnglishNames=e},setupLocale(e){let t=e.localeCode;this.locales[t]=e.strings,this.localeNames[t]=e.nativeName,this.localeNamesInEnglish[t]=e.englishName,e.rtl!==void 0&&(this.localeDirections[t]=e.rtl?`rtl`:`ltr`)},get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?``:this.currentLocaleValue},set currentLocale(e){this.currentLocaleValue=this.getCorrectLocaleName(e)},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){this.defaultLocaleValue=this.getCorrectLocaleName(e)},getCorrectLocaleName(e){return e===`cz`&&(e=`cs`),e===`gr`&&(e=`el`),e===`rs`&&(e=`sr`),e===`ua`&&(e=`uk`),e},getLocaleStrings(e){return this.locales[e]},getString:function(e,t=null){let n=[],r=e=>{let t=this.locales[e];t&&n.push(t)},i=e=>{if(!e)return;r(e);let t=e.indexOf(`-`);t<1||(e=e.substring(0,t),r(e))};i(t),i(this.currentLocale),i(this.defaultLocale),this.defaultLocale!==`en`&&r(`en`);for(let t=0;t<n.length;t++){let r=n[t][e];if(r!==void 0)return r}return this.onGetExternalString(e,t)},getLocaleName(e,t){if(!e)return``;t===void 0&&(t=this.showNamesInEnglish);let n=t?this.localeNamesInEnglish:this.localeNames,r=t?this.localeNames:this.localeNamesInEnglish;return n[e]||r[e]||e},getLocales:function(e=!1){var t=[];t.push(``);var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var i in n)e&&i==this.defaultLocale||t.push(i);var a=e=>this.getLocaleName(e).toLowerCase();return t.sort((e,t)=>{var n=a(e),r=a(t);return n===r?0:n<r?-1:1}),t},onGetExternalString:function(e,t){}};function hj(e,t=null){return mj.getString(e,t)}function gj(e){mj.setupLocale(e)}mj.locales.en=pj,mj.localeNames.en=`english`;var _j=class{get isEmpty(){return this.length===0}get length(){return this.callbacks?this.callbacks.length:0}fireByCreatingOptions(e,t){if(this.callbacks){for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t()),!this.callbacks)return}}fire(e,t){if(!this.callbacks)return;let n=[].concat(this.callbacks);for(var r=0;r<n.length;r++)if(n[r](e,t),!this.callbacks)return}clear(){this.callbacks=void 0}add(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=[]),this.callbacks.push(e),this.fireCallbackChanged())}remove(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}}hasFunc(e){return this.callbacks!=null&&this.callbacks.indexOf(e,0)>-1}fireCallbackChanged(){this.onCallbacksChanged&&this.onCallbacksChanged()}},vj=class extends _j{},yj=class e{static get defaultLocale(){return G.localization.defaultLocaleName}static set defaultLocale(e){G.localization.defaultLocaleName=e}get localizationName(){return this._localizationName}set localizationName(e){this._localizationName!=e&&(this._localizationName=e,this.strChanged())}get allowLineBreaks(){var e,t;return this._allowLineBreaks===void 0&&(this._allowLineBreaks=((t=(e=this.owner)==null?void 0:e.getAllowLineBreaks)==null?void 0:t.call(e,this.name))??!1),this._allowLineBreaks}constructor(e,t=!1,n,r){this.owner=e,this.useMarkdown=t,this.name=n,this.values={},this.htmlValues={},this.onStringChanged=new vj,this._localizationName=r}getIsMultiple(){return!1}getStringViewerClassName(e){return e===void 0?`sv-string-viewer`+(this.allowLineBreaks?` sv-string-viewer--multiline`:``):e}get locale(){if(this.owner&&this.owner.getLocale){let e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:``}get isDefautlLocale(){let e=this.locale;return!e||e===G.defaultLocaleName}strChanged(){this.isTextRequested&&(this.searchableText=void 0,!(this.renderedText===void 0&&this.isEmpty&&!this.onGetTextCallback&&!this.localizationName)&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{})))}get text(){return this.pureText}set text(e){this.setLocaleText(this.locale,e)}get calculatedText(){return this.renderedText=this.calculatedTextValue===void 0?this.calcText():this.calculatedTextValue,this.calculatedTextValue=void 0,this.renderedText}getPlaceholder(){let e=``;if(!this.isDefautlLocale){let t=this.getRootDialect(this.locale);e=this.getLocaleText(t||G.defaultLocaleName)}return!e&&this.onGetTextCallback&&(e=this.onGetTextCallback(``,``)),e}calcText(){let e=this.pureText,t=e;return t&&this.owner&&this.owner.getProcessedText&&t.indexOf(`{`)>-1&&(t=this.owner.getProcessedText(t)),this.onGetTextCallback&&(t=this.onGetTextCallback(t,e)),t}get pureText(){this.isTextRequested=!0;var e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(this.isValueEmpty(t)&&e===this.defaultLoc&&(t=this.getValue(mj.defaultLocale)),this.isValueEmpty(t)){let n=this.getRootDialect(e);n&&(t=this.getValue(n))}return this.isValueEmpty(t)&&e!==this.defaultLoc&&(t=this.getValue(this.defaultLoc)),this.isValueEmpty(t)&&this.getLocalizationName()&&(t=this.getLocalizationStr()),t||(t=this.defaultValue||``),t}getRootDialect(e){if(!e)return e;let t=e.indexOf(`-`);return t>-1?e.substring(0,t):``}getLocalizationName(){return this.sharedData?this.sharedData.localizationName:this.localizationName}getLocalizationStr(){let e=this.getLocalizationName();return e?hj(e,this.locale):``}get hasHtml(){return this.hasHtmlValue()}get html(){return this.hasHtml?this.getHtmlValue():``}get isEmpty(){return this.getValuesKeys().length==0}get textOrHtml(){return this.hasHtml?this.getHtmlValue():this.calculatedText}get renderedHtml(){return this.textOrHtml}getLocaleText(e){return this.getLocaleTextCore(e)||``}getLocaleTextCore(e){return e||(e=this.defaultLoc),this.getValue(e)}isLocaleTextEqualsWithDefault(e,t){let n=this.getLocaleTextCore(e);return n===t||this.isValueEmpty(n)&&this.isValueEmpty(t)}clear(){this.setJson(void 0)}clearLocale(e){this.setLocaleText(e,void 0)}setLocaleText(e,t){if(e=this.getValueLoc(e),this.lastChangedLoc=e,e&&t===void 0){let t=this.getValue(e);t!==void 0&&(this.deleteValue(e),this.fireStrChanged(e,t));return}if(!this.storeDefaultText&&this.isLocaleTextEqualsWithDefault(e,t)){if(!this.isValueEmpty(t)||e&&e!==this.defaultLoc)return;let n=mj.defaultLocale,r=this.getValue(n);n&&!this.isValueEmpty(r)&&(this.setValue(n,t),this.fireStrChanged(n,r));return}if(!(!G.localization.storeDuplicatedTranslations&&!this.isValueEmpty(t)&&e&&e!=this.defaultLoc&&this.getValue(e)===void 0&&t==this.getLocaleText(this.defaultLoc))){var n=this.curLocale;e||(e=this.defaultLoc);var r=this.onStrChanged&&e===n?this.pureText:void 0;delete this.htmlValues[e],this.isValueEmpty(t)?this.deleteValue(e):typeof t==`string`&&(this.canRemoveLocValue(e,t)?this.deleteValue(e):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))),this.fireStrChanged(e,r)}}isValueEmpty(e){return e==null||!this.localizationName&&e===``}
63get curLocale(){return this.locale?this.locale:this.defaultLoc}canRemoveLocValue(e,t){if(G.localization.storeDuplicatedTranslations||e===this.defaultLoc)return!1;let n=this.getRootDialect(e);if(n){let e=this.getLocaleText(n);return e?e==t:this.canRemoveLocValue(n,t)}return t==this.getLocaleText(this.defaultLoc)}fireStrChanged(e,t){if(this.strChanged(),!this.onStrChanged)return;let n=this.pureText;(e!==this.curLocale||t!==n)&&this.onStrChanged(t,n)}hasNonDefaultText(){var e=this.getValuesKeys();return e.length==0?!1:e.length>1||e[0]!=this.defaultLoc}getLocales(){var e=this.getValuesKeys();return e.length==0?[]:e}getJson(e){if(this.sharedData)return this.sharedData.getJson(e);let t=this.getValuesKeys(),n=(e==null?void 0:e.locales)||[],r=n.length>0;if(r){let e=G.localization.defaultLocaleName,r=mj.defaultLocale,i=r!==e&&n.indexOf(r)>=0&&t.indexOf(r)<0;for(let r=t.length-1;r>=0;r--)if(n.indexOf(t[r])<0){if(i&&t[r]===e)continue;t.splice(r,1)}}if(t.length==0){if(!r&&this.serializeCallBackText){let e=this.calcText();if(e)return e}return null}if(t.length==1&&(r||t[0]==G.localization.defaultLocaleName)&&!G.serialization.localizableStringSerializeAsObject)return this.values[t[0]];let i={};for(let e=0;e<t.length;e++){let n=t[e];i[n]=this.values[n]}return i}setJson(e,t){if(this.sharedData){this.sharedData.setJson(e,t);return}if(this.lastChangedLoc=void 0,this.values={},this.htmlValues={},e!=null){if(t)typeof e==`string`?this.values[G.defaultLocaleName]=e:(this.values=e,delete this.values.pos);else{if(typeof e==`string`)this.setLocaleText(null,e);else for(var n in e)this.setLocaleText(n,e[n]);this.strChanged()}}}mergeWith(e,t){if(this.sharedData){this.sharedData.mergeWith(e);return}let n=e.getLocales();if(Array.isArray(t)&&t.length===1&&n.length===1&&n[0]===this.defaultLoc)this.setLocaleText(t[0],e.getLocaleText(this.defaultLoc));else{t=t||n;for(let n=0;n<t.length;n++){let r=t[n],i=e.getLocaleText(r);this.setLocaleText(r,i)}}}get renderAs(){return!this.owner||typeof this.owner.getRenderer!=`function`?e.defaultRenderer:this.owner.getRenderer(this.name)||e.defaultRenderer}get renderAsData(){return!this.owner||typeof this.owner.getRendererContext!=`function`?this:this.owner.getRendererContext(this)||this}equals(e){return this.sharedData?this.sharedData.equals(e):!e||!e.values?!1:K.isTwoValueEquals(this.values,e.values,!1,!0,!1)}setFindText(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){let e=this.textOrHtml;this.searchableText=e?e.toLowerCase():``}var t=this.searchableText,n=t&&e?t.indexOf(e):void 0;return n<0&&(n=void 0),(n!=null||this.searchIndex!=n)&&(this.searchIndex=n,this.onSearchChanged&&this.onSearchChanged()),this.searchIndex!=null}}onChanged(){}hasHtmlValue(){if(!this.owner||!this.useMarkdown)return!1;let e=this.locale;if(e||(e=this.defaultLoc),this.htmlValues[e]!==void 0)return!!this.htmlValues[e];let t=this.calculatedText;if(!t||this.getLocalizationName()&&t===this.getLocalizationStr())return this.setHtmlValue(e,``),!1;let n=this.owner.getMarkdownHtml(t,this.name);return this.setHtmlValue(e,n),!!n}setHtmlValue(e,t){this.htmlValues[e]=t}getHtmlValue(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]}deleteValuesEqualsToDefault(e){if(!G.localization.storeDuplicatedTranslations)for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=this.defaultLoc&&this.getValue(t[n])==e&&this.deleteValue(t[n])}getValue(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]}setValue(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t}deleteValue(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]}getValueLoc(e){return this.disableLocalization?G.localization.defaultLocaleName:e}getValuesKeys(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)}get defaultLoc(){return G.localization.defaultLocaleName}};yj.SerializeAsObject=!1,yj.defaultRenderer=`sv-string-viewer`,yj.editableRenderer=`sv-string-editor`;var bj=class{constructor(e){this.owner=e,this.values={}}getIsMultiple(){return!0}get locale(){return this.owner&&this.owner.getLocale?this.owner.getLocale():``}get value(){return this.getValue(``)}set value(e){this.setValue(``,e)}get text(){return Array.isArray(this.value)?this.value.join(` 64`):``}set text(e){this.value=e?e.split(` 65`):[]}getLocaleText(e){var t=this.getValueCore(e,!e||e===this.locale);return!t||!Array.isArray(t)||t.length==0?``:t.join(` 66`)}setLocaleText(e,t){var n=t?t.split(` 67`):null;this.setValue(e,n)}getValue(e){return this.getValueCore(e)}getValueCore(e,t=!0){if(e=this.getLocale(e),this.values[e])return this.values[e];if(t){var n=G.localization.defaultLocaleName;if(e!==n&&this.values[n])return this.values[n]}return[]}setValue(e,t){e=this.getLocale(e);let n=K.createCopy(this.values);!t||t.length==0?delete this.values[e]:this.values[e]=t,this.onValueChanged&&this.onValueChanged(n,this.values)}hasValue(e=``){return!this.isEmpty&&this.getValue(e).length>0}get isEmpty(){return this.getValuesKeys().length==0}getLocale(e){return e||(e=this.locale,e||G.localization.defaultLocaleName)}getLocales(){var e=this.getValuesKeys();return e.length==0?[]:e}getJson(){var e=this.getValuesKeys();return e.length==0?null:e.length==1&&e[0]==G.localization.defaultLocaleName&&!G.serialization.localizableStringSerializeAsObject?this.values[e[0]]:K.createCopy(this.values)}setJson(e){if(this.values={},e){if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])}}getValuesKeys(){return Object.keys(this.values)}};function xj(e){return`loc`+e.charAt(0).toUpperCase()+e.slice(1)}var Sj=class e{constructor(t,n,r=!1){this.name=n,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCu
67stom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category=``,this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=r,this.idValue=e.Index++}get id(){return this.idValue}get classInfo(){return this.classInfoValue}get type(){return this.typeValue?this.typeValue:`string`}set type(e){e===`itemvalues`&&(e=`itemvalue[]`),e===`textitems`&&(e=`textitem[]`),this.typeValue=e,this.typeValue.indexOf(`[]`)===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))}get isExpression(){return this.type===`expression`||this.type===`condition`}get locationInTable(){return this.locationInTableValue||`column`}set locationInTable(e){this.locationInTableValue=e}get showMode(){let e=this.locationInTableValue;return e===`detail`?`form`:e===`column`?`list`:``}set showMode(e){this.locationInTable=e===`form`?`detail`:e===`list`?`column`:void 0}get isRequired(){return this.isRequiredValue}set isRequired(e){e!==this.isRequired&&(this.isRequiredValue=e,this.classInfo&&this.classInfo.resetAllProperties())}get isUnique(){return this.isUniqueValue}set isUnique(e){this.isUniqueValue=e}get uniquePropertyName(){return this.uniquePropertyValue}set uniquePropertyName(e){this.uniquePropertyValue=e}isPropertySerializable(e){return this.isSerializableFunc?this.isSerializableFunc(e):this.isSerializable}getDefaultValue(t){let n=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return e.getItemValuesDefaultValue&&J.isDescendantOf(this.className,`itemvalue`)&&(n=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),n}get defaultValue(){return this.getDefaultValue(void 0)}set defaultValue(e){this.defaultValueValue=e,e!==void 0&&(this.defaultValueFunc=void 0)}isDefaultValue(e){return this.isDefaultValueByObj(void 0,e)}isDefaultValueByObj(e,t){if(this.isLocalizable)return t==null;let n=this.getDefaultValue(e);return n===void 0?t===!1&&this.isBooleanType&&!this.defaultValueFunc||t===``||K.isValueEmpty(t):typeof n==`object`?K.isTwoValueEquals(t,n,!1,!0,!1):n===t}getSerializableValue(e,t,n){if(this.onSerializeValue)return this.onSerializeValue(e);if(!t&&this.isSerializable&&e.getIsSerializablePropertyEmpty&&e.getIsSerializablePropertyEmpty(this))return;let r=this.getValue(e,n);if(r!=null&&!(!t&&this.isDefaultValueByObj(e,r)))return r}getValue(e,t){if(this.onGetValue)return e=this.getOriginalObj(e),this.onGetValue(e);let n=this.serializationProperty;if(n){let r=e[n];if(r)return r.getJson(t)}return e[this.name]}getPropertyValue(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)}get hasToUseSetValue(){return this.onSetValue||this.serializationProperty}settingValue(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)}setValue(e,t,n){if(this.onSetValue)e=this.getOriginalObj(e),this.onSetValue(e,t,n);else if(this.serializationProperty&&e[this.serializationProperty])e[this.serializationProperty].setJson(t,!0);else{if(t&&typeof t==`string`&&(this.type==`number`&&(t=parseInt(t)),this.isBooleanType)){let e=t.toLowerCase();(e===`false`||e===`true`)&&(t=e===`true`)}e[this.name]=t}}get isBooleanType(){return this.type===`boolean`||this.type===`switch`}validateValue(e,t){let n=this.getChoices(e,e=>{});if(!Array.isArray(n)||n.length===0||typeof t==`object`&&typeof n[0]==`object`)return!0;let r=this.acceptedValues;if(Array.isArray(r)&&r.indexOf(t)>-1)return!0;for(let e=0;e<n.length;e++){let r=n[e];if(r==t||typeof r==`object`&&r.value==t)return!0}return!1}getObjType(e){return this.classNamePart?e.replace(this.classNamePart,``):e}get choices(){return this.getChoices(null)}get hasChoices(){return!!this.choicesValue||!!this.choicesfunc}getChoices(e,t=null){return this.choicesValue==null?this.choicesfunc==null?null:this.choicesfunc(e,t):this.choicesValue}setChoices(e,t=null){this.choicesValue=e,this.choicesfunc=t}getBaseValue(){return this.baseValue?typeof this.baseValue==`function`?this.baseValue():this.baseValue:``}setBaseValue(e){this.baseValue=e}get readOnly(){return this.readOnlyValue!=null&&this.readOnlyValue}set readOnly(e){this.readOnlyValue=e}isEnable(e){return this.readOnly?!1:!e||!this.enableIf||this.enableIf(this.getOriginalObj(e))}isVisible(e,t=null){let n=!this.layout||!e||this.layout===e;return!this.visible||!n?!1:this.visibleIf&&t?this.visibleIf(this.getOriginalObj(t)):!0}getOriginalObj(e){return e&&e.getOriginalByProperty?e.getOriginalByProperty(this.name):e}get visible(){return this.visibleValue==null||this.visibleValue}set visible(e){this.visibleValue=e}isAvailableInVersion(e){return this.alternativeName||this.oldName?!0:this.isAvailableInVersionCore(e)}getSerializedName(e){return this.alternativeName?this.isAvailableInVersionCore(e)?this.name:this.alternativeName||this.oldName:this.name}getSerializedProperty(e,t){return!this.oldName||this.isAvailableInVersionCore(t)?this:!e||!e.getType?null:J.findProperty(e.getType(),this.oldName)}isAvailableInVersionCore(e){return!e||!this.version||K.compareVerions(this.version,e)<=0}get isLocalizable(){return this.isLocalizableValue!=null&&this.isLocalizableValue}set isLocalizable(e){this.isLocalizableValue=e}get isMultipleText(){return this.type===`string[]`}get dataList(){return Array.isArray(this.dataListValue)?this.dataListValue:[]}set dataList(e){this.dataListValue=e}mergeWith(e){Object.keys(e).forEach(t=>{this.mergeValue(e,t)}),this.isArray=e.isArray}addDependedProperty(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)}getDependedProperties(){return this.dependedProperties?this.dependedProperties:[]}
67schemaType(){if(this.className!==`choicesByUrl`){if(this.className===`string`)return this.className;if(this.className&&this.isArray||this.baseClassName)return`array`;if(!this.className)return this.type==`switch`?`boolean`:this.type==`boolean`||this.type==`number`?this.type:`string`}}schemaRef(){if(this.className)return this.className}mergeValue(e,t){this[t]==null&&e[t]!=null&&(this[t]=e[t])}};Sj.Index=1;var Cj=class e{static addProperty(t,n){t=t.toLowerCase();var r=e.properties;r[t]||(r[t]=[]),r[t].push(n)}static removeProperty(t,n){t=t.toLowerCase();var r=e.properties;if(r[t]){for(var i=r[t],a=0;a<i.length;a++)if(i[a].name==n){r[t].splice(a,1);break}}}static removeAllProperties(t){t=t.toLowerCase(),delete e.properties[t]}static addClass(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n}static getProperties(t){t=t.toLowerCase();for(var n=[],r=e.properties;t;){var i=r[t];if(i)for(var a=0;a<i.length;a++)n.push(i[a]);t=e.parentClasses[t]}return n}static createProperties(t){!t||!t.getType||e.createPropertiesCore(t,t.getType())}static createPropertiesCore(t,n){var r=e.properties;r[n]&&e.createPropertiesInObj(t,r[n]);var i=e.parentClasses[n];i&&e.createPropertiesCore(t,i)}static createPropertiesInObj(t,n){for(var r=0;r<n.length;r++)e.createPropertyInObj(t,n[r])}static createPropertyInObj(t,n){if(!e.checkIsPropertyExists(t,n.name)&&!(n.serializationProperty&&e.checkIsPropertyExists(t,n.serializationProperty))){if(n.isLocalizable&&n.serializationProperty&&t.createCustomLocalizableObj){let e=t.createCustomLocalizableObj(n.name);e.defaultValue=n.getDefaultValue(t),Object.defineProperty(t,n.serializationProperty,{get:function(){return t.getLocalizableString(n.name)}});var r={get:function(){return t.getLocalizableStringText(n.name)},set:function(e){t.setLocalizableStringText(n.name,e)}};Object.defineProperty(t,n.name,r)}else{var i=n.isArray||n.type===`multiplevalues`;if(typeof t.createNewArray==`function`&&(J.isDescendantOf(n.className,`itemvalue`)?(t.createNewArray(n.name,function(e){e.locOwner=t,e.ownerPropertyName=n.name}),i=!0):i&&t.createNewArray(n.name),i)){let e=n.getDefaultValue(t);Array.isArray(e)&&t.setPropertyValue(n.name,e)}if(t.getPropertyValue&&t.setPropertyValue){var r={get:()=>n.onGetValue?n.onGetValue(t):t.getPropertyValue(n.name,void 0),set:function(e){n.onSetValue?n.onSetValue(t,e,null):t.setPropertyValue(n.name,e)}};Object.defineProperty(t,n.name,r)}}(n.type===`condition`||n.type===`expression`)&&n.onExecuteExpression&&t.addExpressionProperty(n.name,n.onExecuteExpression,void 0,n.type===`expression`)}}static checkIsPropertyExists(e,t){return e.hasOwnProperty(t)||e[t]}};Cj.properties={},Cj.parentClasses={};var wj=class e{constructor(e,t,n=null,r=null){this.name=e,this.creator=n,this.parentName=r,e=e.toLowerCase(),this.isCustomValue=!n&&e!==`survey`,this.parentName&&(this.parentName=this.parentName.toLowerCase(),Cj.addClass(e,this.parentName),n&&this.makeParentRegularClass()),this.properties=[];for(var i=0;i<t.length;i++)this.createProperty(t[i],this.isCustom)}find(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null}findProperty(e){return this.fillAllProperties(),this.hashProperties[e]}getAllProperties(){return this.fillAllProperties(),this.allProperties}getRequiredProperties(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];let e=this.getAllProperties();for(let t=0;t<e.length;t++)e[t].isRequired&&this.requiredProperties.push(e[t]);return this.requiredProperties}resetAllProperties(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var e=J.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()}get isCustom(){return this.isCustomValue}fillAllProperties(){if(this.allProperties)return;this.allProperties=[],this.hashProperties={};let e={};this.properties.forEach(t=>e[t.name]=t);let t=this.parentName?J.findClass(this.parentName):null;t&&t.getAllProperties().forEach(t=>{let n=e[t.name];n?(n.mergeWith(t),this.addPropCore(n)):this.addPropCore(t)}
67),this.properties.forEach(e=>{this.hashProperties[e.name]||this.addPropCore(e)})}addPropCore(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)}isOverridedProp(e){return!!this.parentName&&!!J.findProperty(this.parentName,e)}hasRegularChildClass(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;Cj.removeAllProperties(this.name),this.makeParentRegularClass()}}makeParentRegularClass(){if(!this.parentName)return;let e=J.findClass(this.parentName);e&&e.hasRegularChildClass()}createProperty(t,n=!1){var r=typeof t==`string`?t:t.name;if(r){var i=null,a=r.indexOf(e.typeSymbol);a>-1&&(i=r.substring(a+1),r=r.substring(0,a));var o=this.getIsPropertyNameRequired(r)||!!t.isRequired;r=this.getPropertyName(r);var s=new Sj(this,r,o);if(i&&(s.type=i),typeof t==`object`){if(t.type&&(s.type=t.type),t.default!==void 0&&(s.defaultValue=t.default),t.defaultFunc!==void 0&&(s.defaultValueFunc=t.defaultFunc),K.isValueEmpty(t.isSerializable)||(s.isSerializable=t.isSerializable),K.isValueEmpty(t.isSerializableFunc)||(s.isSerializableFunc=t.isSerializableFunc),K.isValueEmpty(t.isLightSerializable)||(s.isLightSerializable=t.isLightSerializable),K.isValueEmpty(t.maxLength)||(s.maxLength=t.maxLength),t.displayName!==void 0&&(s.displayName=t.displayName),K.isValueEmpty(t.category)||(s.category=t.category),K.isValueEmpty(t.categoryIndex)||(s.categoryIndex=t.categoryIndex),K.isValueEmpty(t.nextToProperty)||(s.nextToProperty=t.nextToProperty),K.isValueEmpty(t.overridingProperty)||(s.overridingProperty=t.overridingProperty),K.isValueEmpty(t.visibleIndex)||(s.visibleIndex=t.visibleIndex),K.isValueEmpty(t.showMode)||(s.showMode=t.showMode),K.isValueEmpty(t.locationInTable)||(s.locationInTable=t.locationInTable),K.isValueEmpty(t.maxValue)||(s.maxValue=t.maxValue),K.isValueEmpty(t.minValue)||(s.minValue=t.minValue),K.isValueEmpty(t.dataList)||(s.dataList=t.dataList),K.isValueEmpty(t.isDynamicChoices)||(s.isDynamicChoices=t.isDynamicChoices),K.isValueEmpty(t.isBindable)||(s.isBindable=t.isBindable),K.isValueEmpty(t.isUnique)||(s.isUnique=t.isUnique),K.isValueEmpty(t.uniqueProperty)||(s.uniquePropertyName=t.uniqueProperty),K.isValueEmpty(t.isArray)||(s.isArray=t.isArray),Array.isArray(t.acceptedValues)&&(s.acceptedValues=t.acceptedValues),(t.visible===!0||t.visible===!1)&&(s.visible=t.visible),t.visibleIf&&(s.visibleIf=t.visibleIf),t.enableIf&&(s.enableIf=t.enableIf),t.onExecuteExpression&&(s.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(s.onPropertyEditorUpdate=t.onPropertyEditorUpdate),t.readOnly===!0&&(s.readOnly=!0),t.availableInMatrixColumn===!0&&(s.availableInMatrixColumn=!0),t.choices){var c=typeof t.choices==`function`?t.choices:null,l=typeof t.choices==`function`?null:t.choices;s.setChoices(l,c)}t.baseValue&&s.setBaseValue(t.baseValue),t.onSerializeValue&&(s.onSerializeValue=t.onSerializeValue),t.onGetValue&&(s.onGetValue=t.onGetValue),t.onSetValue&&(s.onSetValue=t.onSetValue),t.onSettingValue&&(s.onSettingValue=t.onSettingValue),t.isLocalizable&&!t.serializationProperty&&(t.serializationProperty=xj(s.name)),t.serializationProperty&&(s.serializationProperty=t.serializationProperty,s.serializationProperty&&s.serializationProperty.indexOf(`loc`)==0&&(s.isLocalizable=!0)),t.isLocalizable&&(s.isLocalizable=t.isLocalizable),t.className&&(s.className=t.className),t.baseClassName&&(s.baseClassName=t.baseClassName,s.isArray=!0),s.isArray===!0&&(s.isArray=!0),t.classNamePart&&(s.classNamePart=t.classNamePart),t.alternativeName&&(s.alternativeName=t.alternativeName),t.oldName&&(s.oldName=t.oldName),t.layout&&(s.layout=t.layout),t.version&&(s.version=t.version),t.dependsOn&&this.addDependsOnProperties(s,t.dependsOn)}return this.properties.push(s),n&&!this.isOverridedProp(s.name)&&(s.isCustom=!0,Cj.addProperty(this.name,s)),s}}addDependsOnProperties(e,t){let n=Array.isArray(t)?t:[t];e.dependsOn=n;for(var r=0;r<n.length;r++)this.addDependsOnProperty(e,n[r])}addDependsOnProperty(e,t){var n=this.find(t);
67n||(n=J.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)}getIsPropertyNameRequired(t){return t.length>0&&t[0]==e.requiredSymbol}getPropertyName(e){return this.getIsPropertyNameRequired(e)&&(e=e.slice(1)),e}};wj.requiredSymbol=`!`,wj.typeSymbol=`:`;var Tj=class{constructor(){this.classes={},this.alternativeNames={},this.typeAliases={},this.childrenClasses={},this.dynamicPropsCache={}}getObjPropertyValue(e,t){e=e.getOriginalByProperty&&this.isNeedUseObjWrapper(e,t)?e.getOriginalByProperty(t):e;let n=J.findProperty(e.getType(),t);return n?this.getObjPropertyValueCore(e,n):e[t]}setObjPropertyValue(e,t,n){if(e[t]!==n){if(e[t]&&e[t].setJson)e[t].setJson(n,!0);else{if(Array.isArray(n)){let e=[];for(var r=0;r<n.length;r++)e.push(n[r]);n=e}else n&&typeof n==`object`&&!n.getType&&(n=K.getUnbindValue(n));e[t]=n}}}getObjPropertyValueCore(e,t){if(!t.isPropertySerializable(e)||t.isArray)return e[t.name];if(t.isLocalizable){let n=e.getLocalizableString(t.name);if(n)return n.isDefautlLocale?n.text:n.getValue(n.locale);if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)}isNeedUseObjWrapper(e,t){if(!e.getDynamicProperties)return!0;let n=e.getDynamicProperties();if(!Array.isArray(n))return!1;for(let e=0;e<n.length;e++)if(n[e].name===t)return!0;return!1}addClass(e,t,n=null,r=null){e=e.toLowerCase();let i=this.classes[e];i&&this.removeFromParentClass(i);let a=new wj(e,t,n,r);return this.classes[e]=a,r&&(r=r.toLowerCase(),this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(a)),a}removeClass(e){var t=this.findClass(e);t&&(delete this.classes[t.name],this.removeFromParentClass(t))}removeFromParentClass(e){if(!e.parentName||!this.findClass(e.parentName))return;let t=this.childrenClasses[e.parentName];if(!t)return;let n=t.indexOf(e);n>-1&&t.splice(n,1)}overrideClassCreatore(e,t){this.overrideClassCreator(e,t)}overrideClassCreator(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)}getProperties(e){var t=this.findClass(e);return t?t.getAllProperties():[]}getPropertiesByObj(e){let t=e&&e.getType?e.getType():void 0;if(!t)return[];let n=this.getProperties(t),r=this.getDynamicPropertiesByObj(e);for(let e=r.length-1;e>=0;e--)this.findProperty(t,r[e].name)&&r.splice(e,1);return r.length===0?n:[].concat(n,r)}addDynamicPropertiesIntoObj(e,t,n){n.forEach(n=>{this.addDynamicPropertyIntoObj(e,t,n.name,!1),n.serializationProperty&&this.addDynamicPropertyIntoObj(e,t,n.serializationProperty,!0),n.alternativeName&&this.addDynamicPropertyIntoObj(e,t,n.alternativeName,!1)})}addDynamicPropertyIntoObj(e,t,n,r){var i={configurable:!0,get:function(){return t[n]}};r||(i.set=function(e){t[n]=e}),Object.defineProperty(e,n,i)}getDynamicPropertiesByObj(e,t=null){if(!e||!e.getType)return[];if(e.getDynamicProperties)return e.getDynamicProperties();if(!e.getDynamicType&&!t)return[];let n=t||e.getDynamicType();return this.getDynamicPropertiesByTypes(e.getType(),n)}getDynamicPropertiesByTypes(e,t,n){if(!t)return[];let r=t+`-`+e;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var i=this.getProperties(t);if(!i||i.length==0)return[];let a={},o=this.getProperties(e);for(var s=0;s<o.length;s++)a[o[s].name]=o[s];let c=[];n||(n=[]);for(let e=0;e<i.length;e++){let t=i[e];if(this.canAddDynamicProp(t,a[t.name])){if(n.indexOf(t.name)>-1){let e=new Sj(t.classInfo,t.name,t.isRequired);e.mergeWith(t),t=e,t.visible=!1,t.isSerializable=!1}c.push(t)}}return this.dynamicPropsCache[r]=c,c}canAddDynamicProp(e,t){if(!t)return!0;if(e===t)return!1;let n=e.classInfo;for(;n&&n.parentName;){if(e=this.findProperty(n.parentName,e.name),e&&e===t)return!0;n=e?e.classInfo:void 0}return!1}hasOriginalProperty(e,t){return!!this.getOriginalProperty(e,t)}getOriginalProperty(e,t){var n=this.findProperty(e.getType(),t);if(n)return n;let r=e.getOriginalByProperty(t);return r===e?null:this.findProperty(r.getType(),t)}getProperty(e,t){let n=this.findProperty(e,t);if(!n)return n;let r=this.findClass(e);if(n.classInfo===r)return n;let i=new Sj(r,n.name,n.isRequired);return i.mergeWith(n),r.properties.push(i),r.resetAllProperties(),i}findProperty(e,t){let n=this.findClass(e);return n?n.findProperty(t):null}findProperties(e,t){var n=[];let r=this.findClass(e);if(!r)return n;for(var i=0;i<t.length;i++){var a=r.findProperty(t[i]);a&&n.push(a)}return n}getAllPropertiesByName(e){for(var t=[],n=this.getAllClasses(),r=0;r<n.length;r++)for(var i=this.findClass(n[r]),a=0;a<i.properties.length;a++)if(i.properties[a].name==e){t.push(i.properties[a]);break}return t}getAllClasses(){var e=[];for(var t in this.classes)e.push(t);return e}createClass(e,t=void 0){e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var r=n.parentName;r;){if(n=this.findClass(r),!n)return null;if(r=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null}createCustomType(e,t,n=void 0){e=e.toLowerCase();var r=t(n),i=e,a=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return i},r.getTemplate=function(){return a},Cj.createProperties(r),r}getChildrenClasses(e,t=!1){e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n}getRequiredProperties(e){let t=this.findClass(e);if(!t)return[];let n=t.getRequiredProperties();for(var r=[],i=0;i<n.length;i++)r.push(n[i].name);return r}addProperties(e,t){e=e.toLowerCase();for(var n=this.findClass(e),r=0;r<t.length;r++)this.addCustomPropertyCore(n,t[r])}addProperty(e,t){return this.addCustomPropertyCore(this.findClass(e),t)}addCustomPropertyCore(e,t){if(!e)return null;var n=e.createProperty(t,!0);return n&&(this.clearDynamicPropsCache(e),e.resetAllProperties()),n}removeProperty(e,t){var n=this.findClass(e);if(!n)return!1;var r=n.find(t);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),Cj.removeProperty(n.name,t))}clearDynamicPropsCache(e){this.dynamicPropsCache={}}removePropertyFromClass(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)}fillChildrenClasses(e,t,n){var r=this.childrenClasses[e];if(r)for(var i=0;i<r.length;i++)(!t||r[i].creator)&&n.push(r[i]),this.fillChildrenClasses(r[i].name,t,n)}findClass(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t}isDescendantOf(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var r=n;do{if(r.name===t)return!0;r=this.classes[r.parentName]}while(r);return!1}
67addAlterNativeClassName(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()}setAlias(e,t){!e||!t||(e=e.toLowerCase(),t=t.toLowerCase(),e!==t&&(this.addAlterNativeClassName(e,t),this.typeAliases[e]=t))}getTypeByAlias(e){if(!e)return;e=e.toLowerCase();let t=this.alternativeNames[e];return t&&this.typeAliases[t]===e?t:void 0}getAliasByType(e){if(e)return this.typeAliases[e.toLowerCase()]}removeAlias(e){if(!e)return;e=e.toLowerCase();let t=this.alternativeNames[e];!t||this.typeAliases[t]!==e||(delete this.typeAliases[t],delete this.alternativeNames[e])}generateSchema(e=void 0){e||(e=`survey`);var t=this.findClass(e);if(!t)return null;var n={$schema:`http://json-schema.org/draft-07/schema#`,title:`SurveyJS Library json schema`,type:`object`,properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,n,n.definitions,!0),n}generateLocStrClass(){let e={},t=J.findProperty(`survey`,`locale`);if(t){let n=t.getChoices(null);Array.isArray(n)&&(n.indexOf(`en`)<0&&n.splice(0,0,`en`),n.splice(0,0,`default`),n.forEach(t=>{t&&(e[t]={type:`string`})}))}return{$id:`locstring`,type:`object`,properties:e}}generateSchemaProperties(e,t,n,r){if(!e)return;let i=t.properties,a=[];e.name===`question`&&(i.type={type:`string`},a.push(`type`));for(let t=0;t<e.properties.length;t++){let o=e.properties[t];o.isSerializable!==!1&&(e.parentName&&J.findProperty(e.parentName,o.name)||(i[o.name]=this.generateSchemaProperty(o,n,r),o.isRequired&&a.push(o.name)))}a.length>0&&(t.required=a)}generateSchemaProperty(e,t,n){let r;if(e.isLocalizable)return{oneOf:[{type:`string`},{$ref:this.getChemeRefName(`locstring`,n)}]};
67let i=e.schemaType(),a=e.schemaRef();var o={};if(i&&(o.type=i),e.hasChoices&&e.name!==`locale`){let t=e.getChoices(null);Array.isArray(t)&&t.length>0&&(o.enum=this.getChoicesValues(t))}if(a){if(i===`array`){if(e.className===`string`)o.items={type:e.className};else{let t={$ref:this.getChemeRefName(e.className,n)};o.items=!G.serialization.itemValueSerializeAsObject&&this.isDescendantOf(e.className,`itemvalue`)?{anyOf:[t,{type:`string`},{type:`number`}]}:t}}else{let i=this.getChildrenClasses(e.className,!0);if(i.length>0)for(o.oneOf=[{$ref:this.getChemeRefName(e.className,n)}],r=0;r<i.length;r++)o.oneOf.push({$ref:this.getChemeRefName(i[r].name,n)}),this.generateChemaClass(i[r].name,t,!1);else o.$ref=this.getChemeRefName(a,n)}this.generateChemaClass(e.className,t,!1)}if(e.baseClassName){var s=this.getChildrenClasses(e.baseClassName,!0);for(e.baseClassName==`question`&&s.push(this.findClass(`panel`)),o.items={anyOf:[]},r=0;r<s.length;r++){var c=s[r].name;o.items.anyOf.push({$ref:this.getChemeRefName(c,n)}),this.generateChemaClass(c,t,!1)}}return o}getChemeRefName(e,t){return t?`#/definitions/`+e:e}generateChemaClass(e,t,n){if(t[e])return;var r=this.findClass(e);if(!r)return;var i=!!r.parentName&&r.parentName!=`base`;i&&this.generateChemaClass(r.parentName,t,n);let a={type:`object`,$id:e};t[e]=a;let o={properties:{}};this.generateSchemaProperties(r,o,t,n),i?a.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:o.properties}]:a.properties=o.properties,Array.isArray(o.required)&&(a.required=o.required)}getChoicesValues(e){let t=[];return e.forEach(e=>{typeof e==`object`&&e.value!==void 0?t.push(e.value):t.push(e)}),t}},Ej=class{constructor(e,t){this.type=e,this.message=t,this.description=``,this.at=-1,this.end=-1}getFullDescription(){return this.message+(this.description?` 68`+this.description:``)}},Dj=class extends Ej{constructor(e,t){super(`unknownproperty`,`Unknown property in class '`+t+`': '`+e+`'.`),this.propertyName=e,this.className=t}},Oj=class extends Ej{constructor(e,t,n){super(t,n),this.baseClassName=e,this.type=t,this.message=n}},kj=class extends Oj{constructor(e,t){super(t,`missingtypeproperty`,`The property type is missing in the object. Please take a look at property: '`+e+`'.`),this.propertyName=e,this.baseClassName=t}},Aj=class extends Oj{constructor(e,t){super(t,`incorrecttypeproperty`,`The property type is incorrect in the object. Please take a look at property: '`+e+`'.`),this.propertyName=e,this.baseClassName=t}},jj=class extends Ej{constructor(e,t){super(`requiredproperty`,`The property '`+e+`' is required in class '`+t+`'.`),this.propertyName=e,this.className=t}},Mj=class extends Ej{constructor(e,t){super(`arrayproperty`,`The property '`+e+`' should be an array in '`+t+`'.`),this.propertyName=e,this.className=t}},Nj=class extends Ej{constructor(e,t){super(`incorrectvalue`,`The property value: '`+t+`' is incorrect for property '`+e.name+`'.`),this.property=e,this.value=t}},Pj=class e{constructor(){this.errors=[],this.lightSerializing=!1}static get metaData(){return e.metaDataValue}toJsonObject(e,t){return this.toJsonObjectCore(e,null,t)}toObject(e,t,n){this.toObjectCore(e,t,n);var r=this.getRequiredError(t,e);r&&this.addNewError(r,e,t)}toObjectCore(t,n,r){if(!t)return;var i=null,a=void 0,o=!0;if(n.getType&&(a=n.getType(),i=J.getProperties(a),o=!!a&&(typeof t==`object`&&!Array.isArray(t)||!J.isDescendantOf(a,`itemvalue`))),!i)return;n.startLoadingFromJson&&n.startLoadingFromJson(t),i=this.addDynamicProperties(n,t,i),this.options=r;let s={};s[e.typePropertyName]=!0;let c={};for(var l in t)this.setPropertyValueToObj(t,n,l,i,s,c,a,o,r);this.options=void 0,n.endLoadingFromJson&&n.endLoadingFromJson()}setPropertyValueToObj(t,n,r,i,a,o,s,c,l){if(a[r])return;if(r===e.positionPropertyName){n[r]=t[r];return}let u=this.findProperty(i,r);if(!u&&c&&this.addNewError(new Dj(r.toString(),s),t,n),u){let e=u.dependsOn;Array.isArray(e)&&(o[r]=!0,e.forEach(e=>{o[e]||this.setPropertyValueToObj(t,n,e,i,a,o,s,!1,l)})),this.valueToObj(t[r],n,u,t,l),a[r]=!0}}toJsonObjectCore(t,n,r){if(!t||!t.getType)return t;if(!t.isSurvey&&typeof t.getData==`function`)return t.getData(r);var i={};n!=null&&!n.className&&(i[e.typePropertyName]=n.getObjType(this.getObjSerializedType(t)));let a=r===!0;return(!r||r===!0)&&(r={}
68),a&&(r.storeDefaults=a),r.storeLocaleStrings===!1&&(r.locales=void 0),this.propertiesToJson(t,J.getProperties(t.getType()),i,r),this.propertiesToJson(t,this.getDynamicProperties(t),i,r),i}getObjSerializedType(e){let t=e.getType();return J.getAliasByType(t)||t}getDynamicProperties(e){return J.getDynamicPropertiesByObj(e)}addDynamicProperties(e,t,n){if(!e.getDynamicPropertyName&&!e.getDynamicProperties)return n;if(e.getDynamicPropertyName){let r=e.getDynamicPropertyName();if(!r)return n;r&&t[r]&&(e[r]=t[r])}let r=this.getDynamicProperties(e);return r.length===0?n:[].concat(n,r)}propertiesToJson(e,t,n,r){for(var i=0;i<t.length;i++)this.valueToJson(e,n,t[i],r)}valueToJson(e,t,n,r){r||(r={}),this.isProretyCanBeStoredByOptions(n,r)&&(!n.isPropertySerializable(e)||n.isLightSerializable===!1&&this.lightSerializing||r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(e,t,n,r))}isProretyCanBeStoredByOptions(e,t){let n=t.storeLocaleStrings;return e.isArray||e.isUnique||e.name===`name`?!0:n===!1?!e.isLocalizable:n!==`stringsOnly`||e.isLocalizable||!!e.serializationProperty}valueToJsonCore(e,t,n,r){let i=n.getSerializedProperty(e,r.version);if(i&&i!==n){this.valueToJsonCore(e,t,i,r);return}var a=n.getSerializableValue(e,r.storeDefaults,r);if(a===void 0)return;if(this.isValueArray(a)){for(var o=[],s=0;s<a.length;s++)o.push(this.toJsonObjectCore(a[s],n,r));r.storeLocaleStrings===`stringsOnly`&&this.reduceLocaleArray(o),a=o.length>0?o:null}else a=this.toJsonObjectCore(a,n,r);if(a==null)return;let c=n.getSerializedName(r.version);(!J.onSerializingProperty||!J.onSerializingProperty(e,n,a,t))&&(t[c]=this.removePosOnValueToJson(n,a))}reduceLocaleArray(e){let t=e.length-1;for(;t>=0;){let n=e[t];if(n&&typeof n==`object`){let e=Object.keys(n).length;if([`type`,`name`,`value`].forEach(t=>{n[t]!==void 0&&e--}),e>0)break}t--}e.splice(t+1)}valueToObj(e,t,n,r,i){if(e!=null){if(this.removePos(n,e),n!=null&&n.hasToUseSetValue){if(n.setValue(t,e,this),n.className&&e&&typeof e==`object`&&!Array.isArray(e)){let r=t[n.name];r&&r.getType&&this.toObjectCore(e,r,i)}return}if(n.isArray&&!Array.isArray(e)&&e){e=[e];let i=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new Mj(i,t.getType()),r||e,t)}if(this.isValueArray(e)){this.valueToArray(e,t,n.name,n,i);return}var a=this.createNewObj(e,n);a.newObj&&(this.toObjectCore(e,a.newObj,i),e=a.newObj),a.error||(n==null?t[n.name]=e:(n.setValue(t,e,this),i&&i.validatePropertyValues&&(n.validateValue(t,e)||this.addNewError(new Nj(n,e),r,t))))}}removePosOnValueToJson(e,t){return!e.isCustom||!t||this.removePosFromObj(t),t}removePos(e,t){!e||!e.type||e.type.indexOf(`value`)<0||this.removePosFromObj(t)}removePosFromObj(t){if(!(!t||typeof t.getType==`function`)){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);if(typeof t==`object`){t[e.positionPropertyName]&&delete t[e.positionPropertyName];for(let e in t)this.removePosFromObj(t[e])}}}isValueArray(e){return e&&Array.isArray(e)}createNewObj(e,t){var n={newObj:null,error:null};let r=this.getClassNameForNewObj(e,t);return n.newObj=r?J.createClass(r,e):null,n.error=this.checkNewObjectOnErrors(n.newObj,e,t,r),n}getClassNameForNewObj(t,n){var r=n!=null&&n.className?n.className:void 0;if(r||(r=t[e.typePropertyName]),!r)return r;r=r.toLowerCase();let i=n.classNamePart;return i&&r.indexOf(i)<0&&(r+=i),r}checkNewObjectOnErrors(e,t,n,r){var i=null;return e?i=this.getRequiredError(e,t):n.baseClassName&&(i=r?new Aj(n.name,n.baseClassName):new kj(n.name,n.baseClassName)),i&&this.addNewError(i,t,e),i}getRequiredError(e,t){if(!e.getType)return null;let n=e.getType();if(J.isDescendantOf(n,`itemvalue`))return null;let r=J.findClass(n);if(!r)return null;let i=r.getRequiredProperties();if(!Array.isArray(i))return null;for(var a=0;a<i.length;a++){let n=i[a];if(K.isValueEmpty(n.defaultValue)&&!t[n.name])return new jj(n.name,e.getType())}return null}addNewError(t,n,r){if(t.jsonObj=n,t.element=r,this.errors.push(t),!n)return;let i=n[e.positionPropertyName];i&&(t.at=i.start,t.end=i.end)}valueToArray(e,t,n,r,i){if(!(t[n]&&!this.isValueArray(t[n]))){t[n]&&e.length>0&&t[n].splice(0,t[n].length);var a=t[n]?t[n]:[];this.addValuesIntoArray(e,a,r,i),t[n]||(t[n]=a)}}addValuesIntoArray(e,t,n,r){for(var i=0;i<e.length;i++){var a=this.createNewObj(e[i],n);a.newObj?(e[i].name&&(a.newObj.name=e[i].name),e[i].valueName&&(a.newObj.valueName=e[i].valueName.toString()),t.push(a.newObj),this.toObjectCore(e[i],a.newObj,r)):a.error||t.push(e[i])}}findProperty(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null}};Pj.typePropertyName=`type`,Pj.positionPropertyName=`pos`,Pj.metaDataValue=new Tj;var J=Pj.metaData,Fj=class{constructor(){}getValueInfo(e){let t=this.getValueInfoCore(e);return!t.isFound&&t.value===void 0&&e.name.endsWith(`.length`)&&(t.isFound=!0,t.value=0),t}getValueInfoCore(e){let t=e.name,n=e.context,r=this.run(e.name,n,e.createObjects,e.isOriginalValue);if((!r||!r.isFound)&&n&&n.getRootObj){let t=n.getRootObj();if(t)return e.context=t.getValueGetterContext(),this.getValueInfo(e)}let i={isFound:!1,value:void 0};return!r||!r.isFound?i:(i.isFound=!0,i.value=r.value,i.strictCompare=r.requireStrictCompare,i.propObj=r.propObj,i.propName=r.propName,r.context&&(e.isText&&r.context.getTextValue&&(i.value=r.context.getTextValue(t,i.value,e.isDisplayValue)),r.context.getQuestion&&(i.question=r.context.getQuestion())),i)}getValue(e,t,n,r){let i=this.getValueInfo({name:e,context:t,isText:n,isDisplayValue:r});return i.isFound?i.value:void 0}getDisplayValue(e,t,n=!0){return this.getValue(e,t,!0,n)}isAnyKeyChanged(e,t){let n=G.expressionElementPropertyPrefix;for(var r=0;r<t.length;r++){let o=t[r];if(!o)continue;if(n&&o[0]===n)return!0;let s=o.toLowerCase();if(e.hasOwnProperty(o)||o!==s&&e.hasOwnProperty(s)||this.isUnwrappedNameChanged(e,o))return!0;let c=this.getFirstNameByKeys(e,o);if(!c)continue;if(o===c)return!0;let l=e[c];if(l==null)continue;if(!l.hasOwnProperty(`oldValue`)||!l.hasOwnProperty(`newValue`))return!0;let u={};u[c]=l.oldValue;var i=this.getValueFromObject(u,o);u[c]=l.newValue;var a=this.getValueFromObject(u,o);if(!K.isTwoValueEquals(i,a,!1,!1,!1))return!0}return!1}isUnwrappedNameChanged(e,t){let n=G.expressionVariables.unwrapPostfix;if(!n)return!1;let r=this.getPath(t)[0].name;if(!r.endsWith(n))return!1;let i=r.substring(0,r.length-n.length);return e.hasOwnProperty(i)||e.hasOwnProperty(i.toLowerCase())}getFirstNameByKeys(e,t){let n=this.getPath(t),r=``;for(let t=0;t<n.length;t++){if(r+=(t>0?`.`:``)+n[t].name,e.hasOwnProperty(r))return r;let i=r.toLowerCase();if(i!==r&&e.hasOwnProperty(i))return i}return``}getValueFromObject(e,t){let n=this.getValueInfo({name:t,context:new Lj(e)});return n.isFound?n.value:void 0}run(e,t,n,r){if(!t)return;let i=this.getPath(e),a=G.expressionElementPropertyPrefix,o=!!a&&i.length>0&&i[0].name[0]===a;o&&(i[0].name=i[0].name.substring(1));
68let s=t.getValue({path:i,isRoot:!0,index:-1,createObjects:n,isProperty:o,isOriginalValue:r});return s!=null&&s.isFound?s:void 0}getPath(e){let t=[],n=e.split(`.`);for(let e=0;e<n.length;e++)t.push(this.getValueItem(n[e]));return t}getValueItem(e){let t;if(e.lastIndexOf(`]`)===e.length-1){let n=e.lastIndexOf(`[`);if(n>-1){let r=e.substring(n+1,e.length-1);t=K.getNumber(r),isNaN(t)&&(t=void 0),t!==void 0&&(e=e.substring(0,n))}}let n={name:e};return t!==void 0&&(n.index=t),n}},Ij=class{constructor(){}getValue(e){let t=0,n=e.path,r={isFound:!1,value:this.getInitialvalue(),context:this};for(;t<n.length;){if(t=this.checkValueByPath(n,t,r),!r.isFound)return;if(e.isProperty){if(r.obj)return new Rj(r.obj).getValue({path:n.slice(1),isRoot:!1,index:-1,isProperty:!0});if(!r.context)return}let i=n[t];if(t++,r.context!==this&&r.context)return r.context.getValue({path:n.slice(t),isRoot:!1,index:i.index,createObjects:e.createObjects,isProperty:e.isProperty,isOriginalValue:e.isOriginalValue});if(i.index!==void 0&&(this.updateItemByIndex(i.index,r),!r.isFound))return}return r}isSearchNameRevert(){return!1}checkValueByPath(e,t,n){let r=this.isSearchNameRevert(),i=t,a=this.getMaxIndexByPath(e,t);for(n.isFound=!1,r&&(t=a);!n.isFound&&t<=a&&t>=i;){let a=this.getNameByPath(e,i,t+1);if(this.updateValueByItem(a,n),n.isFound)break;t+=r?-1:1}return t}getNameByPath(e,t,n){let r=``;for(let i=t;i<n;i++)i>t&&(r+=`.`),r+=e[i].name;return r}getMaxIndexByPath(e,t){let n=t;for(;n<e.length&&e[n].index===void 0;)n++;return n<e.length?n:e.length-1}getTextValue(e,t,n){return n?t==null?``:t.toString():t}getInitialvalue(){}updateValueByItem(e,t){}updateItemByIndex(e,t){}},Lj=class extends Ij{constructor(e){super(),this.variables=e}getInitialvalue(){return this.variables}isSearchNameRevert(){return!0}updateValueByItem(e,t){let n=this.getValueByItemCore(t.value,e);t.isFound=n!==void 0,t.isFound&&(t.value=n)}updateItemByIndex(e,t){let n=t.value;t.isFound=!1,Array.isArray(n)&&(e<0&&(e=n.length+e),e>-1&&e<n.length&&(t.value=n[e],t.isFound=!0))}getValueByItemCore(e,t){if(!e||!t)return;let n=t.toLowerCase();if(t===`length`&&(Array.isArray(e)||typeof e==`string`))return e.length;if(typeof e!=`object`)return;let r=n[0],i=t[0].toLocaleUpperCase();for(var a in e){var o=a[0];if((o===r||o===i)&&a.toLowerCase()==n)return e[a]}}},Rj=class extends Lj{constructor(e){super(e),this.obj=e}getValue(e){this.lastObj=void 0,this.lastName=void 0;let t=super.getValue(e);return t!=null&&t.isFound&&(t.propObj=this.lastObj,t.propName=this.lastName),t}getValueByItemCore(e,t){if(!(!e||!t))return this.lastObj=e,this.lastName=t,e[t]}},zj=class extends Lj{constructor(e,t){super(e),this.second=t}getValue(e){let t=super.getValue(e);return!this.second||t!=null&&t.isFound?t:this.second.getValue(e)}},Bj=class{constructor(e){this.properties=null,this.asyncValues={},this.contextValue=e}get context(){return this.contextValue}hasValue(e){return this.context?this.getValueInfoByContext(e).isFound:!1}getValue(e){if(this.context)return this.getValueInfoByContext(e).value}getValueInfoByContext(e,t){return new Fj().getValueInfo({name:e,context:this.context,isText:!1,isOriginalValue:t})}getValueInfo(e){if(this.context){let t=this.getValueInfoByContext(e.name,e.isOriginalValue);if(t.isFound){let e=this.context.getObj?this.context.getObj():null;e&&t.propObj&&e.addPropertyDependency(t.propObj,t.propName)}e.value=t.value,e.hasValue=t.isFound,e.strictCompare=t.strictCompare;return}return{hasValue:!1}}},Vj;function Hj(e){Vj=e}var Uj=class e{constructor(e){this.expression=e}get expression(){return this.expressionExecutor?this.expressionExecutor.expression:``}set expression(e){this.expressionExecutor&&e===this.expression||(this.expressionExecutor=Vj(e),this.expressionExecutor.onComplete=(e,t)=>{this.doOnComplete(e,t)},this.variables=void 0,this.containsFunc=void 0)}getVariables(){return this.variables===void 0&&(this.variables=this.expressionExecutor.getVariables()),this.variables}hasFunction(e){return e===!0?!!this.expressionExecutor&&this.expressionExecutor.hasFunction(!0):(this.containsFunc===void 0&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc)}get isAsync(){return this.expressionExecutor.isAsync}canRun(){return this.expressionExecutor.canRun()}runContextCore(t,n){let r=e.IdRunnerCounter++;return this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(r),this.expressionExecutor.runContext(t,n,r)}validate(e,t,n){return this.expressionExecutor.validate(e,n,t)}doOnComplete(e,t){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(t)}};Uj.IdRunnerCounter=1;var Wj=class extends Uj{runValues(e,t){return this.runContext(new zj(e,t==null?void 0:t.context),t)}runContext(e,t){return this.runContextCore(e,t)}doOnComplete(e,t){this.onRunComplete&&this.onRunComplete(e),super.doOnComplete(e,t)}},Gj=class e{static disposedObjectChangedProperty(t,n){e.warn(`An attempt to set a property "`+t+`" of a disposed object "`+n+`"`)}static inCorrectQuestionValue(t,n){let r=JSON.stringify(n,null,3);e.warn(`An attempt to assign an incorrect value`+r+` to the following question: "`+t+`"`)}static warn(e){console.warn(e)}static error(e){console.error(e)}},Kj;(function(e){e[e.SyntaxError=0]=`SyntaxError`,e[e.UnknownFunction=1]=`UnknownFunction`,e[e.UnknownVariable=2]=`UnknownVariable`,e[e.SemanticError=3]=`SemanticError`})(Kj||(Kj={}));function qj(e){if(e){let t=e.question;if(t&&t.name)return` It is used in the question: '`+t.name+`'.`}return``}var Jj=class extends Uj{runValues(e,t){return this.runContext(new zj(e,t==null?void 0:t.context),t)}runContext(e,t){return this.runContextCore(e,t)==1}doOnComplete(e,t){this.onRunComplete&&this.onRunComplete(e==1),super.doOnComplete(e,t)}},Yj=class{constructor(){this.functionHash={},this.functionCache={}}register(e,t,n,r){let i=typeof e==`object`?e:{name:e,func:t,isAsync:n,useCache:r},a=i.useCache;i.isAsync&&a===void 0&&(a=!0),this.clearCache(i.name),this.functionHash[i.name]={name:i.name,func:i.func,isA
68sync:!!i.isAsync,useCache:!!a,originalValueParams:i.originalValueParams}}getOriginalValueParams(e){let t=this.functionHash[e];return t&&Array.isArray(t.originalValueParams)?t.originalValueParams:[]}unregister(e){delete this.functionHash[e]}hasFunction(e){return!!this.functionHash[e]}isAsyncFunction(e){let t=this.functionHash[e];return!!t&&t.isAsync}clear(){this.functionHash={},this.clearCache()}clearCache(e){e?delete this.functionCache[e]:this.functionCache={}}getAll(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()}run(e,t,n,r){n||(n={});let i=this.functionHash[e];if(!i)return Gj.warn(this.getUnknownFunctionErrorText(e,n)),null;let a=this.getCachedValue(i,t,n.survey);if(a){let e=a.result;return n.returnResult&&n.returnResult(e),e}let o={func:i.func};for(var s in n)if(s===`returnResult`&&i.useCache){let e=this;o[s]=r=>{e.addToCache(i,t,n,r),n.returnResult(r)}}else o[s]=n[s];this.surveyCachedValues=i.useCache?[]:void 0,this.objsCachedValues=i.useCache?[]:void 0;let c=o.func(t,r);return n.surveyCachedValues=this.surveyCachedValues,n.objsCachedValues=this.objsCachedValues,this.surveyCachedValues=void 0,this.objsCachedValues=void 0,i.isAsync||this.addToCache(i,t,n,c),c}addSurveyCachedValue(e,t,n){this.surveyCachedValues&&this.surveyCachedValues.push({name:e,value:t,isVariable:!!n})}addObjectCachedValue(e,t,n){this.objsCachedValues&&(this.isSurveyObjectValue(n)||this.objsCachedValues.push({obj:e,name:t,value:n}))}isSurveyObjectValue(e){let t=Array.isArray(e)&&e.length>0?e[0]:e;return!!t&&typeof t==`object`&&typeof t.getType==`function`}addToCache(e,t,n,r){if(!e.useCache)return;let i=n.surveyCachedValues,a=n.objsCachedValues;if(!Array.isArray(i)||!Array.isArray(a)||t.length===0&&i.length===0&&a.length===0)return;let o=this.functionCache[e.name];Array.isArray(o)||(o=[],this.functionCache[e.name]=o),o.push({parameters:t,result:r,surveyValues:i,objectValues:a})}getCachedValue(e,t,n){if(e&&!e.useCache)return;let r=this.functionCache[e.name];if(Array.isArray(r))for(let e=r.length-1;e>=0;e--){let i=r[e];if(this.hasDisposedObj(i.objectValues)){r.splice(e,1);continue}if(this.isCachedItemValid(i,t,n))return{result:i.result}}}isCachedItemValid(e,t,n){if(!K.isTwoValueEquals(e.parameters,t))return!1;let r=e.surveyValues;if(Array.isArray(r)&&r.length>0){if(!n)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=t.name,a=t.value,o=t.isVariable?n.getVariable(i):n.getValue(i);if(!K.isTwoValueEquals(o,a))return!1}}let i=e.objectValues;if(Array.isArray(i)&&i.length>0)for(let e=0;e<i.length;e++){let t=i[e],n=t.obj,r=t.name,a=n.getPropertyValueWithoutDefault(r);if(!K.isTwoValueEquals(a,t.value)&&(t.value!==void 0||a!==n.getDefaultPropertyValue(r)))return!1}return!0}hasDisposedObj(e){if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(e[t].obj.isDisposed===!0)return!0;return!1}getUnknownFunctionErrorText(e,t){return`Unknown function name: '`+e+`'.`+qj(t)}};Yj.Instance=new Yj;function Xj(e,t){if(e!=null){if(Array.isArray(e))for(var n=0;n<e.length;n++)Xj(e[n],t);else K.isNumber(e)&&(e=K.getNumber(e)),t.push(e)}}function Zj(e){var t=[];Xj(e,t);for(var n=0,r=0;r<t.length;r++)n=K.correctAfterPlusMinis(n,t[r],n+t[r]);return n}Yj.Instance.register(`sum`,Zj);function Qj(e,t){var n=[];Xj(e,n);for(var r=void 0,i=0;i<n.length;i++)r===void 0&&(r=n[i]),t?r>n[i]&&(r=n[i]):r<n[i]&&(r=n[i]);return r}function $j(e){return Qj(e,!0)}Yj.Instance.register(`min`,$j);function eM(e){return Qj(e,!1)}Yj.Instance.register(`max`,eM);function tM(e){var t=[];return Xj(e,t),t.length}Yj.Instance.register(`count`,tM);function nM(e){var t=[];Xj(e,t);let n=Zj(e);return t.length>0?n/t.length:0}Yj.Instance.register(`avg`,nM);function rM(e){var t=[];if(Xj(e,t),t.length>0){let e=t[0],n=t[1]||0;if(K.isNumber(e)&&K.isNumber(n)){let t=10**n,r=e*t*(1+2**-52);return Math.round(r)/t}}return NaN}Yj.Instance.register(`round`,rM);function iM(e){var t=[];if(Xj(e,t),t.length>0){let e=t[0],n=t[1]||-1;if(K.isNumber(e)&&K.isNumber(n)){let t=RegExp(`^-?\\d+(?:.\\d{0,`+n+`})?`);return Number(e.toString().match(t)[0])}}return NaN}Yj.Instance.register(`trunc`,iM);function aM(e,t){return!t||!t.getType||t.getType()!==`const`?!1:typeof e==`string`&&!/[{}><=!]/.test(e)}function oM(e,t){if(e.length<2||e.length>4)return null;let n=e[0];if(!n||!Array.isArray(n)&&!Array.isArray(Object.keys(n)))return null;let r=e[1];if(typeof r!=`string`&&!(r instanceof String))return null;let i=r,a=2;if(e.length>2){let n=Array.isArray(t)&&t.length>2?t[2]:void 0;aM(e[2],n)&&(i=e[2],a=3)}let o=e.length>a?e[a]:void 0;if(typeof o!=`string`&&!(o instanceof String)&&(o=void 0),!o){let e=Array.isArray(t)&&t.length>a?t[a]:void 0;e&&e.toString()&&(o=e.toString())}return{data:n,name:r,expression:o,returnName:i}}function sM(e){return typeof e==`string`?K.isNumber(e)?K.getNumber(e):void 0:e}function cM(e,t,n,r,i,a,o){return!e||K.isValueEmpty(e[t])||a&&!a.runValues(e,o)?n:r(n,i?sM(e[t]):1)}function lM(e,t,n,r,i=!0){var a=oM(t,n);if(!a)return;let o=a.expression?new Jj(a.expression):void 0;
68o&&o.isAsync&&(o=void 0);var s=void 0;if(Array.isArray(a.data))for(var c=0;c<a.data.length;c++)s=cM(a.data[c],a.name,s,r,i,o,e);else for(var l in a.data)s=cM(a.data[l],a.name,s,r,i,o,e);return s}function uM(e){var t;return{survey:e.survey,question:e.question,context:(t=e.survey)==null?void 0:t.getValueGetterContext()}}function dM(e,t){var n=lM(uM(this),e,t,function(e,t){return e??(e=0),t==null||t==null?e:K.correctAfterPlusMinis(e,t,e+t)});return n===void 0?0:n}Yj.Instance.register({name:`sumInArray`,func:dM,originalValueParams:[0]});function fM(e,t,n,r){var i=oM(t,n);if(!i)return;let a=i.expression?new Jj(i.expression):void 0;a&&a.isAsync&&(a=void 0);var o=void 0,s=void 0;let c=Array.isArray(i.data)?i.data:Object.keys(i.data).map(e=>i.data[e]);for(var l=0;l<c.length;l++){let t=c[l];if(!t||K.isValueEmpty(t[i.name])||a&&!a.runValues(t,e))continue;let n=sM(t[i.name]);n!=null&&n!=null&&(o==null||(r?n<o:n>o))&&(o=n,s=t)}if(s)return i.returnName===i.name?o:s[i.returnName]}function pM(e,t){return fM(uM(this),e,t,!0)}Yj.Instance.register({name:`minInArray`,func:pM,originalValueParams:[0]});function mM(e,t){return fM(uM(this),e,t,!1)}Yj.Instance.register({name:`maxInArray`,func:mM,originalValueParams:[0]});function hM(e,t){var n=lM(uM(this),e,t,function(e,t){return e??(e=0),t==null||t==null?e:e+1},!1);return n===void 0?0:n}Yj.Instance.register({name:`countInArray`,func:hM,originalValueParams:[0]});function gM(e,t){let n=uM(this),r=r=>Yj.Instance.run(r,e,n,t),i=r(`countInArray`);return i==0?0:r(`sumInArray`)/i}Yj.Instance.register({name:`avgInArray`,func:gM,originalValueParams:[0]});function _M(e){if(!Array.isArray(e)||e.length<2)return null;let t=e.length>2?e[2]:void 0;return e[0]?e[1]:t}Yj.Instance.register(`iif`,_M);function vM(e){return!Array.isArray(e)||e.length<1||!e[0]?null:uj(`function-getDate`,e[0])}Yj.Instance.register(`getDate`,vM);function yM(e,t,n){if(n===`days`)return AM([e,t]);let r=uj(`function-dateDiffMonths`,e),i=uj(`function-dateDiffMonths`,t),a=i.getFullYear()-r.getFullYear();n=n||`years`;let o=a*12+i.getMonth()-r.getMonth();return i.getDate()<r.getDate()&&--o,n===`months`?o:~~(o/12)}function bM(e){return!Array.isArray(e)||e.length<1||!e[0]?null:yM(e[0],void 0,(e.length>1?e[1]:``)||`years`)}Yj.Instance.register(`age`,bM);function xM(e){if(!Array.isArray(e)||e.length<2||!e[0]||!e[1])return null;let t=(e.length>2?e[2]:``)||`days`;if(t===`hours`||t===`minutes`||t===`seconds`){let n=uj(`function-dateDiffMonths`,e[0]),r=uj(`function-dateDiffMonths`,e[1]),i=Math.abs(r-n);return Math.ceil(t===`hours`?i/36e5:t===`minutes`?i/6e4:i/1e3)}return yM(e[0],e[1],t)}Yj.Instance.register(`dateDiff`,xM);function SM(e){if(!Array.isArray(e)||e.length<2||!e[0]||!e[1])return null;let t=uj(`function-dateAdd`,e[0]),n=e[1],r=e[2]||`days`;return r===`days`&&t.setDate(t.getDate()+n),r===`months`&&t.setMonth(t.getMonth()+n),r===`years`&&t.setFullYear(t.getFullYear()+n),r===`hours`&&t.setHours(t.getHours()+n),r===`minutes`&&t.setMinutes(t.getMinutes()+n),r===`seconds`&&t.setSeconds(t.getSeconds()+n),t}Yj.Instance.register(`dateAdd`,SM);function CM(e){if(!e)return!1;for(var t=e.questions,n=0;n<t.length;n++){let e=t[n];if(Array.isArray(e.panels)){for(let t=0;t<e.panels.length;t++)if(!CM(e.panels[t]))return!1}else if(!e.validate(!1))return!1}return!0}function wM(e){if(!e&&e.length<1||!e[0]||!this.survey)return!1;let t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n){let r=this.survey.getQuestionByName(t);if(!r||!Array.isArray(r.panels))return!1;if(e.length>1)e[1]<r.panels.length&&(n=r.panels[e[1]]);else{for(let e=0;e<r.panels.length;e++)if(!CM(r.panels[e]))return!1;return!0}}return CM(n)}Yj.Instance.register(`isContainerReady`,wM);function TM(){return this.survey&&this.survey.isDisplayMode}Yj.Instance.register(`isDisplayMode`,TM);function EM(){return uj(`function-currentDate`)}Yj.Instance.register(`currentDate`,EM);function DM(e){var t=uj(`function-today`);return G.storeUtcDates?t.setUTCHours(0,0,0,0):t.setHours(0,0,0,0),Array.isArray(e)&&e.length==1&&t.setDate(t.getDate()+e[0]),t}Yj.Instance.register(`today`,DM);function OM(e){if(!(e.length!==1||!e[0]))return uj(`function-getYear`,e[0]).getFullYear()}Yj.Instance.register(`getYear`,OM);function kM(){return uj(`function-currentYear`).getFullYear()}Yj.Instance.register(`currentYear`,kM);function AM(e){if(!Array.isArray(e)||e.length!==2||!e[0]||!e[1])return 0;let t=uj(`function-diffDays`,e[0]),n=uj(`function-diffDays`,e[1]),r=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),i=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate());return Math.ceil(Math.abs(i-r)/864e5)}Yj.Instance.register(`diffDays`,AM);function jM(e,t){let n=DM(void 0);return t&&t[0]&&(n=uj(`function-`+e,t[0])),n}function MM(e){return jM(`year`,e).getFullYear()}Yj.Instance.register(`year`,MM);function NM(e){return jM(`month`,e).getMonth()+1}Yj.Instance.register(`month`,NM);function PM(e){return jM(`day`,e).getDate()}Yj.Instance.register(`day`,PM);function FM(e){return jM(`weekday`,e).getDay()}Yj.Instance.register(`weekday`,FM);function IM(e,t){if(!e||!t)return;let n=e.question;for(;n&&n.parent;){let e=n.parent.getQuestionByName(t);if(e)return e;n=n.parentQuestion}let r=[`row`,`panel`,`survey`];for(let n=0;n<r.length;n++){let i=e[r[n]];if(i&&i.getQuestionByName){let e=i.getQuestionByName(t);if(e)return e}}return null}function LM(e,t){return t.length>1&&!K.isValueEmpty(t[1])?e.getDisplayValue(!0,t[1]):e.displayValue}function RM(e){let t=IM(this,e[0]);if(!t){this.returnResult(void 0);return}if(t.isReady)this.returnResult(LM(t,e));else{let n=(t,r)=>{t.isReady&&(t.onReadyChanged.remove(n),this.returnResult(LM(t,e)))};t.onReadyChanged.add(n)}}Yj.Instance.register(`displayValue`,RM,!0,!1);function zM(e){if(e.length!==2||!e[0]||!e[1])return;let t=IM(this,e[0]);return t?t[e[1]]:void 0}Yj.Instance.register(`propertyValue`,zM);function BM(e){if(e.length<2)return``;let t=e[0];if(!t||typeof t!=`string`)return``;let n=e[1];if(!K.isNumber(n))return``;let r=e.length>2?e[2]:void 0;return K.isNumber(r)?t.substring(n,r):t.substring(n)}Yj.Instance.register(`substring`,BM);
68function VM(e){if(e.length<1||!e[0]||!this.survey)return;let t=this.survey.getQuestionByName(e[0]);if(!t)return``;let n=e.length>1?e[1]:void 0;if(n!=null){let e=t.getItemByValue(n);return e?t.getCommentValue(e):void 0}return t.getCommentValue(t.otherItem)||t.comment}Yj.Instance.register(`getComment`,VM);function HM(e,t,n){Yj.Instance.addSurveyCachedValue(e,t,n)}function UM(e,t,n){Yj.Instance.addObjectCachedValue(e,t,n)}var WM=class{constructor(e){this.obj=e,this.properties=null,this.values=null}getType(){return`bindings`}get isSurveyObj(){return!0}getNames(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible(``,this.obj)&&e.push(this.properties[t].name);return e}getProperties(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e}setBinding(e,t){this.values||(this.values={});let n=this.getJson();n!==t&&(t?this.values[e]=t:(delete this.values[e],Object.keys(this.values).length==0&&(this.values=null)),this.onChangedJSON(n))}clearBinding(e){this.setBinding(e,``)}isEmpty(){if(!this.values)return!0;for(var e in this.values)return!1;return!0}getValueNameByPropertyName(e){if(this.values)return this.values[e]}getPropertiesByValueName(e){if(!this.values)return[];var t=[];for(var n in this.values)this.values[n]==e&&t.push(n);return t}getJson(){if(this.isEmpty())return;let e={};return this.getNames().forEach(t=>{this.values[t]!==void 0&&(e[t]=this.values[t])}),e}setJson(e,t){let n=this.getJson();this.values=null,e&&this.getNames().forEach(t=>{e[t]!==void 0&&(this.values||(this.values={}),this.values[t]=e[t])}),!t&&!K.isTwoValueEquals(n,this.values)&&this.onChangedJSON(n)}fillProperties(){if(this.properties===null){this.properties=[];for(var e=J.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}}onChangedJSON(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())}},GM=class e{constructor(t,n,r){this.currentDependency=t,this.target=n,this.property=r,this.dependencies=[],this.id=``+ ++e.DependenciesCount}addDependency(e,t){(this.target!==e||this.property!==t)&&(this.dependencies.some(n=>n.obj===e&&n.prop===t)||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id)))}dispose(){this.dependencies.forEach(e=>{e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)})}};GM.DependenciesCount=0;var KM=class e{constructor(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}get updater(){return this._updater}setDependencies(e){this.clearDependencies(),this.dependencies=e}getDependencies(){return this.dependencies}clearDependencies(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)}dispose(){this.clearDependencies(),this._updater=void 0}};KM.ComputedUpdaterType=`__dependency_computed`;var qM=class e{static finishCollectDependencies(){let t=e.currentDependencis;return e.currentDependencis=void 0,t}static startCollectDependencies(t,n,r){if(e.currentDependencis!==void 0)throw Error(`Attempt to collect nested dependencies. Nested dependencies are not supported.`);e.currentDependencis=new GM(t,n,r)}static collectDependency(t,n){e.currentDependencis!==void 0&&e.currentDependencis.addDependency(t,n)}static get commentSuffix(){return G.commentSuffix}static set commentSuffix(e){G.commentSuffix=e}static get commentPrefix(){return e.commentSuffix}static set commentPrefix(t){e.commentSuffix=t}isValueEmpty(e,t=!0){return t&&(e=this.trimValue(e)),K.isValueEmpty(e)}equals(e){return!e||this.isDisposed||e.isDisposed||this.getType()!=e.getType()?!1:this.equalsCore(e)}equalsCore(e){return this.name===e.name&&K.isTwoValueEquals(this.toJSON(),e.toJSON(),!1,!0,!1)}trimValue(e){return e&&(typeof e==`string`||e instanceof String)?e.trim():e}static createPropertiesHash(){return{}}constructor(){this.uniqueIdValue=e.UniqueId++,this.dependencies={},this.expressionDependencies={},this.propertyHash=e.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onNestedPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRerenderedEvent=!0,this.onElementRerenderedEventEnabled=!1,this._onElementRerendered=new vj,Cj.createProperties(this),this.onBaseCreating(),this.isCreating=!1}dispose(){for(var e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEac
68h(e=>this.dependencies[e].dispose()),Object.keys(this.expressionDependencies).forEach(e=>{let t=this.expressionDependencies[e];t.obj.isDisposed||t.obj.unRegisterFunctionOnPropertyValueChanged(t.propertyName,e)}),this.expressionDependencies={},Object.keys(this.propertyHash).forEach(e=>{let t=this.getPropertyValueCore(this.propertyHash,e);t&&t.type==KM.ComputedUpdaterType&&t.dispose()})}get isDisposed(){return this.isDisposedValue===!0}get uniqueId(){return this.uniqueIdValue}get isSurveyObj(){return!0}addEvent(e){let t=new vj;return this.eventList.push(t),t.onCallbacksChanged=e,t}addAsyncEvent(){let e=new YM;return this.eventList.push(e),e}onBaseCreating(){}getType(){return`base`}getOwner(){}get isPage(){return!1}get isPanel(){return!1}get isQuestion(){return!1}get isSurvey(){return!1}isDescendantOf(e){return J.isDescendantOf(this.getType(),e)}getSurvey(e=!1){return null}getValueGetterContext(){let e=this.getSurvey();if(!e)return new Lj({});let t=e.getValueGetterContext();if(!t||!t.getObj)return t;let n=this;return t.getObj=()=>n,t}get isDesignMode(){let e=this.getSurvey();return!!e&&e.isDesignMode}get inSurvey(){return!!this.getSurvey(!0)}get bindings(){return this.bindingsValue||(this.bindingsValue=new WM(this)),this.bindingsValue}isBindingEmpty(){return!this.bindingsValue||this.bindingsValue.isEmpty()}checkBindings(e,t){}canUpdateBindings(){return!0}updateBindings(e,t){if(!(!this.bindingsValue||!this.canUpdateBindings())){var n=this.bindings.getValueNameByPropertyName(e);n&&this.updateBindingValue(n,t)}}updateBindingValue(e,t){}getTemplate(){return this.getType()}get isLoadingFromJson(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()}getIsLoadingFromJson(){return this.loadingOwner&&this.loadingOwner.isLoadingFromJson?!0:this.isLoadingFromJsonValue}startLoadingFromJson(e){this.isLoadingFromJsonValue=!0,this.jsonObj=e}endLoadingFromJson(){this.isLoadingFromJsonValue=!1}mergeLocalizationObj(e,t){this.mergeLocalizationInObjectCore(e,t),this.mergeLocalizationInArrays(e,t);let n=e.getOriginalObj(),r=this.getOriginalObj();n!==e&&r!==this&&r.mergeLocalizationObj(n,t),this.mergeLocalizationWithInnerObjects(e,t)}mergeLocalizationWithInnerObjects(e,t){}mergeLocalizationInObjectCore(e,t){if(!this.canMergeObj(e))return;let n=e.localizableStrings;if(n)for(let e in n){let r=this.getPropertyByName(e);if(r){let i=r.serializationProperty||r.name,a=this[i];a&&a.mergeWith(n[e],t)}}}canMergeObj(e){if(!e||typeof e.mergeLocalizationObj!=`function`)return!1;let t=this;return!(e.name&&t.name!==e.name)}mergeLocalizationInArrays(e,t){let n=e.arraysInfo;if(n)for(let r in n){let n=this.getPropertyByName(r);if(n&&n.isArray){let n=e[r],i=this[r];if(Array.isArray(n)&&Array.isArray(i))for(let e=0;e<Math.min(n.length,i.length);e++)i[e].mergeLocalizationObj(n[e],t)}}}toJSON(e){return new Pj().toJsonObject(this,e)}getLocalizationJSON(e){return this.toJSON({storeLocaleStrings:`stringsOnly`,locales:e})}fromJSON(e,t){new Pj().toObject(e,this,t),this.onSurveyLoad()}onSurveyLoad(){}clone(){var e=J.createClass(this.getType());return e.fromJSON(this.toJSON()),e}getPropertyByName(e){let t=this.getType();return(!this.classMetaData||this.classMetaData.name!==t)&&(this.classMetaData=J.findClass(t)),this.classMetaData?this.classMetaData.findProperty(e):null}isPropertyVisible(e){let t=this.getPropertyByName(e);return t?t.isVisible(``,this):!1}static createProgressInfo(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}}getProgressInfo(){return e.createProgressInfo()}localeChanged(){}locStrsChanged(){if(this.arraysInfo)for(let n in this.arraysInfo){let r=this.arraysInfo[n];if(r&&r.isItemValues){var t=this.getPropertyValue(n);t&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(t)}}if(this.localizableStrings)for(let e in this.localizableStrings){let t=this.getLocalizableString(e);t&&t.strChanged()}}getValueAsString(e){return e==null?``:typeof e==`object`?JSON.stringify(e):e.toString()}getPropertyValue(e,t,n){let r=this.getPropertyValueWithoutDefault(e);if(n&&this.isDisposedValue&&(n=void 0),n&&Array.isArray(r)&&r.length===0&&r.isReset===!0)return delete r.isReset,this.setArrayPropertyDirectly(e,n(),!1),r;
68if(this.isValueUndefined(r)){let r=this.localizableStrings?this.localizableStrings[e]:void 0;if(r)return r.text;if(!this.isValueUndefined(t))return t;if(n){let t=n();if(t!==void 0){if(Array.isArray(t)){let n=this.createNewArray(e);return n.splice(0,0,...t),n}return this.setPropertyValueDirectly(e,t,!0),t}}let i=this.getDefaultPropertyValue(e);if(i!==void 0)return i}return r}isValueUndefined(e){return K.isValueUndefined(e)}getDefaultPropertyValue(e){let t=this.getPropertyByName(e);if(!t||t.isCustom&&this.isCreating)return;if(t.defaultValueFunc)return t.defaultValueFunc(this);let n=t.getDefaultValue(this);if(!this.isValueUndefined(n)&&!Array.isArray(n))return n;let r=this.localizableStrings?this.localizableStrings[e]:void 0;if(!r&&t.isLocalizable&&t.serializationProperty&&(r=this[t.serializationProperty]),r&&r.localizationName){let e=this.getLocalizationString(r.localizationName);if(e)return e}if(t.type==`boolean`||t.type==`switch`)return!1;if(t.isCustom&&t.onGetValue)return t.onGetValue(this)}hasDefaultPropertyValue(e){return this.getDefaultPropertyValue(e)!==void 0}resetPropertyValue(e){let t=this.localizableStrings?this.localizableStrings[e]:void 0;t?(this.setLocalizableStringText(e,void 0),t.clear()):this.setPropertyValue(e,void 0)}doNotSerializeEmptyProperty(e){return this.isPropertyStoredInHash(e.name)}isPropertyStoredInHash(e){return!1}getIsSerializablePropertyEmpty(e){let t=this.getOriginalByProperty(e.name);return e.isLocalizable&&!e.isMultipleText?!t.getLocalizableString(e.name):t===this&&this.doNotSerializeEmptyProperty(e)?this.getPropertyValueWithoutDefault(e.name)==null:!1}getOriginalObj(){return this}getOriginalByProperty(e){let t=this.getOriginalObj();return t===this?this:t.getPropertyByName(e)?t:this}getPropertyValueWithoutDefault(e){let t=this.getPropertyValueCore(this.propertyHash,e);return UM(this,e,t),t}getPropertyValueCore(t,n){return this.isLoadingFromJson||e.collectDependency(this,n),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,n):t[n]}geValueFromHash(){return this.propertyHash.value}setPropertyValueCore(e,t,n,r){let i=!1;this.setPropertyValueCoreHandler?(i=this.isDisposedValue,i||this.setPropertyValueCoreHandler(e,t,n)):e[t]!==n&&(e[t]=n,!r&&this.onPropertyValueCoreChanged&&(i=this.isDisposedValue,i||this.onPropertyValueCoreChanged.fire(this,{name:t,newValue:n}))),i&&Gj.disposedObjectChangedProperty(t,this.getType())}getItemValuesPropertyValue(e){let t=this.getPropertyValue(e);return Array.isArray(t)||(t=this.createItemValues(e),this.setPropertyValueDirectly(e,t)),t}getArrayPropertyValue(e,t,n){let r=this.getPropertyValue(e);return Array.isArray(r)||(r=this.createNewArray(e,t,n),this.setPropertyValueDirectly(e,r)),r}setArrayPropertyValue(e,t){let n=this[e],r=this.arraysInfo[e];!r||this.isTwoValueEquals(n,t)||this.setArray(e,n,t,r.isItemValues,r.onPush)}get isEditingSurveyElement(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement}iteratePropertiesHash(e){var t=[];for(var n in this.propertyHash)t.push(n);t.forEach(t=>e(this.propertyHash,t))}setPropertyValue(e,t){if(!this.isDisposedValue){if(!this.isLoadingFromJson){let n=this.getPropertyByName(e);n&&(t=n.settingValue(this,t))}var n=this.getPropertyValue(e);n&&Array.isArray(n)&&this.arraysInfo&&(!t||Array.isArray(t))?this.isTwoValueEquals(n,t)?t===void 0&&Array.isArray(n)&&(n.isReset=!0):this.setArrayPropertyDirectly(e,t):t!==n&&(this.setPropertyValueDirectly(e,t),this.isTwoValueEquals(n,t)||this.propertyValueChanged(e,n,t))}}setArrayPropertyDirectly(e,t,n=!0){var r=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,r?r.isItemValues:!1,r?n&&r.onPush:null)}setPropertyValueDirectly(e,t,n){this.setPropertyValueCore(this.propertyHash,e,t,n)}clearPropertyValue(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]}onPropertyValueChangedCallback(e,t,n,r,i){}itemValuePropertyChanged(e,t,n,r){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:n,newValue:r,propertyName:e.ownerPropertyName})}executeOnSyncPropertiesChanged(e){this.isFuncExecuting||(this.isFuncExecuting=!0,e(),this.isFuncExecuting=!1)}onPropertyValueChanged(e,t,n,r){}propertyValueChanged(e,t,n,r,i){if(!this.isLoadingFromJson&&(this.updateBindings(e,n),this.onPropertyValueChanged(e,t,n,r),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n,arrayChanges:r,target:i}),this.doPropertyValueChangedCallback(e,t,n,r,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var a=0;a<this.onPropChangeFunctions.length;a++)this.onPropChangeFunctions[a].name==e&&this.onPropChangeFunctions[a].func(n,r)}onBindingChanged(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback(`bindings`,e,t)}get isInternal(){return!1}doPropertyValueChangedCallback(e,t,n,r,i){let a=a=>{a&&a.onPropertyValueChangedCallback&&a.onPropertyValueChangedCallback(e,t,n,i,r)};if(this.isInternal){a(this);return}i||(i=this);var o=this.getSurvey();o||(o=this),a(o),o!==this&&a(this)}addExpressionProperty(e,t,n,r,i){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:n,useStrictDependencies:r,onReset:i}}validateExpression(e,t,n){if(!t)return;let r=this.getPropertyByName(e),i=!!r&&r.type==`condition`,a=this.createExpressionRunner(t).validate(this.getValueGetterContext(),n,i);return a.length?{obj:this,propertyName:e,errors:a}:void 0}validateExpressions(e={functions:!0,variables:!0,semantics:!0}){let t=[];
68J.getPropertiesByObj(this).forEach(n=>{if(n.isExpression){let r=this.validateExpression(n.name,this[n.name],e);r&&t.push(r)}});for(let n of this.getAllChildren()){let r=n.validateExpressions(e);r&&r.length>0&&t.push(...r)}return t}getAllChildren(){return[]}getDataFilteredProperties(){return{}}runConditionCore(e){if(this.expressionInfo)for(var t in this.expressionInfo)this.runConditionItemCore(t,e)}canRunConditions(){return!this.isDesignMode}checkConditionPropertyChanged(e){if(!this.expressionInfo||!this.expressionInfo[e]||!this.canRunConditions())return;let t=this.expressionInfo[e];if(!this.getPropertyValue(e)){t.onReset&&t.onReset(this);return}this.runConditionItemCore(e,this.getDataFilteredProperties())}runConditionItemCore(e,t){let n=this.expressionInfo[e];this.getPropertyValue(e)&&(n.canRun&&!n.canRun(this)||n.useStrictDependencies&&this.canSkipRunningExpression(e)||this.runExpressionByProperty(e,t,e=>{n.onExecute(this,e)}))}canSkipRunningExpression(e){let t=this.getSurvey(),n=t&&typeof t.getValueChangedKeys==`function`?t.getValueChangedKeys():void 0;return n?this.canSkipExpressionByKeys(this.getExpressionByProperty(e),n):!1}canSkipExpressionByKeys(e,t,n){return!t||e&&e.hasFunction(!0)||(n===void 0&&(n=e?e.getVariables():[]),!Array.isArray(n)||n.length===0)?!1:!new Fj().isAnyKeyChanged(t,n)}doBeforeAsynRun(e){this.asynExpressionHash||(this.asynExpressionHash={});let t=!this.isAsyncExpressionRunning;this.asynExpressionHash[e]=!0,t&&this.onAsyncRunningChanged()}doAfterAsynRun(e){this.asynExpressionHash&&(delete this.asynExpressionHash[e],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())}onAsyncRunningChanged(){}get isAsyncExpressionRunning(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0}createExpressionRunner(e){let t=new Wj(e);return t.onBeforeAsyncRun=e=>{this.doBeforeAsynRun(e)},t.onAfterAsyncRun=e=>{this.doAfterAsynRun(e)},t}getExpressionFromSurvey(e){let t=this[e];if(!t)return``;let n=this.getSurvey();return n?n.beforeExpressionRunning(this,e,t):t}runExpressionByProperty(e,t,n,r){if(!this[e])return!1;let i=this.getExpressionFromSurvey(e);if(i){let a=this.getExpressionInfoByProperty(e,i),o=a.runner;if(!a.isRunning&&(!r||r(o))){let r=()=>o.runContext(this.getValueGetterContext(),this.getPropertiesCopy(t,e));if(!o.canRun())return r(),!1;a.isRunning=!0,o.onRunComplete=e=>{n(e),a.isRunning=!1},r()}}return!0}getPropertiesCopy(e,t){let n={};for(let t in e)n[t]=e[t];return t&&(n.propertyName=t),n}getExpressionByProperty(e){let t=this[e];return t?this.getExpressionInfoByProperty(e,t).runner:null}getExpressionInfoByProperty(e,t){this.runExpressionHash||(this.runExpressionHash={});let n=this.runExpressionHash[e];return n?n.runner.expression=t:(n={runner:this.createExpressionRunner(t)},this.runExpressionHash[e]=n),n}registerPropertyChangedHandlers(e,t,n=null){for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],t,n)}unregisterPropertyChangedHandlers(e,t=null){for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)}registerFunctionOnPropertyValueChanged(e,t,n=null){if(this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var i=this.onPropChangeFunctions[r];if(i.name==e&&i.key==n){i.func=t;return}}this.onPropChangeFunctions.push({name:e,func:t,key:n})}registerFunctionOnPropertiesValueChanged(e,t,n=null){this.registerPropertyChangedHandlers(e,t,n)}unRegisterFunctionOnPropertyValueChanged(e,t=null){if(this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==e&&r.key==t)return this.onPropChangeFunctions.splice(n,1)}}unRegisterFunctionOnPropertiesValueChanged(e,t=null){this.unregisterPropertyChangedHandlers(e,t)}addPropertyDependency(t,n){if(!t||!n||!(t instanceof e))return;let r=this.uniqueId+`_`+t.uniqueId+`_`+n;this.expressionDependencies[r]||(t.registerFunctionOnPropertyValueChanged(n,()=>{this.onDependencyValueChanged(t,n)},r),this.expressionDependencies[r]={obj:t,propertyName:n})}onDependencyValueChanged(e,t){this.runConditionCore(this.getDataFilteredProperties()),this.locStrsChanged()}createCustomLocalizableObj(e){return this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)}getLocale(){let e=this.getSurvey();return e?e.getLocale():``}getLocalizationString(e){return hj(e,this.getLocale())}getLocalizationFormatString(e,...t){let n=this.getLocalizationString(e);return!n||!n.format?``:n.format(...t)}createLocString(e){return e.hasTranslation&&!e.translationKey&&(e.translationKey=e.name),this.createLocalizableString(e.name,e.owner,e.supp
68ortsMarkdown,e.translationKey)}createLocalizableString(e,t,n=!1,r=!1){t||(t=this);let i;r&&(i=r===!0?e:r);let a=this.createLocalizableStringCore(t,e,n,i),o=this.getPropertyByName(e);return a.disableLocalization=o&&o.isLocalizable===!1,a}createLocalizableStringCore(e,t,n,r){let i=new yj(e,n,t,r);return t&&(i.onStrChanged=(e,n)=>{this.propertyValueChanged(t,e,n)}),this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[t]=i,i}removeLocalizableString(e){this.localizableStrings&&delete this.localizableStrings[e]}getLocalizableString(e){let t=this.localizableStrings;return t?t[e]:null}getOrCreateLocStr(e,t=!1,n=!1,r){let i=this.getLocalizableString(e);return i||(i=this.createLocalizableString(e,void 0,t,n),r&&r(i)),i}locStrChanged(e){let t=this.getLocalizableString(e);t&&t.strChanged()}isLocStrEmpty(e){let t=this.getLocalizableString(e);return!t||t.isEmpty}getLocalizableStringText(e,t=``){return this.getLocStringText(this.getLocalizableString(e),t)}setLocalizableStringText(e,t){this.setLocStringText(this.getLocalizableString(e),t)}getLocStringText(t,n=``){return t!=null&&t.name&&e.collectDependency(this,t.name),(t==null?void 0:t.text)||n}setLocStringText(e,t){e&&e.text!=t&&(e.text=t)}addUsedLocales(e){if(this.localizableStrings)for(let t in this.localizableStrings){let n=this.getLocalizableString(t);n&&this.addLocStringToUsedLocales(n,e)}if(this.arraysInfo)for(let t in this.arraysInfo){let n=this.getPropertyByName(t);if(!n||!n.isPropertySerializable(this))continue;let r=this.getPropertyValue(t);if(!(!r||!r.length))for(let t=0;t<r.length;t++){let n=r[t];n&&n.addUsedLocales&&n.addUsedLocales(e)}}}searchText(e,t){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(e)&&t.push({element:this,str:n[r]})}getSearchableLocalizedStrings(e){if(this.localizableStrings){let n=[];this.getSearchableLocKeys(n);for(var t=0;t<n.length;t++){let r=this.getLocalizableString(n[t]);r&&e.push(r)}}if(!this.arraysInfo)return;let n=[];this.getSearchableItemValueKeys(n);for(var t=0;t<n.length;t++){var r=this.getPropertyValue(n[t]);if(r)for(var i=0;i<r.length;i++)e.push(r[i].locText)}}getSearchableLocKeys(e){}getSearchableItemValueKeys(e){}addLocStringToUsedLocales(e,t){for(var n=e.getLocales(),r=0;r<n.length;r++)t.indexOf(n[r])<0&&t.push(n[r])}createItemValues(e){var t=this,n=this.createNewArray(e,function(n){if(n.locOwner=t,n.ownerPropertyName=e,typeof n.getSurvey==`function`){let e=n.getSurvey();e&&typeof e.makeReactive==`function`&&e.makeReactive(n)}});return this.arraysInfo[e].isItemValues=!0,n}addOnArrayChangedCallback(e){this.onArrayChanged||(this.onArrayChanged=new vj),this.onArrayChanged.add(e)}removeOnArrayChangedCallback(e){this.onArrayChanged&&(this.onArrayChanged.remove(e),this.onArrayChanged.isEmpty&&(this.onArrayChanged=void 0))}notifyArrayChanged(e,t,n){this.onArrayChanged&&this.onArrayChanged.fire(this,{arrayChanges:n,name:e,newValue:t,valueFromHash:this.propertyHash[e]})}addOnPropertyValueChangedCallback(e){this.onPropertyValueCoreChanged||(this.onPropertyValueCoreChanged=new vj),this.onPropertyValueCoreChanged.add(e)}removeOnPropertyValueChangedCallback(e){this.onPropertyValueCoreChanged&&(this.onPropertyValueCoreChanged.remove(e),this.onPropertyValueCoreChanged.isEmpty&&(this.onPropertyValueCoreChanged=void 0))}get hasActiveUISubscribers(){return!!this.onPropertyValueCoreChanged}createNewArrayCore(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=[],this.setPropertyValueCore(this.propertyHash,e,t)),t}ensureArray(e,t=null,n=null){if(!(this.arraysInfo&&this.arraysInfo[e]))return this.createNewArray(e,t,n)}createNewArray(e,t=null,n=null){var r=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var i=this;return r.push=function(n){var a=Object.getPrototypeOf(r).push.call(r,n);if(!i.isDisposedValue){t&&t(n,r.length-1);let a=new JM(r.length-1,0,[n],[]);i.propertyValueChanged(e,r,r,a),i.notifyArrayChanged(e,r,a)}return a},r.shift=function(){var t=Object.getPrototypeOf(r).shift.call(r);if(!i.isDisposedValue&&t){n&&n(t);let a=new JM(r.length-1,1,[],[]);i.propertyValueChanged(e,r,r,a),i.notifyArrayChanged(e,r,a)}return t},r.unshift=function(n){var a=Object.getPrototypeOf(r).unshift.call(r,n);if(!i.isDisposedValue){t&&t(n,r.length-1);let a=new JM(0,0,[n],[]);i.propertyValueChanged(e,r,r,a),i.notifyArrayChanged(e,r,a)}return a},r.pop=function(){var t=Object.getPrototypeOf(r).pop.call(r);if(!i.isDisposedValue){n&&n(t);let a=new JM(r.length-1,1,[],[]);i.propertyValueChanged(e,r,r,a),i.notifyArrayChanged(e,r,a)}return t},r.splice=function(a,o,...s){a||(a=0),o||(o=0);var c=Object.getPrototypeOf(r).splice.call(r,a,o,...s);if(s||(s=[]),!i.isDisposedValue){if(n&&c)for(var l=0;l<c.length;l++)n(c[l]);if(t)for(var l=0;l<s.length;l++)t(s[l],a+l);
68let u=new JM(a,o,s,c);i.propertyValueChanged(e,r,r,u),i.notifyArrayChanged(e,r,u)}return c},r}getItemValueType(){}setArray(t,n,r,i,a){var o=[].concat(n);if(Object.getPrototypeOf(n).splice.call(n,0,n.length),r){for(var s=0;s<r.length;s++){var c=r[s];i&&e.createItemValue&&(c=e.createItemValue(c,this.getItemValueType())),Object.getPrototypeOf(n).push.call(n,c),a&&a(n[s])}delete n.isReset}else n.isReset=!0;let l=new JM(0,o.length,n,o);this.propertyValueChanged(t,o,n,l),this.notifyArrayChanged(t,n,l)}isTwoValueEquals(e,t,n=!1,r=!1){return K.checkIfValuesEqual(e,t,{ignoreOrder:!1,caseSensitive:!n,trimStrings:r,doNotConvertNumbers:!0})}static copyObject(e,t){for(var n in t){var r=t[n];typeof r==`object`&&(r={},this.copyObject(r,t[n])),e[n]=r}}copyCssClasses(t,n){n&&(typeof n==`string`||n instanceof String?t.root=n:e.copyObject(t,n))}getValueInLowCase(e){return e&&typeof e==`string`?e.toLowerCase():e}getElementsInDesign(e=!1){return[]}get animationAllowed(){return this.getIsAnimationAllowed()}getIsAnimationAllowed(){return G.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRerenderedEvent)}blockAnimations(){this.animationAllowedLock--}releaseAnimations(){this.animationAllowedLock++}enableOnElementRerenderedEvent(){this.onElementRerenderedEventEnabled=!0}disableOnElementRerenderedEvent(){var e;(e=this.onElementRerendered)==null||e.fire(this,{isCancel:!0}),this.onElementRerenderedEventEnabled=!1}get onElementRerendered(){return this.supportOnElementRerenderedEvent&&this.onElementRerenderedEventEnabled?this._onElementRerendered:void 0}afterRerender(){var e;(e=this.onElementRerendered)==null||e.fire(this,{isCancel:!1})}};qM.UniqueId=0,qM.currentDependencis=void 0;var JM=class{constructor(e,t,n,r){this.index=e,this.deleteCount=t,this.itemsToAdd=n,this.deletedItems=r}},YM=class extends vj{fire(e,t,n,r){if(n=n||(()=>{}),!this.callbacks){n();return}let i=[],a=[].concat(this.callbacks);for(var o=0;o<a.length;o++){let n=a[o](e,t);if(n&&n instanceof Promise&&i.push(n),!this.callbacks)return}i.length>0?(r&&r(),Promise.all(i).then(()=>{n()})):n()}},XM=class{constructor(e=null,t=null){this.text=e,this.errorOwner=t,this.visible=!0,this.onUpdateErrorTextCallback=void 0}equals(e){return!e||!e.getErrorType||this.getErrorType()!==e.getErrorType()?!1:this.text===e.text&&this.visible===e.visible}get locText(){return this.locTextValue||(this.locTextValue=new yj(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue}get notificationType(){return this.notificationTypeValue||`error`}set notificationType(e){this.notificationTypeValue=e}get isWarning(){return this.notificationTypeValue===`warning`}get isInfo(){return this.notificationTypeValue===`info`}get isError(){return!this.isInfo&&!this.isWarning}getCssIcon(e){let t=this.getCssError(e);return(this.isWarning?t.warningIcon:this.isInfo?t.infoIcon:t.icon)||t.icon||void 0}getCssError(e){return e=e||{},e.error||{}}getText(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e}getErrorType(){return`base`}getDefaultText(){return``}getLocale(){return this.errorOwner?this.errorOwner.getLocale():``}getLocalizationString(e){return hj(e,this.getLocale())}updateText(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()}},ZM=class extends XM{constructor(e=null,t=null){super(e,t),this.text=e}getErrorType(){return`required`}getDefaultText(){return this.getLocalizationString(`requiredError`)}},QM=class extends XM{constructor(e=null,t=null){super(e,t),this.text=e}getErrorType(){return`requireoneanswer`}getDefaultText(){return this.getLocalizationString(`requiredErrorInPanel`)}},$M=class extends XM{constructor(e=null,t=null){super(e,t),this.text=e}getErrorType(){return`requirenumeric`}getDefaultText(){return this.getLocalizationString(`numericError`)}},eN=class extends XM{constructor(e,t=null){super(null,t),this.maxSize=e,this.locText.text=this.getText()}getErrorType(){return`exceedsize`}getDefaultText(){return this.getLocalizationString(`exceedMaxSize`).format(this.getTextSize())}getTextSize(){var e=(this.getLocalizationString(`fileSizeUnits`)||`Bytes, KB, MB, GB, TB`).split(`, `),t=[0,0,2,3,3];
68if(this.maxSize===0)return`0 Byte`;var n=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/1024**n).toFixed(t[n])+` `+e[n]}},tN=class extends XM{constructor(e,t=null){super(null,t),this.maxFiles=e,this.locText.text=this.getText()}getErrorType(){return`exceedfilescount`}getDefaultText(){return this.getLocalizationString(`exceedMaxFiles`).format(this.maxFiles)}},nN=class extends XM{constructor(e,t,n=null){super(null,n),this.status=e,this.response=t}getErrorType(){return`webrequest`}getDefaultText(){let e=this.getLocalizationString(`urlRequestError`);return e?e.format(this.status,this.response):``}},rN=class extends XM{constructor(e,t=null){super(e,t),this.text=e}getErrorType(){return`webrequestempty`}getDefaultText(){return this.getLocalizationString(`urlGetChoicesError`)}},iN=class extends XM{constructor(e,t=null){super(e,t),this.text=e}getErrorType(){return`otherempty`}getDefaultText(){return this.getLocalizationString(`otherRequiredError`)}},aN=class extends XM{constructor(e,t=null){super(e,t),this.text=e}getErrorType(){return`uploadingfile`}getDefaultText(){return this.getLocalizationString(`uploadingFile`)}},oN=class extends XM{constructor(e,t=null){super(e,t),this.text=e}getErrorType(){return`requiredinallrowserror`}getDefaultText(){return this.getLocalizationString(`requiredInAllRowsError`)}},sN=class extends XM{constructor(e,t=null){super(e,t),this.text=e}getErrorType(){return`eachrowuniqueeerror`}getDefaultText(){return this.getLocalizationString(`eachRowUniqueError`)}},cN=class extends XM{constructor(e,t=null){super(null,t),this.minRowCount=e}getErrorType(){return`minrowcounterror`}getDefaultText(){return this.getLocalizationString(`minRowCountError`).format(this.minRowCount)}},lN=class extends XM{constructor(e,t=null){super(e,t),this.text=e}getErrorType(){return`keyduplicationerror`}getDefaultText(){return this.getLocalizationString(`keyDuplicationError`)}},uN=class extends XM{constructor(e=null,t=null){super(e,t),this.text=e}getErrorType(){return`patternincompleteerror`}getDefaultText(){return this.getLocalizationString(`incompletePatternError`)}},dN=class extends XM{constructor(e,t=null){super(e,t),this.text=e}getErrorType(){return`custom`}};function fN(e){return`loc`+e.charAt(0).toUpperCase()+e.slice(1)}function Y(e={}){return function(t,n){let r=(e,t)=>{if(t&&typeof t==`object`&&t.type===KM.ComputedUpdaterType){qM.startCollectDependencies(()=>e[n]=t.updater(),e,n);let r=t.updater(),i=qM.finishCollectDependencies();return t.setDependencies(i),e.dependencies[n]&&e.dependencies[n].dispose(),e.dependencies[n]=t,r}return t};if(!e||!e.localizable)Object.defineProperty(t,n,{get:function(){let t=null,r,i;e&&(r=e.returnValue,e.calcFunc&&(i=()=>e.calcFunc(this)),typeof e.getDefaultValue==`function`&&(t=e.getDefaultValue(this)),e.defaultValue!==void 0&&(t=e.defaultValue));let a=this.getPropertyValue(n,t,i);return r!==void 0&&a===void 0?r:a},set:function(t){let i=r(this,t),a=this.getPropertyValue(n);if(e){if(e.isLowerCase){if(!i||typeof i!=`string`)return;i=i.toLowerCase()}e.onSetting&&(i=e.onSetting(i,this,a))}i!==a&&(this.setPropertyValue(n,i),e&&e.onSet&&e.onSet(i,this,a))}});else{let i=typeof e.localizable==`object`?e.localizable:null,a=i&&i.name?i.name:fN(n),o=i&&i.defaultStr?i.defaultStr:!1,s=i&&i.markdown===!0;Object.defineProperty(t,n,{get:function(){return this.getLocStringText(this[a])},set:function(t){t=r(this,t),this.setLocStringText(this[a],t),e&&e.onSet&&e.onSet(t,this)}}),Object.defineProperty(t,a,{get:function(){return this.getOrCreateLocStr(n,s,o,e=>{i&&typeof i.onCreate==`function`&&i.onCreate(this,e)})}})}}}function pN(e,t,n){e.ensureArray(n,(n,r)=>{let i=t?t.onPush:null;i&&i(n,r,e)},(n,r)=>{let i=t?t.onRemove:null;i&&i(n,r,e)})}function mN(e){return function(t,n){Object.defineProperty(t,n,{get:function(){return pN(this,e,n),this.getPropertyValue(n)},set:function(t){pN(this,e,n);let r=this.getPropertyValue(n);t!==r&&(r?r.splice(0,r.length,...t||[]):this.setPropertyValue(n,t),e&&e.onSet&&e.onSet(t,this))}})}}var hN=class{constructor(e){this.onCompleted=e,this.asyncElements={},this.isRunningValue=!0}addElement(e){this.asyncElements[e]=!0}removeElement(e){delete this.asyncElements[e],this.tryComplete()}finish(){this.isRunningValue=!1,this.tryComplete()}get isRunning(){return this.isRunningValue||Object.keys(this.asyncElements).length>0}doCompleted(){this.onCompleted&&this.onCompleted()}tryComplete(){this.isRunning||this.doCompleted()}},gN=class{constructor(e,t=null){this.value=e,this.error=t}},_N=class extends qM{get errorOwner(){return this.owner}set errorOwner(e){this.owner=e}get id(){return`svd`+this.uniqueId}get isValidator(){return!0}getSurvey(e=!1){return this.owner&&this.owner.getSurvey?this.owner.getSurvey():null}getOwner(){return this.owner}get text(){return this.getLocStringText(this.locText)}set text(e){this.setLocStringText(this.locText,e)}get locText(){return this.getOrCreateLocStr(`text`,!0)}getErrorText(e){return this.text?this.text:this.getDefaultErrorText(e)}getDefaultErrorText(e){return``}validateOnCallback(e,t,n,r){let i=this.validate(e,n,r);return t&&t(i),i}validate(e,t,n){return null}getLocale(){return this.owner?this.owner.getLocale():``}getMarkdownHtml(e,t,n){return this.owner?this.owner.getMarkdownHtml(e,t,n):void 0}getRenderer(e){return this.owner?this.owner.getRenderer(e):null}getRendererContext(e){return this.owner?this.owner.getRendererContext(e):e}getProcessedText(e){return this.owner?this.owner.getProcessedText(e):e}createCustomError(e){let t=new dN(this.getErrorText(e),this.owner);return t.onUpdateErrorTextCallback=(t=>t.text=this.getErrorText(e)),t}toString(){var e=this.getType().replace(`validator`,``);return this.text&&(e+=`, `+this.text),e}};q([Y()],_N.prototype,`notificationType`,void 0);var vN=class{run(e){let t=e.getValidators(),n=[],r=new hN(()=>{this.onAsyncCompleted&&this.onAsyncCompleted(n)});if(t.length>0){let i=e.getDataFilteredProperties(),a=e.validatedValue,o=e.getValidatorTitle();
68t.forEach(e=>{r.addElement(e.id),e.validateOnCallback(a,t=>{t&&t.error&&(t.error.notificationType=e.notificationType,n.push(t.error)),r.removeElement(e.id)},o,i)})}let i=[].concat(...n);return n.length=0,r.finish(),i}},yN=class extends _N{constructor(e=null,t=null){super(),this.minValue=e,this.maxValue=t}getType(){return`numericvalidator`}validate(e,t,n){if(this.isValueEmpty(e))return null;if(!K.isNumber(e))return new gN(null,new $M(this.text,this.owner));let r=new gN(K.getNumber(e));return this.minValue!==null&&this.minValue>r.value||this.maxValue!==null&&this.maxValue<r.value?(r.error=this.createCustomError(t),r):typeof e==`number`?null:r}getDefaultErrorText(e){var t=e||this.getLocalizationString(`value`);return this.minValue!==null&&this.maxValue!==null?this.getLocalizationFormatString(`numericMinMax`,t,this.minValue,this.maxValue):this.minValue===null?this.getLocalizationFormatString(`numericMax`,t,this.maxValue):this.getLocalizationFormatString(`numericMin`,t,this.minValue)}};q([Y()],yN.prototype,`minValue`,void 0),q([Y()],yN.prototype,`maxValue`,void 0);var bN=class extends _N{constructor(){super()}getType(){return`textvalidator`}validate(e,t,n){return this.isValueEmpty(e)?null:!this.allowDigits&&/\d+$/.test(e)?new gN(null,this.createCustomError(`textNoDigitsAllow`)):this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new gN(null,this.createCustomError(t)):null}getDefaultErrorText(e){return e===`textNoDigitsAllow`?this.getLocalizationString(e):this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString(`textMinMaxLength`,this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString(`textMinLength`,this.minLength):this.getLocalizationFormatString(`textMaxLength`,this.maxLength)}};q([Y()],bN.prototype,`minLength`,void 0),q([Y()],bN.prototype,`maxLength`,void 0),q([Y()],bN.prototype,`allowDigits`,void 0);var xN=class extends _N{constructor(e=null,t=null){super(),this.minCount=e,this.maxCount=t}getType(){return`answercountvalidator`}validate(e,t,n){if(e==null||e.constructor!=Array)return null;var r=e.length;return r==0?null:this.minCount&&r<this.minCount?new gN(null,this.createCustomError(this.getLocalizationFormatString(`minSelectError`,this.minCount))):this.maxCount&&r>this.maxCount?new gN(null,this.createCustomError(this.getLocalizationFormatString(`maxSelectError`,this.maxCount))):null}getDefaultErrorText(e){return e}};q([Y()],xN.prototype,`minCount`,void 0),q([Y()],xN.prototype,`maxCount`,void 0);var SN=class extends _N{constructor(e=null){super(),this.regex=e}getType(){return`regexvalidator`}validate(e,t,n){if(!this.regex||this.isValueEmpty(e))return null;let r=this.createRegExp();if(Array.isArray(e))for(let n=0;n<e.length;n++){let i=this.hasError(r,e[n],t);if(i)return i}return this.hasError(r,e,t)}hasError(e,t,n){return e.test(t)?null:new gN(t,this.createCustomError(n))}get insensitive(){return this.caseInsensitive}set insensitive(e){this.caseInsensitive=e}createRegExp(){let e=this.caseInsensitive?`i`:``;return(this.owner?this.owner.createRegexValidator(this,this.regex,e):null)||new RegExp(this.regex,e)}};q([Y()],SN.prototype,`regex`,void 0),q([Y()],SN.prototype,`caseInsensitive`,void 0);var CN=class extends _N{constructor(){super(),this.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i}getType(){return`emailvalidator`}validate(e,t,n){return!e||this.re.test(e)?null:new gN(e,this.createCustomError(t))}getDefaultErrorText(e){return this.getLocalizationString(`invalidEmail`)}},wN=class extends _N{constructor(e=null){super(),this.conditionRunner=null,this.expression=e}getType(){return`expressionvalidator`}onPropertyValueChanged(e,t,n){if(super.onPropertyValueChanged(e,t,n),e===`expression`){let e=this.owner;e&&e.resetValidationDependencies&&e.resetValidationDependencies()}}validateOnCallback(e,t,n,r){this.conditionRunner&&(this.conditionRunner.onRunComplete=null);let i=null,a=r=>{i=this.generateError(r,e,n),t&&t(i)};if(!this.ensureConditionRunner())return a(!0),null;if(this.conditionRunner.onRunComplete=e=>{a(e)},!this.conditionRunner.canRun())return a(o),i;var o=this.conditionRunner.runContext(this.getValueGetterContext(),this.getPropertiesCopy(r,`expression`));return i||this.generateError(o,e,n)}generateError(e,t,n){return e?null:new gN(t,this.createCustomError(n))}getDefaultErrorText(e){return this.getLocalizationFormatString(`invalidExpression`,this.expression)}ensureConditionRunner(){let e=this.getExpressionFromSurvey(`expression`);return e?(this.conditionRunner=new Jj(e),!0):!1}getValueGetterContext(){let e=this.owner;return e&&e.getValueGetterContext?e.getValueGetterContext():super.getValueGetterContext()}};q([Y()],wN.prototype,`expression`,void 0),J.addClass(`surveyvalidator`,[{name:`text`,serializationProperty:`locText`,visibleIndex:99},{name:`notificationType`,choices:[`error`,`warning`,`info`],default:`error`,visibleIndex:100}]),J.addClass(`numericvalidator`,[`minValue:number`,`maxValue:number`],function(){return new yN},`surveyvalidator`),J.addClass(`textvalidator`,[{name:`minLength:number`,default:0},{name:`maxLength:number`,default:0},{name:`allowDigits:boolean`,default:!0}],function(){return new bN},`surveyvalidator`),J.addClass(`answercountvalidator`,[`minCount:number`,`maxCount:number`],function(){return new xN},`surveyvalidator`),J.addClass(`regexvalidator`,[`regex`,{name:`caseInsensitive:boolean`,alternativeName:`insensitive`}],function(){return new SN},`surveyvalidator`),J.addClass(`emailvalidator`,[],function(){return new CN},`surveyvalidator`),J.addClass(`expressionvalidator`,[`expression:condition`],function(){return new wN},`surveyvalidator`);var X=class{constructor(){this.classes=[]}isEmpty(){return this.toString()===``}append(e,t=!0){return e&&t&&(typeof e==`string`&&(e=e.trim()),this.classes.push(e)),this}toString(){return this.classes.join(` `)}},TN={root:`sv-action-bar`,defaultSizeMode:`sv-action-bar--default-size-mode`,smallSizeMode:`sv-action-bar--small-size-mode`,item:`sv-action-bar-item`,itemWithTitle:``,itemAsIcon:`sv-action-bar-item--icon`,itemActive:`sv
68-action-bar-item--active`,itemPressed:`sv-action-bar-item--pressed`,itemIcon:`sv-action-bar-item__icon`,itemTitle:`sv-action-bar-item__title`,itemTitleWithIcon:`sv-action-bar-item__title--with-icon`},EN;function DN(e){EN=e}var ON=class e extends qM{constructor(){super(...arguments),this.rendredIdValue=e.getNextRendredId()}static getNextRendredId(){return e.renderedId++}get data(){return this._data}set data(e){this._data=e}get id(){return this.getId()}set id(e){this.setId(e)}getId(){return this.idValue}setId(e){this.idValue=e}addVisibilityChangedCallback(e){}removeVisibilityChangedCallback(e){}get renderedId(){return this.rendredIdValue}get owner(){return this.ownerValue}set owner(e){e!==this.owner&&(this.ownerValue=e,this.locStrsChanged())}get visible(){return this.getVisible()}set visible(e){this.setVisible(e)}get enabled(){return this.getEnabled()}set enabled(e){this.setEnabled(e)}get component(){return this.getComponent()}set component(e){this.setComponent(e)}get locTitle(){return this.getLocTitle()}set locTitle(e){this.setLocTitle(e)}get title(){return this.getTitle()}set title(e){this.setTitle(e)}get titles(){return this.locTitle.getJson()}set titles(e){this.locTitle.setJson(e)}set cssClasses(e){this.cssClassesValue=e}get cssClasses(){return this.cssClassesValue||TN}get isVisible(){return this.visible&&this.mode!==`popup`&&this.mode!==`removed`}get disabled(){return this.enabled!==void 0&&!this.enabled}get canShrink(){return!this.disableShrink&&!!this.iconName}get hasTitle(){return(this.mode!=`small`&&(this.showTitle||this.showTitle===void 0)||!this.iconName)&&!!this.title}get hasSubItems(){return!!this.items&&this.items.length>0}getActionBarItemTitleCss(){return new X().append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()}getActionBarItemCss(){let e=this.hasTitle;return new X().append(this.cssClasses.item).append(this.cssClasses.itemWithTitle,e).append(this.cssClasses.itemAsIcon,!e).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()}getActionRootCss(){return new X().append(`sv-action`).append(this.css).append(`sv-action--space`,this.needSpace).append(`sv-action--hidden`,!this.isVisible).toString()}getTooltip(){return this.tooltip||this.title}getIsTrusted(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted}showPopup(){this.popupModel&&this.popupModel.show()}hidePopup(){this.popupModel&&this.popupModel.hide()}clearPopupTimeouts(){this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)}showPopupDelayed(e){this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout(()=>{this.clearPopupTimeouts(),this.showPopup()},e)}hidePopupDelayed(e){var t;(t=this.popupModel)!=null&&t.isVisible?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout(()=>{this.clearPopupTimeouts(),this.hidePopup(),this.isHovered=!1},e)):(this.clearPopupTimeouts(),this.isHovered=!1)}};ON.renderedId=1,q([Y()],ON.prototype,`tooltip`,void 0),q([Y()],ON.prototype,`showTitle`,void 0),q([Y()],ON.prototype,`innerCss`,void 0),q([Y()],ON.prototype,`active`,void 0),q([Y()],ON.prototype,`pressed`,void 0),q([Y()],ON.prototype,`popupModel`,void 0),q([Y()],ON.prototype,`needSeparator`,void 0),q([Y()],ON.prototype,`template`,void 0),q([Y({defaultValue:`large`})],ON.prototype,`mode`,void 0),q([Y()],ON.prototype,`visibleIndex`,void 0),q([Y()],ON.prototype,`disableTabStop`,void 0),q([Y()],ON.prototype,`disableShrink`,void 0),q([Y()],ON.prototype,`disableHide`,void 0),q([Y({defaultValue:!1})],ON.prototype,`needSpace`,void 0),q([Y()],ON.prototype,`ariaChecked`,void 0),q([Y()],ON.prototype,`ariaExpanded`,void 0),q([Y()],ON.prototype,`ariaLabelledBy`,void 0),q([Y({defaultValue:`button`})],ON.prototype,`ariaRole`,void 0),q([Y()],ON.prototype,`iconName`,void 0),q([Y({defaultValue:24})],ON.prototype,`iconSize`,void 0),q([Y()],ON.prototype,`markerIconName`,void 0),q([Y()],ON.prototype,`css`,void 0),q([Y({defaultValue:!1})],ON.prototype,`isPressed`,void 0),q([Y({defaultValue:!1})],ON.prototype,`isHovered`,void 0);var kN=class e extends ON{constructor(t){super(),this.locTitleChanged=()=>{let e=this.locTitle.renderedHtml;this.setPropertyValue(`_title`,e||void 0)},this.needUpdateMaxDimension=!1,this.needUpdateMinDimension=!1;let n=t instanceof e?t.innerItem:t;if(this.innerItem=n,this.locTitle=n?n.locTitle:null,n)for(var r in n)r===`locTitle`||r===`title`&&this.title||(this[r]=n[r]);this.locTitleName&&this.locTitleChanged(),this.locStrChangedInPopupModel()}createLocTitle(){return this.createLocalizableString(`title`,this,
68!0)}setSubItems(e){this.markerIconName=`icon-next_16x16`,this.items=[...e.items],this.popupModel?this.popupModel.contentComponentData.model.setItems(this.items):this.createPopupForSubitems(e),this.component=this.getGroupComponentName()}createPopupForSubitems(e){let t=Object.assign({},e);t.searchEnabled=!1;let n=EN(t,{horizontalPosition:`right`,showPointer:!1,canShrink:!1});n.cssClass=`sv-popup-inner`,this.popupModel=n}getId(){return this.getPropertyValue(`id`)}setId(e){this.setPropertyValue(`id`,e)}getLocTitle(){return this.locTitleValue}setLocTitle(e){!e&&!this.locTitleValue&&(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()}getTitle(){return this._title}setTitle(e){this._title=e}get locTitleName(){return this.locTitle.localizationName}set locTitleName(e){this.locTitle.localizationName=e}locStrsChanged(){super.locStrsChanged(),this.locTooltipChanged(),this.locStrChangedInPopupModel()}doAction(e){let t=e.originalEvent?e.originalEvent:e;return this.action(this,t.isTrusted),t.preventDefault(),t.stopPropagation(),!0}doMouseDown(e){this.isMouseDown=!0}doFocus(e){if(this.onFocus){let t=e.originalEvent?e.originalEvent:e;this.onFocus(this.isMouseDown,t)}this.isMouseDown=!1}locStrChangedInPopupModel(){if(!this.popupModel||!this.popupModel.contentComponentData||!this.popupModel.contentComponentData.model)return;let e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach(e=>{e.locStrsChanged&&e.locStrsChanged()})}locTooltipChanged(){this.locTooltipName&&(this.tooltip=hj(this.locTooltipName,this.locTitle.locale))}getLocale(){return this.owner?this.owner.getLocale():``}getMarkdownHtml(e,t,n){return this.owner?this.owner.getMarkdownHtml(e,t,n):void 0}getProcessedText(e){return this.owner?this.owner.getProcessedText(e):e}getRenderer(e){return this.owner?this.owner.getRenderer(e):null}getRendererContext(e){return this.owner?this.owner.getRendererContext(e):e}setVisible(e){this.visible!==e&&(this._visible=e)}getVisible(){return this._visible}setEnabled(e){this._enabled=e}getEnabled(){return this.enabledIf?this.enabledIf():this._enabled}setComponent(e){this._component=e}getComponent(){return this._component}getGroupComponentName(){return`sv-list-item-group`}initLoadingIndicatorVisibilityObserver(e){typeof IntersectionObserver<`u`&&(this.intersectionVisibilityObserver=new IntersectionObserver(t=>{t.forEach(t=>{let n=t.isIntersecting;e(n)})},{trackVisibility:!0,delay:100}))}dispose(){this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0,this.action=void 0,super.dispose(),this.popupModel&&this.popupModel.dispose(),this.intersectionVisibilityObserver&&(this.intersectionVisibilityObserver.disconnect(),this.intersectionVisibilityObserver=void 0)}updateDimension(e,t,n){let r=e==`small`?`minDimension`:`maxDimension`;if(t){let e=t;e.classList.contains(`sv-action--hidden`)?(e.classList.remove(`sv-action--hidden`),this[r]=n(t),e.classList.add(`sv-action--hidden`)):this[r]=n(t)}}afterRender(){this.afterRenderCallback&&this.afterRenderCallback()}updateMode(e,t){this.updateModeCallback?this.updateModeCallback(e,t):this.afterRenderCallback=()=>{this.updateModeCallback(e,t),this.afterRenderCallback=void 0}}updateDimensions(e,t,n){let r=!n||n==`large`&&this.mode!==`small`?this.mode:n;this.updateMode(r,(r,i)=>{this.updateDimension(r,i,e),n?t():this.updateMode(r===`small`?`large`:`small`,(n,r)=>{this.updateDimension(n,r,e),t()})})}};q([Y({defaultValue:!0})],kN.prototype,`_visible`,void 0),q([Y({onSet:(e,t)=>{t.locTooltipChanged()}})],kN.prototype,`locTooltipName`,void 0),q([Y()],kN.prototype,`_enabled`,void 0),q([Y()],kN.prototype,`action`,void 0),q([Y()],kN.prototype,`onFocus`,void 0),q([Y()],kN.prototype,`_component`,void 0),q([Y()],kN.prototype,`items`,void 0),q([Y({onSet:(e,t)=>{t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],kN.prototype,`_title`,void 0);var AN=class{constructor(e){this.item=e,this.funcKey=`sv-dropdown-action`,this.setupPopupCallbacks()}setupPopupCallbacks(){let e=this.popupModel=this.item.popupModel;
68e&&e.registerPropertyChangedHandlers([`isVisible`],()=>{e.isVisible?this.item.pressed=!0:this.item.pressed=!1},this.funcKey)}removePopupCallbacks(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers([`isVisible`],this.funcKey)}dispose(){this.removePopupCallbacks()}},jN=e=>!!e&&!!(`host`in e&&e.host),MN=e=>{let{root:t}=G.environment;return typeof e==`string`?t.getElementById(e):e};function NN(e){let t=(e==null?void 0:e.getRootNode())||G.environment.root;return t instanceof Document||t instanceof ShadowRoot?t:null}function PN(){let e=nj.getDocument();if(!e)return null;let t=e.activeElement;return t&&t.shadowRoot&&t.shadowRoot.activeElement&&(t=t.shadowRoot.activeElement),t}function FN(e,t=0){let n=NN(e);if(!n||!e.offsetHeight)return!1;let r=jN(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),a=Math.max(r,tj.getInnerHeight()),o=-t,s=a+t,c=i.top,l=i.bottom;return Math.max(o,c)<=Math.min(s,l)}function IN(e){if(!e)return nj.isAvailable()?nj.getDocument().documentElement:void 0;if(e.scrollHeight>e.clientHeight&&(getComputedStyle(e).overflowY===`scroll`||getComputedStyle(e).overflowY===`auto`)||e.scrollWidth>e.clientWidth&&(getComputedStyle(e).overflowX===`scroll`||getComputedStyle(e).overflowX===`auto`))return e;if(!e.parentElement){let t=NN(e);if(t)return jN(t)?t.host:t.documentElement}return IN(e.parentElement)}function LN(e){if(!e)return;let t=IN(e);t&&setTimeout(()=>t.dispatchEvent(new CustomEvent(`scroll`)),10)}function RN(e){return e&&e.replace(/\s*?([\w-]+)\s*?/g,`.$1`)}function zN(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function BN(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function VN(e){let t;for(let n=0;n<e.children.length;n++)!t&&getComputedStyle(e.children[n]).display!==`none`&&(t=e.children[n]);return t}function HN(e){return e&&(e.toLocaleLowerCase().indexOf(`javascript:`)>-1?encodeURIComponent(e):e)}function UN(e){let t=tj.getLocation();!e||!t||(t.href=HN(e))}function WN(e){return e?[`url(`,e,`)`].join(``):``}function GN(e){return typeof e==`string`?/^data:((?:\w+\/(?:(?!;).)+)?)((?:;[^;]+?)*),(.+)$/.test(e):null}function KN(e){e.preventDefault(),e.stopPropagation()}function qN(e,t){let n={};oj(t.list,n),oj(e.list,n),e.list=n}var JN=class{constructor(e,t,n){this.container=e,this.model=t,this.afterInitializeCallback=n,this.resizeObserver=void 0,this.isInitialized=!1,this.isResizeObserverStarted=!1,this.getComputedStyle=e=>nj.getComputedStyle(e),this.isDisposed=!1,typeof ResizeObserver<`u`&&(this.resizeObserver=new ResizeObserver(e=>{tj.requestAnimationFrame(()=>{this.isResizeObserverStarted=!0,this.process()})}),this.resizeObserver.observe(this.container.parentElement))}getDimensions(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}}getAvailableSpace(){let e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return e.boxSizing===`border-box`&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t}getGap(){let e=this.getComputedStyle(this.container);if(e.display==`flex`){let t=parseFloat(e.rowGap);return isNaN(t)?0:t}return 0}calcItemSize(e){return e.offsetWidth||e.getBoundingClientRect().width}updateItemsDimensions(e){if(!this.container)return;let t=this.isInitialized?this.model.renderedActions.filter(e=>e.needUpdateMaxDimension||e.needUpdateMinDimension):this.model.renderedActions,n=t.length;n==0&&e();let r=()=>{--n<=0&&e()};t.forEach(e=>{let t=!this.isInitialized||e.needUpdateMaxDimension,n=!this.isInitialized||e.needUpdateMinDimension?t?void 0:`small`:`large`;e.updateDimensions(e=>this.calcItemSize(e),()=>{e.needUpdateMaxDimension=!1,e.needUpdateMinDimension=!1,r()},n)})}get isContainerVisible(){return!!this.container&&BN(this.container)}shouldProcessResponsiveness(){return this.isContainerVisible&&!this.model.isResponsivenessDisabled&&!this.isDisposed}process(){this.shouldProcessResponsiveness()&&this.updateItemsDimensions(()=>{this.shouldProcessResponsiveness()&&this.model.fit({availableSpace:this.getAvailableSpace(),gap:this.getGap()}),this.isInitialized||(this.isInitialized=!0,this.afterInitializeCallback&&this.afterInitializeCallback())})}update(e){this.isResizeObserverStarted&&(this.model.isResponsivenessDisabled||(e&&(this.isInitialized=!1),this.process()))}dispose(){this.isDisposed=!0,this.resizeObserver&&this.resizeObserver.disconnect(),this.isResizeObserverStarted=!1,this.resizeObserver=void 0,this.container=void 0}};function YN(e){let t=!1,n=!1,r,i=()=>{n=!0,r=void 0};return{run:((...i)=>{n=!1,r=i,t||(t=!0,queueMicrotask(()=>{n||e.apply(this,r),r=void 0,n=!1,t=!1}))}),cancel:i,getLastArguments:()=>r,flushSync:()=>{!n&&t&&(e.apply(this,r),i())}}}var XN=class e extends qM{constructor(){super(...arguments),this.id=e.ContainerID++,this.visibleActions=[],this.sizeMode=`default`,this.raiseUpdateCallback=YN(e=>{this.update(e)}),this.onActionPropertyChangedCallback=this.onActionPropertyChanged.bind(this),this.createActionCallback=null}getMarkdownHtml(e,t,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,t,n):void 0}getRenderer(e){return this.locOwner?this.locOwner.getRenderer(e):null}getRendererContext(e){return this.locOwner?this.locOwner.getRendererContext(e):e}getProcessedText(e){return this.locOwner?this.locOwner.getProcessedText(e):e}getLocale(){return this.locOwner?this.locOwner.getLocale():``}getRenderedActions(){return this.visibleActions}
68locStrsChanged(){super.locStrsChanged(),this.actions.forEach(e=>{e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()})}flushUpdates(){this.raiseUpdateCallback.flushSync()}raiseUpdate(e){let t=this.raiseUpdateCallback.getLastArguments(),n=(t&&t[0])??{};this.raiseUpdateCallback.run(this.mergeUpdateOptions(e,n))}mergeUpdateOptions(e,t){let n=Object.assign({},e);return n.needUpdateActions=!!n.needUpdateActions||!!t.needUpdateActions,n.needUpdateIsEmpty=!!n.needUpdateIsEmpty||!!t.needUpdateIsEmpty,n}update(e){e!=null&&e.needUpdateActions&&this.updateVisibleActions(),e!=null&&e.needUpdateIsEmpty&&this.updateIsEmpty()}updateVisibleActions(){this.visibleActions=this.getVisibleActions()}updateIsEmpty(){this.isEmpty=this.getIsEmpty()}getIsEmpty(){return this.visibleActions.length<=0}getVisibleActions(){return this.actions.filter(e=>e.visible!==!1)}onSet(){this.actions.forEach(e=>{this.patchAction(e)})}onPush(e){this.patchAction(e),this.raiseUpdate({needUpdateActions:!0,needUpdateIsEmpty:!0})}onRemove(e){this.unPatchAction(e),this.raiseUpdate({needUpdateActions:!0,needUpdateIsEmpty:!0})}onActionPropertyChanged(e,t){t.name==`_visible`&&this.raiseUpdate({needUpdateActions:!0,needUpdateIsEmpty:!0})}patchAction(e){this.setActionCssClasses(e),e.owner=this,e.onPropertyChanged.add(this.onActionPropertyChangedCallback)}unPatchAction(e){e.owner=null,e.onPropertyChanged.remove(this.onActionPropertyChangedCallback)}setActionCssClasses(e){e.cssClasses=this.cssClasses}get hasActions(){return(this.actions||[]).length>0}get hasVisibleActions(){return!this.isEmpty}get renderedActions(){return this.getRenderedActions()}getRootStyle(){}getRootCss(){let e=this.sizeMode===`small`?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return new X().append(this.cssClasses.root+(e?` `+e:``)+(this.containerCss?` `+this.containerCss:``)).append(this.cssClasses.root+`--empty`,this.isEmpty).toString()}getDefaultCssClasses(){return TN}getAllActions(){return this.actions}setCssClasses(e,t=!0){this.cssClassesValue={},t&&this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),oj(e,this.cssClasses),this.getAllActions().forEach(e=>{this.setActionCssClasses(e)})}set cssClasses(e){this.setCssClasses(e)}get cssClasses(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue}createAction(e){return e instanceof ON?e:this.createActionCore(this,e)}createActionCore(e,t){return this.createActionCallback?this.createActionCallback(t):new kN(t)}addAction(e,t=!0){let n=this.createAction(e);if(t&&!this.isActionVisible(n))return n;let r=[].concat(this.actions,n);return this.sortItems(r),this.actions=r,n}removeActionById(e){let t=this.getActionIndexById(e);return t<0?!1:(this.actions.splice(t,1),!0)}setItems(e,t=!0){let n=[];e.forEach(e=>{(!t||this.isActionVisible(e))&&n.push(this.createAction(e))}),t&&this.sortItems(n),this.actions=n}sortItems(e){this.hasSetVisibleIndex(e)&&e.sort(this.compareByVisibleIndex)}hasSetVisibleIndex(e){for(let t=0;t<e.length;t++){let n=e[t].visibleIndex;if(n!==void 0&&n>=0)return!0}return!1}compareByVisibleIndex(e,t){return e.visibleIndex-t.visibleIndex}isActionVisible(e){return e.visibleIndex>=0||e.visibleIndex===void 0}popupAfterShowCallback(e){}mouseOverHandler(e){e.isHovered=!0;let t=!1,n=!1;if(this.actions.forEach(r=>{r===e&&e.popupModel&&(t=!0),r.popupModel&&r.popupModel.isVisible&&(n=!0)}),t){let t=n?Math.max(this.subItemsShowDelay,this.subItemsHideDelay):this.subItemsShowDelay;e.showPopupDelayed(t),this.popupAfterShowCallback(e)}}initResponsivityManager(e,t){}resetResponsivityManager(){}getActionById(e){let t=this.getActionIndexById(e);return t>-1?this.actions[t]:null}getActionIndexById(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return t;return-1}dispose(){super.dispose(),this.resetResponsivityManager(),this.actions.forEach(e=>e.dispose()),this.actions.length=0}};XN.ContainerID=1,q([mN({})],XN.prototype,`visibleActions`,void 0),q([mN({onSet:(e,t)=>{t.onSet()},onPush:(e,t,n)=>{n.onPush(e)}
68,onRemove:(e,t,n)=>{n.onRemove(e)}})],XN.prototype,`actions`,void 0),q([Y({})],XN.prototype,`containerCss`,void 0),q([Y({defaultValue:!0})],XN.prototype,`isEmpty`,void 0),q([Y({defaultValue:300})],XN.prototype,`subItemsShowDelay`,void 0),q([Y({defaultValue:300})],XN.prototype,`subItemsHideDelay`,void 0);var ZN=class{static focusElement(e){e&&e.focus()}static visibility(e){var t=nj.getComputedStyle(e);return t.display===`none`||t.visibility===`hidden`?!1:!e.parentElement||this.visibility(e.parentElement)}static getNextElementPreorder(e){let t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)}static getNextElementPostorder(e){let t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)}static hasHorizontalScroller(e){return e?e.scrollWidth>e.offsetWidth:!1}static hasVerticalScroller(e){return e?e.scrollHeight>e.offsetHeight:!1}},QN=!1,$N=null;typeof navigator<`u`&&navigator&&tj.isAvailable()&&($N=navigator.userAgent||navigator.vendor||tj.hasOwn(`opera`)),(function(e){e&&(navigator.platform===`MacIntel`&&navigator.maxTouchPoints>0||navigator.platform===`iPad`||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substring(0,4)))&&(QN=!0)})($N);var eP=QN||!1,tP={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return tj.isAvailable()&&(tj.hasOwn(`ontouchstart`)||navigator.maxTouchPoints>0)},hasMouse:!0},nP=tj.matchMedia;tP.hasMouse=oP(nP);var rP=tP.isTouch,iP=void 0;function aP(e,t,n=600){if(iP!==void 0)return iP;let r=e||tj.getInnerWidth(),i=t||tj.getInnerHeight();return Math.min(r,i)>=n}function oP(e){if(!e||eP)return!1;let t=e(`(pointer:fine)`),n=e(`(any-hover:hover)`);return!!t&&t.matches||!!n&&n.matches}var sP={root:`sv-list__container`,item:`sv-list__item`,searchClearButtonIcon:`sv-list__filter-clear-button`,loadingIndicator:`sv-list__loading-indicator`,itemSelected:`sv-list__item--selected`,itemGroup:`sv-list__item--group`,itemGroupSelected:`sv-list__item--group-selected`,itemWithIcon:`sv-list__item--with-icon`,itemDisabled:`sv-list__item--disabled`,itemFocused:`sv-list__item--focused`,itemHovered:`
68sv-list__item--hovered`,itemTextWrap:`sv-list__item-text--wrap`,itemIcon:`sv-list__item-icon`,itemMarkerIcon:`sv-list-item__marker-icon`,itemSeparator:`sv-list__item-separator`,itemBody:`sv-list__item-body`,itemsContainer:`sv-list`,itemsContainerFiltering:`sv-list--filtering`,filter:`sv-list__filter`,filterIcon:`sv-list__filter-icon`,filterInput:`sv-list__input`,emptyContainer:`sv-list__empty-container`,emptyText:`sv-list__empty-text`},cP=class e extends XN{hasText(e,t){if(!t)return!0;let n=e.title||``;if(this.onTextSearchCallback)return this.onTextSearchCallback(e,t);let r=fj(n,`filter`),i=fj(t,`filter`);return r.indexOf(i)>-1}isItemVisible(e){return e.id===this.loadingIndicator.id||this.disableSearch?e.visible:e.visible&&this.hasText(e,this.filterString)}getRenderedActions(){let e=super.getRenderedActions();if(this.filterString){let t=[];return e.forEach(e=>{t.push(e),e.items&&e.items.forEach(n=>{let r=new kN(n);r.iconName||(r.iconName=e.iconName),t.push(r)})}),t}return e}get visibleItems(){return this.actions.filter(e=>this.isItemVisible(e))}onFilterStringChanged(e){this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.raiseUpdate({needUpdateIsEmpty:!0})}getIsEmpty(){return!this.renderedActions.some(e=>this.isItemVisible(e))}scrollToItem(e,t=0){setTimeout(()=>{if(!this.listContainerHtmlElement)return;let n=this.listContainerHtmlElement.querySelector(RN(e));n&&setTimeout(()=>{n.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`start`})},t)},t)}constructor(e,t,n,r,i){if(super(),this.onSelectionChanged=t,this.allowSelection=n,this.elementId=i,this.onItemClick=e=>{if(this.isItemDisabled(e))return;this.isExpanded=!1,this.allowSelection&&(this.selectedItem=e),this.onSelectionChanged&&this.onSelectionChanged(e);let t=e.action;t&&t(e)},this.onItemHover=e=>{this.mouseOverHandler(e)},this.isItemDisabled=e=>e.enabled!==void 0&&!e.enabled,this.getA11yItemAriaSelected=e=>{if(this.listItemRole==`option`)return this.isItemSelected(e)?`true`:`false`},this.getA11yItemAriaChecked=e=>{if(this.listItemRole==`menuitemradio`)return this.isItemSelected(e)?`true`:`false`},this.isItemSelected=e=>this.areSameItems(this.selectedItem,e),this.isItemFocused=e=>this.areSameItems(this.focusedItem,e),this.getListClass=()=>new X().append(this.cssClasses.itemsContainer).append(this.cssClasses.itemsContainerFiltering,!!this.filterString&&this.visibleActions.length!==this.visibleItems.length).toString(),this.getItemClass=e=>{let t=this.isItemSelected(e);return new X().append(this.cssClasses.item).append(this.cssClasses.itemWithIcon,!!e.iconName).append(this.cssClasses.itemDisabled,this.isItemDisabled(e)).append(this.cssClasses.itemFocused,this.isItemFocused(e)).append(this.cssClasses.itemSelected,!e.hasSubItems&&t).append(this.cssClasses.itemGroup,e.hasSubItems).append(this.cssClasses.itemGroupSelected,e.hasSubItems&&t).append(this.cssClasses.itemHovered,e.isHovered).append(this.cssClasses.itemTextWrap,this.textWrapEnabled).append(e.css).toString()},this.getItemStyle=e=>({"--sjs-list-item-level":(e.level||0)+1}),Object.keys(e).indexOf(`items`)!==-1){let t=e;Object.keys(t).forEach(e=>{switch(e){case`items`:this.setItems(t.items);break;case`onFilterStringChangedCallback`:this.setOnFilterStringChangedCallback(t.onFilterStringChangedCallback);break;case`onTextSearchCallback`:this.setOnTextSearchCallback(t.onTextSearchCallback);break;default:this[e]=t[e]}}),this.updateActionsIds()}else this.setItems(e),this.selectedItem=r}setOnFilterStringChangedCallback(e){this.onFilterStringChangedCallback=e}setOnTextSearchCallback(e){this.onTextSearchCallback=e}setItems(e,t=!0){super.setItems(e,t),this.updateActionsIds(),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)}updateActionsIds(){this.elementId&&this.actions.forEach(e=>{e.elementId=this.elementId+e.id})}setSearchEnabled(e){this.searchEnabled=e,this.showSearchClearButton=e}onSet(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>e.MINELEMENTCOUNT),super.onSet()}getDefaultCssClasses(){return sP}popupAfterShowCallback(e){this.addScrollEventListener(()=>{e.hidePopup()})}onItemLeave(e){e.hidePopupDelayed(this.subItemsHideDelay)}areSameItems(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id}get a11ya11y_input_ariaLabel(){return this.listAriaLabel}get filterStringPlaceholder(){return this.getLocalizationString(`filterStringPlaceholder`)}get emptyMessage(){return this.isAllDataLoaded?this.getLocalizationString(`emptyMessage`):this.getLocalizationString(`loadingData`)}get scrollableContainer(){return this.listContainerHtmlElement.querySelector(RN(this.cssClasse
68s.itemsContainer))}get loadingIndicator(){if(!this.loadingIndicatorValue){let e=new kN({id:`loadingIndicator`,title:this.getLocalizationString(`loadingPage`),action:()=>{},css:this.cssClasses.loadingIndicator});e.initLoadingIndicatorVisibilityObserver(this.loadingIndicatorVisibilityObserver),this.loadingIndicatorValue=e}return this.loadingIndicatorValue}goToItems(e){if(e.key===`ArrowDown`||e.keyCode===40){let t=e.target.parentElement.parentElement.querySelector(`ul`),n=VN(t);t&&n&&(ZN.focusElement(n),e.preventDefault())}}onMouseMove(e){this.resetFocusedItem()}onKeyDown(e){let t=e.target;e.key===`ArrowDown`||e.keyCode===40?(ZN.focusElement(ZN.getNextElementPreorder(t)),e.preventDefault()):(e.key===`ArrowUp`||e.keyCode===38)&&(ZN.focusElement(ZN.getNextElementPostorder(t)),e.preventDefault())}onPointerDown(e,t){}refresh(){this.filterString==``&&this.raiseUpdate({needUpdateIsEmpty:!0}),this.resetFocusedItem()}onClickSearchClearButton(e){e.currentTarget.parentElement.querySelector(`input`).focus(),this.refresh()}resetFocusedItem(){this.focusedItem=void 0}focusFirstVisibleItem(){rP||(this.focusedItem=this.visibleItems[0])}focusLastVisibleItem(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]}initFocusedItem(){this.focusedItem=this.visibleItems.filter(e=>e.visible&&this.isItemSelected(e))[0],this.focusedItem||this.focusFirstVisibleItem()}focusNextVisibleItem(){if(!this.focusedItem)this.initFocusedItem();else{let e=this.visibleItems,t=e[e.indexOf(this.focusedItem)+1];t?this.focusedItem=t:this.focusFirstVisibleItem()}}focusPrevVisibleItem(){if(!this.focusedItem)this.initFocusedItem();else{let e=this.visibleItems,t=e[e.indexOf(this.focusedItem)-1];t?this.focusedItem=t:this.focusLastVisibleItem()}}selectFocusedItem(){this.focusedItem&&this.onItemClick(this.focusedItem)}initListContainerHtmlElement(e){this.listContainerHtmlElement=e}onItemRended(e,t){this.isAllDataLoaded||(e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=ZN.hasVerticalScroller(this.scrollableContainer)),e.id===this.loadingIndicator.id&&t&&this.loadingIndicator.intersectionVisibilityObserver&&this.loadingIndicator.intersectionVisibilityObserver.observe(t))}scrollToFocusedItem(){this.scrollToItem(this.cssClasses.itemFocused)}scrollToSelectedItem(){this.selectedItem&&this.selectedItem.items&&this.selectedItem.items.length>0?this.scrollToItem(this.cssClasses.itemGroupSelected,110):this.scrollToItem(this.cssClasses.itemSelected,110)}setLoadingIndicatorVisibilityObserver(e){e&&(this.loadingIndicatorVisibilityObserver=e)}addScrollEventListener(e){e&&(this.removeScrollEventListener(),this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener(`scroll`,this.scrollHandler)}removeScrollEventListener(){this.scrollHandler&&this.scrollableContainer.removeEventListener(`scroll`,this.scrollHandler)}dispose(){super.dispose(),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0}};cP.INDENT=16,cP.MINELEMENTCOUNT=10,q([Y({defaultValue:!0,onSet:(e,t)=>{t.onSet()}})],cP.prototype,`searchEnabled`,void 0),q([Y({defaultValue:!1})],cP.prototype,`showFilter`,void 0),q([Y({defaultValue:!1})],cP.prototype,`forceShowFilter`,void 0),q([Y({defaultValue:!1})],cP.prototype,`isExpanded`,void 0),q([Y({})],cP.prototype,`selectedItem`,void 0),q([Y()],cP.prototype,`focusedItem`,void 0),q([Y({onSet:(e,t)=>{t.onFilterStringChanged(t.filterString)}})],cP.prototype,`filterString`,void 0),q([Y({defaultValue:!1})],cP.prototype,`hasVerticalScroller`,void 0),q([Y({defaultValue:!0})],cP.prototype,`isAllDataLoaded`,void 0),q([Y({defaultValue:!1})],cP.prototype,`showSearchClearButton`,void 0),q([Y({defaultValue:!0})],cP.prototype,`renderElements`,void 0),q([Y({defaultValue:!1})],cP.prototype,`textWrapEnabled`,void 0),q([Y({defaultValue:`sv-list-item-content`})],cP.prototype,`itemComponent`,void 0),q([Y({defaultValue:`listbox`})],cP.prototype,`listRole`,void 0),q([Y({defaultValue:`option`})],cP.prototype,`listItemRole`,void 0),q([Y()],cP.prototype,`listAriaLabel`,void 0),q([Y({defaultValue:!1})],cP.prototype,`disableSearch`,void 0);var lP=class extends qM{refreshInnerModel(){let e=this.contentComponentData.model;e&&e.refresh&&e.refresh()}constructor(e,t,n){if(super(),this.focusFirstInputSelector=``,this.onCancel=()=>{},this.onApply=()=>!0,this.onHide=()=>{},this.onShow=()=>{},this.onBlur=()=>{},this.onDispose=()=>{},this.onVisibilityChanged=this.addEvent(),this.onFooterActionsCreated=this.addEvent(),this.onRecalculatePosition=this.addEvent(),this.contentComponentName=e,this.contentComponentData=t,n)for(var r in n)this[r]=n[r]}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`isVisible`&&this.onVisibilityChanged.fire(this,{model:this,isVisible:n})}toggleVisibility(){this.isVisible=!this.isVisible}show(){this.isVisible||(this.isVisible=!0)}hide(){this.isVisible&&(this.isVisible=!1)}recalculatePosition(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})}updateFooterActions(e){let t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions}getDisplayMode(){if(this.isModal)return this.displayMode===`popup`?`modal-popup`:`modal-overlay`;if(this.displayMode===`popup`)return`menu-popup`;{let e;switch(this.overlayDisplayMode){case`plain`:e=`menu-popup`;break;case`dropdown-overlay`:e=`menu-overlay`;break;case`tablet-dropdown-overlay`:e=`menu-popup-overlay`;break;case`auto`:e=rP?`menu-popup-overlay`:`menu-popup`}return e}}updateDisplayMode(e){let t,n;
68switch(e){case`dropdown`:t=`popup`,n=`auto`;break;case`popup`:t=`overlay`,n=`tablet-dropdown-overlay`;break;case`overlay`:t=`overlay`,n=`dropdown-overlay`}if(this.displayMode!==t){let t=e===`dropdown`;this.setWidthByTarget=t,this.isFocusedContent=!t}return this.displayMode!==t||this.overlayDisplayMode!==n?(this.displayMode=t,this.overlayDisplayMode=n,!0):!1}onHiding(){this.refreshInnerModel(),this.onHide()}dispose(){super.dispose(),this.onDispose()}};q([Y()],lP.prototype,`contentComponentName`,void 0),q([Y()],lP.prototype,`contentComponentData`,void 0),q([Y({defaultValue:`bottom`})],lP.prototype,`verticalPosition`,void 0),q([Y({defaultValue:`left`})],lP.prototype,`horizontalPosition`,void 0),q([Y({defaultValue:!0})],lP.prototype,`showPointer`,void 0),q([Y({defaultValue:!1})],lP.prototype,`showCloseButton`,void 0),q([Y({defaultValue:!1})],lP.prototype,`isModal`,void 0),q([Y({defaultValue:!0})],lP.prototype,`canShrink`,void 0),q([Y({defaultValue:!0})],lP.prototype,`isFocusedContent`,void 0),q([Y({defaultValue:!0})],lP.prototype,`isFocusedContainer`,void 0),q([Y({defaultValue:``})],lP.prototype,`cssClass`,void 0),q([Y({defaultValue:``})],lP.prototype,`title`,void 0),q([Y({defaultValue:`auto`})],lP.prototype,`overlayDisplayMode`,void 0),q([Y({defaultValue:`popup`})],lP.prototype,`displayMode`,void 0),q([Y({defaultValue:`flex`})],lP.prototype,`positionMode`,void 0),q([Y({defaultValue:!1})],lP.prototype,`isVisible`,void 0);function uP(e,t,n){var r;let i=t.onSelectionChanged;t.onSelectionChanged=(e,...t)=>{o.hasTitle&&(o.title=e.title),i&&i(e,t)};let a=dP(t,n);a.getTargetCallback=fP;let o=new kN(Object.assign({},e,{component:`sv-action-bar-item-dropdown`,popupModel:a,action:(t,n)=>{e.action&&e.action(),a.isFocusedContent=a.isFocusedContent||!n,a.show()}}));return o.data=(r=a.contentComponentData)==null?void 0:r.model,o}function dP(e,t){e.listRole||(e.listRole=`menu`),e.listItemRole||(e.listItemRole=e.allowSelection?`menuitemradio`:`menuitem`);let n=new cP(e);n.onSelectionChanged=t=>{e.onSelectionChanged&&e.onSelectionChanged(t),i.hide()};let r=t||{};r.onDispose=()=>{n.dispose()};let i=new lP(`sv-list`,{model:n},r);return i.isFocusedContent=n.showFilter,i.onShow=()=>{r.onShow&&r.onShow(),n.scrollToSelectedItem()},i.onHide=()=>{r.onHide&&r.onHide(),n.filterString=``},i}function fP(e){return e==null?void 0:e.previousElementSibling}DN(dP);var pP;(function(e){e[e.None=0]=`None`,e[e.Light=1]=`Light`,e[e.Hard=3]=`Hard`})(pP||(pP={}));var mP=class extends XN{hideItemsGreaterN(e){let t=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-t.length));let n=[];t.forEach(t=>{e<=0&&(t.mode=`popup`,n.push(t.innerItem)),e--}),this.hiddenItemsListModel.setItems(n)}getActionsToHide(){return this.visibleActions.filter(e=>!e.disableHide)}updateItemMode(e,t){let n=this.visibleActions;for(let r=n.length-1;r>=0;r--)t>e&&!n[r].disableShrink?(t-=n[r].maxDimension-n[r].minDimension,n[r].mode=`small`):n[r].mode=`large`}constructor(){super(),this.minVisibleItemsCount=0,this.isResponsivenessDisabled=!1,this.isInitialized=!1,this.dotsItem=uP({id:`dotsItem-id`+this.id++,css:`sv-dots`,innerCss:`sv-dots__item`,iconName:`icon-more`,visible:!1,tooltip:hj(`more`)},{items:[],allowSelection:!1}),this.hiddenItemsListModel.createActionCallback=e=>this.createActionCore(this.hiddenItemsListModel,e)}get hiddenItemsListModel(){return this.dotsItem.data}onSet(){super.onSet(),this.raiseUpdate({updateResponsivenessMode:pP.Hard})}onPush(e){super.onPush(e),this.raiseUpdate({updateResponsivenessMode:pP.Hard})}onRemove(e){super.onRemove(e),this.raiseUpdate({updateResponsivenessMode:pP.Hard})}onActionPropertyChanged(e,t){super.onActionPropertyChanged(e,t),(t.name==`_visible`||t.name==`_title`)&&(e.needUpdateMaxDimension=e.visible,e.needUpdateMinDimension=e.visible,this.raiseUpdate({updateResponsivenessMode:pP.Light})),t.name==`disableHide`&&t.newValue&&e.mode==`popup`&&this.raiseUpdate({updateResponsivenessMode:pP.Light})}getRenderedActions(){let e=super.getRenderedActions();return e.length==0||e.length===1&&e[0].iconName?e:e.concat([this.dotsItem])}getAllActions(){return this.actions.concat(this.dotsItem)}getActionMinDimension(e){return e.disableShrink?e.maxDimension:e.minDimension}getVisibleItemsCount(e){let{availableSpace:t,gap:n}=e;t-=this.dotsItem.minDimension+n;let r=0;this.visibleActions[0].disableHide?t+=n:r-=n,this.visibleActions.filter(e=>
68e.disableHide).forEach(e=>t-=this.getActionMinDimension(e)+n);let i=this.getActionsToHide();if(i.length===1&&i[0].iconName)return 1;for(let e=0;e<i.length;e++)if(r+=this.getActionMinDimension(i[e])+n,r>t)return e}fit(e){if(e.availableSpace<=0)return;e.gap=e.gap??0;let{availableSpace:t,gap:n}=e;this.dotsItem.visible=!1;let r=this.visibleActions,i=-1*e.gap,a=-1*e.gap;r.forEach(e=>{i+=this.getActionMinDimension(e)+n,a+=e.maxDimension+n}),t>=a?this.setActionsMode(`large`):t<i?(this.setActionsMode(`small`),this.hideItemsGreaterN(this.getVisibleItemsCount(e)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e.availableSpace,a)}createResponsivityManager(e){return new JN(e,this)}mergeUpdateOptions(e,t){let n=super.mergeUpdateOptions(e,t);return n.updateResponsivenessMode|=t.updateResponsivenessMode,n}raiseUpdate(e){super.raiseUpdate(e)}update(e){var t;super.update(e),e.updateResponsivenessMode&&((t=this.responsivityManager)==null||t.update(e.updateResponsivenessMode==pP.Hard))}initResponsivityManager(e){if(this.responsivityManager){if(this.responsivityManager.container==e)return;this.responsivityManager.dispose()}this.isInitialized=!1,this.responsivityManager=this.createResponsivityManager(e),this.responsivityManager.afterInitializeCallback=()=>{this.isInitialized=!0}}resetResponsivityManager(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)}getRootStyle(){if(!this.isInitialized&&!this.isResponsivenessDisabled)return{opacity:0}
68}setActionsMode(e){this.actions.forEach(t=>{t.mode=e==`small`&&t.disableShrink?`large`:e})}dispose(){super.dispose(),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()}};q([Y()],mP.prototype,`isInitialized`,void 0);var hP=class{constructor(){this.cancelQueue=[]}getMsFromRule(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}reflow(e){return e.offsetHeight}getAnimationsCount(e){let t=``;return getComputedStyle&&(t=getComputedStyle(e).animationName),t&&t!=`none`?t.split(`, `).length:0}getAnimationDuration(e){let t=getComputedStyle(e),n=t.animationDelay.split(`, `),r=t.animationDuration.split(`, `),i=0;for(let e=0;e<Math.max(r.length,n.length);e++)i=Math.max(i,this.getMsFromRule(r[e%r.length])+this.getMsFromRule(n[e%n.length]));return i}addCancelCallback(e){this.cancelQueue.push(e)}removeCancelCallback(e){this.cancelQueue.indexOf(e)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(e),1)}onAnimationEnd(e,t,n){let r,i=this.getAnimationsCount(e),a=(n=!0)=>{t(n),clearTimeout(r),this.removeCancelCallback(a),e.removeEventListener(`animationend`,o)},o=e=>{e.target==e.currentTarget&&--i<=0&&a(!1)};i>0?(e.addEventListener(`animationend`,o),this.addCancelCallback(a),r=setTimeout(()=>{a(!1)},this.getAnimationDuration(e)+10)):t(!0)}afterAnimationRun(e,t){e&&t&&t.onAfterRunAnimation&&t.onAfterRunAnimation(e)}beforeAnimationRun(e,t){e&&t&&t.onBeforeRunAnimation&&t.onBeforeRunAnimation(e)}getCssClasses(e){return e.cssClass.replace(/\s+$/,``).split(/\s+/)}runAnimation(e,t,n){e&&t!=null&&t.cssClass?(this.reflow(e),this.getCssClasses(t).forEach(t=>{e.classList.add(t)}),this.onAnimationEnd(e,n,t)):n(!0)}clearHtmlElement(e,t){e&&t.cssClass&&this.getCssClasses(t).forEach(t=>{e.classList.remove(t)}),this.afterAnimationRun(e,t)}onNextRender(e,t=!1){if(!t&&tj.isAvailable()){let t,n=()=>{e(!0),cancelAnimationFrame(t)};t=tj.requestAnimationFrame(()=>{t=tj.requestAnimationFrame(()=>{e(!1),this.removeCancelCallback(n)})}),this.addCancelCallback(n)}else e(!0)}cancel(){[].concat(this.cancelQueue).forEach(e=>e()),this.cancelQueue=[]}},gP=class extends hP{onEnter(e){let t=e.getAnimatedElement(),n=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(t,n),this.runAnimation(t,n,()=>{this.clearHtmlElement(t,n)})}onLeave(e,t){let n=e.getAnimatedElement(),r=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(n,r),this.runAnimation(n,r,e=>{t(),this.onNextRender(()=>{this.clearHtmlElement(n,r)},e)})}},_P=class extends hP{runGroupAnimation(e,t,n,r,i){let a={isAddingRunning:t.length>0,isDeletingRunning:n.length>0,isReorderingRunning:r.length>0},o=t.map(t=>e.getAnimatedElement(t)),s=t.map(t=>e.getEnterOptions?e.getEnterOptions(t,a):{}),c=n.map(t=>e.getAnimatedElement(t)),l=n.map(t=>e.getLeaveOptions?e.getLeaveOptions(t,a):{}),u=r.map(t=>e.getAnimatedElement(t.item)),d=r.map(t=>e.getReorderOptions?e.getReorderOptions(t.item,t.movedForward,a):{});t.forEach((e,t)=>{this.beforeAnimationRun(o[t],s[t])}),n.forEach((e,t)=>{this.beforeAnimationRun(c[t],l[t])}),r.forEach((e,t)=>{this.beforeAnimationRun(u[t],d[t])});let f=t.length+n.length+u.length,p=e=>{--f<=0&&(i&&i(),this.onNextRender(()=>{t.forEach((e,t)=>{this.clearHtmlElement(o[t],s[t])}),n.forEach((e,t)=>{this.clearHtmlElement(c[t],l[t])}),r.forEach((e,t)=>{this.clearHtmlElement(u[t],d[t])})},e))};t.forEach((e,t)=>{this.runAnimation(o[t],s[t],p)}),n.forEach((e,t)=>{this.runAnimation(c[t],l[t],p)}),r.forEach((e,t)=>{this.runAnimation(u[t],d[t],p)})}},vP=class{constructor(e,t,n){this.animationOptions=e,this.update=t,this.getCurrentValue=n,this._debouncedSync=YN(e=>{this.cancelAnimations();try{this._sync(e)}catch{this.update(e)}})}onNextRender(e,t){let n=this.animationOptions.getRerenderEvent();if(n){let r=()=>{n.remove(i),this.cancelCallback=void 0},i=(n,i)=>{i.isCancel?t&&t():e(),r()};this.cancelCallback=()=>{t&&t(),r()},n.add(i)}else if(tj.isAvailable()){let n=tj.requestAnimationFrame(()=>{e(),this.cancelCallback=void 0});this.cancelCallback=()=>{t&&t(),cancelAnimationFrame(n),this.cancelCallback=void 0}}else throw Error(`Can't get next render`)}sync(e){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(e):(this.cancel(),this.update(e))}cancel(){this._debouncedSync.cancel(),this.cancelAnimations()}cancelAnimations(){this.cancelCallback&&this.cancelCallback(),this.animation.cancel()}},yP=class extends vP{constructor(){super(...arguments),this.animation=new gP}_sync(e){e===this.getCurrentValue()?this.update(e):e?(this.onNextRender(()=>{this.animation.onEnter(this.animationOptions)}),this.update(e)):this.animation.onLeave(this.animationOptions,()=>{this.update(e)})}},bP=class extends vP{constructor(){super(...arguments),this.animation=new _P}_sync(e){e=[].concat(e);let t=[].concat(this.getCurrentValue()),n=this.animationOptions.allowSyncRemovalAddition??!0,r=sj(t,e,this.animationOptions.getKey??(e=>e));!n&&(r.reorderedItems.length>0||r.addedItems.length>0)&&(r.deletedItems=[],r.mergedItems=e),this.animationOptions.onCompareArrays&&this.animationOptions.onCompareArrays(r);let{addedItems:i,reorderedItems:a,deletedItems:o,mergedItems:s}=r,c=()=>{this.animation.runGroupAnimation(this.animationOptions,i,o,a,()=>{o.length>0&&this.update(e)})};[i,o,a].some(e=>e.length>0)?o.length<=0||a.length>0||i.length>0?(this.onNextRender(c,()=>{this.update(e)}),this.update(s)):c():this.update(e)}},xP=class extends vP{constructor(e,t,n,r){super(e,t,n),this.mergeValues=r,this.animation=new _P}_sync(e){let t=[].concat(this.getCurrentValue());if(t[0]!==e[0]){let n=this.mergeValues?this.mergeValues(e,t):[].concat(t,e);this.onNextRender(()=>{this.animation.runGroupAnimation(this.animationOptions,e,t,[],()=>{this.update(e)})},()=>this.update(e)),this.update(n,!0)}else this.update(e)}};function SP(e){if(nj.isAvailable()){let{paddingTop:t,paddingBottom:n,borderTopWidth:r,borderBottomWidth:i,marginTop:a,marginBottom:o,boxSizing:s}=nj.getComputedStyle(e),c=e.offsetHeight+`px`;if(s==`content-box`){let a=e.offsetHeight;
68[i,r,n,t].forEach(e=>{a-=parseFloat(e)}),c=a+`px`}return{paddingTop:t,paddingBottom:n,borderTopWidth:r,borderBottomWidth:i,marginTop:a,marginBottom:o,heightFrom:`0px`,heightTo:c}}}function CP(e,t,n=`--animation-`){e.__sv_created_properties=e.__sv_created_properties??[],Object.keys(t).forEach(r=>{let i=`${n}${r.split(/\.?(?=[A-Z])/).join(`-`).toLowerCase()}`;e.style.setProperty(i,t[r]),e.__sv_created_properties.push(i)})}function wP(e){CP(e,SP(e))}function TP(e){Array.isArray(e.__sv_created_properties)&&(e.__sv_created_properties.forEach(t=>{e.style.removeProperty(t)}),delete e.__sv_created_properties)}var EP=class extends qM{constructor(){super(),this.createLocTitleProperty()}createLocTitleProperty(){return this.createLocalizableString(`title`,this,!0)}getAllowLineBreaks(e){var t;return((t=J.findProperty(this.getType(),e))==null?void 0:t.type)===`text`}get title(){return this.getLocalizableStringText(`title`,this.getDefaultTitleValue())}set title(e){this.setTitleValue(e)}get locTitle(){return this.getLocalizableString(`title`)}get locRenderedTitle(){return this.locTitle}getDefaultTitleValue(){}setTitleValue(e){this.setLocalizableStringText(`title`,e)}get hasDescription(){return this.getPropertyValue(`hasDescription`,void 0,()=>this.calcDescriptionVisibility())}set hasDescription(e){this.setPropertyValue(`hasDescription`,e)}calcDescriptionVisibility(){let e=this.description,t=!1;if(this.isDesignMode){let e=J.findProperty(this.getType(),`description`);t=!!(e!=null&&e.placeholder)}let n=!!e||t&&this.isDesignMode;if(this.isDesignMode){let e=this.getSurvey();e&&e.beforeShowInplaceDescriptionEditorCallback&&(n=e.beforeShowInplaceDescriptionEditorCallback(this,n))}return n}resetDescriptionVisibility(){this.resetPropertyValue(`hasDescription`)}updateDescriptionVisibility(){this.getPropertyValueWithoutDefault(`hasDescription`)!==void 0&&this.setPropertyValue(`hasDescription`,this.calcDescriptionVisibility())}propertyValueChanged(e,t,n,r,i){super.propertyValueChanged(e,t,n,r,i),(e===`description`||e===`title`&&this.isDesignMode)&&this.updateDescriptionVisibility()}get locDescription(){return this.getLocalizableString(`description`)}get titleTagName(){let e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e}getDefaultTitleTagName(){return G.titleTags[this.getType()]}get hasTitle(){return this.title.length>0}get hasTitleActions(){return!1}get hasTitleEvents(){return this.hasTitleActions}getTitleToolbar(){return null}getTitleOwner(){}get isTitleOwner(){return!!this.getTitleOwner()}get isTitleRenderedAsString(){return this.getIsTitleRenderedAsString()}toggleState(){}get cssClasses(){return{}}get cssTitle(){return``}get ariaTitleId(){}get ariaDescriptionId(){}get titleTabIndex(){}get titleAriaExpanded(){}get titleAriaRole(){}get ariaLabel(){return this.locTitle.renderedHtml}get titleAriaLabel(){return this.ariaLabel}getIsTitleRenderedAsString(){return!this.isTitleOwner}};q([Y({localizable:{markdown:!0}})],EP.prototype,`description`,void 0);var DP=class e extends EP{static getProgressInfoByElements(e,t){let n=qM.createProgressInfo();for(let t=0;t<e.length;t++){if(!e[t].isVisible)continue;let r=e[t].getProgressInfo();n.questionCount+=r.questionCount,n.answeredQuestionCount+=r.answeredQuestionCount,n.requiredQuestionCount+=r.requiredQuestionCount,n.requiredAnsweredQuestionCount+=r.requiredAnsweredQuestionCount}return t&&n.questionCount>0&&(n.requiredQuestionCount==0&&(n.requiredQuestionCount=1),n.answeredQuestionCount>0&&(n.requiredAnsweredQuestionCount=1)),n}static IsNeedScrollIntoView(e,t,n){let r=n?-1:e.getBoundingClientRect().top,i=r<0,a=-1;if(!i&&t&&(a=e.getBoundingClientRect().left,i=a<0),!i&&tj.isAvailable()){let e=tj.getInnerHeight();if(i=e>0&&e<r,!i&&t){let e=tj.getInnerWidth();i=e>0&&e<a}}return i}static ScrollIntoView(e,t,n){if(e.scrollIntoView(t),typeof n==`function`){let t=null,r=0,i=()=>{let a=e.getBoundingClientRect().top;if(a===t){if(r++>2){n();return}}else t=a,r=0;requestAnimationFrame(i)};tj.requestAnimationFrame(i)}}static ScrollElementToTop(t,n,r,i){return e.ScrollElementToViewCore(t,!1,n,r,i)}static ScrollElementToViewCore(t,n,r,i,a){if(!t||!t.scrollIntoView)return a&&a(),!1;let o=e.IsNeedScrollIntoView(t,n,r);return o?e.ScrollIntoView(t,i,a):a&&a(),o}
68static GetFirstNonTextElement(e,t=!1){if(!e||!e.length||e.length==0)return null;if(t){let t=e[0];t.nodeName===`#text`&&(t.data=``),t=e[e.length-1],t.nodeName===`#text`&&(t.data=``)}for(let t=0;t<e.length;t++)if(e[t].nodeName!=`#text`&&e[t].nodeName!=`#comment`)return e[t];return null}static FocusElement(t,n,r){if(!t||!nj.isAvailable())return!1;let i=!n&&e.focusElementCore(t,r);return i||setTimeout(()=>{e.focusElementCore(t,r)},n?100:10),i}static focusElementCore(t,n){let{root:r}=G.environment;if(!r&&!n)return!1;let i=n?n.querySelector(`#${CSS.escape(t)}`):r.getElementById(t);return i&&!i.disabled&&i.style.display!==`none`&&i.offsetParent!==null?(e.ScrollElementToViewCore(i,!0,!1),i.focus(),!0):!1}get effectiveColSpan(){let e=this.getPropertyValueWithoutDefault(`effectiveColSpan`);return e===void 0?(this.setRootStyle(),this.getPropertyValue(`effectiveColSpan`)):e}constructor(e){super(),this.selectedElementInDesignValue=this,this.parentQuestionValue=null,this.isContentElement=!1,this.isEditableTemplateElement=!1,this.isInteractiveDesignElement=!0,this._renderedIsExpanded=!0,this._isAnimatingCollapseExpand=!1,this.animationCollapsed=new yP(this.getExpandCollapseAnimationOptions(),e=>{this._renderedIsExpanded=e,this.animationAllowed&&(e?this.isAnimatingCollapseExpand=!0:this.updateElementCss(!1))},()=>this.renderedIsExpanded),this.onAfterRenderElement=this.addEvent(),this.setPropertyValueDirectly(`name`,this.getValidName(e))}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),[`minWidth`,`maxWidth`,`renderWidth`,`allowRootStyle`,`parent`].indexOf(e)>-1&&this.updateRootStyle(),e===`state`&&(this.updateElementCss(!1),this.notifyStateChanged(t),this.stateChangedCallback&&this.stateChangedCallback()),e===`isReadOnly`&&this.onReadOnlyChanged(),e===`errors`&&this.updateVisibleErrors(),e===`isSingleInRow`&&this.updateElementCss(!1),e===`effectiveColSpan`&&(this.colSpan=n)}isPropertyStoredInHash(e){return e!==`bindings`}getSkeletonComponentNameCore(){return this.survey?this.survey.getSkeletonComponentName(this):`sv-skeleton`}canUpdateValueOnVisibleChanged(){return!this.isLoadingFromJson&&!!this.survey&&!this.survey.isSettingData()}get parentQuestion(){return this.parentQuestionValue}setParentQuestion(e){this.parentQuestionValue=e,this.onParentQuestionChanged()}onParentQuestionChanged(){}getPanelInDesignMode(){return null}updateElementVisibility(){this.setPropertyValue(`isVisible`,this.isVisible)}get skeletonComponentName(){return this.getSkeletonComponentNameCore()}get state(){return this.getPropertyValue(`state`)}set state(e){this.setPropertyValue(`state`,e),this.renderedIsExpanded=!this.isCollapsed}notifyStateChanged(e){}get isCollapsed(){return this.state===`collapsed`&&!this.isDesignMode&&!this.isSingleInputMode}get isSingleInputMode(){var e;return(e=this.singleInput)==null?void 0:e.isSingleVisibleInput}get isExpanded(){return this.state===`expanded`&&!this.isSingleInputMode}collapse(){this.isDesignMode||(this.state=`collapsed`)}expand(){this.state=`expanded`}toggleState(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)}get hasStateButton(){return this.isExpanded||this.isCollapsed}get uiState(){return this.getUIState()}set uiState(e){this.setUIState(e)}getUIState(){if(this.state!=="default")return{collapsed:this.state===`collapsed`}}setUIState(e){e&&e.collapsed!==void 0&&(this.state=e.collapsed?`collapsed`:`expanded`)}get shortcutText(){return this.title||this.name}getTitleToolbar(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.locOwner=this,this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||`sv-action-title-bar`,this.titleToolbarValue.setItems(this.getTitleActions()),this.titleToolbarValue.flushUpdates()),this.titleToolbarValue}createActionContainer(e){let t=e?new mP:new XN;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t}get titleActions(){return this.getArrayPropertyValue(`titleActions`)}getTitleActions(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions}getDefaultTitleActions(){return[]}updateTitleActions(){let e=this.getDefaultTitleActions();
68this.survey&&(e=this.titleSettings.getUpdatedElementTitleActions(this,e)),this.setArrayPropertyValue(`titleActions`,e)}locStrsChanged(){super.locStrsChanged(),this.titleToolbarValue&&this.titleToolbarValue.locStrsChanged()}get hasTitleActions(){return this.getTitleActions().length>0}get hasTitleEvents(){return this.state!==void 0&&this.state!=="default"}get titleTabIndex(){return!this.isPage&&this.state!=="default"?0:void 0}get titleAriaExpanded(){if(!(this.isPage||this.state==="default"))return this.state===`expanded`?`true`:`false`}get titleAriaRole(){if(!(this.isPage||this.state==="default"))return`button`}setSurveyImpl(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.createTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null,this.textProcessorValue=null),this.survey&&(this.resetDescriptionVisibility(),this.clearCssClasses()),this.blockAnimations(),this.renderedIsExpanded=!this.isCollapsed,this.releaseAnimations()}getValueGetterContext(){let e=this.data;return e?e.getValueGetterContext():super.getValueGetterContext()}canSkipExpressionByKeys(e,t,n){if(!t)return!1;let r=this.data;if(r&&typeof r.getValueGetterContext==`function`){let i=r.getValueGetterContext();if(typeof(i==null?void 0:i.getContextKeys)==`function`)return super.canSkipExpressionByKeys(e,Object.assign({},t,i.getContextKeys(t)),n)}return super.canSkipExpressionByKeys(e,t,n)}createTextProcessor(){return this.surveyImplValue.getTextProcessor()}canRunConditions(){return super.canRunConditions()&&!!this.data}getDataFilteredProperties(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e}get surveyImpl(){return this.surveyImplValue}__setData(e){this.surveyDataValue=e}get data(){return this.surveyDataValue}get survey(){return this.getSurvey()}get titleSettings(){return this.survey}get lifecycleCallbacks(){return this.survey}get cssCallbacks(){return this.survey}get singleInput(){return this.survey}getSurvey(e=!1){return this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue}setSurveyCore(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()}get skeletonHeight(){let e;return this.survey&&this.survey.skeletonHeight&&(e=this.survey.skeletonHeight+`px`),e}get isInternal(){return this.isContentElement}get areInvisibleElementsShowing(){let e=this.parentQuestion;return e&&e.areInvisibleElementsShowing===!1?!1:!!this.survey&&this.survey.areInvisibleElementsShowing&&(!this.isDesignMode||!this.isContentElement)}get isVisible(){return!0}get isReadOnly(){return this.readOnly}get readOnly(){return this.getPropertyValue(`readOnly`)}set readOnly(e){this.readOnly!=e&&(this.setPropertyValue(`readOnly`,e),this.isLoadingFromJson||this.setPropertyValue(`isReadOnly`,this.isReadOnly))}onReadOnlyChanged(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()}get css(){return this.survey?this.survey.getCss():{}}get cssClassesValue(){return this.getPropertyValue(`cssClassesValue`,void 0,()=>this.createCssClassesValue())}createCssClassesValue(){let e=this.isCalculatingCssClasses;this.isCalculatingCssClasses=!0;let t=this.calcCssClasses(this.css);return e||this.onCalcCssClasses(t),this.updateElementCssCore(t),this.isCalculatingCssClasses=!1,t}onCalcCssClasses(e){}get cssClasses(){return!this.survey||this.isDisposed?this.calcCssClasses(this.css):this.cssClassesValue}get cssTitleNumber(){let e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0}get cssRequiredMark(){let e=this.cssClasses;return e.requiredMark||e.panel&&e.panel.requiredMark}getCssTitleExpandableSvg(){return this.state==="default"||this.isSingleInputMode?null:this.cssClasses.titleExpandableSvg}calcCssClasses(e){}updateElementCssCore(e){}get cssError(){return``}updateElementCss(e){this.clearCssClasses()}clearCssClasses(){this.resetPropertyValue(`cssClassesValue`)}getIsLoadingFromJson(){return super.getIsLoadingFromJson()?!0:this.surveyValue?this.surveyValue.isLoadingFromJson:!1}get name(){return this.getPropertyValue(`name`,``)}set name(e){var t=this.name;this.setPropertyValue(`name`,this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)}getValidName(e){if(e){e=e.trim();let t=G.itemValueSeparator;t&&e.indexOf(t)>-1&&(e=e.replace(t,``))}return e}onNameChanged(e){}updateBindingValue(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)}get errors(){return this.getArrayPropertyValue(`errors`)}set errors(e){this.setArrayPropertyValue(`errors`,e)}get renderedErrors(){return this.getArrayPropertyValue(`renderedErrors`)}set renderedErrors(e){this.setArrayPropertyValue(`renderedErrors`,e)}calcRenderedErrors(){let e=this.currentNotificationType;return this.errors.filter((t=>t.visible&&t.notificationType===e))}get currentNotificationType(){return this.getPropertyValue(`currentNotificationType`,void 0,()=>this.calcCurrentNotificationType())}calcCurrentNotificationType(){let e=``,t=[`info`,`warning`,`error`];for(let n=0;n<this.errors.length;n++){let r=this.errors[n];if(!r.visible)continue;let i=r.notificationType;if(!e){e=i;continue}t.indexOf(i)>t.indexOf(e)&&(e=i)}return e}updateVisibleErrors(){this.resetPropertyValue(`currentNotificationType`);for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0,this.renderedErrors=this.calcRenderedErrors()}get containsErrors(){return this.getPropertyValue(`containsErrors`,!1)}updateContainsErrors(){this.setPropertyValue(`containsErrors`,this.getContainsErrors())}getContainsErrors(){return this.errors.length>0}get selectedElementInDesign(){return this.selectedElementInDesignValue}set selectedElementInDesign(e){this.selectedElementInDesignValue=e}updateCustomWidgets(){}onSurveyLoad(){}get wasRendered(){return!!this.wasRenderedValue}resetWasRendered(){this.wasRenderedValue=!1}onFirstRendering(){!this.wasRendered&&!this.isLoadingFromJson&&(this.wasRenderedValue=!0,this.onFirstRenderingCore())}onFirstRenderingCore(){}endLoadingFromJson(){super.endLoadingFromJson(),this.survey||this.onSurveyLoad()}setVisibleIndex(e){return 0}getPageVisibleIndex(){return-1}getStartIndex(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.titleSettings.getQuestionStartIndex(this.getPageVisibleIndex()):``}delete(e){}getLocale(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():``}getMarkdownHtml(e,t,n){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t,n):this.locOwner?this.locOwner.getMarkdownHtml(e,t,n):void 0}getRenderer(e,t){return this.survey&&typeof this.survey.getRendererForString==`function`?this.survey.getRendererForString(this,e,t):this.locOwner&&typeof this.locOwner.getRenderer==`function`?this.locOwner.getRenderer(e):null}getRendererContext(e,t){return this.survey&&typeof this.survey.getRendererContextForString==`function`?this.survey.getRendererContextForString(this,e,t):this.locOwner&&typeof this.locOwner.getRendererContext==`function`?this.locOwner.getRendererContext(e):e}getProcessedText(e,t){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processTextEx({text:e,returnDisplayValue:this.getUseDis
68playValuesInDynamicTexts(),context:t||this,doEncoding:!1}).text:this.locOwner?this.locOwner.getProcessedText(e,t):e}getUseDisplayValuesInDynamicTexts(){return!0}removeSelfFromList(e){if(!e||!Array.isArray(e))return;let t=e.indexOf(this);t>-1&&e.splice(t,1)}get textProcessor(){return this.textProcessorValue}getProcessedHtml(e){return!e||!this.textProcessor?e:this.textProcessor.processText(e,!0)}onSetData(){}get parent(){return this.getPropertyValue(`parent`,null)}set parent(e){this.setPropertyValue(`parent`,e)}getPage(e){for(;e&&e.parent;)e=e.parent;return e&&e.isPage?e:null}moveToBase(e,t,n=null){if(!t)return!1;e.removeElement(this);let r=-1;return K.isNumber(n)&&(r=parseInt(n)),r==-1&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0}setPage(e,t){let n=this.getPage(e);this.prevSurvey=this.survey,typeof t==`string`&&this.getSurvey().pages.forEach(e=>{t===e.name&&(t=e)}),n!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1),this.prevSurvey=void 0)}getSearchableLocKeys(e){e.push(`title`),e.push(`description`)}get hasParent(){return this.parent&&!this.parent.isPage||this.parent===void 0}shouldAddRunnerStyles(){return!this.isDesignMode}get isCompact(){return this.survey&&this.survey.isCompact}canHaveFrameStyles(){var e;return((e=this.singleInput)==null?void 0:e.currentSingleElement)===this||this.isInternalNested!==!0&&this.parent!==void 0&&(!this.hasParent||this.parent&&this.parent.showPanelAsPage)}
68getHasFrameV2(){return this.shouldAddRunnerStyles()&&this.canHaveFrameStyles()}getIsNested(){return this.shouldAddRunnerStyles()&&!this.canHaveFrameStyles()}getCssRoot(e){let t=!!this.isCollapsed||!!this.isExpanded;return new X().append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,t&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,t).append(e.nested,this.getIsNested()).toString()}getRootStyle(){let e={};return this.paddingLeft&&(e[`--sv-element-add-padding-left`]=this.paddingLeft),this.paddingRight&&(e[`--sv-element-add-padding-right`]=this.paddingRight),e}get paddingLeft(){return this.getPropertyValue(`paddingLeft`,void 0,()=>this.calcPaddingLeft())}calcPaddingLeft(){return``}get paddingRight(){return this.getPropertyValue(`paddingRight`,void 0,()=>this.calcPaddingRight())}set paddingRight(e){this.setPropertyValue(`paddingRight`,e)}calcPaddingRight(){return``}resetIndents(){this.resetPropertyValue(`paddingLeft`),this.resetPropertyValue(`paddingRight`)}get rootStyle(){return this.getPropertyValue(`rootStyle`,void 0,()=>this.calcRootStyle())}set rootStyle(e){this.setPropertyValue(`rootStyle`,e)}updateRootStyle(){this.getPropertyValueWithoutDefault(`rootStyle`)?this.setRootStyle():this.resetPropertyValue(`effectiveColSpan`)}setRootStyle(){this.rootStyle=this.calcRootStyle()}calcRootStyle(){let e={},t;if(this.parent&&(t=this.parent.getColumsForElement(this).reduce((e,t)=>t.effectiveWidth+e,0),t&&t!==100&&(e.flexGrow=1,e.flexShrink=0,e.flexBasis=t+`%`,e.minWidth=void 0,e.maxWidth=this.maxWidth)),Object.keys(e).length==0){let t=``+this.minWidth;if(t&&t!=`auto`){if(t.indexOf(`px`)!=-1&&this.survey){t=t.replace(`px`,``);let e=parseFloat(t);isNaN(e)||(t=e*this.survey.widthScale/100,t=``+t+`px`)}t=`min(100%, `+t+`)`}this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=t,e.maxWidth=this.maxWidth)}return e}isContainsSelection(e){let t,n=nj.getDocument();if(nj.isAvailable()&&n&&n.selection)t=n.selection.createRange().parentElement();else{var r=tj.getSelection();if(r&&r.rangeCount>0){let e=r.getRangeAt(0);e.startOffset!==e.endOffset&&(t=e.startContainer.parentNode)}}return t==e}get clickTitleFunction(){if(this.needClickTitleFunction())return e=>{if(!(e&&this.isContainsSelection(e.target)))return this.processTitleClick()}}needClickTitleFunction(){return this.state!=="default"}processTitleClick(){this.state!=="default"&&this.toggleState()}get hasAdditionalTitleToolbar(){return!1}get additionalTitleToolbar(){return this.getAdditionalTitleToolbar()}getAdditionalTitleToolbar(){return null}getCssTitle(e){if(!e)return``;let t=this.state!=="default";return new X().append(e.title).append(e.titleNumInline,(this.no||``).length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isDisabledStyle).append(e.titleReadOnly,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()}get isDisabledStyle(){return this.getIsDisableAndReadOnlyStyles(!1)[1]}get isReadOnlyStyle(){return this.getIsDisableAndReadOnlyStyles(!1)[0]}getIsDisableAndReadOnlyStyles(e){let t=this.isPreviewStyle;return[(e||this.isReadOnly)&&!t,!1]}get isPreviewStyle(){return!!this.survey&&this.survey.state===`preview`}localeChanged(){super.localeChanged(),this.resetDescriptionVisibility(),this.errors.length>0&&this.errors.forEach(e=>{e.updateText()})}setWrapperElement(e){this.wrapperElement=e}getWrapperElement(){return this.wrapperElement}set isAnimatingCollapseExpand(e){e!==this._isAnimatingCollapseExpand&&(this._isAnimatingCollapseExpand=e,this.updateElementCss(!1))}get isAnimatingCollapseExpand(){return this._isAnimatingCollapseExpand||this._renderedIsExpanded!=this.isExpanded}notifyElementContentVisibilityChanged(){this.survey&&this.lifecycleCallbacks.elementContentVisibilityChanged(this)}onElementExpanded(e){this.notifyElementContentVisibilityChanged()}onElementCollapsed(){this.notifyElementContentVisibilityChanged()}getExpandCollapseAnimationOptions(){let e=e=>{this.isAnimatingCollapseExpand=!0,wP(e)},t=e=>{this.isAnimatingCollapseExpand=!1,TP(e)};return{getRerenderEvent:()=>this.onElementRerendered,getEnterOptions:()=>
68({cssClass:(this.isPanel?this.cssClasses.panel:this.cssClasses).contentEnter,onBeforeRunAnimation:e,onAfterRunAnimation:e=>{t(e),this.onElementExpanded(!0)}}),getLeaveOptions:()=>({cssClass:(this.isPanel?this.cssClasses.panel:this.cssClasses).contentLeave,onBeforeRunAnimation:e,onAfterRunAnimation:e=>{t(e),this.onElementCollapsed()}}),getAnimatedElement:()=>{var e;let t=this.isPanel?this.cssClasses.panel:this.cssClasses;if(t.content){let n=RN(t.content);if(n)return(e=this.getWrapperElement())==null?void 0:e.querySelector(`:scope ${n}`)}},isAnimationEnabled:()=>this.isExpandCollapseAnimationEnabled}}get isExpandCollapseAnimationEnabled(){return this.animationAllowed&&!this.isDesignMode}set renderedIsExpanded(e){let t=this._renderedIsExpanded;this.animationCollapsed.sync(e),this.isExpandCollapseAnimationEnabled||t!==e&&(t?this.onElementCollapsed():this.onElementExpanded(!1))}get renderedIsExpanded(){return!!this._renderedIsExpanded}getIsAnimationAllowed(){return super.getIsAnimationAllowed()&&!!this.survey&&!this.survey.isEndLoadingFromJson}afterRenderCore(e){this.onAfterRenderElement.fire(this,{htmlElement:e})}dispose(){super.dispose(),this.titleToolbarValue&&this.titleToolbarValue.dispose()}get randomSeed(){var e;let t=((e=this.getOwner())==null?void 0:e.randomSeed)||0,n=this.getType()+this.name;for(let e=0;e<n.length;e++)t=(t<<5)-t+n.charCodeAt(e),t|=0;return t}randomSeedChanged(){}ensureRowsVisibility(){}};q([Y({defaultValue:1})],DP.prototype,`colSpan`,void 0),q([Y({defaultValue:!1})],DP.prototype,`hasVisibleErrors`,void 0),q([Y({defaultValue:!0})],DP.prototype,`isSingleInRow`,void 0),q([Y({defaultValue:``})],DP.prototype,`width`,void 0),q([Y()],DP.prototype,`minWidth`,void 0),q([Y()],DP.prototype,`maxWidth`,void 0),q([Y({defaultValue:``})],DP.prototype,`renderWidth`,void 0),q([Y()],DP.prototype,`indent`,void 0),q([Y({defaultValue:0})],DP.prototype,`rightIndent`,void 0),q([Y({defaultValue:!0})],DP.prototype,`allowRootStyle`,void 0),q([Y()],DP.prototype,`_renderedIsExpanded`,void 0);var OP=class{constructor(e,t,n=100){this._elements=e,this._renderedHandler=t,this._elementsToRenderCount=0,this._elementsToRenderTimer=void 0,this._elementRenderedHandler=(e,t)=>{var n;(n=e.onAfterRenderElement)==null||n.remove(this._elementRenderedHandler),this._elementsToRenderCount--,this._elementsToRenderCount<=0&&this.visibleElementsRendered()},this._elements.forEach(e=>{e.onAfterRenderElement&&(e.onAfterRenderElement.add(this._elementRenderedHandler),this._elementsToRenderCount++)}),this._elementsToRenderCount>0?this._elementsToRenderTimer=setTimeout(()=>{this._elementsToRenderCount>0&&this.visibleElementsRendered()},n):this.visibleElementsRendered()}stopWaitingForElementsRendering(){this._elementsToRenderTimer&&(clearTimeout(this._elementsToRenderTimer),this._elementsToRenderTimer=void 0),this._elements.forEach(e=>{var t;(t=e.onAfterRenderElement)==null||t.remove(this._elementRenderedHandler)}),this._elementsToRenderCount=0}visibleElementsRendered(){let e=this._renderedHandler;this.dispose(),typeof e==`function`&&e()}dispose(){this.stopWaitingForElementsRendering(),this._elements=void 0,this._renderedHandler=void 0}},kP=class{constructor(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:``}afterRender(e,t){this.widgetJson.afterRender&&(e.localeChangedCallback=()=>{this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t),this.widgetJson.afterRender(e,t)},this.widgetJson.afterRender(e,t))}willUnmount(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)}getDisplayValue(e,t=void 0){return this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null}validate(e){if(this.widgetJson.validate)return this.widgetJson.validate(e)}isFit(e){return this.isLibraryLoaded()&&this.widgetJson.isFit?this.widgetJson.isFit(e):!1}get canShowInToolbox(){return this.widgetJson.showInToolbox===!1||AP.Instance.getActivatedBy(this.name)!=`customtype`?!1:!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded()}get showInToolbox(){return this.widgetJson.showInToolbox!==!1}set showInToolbox(e){this.widgetJson.showInToolbox=e}init(){this.widgetJson.init&&this.widgetJson.init()}activatedByChanged(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)}isLibraryLoaded(){return!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded()==1}get isDefaultRender(){return this.widgetJson.isDefaultRender}get pdfQuestionType(){return this.widgetJson.pdfQuestionType}get pdfRender(){return this.widgetJson.pdfRender}},AP=class{constructor(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new _j}get widgets(){return this.widgetsValues}add(e,t=`property`){this.addCustomWidget(e,t)}addCustomWidget(e,t=`property`){var n=e.name;n||(n=`widget_`+this.widgets.length+1);var r=new kP(n,e);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=t,r.activatedByChanged(t),this.onCustomWidgetAdded.fire(r,null),r}getActivatedBy(e){return this.widgetsActivatedBy[e]||`property`}setActivatedBy(e,t){if(!(!e||!t)){var n=this.getCustomWidgetByName(e);n&&(this.widgetsActivatedBy[e]=t,n.activatedByChanged(t))}}clear(){this.widgetsValues=[]}getCustomWidgetByName(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null}getCustomWidget(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null}};AP.Instance=new AP;var jP=class{constructor(){this.renderersHash={},this.defaultHash={}}unregisterRenderer(e,t){delete this.renderersHash[e][t],this.defaultHash[e]===t&&delete this.defaultHash[e]}registerRenderer(e,t,n,r=!1){this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=n,r&&(this.defaultHash[e]=t)}getRenderer(e,t){let n=this.renderersHash[e];if(n){if(t&&n[t])return n[t];let r=this.defaultHash[e];if(r&&n[r])return n[r]}return`default`}getRendererByQuestion(e){return this.getRenderer(e.getType(),e.renderAs)}clear(){this.renderersHash={}}};jP.Instance=new jP;function MP(e,t){if(!e)return;t||(t=e=>nj.getComputedStyle(e));let n=parseFloat(e.getAttribute(`rows`)||`2`),r=t(e),i=r.overflowY,a=parseFloat(r.lineHeight);if(e.scrollHeight){let t=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),o=(e.scrollHeight-t)/a,s=n=>{e.style.height=n*a+t+`px`};for(s(o),e.style.overflowY=`hidden`;e.scrollHeight<=e.offsetHeight&&o>n;)o--,s(o);e.style.overflowY=i,e.scrollHeight>e.offsetHeight&&(o++,s(o))}else e.style.height=`auto`}var NP=class{updateElement(){this.element&&this.autoGrow&&setTimeout(()=>MP(this.element),1)}constructor(e){this.options=e,this.onPropertyChangedCallback=()=>{this.element&&(this.element.value=this.getTextValue(),this.updateElement())},this.question.registerFunctionOnPropertiesValueChanged(this.options.propertyNames,this.onPropertyChangedCallback,`__textarea`)}setElement(e){e&&(this.element=e,this.updateElement())}resetElement(){this.element=void 0}getTextValue(){return this.options.getTextValue&&this.options.getTextValue()||``}onTextAreaChange(e){this.options.onTextAreaChange&&this.options.onTextAreaChange(e)}onTextAreaInput(e){this.options.onTextAreaInput&&this.options.onTextAreaInput(e),this.element&&this.autoGrow&&MP(this.element)}onTextAreaKeyDown(e){this.options.onTextAreaKeyDown&&this.options.onTextAreaKeyDown(e)}onTextAreaBlur(e){this.onTextAreaChange(e),this.options.onTextAreaBlur&&this.options.onTextAreaBlur(e)}onTextAreaFocus(e){var t;this.options.onTextAreaFocus&&this.options.onTextAreaFocus(e),this.isReadOnlyAttr&&((t=e==null?void 0:e.target)==null||t.select())}get question(){return this.options.question}get id(){return this.options.id()}get placeholder(){return this.options.placeholder()}get className(){return this.options.className()}get maxLength(){if(this.options.maxLength)return this.options.maxLength()}get autoGrow(){if(this.options.autoGrow)return this.options.autoGrow()}get rows(){if(this.options.rows)return this.options.rows()}get cols(){if(this.options.cols)return this.options.cols()}get isDisabledAttr(){return this.options.isDisabledAttr()}get isReadOnlyAttr(){if(this.options.isReadOnlyAttr)return this.options.isReadOnlyAttr()}get ariaRequired(){if(this.options.ariaRequired)return this.options.ariaRequired()}get ariaLabel(){if(this.options.ariaLabel)return this.options.ariaLabel()}
68get ariaInvalid(){if(this.options.ariaInvalid)return this.options.ariaInvalid()}get ariaLabelledBy(){if(this.options.ariaLabelledBy)return this.options.ariaLabelledBy()}get ariaDescribedBy(){if(this.options.ariaDescribedBy)return this.options.ariaDescribedBy()}get ariaErrormessage(){if(this.options.ariaErrormessage)return this.options.ariaErrormessage()}dispose(){this.question&&this.question.unRegisterFunctionOnPropertiesValueChanged(this.options.propertyNames,`__textarea`),this.resetElement()}},PP=class{constructor(e){this.question=e}get isSingleInputMode(){var e;return(e=this.question.singleInput)==null?void 0:e.isSingleVisibleInput}get isSingleInputActive(){if(!this.isSingleInputMode)return!1;let e=this.question.singleInput.currentSingleQuestion;return!!e&&e===this.rootParentQuestion}getPropertyValue(e,t,n){return this.question.getPropertyValue(e,t,n)}resetPropertyValue(e){this.question.resetPropertyValue(e)}get survey(){return this.question.singleInput}calculateSingleInputQuestion(){if(!this.isSingleInputActive)return;let e=this.getSingleInputQuestions();if(Array.isArray(e)&&e.length>0){let t=e[0];return this.onBeforeSetSingleInputQuestion(t),t}}get singleInputQuestion(){if(this.isSingleInputMode)return this.getPropertyValue(`singleInputQuestion`,void 0,()=>this.calculateSingleInputQuestion())}get currentSingleInputQuestion(){let e=this.singleInputQuestion;for(;e&&e.singleInputQuestion&&e.singleInputQuestion!==e;)e=e.singleInputQuestion;return e}get currentSingleInputParentQuestion(){let e=this.currentSingleInputQuestion;return e?e.singleInputQuestion===e?e:e.parentQuestion||this.question:this.question}get singleInputSummary(){return this.getPropertyValue(`singleInputSummary`,void 0,()=>{if(!this.supportNestedSingleInput())return;let e=this.singleInputQuestion;if(!e||e!==this.question)return;let t=this.createSingleInputSummary();return t&&(this.calcSingleInputActions(),this.resetPropertyValue(`singleInputLocTitle`)),t})}createSingleInputSummary(){}get rootParentQuestion(){return this.question.rootParentQuestion}getParentQuestions(){let e=[],t=this.question;for(;t.parentQuestion;)e.push(t.parentQuestion),t=t.parentQuestion;return e}focusSingleInput(e){this.survey.currentSingleQuestion=this.rootParentQuestion;let t=this.getParentQuestions();for(let e=t.length-1;e>=1;e--)e===t.length-1&&t[e].singleInputBehavior.setSingleInputQuestion(t[e-1]);t.length>0&&t[0].singleInputBehavior.setSingleInputQuestion(this.question),this.question.focusInputElement(e)}resetSingleInput(){this.resetSingleInputCore()}resetSingleInputCore(){let e=this.getPropertyValue(`singleInputQuestion`);this.resetPropertyValue(`singleInputQuestion`),e&&this.onSingleInputChanged()}onSingleInputChanged(e=!0){var t,n;e&&this.resetSingleInputSummary(),(t=this.singleInputLocTitle)==null||t.strChanged(),this.resetPropertyValue(`singleInputLocTitle`),this.calcSingleInputActions(),(n=this.survey)==null||n.updateNavigationElements()}resetSingleInputSummary(){var e;(e=this.singleInputSummary)==null||e.dispose(),this.resetPropertyValue(`singleInputSummary`)}validateSingleInput(){let e=this.currentSingleInputQuestion;return!e||e.validate(!0,!0)}getSingleInputElementPos(){if(this.singleInputQuestion===this.question)return 0;let e=this.currentSingleInputParentQuestion;if(e!==this.question&&e.getSingleInputElementPos()===2)return 2;let t=this.singleInputQuestion,n=this.getSingleInputQuestions();if(n.length<2)return 0;let r=n.indexOf(t);return r===0?-1:r>=n.length-1?1:2}singleInputOnAddItem(e){this.isSingleInputActive&&(e&&this.singleInputSummary?this.resetSingleInputSummary():this.setSingleQuestionOnChange(Number.MAX_VALUE))}singleInputOnRemoveItem(e){this.isSingleInputActive&&(this.singleInputSummary?this.onSingleInputChanged():this.setSingleQuestionOnChange(e))}getSingleQuestionOnChange(e){return null}setSingleQuestionOnChange(e){let t=this.getSingleQuestionOnChange(e);t?this.setSingleInputQuestion(t):this.resetSingleInput()}onSetAsSingleInput(){this.isSingleInputSummaryShown=!1;let e=!this.question.wasRendered||this.singleInputSummary;this.question.onFirstRendering(),e&&(this.resetSingleInputSummary(),this.resetPropertyValue(`singleInputQuestion`),this.resetPropertyValue(`singleInputLocTitle`))}nextSingleInput(){return this.nextPrevSingleInput(1)}prevSingleInput(){return this.nextPrevSingleInput(-1)}getSingleInputAddText(){let e=this.currentSingleInputQuestion;if(!e)return;if(e.singleInputSummary)return this.getBehavior(e).getSingleInputAddTextCore();let t=this.getSingleInputQuestions(),n=Array.isArray(t)?t.length:0;if(n>
680&&t[n-1]===e)return this.getSingleInputAddTextCore()}singleInputAddItem(e){(!e||this.validateSingleInput())&&this.getBehavior(this.currentSingleInputQuestion).singleInputAddItemCore()}get singleInputLocTitle(){return this.getPropertyValue(`singleInputLocTitle`,void 0,()=>this.getSingleQuestionLocTitle())}getLocTitle(){return this.isSingleInputActive?this.singleInputLocTitle:null}get singleInputActions(){return this.getPropertyValue(`singleInputActions`,void 0,()=>this.createSingleInputActions())}get singleInputHasActions(){return this.getPropertyValue(`singleInputHasActions`,void 0,()=>this.createSingleInputActions())}get singleInputHideHeader(){var e;return!!((e=this.singleInputQuestion)!=null&&e.singleInputQuestion)&&this.singleInputQuestion!==this.question}set singleInputHasActionsValue(e){this.question.setPropertyValue(`singleInputHasActions`,e)}get singleInputParentQuestion(){var e;return((e=this.singleInputQuestion)==null?void 0:e.parentQuestion)||this.question}createSingleInputActions(){var e;if(((e=this.survey)==null?void 0:e.currentSingleQuestion)!==this.question)return;let t=new XN;return t.actions=this.getSingleQuestionActions(),t}calcSingleInputActions(){if(this.question.parentQuestion)this.getBehavior(this.question.parentQuestion).calcSingleInputActions();else{let e=this.getSingleQuestionActions();this.singleInputActions&&(this.singleInputActions.actions=e),this.question.setPropertyValue(`singleInputHasActions`,e.length>0||void 0)}}getSingleQuestionActions(){let e=[],t=this.currentSingleInputParentQuestion;if(!t||t===this.question)return e;let n=this.getBehavior(t).getSingleInputQuestions(),r=[],i;n.length>1&&n[0]===t&&(i=t,r.push(t));let a=t.parentQuestion;for(;a;)r.push(a),a=a.parentQuestion;for(let t=r.length-1;t>=0;t--){let n=r[t];if(n!==i){let t=n.singleInputLocTitle,r=new kN({id:`single-action`+n.id,locTitle:t,css:this.question.cssClasses.breadcrumbsItem,innerCss:this.question.cssClasses.breadcrumbsItemButton,action:()=>{this.getBehavior(n).singleInputMoveToFirst()}});r.cssClasses={},e.push(r)}}return e}singleInputMoveToFirst(){let e=this.singleInputQuestion;e&&e!==this.question&&this.getBehavior(e).singleInputMoveToFirst(),this.singleInputMoveToFirstCore()}singleInputMoveToFirstCore(){}getSingleQuestionLocTitle(){return this.singleInputSummary?void 0:this.getSingleQuestionLocTitleCore()}getSingleQuestionLocTitleCore(){}supportNestedSingleInput(){var e;return(e=this.survey)==null?void 0:e.supportsNestedSingleInput(this.question)}getSingleInputQuestions(){if(!this.supportNestedSingleInput())return[];let e=this.getPropertyValue(`singleInputQuestion`);if(e===this.question)return[this.question];let t=this.getSingleInputQuestionsCore(e,!e||!this.isSingleInputSummaryShown);return this.survey&&this.survey.updateNestedSingleQuestions(this.question,t),t.forEach(e=>{e!==this.question&&this.onSingleInputQuestionAdded(e)}),t}getSingleInputQuestionsCore(e,t){return this.question.getNestedQuestions(!0,!1)}onSingleInputQuestionAdded(e){}fillSingleInputQuestionsInContainer(e,t){}getSingleInputQuestionsForDynamic(e,t){let n=[];return e&&e!==this.question&&t.indexOf(e)<0&&this.fillSingleInputQuestionsInContainer(n,e),t.forEach(e=>n.push(e)),this.isSingleInputSummaryShown&&n.length>0&&n.unshift(this.question),n.push(this.question),n}getSingleInputAddTextCore(){}singleInputAddItemCore(){}setSingleInputQuestionCore(e){this.onBeforeSetSingleInputQuestion(e),this.question.setPropertyValue(`singleInputQuestion`,e)}onBeforeSetSingleInputQuestion(e){e.onFirstRendering(),e===this.question&&(this.isSingleInputSummaryShown=!0)}setSingleInputQuestion(e,t){this.singleInputQuestion!==e&&(this.setSingleInputQuestionCore(e),this.onSingleInputChanged(!t||e!==this.question))}nextPrevSingleInput(e){let t=this.currentSingleInputParentQuestion;for(;t&&t!==this.question;){if(this.getBehavior(t).nextPrevSingleInputCore(e))return!0;t=t.parentQuestion}return this.nextPrevSingleInputCore(e)}nextPrevSingleInputCore(e){let t=this.singleInputQuestion;if(!t)return!1;let n=this.getSingleInputQuestions(),r=n.indexOf(t);if(r<0){if(n.length===0)return!1;r=0,e=0}return r+=e,r<0||r>=n.length?!1:(this.setSingleInputQuestion(n[r],e<0),!0)}getBehavior(e){return e.singleInputBehavior}},FP=class{constructor(e){this.question=e}getObj(){return this.question}getValue(e){let t=e.path,n=e.index,r=G.expressionVariables;if(e.isProperty&&t.length>1){if(e.path=t.slice(1),e.isRoot=!1,t[0].name===r.self)return new Rj(this.question).getValue(e);if(t[0].name===r.parent&&this.question.parentQuestion)return new Rj(this.question.parentQuestion).getValue(e)}if(t.length===0||t.length===1&&t[0].name===r.self)return this.getQuestionValue(n,e.isOriginalValue);if(t.length>1&&t[0].name===r.panel){e.isRoot=!1;let n=this.question.parent;if(n&&n.isPanel)return t.shift(),e.isProperty?new Rj(n).getValue(e):new LP(n.questions).getValue(e)}if(!this.question.isEmpty()){let t=this.question.value;if(n>=0){if(!Array.isArray(t||n>=t.length))return;t=t[n]}return e.isProperty=!1,new Lj(t).getValue(e)}}getTextValue(e,t,n){return n?this.question.getDisplayValue(!0,t):t}getRootObj(){return this.question.data}getQuestion(){return this.question}getSurveyValue(e,t){let n=this.question.getSurvey();if(n)return n.getValueGetterContext().getValue({path:e,isRoot:!1,index:t})}getQuestionValue(e,t){let n=this.question,r=!t&&n.hasFilteredValue,i=n.getFilteredValue(r);return e>-1&&Array.isArray(i)&&(i=e<i.length?i[e]:void 0),{isFound:!0,context:this,value:i,requireStrictCompare:n.requireStrictCompare}}},IP=class extends Ij{getValueFromBindedQuestions(e,t){typeof t!=`object`&&(t=void 0);let n=e.length===1?e[0].name:``,r=this.getQuestionsBySameValueNames();for(let i=0;i<r.length;i++){let a=r[i];if(n&&a.valuePropertyName===n&&t&&t.hasOwnProperty(n))return{isFound:!0,value:t[n],context:a.getValueGetterContext()};let o=a.getValueGetterContext().getValue({path:e,isRoot:!1,index:this.getIndex()});if(o&&o.isFound)return o}}getQuestionsBySameValueNames(){let e=[],t=this.getQuestionData();return!t||!t.isQuestion?e:(t.parent&&t.parent.isPanel&&this.fillQuestions(t.parent.getQuestionsByValueName(t.getValueName()),t,e),e.length===0&&t.survey&&this.fillQuestions(t.survey.getQuestionsByValueName(t.getValueName()),t,e),e)}
68fillQuestions(e,t,n){Array.isArray(e)&&e.forEach(e=>{e!==t&&n.push(e)})}getRootObj(){return this.getQuestionData()}},LP=class extends Ij{constructor(e){super(),this.questions=e}isSearchNameRevert(){return!0}updateValueByItem(e,t){let n=e.toLocaleLowerCase();for(let e=0;e<this.questions.length;e++){let r=this.questions[e];if(r.getFilteredName().toLocaleLowerCase().toLocaleLowerCase()===n){t.isFound=!0,t.obj=r,t.context=r.getValueGetterContext();break}}}},RP=class extends hN{constructor(e){super(()=>{this.setCallbackResult()}),this.res=!0,this.errorCountValue=0,e||(e={fireCallback:!0}),this.fireCallbackValue=e.fireCallback||!1,this.isOnValueChangedValue=e.isOnValueChanged||!1,this.isOnValueChangingValue=e.isOnValueChanging||!1,this.focusOnFirstErrorValue=e.focusOnFirstError||!1,this.callbackResult=e.callbackResult||null,this.changeCurrentPage=e.changeCurrentPage||!1}get fireCallback(){return this.fireCallbackValue}get isOnValueChanged(){return this.isOnValueChangedValue}get isOnValueChanging(){return this.isOnValueChangingV
68alue}get focusOnFirstError(){return this.focusOnFirstErrorValue}get result(){return this.res}get runningResult(){return!this.res||!this.isRunning||!this.callbackResult?this.res:void 0}setErrorElement(e,t){Array.isArray(t)&&this.isWarningOnlyOrEmpty(t)||(this.errorCountValue++,this.res=!1,e&&(e.isQuestion?this.setQuestionError(e):e.isCollapsed&&e.expand()))}isWarningOnlyOrEmpty(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.isError&&n.visible)return!1}return!0}get firstErrorQuestion(){return this.firstErrorQuestionValue}get errorCount(){return this.errorCountValue}setCallbackResult(){this.callbackResult&&!this.isCallbackFired&&(this.isCallbackFired=!0,this.callbackResult(this.res,this.firstErrorQuestion))}setQuestionError(e){if(e.expandAllParents(),!this.firstErrorQuestionValue){if(this.firstErrorQuestionValue=e,this.focusOnFirstError||this.changeCurrentPage){if(this.focusOnFirstError)e.focus(!0);else{let t=e.getSurvey();t&&e.page&&(t.currentPage=e.page)}}this.setCallbackResult()}}},zP=class extends DP{get afterRenderCallbacks(){return this.survey}get validationCallbacks(){return this.survey}isReadOnlyRenderDiv(){return this.isReadOnly&&G.readOnly.commentRenderMode===`div`}allowMobileInDesignMode(){return!1}updateIsMobileFromSurvey(){this.setIsMobile(this.survey._isMobile)}setIsMobile(e){let t=e&&(this.allowMobileInDesignMode()||!this.isDesignMode);this.isMobile=t}getIsMobile(){return this._isMobile}get isMobile(){return this.getIsMobile()}set isMobile(e){this._isMobile=e}themeChanged(e){}get ariaExpanded(){return this.isNewA11yStructure?null:this.getPropertyValue(`ariaExpanded`)}set ariaExpanded(e){this.setPropertyValue(`ariaExpanded`,e)}constructor(e){super(e),this.customWidgetData={isNeedRender:!0},this.hasCssErrorCallback=()=>!1,this.triggersInfo=[],this.isReadyValue=!0,this.dependedQuestions=[],this.onReadyChanged=this.addEvent(),this.isValueChangedInSurvey=!1,this.allowNotifyValueChanged=!0,this.setPropertyValueDirectly(`id`,`sq_`+this.uniqueId),this.onCreating(),this.addExpressionProperty(`visibleIf`,(e,t)=>{this.visible=t===!0},void 0,!0,()=>{this.visible=!0}),this.addExpressionProperty(`enableIf`,(e,t)=>{this.readOnly=t===!1},void 0,!0,()=>{this.readOnly=!1}),this.addExpressionProperty(`requiredIf`,(e,t)=>{this.isRequired=t===!0},void 0,!0,()=>{this.isRequired=!1}),this.addTriggersInfo()}onPropertyValueChanged(e,t,n){var r;super.onPropertyValueChanged(e,t,n),e===`validators`&&this.resetValidationDependencies(),[`readOnly`,`hasVisibleErrors`,`containsErrors`].indexOf(e)>-1&&this.updateQuestionCss(),e===`showNumber`&&this.notifySurveyVisibilityChanged(),e===`no`&&this.resetCssTitle(),e===`width`&&(this.updateQuestionCss(),this.parent&&this.parent.elementWidthChanged(this)),e===`isRequired`&&(!this.isRequired&&this.errors.length>0&&this.validate(),this.locTitle.strChanged(),this.clearCssClasses()),(e===`indent`||e===`rightIndent`)&&this.resetIndents(),(e===`showCommentArea`||e===`showOtherItem`)&&this.initCommentFromSurvey(),e===`commentPlaceholder`&&this.resetRenderedCommentPlaceholder(),e===`_isMobile`&&this.onMobileChanged(),e===`colSpan`&&((r=this.parent)==null||r.updateColumns()),e===`descriptionLocation`&&this.updateQuestionCss()}getDefaultTitle(){return this.name}createLocTitleProperty(){let e=super.createLocTitleProperty();return e.storeDefaultText=!0,e.onGetTextCallback=(e,t)=>(!e&&!t&&(e=this.getDefaultTitle()),this.survey?this.titleSettings.getUpdatedQuestionTitle(this,e):e),this.locProcessedTitle=new yj(this,!0),this.locProcessedTitle.sharedData=e,e}get locRenderedTitle(){return this.singleInputBehavior.getLocTitle()||this.locTitle}get commentTextAreaModel(){return this.commentTextAreaModelValue||(this.commentTextAreaModelValue=new NP(this.getCommentTextAreaOptions())),this.commentTextAreaModelValue}getCommentTextAreaOptions(){return{question:this,id:()=>this.commentId,propertyNames:[`comment`],className:()=>this.cssClasses.comment,placeholder:()=>this.renderedCommentPlaceholder,isDisabledAttr:()=>this.isInputReadOnly||!1,rows:()=>this.commentAreaRows,autoGrow:()=>this.autoGrowComment,maxLength:()=>this.getOthersMaxLength(),ariaRequired:()=>this.a11y_input_ariaRequired,ariaLabel:()=>this.a11y_input_ariaLabel,getTextValue:()=>this.comment,onTextAreaChange:e=>{this.onCommentChange(e)},onTextAreaInput:e=>{this.onCommentInput(e)}}}getSurvey(e=!1){return e?this.parent?this.parent.getSurvey(e):null:this.onGetSurvey?this.onGetSurvey():super.getSurvey()}getValueName(){return this.valueName?this.valueName.toString():this.name}get valueName(){return this.getPropertyValue(`valueName`,``)}set valueName(e){var t=this.getValueName();this.setPropertyValue(`valueName`,e),this.onValueNameChanged(t)}onValueNameChanged(e){this.survey&&(this.lifecycleCallbacks.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())}onNameChanged(e){this.locTitle.strChanged(),this.survey&&this.lifecycleCallbacks.questionRenamed(this,e,this.valueName?this.valueName:e)}getAllChildren(){return[...super.getAllChildren(),...this.validators]}get isReady(){return this.isReadyValue}onAsyncRunningChanged(){this.updateIsReady()}ensureQuestionIsReady(){this.displayValue}waitForQuestionIsReady(e){return new Promise(t=>{if(this.ensureQuestionIsReady(),this.isReady)t(),e&&e();else{let n=(r,i)=>{i.isReady&&(this.onReadyChanged.remove(n),t(),e&&e())};this.onReadyChanged.add(n)}})}updateIsReady(){let e=this.getIsQuestionReady();if(e){let t=this.getIsReadyDependsOn();for(let n=0;n<t.length;n++)if(!t[n].getIsQuestionReady()){e=!1;break}}this.setIsReady(e)}getIsQuestionReady(){return!this.isAsyncExpressionRunning&&this.getAreNestedQuestionsReady()}getAreNestedQuestionsReady(){let e=this.getIsReadyNestedQuestions();if(!Array.isArray(e))return!0;for(let t=0;t<e.length;t++)if(!e[t].isReady)return!1;return!0}getIsReadyNestedQuestions(){return this.getNestedQuestions()}setIsReady(e){let t=this.isReadyValue;
68this.isReadyValue=e,t!=e&&(this.getIsReadyDependends().forEach(e=>e.updateIsReady()),this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:t}))}getIsReadyDependsOn(){return this.getIsReadyDependendCore(!0)}getIsReadyDependends(){return this.getIsReadyDependendCore(!1)}getDependedQuestionsByValueName(e){return this.survey.questionsByValueName(this.getValueName())}getIsReadyDependendCore(e){if(!this.survey)return[];let t=this.getDependedQuestionsByValueName(e),n=[];return t.forEach(e=>{e!==this&&n.push(e)}),e||(this.parentQuestion&&n.push(this.parentQuestion),this.dependedQuestions.length>0&&this.dependedQuestions.forEach(e=>n.push(e))),n}choicesLoaded(){}get page(){return this.parentQuestion?this.parentQuestion.page:this.getPage(this.parent)}set page(e){this.setPage(this.parent,e)}getPanels(){return null}getPageVisibleIndex(){var e;return((e=this.page)==null?void 0:e.visibleIndex)||-1}delete(e=!0){this.removeFromParent(),e?this.dispose():this.resetDependedQuestions()}removeFromParent(){this.parent&&this.removeSelfFromList(this.parent.elements)}addDependedQuestion(e){!e||this.dependedQuestions.indexOf(e)>-1||this.dependedQuestions.push(e)}removeDependedQuestion(e){if(e){var t=this.dependedQuestions.indexOf(e);t>-1&&this.dependedQuestions.splice(t,1)}}updateDependedQuestions(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].updateDependedQuestion()}updateDependedQuestion(){}resetDependedQuestion(){}get isFlowLayout(){return this.getLayoutType()===`flow`}getLayoutType(){return this.parent?this.parent.getChildrenLayoutType():`row`}isLayoutTypeSupported(e){return e!==`flow`}onVisibleChanged(){let e=this.getPropertyValue(`isVisible`);this.onVisibleChangedCore();let t=this.getPropertyValue(`isVisible`);e!==void 0&&e!==t&&this.notifySurveyVisibilityChanged()}onVisibleChangedCore(){this.updateIsVisibleProp(),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])}notifyStateChanged(e){super.notifyStateChanged(e),this.isCollapsed&&this.onHidingContent()}updateElementVisibility(){this.updateIsVisibleProp()}updateIsVisibleProp(){let e=this.getPropertyValue(`isVisible`),t=this.isVisible;e!==t&&(this.setPropertyValue(`isVisible`,t),t||this.onHidingContent()),t!==this.visible&&this.areInvisibleElementsShowing&&this.updateQuestionCss()}getUseDisplayValuesInDynamicTexts(){return this.useDisplayValuesInDynamicTexts}get isVisible(){return this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty()?!1:this.areInvisibleElementsShowing?!0:this.isVisibleCore()}get isVisibleInSurvey(){return this.isVisible&&this.isParentVisible}isVisibleCore(){return this.visible}get visibleIndex(){return this.getPropertyValue(`visibleIndex`,-1)}onHidingContent(){}get hideNumber(){return!this.showNumber}set hideNumber(e){this.showNumber=!e}get isAllowTitleLeft(){return!0}getType(){return`question`}get isQuestion(){return!0}getOwner(){return this.parentQuestion||this.parent}moveTo(e,t=null){return this.moveToBase(this.parent,e,t)}getProgressInfo(){return this.hasInput?{questionCount:1,answeredQuestionCount:+!this.isEmpty(),requiredQuestionCount:+!!this.isRequired,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:super.getProgressInfo()}runTriggerInfo(e,t,n){this.runExpressionByProperty(e.name,n,t=>{e.doComplete(t,n)},n=>e.canRun()?!t||this.canExecuteTriggerByKeys(t,n,this.getExpressionByProperty(e.secondName)):!1)}canExecuteTriggerByKeys(e,t,n){!t&&n&&(t=n,n=void 0);let r=this.canExecuteTriggerByKeysCore(e,t);return r===`var`?!0:n?this.canExecuteTriggerByKeysCore(e,n)!==``:r===`func`||r===`const`}canExecuteTriggerByKeysCore(e,t){if(!t.expression)return``;if(t.hasFunction(!0))return`func`;let n=t.getVariables();return!Array.isArray(n)||n.length===0?`const`:new Fj().isAnyKeyChanged(e,n)?`var`:``}getValueGetterContext(){return new FP(this)}addTriggersInfo(){this.addTriggerInfo({name:`resetValueIf`,canRun:()=>!this.isEmpty(),doComplete:(e,t)=>{e===!0&&(this.startSetValueOnExpression(),this.updateValueWithDefaultsOrClear(),this.finishSetValueOnExpression())}}),this.addTriggerInfo({name:`setValueIf`,secondName:`setValueExpression`,canRun:()=>!0,doComplete:(e,t)=>
68{e&&(this.setValueExpression?this.runTriggerInfo({name:`setValueExpression`,canRun:()=>!0,doComplete:(e,t)=>this.runExpressionSetValue(e)},void 0,t):this.clearValue())}}),this.addTriggerInfo({name:`setValueExpression`,canRun:()=>!this.setValueIf,doComplete:(e,t)=>this.runExpressionSetValue(e)})}addTriggerInfo(e){this.triggersInfo.push(e)}runTriggers(e,t,n){if(this.isSettingQuestionValue||this.parentQuestion&&this.parentQuestion.getValueName()===e)return;n||(n={},n[e]=t);let r=this.getDataFilteredProperties();this.triggersInfo.forEach(e=>{this.runTriggerInfo(e,n,r)})}runConditions(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredProperties()),this.locStrsChanged())}setSurveyImpl(e,t){super.setSurveyImpl(e),this.survey&&(this.lifecycleCallbacks.questionCreated(this),t!==!0&&this.runConditions(),this.visible||this.updateIsVisibleProp(),this.updateIsMobileFromSurvey())}get parent(){return this.getPropertyValue(`parent`,null)}set parent(e){this.parent!==e&&(this.removeFromParent(),this.setPropertyValue(`parent`,e),e&&this.updateQuestionCss(),this.onParentChanged())}onParentChanged(){}get singleInputBehavior(){return this._singleInputBehavior||(this._singleInputBehavior=this.createSingleInputBehavior()),this._singleInputBehavior}createSingleInputBehavior(){return new PP(this)}get singleInputQuestion(){return this.singleInputBehavior.singleInputQuestion}get singleInputSummary(){return this.singleInputBehavior.singleInputSummary}get rootParentQuestion(){let e=this;for(;e.parentQuestion;)e=e.parentQuestion;return e}resetSingleInput(){this.singleInputBehavior.resetSingleInput()}validateSingleInput(){return this.singleInputBehavior.validateSingleInput()}getSingleInputElementPos(){return this.singleInputBehavior.getSingleInputElementPos()}get isSingleInputActive(){return this.singleInputBehavior.isSingleInputActive}singleInputOnAddItem(e){this.singleInputBehavior.singleInputOnAddItem(e)}singleInputOnRemoveItem(e){this.singleInputBehavior.singleInputOnRemoveItem(e)}onSetAsSingleInput(){this.singleInputBehavior.onSetAsSingleInput()}nextSingleInput(){return this.singleInputBehavior.nextSingleInput()}prevSingleInput(){return this.singleInputBehavior.prevSingleInput()}getSingleInputAddText(){return this.singleInputBehavior.getSingleInputAddText()}singleInputAddItem(e){this.singleInputBehavior.singleInputAddItem(e)}get singleInputLocTitle(){return this.singleInputBehavior.singleInputLocTitle}get singleInputActions(){return this.singleInputBehavior.singleInputActions}get singleInputHasActions(){return this.singleInputBehavior.singleInputHasActions}singleInputMoveToFirst(){this.singleInputBehavior.singleInputMoveToFirst()}get hasTitle(){return this.getTitleLocation()!==`hidden`&&!this.singleInputBehavior.singleInputHideHeader}get titleLocation(){return this.getPropertyValue(`titleLocation`)}set titleLocation(e){var t=this.titleLocation==`hidden`||e==`hidden`;this.setPropertyValue(`titleLocation`,e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()}get showTitle(){return this.getTitleLocation()!==`hidden`}set showTitle(e){this.titleLocation=e?`default`:`hidden`}getTitleOwner(){return this}getIsTitleRenderedAsString(){return this.titleLocation===`hidden`}notifySurveyOnChildrenVisibilityChanged(){return!1}notifySurveyVisibilityChanged(){if(!this.canUpdateValueOnVisibleChanged())return;this.lifecycleCallbacks.questionVisibilityChanged(this,this.isVisible,!this.parentQuestion||this.parentQuestion.notifySurveyOnChildrenVisibilityChanged());let e=this.isClearValueOnHidden;this.visible||this.clearValueOnHidding(e),e&&this.isVisibleInSurvey&&this.updateValueWithDefaults()}clearValueOnHidding(e){e&&this.clearValueIfInvisible()}get titleWidth(){if(this.parent&&this.getTitleLocation()===`left`){let e=this.parent.getColumsForElement(this),t=e.length;if(t!==0&&e[0].questionTitleWidth)return e[0].questionTitleWidth;let n=this.getQuestionParentTitleWidth(),r=this.getPercentQuestionTitleWidth(n);if(!r&&this.parent){let e=n;return e&&!isNaN(e)&&(e+=`px`),e}return r/(t||1)+`%`}}getQuestionParentTitleWidth(){if(!this.parent)return;let e=this.parent.getQuestionTitleWidth();return!e&&this.parentQuestion?this.parentQuestion.getQuestionParentTitleWidth():e}getPercentQuestionTitleWidth(e){if(e&&e[e.length-1]===`%`)return parseInt(e)}getTitleLocation(){if(this.isFlowLayout)return`hidden`;var e=this.getTitleLocationCore();return e===`left`&&!this.isAllowTitleLeft&&(e=`top`),e}getTitleLocationCore(){return this.titleLocation==="default"?this.getParentTitleLocation():this.titleLocation}getParentTitleLocation(){return this.parent?this.parent.getQuestionTitleLocation():this.survey?this.titleSettings.questionTitleLocation:`top`}get hasTitleOnLeft(){return this.hasTitle&&this.getTitleLocation()===`left`}get hasTitleOnTop(){return this.hasTitle&&this.getTitleLocation()===`top`}get hasTitleOnBottom(){return this.hasTitle&&this.getTitleLocation()===`bottom`}get hasTitleOnLeftTop(){if(!this.hasTitle)return!1;let e=this.getTitleLocation();return e===`left`||e===`top`}getErrorLocation(){return this.errorLocation==="default"?this.parentQuestion?this.parentQuestion.getChildErrorLocation(this):this.parent?this.parent.getQuestionErrorLocation():this.survey?this.titleSettings.questionErrorLocation:`top`:this.errorLocation}getChildErrorLocation(e){return this.getErrorLocation()}get hasInput(){return!0}get hasSingleInput(){return this.hasInput&&!this.isContainer}get inputId(){return this.id+`i`}getDefaultTitleValue(){return this.name}getDefaultTitleTagName(){return G.titleTags.question}get hasDescriptionUnderTitle(){return this.getDescriptionLocation()==`underTitle`&&this.hasDescription}get hasDescriptionUnderInput(){return this.getDescriptionLocation()==`underInput`&&this.hasDescription}getDescriptionLocation(){return this.descriptionLocation==="default"?this.survey?this.titleSettings.questionDescriptionLocation:`underTitle`:this.descriptionLocation}needClickTitleFunction(){return super.needClickTitleFunction()||this.hasInput}processTitleClick(){if(super.processTitleClick(),!this.isCollapsed)return setTimeout(()=>{this.focus()},1),!0}get commentPlaceHolder(){return this.commentPlaceholder}set commentPlaceHolder(e){this.commentPlaceholder=e}get renderedCommentPlaceholder(){return this.getPropertyValue(`renderedCommentPlaceholder`)??(this.isReadOnly?void 0:this.commentPlaceholder)}resetRenderedCommentPlaceholder(){this.resetPropertyValue(`renderedCommentPlaceholder`)}getAllErrors(){return this.errors.slice()}getErrorByType(e){for(let t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null}
68get customWidget(){return!this.isCustomWidgetRequested&&!this.customWidgetValue&&(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue}updateCustomWidget(){this.customWidgetValue=AP.Instance.getCustomWidget(this)}localeChanged(){super.localeChanged(),this.resetRenderedCommentPlaceholder(),this.localeChangedCallback&&this.localeChangedCallback()}get isCompositeQuestion(){return!1}get isContainer(){return!1}onCommentInput(e){this.isInputTextUpdate&&e.target&&(this.comment=e.target.value)}onCommentChange(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)}afterRenderQuestionElement(e){!this.survey||!this.hasSingleInput||this.afterRenderCallbacks.afterRenderQuestionInput(this,e)}afterRender(e){this.afterRenderCore(e),this.survey&&(this.afterRenderCallbacks.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach(t=>{let n=e==null?void 0:e.querySelector(`#${t}`);n&&this.commentElements.push(n)})),this.checkForResponsiveness(e))}afterRenderCore(e){super.afterRenderCore(e)}getCommentElementsId(){return[this.commentId]}beforeDestroyQuestionElement(e){this.commentElements=void 0}get processedTitle(){return this.locProcessedTitle.textOrHtml||this.name}get fullTitle(){return this.locTitle.renderedHtml}get titlePattern(){return this.survey?this.titleSettings.questionTitlePattern:`numTitleRequire`}get isRequireTextOnStart(){return this.isRequired&&this.titlePattern==`requireNumTitle`}get isRequireTextBeforeTitle(){return this.isRequired&&this.titlePattern==`numRequireTitle`&&this.requiredMark!==``}get isRequireTextAfterTitle(){return this.isRequired&&this.titlePattern==`numTitleRequire`&&this.requiredMark!==``}calcCssClasses(e){let t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),t}onCalcCssClasses(e){super.onCalcCssClasses(e),this.survey&&this.cssCallbacks.updateQuestionCssClasses(this,e),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(e)}get cssRoot(){return this.ensureElementCss(),this.getPropertyValue(`cssRoot`,``)}setCssRoot(e){this.setPropertyValue(`cssRoot`,e)}getCssRoot(e){let t=this.hasCssError(!0);return new X().append(super.getCssRoot(e)).append(this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot).append(e.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(e.titleTopRoot,!this.isFlowLayout&&this.hasTitleOnTop).append(e.titleBottomRoot,!this.isFlowLayout&&this.hasTitleOnBottom).append(e.descriptionUnderInputRoot,!this.isFlowLayout&&this.hasDescriptionUnderInput).append(e.hasError,t).append(e.hasErrorTop,t&&this.getErrorLocation()==`top`).append(e.hasErrorBottom,t&&this.getErrorLocation()==`bottom`).append(e.small,!this.width).append(e.answered,this.isAnswered).append(e.noPointerEventsMode,this.isReadOnlyAttr).toString()}get cssHeader(){return this.ensureElementCss(),this.getPropertyValue(`cssHeader`,``)}setCssHeader(e){this.setPropertyValue(`cssHeader`,e)}getCssHeader(e){return new X().append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()}supportContainerQueries(){return!1}get cssContent(){return this.ensureElementCss(),this.getPropertyValue(`cssContent`,``)}setCssContent(e){this.setPropertyValue(`cssContent`,e)}getCssContent(e){return new X().append(e.content).append(e.contentSupportContainerQueries,this.supportContainerQueries()).append(e.contentLeft,this.hasTitleOnLeft).toString()}get cssTitle(){return this.ensureElementCss(),this.getPropertyValue(`cssTitle`,void 0,()=>this.getCssTitle(this.getCssClasses()))}resetCssTitle(){this.resetPropertyValue(`cssTitle`)}getCssTitle(e){return new X().append(super.getCssTitle(e)).append(e.singleInputTitle,!!this.singleInputQuestion).append(e.titleOnAnswer,!this.containsErrors&&this.isAnswered).append(e.titleEmpty,!this.title.trim()).toString()}get cssDescription(){return this.ensureElementCss(),this.getPropertyValue(`cssDescription`,``)}setCssDescription(e){this.setPropertyValue(`cssDescription`,e)}getCssDescription(e){return new X().append(e.description).append(e.descriptionUnderInput,this.getDescriptionLocation()==`underInput`).toString()}get showErrorsAboveQuestion(){return this.getErrorLocation()===`top`}get showErrorsBelowQuestion(){return this.getErrorLocation()===`bottom`}
68get cssError(){return this.ensureElementCss(),this.getPropertyValue(`cssError`,``)}setCssError(e){this.setPropertyValue(`cssError`,e)}getCssError(e){return new X().append(e.error.root).append(e.error.warningMode,this.currentNotificationType===`warning`).append(e.error.infoMode,this.currentNotificationType===`info`).append(e.errorsContainer).append(e.errorsContainerTop,this.showErrorsAboveQuestion).append(e.errorsContainerBottom,this.showErrorsBelowQuestion).toString()}hasCssError(e){let t=this.errors;for(let n=0;n<t.length;n++){let r=t[n];if(r.visible&&(e||r.isError))return!0}return this.hasCssErrorCallback()}updateVisibleErrors(){super.updateVisibleErrors(),this.updateQuestionCss()}get isSingleInputQuestionMode(){return!!this.parentQuestion&&this.isSingleInputMode}getIsNested(){return!this.isSingleInputQuestionMode&&super.getIsNested()}getHasFrameV2(){return this.isSingleInputQuestionMode?!0:super.getHasFrameV2()}getRootCss(){return new X().append(this.cssRoot,!this.singleInputQuestion).append(this.cssClasses.mobile,this.isMobile).append(this.cssClasses.readOnly,this.isReadOnlyStyle).append(this.cssClasses.disabled,this.isDisabledStyle).append(this.cssClasses.preview,this.isPreviewStyle).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()}getQuestionRootCss(){return new X().append(this.cssClasses.root).append(this.cssClasses.rootMobile,this.isMobile).toString()}updateElementCss(e){this.wasRendered?(super.updateElementCss(e),e&&this.updateQuestionCss()):this.clearCssClasses(),this.resetIndents()}updateQuestionCss(){this.isLoadingFromJson||!this.survey||this.isDisposed||this.wasRendered&&this.updateElementCssCore(this.cssClasses)}ensureElementCss(){this.cssClassesValue||this.updateQuestionCss()}getCssClasses(){return this.cssClasses}updateElementCssCore(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.resetCssTitle(),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))}updateCssClasses(e,t){if(!t.question)return;let n=t[this.getCssType()];e.title=new X().append(e.title).append(t.question.titleRequired,this.isRequired).toString();let r=new X().append(e.root).append(n,this.isRequired&&!!t.question.required);if(n==null)e.root=r.toString();else if(typeof n==`string`||n instanceof String)e.root=r.append(n.toString()).toString();else{e.root=r.toString();for(let t in n)e[t]=n[t]}}getCssType(){return this.getType()}get renderCssRoot(){return this.cssClasses.root||void 0}calcPaddingLeft(){return this.getIndentSize(this.indent)}calcPaddingRight(){return this.getIndentSize(this.rightIndent)}getIndentSize(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?``:e*this.cssClasses.indent+`px`}focus(e=!1,t){if(this.isDesignMode||!this.isVisible||this.isReadOnly||!this.survey)return;let n=this.page,r=!!n&&this.survey.activePage!==n,i=this.isSingleInputMode;if(r&&!i)this.survey.focusQuestionByInstance(this,e);else if(i)this.singleInputBehavior.focusSingleInput(e);else{this.expandAllParents();let n=this.survey.isSmoothScrollEnabled?{behavior:`smooth`}:void 0;this.survey.scrollElementToTop({element:this,question:this,id:this.id,scrollIfVisible:t,scrollIntoViewOptions:n,onScolledCallback:()=>{this.focusInputElement(e)}})}}focusInputElement(e){var t;let n=e?this.getFirstErrorInputElementId():this.getFirstInputElementId(),r=(t=this.survey)==null?void 0:t.rootElement;(DP.FocusElement(n,!1,r)||this.customWidget)&&this.fireCallback(this.focusCallback)}get isValidateVisitedEmptyFields(){return this.supportEmptyValidation()&&!!this.survey&&this.validationCallbacks.getValidateVisitedEmptyFields()&&this.isEmpty()}supportEmptyValidation(){return!1}onBlur(e){this.onBlurCore(e)}onFocus(e){this.onFocusCore(e)}onBlurCore(e){this.isFocusEmpty&&this.isEmpty()&&this.validate(!0)}onFocusCore(e){this.isFocusEmpty=this.isValidateVisitedEmptyFields}expandAllParents(){this.expandAllParentsCore(this)}expandAllParentsCore(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParentsCore(e.parent),this.expandAllParentsCore(e.parentQuestion))}focusIn(){!this.survey||this.isDisposed||this.isContainer||this.survey.whenQuestionFocusIn(this)}fireCallback(e){e&&e()}getOthersMaxLength(){return this.survey&&this.survey.maxCommentLength>0?this.survey.maxCommentLength:null}onCreating(){}getFirstQuestionToFocus(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null}getFirstInputElementId(){return this.inputId}getFirstErrorInputElementId(){return this.getFirstInputElementId()}supportComment(){let e=this.getPropertyByName(`showCommentArea`);return!e||e.visible}supportOther(){return!1}get showCommentArea(){return this.getPropertyValue(`showCommentArea`,!1)}set showCommentArea(e){this.supportComment()&&this.setPropertyValue(`showCommentArea`,e)}get hasComment(){return this.showCommentArea}set hasComment(e){this.showCommentArea=e}get ariaTitleId(){return this.id+`_ariaTitle`}get ariaDescriptionId(){return this.id+`_ariaDescription`}get commentId(){return this.id+`_comment`}get questionName(){return this.name+`_`+this.id}get requireUpdateCommentValue(){return this.showCommentArea}get isReadOnly(){let e=!!this.parent&&this.parent.isReadOnly,t=!!this.parentQuestion&&this.parentQuestion.isReadOnly,n=!!this.survey&&this.survey.isDisplayMode,r=!!this.readOnlyCallback&&this.readOnlyCallback();return this.readOnly||e||n||t||r}get isInputReadOnly(){return this.forceIsInputReadOnly===void 0?this.isReadOnly||this.isDesignMode:this.forceIsInputReadOnly}get renderedInputReadOnly(){return this.isInputReadOnly?``:void 0}get renderedInputDisabled(){return this.isInputReadOnly?``:void 0}get isReadOnlyAttr(){return this.isReadOnly}get isDisabledAttr(){return this.isDesignMode||!!this.readOnlyCallback&&this.readOnlyCallback()}onReadOnlyChanged(){this.setPropertyValue(`isInputReadOnly`,this.isInputReadOnly),super.onReadOnlyChanged(),this.isReadOnly&&this.clearErrors(),this.updateQuestionCss(),this.resetRenderedCommentPlaceholder()}surveyChoiceItemVisibilityChange(){}runCondition(e){this.isDesignMode||(e||(e={}),e.question=this,this.runConditionCore(e),!this.isValueChangedDirectly&&(!this.isClearValueOnHidden||this.isVisibleInSurvey)&&this.runDefaultValueExpression(e))}get isInDesignMode(){return!this.isContentElement&&this.isDesignMode}get no(){return this.getPropertyValue(`no`,void 0,()=>this.calcNo())}calcNo(){let e=``,t=this.getHasTitleOnCalcNo()&&this.showNumber&&this.visibleIndex>=0;
68return t&&(e=K.getNumberByIndex(this.visibleIndex,this.getStartIndex())),this.onGetNoCallback?this.onGetNoCallback(e):t?(this.parent&&(e=this.parent.addNoFromChild(e)),this.survey&&(e=this.titleSettings.getUpdatedQuestionNo(this,e)),e):e}getHasTitleOnCalcNo(){return this.hasTitle}onSurveyLoad(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey()}onSetData(){super.onSetData(),!this.isDesignMode&&this.survey&&!this.isLoadingFromJson&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.updateIsAnswered())}initDataFromSurvey(){if(this.data){let e=this.data.getValue(this.getValueName());(!K.isValueEmpty(e)||!this.isLoadingFromJson)&&this.updateValueFromSurvey(e),this.initCommentFromSurvey()}}initCommentFromSurvey(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey(``)}runExpression(e){if(!(!this.survey||!e))return this.survey.runExpression(e)}get commentAreaRows(){return this.survey&&this.survey.commentAreaRows}get autoGrowComment(){return this.survey&&this.survey.autoGrowComment}get allowResizeComment(){return this.survey&&this.survey.allowResizeComment}get questionValue(){return this.getPropertyValueWithoutDefault(`value`)}set questionValue(e){this.setPropertyValue(`value`,e)}get questionComment(){return this.getPropertyValueWithoutDefault(`comment`)}set questionComment(e){this.setPropertyValue(`comment`,e),this.fireCallback(this.commentChangedCallback)}get isValueArray(){return!1}get value(){return this.getValueCore()}set value(e){this.setNewValue(e)}getStructuredValue(e=-1){return this.value}get hasFilteredValue(){return!1}getFilteredValue(e){return this.value}getFilteredName(){return this.getValueName()}get valueForSurvey(){return this.valueForSurveyCore(this.value)}valueForSurveyCore(e){return this.valueToDataCallback?this.valueToDataCallback(e):e}valueFromDataCore(e){return this.valueFromDataCallback?this.valueFromDataCallback(e):e}clearValue(e,t){this.value!==void 0&&(this.value=void 0),this.comment&&e!==!0&&(this.comment=void 0),this.setValueChangedDirectly(t===!0),this.onClearValue()}onClearValue(){}clearValueFromUI(){this.clearValue(!0,!0)}clearValueOnly(){this.clearValue(!0)}unbindValue(){this.clearValue()}createValueCopy(){return this.getUnbindValue(this.value)}initDataUI(){}getUnbindValue(e){return this.isValueSurveyElement(e)?e:K.getUnbindValue(e)}isValueSurveyElement(e){return e?Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):e.isSurveyObj===!0:!1}canClearValueAsInvisible(e){return e===`onHiddenContainer`&&!this.isParentVisible?!0:this.isVisibleInSurvey||this.page&&this.page.isStartPage?!1:!this.survey||!this.survey.hasVisibleQuestionByValueName(this)}get isParentVisible(){if(this.parentQuestion&&!this.parentQuestion.isVisible)return!1;for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0}clearValueIfInvisible(e=`onHidden`){let t=this.getClearIfInvisible();t!==`none`&&(e!==`onHidden`||t!==`onComplete`)&&(e!==`onHiddenContainer`||t===e)&&this.clearValueIfInvisibleCore(e)}clearValueIfInvisibleCore(e){this.canClearValueAsInvisible(e)&&this.clearValue()}getClearIfInvisible(){let e=this.clearIfInvisible;return this.survey?this.survey.getQuestionClearIfInvisible(e):e==="default"?`onComplete`:e}get displayValue(){return this.isLoadingFromJson?``:this.getDisplayValue(!0)}getDisplayValue(e,t=void 0,n=!1){var r=this.calcDisplayValue(e,t,n);return this.survey&&(r=this.titleSettings.getQuestionDisplayValue(this,r)),this.displayValueCallback?this.displayValueCallback(r):r}calcDisplayValue(e,t=void 0,n=!1){if(this.customWidget){var r=this.customWidget.getDisplayValue(this,t);if(r)return r}return t=t??this.createValueCopy(),this.isValueEmpty(t)&&!this.locDefaultDisplayValue.isEmpty&&(t=this.defaultDisplayValue),this.isValueEmpty(t,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t,n)}getDisplayValueCore(e,t,n){return t}getDisplayValueEmpty(){return``}get defaultValue(){return this.getPropertyValue(`defaultValue`)}set defaultValue(e){if(this.isValueExpression(e)){this.defaultValueExpression=e.substring(1);return}this.setPropertyValue(`defaultValue`,this.valueToData(e)),this.updateV
68alueWithDefaults()}get defaultValueExpression(){return this.getPropertyValue(`defaultValueExpression`)}set defaultValueExpression(e){this.setPropertyValue(`defaultValueExpression`,e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()}get resizeStyle(){return this.allowResizeComment?`both`:`none`}getPlainData(e){if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var t={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:e=>this.getValueAsString(e)};return e.includeQuestionTypes===!0&&(t.questionType=this.getType()),(e.calculations||[]).forEach(e=>{t[e.propertyName]=this.getPlainDataCalculatedValue(e.propertyName)}),this.showCommentArea&&(t.isNode=!0,t.data=[{name:0,isComment:!0,title:`Comment`,value:G.commentSuffix,displayValue:this.comment,getString:e=>this.getValueAsString(e),isNode:!1}]),t}}getPlainDataCalculatedValue(e){return this[e]}get quizQuestionCount(){return this.isVisible&&this.hasInput&&this.hasCorrectAnswerValue()?this.getQuizQuestionCount():0}get correctAnswerCount(){return!this.isEmpty()&&this.hasCorrectAnswerValue()?this.getCorrectAnswerCount():0}hasCorrectAnswerValue(){return!this.isValueEmpty(this.getCorrectAnswerValue())}getQuizQuestionCount(){return 1}getCorrectAnswerCount(){return+!!this.checkIfAnswerCorrect()}getCorrectAnswerValue(){return this.correctAnswer}checkIfAnswerCorrect(){let e=K.isTwoValueEquals(this.value,this.getCorrectAnswerValue(),this.getAnswerCorrectIgnoreOrder(),G.comparator.caseSensitive,!0),t=+!!e,n=this.quizQuestionCount-t,r={result:e,correctAnswers:t,correctAnswerCount:t,incorrectAnswers:n,incorrectAnswerCount:n};return this.survey&&this.survey.onCorrectQuestionAnswer(this,r),r.result}getAnswerCorrectIgnoreOrder(){return!1}isAnswerCorrect(){return this.correctAnswerCount==this.quizQuestionCount}updateValueWithDefaults(){if(this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty())return;let e=this.isEmpty();!this.isDesignMode&&!e||e&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue()}get isValueDefault(){return!this.isEmpty()&&(this.isTwoValueEquals(this.defaultValue,this.value)||!this.isValueChangedDirectly&&!!this.defaultValueExpression)}get isClearValueOnHidden(){let e=this.getClearIfInvisible();return e===`none`||e===`onComplete`?!1:e===`onHidden`||e===`onHiddenContainer`}getQuestionFromArray(e,t){return null}getDefaultValue(){return this.defaultValue}isDefaultValueEmpty(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue,!this.allowSpaceAsAnswer)}setDefaultValue(){this.setDefaultValueCore(e=>{e=this.convertToCorrectValue(e),this.isTwoValueEquals(this.value,e)||this.setDefaultIntoValue(e)})}setDefaultIntoValue(e){this.value=e}setDefaultValueCore(e){let t=t=>{this.runExpressionSetValueCore(t,e)};this.runDefaultValueExpression(void 0,t)||t(this.getUnbindValue(this.defaultValue))}updateValueWithDefaultsOrClear(){this.isDesignMode||this.isLoadingFromJson||(this.isDefaultValueEmpty()?this.clearValue():this.setDefaultValue())}isValueExpression(e){return!!e&&typeof e==`string`&&e.length>0&&e[0]==`=`}convertFuncValuetoQuestionValue(e){return K.convertValToQuestionVal(e)}runExpressionSetValueCore(e,t){t(this.convertFuncValuetoQuestionValue(e))}runExpressionSetValue(e){this.runExpressionSetValueCore(e,e=>{this.isTwoValueEquals(this.value,e)||(this.startSetValueOnExpression(),this.value=e,this.finishSetValueOnExpression())})}startSetValueOnExpression(){var e;(e=this.survey)==null||e.startSetValueOnExpression()}finishSetValueOnExpression(){var e;(e=this.survey)==null||e.finishSetValueOnExpression()}runDefaultValueExpression(e=null,t){return this.data?(t||(t=e=>{this.runExpressionSetValue(e)}),e||(e=this.defaultValueExpression?this.data.getFilteredProperties():{},e.question=this),this.runExpressionByProperty(`defaultValueExpression`,e,e=>{e??(e=this.defaultValue),this.isChangingViaDefaultValue=!0,t(e),this.isChangingViaDefaultValue=!1})):!1}get comment(){return this.getQuestionComment()}set comment(e){e=this.getTrimmedComment(e),this.comment!==e&&this.setNewComment(e)}getTrimmedComment(e){return typeof e==`string`&&!e.trim()?``:e}getCommentAreaCss(e=!1){return new X().append(`form-group`,e).append(this.cssClasse
68s.formGroup,!e).append(this.cssClasses.commentArea).append(this.cssClasses.otherArea,e).toString()}getQuestionComment(){return this.questionComment}isEmpty(){return this.isValueEmpty(this.value,!this.allowSpaceAsAnswer)}updateIsAnswered(){let e=this.isAnswered;this.setPropertyValue(`isAnswered`,this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()}getIsAnswered(){return!this.isEmpty()}get validators(){return this.getArrayPropertyValue(`validators`,e=>{e.owner=this,this.resetValidationDependencies()},e=>{this.resetValidationDependencies()})}set validators(e){this.setArrayPropertyValue(`validators`,e)}getValidators(){return this.validators}getSupportedValidators(){let e=[],t=this.getType();for(;t;){let n=G.supportedValidators[t];if(n)for(let t=n.length-1;t>=0;t--)e.splice(0,0,n[t]);t=J.findClass(t).parentName}return e}addConditionObjectsByContext(e,t){e.push({name:this.getFilteredName(),text:this.processedTitle,question:this})}getNestedQuestions(e=!1,t=!0,n=!1){let r=[];return this.collectNestedQuestions(r,e,t,n),!n&&r.length===1&&r[0]===this?[]:r}collectNestedQuestions(e,t=!1,n=!0,r=!1){t&&!this.isVisible||this.collectNestedQuestionsCore(e,t,n,r)}collectNestedQuestionsCore(e,t,n,r){e.push(this)}addNestedQuestion(e,t,n,r){n?this.collectNestedQuestions(e,t,n,r):(!t||this.isVisible)&&e.push(this)}getConditionJson(e=null,t=null){let n=new Pj().toJsonObject(this);return n.type=this.getType(),n}hasErrors(e=!0,t=!1){return!this.validateCore(e,!1,t)}validate(e=!0,t=!1,n=!1,r,i){return this.validateCore(e,!0,t,n,r,i)}validateCore(e,t,n=!1,r=!1,i,a){t&&r&&this.parent&&this.parent.validateContainerOnly();let o=new RP({isOnValueChanged:r,isOnValueChanging:a,focusOnFirstError:n,fireCallback:e,callbackResult:i});return this.validateElement(o),o.finish(),o.runningResult}validateElement(e){return this.validateElementCore(e)}validateElementCore(e){let t=this.checkForErrors(e);return e.fireCallback&&(this.errors=t,this.errors!==t&&this.errors.forEach(e=>e.locText.strChanged())),e.setErrorElement(this,t),this.updateContainsErrors(),this.isCollapsed&&e.fireCallback&&t.length>0&&this.expand(),t.length===0}get currentErrorCount(){return this.errors.length}get requiredMark(){return this.survey!=null&&this.isRequired?this.titleSettings.requiredMark:``}get requiredText(){return this.requiredMark}addError(e){if(!e)return;let t=null;t=typeof e==`string`||e instanceof String?this.addCustomError(e):e,this.errors.push(t)}addCustomError(e){return new dN(e,this.survey)}removeError(e){if(!e)return!1;let t=this.errors,n=t.indexOf(e);return n!==-1&&t.splice(n,1),n!==-1}checkForErrors(e){var t=[];if(this.isVisible&&this.canCollectErrors()&&this.collectErrors(t,e),this.survey){if
68(this.validateValueCallback&&t.length===0){let e=this.validateValueCallback();e&&t.push(e)}this.validationCallbacks.validateQuestion(this,t,e.fireCallback)}return t}canCollectErrors(){return!this.isReadOnly||G.readOnly.enableValidation}collectErrors(e,t){if(this.onCheckForErrors(e,t.isOnValueChanged,t.fireCallback),e.length>0||!this.canRunValidators(t.isOnValueChanged))return;let n=this.runValidators(t);if(n.length>0){e.length=0;for(var r=0;r<n.length;r++)e.push(n[r])}}canRunValidators(e){return!0}onCheckForErrors(e,t,n){if((!t||this.isOldAnswered)&&this.hasRequiredError()){let t=new ZM(this.requiredErrorText,this);t.onUpdateErrorTextCallback=e=>{e.text=this.requiredErrorText},e.push(t)}if(!this.isEmpty()&&this.customWidget){let t=this.customWidget.validate(this);t&&e.push(this.addCustomError(t))}}hasRequiredError(){return this.isRequired&&this.isEmpty()}get isRunningValidators(){return this.getIsRunningValidators()}getIsRunningValidators(){return!!this.validatorRunner}runValidators(e){return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new vN,this.validatorRunner.onAsyncCompleted=t=>{this.doOnAsyncCompleted(e.fireCallback,t),e.setErrorElement(this,t),e.removeElement(this.id)},e.addElement(this.id),this.validatorRunner.run(this)}doOnAsyncCompleted(e,t){e&&t.forEach(e=>{this.errors.indexOf(e)<0&&this.errors.push(e)}),this.validatorRunner=null}setNewValue(e){if(this.survey&&(e=this.survey.questionValueChanging(this,e)),this.isNewValueEqualsToValue(e)||!this.checkIsValueCorrect(e))return;let t=this.getUnbindValue(this.value);this.isOldAnswered=this.isAnswered,this.isSettingQuestionValue=!0,this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isSettingQuestionValue=!1,this.isAnswered!==this.isOldAnswered&&this.updateQuestionCss(),this.isOldAnswered=void 0,this.survey&&this.survey.questionValueChanged(this,t)}getValueChangingOptions(e){}checkIsValueCorrect(e){let t=this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e);return t||Gj.inCorrectQuestionValue(this.name,e),t}isNewValueCorrect(e){return!0}isNewValueEqualsToValue(e){let t=this.value;return this.isTwoValueEquals(e,t,!1,!1)?!(e===t&&t&&(Array.isArray(t)||typeof t==`object`)):!1}isTextValue(){return!1}getIsInputTextUpdate(){return this.survey?this.survey.isUpdateValueTextOnTyping:!1}get requireStrictCompare(){return!1}getExpressionValue(e){return e}getDataLocNotification(){return this.isInputTextUpdate?`text`:!1}get isInputTextUpdate(){return this.getIsInputTextUpdate()&&this.isTextValue()}setNewValueInData(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)}getValueCore(){return this.questionValue}setValueCore(e){this.setQuestionValue(e),this.data!=null&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged,this.name)),this.isMouseDown=!1}canSetValueToSurvey(){return!0}valueFromData(e){return e}valueToData(e){return e}convertToCorrectValue(e){return e}onValueChanged(){}onMouseDown(){this.isMouseDown=!0}setNewComment(e){if(this.questionComment===e||(!this.isUpdatingValueFromSurvey&&this.survey&&(e=this.survey.questionValueChanging(this,e,!0)),this.questionComment===e))return;let t=this.questionComment;this.questionComment=e,this.setCommentIntoData(e),!this.isUpdatingValueFromSurvey&&this.survey&&this.survey.questionValueChanged(this,t,!0)}setCommentIntoData(e){this.data!=null&&this.data.setComment(this.getValueName(),e,this.getIsInputTextUpdate()?`text`:!1)}getValidName(e){return BP(super.getValidName(e))}updateValueFromSurvey(e,t=!1){if(e=this.getUnbindValue(e),e=this.valueFromDataCore(e),!this.checkIsValueCorrect(e))return;let n=this.isValueEmpty(e);this.isUpdatingValueFromSurvey=!0,!n&&this.defaultValueExpression?this.setDefaultValueCore(t=>{this.updateValueFromSurveyCore(e,this.isTwoValueEquals(e,t))}):(this.updateValueFromSurveyCore(e,this.data!==this.getSurvey()),t&&n&&(this.isValueChangedDirectly=!1),n&&this.updateBindingsOnClearFromSurveyCore()),this.isUpdatingValueFromSurvey=!1,this.updateDependedQuestions(),this.updateIsAnswered()}canUpdateBindings(){return!this.isUpdatingValueFromSurvey}updateBindingsOnClearFromSurveyCore(){let e=this.data;
68e&&!this.isBindingEmpty()&&this.bindings.getNames().forEach(t=>{let n=this.bindings.getValueNameByPropertyName(t),r=e.getValue(n);this.isValueEmpty(r)||this.updateBindingProp(t,r)})}updateValueFromSurveyCore(e,t){this.isChangingViaDefaultValue=t,e=this.valueFromData(e);let n=this.isTwoValueEquals(this.questionValue,this.convertToCorrectValue(e));this.setQuestionValue(e),n||(this.resetSingleInput(),this.revalidateOnValueChangedFromSurvey()),this.isChangingViaDefaultValue=!1}revalidateOnValueChangedFromSurvey(){if(!this.survey||this.isLoadingFromJson||!this.survey.isSettingData()||this.getAllErrors().length===0)return;let e=this.validationCallbacks.isValidateOnValueChanging;this.validate(!0,!1,!e,void 0,e)}updateCommentFromSurvey(e){this.questionComment=e}onChangeQuestionValue(e){}setValueChangedDirectly(e){this.isValueChangedDirectly=e,this.setValueChangedDirectlyCallback&&this.setValueChangedDirectlyCallback(e)}setQuestionValue(e,t=!0){e=this.convertToCorrectValue(e);let n=this.isTwoValueEquals(this.questionValue,e);!n&&!this.isChangingViaDefaultValue&&!this.isParentChangingViaDefaultValue&&this.setValueChangedDirectly(!0),this.questionValue=e,n||this.onChangeQuestionValue(e),!n&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()}get isParentChangingViaDefaultValue(){var e;return((e=this.data)==null?void 0:e.isChangingViaDefaultValue)===!0}onSurveyValueChanged(e){}setVisibleIndex(e){return this.isVisibleIndexNegative(e)&&(e=-1),this.setPropertyValue(`visibleIndex`,e),this.resetPropertyValue(`no`),e<0?0:1}isVisibleIndexNegative(e){return e<0||!this.isVisible||!this.getHasTitleOnCalcNo()&&!G.numbering.includeQuestionsWithHiddenTitle||!this.showNumber&&!G.numbering.includeQuestionsWithHiddenNumber}removeElement(e){return!1}supportGoNextPageAutomatic(){return this.supportAutoAdvance()}supportAutoAdvance(){return!1}supportGoNextPageError(){return!0}clearIncorrectValues(){}clearOnDeletingContainer(){}clearErrors(){this.errors=[]}clearUnusedValues(){}onAnyValueChanged(e,t){this.validateOnAnyQuestionValueChanged(e,t)}checkBindings(e,t){if(!(this.bindings.isEmpty()||!this.data))for(var n=this.bindings.getPropertiesByValueName(e),r=0;r<n.length;r++){let e=n[r];this.isValueEmpty(t)&&K.isNumber(this[e])&&(t=0),this.updateBindingProp(e,t)}}updateBindingProp(e,t){this[e]=t}getComponentName(){return jP.Instance.getRendererByQuestion(this)}isDefaultRendering(){return!!this.customWidget||this.getComponentName()==="default"}getErrorCustomText(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e}createRegexValidator(e,t,n){var r;return((r=this.survey)==null?void 0:r.createRegexValidator(this,e,t,n))||new RegExp(t,n)}getValidatorTitle(){return null}get validatedValue(){return this.value}set validatedValue(e){this.value=e}processPopupVisiblilityChanged(e,t){this.survey.processPopupVisiblityChanged(this,e,t)}processOpenDropdownMenu(e){this.survey.processOpenDropdownMenu(this,e)}onTextKeyDownHandler(e){e.keyCode===13&&this.survey.questionEditFinishCallback(this,e)}transformToMobileView(){}transformToDesktopView(){}needResponsiveWidth(){return!1}supportResponsiveness(){return!1}needResponsiveness(){return this.supportResponsiveness()&&!this.isDesignMode}checkForResponsiveness(e){this.needResponsiveness()&&(this.isCollapsed?this.registerPropertyChangedHandlers([`state`],()=>{this.isExpanded&&(this.initResponsiveness(e),this.unregisterPropertyChangedHandlers([`state`],`for-responsiveness`))},`for-responsiveness`):this.initResponsiveness(e))}getObservedElementSelector(){return`.sd-scrollable-container`}onMobileChanged(){this.onMobileChangedCallback&&this.onMobileChangedCallback()}triggerResponsiveness(e=!0){this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)}initResponsiveness(e){if(nj.isAvailable()&&(this.destroyResizeObserver(),e&&this.isDefaultRendering())){let t=this.getObservedElementSelector();if(!t||!e.querySelector(t))return;let n=!1,r;this.triggerResponsivenessCallback=i=>{i&&(r=void 0,this.renderAs=`default`,n=!1);let a=()=>{let i=e.querySelector(t);if(this.isDefaultRendering()&&(r=i.scrollWidth),n||!BN(i))n=!1;else{let e=zN(i);n=this.processResponsiveness(r,e)}};i?setTimeout(a,1):a()},this.resizeObserver=new ResizeObserver(e=>{tj.requestAnimationFrame(()=>{this.triggerResponsiveness(!1)})}),this.onMobileChangedCallback=()=>{setTimeout(()=>{let n=e.querySelector(t);this.processResponsiveness(r,zN(n))},0)},this.resizeObserver.observe(e)}}getCompactRenderAs(){return`default`}getDesktopRenderAs(){return`default`}onBeforeSetCompactRenderer(){}onBeforeSetDesktopRenderer(){}processResponsiveness(e,t){if(t=Math.round(t),Math.abs(e-t)>2){let n=this.renderAs;return e>t?(this.onBeforeSetCompactRenderer(),this.renderAs=this.getCompactRenderAs()):(this.onBeforeSetDesktopRenderer(),this.renderAs=this.getDesktopRenderAs()),n!==this.renderAs}return!1}destroyResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.triggerResponsivenessCallback=void 0,this.renderAs=this.getDesktopRenderAs())}dispose(){super.dispose(),this.resetDependedQuestions(),this.destroyResizeObserver()}resetDependedQuestions(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].resetDependedQuestion()}getValidatorVariableNames(){let e=[],t=this.getPropertyValue(`validators`);if(!Array.isArray(t)||t.length===0)return e;let n=this.getValueName(),r=G.expressionVariables.panel+`.`+n,i=G.expressionVariables.row+`.`+n;for(let a=0;a<t.length;a++){let o=t[a];if(o.getType()===`expressionvalidator`&&o.expression){let t=new Wj(o.expression).getVariables();for(let a=0;a<t.length;a++){let o=t[a];o!==n&&o!==r&&o!==i&&e.indexOf(o)<0&&e.push(o)}}}return e}getValidationDependentNames(){return this.validationDependentNames||(this.validationDependentNames=this.getValidatorVariableNames()),this.validationDependentNames}validateOnAnyQuestionValueChanged(e,t){if(!this.survey)return;let n=this.getValidationDependentNames();if(n.length===0)return;let r=e+`.`;if(n.indexOf(e)<0&&!n.some(e=>e.indexOf(r)===0))return;let i=this.getAllErrors().length>0;if(!i&&this.validationCallbacks.isValidateOnValueChanged){let e=this.data.findQuestionByName(t);i=!e||e.getAllErrors().length==0}i&&this.validate(!0,!1,!0)}resetValidationDependencies(){this.validationDependentNames=void 0}get isNewA11yStructure(){return!1}get ariaLabel(){return this.isNewA11yStructure||this.hasTitle&&!this.parentQuestion?null:this.locTitle.renderedHtml}get ariaRole(){return this.isNewA11yStructure?null:`textbox`}get ariaRequired(){return this.isNewA11yStructure?null:this.isRequired?`true`:`false`}get ariaInvalid(){return this.isNewA11yStructure?null:this.hasCssError()?`true`:`false`}get ariaLabelledBy(){return this.isNewA11yStructure||!this.hasTitle||this.parentQuestion?null:this.ariaTitleId}get ariaDescribedBy(){return this.isNewA11yStructure?null:this.hasTitle&&this.hasDescription&&this.getDescriptionLocation()!==`hidden`?this.ariaDescriptionId:null}getContentAriaHidden(){return null}get contentAriaHidden(){return this.getContentAriaHidden()}get ariaErrormessage(){return this.isNewA11yStructure?null:this.hasCssError()?this.id+`_errors`:null}get a11y_input_ariaRole(){return null}get a11y_input_ariaRequired(){return this.isRequired?`true`:`false`}get a11y_input_ariaInvalid(){return this.hasCssError()?`true`:`false`}get a11y_input_ariaLabel(){return this.hasTitle&&!this.parentQuestion?null:this.locTitle.renderedHtml}get a11y_input_ariaLabelledBy(){return this.hasTitle&&!this.parentQuestion?this.ariaTitleId:null}get a11y_input_ariaDescribedBy(){let e=null;return this.hasCssError()?e=this.id+`_errors`:this.hasTitle&&!this.parentQuestion&&this.hasDescription&&this.getDescriptionLocation()!==`hidden`&&(e=this.ariaDescriptionId),e}get a11y_input_ariaErrormessage(){return null}get a11y_input_ariaExpanded(){return this.getPropertyValue(`ariaExpanded`)}get dragDropMatrixAttribute(){return null}};q([Y({defaultValue:!1})],zP.prototype,`_isMobile`,void 0),q([Y()],zP.prototype,`forceIsInputReadOnly`,void 0),q([Y({onSet:(e,t)=>{t.onVisibleChangedCore(),t.notifySurveyVisibilityChanged()}})],zP.prototype,`visible`,void 0),q([Y()],zP.prototype,`useDisplayValuesInDynamicTexts`,void 0),q([Y()],zP.prototype,`visibleIf`,void 0),q([Y()],zP.prototype,`showNumber`,void 0),q([Y()],zP.prototype,`errorLocation`,void 0),q([Y()],zP.prototype,`descriptionLocation`,void 0),q([Y({localizable:!0})],zP.prototype,`requiredErrorText`,void 0),q([Y({localizable:{defaultStr:!0,markdown:!0}})],zP.prototype,`commentText`,void 0),q([Y({localizable:!0})],zP.prototype,`commentPlaceholder`,void 0),q([Y({localizable:!0})],zP.prototype,`defaultDisplayValue`,void 0),q([Y()],zP.prototype,`startWithNewLine`,void 0),q([Y()],zP.prototype,`isRequired`,void 0),q([Y()],zP.prototype,`requiredIf`,void 0),q([Y()],zP.prototype,`id`,void 0),q([Y()],zP.prototype,`enableIf`,void 0),q([Y()],zP.prototype,`clearIfInvisible`,void 0),q([Y()],zP.prototype,`resetValueIf`,void 0),q([Y()],zP.prototype,`setValueIf`,void 0),q([Y()],zP.prototype,`setValueExpression`,void 0),q([Y({onSetting:(e,t)=>
68t.valueToData(e)})],zP.prototype,`correctAnswer`,void 0),q([Y({returnValue:!1})],zP.prototype,`isAnswered`,void 0),q([Y()],zP.prototype,`renderAs`,void 0),q([Y({defaultValue:!1})],zP.prototype,`inMatrixMode`,void 0),q([Y()],zP.prototype,`randomize`,void 0),q([Y()],zP.prototype,`randomizeCategory`,void 0);function BP(e){if(!e)return e;for(e=e.trim().replace(/[\{\}]+/g,``);e&&e[0]===G.expressionDisableConversionChar;)e=e.substring(1);return e}J.addClass(`question`,[{name:`!name`,onSettingValue:(e,t)=>BP(t)},{name:`state`,default:`default`,choices:[`default`,`collapsed`,`expanded`]},{name:`visible:switch`,default:!0,overridingProperty:`visibleIf`},{name:`useDisplayValuesInDynamicTexts:boolean`,alternativeName:`useDisplayValuesInTitle`,default:!0,layout:`row`},`visibleIf:condition`,{name:`width`},{name:`minWidth`,defaultFunc:()=>G.minWidth},{name:`maxWidth`,defaultFunc:()=>G.maxWidth,onSettingValue:(e,t)=>t||void 0},{name:`colSpan:number`,visible:!1,onSerializeValue:e=>e.getPropertyValue(`colSpan`)},{name:`effectiveColSpan:number`,minValue:1,isSerializable:!1,visibleIf:function(e){return!!e&&!!e.survey&&e.survey.gridLayoutEnabled}},{name:`startWithNewLine:boolean`,default:!0,layout:`row`},{name:`indent:number`,default:0,choices:[0,1,2,3],layout:`row`},{name:`page`,isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map(e=>({value:e.name,text:e.title})):[]}},{name:`title:text`,serializationProperty:`locTitle`,layout:`row`,depen
68dsOn:`name`,onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.locTitle.getPlaceholder())}},{name:`titleLocation`,default:`default`,choices:[`default`,`top`,`bottom`,`left`,`hidden`],layout:`row`},{name:`showTitle:boolean`,isSerializable:!1,dependsOn:`titleLocation`},{name:`description:text`,serializationProperty:`locDescription`,layout:`row`},{name:`descriptionLocation`,default:`default`,choices:[`default`,`underInput`,`underTitle`,`hidden`]},{name:`showNumber:boolean`,dependsOn:`titleLocation`,default:!0,visibleIf:function(e){if(!e)return!0;if(e.titleLocation===`hidden`)return!1;var t=e?e.parent:null;if(!(!t||t.showQuestionNumbers!==`off`))return!1;var n=e?e.survey:null;return!n||n.showQuestionNumbers!==`off`||!!t&&t.showQuestionNumbers===`onpanel`}},{name:`hideNumber:boolean`,visible:!1,isSerializable:!1},{name:`valueName`,onSettingValue:(e,t)=>BP(t)},`enableIf:condition`,`resetValueIf:condition`,`setValueIf:condition`,`setValueExpression:expression`,`defaultValue:value`,`defaultValueExpression:expression`,`correctAnswer:value`,{name:`clearIfInvisible`,default:`default`,choices:[`default`,`none`,`onComplete`,`onHidden`,`onHiddenContainer`]},{name:`isRequired:switch`,overridingProperty:`requiredIf`},`requiredIf:condition`,{name:`requiredErrorText:text`,serializationProperty:`locRequiredErrorText`},{name:`errorLocation`,default:`default`,choices:[`default`,`top`,`bottom`]},{name:`readOnly:switch`,overridingProperty:`enableIf`},{name:`validators:validators`,baseClassName:`surveyvalidator`,classNamePart:`validator`},{name:`bindings:bindings`,serializationProperty:`bindings`,isSerializableFunc:e=>!e.isBindingEmpty(),visibleIf:function(e){return e.bindings.getNames().length>0}},{name:`renderAs`,default:`default`,visible:!1},{name:`showCommentArea:switch`,visible:!1,layout:`row`,alternativeName:`hasComment`},{name:`commentText`,dependsOn:`showCommentArea`,visibleIf:function(e){return e.showCommentArea},serializationProperty:`locCommentText`},{name:`commentPlaceholder`,alternativeName:`commentPlaceHolder`,serializationProperty:`locCommentPlaceholder`,dependsOn:`showCommentArea`,visibleIf:function(e){return e.showCommentArea}},{name:`defaultDisplayValue`,serializationProperty:`locDefaultDisplayValue`},{name:`randomize:boolean`,default:!0,visible:!1,locationInTable:`detail`},{name:`randomizeCategory:string`,visible:!1,locationInTable:`detail`}]),J.addAlterNativeClassName(`question`,`questionbase`);var VP=class{constructor(e){this.item=e}getObj(){return this.item}getValue(e){let t=e.path,n=t.length>0?t[0].name.toLocaleLowerCase():``,r=G.expressionVariables,i=[r.item,r.choice,r.self].indexOf(n)>-1;if(t.length===1&&i)return{isFound:!0,value:this.item.value,context:this};if(e.isProperty&&t.length>1&&i)return e.path=t.slice(1),new Rj(this.item).getValue(e);let a=this.item.locOwner;if(a&&a.getValueGetterContext)return a.getValueGetterContext().getValue(e)}getRootObj(){let e=this.item.locOwner;return e&&e.getValueGetterContext?e:this.item.getSurvey()}getTextValue(e,t,n){return n&&t===this.item.value?this.item.textOrHtml:t==null?``:t.toString()}},HP=class e extends ON{getMarkdownHtml(e,t,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,t,n||this):void 0}getRenderer(e){return this.locOwner?this.locOwner.getRenderer(e,this):null}getRendererContext(e){return this.locOwner?this.locOwner.getRendererContext(e,this):e}getProcessedText(e){return this.locOwner?this.locOwner.getProcessedText(e,this):e}static get Separator(){return G.itemValueSeparator}static set Separator(e){G.itemValueSeparator=e}static setData(e,t,n){e.length=0;for(let r=0;r<t.length;r++){let i=t[r],a=i&&typeof i.getType==`function`?i.getType():n??`itemvalue`,o=J.createClass(a);o.setData(i),i.originalItem&&(o.originalItem=i.originalItem),i.data&&(o.data=i.data),e.push(o)}}static getData(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].getData());return t}getOwner(){return this.locOwner||super.getOwner()}static getItemByValue(e,t){if(!Array.isArray(e))return null;let n=K.isValueEmpty(t);for(var r=0;r<e.length;r++)if(n&&K.isValueEmpty(e[r].value)||K.isTwoValueEquals(e[r].value,t,!1,!0,!1))return e[r];return null}static getTextOrHtmlByValue(t,n){var r=e.getItemByValue(t,n);return r===null?``:r.textOrHtml}static locStrsChanged(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()}
68static runConditionsForItems(t,n,r,i,a=!0,o){return e.runConditionsForItemsCore(t,n,r,i,!0,a,o)}static runEnabledConditionsForItems(t,n,r,i){return e.runConditionsForItemsCore(t,null,n,r,!1,!0,i)}static runConditionsForItemsCore(e,t,n,r,i,a=!0,o){for(var s=!1,c=0;c<e.length;c++){var l=e[c],u=a&&l.getConditionRunner?l.getConditionRunner(i):!1;u||(u=n);var d=!0;u&&(d=u.runContext(l.getValueGetterContext(),r)),o&&(d=o(l,d)),t&&d&&t.push(l);var f=i?l.isVisible:l.isEnabled;d!=f&&(s=!0,i?l.setIsVisible&&l.setIsVisible(d):l.setIsEnabled&&l.setIsEnabled(d))}return s}constructor(e,t,n){super(),this.typeName=n,this.ownerPropertyName=``,t&&(this.locText.text=t),e&&typeof e==`object`?this.setData(e,!0):this.setValue(e,!0),this.getType()!=this.getBaseType()&&Cj.createProperties(this)}getType(){return this.typeName||this.getBaseType()}getBaseType(){return`itemvalue`}getSurvey(e=!1){return this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null}getLocale(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():``}getLocalizableString(e){return e===`text`?this.locText:super.getLocalizableString(e)}getValueGetterContext(){return new VP(this)}get isInternal(){return this.isGhost===!0}createLocText(){let e=this.createLocalizableStringCore(this,`text`,!0,`text`);return e.onGetTextCallback=e=>this.onGetText(e),e}onGetText(e){return e||this.getValueText()}getValueText(){let e=this.value;return K.isValueEmpty(e)?null:e.toString()}get locText(){return this.getLocText()}getLocText(){return this.locTextValue||(this.locTextValue=this.createLocText()),this.locTextValue}setLocText(e){this.locTextValue=e}get locOwner(){return this._locOwner}set locOwner(e){this._locOwner=e,this.onLocOwnerChanged()}onLocOwnerChanged(){}onDependencyValueChanged(e,t){let n=this.locOwner;n&&n.onDependencyValueChanged?n.onDependencyValueChanged(e,t):super.onDependencyValueChanged(e,t)}get value(){return this.getPropertyValue(`value`)}set value(e){this.setValue(e,!1)}setValue(e,t){let n;e=this.getCorrectValue(e);let r=G.itemValueSeparator;if(r&&!K.isValueEmpty(e)){var i=e.toString(),a=i.indexOf(r);a>-1&&(e=i.slice(0,a),n=i.slice(a+1))}t?this.setPropertyValueDirectly(`value`,e):this.setPropertyValue(`value`,e),n&&(this.text=n),this.id=this.value}getCorrectValue(e){return e}get hasText(){return!!this.pureText}get pureText(){var e;return((e=this.locTextValue)==null?void 0:e.pureText)||``}set pureText(e){this.text=e}get text(){return this.calculatedText}set text(e){this.locText.text=e}get textOrHtml(){return this.locTextValue?this.locText.textOrHtml:this.getValueText()}get calculatedText(){return this.locTextValue?this.locText.calculatedText:this.getValueText()}get shortcutText(){return this.text}canSerializeValue(){let e=this.value;return e!=null&&!Array.isArray(e)&&typeof e!=`object`}getData(e){var t=this.toJSON(e);if(t.value&&t.value.pos&&delete t.value.pos,K.isValueEmpty(t.value))return t;let n=this.canSerializeValue();return(!n||!G.serialization.itemValueSerializeAsObject&&!G.serialization.itemValueSerializeDisplayText)&&Object.keys(t).length==1?this.value:(G.serialization.itemValueSerializeDisplayText&&t.text===void 0&&n&&(t.text=this.value.toString()),t)}toJSON(e){var t={},n=J.getProperties(this.getType());(!n||n.length==0)&&(n=J.getProperties(this.getBaseType()));for(var r=new Pj,i=0;i<n.length;i++){let a=n[i];this.canAddPpropertyToJSON(a)&&r.valueToJson(this,t,a,e)}return t}isPropertyStoredInHash(e){return e!==`text`}canAddPpropertyToJSON(e){return!(e.name===`text`&&(!this.locTextValue||!this.locTextValue.hasNonDefaultText()&&K.isTwoValueEquals(this.value,this.locTextValue.getLocaleText(``),!1,!0,!1)))}setData(e,t){var n;if(!K.isValueEmpty(e)){if(e.value===void 0&&e.text!==void 0&&Object.keys(e).length===1&&(e.value=e.text),e.value!==void 0){let t;if(typeof e.toJSON==`function`)t=e.toJSON();else if(Array.isArray(e.elements))for(var r in t={},e)r!==`elements`&&(t[r]=e[r]);else t=e;new Pj().toObject(t,this)}else this.setValue(e,t);t||(n=this.locTextValue)==null||n.strChanged()}}get visibleIf(){return this.getPropertyValueWithoutDefault(`visibleIf`)||``}set visibleIf(e){this.setPropertyValue(`visibleIf`,e)}get enableIf(){return this.getPropertyValueWithoutDefault(`enableIf`)||``}set enableIf(e){this.setPropertyValue(`enableIf`,e)}get isVisible(){let e=this.getPropertyValueWithoutDefault(`isVisible`);return e===void 0||e}setIsVisible(e){this.setPropertyValue(`isVisible`,e)}get isEnabled(){let e=this.getPropertyValueWithoutDefault(`isEnabled`);return e===void 0||e}setIsEnabled(e){this.setPropertyValue(`isEnabled`,e)}onPropertyValueChanged(e,t,n){var r;e===`value`&&!this.hasText&&((r=this.locTextValue)==null||r.strChanged());var i=`itemValuePropertyChanged`;!this.locOwner||!this.locOwner[i]||this.locOwner[i](this,e,t,n)}getConditionRunner(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()}getVisibleConditionRunner(){let e=this.getExpressionFromSurvey(`visibleIf`);return e?(this.visibleConditionRunner||(this.visibleConditionRunner=new Jj(e)),this.visibleConditionRunner.expression=e,this.visibleConditionRunner):null}getEnableConditionRunner(){let e=this.getExpressionFromSurvey(`enableIf`);return e?(this.enableConditionRunner||(this.enableConditionRunner=new Jj(e)),this.enableConditionRunner.expression=e,this.enableConditionRunner):null}get selected(){let e=this._locOwner;return e instanceof zP&&e.isItemSelected&&this.selectedValue===void 0&&(this.selectedValue=new KM(()=>e.isItemSelected(this))),this.selectedValue}getComponent(){return this._locOwner instanceof zP?this.componentValue||this._locOwner.itemComponent:this.componentValue}setComponent(e){this.componentValue=e}setRootElement(e){this._htmlElement=e}getRootElement(){return this._htmlElement}getEnabled(){return this.isEnabled}setEnabled(e){this.setIsEnabled(e)}getVisible(){let e=this.isVisible===void 0||this.isVisible,t=this._visible===void 0||this._visible;return e&&t}setVisible(e){this.visible!==e&&(this._visible=e)}get _visible(){return this.getPropertyValue(`visible`,!0)}set _visible(e){this.setPropertyValue(`visible`,e)}getLocTitle(){return this.locText}getTitle(){return this.text}setLocTitle(e){}setTitle(e){}};q([Y()],HP.prototype,`selectedValue`,void 0),q([Y({defaultValue:``})],HP.prototype,`icon`,void 0),q([Y()],HP.prototype,`randomize`,void 0),q([Y()],HP.prototype,`randomizeCategory`,void 0),qM.createItemValue=function(e,t){var n=null;return n=t?Pj.metaData.createClass(t,{}):typeof e.getType==`function`?new HP(null,void 0,e.getType()):new HP(null),n.setData(e),n},qM.itemValueLocStrChanged=function(e){HP.locStrsChanged(e)}
68,Sj.getItemValuesDefaultValue=(e,t)=>{let n=[];return HP.setData(n,Array.isArray(e)?e:[],t),n},J.addClass(`itemvalue`,[{name:`!value`,isUnique:!0},{name:`text`,serializationProperty:`locText`},{name:`visibleIf:condition`,locationInTable:`detail`},{name:`enableIf:condition`,locationInTable:`detail`,visibleIf:e=>!e||e.ownerPropertyName!==`rateValues`},{name:`randomize:boolean`,default:!0,visible:!1,locationInTable:`detail`},{name:`randomizeCategory:string`,visible:!1,locationInTable:`detail`}],e=>new HP(e));var UP=class extends qM{constructor(e=null,t=null){super(),this.expressionIsRunning=!1,this.isCalculated=!1,e&&(this.name=e),t&&(this.expression=t)}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`expression`&&this.rerunExpression()}setOwner(e){this.data=e,this.rerunExpression()}getOwner(){return this.data}getType(){return`calculatedvalue`}getSurvey(e=!1){return this.data&&this.data.getSurvey?this.data.getSurvey():null}get owner(){return this.data}locCalculation(){this.expressionIsRunning=!0}unlocCalculation(){this.expressionIsRunning=!1}resetCalculation(){this.isCalculated=!1}doCalculation(e,t){this.isCalculated||(this.runExpressionCore(e,t),this.isCalculated=!0)}runExpression(e){this.runExpressionCore(null,e)}get value(){if(this.data)return this.data.getVariable(this.name)}setValue(e){this.data&&this.data.setVariable(this.name,e)}get canRunExpression(){return!!this.data&&!this.isLoadingFromJson&&!!this.expression&&!this.expressionIsRunning&&!!this.name}rerunExpression(){this.canRunExpression&&this.runExpression({survey:this.getSurvey()})}onDependencyValueChanged(e,t){this.rerunExpression()}runExpressionCore(e,t){!this.canRunExpression||!this.ensureExpression()||(this.locCalculation(),e&&this.runDependentExpressions(e,t),this.expressionRunner.runContext(this.getValueGetterContext(),this.getPropertiesCopy(t,`expression`)))}runDependentExpressions(e,t){var n=this.expressionRunner.getVariables();if(n)for(var r=0;r<e.length;r++){var i=e[r];i===this||n.indexOf(i.name)<0||i.doCalculation(e,t)}}ensureExpression(){let e=this.getExpressionFromSurvey(`expression`);return e?(this.expressionRunner?this.expressionRunner.expression=e:(this.expressionRunner=this.createExpressionRunner(e),this.expressionRunner.onRunComplete=e=>{K.isTwoValueEquals(e,this.value,!1,!0,!1)||this.setValue(e),this.unlocCalculation()}),!0):!1}};q([Y()],UP.prototype,`name`,void 0),q([Y()],UP.prototype,`includeIntoResult`,void 0),q([Y()],UP.prototype,`expression`,void 0),J.addClass(`calculatedvalue`,[{name:`!name`,isUnique:!0},`expression:expression`,`includeIntoResult:boolean`],function(){return new UP},`base`);var WP=class extends qM{constructor(e=null){super(),this.expression=e}getType(){return`expressionitem`}getOwner(){return this.locOwner}runCondition(e){let t=!1;return this.runExpressionByProperty(`expression`,e,e=>{t=e===!0}),t}get locHtml(){return this.getLocalizableString(`html`)}getLocale(){return this.locOwner?this.locOwner.getLocale():``}getMarkdownHtml(e,t,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,t,n):void 0}getRenderer(e){return this.locOwner?this.locOwner.getRenderer(e):null}getRendererContext(e){return this.locOwner?this.locOwner.getRendererContext(e):e}getProcessedText(e){return this.locOwner?this.locOwner.getProcessedText(e):e}getSurvey(e=!1){return this.locOwner}};q([Y({returnValue:``})],WP.prototype,`expression`,void 0);var GP=class extends WP{constructor(e=null,t=null){super(e),t&&(this.html=t)}getType(){return`htmlconditionitem`}};q([Y({localizable:{markdown:!0}})],GP.prototype,`html`,void 0);var KP=class extends WP{constructor(e=null,t=null){super(e),t&&(this.url=t)}getType(){return`urlconditionitem`}};q([Y({localizable:!0})],KP.prototype,`url`,void 0),J.addClass(`expressionitem`,[`expression:condition`],function(){return new WP},`base`),J.addClass(`htmlconditionitem`,[{name:`html:html`,serializationProperty:`locHtml`}],function(){return new GP},`expressionitem`),J.addClass(`urlconditionitem`,[{name:`url:string`,serializationProperty:`locUrl`}],function(){return new KP},`expressionitem`);var qP=class{constructor(){this.parser=new DOMParser}assignValue(e,t,n){Array.isArray(e[t])?e[t].push(n):e[t]=e[t]===void 0?typeof n==`object`&&Object.keys(n).length===1&&Object.keys(n)[0]===t?n[t]:n:[e[t]].concat(n)}xml2Json(e,t){if(e.children&&e.children.length>0)for(let n=0;n<e.children.length;n++){let r=e.children[n],i={};this.xml2Json(r,i),this.assignValue(t,r.nodeName,i)}else this.assignValue(t,e.nodeName,e.textContent)}parseXmlString(e){let t=this.parser.parseFromString(e,`text/xml`),n={};return this.xml2Json(t,n),n}},JP=class e extends qM{constructor(){super(...arguments),this.lastObjHash=``,this.isRunningValue=!1,this.processedUrl=``,this.processedPath=``,this.isUsingCacheFromUrl=void 0,this.error=null,this.createItemValue=e=>new HP(e)}static get EncodeParameters(){return G.web.encodeUrlParams}static set EncodeParameters(e){G.web.encodeUrlParams=e}static clearCache(){e.itemsResult={},e.sendingSameRequests={}}static addSameRequest(t){if(!t.isUsingCache)return!1;var n=t.objHash,r=e.sendingSameRequests[n];return r?(r.push(t),t.isRunningValue=!0,!0):(e.sendingSameRequests[t.objHash]=[],!1)}static unregisterSameRequests(t,n){if(t.isUsingCache){var r=e.sendingSameRequests[t.objHash];if(delete e.sendingSameRequests[t.objHash],r)for(var i=0;i<r.length;i++)r[i].isRunningValue=!1,r[i].getResultCallback&&r[i].getResultCallback(n)}}static get onBeforeSendRequest(){return G.web.onBeforeRequestChoices}static set onBeforeSendRequest(e){G.web.onBeforeRequestChoices=e}static getCachedItemsResult(t){var n=t.objHash,r=e.itemsResult[n];return r?(t.getResultCallback&&t.getResultCallback(r),!0):!1}onPropertyValueChanged(t,n,r){if(super.onPropertyValueChanged(t,n,r),t===`url`){if(this.owner&&this.owner.setPropertyValue(`isUsingRestful`,!!r),this.isUsingCacheFromUrl=void 0,!r)return;r.indexOf(e.cacheText)>-1?this.isUsingCacheFromUrl=!0:r.indexOf(e.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1)}}getSurvey(e=!1){return this.owner?this.owner.survey:null}run(t=null){if(!(!this.url||!this.getResultCallback)){if(this.processedText(t),!this.processedUrl){this.doEmptyResultCallback({}),this.lastObjHash=this.objHash;return}this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,!this.useChangedItemsResults()&&(e.addSameRequest(this)||this.sendRequest()))}}get isUsingCache(){return this.isUsingCacheFromUrl===!0||this.isUsingCacheFromUrl!==!1&&G.web.cacheLoadedChoices}get isRunning(){return this.getIsRunning()}getIsRunning(){return this.isRunningValue}get isWaitingForParameters(){return this.url&&!this.processedUrl}useChangedItemsResults(){return e.getCachedItemsResult(this)}doEmptyResultCallback(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)}processedText(t){var n=this.url;if(n&&(n=n.replace(e.cacheText,``).replace(e.noCacheText,``)),t){var r=t.processTextEx({text:n,runAtDesign:!0}),i=t.processTextEx({text:this.path,runAtDesign:!0});!r.hasAllValuesOnLastRun||!i.hasAllValuesOnLastRun?(this.processedUrl=``,this.processedPath=``):(this.processedUrl=r.text,this.processedPath=i.text)}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)}parseResponse(e){let t;if(e&&typeof e.indexOf==`function`&&e.indexOf(`<`)===0)t=new qP().parseXmlString(e);else try{t=JSON.parse(e)}catch{t=(e||``).split(` 69`).map(e=>e.trim(` `)).filter(e=>!!e)}return t}sendRequest(){typeof XMLHttpRequest<`u`?this.sendXmlHttpRequest():typeof fetch<`u`?this.sendFetchRequest():(this.error=new nN(`The browser does not support XMLHttpRequest or fetch API`,``,this.owner),this.doEmptyResultCallback(``))}sendXmlHttpRequest(){var e=new XMLHttpRequest;e.open(`GET`,this.processedUrl),e.setRequestHeader(`Content-Type`,`application/x-www-form-urlencoded`);var t=this,n=this.objHash;e.onload=function(){t.beforeLoadRequest(),e.status===200?t.onLoad(t.parseResponse(e.response),n):t.onError(e.statusText,e.responseText)};var r={url:this.processedUrl,request:e};G.web.onBeforeRequestChoices&&G.web.onBeforeRequestChoices(this,r),this.beforeSendRequest(),r.request.send()}sendFetchRequest(){let e=this,t=this.objHash,n={url:this.processedUrl,fetchOptions:{method:`GET`,headers:{"Content-Type":`application/x-www-form-urlencoded`}}};G.web.onBeforeRequestChoices&&G.web.onBeforeRequestChoices(this,n),this.beforeSendRequest(),fetch(n.url,n.fetchOptions).then(n=>(e.beforeLoadRequest(),n.status===200?n.text().then(n=>{e.onLoad(e.parseResponse(n),t)}):n.text().then(t=>{e.onError(n.statusText,t)}
69))).catch(t=>{e.onError(t.message,``)})}getType(){return`choicesByUrl`}get isEmpty(){return!this.url&&!this.path}dispose(){super.dispose(),this.getResultCallback=null,this.beforeSendRequestCallback=null,this.updateResultCallback=null,this.getItemValueCallback=null}getCustomPropertiesNames(){for(var e=this.getCustomProperties(),t=[],n=0;n<e.length;n++)t.push(this.getCustomPropertyName(e[n].name));return t}getCustomPropertyName(e){return e+`Name`}getCustomProperties(){for(var e=J.getProperties(this.itemValueType),t=[],n=0;n<e.length;n++)e[n].name!==`value`&&e[n].name!==`text`&&e[n].name!==`visibleIf`&&e[n].name!==`enableIf`&&t.push(e[n]);return t}getAllPropertiesNames(){let e=[];return J.getPropertiesByObj(this).forEach(t=>e.push(t.name)),this.getCustomPropertiesNames().forEach(t=>e.push(t)),e}setData(e){e||(e={}),this.getAllPropertiesNames().forEach(t=>{let n=e[t],r=J.findProperty(this.getType(),t);r&&r.isArray&&r.className&&J.isDescendantOf(r.className,`itemvalue`)&&Array.isArray(n)&&(n=n.map(e=>{let t=J.createClass(r.className);return t.setData(e),t})),this[t]=n});let t=e.attachData||e.attachOriginalItems;t!==void 0&&(this.attachData=t)}getData(){let e={},t=!1;return this.getAllPropertiesNames().forEach(n=>{let r=this[n];!this.isValueEmpty(r)&&r!==this.getDefaultPropertyValue(n)&&(Array.isArray(r)&&(r=r.map(e=>typeof e.getData==`function`?e.getData():e)),e[n]=r,t=!0)}),t?e:null}get attachOriginalItems(){return this.attachData}set attachOriginalItems(e){this.attachData=e}get itemValueType(){if(!this.owner)return`itemvalue`;var e=J.findProperty(this.owner.getType(),`choices`);return!e||e.type==`itemvalue[]`?`itemvalue`:e.type}clear(){this.setData(void 0)}beforeSendRequest(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()}beforeLoadRequest(){this.isRunningValue=!1}onLoad(t,n=null){n||(n=this.objHash);let r=[],i=this.getResultAfterPath(t);if(i&&i.length)for(let e=0;e<i.length;e++){let t=i[e];if(!t)continue;let n=this.getItemValueCallback?this.getItemValueCallback(t):this.getValue(t),a=this.createItemValue(n);this.setTitle(a,t),this.setCustomProperties(a,t),this.attachData&&(a.originalItem=t,a.data=t);let o=this.getImageLink(t);o&&(a.imageLink=o),this.setItemValueProperties(a,t),r.push(a)}else this.allowEmptyResponse||(this.error=new rN(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,t)),this.isUsingCache&&(e.itemsResult[n]=r),this.callResultCallback(r,n),e.unregisterSameRequests(this,r)}setItemValueProperties(e,t){[`isExclusive`,`showCommentArea`,`isCommentRequired`,`visibleIf`,`enableIf`].forEach(n=>{t[n]!==void 0&&(e[n]=t[n])})}callResultCallback(e,t){t==this.objHash&&this.getResultCallback(e)}setCustomProperties(e,t){for(var n=this.getCustomProperties(),r=0;r<n.length;r++){var i=n[r],a=this.getValueCore(t,this.getPropertyBinding(i.name));this.isValueEmpty(a)||(e[i.name]=a)}}getPropertyBinding(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e}onError(t,n){this.error=new nN(t,n,this.owner),this.doEmptyResultCallback(n),e.unregisterSameRequests(this,[])}getResultAfterPath(e){if(!e||!this.processedPath)return e;for(var t=this.getPathes(),n=0;n<t.length;n++)if(e=e[t[n]],!e)return null;return e}getPathes(){var e=[];return e=this.processedPath.indexOf(`;`)>-1?this.path.split(`;`):this.processedPath.indexOf(`,`)>-1?this.processedPath.split(`,`):this.processedPath.split(`.`),e.length==0&&e.push(this.processedPath),e}getValue(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null}setTitle(e,t){var n=this.titleName?this.titleName:`title`,r=this.getValueCore(t,n);r&&e.locText.setJson(r)}getImageLink(e){var t=this.imageLinkName?this.imageLinkName:`imageLink`;return this.getValueCore(e,t)}getValueCore(e,t){if(!e)return null;if(t.indexOf(`.`)<0)return e[t];for(var n=t.split(`.`),r=0;r<n.length;r++)if(e=e[n[r]],!e)return null;return e}get objHash(){return this.processedUrl+`;`+this.processedPath+`;`+this.valueName+`;`+this.titleName+`;`+this.imageLinkName+`;`+this.attachData}};JP.cacheText=`{CACHE}`,JP.noCacheText=`{NOCACHE}`,JP.itemsResult={},JP.sendingSameRequests={},q([Y({returnValue:``})],JP.prototype,`url`,void 0),q([Y({returnValue:``})],JP.prototype,`path`,void 0),q([Y({returnValue:``})],JP.prototype,`valueName`,void 0),q([Y({returnValue:``})],JP.prototype,`titleName`,void 0),q([Y({returnValue:``})],JP.prototype,`imageLinkName`,void 0),q([Y()],JP.prototype,`allowEmptyResponse`,void 0),q([Y()],JP.prototype,`attachData`,void 0),J.addClass(`choicesByUrl`,[`url`,`path`,`valueName`,`titleName`,{name:`imageLinkName`,visibleIf:function(e){return!!e&&!!e.owner&&e.owner.getType()==`imagepicker`}},{name:`allowEmptyResponse:boolean`},{name:`attachData:boolean`,alternativeName:`attachOriginalItems`,visible:!1}],function(){return new JP});var YP=class e{constructor(){this._id=e.counter++}get id(){return this._id}toString(e=void 0){return``}hasFunction(e){return!1}hasAsyncFunction(){return!1}
69addToAsyncList(e){}addOperandsToList(e){e.push(this),this.addChildrenToList(e)}isEqual(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)}isConstant(){return!1}addConditionSemanticErrors(e){this.isConstant()?this.isBooleanConstant()||this.addSemanticError(e):this.addConditionErrors(e)}addConditionErrors(e){}areOperatorsEquals(e,t){return!e&&!t||!!e&&e.isEqual(t)}addChildrenToList(e){}isBooleanConstant(){return!1}isOperandConstant(e){return!e||e.isConstant()}addSemanticError(e){e.push({errorType:Kj.SemanticError})}};YP.counter=1;var XP=class extends YP{constructor(e,t=null,n=null,r=!1){super(),this.operatorName=e,this.left=t,this.right=n,this.isArithmeticValue=r,this.consumer=r?nF.binaryFunctions.arithmeticOp(e):nF.binaryFunctions[e],this.consumer??nF.throwInvalidOperatorError(e)}get requireStrictCompare(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)}getIsOperandRequireStrict(e){return!!e&&e.requireStrictCompare}getType(){return`binary`}get isArithmetic(){return this.isArithmeticValue}get isConjunction(){return this.operatorName==`or`||this.operatorName==`and`}get conjunction(){return this.isConjunction?this.operatorName:``}get operator(){return this.operatorName}get leftOperand(){return this.left}get rightOperand(){return this.right}isContentEqual(e){let t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)}evaluateParam(e,t){return e==null?null:e.evaluate(t)}evaluate(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)}toString(e=void 0){if(e){var t=e(this);if(t)return t}return`(`+nF.safeToString(this.left,e)+` `+nF.operatorToString(this.operatorName)+` `+nF.safeToString(this.right,e)+`)`}setVariables(e){this.left!=null&&this.left.setVariables(e),this.right!=null&&this.right.setVariables(e)}hasFunction(e){return!!this.left&&this.left.hasFunction(e)||!!this.right&&this.right.hasFunction(e)}addChildrenToList(e){this.left&&this.left.addOperandsToList(e),this.right&&this.right.addOperandsToList(e)}hasAsyncFunction(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()}addToAsyncList(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)}isConstant(){return this.isOperandConstant(this.left)&&this.isOperandConstant(this.right)}addConditionSemanticErrors(e){super.addConditionSemanticErrors(e),this.isArithmetic&&!this.isConjunction&&!this.isConstant()&&this.addSemanticError(e)}addConditionErrors(e){let t=this.left,n=this.right;this.isConjunction?[t,n].forEach(t=>{this.isOperandConstant(t)?this.addSemanticError(e):t.addConditionErrors(e)}):this.isArithmetic?this.addOperandsConditionErrors(e):this.isOperandConstant(t)&&this.isOperandConstant(n)||t&&n&&t.isEqual(n)&&!t.hasFunction()?this.addSemanticError(e):this.addOperandsConditionErrors(e)}addOperandsConditionErrors(e){this.left&&this.left.addConditionErrors(e),this.right&&this.right.addConditionErrors(e)}},ZP=class extends YP{constructor(e,t){super(),this.expressionValue=e,this.operatorName=t,this.consumer=nF.unaryFunctions[t],this.consumer??nF.throwInvalidOperatorError(t)}get operator(){return this.operatorName}get expression(){return this.expressionValue}getType(){return`unary`}toString(e=void 0){if(e){var t=e(this);if(t)return t}let n=nF.operatorToString(this.operator),r=this.expression.toString(e);return this.isRigtOperator?r+` `+n:n+` `+r}get isRigtOperator(){let e=this.operatorName.toLowerCase();return e===`notempty`||e===`empty`}isContentEqual(e){let t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)}hasFunction(e){return this.expression.hasFunction(e)}addChildrenToList(e){this.expression.addOperandsToList(e)}hasAsyncFunction(){return this.expression.hasAsyncFunction()}addToAsyncList(e){this.expression.addToAsyncList(e)}evaluate(e){let t=this.expression.evaluate(e);return this.consumer.call(this,t)}setVariables(e){this.expression.setVariables(e)}isConstant(){return this.isOperandConstant(this.expression)}addConditionErrors(e){this.isOperandConstant(this.expression)?this.addSemanticError(e):this.expression.addConditionErrors(e)}},QP=class extends YP{constructor(e){super(),this.values=e}getType(){return`array`}toString(e=void 0,t){if(e){let t=e(this);if(t)return t}let n=this.values.map(function(t){return t.toString(e)}).join(`, `);return t?n:`[`+n+`]`}evaluate(e){return this.values.map(function(t){return t.evaluate(e)})}
69setVariables(e){this.values.forEach(t=>{t.setVariables(e)})}hasFunction(e){return this.values.some(t=>t.hasFunction(e))}addChildrenToList(e){this.values.forEach(t=>{t.addOperandsToList(e)})}hasAsyncFunction(){return this.values.some(e=>e.hasAsyncFunction())}addToAsyncList(e){this.values.forEach(t=>t.addToAsyncList(e))}isContentEqual(e){let t=e;if(t.values.length!==this.values.length)return!1;for(var n=0;n<this.values.length;n++)if(!t.values[n].isEqual(this.values[n]))return!1;return!0}isConstant(){return this.values.every(e=>this.isOperandConstant(e))}addConditionErrors(e){this.values.forEach(t=>{t&&t.addConditionErrors(e)})}},$P=class extends YP{constructor(e){super(),this.value=e}getType(){return`const`}toString(e=void 0){if(e){var t=e(this);if(t)return t}return this.value===``?`''`:this.value.toString()}get correctValue(){return this.getCorrectValue(this.value)}get requireStrictCompare(){return!1}evaluate(){return this.getCorrectValue(this.value)}setVariables(e){}getCorrectValue(e){if(!e||typeof e!=`string`)return e;if(nF.isBooleanValue(e))return e.toLowerCase()===`true`;if(e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1]))return e.substring(1,e.length-1);if(K.isNumber(e)){if(e[0]===`0`&&e.indexOf(`0x`)!=0){let t=e.length,n=t>1&&(e[1]===`.`||e[1]===`,`);if(!n&&t>1||n&&t<2)return e}return K.getNumber(e)}return e}isBoolean(){return!this.value||typeof this.value!=`string`?this.value===!0||this.value===!1:nF.isBooleanValue(this.value)}isConstant(){return!0}isBooleanConstant(){return this.isBoolean()}isContentEqual(e){return e.value==this.value}isQuote(e){return e==`'`||e==`"`}},eF=class e extends $P{static get DisableConversionChar(){return G.expressionDisableConversionChar}static set DisableConversionChar(e){G.expressionDisableConversionChar=e}constructor(t){super(t),this.variableName=t,this.valueInfo={},this.useValueAsItIs=!1,this.returnOriginalValue=!1,this.variableName&&this.variableName.length>1&&this.variableName[0]===e.DisableConversionChar&&(this.variableName=this.variableName.substring(1),this.useValueAsItIs=!0)}get requireStrictCompare(){return this.valueInfo.strictCompare===!0}getType(){return`variable`}toString(t=void 0){if(t){var n=t(this);if(n)return n}var r=this.useValueAsItIs?e.DisableConversionChar:``;return G.expressionVariableDelimiters.start+r+this.variableName+G.expressionVariableDelimiters.end}get variable(){return this.variableName}setReturnOriginalValue(e){this.returnOriginalValue=e}evaluate(e){if(this.valueInfo.name=this.variableName,this.valueInfo.isOriginalValue=this.returnOriginalValue,e.getValueInfo(this.valueInfo),!this.valueInfo.hasValue)return this.returnJSONObject(this.variableName);let t=this.valueInfo.value;return this.valueInfo.onProcessValue&&(t=this.valueInfo.onProcessValue(t)),this.getCorrectValue(t)}setVariables(e){e.push(this.variableName)}isConstant(){return!1}isBooleanConstant(){return!1}getCorrectValue(e){return this.useValueAsItIs?e:super.getCorrectValue(e)}isContentEqual(e){return e.variable==this.variable}returnJSONObject(e){if(!e||e.length<2||e.indexOf(`:`)<1)return null;try{return JSON.parse(`{`+e+`}`)}catch{return null}}},tF=class extends YP{constructor(e,t){super(),this.originalValue=e,this.parameters=t,Array.isArray(t)&&t.length===0&&(this.parameters=new QP([]))}getType(){return`function`}get functionName(){return this.originalValue}get paramValues(){return this.parameters.values}evaluate(e){let t=this.getAsynValue(e);return t?t.value:this.evaluateCore(e)}markOriginalValueParams(){let e=Yj.Instance.getOriginalValueParams(this.functionName);if(!Array.isArray(e)||e.length===0)return;let t=this.parameters.values;for(let n=0;n<e.length;n++){let r=t[e[n]];r&&typeof r.setReturnOriginalValue==`function`&&r.setReturnOriginalValue(!0)}}evaluateCore(e){let t=e.properties;this.markOriginalValueParams();let n=this.parameters.evaluate(e);if(this.isAsyncFunction()){let n=this.id,r=e.asyncValues,i=e.onCompleteAsyncFunc;if(r&&i){let a=this;t=K.createCopy(e.properties),t.returnResult=e=>{r[n]={value:e},i(a)}}}let r=Yj.Instance.run(this.functionName,n,t,this.parameters.values);if(r instanceof Promise){r.then(e=>{t.returnResult(e)});return}return r}toString(e=void 0){if(e){var t=e(this);if(t)return t}return this.originalValue+`(`+this.parameters.toString(e,!0)+`)`}setVariables(e){this.parameters.setVariables(e)}isReady(e){return!!this.getAsynValue(e)}addChildrenToList(e){this.parameters.addOperandsToList(e)}getAsynValue(e){return e.asyncValues[this.id]}hasFunction(e){if(e===!0){if(this.paramValues.length===0)return!0;let e=[];return this.parameters.setVariables(e),e.length===0}return!0}hasAsyncFunction(){return this.isAsyncFunction()||this.parameters.hasAsyncFunction()}isAsyncFunction(){return Yj.Instance.isAsyncFunction(this.originalValue)}addToAsyncList(e){let t;if(this.isAsyncFunction()&&(t={operand:this}),this.parameters.hasAsyncFunction()){let e=[];
69this.parameters.addToAsyncList(e),e.forEach(e=>e.parent=t),t||(t={}),t.children=e}t&&e.push(t)}isContentEqual(e){let t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)}},nF=class e{static throwInvalidOperatorError(e){throw Error(`Invalid operator: '`+e+`'`)}static safeToString(e,t){return e==null?``:e.toString(t)}static toOperandString(t){return t&&!K.isNumber(t)&&!e.isBooleanValue(t)&&(t=`'`+t+`'`),t}static isBooleanValue(e){return!!e&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)}static countDecimals(e){if(K.isNumber(e)&&Math.floor(e)!==e){let t=e.toString().split(`.`);return t.length>1&&t[1].length||0}return 0}static plusMinus(t,n,r){let i=e.countDecimals(t),a=e.countDecimals(n);if(i>0||a>0){let e=Math.max(i,a);r=parseFloat(r.toFixed(e))}return r}static isTwoValueEquals(e,t,n=!0){return e===`undefined`&&(e=void 0),t===`undefined`&&(t=void 0),K.isTwoValueEquals(e,t,n)}static operatorToString(t){return e.signs[t]??t}static convertValForDateCompare(e,t){if(t instanceof Date&&typeof e==`string`){let n=uj(`expression-operand`,e);return t.setMilliseconds(0),t.getHours()>0||t.getMinutes()>0||t.getSeconds()>0||n.setHours(0,0,0),n}return typeof t==`string`&&e instanceof Date&&(t.length<17&&e.setSeconds(0,0),t.length<14&&e.setMinutes(0,0),t.length<11&&e.setHours(0,0)),e}};nF.unaryFunctions={empty:function(e){return K.isValueEmpty(e)},notempty:function(e){return!nF.unaryFunctions.empty(e)},negate:function(e){return!e}},nF.binaryFunctions={arithmeticOp(e){let t=(e,t)=>K.isValueEmpty(e)?typeof t==`number`?0:typeof e==`string`?e:typeof t==`string`?``:Array.isArray(t)?[]:0:e;return function(n,r){n=t(n,r),r=t(r,n);let i=nF.binaryFunctions[e];return i==null?null:i.call(this,n,r)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return K.sumAnyValues(e,t)},minus:function(e,t){return K.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return K.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return e**+t},greater:function(e,t){return e==null||t==null?!1:(e=nF.convertValForDateCompare(e,t),t=nF.convertValForDateCompare(t,e),e>t)},less:function(e,t){return e==null||t==null?!1:(e=nF.convertValForDateCompare(e,t),t=nF.convertValForDateCompare(t,e),e<t)},greaterorequal:function(e,t){return nF.binaryFunctions.equal(e,t)?!0:nF.binaryFunctions.greater(e,t)},lessorequal:function(e,t){return nF.binaryFunctions.equal(e,t)?!0:nF.binaryFunctions.less(e,t)},equal:function(e,t,n){return e=nF.convertValForDateCompare(e,t),t=nF.convertValForDateCompare(t,e),nF.isTwoValueEquals(e,t,n!==!0)},notequal:function(e,t,n){return!nF.binaryFunctions.equal(e,t,n)},contains:function(e,t){return nF.binaryFunctions.containsCore(e,t,!0)},notcontains:function(e,t){return!e&&!K.isValueEmpty(t)||nF.binaryFunctions.containsCore(e,t,!1)},anyof:function(e,t){if(K.isValueEmpty(e)&&K.isValueEmpty(t))return!0;if(K.isValueEmpty(e)||!Array.isArray(e)&&e.length===0)return!1;if(K.isValueEmpty(t))return!0;if(!Array.isArray(e))return nF.binaryFunctions.contains(t,e);if(!Array.isArray(t))return nF.binaryFunctions.contains(e,t);for(var n=0;n<t.length;n++)if(nF.binaryFunctions.contains(e,t[n]))return!0;return!1},noneof:function(e,t){return!nF.binaryFunctions.anyof(e,t)},allof:function(e,t){if(!e&&!K.isValueEmpty(t))return!1;if(!Array.isArray(t))return nF.binaryFunctions.contains(e,t);for(var n=0;n<t.length;n++)if(!nF.binaryFunctions.contains(e,t[n]))return!1;return!0},containsCore:function(e,t,n){if(Array.isArray(e)&&!e.length)return!n;if(!e&&e!==0&&e!==!1)return!1;if(e.length||(e=e.toString()),typeof e==`string`||e instanceof String){if(!t)return!1;t=t.toString(),G.comparator.caseSensitive||(e=e.toLowerCase(),t=t.toLowerCase());var r=e.indexOf(t)>-1;return n?r:!r}for(var i=Array.isArray(t)?t:[t],a=0;a<i.length;a++){var o=0;for(t=i[a];o<e.length&&!nF.isTwoValueEquals(e[o],t);o++);if(o==e.length)return!n}return n}},nF.signs={less:`<`,lessorequal:`<=`,greater:`>`,greaterorequal:`>=`,equal:`==`,notequal:`!=`,plus:`+`,minus:`-`,mul:`*`,div:`/`,and:`and`,or:`or`,power:`^`,mod:`%`,negate:`!`};var rF=(function(){class e extends SyntaxError{constructor(e,t,n,r){super(e),this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`}format(e){let t=`Error: `+this.message;if(this.location){let n=null,r=e.find(e=>e.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));let i=this.location.start,a=this.location.source&&typeof this.location.source.offset==`function`?this.location.source.offset(i):i,o=this.location.source+`:`+a.line+`:`+a.column;if(n){let e=this.location.end,r=``.padEnd(a.line.toString().length,` `),s=n[i.line-1],c=(i.line===e.line?e.column:s.length+1)-i.column||1;t+=` 70 --> `+o+` 71`+r+` | 72`+a.line+` | `+s+` 73`+r+` | `+``.padEnd(i.column-1,` `)+``.padEnd(c,`^`)}else t+=` 74 at `+o}return t}static buildMessage(e,t){function n(e){return e.codePointAt(0).toString(16).toUpperCase()}let r=Object.prototype.hasOwnProperty.call(RegExp.prototype,`unicode`)?RegExp(`[\\p{C}\\p{Mn}\\p{Mc}]`,`gu`):null;function i(e){return r?e.replace(r,e=>`\\u{`+n(e)+`}`):e}function a(e){return i(e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,e=>`\\x0`+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>`\\x`+n(e)))}function o(e){return i(e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,e=>`\\x0`+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>`\\x`+n(e)))}let s={literal(e){return`"`+a(e.text)+`"`},class(e){let t=e.parts.map(e=>Array.isArray(e)?o(e[0])+`-`+o(e[1]):o(e));return`[`+(e.inverted?`^`:``)+t.join(``)+`]`+(e.unicode?`u`:``)},any(){return`any character`},end(){return`end of input`},other(e){return e.description}};function c(e){return s[e.type](e)}function l(e){let t=e.map(c);if(t.sort(),t.length>0){let e=1;for(let n=1;n<t.length;n++)t[n-1]!==t[n]&&(t[e]=t[n],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function u(e){return e?`"`+a(e)+`"`:`end of input`}return`Expected `+l(e)+` but `+u(t)+` found.`}}function t(t,n){n=n===void 0?{}:n;let r={},i=n.grammarSource,a={Expression:sn},o=sn,s=`equal`,c=`undefined`,l=`null`,u=/^[\-]/,d=/^[^"']/,f=/^[^{}]/,p=/^[0-9]/,m=/^[1-9]/,h=/^[a-zA-Z_]/,g=/^[ \t\n\r]/,_=$t(`||`,!1),v=$t(`or`,!0),y=$t(`&&`,!1),b=$t(`and`,!0),x=$t(`<=`,!1),S=$t(`lessorequal`,!0),C=$t(`>=`,!1),w=$t(`greaterorequal`,!0),T=$t(`==`,!1),E=$t(`equal`,!0),D=$t(`=`,!1),O=$t(`!=`,!1),k=$t(`n
74otequal`,!0),A=$t(`<`,!1),j=$t(`less`,!0),M=$t(`>`,!1),N=$t(`greater`,!0),P=$t(`+`,!1),ee=$t(`-`,!1),F=$t(`*`,!1),I=$t(`/`,!1),te=$t(`%`,!1),L=$t(`^`,!1),ne=$t(`power`,!0),R=$t(`*=`,!1),re=$t(`contains`,!0),z=$t(`contain`,!0),ie=$t(`notcontains`,!0),ae=$t(`notcontain`,!0),oe=$t(`anyof`,!0),se=$t(`allof`,!0),ce=$t(`noneof`,!0),le=$t(`(`,!1),ue=$t(`)`,!1),B=$t(`!`,!1),de=$t(`negate`,!0),fe=$t(`empty`,!0),pe=$t(`notempty`,!0),me=$t(`undefined`,!1),he=$t(`null`,!1),ge=$t(`{`,!1),_e=$t(`}`,!1),ve=$t(`''`,!1),ye=$t(`""`,!1),be=$t(`'`,!1),xe=$t(`"`,!1),Se=$t(`[`,!1),Ce=$t(`]`,!1),we=$t(`,`,!1),Te=$t(`true`,!0),Ee=$t(`false`,!0),De=$t(`0x`,!1),Oe=en([`-`],!1,!1,!1),ke=$t(`.`,!1),Ae=$t(`0`,!1),je=$t(`\\'`,!1),Me=$t(`\\"`,!1),Ne=en([`"`,`'`],!0,!1,!1),Pe=en([`{`,`}`],!0,!1,!1),Fe=en([[`0`,`9`]],!1,!1,!1),Ie=en([[`1`,`9`]],!1,!1,!1),Le=en([[`a`,`z`],[`A`,`Z`],`_`],!1,!1,!1),Re=en([` `,` `,` 75`,`\r`],!1,!1,!1);function ze(e,t){return Vn(e,t,!0)}function Be(){return`or`}function Ve(e,t){return Vn(e,t,!0)}function He(){return`and`}function Ue(e,t){return Vn(e,t)}function We(){return`lessorequal`}function Ge(){return`greaterorequal`}function Ke(){return`equal`}function qe(){return`equal`}function Je(){return`notequal`}function Ye(){return`less`}function Xe(){return`greater`}function Ze(e,t){return Vn(e,t,!0)}function Qe(){return`plus`}function $e(){return`minus`}function et(e,t){return Vn(e,t,!0)}function tt(){return`mul`}function nt(){return`div`}function rt(){return`mod`}function it(e,t){return Vn(e,t,!0)}function at(){return`power`}function ot(e,t){return Vn(e,t)}function st(){return`contains`}function ct(){return`notcontains`}function lt(){return`anyof`}function ut(){return`allof`}function dt(){return`noneof`}function ft(e){return e}function pt(e,t){return new tF(e,t)}function mt(e){return new ZP(e,`negate`)}function ht(e,t){return new ZP(e,t)}function gt(){return`empty`}function _t(){return`notempty`}function vt(){return null}function yt(e){return new $P(e)}function bt(e){return new eF(e)}function xt(e){return e}function St(e){return e}function Ct(e){return e}function wt(){return``}function Tt(){return``}function Et(e){return`'`+e+`'`}function Dt(e){return`'`+e+`'`}function Ot(e){return e}function kt(e,t){if(e==null)return new QP([]);var n=[e];if(Array.isArray(t))for(var r=Hn(t),i=3;i<r.length;i+=4)n.push(r[i]);return new QP(n)}function At(){return!0}function jt(){return!1}function Mt(){return parseInt(Zt(),16)}function Nt(e,t){return e==null?t:-t}function Pt(){return parseFloat(Zt())}function Ft(){return parseInt(Zt(),10)}function It(){return 0}function Lt(e){return e.join(``)}function Rt(e){return e.join(``)}function zt(){return`'`}function Bt(){return`"`}function Vt(){return Zt()}function Ht(){return Zt()}function Ut(){return Zt()}let V=n.peg$currPos|0,Wt=V,Gt=[{line:1,column:1}],Kt=V,qt=n.peg$maxFailExpected||[],Jt=n.peg$silentFails|0,Yt={},Xt;if(n.startRule){if(!(n.startRule in a))throw Error(`Can't start parsing from rule "`+n.startRule+`".`);o=a[n.startRule]}function Zt(){return t.substring(Wt,V)}function Qt(e=V){let n=t.codePointAt(e);return n===void 0?``:String.fromCodePoint(n)}function $t(e,t){return{type:`literal`,text:e,ignoreCase:t}}function en(e,t,n,r){return{type:`class`,parts:e,inverted:t,ignoreCase:n,unicode:r}}function tn(){return{type:`end`}}function nn(e){let n=Gt[e],r;if(n)return n;if(e>=Gt.length)r=Gt.length-1;else for(r=e;!Gt[--r];);for(n=Gt[r],n={line:n.line,column:n.column};r<e;)t.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return Gt[e]=n,n}function rn(e,t,n){let r=nn(e),a=nn(t);return{source:i,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:a.line,column:a.column}}}function an(e){V<Kt||(V>Kt&&(Kt=V,qt=[]),qt.push(e))}function on(t,n,r){return new e(e.buildMessage(t,n),t,n,r)}function sn(){let e,t,n,i,a,o,s,c,l=V*34+0,u=Yt[l];if(u)return V=u.nextPos,u.result;if(e=V,Bn(),t=ln(),t!==r){for(n=[],i=V,a=Bn(),o=cn(),o===r?(V=i,i=r):(s=Bn(),c=ln(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));i!==r;)n.push(i),i=V,a=Bn(),o=cn(),o===r?(V=i,i=r):(s=Bn(),c=ln(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));i=Bn(),Wt=e,e=ze(t,n)}else V=e,e=r;return Yt[l]={nextPos:V,result:e},e}function cn(){let e,n,i=V*34+1,a=Yt[i];return a?(V=a.nextPos,a.result):(e=V,t.substr(V,2)===`||`?(n=`||`,V+=2):(n=r,Jt===0&&an(_)),n===r&&(n=t.substr(V,2),n.toLowerCase()===`or`?V+=2:(n=r,Jt===0&&an(v))),n!==r&&(Wt=e,n=Be()),e=n,Yt[i]={nextPos:V,result:e},e)}function ln(){let e,t,n,i,a,o,s,c,l=V*34+2,u=Yt[l];
75if(u)return V=u.nextPos,u.result;if(e=V,t=dn(),t!==r){for(n=[],i=V,a=Bn(),o=un(),o===r?(V=i,i=r):(s=Bn(),c=dn(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));i!==r;)n.push(i),i=V,a=Bn(),o=un(),o===r?(V=i,i=r):(s=Bn(),c=dn(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));Wt=e,e=Ve(t,n)}else V=e,e=r;return Yt[l]={nextPos:V,result:e},e}function un(){let e,n,i=V*34+3,a=Yt[i];return a?(V=a.nextPos,a.result):(e=V,t.substr(V,2)===`&&`?(n=`&&`,V+=2):(n=r,Jt===0&&an(y)),n===r&&(n=t.substr(V,3),n.toLowerCase()===`and`?V+=3:(n=r,Jt===0&&an(b))),n!==r&&(Wt=e,n=He()),e=n,Yt[i]={nextPos:V,result:e},e)}function dn(){let e,t,n,i,a,o,s,c,l=V*34+4,u=Yt[l];if(u)return V=u.nextPos,u.result;if(e=V,t=pn(),t!==r){for(n=[],i=V,a=Bn(),o=fn(),o===r?(V=i,i=r):(s=Bn(),c=pn(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));i!==r;)n.push(i),i=V,a=Bn(),o=fn(),o===r?(V=i,i=r):(s=Bn(),c=pn(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));Wt=e,e=Ue(t,n)}else V=e,e=r;return Yt[l]={nextPos:V,result:e},e}function fn(){let e,n,i=V*34+5,a=Yt[i];return a?(V=a.nextPos,a.result):(e=V,t.substr(V,2)===`<=`?(n=`<=`,V+=2):(n=r,Jt===0&&an(x)),n===r&&(n=t.substr(V,11),n.toLowerCase()===`lessorequal`?V+=11:(n=r,Jt===0&&an(S))),n!==r&&(Wt=e,n=We()),e=n,e===r&&(e=V,t.substr(V,2)===`>=`?(n=`>=`,V+=2):(n=r,Jt===0&&an(C)),n===r&&(n=t.substr(V,14),n.toLowerCase()===`greaterorequal`?V+=14:(n=r,Jt===0&&an(w))),n!==r&&(Wt=e,n=Ge()),e=n,e===r&&(e=V,t.substr(V,2)===`==`?(n=`==`,V+=2):(n=r,Jt===0&&an(T)),n===r&&(n=t.substr(V,5),n.toLowerCase()===s?V+=5:(n=r,Jt===0&&an(E))),n!==r&&(Wt=e,n=Ke()),e=n,e===r&&(e=V,t.charCodeAt(V)===61?(n=`=`,V++):(n=r,Jt===0&&an(D)),n===r&&(n=t.substr(V,5),n.toLowerCase()===s?V+=5:(n=r,Jt===0&&an(E))),n!==r&&(Wt=e,n=qe()),e=n,e===r&&(e=V,t.substr(V,2)===`!=`?(n=`!=`,V+=2):(n=r,Jt===0&&an(O)),n===r&&(n=t.substr(V,8),n.toLowerCase()===`notequal`?V+=8:(n=r,Jt===0&&an(k))),n!==r&&(Wt=e,n=Je()),e=n,e===r&&(e=V,t.charCodeAt(V)===60?(n=`<`,V++):(n=r,Jt===0&&an(A)),n===r&&(n=t.substr(V,4),n.toLowerCase()===`less`?V+=4:(n=r,Jt===0&&an(j))),n!==r&&(Wt=e,n=Ye()),e=n,e===r&&(e=V,t.charCodeAt(V)===62?(n=`>`,V++):(n=r,Jt===0&&an(M)),n===r&&(n=t.substr(V,7),n.toLowerCase()===`greater`?V+=7:(n=r,Jt===0&&an(N))),n!==r&&(Wt=e,n=Xe()),e=n)))))),Yt[i]={nextPos:V,result:e},e)}function pn(){let e,t,n,i,a,o,s,c,l=V*34+6,u=Yt[l];if(u)return V=u.nextPos,u.result;if(e=V,t=hn(),t!==r){for(n=[],i=V,a=Bn(),o=mn(),o===r?(V=i,i=r):(s=Bn(),c=hn(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));i!==r;)n.push(i),i=V,a=Bn(),o=mn(),o===r?(V=i,i=r):(s=Bn(),c=hn(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));Wt=e,e=Ze(t,n)}else V=e,e=r;return Yt[l]={nextPos:V,result:e},e}function mn(){let e,n,i=V*34+7,a=Yt[i];return a?(V=a.nextPos,a.result):(e=V,t.charCodeAt(V)===43?(n=`+`,V++):(n=r,Jt===0&&an(P)),n!==r&&(Wt=e,n=Qe()),e=n,e===r&&(e=V,t.charCodeAt(V)===45?(n=`-`,V++):(n=r,Jt===0&&an(ee)),n!==r&&(Wt=e,n=$e()),e=n),Yt[i]={nextPos:V,result:e},e)}function hn(){let e,t,n,i,a,o,s,c,l=V*34+8,u=Yt[l];if(u)return V=u.nextPos,u.result;if(e=V,t=_n(),t!==r){for(n=[],i=V,a=Bn(),o=gn(),o===r?(V=i,i=r):(s=Bn(),c=_n(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));i!==r;)n.push(i),i=V,a=Bn(),o=gn(),o===r?(V=i,i=r):(s=Bn(),c=_n(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));Wt=e,e=et(t,n)}else V=e,e=r;return Yt[l]={nextPos:V,result:e},e}function gn(){let e,n,i=V*34+9,a=Yt[i];return a?(V=a.nextPos,a.result):(e=V,t.charCodeAt(V)===42?(n=`*`,V++):(n=r,Jt===0&&an(F)),n!==r&&(Wt=e,n=tt()),e=n,e===r&&(e=V,t.charCodeAt(V)===47?(n=`/`,V++):(n=r,Jt===0&&an(I)),n!==r&&(Wt=e,n=nt()),e=n,e===r&&(e=V,t.charCodeAt(V)===37?(n=`%`,V++):(n=r,Jt===0&&an(te)),n!==r&&(Wt=e,n=rt()),e=n)),Yt[i]={nextPos:V,result:e},e)}function _n(){let e,t,n,i,a,o,s,c,l=V*34+10,u=Yt[l];if(u)return V=u.nextPos,u.result;if(e=V,t=yn(),t!==r){for(n=[],i=V,a=Bn(),o=vn(),o===r?(V=i,i=r):(s=Bn(),c=yn(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));i!==r;)n.push(i),i=V,a=Bn(),o=vn(),o===r?(V=i,i=r):(s=Bn(),c=yn(),c===r?(V=i,i=r):(a=[a,o,s,c],i=a));Wt=e,e=it(t,n)}else V=e,e=r;return Yt[l]={nextPos:V,result:e},e}function vn(){let e,n,i=V*34+11,a=Yt[i];return a?(V=a.nextPos,a.result):(e=V,t.charCodeAt(V)===94?(n=`^`,V++):(n=r,Jt===0&&an(L)),n===r&&(n=t.substr(V,5),n.toLowerCase()===`power`?V+=5:(n=r,Jt===0&&an(ne))),n!==r&&(Wt=e,n=at()),e=n,Yt[i]={nextPos:V,result:e},e)}function yn(){let e,t,n,i,a,o,s,c,l=V*34+12,u=Yt[l];
75if(u)return V=u.nextPos,u.result;if(e=V,t=xn(),t!==r){for(n=[],i=V,a=Bn(),o=bn(),o===r?(V=i,i=r):(s=Bn(),c=xn(),c===r&&(c=null),a=[a,o,s,c],i=a);i!==r;)n.push(i),i=V,a=Bn(),o=bn(),o===r?(V=i,i=r):(s=Bn(),c=xn(),c===r&&(c=null),a=[a,o,s,c],i=a);Wt=e,e=ot(t,n)}else V=e,e=r;return Yt[l]={nextPos:V,result:e},e}function bn(){let e,n,i=V*34+13,a=Yt[i];return a?(V=a.nextPos,a.result):(e=V,t.substr(V,2)===`*=`?(n=`*=`,V+=2):(n=r,Jt===0&&an(R)),n===r&&(n=t.substr(V,8),n.toLowerCase()===`contains`?V+=8:(n=r,Jt===0&&an(re)),n===r&&(n=t.substr(V,7),n.toLowerCase()===`contain`?V+=7:(n=r,Jt===0&&an(z)))),n!==r&&(Wt=e,n=st()),e=n,e===r&&(e=V,n=t.substr(V,11),n.toLowerCase()===`notcontains`?V+=11:(n=r,Jt===0&&an(ie)),n===r&&(n=t.substr(V,10),n.toLowerCase()===`notcontain`?V+=10:(n=r,Jt===0&&an(ae))),n!==r&&(Wt=e,n=ct()),e=n,e===r&&(e=V,n=t.substr(V,5),n.toLowerCase()===`anyof`?V+=5:(n=r,Jt===0&&an(oe)),n!==r&&(Wt=e,n=lt()),e=n,e===r&&(e=V,n=t.substr(V,5),n.toLowerCase()===`allof`?V+=5:(n=r,Jt===0&&an(se)),n!==r&&(Wt=e,n=ut()),e=n,e===r&&(e=V,n=t.substr(V,6),n.toLowerCase()===`noneof`?V+=6:(n=r,Jt===0&&an(ce)),n!==r&&(Wt=e,n=dt()),e=n)))),Yt[i]={nextPos:V,result:e},e)}function xn(){let e,n,i,a=V*34+14,o=Yt[a];return o?(V=o.nextPos,o.result):(e=V,t.charCodeAt(V)===40?(n=`(`,V++):(n=r,Jt===0&&an(le)),n===r?(V=e,e=r):(Bn(),i=sn(),i===r?(V=e,e=r):(Bn(),t.charCodeAt(V)===41?V++:Jt===0&&an(ue),Wt=e,e=ft(i))),e===r&&(e=Sn(),e===r&&(e=Cn(),e===r&&(e=Tn(),e===r&&(e=Dn())))),Yt[a]={nextPos:V,result:e},e)}function Sn(){let e,n,i,a,o=V*34+15,s=Yt[o];return s?(V=s.nextPos,s.result):(e=V,n=In(),n===r?(V=e,e=r):(t.charCodeAt(V)===40?(i=`(`,V++):(i=r,Jt===0&&an(le)),i===r?(V=e,e=r):(a=On(),t.charCodeAt(V)===41?V++:Jt===0&&an(ue),Wt=e,e=pt(n,a))),Yt[o]={nextPos:V,result:e},e)}function Cn(){let e,n,i,a=V*34+16,o=Yt[a];return o?(V=o.nextPos,o.result):(e=V,t.charCodeAt(V)===33?(n=`!`,V++):(n=r,Jt===0&&an(B)),n===r&&(n=t.substr(V,6),n.toLowerCase()===`negate`?V+=6:(n=r,Jt===0&&an(de))),n===r?(V=e,e=r):(Bn(),i=xn(),i===r?(V=e,e=r):(Wt=e,e=mt(i))),e===r&&(e=V,n=Tn(),n===r?(V=e,e=r):(Bn(),i=wn(),i===r?(V=e,e=r):(Wt=e,e=ht(n,i)))),Yt[a]={nextPos:V,result:e},e)}function wn(){let e,n,i=V*34+17,a=Yt[i];return a?(V=a.nextPos,a.result):(e=V,n=t.substr(V,5),n.toLowerCase()===`empty`?V+=5:(n=r,Jt===0&&an(fe)),n!==r&&(Wt=e,n=gt()),e=n,e===r&&(e=V,n=t.substr(V,8),n.toLowerCase()===`notempty`?V+=8:(n=r,Jt===0&&an(pe)),n!==r&&(Wt=e,n=_t()),e=n),Yt[i]={nextPos:V,result:e},e)}function Tn(){let e,n,i,a,o=V*34+18,s=Yt[o];return s?(V=s.nextPos,s.result):(e=V,Bn(),t.substr(V,9)===c?(n=c,V+=9):(n=r,Jt===0&&an(me)),n===r&&(t.substr(V,4)===l?(n=l,V+=4):(n=r,Jt===0&&an(he))),n===r?(V=e,e=r):(Wt=e,e=vt()),e===r&&(e=V,Bn(),n=En(),n===r?(V=e,e=r):(Wt=e,e=yt(n)),e===r&&(e=V,Bn(),t.charCodeAt(V)===123?(n=`{`,V++):(n=r,Jt===0&&an(ge)),n===r?(V=e,e=r):(i=Mn(),i===r?(V=e,e=r):(t.charCodeAt(V)===125?(a=`}`,V++):(a=r,Jt===0&&an(_e)),a===r?(V=e,e=r):(Wt=e,e=bt(i)))))),Yt[o]={nextPos:V,result:e},e)}function En(){let e,n,i,a,o=V*34+19,s=Yt[o];return s?(V=s.nextPos,s.result):(e=V,n=kn(),n!==r&&(Wt=e,n=xt(n)),e=n,e===r&&(e=V,n=An(),n!==r&&(Wt=e,n=St(n)),e=n,e===r&&(e=V,n=In(),n!==r&&(Wt=e,n=Ct(n)),e=n,e===r&&(e=V,t.substr(V,2)===`''`?(n=`''`,V+=2):(n=r,Jt===0&&an(ve)),n!==r&&(Wt=e,n=wt()),e=n,e===r&&(e=V,t.substr(V,2)===`""`?(n=`""`,V+=2):(n=r,Jt===0&&an(ye)),n!==r&&(Wt=e,n=Tt()),e=n,e===r&&(e=V,t.charCodeAt(V)===39?(n=`'`,V++):(n=r,Jt===0&&an(be)),n===r?(V=e,e=r):(i=Nn(),i===r?(V=e,e=r):(t.charCodeAt(V)===39?(a=`'`,V++):(a=r,Jt===0&&an(be)),a===r?(V=e,e=r):(Wt=e,e=Et(i)))),e===r&&(e=V,t.charCodeAt(V)===34?(n=`"`,V++):(n=r,Jt===0&&an(xe)),n===r?(V=e,e=r):(i=Nn(),i===r?(V=e,e=r):(t.charCodeAt(V)===34?(a=`"`,V++):(a=r,Jt===0&&an(xe)),a===r?(V=e,e=r):(Wt=e,e=Dt(i)))))))))),Yt[o]={nextPos:V,result:e},e)}function Dn(){let e,n,i,a,o=V*34+20,s=Yt[o];return s?(V=s.nextPos,s.result):(e=V,t.charCodeAt(V)===91?(n=`[`,V++):(n=r,Jt===0&&an(Se)),n===r?(V=e,e=r):(i=On(),t.charCodeAt(V)===93?(a=`]`,V++):(a=r,Jt===0&&an(Ce)),a===r?(V=e,e=r):(Wt=e,e=Ot(i))),Yt[o]={nextPos:V,result:e},e)}function On(){let e,n,i,a,o,s,c,l,u=V*34+21,d=Yt[u];if(d)return V=d.nextPos,d.result;for(e=V,n=sn(),n===r&&(n=null),i=[],a=V,o=Bn(),t.charCodeAt(V)===44?(s=`,`,V++):(s=r,Jt===0&&an(we)),s===r?(V=a,a=r):(c=Bn(),l=sn(),l===r?(V=a,a=r):(o=[o,s,c,l],a=o)
75);a!==r;)i.push(a),a=V,o=Bn(),t.charCodeAt(V)===44?(s=`,`,V++):(s=r,Jt===0&&an(we)),s===r?(V=a,a=r):(c=Bn(),l=sn(),l===r?(V=a,a=r):(o=[o,s,c,l],a=o));return Wt=e,e=kt(n,i),Yt[u]={nextPos:V,result:e},e}function kn(){let e,n,i=V*34+22,a=Yt[i];return a?(V=a.nextPos,a.result):(e=V,n=t.substr(V,4),n.toLowerCase()===`true`?V+=4:(n=r,Jt===0&&an(Te)),n!==r&&(Wt=e,n=At()),e=n,e===r&&(e=V,n=t.substr(V,5),n.toLowerCase()===`false`?V+=5:(n=r,Jt===0&&an(Ee)),n!==r&&(Wt=e,n=jt()),e=n),Yt[i]={nextPos:V,result:e},e)}function An(){let e,n,i,a=V*34+23,o=Yt[a];return o?(V=o.nextPos,o.result):(e=V,t.substr(V,2)===`0x`?(n=`0x`,V+=2):(n=r,Jt===0&&an(De)),n===r?(V=e,e=r):(i=Ln(),i===r?(V=e,e=r):(Wt=e,e=Mt())),e===r&&(e=V,n=t.charAt(V),u.test(n)?V++:(n=r,Jt===0&&an(Oe)),n===r&&(n=null),i=jn(),i===r?(V=e,e=r):(Wt=e,e=Nt(n,i))),Yt[a]={nextPos:V,result:e},e)}function jn(){let e,n,i,a,o=V*34+24,s=Yt[o];return s?(V=s.nextPos,s.result):(e=V,n=Ln(),n===r?(V=e,e=r):(t.charCodeAt(V)===46?(i=`.`,V++):(i=r,Jt===0&&an(ke)),i===r?(V=e,e=r):(a=Ln(),a===r?(V=e,e=r):(Wt=e,e=Pt()))),e===r&&(e=V,n=Rn(),n===r?(V=e,e=r):(i=Ln(),i===r&&(i=null),Wt=e,e=Ft()),e===r&&(e=V,t.charCodeAt(V)===48?(n=`0`,V++):(n=r,Jt===0&&an(Ae)),n!==r&&(Wt=e,n=It()),e=n)),Yt[o]={nextPos:V,result:e},e)}function Mn(){let e,t,n,i=V*34+25,a=Yt[i];if(a)return V=a.nextPos,a.result;if(e=V,t=[],n=Fn(),n!==r)for(;n!==r;)t.push(n),n=Fn();else t=r;return t!==r&&(Wt=e,t=Lt(t)),e=t,Yt[i]={nextPos:V,result:e},e}function Nn(){let e,t,n,i=V*34+26,a=Yt[i];if(a)return V=a.nextPos,a.result;if(e=V,t=[],n=Pn(),n!==r)for(;n!==r;)t.push(n),n=Pn();else t=r;return t!==r&&(Wt=e,t=Rt(t)),e=t,Yt[i]={nextPos:V,result:e},e}function Pn(){let e,n,i=V*34+27,a=Yt[i];return a?(V=a.nextPos,a.result):(e=V,t.substr(V,2)===`\\'`?(n=`\\'`,V+=2):(n=r,Jt===0&&an(je)),n!==r&&(Wt=e,n=zt()),e=n,e===r&&(e=V,t.substr(V,2)===`\\"`?(n=`\\"`,V+=2):(n=r,Jt===0&&an(Me)),n!==r&&(Wt=e,n=Bt()),e=n,e===r&&(e=V,n=t.charAt(V),d.test(n)?V++:(n=r,Jt===0&&an(Ne)),n!==r&&(Wt=e,n=Vt()),e=n)),Yt[i]={nextPos:V,result:e},e)}function Fn(){let e,n,i=V*34+28,a=Yt[i];return a?(V=a.nextPos,a.result):(e=V,n=t.charAt(V),f.test(n)?V++:(n=r,Jt===0&&an(Pe)),n!==r&&(Wt=e,n=Ht()),e=n,Yt[i]={nextPos:V,result:e},e)}function In(){let e,t,n,i,a,o,s,c=V*34+29,l=Yt[c];if(l)return V=l.nextPos,l.result;if(e=V,t=zn(),t!==r){if(n=[],i=V,a=Ln(),a!==r){for(o=[],s=zn();s!==r;)o.push(s),s=zn();a=[a,o],i=a}else V=i,i=r;for(;i!==r;)if(n.push(i),i=V,a=Ln(),a!==r){for(o=[],s=zn();s!==r;)o.push(s),s=zn();a=[a,o],i=a}else V=i,i=r;Wt=e,e=Ut()}else V=e,e=r;return Yt[c]={nextPos:V,result:e},e}function Ln(){let e,n,i=V*34+30,a=Yt[i];if(a)return V=a.nextPos,a.result;if(e=[],n=t.charAt(V),p.test(n)?V++:(n=r,Jt===0&&an(Fe)),n!==r)for(;n!==r;)e.push(n),n=t.charAt(V),p.test(n)?V++:(n=r,Jt===0&&an(Fe));else e=r;return Yt[i]={nextPos:V,result:e},e}function Rn(){let e,n,i=V*34+31,a=Yt[i];if(a)return V=a.nextPos,a.result;if(e=[],n=t.charAt(V),m.test(n)?V++:(n=r,Jt===0&&an(Ie)),n!==r)for(;n!==r;)e.push(n),n=t.charAt(V),m.test(n)?V++:(n=r,Jt===0&&an(Ie));else e=r;return Yt[i]={nextPos:V,result:e},e}function zn(){let e,n,i=V*34+32,a=Yt[i];if(a)return V=a.nextPos,a.result;if(e=[],n=t.charAt(V),h.test(n)?V++:(n=r,Jt===0&&an(Le)),n!==r)for(;n!==r;)e.push(n),n=t.charAt(V),h.test(n)?V++:(n=r,Jt===0&&an(Le));else e=r;return Yt[i]={nextPos:V,result:e},e}function Bn(){let e,n,i=V*34+33,a=Yt[i];if(a)return V=a.nextPos,a.result;for(Jt++,e=[],n=t.charAt(V),g.test(n)?V++:(n=r,Jt===0&&an(Re));n!==r;)e.push(n),n=t.charAt(V),g.test(n)?V++:(n=r,Jt===0&&an(Re));return Jt--,Yt[i]={nextPos:V,result:e},e}function Vn(e,t,n=!1){return t.reduce(function(e,t){return new XP(t[1],e,t[3],n)},e)}function Hn(e){return[].concat.apply([],e)}Xt=o();let Un=Xt!==r&&V===t.length;function Wn(){throw Xt!==r&&V<t.length&&an(tn()),on(qt,Kt<t.length?Qt(Kt):null,Kt<t.length?rn(Kt,Kt+1):rn(Kt,Kt))}if(n.peg$library)return{peg$result:Xt,peg$currPos:V,peg$FAILED:r,peg$maxFailExpected:qt,peg$maxFailPos:Kt,peg$success:Un,peg$throw:Un?void 0:Wn};if(Un)return Xt;Wn()}return{StartRules:[`Expression`],SyntaxError:e,parse:t}})();rF.SyntaxError.prototype.name=`PeggySyntaxError`;var iF=rF.parse,aF=rF.SyntaxError,oF=class{constructor(e,t){this.at=e,this.co
75de=t}},sF=class{patchExpression(e){return e=this.patchBraces(e),e.replace(/=>/g,`>=`).replace(/=</g,`<=`).replace(/<>/g,`!=`).replace(/equals/g,`equal `).replace(/notequals/g,`notequal `)}patchBraces(e){let t=G.expressionVariableDelimiters.start,n=G.expressionVariableDelimiters.end;if(t===`{`&&n===`}`)return e;if(t===n){let n=e.split(t),r=n[0];for(let e=1;e<n.length;e++)r+=(e%2==1?`{`:`}`)+n[e];return r}return e.split(t).join(`{`).split(n).join(`}`)}createCondition(e){return this.parseExpression(e)}parseExpression(e){try{return iF(this.patchExpression(e))}catch(e){e instanceof aF&&(this.conditionError=new oF(e.location.start.offset,e.message))}}get error(){return this.conditionError}},cF=class{constructor(e,t,n,r,i){this.operand=e,this.id=t,this.onComplete=n,this.processValue=new Bj(i),this.processValue.properties=r}run(e){if(!e)return this.runValues();this.processValue.onCompleteAsyncFunc=e=>{let t=this.getAsyncItemByOperand(e,this.asyncFuncList);t&&this.doAsyncFunctionReady(t)},this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var t=0;t<this.asyncFuncList.length;t++)this.runAsyncItem(this.asyncFuncList[t]);return!1}getAsyncItemByOperand(e,t){if(!Array.isArray(t))return null;for(let n=0;n<t.length;n++){if(t[n].operand===e)return t[n];let r=this.getAsyncItemByOperand(e,t[n].children);if(r)return r}return null}runAsyncItem(e){e.children?e.children.forEach(e=>this.runAsyncItem(e)):this.runAsyncItemCore(e)}runAsyncItemCore(e){e.operand?e.operand.evaluate(this.processValue):this.doAsyncFunctionReady(e)}doAsyncFunctionReady(e){if(e.parent&&this.isAsyncChildrenReady(e)){this.runAsyncItemCore(e.parent);return}for(var t=0;t<this.asyncFuncList.length;t++)if(!this.isAsyncFuncReady(this.asyncFuncList[t]))return;this.runValues()}isAsyncFuncReady(e){return e.operand&&!e.operand.isReady(this.processValue)?!1:this.isAsyncChildrenReady(e)}isAsyncChildrenReady(e){if(e.children){for(let t=0;t<e.children.length;t++)if(!this.isAsyncFuncReady(e.children[t]))return!1}return!0}runValues(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e,this.id),e}},lF=class{static getQuestionErrorText(e){return qj(e)}constructor(e){this.parser=new sF,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}get expression(){return this.expressionValue}setExpression(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=this.canRun()?this.operand.hasFunction():!1,this.isAsyncValue=this.hasFunction()?this.operand.hasAsyncFunction():!1)}getVariables(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e}hasFunction(e){return e===!0?!!this.operand&&this.operand.hasFunction(!0):this.hasFunctionValue}get isAsync(){return this.isAsyncValue}canRun(){return!!this.operand}run(e,t,n){return this.runContext(new zj(e,t==null?void 0:t.context),t,n)}runContext(e,t=null,n){return this.operand?new cF(this.operand,n,this.onComplete,t,e).run(this.isAsync):(this.expression&&Gj.warn(`Invalid expression: '`+this.expression+`'.`+qj(t)),null)}validate(e,t,n){let r=[];if(!this.operand)return r.push({errorType:Kj.SyntaxError}),r;let i=[];this.operand.addOperandsToList(i),n.semantics&&t&&this.operand.addConditionSemanticErrors(r);let a=i.reduce((e,t)=>{let n=t.getType();return e[n]||(e[n]=[]),e[n].push(t),e},{});if(n.functions)for(let e of a.function||[])Yj.Instance.hasFunction(e.functionName)||r.push({errorType:Kj.UnknownFunction,functionName:e.functionName});if(n.variables){let t=this.getArrayContextVarNames(a,e);for(let n of a.variable||[])!new Bj(e).hasValue(n.variable)&&!t.has(n.variable)&&r.push({errorType:Kj.UnknownVariable,variableName:n.variable})}return r}getArrayContextVarNames(e,t){let n=new Set,r=this.getSurveyFromContext(t);if(!r)return n;let i=new Set([`sumInArray`,`minInArray`,`maxInArray`,`countInArray`,`avgInArray`]);for(let t of e.function||[]){if(!i.has(t.functionName))continue;let e=t.paramValues;if(!e||e.length<1||e[0].getType()!==`variable`)continue;let a=r.getQuestionByValueName(e[0].variable,!0);if(!a)continue;let o=a.templateElements;
75Array.isArray(o)&&o.forEach(e=>{e.name&&n.add(e.name)});let s=a.columns;Array.isArray(s)&&s.forEach(e=>{e.name&&n.add(e.name)})}return n}getSurveyFromContext(e){if(!e||!e.getObj)return null;let t=e.getObj();return t?t.getQuestionByValueName?t:t.getSurvey?t.getSurvey():null:null}};lF.createExpressionExecutor=e=>new lF(e),Hj(e=>new lF(e));var uF=class extends zP{createColumnValues(){return this.createItemValues(`columns`)}constructor(e){super(e),this.generatedVisibleRows=null,this.generatedTotalRow=null,this.columns=this.createColumnValues(),this.rows=this.createItemValues(`rows`)}getType(){return`matrixbase`}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),(e===`rowsVisibleIf`||e===`columnsVisibleIf`)&&this.runCondition(this.getDataFilteredProperties())}endLoadingFromJson(){super.endLoadingFromJson(),this.updateVisibilityBasedOnRows()}get isCompositeQuestion(){return!0}get visibleColumns(){let e=[];return this.columns.forEach(t=>{this.isColumnVisible(t)&&e.push(t)}),e}isColumnVisible(e){return e.isVisible}getVisibleRows(){return[]}get visibleRows(){return this.getVisibleRows()}runConditionCore(e){super.runConditionCore(e),this.runItemsCondition(e)}onColumnsChanged(){}onRowsChanged(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)}updateVisibilityBasedOnRows(){this.hideIfRowsEmpty&&this.onVisibleChanged()}isVisibleCore(){var e;let t=super.isVisibleCore();return!t||!this.hideIfRowsEmpty?t:((e=this.visibleRows)==null?void 0:e.length)>0}shouldRunColumnExpression(){return!this.survey||!this.survey.areInvisibleElementsShowing}runItemsCondition(e){let t=this.runConditionsForRows(e),n=this.runConditionsForColumns(e);(n||t)&&(this.isClearValueOnHidden&&n&&this.clearInvisibleColumnValues(),this.clearGeneratedRows(),n&&this.onColumnsChanged(),this.onRowsChanged())}clearGeneratedRows(){this.generatedVisibleRows=null}createRowsVisibleIfRunner(){return null}runConditionsForRows(e){let t=this.areInvisibleElementsShowing,n=t?null:this.createRowsVisibleIfRunner(),r=HP.runConditionsForItems(this.rows,void 0,n,e,!t);return HP.runEnabledConditionsForItems(this.rows,void 0,e),r}runConditionsForColumns(e){let t=!this.areInvisibleElementsShowing,n=this.getExpressionFromSurvey(`columnsVisibleIf`),r=t&&n?new Jj(n):null;return HP.runConditionsForItems(this.columns,void 0,r,e,this.shouldRunColumnExpression())}clearInvisibleColumnValues(){}clearInvisibleValuesInRows(){}needResponsiveWidth(){return!0}get columnsAutoWidth(){return!this.isMobile&&!this.columns.some(e=>!!e.width)}getTableCss(){var e;return new X().append(this.cssClasses.root).append(this.cssClasses.columnsAutoWidth,this.columnsAutoWidth).append(this.cssClasses.noHeader,!this.showHeader).append(this.cssClasses.hasFooter,!!((e=this.renderedTable)!=null&&e.showAddRowOnBottom)).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,this.verticalAlign===`top`).append(this.cssClasses.rootVerticalAlignMiddle,this.verticalAlign===`middle`).toString()}getTableWrapperCss(){return new X().append(this.cssClasses.tableWrapper).append(this.cssClasses.tableWrapperLeft,this.titleLocation==`left`).toString()}getCellAriaLabel(e,t,n){let r=e.locText&&e.locText.renderedHtml?e.locText.renderedHtml:``;n&&(r=n);let i=t.locTitle&&t.locTitle.renderedHtml?t.locTitle.renderedHtml:``,a=(this.getLocalizationString(`matrix_row`)||`row`).toLocaleLowerCase(),o=(this.getLocalizationString(`matrix_column`)||`column`).toLocaleLowerCase();return`${a} ${r}, ${o} ${i}`}get isNewA11yStructure(){return!0}getIsMobile(){return this.displayMode==`auto`?super.getIsMobile():this.displayMode===`list`}};q([Y()],uF.prototype,`showHeader`,void 0),q([Y()],uF.prototype,`columns`,void 0),q([Y()],uF.prototype,`rows`,void 0),q([Y()],uF.prototype,`rowsVisibleIf`,void 0),q([Y()],uF.prototype,`columnsVisibleIf`,void 0),q([Y()],uF.prototype,`verticalAlign`,void 0),q([Y()],uF.prototype,`alternateRows`,void 0),q([Y({returnValue:``})],uF.prototype,`columnMinWidth`,void 0),q([Y({returnValue:``})],uF.prototype,`rowTitleWidth`,void 0),q([Y()],uF.prototype,`displayMode`,void 0),J.addClass(`matrixbase`,[{name:`showCommentArea:switch`,visible:!0},`columnsVisibleIf:condition`,`rowsVisibleIf:condition`,`columnMinWidth`,{name:`showHeader:boolean`,default:!0},{name:`verticalAlign`,choices:[`top`,`middle`],default:`middle`},{name:`alternateRows:boolean`,default:!1},{name:`displayMode`,default:`auto`,choices:[`auto`,`table`,`list`],visible:!1}],void 0,`question`);var dF=class{},fF=class{constructor(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1}},pF=class{constructor(){this._unObservableValues=[void 0]}get hasAllValuesOnLastRunValue(){return this._unObservableValues[0]}set hasAllValuesOnLastRunValue(e){this._unObservableValues[0]=e}process(e,t,n,r){if(this.hasAllValuesOnLastRunValue=!0,!e||!this.canProcess())return e;let i=this.getItems(e),a=G.expressionVariableDelimiters.start.length,o=G.expressionVariableDelimiters.end.length;for(let c=i.length-1;c>=0;c--){let l=i[c],u=this.getName(e.substring(l.start+a,l.end+1-o));if(u){let i=new fF(u,t===!0);if(this.onProcessValue(i),i.isExists||(this.hasAllValuesOnLastRunValue=!1),i.isExists||r){K.isValueEmpty(i.value)&&(this.hasAllValuesOnLastRunValue=!1);var s=K.isValueEmpty(i.value)?``:i.value;n&&(s=encodeURIComponent(s)),e=e.substring(0,l.start)+s+e.substring(l.end+1)}}}return e}canProcess(){return!!this.onProcess}onProcessValue(e){this.onProcess&&this.onProcess(e)}processValue(e,t){var n=new fF(e,t);return this.onProcess&&this.onProcess(n),n}get hasAllValuesOnLastRun(){return!!this.hasAllValuesOnLastRunValue}processText(e,t){return this.process(e,t)}processTextEx(e){let t={hasAllValuesOnLastRun:!0,text:e.text};return t.text=this.process(e.text,e.returnDisplayValue,e.doEncoding,e.replaceUndefinedValues),t.hasAllValuesOnLastRun=this.hasAllValuesOnLastRun,t}getItems(e){var t=[],n=e.length,r=-1;let i=G.expressionVariableDelimiters.start,a=G.expressionVariableDelimiters.end,o=i.length,s=a.length;for(var c=0;c<n;c++){if(e.substring(c,c+o)===i){r=c,c+=o-1;continue}if(e.substring(c,c+s)===a){if(r>-1){var l=new dF;l.start=r,l.end=c+s-1,this.isValidItemName(e.substring(r+o,c))&&t.pu
75sh(l)}r=-1,c+=s-1;continue}}return t}isValidItemName(e){return!!e&&e.indexOf(`:`)<0}getName(e){if(e)return e.trim()}},mF=class extends pF{constructor(e){super(),this.obj=e}canProcess(){return!0}onProcessValue(e){this.getProcessedTextValue(e),e.element=this.getContextObj(),super.onProcessValue(e)}processText(e,t){let n={text:e,returnDisplayValue:t};return this.processTextEx(n).text}processTextEx(e){var t;return!e.runAtDesign&&(t=this.survey)!=null&&t.isDesignMode?{hasAllValuesOnLastRun:!0,text:e.text}:(this.context=e.context,super.processTextEx(e))}get survey(){let e=this.obj;return e.getSurvey?e.getSurvey():null}getContextObj(){return this.context||this.obj}getProcessedTextValue(e){let t=this.getContextObj(),n=new Fj().getValueInfo({name:e.name,context:t.getValueGetterContext(),isText:!0,isDisplayValue:e.returnDisplayValue});n.isFound&&(e.isExists=n.isFound,e.value=n.value)}},hF=class{constructor(e,t){this.name=e,this.json=t;var n=this;J.addClass(e,[],function(e){return gF.Instance.createQuestion(e?e.name:``,n)},`question`),this.onInit()}onInit(){this.json.onInit&&this.json.onInit()}onCreated(e){this.json.onCreated&&this.json.onCreated(e)}onLoaded(e){this.json.onLoaded&&this.json.onLoaded(e)}onAfterRender(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)}onAfterRenderContentElement(e,t,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,n)}onUpdateQuestionCssClasses(e,t,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(e,t,n)}onSetQuestionValue(e,t){this.json.onSetQuestionValue&&this.json.onSetQuestionValue(e,t),this.json.onValueSet&&this.json.onValueSet(e,t)}onPropertyChanged(e,t,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,n)}onValueChanged(e,t,n){this.json.onValueChanged&&this.json.onValueChanged(e,t,n)}onValueChanging(e,t,n){return this.json.onValueChanging?this.json.onValueChanging(e,t,n):n}onGetErrorText(e){if(this.json.getErrorText)return this.json.getErrorText(e)}onItemValuePropertyChanged(e,t,n,r,i){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:n,name:r,newValue:i})}getDisplayValue(e,t,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(e,t)}get defaultQuestionTitle(){return this.json.defaultQuestionTitle}setValueToQuestion(e){let t=this.json.valueToQuestion||this.json.setValue;return t?t(e):e}getValueFromQuestion(e){let t=this.json.valueFromQuestion||this.json.getValue;return t?t(e):e}get isComposite(){return!!this.json.elementsJSON||!!this.json.createElements}getDynamicProperties(){return Array.isArray(this.dynamicProperties)||(this.dynamicProperties=this.calcDynamicProperties()),this.dynamicProperties}getNumberQuestionsWithHiddenTitle(e){let t=this.json.numberQuestionsWithHiddenTitle;return t===void 0?e:t}calcDynamicProperties(){let e=this.json.inheritBaseProps;if(!e||!this.json.questionJSON)return[];let t=this.json.questionJSON.type;if(!t)return[];if(Array.isArray(e)){let n=[];return e.forEach(e=>{let r=J.findProperty(t,e);r&&n.push(r)}),n}let n=[];for(let e in this.json.questionJSON)n.push(e);return J.getDynamicPropertiesByTypes(this.name,t,n)}},gF=class{constructor(){this.customQuestionValues=[]}add(e){if(!e)return;let t=e.name;if(!t)throw`Attribute name is missed`;if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw`There is already registered custom question with name '`+t+`'`;if(J.findClass(t))throw`There is already class with name '`+t+`'`;var n=new hF(t,e);this.onAddingJson&&this.onAddingJson(t,n.isComposite),this.customQuestionValues.push(n)}remove(e){if(!e)return!1;let t=this.getCustomQuestionIndex(e.toLowerCase());return t<0?!1:(this.removeByIndex(t),!0)}get items(){return this.customQuestionValues}getCustomQuestionByName(e){let t=this.getCustomQuestionIndex(e);return t>=0?this.customQuestionValues[t]:void 0}getCustomQuestionIndex(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name===e)return t;return-1}removeByIndex(e){J.removeClass(this.customQuestionValues[e].name),this.customQuestionValues.splice(e,1)}clear(e){for(let t=this.customQuestionValues.length-1;t>=0;t--)(e||!this.customQuestionValues[t].json.internal)&&this.removeByIndex(t)}createQuestion(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)}createCompositeModel(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new bF(e,t)}createCustomModel(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new vF(e,t)}};gF.Instance=new gF;var _F=class extends zP{constructor(e,t){super(e),this.customQuestion=t,Cj.createProperties(this),this.locQuestionTitle=this.createLocalizableString(`questionTitle`),this.locQuestionTitle.setJson(this.customQuestion.defaultQuestionTitle),this.createWrapper(),this.customQuestion&&this.customQuestion.onCreated(this)}getType(){return this.customQuestion?this.customQuestion.name:`custom`}locStrsChanged(){super.locStrsChanged(),this.getElement()&&this.getElement().locStr
75sChanged()}randomSeedChanged(){this.getElement()&&this.getElement().randomSeedChanged()}localeChanged(){super.locStrsChanged(),this.getElement()&&this.getElement().localeChanged()}getDefaultTitle(){return this.locQuestionTitle.isEmpty?super.getDefaultTitle():this.getProcessedText(this.locQuestionTitle.textOrHtml)}addUsedLocales(e){super.addUsedLocales(e),this.getElement()&&this.getElement().addUsedLocales(e)}needResponsiveWidth(){let e=this.getElement();return e?e.needResponsiveWidth():!1}createWrapper(){}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,e,n)}itemValuePropertyChanged(e,t,n,r){super.itemValuePropertyChanged(e,t,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,e,e.ownerPropertyName,t,r)}onFirstRenderingCore(){super.onFirstRenderingCore();let e=this.getElement();e&&e.onFirstRendering()}onHidingContent(){super.onHidingContent();let e=this.getElement();e&&e.onHidingContent()}getProgressInfo(){let e=super.getProgressInfo();return this.getElement()&&(e=this.getElement().getProgressInfo()),this.isRequired&&e.requiredQuestionCount==0&&(e.requiredQuestionCount=1,this.isEmpty()||(e.answeredQuestionCount=1)),e}initElement(e){e&&e.setSurveyImpl(this)}setSurveyImpl(e,t){this.isSettingValOnLoading=!0,super.setSurveyImpl(e,t),this.initElement(this.getElement()),this.isSettingValOnLoading=!1}onCustomQuestionLoaded(){!this.isLoadedCalled&&this.customQuestion&&this.survey&&(this.customQuestion.onLoaded(this),this.isLoadedCalled=!0)}onSurveyLoad(){super.onSurveyLoad(),this.isLoadedCalled=!1,this.getElement()&&this.getElement().onSurveyLoad(),this.onCustomQuestionLoaded()}setSurveyCore(e){super.setSurveyCore(e),this.isLoadedCalled===!1&&e&&this.onCustomQuestionLoaded()}afterRenderQuestionElement(e){}afterRenderCore(e){super.afterRenderCore(e),this.customQuestion&&this.customQuestion.onAfterRender(this,e)}onUpdateQuestionCssClasses(e,t){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,t)}setQuestionValue(e,t=!0){super.setQuestionValue(e,t),this.updateElementCss(),this.customQuestion&&this.customQuestion.onSetQuestionValue(this,e)}setNewValue(e){super.setNewValue(e),this.updateElementCss()}
75onCheckForErrors(e,t,n){if(super.onCheckForErrors(e,t,n),this.customQuestion){let t=this.customQuestion.onGetErrorText(this);t&&e.push(new dN(t,this))}}getSurveyData(){return this}getTextProcessor(){return this.textProcessor}getValue(e){return this.value}setValue(e,t,n,r){if(!this.data)return;this.customQuestion&&this.customQuestion.onValueChanged(this,e,t);var i=this.convertDataName(e);let a=this.convertDataValue(e,t);this.valueToDataCallback&&(a=this.valueToDataCallback(a)),this.data.setValue(i,a,n,r),this.updateIsAnswered(),this.updateElementCss()}getQuestionByName(e){}isValueChanging(e,t){if(this.customQuestion){let n=t;if(t=this.customQuestion.onValueChanging(this,e,t),!K.isTwoValueEquals(t,n)){let n=this.getQuestionByName(e);if(n)return n.value=t,!0}}return!1}convertDataName(e){return this.getValueName()}convertDataValue(e,t){return t}getComment(e){return this.data?this.data.getComment(this.getValueName()):``}setComment(e,t,n){this.data&&this.data.setComment(this.getValueName(),t,n)}getFilteredProperties(){return this.data?this.data.getFilteredProperties():{}}findQuestionByName(e){return this.data?this.data.findQuestionByName(e):null}addElement(e,t){}removeElement(e){return!1}getQuestionTitleLocation(){return`left`}getQuestionTitleWidth(){}getColumsForElement(e){return[]}updateColumns(){}getQuestionStartIndex(){return this.getStartIndex()}getChildrenLayoutType(){return`row`}elementWidthChanged(e){}get elements(){return[]}indexOf(e){return-1}ensureRowsVisibility(){}validateContainerOnly(){}getQuestionErrorLocation(){return this.getErrorLocation()}getContentAriaHidden(){return this.isDesignMode||super.getContentAriaHidden()}getContentDisplayValueCore(e,t,n){return n?this.customQuestion.getDisplayValue(e,t,n):super.getDisplayValueCore(e,t)}},vF=class extends _F{getTemplate(){return`custom`}getDynamicProperties(){return this.customQuestion.getDynamicProperties()||[]}getDynamicType(){return this.questionWrapper?this.questionWrapper.getType():`question`}getOriginalObj(){return this.questionWrapper}getOriginalByProperty(e){var t,n;let r=(n=(t=this.customQuestion)==null?void 0:t.json)==null?void 0:n.inheritBaseProps;return!(r===!0||Array.isArray(r)&&r.indexOf(e)>-1)&&J.findProperty(`question`,e)?this:super.getOriginalByProperty(e)}createWrapper(){this.questionWrapper=this.createQuestion(),this.createDynamicProperties(this.questionWrapper),this.getDynamicProperties().length>0&&(this.questionWrapper.onPropertyValueChangedCallback=(e,t,n,r,i)=>{this.getDynamicProperty(e)&&this.propertyValueChanged(e,t,n,i)})}getDynamicProperty(e){let t=this.getDynamicProperties();for(let n=0;n<t.length;n++)if(t[n].name===e)return t[n];return null}getElement(){return this.contentQuestion}supportAutoAdvance(){return!!this.contentQuestion&&this.contentQuestion.supportAutoAdvance()}onAnyValueChanged(e,t){super.onAnyValueChanged(e,t),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(e,t)}getQuestionByName(e){return this.contentQuestion}getDefaultTitle(){return this.hasJSONTitle&&this.contentQuestion?this.getProcessedText(this.contentQuestion.title):super.getDefaultTitle()}setValue(e,t,n,r){this.isValueChanging(e,t)||super.setValue(e,t,n,r)}updateCommentFromSurvey(e){super.updateCommentFromSurvey(e);let t=this.contentQuestion;t&&t.updateCommentFromSurvey(e)}get requireUpdateCommentValue(){var e;return(e=this.contentQuestion)==null?void 0:e.requireUpdateCommentValue}onSetData(){super.onSetData(),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)}validateElementCore(e){if(!this.contentQuestion)return!0;var t=this.contentQuestion.validateElement(e);this.errors=[];for(var n=0;n<this.contentQuestion.errors.length;n++)this.errors.push(this.contentQuestion.errors[n]);return t=t&&super.validateElementCore(e),this.updateElementCss(),t}focus(e=!1){this.contentQuestion?this.contentQuestion.focus(e):super.focus(e)}afterRenderCore(e){super.afterRenderCore(e),this.contentQuestion&&this.contentQuestion.afterRender(e)}get contentQuestion(){return this.questionWrapper}get ariaTitleId(){return this.contentQuestion?this.contentQuestion.ariaTitleId:this.id+`_ariaTitle11`}get ariaDescriptionId(){return this.contentQuestion?this.contentQuestion.ariaDescriptionId:this.id+`_ariaDescription`}get commentId(){return this.contentQuestion?this.contentQuestion.commentId:this.id+`_comment`}createQuestion(){var e=this.customQuestion.json,t=null;if(e.questionJSON){this.hasJSONTitle=!!e.questionJSON.title;let n=e.questionJSON.type;if(!n||!J.findClass(n))throw`type attribute in questionJSON is empty or incorrect`;t=J.createClass(n),t.fromJSON(e.questionJSON),t=this.checkCreatedQuestion(t)}else e.createQuestion&&(t=this.checkCreatedQuestion(e.createQuestion()));return this.initElement(t),t&&(t.isContentElement=!0,t.name||(t.name=`question`),t.onUpdateCssClasse
75sCallback=e=>{this.onUpdateQuestionCssClasses(t,e)},t.hasCssErrorCallback=()=>this.errors.length>0,t.setValueChangedDirectlyCallback=e=>{this.setValueChangedDirectly(e)}),t}checkCreatedQuestion(e){return e&&(e.isQuestion||(e=Array.isArray(e.questions)&&e.questions.length>0?e.questions[0]:J.createClass(`text`),Gj.error(`Could not create component: '`+this.getType()+`'. questionJSON should be a question.`)),e)}onSurveyLoad(){super.onSurveyLoad(),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())}runConditionCore(e){super.runConditionCore(e),this.contentQuestion&&this.contentQuestion.runCondition(e)}getConditionJson(e=null,t=null){return this.contentQuestion&&this.isContentConditionPath(t)?this.contentQuestion.getConditionJson(e,t):super.getConditionJson(e,t)}isContentConditionPath(e){return e?e!==this.name&&e!==this.getValueName()&&e!==this.getFilteredName():!1}addConditionObjectsByContext(e,t){if(this.contentQuestion){let n=[];this.contentQuestion.addConditionObjectsByContext(n,t);let r=[this.contentQuestion.getFilteredName(),this.contentQuestion.getValueName()];for(let t=0;t<n.length;t++){let i=n[t];i.name=this.replaceContentPrefix(i.name,r,this.getValueName()),i.text=this.replaceContentPrefix(i.text,[this.contentQuestion.processedTitle],this.processedTitle),i.question=this,e.push(i)}return}super.addConditionObjectsByContext(e,t)}replaceContentPrefix(e,t,n){if(!e)return e;for(let r=0;r<t.length;r++){let i=t[r];if(i){if(e===i)return n;if(e.indexOf(i+`.`)===0)return n+e.substring(i.length)}}return e}convertDataName(e){let t=this.contentQuestion;if(!t||e===this.getValueName())return super.convertDataName(e);var n=e.replace(t.getValueName(),this.getValueName());return n.indexOf(this.getValueName())==0?n:super.convertDataName(e)}convertDataValue(e,t){return this.convertDataName(e)==super.convertDataName(e)?this.getContentQuestionValue():t}getContentQuestionValue(){if(!this.contentQuestion)return;let e=this.contentQuestion.value;return this.customQuestion&&(e=this.customQuestion.getValueFromQuestion(e)),e}setContentQuestionValue(e){this.contentQuestion&&(this.customQuestion&&(e=this.customQuestion.setValueToQuestion(e)),this.contentQuestion.value=e)}canSetValueToSurvey(){return!1}setQuestionValue(e,t=!0){super.setQuestionValue(e,t),!this.isLoadingFromJson&&this.contentQuestion&&!this.isTwoValueEquals(this.getContentQuestionValue(),e)&&this.setContentQuestionValue(this.getUnbindValue(e))}onSurveyValueChanged(e){super.onSurveyValueChanged(e),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(e)}getValueCore(){return this.contentQuestion?this.getContentQuestionValue():super.getValueCore()}setValueChangedDirectly(e){this.isSettingValueChanged||(this.isSettingValueChanged=!0,super.setValueChangedDirectly(e),this.contentQuestion&&this.contentQuestion.setValueChangedDirectly(e),this.isSettingValueChanged=!1)}createDynamicProperties(e){if(!e)return;let t=this.getDynamicProperties();Array.isArray(t)&&J.addDynamicPropertiesIntoObj(this,e,t)}initElement(e){super.initElement(e),e&&(e.parent=this,e.afterRenderQuestionCallback=(e,t)=>{this.customQuestion&&this.customQuestion.onAfterRenderContentElement(this,e,t)},e.onGetNoCallback=e=>this.no)}updateElementCss(e){this.contentQuestion&&this.questionWrapper.updateElementCss(e),super.updateElementCss(e)}setIsMobile(e){super.setIsMobile(e),this.contentQuestion&&this.contentQuestion.setIsMobile(e)}updateElementCssCore(e){super.updateElementCssCore(this.getCssClasses())}getCssClasses(){return this.contentQuestion?this.contentQuestion.cssClasses:super.getCssClasses()}getDisplayValueCore(e,t){return super.getContentDisplayValueCore(e,t,this.contentQuestion)}},yF=class extends FP{constructor(e){super(e),this.question=e}getObj(){return this.question}getContextKeys(){return{[G.expressionVariables.composite]:this.question}}getValue(e){let t=this.question,n=e.path;return n.length>0&&(n.length>1||!e.isRoot)?(n[0].name===G.expressionVariables.composite&&n.shift(),e.isRoot=!1,e.isProperty?new Rj(t.contentPanel).getValue(e):new LP(t.contentPanel.questions).getValue(e)):{isFound:!1}}},bF=class extends _F{constructor(e,t){super(e,t),this.customQuestion=t,this.settingNewValue=!1,this.textProcessing=new mF(this)}createWrapper(){this.panelWrapper=this.createPanel()}getTemplate(){return`composite`}getElement(){return this.contentPanel}getCssRoot(e){return new X().append(super.getCssRoot(e)).append(e.composite).toString()}get contentPanel(){return this.panelWrapper}validateElementCore(e){let t=super.validateElementCore(e),n=this.contentPanel;return n?n.validateElement(e)&&t:t}updateElementCss(e){super.updateElementCss(e),this.contentPanel&&this.contentPanel.updateElementCss(e)}dispose(){this.unConnectEditingObj(),super.dispose()}updateEditingObj(){let e=this.survey;e&&typeof e.getEditingSurveyElement!=`function`&&(e=null);let t=e==null?void 0:e.getEditingSurveyElement();if(!t)return;let n=t[this.getValueName()];return n&&!n.onPropertyChanged&&(n=void 0),n!==this.editingObjValue&&(this.unConnectEditingObj(),this.editingObjValue=n,n&&(this.onEditingObjPropertyChanged=(e,t)=>{this.setNewValueIntoQuestion(t.name,this.editingObjValue[t.name])},n.onPropertyChanged.add(this.onEditingObjPropertyChanged))),this.editingObjValue}unConnectEditingObj(){this.editingObjValue&&!this.editingObjValue.isDisposed&&this.editingObjValue.onPropertyChanged.remove(this.onEditingObjPropertyChanged)}getEditingSurveyElement(){return this.editingObjValue}getTextProcessor(){return this.textProcessing}findQuestionByName(e){return this.getQuestionByName(e)||super.findQuestionByName(e)}clearValueIfInvisibleCore(e){super.clearValueIfInvisibleCore(e);let t=this.contentPanel.questions;for(var n=0;n<t.length;n++)t[n].clearValueIfInvisible(e)}onAnyValueChanged(e,t){super.onAnyValueChanged(e,t);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t)}get isContainer(){return!0}createPanel(){var e=J.createClass(`panel`);
75e.showQuestionNumbers=`off`,e.renderWidth=`100%`;var t=this.customQuestion.json;return t.elementsJSON&&e.fromJSON({elements:t.elementsJSON}),t.createElements&&t.createElements(e,this),this.initElement(e),this.setIsContentElement(e),e.readOnly=this.isReadOnly,e.onGetNoCallback=e=>this.no,e.questions.forEach(e=>{e.setParentQuestion(this),e.onUpdateCssClassesCallback=t=>{this.onUpdateQuestionCssClasses(e,t)}}),this.setAfterRenderCallbacks(e),e}getHasTitleOnCalcNo(){let e=super.getHasTitleOnCalcNo();return this.customQuestion?this.customQuestion.getNumberQuestionsWithHiddenTitle(e):e}onReadOnlyChanged(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),super.onReadOnlyChanged()}updateValueFromSurvey(e,t=!1){this.updateEditingObj(),super.updateValueFromSurvey(e,t)}onSurveyLoad(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),super.onSurveyLoad(),this.contentPanel){let e=this.getContentPanelValue();K.isValueEmpty(e)||(this.value=e)}this.isSettingValOnLoading=!1}setIsContentElement(e){e.isContentElement=!0;for(var t=e.elements,n=0;n<t.length;n++){var r=t[n];r.isPanel?this.setIsContentElement(r):r.isContentElement=!0}}setVisibleIndex(e){if(this.isVisibleIndexNegative(e))return super.setVisibleIndex(-1);let t=super.setVisibleIndex(e);return this.isVisible&&this.contentPanel&&(t+=this.contentPanel.setVisibleIndex(e+1)),t}runConditionCore(e){super.runConditionCore(e),this.contentPanel&&this.contentPanel.runCondition(e)}onSurveyValueChanged(e){super.onSurveyValueChanged(e);let t=e||{};this.contentPanel&&this.contentPanel.questions.forEach(e=>{e.onSurveyValueChanged(t[e.getValueName()])})}getValue(e){var t=this.value;return t?t[e]:null}getQuestionByName(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0}setValue(e,t,n,r){if(this.settingNewValue){this.setNewValueIntoQuestion(e,t);return}if(!this.isValueChanging(e,t)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel){let e=0,t=this.contentPanel.questions.length+1;for(;e<t&&this.updateValueCoreWithPanelValue();)e++}this.setNewValueIntoQuestion(e,t),super.setValue(e,t,n,r),this.settingNewValue=!1,this.runPanelTriggers(G.expressionVariables.composite+`.`+e,t),this.isEditingSurveyElement&&this.runCondition(this.getFilteredProperties())}}setComment(e,t){let n=this.getUnbindValue(this.value),r=this.getCommentName(e);if(!n&&!t||t&&n&&n[r]===t)return;t?(n||(n={}),n[r]=t):delete n[r];let i=this.getQuestionByName(e);i&&i.comment!==t&&(i.comment=t),this.settingNewValue||(this.value=n)}getComment(e){let t=this.getQuestionByName(e);if(t)return t.comment;let n=this.value;return!!n&&n[this.getCommentName(e)]||``}getCommentName(e){return e+G.commentSuffix}runPanelTriggers(e,t){this.contentPanel&&this.contentPanel.questions.forEach(n=>{n.runTriggers(e,t)})}updateValueCoreWithPanelValue(){let e=this.getContentPanelValue();return!this.isTwoValueEquals(this.getValueCore(),e)&&(this.setValueCore(e),!0)}getContentPanelValue(e){return e||(e=this.contentPanel.getValue()),this.customQuestion.setValueToQuestion(e)}getValueForContentPanel(e){return this.customQuestion.getValueFromQuestion(e)}setNewValueIntoQuestion(e,t){var n=this.getQuestionByName(e);n&&!this.isTwoValueEquals(t,n.value)&&(n.value=t)}addConditionObjectsByContext(e,t){if(this.contentPanel)for(var n=this.contentPanel.questions,r=this.name,i=this.title,a=0;a<n.length;a++)e.push({name:r+`.`+n[a].name,text:i+`.`+n[a].title,question:n[a]})}collectNestedQuestionsCore(e,t,n,r){this.contentPanel&&(r&&e.push(this),this.contentPanel.questions.forEach(i=>i.addNestedQuestion(e,t,n,r)))}convertDataValue(e,t){var n=this.contentPanel&&!this.isEditingSurveyElement?this.contentPanel.getValue():this.getValueForContentPanel(this.value);return n||(n={}),n.getType||(n=K.getUnbindValue(n)),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete n[e]:n[e]=t,this.getContentPanelValue(n)}setQuestionValue(e,t=!0){this.setValuesIntoQuestions(e),!this.isEditingSurveyElement&&this.contentPanel&&(e=this.getContentPanelValue()),super.setQuestionValue(e,t)}setValuesIntoQuestions(e){if(!this.contentPanel||this.settingNewValue)return;e=this.getValueForContentPanel(e);let t=this.settingNewValue;this.settingNewValue=!0;let n=this.contentPanel.questions;for(var r=0;r<n.length;r++){let t=n[r],i=t.getValueName(),a=this.getCommentName(i),o=e?e[i]:void 0,s=!!e&&e[a]||``;!this.isTwoValueEquals(t.value,o)&&(o!==void 0||!t.isEmpty())&&(t.value=o),t.comment!==s&&(t.comment=s)}this.settingNewValue=t}getValueGetterContext(){return new yF(this)}getDisplayValueCore(e,t){return super.getContentDisplayValueCore(e,t,this.contentPanel)}setAfterRenderCallbacks(e){if(!(!e||!this.customQuestion))for(var t=e.questions,n=0;n<t.length;n++)t[n].afterRenderQuestionCallback=(e,t)=>{this.customQuestion.onAfterRenderContentElement(this,e,t)}}get ariaRole(){return`group`}setIsMobile(e){super.setIsMobile(e),this.contentPanel&&this.contentPanel.questions.forEach(t=>{t.setIsMobile(e)})}},xF=class{static get DefaultChoices(){let e=hj(`choices_Item`);return[e+`1`,e+`2`,e+`3`]}static get DefaultColums(){var e=hj(`matrix_column`)+` `;return[e+`1`,e+`2`,e+`3`]}static get DefaultRows(){var e=hj(`matrix_row`)+` `;return[e+`1`,e+`2`]}static get DefaultMutlipleTextItems(){var e=hj(`multipletext_itemname`);return[e+`1`,e+`2`]}registerQuestion(e,t,n=!0){SF.Instance.registerElement(e,t,n)}
75registerCustomQuestion(e){SF.Instance.registerCustomQuestion(e)}unregisterElement(e,t=!1){SF.Instance.unregisterElement(e,t)}clear(){SF.Instance.clear()}getAllTypes(){return SF.Instance.getAllTypes()}createQuestion(e,t){return SF.Instance.createElement(e,t)}};xF.Instance=new xF;var SF=class{constructor(){this.creatorHash={},this.registerCustomQuestion=(e,t=!0)=>{this.registerElement(e,t=>{let n=J.createClass(e);return n&&(n.name=t),n},t)}}registerElement(e,t,n=!0){this.creatorHash[e]={showInToolbox:n,creator:t}}clear(){this.creatorHash={}}unregisterElement(e,t=!1){delete this.creatorHash[e],t&&J.removeClass(e)}getAllToolboxTypes(){return this.getAllTypesCore(!0)}getAllTypes(){return this.getAllTypesCore(!1)}createElement(e,t){var n=this.creatorHash[e];if(n&&n.creator)return n.creator(t);let r=gF.Instance.getCustomQuestionByName(e);if(r)return gF.Instance.createQuestion(t,r);if(J.getTypeByAlias(e)){let n=J.createClass(e);if(n)return n.name=t,n}return null}getAllTypesCore(e){var t=[];for(var n in this.creatorHash)(!e||this.creatorHash[n].showInToolbox)&&t.push(n);return t.sort()}};SF.Instance=new SF;var CF=class extends zP{onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),[`format`,`currency`,`displayStyle`].indexOf(e)>-1&&this.updateFormatedValue()}getType(){return`expression`}get hasInput(){return!1}locCalculation(){this.isExecutionLocked=!0}unlocCalculation(){this.isExecutionLocked=!1}runConditionCore(e){super.runConditionCore(e),!(this.isExecutionLocked||!this.runIfReadOnly&&this.isReadOnly)&&(G.expressionQuestionTrackDependencies&&this.canSkipRunningExpression(`expression`)||this.runExpressionByProperty(`expression`,e,e=>{this.value=this.roundValue(e)}))}canCollectErrors(){return!0}hasRequiredError(){return!1}get runIfReadOnly(){return this.runIfReadOnlyValue===!0}set runIfReadOnly(e){this.runIfReadOnlyValue=e}get formatedValue(){return this.getPropertyValue(`formatedValue`,``)}updateFormatedValue(){this.setPropertyValue(`formatedValue`,this.getDisplayValueCore(!1,this.value))}onValueChanged(){this.updateFormatedValue()}updateValueFromSurvey(e,t){super.updateValueFromSurvey(e,t),this.updateFormatedValue()}getDisplayValueCore(e,t){var n=t??this.defaultValue,r=``;if(!this.isValueEmpty(n)){var i=this.getValueAsStr(n);r=this.format?this.format.format(i):i}return this.survey&&(r=this.titleSettings.getExpressionDisplayValue(this,n,r)),r}roundValue(e){if(e!==1/0)return this.precision<0||!K.isNumber(e)?e:parseFloat(e.toFixed(this.precision))}getValueAsStr(e){if(this.displayStyle==`date`){let t=uj(`question-expression`,e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if(this.displayStyle!=`none`&&K.isNumber(e)){var t=this.getLocale();t||(t=`en`);var n={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(n.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(n.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(t,n)}return e.toString()}get ariaRole(){return`presentation`}};q([Y({localizable:!0})],CF.prototype,`format`,void 0),q([Y()],CF.prototype,`expression`,void 0),q([Y({onSetting:e=>e<-1?-1:e>20?20:e})],CF.prototype,`maximumFractionDigits`,void 0),q([Y({onSetting:e=>e<-1?-1:e>20?20:e})],CF.prototype,`minimumFractionDigits`,void 0),q([Y()],CF.prototype,`displayStyle`,void 0),q([Y({onSetting:(e,t)=>wF().indexOf(e)<0?t.currency:e})],CF.prototype,`currency`,void 0),q([Y()],CF.prototype,`useGrouping`,void 0),q([Y()],CF.prototype,`precision`,void 0);function wF(){return`AED.AFN.ALL.AMD.ANG.AOA.ARS.AUD.AWG.AZN.BAM.BBD.BDT.BGN.BHD.BIF.BMD.BND.BOB.BOV.BRL.BSD.BTN.BWP.BYN.BZD.CAD.CDF.CHE.CHF.CHW.CLF.CLP.CNY.COP.COU.CRC.CUC.CUP.CVE.CZK.DJF.DKK.DOP.DZD.EGP.ERN.ETB.EUR.FJD.FKP.GBP.GEL.GHS.GIP.GMD.GNF.GTQ.GYD.HKD.HNL.HRK.HTG.HUF.IDR.ILS.INR.I
75QD.IRR.ISK.JMD.JOD.JPY.KES.KGS.KHR.KMF.KPW.KRW.KWD.KYD.KZT.LAK.LBP.LKR.LRD.LSL.LYD.MAD.MDL.MGA.MKD.MMK.MNT.MOP.MRO.MUR.MVR.MWK.MXN.MXV.MYR.MZN.NAD.NGN.NIO.NOK.NPR.NZD.OMR.PAB.PEN.PGK.PHP.PKR.PLN.PYG.QAR.RON.RSD.RUB.RWF.SAR.SBD.SCR.SDG.SEK.SGD.SHP.SLL.SOS.SRD.SSP.STD.SVC.SYP.SZL.THB.TJS.TMT.TND.TOP.TRY.TTD.TWD.TZS.UAH.UGX.USD.USN.UYI.UYU.UZS.VEF.VND.VUV.WST.XAF.XAG.XAU.XBA.XBB.XBC.XBD.XCD.XDR.XOF.XPD.XPF.XPT.XSU.XTS.XUA.XXX.YER.ZAR.ZMW.ZWL`.split(`.`)}function TF(e,t,n){let r=n?t:e;return e==-1||t==-1?r:e>t?n?e:t:r}J.addClass(`expression`,[`expression:expression`,{name:`format`,serializationProperty:`locFormat`},{name:`displayStyle`,default:`none`,choices:[`none`,`decimal`,`currency`,`percent`,`date`]},{name:`currency`,choices:()=>wF(),default:`USD`,visibleIf:e=>e.displayStyle===`currency`},{name:`maximumFractionDigits:number`,onSettingValue:(e,t)=>TF(e.minimumFractionDigits,t,!0),default:-1},{name:`minimumFractionDigits:number`,onSettingValue:(e,t)=>TF(t,e.maximumFractionDigits,!1),default:-1},{name:`useGrouping:boolean`,default:!0},{name:`precision:number`,default:-1},{name:`enableIf`,visible:!1,isSerializable:!1},{name:`isRequired`,visible:!1,isSerializable:!1},{name:`readOnly`,visible:!1,isSerializable:!1},{name:`requiredErrorText`,visible:!1,isSerializable:!1},{name:`resetValueIf`,visible:!1,isSerializable:!1},{name:`setValueIf`,visible:!1,isSerializable:!1},{name:`setValueExpression`,visible:!1,isSerializable:!1},{name:`defaultValueExpression`,visible:!1,isSerializable:!1},{name:`defaultValue`,visible:!1,isSerializable:!1},{name:`correctAnswer`,visible:!1,isSerializable:!1},{name:`requiredIf`,visible:!1,isSerializable:!1}],function(){return new CF(``)},`question`),xF.Instance.registerQuestion(`expression`,e=>new CF(e));var EF=class{constructor(e){this.column=e}getObj(){return this.column}getValue(e){let t=e.path,n=t.length>0?t[0].name.toLocaleLowerCase():``,r=G.expressionVariables,i=[r.self,r.column].indexOf(n)>-1;if(e.isProperty&&t.length>1&&i)return e.path=t.slice(1),new Rj(this.column).getValue(e);if(t.length===1&&[`name`,`item`].indexOf(n)>-1)return{isFound:!0,value:this.column.name};if(this.column.isDesignMode){let t=this.column.getDesignRowContext();if(t)return t.getValue(e)}}getRootObj(){return this.column.colOwner}};function DF(e,t,n,r){e.storeOthersAsComment=n?n.storeOthersAsComment:!1,(!e.choices||e.choices.length==0)&&e.isChoicesUrlEmpty&&(e.choices=n.choices),e.isChoicesUrlEmpty||e.choicesByUrl.run(r.getTextProcessor())}function OF(e,t,n,r){DF(e,t,n,r),e.locPlaceholder&&e.locPlaceholder.isEmpty&&!n.locPlaceholder.isEmpty&&(e.placeholder=n.placeholder)}var kF={dropdown:{onCellQuestionUpdate:(e,t,n,r)=>{OF(e,t,n,r)}},checkbox:{onCellQuestionUpdate:(e,t,n,r)=>{DF(e,t,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{onCellQuestionUpdate:(e,t,n,r)=>{DF(e,t,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},tagbox:{onCellQuestionUpdate:(e,t,n,r)=>{DF(e,t,n,r)}},text:{},comment:{},boolean:{onCellQuestionUpdate:(e,t,n,r)=>{e.renderAs=t.renderAs}},expression:{},rating:{},slider:{}},AF=class extends qM{static getColumnTypes(){var e=[];for(var t in kF)e.push(t);return e}constructor(e,t,n){super(),this.indexValue=-1,this._hasVisibleCell=!0,this.isColumnsVisibleIf=!0,this.previousChoicesId=void 0,this.colOwnerValue=n,this.updateTemplateQuestion(void 0,e,t)}onPropertyValueChanged(e,t,n){if(super.onPropertyValueChanged(e,t,n),e===`showInMultipleColumns`&&this.doShowInMultipleColumnsChanged(),e===`visible`&&this.doColumnVisibilityChanged(),e===`isRequired`&&this.updateIsRenderedRequired(n),!(!this.colOwner||this.isLoadingFromJson)){if(this.isShowInMultipleColumns){if(e===`choicesOrder`)return;[`visibleChoices`,`choices`].indexOf(e)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this)}J.hasOriginalProperty(this,e)&&this.colOwner.onColumnPropertyChanged(this,e,n)}}getOriginalObj(){return this.templateQuestion}getClassNameProperty(){return`cellType`}getSurvey(e=!1){return this.colOwner?this.colOwner.survey:null}getOwner(){return this.colOwner}endLoadingFromJson(){super.endLoadingFromJson(),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=()=>this.getSurvey()}getDynamicPropertyName(){return`cellType`}getDynamicType(){return this.cellType==="default"?`question`:this.calcCellQuestionType(null)}get colOwner(){return this.colOwnerValue}set colOwner(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))}getValueGetterContext(){return new EF(this)}getDesignRowContext(){var e;return(e=this.colOwner)==null?void 0:e.getDesignRowContext()}locStrsChanged(){super.locStrsChanged(),this.locTitle.strChanged()}addUsedLocales(e){super.addUsedLocales(e),this.templateQuestion.addUsedLocales(e)}get index(){return this.indexValue}setIndex(e){this.indexValue=e}getType(){return`matrixdropdowncolumn`}getAllChildren(){return[...super.getAllChildren(),...this.validators]}get cellType(){return this.getPropertyValue(`cellType`)}set cellType(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue(`cellType`,e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)}get templateQuestion(){return this.templateQuestionValue}get value(){return this.templateQuestion.name}get isVisible(){return!0}get isColumnVisible(){return this.areInvisibleElementsShowing?!0:this.visible&&this.hasVisibleCell}get areInvisibleElementsShowing(){var e;return(e=this.getSurvey())==null?void 0:e.areInvisibleElementsShowing}get visible(){return this.templateQuestion.visible}set visible(e){this.templateQuestion.visible=e}get hasVisibleCell(){return this._hasVisibleCell}set hasVisibleCell(e){this._hasVisibleCell=e}onCellVisibilityChanged(e){!this.colOwner||this.hasVisibleCell===e||this.colOwner.onColumnCellVisibilityChanged(this)}getVisibleMultipleChoices(){let e=this.templateQuestion.visibleChoices;if(!Array.isArray(e))return[];if(!Array.isArray(this._visiblechoices))return e;let t=[];for(let n=0;n<e.length;n++){let r=e[n];this._visiblechoices.indexOf(r.value)>-1&&t.push(r)}return t}get getVisibleChoicesInCell(){if(Array.isArray(this._visiblechoices))return this._visiblechoices;let e=this.templateQuestion.visibleChoices;return Array.isArray(e)?e:[]}setVisibleChoicesInCell(e){this._visiblechoices=e}get isFilteredMultipleColumns(){if(!this.showInMultipleColumns)return!1;let e=this.templateQuestion.choices;if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(e[t].visibleIf)return!0;return!1}get name(){return this.templateQuestion.name}set name(e){this.templateQuestion.name=e}get title(){return this.templateQuestion.title}set title(e){this.templateQuestion.title=e}get locTitle(){return this.templateQuestion.locTitle}get fullTitle(){return this.locTitle.textOrHtml}get defaultDisplayValue(){return this.templateQuestion.defaultDisplayValue}set defaultDisplayValue(e){this.templateQuestion.defaultDisplayValue=e}get locDefaultDisplayValue(){return this.templateQuestion.locDefaultDisplayValue}updateIsRenderedRequired(e){this.isRenderedRequired=e||this.isRequired}
75get requiredMark(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredMark:this.templateQuestion.requiredMark}get requiredErrorText(){return this.templateQuestion.requiredErrorText}set requiredErrorText(e){this.templateQuestion.requiredErrorText=e}get locRequiredErrorText(){return this.templateQuestion.locRequiredErrorText}get readOnly(){return this.templateQuestion.readOnly}set readOnly(e){this.templateQuestion.readOnly=e}get hasOther(){return this.showOtherItem}set hasOther(e){this.showOtherItem=e}get showOtherItem(){return this.templateQuestion.showOtherItem}set showOtherItem(e){this.templateQuestion.showOtherItem=e}get visibleIf(){return this.templateQuestion.visibleIf}set visibleIf(e){this.templateQuestion.visibleIf=e}get enableIf(){return this.templateQuestion.enableIf}set enableIf(e){this.templateQuestion.enableIf=e}get requiredIf(){return this.templateQuestion.requiredIf}set requiredIf(e){this.templateQuestion.requiredIf=e}get resetValueIf(){return this.templateQuestion.resetValueIf}set resetValueIf(e){this.templateQuestion.resetValueIf=e}get defaultValueExpression(){return this.templateQuestion.defaultValueExpression}set defaultValueExpression(e){this.templateQuestion.defaultValueExpression=e}get setValueIf(){return this.templateQuestion.setValueIf}set setValueIf(e){this.templateQuestion.setValueIf=e}get setValueExpression(){return this.templateQuestion.setValueExpression}set setValueExpression(e){this.templateQuestion.setValueExpression=e}get isSupportMultipleColumns(){return[`checkbox`,`radiogroup`].indexOf(this.cellType)>-1}get isShowInMultipleColumns(){return this.showInMultipleColumns&&this.isSupportMultipleColumns}get validators(){return this.templateQuestion.validators}set validators(e){this.templateQuestion.validators=e}get hasTotal(){return this.totalType!=`none`||!!this.totalExpression}get width(){return this.templateQuestion.width}set width(e){this.templateQuestion.width=e}getLocale(){return this.colOwner?this.colOwner.getLocale():``}getMarkdownHtml(e,t,n){return this.colOwner?this.colOwner.getMarkdownHtml(e,t,n):void 0}getRenderer(e){return this.colOwner?this.colOwner.getRenderer(e):null}getRendererContext(e){return this.colOwner?this.colOwner.getRendererContext(e):e}getProcessedText(e){return this.colOwner?this.colOwner.getProcessedText(e,this):e}createCellQuestion(e){var t=this.calcCellQuestionType(e),n=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(n,e),n}startLoadingFromJson(e){super.startLoadingFromJson(e),e&&!e.cellType&&e.choices&&(e.cellType=this.colOwner.getCellType())}updateCellQuestion(e,t,n=null){this.setQuestionProperties(e,n,!n)}callOnCellQuestionUpdate(e,t){var n=kF[e.getType()];n&&n.onCellQuestionUpdate&&n.onCellQuestionUpdate(e,this,this.colOwner,t)}defaultCellTypeChanged(){this.updateTemplateQuestion()}calcCellQuestionType(e){let t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t}getDefaultCellQuestionType(e){return e||(e=this.cellType),e==="default"?this.colOwner?this.colOwner.getCellType():G.matrix.defaultCellType:e}updateTemplateQuestion(e,t,n){let r=this.getDefaultCellQuestionType(e),i=this.templateQuestion?this.templateQuestion.getType():``;r!==i&&(this.templateQuestion&&this.removeProperties(i),this.templateQuestionJsonValue=void 0,this.templateQuestionValue=this.createNewQuestion(r),this.templateQuestion.locOwner=this,this.addProperties(r),t&&(this.name=t),n?this.title=n:this.templateQuestion.locTitle.strChanged(),G.serialization.matrixDropdownColumnSerializeTitle&&(this.templateQuestion.locTitle.serializeCallBackText=!0),this.templateQuestion.onPropertyChanged.add((e,t)=>{this.templateQuestionJsonValue=void 0,this.propertyValueChanged(t.name,t.oldValue,t.newValue,t.arrayChanges,t.target)}),this.templateQuestion.onNestedPropertyChanged.add((e,t)=>{this.templateQuestionJsonValue=void 0,this.colOwner&&!this.isLoadingFromJson&&this.colOwner.onColumnNestedPropertyChanged(this,t.name,t.nestedName,t.newValue)}),this.templateQuestion.onItemValuePropertyChanged.add((e,t)=>{this.templateQuestionJsonValue=void 0,this.doItemValuePropertyChanged(t.propertyName,t.obj,t.name,t.newValue,t.oldValue)}),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=()=>this.getSurvey()),this.templateQuestion.locTitle.strChanged())}createNewQuestion(e){var t=J.createClass(e);return t||(t=J.createClass(`text`)),t.loadingOwner=this,t.isEditableTemplateElement=!0,t.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(t),this.setParentQuestionToTemplate(t),t}setParentQuestionToTemplate(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)}setQuestionProperties(e,t=null,n=!1){if(this.templateQuestion){var r;if(t)r=new Pj().toJsonObject(this.templateQuestion,!0),t(r);else if(n)this.templateQuestionJsonValue||(this.templateQuestionJsonValue=JSON.stringify(new Pj().toJsonObject(this.templateQuestion,!0))),r=JSON.parse(this.templateQuestionJsonValue);else{let t=this.templateQuestion.getType()===e.getType();r=new Pj().toJsonObject(this.templateQuestion,t)}r.type=e.getType(),this.cellType==="default"&&this.colOwner&&this.colOwner.hasChoices()&&delete r.choices,this.updateItemComponentInJson(r,e),this.jsonObj&&r.type===`rating`&&this.isLoadingFromJson&&Object.keys(this.jsonObj
75).forEach(e=>{r[e]=this.jsonObj[e]}),new Pj().toObject(r,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=()=>{if(!this.isShowInMultipleColumns||this.previousChoicesId&&this.previousChoicesId!==e.id)return;this.previousChoicesId=e.id;let t=e.visibleChoices;this.templateQuestion.choices=t,this.propertyValueChanged(`choices`,t,t)}}}updateItemComponentInJson(e,t){let n=`itemComponent`;if(e[n]===void 0)return;let r=this.templateQuestion.getPropertyByName(n);(!r||r.isDefaultValueByObj(this.templateQuestion,e[n])||!t.getPropertyByName(n))&&delete e[n]}doItemValuePropertyChanged(e,t,n,r,i){J.hasOriginalProperty(t,n)&&this.colOwner!=null&&!this.isLoadingFromJson&&this.colOwner.onColumnItemValuePropertyChanged(this,e,t,n,r,i)}doShowInMultipleColumnsChanged(){this.colOwner!=null&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)}doColumnVisibilityChanged(){this.colOwner!=null&&!this.isDesignMode&&this.colOwner.onColumnVisibilityChanged(this)}getProperties(e){return J.getDynamicPropertiesByObj(this,e)}removeProperties(e){for(var t=this.getProperties(e),n=0;n<t.length;n++){var r=t[n];delete this[r.name],r.serializationProperty&&delete this[r.serializationProperty]}}addProperties(e){let t=this.getProperties(e);J.addDynamicPropertiesIntoObj(this,this.templateQuestion,t)}};q([Y({onSet:(e,t)=>t.templateQuestion.isRequired=e})],AF.prototype,`isRequired`,void 0),q([Y({getDefaultValue:e=>e.isRequired})],AF.prototype,`isRenderedRequired`,void 0),q([Y()],AF.prototype,`isUnique`,void 0),q([Y()],AF.prototype,`showInMultipleColumns`,void 0),q([Y()],AF.prototype,`totalType`,void 0),q([Y()],AF.prototype,`totalExpression`,void 0),q([Y({localizable:!0})],AF.prototype,`totalFormat`,void 0),q([Y({localizable:!0})],AF.prototype,`cellHint`,void 0),q([Y({onSet:(e,t)=>t.templateQuestion.renderAs=e})],AF.prototype,`renderAs`,void 0),q([Y({onSetting:e=>e<-1?-1:e>20?20:e})],AF.prototype,`totalMaximumFractionDigits`,void 0),q([Y({onSetting:e=>e<-1?-1:e>20?20:e})],AF.prototype,`totalMinimumFractionDigits`,void 0),q([Y()],AF.prototype,`totalDisplayStyle`,void 0),q([Y()],AF.prototype,`totalAlignment`,void 0),q([Y({onSetting:(e,t)=>wF().indexOf(e)<0?t.totalCurrency:e})],AF.prototype,`totalCurrency`,void 0),q([Y({defaultValue:``})],AF.prototype,`minWidth`,void 0),q([Y({onSetting:e=>e<-1||e>4?-1:e})],AF.prototype,`colCount`,void 0),J.addClass(`matrixdropdowncolumn`,[{name:`!name`,isUnique:!0},{name:`title`,serializationProperty:`locTitle`,dependsOn:`name`,onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.locTitle.getPlaceholder())}},{name:`cellHint`,serializationProperty:`locCellHint`,visible:!1},{name:`cellType`,default:`default`,choices:()=>{var e=AF.getColumnTypes();return e.splice(0,0,`default`),e}},{name:`colCount`,default:-1,choices:[-1,0,1,2,3,4]},{name:`isRequired:boolean`,defaultFunc:e=>{let t=e==null?void 0:e.templateQuestion;return t&&J.findProperty(t.getType(),`isRequired`).getDefaultValue(t)||!1}},`isUnique:boolean`,{name:`requiredErrorText:text`,serializationProperty:`locRequiredErrorText`},`readOnly:boolean`,{name:`minWidth`,onPropertyEditorUpdate:function(e,t){e&&t&&(t.value=e.minWidth)}},`width`,{name:`visible:switch`,default:!0,overridingProperty:`visibleIf`},`visibleIf:condition`,`enableIf:condition`,`requiredIf:condition`,`resetValueIf:condition`,`setValueIf:condition`,`setValueExpression:expression`,{name:`showInMultipleColumns:boolean`,dependsOn:`cellType`,visibleIf:e=>e.isSupportMultipleColumns},{name:`validators:validators`,baseClassName:`surveyvalidator`,classNamePart:`validator`},{name:`totalType`,visibleIf:e=>!e.isShowInMultipleColumns,default:`none`,choices:[`none`,`sum`,`count`,`min`,`max`,`avg`]},{name:`totalExpression:expression`,visibleIf:e=>!e.isShowInMultipleColumns},{name:`totalFormat`,serializationProperty:`locTotalFormat`,visibleIf:e=>e.hasTotal},{name:`totalDisplayStyle`,visibleIf:e=>e.hasTotal,default:`none`,choices:[`none`,`decimal`,`currency`,`percent`]},{name:`totalAlignment`,visibleIf:e=>e.hasTotal,default:`auto`,choices:[`auto`,`left`,`center`,`right`]},{name:`totalCurrency`,visibleIf:e=>e.hasTotal,choices:()=>wF(),default:`USD`},{name:`totalMaximumFractionDigits:number`,default:-1,visibleIf:e=>e.hasTotal},{name:`totalMinimumFractionDigits:number`,default:-1,visibleIf:e=>e.hasTotal},{name:`renderAs`,default:`default`,visible:!1},{name:`defaultDisplayValue`,serializationProperty:`locDefaultDisplayValue`}],function(){return new AF(``)});
75function jF(e,t,n){return e+(t?`-error`:``)+(n?`-detail`:``)}var MF=class e{constructor(){this.minWidth=``,this.width=``,this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.isDetailRowCell=!1,this.classNameValue=``,this.idValue=e.counter++}get requiredMark(){return this.column&&this.column.isRenderedRequired?this.column.requiredMark:void 0}get hasQuestion(){return!!this.question&&!this.isErrorsCell}get hasTitle(){return!!this.locTitle}get hasPanel(){return!!this.panel}get id(){let e=this.question?this.question.id:this.idValue.toString();return this.isChoice&&(e+=`-`+(Number.isInteger(this.choiceIndex)?`index`+this.choiceIndex.toString():this.item.id)),jF(e,this.isErrorsCell,this.isDetailRowCell)}get item(){return this.itemValue}set item(e){this.itemValue=e,e&&(e.hideCaption=!0)}get isChoice(){return!!this.item}get isItemChoice(){return this.isChoice&&!this.isOtherChoice}get choiceValue(){return this.isChoice?this.item.value:null}get isCheckbox(){return this.isItemChoice&&this.question.isDescendantOf(`checkbox`)}get isRadio(){return this.isItemChoice&&this.question.isDescendantOf(`radiogroup`)}get isFirstChoice(){return this.choiceIndex===0}set className(e){this.classNameValue=e}get className(){let e=new X().append(this.classNameValue);return this.hasQuestion&&e.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),e.toString()}get cellQuestionWrapperClassName(){return this.cell.getQuestionWrapperClassName(this.matrix.cssClasses.cellQuestionWrapper)}get isVisible(){var e;return!this.hasQuestion&&!this.isErrorsCell||!((e=this.matrix)!=null&&e.isMobile)||this.question.isVisible}get showResponsiveTitle(){var e;return this.hasQuestion&&((e=this.matrix)==null?void 0:e.isMobile)}get responsiveTitleCss(){return new X().append(this.matrix.cssClasses.cellResponsiveTitle).toString()}get responsiveLocTitle(){return this.cell.column.locTitle}get headers(){if(this.cell&&this.cell.column){if(this.matrix.IsMultiplyColumn(this.cell.column))return this.item?this.item.locText.renderedHtml:``;let e=this.cell.column.cellHint;return e?e.trim()===``?``:this.cell.column.locCellHint.renderedHtml:this.hasQuestion&&this.question.isVisible&&this.question.title?this.question.title:this.cell.column.title}return this.hasQuestion&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||``}getTitle(){return this.matrix&&this.matrix.showHeader?this.headers:``}calculateFinalClassName(e){let t=this.cell.question.cssClasses,n=new X().append(t.itemValue,!!t).append(t.asCell,!!t);return n.append(e.cell,n.isEmpty()&&!!e).append(e.choiceCell,this.isChoice).toString()}focusIn(){this.question&&this.question.focusIn()}};MF.counter=1;var NF=class extends qM{constructor(e,t=!1){super(),this.cssClasses=e,this.isDetailRow=t,this.hasEndActions=!1,this.isErrorsRow=!1,this.cells=[]}get id(){var e;return jF(((e=this.row)==null?void 0:e.id)||this.uniqueId.toString(),this.isErrorsRow,this.isDetailRow)}get dropTargetId(){var e;return(e=this.row)==null?void 0:e.id}get attributes(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}}get className(){var e,t;return new X().append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.rowHasPanel,(e=this.row)==null?void 0:e.hasPanel).append(this.cssClasses.expandedRow,((t=this.row)==null?void 0:t.isDetailPanelShowing)&&!this.isDetailRow).append(this.cssClasses.rowHasEndActions,this.hasEndActions).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()}setRootElement(e){this.rootElement=e}getRootElement(){return this.rootElement}focusCell(e){if(this.rootElement){let t=`:scope td:nth-of-type(${e+1}) input, :scope td:nth-of-type(${e+1}) button`,n=this.rootElement.querySelectorAll(t)[0];n&&n.focus()}}};q([Y({defaultValue:!1})],NF.prototype,`isGhostRow`,void 0),q([Y({defaultValue:!1})],NF.prototype,`isAdditionalClasses`,void 0),q([Y({defaultValue:!0})],NF.prototype,`visible`,void 0);var PF=class extends NF{constructor(e){super(e),this.isErrorsRow=!0}get attributes(){return{}}
75get className(){return new X().append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()}onAfterCreated(){let e=()=>{this.visible=this.cells.some(e=>e.question&&e.question.hasVisibleErrors)};this.cells.forEach(t=>{t.question&&t.question.registerFunctionOnPropertyValueChanged(`hasVisibleErrors`,e)}),e()}},FF=class extends NF{constructor(e,t){super(e),this.customId=t,this.isErrorsRow=!1}get attributes(){return{}}get dropTargetId(){return this.customId}get className(){return new X().append(this.cssClasses.row).append(this.cssClasses.rowEmpty).toString()}},IF=class extends qM{getIsAnimationAllowed(){return super.getIsAnimationAllowed()&&this.matrix.animationAllowed}getRenderedRowsAnimationOptions(){let e=e=>{e.querySelectorAll(`:scope > td > *`).forEach(e=>{wP(e)})},t=e=>{e.querySelectorAll(`:scope > td > *`).forEach(e=>{TP(e)})};return{isAnimationEnabled:()=>this.animationAllowed,getRerenderEvent:()=>this.onElementRerendered,getAnimatedElement(e){return e.getRootElement()},getLeaveOptions:()=>({cssClass:this.cssClasses.rowLeave,onBeforeRunAnimation:e,onAfterRunAnimation:t}),getEnterOptions:(n,r)=>({cssClass:this.cssClasses.rowEnter,onBeforeRunAnimation:e,onAfterRunAnimation:t}),getKey:e=>e.id}}updateRenderedRows(){this.renderedRows=this.rows}get renderedRows(){return this._renderedRows}set renderedRows(e){this.renderedRowsAnimation.sync(e)}get wrapperDropTargetId(){var e;return(e=this.renderedRows[this.renderedRows.length-1])==null?void 0:e.dropTargetId}constructor(e){super(),this.matrix=e,this._renderedRows=[],this.renderedRowsAnimation=new bP(this.getRenderedRowsAnimationOptions(),e=>{this._renderedRows=e},()=>this._renderedRows),this.hasActionCellInRowsValues={},this.build()}get showTable(){return this.getPropertyValue(`showTable`,!0)}get showHeader(){return this.getPropertyValue(`showHeader`)}get showAddRow(){return this.getPropertyValue(`showAddRow`,!1)}get showAddRowOnTop(){return this.getPropertyValue(`showAddRowOnTop`,!1)}get showAddRowOnBottom(){return this.getPropertyValue(`showAddRowOnBottom`,!1)}get showFooter(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal}get hasFooter(){return!!this.footerRow}get hasRemoveRows(){return this.hasRemoveRowsValue}isRequireReset(){return this.isRequireResetValue||this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal}requireReset(){this.isRequireResetValue=!0}get headerRow(){return this.headerRowValue}get footerRow(){return this.footerRowValue}get isRowsDragAndDrop(){return this.matrix.isRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal}get showCellErrorsTop(){return this.matrix.getErrorLocation()===`top`}get showCellErrorsBottom(){return this.matrix.getErrorLocation()===`bottom`}build(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()}updateShowTableAndAddRow(){let e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue(`showTable`,e);let t=this.matrix.isDesignMode,n=!t&&this.matrix.canAddRow&&e,r=n,i=n;r&&(r=this.matrix.getAddRowLocation()==="default"?!this.matrix.isColumnLayoutHorizontal:this.matrix.getAddRowLocation()!==`bottom`),i&&this.matrix.getAddRowLocation()!==`topBottom`&&(i=!r),this.setPropertyValue(`showAddRow`,!t&&this.matrix.canAddRow),this.setPropertyValue(`showAddRowOnTop`,r),this.setPropertyValue(`showAddRowOnBottom`,i)}onAddedRow(e,t){if(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)return;let n=this.getRenderedRowIndexByIndex(t);this.rowsActions.splice(t,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,n),this.updateShowTableAndAddRow()}getRenderedRowIndexByIndex(e){let t=0,n=0;for(var r=0;r<this.rows.length;r++){if(n===e){this.rows[r].isErrorsRow&&!this.showCellErrorsTop?(t++,r+1<this.rows.length&&this.rows[r+1].isDetailRow&&t++):this.rows[r].isDetailRow&&t++;break}t++,!this.rows[r].isErrorsRow&&!this.rows[r].isDetailRow&&n++}return n<e?this.rows.length:t}getRenderedDataRowCount(){for(var e=0,t=0;t<this.rows.length;t++)!this.rows[t].isErrorsRow&&!this.rows[t].isDetailRow&&e++;return e}onRemovedRow(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var n=1;t<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[t+1].isErrorsRow&&n++,t<this.rows.length-1&&(this.rows[t+1].isDetailRow||this.showCellErrorsBottom&&t+1<this.rows.length-1&&this.rows[t+2].isDetailRow)&&n++,t>0&&this.showCellErrorsTop&&this.rows[t-1].isErrorsRow&&(t--,n++),this.rows.splice(t,n),this.updateShowTableAndAddRow()}}onDetailPanelChangeVisibility(e,t){let n=this.getRenderedRowIndex(e);if(n<0)return;let r=n;this.showCellErrorsBottom&&r++;var i=r<this.rows.length-1&&this.rows[r+1].isDetailRow?r+1:-1;if(!(t&&i>-1||!t&&i<0)){if(t){var a=this.createDetailPanelRow(e,this.rows[n]);this.rows.splice(r+1,0,a)}else this.rows.splice(i,1)}}focusActionCell(e,t){let n=this.rows[this.rows.length-1];if(this.matrix.isColumnLayoutHorizontal){let t=this.getRenderedRowIndex(e);n=this.rows[t]}n==null||n.focusCell(t)}getRenderedRowIndex(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return-1}buildRowsActions(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))}createRenderedRow(e,t=!1){return new NF(e,t)}createErrorRenderedRow(e){return new PF(e)}createEmptyRenderedRow(e){return new FF(e,this.matrix.id)}buildHeader(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue(`showHeader`,e),e){if(this.headerRowValue=this.createRenderedRow(this.cssClasse
75s),this.isRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null,`action`,this.cssClasses.actionsCellDrag)),this.hasActionCellInRows(`start`)&&this.headerRow.cells.push(this.createHeaderCell(null,`action`)),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.columns.length;t++){var n=this.matrix.columns[t];n.isColumnVisible&&(this.matrix.IsMultiplyColumn(n)?this.createMutlipleColumnsHeader(n):this.headerRow.cells.push(this.createHeaderCell(n)))}else{for(var r=this.matrix.visibleRows,t=0;t<r.length;t++){let e=this.createTextCell(r[t].locText);this.setHeaderCellCssClasses(e),e.row=r[t],this.headerRow.cells.push(e)}if(this.matrix.hasFooter){let e=this.createTextCell(this.matrix.getFooterText());this.setHeaderCellCssClasses(e),this.headerRow.cells.push(e)}}this.hasActionCellInRows(`end`)&&this.headerRow.cells.push(this.createHeaderCell(null,`action`))}}buildFooter(){if(this.showFooter){if(this.footerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows(`start`)&&this.footerRow.cells.push(this.createHeaderCell(null,`action`)),this.matrix.hasRowText){let e=this.createTextCell(this.matrix.getFooterText());e.className=new X().append(e.className).append(this.cssClasses.footerTotalCell).toString(),this.footerRow.cells.push(e)}for(var e=this.matrix.visibleTotalRow.cells,t=0;t<e.length;t++){var n=e[t];if(n.column.isColumnVisible){if(this.matrix.IsMultiplyColumn(n.column))this.createMutlipleColumnsFooter(this.footerRow,n);else{var r=this.createEditCell(n);n.column&&this.setCellWidth(n.column,r),r.className=new X().append(r.className).append(this.cssClasses.footerCell).toString(),this.footerRow.cells.push(r)}}}this.hasActionCellInRows(`end`)&&this.footerRow.cells.push(this.createHeaderCell(null,`action`))}}buildRows(){this.blockAnimations();var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e,this.releaseAnimations()}hasActionCellInRows(e){return this.hasActionCellInRowsValues[e]===void 0&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]}hasActionsCellInLocaltion(e){return e==`end`&&this.hasRemoveRows?!0:this.matrix.visibleRows.some((t,n)=>!this.isValueEmpty(this.getRowActions(n,e)))}canRemoveRow(e){return this.matrix.canRemoveRow(e)}buildHorizontalRows(){var e=this.matrix.visibleRows,t=[];if(e.length==0&&this.matrix.allowRowReorder&&this.matrix.allowRowDragIn){let e=this.createEmptyRow(),n=this.createTextCell(this.matrix.locNoRowsText);n.colSpans=this.headerRow&&this.headerRow.cells.length||1,e.cells.push(n),t.push(e)}for(var n=0;n<e.length;n++)this.addHorizontalRow(t,e[n]);return t}addHorizontalRow(e,t,n=-1){let r=this.createHorizontalRow(t),i=this.createErrorRow(r);if(r.row=t,n<0&&(n=e.length),this.matrix.isMobile){let t=[];for(let e=0;e<r.cells.length;e++)this.showCellErrorsTop&&!i.cells[e].isEmpty&&t.push(i.cells[e]),t.push(r.cells[e]),this.showCellErrorsBottom&&!i.cells[e].isEmpty&&t.push(i.cells[e]);r.cells=t,e.splice(n,0,r)}else e.splice(n,0,...this.showCellErrorsTop?[i,r]:[r,i]),n++;t.isDetailPanelShowing&&e.splice(n+1,0,this.createDetailPanelRow(t,r))}getRowDragCell(e){let t=new MF,n=this.matrix.lockedRowCount;return t.isDragHandlerCell=n<1||e>=n,t.isEmpty=!t.isDragHandlerCell,t.className=this.getActionsCellClassName(t),t.row=this.matrix.visibleRows[e],t}getActionsCellClassName(e=null){let t=new X().append(this.cssClasses.actionsCell).append(this.cssClasses.actionsCellDrag,e==null?void 0:e.isDragHandlerCell).append(this.cssClasses.detailRowCell,e==null?void 0:e.isDetailRowCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal);if(e.isActionsCell){let n=e.item.value.actions;this.cssClasses.actionsCellPrefix&&n.forEach(e=>{t.append(this.cssClasses.actionsCellPrefix+`--`+e.id)})}return t.toString()}getRowActionsCell(e,t,n=!1){let r=this.getRowActions(e,t);if(!this.isValueEmpty(r)){let t=new MF,i=this.matrix.allowAdaptiveActions?new mP:new XN;return this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(i.cssClasse
75s=this.matrix.survey.getCss().actionBar),i.setItems(r),t.item=new HP(i),t.isActionsCell=!0,t.isDragHandlerCell=!1,t.isDetailRowCell=n,t.className=this.getActionsCellClassName(t),t.row=this.matrix.visibleRows[e],t}return null}getRowActions(e,t){var n=this.rowsActions[e];return Array.isArray(n)?n.filter(e=>(e.location||(e.location=`start`),e.location===t)):[]}buildRowActions(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,t)),t}get showRemoveButtonAsIcon(){return G.matrix.renderRemoveAsIcon&&this.matrix.survey&&this.matrix.survey.css.root===`sd-root-modern`}setDefaultRowActions(e,t){let n=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?t.push(new kN({id:`remove-row`,css:`sv-action--remove-row`,iconName:`icon-delete-24x24`,iconSize:`auto`,component:`sv-action-bar-item`,innerCss:new X().append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:`end`,showTitle:!1,title:n.removeRowText,enabled:!n.isInputReadOnly,data:{row:e,question:n},action:()=>{n.removeRowUI(e)}})):t.push(new kN({id:`remove-row`,css:`sv-action--remove-row`,location:`end`,enabled:!this.matrix.isInputReadOnly,component:`sv-matrix-remove-button`,data:{row:e,question:this.matrix}}))),e.hasPanel&&(this.matrix.isMobile?t.unshift(new kN({id:`show-detail-mobile`,css:`sv-action--show-detail-mobile`,title:new KM(()=>e.isDetailPanelShowing?this.matrix.getLocalizationString(`hideDetails`):this.matrix.getLocalizationString(`showDetails`)),showTitle:!0,location:`end`,action:t=>{e.showHideDetailPanelClick()}})):t.push(new kN({id:`show-detail`,title:new KM(()=>e.isDetailPanelShowing?this.matrix.getLocalizationString(`hideDetails`):this.matrix.getLocalizationString(`showDetails`)),showTitle:!1,location:`start`,component:`sv-matrix-detail-button`,data:{row:e,question:this.matrix}})))}createErrorRow(e){let t=this.createErrorRenderedRow(this.cssClasses);for(let n=0;n<e.cells.length;n++){let r=e.cells[n];r.hasQuestion?this.matrix.IsMultiplyColumn(r.cell.column)?r.isFirstChoice?t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell(!0)):t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell(!0))}return t.onAfterCreated(),t}createEmptyRow(){return this.createEmptyRenderedRow(this.cssClasses)}createHorizontalRow(e){var t=this.createRenderedRow(this.cssClasses);if(this.isRowsDragAndDrop){var n=this.matrix.visibleRows.indexOf(e);t.cells.push(this.getRowDragCell(n))}if(this.addRowActionsCell(e,t,`start`),this.matrix.hasRowText){var r=this.createTextCell(e.locText);r.row=e,t.cells.push(r),this.setCellWidth(null,r),r.className=new X().append(r.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell,!this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.detailRowText,e.hasPanel).toString()}for(var i=0;i<e.cells.length;i++){let n=e.cells[i];if(n.column.isColumnVisible){if(this.matrix.IsMultiplyColumn(n.column))this.createMutlipleEditCells(t,n);else{n.column.isShowInMultipleColumns&&n.question.visibleChoices.map(e=>e.hideCaption=!1);var r=this.createEditCell(n);t.cells.push(r),this.setCellWidth(n.column,r)}}}return this.addRowActionsCell(e,t,`end`),t}addRowActionsCell(e,t,n){var r=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(n)){let e=this.getRowActionsCell(r,n,t.isDetailRow);if(e)t.cells.push(e),t.hasEndActions=!0;else{var i=new MF;i.isEmpty=!0,i.isDetailRowCell=t.isDetailRow,t.cells.push(i)}}}createDetailPanelRow(e,t){let n=this.matrix.isDesignMode;var r=this.createRenderedRow(this.cssClasses,!0);r.row=e;var i=new MF;this.matrix.hasRowText&&(i.colSpans=2),i.isEmpty=!0,n||r.cells.push(i);var a=null;this.hasActionCellInRows(`end`)&&(a=new MF,a.isEmpty=!0);var o=new MF;return o.panel=e.detailPanel,o.colSpans=t.cells.length-(n?0:i.colSpans)-(a?a.colSpans:0),o.className=this.cssClasses.detailPanelCell,r.cells.push(o),a&&(this.matrix.isMobile?this.addRowActionsCell(e,r,`end`):r.cells.push(a)),typeof this.matrix.onCreateDetailPanelRenderedRowCallback==`function`&&this.matrix.onCreateDetailPanelRen
75deredRowCallback(r),r}buildVerticalRows(){for(var e=this.matrix.columns,t=[],n=0;n<e.length;n++){var r=e[n];if(r.isColumnVisible){if(this.matrix.IsMultiplyColumn(r))this.createMutlipleVerticalRows(t,r,n);else{let e=this.createVerticalRow(r,n),i=this.createErrorRow(e);this.showCellErrorsTop?(t.push(i),t.push(e)):(t.push(e),t.push(i))}}}return this.hasActionCellInRows(`end`)&&t.push(this.createEndVerticalActionRow()),t}createMutlipleVerticalRows(e,t,n){var r=this.getMultipleColumnChoices(t);if(r)for(var i=0;i<r.length;i++){let a=this.createVerticalRow(t,n,r[i],i),o=this.createErrorRow(a);this.showCellErrorsTop?(e.push(o),e.push(a)):(e.push(a),e.push(o))}}createVerticalRow(e,t,n=null,r=-1){var i=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var a=n?n.locText:e.locTitle,o=this.createTextCell(a);o.column=e,o.className=new X().append(o.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),i.cells.push(o)}for(var s=this.matrix.visibleRows,c=0;c<s.length;c++){var l=n,u=r>=0?r:c,d=s[c].cells[t],f=n?d.question.visibleChoices:void 0;f&&u<f.length&&(l=f[u]);var p=this.createEditCell(d,l);p.item=l,p.choiceIndex=u,i.cells.push(p)}return this.matrix.hasTotal&&i.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),i}createEndVerticalActionRow(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,n=0;n<t.length;n++)e.cells.push(this.getRowActionsCell(n,`end`));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e}createMutlipleEditCells(e,t,n=!1){var r=n?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(r)for(var i=0;i<r.length;i++){var a=this.createEditCell(t,n?void 0:r[i]);n||(this.setItemCellCssClasses(a),a.choiceIndex=i),e.cells.push(a)}}setItemCellCssClasses(e){e.className=new X().append(this.cssClasses.cell).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()}createEditCell(e,t=void 0){var n=new MF;return n.cell=e,n.row=e.row,n.column=e.column,n.question=e.question,n.matrix=this.matrix,n.item=t,n.isOtherChoice=!!t&&!!e.question&&e.question.otherItem===t,n.className=n.calculateFinalClassName(this.cssClasses),n}createErrorCell(e,t=void 0){var n=new MF;return n.question=e.question,n.row=e.row,n.matrix=this.matrix,n.isErrorsCell=!0,n.className=new X().append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),n}createMutlipleColumnsFooter(e,t){this.createMutlipleEditCells(e,t,!0)}createMutlipleColumnsHeader(e){var t=this.getMultipleColumnChoices(e);if(t)for(var n=0;n<t.length;n++){var r=this.createTextCell(t[n].locText);this.setHeaderCell(e,r),this.setHeaderCellCssClasses(r),this.headerRow.cells.push(r)}}getMultipleColumnChoices(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&t.length==0?[].concat(this.matrix.choices,e.getVisibleMultipleChoices()):(t=e.getVisibleMultipleChoices(),!t||!Array.isArray(t)?null:t)}setHeaderCellCssClasses(e,t,n){e.className=new X().append(this.cssClasses.headerCell).append(this.cssClasses.columnTitleCell,this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+`--`+t,!!t).append(n,!!n).toString()}createHeaderCell(e,t=null,n){let r=e?this.createTextCell(e.locTitle):this.createEmptyCell();return r.column=e,this.setHeaderCell(e,r),t||(t=e&&e.cellType!=="default"?e.cellType:this.matrix.cellType),this.setHeaderCellCssClasses(r,t,n),r}setHeaderCell(e,t){this.setCellWidth(e,t)}setCellWidth(e,t){t.minWidth=e==null?this.matrix.getRowTitleWidth():this.matrix.getColumnWidth(e),t.width=e==null?this.matrix.getRowTitleWidth():e.width}createTextCell(e){var t=new MF;return t.locTitle=e,this.cssClasses.cell&&(t.className=this.cssClasses.cell),t}createEmptyCell(e=!1){let t=this.createTextCell(null);
75return t.isEmpty=!0,t.className=new X().append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),t}};q([mN({onPush:(e,t,n)=>{n.updateRenderedRows()},onRemove:(e,t,n)=>{n.updateRenderedRows()}})],IF.prototype,`rows`,void 0),q([mN()],IF.prototype,`_renderedRows`,void 0);var LF=class extends IP{constructor(e){super(),this.item=e}getIndex(){return this.item.getIndex()}getQuestionData(){return this.item.data}get questionName(){return``}get variableName(){return this.item.getVariableName()}getValue(e){let t=e.path;if(t.length===0)return;let n=t[0].name.toLocaleLowerCase();if(t.length===1){let e=this.getItemValue(t[0].name);if(e!==void 0)return{isFound:!0,value:e,context:this};if(this.questionName&&n===this.questionName.toLocaleLowerCase()){let e=this.item.data;return{isFound:!0,context:e.getValueGetterContext(),value:e.getFilteredData()}}}if(t.length>1){let r=n===this.getPrevName().toLocaleLowerCase()?-1:+(n===this.getNextName().toLocaleLowerCase());if(r!==0){let n=this.visibleIndex+r,i=this.getVisibleItem(n);return i?(t[0].name=this.variableName,i.getValueGetterContext().getValue(e)):{isFound:!0,value:void 0,context:this}}}let r=this.getSpecificValue(e);if(r)return r;let i=n===this.variableName.toLocaleLowerCase();if(i||!e.isRoot){i&&t.shift();let n=super.getValue(e);if(n&&n.isFound)return n;let r=this.item.getAllValues();return e.isRoot&&(n=this.getValueFromBindedQuestions(t,r),n)?n:new Lj(r).getValue(e)}}updateValueByItem(e,t){let n=this.item.getQuestionsByValueName(e,!0);n.length>0&&(t.isFound=!0,t.obj=n[0],t.context=n[0].getValueGetterContext())}getItemVariableNames(){return[]}getContextKeys(e){let t={},n=this.getItemVariableNames();return(!e||!this.isItemDependenciesTrackable()||this.isContainerValueChanged(e))&&(n=n.concat([this.variableName,this.questionName,this.getPrevName(),this.getNextName()]).concat(this.getRelatedItemNames())),n.forEach(e=>{if(e){t[e]=this.item;let n=e.toLowerCase();n!==e&&(t[n]=this.item)}}),t}getRelatedItemNames(){return[]}isItemDependenciesTrackable(){return!0}isContainerValueChanged(e){let t=this.item.data;for(;t;){let n=typeof t.getValueName==`function`?t.getValueName():t.name;if(n&&e.hasOwnProperty(n))return!0;let r=t.data;r instanceof RF&&(r=r.data),t=r&&r!==t&&typeof r.getValueName==`function`?r:void 0}return!1}},RF=class e{constructor(e){this.data=e,this.isSettingValue=!1,this.textPreProcessor=new mF(this)}getSurveyData(){return this}getTextProcessor(){return this.textPreProcessor}getSurvey(){return this.data?this.data.getSurvey():null}getValue(e){return this.getAllValues()[e]}getAllValues(){return this.data.getItemData(this)}getFilteredProperties(){return{survey:this.getSurvey(),[this.getVariableName()]:this}}findQuestionByName(e){if(!e)return;let t=this.getVariableName()+`.`;if(e.indexOf(t)===0)return this.getQuestionByName(e.substring(t.length));let n=this.getSurvey();return n?n.getQuestionByName(e):null}runTriggers(e,t,n){!e&&!n||this.questions.forEach(r=>r.runTriggers(e,t,n))}runTriggersOnSetValue(t,n){let r=this.questions,i=G.commentSuffix;if(t.endsWith(i)){t=t.substring(0,t.length-i.length);let e=this.getQuestionByName(t);e&&(n=e.value)}let a=this.getVariableName()+`.`+t;for(var o=0;o<r.length;o++){let e=r[o];e.getValueName()!==t&&e.checkBindings(t,n),e.runTriggers(a,n)}var s=this.data.getItemIndex(this);s<0||this.data.getBindedQuestions().forEach(r=>{if(r!==this.data&&typeof r.getItem==`function`){let i=r.getItem(s);if(i&&i instanceof e){let e=i.getVariableName()+`.`+t;i.runTriggers(e,n)}}})}updateSharedQuestionsValue(e,t){let n=this.getQuestionsByValueName(e);if(n.length>1)for(let e=0;e<n.length;e++)K.isTwoValueEquals(n[e].value,t)||(this.isSettingValue=!0,n[e].updateValueFromSurvey(t),this.isSettingValue=!1)}isValueChanged(e,t){let n=this.data.getItemData(this),r=n?n[e]:void 0;return!K.isTwoValueEquals(t,r,!1,!0,!1)}getSharedQuestionByName(e){return this.data?this.data.getSharedQuestionFromArray(e,this.getIndex()):null}},zF=class{constructor(e,t,n){this.column=e,this.row=t,this.data=n,this.questionValue=this.createQuestion(e,t,n),this.questionValue.updateCustomWidget(),this.updateCellQuestionTitleDueToAccessebility(t),this.questionValue.registerPropertyChangedH
75andlers([`isVisible`],()=>{this.onQuestionVisibilityChanged()},`cell`)}updateCellQuestionTitleDueToAccessebility(e){this.questionValue.locTitle.onGetTextCallback=t=>{let n=e==null?void 0:e.getSurvey();if(!n||n.isSingleVisibleInput)return this.questionValue.title;let r=e.getAccessbilityText();return r?this.column.colOwner.getCellAriaLabel(e,this.column,r):this.questionValue.title}}locStrsChanged(){this.question.locStrsChanged()}createQuestion(e,t,n){let r=n.createQuestion(this.row,this.column);return r.onFirstRendering(),r.readOnlyCallback=()=>!this.row.isRowEnabled(),r.validateValueCallback=function(){return n.validateCell(t,e.name,t.value)},Cj.getProperties(e.getType()).forEach(t=>{let n=t.name;e[n]!==void 0&&(r[n]=e[n])}),r}get question(){return this.questionValue}get value(){return this.question.value}set value(e){this.question.value=e}getQuestionWrapperClassName(e){return e}runCondition(e){this.question.runCondition(e)}onQuestionVisibilityChanged(){this.column.onCellVisibilityChanged(this.question.isVisible)}dispose(){this.questionValue.unregisterPropertyChangedHandlers([`isVisible`],`cell`),this.questionValue.dispose()}},BF=class extends zF{constructor(e,t,n){super(e,t,n),this.column=e,this.row=t,this.data=n,this.updateCellQuestion()}createQuestion(e,t,n){var r=J.createClass(`expression`);return r.setSurveyImpl(t),r}locStrsChanged(){this.updateCellQuestion(),super.locStrsChanged()}updateCellQuestion(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,function(e){delete e.defaultValue}),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0}getQuestionWrapperClassName(e){let t=super.getQuestionWrapperClassName(e);if(!t)return t;this.question.expression&&this.question.expression!=`''`&&(t+=` `+e+`--expression`);let n=this.column.totalAlignment;return n===`auto`&&this.column.cellType===`dropdown`&&(n=`left`),t+` `+e+`--`+n}getTotalExpression(){if(this.column.totalExpression)return this.column.totalExpression;if(this.column.totalType==`none`)return`''`;var e=this.column.totalType+`InArray`;return Yj.Instance.hasFunction(e)?e+`({matrix}, '`+this.column.name+`')`:``}},VF=class extends LF{constructor(e){super(e),this.row=e}get visibleIndex(){let e=this.getQuestionData().visibleRows;return e?e.indexOf(this.row):this.row.visibleIndex}getNextName(){return G.expressionVariables.nextRow}getPrevName(){return G.expressionVariables.prevRow}getVisibleItem(e){let t=this.getQuestionData().visibleRows;return!t||e<0||e>=t.length?null:t[e]}getSpecificValue(e){let t=e.path;if(t.length>1&&t[0].name.toLocaleLowerCase()===G.expressionVariables.totalRow.toLocaleLowerCase()){let n=this.row.data.visibleTotalRow;if(n)return t[0].name=`row`,n.getValueGetterContext().getValue(e)}return null}get questionName(){return G.expressionVariables.matrix}getItemVariableNames(){let e=G.expressionVariables;return[e.rowIndex,e.visibleRowIndex,e.item,e.rowName,e.rowValue,e.rowTitle]}getRelatedItemNames(){return[G.expressionVariables.totalRow]}isItemDependenciesTrackable(){return!(this.row instanceof UF)}getRootObj(){return this.row.data}getItemValue(e){let t=G.expressionVariables;if(e=e.toLocaleLowerCase(),e===t.rowIndex.toLocaleLowerCase())return this.row.rowIndex;if(e===t.visibleRowIndex.toLocaleLowerCase())return this.visibleIndex+1;if([t.item,t.rowName.toLocaleLowerCase(),t.rowValue.toLocaleLowerCase()].indexOf(e)>-1)return this.row.rowName;if(e==t.rowTitle.toLocaleLowerCase())return this.row.rowTitle}},HF=class e extends RF{static getId(){return`srow_`+e.idCounter++}constructor(t,n){super(t),this.data=t,this.detailPanelValue=null,this.visibleValue=!0,this.cells=[],this.visibleIndex=-1,this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(n),this.showHideDetailPanelClick=()=>
75{if(this.getSurvey().isDesignMode)return!0;this.showHideDetailPanel()},this.idValue=e.getId()}get id(){return this.idValue}get rowName(){return null}get rowTitle(){return this.rowName}get dataName(){return this.rowName}get text(){return this.rowName}getValueGetterContext(){return new VF(this)}isRowEnabled(){return!0}isRowHasEnabledCondition(){return!1}get isVisible(){return this.visible&&this.isItemVisible()}get visible(){return this.visibleValue}set visible(e){var t;this.visible!==e&&(this.visibleValue=e,(t=this.data)==null||t.onRowVisibilityChanged(this))}isItemVisible(){return!0}get value(){return this.getValueCore(!1)}set value(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],i=this.getCellValue(e,r.getValueName()),a=r.comment,o=e?e[r.getValueName()+qM.commentSuffix]:``;o??(o=``),r.updateValueFromSurvey(i),(o||this.isTwoValueEquals(a,r.comment))&&r.updateCommentFromSurvey(o),r.onSurveyValueChanged(i)}this.isSettingValue=!1}get filteredValue(){return this.getValueCore(!0)}getValueCore(e){for(var t={},n={},r=0;r<this.cells.length;r++){var i=this.cells[r].question;if(i){var a=i.getValueName();n[a]=!0,i.isEmpty()||(t[a]=e?i.getFilteredValue():i.value),i.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(t[a+qM.commentSuffix]=i.comment)}}for(var o=this.detailPanel?this.detailPanel.questions:[],r=0;r<o.length;r++){var i=o[r],a=i.getValueName();n[a]||(i.isEmpty()||(t[a]=e?i.getFilteredValue():i.value),i.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(t[a+qM.commentSuffix]=i.comment))}return t}get locText(){return null}getAccessbilityText(){return this.locText&&this.locText.renderedHtml}get hasPanel(){return this.data?this.data.hasDetailPanel(this):!1}get detailPanel(){return this.detailPanelValue}get detailPanelId(){return this.detailPanel?this.detailPanel.id:``}get isDetailPanelShowing(){return this.data?this.data.getIsDetailPanelShowing(this):!1}setIsDetailPanelShowing(e){!e&&this.detailPanel&&this.detailPanel.onHidingContent(),this.data&&this.data.setIsDetailPanelShowing(this,e),e&&this.detailPanel&&this.detailPanel.onFirstRendering(),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()}showHideDetailPanel(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()}showDetailPanel(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)}hideDetailPanel(e=!1){this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)}ensureDetailPanel(){if(!this.isCreatingDetailPanel&&!(this.detailPanelValue||!this.hasPanel||!this.data)){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.getDataRowValue();if(!K.isValueEmpty(t))for(var n=0;n<e.length;n++){let r=e[n].getValueName(),i=this.editingObj?J.getObjPropertyValue(this.editingObj,r):t[r];K.isValueEmpty(i)||(e[n].value=i)}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}}getAllValues(){let e=this.value;if(this.data){let n=this.getDataRowValue();if(n)for(var t in n)e[t]===void 0&&(e[t]=n[t])}return e}getVariableName(){return G.expressionVariables.row}getDataRowValue(){return this.data?this.data.getItemData(this):null}runCondition(e,t,n){if(!this.data)return;let r=K.createCopy(e);r[G.expressionVariables.row]=this,this.visible=n===!0||this.getRowVisibleIfBaseOnExpression(e,t),this.runRowsEnableCondition(r);for(var i=0;i<this.cells.length;i++)this.cells[i].runCondition(r);this.detailPanel&&this.detailPanel.runCondition(r),this.isRowHasEnabledCondition()&&this.onQuestionReadOnlyChanged()}runRowsEnableCondition(e){}getRowsVisibleIfExpression(e){return e?[e]:[]}getRowVisibleIfBaseOnExpression(e,t){let n=this.getRowsVisibleIfExpression(t),r=!0;for(let t=0;t<n.length&&(r=new Jj(n[t]).runContext(this.getValueGetterContext(),e),r);t++);return r}updateElementVisibility(){this.cells.forEach(e=>e.question.updateElementVisibility()),this.detailPanel&&this.detailPanel.updateElementVisibility()}getNamesWithDefaultValues(){let e=[];return this.questions.forEach(t=>{t.isValueDefault&&e.push(t.getValueName())}),e}clearValue(e,t){for(var n=this.questions,r=0;r<n.length;r++)n[r].clearValue(e,t)}onAnyValueChanged(e,t){for(var n=this.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t)}getDataValueCore(e,t){var n=this.getSurvey();return n?n.getDataValueCore(e,t):e[t]}setValue(e,t){this.setValueCore(e,t,!1)}getComment(e){var t=this.getQuestionByName(e);return t?t.comment:``}setComment(e,t,n){this.setValueCore(e,t,!0)}setValueCore(e,t,n){if(this.isSettingValue||this.isCreatingDetailPanel)return;n||this.updateSharedQuestionsValue(e,t);let r=this.getQuestionByName(e),i=this.onCellValueChanging(r,this.value,
75n),a=n?e+qM.commentSuffix:e;if(!this.isValueChanged(a,i)||this.data.isValidateOnValueChanging&&!this.validateCellQuestion(r))return;let o=t==null&&!r||n&&!t&&!!r;this.data.updateItemValue(this,a,i,o);let s=G.expressionVariables.row;if(a&&this.runTriggersOnSetValue(a,t),this.onAnyValueChanged(s,``),!n&&r){let t=this.getSurvey();if(t&&t.isValidateOnValueChanged){let t=this.data.columns.filter(t=>t.name===e)[0];t&&t.isUnique&&this.data.checkIfValueInRowDuplicated(this,r)}}}onCellValueChanging(e,t,n){if(!e)return t;let r=e.getValueName(),i=n?r+qM.commentSuffix:r,a=this.data.onRowChanging(this,i,t);return this.isTwoValueEquals(a,e.value)?t:(this.isSettingValue=!0,n?e.comment=a:e.value=a,this.isSettingValue=!1,this.value)}validateCellQuestion(e){if(!e)return!0;if(!e.validateElement(new RP({fireCallback:!0,isOnValueChanged:!this.data.isValidateOnValueChanging})))return!1;if(e.isEmpty())return!0;var t=this.getCellByColumnName(e.name);return!t||!t.column||!t.column.isUnique||!this.data.checkIfValueInRowDuplicated(this,e)}get isEmpty(){var e=this.value;if(K.isValueEmpty(e))return!0;for(var t in e)if(e[t]!==void 0&&e[t]!==null)return!1;return!0}hasValueAnyQuestion(e){let t=e?this.visibleQuestions:this.questions;for(let e=0;e<t.length;e++)if(!t[e].isEmpty())return!0;return!1}getQuestionByColumn(e){var t=this.getCellByColumn(e);return t?t.question:null}getCellByColumn(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null}getCellByColumnName(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null}getQuestionByColumnName(e){var t=this.getCellByColumnName(e);return t?t.question:null}get questions(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);for(var n=this.detailPanel?this.detailPanel.questions:[],t=0;t<n.length;t++)e.push(n[t]);return e}get visibleQuestions(){let e=[];return this.questions.forEach(t=>{t.isVisible&&e.push(t)}),e}getQuestionByName(e){return this.getQuestionByColumnName(e)||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)}getQuestionsByName(e){let t=[],n=this.getQuestionByColumnName(e);return n&&t.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(e),n&&t.push(n)),t}getQuestionsByValueName(e,t){t&&(e=e.toLocaleLowerCase());let n=[];for(var r=0;r<this.cells.length;r++){let i=this.cells[r],a=i.question;if(!a)continue;let o=a.getValueName();t&&(o=o.toLocaleLowerCase()),o===e&&n.push(i.question)}return this.detailPanel&&(n=n.concat(this.detailPanel.getQuestionsByValueName(e,t))),n}clearIncorrectValues(e){for(var t in e){var n=this.getQuestionByName(t);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(t,n.value)}else!this.getSharedQuestionByName(t)&&t.indexOf(G.matrix.totalsSuffix)<0&&this.setValue(t,null)}}getLocale(){return this.data?this.data.getLocale():``}getMarkdownHtml(e,t,n){return this.data?this.data.getMarkdownHtml(e,t,n):void 0}getRenderer(e){return this.data?this.data.getRenderer(e):null}getRendererContext(e){return this.data?this.data.getRendererContext(e):e}getProcessedText(e){return this.data?this.data.getProcessedText(e,this):e}locStrsChanged(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()}randomSeedChanged(){for(var e=0;e<this.cells.length;e++)this.cells[e].question.randomSeedChanged();this.detailPanel&&this.detailPanel.randomSeedChanged()}updateCellQuestionOnColumnChanged(e,t,n){var r=this.getCellByColumn(e);r&&this.updateCellOnColumnChanged(r,t,n)}updateCellQuestionOnColumnItemValueChanged(e,t,n,r,i,a){var o=this.getCellByColumn(e);o&&this.updateCellOnColumnItemValueChanged(o,t,n,r,i,a)}onQuestionReadOnlyChanged(){let e=this.questions;for(var t=0;t<e.length;t++){let n=e[t];n.setPropertyValue(`isReadOnly`,n.isReadOnly)}if(this.detailPanel){let e=!!this.data&&this.data.isMatrixReadOnly();this.detailPanel.readOnly=e||!this.isRowEnabled()}}validate(e){let t=!0,n=this.cells;if(!n)return t;for(let r=0;r<n.length;r++){if(!n[r])continue;let i=n[r].question;!i||!i.isVisible||e&&e.isOnValueChanged===!0&&i.isEmpty()||(t=i.validateElement(e)&&t)}if(this.hasPanel&&(this.detailPanelValue||!e||!e.isOnValueChanging)){this.ensureDetailPanel();let n=this.detailPanel.validateElement(e),r=e;!r.hideErroredPanel&&!n&&e.fireCallback&&(r.isSingleDetailPanel&&(r.hideErroredPanel=!0),this.showDetailPanel()),t=n&&t}return t}updateCellOnColumnChanged(e,t,n){t===`choices`&&Array.isArray(n)&&n.length===0&&this.data&&(n=this.data.choices),e.question[t]=n}updateCellOnColumnItemValueChanged(e,t,n,r,i,a){var o=e.question[t];if(Array.isArray(o)){var s=r===`value`?a:n.value,c=HP.getItemByValue(o,s);c&&(c[r]=i)}}buildCells(e){this.isSettingValue=!0;for(var t=this.data.columns,n=0;n<t.length;n++){var r=t[n],i=this.createCell(r);this.cells.push(i);var a=this.getCellValue(e,r.name);if(!K.isValueEmpty(a)){i.question.value=a;var o=r.name+qM.commentSuffix;e&&!K.isValueEmpty(e[o])&&(i.question.comment=e[o])}}this.isSettingValue=!1}isTwoValueEquals(e,t){return K.isTwoValueEquals(e,t,!1,!0,!1)}getCellValue(e,t){return this.editingObj?J.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0}createCell(e){return new zF(e,this,this.data)}get rowIndex(){return this.getItemIndex()}getIndex(){return this.getItemIndex()-1}getItemIndex(){return this.data?this.data.getItemIndex(this)+1:-1}get editingObj(){return this.editingObjValue}dispose(){for(let e=0;e<this.cells.length;e++)this.cells[e].dispose();this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)}
75subscribeToChanges(e){!e||!e.getType||!e.onPropertyChanged||e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=(e,t)=>{this.updateOnSetValue(t.name,t.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}updateOnSetValue(e,t){this.isSettingValue=!0;let n=this.getQuestionsByName(e);for(let e=0;e<n.length;e++)n[e].value=t;this.isSettingValue=!1}};HF.idCounter=1;var UF=class extends HF{constructor(e){super(e,null),this.buildCells(null)}createCell(e){return new BF(e,this,this.data)}setValue(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()}runCondition(e,t){var n=0,r;do r=K.getUnbindValue(this.value),super.runCondition(e,``),n++;while(!K.isTwoValueEquals(r,this.value)&&n<3)}updateCellOnColumnChanged(e,t,n){e.updateCellQuestion()}},WF=class{constructor(e,t){this.matrix=e,this.row=t}getLocale(){return this.matrix.getLocale()}getMarkdownHtml(e,t,n){return this.matrix.getMarkdownHtml(e,t,n)}getProcessedText(e){return this.matrix.processSingleInputTitle(e,this.row)}getRenderer(e){return this.matrix.getRenderer(e)}getRendererContext(e){return this.matrix.getRendererContext(e)}},GF=class extends uF{constructor(){super(...arguments),this.isRowChanging=!1,this.lockResetRenderedTable=!1}get matrixCallbacks(){return this.survey}get choiceCallbacks(){return this.survey}static get defaultCellType(){return G.matrix.defaultCellType}static set defaultCellType(e){G.matrix.defaultCellType=e}static addDefaultColumns(e){for(var t=xF.DefaultColums,n=0;n<t.length;n++)e.addColumn(t[n])}createColumnValues(){return this.createNewArray(`columns`,e=>{e.colOwner=this,this.onAddColumn&&this.onAddColumn(e),this.survey&&this.matrixCallbacks.matrixColumnAdded(this,e)},e=>{e.colOwner=null,this.onRemoveColumn&&this.onRemoveColumn(e)})}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),(e===`columns`||e===`cellType`)&&this.updateColumnsAndRows(),[`placeholder`,`columnColCount`,`rowTitleWidth`,`choices`].indexOf(e)>-1&&this.clearRowsAndResetRenderedTable(),[`transposeData`,`addRowButtonLocation`,`hideColumnsIfEmpty`,`showHeader`,`minRowCount`,`isReadOnly`,`rowCount`,`hasFooter`,`detailPanelMode`,`displayMode`].indexOf(e)>-1&&this.resetRenderedTable()}getType(){return`matrixdropdownbase`}getAllChildren(){return[...super.getAllChildren(),...this.detailElements]}dispose(){super.dispose(),this.clearGeneratedRows()}get isContainer(){return!0}get isRowsDynamic(){return!1}get isUpdateLocked(){return this.isLoadingFromJson||this.isUpdating}beginUpdate(){this.isUpdating=!0}endUpdate(){this.isUpdating=!1,this.updateColumnsAndRows()}updateColumnsAndRows(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()}itemValuePropertyChanged(e,t,n,r){super.itemValuePropertyChanged(e,t,n,r),e.ownerPropertyName===`choices`&&this.clearRowsAndResetRenderedTable()}get columnLayout(){return this.transposeData?`vertical`:`horizontal`}set columnLayout(e){this.transposeData=e===`vertical`}get columnsLocation(){return this.columnLayout}set columnsLocation(e){this.columnLayout=e}getChildErrorLocation(e){let t=e.parent?this.detailErrorLocation:this.cellErrorLocation;return t==="default"?super.getChildErrorLocation(e):t}get isColumnLayoutHorizontal(){return this.isMobile?!0:!this.transposeData}get useCaseSensitiveComparison(){return this.useCaseSensitiveComparisonValue===void 0?G.comparator.caseSensitive:this.useCaseSensitiveComparisonValue}set useCaseSensitiveComparison(e){this.useCaseSensitiveComparisonValue=e}get isUniqueCaseSensitive(){return this.useCaseSensitiveComparison}set isUniqueCaseSensitive(e){this.useCaseSensitiveComparison=e}get detailPanel(){if(!this.detailPanelValue){let e=this.createNewDetailPanel();e.selectedElementInDesign=this,e.renderWidth=`100%`,e.isInteractiveDesignElement=!1,e.showTitle=!1;let t=this.getPropertyValueWithoutDefault(`allowAdaptiveActions`);t!==void 0&&(e.allowAdaptiveActions=t),this.detailPanelValue=e}return this.detailPanelValue}getPanels(){let e=this.getPanelInDesignMode();return e?[e]:null}getPanelInDesignMode(){return this.detailPanelMode===`none`?null:this.detailPanel}get detailElements(){return this.detailPanel.elements}isPropertyStoredInHash(e){return e===`detailElements`?!this.detailPanelValue:super.isPropertyStoredInHash(e)}mergeLocalizationWithInnerObjects(e,t){let n=e.detailPanelValue;n&&this.detailPanel.mergeLocalizationObj(n,t)}createNewDetailPanel(){return J.createClass(`panel`)}get hasRowText(){return!0}getFooterText(){return null}get canAddRow(){return!1}get canRemoveRows(){return!1}canRemoveRow(e){return!0}onPointerDown(e,t){}onRowsChanged(){this.clearVisibleRows(),this.resetRenderedTable(),super.onRowsChanged(),this.updateRowsVisibleIndexes()}updateRowsVisibleIndexes(){let e=this.visibleRows;
75if(!Array.isArray(e))return;let t=G.expressionVariables.visibleRowIndex,n={};n[t]=0;for(let r=0;r<e.length;r++)e[r].visibleIndex=r,n[t]=r+1,e[r].runTriggers(t,r+1,n)}onStartRowAddingRemoving(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly(!0)}onEndRowAdding(){if(this.lockResetRenderedTable=!1,this.renderedTable){if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{let e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}}}onEndRowRemoving(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)}clearRowsAndResetRenderedTable(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)}resetRenderedTable(e){this.isRendredTableCreated&&(this.lockResetRenderedTable||this.isUpdateLocked?e&&this.renderedTable.requireReset():(this.resetPropertyValue(`renderedTable`),this.fireCallback(this.onRenderedTableResetCallback)))}clearGeneratedRows(){if(this.clearVisibleRows(),this.generatedVisibleRows){for(var e=0;e<this.generatedVisibleRows.length;e++)this.generatedVisibleRows[e].dispose();super.clearGeneratedRows()}}get isRendredTableCreated(){return!!this.getPropertyValueWithoutDefault(`renderedTable`)}get renderedTable(){return this.getPropertyValue(`renderedTable`,void 0,()=>this.createRenderedTable())}createRenderedTable(){return new IF(this)}getRowByQuestion(e){if(e)return e.data}onMatrixRowCreated(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},n=0;n<this.columns.length;n++){t.column=this.columns[n],t.columnName=t.column.name;var r=e.cells[n];t.cell=r,t.cellQuestion=r.question,t.value=r.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.matrixCallbacks.matrixCellCreated(this,t)}}isSelectCellType(){return J.isDescendantOf(this.cellType,`selectbase`)}updateColumnsCellType(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()}updateColumnsIndexes(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)}get allowAdaptiveActions(){return this.getPropertyValue(`allowAdaptiveActions`)}set allowAdaptiveActions(e){this.setPropertyValue(`allowAdaptiveActions`,e),this.detailPanelValue&&(this.detailPanel.allowAdaptiveActions=e)}hasChoices(){let e=this.getPropertyValueWithoutDefault(`choices`);return e&&e.length>0}onColumnPropertyChanged(e,t,n){if(this.updateHasFooter(),this.generatedVisibleRows){for(var r=0;r<this.generatedVisibleRows.length;r++)this.generatedVisibleRows[r].updateCellQuestionOnColumnChanged(e,t,n);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,n),this.onColumnsChanged(),t==`isRequired`&&this.resetRenderedTable()}}onColumnNestedPropertyChanged(e,t,n,r){if(this.generatedVisibleRows)for(var i=0;i<this.generatedVisibleRows.length;i++){let a=this.generatedVisibleRows[i].getQuestionByColumn(e);a&&a[t]&&(a[t][n]=r)}}onColumnItemValuePropertyChanged(e,t,n,r,i,a){if(this.generatedVisibleRows)for(var o=0;o<this.generatedVisibleRows.length;o++)this.generatedVisibleRows[o].updateCellQuestionOnColumnItemValueChanged(e,t,n,r,i,a)}onShowInMultipleColumnsChanged(e){this.resetTableAndRows()}onColumnVisibilityChanged(e){this.resetTableAndRows()}onColumnCellVisibilityChanged(e){this.isDesignMode||this.isRunningCellsCondition||this.isColumnVisibilityChanged(e,!0)&&this.resetRenderedTable(!0)}onColumnCellTypeChanged(e){this.updateDefaultRowValue(e),this.resetTableAndRows()}getDesignRowContext(){return(this.visibleRows&&this.visibleRows.length>0?this.visibleRows[0]:this.createMatrixRow(new HP(1))).getValueGetterContext()}updateDefaultRowValue(e){let t=this.defaultRowValue;t&&e.cellType===`file`&&t[e.name]&&(delete t[e.name],Object.keys(t).length===0&&(t=void 0),this.defaultRowValue=t)}resetTableAndRows(){this.clearGeneratedRows(),this.resetRenderedTable()}getRowTitleWidth(){return``}get hasFooter(){return this.getPropertyValue(`hasFooter`,!1)}getAddRowLocation(){return`default`}getShowColumnsIfEmpty(){return!1}updateShowTableAndAddRow(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()}updateHasFooter(){this.setPropertyValue(`hasFooter`,this.hasTotal)}get hasTotal(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1}getCellType(){return this.cellType}getCustomCellType(e,t,n){if(!this.survey)return n;
75var r={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:n};return this.matrixCallbacks.matrixCellCreating(this,r),r.cellType}getConditionJson(e=null,t=null){if(!t)return super.getConditionJson(e);let n=``;for(let e=t.length-1;e>=0&&t[e]!=`.`;e--)n=t[e]+n;let r,i=this.getColumnByName(n);return i?r=i.createCellQuestion(null):this.detailPanelMode!==`none`&&(r=this.detailPanel.getQuestionByName(n)),r?r.getConditionJson(e):null}clearIncorrectValues(){if(!Array.isArray(this.visibleRows))return;let e=this.generatedVisibleRows;for(let t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))}clearErrors(){super.clearErrors(),this.runFuncForCellQuestions(e=>{e.clearErrors()})}localeChanged(){super.localeChanged(),this.runFuncForCellQuestions(e=>{e.localeChanged()})}runFuncForCellQuestions(e){let t=this.generatedVisibleRows;if(t)for(let n=0;n<t.length;n++){let r=t[n];if(r.isVisible)for(let t=0;t<r.cells.length;t++)e(r.cells[t].question)}}runItemsCondition(e){let t=0,n,r=!1,i=this.runConditionsForColumns(e);do n=K.getUnbindValue(this.totalValue),r=this.runCellsCondition(e)||r,this.runTotalsCondition(e),t++;while(!K.isTwoValueEquals(n,this.totalValue)&&t<3);r&&this.isClearValueOnHidden&&this.clearInvisibleValuesInRows(),i&&this.resetRenderedTable(!0),this.updateVisibilityBasedOnRows()}runTriggers(e,t,n){super.runTriggers(e,t,n),this.runFuncForCellQuestions(r=>{r.runTriggers(e,t,n)})}updateElementVisibility(){super.updateElementVisibility();let e=this.generatedVisibleRows;e&&e.forEach(e=>e.updateElementVisibility()),this.updateShowTableAndAddRow()}shouldRunColumnExpression(){return!1}runCellsCondition(e){if(this.isDesignMode)return!1;let t=!1;this.isRunningCellsCondition=!0;let n=this.areInvisibleElementsShowing,r=this.getExpressionFromSurvey(`rowsVisibleIf`),i=this.generatedVisibleRows;
75if(i)for(var a=0;a<i.length;a++){let o=i[a].isVisible;i[a].runCondition(e,r,n),o!==i[a].isVisible&&(t=!0)}return this.checkColumnsVisibility(),this.checkColumnsRenderedRequired(),this.isRunningCellsCondition=!1,t}runConditionsForColumns(e){let t=this.getExpressionFromSurvey(`columnsVisibleIf`);return this.columns.forEach(n=>{n.isColumnsVisibleIf=!t||new Jj(t).runContext(n.getValueGetterContext(),e)===!0}),!1}checkColumnsVisibility(){if(!this.isDesignMode){for(var e=!1,t=0;t<this.columns.length;t++){let n=this.columns[t],r=!!n.visibleIf||n.isFilteredMultipleColumns;!r&&!this.columnsVisibleIf&&n.isColumnVisible||(e=this.isColumnVisibilityChanged(n,r)||e)}e&&this.resetRenderedTable(!0)}}checkColumnsRenderedRequired(){let e=this.generatedVisibleRows;if(e)for(var t=0;t<this.columns.length;t++){let r=this.columns[t];if(!r.requiredIf||!r.isColumnVisible)continue;let i=e.length>0;for(var n=0;n<e.length;n++)if(!e[n].cells[t].question.isRequired){i=!1;break}r.updateIsRenderedRequired(i)}}isColumnVisibilityChanged(e,t){let n=e.isColumnVisible,r=!t,i=this.generatedVisibleRows,a=t&&i,o=a&&e.isFilteredMultipleColumns,s=o?e.getVisibleChoicesInCell:[],c=[];if(a)for(let t=0;t<i.length;t++){let n=i[t].cells[e.index],a=n==null?void 0:n.question;if(a&&a.isVisible){if(r=!0,o)this.updateNewVisibleChoices(a,c);else break}}return e.hasVisibleCell=r&&e.isColumnsVisibleIf,o&&(e.setVisibleChoicesInCell(c),!K.isArraysEqual(s,c,!0,!1,!1))?!0:n!==e.isColumnVisible}updateNewVisibleChoices(e,t){let n=e.visibleChoices;if(Array.isArray(n))for(let e=0;e<n.length;e++){let r=n[e];t.indexOf(r.value)<0&&t.push(r.value)}}runTotalsCondition(e){this.generatedTotalRow&&this.generatedTotalRow.runCondition(e)}IsMultiplyColumn(e){return e.isShowInMultipleColumns&&!this.isMobile}locStrsChanged(){super.locStrsChanged();for(var e=this.columns,t=0;t<e.length;t++)e[t].locStrsChanged();var n=this.generatedVisibleRows;
75if(n){for(var t=0;t<n.length;t++)n[t].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}}randomSeedChanged(){let e=this.columns;for(var t=0;t<e.length;t++)e[t].templateQuestion.randomSeedChanged();let n=this.generatedVisibleRows;if(n)for(var t=0;t<n.length;t++)n[t].randomSeedChanged()}getColumnByName(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null}getColumnName(e){return this.getColumnByName(e)}getColumnWidth(e){var t;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:((t=G.matrix.columnWidthsByType[e.cellType])==null?void 0:t.minWidth)||``}get choices(){return this.getItemValuesPropertyValue(`choices`)}set choices(e){this.setArrayPropertyValue(`choices`,e)}get optionsCaption(){return this.placeholder}set optionsCaption(e){this.placeholder=e}get singleInputTitleTemplate(){return this.getLocStringText(this.locSingleInputTitleTemplate)}set singleInputTitleTemplate(e){this.setLocStringText(this.locSingleInputTitleTemplate,e)}get locSingleInputTitleTemplate(){return this.getOrCreateLocStr(`singleInputTitleTemplate`,!0,this.getSingleInputTitleTemplate(),e=>{e.owner=new WF(this)})}getMatrixDropdownBaseSingleQuestionLocTitleCore(){return this.locSingleInputTitleTemplate}getSingleInputTitleTemplate(){return``}processSingleInputTitle(e,t){t||(t=this.getRowByQuestion(this.singleInputQuestion));let n=t?t.getTextProcessor():this.textProcessor;return n?n.processText(e,!0):e}createSingleInputBehavior(){return new KF(this)}get storeOthersAsComment(){return this.survey?this.choiceCallbacks.storeOthersAsComment:!1}addColumn(e,t){var n=new AF(e,t,this);return this.columns.push(n),n}clearVisibleRows(){this.visibleRowsArray=null}isColumnVisible(e){return e.isColumnVisible}getVisibleRows(){return this.isUpdateLocked?null:this.isGenereatingRows?[]:this.visibleRowsArray?this.visibleRowsArray:(this.generateVisibleRowsIfNeeded(),this.visibleRowsArray=this.getVisibleFromGenerated(this.generatedVisibleRows),this.updateRowsVisibleIndexes(),this.visibleRowsArray)}get allRows(){return this.isGenereatingRows?[]:(this.generateVisibleRowsIfNeeded(),this.generatedVisibleRows)}generateVisibleRowsIfNeeded(){if(!this.isUpdateLocked&&!this.generatedVisibleRows){this.isGenereatingRows=!0,this.generatedVisibleRows=this.generateRows(),this.isGenereatingRows=!1;for(var e=0;e<this.generatedVisibleRows.length;e++){let t=this.generatedVisibleRows[e];t.visibleIndex=e,this.onMatrixRowCreated(t)}this.data&&(this.runCellsCondition(this.data.getFilteredProperties()),this.isValueChangedWithoutRows&&(this.isValueChangedWithoutRows=!1,this.runTriggersOnNewRows())),this.generatedVisibleRows&&(this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered())}}runTriggersOnNewRows(){let e=this.value;this.generatedVisibleRows.forEach(t=>{let n=this.getRowValueCore(t,e);if(!K.isValueEmpty(n)){let e=K.createCopyWithPrefix(n,G.expressionVariables.row+`.`);t.runTriggers(``,void 0,e)}})}getVisibleFromGenerated(e){let t=[];return e?(e.forEach(e=>{e.isVisible&&t.push(e)}),t.length===e.length?e:t):t}updateValueOnRowsGeneration(e){for(var t=this.createNewValue(!0),n=this.createNewValue(),r=0;r<e.length;r++){var i=e[r];if(!i.editingObj){var a=this.getRowValue(r),o=i.value;this.isTwoValueEquals(a,o)||(n=this.getNewValueOnRowChanged(i,``,o,!1,n).value)}}this.isTwoValueEquals(t,n)||(this.isRowChanging=!0,this.setNewValue(n),this.isRowChanging=!1)}get totalValue(){return!this.hasTotal||!this.visibleTotalRow?{}:this.visibleTotalRow.value}getVisibleTotalRow(){return this.isUpdateLocked?null:(this.hasTotal?this.generatedTotalRow||(this.generatedTotalRow=this.generateTotalRow(),this.data&&this.runTotalsCondition({survey:this.survey})):this.generatedTotalRow=null,this.generatedTotalRow)}get visibleTotalRow(){return this.getVisibleTotalRow()}onSurveyLoad(){super.onSurveyLoad(),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter(),this.genetateColumnsName()}genetateColumnsName(){this.columns.forEach(e=>{(!e.name||e.name===``)&&(e.name=this.generateNewName(this.columns,`question`))})}
75generateNewName(e,t){return this.getSurvey().getNewGeneratedName(e,t)}getRowValue(e){if(e<0||!Array.isArray(this.visibleRows))return null;var t=this.generatedVisibleRows;if(e>=t.length)return null;let n=this.value,r=this.getRowValueCore(t[e],n);return this.isValueSurveyElement(n)?r:K.getUnbindValue(r)}getItemData(e){return this.getRowValue(this.getItemIndex(e))}checkIfValueInRowDuplicated(e,t){return this.generatedVisibleRows?this.isValueInColumnDuplicated(t.name,!0,e):!1}setRowValue(e,t){if(e<0)return null;var n=this.visibleRows;if(e>=n.length)return null;n[e].value=t,this.updateItemValue(n[e],``,t,!1)}generateRows(){return null}generateTotalRow(){return new UF(this)}createNewValue(e=!1){var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t}getRowValueCore(e,t,n=!1){var r=t&&t[e.rowName]?t[e.rowName]:null;return!r&&n&&(r={},t&&(t[e.rowName]=r)),r}getRowObj(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null}getRowDisplayValue(e,t,n){if(!n||t.editingObj)return n;for(var r=Object.keys(n),i=0;i<r.length;i++){var a=r[i],o=t.getQuestionByName(a);if(o||(o=this.getSharedQuestionByName(a,t)),o){var s=o.getDisplayValue(e,n[a]);e&&o.title&&o.title!==a?(n[o.title]=s,delete n[a]):n[a]=s}}return n}getPlainData(e={includeEmpty:!0}){var t=super.getPlainData(e);if(t){t.isNode=!0;let n=Array.isArray(t.data)?[].concat(t.data):[];t.data=this.visibleRows.map(t=>{var n={name:t.dataName,title:t.text,value:t.value,displayValue:this.getRowDisplayValue(!1,t,t.value),getString:e=>this.getValueAsString(e),isNode:!0,data:t.cells.map(t=>t.question.getPlainData(e)).filter(e=>!!e)};return(e.calculations||[]).forEach(e=>{n[e.propertyName]=t[e.propertyName]}),n}),t.data=t.data.concat(n)}return t}addConditionObjectsByContext(e,t){let n=[].concat(this.columns);this.detailPanelMode!==`none`&&(n=n.concat(this.detailPanel.questions));let r=!!t&&n.indexOf(t)>-1,i=t===!0||r,a=this.getConditionObjectsRowIndeces();i&&a.push(-1);for(var o=0;o<a.length;o++){let i=a[o],c=i>-1?this.getConditionObjectRowName(i):`row`;if(!c)continue;let l=i>-1?this.getConditionObjectRowText(i):`row`,u=i>-1||t===!0,d=u&&i===-1?`.`:``,f=(u?this.getValueName():``)+d+c+`.`,p=(u?this.processedTitle:``)+d+l+`.`;for(var s=0;s<n.length;s++){let a=n[s];if(i===-1&&t===a)continue;let o={name:f+a.name,text:p+a.fullTitle,question:this};i===-1&&t===!0?o.context=this:r&&f.startsWith(`row.`)&&(o.context=t),e.push(o)}}}onHidingContent(){if(super.onHidingContent(),!this.generatedVisibleRows)return;let e=[];this.collectNestedQuestions(e,!0),e.forEach(e=>e.onHidingContent())}getIsReadyNestedQuestions(){if(!this.generatedVisibleRows)return[];let e=[];return this.collectNestedQuestonsInRows(this.generatedVisibleRows,e,!1,!0,!1),this.generatedTotalRow&&this.collectNestedQuestonsInRows([this.generatedTotalRow],e,!1,!0,!1),e}collectNestedQuestionsCore(e,t,n,r){r&&e.push(this),this.collectNestedQuestonsInRows(this.visibleRows,e,t,n,r)}collectNestedQuestonsInRows(e,t,n,r,i){Array.isArray(e)&&e.forEach(e=>{e.questions.forEach(e=>e.addNestedQuestion(t,n,r,i))})}getConditionObjectRowName(e){return``}getConditionObjectRowText(e){return this.getConditionObjectRowName(e)}getConditionObjectsRowIndeces(){return[]}getProgressInfo(){if(this.getIsRequireToGenerateRows()&&this.generateVisibleRowsIfNeeded(),this.generatedVisibleRows)return DP.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);let e=qM.createProgressInfo();return this.updateProgressInfoByValues(e),e.requiredQuestionCount===0&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=+!this.isEmpty()),e}getIsRequireToGenerateRows(){return!!this.rowsVisibleIf}updateProgressInfoByValues(e){}updateProgressInfoByRow(e,t){for(var n=0;n<this.columns.length;n++){let r=this.columns[n];if(!r.templateQuestion.hasInput)continue;let i=!K.isValueEmpty(t[r.name]);!i&&r.templateQuestion.visibleIf||(e.questionCount+=1,e.requiredQuestionCount+=r.isRequired,e.answeredQuestionCount+=+!!i,e.requiredAnsweredQuestionCount+=i&&r.isRequired?1:0)}}getCellQuestions(){let e=[];return this.runFuncForCellQuestions(t=>{e.push(t)}),e}onBeforeValueChanged(e){}onSetQuestionValue(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0))){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(n,e)}this.isRowChanging=!1}}setQuestionValue(e){super.setQuestionValue(e,!1),this.onSetQuestionValue(),this.updateIsAnswered()}supportAutoAdvance(){var e=this.generatedVisibleRows;
75if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++){var i=n[r].question;if(i&&(!i.supportAutoAdvance()||!i.value))return!1}}return!0}getContainsErrors(){return super.getContainsErrors()||this.checkForAnswersOrErrors(e=>e.containsErrors,!1)}getIsAnswered(){return super.getIsAnswered()&&this.checkForAnswersOrErrors(e=>e.isAnswered,!0)}checkForAnswersOrErrors(e,t=!1){var n=this.generatedVisibleRows;if(!n)return!1;for(var r=0;r<n.length;r++){var i=n[r].cells;if(i){for(var a=0;a<i.length;a++)if(i[a]){var o=i[a].question;if(o&&o.isVisible){if(e(o)){if(!t)return!0}else if(t)return!1}}}}return!!t}validateElementCore(e){let t=this.validateRows(e),n=this.isValueDuplicated(e);return super.validateElementCore(e)&&t&&!n}getIsRunningValidators(){if(super.getIsRunningValidators())return!0;if(!this.generatedVisibleRows)return!1;for(var e=0;e<this.generatedVisibleRows.length;e++){var t=this.generatedVisibleRows[e].cells;if(t){for(var n=0;n<t.length;n++)if(t[n]){var r=t[n].question;if(r&&r.isRunningValidators)return!0}}}return!1}getAllErrors(){var e=super.getAllErrors(),t=this.generatedVisibleRows;
75if(t===null)return e;for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.cells.length;i++){var a=r.cells[i].question.getAllErrors();a&&a.length>0&&(e=e.concat(a))}return e}validateRows(e){let t=this.generatedVisibleRows;t||(t=this.visibleRows);var n=!0;e.isSingleDetailPanel=this.detailPanelMode===`underRowSingle`;for(var r=0;r<t.length;r++)t[r].isVisible&&(n=t[r].validate(e)&&n);return n}isValueDuplicated(e){if(!this.generatedVisibleRows)return!1;for(var t=this.getUniqueColumnsNames(),n=!1,r=0;r<t.length;r++){let i=this.getDuplicatedRowAndShowErrors(t[r],!0);i&&i.length>0&&(e.setErrorElement(i[0].getQuestionByColumnName(t[r])),n=!0)}return n}getUniqueColumnsNames(){for(var e=[],t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t].name);return e}isValueInColumnDuplicated(e,t,n){let r=this.getDuplicatedRowAndShowErrors(e,t,n);return n?r.indexOf(n)>-1:r.length>0}getDuplicatedRowAndShowErrors(e,t,n){let r=this.getDuplicatedRows(e);return t&&this.showDuplicatedErrorsInRows(r,e),this.removeDuplicatedErrorsInRows(r,e),r}getDuplicatedRows(e){let t={},n=[],r=this.generatedVisibleRows;for(var i=0;i<r.length;i++){let n,a=r[i].getQuestionByName(e);if(a)n=a.value;else{let t=this.getRowValue(i);n=t?t[e]:void 0}this.isValueEmpty(n)||(!this.useCaseSensitiveComparison&&typeof n==`string`&&(n=n.toLocaleLowerCase()),t[n]||(t[n]=[]),t[n].push(r[i]))}for(let e in t)t[e].length>1&&t[e].forEach(e=>n.push(e));return n}showDuplicatedErrorsInRows(e,t){e.forEach(e=>{var n;let r=e.getQuestionByName(t),i=(n=this.detailPanelValue)==null?void 0:n.getQuestionByName(t);!r&&i&&(e.showDetailPanel(),e.detailPanel&&(r=e.detailPanel.getQuestionByName(t))),r&&(i&&e.showDetailPanel(),this.addDuplicationError(r))})}removeDuplicatedErrorsInRows(e,t){this.generatedVisibleRows.forEach(n=>{if(e.indexOf(n)<0){let e=n.getQuestionByName(t);e&&this.removeDuplicationError(n,e)}})}getDuplicationError(e){let t=e.errors;for(let e=0;e<t.length;e++)if(t[e].getErrorType()===`keyduplicationerror`)return t[e];return null}addDuplicationError(e){this.getDuplicationError(e)||e.addError(new lN(this.keyDuplicationError,this))}removeDuplicationError(e,t){t.removeError(this.getDuplicationError(t))&&t.errors.length===0&&e.editingObj&&(e.editingObj[t.getValueName()]=t.value)}getFirstQuestionToFocus(e){return this.getFirstCellQuestion(e)}getFirstInputElementId(){var e=this.getFirstCellQuestion(!1);return e?e.inputId:super.getFirstInputElementId()}getFirstErrorInputElementId(){var e=this.getFirstCellQuestion(!0);return e?e.inputId:super.getFirstErrorInputElementId()}getFirstCellQuestion(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t].cells,r=0;r<n.length;r++){let t=n[r].question;if(t.isVisible&&!t.isReadOnly&&(!e||t.currentErrorCount>0))return t}return null}onReadOnlyChanged(){if(super.onReadOnlyChanged(),this.generateRows)for(var e=0;e<this.visibleRows.length;e++)this.visibleRows[e].onQuestionReadOnlyChanged()}createQuestion(e,t){return this.createQuestionCore(e,t)}createQuestionCore(e,t){var n=t.createCellQuestion(e);return n.setSurveyImpl(e),n.setParentQuestion(this),n.inMatrixMode=!0,n}deleteRowValue(e,t){return e&&(delete e[t.rowName],this.isObject(e)&&Object.keys(e).length==0?null:e)}onAnyValueChanged(e,t){if(!(this.isUpdateLocked||this.isDoingonAnyValueChanged)){if(!this.generatedVisibleRows){e===this.getValueName()&&(this.isValueChangedWithoutRows=!0);return}this.isDoingonAnyValueChanged=!0;for(var n=this.generatedVisibleRows,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t);var i=this.visibleTotalRow;i&&i.onAnyValueChanged(e,t),this.isDoingonAnyValueChanged=!1}}isObject(e){return typeof e==`object`&&!!e}getOnCellValueChangedOptions(e,t,n){return{row:e,columnName:t,rowValue:n,value:n?n[t]:null,getCellQuestion:t=>e.getQuestionByName(t),cellQuestion:e.getQuestionByName(t),column:this.getColumnByName(t)}}onCellValueChanged(e,t,n,r){if(this.survey){var i=this.getOnCellValueChangedOptions(e,t,n);i.oldValue=r,this.onCellValueChangedCallback&&this.onCellValueChangedCallback(i),this.matrixCallbacks.matrixCellValueChanged(this,i)}}validateCell(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);return this.matrixCallbacks.matrixCellValidate(this,r)}}get isValidateOnValueChanging(){return this.survey?this.validationCallbacks.isValidateOnValueChanging:!1}get hasInvisibleRows(){let e=this.generatedVisibleRows;
75if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(!e[t].isVisible)return!0;return!1}getFilteredData(){return this.isEmpty()||!this.generatedVisibleRows||this.isEditingSurveyElement?this.value:this.getFilteredDataCore()}getFilteredDataCore(){return this.value}onRowChanging(e,t,n){if(!this.survey&&!this.cellValueChangingCallback)return n?n[t]:null;var r=this.getOnCellValueChangedOptions(e,t,n),i=this.getRowValueCore(e,this.createNewValue(),!0);return r.oldValue=i?i[t]:null,this.cellValueChangingCallback&&(r.value=this.cellValueChangingCallback(e,t,r.value,r.oldValue)),this.survey&&this.matrixCallbacks.matrixCellValueChanging(this,r),r.value}getSharedQuestionFromArray(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null}updateItemValue(e,t,n,r){var i=t?this.getRowObj(e):null;if(i){var a=i[t],o=null;n&&!r&&(o=n[t]),this.isRowChanging=!0,J.setObjPropertyValue(i,t,o),this.isRowChanging=!1,this.onCellValueChanged(e,t,i,a)}else{var s=this.createNewValue(!0),c=this.getRowValueCore(e,s,!0),a=c==null?void 0:c[t],l=this.getNewValueOnRowChanged(e,t,n,r,this.createNewValue());if(this.isTwoValueEquals(s,l.value))return;this.isRowChanging=!0,this.setNewValue(l.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,l.rowValue,a)}this.getUniqueColumnsNames().indexOf(t)>-1&&this.isValueInColumnDuplicated(t,!!i)}getNewValueOnRowChanged(e,t,n,r,i){let a=this.getRowValueCore(e,i,!0);if(r&&delete a[t],e.questions.forEach(e=>{delete a[e.getValueName()]}),n)for(var o in n=JSON.parse(JSON.stringify(n)),n)this.isValueEmpty(n[o])||(a[o]=n[o]);return this.isObject(a)&&Object.keys(a).length===0&&(i=this.deleteRowValue(i,e)),i=this.correctValueForMinMaxRows(i),{value:i,rowValue:a}}correctValueForMinMaxRows(e){return e}getItemIndex(e){return Array.isArray(this.generatedVisibleRows)?this.generatedVisibleRows.indexOf(e):-1}getElementsInDesign(e=!1){let t;return t=this.detailPanelMode==`none`?super.getElementsInDesign(e):e?[this.detailPanel]:this.detailElements,this.columns.concat(t)}hasDetailPanel(e){return this.detailPanelMode==`none`?!1:this.isDesignMode?!0:this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0}getIsDetailPanelShowing(e){if(this.detailPanelMode==`none`)return!1;if(this.isDesignMode){var t=this.visibleRows.indexOf(e)==0;return t&&(e.detailPanel||e.showDetailPanel()),t}return this.getPropertyValue(`isRowShowing`+e.id,!1)}setIsDetailPanelShowing(e,t){if(t!=this.getIsDetailPanelShowing(e)){if(t&&this.detailPanelMode===`underRowSingle`)for(var n=this.visibleRows,r=0;r<n.length;r++)n[r].isDetailPanelShowing&&n[r].hideDetailPanel();this.setPropertyValue(`isRowShowing`+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),this.survey&&this.matrixCallbacks.matrixDetailPanelVisibleChanged(this,e.rowIndex-1,e,t)}}getDetailPanelButtonCss(e){let t=new X().append(this.getPropertyValue(`detailButtonCss`+e.id));return t.append(this.cssClasses.detailButton,t.toString()===``).toString()}getDetailPanelIconCss(e){let t=new X().append(this.getPropertyValue(`detailIconCss`+e.id));return t.append(this.cssClasses.detailIcon,t.toString()===``).toString()}getDetailPanelIconId(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId}updateDetailPanelButtonCss(e){let t=this.cssClasses,n=this.getIsDetailPanelShowing(e),r=new X().append(t.detailIcon).append(t.detailIconExpanded,n);this.setPropertyValue(`detailIconCss`+e.id,r.toString());let i=new X().append(t.detailButton).append(t.detailButtonExpanded,n);this.setPropertyValue(`detailButtonCss`+e.id,i.toString())}createRowDetailPanel(e){if(this.isDesignMode)return this.detailPanel;var t=this.createNewDetailPanel();t.readOnly=this.isReadOnly||!e.isRowEnabled(),t.setSurveyImpl(e);var n=this.detailPanel.toJSON();return new Pj().toObject(n,t),t.renderWidth=`100%`,t.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,t),t.questions.forEach(e=>e.setParentQuestion(this)),t.onSurveyLoad(),t}getSharedQuestionByName(e,t){if(!this.survey||!this.valueName)return null;var n=this.getItemIndex(t);return n<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,n)}getBindedQuestions(){return!this.survey||!this.valueName?[]:this.survey.getQuestionsByValueName(this.valueName)}getItem(e){return e<0||!this.generatedVisibleRows||e>=this.generatedVisibleRows.length?null:this.generatedVisibleRows[e]}onTotalValueChanged(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+G.matrix.totalsSuffix,this.totalValue,!1)}isMatrixReadOnly(){return this.isReadOnly}onRowVisibilityChanged(e){this.clearVisibleRows(),this.resetRenderedTable(),this.resetSingleInput()}clearValueIfInvisibleCore(e){super.clearValueIfInvisibleCore(e),this.clearInvisibleValuesInRows()}clearInvisibleValuesInRows(){var e;this.isEmpty()||!this.isRowsFiltered()||(((e=this.survey)==null?void 0:e.questionsByValueName(this.getValueName()))||[]).length<2&&(this.value=this.getFilteredData())}isRowsFiltered(){return this.visibleRows!==this.generatedVisibleRows}getQuestionFromArray(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)}isMatrixValueEmpty(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return Object.keys(e).length==0}}get SurveyModel(){return this.survey}getCellTemplateData(e){return this.SurveyModel.getMatrixCellTemplateData(e)}getCellWrapperComponentName(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof UF?`row-footer`:`cell`)}getCellWrapperComponentData(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof UF?`row-footer`:`cell`)}getColumnHeaderWrapperComponentName(e){return this.SurveyModel.getElementWrapperComponentName(e,`column-header`)}getColumnHeaderWrapperComponentData(e){return this.SurveyModel.getElementWrapperComponentData(e,`column-header`)}getRowHeaderWrapperComponentName(e){return this.SurveyModel.getElementWrapperComponentName(e,`row-header`)}getRowHeaderWrapperComponentData(e){return this.SurveyModel.getElementWrapperComponentData(e,`row-header`)}onMobileChanged(){super.onMobileChanged(),this.resetRenderedTable()}getRootCss(){return new X().append(super.getRootCss()).append(this.cssClasse
75s.rootScroll,this.horizontalScroll).toString()}afterRenderQuestionElement(e){super.afterRenderQuestionElement(e),this.setRootElement(e==null?void 0:e.parentElement)}beforeDestroyQuestionElement(e){super.beforeDestroyQuestionElement(e),this.setRootElement(void 0)}setRootElement(e){this.rootElement=e}getRootElement(){return this.rootElement}get dragDropMatrixAttribute(){return this.renderedTable.wrapperDropTargetId}};q([Y()],GF.prototype,`transposeData`,void 0),q([Y({isLowerCase:!0})],GF.prototype,`detailErrorLocation`,void 0),q([Y({isLowerCase:!0})],GF.prototype,`cellErrorLocation`,void 0),q([Y()],GF.prototype,`detailPanelMode`,void 0),q([Y({isLowerCase:!0})],GF.prototype,`cellType`,void 0),q([Y({onSetting:e=>e<0?0:e>4?4:e})],GF.prototype,`columnColCount`,void 0),q([Y()],GF.prototype,`horizontalScroll`,void 0),q([Y({localizable:{defaultStr:!0}})],GF.prototype,`placeholder`,void 0),q([Y({localizable:{defaultStr:!0}})],GF.prototype,`keyDuplicationError`,void 0);var KF=class extends PP{get matrixBase(){return this.question}getSingleQuestionLocTitleCore(){return this.matrixBase.locSingleInputTitleTemplate}singleInputMoveToFirstCore(){var e;let t=(e=this.matrixBase.singleInputQuestion)==null?void 0:e.data;this.singleInputEditRow(t)}singleInputEditRow(e){if(!e)return;let t=e.visibleQuestions;Array.isArray(t)&&t.length>0&&this.setSingleInputQuestion(t[0])}};J.addClass(`matrixdropdownbase`,[{name:`columns:matrixdropdowncolumns`,uniqueProperty:`name`,className:`matrixdropdowncolumn`,isArray:!0},{name:`columnLayout`,alternativeName:`columnsLocation`,choices:[`horizontal`,`vertical`],visible:!1,isSerializable:!1},{name:`transposeData:boolean`,version:`1.9.130`,oldName:`columnLayout`},{name:`detailElements`,baseClassName:`question`,visible:!1,isLightSerializable:!1},{name:`detailPanelMode`,choices:[`none`,`underRow`,`underRowSingle`],default:`none`},{name:`cellErrorLocation`,default:`default`,choices:[`default`,`top`,`bottom`]},{name:`detailErrorLocation`,default:`default`,choices:[`default`,`top`,`bottom`],visibleIf:e=>!!e&&e.detailPanelMode!=`none`},{name:`horizontalScroll:boolean`,visible:!1},{name:`choices:itemvalue[]`,uniqueProperty:`value`,visibleIf:e=>e.isSelectCellType()},{name:`placeholder`,alternativeName:`optionsCaption`,serializationProperty:`locPlaceholder`},{name:`keyDuplicationError`,serializationProperty:`locKeyDuplicationError`},{name:`singleInputTitleTemplate`,serializationProperty:`locSingleInputTitleTemplate`,visibleIf(e){var t;return((t=e.survey)==null?void 0:t.questionsOnPageMode)===`inputPerPage`}},{name:`cellType`,defaultFunc:()=>G.matrix.defaultCellType,choices:()=>AF.getColumnTypes()},{name:`columnColCount`,default:0,choices:[0,1,2,3,4]},`columnMinWidth`,{name:`allowAdaptiveActions:boolean`,default:!1,visible:!1}],function(){return new GF(``)},`matrixbase`);var qF=class extends Ij{constructor(e){super(),this.question=e}getObj(){return this.question}getValue(e){let t=e.path;if(!this.question.isDesignMode&&!e.createObjects&&this.question.isEmpty()&&t.length===0)return{isFound:!0,value:void 0};if(t.length>0){let t=super.getValue(e);if(t&&t.isFound)return t}return new Lj(this.question.value).getValue(e)}getRootObj(){return this.question.data}updateValueByItem(e,t){var n;if(e=e.toLocaleLowerCase(),!this.hasRowName(e))return;let r=this.question.visibleRows;for(let i=0;i<r.length;i++){let a=r[i];if((((n=a.rowName)==null?void 0:n.toString())||``).toLocaleLowerCase()===e){t.isFound=!0,t.obj=a,t.context=a.getValueGetterContext();return}}}hasRowName(e){let t=this.question.rows;for(let n=0;n<t.length;n++){let r=t[n].value;if(r!=null&&r.toString().toLocaleLowerCase()===e)return!0}return!1}},JF=class extends HF{constructor(e,t,n,r){super(n,r),this.name=e,this.item=t,this.buildCells(r)}get rowName(){return this.name}get rowTitle(){return this.text}get text(){return this.item.text}get locText(){return this.item.locText}isItemVisible(){return this.item.isVisible}isRowEnabled(){return this.item.isEnabled}isRowHasEnabledCondition(){return!!this.item.enableIf}getRowsVisibleIfExpression(e){let t=super.getRowsVisibleIfExpression(e);return this.item.visibleIf&&t.push(this.item.visibleIf),t}runRowsEnableCondition(e){this.item.enableIf&&(this.item.enabled=new Jj(this.item.enableIf).runContext(this.getValueGetterContext(),e))}},YF=class extends GF{constructor(){super(...arguments),this.defaultValuesInRows={}}onPropertyValueChanged(e,t,n,r){super.onPropertyValueChanged(e,t,n),e===`rows`&&this.generatedVisibleRows&&(this.tryUpdateRowsIncrementally(r)||(this.clearGeneratedRows(),this.resetRenderedTable(),this.getVisibleRows(),this.clearIncorrectValues())),e===`hideIfRowsEmpty`&&this.updateVisibilityBasedOnRows()}tryUpdateRowsIncrementally(e){if(!e)return!1;let t=e.itemsToAdd||[],n=e.deleteCount||0;return t.length===1&&n===0?this.tryAddSingleRow(t[0]):t.length===0&&n===1&&this.tryRemoveSingleRow()}tryAddSingleRow(e){let t=this.getAddedRowIndex(e);if(t<0)return!1;let n=this.value||{},r=this.createMatrixRow(e,this.getRowValueForCreation(n,e.value));return this.generatedVisibleRows.splice(t,0,r),r.visibleIndex=t,this.onMatrixRowCreated(r),this.finishIncrementalRowChange(e=>e.onAddedRow(r,t)),!0}tryRemoveSingleRow(){let e=this.getRemovedRowIndex();if(e<0)return!1;let t=this.generatedVisibleRows[e];return this.isDisposed||(this.defaultValuesInRows[t.rowName]=t.getNamesWithDefaultValues()),this.generatedVisibleRows.splice(e,1),this.finishIncrementalRowChange(e=>e.onRemovedRow(t)),!0}getAddedRowIndex(e){if(!e||this.isValueEmpty(e.value)||this.getRowByKey(e.value))return-1;let t=this.rows.indexOf(e);if(t<0)return-1;let n=0;for(let e=0;e<t;e++)this.isValueEmpty(this.rows[e].value)||n++;return n}getRemovedRowIndex(){let e={};for(let t=0;t<this.rows.length;t++)e[this.rows[t].value]=!0;for(let t=0;t<this.generatedVisibleRows.length;t++)if(!e[this.generatedVisibleRows[t].rowName])return t;return-1}finishIncrementalRowChange(e){this.clearVisibleRows(),this.isRendredTableCreated&&e(this.renderedTable),this.clearIncorrectValues()}getType(){return`matrixdropdown`}getAllChildren(){return[...super.getAllChildren(),...this.columns,...this.rows]}getFooterText(){return this.locTotalText}getRowTitleWidth(){return this.rowTitleWidth}getSingleInputTitleTemplate(){return`rowNameTemplateTitle`}getValueGetterContext(){return new qF(this)}getDisplayValueCore(e,t){if(!t)return t;var n=this.visibleRows,r={};if(!n)return r;for(var i=0;i<n.length;i++){var a=n[i].rowName,o=t[a];if(o){if(e){var s=HP.getTextOrHtmlByValue(this.rows,a);s&&(a=s)}r[a]=this.getRowDisplayValue(e,n[i],o)}}return r}getConditionObjectRowName(e){return`.`+this.rows[e].value}getConditionObjectRowText(e){return`.`+this.rows[e].calculatedText}getConditionObjectsRowIndeces(){let e=[];for(var t=0;t<this.rows.length;t++)e.push(t);return e}isNewValueCorrect(e){return K.isValueObject(e,!0)}clearIncorrectValues(){if(!this.isEmpty()){this.getVisibleRows();let e={},t=this.value;for(let n in t){let r=this.getRowByKey(n);r&&r.isVisible&&(e[n]=t[n])}this.value=e}super.clearIncorrectValues()}getRowByKey(e){let t=this.generatedVisibleRows;
75if(!t)return null;for(let n=0;n<t.length;n++)if(t[n].rowName===e)return t[n];return null}clearGeneratedRows(){this.generatedVisibleRows&&(this.isDisposed||this.generatedVisibleRows.forEach(e=>{this.defaultValuesInRows[e.rowName]=e.getNamesWithDefaultValues()}),super.clearGeneratedRows())}getRowValueForCreation(e,t){let n=e[t];if(!n)return n;let r=this.defaultValuesInRows[t];return!Array.isArray(r)||r.length===0||r.forEach(e=>{delete n[e]}),n}generateRows(){var e=[],t=this.rows;if(!t||t.length===0)return e;var n=this.value;n||(n={});for(var r=0;r<t.length;r++){let i=t[r];this.isValueEmpty(i.value)||e.push(this.createMatrixRow(i,this.getRowValueForCreation(n,i.value)))}return e}createMatrixRow(e,t){return new JF(e.value,e,this,t)}getFilteredDataCore(){let e={};return this.generatedVisibleRows.forEach(t=>{t.isVisible&&!t.isEmpty&&(e[t.rowName]=t.filteredValue)}),e}getSearchableItemValueKeys(e){e.push(`rows`)}getIsRequireToGenerateRows(){if(super.getIsRequireToGenerateRows())return!0;for(let e=0;e<this.rows.length;e++)if(this.rows[e].visibleIf)return!0;return!1}updateProgressInfoByValues(e){let t=this.value;t||(t={});for(var n=0;n<this.rows.length;n++){let r=this.rows[n],i=t[r.value];this.updateProgressInfoByRow(e,i||{})}}sortVisibleRows(e){return this.survey&&this.survey.isDesignMode?e:this.rowOrder.toLowerCase()===`random`?K.randomizeArray(e,this.randomSeed):e}endLoadingFromJson(){super.endLoadingFromJson(),this.rows=this.sortVisibleRows(this.rows)}randomSeedChanged(){this.rowOrder.toLowerCase()===`random`&&(this.rows=this.sortVisibleRows(this.rows),this.clearGeneratedRows(),this.resetRenderedTable(),super.randomSeedChanged())}};q([Y({localizable:{markdown:!0}})],YF.prototype,`totalText`,void 0),q([Y()],YF.prototype,`hideIfRowsEmpty`,void 0),q([Y({isLowerCase:!0})],YF.prototype,`rowOrder`,void 0),J.addClass(`matrixdropdown`,[{name:`rows:itemvalue[]`,uniqueProperty:`value`},`rowsVisibleIf:condition`,`rowTitleWidth`,{name:`totalText`,serializationProperty:`locTotalText`},`hideIfRowsEmpty:boolean`,{name:`rowOrder`,default:`initial`,choices:[`initial`,`random`]}],function(){return new YF(``)},`matrixdropdownbase`),xF.Instance.registerQuestion(`matrixdropdown`,e=>{var t=new YF(e);return t.choices=[1,2,3,4,5],t.rows=xF.DefaultRows,GF.addDefaultColumns(t),t});function XF(e){return G&&G.confirmActionFunc?G.confirmActionFunc(e):confirm(e)}function ZF(e){let t=t=>{t?e.funcOnYes():e.funcOnNo&&e.funcOnNo()};if(G&&G.confirmActionFunc){t(XF(e.message));return}G&&G.confirmActionAsync?G.confirmActionAsync(e.message,t,e):QF(e.message,t,e)}function QF(e,t,n={}){let r=new yj(void 0,!1);r.defaultValue=e||n.message;let i=G.showDialog({componentName:`sv-string-viewer`,data:{model:r},onApply:()=>(t(!0),!0),onCancel:()=>(t(!1),!1),displayMode:`popup`,isFocusedContent:!1,cssClass:n.cssClass||`sv-popup--confirm`},n.rootElement),a=i.footerToolbar,o=a.getActionById(`apply`),s=a.getActionById(`cancel`);return s.title=hj(`cancel`,n.locale),o.title=n.applyTitle||hj(`ok`,n.locale),o.innerCss=`sd-btn--danger`,$F(i),!0}function $F(e){e.width=`min-content`}G.confirmActionAsync||(G.confirmActionAsync=(e,t,n)=>{QF(e,t,n)}),tj.addEventListener(`touchmove`,e=>{eI.PreventScrolling&&e.preventDefault()},{passive:!1});var eI=class e{constructor(t,n=!0,r=!1){this.dd=t,this.longTap=n,this.fitToContainer=r,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=e=>{e.preventDefault(),this.currentX=e.pageX,this.currentY=e.pageY,!this.isMicroMovement&&(this.returnUserSelectBack(),this.stopLongTap())},this.stopLongTap=e=>{clearTimeout(this.timeoutID),this.timeoutID=null,nj.getDocument().removeEventListener(`pointerup`,this.stopLongTap),nj.getDocument().removeEventListener(`pointermove`,this.stopLongTapIfMoveEnough)},this.handlePointerCancel=e=>{this.clear()},this.handleEscapeButton=e=>{e.keyCode==27&&this.clear()},this.onContextMenu=e=>{e.preventDefault(),e.stopPropagation()},this.dragOver=e=>{this.moveShortcutElement(e),this.draggedElementShortcut.style.cursor=`grabbing`,this.dd.dragOver(e)},this.clear=()=>{cancelAnimationFrame(this.scrollIntervalId),nj.getDocument().removeEventListener(`pointermove`,this.dragOver),nj.getDocument().removeEventListener(`pointercancel`,this.handlePointerCancel),nj.getDocument().removeEventListener(`ke
75ydown`,this.handleEscapeButton),nj.getDocument().removeEventListener(`pointerup`,this.drop),this.draggedElementShortcut.removeEventListener(`pointerup`,this.drop),rP&&this.draggedElementShortcut.removeEventListener(`contextmenu`,this.onContextMenu),this.draggedElementShortcut.parentElement.removeChild(this.draggedElementShortcut),this.dd.clear(),this.draggedElementShortcut=null,this.scrollIntervalId=null,rP&&(this.savedTargetNode.style.cssText=null,this.savedTargetNode&&this.savedTargetNode.parentElement.removeChild(this.savedTargetNode),this.insertNodeToParentAtIndex(this.savedTargetNodeParent,this.savedTargetNode,this.savedTargetNodeIndex),e.PreventScrolling=!1),this.savedTargetNode=null,this.savedTargetNodeParent=null,this.savedTargetNodeIndex=null,this.returnUserSelectBack()},this.drop=()=>{this.dd.drop(),this.clear()},this.draggedElementShortcut=null}get documentOrShadowRoot(){let e=this.rootElement.getRootNode();return e instanceof Document||e instanceof ShadowRoot?e:void 0}get rootElement(){return jN(G.environment.root)?this.rootContainer||G.environment.root:this.rootContainer||G.environment.root.documentElement||nj.getDocument().body}get viewRootElement(){return jN(this.rootElement)?this.rootElement.host:this.rootElement}get isMicroMovement(){let e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<5&&t<5}startLongTapProcessing(e,t,n,r,i=!1){this.startX=e.pageX,this.startY=e.pageY,nj.getDocument().body.style.setProperty(`touch-action`,`none`,`important`),this.timeoutID=setTimeout(()=>{this.doStartDrag(e,t,n,r),i||(this.savedTargetNode=e.target,this.savedTargetNode.style.cssText=` 76 position: absolute; 77 height: 1px!important; 78 width: 1px!important; 79 overflow: hidden; 80 clip: rect(1px 1px 1px 1px); 81 clip: rect(1px, 1px, 1px, 1px); 82 `,this.savedTargetNodeParent=this.savedTargetNode.parentElement,this.savedTargetNodeIndex=this.getNodeIndexInParent(this.savedTargetNode),this.rootElement.appendChild(this.savedTargetNode)),this.stopLongTap()},this.longTap?500:0),nj.getDocument().addEventListener(`pointerup`,this.stopLongTap),nj.getDocument().addEventListener(`pointermove`,this.stopLongTapIfMoveEnough)}moveShortcutElement(e){let t=this.viewRootElement.getBoundingClientRect().x,n=this.viewRootElement.getBoundingClientRect().y,r=this.viewRootElement.scrollLeft,i=this.viewRootElement.scrollTop;this.doScroll(e.clientY,e.clientX);let a=this.draggedElementShortcut.offsetHeight,o=this.draggedElementShortcut.offsetWidth,s=this.draggedElementShortcut.shortcutXOffset||o/2,c=this.draggedElementShortcut.shortcutYOffset||a/2;nj.getComputedStyle(this.rootElement).direction===`rtl`&&(s=o/2,c=a/2);let l=nj.getDocument().documentElement.clientHeight,u=nj.getDocument().documentElement.clientWidth,d=e.pageX,f=e.pageY,p=e.clientX,m=e.clientY;t-=r,n-=i;let h=this.getShortcutBottomCoordinate(m,a,c);if(this.getShortcutRightCoordinate(p,o,s)>=u){this.draggedElementShortcut.style.left=u-o-t+`px`,this.draggedElementShortcut.style.top=m-c-n+`px`;return}if(p-s<=0){this.draggedElementShortcut.style.left=d-p-t+`px`,this.draggedElementShortcut.style.top=m-n-c+`px`;return}if(h>=l){this.draggedElementShortcut.style.left=p-s-t+`px`,this.draggedElementShortcut.style.top=l-a-n+`px`;return}if(m-c<=0){this.draggedElementShortcut.style.left=p-s-t+`px`,this.draggedElementShortcut.style.top=f-m-n+`px`;return}this.draggedElementShortcut.style.left=p-t-s+`px`,this.draggedElementShortcut.style.top=m-n-c+`px`}getShortcutBottomCoordinate(e,t,n){return e+t-n}getShortcutRightCoordinate(e,t,n){return e+t-n}requestAnimationFrame(e){return requestAnimationFrame(e)}scrollByDrag(e,t,n){let r,i,a,o;e.tagName===`HTML`?(r=0,i=nj.getDocument().documentElement.clientHeight,a=0,o=nj.getDocument().documentElement.clientWidth):(r=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom,a=e.getBoundingClientRect().left,o=e.getBoundingClientRect().right);let s=()=>{let c=t-r<=100,l=i-t<=100,u=n-a<=100,d=o-n<=100;c&&!u&&!d?e.scrollTop-=15:l&&!u&&!d?e.scrollTop+=15:d&&!c&&!l?e.scrollLeft+=15:u&&!c&&!l&&(e.scrollLeft-=15),this.scrollIntervalId=this.requestAnimationFrame(s)};this.scrollIntervalId=this.requestAnimationFrame(s)}doScroll(e,t){cancelAnimationFrame(this.scrollIntervalId);let n=this.draggedElementShortcut.style.display;this.draggedElementShortcut.style.display=`none`;let r=this.documentOrShadowRoot.elementFromPoint(t,e);this.draggedElementShortcut.style.display=n||`block`;let i=IN(r);this.scrollByDrag(i,e,t)}doStartDrag(t,n,r,i){rP&&(e.PreventScrolling=!0),t.which!==3&&(this.dd.dragInit(t,n,r,i),this.rootElement.append(this.draggedElementShortcut),this.moveShortcutElement(t),nj.getDocument().addEventListener(`pointermove`,this.dragOver),nj.getDocument().addEventListener(`pointercancel`,this.handlePointerCancel),nj.getDocument().addEventListener(`ke
82ydown`,this.handleEscapeButton),nj.getDocument().addEventListener(`pointerup`,this.drop),rP?this.draggedElementShortcut.addEventListener(`contextmenu`,this.onContextMenu):this.draggedElementShortcut.addEventListener(`pointerup`,this.drop))}returnUserSelectBack(){nj.getDocument().body.style.setProperty(`touch-action`,`auto`),nj.getDocument().body.style.setProperty(`user-select`,`auto`),nj.getDocument().body.style.setProperty(`-webkit-user-select`,`auto`)}startDrag(e,t,n,r,i=!1){if(nj.getDocument().body.style.setProperty(`user-select`,`none`,`important`),nj.getDocument().body.style.setProperty(`-webkit-user-select`,`none`,`important`),rP){this.startLongTapProcessing(e,t,n,r,i);return}this.doStartDrag(e,t,n,r)}getNodeIndexInParent(e){return[...e.parentElement.childNodes].indexOf(e)}insertNodeToParentAtIndex(e,t,n){e.insertBefore(t,e.childNodes[n])}};eI.PreventScrolling=!1;var tI=class{get isBottom(){return!!this._isBottom}set isBottom(e){this._isBottom=e,this.ghostPositionChanged()}ghostPositionChanged(){this.onGhostPositionChanged.fire({},{})}get dropTargetDataAttributeName(){return`[data-sv-drop-target-${this.draggedElementType}]`}get survey(){var e;return this.surveyValue||((e=this.creator)==null?void 0:e.survey)}constructor(e,t,n,r){var i;this.surveyValue=e,this.creator=t,this._isBottom=null,this.onGhostPositionChanged=new vj,this.onDragStart=new vj,this.onDragEnd=new vj,this.onDragClear=new vj,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=()=>{this.allowDropHere=!1,this.doBanDropHere(),this.dropTarget=null,this.domAdapter.draggedElementShortcut.style.cursor=`not-allowed`,this.isBottom=null},this.doBanDropHere=()=>{},this.domAdapter=r||new eI(this,n,(i=this.survey)==null?void 0:i.fitToContainer)}startDrag(e,t,n,r,i=!1){this.domAdapter.rootContainer=this.getRootElement(this.survey,this.creator),this.domAdapter.startDrag(e,t,n,r,i)}getRootElement(e,t){return t?t.rootElement:e.rootElement}dragInit(e,t,n,r){this.draggedElement=t,this.parentElement=n;let i=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(i,r,e),this.onStartDrag(e);let a=this.draggedElement&&this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:a,draggedElement:this.draggedElement})}onStartDrag(e){}isDropTargetDoesntChanged(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom}getShortcutText(e){return e==null?void 0:e.shortcutText}createDraggedElementShortcut(e,t,n){let r=nj.createElement(`div`);return r&&(r.innerText=e,r.className=this.getDraggedElementClass()),r}getDraggedElementClass(){return`sv-dragged-element-shortcut`}doDragOver(){}afterDragOver(e){}findDropTargetNodeFromPoint(e,t){let n=this.domAdapter.draggedElementShortcut.style.display;if(this.domAdapter.draggedElementShortcut.style.display=`none`,!nj.isAvailable())return null;let r=this.domAdapter.documentOrShadowRoot.elementsFromPoint(e,t);this.domAdapter.draggedElementShortcut.style.display=n||`block`;let i=0,a=r[i];for(;a&&a.className&&typeof a.className.indexOf==`function`&&a.className.indexOf(`sv-drag-target-skipped`)!=-1;)i++,a=r[i];return a?this.findDropTargetNodeByDragOverNode(a):null}getDataAttributeValueByNode(e){let t=`svDropTarget`;return this.draggedElementType.split(`-`).forEach(e=>{t+=this.capitalizeFirstLetter(e)}),e.dataset[t]}getDropTargetByNode(e,t){let n=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(n,e,t)}capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}calculateVerticalMiddleOfHTMLElement(e){let t=e.getBoundingClientRect();return t.y+t.height/2}calculateHorizontalMiddleOfHTMLElement(e){let t=e.getBoundingClientRect();return t.x+t.width/2}calculateIsBottom(e,t){return!1}findDropTargetNodeByDragOverNode(e){return e.closest(this.dropTargetDataAttributeName)}dragOver(e){let t=this.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(!t){this.banDropHere();return}this.dropTarget=this.getDropTargetByNode(t,e);let n=this.isDropTargetValid(this.dropTarget,t);if(this.doDragOver(),!n){this.banDropHere();return}let r=this.calculateIsBottom(e.clientY,t);this.allowDropHere=!0,!this.isDropTargetDoesntChanged(r)&&(this.isBottom=null,this.isBottom=r,this.draggedElement!=this.dropTarget&&this.afterDragOver(t),this.prevDropTarget=this.dropTarget)}drop(){if(this.allowDropHere){let e=this.draggedElement.parent,t=this.doDrop();this.onDragEnd.fire(this,{fromElement:e,draggedElement:t,toElement:this.dropTarget})}}clear(){let e={draggedElement:this.draggedElement};this.dropTarget=null,this.prevDropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null,this.onDragClear.fire(this,e)}},nI=class extends tI{constructor(){super(...arguments),this.dropIsBanned=!1,this.matrixRowMap={},this.fromIndex=null,this.toIndex=null,this.toMatrix=null,this.expandCollapseTimer=null,this.expandCollapseHandlingRow=null,this.doBanDropHere=()=>{this.dropIsBanned||(this.removeGhost(),this.parentElement.renderedTable.rows.splice(this.initialDraggedElementIndex,0,this.draggedRenderedRow),this.dropIsBanned=!0,this.lastDropTargetParentElement=this.parentElement)},this.doDrop=()=>
82{if(this.parentElement==this.toMatrix)this.fromIndex<this.toIndex&&this.toIndex--,this.parentElement.moveRowByIndex(this.fromIndex,this.toIndex);else if(this.toMatrix){let e=Object.assign({},this.parentElement.value[this.fromIndex]);this.parentElement.removeRowByIndex(this.fromIndex),this.toMatrix.addRowByIndex(e,this.toIndex)}return this.parentElement}}get draggedElementType(){return`matrix-row`}patchUserSelect(){let e=nj.getBody();e&&(this.restoreUserSelectValue=e.style.userSelect,e.style.userSelect=`none`)}onStartDrag(){var e;this.patchUserSelect();let t=this.parentElement.renderedTable.rows,n=t.findIndex(e=>e.row===this.draggedElement);n>=0&&(this.draggedRenderedRow=t[n],this.initialDraggedElementIndex=n,this.draggedRenderedRow.isGhostRow=!0,this.lastDropTargetParentElement=this.parentElement);let r=[];this.survey.onMatrixRowDragOver.isEmpty?r.push(this.parentElement):this.fillMatricies(this.survey.getAllQuestions(),r),this.fillMatrixRowMap(r),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),(e=this.draggedElement)==null||e.hideDetailPanel()}fillMatricies(e,t){e.filter(e=>e.isDescendantOf(`matrixdynamic`)&&e.allowRowReorder).forEach(e=>{t.push(e),e.detailPanelMode!==`none`&&e.visibleRows.forEach(e=>{e.isDetailPanelShowing&&this.fillMatricies(e.questions,t)})})}fillMatrixRowMap(e){e.forEach(e=>{e.visibleRows.forEach(t=>{this.matrixRowMap[t.id]={row:t,matrix:e}}),e.visibleRows.length==0&&(this.matrixRowMap[e.id]={row:e,matrix:e})})}get shortcutClass(){return new X().append(this.parentElement.cssClasses.draggedRow).toString()}createDraggedElementShortcut(e,t,n){let r=nj.createElement(`div`);if(r){if(r.className=this.shortcutClass,t){let e=t.closest(`[data-sv-drop-target-matrix-row]`),i=e.cloneNode(!0);i.style.cssText=` 83 width: ${e.offsetWidth}px; 84 `,i.classList.remove(`sv-matrix__drag-drop--moveup`),i.classList.remove(`sv-matrix__drag-drop--movedown`),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,r.appendChild(i);let a=t.getBoundingClientRect();r.shortcutXOffset=n.clientX-a.x,r.shortcutYOffset=n.clientY-a.y}return r}}getDropTargetByDataAttributeValue(e){let t=this.matrixRowMap[e];return(t==null?void 0:t.row)||(t==null?void 0:t.matrix)}canInsertIntoThisRow(e){let t=this.parentElement.lockedRowCount;return t<=0||e.rowIndex>t}isDropTargetValid(e,t){return this.canInsertIntoThisRow(e)}calculateIsBottom(e,t){if(t.dataset.svDropTargetMatrix)return!0;let n=t.getBoundingClientRect();return e>=n.y+n.height/2}doDragOver(){var e,t,n,r,i,a,o,s;if(!this.survey.onMatrixRowDragOver.isEmpty&&this.dropTarget&&this.dropTarget.isDetailPanelShowing!==void 0&&this.dropTarget.isDetailPanelShowing===!1){let c=this.dropTarget,l=c.data,u=l.renderedTable.rows.filter(e=>e.row==c)[0],d=(r=(n=(t=(e=u==null?void 0:u.cells[1])==null?void 0:e.item)==null?void 0:t.value)==null?void 0:n.actions)==null?void 0:r.filter(e=>e.id==`show-detail`)[0],f=(s=(o=(a=(i=u==null?void 0:u.cells[u.cells.length-1])==null?void 0:i.item)==null?void 0:a.value)==null?void 0:o.actions)==null?void 0:s.filter(e=>e.id==`show-detail`)[0];d!=null&&d.visible||f!=null&&f.visible?this.expandCollapseHandlingRow!==c.id&&(this.expandCollapseHandlingRow=c.id,this.clearExpandCollapseTimeout(),this.expandCollapseTimer=setTimeout(()=>{let e=[];c.showDetailPanel(),this.fillMatricies([l],e),this.fillMatrixRowMap(e)},500)):this.clearExpandCollapseTimeout()}}removeGhost(){let e=this.lastDropTargetParentElement.renderedTable.rows,t=e.indexOf(this.draggedRenderedRow);t>=0&&e.splice(t,1)}afterDragOver(e){if(!this.dropTarget)return;let t=this.matrixRowMap[this.dropTarget.id].matrix,n=this.matrixRowMap[this.dropTarget.id].row,r=this.isBottom&&!n.isDetailPanelShowing?1:0,i=0,a={allow:t==this.parentElement,row:n,fromMatrix:this.parentElement,toMatrix:t};if(this.survey.onMatrixRowDragOver.fire(this.survey,a),!a.allow)return;this.removeGhost(),this.lastDropTargetParentElement=t;let o=t.renderedTable.rows;if(t.visibleRows.length>0){let e=o.findIndex(e=>e.row==this.dropTarget);e>=0&&o.splice(e+r,0,this.draggedRenderedRow),i=t.visibleRows.indexOf(this.dropTarget)+r}else t.renderedTable.headerRow||(o[0].cells[0].colSpans=this.draggedRenderedRow.cells.length),o.splice(0,0,this.draggedRenderedRow);this.toIndex=i,this.toMatrix=t,this.dropIsBanned=!1,super.ghostPositionChanged()}clear(){this.matrixRowMap={}
84,this.parentElement.renderedTable.rows.forEach(e=>{e.isGhostRow=!1}),this.parentElement.clearOnDrop(),this.toMatrix&&this.toMatrix.clearOnDrop(),this.fromIndex=null,this.toIndex=null;let e=nj.getBody();e&&(e.style.userSelect=this.restoreUserSelectValue||`initial`),super.clear(),this.clearExpandCollapseTimeout()}clearExpandCollapseTimeout(){clearTimeout(this.expandCollapseTimer),this.expandCollapseTimer=null,this.expandCollapseHandlingRow=null}},rI=class{constructor(e,t=!0){this.dragHandler=e,this.preventOnTouch=t,this.rootNode=null,this.onPointerUp=e=>{this.clearListeners()},this.tryToStartDrag=e=>{if(this.currentX=e.pageX,this.currentY=e.pageY,!this.isMicroMovement)return this.clearListeners(),this.dragHandler(this.pointerDownEvent,this.targets,this.itemModel),!0}}onPointerDown(e,t){if(this.targets={currentTarget:e.currentTarget,target:e.target},rP&&this.preventOnTouch){this.dragHandler(e,this.targets,t);return}this.pointerDownEvent=e,this.startX=e.pageX,this.startY=e.pageY;let n=NN(this.targets.currentTarget);n&&(n.addEventListener(`pointermove`,this.tryToStartDrag),this.rootNode=n,this.targets.currentTarget.addEventListener(`pointerup`,this.onPointerUp),this.itemModel=t)}get isMicroMovement(){let e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<10&&t<10}clearListeners(){var e;this.pointerDownEvent&&((e=this.rootNode)==null||e.removeEventListener(`pointermove`,this.tryToStartDrag),this.targets.currentTarget.getRootNode().removeEventListener(`pointermove`,this.tryToStartDrag),this.targets.currentTarget.removeEventListener(`pointerup`,this.onPointerUp))}},iI=class{constructor(e,t,n){this.locText=e,this.btnEdit=t,this.btnRemove=n}get showRemove(){return!!this.btnRemove}},aI=class{constructor(e,t){this.question=e,this.noEntry=t,this.items=[]}isEmpty(){return this.items.length==0}dispose(){this.items.forEach(e=>{var t,n;(t=e.btnEdit)==null||t.dispose(),(n=e.btnRemove)==null||n.dispose()})}},oI=class extends FP{constructor(e){super(e),this.question=e}getValue(e){let t=e.path,n=e.index,r=this.question;if(n>-1&&r.isDesignMode)return r.getDesignRowContext().getValue(e);if(n>-1){let t=r.allRows;return n>=0&&n<t.length?(e.isRoot=!1,t[n].getValueGetterContext().getValue(e)):{isFound:!1,value:void 0,context:this}}return!e.createObjects&&this.question.isEmpty()?{isFound:t.length===0,value:void 0}:super.getValue(e)}},sI=class extends HF{constructor(e,t,n){super(t,n),this.index=e,this.buildCells(n)}getItemIndex(){let e=super.getItemIndex();return e>0?e:this.index+1}get rowName(){return this.id}get dataName(){return`row`+(this.index+1)}get text(){return`row `+(this.visibleIndex+1)}getAccessbilityText(){return(this.visibleIndex+1).toString()}get shortcutText(){let e=this.data.visibleRows.indexOf(this)+1,t=this.cells.length>1?this.cells[1].questionValue:void 0,n=this.cells.length>0?this.cells[0].questionValue:void 0;return t&&t.value||n&&n.value||``+e}},cI=class extends GF{constructor(e){super(e),this.rowCounter=0,this.setRowCountValueFromData=!1,this.startDragMatrixRow=(e,t)=>{this.dragDropMatrixRows.startDrag(e,this.draggedRow,this,t.target)},this.initialRowCount=this.getDefaultPropertyValue(`rowCount`),this.dragOrClickHelper=new rI(this.startDragMatrixRow)}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),(e===`hideColumnsIfEmpty`||e===`allowAddRows`)&&this.updateShowTableAndAddRow(),[`allowRowReorder`,`isReadOnly`,`lockedRowCount`].indexOf(e)>-1&&this.resetRenderedTable(),e===`minRowCount`&&this.onMinRowCountChanged(),e===`maxRowCount`&&this.onMaxRowCountChanged(),e===`allowRemoveRows`&&!this.isUpdateLocked&&this.resetRenderedTable()}setSurveyImpl(e,t){super.setSurveyImpl(e,t),this.dragDropMatrixRows=new nI(this.survey,null,!0)}isBanStartDrag(e){let t=e.target;return t.getAttribute(`contenteditable`)===`true`||t.nodeName===`INPUT`||!this.isDragHandleAreaValid(t)}isDragHandleAreaValid(e){return this.matrixCallbacks.matrixDragHandleArea!==`icon`||e.classList.contains(this.cssClasses.dragElementDecorator)}onPointerDown(e,t){!t||!this.isRowsDragAndDrop||this.isDesignMode||this.isBanStartDrag(e)||(this.draggedRow=t,this.dragOrClickHelper.onPointerDown(e))}getType(){return`matrixdynamic`}getAllChildren(){return[...super.getAllChildren(),...this.columns,...this.choices]}get isRowsDynamic(){return!0}get isValueArray(){return!0}get defaultValueFromLastRow(){return this.copyDefaultValueFromLastEntry}set defaultValueFromLastRow(e){this.copyDefaultValueFromLastEntry=e}isDefaultValueEmpty(){return super.isDefaultValueEmpty()&&this.isValueEmpty(this.defaultRowValue)}valueFromData(e){return this.minRowCount<1||this.isEditingSurveyElement||this.isEmpty()?super.valueFromData(e):this.correctValueForMinMaxRows(e)}correctValueForMinMaxRows(e){Array.isArray(e)||(e=[]);for(var t=e.length;t<this.minRowCount;t++)e.push({});return e}isNewValueCorrect(e){return Array.isArray(e)}setDefaultValue(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue)){super.setDefaultValue();return}if(!(!this.isEmpty()||this.rowCount==0)){for(var e=[],t=0;t<this.rowCount;t++)e.push(this.defaultRowValue);this.value=e}}moveRowByIndex(e,t){let n=this.createNewValue(),r=Math.max(e,t);if(!Array.isArray(n)&&r>=n.length)return;let i=n[e];n.splice(e,1),n.splice(t,0,i);let a=this.generatedVisibleRows;
84if(Array.isArray(a)&&r<a.length){let n=a[t],r=a[e];if(this.getIsDetailPanelShowing(r)!==this.getIsDetailPanelShowing(n)){let e=this.getIsDetailPanelShowing(n);this.setIsDetailPanelShowing(n,this.getIsDetailPanelShowing(r)),this.setIsDetailPanelShowing(r,e)}}this.value=n,this.draggedRow=null}addRowByIndex(e,t){let n=this.createNewValue();!Array.isArray(n)&&t>=n.length||(n.splice(t,0,e),this.rowCount++,this.value=n)}removeRowByIndex(e){let t=this.createNewValue();!Array.isArray(t)&&e>=t.length||(t.splice(e,1),this.rowCount--,this.value=t)}clearOnDrop(){this.isEditingSurveyElement||this.resetRenderedTable()}initDataUI(){this.generatedVisibleRows||this.getVisibleRows()}get rowCount(){return this.rowCountValue}set rowCount(e){if(e=K.getNumber(e),!(e<0||e>G.matrix.maxRowCount||e===this.rowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var n=this.value;n.splice(e),this.value=n}if(this.isUpdateLocked){this.initialRowCount=e;return}if(this.generatedVisibleRows||t==0){this.generatedVisibleRows||(this.clearGeneratedRows(),this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var r=t;r<e;r++){var i=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(i),this.onMatrixRowCreated(i)}this.runCondition(this.getDataFilteredProperties())}this.onRowsChanged()}}updateBindingProp(e,t){super.updateBindingProp(e,t);let n=this.generatedVisibleRows;
84if(e!==`rowCount`||!Array.isArray(n))return;let r=this.getUnbindValue(this.value)||[];if(r.length<n.length){let e=!1;for(let t=r.length;t<n.length;t++)e||(e=!n[t].isEmpty),r.push(n[t].value||{});e&&(this.value=r)}}updateProgressInfoByValues(e){let t=this.value;Array.isArray(t)||(t=[]);for(var n=0;n<this.rowCount;n++){let r=n<t.length?t[n]:{};this.updateProgressInfoByRow(e,r)}}getValueForNewRow(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e}get allowRowsDragAndDrop(){return this.allowRowReorder}set allowRowsDragAndDrop(e){this.allowRowReorder=e}get allowRowDragIn(){var e,t;return!((t=(e=this.survey)==null?void 0:e.onMatrixRowDragOver)!=null&&t.isEmpty)}get isRowsDragAndDrop(){return this.allowRowReorder&&!this.isReadOnly}get iconDragElement(){return this.cssClasses.iconDragElement}createRenderedTable(){return new lI(this)}get rowCountValue(){return this.getPropertyValue(`rowCount`)}set rowCountValue(e){this.setPropertyValue(`rowCount`,e)}onMinRowCountChanged(){let e=this.minRowCount;e>this.maxRowCount&&(this.maxRowCount=e),this.initialRowCount<e&&(this.initialRowCount=e),this.rowCount<e&&(this.rowCount=e)}onMaxRowCountChanged(){let e=this.maxRowCount;e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)}get canAddRow(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount}get canRemoveRows(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e}canRemoveRow(e){if(!this.survey)return!0;let t=e.rowIndex-1;return this.lockedRowCount>0&&t<this.lockedRowCount?!1:this.matrixCallbacks.matrixAllowRemoveRow(this,t,e)}addRowUI(){this.addRow(!0)}getQuestionToFocusOnAddingRow(){if(this.visibleRows.length===0)return null;for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var n=e.cells[t].question;if(n&&n.isVisible&&!n.isReadOnly)return n}return null}addRow(e){let t=this.rowCount,n=this.canAddRow;var r={question:this,canAddRow:n,allow:n};if(this.survey&&this.matrixCallbacks.matrixBeforeRowAdded(r),(n===r.allow?n===r.canAddRow?n:r.canAddRow:r.allow)&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.singleInputOnAddItem(!1),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&t!==this.rowCount)){let e=this.getQuestionToFocusOnAddingRow();e&&e.focus()}}runConditionsForColumns(e){return!1}unbindValue(){this.clearGeneratedRows(),this.clearPropertyValue(`value`),this.rowCountValue=0,super.unbindValue()}isValueSurveyElement(e){return this.isEditingSurveyElement||super.isValueSurveyElement(e)}addRowCore(){var e=this.rowCount;this.rowCount+=1;var t=this.getDefaultRowValue(!0),n=null;if(this.isValueEmpty(t)||(n=this.createNewValue(),n.length==this.rowCount&&(n[n.length-1]=t,this.value=n)),this.data){this.runCellsCondition(this.getDataFilteredProperties());let e=this.generatedVisibleRows;
84if(this.isValueEmpty(t)&&e.length>0){let t=e[e.length-1];this.isValueEmpty(t.value)||(n||(n=this.createNewValue()),!this.isValueSurveyElement(n)&&!this.isTwoValueEquals(n[n.length-1],t.value)&&(n[n.length-1]=t.value,this.value=n))}}if(this.survey){let t=this.visibleRows;if(e+1==this.rowCount&&t.length>0){let e=t[t.length-1];this.matrixCallbacks.matrixRowAdded(this,e),this.onRowsChanged()}}}getDefaultRowValue(e){for(var t=null,n=0;n<this.columns.length;n++){var r=this.columns[n].templateQuestion;r&&!this.isValueEmpty(r.getDefaultValue())&&(t=t||{},t[this.columns[n].name]=r.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var i in this.defaultRowValue)t=t||{},t[i]=this.defaultRowValue[i];if(e&&this.copyDefaultValueFromLastEntry){var a=this.value;if(a&&Array.isArray(a)&&a.length>=this.rowCount-1){var o=a[this.rowCount-2];for(var i in o)t=t||{},t[i]=o[i]}}return t}focusAddBUtton(){let e=this.getRootElement();if(e&&this.cssClasses.buttonAdd){let t=e.querySelectorAll(`.`+this.cssClasses.buttonAdd)[0];t&&t.focus()}}getActionCellIndex(e){let t=+!!this.showHeader;return this.isColumnLayoutHorizontal?e.cells.length:this.visibleRows.indexOf(e)+t}removeRowUI(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.removeRow(e,void 0,()=>{let e=this.visibleRows.length,n=t>=e?e-1:t,r=n>-1?this.visibleRows[n]:void 0;setTimeout(()=>{r?this.renderedTable.focusActionCell(r,this.getActionCellIndex(r)):this.focusAddBUtton()},10)})}isRequireConfirmOnRowDelete(e){if(!this.confirmDelete||e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return this.isValueEmpty(t)||!Array.isArray(t)||e>=t.length?!1:!this.isValueEmpty(t[e])}removeRow(e,t,n){if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var r=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;if(t===void 0&&(t=this.isRequireConfirmOnRowDelete(e)),t){ZF({message:this.confirmDeleteText,funcOnYes:()=>{this.removeRowAsync(e,r),n&&n()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeRowAsync(e,r),n&&n()}}removeRowAsync(e,t){t&&this.survey&&!this.matrixCallbacks.matrixRowRemoving(this,e,t)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.singleInputOnRemoveItem(e),this.onEndRowRemoving(t),this.initialRowCount>this.rowCount&&(this.initialRowCount=this.rowCount))}removeRowCore(e){var t=this.visibleRows?this.visibleRows[e]:null;if(e=this.generatedVisibleRows.indexOf(t),!(e<0)){if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var n=[];n=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue(),this.isRowChanging=!0,n.splice(e,1),n=this.deleteRowValue(n,null),this.value=n,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.matrixCallbacks.matrixRowRemoved(this,e,t)}}createSingleInputBehavior(){return new uI(this)}get defaultAddRowText(){return this.getLocalizationString(this.isColumnLayoutHorizontal?`addRow`:`addColumn`)}getSingleInputTitleTemplate(){return`rowIndexTemplateTitle`}get addRowLocation(){return this.addRowButtonLocation}set addRowLocation(e){this.addRowButtonLocation=e}getAddRowLocation(){return this.addRowButtonLocation}getShowColumnsIfEmpty(){return this.hideColumnsIfEmpty}get locEditRowText(){return this.getOrCreateLocStr(`editRowText`,!1,`editText`)}get emptyRowsText(){return this.noRowsText}set emptyRowsText(e){this.noRowsText=e}get locEmptyRowsText(){return this.locNoRowsText}getValueGetterContext(){return new oI(this)}getDisplayValueCore(e,t){if(!t||!Array.isArray(t))return t;for(var n=this.getUnbindValue(t),r=this.visibleRows,i=0;i<r.length&&i<n.length;i++){var a=n[i];a&&(n[i]=this.getRowDisplayValue(e,r[i],a))}return n}getConditionObjectRowName(e){return`[`+e.toString()+`]`}getConditionObjectsRowIndeces(){let e=[],t=Math.max(this.rowCount,1);for(var n=0;n<Math.min(G.matrix.maxRowCountInCondition,t);n++)e.push(n);return e}supportAutoAdvance(){return!1}get hasRowText(){return!1}
84onCheckForErrors(e,t,n){super.onCheckForErrors(e,t,n),!t&&!this.validateMinRows()&&e.push(new cN(this.minRowCount,this))}validateMinRows(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!0;let e=0;return this.generatedVisibleRows.forEach(t=>{t.isEmpty||e++}),e>=this.minRowCount}getUniqueColumnsNames(){var e=super.getUniqueColumnsNames();let t=this.keyName;return t&&e.indexOf(t)<0&&e.push(t),e}generateRows(){var e=[];if(this.rowCount===0)return e;for(var t=this.createNewValue(),n=0;n<this.rowCount;n++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,n)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e}createMatrixRow(e){return new sI(this.rowCounter++,this,e)}getInsertedDeletedIndex(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)if(t[r]!==e[r].editingObj)return r;return n}isEditingObjectValueChanged(){let e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;let t=this.lastDeletedRow;this.lastDeletedRow=void 0;let n=this.generatedVisibleRows;
84if(!Array.isArray(e)||Math.abs(n.length-e.length)>1||n.length===e.length)return!1;let r=this.getInsertedDeletedIndex(n,e);if(n.length>e.length){this.lastDeletedRow=n[r];let t=n[r];n.splice(r,1),this.setPropertyValueDirectly(`rowCount`,e.length),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(t)}else{let i;t&&t.editingObj===e[r]?i=t:(t=void 0,i=this.createMatrixRow(e[r])),n.splice(r,0,i),t||this.onMatrixRowCreated(i),this.setPropertyValueDirectly(`rowCount`,e.length),this.isRendredTableCreated&&(this.renderedTable.isRequireReset()?this.resetRenderedTable():this.renderedTable.onAddedRow(i,r))}return!0}updateValueFromSurvey(e,t=!1){let n=this.setRowCountValueFromData;this.setRowCountValueFromData=!0;let r=!1;if(!n&&this.minRowCount>0&&!this.draggedRow){let t=Array.isArray(e)?e.length:0,n=this.isEditingSurveyElement;if(t<this.minRowCount&&(n&&this.rowCount>0||!n&&!K.isValueEmpty(this.defaultRowValue))){Array.isArray(e)||(e=[]);for(let r=t;r<this.minRowCount;r++)n?this.getValueForNewRow():e.push(K.createCopy(this.defaultRowValue))}n&&(t<=this.minRowCount&&this.rowCount>this.minRowCount||t>this.minRowCount&&this.rowCount<=this.minRowCount)&&(r=!0)}super.updateValueFromSurvey(e,t),r&&this.onRowsChanged(),this.setRowCountValueFromData=!1}getFilteredDataCore(){let e=[];return this.generatedVisibleRows.forEach(t=>{t.isVisible&&!t.isEmpty&&e.push(t.filteredValue)}),e}onBeforeValueChanged(e){if(!(!e||!Array.isArray(e))){var t=e.length;if(t!=this.rowCount&&!(!this.setRowCountValueFromData&&t<this.initialRowCount)&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows)){if(t==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();let n=this.getRowValueByIndex(e,t-1),r=this.createMatrixRow(n);this.generatedVisibleRows.push(r),this.onMatrixRowCreated(r),this.onEndRowAdding()}else this.clearGeneratedRows(),this.getVisibleRows(),this.onRowsChanged();this.setRowCountValueFromData=!1}}}createNewValue(){var e=this.createValueCopy();(!e||!Array.isArray(e))&&(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var n=e.length;n<this.rowCount;n++)e.push(this.getUnbindValue(t));return e}deleteRowValue(e,t){if(!Array.isArray(e))return e;for(var n=!0,r=0;r<e.length;r++)if(this.isObject(e[r])&&Object.keys(e[r]).length>0){n=!1;break}return n?null:e}getRowValueByIndex(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null}getRowValueCore(e,t,n=!1){if(!this.generatedVisibleRows)return{};var r=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!r&&n&&(r={}),r}getAddRowButtonCss(e=!1){return new X().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()}getRemoveRowButtonCss(){return new X().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()}getRootCss(){var e;return new X().append(super.getRootCss()).append(this.cssClasses.empty,!((e=this.renderedTable)!=null&&e.showTable)).toString()}};q([Y()],cI.prototype,`confirmDelete`,void 0),q([Y({defaultValue:``})],cI.prototype,`keyName`,void 0),q([Y()],cI.prototype,`defaultRowValue`,void 0),q([Y()],cI.prototype,`copyDefaultValueFromLastEntry`,void 0),q([Y()],cI.prototype,`allowRowReorder`,void 0),q([Y({defaultValue:0})],cI.prototype,`lockedRowCount`,void 0),q([Y({onSetting:e=>e<0?0:e})],cI.prototype,`minRowCount`,void 0),q([Y({onSetting:e=>e<=0?1:e>G.matrix.maxRowCount?G.matrix.maxRowCount:e})],cI.prototype,`maxRowCount`,void 0),q([Y()],cI.prototype,`allowAddRows`,void 0),q([Y()],cI.prototype,`allowRemoveRows`,void 0),q([Y()],cI.prototype,`detailPanelShowOnAdding`,void 0),q([Y({localizable:{defaultStr:`confirmDelete`}})],cI.prototype,`confirmDeleteText`,void 0),q([Y({localizable:{defaultStr:`addRow`,onCreate:(e,t)=>t.onGetTextCallback=t=>t||e.defaultAddRowText}})],cI.prototype,`addRowText`,void 0),q([Y()],cI.prototype,`addRowButtonLocation`,void 0),q([Y()],cI.prototype,`hideColumnsIfEmpty`,void 0),q([Y({localizable:{defaultStr:`removeRow`}})],cI.prototype,`removeRowText`,void 0),q([Y({localizable:{defaultStr:!0}})],cI.prototype,`noRowsText`,void 0);var lI=class extends IF{setDefaultRowActions(e,t){super.setDefaultRowActions(e,t)}},uI=class extends KF{get matrixDynamic(){return this.question}onSingleInputQuestionAdded(e){this.matrixDynamic.showHeader||(e.titleLocation=`hidden`)}getSingleInputQuestionsCore(e,t){let n=[],r=this.matrixDynamic.visibleRows;
84if(t)for(let e=0;e<r.length;e++){let t=r[e];(!t.hasValueAnyQuestion(!0)||!t.validate(new RP))&&this.fillSingleInputQuestionsByRow(n,t)}return this.getSingleInputQuestionsForDynamic(e,n)}fillSingleInputQuestionsInContainer(e,t){let n=t.data;this.fillSingleInputQuestionsByRow(e,n)}fillSingleInputQuestionsByRow(e,t){t&&t.questions.forEach(t=>t.addNestedQuestion(e,!0,!1,!1))}getSingleInputAddTextCore(){if(this.matrixDynamic.canAddRow)return this.matrixDynamic.addRowText}singleInputAddItemCore(){this.matrixDynamic.addRowUI()}getSingleQuestionOnChange(e){let t=this.matrixDynamic.visibleRows;if(t.length>0){(e<0||e>=t.length)&&(e=t.length-1);let n=t[e].visibleQuestions;if(n.length>0)return n[0]}return null}createSingleInputSummary(){let e=this.matrixDynamic,t=new aI(e,e.locNoRowsText),n=[],r=e.canRemoveRows;return e.visibleRows.forEach(t=>{let i=new yj(new WF(e,t),!0,void 0,e.getSingleInputTitleTemplate());i.setJson(e.locSingleInputTitleTemplate.getJson());let a=new kN({locTitle:e.locEditRowText,action:()=>{this.singleInputEditRow(t)}}),o=r&&e.canRemoveRow(t)?new kN({locTitle:e.locRemoveRowText,action:()=>{e.removeRowUI(t)}}):void 0;n.push(new iI(i,a,o))}),t.items=n,t}};J.addClass(`matrixdynamic`,[{name:`allowAddRows:boolean`,default:!0},{name:`allowRemoveRows:boolean`,default:!0},{name:`rowCount:number`,default:2,minValue:0,isBindable:!0},{name:`minRowCount:number`,default:0,minValue:0},{name:`maxRowCount:number`,default:G.matrix.maxRowCount},{name:`keyName`},`defaultRowValue:rowvalue`,{name:`copyDefaultValueFromLastEntry:boolean`,alternativeName:`defaultValueFromLastRow`},{name:`confirmDelete:boolean`},{name:`confirmDeleteText`,dependsOn:`confirmDelete`,visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:`locConfirmDeleteText`},{name:`addRowButtonLocation`,alternativeName:`addRowLocation`,default:`default`,choices:[`default`,`top`,`bottom`,`topBottom`]},{name:`addRowText`,serializationProperty:`locAddRowText`},{name:`removeRowText`,serializationProperty:`locRemoveRowText`},`hideColumnsIfEmpty:boolean`,{name:`noRowsText:text`,alternativeName:`emptyRowsText`,serializationProperty:`locNoRowsText`,dependsOn:`hideColumnsIfEmpty`,visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:`detailPanelShowOnAdding:boolean`,dependsOn:`detailPanelMode`,visibleIf:function(e){return e.detailPanelMode!==`none`}},{name:`allowRowReorder:switch`,alternativeName:`allowRowsDragAndDrop`}],function(){return new cI(``)},`matrixdropdownbase`),xF.Instance.registerQuestion(`matrixdynamic`,e=>{var t=new cI(e);return t.choices=[1,2,3,4,5],GF.addDefaultColumns(t),t});var dI={currentType:`default`,getCss:function(){var e=this.currentType?this[this.currentType]:fI;return e||(e=fI),e},getAvailableThemes:function(){return Object.keys(this).filter(e=>[`currentType`,`getCss`,`getAvailableThemes`].indexOf(e)===-1)}},fI={root:`sd-root-modern`,rootProgress:`sd-progress`,rootMobile:`sd-root-modern--mobile`,rootAnimationDisabled:`sd-root-modern--animation-disabled`,rootReadOnly:`sd-root--readonly`,rootCompact:`sd-root--compact`,rootFitToContainer:`sd-root-modern--full-container`,rootWrapper:`sd-root-modern__wrapper`,rootWrapperFixed:`sd-root-modern__wrapper--fixed`,rootWrapperHasImage:`sd-root-modern__wrapper--has-image`,rootBackgroundImage:`sd-root_background-image`,container:`sd-container-modern`,header:`sd-title sd-container-modern__title`,bodyContainer:`sv-components-row`,body:`sd-body`,bodyWithTimer:`sd-body--with-timer`,clockTimerRoot:`sd-timer`,clockTimerRootTop:`sd-timer--top`,clockTimerRootBottom:`sd-timer--bottom`,clockTimerProgress:`sd-timer__progress`,clockTimerProgressAnimation:`sd-timer__progress--animation`,clockTimerTextContainer:`sd-timer__text-container`,clockTimerMinorText:`sd-timer__text--minor`,clockTimerMajorText:`sd-timer__text--major`,bodyEmpty:`sd-body sd-body--empty`,bodyLoading:`sd-body--loading`,footer:`sd-footer sd-body__navigation sd-clearfix`,title:`sd-title`,description:`sd-description`,logo:`sd-logo`,logoImage:`sd-logo__image`,headerText:`sd-header__text`,headerClose:`sd-hidden`,navigationButton:``,bodyNavigationButton:`sd-btn`,completedPage:`sd-completedpage`,completedBeforePage:`sd-completed-before-page`,timerRoot:`sd-body__timer`,navigation:{complete:`sd-btn--action sd-navigation__complete-btn`,prev:`sd-navigation__prev-btn`,next:`sd-navigation__next-btn`,start:`sd-navigation__start-btn`,preview:`sd-navigation__preview-btn`,edit:`sd-btn sd-btn--small`},panel:{contentEnter:`sd-element__content--enter`,contentLeave:`sd-element__content--leave`,enter:`sd-element-wrapper--enter`,leave:`sd-element-wrapper--leave`,asPage:`sd-panel--as-page`,number:`sd-element__num`,title:`sd-title sd-element__title sd-panel__title`,titleExpandable:`sd-element__title--expandable`,titleExpandableSvg:`sd-element__title-expandable-svg`,titleNumInline:`sd-element__title--num-inline`,titleExpanded:`sd-element__title--expanded`,titleCollapsed:`sd-element__title--collapsed`,titleDisabled:`sd-element__title--disabled`,titleOnExpand:`sd-panel__title--expanded`,titleOnError:`sd-panel__title--error`,titleBar:`sd-action-title-bar`,description:`sd-description sd-panel__description`,container:`sd-element sd-element--complex sd-panel sd-row__panel`,withFrame:`sd-element--with-frame`,content:`sd-element__content sd-panel__content`,icon:`sd-panel__icon`,iconExpanded:`sd-panel__icon--expanded`,footer:`sd-panel__footer`,requiredMark:`sd-panel__required-text`,header:`sd-panel__header sd-element__header sd-element__header--location-top`,collapsed:`sd-element--collapsed`,expanded:`sd-element--expanded`,expandable:`sd-element--expandable`,expandableAnimating:`sd-elemenet--expandable--animating`,nested:`sd-element--nested sd-element--nested-with-borders`,invisible:`sd-element--invisible`,navigationButton:``,compact:`sd-element--with-frame sd-element--compact`,errorsContainer:`sd-panel__errbox sd-element__erbox sd-element__erbox--above-element`},paneldynamic:{mainRoot:`sd-element sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question`,empty:`sd-question--empty`,root:`sd-paneldynamic`,iconRemove:`sd-hidden`,navigation:`sd-paneldynamic__navigation`,title:`sd-title sd-element__title sd-question__title`,header:`sd-paneldynamic__header sd-element__header`,headerTab:`sd-paneldynamic__header-tab`,button:`sd-action sd-paneldynamic__btn`,buttonRemove:`sd-action--negative sd-paneldynamic__remove-btn`,buttonAdd:`sd-paneldynamic__add-btn`,buttonPrev:`sd-paneldynamic__prev-btn sd-action--icon sd-action`,buttonPrevDisabled:`sd-action--disabled`,buttonNextDisabled:`sd-action--disabled`,buttonNext:`sd-paneldynamic__next-btn sd-action--icon sd-action`,progressContainer:`sd-paneldynamic__progress-container`,progress:`sd-progress`,progressBar:`sd-progress__bar`,nested:`sd-element--nested sd-element--nested-with-borders`,progressText:`sd-paneldynamic__progress-text`,separator:`sd-paneldynamic__separator`,panelWrapper:`sd-paneldynamic__panel-wrapper`,footer
84:`sd-paneldynamic__footer`,panelFooter:`sd-paneldynamic__panel-footer`,footerButtonsContainer:`sd-paneldynamic__buttons-container`,panelsContainer:`sd-paneldynamic__panels-container`,panelWrapperInRow:`sd-paneldynamic__panel-wrapper--in-row`,panelWrapperEnter:`sd-paneldynamic__panel-wrapper--enter`,panelWrapperLeave:`sd-paneldynamic__panel-wrapper--leave`,panelWrapperList:`sd-paneldynamic__panel-wrapper--list`,progressBtnIcon:`icon-progressbuttonv2`,noEntriesPlaceholder:`sd-paneldynamic__placeholder sd-question__placeholder`,compact:`sd-element--with-frame sd-element--compact`,tabsContainer:`sd-paneldynamic__tabs-container`,tabsContainerWithHeader:`sd-paneldynamic__tabs-container--with-header`,tabsRoot:`sd-tabs-toolbar`,tabsLeft:`sd-tabs-toolbar--left`,tabsRight:`sd-tabs-toolbar--right`,tabsCenter:`sd-tabs-toolbar--center`,tabs:{item:`sd-tab-item`,itemPressed:`sd-tab-item--pressed`,itemAsIcon:`sd-tab-item--icon`,itemIcon:`sd-tab-item__icon`,itemTitle:`sd-tab-item__title`}},progress:`sd-progress sd-body__progress`,progressTop:`sd-body__progress--top`,progressBottom:`sd-body__progress--bottom`,progressBar:`sd-progress__bar`,progressText:`sd-progress__text`,progressButtonsRoot:`sd-progress-buttons`,progressButtonsNumbered:`sd-progress-buttons--numbered`,progressButtonsFitSurveyWidth:`sd-progress-buttons--fit-survey-width`,progressButtonsContainerCenter:`sd-progress-buttons__container-center`,progressButtonsContainer:`sd-progress-buttons__container`,progressButtonsConnector:`sd-progress-buttons__connector`,progressButtonsButton:`sd-progress-buttons__button`,progressButtonsButtonBackground:`sd-progress-buttons__button-background`,progressButtonsButtonContent:`sd-progress-buttons__button-content`,progressButtonsHeader:`sd-progress-buttons__header`,progressButtonsFooter:`sd-progress-buttons__footer`,progressButtonsImageButtonLeft:`sd-progress-buttons__image-button-left`,progressButtonsImageButtonRight:`sd-progress-buttons__image-button-right`,progressButtonsImageButtonHidden:`sd-progress-buttons__image-button--hidden`,progressButtonsListContainer:`sd-progress-buttons__list-container`,progressButtonsList:`sd-progress-buttons__list`,progressButtonsListElementPassed:`sd-progress-buttons__list-element--passed`,progressButtonsListElementCurrent:`sd-progress-buttons__list-element--current`,progressButtonsListElementNonClickable:`sd-progress-buttons__list-element--nonclickable`,progressButtonsPageTitle:`sd-progress-buttons__page-title`,progressButtonsPageDescription:`sd-progress-buttons__page-description`,progressTextInBar:`sd-hidden`,page:{root:`sd-page sd-body__page`,emptyHeaderRoot:`sd-page__empty-header`,title:`sd-title sd-page__title`,description:`sd-description sd-page__description`,number:`sd-page__num`,errorsContainer:`sd-page__errbox`},pageTitle:`sd-title sd-page__title`,pageDescription:`sd-description sd-page__description`,row:`sd-row sd-clearfix`,rowMultiple:`sd-row--multiple`,rowCompact:`sd-row--compact`,rowEnter:`sd-row--enter`,rowDelayedEnter:`sd-row--delayed-enter`,rowLeave:`sd-row--leave`,rowReplace:`sd-row--replace`,pageRow:`sd-page__row`,question:{contentEnter:`sd-element__content--enter`,contentLeave:`sd-element__content--leave`,enter:`sd-element-wrapper--enter`,leave:`sd-element-wrapper--leave`,mobile:`sd-question--mobile`,mainRoot:`sd-element sd-question sd-row__question`,flowRoot:`sd-element sd-question sd-row__question sd-row__question--flow`,withFrame:`sd-element--with-frame`,asCell:`sd-table__cell`,answered:`sd-question--answered`,header:`sd-question__header sd-element__header`,headerLeft:`sd-question__header--location--left`,headerTop:`sd-question__header--location-top sd-element__header--location-top`,headerBottom:`sd-question__header--location--bottom`,content:`sd-element__content sd-question__content`,contentSupportContainerQueries:`sd-question__content--support-container-queries`,contentLeft:`sd-question__content--left`,titleNumInline:`sd-element__title--num-inline`,titleLeftRoot:`sd-question--left`,titleTopRoot:`sd-question--title-top`,descriptionUnderInputRoot:`sd-question--description-under-input`,titleBottomRoot:`sd-question--title-bottom`,titleOnAnswer:`sd-question__title--answer`,titleEmpty:`sd-question__title--empty`,titleOnError:`sd-question__title--error`,title:`sd-title sd-element__title sd-question__title`,titleExpandable:`sd-element__title--expandable`,titleExpandableSvg:`sd-element__title-expandable-svg`,titleExpanded:`sd-element__title--expanded`,titleCollapsed:`sd-element__title--collapsed`,titleDisabled:`sd-element__title--disabled`,titleReadOnly:`sd-element__title--readonly`,titleBar:`sd-action-title-bar`,requiredMark:`sd-question__required-text`,number:`sd-element__num`,description:`sd-description sd-question__description`,descriptionUnderInput:`sd-question__description--under-input`,comment:`sd-input sd-comment`,required:`sd-question--required`,titleRequired:`sd-question__title--required`,indent:20,footer:`sd-question__footer`,commentArea:`sd-question__comment-area`,formGroup:`sd-question__form-group`,hasError:`sd-question--error`,hasErrorTop:`sd-question--error-top`,hasErrorBottom:`sd-question--error-bottom`,collapsed:`sd-element--collapsed`,expandable:`sd-element--expandable`,expandableAnimating:`sd-elemenet--expandable--animating`,expanded:`sd-element--expanded`,nested:`sd-element--nested`,invisible:`sd-element--invisible`,composite:`sd-element--complex sd-composite`,disabled:`sd-question--disabled`,readOnly:`sd-question--readonly`,preview:`sd-question--preview`,n
84oPointerEventsMode:`sd-question--no-pointer-events`,errorsContainer:`sd-element__erbox sd-question__erbox`,errorsContainerTop:`sd-element__erbox--above-element sd-question__erbox--above-question`,errorsContainerBottom:`sd-question__erbox--below-question`,confirmDialog:`sd-popup--confirm sv-popup--confirm`,singleInputTitle:`sd-element__title--singleinput`,singleInputWrapper:`sd-question__singleinput-wrapper`,breadcrumbsRoot:`sd-breadcrumbs`,breadcrumbsItem:`sd-breadcrumbs-item`,breadcrumbsItemButton:`sd-breadcrumbs-item__button`,breadcrumbsSeparator:`sd-breadcrumbs-separator`,summary:`sd-summary`,summaryRow:`sd-summary-row`,summaryRowContent:`sd-summary-row__content`,summaryRowActions:`sd-summary-row__actions`,summaryRowAction:`sd-summary-row-action`,summaryRowActionEdit:`sd-summary-row-action sd-summary-row-action--edit`,summaryRowActionDelete:`sd-summary-row-action sd-summary-row-action--delete`},image:{mainRoot:`sd-element sd-question sd-question--image`,root:`sd-image`,image:`sd-image__image`,adaptive:`sd-image__image--adaptive`,noImage:`sd-image__no-image`,noImageSvgIconId:`icon-no-image`,withFrame:``},html:{mainRoot:`sd-element sd-question sd-row__question sd-question--html`,root:`sd-html`,withFrame:``,nested:`sd-element--nested sd-html--nested`},error:{root:`sd-error`,warningMode:`sd-error--warning`,infoMode:`sd-error--info`,icon:``,item:`sd-error__item`,locationTop:``,locationBottom:``},checkbox:{root:`sd-selectbase`,rootMobile:`sd-selectbase--mobile`,rootRow:`sd-selectbase--row`,rootMultiColumn:`sd-selectbase--multi-column`,item:`sd-item sd-checkbox sd-selectbase__item`,itemEnter:`sd-item--enter`,itemLeave:`sd-item--leave`,itemOnError:`sd-item--error`,itemSelectAll:`sd-checkbox--selectall`,itemNone:`sd-checkbox--none`,itemDisabled:`sd-item--disabled sd-checkbox--disabled`,itemReadOnly:`sd-item--readonly sd-checkbox--readonly`,itemPreview:`sd-item--preview sd-checkbox--preview`,itemPreviewSvgIconId:`#icon-check-16x16`,itemChecked:`sd-item--checked sd-checkbox--checked`,itemHover:`sd-item--allowhover sd-checkbox--allowhover`,itemInline:`sd-selectbase__item--inline`,label:`sd-selectbase__label`,labelChecked:``,itemControl:`sd-visuallyhidden sd-item__control sd-checkbox__control`,itemDecorator:`sd-item__svg sd-checkbox__svg`,itemSvgIconId:`#icon-check-16x16`,controlLabel:`sd-item__control-label`,materialDecorator:`sd-item__decorator sd-checkbox__decorator`,otherArea:`sd-selectbase__other`,column:`sd-selectbase__column`},radiogroup:{root:`sd-selectbase`,rootMobile:`sd-selectbase--mobile`,rootRow:`sd-selectbase--row`,rootMultiColumn:`sd-selectbase--multi-column`,item:`sd-item sd-radio sd-selectbase__item`,itemOnError:`sd-item--error`,itemInline:`sd-selectbase__item--inline`,label:`sd-selectbase__label`,labelChecked:``,itemEnter:`sd-item--enter`,itemLeave:`sd-item--leave`,itemDisabled:`sd-item--disabled sd-radio--disabled`,itemReadOnly:`sd-item--readonly sd-radio--readonly`,itemPreview:`sd-item--preview sd-radio--preview`,itemPreviewSvgIconId:`#icon-check-16x16`,itemChecked:`sd-item--checked sd-radio--checked`,itemHover:`sd-item--allowhover sd-radio--allowhover`,itemControl:`sd-visuallyhidden sd-item__control sd-radio__control`,itemDecorator:`sd-item__svg sd-radio__svg`,controlLabel:`sd-item__control-label`,materialDecorator:`sd-item__decorator sd-radio__decorator`,otherArea:`sd-selectbase__other`,clearButton:``,column:`sd-selectbase__column`},boolean:{mainRoot:`sd-element sd-question sd-row__question sd-question--boolean`,root:`sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root`,rootRadio:`sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact`,item:`sd-boolean`,itemOnError:`sd-boolean--error`,control:`sd-boolean__control sd-visuallyhidden`,itemChecked:`sd-boolean--checked`,itemExchanged:`sd-boolean--exchanged`,itemIndeterminate:`sd-boolean--indeterminate`,itemDisabled:`sd-boolean--disabled`,itemReadOnly:`sd-boolean--readonly`,itemPreview:`sd-boolean--preview`,itemHover:`sd-boolean--allowhover`,label:`sd-boolean__label`,labelTrue:`sd-boolean__label--true`,labelFalse:`sd-boolean__label--false`,switch:`sd-boolean__switch`,disabledLabel:`sd-checkbox__label--disabled`,labelReadOnly:`sd-checkbox__label--readonly`,labelPreview:`sd-checkbox__label--preview`,sliderText:`sd-boolean__thumb-text`,slider:`sd-boolean__thumb`,sliderGhost:`sd-boolean__thumb-ghost`,radioItem:`sd-item`,radioItemChecked:`sd-item--checked sd-radio--checked`,radioItemDisabled:`sd-item--disabled sd-radio--disabled`,radioItemReadOnly:`sd-item--readonly sd-radio--readonly`,radioItemPreview:`sd-item--preview sd-radio--preview`,itemPreviewSvgIconId:`#icon-check-16x16`,radioLabel:`sd-selectbase__label`,radioControlLabel:`sd-item__control-label`,radioFieldset:`sd-selectbase`,itemRadioDecorator:`sd-item__svg sd-radio__svg`,materialRadioDecorator:`sd-item__decorator sd-radio__decorator`,itemRadioControl:`sd-visuallyhidden sd-item__control sd-radio__control`,rootCheckbox:`s
84d-selectbase`,checkboxItem:`sd-item sd-selectbase__item sd-checkbox`,checkboxLabel:`sd-selectbase__label`,checkboxItemOnError:`sd-item--error`,checkboxItemIndeterminate:`sd-checkbox--intermediate`,checkboxItemChecked:`sd-item--checked sd-checkbox--checked`,checkboxItemDecorator:`sd-item__svg sd-checkbox__svg`,checkboxItemDisabled:`sd-item--disabled sd-checkbox--disabled`,checkboxItemReadOnly:`sd-item--readonly sd-checkbox--readonly`,checkboxItemPreview:`sd-item--preview sd-checkbox--preview`,controlCheckbox:`sd-visuallyhidden sd-item__control sd-checkbox__control`,checkboxMaterialDecorator:`sd-item__decorator sd-checkbox__decorator`,checkboxControlLabel:`sd-item__control-label`,checkboxIsLabelRendered:`sd-checkbox--label-rendered`,svgIconCheckedId:`#icon-check-16x16`},text:{root:`sd-input sd-text`,small:`sd-row__question--small`,controlDisabled:`sd-input--disabled`,controlReadOnly:`sd-input--readonly`,controlPreview:`sd-input--preview`,constrolWithCharacterCounter:`sd-text__character-counter`,characterCounterBig:`sd-text__character-counter--big`,content:`sd-text__content sd-question__content`,remainingCharacterCounter:`sd-remaining-character-counter`,onError:`sd-input--error`,isValueChanged:`sd-input--value-changed`},multipletext:{root:`sd-multipletext`,rootMobile:`sd-multipletext--mobile`,itemLabel:`sd-multipletext__item-container sd-input`,itemLabelReadOnly:`sd-input--readonly`,itemLabelDisabled:`sd-input--disabled`,itemLabelPreview:`sd-input--preview`,itemLabelOnError:`sd-multipletext__item-container--error`,itemLabelAllowFocus:`sd-multipletext__item-container--allow-focus`,itemLabelAnswered:`sd-multipletext__item-container--answered`,itemWithCharacterCounter:`sd-multipletext-item__character-counter`,item:`sd-multipletext__item`,itemTitle:`sd-multipletext__item-title`,content:`sd-multipletext__content sd-question__content`,row:`sd-multipletext__row`,cell:`sd-multipletext__cell`,cellError:`sd-multipletext__cell--error`,cellErrorTop:`sd-multipletext__cell--error-top`,cellErrorBottom:`sd-multipletext__cell--error-bottom`},dropdown:{root:`sd-selectbase`,popup:`sv-dropdown-popup`,small:`sd-row__question--small`,selectWrapper:`sv-dropdown_select-wrapper`,onError:`sd-input--error`,label:`sd-selectbase__label`,itemEnter:`sd-item--enter`,itemLeave:`sd-item--leave`,item:`sd-item sd-radio sd-selectbase__item`,itemDisabled:`sd-item--disabled sd-radio--disabled`,itemChecked:`sd-item--checked sd-radio--checked`,itemHover:`sd-item--allowhover sd-radio--allowhover`,itemControl:`sd-visuallyhidden sd-item__control sd-radio__control`,itemDecorator:`sd-item__svg sd-radio__svg`,cleanButtonIconId:`icon-cancel`,chevronButton:`sd-dropdown_chevron-button`,chevronButtonSvg:`sd-dropdown_chevron-button-svg`,chevronButtonIconId:`icon-chevron`,control:`sd-input sd-dropdown`,controlInputFieldComponent:`sd-dropdown__input-field-component`,controlValue:`sd-dropdown__value`,controlDisabled:`sd-input--disabled`,controlReadOnly:`sd-input--readonly`,controlPreview:`sd-input--preview`,controlEmpty:`sd-dropdown--empty`,controlLabel:`sd-item__control-label`,filterStringInput:`sd-dropdown__filter-string-input`,materialDecorator:`sd-item__decorator sd-radio__decorator`,hintPrefix:`sd-dropdown__hint-prefix`,hintSuffix:`sd-dropdown__hint-suffix`},imagepicker:{mainRoot:`sd-element sd-question sd-row__question`,root:`sd-selectbase sd-imagepicker`,rootResponsive:`sd-imagepicker--responsive`,rootStatic:`sd-imagepicker--static`,rootColumn:`sd-imagepicker--column`,item:`sd-imagepicker__item`,itemOnError:`sd-imagepicker__item--error`,itemInline:`sd-imagepicker__item--inline`,itemChecked:`sd-imagepicker__item--checked`,itemDisabled:`sd-imagepicker__item--disabled`,itemReadOnly:`sd-imagepicker__item--readonly`,itemPreview:`sd-imagepicker__item--preview`,itemHover:`sd-imagepicker__item--allowhover`,label:`sd-imagepicker__label`,itemDecorator:`sd-imagepicker__item-decorator`,imageContainer:`sd-imagepicker__image-container`,itemControl:`sd-imagepicker__control sd-visuallyhidden`,image:`sd-imagepicker__image`,itemText:`sd-imagepicker__text`,itemNoImage:`sd-imagepicker__no-image`,itemNoImageSvgIcon:`sd-imagepicker__no-image-svg`,itemNoImageSvgIconId:`icon-no-image`,column:`sd-selectbase__column sd-imagepicker__column`,checkedItemDecorator:`sd-imagepicker__check-decorator`,checkedItemSvgIcon:`sd-imagepicker__check-icon`,checkedItemSvgIconId:`icon-check-24x24`},matrix:{mainRoot:`sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table`,tableWrapper:`sd-matrix sd-table-wrapper`,tableWrapperLeft:`sd-table-wrapper--left`,root:`sd-table sd-matrix__table`,columnsAutoWidth:`sd-table--columnsautowidth`,noHeader:`sd-table--no-header`,rootVerticalAlignTop:`sd-table--align-top`,rootVerticalAlignMiddle:`sd-table--align-middle`,rootAlternateRows:`sd-table--alternate-rows`,rowError:`sd-matrix__row--error`,cell:`sd-table__cell sd-matrix__cell`,row:`sd-table__row`,rowDisabled:`sd-table__row-disabled`,rowReadOnly:`sd-table__row-readonly`,headerCell:`sd-table__cell sd-table__cell--header`,rowTextCell:`sd-table__cell sd-matrix__cell sd-table__cell--row-text`,label:`sd-item sd-{type} sd-matrix__label`,itemOnError:`sd-item--error`,itemValue:`sd-visuallyhidden sd-item__control sd-{type}__control`,itemChecked:`sd-item--checked sd-{type}--checked`,itemDisabled:`sd-item--disabled sd-{type}--disabled`,itemReadOnly:`sd-item--readonly sd-{type}--readonly`,itemPreview:`sd-item--preview sd-{type}--preview`,itemPreviewSvgIconId:`#icon-check-16x16`,itemHover:`sd-{type}--allowhover`,materialDecorator:`sd-item__decorator sd-{type}__decorator`,itemDecorator:`sd-item__svg sd-{type}__svg`,cellText:`sd-matrix__text`,cellTextSelected:`sd-matrix__text--checked`,cellTextDisabled:`sd-matrix__text--disabled`,cellResponsiveTitle:`sd-matrix__responsive-title`,compact:`sd-element--with-frame sd-element--compact`},matrixdropdown:{mainRoot:`sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table`,rootScroll:`sd-question--scroll`,root:`sd-table sd-matrixdropdown`,columnsAutoWidth:`sd-table--columnsautowidth`,noHeader:`sd-table--no-header`,hasFooter:`sd-table--has-footer`,rootVerticalAlignTop:`sd-table--align-top`,rootVerticalAlignMiddle:`sd-table--align-middle`,tableWrapper:`sd-table-wrapper`,tableWrapperLeft:`sd-table-wrapper--left`,rootAlternateRows:`sd-table--alternate-rows`,cell:`sd-table__cell`,cellResponsiveTitle:`sd-table__responsive-title`,errorsCell:`sd-table__cell--error`,errorsCellTop:`sd-table__cell--error-top`,errorsCellBottom:`sd-table__cell--error-bottom`,itemCell:`sd-table__cell--item`,row:`sd-table__row`,rowDelayedEnter:`sd-table__row--delayed-enter`,rowEnter:`sd-table__row--enter`,rowLeave:`sd-table__row--leave`,expandedRow:`sd-table__row--expanded`,rowHasPanel:`sd-table__row--has-panel`,rowHasEndActions:`sd-table__row--has-end-actions`,headerCell:`sd-table__cell sd-table__cell--header`,rowTextCell:`sd-table__cell sd-table__cell--row-text`,footerCell:`sd-table__cell sd-table__cell--footer`,footerTotalCell:`sd-table__cell sd-table__cell--footer-total`,columnTitleCell:`sd-table__cell--column-title`,cellRequiredMark:`sd-question__required-text`,detailButton:`sd-table__cell--detail-button`,detailButtonExpanded:`sd-table__cell--detail-button--expanded`,detailIcon:`sd-detail-panel__icon`,detailIconExpanded:`sd-detail-panel__icon--expanded`,detailIconId:`icon-expanddetail`,detailIconExpandedId:`icon-collapsedetail`,detailPanelCell:`sd-table__cell--detail-panel`,detailRowCell:`sd-table__cell--detail`,actionsCellPrefix:`sd-table__cell-action`,actionsCell:`sd-table__cell sd-table__cell--actions`,actionsCellDrag:`sd-table__cell--drag`,emptyCell:`sd-table__cell--empty`,verticalCell:`sd-table__cell--vertical`,cellQuestionWrapper:`sd-matrix__question-wrapper sd-table__question-wrapper`,compact:`sd-element--with-frame sd-element--compact`},matrixdynamic:{mainRoot:`sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table`,rootScroll:`sd-question--scroll`,empty:`sd-question--empty`,root:`sd-table sd-matrixdynamic`,columnsAutoWidth:`sd-table--columnsautowidth`,noHeader:`sd-table--no-header`,hasFooter:`sd-table--has-footer`,tableWrapper:`sd-table-wrapper`,tableWrapperLeft:`sd-table-wrapper--left`,rootAlternateRows:`sd-table--alternate-rows`,content:`sd-matrixdynamic__content sd-question__content`,cell:`sd-table__cell`,cellResponsiveTitle:`sd-table__responsive-title`,row:`sd-table__row`,rowEmpty:`sd-table__row--empty`,rowDelayedEnter:`sd-table__row--delayed-enter`,rowEnter:`sd-table__row--enter`,rowLeave:`sd-table__row--leave`,rowHasPanel:`sd-table__row--has-panel`,rowHasEndActions:`sd-table__row--has-end-actions`,expandedRow:`sd-table__row--expanded`,itemCell:`sd-table__cell--item`,headerCell:`sd-table__cell sd-table__cell--header`,rowTextCell:`sd-table__cell sd-table__cell--row-text`,footerCell:`sd-table__cell sd-table__cell--footer`,columnTitleCell:`sd-table__cell--column-title`,cellRequiredMark:`sd-question__required-text`,button:`sd-action sd-matrixdynamic__btn`,detailRow:`sd-table__row
84sd-table__row--detail`,detailButton:`sd-table__cell--detail-button`,detailButtonExpanded:`sd-table__cell--detail-button--expanded`,detailIcon:`sd-detail-panel__icon`,detailIconExpanded:`sd-detail-panel__icon--expanded`,detailIconId:`icon-expanddetail`,detailIconExpandedId:`icon-collapsedetail`,detailPanelCell:`sd-table__cell--detail-panel`,detailRowCell:`sd-table__cell--detail`,actionsCellPrefix:`sd-table__cell-action`,actionsCell:`sd-table__cell sd-table__cell--actions`,actionsCellDrag:`sd-table__cell--drag`,buttonAdd:`sd-matrixdynamic__add-btn`,buttonRemove:`sd-action--negative sd-matrixdynamic__remove-btn`,iconAdd:`sd-hidden`,iconRemove:``,dragElementDecorator:`sd-drag-element__svg`,iconDragElement:`#icon-drag-24x24`,footer:`sd-matrixdynamic__footer`,footerTotalCell:`sd-table__cell sd-table__cell--footer-total`,noRowsSection:`sd-matrixdynamic__placeholder sd-question__placeholder`,iconDrag:`sv-matrixdynamic__drag-icon`,ghostRow:`sv-matrix-row--drag-drop-ghost-mod`,draggedRow:`sv-matrixdynamic-dragged-row`,emptyCell:`sd-table__cell--empty`,verticalCell:`sd-table__cell--vertical`,cellQuestionWrapper:`sd-matrix__question-wrapper sd-table__question-wrapper`,errorsCell:`sd-table__cell--error`,errorsCellTop:`sd-table__cell--error-top`,errorsCellBottom:`sd-table__cell--error-bottom`,compact:`sd-element--with-frame sd-element--compact`},rating:{rootDropdown:`sd-scrollable-container sd-scrollable-container--compact sd-selectbase`,root:`sd-scrollable-container sd-rating`,rootWrappable:`sd-rating--wrappable`,rootLabelsTop:`sd-rating--labels-top`,rootLabelsBottom:`sd-rating--labels-bottom`,rootLabelsDiagonal:`sd-rating--labels-diagonal`,item:`sd-rating__item`,itemOnError:`sd-rating__item--error`,itemHover:`sd-rating__item--allowhover`,selected:`sd-rating__item--selected`,itemStar:`sd-rating__item-star`,itemStarOnError:`sd-rating__item-star--error`,itemStarHover:`sd-rating__item-star--allowhover`,itemStarSelected:`sd-rating__item-star--selected`,itemStarDisabled:`sd-rating__item-star--disabled`,itemStarReadOnly:`sd-rating__item-star--readonly`,itemStarPreview:`sd-rating__item-star--preview`,itemStarHighlighted:`sd-rating__item-star--highlighted`,itemStarUnhighlighted:`sd-rating__item-star--unhighlighted`,itemStarSmall:`sd-rating__item-star--small`,itemSmiley:`sd-rating__item-smiley`,itemSmileyOnError:`sd-rating__item-smiley--error`,itemSmileyHover:`sd-rating__item-smiley--allowhover`,itemSmileySelected:`sd-rating__item-smiley--selected`,itemSmileyDisabled:`sd-rating__item-smiley--disabled`,itemSmileyReadOnly:`sd-rating__item-smiley--readonly`,itemSmileyPreview:`sd-rating__item-smiley--preview`,itemSmileyHighlighted:`sd-rating__item-star--highlighted`,itemSmileyScaleColored:`sd-rating__item-smiley--scale-colored`,itemSmileyRateColored:`sd-rating__item-smiley--rate-colored`,itemSmileySmall:`sd-rating__item-smiley--small`,minText:`sd-rating__item-text sd-rating__min-text`,itemText:`sd-rating__item-text`,maxText:`sd-rating__item-text sd-rating__max-text`,itemDisabled:`sd-rating__item--disabled`,itemReadOnly:`sd-rating__item--readonly`,itemPreview:`sd-rating__item--preview`,itemFixedSize:`sd-rating__item--fixed-size`,control:`sd-input sd-dropdown`,itemSmall:`sd-rating--small`,selectWrapper:`sv-dropdown_select-wrapper`,controlValue:`sd-dropdown__value`,controlDisabled:`sd-input--disabled`,controlReadOnly:`sd-input--readonly`,controlPreview:`sd-input--preview`,controlEmpty:`sd-dropdown--empty`,filterStringInput:`sd-dropdown__filter-string-input`,chevronButtonIconId:`icon-chevron`,popup:`sv-dropdown-popup`,onError:`sd-input--error`},slider:{root:`sd-slider`,rootSingleMode:`sd-slider--single`,rootNegativeScaleMode:`sd-slider--negative-scale-mode`,rootDesignMode:`sd-slider--design-mode`,rootAnimatedThumbMode:`sd-slider--animated-thumb-mode`,rootTooltipsAlwaysMode:`sd-slider--tooltips-always-mode`,rootLabelsShowValueTextMode:`sd-slider--labels-show-value-text-mode`,visualContainer:`sd-slider-container`,visualContainerSlider:`sd-slider-container__slider`,rangeTrack:`sd-slider__track sd-slider__range-track`,inverseTrackLeft:`sd-slider__track sd-slider__inverse-track sd-slider__inverse-track--left`,inverseTrackRight:`sd-slider__track sd-slider__inverse-track sd-slider__inverse-track--right`,thumbContainer:`sd-slider__thumb-container`,thumbContainerIndeterminateMode:`sd-slider__thumb-container--indeterminate`,thumbContainerFocusedMode:`sd-slider__thumb-container--focused`,thumb:`sd-slider__thumb`,thumbDot:`sd-slider__thumb-dot`,tooltip:`sd-slider__tooltip`,tooltipPanel:`sd-slider__tooltip-panel`,tooltipOnHoverMode:`sd-slider__tooltip--on-hover`,tooltipValue:`sd-slider__tooltip-value`,input:`sd-slider__input`,labelsContainer:`sd-slider-labels-container`,label:`sd-slider__label`,labelLongMod:`sd-slider__label--long`,labelTick:`sd-slider__label-tick`,labelTextContainer:`sd-slider__label-text-container`,labelText:`sd-slider__label-text`,labelTextSecondaryMode:`sd-slider__label-text sd-slider__label-text--secondary`,clearButton:``},comment:{root:`sd-input sd-comment`,small:`sd-row__question--small`,controlDisabled:`sd-input--disabled`,controlReadOnly:`sd-input--readonly`,controlPreview:`sd-input--preview`,content:`sd-comment__content sd-question__content`,remainingCharacterCounter:`sd-remaining-character-counter`,onError:`sd-input--error`},expression:`sd-expression`,file:{root:`sd-file`,rootDragging:`sd-file--dragging`,rootAnswered:`sd-file--answered`,rootDisabled:`sd-file--disabled`,rootReadOnly:`sd-file--readonly`,rootPreview:`sd-file--preview`,placeholderInput:`sd-visuallyhidden`,previewItem:`sd-file__preview-item`,fileSign:``,fileList:`sd-file__list`,fileSignBottom:`sd-file__sign`,dragArea:`sd-file__drag-area`,dragAreaActive:`sd-file__drag-area--active`,fileDecorator:`sd-file__decorator`,onError:`sd-file__decorator--error`,fileDecoratorDrag:`sd-file__decorator--drag`,fileInput:`sd-visuallyhidden`,chooseFile:`sd-file__choose-btn`,chooseFileAsText:`sd-action sd-file__choose-btn--text`,chooseFileAsTextDisabled:`sd-action--disabled`,chooseFileAsIcon:`sd-file__choose-btn--icon`,chooseFileIconId:`icon-choosefile`,disabled:`sd-file__choose-btn--disabled`,controlDisabled:`sd-file__choose-file-btn--disabled`,removeButton:`sd-context-btn--negative`,removeButtonBottom:``,removeButtonIconId:`icon-clear`,removeFile:`sd-hidden`,removeFileSvg:``,removeFileSvgIconId:`icon-close_16x16`,wrapper:`sd-file__wrapper`,defaultImage:`sd-file__default-image`,defaultImageIconId:`icon-defaultf
84ile`,leftIconId:`icon-arrowleft`,rightIconId:`icon-arrowright`,removeFileButton:`sd-context-btn--small sd-context-btn--with-border sd-context-btn--colorful sd-context-btn--negative sd-file__remove-file-button`,dragAreaPlaceholder:`sd-file__drag-area-placeholder`,imageWrapper:`sd-file__image-wrapper`,imageWrapperDefaultImage:`sd-file__image-wrapper--default-image`,single:`sd-file--single`,singleImage:`sd-file--single-image`,mobile:`sd-file--mobile`,videoContainer:`sd-file__video-container`,contextButton:`sd-context-btn`,video:`sd-file__video`,actionsContainer:`sd-file__actions-container`,closeCameraButton:`sd-file__close-camera-button`,changeCameraButton:`sd-file__change-camera-button`,takePictureButton:`sd-file__take-picture-button`,loadingIndicator:`sd-file__loading-indicator`,page:`sd-file__page`},signaturepad:{mainRoot:`sd-element sd-question sd-question--signature sd-row__question`,root:`sd-signaturepad sjs_sp_container`,small:`sd-row__question--small`,controls:`sjs_sp_controls sd-signaturepad__controls`,placeholder:`sjs_sp_placeholder`,canvas:`sjs_sp_canvas sd-signaturepad__canvas`,backgroundImage:`sjs_sp__background-image sd-signaturepad__background-image`,clearButton:`sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear`,clearButtonIconId:`icon-clear`,loadingIndicator:`sd-signaturepad__loading-indicator`},saveData:{root:`sv-save-data_root`,rootWithButtons:`sv-save-data_root--with-buttons`,info:`sv-save-data_info`,error:`sv-save-data_error`,success:`sv-save-data_success`,button:`sv-save-data_button`,shown:`sv-save-data_root--shown`},window:{root:`sv_window`,rootCollapsedMod:`sv_window--collapsed`,rootFullScreenMode:`sv_window--full-screen`,rootContent:`sv_window_root-content`,body:`sv_window_content`,header:{root:`sv_window_header`,titleCollapsed:`sv_window_header_title_collapsed`,buttonsContainer:`sv_window_buttons_container`,button:`sv_window_button`,buttonExpanded:``,buttonCollapsed:``,collapseButton:`sv_window_button sv_window_button_collapse`,closeButton:`sv_window_button sv_window_button_close`,fullScreenButton:`sv_window_button sv_window_button_full_screen`}},ranking:{root:`sv-ranking`,rootMobileMod:`sv-ranking--mobile`,rootDragMod:`sv-ranking--drag`,rootDisabled:`sd-ranking--disabled`,rootReadOnly:`sd-ranking--readonly`,rootPreview:`sd-ranking--preview`,rootDesignMode:`sv-ranking--design-mode`,rootDragHandleAreaIcon:`sv-ranking--drag-handle-area-icon`,rootSelectToRankMod:`sv-ranking--select-to-rank`,rootSelectToRankEmptyValueMod:`sv-ranking--select-to-rank-empty-value`,rootSelectToRankAlignVertical:`sv-ranking--select-to-rank-vertical`,rootSelectToRankAlignHorizontal:`sv-ranking--select-to-rank-horizontal`,rootSelectToRankSwapAreas:`sv-ranking--select-to-rank-swap-areas`,item:`sv-ranking-item`,itemContent:`sv-ranking-item__content sd-ranking-item__content`,itemIndex:`sv-ranking-item__index sd-ranking-item__index`,itemIndexEmptyMode:`sv-ranking-item__index--empty sd-ranking-item__index--empty`,itemDisabled:`sv-ranking-item--disabled`,itemReadOnly:`sv-ranking-item--readonly`,itemPreview:`sv-ranking-item--preview`,controlLabel:`sv-ranking-item__text`,itemGhostNode:`sv-ranking-item__ghost`,itemIconContainer:`sv-ranking-item__icon-container`,itemIcon:`sv-ranking-item__icon`,itemIconHoverMod:`sv-ranking-item__icon--hover`,itemIconFocusMod:`sv-ranking-item__icon--focus`,itemGhostMod:`sv-ranking-item--ghost`,itemDragMod:`sv-ranking--drag`,itemOnError:`sv-ranking-item--error`,container:`sv-ranking__container`,containerEmptyMode:`sv-ranking__container--empty`,containerFromMode:`sv-ranking__container--from`,containerToMode:`sv-ranking__container--to`,containerPlaceholder:`sv-ranking__container-placeholder`,containersDivider:`sv-ranking__containers-divider`},buttongroup:{root:`sd-button-group-scrollable-container sv-button-group`,item:`sv-button-group__item`,itemIcon:`sv-button-group__item-icon`,itemDecorator:`sv-button-group__item-decorator`,itemCaption:`sv-button-group__item-caption`,itemHover:`sv-button-group__item--hover`,itemSelected:`sv-button-group__item--selected`,itemDisabled:`sv-button-group__item--disabled`,itemControl:`sv-visuallyhidden`,rootDropdown:`sd-button-group-scrollable-container sd-scrollable-container--compact sd-selectbase`,selectWrapper:`sv-dropdown_select-wrapper`,control:`sd-input sd-dropdown`,controlEmpty:`sd-dropdown--empty`,controlValue:`sd-dropdown__value`,controlDisabled:`sd-input--disabled`,controlReadOnly:`sd-input--readonly`,controlPreview:`sd-input--preview`,controlLabel:`sd-item__control-label`,filterStringInput:`sd-dropdown__filter-string-input`,chevronButtonIconId:`icon-chevron`,popup:`sv-dropdown-popup`,cleanButtonIconId:`icon-cancel`,hintPrefix:`sd-dropdown__hint-prefix`,hintSuffix:`sd-dropdown__hint-suffix`},list:{root:`sv-list__container sd-list`,item:`sv-list__item sd-list__item`,itemBody:`sv-list__item-body sd-list__item-body`,itemSelected:`sv-list__item--selected sd-list__item--selected`,itemFocused:`sv-list__item--focused sd-list__item--focused`,itemHovered:`
84sv-list__item--hovered sd-list__item--hovered`},actionBar:{root:`sd-action-bar`,item:`sd-action`,defaultSizeMode:``,smallSizeMode:``,itemPressed:`sd-action--pressed`,itemAsIcon:`sd-action--icon`,itemIcon:`sd-action__icon`,itemTitle:`sd-action__title`},variables:{mobileWidth:`--sd-mobile-width`,themeMark:`--sv-defaultV2-mark`},tagbox:{root:`sd-selectbase`,popup:`sv-dropdown-popup`,small:`sd-row__question--small`,selectWrapper:`sv-dropdown_select-wrapper`,onError:`sd-input--error`,label:`sd-selectbase__label`,itemSvgIconId:`#icon-check-16x16`,item:`sd-item sd-checkbox sd-selectbase__item`,itemDisabled:`sd-item--disabled sd-checkbox--disabled`,itemChecked:`sd-item--checked sd-checkbox--checked`,itemHover:`sd-item--allowhover sd-checkbox--allowhover`,itemControl:`sd-visuallyhidden sd-item__control sd-checkbox__control`,itemDecorator:`sd-item__svg sd-checkbox__svg`,itemEnter:`sd-item--enter`,itemLeave:`sd-item--leave`,cleanButtonIconId:`icon-cancel-24x24`,cleanItemButton:`sd-tagbox-item_clean-button`,cleanItemButtonSvg:`sd-tagbox-item_clean-button-svg`,cleanItemButtonIconId:`icon-clear_16x16`,chevronButtonIconId:`icon-chevron`,control:`sd-input sd-tagbox sd-dropdown`,controlValue:`sd-tagbox__value sd-dropdown__value`,controlValueItems:`sd-tagbox__value-items`,placeholderInput:`sd-tagbox__placeholder`,controlEditable:`sd-input--editable`,controlDisabled:`sd-input--disabled`,controlReadOnly:`sd-input--readonly`,controlPreview:`sd-input--preview`,controlEmpty:`sd-dropdown--empty sd-tagbox--empty`,controlLabel:`sd-item__control-label`,filterStringInput:`sd-tagbox__filter-string-input sd-dropdown__filter-string-input`,materialDecorator:`sd-item__decorator sd-checkbox__decorator`,hint:`sd-tagbox__hint`,hintPrefix:`sd-dropdown__hint-prefix sd-tagbox__hint-prefix`,hintSuffix:`sd-dropdown__hint-suffix sd-tagbox__hint-suffix`,hintSuffixWrapper:`sd-tagbox__hint-suffix-wrapper`},imagemap:{root:`sd-imagemap`,bg:`sd-imagemap-bg`,svg:`sd-imagemap-svg`,svgItem:`sd-imagemap-svg-item`,svgItemHovered:`sd-imagemap-svg-item sd-imagemap-svg-item--hover`,svgItemSelected:`sd-imagemap-svg-item sd-imagemap-svg-item--selected`,svgItemDisabled:`sd-imagemap-svg-item sd-imagemap-svg-item--disabled`,svgControlPoint:`sd-imagemap-control-point`}},pI=`default`;dI[pI]=fI;var mI={setTimeout:e=>mI.safeTimeOut(e,1e3),clearTimeout:e=>{clearTimeout(e)},safeTimeOut:(e,t)=>t<=0?(e(),0):setTimeout(e,t),now(){return Date.now()}},hI=class e{constructor(){this.listenerCounter=0,this.timerId=-1,this.onTimerTick=new vj,this.onTimer=this.onTimerTick}static get instance(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue}start(e=null){e&&this.onTimerTick.add(e),this.prevTimeInMs=mI.now(),this.timerId<0&&(this.timerId=mI.setTimeout(()=>{this.doTimer()})),this.listenerCounter++}stop(e=null){e&&this.onTimerTick.remove(e),this.listenerCounter--,this.listenerCounter==0&&this.timerId>-1&&(mI.clearTimeout(this.timerId),this.timerId=-1)}doTimer(){if((this.onTimerTick.isEmpty||this.listenerCounter==0)&&(this.timerId=-1),this.timerId<0)return;let e=mI.now(),t=Math.floor((e-this.prevTimeInMs)/1e3);this.prevTimeInMs=e,t<0&&(t=1);let n=this.timerId;this.onTimerTick.fire(this,{seconds:t}),n===this.timerId&&(this.timerId=mI.setTimeout(()=>{this.doTimer()}))}};hI.instanceValue=null;var gI=class extends qM{constructor(e){super(),this.timerFunc=null,this.surveyValue=e}get survey(){return this.surveyValue}start(){this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add(()=>{this.update()}),this.timerFunc=(e,t)=>{this.doTimer(t.seconds)},this.setIsRunning(!0),this.update(),hI.instance.start(this.timerFunc)))}stop(){this.isRunning&&(this.setIsRunning(!1),hI.instance.stop(this.timerFunc))}get isRunning(){return this.getPropertyValue(`isRunning`,!1)}setIsRunning(e){this.setPropertyValue(`isRunning`,e)}update(){this.updateText(),this.updateProgress()}doTimer(e){var t=this.survey.currentPage;if(t){let n=t.getMaxTimeToFinish();n>0&&n<t.timeSpent+e&&(e=n-t.timeSpent),t.timeSpent+=e}this.spent+=e,this.update(),this.onTimerTick&&this.onTimerTick(t)}updateProgress(){let{spent:e,limit:t}=this.survey.timerInfo;t?(e==0?(this.progress=0,setTimeout(()=>{this.progress=Math.floor((e+1)/t*100)/100},0)):e<=t&&(this.progress=Math.floor((e+1)/t*100)/100),this.progress>1&&(this.progress=void 0)):this.progress=void 0}updateText(){let e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText}get showProgress(){return this.progress!==void 0}get showTimerAsClock(){return!!this.survey.getCss().clockTimerRoot}get rootCss(){return new X().append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()}getProgressCss(){return new X().append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()}get textContainerCss(){return this.survey.getCss().clockTimerTextContainer}get minorTextCss(){return this.survey.getCss().clockTimerMinorText}get majorTextCss(){return this.survey.getCss().clockTimerMajorText}createLayoutElements(){return[{id:`timerpanel`,template:`survey-timerpanel`,component:`sv-timerpanel`,getData:()=>this,isInContainer:e=>this.isTimerPanelInContainer(e)}]}isTimerPanelInContainer(e){return this.survey.mode===`display`||this.survey.isStartPageActive?!1:e
84===`header`?this.survey.isTimerPanelShowingOnTop:e===`footer`&&this.survey.isTimerPanelShowingOnBottom}};q([Y()],gI.prototype,`text`,void 0),q([Y()],gI.prototype,`progress`,void 0),q([Y()],gI.prototype,`clockMajorText`,void 0),q([Y()],gI.prototype,`clockMinorText`,void 0),q([Y({defaultValue:0})],gI.prototype,`spent`,void 0);function _I(e,t){try{let n=atob(e.split(`,`)[1]),r=e.split(`,`)[0].split(`:`)[1].split(`;`)[0],i=new ArrayBuffer(n.length),a=new Uint8Array(i);for(let e=0;e<n.length;e++)a[e]=n.charCodeAt(e);let o=new Blob([i],{type:r});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(o,t)}catch{}}function vI(e,t){tj.isFileReaderAvailable()&&(e.value=``,e.onchange=n=>{if(!tj.isFileReaderAvailable()||!e||!e.files||e.files.length<1)return;let r=[];for(let t=0;t<e.files.length;t++)r.push(e.files[t]);t(r)},e.click())}var yI=class extends qM{constructor(e){super(),this.cssClasses=e,this.timeout=G.notifications.lifetime,this.timer=void 0,this.actionsVisibility={},this.showActions=!0,this.actionBar=new XN,this.actionBar.setCssClasses({root:TN.root,defaultSizeMode:TN.defaultSizeMode,smallSizeMode:TN.smallSizeMode},!1),this.css=this.cssClasses.root}getCssClass(e){return new X().append(this.cssClasses.root).append(this.cssClasses.rootWithButtons,this.actionBar.getVisibleActions().length>0).append(this.cssClasses.info,e!==`error`&&e!==`success`).append(this.cssClasses.error,e===`error`).append(this.cssClasses.success,e===`success`).append(this.cssClasses.shown,this.active).toString()}updateActionsVisibility(e){this.actionBar.actions.forEach(t=>t.visible=this.showActions&&this.actionsVisibility[t.id]===e)}notify(e,t=`info`,n=!1){this.isDisplayed=!0,setTimeout(()=>{this.updateActionsVisibility(t),this.message=e,this.active=!0,this.css=this.getCssClass(t),this.timer&&(clearTimeout(this.timer),this.timer=void 0),n||(this.timer=setTimeout(()=>{this.timer=void 0,this.active=!1,this.css=this.getCssClass(t)},this.timeout))},1)}addAction(e,t){e.visible=!1,e.innerCss=this.cssClasses.button;let n=this.actionBar.addAction(e);this.actionsVisibility[n.id]=t}};q([Y({defaultValue:!1})],yI.prototype,`active`,void 0),q([Y({defaultValue:!1})],yI.prototype,`isDisplayed`,void 0),q([Y()],yI.prototype,`message`,void 0),q([Y()],yI.prototype,`css`,void 0);var bI=class e{calcRow(e){return e===`top`?1:e===`middle`?2:3}calcColumn(e){return e===`left`?1:e===`center`?2:3}calcAlignItems(e){return e===`left`?`flex-start`:e===`center`?`center`:`flex-end`}calcAlignText(e){return e===`left`?`start`:e===`center`?`center`:`end`}calcJustifyContent(e){return e===`top`?`flex-start`:e===`middle`?`center`:`flex-end`}calcGridRow(){let e=this.calcRow(this.positionY);if(this.cover.renderedHeight)return e;let t=this.cover.getVisibleRows(),n=t.indexOf(e);if(n===-1)return 0;let r=t.length;return r===3?e:r===1?1:n+1}constructor(e,t,n){this.cover=e,this.positionX=t,this.positionY=n}get survey(){return this.cover.survey}get css(){return new X().append(e.CLASSNAME).append(`${e.CLASSNAME}--${this.positionX}`).append(`${e.CLASSNAME}--${this.positionY}`).append(e.CLASSNAME+`--empty`,this.isEmpty).toString()}get style(){let e=this.calcGridRow(),t={};return t.gridRow=e,t.gridColumn=e===0?0:this.calcColumn(this.positionX),t.width=this.width?this.width+`px`:void 0,e===0&&(t.display=`none`),t}get contentStyle(){let e={};return e.textAlign=this.calcAlignText(this.positionX),e.alignItems=this.calcAlignItems(this.positionX),e.justifyContent=this.calcJustifyContent(this.positionY),e.maxWidth=this.contentMaxWidth,e}get showLogo(){return this.survey.hasLogo&&this.positionX===this.cover.logoPositionX&&this.positionY===this.cover.logoPositionY}get showTitle(){return this.survey.hasTitle&&this.positionX===this.cover.titlePositionX&&this.positionY===this.cover.titlePositionY}get showDescription(){return this.survey.renderedHasDescription&&this.positionX===this.cover.descriptionPositionX&&this.positionY===this.cover.descriptionPositionY}get isEmpty(){return!this.showLogo&&!this.showTitle&&!this.showDescription}get textAreaWidth(){return this.cover.renderedTextAreaWidth}get width(){if(this.cover.width)return Math.ceil(this.cover.width/3)}get contentMaxWidth(){return this.cover.getContentMaxWidth(this)}};bI.CLASSNAME=`sv-header__cell`;
84var xI=class extends qM{calcBackgroundSize(e){return e===`fill`?`100% 100%`:e===`tile`?`auto`:e}updateHeaderClasses(){let e=!this.backgroundColor||this.backgroundColor===`transparent`,t=this.backgroundColor===`var(--sjs-primary-backcolor)`,n=!e&&!t;this.headerClasses=new X().append(`sv-header`).append(`sv-header--height-auto`,!this.renderedHeight).append(`sv-header__without-background`,e&&!this.backgroundImage).append(`sv-header__background-color--none`,e&&!this.titleColor&&!this.descriptionColor).append(`sv-header__background-color--accent`,t&&!this.titleColor&&!this.descriptionColor).append(`sv-header__background-color--custom`,n&&!this.titleColor&&!this.descriptionColor).append(`sv-header__overlap`,this.overlapEnabled).toString()}updateContentClasses(){let e=!!this.survey&&this.survey.calculateWidthMode(),t=this.inheritWidthFrom===`survey`&&!!e&&e===`static`;if(this.maxWidth=t?this.survey.width:void 0,this.maxWidth){let e=this.maxWidth.toString();e.indexOf(`px`)===-1&&e.indexOf(`%`)===-1&&(this.maxWidth=parseFloat(e)+`px`)}this.contentClasses=new X().append(`sv-header__content`).append(`sv-header__content--static`,t).append(`sv-header__content--responsive`,this.inheritWidthFrom===`container`||!!e&&e===`responsive`).toString()}
84updateBackgroundImageClasses(){this.backgroundImageClasses=new X().append(`sv-header__background-image`).append(`sv-header__background-image--contain`,this.backgroundImageFit===`contain`).append(`sv-header__background-image--tile`,this.backgroundImageFit===`tile`).toString()}fromTheme(e){super.fromJSON(e.header||{}),e.cssVariables&&(this.backgroundColor=e.cssVariables[`--sjs-header-backcolor`],this.titleColor=e.cssVariables[`--sjs-font-headertitle-color`],this.descriptionColor=e.cssVariables[`--sjs-font-headerdescription-color`]),this.init()}init(){this.renderBackgroundImage=WN(this.backgroundImage),this.updateHeaderClasses(),this.updateContentClasses(),this.updateBackgroundImageClasses()}constructor(){super(),this.cells=[],[`top`,`middle`,`bottom`].forEach(e=>[`left`,`center`,`right`].forEach(t=>this.cells.push(new bI(this,t,e)))),this.init()}getType(){return`cover`}get renderedHeight(){if(this.survey&&!this.survey.isMobile||!this.survey)return this.height?this.height+`px`:void 0;if(this.survey&&this.survey.isMobile)return this.mobileHeight?this.mobileHeight+`px`:void 0}get renderedTextAreaWidth(){return this.textAreaWidth?this.textAreaWidth+`px`:void 0}get isEmpty(){return!this.survey.hasLogo&&!this.survey.hasTitle&&!this.survey.renderedHasDescription}get survey(){return this._survey}set survey(e){this._survey!==e&&(this._survey=e,e&&(this.updateContentClasses(),this._survey.onPropertyChanged.add((e,t)=>{(t.name==`widthMode`||t.name==`width`)&&this.updateContentClasses()})))}get backgroundImageStyle(){return this.backgroundImage?{opacity:this.backgroundImageOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.calcBackgroundSize(this.backgroundImageFit)}:null}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),(e===`height`||e===`backgroundColor`||e===`backgroundImage`||e===`overlapEnabled`)&&this.updateHeaderClasses(),e===`inheritWidthFrom`&&this.updateContentClasses(),e===`backgroundImageFit`&&this.updateBackgroun
84dImageClasses()}getVisibleRows(){let e=[];for(let t=0;t<3;t++){let n=t*3;(!this.cells[n].isEmpty||!this.cells[n+1].isEmpty||!this.cells[n+2].isEmpty)&&e.push(t+1)}return e.length===0?[1,2,3]:e}getContentMaxWidth(e){if(e.isEmpty||e.showLogo)return;let t=this.cells.indexOf(e),n=Math.floor(t/3),r=t%3;if(r==1){if(!this.cells[n*3].isEmpty||!this.cells[n*3+2].isEmpty)return`100%`}else if(r==0){let e=0,t=r+1;for(;t<3&&this.cells[n*3+t].isEmpty;)this.cells[n*3+t].isEmpty&&e++,t++;return 100*(e+1)+`%`}else if(r==2){let e=0,t=r-1;for(;t>0&&this.cells[n*3+t].isEmpty;)this.cells[n*3+t].isEmpty&&e++,t--;return 100*(e+1)+`%`}}processResponsiveness(){if(this.survey&&this.survey.rootElement&&!this.survey.isMobile){let e=this.survey.rootElement.querySelectorAll(`.sv-header__content`)[0];if(!e)return;let t=e.getBoundingClientRect().width,n=nj.getComputedStyle(e),r=parseFloat(n.paddingLeft)||0,i=parseFloat(n.paddingRight)||0,a=parseFloat(n.columnGap)||0;this.width=t-r-i-2*a}}createLayoutElements(){let e={id:`advanced-header`,container:`header`,component:`sv-header`,index:-100,data:this,processResponsiveness:()=>this.processResponsiveness(),isInContainer:t=>this.isAdvancedHeaderInContainer(e,t)};return[e]}isAdvancedHeaderInContainer(e,t){return this.survey.state===`running`||this.survey.state===`starting`||this.survey.showHeaderOnCompletePage===!0&&this.survey.state===`completed`?this.survey.showTOC&&!this.hasBackground?t===`contentTop`:e.container===t:!1}get hasBackground(){return!!this.backgroundImage||this.backgroundColor!==`transparent`}};q([Y()],xI.prototype,`height`,void 0),q([Y()],xI.prototype,`mobileHeight`,void 0),q([Y()],xI.prototype,`inheritWidthFrom`,void 0),q([Y()],xI.prototype,`textAreaWidth`,void 0),q([Y()],xI.prototype,`textGlowEnabled`,void 0),q([Y()],xI.prototype,`overlapEnabled`,void 0),q([Y({defaultValue:`transparent`})],xI.prototype,`backgroundColor`,void 0),q([Y()],xI.prototype,`titleColor`,void 0),q([Y()],xI.prototype,`descriptionColor`,void 0),q([Y({onSet:(e,t)=>{t.renderBackgroundImage=WN(e)}})],xI.prototype,`backgroundImage`,void 0),q([Y()],xI.prototype,`renderBackgroundImage`,void 0),q([Y()],xI.prototype,`backgroundImageFit`,void 0),q([Y()],xI.prototype,`backgroundImageOpacity`,void 0),q([Y()],xI.prototype,`logoPositionX`,void 0),q([Y()],xI.prototype,`logoPositionY`,void 0),q([Y()],xI.prototype,`titlePositionX`,void 0),q([Y()],xI.prototype,`titlePositionY`,void 0),q([Y()],xI.prototype,`descriptionPositionX`,void 0),q([Y()],xI.prototype,`descriptionPositionY`,void 0),q([Y()],xI.prototype,`logoStyle`,void 0),q([Y()],xI.prototype,`titleStyle`,void 0),q([Y()],xI.prototype,`descriptionStyle`,void 0),q([Y()],xI.prototype,`headerClasses`,void 0),q([Y()],xI.prototype,`contentClasses`,void 0),q([Y()],xI.prototype,`width`,void 0),q([Y()],xI.prototype,`maxWidth`,void 0),q([Y()],xI.prototype,`backgroundImageClasses`,void 0),J.addClass(`cover`,[{name:`height:number`,minValue:0,default:0},{name:`mobileHeight:number`,minValue:0,default:0},{name:`inheritWidthFrom`,default:`survey`},{name:`textAreaWidth:number`,minValue:0,default:0},{name:`textGlowEnabled:boolean`},{name:`overlapEnabled:boolean`},{name:`backgroundImage:file`},{name:`backgroundImageOpacity:number`,minValue:0,maxValue:1,default:1},{name:`backgroundImageFit`,default:`cover`,choices:[`cover`,`fill`,`contain`]},{name:`logoPositionX`,default:`left`},{name:`logoPositionY`,default:`top`},{name:`titlePositionX`,default:`left`},{name:`titlePositionY`,default:`bottom`},{name:`descriptionPositionX`,default:`left`},{name:`descriptionPositionY`,default:`bottom`}],function(){return new xI});var SI=class{constructor(e){this.type=e,this.timestamp=new Date}},CI=class extends qM{constructor(){super(),this.taskList=[],this.onAllTasksCompleted=this.addEvent()}runTask(e,t){let n=new SI(e);return this.taskList.push(n),this.hasActiveTasks=!0,t(()=>this.taskFinished(n)),n}waitAndExecute(e){if(!this.hasActiveTasks){e();return}this.onAllTasksCompleted.add(()=>{e()})}taskFinished(e){let t=this.taskList.indexOf(e);t>-1&&this.taskList.splice(t,1),this.hasActiveTasks&&this.taskList.length==0&&(this.hasActiveTasks=!1,this.onAllTasksCompleted.fire(this,{}))}};q([Y({defaultValue:!1})],CI.prototype,`hasActiveTasks`,void 0);var wI=class extends qM{constructor(e,t){super(),this.effectiveWidth=e,this.questionTitleWidth=t}getType(){return`panellayoutcolumn`}isEmpty(){return!this.width&&!this.questionTitleWidth}};q([Y()],wI.prototype,`width`,void 0),q([Y({onSet:(e,t,n)=>{e!==n&&(t.width=e)}})],wI.prototype,`effectiveWidth`,void 0),q([Y()],wI.prototype,`questionTitleWidth`,void 0),J.addClass(`panellayoutcolumn`,[{name:`effectiveWidth:number`,isSerializable:!1,minValue:0},{name:`width:number`,visible:!1},`questionTitleWidth`],e=>new wI);var TI=class extends qM{get allowRendering(){return!this.panel||!this.panel.survey||!this.panel.survey.isLazyRenderingSuspended}startLazyRendering(e,t=IN){if(!nj.isAvailable())return;this._scrollableParent=t(e);let n=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;
84this._scrollableParent===nj.getDocumentElement()&&(this._scrollableParent=tj.getWindow()),this.isNeedRender=!n,n&&(this._updateVisibility=()=>{if(this.allowRendering){var t=FN(e,50);!this.isNeedRender&&t&&(this.isNeedRender=!0,this.stopLazyRendering())}},this.lazyRenderingTimeout=setTimeout(()=>{this._scrollableParent&&this._scrollableParent.addEventListener&&this._scrollableParent.addEventListener(`scroll`,this._updateVisibility),this.ensureVisibility()},10))}ensureVisibility(){this._updateVisibility&&this._updateVisibility()}stopLazyRendering(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener(`scroll`,this._updateVisibility),clearTimeout(this.lazyRenderingTimeout),this._scrollableParent=void 0,this._updateVisibility=void 0}constructor(e){super(),this.panel=e,this._scrollableParent=void 0,this._updateVisibility=void 0,this.visibleElementsAnimation=new bP(this.getVisibleElementsAnimationOptions(),e=>{this.setWidth(e),this.setPropertyValue(`visibleElements`,e)},()=>this.visibleElements),this.visible=e.areInvisibleElementsShowing,this.createNewArray(`elements`),this.createNewArray(`visibleElements`)}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`visible`&&this.onVisibleChangedCallback&&this.onVisibleChangedCallback()}setIsLazyRendering(e){this.isLazyRenderingValue=e,this.isNeedRender=!e}isLazyRendering(){return this.isLazyRenderingValue===!0}get id(){return`pr_`+this.uniqueId}equalsCore(e){return this==e}get elements(){return this.getPropertyValue(`elements`)}getIsAnimationAllowed(){var e;return super.getIsAnimationAllowed()&&this.visible&&((e=this.panel)==null?void 0:e.animationAllowed)}getVisibleElementsAnimationOptions(){let e=e=>{wP(e),CP(e,{width:zN(e)+`px`})};return{getRerenderEvent:()=>this.onElementRerendered,isAnimationEnabled:()=>this.animationAllowed,allowSyncRemovalAddition:!1,getAnimatedElement:e=>e.getWrapperElement(),getLeaveOptions:t=>{let n=t;
84return{cssClass:(t.isPanel?n.cssClasses.panel:n.cssClasses).leave,onBeforeRunAnimation:e,onAfterRunAnimation:TP}},getEnterOptions:t=>{let n=t;return{cssClass:(t.isPanel?n.cssClasses.panel:n.cssClasses).enter,onBeforeRunAnimation:e,onAfterRunAnimation:TP}}}}set visibleElements(e){if(e.length)this.visible=!0;else{this.visible=!1,this.visibleElementsAnimation.cancel();return}this.visibleElementsAnimation.sync(e)}get visibleElements(){return this.getPropertyValue(`visibleElements`)}updateVisible(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]),(this.elements[t].isPanel||this.elements[t].getType()===`paneldynamic`)&&(this.setIsLazyRendering(!1),this.stopLazyRendering());this.visibleElements=e}addElement(e){this.elements.push(e),this.updateVisible()}get index(){return this.panel.rows.indexOf(this)}setWidth(e){var t=e.length;if(t==0)return;let n=e.length===1;for(var r=[],i=0;i<this.elements.length;i++){var a=this.elements[i];if(a.isVisible){a.isSingleInRow=n;var o=this.getElementWidth(a);o&&(a.renderWidth=this.getRenderedWidthFromWidth(o),r.push(a)),a.rightIndent=0}else a.renderWidth=``}for(var i=0;i<this.elements.length;i++){var a=this.elements[i];!a.isVisible||r.indexOf(a)>-1||(a.renderWidth=r.length==0?`${Number.parseFloat((100/t).toFixed(6))}%`:this.getRenderedCalcWidth(a,r,t))}}getRenderedCalcWidth(e,t,n){for(var r=`100%`,i=0;i<t.length;i++)r+=` - `+t[i].renderWidth;var a=n-t.length;return a>1&&(r=`(`+r+`)/`+a.toString()),`calc(`+r+`)`}getElementWidth(e){var t=e.width;return!t||typeof t!=`string`?``:t.trim()}getRenderedWidthFromWidth(e){return K.isNumber(e)?e+`px`:e}dispose(){super.dispose(),this.stopLazyRendering()}getRowCss(){return new X().append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||this.panel.showPanelAsPage).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()}setRootElement(e){this.rootElement=e}getRootElement(){return this.rootElement}};q([Y({defaultValue:!0})],TI.prototype,`visible`,void 0),q([Y()],TI.prototype,`isNeedRender`,void 0);var EI=class e extends DP{get validationCallbacks(){return this.survey}get gridLayoutColumns(){let e=this.getArrayPropertyValue(`gridLayoutColumns`,e=>{e.onPropertyValueChangedCallback=this.onColumnPropertyValueChangedCallback});return this._columns||(this.generateColumns([].concat(e)),e=this._columns,this.gridLayoutColumns=e),e}set gridLayoutColumns(e){this.setArrayPropertyValue(`gridLayoutColumns`,e)}onAddRow(e){this.onRowVisibleChanged(),e.onVisibleChangedCallback=()=>this.onRowVisibleChanged()}getRowsAnimationOptions(){return{getRerenderEvent:()=>this.onElementRerendered,isAnimationEnabled:()=>this.animationAllowed,getAnimatedElement:e=>e.getRootElement(),getLeaveOptions:(e,t)=>({cssClass:this.cssClasses.rowLeave,onBeforeRunAnimation:wP,onAfterRunAnimation:TP}),getEnterOptions:(e,t)=>{let n=this.cssClasses;return{cssClass:new X().append(n.rowEnter).append(n.rowDelayedEnter,t.isDeletingRunning).toString(),onBeforeRunAnimation:wP,onAfterRunAnimation:TP}}}}get visibleRows(){return this.getPropertyValue(`visibleRows`)}set visibleRows(e){this.rowsAnimation.sync(e)}onRemoveRow(e){e.visibleElementsAnimation.cancel(),this.visibleRows=this.rows.filter(e=>e.visible),e.onVisibleChangedCallback=void 0}onRowVisibleChanged(){this.visibleRows=this.rows.filter(e=>e.visible)}constructor(e=``){super(e),this.isQuestionsReady=!1,this.questionsValue=[],this._columns=void 0,this._columnsReady=!1,this.rowsAnimation=new bP(this.getRowsAnimationOptions(),e=>{this.setPropertyValue(`visibleRows`,e)},()=>this.visibleRows),this.isRandomizing=!1,this.onColumnPropertyValueChangedCallback=(e,t,n,r,i)=>{this._columnsReady&&(this.updateColumnWidth(this.gridLayoutColumns),this.updateRootStyle())},this.locCountRowUpdates=0,this.createNewArray(`rows`,(e,t)=>{this.onAddRow(e)},e=>{this.onRemoveRow(e)}),this.createNewArray(`visibleRows`),this.elementsValue=this.createNewArray(`elements`,this.onAddElement.bind(this),this.onRemoveElement.bind(this)),this.setPropertyValueDirectly(`id`,`sp_`+this.uniqueId),this.addExpressionProperty(`visibleIf`,(e,t)=>{this.visible=t===!0},e=>!this.areInvisibleElementsShowing,!0,()=>{this.visible=!0}),this.addExpressionProperty(`enableIf`,(e,t)=>{this.readOnly=t===!1},void 0,!0,()=>{this.readOnly=!1}),this.addExpressionProperty(`requiredIf`,(e,t)=>{this.isRequired=t===!0},void 0,!0,()=>{this.isRequired=!1})}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`questionTitleLocation`&&(this.onVisibleChanged.bind(this),this.updateElementCss(!0)),[`questionStartIndex`,`showQuestionNumbers`].indexOf(e)>-1&&this.updateVisibleIndexes(),e===`title`&&this.resetHasTextInT
84itle(),e===`visible`&&this.onVisibleChanged(),e===`isRequired`&&!this.isRequired&&this.errors.length>0&&this.validateContainerOnly()}getType(){return`panelbase`}getValueGetterContext(){let e=super.getValueGetterContext();if(!e)return e;let t=this;return{getValue:t=>e.getValue(t),getTextValue:e.getTextValue?(t,n,r)=>e.getTextValue(t,n,r):void 0,getObj:()=>t,getRootObj:e.getRootObj?()=>e.getRootObj():void 0,getQuestion:e.getQuestion?()=>e.getQuestion():void 0}}setSurveyImpl(e,t){this.blockAnimations(),super.setSurveyImpl(e,t),this.isDesignMode&&this.onVisibleChanged();for(var n=0;n<this.elements.length;n++)this.elements[n].setSurveyImpl(e,t);this.releaseAnimations()}endLoadingFromJson(){super.endLoadingFromJson(),this.markQuestionListDirty(),this.onRowsChanged()}get hasTextInTitle(){return this.getPropertyValue(`hasTextInTitle`,void 0,()=>!!this.title)}resetHasTextInTitle(){this.resetPropertyValue(`hasTextInTitle`)}get hasTitle(){return this.canShowTitle(this.survey)&&(this.hasTextInTitle||this.locTitle.textOrHtml.length>0)||this.isDesignMode&&!this.isPanel&&this.showTitle&&G.designMode.showEmptyTitles}delete(e=!0){this.deletePanel(),this.removeFromParent(),e&&this.dispose()}deletePanel(){let e=this.elements;for(let t=0;t<e.length;t++){let n=e[t];n.isPanel&&n.deletePanel(),this.onRemoveElementNotifySurvey(n)}}removeFromParent(){}canShowTitle(e){return!0}getDefaultTitleTagName(){return G.titleTags.panel}get _showDescription(){let e=this.survey,t=e&&e.showPageTitles&&this.hasDescription;if(this.isDesignMode){let t=e&&e.showPageTitles&&!!this.description,n=this.hasTitle&&(t||this.showDescription&&G.designMode.showEmptyDescriptions);return e&&e.beforeShowInplaceDescriptionEditorCallback&&(n=e.beforeShowInplaceDescriptionEditorCallback(this,!!n)),!!n}return t}localeChanged(){super.localeChanged();for(var e=0;e<this.elements.length;e++)this.elements[e].localeChanged()}locStrsChanged(){super.locStrsChanged();for(var e=0;e<this.elements.length;e++)this.elements[e].locStrsChanged()}randomSeedChanged(){this.randomizeElements(this.areQuestionsRandomized),this.elements.forEach(e=>{e.randomSeedChanged()})}getAllChildren(){return[...super.getAllChildren(),...this.elements]}getMarkdownHtml(e,t,n){return t===`navigationTitle`&&this.locNavigationTitle.isEmpty?this.locTitle.renderedHtml||this.name:super.getMarkdownHtml(e,t,n)}get locNavigationTitle(){return this.getOrCreateLocStr(`navigationTitle`,!0,!1,e=>{e.onGetTextCallback=e=>e||this.title||this.name})}get renderedNavigationTitle(){return this.locNavigationTitle.renderedHtml}get requiredMark(){return this.survey&&this.isRequired?this.titleSettings.requiredMark:``}get requiredText(){return this.requiredMark}get titlePattern(){return this.survey?this.titleSettings.questionTitlePattern:`numTitleRequire`}get isRequireTextOnStart(){return this.isRequired&&this.titlePattern==`requireNumTitle`}get isRequireTextBeforeTitle(){return this.isRequired&&this.titlePattern==`numRequireTitle`}get isRequireTextAfterTitle(){return this.isRequired&&this.titlePattern==`numTitleRequire`}get questionsOrder(){return this.questionOrder}set questionsOrder(e){this.questionOrder=e}addNoFromChild(e){return e}canRandomize(e){return e&&this.questionOrder!==`initial`||this.questionOrder===`random`}randomizeElements(e){if(!this.canRandomize(e)||this.isRandomizing)return!1;this.isRandomizing=!0;for(var t=[],n=this.elements,r=0;r<n.length;r++)t.push(n[r]);let i=K.randomizeArray(t,this.randomSeed);return this.setArrayPropertyDirectly(`elements`,i,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1,!0}get areQuestionsRandomized(){return(this.questionOrder=="default"&&this.survey?this.survey.questionOrder:this.questionOrder)==`random`}get parent(){return this.getPropertyValue(`parent`,null)}set parent(e){this.setPropertyValue(`parent`,e)}get depth(){return this.parent==null?0:this.parent.depth+1}calcCssClasses(e){var t={panel:{},error:{},row:``,rowEnter:``,rowLeave:``,rowDelayedEnter:``,rowMultiple:``,pageRow:``,rowCompact:``};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.pageRow&&(t.pageRow=e.pageRow),e.rowCompact&&(t.rowCompact=e.rowCompact),e.row&&(t.row=e.row),e.rowEnter&&(t.rowEnter=e.rowEnter),e.rowLeave&&(t.rowLeave=e.rowLeave),e.rowDelayedEnter&&(t.rowDelayedEnter=e.rowDelayedEnter),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.cssCallbacks.updatePanelCssClasse
84s(this,t),t}get isPanel(){return!1}getPanels(){return[this]}getLayoutType(){return`row`}isLayoutTypeSupported(e){return e!==`flow`}get questions(){return this.isQuestionsReady||(this.questionsValue=this.getQuestionsCore(!1),this.isQuestionsReady=!0),this.questionsValue}get visibleQuestions(){return this.getQuestionsCore(!0)}getQuestionsCore(e){let t=[];for(let r=0;r<this.elements.length;r++){let i=this.elements[r];if(!(e&&!i.isVisible)){if(i.isPanel){var n=i.getQuestionsCore(e);for(let e=0;e<n.length;e++)t.push(n[e])}else t.push(i)}}return t}getQuestions(e){let t=this.questions;if(!e)return t;let n=[];return t.forEach(e=>{n.push(e),e.getNestedQuestions().forEach(e=>n.push(e))}),n}getQuestionByName(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].name==e)return t[n];return null}getElementByName(e){if(e==this.name)return this;for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.name==e)return r;let i=r.getPanels();if(Array.isArray(i))for(let t=0;t<i.length;t++){let n=i[t].getElementByName(e);if(n)return n}}return null}getQuestionByValueName(e,t=!1){let n=this.getQuestionsByValueName(e,t);return n.length>0?n[0]:null}getQuestionsByValueName(e,t=!1){let n=[];t&&(e=e.toLowerCase());for(var r=this.questions,i=0;i<r.length;i++){let a=r[i].getValueName();t&&(a=a.toLowerCase()),a==e&&n.push(r[i])}return n}getValue(){var e={};return this.collectValues(e,0),K.getUnbindValue(e)}hasValueAnyQuestion(e){let t=e?this.visibleQuestions:this.questions;for(let e=0;e<t.length;e++)if(!t[e].isEmpty())return!0;return!1}collectValues(e,t){let n=this.elements;t===0&&(n=this.questions);for(var r=0;r<n.length;r++){let o=n[r];if(o.isPanel||o.isPage){let n={};o.collectValues(n,t-1)&&(e[o.name]=n)}else{let n=o;if(!n.isEmpty()){var i=n.getValueName();if(e[i]=n.getStructuredValue(t-1),this.data){var a=this.data.getComment(i);a&&(e[i+qM.commentSuffix]=a)}}}}return!0}getDisplayValue(e){for(var t={},n=this.questions,r=0;r<n.length;r++){var i=n[r];if(!i.isEmpty()){var a=e?i.title:i.getValueName();t[a]=i.getDisplayValue(e)}}return t}getComments(){var e={};if(!this.data)return e;for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],i=this.data.getComment(r.getValueName());i&&(e[r.getValueName()]=i)}return e}clearIncorrectValues(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()}clearErrors(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]}markQuestionListDirty(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()}get elements(){return qM.collectDependency(this,`elements`),this.elementsValue}getElementsInDesign(e=!1){return this.elements}containsElement(e){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];if(n==e)return!0;var r=n.getPanels();if(Array.isArray(r)){for(let t=0;t<r.length;t++)if(r[t].containsElement(e))return!0}}return!1}searchText(e,t){super.searchText(e,t);for(var n=0;n<this.elements.length;n++)this.elements[n].searchText(e,t)}hasErrors(e=!0,t=!1){return!this.validate(e,t)}validate(e=!0,t=!1,n){let r=new RP({fireCallback:e,focusOnFirstError:t,callbackResult:n});return this.validateCore(r),r.finish(),r.runningResult}validateContainerOnly(){this.validateInPanels(new RP({fireCallback:!0,isOnValueChanged:!1})),this.parent&&this.parent.validateContainerOnly()}validateInPanels(e){if(!this.isReadOnly){var t=[];this.validateRequired(e,t),this.survey&&(this.validationCallbacks.validatePanel(this,t,e.fireCallback),e.setErrorElement(this,t)),e.fireCallback&&(this.errors=t)}}getErrorCustomText(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e}validateRequired(e,t){if(!this.isRequired)return;var n=[];if(this.addQuestionsToList(n,!0),n.length==0)return;for(var r=0;r<n.length;r++)if(!n[r].isEmpty())return;let i=new QM(this.requiredErrorText,this);t.push(i),e.setErrorElement(n[0],[i])}validateElement(e){let t=e.errorCount;return this.validateCore(e),e.errorCount<=t}validateCore(e){var t;let n=(t=this.singleInput)==null?void 0:t.currentSingleQuestion;n&&this.questions.indexOf(n)<0&&(n=void 0);let r=n?[n]:this.elements,i=null;for(var a=0;a<r.length;a++)i=r[a],i.isVisible&&(i.isPanel?i.validateCore(e):i.validateElement(e));n||(this.validateInPanels(e),this.updateContainsErrors())}getContainsErrors(){var e=super.getContainsErrors();if(e)return e;for(var t=this.elements,n=0;n<t.length;n++)if(t[n].containsErrors)return!0;return!1}updateElementVisibility(){for(let e=0;e<this.elements.length;e++)this.elements[e].updateElementVisibility();super.updateElementVisibility()}getFirstQuestionToFocus(e=!1,t=!1){if(!e&&!t&&this.isCollapsed)return null;for(var n=this.elements,r=0;r<n.length;r++){var i=n[r];if(!(!i.isVisible||!t&&i.isCollapsed)){if(i.isPanel){var a=i.getFirstQuestionToFocus(e,t);if(a)return a}else{let t=i.getFirstQuestionToFocus(e);if(t)return t}}}return null}getFirstVisibleQuestion(){let e=this.questions;for(let t=0;t<e.length;t++)if(e[t].isVisible)return e[t];return null}getFirstVisibleElement(){let e=this.elements;for(let t=0;t<e.length;t++)if(e[t].isVisible)return e[t];return null}focusFirstQuestion(){let e=this.getFirstQuestionToFocus();e&&e.focus()}focusFirstErrorQuestion(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()}addQuestionsToList(e,t=!1,n=!1){this.addElementsToList(e,t,n,!1)}addPanelsIntoList(e,t=!1,n=!1){this.addElementsToList(e,t,n,!0)}addElementsToList(e,t,n,r){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,n,r)}addElementsToListCore(e,t,n,r,i){for(var a=0;a<t.length;a++){var o=t[a];n&&!o.visible||((i&&o.isPanel||!i&&!o.isPanel)&&e.push(o),o.isPanel?o.addElementsToListCore(e,o.elements,n,r,i):r&&this.addElementsToListCore(e,o.getElementsInDesign(!1),n,r,i))}}calcMaxRowColSpan(){let e=0;return this.rows.forEach(t=>{let n=0,r=!1;
84t.elements.forEach(e=>{e.width&&(r=!0),n+=e.colSpan||1}),!r&&n>e&&(e=n)}),e}updateColumnWidth(e){let t=0,n=0;if(e.forEach(e=>{e.width?(t+=e.width,e.setPropertyValue(`effectiveWidth`,e.width)):n++}),n){let r=cj((100-t)/n);for(let t=0;t<e.length;t++)e[t].width||e[t].setPropertyValue(`effectiveWidth`,r)}}updateColumns(){this._columns=void 0,this.updateRootStyle()}updateRootStyle(){var e;super.updateRootStyle(),(e=this.elements)==null||e.forEach(e=>e.updateRootStyle())}updateCustomWidgets(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()}getQuestionTitleLocation(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():this.questionTitleLocation=="default"?this.parent?this.parent.getQuestionTitleLocation():this.survey?this.titleSettings.questionTitleLocation:`top`:this.questionTitleLocation}availableQuestionTitleWidth(){return this.getQuestionTitleLocation()===`left`||this.hasElementWithTitleLocationLeft()}hasElementWithTitleLocationLeft(){return this.elements.some(t=>{if(t instanceof e)return t.hasElementWithTitleLocationLeft();if(t instanceof zP)return t.getTitleLocation()===`left`})}getQuestionTitleWidth(){return(this.onGetQuestionTitleWidth?this.onGetQuestionTitleWidth():this.questionTitleWidth)||this.parent&&this.parent.getQuestionTitleWidth()}get columns(){return this._columns||(this.generateColumns(this.gridLayoutColumns),this.gridLayoutColumns=this._columns),this._columns||[]}generateColumns(e){var t;let n=(t=this.survey)==null?void 0:t.gridLayoutEnabled,r=[].concat(e);if(n){let t=this.calcMaxRowColSpan();if(t<=e.length)r=e.slice(0,t);else for(let n=e.length;n<t;n++){let e=new wI;r.push(e)}}this._columns=r;try{this._columnsReady=!1,this.updateColumnWidth(r)}finally{this._columnsReady=!0}}createGridLayoutColumns(){return this.generateColumns([]),this._columns}updateGridColumns(){this.updateColumns(),this.elements.forEach(e=>{e.isPanel&&e.updateGridColumns()})}getColumsForElement(e){let t=this.findRowByElement(e);if(!t||!this.survey||!this.survey.gridLayoutEnabled)return[];let n=t.elements.length-1;for(;n>=0&&t.elements[n].getPropertyValueWithoutDefault(`colSpan`);)n--;let r=t.elements.indexOf(e),i=0;for(let e=0;e<r;e++)i+=t.elements[e].colSpan;let a=e.getPropertyValueWithoutDefault(`colSpan`);if(!a&&r===n){let e=0;for(let r=0;r<t.elements.length;r++)r!==n&&(e+=t.elements[r].colSpan);a=this.columns.length-e}let o=this.columns.slice(i,i+(a||1));return e.setPropertyValueDirectly(`effectiveColSpan`,o.length),o}isQuestionIndexRecursive(){return!!this.survey&&this.titleSettings.showQuestionNumbers===`recursive`}getQuestionStartIndex(){let e=this.getStartIndex();return this.isQuestionIndexRecursive()?this.getStartIndexSubs(e,!0):e}getStartIndexSubs(e,t){if(!e||!this.isComplexIndex(e))return e;let n=e[e.length-1]===`.`?`.`:``;n&&(e=e.substring(0,e.length-1));let r=e.lastIndexOf(`.`);return e+=n,t?e.substring(r+1):e.substring(0,r+1)}getQuestionStartIndexVsVisibleIndex(e,t){let n=this.getStartIndexSubs(e,!1),r=this.getStartIndexSubs(e,!0);return K.getNumberByIndex(t,n)+r}isComplexIndex(e){let t=e.indexOf(`.`);return t>-1&&t<e.length-1}getChildrenLayoutType(){return`row`}getProgressInfo(){return DP.getProgressInfoByElements(this.elements,this.isRequired)}get root(){for(var e=this;e.parent;)e=e.parent;return e}childVisibilityChanged(){this.isRunningConditions||this.getIsPageVisible(null)!==this.getPropertyValue(`isVisible`,!0)&&this.onVisibleChanged()}canRenderFirstRows(){return this.isPage}isLazyRenderInRow(e){return!this.survey||!this.survey.isLazyRendering?!1:e>=this.survey.lazyRenderFirstBatchSize||!this.canRenderFirstRows()}createRowAndSetLazy(e){let t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t}createRow(){return new TI(this)}onSurveyLoad(){this.blockAnimations(),super.onSurveyLoad();for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this),this.releaseAnimations()}onFirstRenderingCore(){super.onFirstRenderingCore(),this.onRowsChanged(),this.elements.forEach(e=>e.onFirstRendering())}updateRows(){this.isLoadingFromJson||(this.getElementsForRows().forEac
84h(e=>{e.isPanel&&e.updateRows()}),this.onRowsChanged())}get rows(){return this.getPropertyValue(`rows`)}ensureRowsVisibility(){this.rows.forEach(e=>{e.ensureVisibility()})}onRowsChanged(){this.isLoadingFromJson||!this.wasRendered||(this.blockAnimations(),this.setArrayPropertyDirectly(`rows`,this.buildRows()),this.updateColumns(),this.releaseAnimations())}blockRowsUpdates(){this.locCountRowUpdates++}releaseRowsUpdates(){this.locCountRowUpdates--}updateRowsBeforeElementRemoved(e){if(!this.wasRendered&&this.rows.length===0)return;let t=this.findRowByElement(e),n=this.rows.indexOf(t),r=t.elements.indexOf(e);t.elements.splice(r,1),t.elements.length==0?this.rows.splice(n,1):!t.elements[0].startWithNewLine&&this.rows[n-1]?(t.elements.forEach(e=>this.rows[n-1].addElement(e)),this.rows.splice(n,1)):t.updateVisible()}updateRowsOnElementAdded(e){if(!this.wasRendered&&this.rows.length===0&&this.elements.length>1||this.findRowByElement(e))return;let t=this.elements.indexOf(e),n=this.elements[t+1],r=e=>{let t=this.createRowAndSetLazy(e);return this.isDesignMode&&t.setIsLazyRendering(!1),this.rows.splice(e,0,t),t},i=(e,t,n,...r)=>{let i=e.elements.splice(t,n,...r);return e.updateVisible(),i};if(!n){t==0||e.startWithNewLine?i(r(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e);return}let a=this.findRowByElement(n);if(!a)return;let o=this.rows.indexOf(a),s=a.elements.indexOf(n);s==0?n.startWithNewLine?e.startWithNewLine||o<1?r(o).addElement(e):this.rows[o-1].addElement(e):i(a,0,0,e):e.startWithNewLine?i(r(o+1),0,0,...[e].concat(i(a,s,a.elements.length))):i(a,s,0,e)}canFireAddRemoveNotifications(e){return!!this.survey&&e.prevSurvey!==this.survey}onAddElement(e,t){let n=this.survey,r=this.canFireAddRemoveNotifications(e);this.surveyImpl&&e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),r&&(e.isPanel?n.panelAdded(e,t,this,this.root):n.questionAdded(e,t,this,this.root)),e.parent===this&&(this.canBuildRows()&&this.updateRowsOnElementAdded(e),this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers([`visible`,`isVisible`],()=>{this.onElementVisibilityChanged(e)},this.id),e.registerPropertyChangedHandlers([`startWithNewLine`],()=>{this.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this))}onRemoveElement(e){e.parent=null,this.unregisterElementPropertiesChanged(e),this.markQuestionListDirty(),this.updateRowsOnElementRemoved(e),!this.isRandomizing&&(this.onRemoveElementNotifySurvey(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))}unregisterElementPropertiesChanged(e){e.unregisterPropertyChangedHandlers([`visible`,`isVisible`,`startWithNewLine`],this.id)}onRemoveElementNotifySurvey(e){this.canFireAddRemoveNotifications(e)&&(e.isPanel?this.lifecycleCallbacks.panelRemoved(e):this.lifecycleCallbacks.questionRemoved(e))}onElementVisibilityChanged(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))}onElementStartWithNewLineChanged(e){this.locCountRowUpdates>0||(this.blockAnimations(),this.updateRowsBeforeElementRemoved(e),this.updateRowsOnElementAdded(e),this.releaseAnimations())}updateRowsVisibility(e){for(var t=this.rows,n=0;n<t.length;n++){var r=t[n];if(r.elements.indexOf(e)>-1){this.refreshRowVisibility(r);break}}}canBuildRows(){return!this.isLoadingFromJson&&this.getChildrenLayoutType()==`row`}buildRows(){if(!this.canBuildRows())return[];let e=[],t=this.getElementsForRows();for(let n=0;n<t.length;n++){let r=t[n],i=n==0||r.startWithNewLine,a=i?this.createRowAndSetLazy(e.length):e[e.length-1];i&&e.push(a),a.addElement(r)}return e.forEach(e=>e.updateVisible()),e}getElementsForRows(){return this.elements}getDragDropInfo(){let e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0}updateRowsOnElementRemoved(e){this.canBuildRows()&&(this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e)),this.updateColumns())}updateRowsRemoveElementFromRow(e,t){if(!(!t||!t.panel)){var n=t.elements.indexOf(e);n<0||(t.elements.splice(n,1),t.elements.length>0?(this.blockRowsUpdates(),t.elements[0].startWithNewLine=!0,this.releaseRowsUpdates(),t.updateVisible()):t.index>=0&&t.panel.rows.splice(t.index,1))}}getAllRows(){let e=[];return this.rows.forEach(t=>{let n=[];
84t.elements.forEach(e=>{e.isPanel?n.push(...e.getAllRows()):e.getType()==`paneldynamic`&&(this.isDesignMode?n.push(...e.template.getAllRows()):e.panels.forEach(e=>n.push(...e.getAllRows())))}),e.push(t),e.push(...n)}),e}findRowAndIndexByElement(e,t){if(!e)return{row:void 0,index:this.rows.length-1};t=t||this.rows;for(var n=0;n<t.length;n++)if(t[n].elements.indexOf(e)>-1)return{row:t[n],index:n};return{row:null,index:-1}}forceRenderRow(e){e&&!e.isNeedRender&&(e.isNeedRender=!0,e.stopLazyRendering())}forceRenderElement(e,t=()=>{},n=0){let r=this.getAllRows(),{row:i,index:a}=this.findRowAndIndexByElement(e,r);if(a>=0&&a<r.length){let e=[];e.push(i);for(let t=a-1;t>=a-n&&t>=0;t--)e.push(r[t]);this.forceRenderRows(e,t)}}forceRenderRows(e,t=()=>{}){let n=(e=>()=>{e--,e<=0&&t()})(e.length);e.forEach(e=>new OP(e.visibleElements,n)),e.forEach(e=>this.forceRenderRow(e))}findRowByElement(e){return this.findRowAndIndexByElement(e).row}elementWidthChanged(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}}get ariaTitleId(){return this.id+`_ariaTitle`}get ariaLabelledBy(){return this.hasTitle?this.ariaTitleId:null}get ariaLabel(){return this.hasTitle?null:this.title||this.name||null}get ariaRole(){return`group`}get processedTitle(){return this.getRenderedTitle(this.locTitle.textOrHtml)}getRenderedTitle(e){return this.textProcessor==null?e:this.textProcessor.processText(e,!0)}onHidingContent(){this.questions.forEach(e=>e.onHidingContent())}onVisibleChanged(){if(this.isRandomizing)return;let e=this.getPropertyValue(`isVisible`),t=this.isVisible;if(this.setPropertyValue(`isVisible`,t),e!==t&&this.updateRowsVisibleState(),this.canUpdateValueOnVisibleChanged()){let e=this.questions,t=this.isVisible;for(var n=0;n<e.length;n++){let r=e[n];t?r.updateValueWithDefaults():(r.clearValueIfInvisible(`onHiddenContainer`),r.onHidingContent())}}}updateRowsVisibleState(){let e=this.rows;for(let t=0;t<e.length;t++)this.refreshRowVisibility(e[t])}refreshRowVisibility(e){e.updateVisible(),e.visible&&!e.isNeedRender&&(e.setIsLazyRendering(!1),e.stopLazyRendering())}notifyStateChanged(e){super.notifyStateChanged(e),this.isCollapsed&&this.questions.forEach(e=>e.onHidingContent())}get isVisible(){return this.getPropertyValueWithoutDefault(`isVisible`),this.areInvisibleElementsShowing||this.getIsPageVisible(null)}getIsContentVisible(e){if(this.areInvisibleElementsShowing)return!0;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1}getIsPageVisible(e){let t=this.getIsContentVisible(e);return this.visible&&t}setVisibleIndex(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);var n=this.getPanelStartIndex(e),r=n;let i=this.elements;for(var a=0;a<i.length;a++)r+=i[a].setVisibleIndex(r);return this.isContinueNumbering()&&(e+=r-n),e-t}updateVisibleIndexes(){this.lastVisibleIndex!==void 0&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))}resetVisibleIndexes(){let e=this.elements;for(var t=0;t<e.length;t++)e[t].setVisibleIndex(-1)}beforeSetVisibleIndex(e){return 0}getPanelStartIndex(e){return e}isContinueNumbering(){return!0}get isReadOnly(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t}onReadOnlyChanged(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue(`isReadOnly`,t.isReadOnly)}super.onReadOnlyChanged()}updateElementCss(e){super.updateElementCss(e);for(let t=0;t<this.elements.length;t++)this.elements[t].updateElementCss(e)}addElement(e,t=-1){return this.canAddElement(e)?(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),this.wasRendered&&e.onFirstRendering(),this.updateColumns(),!0):!1}insertElement(e,t,n=`bottom`){if(!t){this.addElement(e);return}this.blockRowsUpdates();let r=this.elements.indexOf(t),i=this.findRowByElement(t);n==`left`||n==`right`?n==`right`?(e.startWithNewLine=!1,r++):i.elements.indexOf(t)==0?(t.startWithNewLine=!1,e.startWithNewLine=!0):e.startWithNewLine=!1:(e.startWithNewLine=!0,r=n==`top`?this.elements.indexOf(i.elements[0]):this.elements.indexOf(i.elements[i.elements.length-1])+1),this.releaseRowsUpdates(),this.addElement(e,r)}insertElementAfter(e,t){let n=this.elements.indexOf(t);n>=0&&this.addElement(e,n+1)}insertElementBefore(e,t){let n=this.elements.indexOf(t);n>=0&&this.addElement(e,n)}canAddElement(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())}addQuestion(e,t=-1){return this.addElement(e,t)}
84addPanel(e,t=-1){return this.addElement(e,t)}addNewQuestion(e,t=null,n=-1){var r=xF.Instance.createQuestion(e,t);return this.addQuestion(r,n)?r:null}addNewPanel(e=null){var t=this.createNewPanel(e);return this.addPanel(t)?t:null}indexOf(e){return this.elements.indexOf(e)}createNewPanel(e){var t=J.createClass(`panel`);return t.name=e,t}removeElement(e){var t=this.elements.indexOf(e);if(t<0){for(var n=0;n<this.elements.length;n++)if(this.elements[n].removeElement(e))return!0;return!1}return this.elements.splice(t,1),this.updateColumns(),!0}removeQuestion(e){this.removeElement(e)}runCondition(e){if(this.isDesignMode||this.isLoadingFromJson)return;var t=this.elements.slice();let n=this.getIsPageVisible();this.isRunningConditions=!0;for(var r=0;r<t.length;r++)t[r].runCondition(e);this.runConditionCore(e);let i=this.getIsPageVisible();this.isRunningConditions=!1,n!==i&&this.childVisibilityChanged()}onAnyValueChanged(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].onAnyValueChanged(e,t)}checkBindings(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].checkBindings(e,t)}needResponsiveWidth(){let e=!1;return this.elements.forEach(t=>{t.needResponsiveWidth()&&(e=!0)}),this.rows.forEach(t=>{t.elements.length>1&&(e=!0)}),e}get hasDescriptionUnderTitle(){return this.hasDescription}get cssHeader(){return this.cssClasses.panel.header}get cssDescription(){return this.cssClasses.panel.description}getQuestionErrorLocation(){return this.questionErrorLocation==="default"?this.parent?this.parent.getQuestionErrorLocation():this.survey?this.titleSettings.questionErrorLocation:`top`:this.questionErrorLocation}getTitleOwner(){return this}get no(){return``}get cssTitleNumber(){return this.cssClasses.panel.number}get cssRequiredMark(){return this.cssClasses.panel.requiredMark}get cssError(){return this.getCssError(this.cssClasses)}getCssError(e){return new X().append(e.error.root).toString()}getSerializableColumnsValue(){if(this.getPropertyValueWithoutDefault(`gridLayoutColumns`)===void 0)return;let e=-1;for(let t=this.gridLayoutColumns.length-1;t>=0;t--)if(!this.gridLayoutColumns[t].isEmpty()){e=t;break}return this.gridLayoutColumns.slice(0,e+1)}afterRender(e){this.afterRenderCore(e)}dispose(){if(super.dispose(),this.rows){for(let e=0;e<this.rows.length;e++)this.rows[e].dispose();this.rows.splice(0,this.rows.length)}this.disposeElements(),this.elements.splice(0,this.elements.length)}disposeElements(){for(let e=0;e<this.elements.length;e++)this.elements[e].dispose()}};q([Y({defaultValue:!0})],EI.prototype,`showTitle`,void 0),q([Y({defaultValue:!0})],EI.prototype,`showDescription`,void 0),q([Y({localizable:!0})],EI.prototype,`requiredErrorText`,void 0),q([Y()],EI.prototype,`questionOrder`,void 0),q([Y({returnValue:``})],EI.prototype,`questionStartIndex`,void 0),q([Y()],EI.prototype,`visibleIf`,void 0),q([Y()],EI.prototype,`id`,void 0),q([Y()],EI.prototype,`isRequired`,void 0),q([Y()],EI.prototype,`requiredIf`,void 0),q([Y({onSet:e=>e.toLowerCase()})],EI.prototype,`questionTitleLocation`,void 0),q([Y()],EI.prototype,`questionTitleWidth`,void 0),q([Y()],EI.prototype,`visible`,void 0),q([Y()],EI.prototype,`enableIf`,void 0),q([Y()],EI.prototype,`questionErrorLocation`,void 0);var DI=class e extends EI{constructor(){super(...arguments),this.forcusFirstQuestionOnExpand=!0}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`width`&&this.parent&&this.parent.elementWidthChanged(this),[`indent`,`innerIndent`,`rightIndent`].indexOf(e)>-1&&this.resetIndents(),e===`colSpan`&&this.parent&&this.parent.updateColumns(),(e===`showNumber`||e===`showQuestionNumbers`)&&this.notifySurveyOnVisibilityChanged()}getType(){return`panel`}get contentId(){return this.id+`_content`}getSurvey(e=!1){return e&&this.isPanel?this.parent?this.parent.getSurvey(e):null:super.getSurvey(e)}get isPanel(){return!0}getOwner(){return this.parent}get page(){return this.getPage(this.parent)}set page(e){this.setPage(this.parent,e)}removeFromParent(){this.parent&&this.removeSelfFromList(this.parent.elements)}moveTo(e,t=null){return this.moveToBase(this.parent,e,t)}getPanelInDesignMode(){return this}get visibleIndex(){return this.getPropertyValue(`visibleIndex`,-1)}addNoFromChild(e){let t=this.getRecursiveNo();return t?(t[t.length-1]!==`.`&&this.canAddDot(e)&&(t+=`.`),t+e):super.addNoFromChild(e)}getRecursiveNo(){return this.recursiveNoCallback?this.recursiveNoCallback():this.isQuestionIndexRecursive()?this.calcNo():``}canAddDot(e){return!!e&&RegExp(`^[\\p{L}\\d]`,`u`).test(e[0])}getPageVisibleIndex(){var e;return((e=this.page)==null?void 0:e.visibleIndex)||-1}getQuestionStartIndex(){let e=this.questionStartIndex;return e&&this.isQuestionIndexOnPanel&&this.isComplexIndex(e)?this.getQuestionStartIndexVsVisibleIndex(e,this.visibleIndex):e||super.getQuestionStartIndex()}get no(){return this.getPropertyValue(`no`,void 0,()=>this.calcNo())}calcNo(){let e=this.hasTitle?K.getNumberByIndex(this.visibleIndex,this.get
84StartIndex()):``;return this.onGetNoCallback?this.onGetNoCallback(e):(this.parent&&(e=this.parent.addNoFromChild(e)),this.survey&&(e=this.titleSettings.getUpdatedPanelNo(this,e)),e||``)}notifyStateChanged(e){this.isLoadingFromJson||this.locTitle.strChanged(),super.notifyStateChanged(e)}createLocTitleProperty(){let e=super.createLocTitleProperty();return e.onGetTextCallback=e=>(!e&&this.state!=="default"&&(e=this.name),e),e}beforeSetVisibleIndex(e){if(this.isPage||!this.parent)return super.beforeSetVisibleIndex(e);let t=-1;return(this.showNumber||this.isQuestionIndexRecursive())&&(this.isDesignMode||!this.locTitle.isEmpty||this.hasParentInQuestionIndex())&&(t=e),this.setPropertyValue(`visibleIndex`,t),this.resetPropertyValue(`no`),t<0?0:1}getPanelStartIndex(e){return this.showQuestionNumbers===`off`?-1:this.isQuestionIndexOnPanel?0:e}get isQuestionIndexOnPanel(){return this.showQuestionNumbers===`onpanel`||this.isQuestionIndexRecursive()}isQuestionIndexRecursive(){let e=this.showQuestionNumbers;return e==="default"?super.isQuestionIndexRecursive():e===`recursive`}hasParentInQuestionIndex(){if(!this.isQuestionIndexOnPanel)return!1;let e=this.questionStartIndex,t=e.indexOf(`.`);return t>-1&&t<e.length-1}isContinueNumbering(){return this.showQuestionNumbers!==`off`&&!this.isQuestionIndexOnPanel}notifySurveyOnVisibilityChanged(){this.survey!=null&&!this.isLoadingFromJson&&this.lifecycleCallbacks.panelVisibilityChanged(this,this.isVisible)}getRenderedTitle(e){if(this.isPanel&&!e){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return`[`+this.name+`]`}return super.getRenderedTitle(e)}calcPaddingLeft(){return this.getIndentSize(this.indent)}calcPaddingRight(){return this.getIndentSize(this.rightIndent)}resetIndents(){this.resetPropertyValue(`innerPaddingLeft`),super.resetIndents()}
84getIndentSize(e){if(this.survey){if(e<1)return``;var t=this.survey.css;return!t||!t.question||!t.question.indent?``:e*t.question.indent+`px`}}clearOnDeletingContainer(){this.elements.forEach(t=>{(t instanceof zP||t instanceof e)&&t.clearOnDeletingContainer()})}get footerActions(){return this.getArrayPropertyValue(`footerActions`)}getFooterToolbar(){var e,t;if(!this.footerToolbarValue){var n=this.footerActions;this.hasEditButton&&n.push({id:`cancel-preview`,locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,component:`sv-nav-btn`,action:()=>{this.cancelPreview()}}),n=this.onGetFooterActionsCallback?this.onGetFooterActionsCallback():(e=this.survey)==null?void 0:e.getUpdatedPanelFooterActions(this,n),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions);let r=this.onGetFooterToolbarCssCallback?this.onGetFooterToolbarCssCallback():``;r||(r=(t=this.cssClasses.panel)==null?void 0:t.footer),r&&(this.footerToolbarValue.containerCss=r),this.footerToolbarValue.setItems(n),this.footerToolbarValue.flushUpdates()}return this.footerToolbarValue}get hasEditButton(){return!1}cancelPreview(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)}get cssTitle(){return this.getCssPanelTitle()}getCssPanelTitle(){return this.getCssTitle(this.cssClasses.panel)}getCssTitleExpandableSvg(){return this.state==="default"?null:this.cssClasses.panel.titleExpandableSvg}get showErrorsAbovePanel(){return!this.showPanelAsPage}getCssError(e){if(this.isPage)return super.getCssError(e);let t=new X().append(super.getCssError(e)).append(e.panel.errorsContainer);return t.append(`panel-error-root`,t.isEmpty()).toString()}onVisibleChanged(){super.onVisibleChanged(),this.notifySurveyOnVisibilityChanged()}needResponsiveWidth(){return!this.startWithNewLine||super.needResponsiveWidth()}focusIn(){this.survey&&this.survey.whenPanelFocusIn(this)}
84getHasFrameV2(){return super.getHasFrameV2()&&!this.showPanelAsPage}getIsNested(){return super.getIsNested()&&this.parent!==void 0}get showPanelAsPage(){return!1}expand(e=!0){this.forcusFirstQuestionOnExpand=e,super.expand()}onElementExpanded(e){if(super.onElementExpanded(e),this.forcusFirstQuestionOnExpand&&this.survey!=null&&!this.isLoadingFromJson){let t=this.getFirstQuestionToFocus(!1);t&&setTimeout(()=>{!this.isDisposed&&this.survey&&this.survey.scrollElementToTop({element:t,question:t,id:t.inputId,scrollIfVisible:!1,scrollIntoViewOptions:{behavior:`smooth`}})},e?0:15)}}getCssRoot(e){return new X().append(super.getCssRoot(e)).append(e.container).append(e.asPage,this.showPanelAsPage).append(e.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()}getContainerCss(){return this.getCssRoot(this.cssClasses.panel)}afterRenderCore(e){var t;super.afterRenderCore(e),this.isPanel&&((t=this.survey)==null||t.afterRenderPanel(this,e))}};q([Y()],DI.prototype,`showNumber`,void 0),q([Y()],DI.prototype,`showQuestionNumbers`,void 0),q([Y()],DI.prototype,`innerIndent`,void 0),q([Y()],DI.prototype,`startWithNewLine`,void 0),q([Y()],DI.prototype,`allowAdaptiveActions`,void 0),q([Y({calcFunc:e=>e.getIndentSize(e.innerIndent)})],DI.prototype,`innerPaddingLeft`,void 0),J.addClass(`panelbase`,[`name`,{name:`elements`,alternativeName:`questions`,baseClassName:`question`,visible:!1,isLightSerializable:!1},{name:`visible:switch`,default:!0,overridingProperty:`visibleIf`},{name:`readOnly:boolean`,overridingProperty:`enableIf`},`visibleIf:condition`,`enableIf:condition`,`requiredIf:condition`,{name:`questionTitleWidth`,visibleIf:function(e){return!!e&&e.availableQuestionTitleWidth()}},{name:`questionTitleLocation`,default:`default`,choices:[`default`,`top`,`bottom`,`left`,`hidden`]},{name:`gridLayoutColumns:panellayoutcolumns`,className:`panellayoutcolumn`,isArray:!0,onSerializeValue:e=>e.getSerializableColumnsValue(),visibleIf:function(e){return!!e&&!!e.survey&&e.survey.gridLayoutEnabled}},{name:`title:text`,serializationProperty:`locTitle`},{name:`description:text`,serializationProperty:`locDescription`},{name:`questionOrder`,alternativeName:`questionsOrder`,default:`default`,choices:[`default`,`initial`,`random`]},{name:`questionErrorLocation`,default:`default`,choices:[`default`,`top`,`bottom`]}],function(){return new EI}),J.addClass(`panel`,[{name:`state`,default:`default`,choices:[`default`,`collapsed`,`expanded`]},{name:`isRequired:switch`,overridingProperty:`requiredIf`},{name:`requiredErrorText:text`,serializationProperty:`locRequiredErrorText`},{name:`startWithNewLine:boolean`,default:!0},{name:`width`},{name:`minWidth`,defaultFunc:()=>`auto`},{name:`maxWidth`,defaultFunc:()=>G.maxWidth,onSettingValue:(e,t)=>t||void 0},{name:`colSpan:number`,visible:!1,onSerializeValue:e=>e.getPropertyValue(`colSpan`)},{name:`effectiveColSpan:number`,minValue:1,isSerializable:!1,visibleIf:function(e){return!!e.survey&&e.survey.gridLayoutEnabled}},{name:`innerIndent:number`,default:0,choices:[0,1,2,3]},{name:`indent:number`,default:0,choices:[0,1,2,3],visible:!1},{name:`page`,isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map(e=>({value:e.name,text:e.title})):[]}},{name:`showNumber:boolean`},{name:`showQuestionNumbers`,default:`default`,choices:[`default`,`onpanel`,`recursive`,`off`]},{name:`questionStartIndex`,visibleIf:e=>e.isPanel},{name:`allowAdaptiveActions:boolean`,default:!0,visible:!1}],function(){return new DI},`panelbase`),SF.Instance.registerElement(`panel`,e=>new DI(e));var OI=class extends DI{constructor(){super(...arguments),this.timeSpent=0,this._isReadyForClean=!0}getType(){return`page`}toString(){return this.name}get isPage(){return!this.isPanel}get isPanel(){return!!this.parent}getOwner(){return this.survey}get showPanelAsPage(){return!0}get hasEditButton(){return this.isPanel&&this.survey&&this.survey.state===`preview`&&!!this.parent&&!this.parent.isPanel}getElementsForRows(){var e;if(!this.isStartPage){let t=(e=this.singleInput)==null?void 0:e.currentSingleElement;if(t)return t.page===this?[t]:[]}return super.getElementsForRows()}disposeElements(){this.isPageContainer||super.disposeElements()}onRemoveElement(e){this.isPageContainer?(e.parent=null,this.unregisterElementPropertiesChanged(e)):super.onRemoveElement(e)}getTemplate(){return this.isPanel?`panel`:super.getTemplate()}getPanelInDesignMode(){return null}get no(){if(!this.canShowPageNumber()||!this.survey)return``;let e=this.isStartPage?``:this.num+`. `;
84return this.titleSettings.getUpdatedPageNo(this,e)}addNoFromChild(e){return e}get cssTitleNumber(){return this.isPanel?this.cssClasses.panel.number:this.cssClasses.page.number}getCssTitleExpandableSvg(){return null}get cssRequiredMark(){return``}canShowPageNumber(){return this.survey&&this.survey.showPageNumbers}canShowTitle(e){return!e||e.showPageTitles}setTitleValue(e){super.setTitleValue(e),this.navigationLocStrChanged()}getDefaultTitleTagName(){return G.titleTags.page}get navigationTitle(){return this.getLocStringText(this.locNavigationTitle)}set navigationTitle(e){this.setLocStringText(this.locNavigationTitle,e)}navigationLocStrChanged(){this.isLocStrEmpty(`navigationTitle`)&&this.locTitle.strChanged(),this.locStrChanged(`navigationTitle`),this.locStrChanged(`navigationDescription`)}getMarkdownHtml(e,t,n){let r=super.getMarkdownHtml(e,t,n);return t===`navigationTitle`&&this.canShowPageNumber()&&r?this.num+`. `+r:r}removeFromParent(){this.survey&&this.removeSelfFromList(this.survey.pages)}get visibleIndex(){return this.getPropertyValue(`visibleIndex`,-1)}set visibleIndex(e){this.setPropertyValue(`visibleIndex`,e)}canRenderFirstRows(){return!this.isDesignMode||this.visibleIndex==0}isQuestionIndexRecursive(){return super.isQuestionIndexRecursive()&&this.isComplexIndex(this.getStartIndex())}getPanelStartIndex(e){return this.isQuestionIndexRecursive()?0:e}getPageVisibleIndex(){return this.visibleIndex}getQuestionStartIndex(){let e=this.getStartIndex();return this.isQuestionIndexRecursive()?this.getQuestionStartIndexVsVisibleIndex(e,this.num-1):e}get isStartPage(){return this.survey&&this.survey.isPageStarted(this)}get isStarted(){return this.isStartPage}calcCssClasses(e){if(this.isPanel)return super.calcCssClasses(e);let t={page:{},error:{},pageTitle:``,pageDescription:``,row:``,rowMultiple:``,pageRow:``,rowCompact:``,rowEnter:``,rowLeave:``,rowDelayedEnter:``,rowReplace:``};return this.copyCssClasses(t.page,e.page),this.copyCssClasses(t.error,e.error),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),e.pageRow&&(t.pageRow=e.pageRow),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),e.rowCompact&&(t.rowCompact=e.rowCompact),e.rowEnter&&(t.rowEnter=e.rowEnter),e.rowDelayedEnter&&(t.rowDelayedEnter=e.rowDelayedEnter),e.rowLeave&&(t.rowLeave=e.rowLeave),e.rowReplace&&(t.rowReplace=e.rowReplace),this.survey&&this.cssCallbacks.updatePageCssClasses(this,t),t}getCssPanelTitle(){return this.isPanel?super.getCssPanelTitle():this.cssClasses.page?new X().append(this.cssClasses.page.title).toString():``}get cssRoot(){return this.isPanel||!this.cssClasses.page||!this.survey?``:new X().append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!this.survey.renderedHasHeader&&!(this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString()}getCssError(e){return this.isPanel?super.getCssError(e):new X().append(super.getCssError(e)).append(e.page.errorsContainer).toString()}get navigationButtonsVisibility(){let e=this.showNavigationButtons;return e==null?`inherit`:e?`show`:`hide`}set navigationButtonsVisibility(e){this.showNavigationButtons=e}get showNavigationButtons(){return this.getPropertyValue(`showNavigationButtons`,void 0)}set showNavigationButtons(e){this.setShowNavigationButtonsProperty(e)}setShowNavigationButtonsProperty(e){typeof e==`string`&&(e=e.toLowerCase()),e===!0||e===!1?this.setPropertyValue(`showNavigationButtons`,e):e===`show`?this.setPropertyValue(`showNavigationButtons`,!0):e===`hide`?this.setPropertyValue(`showNavigationButtons`,!1):this.setPropertyValue(`showNavigationButtons`,void 0)}get isActive(){return!!this.survey&&this.survey.currentPage===this}get wasShown(){return this.wasRendered}get hasShown(){return this.wasRendered}setWasShown(e){e||this.resetWasRendered()}getUIState(){let e=super.getUIState();return this.passed&&(e=e||{},e.passed=!0),e}setUIState(e){super.setUIState(e),e.passed&&(this.passed=!0)}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`passed`&&n&&this.survey&&this.lifecycleCallbacks.pagePassed(this)}onFirstRenderingCore(){var e;if(super.onFirstRenderingCore(),!this.isDesignMode){for(var t=this.elements,n=0;n<t.length;n++)t[n].isPanel&&t[n].randomizeElements(this.areQuestionsRandomized);if(this.randomizeElements(this.areQuestionsRandomized)){let t=(e=this.singleInput)==null?void 0:e.currentSingleElement;(t==null?void 0:t.page)===this&&(this.singleInput.currentSingleElement=this.getFirstVisibleElement())}}}scrollToTop(){this.survey&&this.survey.scrollElementToTop({element:this,question:null,page:this,id:this.id,scrollIfVisible:!1,scrollIntoViewOptions:{block:`start`}})}getAllPanels(e=!1,t=!1){var n=[];return this.addPanelsIntoList(n,e,t),n}getPanels(e=!1,t=!1){return this.getAllPanels(e,t)}get maxTimeToFinish(){return this.timeLimit}set maxTimeToFinish(e){this.timeLimit=e}
84getMaxTimeToFinish(){if(this.timeLimit!==0)return this.timeLimit;let e=this.survey?this.survey.timeLimitPerPage:0;return e>0?e:0}onNumChanged(e){}onVisibleChanged(){this.isRandomizing||(super.onVisibleChanged(),this.survey!=null&&this.lifecycleCallbacks.pageVisibilityChanged(this,this.isVisible))}ensureRowsVisibility(){super.ensureRowsVisibility(),this.elements.forEach(e=>e.ensureRowsVisibility())}get isReadyForClean(){return this._isReadyForClean}set isReadyForClean(e){let t=this._isReadyForClean;this._isReadyForClean=e,this._isReadyForClean!==t&&this.isReadyForCleanChangedCallback&&this.isReadyForCleanChangedCallback()}enableOnElementRerenderedEvent(){super.enableOnElementRerenderedEvent(),this.isReadyForClean=!1}disableOnElementRerenderedEvent(){super.disableOnElementRerenderedEvent(),this.isReadyForClean=!0}};q([Y({localizable:!0})],OI.prototype,`navigationDescription`,void 0),q([Y({defaultValue:!1})],OI.prototype,`passed`,void 0),q([Y({defaultValue:-1,onSet:(e,t)=>t.onNumChanged(e)})],OI.prototype,`num`,void 0),q([Y({defaultValue:0})],OI.prototype,`timeLimit`,void 0),J.addClass(`page`,[{name:`showNavigationButtons:boolean`,defaultFunc:()=>void 0,onSetValue:function(e,t){e&&e.setShowNavigationButtonsProperty(t)},alternativeName:`navigationButtonsVisibility`},{name:`timeLimit:number`,alternativeName:`maxTimeToFinish`,default:0,minValue:0,visibleIf:e=>!!e.survey&&e.survey.showTimer},{name:`navigationTitle`,serializationProperty:`locNavigationTitle`},{name:`navigationDescription`,visibleIf:function(e){return!!e.survey&&e.survey.progressBarType===`buttons`},serializationProperty:`locNavigationDescription`},{name:`title:text`,serializationProperty:`locTitle`},{name:`description:text`,serializationProperty:`locDescription`},{name:`state`,visible:!1},{name:`isRequired`,visible:!1},{name:`startWithNewLine`,visible:!1},{name:`width`,visible:!1},{name:`minWidth`,visible:!1},{name:`maxWidth`,visible:!1},{name:`colSpan`,visible:!1,isSerializable:!1},{name:`effectiveColSpan:number`,visible:!1,isSerializable:!1},{name:`innerIndent`,visible:!1},{name:`indent`,visible:!1},{name:`page`,visible:!1,isSerializable:!1},{name:`showNumber`,visible:!1},{name:`showQuestionNumbers`,visible:!1},{name:`allowAdaptiveActions`,visible:!1},{name:`requiredErrorText:text`,serializationProperty:`locRequiredErrorText`,visible:!1}],function(){return new OI},`panel`);var kI=class extends qM{constructor(e){super(),this.survey=e,this.onResize=this.addEvent(),this.onCurrentPageChanged=()=>{this.resetProgressText()},e.onPagesVisibleChangedCallback=()=>{this.visiblePages=e.visiblePages},e.onCurrentPageChanged.add(this.onCurrentPageChanged),this.visiblePages=e.visiblePages}isListElementClickable(e){return!this.survey.onServerValidateQuestions||this.survey.onServerValidateQuestions.isEmpty||this.survey.checkErrorsMode===`onComplete`?!0:e<=this.survey.currentPageNo+1}getRootCss(e=`center`){let t=this.survey.css.progressButtonsContainerCenter;return this.survey.css.progressButtonsRoot&&(t+=` `+this.survey.css.progressButtonsRoot+` `+this.survey.css.progressButtonsRoot+`--`+([`footer`,`contentBottom`].indexOf(e)===-1?`top`:`bottom`),t+=` `+this.survey.css.progressButtonsRoot+`--`+(this.showItemTitles?`with-titles`:`no-titles`)),this.showItemNumbers&&this.survey.css.progressButtonsNumbered&&(t+=` `+this.survey.css.progressButtonsNumbered),this.isFitToSurveyWidth&&(t+=` `+this.survey.css.progressButtonsFitSurveyWidth),t}getListElementCss(e){if(!(e>=this.survey.visiblePages.length))return new X().append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()}getScrollButtonCss(e,t){return new X().append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()}clickListElement(e){e instanceof OI||(e=this.survey.visiblePages[e]),this.survey.tryNavigateToPage(e)}isListContainerHasScroller(e){let t=e.querySelector(`.`+this.survey.css.progressButtonsListContainer);return t?t.scrollWidth>t.offsetWidth:!1}isCanShowItemTitles(e){let t=e.querySelector(`ul`);return!t||t.children.length<2?!0:t.clientWidth>t.parentElement.clientWidth?(this.minListWidth=Math.min(this.minListWidth||1/0,t.clientWidth),!1):!(t.parentElement.clientWidth<this.minListWidth)}get isFitToSurveyWidth(){return dI.currentType==="default"&&this.survey.progressBarInheritWidthFrom===`
84survey`&&this.survey.widthMode==`static`}get progressWidth(){return this.isFitToSurveyWidth?this.survey.renderedWidth:``}get showItemNumbers(){return dI.currentType==="default"&&this.survey.progressBarShowPageNumbers}get showItemTitles(){return dI.currentType!=="default"||this.survey.progressBarShowPageTitles}getItemNumber(e){let t=``;return this.showItemNumbers&&(t+=this.survey.visiblePages.indexOf(e)+1),t}get headerText(){return this.survey.currentPage?this.survey.currentPage.renderedNavigationTitle:``}get footerText(){return this.progressText}get progressText(){return this.getPropertyValue(`progressText`,void 0,()=>this.survey.getProgressText())}get progressBarAriaLabel(){return hj(`progressbar`,this.survey.getLocale())}resetProgressText(){this.resetPropertyValue(`progressText`)}dispose(){this.survey.onCurrentPageChanged.remove(this.onCurrentPageChanged),super.dispose()}processResponsiveness(e){this.onResize.fire(this,{width:e})}};q([mN()],kI.prototype,`visiblePages`,void 0);var AI=class{constructor(e,t,n){this.model=e,this.element=t,this.viewModel=n,this.criticalProperties=[`progressBarType`,`progressBarShowPageTitles`],this.canShowItemTitles=!0,this.processResponsiveness=(e,t)=>{if(this.viewModel.onUpdateScroller(e.isListContainerHasScroller(this.element)),e.showItemTitles){if(e.survey.isMobile){this.canShowItemTitles=!1,this.viewModel.onResize(this.canShowItemTitles);return}this.canShowItemTitles=e.isCanShowItemTitles(this.element),this.viewModel.onResize(this.canShowItemTitles)}},this.model.survey.registerFunctionOnPropertiesValueChanged(this.criticalProperties,()=>this.forceUpdate(),`ProgressButtonsResponsivityManager`+this.viewModel.container),this.model.onResize.add(this.processResponsiveness),this.forceUpdate(),this.observer=new MutationObserver(()=>{let e=t.querySelectorAll(`ul > li`);this.pages!==e.length&&(this.pages=e.length,this.model.minListWidth=void 0,this.forceUpdate())}),this.observer.observe(t,{childList:!0,subtree:!0})}forceUpdate(){this.viewModel.onUpdateSettings(),this.processResponsiveness(this.model,{})}dispose(){this.model.onResize.remove(this.processResponsiveness),this.model.survey.unRegisterFunctionOnPropertiesValueChanged(this.criticalProperties,`ProgressButtonsResponsivityManager`+this.viewModel.container),this.observer.disconnect(),this.observer=void 0,this.element=void 0,this.model=void 0}};function jI(e,t){return e.isDesignMode?!0:(MI(t.getFirstQuestionToFocus(!1,!0)),t.focusFirstQuestion(),!0)}function MI(e){let t=e&&e.parent;for(;t&&t.getType()!==`page`;){if(t.isPanel){let e=t;e.isCollapsed&&e.expand()}t=t.parent}}function NI(e){if(e.parentQuestion)return NI(e.parentQuestion);let t=e.parent;for(;t&&t.getType()!==`page`&&t.parent;)t=t.parent;return t&&t.getType()===`page`?t:null}function PI(e,t){var n=FI(e,t),r=new cP({items:n,searchEnabled:!1,locOwner:e,listRole:`menu`,listItemRole:`menuitemradio`,listAriaLabel:hj(`toc`,e.getLocale())});r.allowSelection=!1,e.tocItemComponent&&(r.itemComponent=e.tocItemComponent),e.registerFunctionOnPropertyValueChanged(`tocItemComponent`,()=>{e.tocItemComponent&&(r.itemComponent=e.tocItemComponent)},`toc`);let i=(e,t)=>{r.selectedItem=!!e&&r.actions.filter(t=>t.id===e.name)[0]||t};i(e.currentPage,n[0]),e.onCurrentPageChanged.add((t,n)=>{i(e.currentPage)}),e.onFocusInQuestion.add((e,t)=>{i(NI(t.question))});let a=()=>{r.setItems(FI(e,t))};return e.registerFunctionOnPropertyValueChanged(`pages`,a,`toc`),e.onEndLoadingFromJson.add(a),r}function FI(e,t){return(e.pages||[]).map(n=>new kN({id:n.name,locTitle:n.locNavigationTitle,data:{page:n,survey:e},action:()=>{if(nj.activeElementBlur(),t&&t(),n.isPage)return e.tryNavigateToPage(n);if(n.isPanel)return jI(e,n)},visible:new KM(()=>n.isVisible&&!n.isStartPage)}))}function II(e,t=!1){let n=LI.RootStyle;return t?n+` `+LI.RootStyle+`--mobile`:(n+=` `+LI.RootStyle+`--`+(e.tocLocation||``).toLowerCase(),LI.StickyPosition&&(n+=` `+LI.RootStyle+`--sticky`),n)}var LI=class e{constructor(t){this.survey=t,this.icon=`icon-navmenu_24x24`,this.togglePopup=()=>{this.popupModel.toggleVisibility()},this.listModel=PI(t,()=>{this.popupModel.isVisible=!1}),this.popupModel=new lP(`sv-list`,{model:this.listModel}),this.popupModel.overlayDisplayMode=`tablet-dropdown-overlay`,this.popupModel.displayMode=new KM(()=>this.isMobile?`overlay`:`popup`),e.StickyPosition&&(t.registerFunctionOnPropertyValueChanged(`_isMobile`,()=>this.updateStickyTOCSize(t.rootElement),`toc`),t.onAfterRenderSurvey.add((e,t)=>this.initStickyTOCSubscriptions(t.htmlElement)),this.initStickyTOCSubscriptions(t.rootElement))}createLayoutElements(){return[{id:`toc-navigation`,component:`sv-navigation-toc`,getData:()=>this,processResponsiveness:()=>this.updateStickyTOCSize(this.survey.rootElement),isInContainer:e=>this.isTocNavigationInContainer(e)}]}isTocNavigationInContainer(e){return this.survey.state!==`running`||!this.survey.showTOC?!1:e===`left`?[`left`,`both`].indexOf(this.survey.tocLocation)!==-1:e===`right`&&[`right`,`both`].indexOf(this.survey.tocLocation)!==-1}initStickyTOCSubscriptions(t){e.StickyPosition&&t&&(t.addEventListener(`scroll`,e=>{this.updateStickyTOCSize(t)}),this.updateStickyTOCSize(t))}updateStickyTOCSize(t){if(!t)return;let n=t.querySelector(`.`+e.RootStyle);if(n&&(n.style.height=``,!this.isMobile&&e.StickyPosition&&t)){let e=t.getBoundingClientRect().height,r=this.survey.findLayoutElement(`advanced-header`),i=r&&r.data,a=!i||i.hasBackgroun
84d,o=this.survey.headerView===`advanced`?`.sv-header`:`.sv_custom_header+div div.`+(this.survey.css.title||`sd-title`),s=t.querySelector(o),c=(this.survey.hasTitle||this.survey.hasLogo)&&s&&a?s.getBoundingClientRect().height:0,l=t.querySelector(`.sv-scroll__scroller`)||t,u=l.scrollTop>c?0:c-l.scrollTop;n.style.height=e-u-1+`px`}}get isMobile(){return this.survey.isMobile}get containerCss(){return II(this.survey,this.isMobile)}dispose(){this.survey.unRegisterFunctionOnPropertyValueChanged(`_isMobile`,`toc`),this.survey.unRegisterFunctionOnPropertyValueChanged(`tocItemComponent`,`toc`);let[e]=this.survey.unRegisterFunctionOnPropertyValueChanged(`pages`,`toc`);this.survey.onEndLoadingFromJson.remove(e),this.survey.onPageAdded.remove(e),this.popupModel.dispose(),this.listModel.dispose()}};LI.RootStyle=`sv_progress-toc`,LI.StickyPosition=!0;var RI=class extends qM{constructor(e){super(),this.survey=e,this.key=`progressTextModel`,this.onStateChanged=()=>{this.survey.isLoadingFromJson||this.survey.isEndLoadingFromJson||this.updateProgressText()},this.onValueChanged=()=>{this.survey.isLoadingFromJson||this.survey.isEndLoadingFromJson||this.updateProgressText(!0)},this.subscribeSurvey(),this.updateProgressText()}createLayoutElements(){return[this.createLayoutElement(`progress-buttons`,`sv-progress-buttons`,()=>this.survey.progressBar,e=>this.survey.progressBar.processResponsiveness&&this.survey.progressBar.processResponsiveness(e)),this.createLayoutElement(`progress-questions`,`sv-progress-questions`,()=>this),this.createLayoutElement(`progress-pages`,`sv-progress-pages`,()=>this),this.createLayoutElement(`progress-correctquestions`,`sv-progress-correctquestions`,()=>this),this.createLayoutElement(`progress-requiredquestions`,`sv-progress-requiredquestions`,()=>this)]}get progressBarAriaLabel(){return hj(`progressbar`,this.survey.getLocale())}get css(){return this.survey.css}getProgressCssClasses(e=``){return this.survey.getProgressCssClasses(e)}getProgressInfo(){let e=this.survey.isDesignMode?this.survey.pages:this.survey.visiblePages;return DP.getProgressInfoByElements(e,!1)}get progressText(){return this.getPropertyValue(`progressText`,void 0,()=>this.calculateProgressText())}get progressValue(){return this.getPropertyValue(`progressValue`,void 0,()=>this.survey.getProgress())}updateProgressText(e=!1){this.survey.isShowingPreview||e&&this.survey.progressBarType==`pages`&&this.survey.onGetProgressText.isEmpty||(this.resetPropertyValue(`progressText`),this.resetPropertyValue(`progressValue`))}getProgressText(){return this.progressText}getProgressValue(){return this.progressValue}dispose(){this.survey.onCurrentPageChanged.remove(this.onStateChanged),this.survey.onValueChanged.remove(this.onValueChanged),this.survey.onPageAdded.remove(this.onStateChanged),this.survey.onLocaleChangedEvent.remove(this.onStateChanged),this.survey.unRegisterFunctionOnPropertyValueChanged(`progressBarType`,this.key),this.survey.unRegisterFunctionOnPropertyValueChanged(`isShowingPreview`,this.key),this.survey.unRegisterFunctionOnPropertyValueChanged(`pages`,this.key),super.dispose()}subscribeSurvey(){this.survey.onCurrentPageChanged.add(this.onStateChanged),this.survey.onValueChanged.add(this.onValueChanged),this.survey.onPageAdded.add(this.onStateChanged),this.survey.onLocaleChangedEvent.add(this.onStateChanged),this.survey.registerFunctionOnPropertyValueChanged(`progressBarType`,this.onStateChanged,this.key),this.survey.registerFunctionOnPropertyValueChanged(`isShowingPreview`,this.onStateChanged,this.key),this.survey.registerFunctionOnPropertyValueChanged(`pages`,this.onStateChanged,this.key)}calculateProgressText(){if(!this.survey.isDesignMode&&this.survey.currentPage==null)return``;let e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:``},t=this.survey.progressBarType.toLowerCase();if(t===`questions`||t===`requiredquestions`||t===`correctquestions`||!this.survey.onGetProgressText.isEmpty){let t=this.getProgressInfo();e.questionCount=t.questionCount,e.answeredQuestionCount=t.answeredQuestionCount,e.requiredQuestionCount=t.requiredQuestionCount,e.requiredAnsweredQuestionCount=t.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.survey.onGetProgressText.fire(this.survey,e),e.text}getProgressTextCore(e){let t=this.survey.progressBarType.toLowerCase();if(t===`questions`)return this.survey.getLocalizationFormatString(`questionsProgressText`,e.answeredQuestionCount,e.questionCount);if(t===`requiredquestions`)return this.survey.getLocalizationFormatString(`questionsProgressText`,e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if(t===`correctquestions`){let t=this.survey.getCorrectedAnswerCount();return this.survey.getLocalizationFormatString(`questionsProgressText`,t,e.questionCount)}let n=this.survey.isDesignMode?this.survey.pages:this.survey.visiblePages,r=n.indexOf(this.survey.currentPage)+1;return this.survey.getLocalizationFormatString(`progressText`,r,n.length)}createLayoutElement(e,t,n,r){let i={id:e,component:t,getData:n,processResponsiveness:r,isInContainer:e=>this.isProgressBarInContainer(i,e)};return i}getProgressBarComponentName(){let e=this.survey.progressBarType;return!G.legacyProgressBarView&&dI.currentType==="default"&&zI(e,`pages`)&&(e=`buttons`),`progress-`+e}isProgressBarInContainer(e,t){if(this.survey.state!==`running`||!zI(e.id,this.getProgressBarComponentName())||this.survey.questionsOnPageMode==`singlePage`&&this.survey.progressBarType!=`questions`)return!1;let n=this.survey.findLayoutElement(`advanced-header`),r=n&&n.data,i=!r||r.hasBackgroun
84d;return zI(this.survey.progressBarLocation,`aboveHeader`)&&(i=!1),zI(this.survey.progressBarLocation,`belowHeader`)&&(i=!0),this.survey.showTOC&&!(r&&r.hasBackground)&&!this.survey.isStartPageActive?t===`center`&&this.survey.isShowProgressBarOnTop?(i?delete e.index:e.index=-150,!0):t===`contentBottom`&&this.survey.isShowProgressBarOnBottom?(e.index=150,!0):!1:t===`header`&&!i?(e.index=-150,this.survey.isShowProgressBarOnTop&&!this.survey.isStartPageActive):t===`center`&&i?(e.index&&delete e.index,this.survey.isShowProgressBarOnTop&&!this.survey.isStartPageActive):t===`footer`&&this.survey.isShowProgressBarOnBottom&&!this.survey.isStartPageActive}};function zI(e,t){return!e||!t?!1:e.toUpperCase()===t.toUpperCase()}var BI=class{constructor(e){this.survey=e}createLayoutElements(){return[{id:`buttons-navigation`,component:`sv-action-bar`,getData:()=>this.survey.navigationBar,isInContainer:e=>this.isBottomNavigationButtonsInContainer(e)},{id:`buttons-navigation-top`,component:`sv-action-bar`,getData:()=>this.survey.navigationBar,isInContainer:e=>this.isTopNavigationButtonsInContainer(e)}]}isTopNavigationButtonsInContainer(e){return e===`contentTop`&&this.survey.isNavigationButtonsShowingOnTop}isBottomNavigationButtonsInContainer(e){return e===`contentBottom`&&this.survey.isNavigationButtonsShowingOnBottom}},VI=class extends Ij{constructor(e,t,n){super(),this.survey=e,this.valuesHash=t,this.variablesHash=n}getObj(){return this.survey}getValue(e){let t=e.path;if(t.length===1){let e=t[0].name,n=this.getBuiltInVariableValue(e);if(e===`locale`&&(n=this.survey.locale||mj.defaultLocale),n!==void 0)return{value:n,isFound:!0}}if(e.isProperty&&t.length>1){if(t[0].name.toLocaleLowerCase()===G.expressionVariables.survey)return new Rj(this.survey).getValue({path:t.slice(1),isRoot:!1,index:-1});let e=this.getPageByName(t[0].name);if(e)return new Rj(e).getValue({path:t.slice(1),isRoot:!1,index:-1});let n=this.getPanelByName(t[0].name);if(n)return new Rj(n).getValue({path:t.slice(1),isRoot:!1,index:-1})}let n=new Lj(this.variablesHash).getValue(e);return n&&n.isFound||(n=super.getValue(e),n&&n.isFound)?n:new Lj(this.valuesHash).getValue(e)}getPageByName(e){if(!e)return;let t=e.toLowerCase();for(let e=0;e<this.survey.pages.length;e++)if(this.survey.pages[e].name.toLowerCase()===t)return this.survey.pages[e]}getPanelByName(e){if(!e)return;let t=e.toLowerCase(),n=this.survey.getAllPanels();for(let e=0;e<n.length;e++)if(n[e].name&&n[e].name.toLowerCase()===t)return n[e]}updateValueByItem(e,t){let n=G.expressionVariables.unwrapPostfix;e.endsWith(n)&&(e=e.substring(0,e.length-n.length));let r=this.survey.getQuestionByValueName(e,!0);r&&(t.isFound=!0,t.obj=r,t.context=r.getValueGetterContext())}isSearchNameRevert(){return!0}getBuiltInVariableValue(e){let t=this.survey;if(e=e.toLocaleLowerCase(),e===`pageno`){var n=t.currentPage;return n==null?0:t.visiblePages.indexOf(n)+1}if(e===`pagecount`)return t.visiblePageCount;if(e===`correctedanswers`||e===`correctanswers`||e===`correctedanswercount`)return t.getCorrectedAnswerCount();if(e===`incorrectedanswers`||e===`incorrectanswers`||e===`incorrectedanswercount`)return t.getInCorrectedAnswerCount();if(e===`questioncount`)return t.getQuizQuestionCount()}},Z=class e extends EP{get platformName(){return e.platform}get commentSuffix(){return G.commentSuffix}set commentSuffix(e){G.commentSuffix=e}get commentPrefix(){return this.commentSuffix}set commentPrefix(e){this.commentSuffix=e}constructor(e=null,t=null){super(),this.valuesHash={},this.variablesHash={},this.onEndLoadingFromJson=this.addEvent(),this.onTriggerExecuted=this.addEvent(),this.onCompleting=this.addAsyncEvent(),this.onComplete=this.addEvent(),this.onShowingPreview=this.addEvent(),this.onNavigateToUrl=this.addEvent(),this.onStarted=this.addEvent(),this.onPartialSend=this.addEvent(),this.onCurrentPageChanging=this.addAsyncEvent(),this.onCurrentPageChanged=this.addEvent(),this.onValueChanging=this.addEvent(),this.onValueChanged=this.addEvent(),this.onVariableChanged=this.addEvent(),this.onQuestionVisibleChanged=this.addEvent(),this.onVisibleChanged=this.onQuestionVisibleChanged,this.onPageVisibleChanged=this.addEvent(),this.onPanelVisibleChanged=this.addEvent(),this.onQuestionCreated=this.addEvent(),this.onQuestionAdded=this.addEvent(),this.onQuestionRemoved=this.addEvent(),this.onPanelAdded=this.addEvent(),this.onPanelRemoved=this.addEvent(),this.onPageAdded=this.addEvent(),this.onCreateRegexValidator=this.addEvent(),this.onValidateQuestion=this.addEvent(),this.onSettingQuestionErrors=this.addEvent(),this.onServerValidateQuestions=this.addEvent(),this.onValidatePanel=this.addEvent(),this.onErrorCustomText=this.addEvent(),this.onValidatePage=this.addEvent(),this.onValidatedErrorsOnCurrentPage=this.onValidatePage,this.onProcessHtml=this.addEvent(()=>this.locStrsChanged()),this.onGetQuestionDisplayValue=this.addEvent(),this.onGetQuestionTitle=this.addEvent(()=>this.locStrsChanged()),this.onGetTitleTagName=this.addEvent(),this.onGetQuestionNumber=this.addEvent(()=>this.resetVisibleIndexes()),this.onGetQuestionNo=this.onGetQuestionNumber,this.onGetPanelNumber=this.addEvent(()=>this.resetVisibleIndexes()),this.onGetPageNumber=this.addEvent(),this.onGetProgressText=this.addEvent(()=>this.updateProgressText()),this.onProgressText=this.onGetProgressText,this.onTextMarkdown=this.addEvent(()=>this.locStrsChanged()),this.onTextRenderAs=this.addEvent(),this.onSendResult=this.addEvent(),this.onGetResult=this.addEvent(),this.onOpenFileChooser=this.addEvent(),this.onUploadFiles=this.addEvent(),this.onDownloadFile=this.addEvent(),this.onClearFiles=this.addEvent(),this.onChoicesLoaded=this.addEvent(),this.onLoadChoicesFromServer=this.onChoicesLoaded,this.onLoadedSurveyFromService=this.addEvent(),this.onProcessDynamicText=this.addEvent(),this.onProcessTextValue=this.onProcessDynamicText,this.onUpdateQuestionCssClasse
84s=this.addEvent(()=>this.currentPageUpdateElementCss()),this.onUpdatePanelCssClasses=this.addEvent(()=>this.currentPageUpdateElementCss()),this.onUpdatePageCssClasses=this.addEvent(()=>this.currentPageUpdateElementCss()),this.onUpdateChoiceItemCss=this.addEvent(),this.onAfterRenderSurvey=this.addEvent(),this.onAfterRenderHeader=this.addEvent(),this.onAfterRenderPage=this.addEvent(),this.onAfterRenderQuestion=this.addEvent(),this.onAfterRenderQuestionInput=this.addEvent(),this.onAfterRenderPanel=this.addEvent(),this.onFocusInQuestion=this.addEvent(),this.onFocusInPanel=this.addEvent(),this.onShowingChoiceItem=this.addEvent(()=>this.rebuildQuestionChoices()),this.onChoicesLazyLoad=this.addEvent(),this.onChoicesSearch=this.addEvent(),this.onGetChoiceDisplayValue=this.addEvent(),this.onMatrixRowAdded=this.addEvent(),this.onMatrixRowAdding=this.addEvent(),this.onMatrixBeforeRowAdded=this.onMatrixRowAdding,this.onMatrixRowRemoving=this.addEvent(),this.onMatrixRowRemoved=this.addEvent(),this.onMatrixRenderRemoveButton=this.addEvent(),this.onMatrixAllowRemoveRow=this.onMatrixRenderRemoveButton,this.onMatrixDetailPanelVisibleChanged=this.addEvent(),this.onMatrixCellCreating=this.addEvent(),this.onMatrixCellCreated=this.addEvent(),this.onAfterRenderMatrixCell=this.addEvent(),this.onMatrixAfterCellRender=this.onAfterRenderMatrixCell,this.onMatrixCellValueChanged=this.addEvent(),this.onMatrixCellValueChanging=this.addEvent(),this.onMatrixCellValidate=this.addEvent(),this.onMatrixColumnAdded=this.addEvent(),this.onMultipleTextItemAdded=this.addEvent(),this.onDynamicPanelAdded=this.addEvent(),this.onDynamicPanelRemoved=this.addEvent(),this.onDynamicPanelRemoving=this.addEvent(),this.onTimerTick=this.addEvent(),this.onTimer=this.onTimerTick,this.onTimerPanelInfoText=this.addEvent(),this.onDynamicPanelValueChanged=this.addEvent(),this.onDynamicPanelItemValueChanged=this.onDynamicPanelValueChanged,this.onDynamicPanelValueChanging=this.addEvent(),this.onGetDynamicPanelTabTitle=this.addEvent(),this.onDynamicPanelCurrentIndexChanged=this.addEvent(),this.onCheckAnswerCorrect=this.addEvent(),this.onIsAnswerCorrect=this.onCheckAnswerCorrect,this.onDragDropAllow=this.addEvent(),this.onMatrixRowDragOver=this.addEvent(),this.onExpressionRunning=this.addEvent(),this.onScrollToTop=this.addEvent(),this.onScrollingElementToTop=this.onScrollToTop,this.onLocaleChangedEvent=this.addEvent(),this.onGetQuestionTitleActions=this.addEvent(),this.onGetPanelTitleActions=this.addEvent(),this.onGetPageTitleActions=this.addEvent(),this.onGetPanelFooterActions=this.addEvent(),this.onGetMatrixRowActions=this.addEvent(),this.onElementContentVisibilityChanged=this.addEvent(),this.onUIStateChanged=this.addEvent(),this.onGetExpressionDisplayValue=this.addEvent(),this.onCheckSingleInputPerPageMode=this.addEvent(),this.onGetLoopQuestions=this.addEvent(),this.onPopupVisibleChanged=this.addEvent(),this.onOpenDropdownMenu=this.addEvent(),this.onElementWrapperComponentName=this.addEvent(),this.onElementWrapperComponentData=this.addEvent(),this.onCreateCustomChoiceItem=this.addEvent(),this.jsonErrors=null,this.cssValue=null,this.showHeaderOnCompletePage=`auto`,this._isLazyRenderingSuspended=!1,this.hideRequiredErrors=!1,this.cssVariables={},this._isMobile=!1,this._isCompact=!1,this.setValueOnExpressionCounter=0,this._isDesignMode=!1,this.validationAllowSwitchPages=!1,this.validationAllowComplete=!1,this.isNavigationButtonPressed=!1,this.mouseDownPage=null,this.isSmoothScrollEnabled=!1,this.onResize=new vj,this.isCurrentPageRendering=!0,this.isCurrentPageRendered=void 0,this.skeletonHeight=void 0,this.isTriggerIsRunning=!1,this.triggerKeys=null,this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes=!1,this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.isEndLoadingFromJson=null,this.nofifyQuesitonHash={},this.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},this.setValueFromTriggerCounter=0,this.isMovingPage=!1,this.needRenderIcons=!0,this.skippedPages=[],this.skeletonComponentName=`sv
84-skeleton`,this.taskManager=new CI,this.questionErrorComponent=`sv-question-error`,this.createNewArray(`pages`,e=>{e.isReadyForCleanChangedCallback&&e.isReadyForCleanChangedCallback(),this.doOnPageAdded(e)},e=>{e.isReadyForClean?this.doOnPageRemoved(e):e.isReadyForCleanChangedCallback=()=>{this.doOnPageRemoved(e),e.isReadyForCleanChangedCallback=void 0}}),this.locTitle.onStringChanged.add(()=>this.resetPropertyValue(`titleIsEmpty`)),e&&((typeof e==`string`||e instanceof String)&&(e=JSON.parse(e)),e&&e.clientId&&(this.clientId=e.clientId),this.fromJSON(e),this.surveyId&&this.loadSurveyFromService(this.surveyId,this.clientId)),t&&this.render(t),this.updateCss(),this.setCalculatedWidthModeUpdater()}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`questionsOnPageMode`&&this.onQuestionsOnPageModeChanged(t),e===`locale`&&this.onSurveyLocaleChanged(),e===`randomSeed`&&this.randomSeedChanged(),e===`firstPageIsStartPage`&&this.onFirstPageIsStartedChanged(),e===`readOnly`&&this.onReadOnlyChanged(),[`questionStartIndex`,`requiredMark`,`questionTitlePattern`].indexOf(e)>-1&&this.resetVisibleIndexes(),[`isLoading`,`isCompleted`,`isCompletedBefore`,`readOnly`,`isStartedState`,`currentPage`,`isShowingPreview`].indexOf(e)>-1&&this.updateState(),[`state`,`currentPage`,`showPreviewBeforeComplete`].indexOf(e)>-1&&this.onStateAndCurrentPageChanged(),(e===`logo`||e===`logoPosition`)&&this.resetHasLogo(),e===`backgroundImage`&&this.resetPropertyValue(`renderBackgroundImage`),[`backgroundImage`,`backgroundOpacity`,`backgroundImageFit`,`fitToContainer`,`backgroundImageAttachment`].indexOf(e)>-1&&this.resetPropertyValue(`backgroundImageStyle`),(e===`showPrevButton`||e===`showCompleteButton`)&&this.updateButtonsVisibility()}currentPageUpdateElementCss(){this.currentPage&&this.currentPage.updateElementCss()}get tocModel(){return this.tocModelValue||(this.tocModelValue=new LI(this)),this.tocModelValue}get progressTextModel(){return this.progressTextModelValue||(this.progressTextModelValue=new RI(this)),this.progressTextModelValue}get navigationLayoutModel(){return this.navigationLayoutModelValue||(this.navigationLayoutModelValue=new BI(this)),this.navigationLayoutModelValue}processClosedPopup(e,t){throw Error(`Method not implemented.`)}createTryAgainAction(){return{id:`save-again`,title:this.getLocalizationString(`saveAgainButton`),action:()=>{this.isCompleted?this.saveDataOnComplete():this.doComplete()}}}getOrCreateHtmlLocString(e,t,n){return this.getOrCreateLocStr(e,!1,t,e=>{n&&(e.onGetTextCallback=e=>this.processHtml(e,n))})}getType(){return`survey`}get pages(){return this.getPropertyValue(`pages`)}render(e=null){this.renderCallback&&this.renderCallback()}updateSurvey(e,t){for(var n in e)if(n!=`model`&&n!=`children`){if(n.indexOf(`on`)==0&&this[n]&&this[n].add){let t=e[n];this[n].add(function(e,n){t(e,n)})}else this[n]=e[n]}e&&e.data&&this.onValueChanged.add((t,n)=>{e.data[n.name]=n.value})}getCss(){return this.css}updateCompletedPageCss(){this.containerCss=this.css.container,this.completedCss=new X().append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=new X().append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=new X().append(this.css.body).append(this.css.bodyLoading).toString()}updateCss(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss(),this.updateWrapperFormCss()}get css(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,dI.getCss())),this.cssValue}set css(e){this.setCss(e)}setCss(e,t=!0){t?this.mergeValues(e,this.css):this.cssValue=e,this.updateElementCss(!1)}
84get cssTitle(){return this.css.title}get bodyCss(){return new X().append(this.css.body).append(this.css.bodyWithTimer,this.showTimer&&this.state===`running`).append(this.css.body+`--`+this.calculatedWidthMode).toString()}get bodyContainerCss(){return this.css.bodyContainer}get cssNavigationComplete(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)}get cssNavigationPreview(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)}get cssNavigationEdit(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)}get cssNavigationPrev(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)}get cssNavigationStart(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)}get cssNavigationNext(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)}get cssSurveyNavigationButton(){return new X().append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()}insertAdvancedHeader(e){e.survey=this,this.layoutElements.push(e.createLayoutElements()[0])}get lazyRenderEnabled(){return this.lazyRenderEnabledValue===!0}set lazyRenderEnabled(e){if(this.lazyRenderEnabled===e)return;this.lazyRenderEnabledValue=e;let t=this.currentPage;t&&t.updateRows()}get lazyRendering(){return this.lazyRenderEnabled}set lazyRendering(e){this.lazyRenderEnabled=e}get isLazyRendering(){return this.lazyRenderEnabled||G.lazyRender.enabled}get lazyRenderFirstBatchSize(){return this.lazyRenderFirstBatchSizeValue||G.lazyRender.firstBatchSize}set lazyRenderFirstBatchSize(e){this.lazyRenderFirstBatchSizeValue=e}get isLazyRenderingSuspended(){return this._isLazyRenderingSuspended}suspendLazyRendering(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!0)}releaseLazyRendering(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!1)}updateLazyRenderingRowsOnRemovingElements(){var e,t;if(this.isLazyRendering){var n=this.currentPage;n&&LN((t=this.rootElement||((e=this.creator)==null?void 0:e.rootElement))==null?void 0:t.querySelector(`#${n.id}`))}}get triggers(){return this.getArrayPropertyValue(`triggers`,e=>{e.setOwner(this)})}set triggers(e){this.setArrayPropertyValue(`triggers`,e)}get calculatedValues(){return this.getArrayPropertyValue(`calculatedValues`,e=>{e.setOwner(this)})}set calculatedValues(e){this.setArrayPropertyValue(`calculatedValues`,e)}get focusFirstQuestionAutomatic(){return this.autoFocusFirstQuestion}set focusFirstQuestionAutomatic(e){this.autoFocusFirstQuestion=e}get focusOnFirstError(){return this.autoFocusFirstError}set focusOnFirstError(e){this.autoFocusFirstError=e}get showNavigationButtons(){return this.getPropertyValue(`showNavigationButtons`)}set showNavigationButtons(e){e===`both`&&(e=`topBottom`);let t=[`top`,`bottom`,`topBottom`].indexOf(e)>-1,n=e===!0||t;this.setPropertyValue(`showNavigationButtons`,n),t&&(this.navigationButtonsLocation=e)}get showCompletedPage(){return this.showCompletePage}set showCompletedPage(e){this.showCompletePage=e}get navigateToUrlOnCondition(){return this.getArrayPropertyValue(`navigateToUrlOnCondition`,e=>{e.locOwner=this})}set navigateToUrlOnCondition(e){this.setArrayPropertyValue(`navigateToUrlOnCondition`,e)}getNavigateToUrl(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!1)),t}navigateTo(){var e={url:this.getNavigateToUrl(),allow:!0};this.onNavigateToUrl.fire(this,e),!(!e.url||!e.allow)&&UN(e.url)}get requiredText(){return this.requiredMark}set requiredText(e){this.requiredMark=e}beforeSettingQuestionErrors(e,t){this.makeRequiredErrorsInvisible(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})}makeRequiredErrorsInvisible(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var n=e[t].getErrorType();(n==`required`||n==`requireoneanswer`)&&(e[t].visible=!1)}}getQuestionStartIndex(e){if(e>=0&&e<this.visiblePages.length)for(let t=e;t>=0;t--){let e=this.visiblePages[t];if(e.questionStartIndex)return e.questionStartIndex}return this.questionStartIndex}get maxOthersLength(){return this.maxCommentLength}set maxOthersLength(e){this.maxCommentLength=e}get goNextPageAutomatic(){return this.autoAdvanceEnabled}set goNextPageAutomatic(e){this.autoAdvanceEnabled=e}get allowCompleteSurveyAutomatic(){return this.autoAdvanceAllowComplete}set allowCompleteSurveyAutomatic(e){this.autoAdvanceAllowComplete=e}getValidateVisitedEmptyFields(){return this.validateVisitedEmptyFields&&this.isValidateOnValueChange}clearIncorrectValues(e=!1){for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var n=this.data,r=!1;for(var i in n)if(!this.getQuestionByValueName(i)&&!(this.iscorrectValueWithPostPrefix(i,G.commentSuffix)||this.iscorrectValueWithPostPrefix(i,G.matrix.totalsSuffix))){var a=this.getCalculatedValueByName(i);a&&a.includeIntoResult||(r=!0,delete n[i])}r&&(this.data=n)}}iscorrectValueWithPostPrefix(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substring(0,e.indexOf(t)))}get locale(){return this.getPropertyValueWithoutDefault(`locale`)||mj.currentLocale}set locale(e){e===mj.defaultLocale&&!mj.currentLocale&&(e=``),this.setPropertyValue(`locale`,e)}onSurveyLocaleChanged(){this.notifyElementsOnAnyValueOrVariableChanged(`locale`),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)}get localeDir(){return mj.localeDirections[this.locale]}getUsedLocales(){var e=[];this.addUsedLocales(e);var t=e.indexOf(`default`);if(t>-1){var n=mj.defaultLocale,r=e.indexOf(n);r>-1&&e.splice(r,1),t=e.indexOf(`default`),e[t]=n}return e}localeChanged(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()}getLocale(){return this.locale}locStrsChanged(){var e;if(!this.isClearingUnsedValues&&(super.locStrsChanged(),this.currentPage)){if(this.isDesignMode)this.pages.forEac
84h(e=>e.locStrsChanged());else{var t=this.activePage;t&&t.locStrsChanged();let e=this.visiblePages;for(var n=0;n<e.length;n++)e[n].navigationLocStrChanged()}(e=this.navigationBarValue)==null||e.locStrsChanged()}}getAllChildren(){let e=super.getAllChildren();return e.push(...this.pages),e.push(...this.calculatedValues),e.push(...this.triggers),e.push(...this.completedHtmlOnCondition),e.push(...this.navigateToUrlOnCondition),e}getMarkdownHtml(e,t,n){return this.getSurveyMarkdownHtml(this,e,t,n)}getRenderer(e){return this.getRendererForString(this,e)}getRendererContext(e){return this.getRendererContextForString(this,e)}getRendererForString(e,t,n){let r=this.getBuiltInRendererForString(e,t,n);r=this.elementWrapperComponentNameCore(r,e,`string`,t);let i={element:e,name:t,renderAs:r};return this.onTextRenderAs.fire(this,i),i.renderAs}getRendererContextForString(e,t,n){return this.elementWrapperDataCore(t,e,`string`)}getExpressionDisplayValue(e,t,n){let r={question:e,value:t,displayValue:n};return this.onGetExpressionDisplayValue.fire(this,r),r.displayValue}getBuiltInRendererForString(e,t,n){if(this.isDesignMode)return yj.editableRenderer}getProcessedText(e,t){return this.processText(e,!0,t)}getLocString(e){return this.getLocalizationString(e)}getErrorCustomText(e,t){return this.getSurveyErrorCustomText(this,e,t)}createRegexValidator(e,t,n,r){let i={question:e,validator:t,pattern:n,flags:r};return this.onCreateRegexValidator.fire(this,i),new RegExp(i.pattern,i.flags)}getSurveyErrorCustomText(e,t,n){let r={text:t,name:n.getErrorType(),obj:e,error:n};return this.onErrorCustomText.fire(this,r),r.text}getQuestionDisplayValue(e,t){let n={question:e,displayValue:t};return this.onGetQuestionDisplayValue.fire(this,n),n.displayValue}get renderedLogoWidth(){return this.logoWidth?ij(this.logoWidth):void 0}get renderedStyleLogoWidth(){return this.logoWidth?aj(this.logoWidth):void 0}get renderedLogoHeight(){return this.logoHeight?ij(this.logoHeight):void 0}get renderedStyleLogoHeight(){return this.logoHeight?aj(this.logoHeight):void 0}get hasLogo(){return this.getPropertyValue(`hasLogo`,void 0,()=>!!this.logo&&this.logoPosition!==`none`)}resetHasLogo(){this.resetPropertyValue(`hasLogo`)}get isLogoBefore(){return!this.isDesignMode&&this.renderedHasLogo&&(this.logoPosition===`left`||this.logoPosition===`top`)}get isLogoAfter(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&(this.logoPosition===`right`||this.logoPosition===`bottom`)}get logoClassNames(){return new X().append(this.css.logo).append({left:`sv-logo--left`,right:`sv-logo--right`,top:`sv-logo--top`,bottom:`sv-logo--bottom`}[this.logoPosition]).toString()}get titleIsEmpty(){return this.getPropertyValue(`titleIsEmpty`,void 0,()=>this.locTitle.isEmpty)}get renderedHasTitle(){return this.isDesignMode?this.isPropertyVisible(`title`):!this.titleIsEmpty&&this.showTitle}get renderedHasDescription(){let e=!!this.hasDescription&&this.showTitle;if(this.isDesignMode){let e=this.isPropertyVisible(`description`);return this.beforeShowInplaceDescriptionEditorCallback&&(e=this.beforeShowInplaceDescriptionEditorCallback(this,e)),e}return e}get hasTitle(){return this.renderedHasTitle}get renderedHasLogo(){return this.isDesignMode?this.isPropertyVisible(`logo`):this.hasLogo}get renderedHasHeader(){return this.renderedHasTitle||this.renderedHasLogo}get themeVariables(){return Object.assign({},this.cssVariables)}setIsMobile(e=!0){this._isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().forEach(t=>t.setIsMobile(e)))}get isMobile(){return this._isMobile&&!this.isDesignMode}set isCompact(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss(),this.triggerResponsiveness(!0))}get isCompact(){return this._isCompact}isLogoImageChoosen(){return this.locLogo.renderedHtml}get titleMaxWidth(){return``}get renderBackgroundImage(){return this.getPropertyValue(`renderBackgroundImage`,void 0,()=>WN(this.backgroundImage))}get backgroundImageStyle(){return this.getPropertyValue(`backgroundImageStyle`,void 0,()=>this.calcBackgroundImageStyle())}calcBackgroundImageStyle(){return{opacity:this.backgroundOpacity,backgroundImage:this.renderBackgroun
84dImage,backgroundSize:this.backgroundImageFit,backgroundAttachment:this.fitToContainer?void 0:this.backgroundImageAttachment}}updateWrapperFormCss(){this.wrapperFormCss=new X().append(this.css.rootWrapper).append(this.css.rootWrapperHasImage,!!this.backgroundImage).append(this.css.rootWrapperFixed,!this.formScrollDisabled).toString()}get completedHtml(){return this.getLocStringText(this.locCompletedHtml)}set completedHtml(e){this.setLocStringText(this.locCompletedHtml,e)}get locCompletedHtml(){return this.getOrCreateHtmlLocString(`completedHtml`,`completingSurvey`)}get completedHtmlOnCondition(){return this.getArrayPropertyValue(`completedHtmlOnCondition`,e=>{e.locOwner=this})}set completedHtmlOnCondition(e){this.setArrayPropertyValue(`completedHtmlOnCondition`,e)}runExpression(e,t){if(!e)return null;var n=this.getFilteredProperties();let r=this.createExpressionRunner(e),i;return r.onRunComplete=e=>{i=e,t&&t(e)},r.runContext(this.getValueGetterContext(),n)||i}beforeExpressionRunning(e,t,n){let r={element:e,propertyName:t,expression:n,allow:!0};return this.onExpressionRunning.fire(this,r),r.allow?r.expression:``}get isSettingValueOnExpression(){return this.setValueOnExpressionCounter>0}startSetValueOnExpression(){this.setValueOnExpressionCounter++}finishSetValueOnExpression(){this.setValueOnExpressionCounter--}runCondition(e){if(!e)return!1;let t=this.getFilteredProperties();return new Jj(e).runContext(this.getValueGetterContext(),t)}runTriggers(){this.checkTriggers(this.getFilteredValues(),!1)}get renderedCompletedHtml(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml}getExpressionItemOnRunCondition(e){if(e.length==0)return null;for(var t=this.getFilteredProperties(),n=0;n<e.length;n++)if(e[n].runCondition(t))return e[n];return null}get completedBeforeHtml(){return this.getLocStringText(this.locCompletedBeforeHtml)}set completedBeforeHtml(e){this.setLocStringText(this.locCompletedBeforeHtml,e)}get locCompletedBeforeHtml(){return this.getOrCreateHtmlLocString(`completedBeforeHtml`,`completingSurveyBefore`,`completed-before`)}get loadingHtml(){return this.getLocStringText(this.locLoadingHtml)}set loadingHtml(e){this.setLocStringText(this.locLoadingHtml,e)}get locLoadingHtml(){return this.getOrCreateHtmlLocString(`loadingHtml`,`loadingSurvey`,`loading`)}getNavigationCss(e,t){return new X().append(e).append(t).toString()}get navigationBar(){return this.navigationBarValue||(this.navigationBarValue=this.createNavigationBar(),this.navigationBarValue.locOwner=this,this.updateNavigationCss(),this.navigationBarValue.flushUpdates()),this.navigationBarValue}createNavigationBar(){if(this.createNavigationBarCallback)return this.createNavigationBarCallback();let e=new XN;return e.setItems(this.createNavigationActions()),e}addNavigationItem(e){e.component||(e.component=`sv-nav-btn`),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton);let t=e.action;return e.action=()=>{this.waitAndExecute(()=>t())},this.navigationBar.addAction(e)}removeNavigationItem(e){var t;(t=this.navigationBarValue)==null||t.removeActionById(e)}createNavigationActions(){let e=`sv-nav-btn`,t=new kN({id:`sv-nav-start`,visible:new KM(()=>this.isStartPageActive),visibleIndex:10,locTitle:this.locStartSurveyText,action:()=>this.start(),component:e}),n=new kN({id:`sv-nav-prev`,visible:new KM(()=>this.isShowPrevButton),enabled:new KM(()=>!this.isNavigationBlocked),visibleIndex:20,data:{mouseDown:()=>this.navigationMouseDown()},locTitle:this.locPagePrevText,action:()=>this.performPrevious(),component:e}),r=new kN({id:`sv-nav-next`,visible:new KM(()=>this.isShowNextButton),enabled:new KM(()=>!this.isNavigationBlocked),visibleIndex:30,data:{mouseDown:()=>this.nextPageMouseDown()},locTitle:this.locPageNextText,action:()=>this.nextPageUIClick(),component:e}),i=new kN({id:`sv-nav-preview`,visible:new KM(()=>this.isPreviewButtonVisible),enabled:new KM(()=>!this.isNavigationBlocked),visibleIndex:40,data:{mouseDown:()=>this.navigationMouseDown()},locTitle:this.locPreviewText,action:()=>this.showPreview(),component:e}),a=new kN({id:`sv-nav-complete`,visible:new KM(()=>this.isCompleteButtonVisible),enabled:new KM(()=>!this.isNavigationBlocked),visibleIndex:50,data:{mouseDown:()=>this.navigationMouseDown()},locTitle:this.locCompleteText,action:()=>this.taskManager.waitAndExecute(()=>this.tryComplete()),component:e});return this._updateNavigationItemCssCallback=()=>{t.innerCss=this.cssNavigationStart,n.innerCss=this.cssNavigationPrev,r.innerCss=this.cssNavigationNext,i.innerCss=this.cssNavigationPreview,a.innerCss=this.cssNavigationComplete},[t,n,r,i,a]}updateNavigationCss(){let e=this.navigationBarValue;
84e&&(e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer,this._updateNavigationItemCssCallback&&this._updateNavigationItemCssCallback())}getElementTitleTagName(e,t){if(this.onGetTitleTagName.isEmpty)return t;let n={element:e,tagName:t};return this.onGetTitleTagName.fire(this,n),n.tagName}getQuestionTitlePatternOptions(){let e=[],t=this.getLocalizationString(`questionTitlePatternText`),n=this.questionStartIndex?this.questionStartIndex:`1.`;return e.push({value:`numTitleRequire`,text:n+` `+t+` `+this.requiredMark}),e.push({value:`numRequireTitle`,text:n+` `+this.requiredMark+` `+t}),e.push({value:`numTitle`,text:n+` `+t}),e}get questionTitleTemplate(){return this.getLocStringText(this.locQuestionTitleTemplate)}set questionTitleTemplate(e){this.setLocStringText(this.locQuestionTitleTemplate,e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,`no`,this.questionStartIndex,`1`),this.requiredMark=this.getNewQuestionTitleElement(e,`require`,this.requiredMark,`*`)}getNewTitlePattern(e){if(e){for(var t=[];e.indexOf(`{`)>-1;){e=e.substring(e.indexOf(`{`)+1);var n=e.indexOf(`}`);if(n<0)break;t.push(e.substring(0,n)),e=e.substring(n+1)}if(t.length>1){if(t[0]==`require`)return`requireNumTitle`;if(t[1]==`require`&&t.length==3)return`numRequireTitle`;if(t.indexOf(`require`)<0)return`numTitle`}if(t.length==1&&t[0]==`title`)return`numTitle`}return`numTitleRequire`}getNewQuestionTitleElement(e,t,n,r){if(t=`{`+t+`}`,!e||e.indexOf(t)<0)return n;for(var i=e.indexOf(t),a=``,o=``,s=i-1;s>=0&&e[s]!=`}`;s--);for(s<i-1&&(a=e.substring(s+1,i)),i+=t.length,s=i;s<e.length&&e[s]!=`{`;s++);for(s>i&&(o=e.substring(i,s)),s=0;s<a.length&&a.charCodeAt(s)<33;)s++;for(a=a.substring(s),s=o.length-1;s>=0&&o.charCodeAt(s)<33;)s--;return o=o.substring(0,s+1),!a&&!o?n:a+(n||r)+o}get locQuestionTitleTemplate(){return this.getOrCreateLocStr(`questionTitleTemplate`,!0)}getUpdatedQuestionTitle(e,t){if(this.onGetQuestionTitle.isEmpty)return t;let n={question:e,title:t};return this.onGetQuestionTitle.fire(this,n),n.title}getUpdatedQuestionNo(e,t){if(this.onGetQuestionNumber.isEmpty)return t;let n={question:e,number:t,no:t};return this.onGetQuestionNumber.fire(this,n),n.no===t?n.number:n.no}getUpdatedPanelNo(e,t){if(this.onGetPanelNumber.isEmpty)return t;let n={panel:e,number:t};return this.onGetPanelNumber.fire(this,n),n.number}getUpdatedPageNo(e,t){if(this.onGetPageNumber.isEmpty)return t;let n={page:e,number:t};return this.onGetPageNumber.fire(this,n),n.number}get showQuestionNumbers(){return this.getPropertyValue(`showQuestionNumbers`)}set showQuestionNumbers(e){e===!0&&(e=`on`),e===!1&&(e=`off`),e=e.toLowerCase(),e=e===`onpage`?`onPage`:e,e!==this.showQuestionNumbers&&(this.setPropertyValue(`showQuestionNumbers`,e),this.updateVisibleIndexes())}get progressBar(){return this.progressBarValue||(this.progressBarValue=new kI(this)),this.progressBarValue}get showProgressBar(){return this.getPropertyValue(`showProgressBar`)}set showProgressBar(e){this.setShowProgressBar(e)}setShowProgressBar(e){e===`off`&&(e=!1),e===!0||e===!1?this.setPropertyValue(`showProgressBar`,e):(this.setPropertyValue(`showProgressBar`,!0),this.progressBarLocation=e)}get progressBarComponentName(){let e=this.progressBarType;return!G.legacyProgressBarView&&dI.currentType==="default"&&HI(e,`pages`)&&(e=`buttons`),`progress-`+e}get isShowProgressBarOnTop(){return!this.canShowProgressBar()||!this.showProgressBar?!1:[`auto`,`aboveheader`,`belowheader`,`topbottom`,`top`,`both`].indexOf(this.progressBarLocation)!==-1}get isShowProgressBarOnBottom(){return!this.canShowProgressBar()||!this.showProgressBar?!1:this.progressBarLocation===`bottom`||this.progressBarLocation===`both`||this.progressBarLocation===`topbottom`}getProgressTypeComponent(){return`sv-progress-`+this.progressBarType.toLowerCase()}getProgressCssClasses(e=``){return new X().append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop&&(!e||e==`header`)).append(this.css.progressBottom,this.isShowProgressBarOnBottom&&(!e||e==`footer`)).toString()}canShowProgressBar(){return!this.isShowingPreview||!this.showPreviewBeforeComplete||this.previewMode!=`allQuestions`}get processedTitle(){return this.locTitle.renderedHtml}get questionTitleLocation(){return this.getPropertyValue(`questionTitleLocation`)}set questionTitleLocation(e){this.setPropertyValue(`questionTitleLocation`,e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)}updateElementCss(e){this.startPage&&this.startPage.updateElementCss(e);for(var t=this.visiblePages,n=0;n<t.length;n++)t[n].updateElementCss(e);this.updateCss()}get mode(){return this.readOnly?`display`:`edit`}set mode(e){e=e.toLowerCase(),e!=this.mode&&(e==`edit`||e==`display`)&&(this.readOnly=e==`display`)}onReadOnlyChanged(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue(`isReadOnly`,t.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()}get data(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n],i=this.getDataValueCore(this.valuesHash,r);i!==void 0&&(e[r]=i)}return this.setCalculatedValuesIntoResult(e),e}set data(e){this.valuesHash={},this.setDataCore(e,!e)}mergeData(e){if(!e)return;let t=this.data;this.mergeValues(e,t),this.setDataCore(t)}get uiState(){let e={};this.lastActiveQuestion&&(e.activeElementName=this.lastActiveQuestion.rootParentQuestion.name);let t=this.getPropertyValueWithoutDefault(`randomSeed`);t&&(e.randomSeed=t),this.currentPageNo>0&&this.currentPage&&(e.currentPageName=this.currentPage.name);let n=(t,n)=>
84{n.forEach(n=>{let r=n.uiState;r&&(e[t]=e[t]||{},e[t][n.name]=r)})};return n(`pages`,this.pages),n(`panels`,this.getAllPanels()),n(`questions`,this.getAllQuestions()),e}set uiState(e){var t;if(typeof e!=`object`||!e)return;let n=(e,t)=>{for(let n in e||{}){let r=t(n);r&&(r.uiState=e[n])}};if(n(e.pages,this.getPageByName.bind(this)),n(e.panels,this.getPanelByName.bind(this)),n(e.questions,this.getQuestionByName.bind(this)),e.currentPageName){let t=this.getPageByName(e.currentPageName);t&&this.currentPage!==t&&(this.currentPage=t)}e.activeElementName&&((t=this.getQuestionByName(e.activeElementName))==null||t.focus()),e.randomSeed&&(this.randomSeed=e.randomSeed)}get randomSeed(){return this.getPropertyValue(`randomSeed`,void 0,()=>Math.floor(Date.now()/4+Math.random()*1e3))}set randomSeed(e){this.setPropertyValue(`randomSeed`,e)}randomSeedChanged(){for(var e=0;e<this.pages.length;e++)this.pages[e].randomSeedChanged()}setDataCore(e,t=!1){if(t&&(this.valuesHash={}),e)for(var n in e){let t=typeof n==`string`?n.trim():n;this.setDataValueCore(this.valuesHash,t,e[n])}this.isSettingDataValue=!0,this.updateAllQuestionsValue(t),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(``),this.isSettingDataValue=!1,this.runConditions(),this.updateAllQuestionsValue(t)}isSettingData(){return this.isSettingDataValue===!0}get isSurvey(){return!0}getData(e){let t=e||{includePages:!1,includePanels:!1};return!t.includePages&&!t.includePanels?this.data:this.getStructuredData(!!t.includePages,t.includePanels?100:+!!t.includePages)}getStructuredData(e=!0,t=-1){if(t===0)return this.data;let n={};return this.pages.forEach(r=>{if(e){let e={};r.collectValues(e,t-1)&&(n[r.name]=e)}else r.collectValues(n,t)}),n}setStructuredData(e,t=!1){if(!e)return;let n={};for(let t in e)if(this.getQuestionByValueName(t))n[t]=e[t];else{let r=this.getPageByName(t);r||(r=this.getPanelByName(t)),r&&this.collectDataFromPanel(r,n,e[t])}t?this.mergeData(n):this.data=n}collectDataFromPanel(e,t,n){for(let r in n){let i=e.getElementByName(r);i&&(i.isPanel?this.collectDataFromPanel(i,t,n[r]):t[r]=n[r])}}get editingObj(){return this.editingObjValue}set editingObj(e){if(this.editingObj!=e&&(this.unConnectEditingObj(),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var t=this.getAllQuestions(),n=0;n<t.length;n++)t[n].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=(e,t)=>{J.hasOriginalProperty(this.editingObj,t.name)&&(t.name===`locale`&&this.setDataCore({}),this.updateOnSetValue(t.name,this.editingObj[t.name],t.oldValue))},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}}unConnectEditingObj(){this.editingObj&&!this.editingObj.isDisposed&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged)}get isEditingSurveyElement(){return!!this.editingObj}setCalculatedValuesIntoResult(e){for(var t=0;t<this.calculatedValues.length;t++){var n=this.calculatedValues[t];n.includeIntoResult&&n.name&&this.getVariable(n.name)!==void 0&&(e[n.name]=this.getVariable(n.name))}}getPlainData(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});let t=[],n=[];if(this.getAllQuestions().forEach(r=>{var i=r.getPlainData(e);i&&(t.push(i),n.push(r.valueName||r.name))}),e.includeValues){let e=this.getValuesKeys();for(var r=0;r<e.length;r++){var i=e[r];if(n.indexOf(i)==-1){var a=this.getDataValueCore(this.valuesHash,i);a&&t.push({name:i,title:i,value:a,displayValue:a,isNode:!1,getString:e=>this.getValueAsString(e)})}}}return t}getFilteredValues(){let e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];if(this.addCalculatedValuesIntoFilteredValues(e),!this.isDesignMode){let r=this.getValuesKeys();for(var n=0;n<r.length;n++){var t=r[n];e[t]=this.getDataValueCore(this.valuesHash,t)}this.getAllQuestions().forEach(t=>{t.hasFilteredValue&&(e[t.getFilteredName()]=t.getFilteredValue(!0))})}return e}addCalculatedValuesIntoFilteredValues(e){for(var t=this.calculatedValues,n=0;n<t.length;n++)e[t[n].name]=t[n].value}getFilteredProperties(){return{survey:this}}getValuesKeys(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=J.getPropertiesByObj(this.editingObj),t=[],n=0;n<e.length;n++)t.push(e[n].name);return t}getDataValueCore(e,t){return this.editingObj?J.getObjPropertyValue(this.editingObj,t):this.getDataFromValueHash(e,t)}setDataValueCore(e,t,n){this.editingObj?J.setObjPropertyValue(this.editingObj,t,n):this.setDataToValueHash(e,t,n)}deleteDataValueCore(e,t){this.editingObj?this.editingObj[t]=null:this.deleteDataFromValueHash(e,t)}getDataFromValueHash(e,t){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,t):e[t]}setDataToValueHash(e,t,n){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,t,n):e[t]=n}deleteDataFromValueHash(e,t){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,t):delete e[t]}get comments(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n];r.indexOf(this.commentSuffix)>0&&(e[r]=this.getDataValueCore(this.valuesHash,r))}return e}get visiblePages(){if(this.isDesignMode)return this.pages;if(this.pageContainerValue&&(this.isShowingPreview||this.isSinglePage))return[this.pageContainerValue];for(var e=[],t=0;t<this.pages.length;t++)this.isPageInVisibleList(this.pages[t])&&e.push(this.pages[t]);return e}isPageInVisibleList(e){return this.isDesignMode||e.isVisible&&!e.isStartPage}get isEmpty(){return this.pages.length==0}get PageCount(){return this.pageCount}get pageCount(){return this.pages.length}get visiblePageCount(){return this.visiblePages.length}get startPage(){var e=this.firstPageIsStartPage&&this.pages.length>1?this.pages[0]:null;return e&&e.onFirstRendering(),e}get startedPage(){return this.startPage}get currentPage(){return this.getPropertyValue(`currentPage`,null)}set currentPage(e){if(this.isLoadingFromJson)return;var t=this.getPageByObject(e);
84if(e&&!t||!t&&this.isCurrentPageAvailable)return;var n=this.visiblePages;if(t!=null&&n.indexOf(t)<0||t==this.currentPage)return;let r=this.currentSingleElement;if(!this.isShowingPreview&&r&&t!==r.page){this.currentSingleElement=t.getFirstVisibleElement();return}let i=this.currentPage,a=this.createPageChangeEventOptions(t,i),o=()=>{this.setPropertyValue(`currentPage`,t),t&&(t.onFirstRendering(),t.updateCustomWidgets()),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(t,i)};this.isShowingPreview||r?o():this.currentPageChanging(a,o)}get currentElementName(){var e;return((e=this.currentElement)==null?void 0:e.name)||``}set currentElementName(e){e&&(this.currentElement=this.getElementByName(e))}get currentElement(){return this.currentSingleElement||this.currentPage}set currentElement(e){if(e){if(e.isPage)this.currentPage=e;else{let t=e.page;t&&!this.isSingleVisibleQuestion?this.currentPage=t:this.currentSingleElement=e}}}getElementByName(e){return e?this.getPageByName(e)||this.getPanelByName(e)||this.getQuestionByName(e):null}tryNavigateToPage(e){if(!this.performValidationOnPageChanging(e))return!1;let t=this.visiblePages.indexOf(e)<this.currentPageNo||!this.doServerValidation(!1,!1,e);return t&&(this.currentPage=e),t}performValidationOnPageChanging(e){if(this.isDesignMode)return!1;if(this.canGoTroughValidation())return!0;let t=this.visiblePages.indexOf(e);if(t<0||t>=this.visiblePageCount||t===this.currentPageNo)return!1;if(t<this.currentPageNo||this.checkErrorsMode===`onComplete`||this.validationAllowSwitchPages)return!0;if(!this.validateCurrentPage())return!1;for(let e=this.currentPageNo+1;e<t;e++){let t=this.visiblePages[e];if(!t.validate(!0,!0))return!1;t.passed=!0}return!0}updateCurrentPage(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)}get isCurrentPageAvailable(){let e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)}isPageExistsInSurvey(e){return this.pages.indexOf(e)>-1||!!this.onContainsPageCallback&&this.onContainsPageCallback(e)}get activePage(){return this.getPropertyValue(`activePage`)}get isStartPageActive(){return this.state===`starting`}get isShowStartingPage(){return this.isStartPageActive}get isShowingPage(){return this.state==`running`||this.state==`preview`||this.isStartPageActive}updateActivePage(){let e=this.isStartPageActive?this.startPage:this.currentPage;e!==this.activePage&&this.setPropertyValue(`activePage`,e)}onStateAndCurrentPageChanged(){this.updateActivePage(),this.updateButtonsVisibility()}getPageByObject(e){if(!e)return null;if(e.getType&&e.getType()==`page`)return e;if(typeof e==`string`||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),n=this.visiblePages;return e<0||e>=n.length?null:n[t]}return e}get currentPageNo(){return this.visiblePages.indexOf(this.currentPage)}set currentPageNo(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])}get questionsOrder(){return this.questionOrder}set questionsOrder(e){this.questionOrder=e}focusFirstQuestion(){if(!this.focusingQuestionInfo){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}}scrollToTopOnPageChange(e=!0){var t=this.activePage;t&&(e&&t.scrollToTop(),this.isCurrentPageRendering&&this.autoFocusFirstQuestion&&!this.focusingQuestionInfo&&(t.focusFirstQuestion(),this.isCurrentPageRendering=!1))}get state(){return this.getPropertyValue(`state`,`empty`)}updateState(){this.setPropertyValue(`state`,this.calcState())}calcState(){return this.isLoading?`loading`:this.isCompleted?`completed`:this.isCompletedBefore?`completedbefore`:!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startPage?`starting`:this.isShowingPreview?this.currentPage?`preview`:`empty`:this.currentPage?`running`:`empty`}get isShowingPreview(){return this.getPropertyValue(`isShowingPreview`,!1)}set isShowingPreview(e){this.isShowingPreview!=e&&(this.setPropertyValue(`isShowingPreview`,e),this.onShowingPreviewChanged())}beginLoading(){this.isLoading=!0}endLoading(){this.isLoading=!1}get completedState(){return this.getPropertyValue(`completedState`,``)}get completedStateText(){return this.getPropertyValue(`completedStateText`,``)}setCompletedState(e,t){this.setPropertyValue(`completedState`,e),t||(e==`saving`&&(t=this.getLocalizationString(`savingData`)),e==`error`&&(t=this.getLocalizationString(`savingDataError`)),e==`success`&&(t=this.getLocalizationString(`savingDataSuccess`))),this.setPropertyValue(`completedStateText`,t),this.state===`completed`&&this.showCompletePage&&this.completedState&&this.notify(this.completedStateText,this.completedState,e===`error`)}get notifier(){return this.notifierValue||(this.notifierValue=new yI(this.css.saveData),this.notifierValue.addAction(this.createTryAgainAction(),`error`)),this.notifierValue}notify(e,t,n=!1){this.notifier.showActions=n,this.notifier.notify(e,t,n
84)}clear(e=!0,t=!0){this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,this.skippedPages=[],this.lastActiveQuestion=void 0,e&&this.setDataCore(null,!0),this.timerModel.spent=0;for(var n=0;n<this.pages.length;n++)this.pages[n].timeSpent=0,this.pages[n].setWasShown(!1),this.pages[n].passed=!1;if(this.onFirstPageIsStartedChanged(),t&&(this.currentPage=this.firstVisiblePage,this.currentSingleElement)){let e=this.getSingleElements();this.currentSingleElement=e.length>0?e[0]:void 0}e&&this.updateValuesWithDefaults()}mergeValues(e,t){oj(e,t)}updateValuesWithDefaults(){if(!(this.isDesignMode||this.isLoading))for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,n=0;n<t.length;n++)t[n].updateValueWithDefaults()}updateCustomWidgets(e){e&&e.updateCustomWidgets()}currentPageChanging(e,t){e.allow=!0,e.allowChanging=!0;let n=()=>{e.allowChanging&&e.allow&&(e.newCurrentPage!==e.oldCurrentPage&&(this.isCurrentPageRendering=!0),t()),e.message&&this.notify(e.message,e.allow?`success`:`error`),this.isNavigationBlocked=!1};this.onCurrentPageChanging.fire(this,e,()=>n(),()=>this.isNavigationBlocked=!0)}currentPageChanged(e,t){if(this.notifyQuestionsOnHidingContent(t),t&&!t.isDisposed&&!t.passed&&t.validate(!1)&&(t.passed=!0),this.isCurrentPageRendered===!0&&(this.isCurrentPageRendered=!1),!this.currentSingleElement){let n=this.createPageChangeEventOptions(e,t);this.onCurrentPageChanged.fire(this,n)}}notifyQuestionsOnHidingContent(e){e&&!e.isDisposed&&e.questions.forEach(e=>e.onHidingContent())}createPageChangeEventOptions(e,t,n,r){let i=e&&t?e.visibleIndex-t.visibleIndex:0,a=i;return a===0&&r&&n&&(a=e.elements.indexOf(n)-e.elements.indexOf(r)),{oldCurrentQuestion:r,newCurrentQuestion:n,oldCurrentPage:t,newCurrentPage:e,isNextPage:i===1,isPrevPage:i===-1,isGoingForward:a>0,isGoingBackward:a<0,isAfterPreview:this.changeCurrentPageFromPreview===!0}}getProgress(){if(this.currentPage==null)return 0;if(this.progressBarType!==`pages`){var e=this.getProgressInfo();return this.progressBarType===`requiredQuestions`?e.requiredQuestionCount>=1?Math.floor(e.requiredAnsweredQuestionCount*100/e.requiredQuestionCount):100:e.questionCount>=1?Math.floor(e.answeredQuestionCount*100/e.questionCount):100}let t=this.visiblePages;var n=t.indexOf(this.currentPage);return Math.ceil(n*100/t.length)}get isNavigationButtonsShowing(){if(this.isDesignMode)return`none`;var e=this.activePage;return!e||e.showNavigationButtons===!1?`none`:e.showNavigationButtons===!0?this.showNavigationButtons?this.navigationButtonsLocation:`bottom`:this.showNavigationButtons?this.navigationButtonsLocation:`none`}get isNavigationButtonsShowingOnTop(){return this.getIsNavigationButtonsShowingOn(`top`)}get isNavigationButtonsShowingOnBottom(){return this.getIsNavigationButtonsShowingOn(`bottom`)}getIsNavigationButtonsShowingOn(e){var t=this.isNavigationButtonsShowing;return t==`both`||t==`topBottom`||t==e}get isEditMode(){return!this.readOnly}get isDisplayMode(){return this.readOnly&&!this.isDesignMode||this.state==`preview`}get isUpdateValueTextOnTyping(){return this.textUpdateMode==`onTyping`}get isDesignMode(){return this._isDesignMode}setDesignMode(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged(`standard`))}get showInvisibleElements(){return this.getPropertyValue(`showInvisibleElements`,!1)}set showInvisibleElements(e){var t=this.visiblePages;this.setPropertyValue(`showInvisibleElements`,e),!this.isLoadingFromJson&&(this.runConditions(),this.updateAllElementsVisibility(t))}updateAllElementsVisibility(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];n.updateElementVisibility(),e.indexOf(n)>-1!=n.isVisible&&(this.onPageVisibleChanged.fire(this,{page:n,visible:n.isVisible}),this.onPagesVisibleChangedCallback&&this.onPagesVisibleChangedCallback())}}get areInvisibleElementsShowing(){return this.isDesignMode||this.showInvisibleElements}get areEmptyElementsHidden(){return this.isShowingPreview&&this.showPreviewBeforeComplete&&this.previewMode==`answeredQuestions`&&this.isAnyQuestionAnswered}get isAnyQuestionAnswered(){let e=this.getAllQuestions(!0);for(let t=0;t<e.length;t++)if(!e[t].isEmpty())return!0;return!1}get hasCookie(){if(!this.cookieName)return!1;var e=nj.getCookie();return e&&e.indexOf(this.cookieName+`=true`)>-1}setCookie(){this.cookieName&&nj.setCookie(this.cookieName+`=true; expires=Fri, 31 Dec 9999 0:0:0 GMT`)}deleteCookie(){this.cookieName&&nj.setCookie(this.cookieName+`=;`)}get ignoreValidation(){return!this.validationEnabled}set ignoreValidation(e){this.validationEnabled=!e}nextPage(){return this.currentSingleElement?this.performNext():!this.isLastPage&&this.doCurrentPageComplete(!1)}performNext(){let e=this.currentSingleElement;if(!e)return this.nextPage();if(this.resetNavigationButton(),this.isSingleVisibleInput){if(!e.validateSingleInput())return!1;if(e.nextSingleInput())return this.updateButtonsVisibility(),!0}return this.validationEnabled?this.validateElements([e],!0,!1,t=>{t||this.performNextAfterValidation(e)})===!0:(this.performNextAfterValidation(e),!0)}performNextAfterValidation(e){this.sendPartialResult();let t=this.getSingleElements(),n=t.indexOf(e);if(n<0||n===t.length-1)return!1;let r={};e.isQuestion?r[e.name]=e.value:e.isPanel&&(r=e.getValue()),this.checkTriggers(r,!0,!1,!0,e.name),e===this.currentSingleElement&&(this.currentSingleElement=t[n+1])}performPrevious(){return this.prevPage()}validateOnNavigate(e,t){let n=this.canGoTroughValidation()||e&&this.validationAllowComplete||!e&&(this.validationAllowSwitchPages||this.isValidateOnComplete)||t&&this.isValidateOnComplete,r=()=>{if(t){if(!this.isValidateOnComplete&&this.doServerValidation(!0,!0))return;this.showPreviewCore()}else this.doCurrentPageCompleteCore(e)};if(n)return r(),!0;let i=e=>{e||r()};return this.isValidateOnComplete?this.isLastPage?this.validate(!0,this.autoFocusFirstError,i,!0)!==!0:(r(),!0):this.validateCurrentPage(i)!==!1}canGoTroughValidation(){return!this.isEditMode||!this.validationEnabled}get isCurrentPageHasErrors(){return this.validateActivePage()===!1}get isCurrentPageValid(){return this.validateActivePage()}hasCurrentPageErrors(e){return this.hasPageErrors(void 0,e)}validateCurrentPage(e){return this.validatePage(void 0,e)}hasPageErrors(e,t){let n=this.validatePage(e,t);return n===void 0?n:!n}validatePage(e,t){return e||(e=this.activePage),!e||this.validatePageCore(e,!0,t)}hasErrors(e=!0,t=!1,n){let r=this.validate(e,t,n);return r===void 0?r:!r}validate(e=!0,t=!1,n,r){return this.validateElements(this.visiblePages,e,t,n,r)}validateElements(e,t=!0,n=!1,r,i){r&&(t=!0);let a=new RP({fireCallback:t,focusOnFirstError:n,callbackResult:r?e=>{r(!e)}:void 0,changeCurrentPage:!!i});for(let t of e)t.validateElement(a);return a.finish(),a.runningResult}ensureUniqueNames(e=null){if(e==null)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)}ensureUniqueName(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,n=0;n<t.length;n++)this.ensureUniqueNames(t[n]);else this.ensureUniqueQuestionName(e)}ensureUniquePageName(e){return this.ensureUniqueElementName(e,e=>this.getPageByName(e))}ensureUniquePanelName(e){return this.ensureUniqueElementName(e,e=>this.getPanelByName(e))}ensureUniqueQuestionName(e){return this.ensureUniqueElementName(e,e=>this.getQuestionByName(e))}ensureUniqueElementName(e,t){var n=t(e.name);if(!(!n||n==e)){for(var r=this.getNewName(e.name);t(r);)var r=this.getNewName(e.name);e.name=r}}getNewName(e){for(var t=e.length;t>0&&e[t-1]>=`0`&&e[t-1]<=`9`;)t--;var n=e.substring(0,t),r=0;return t<e.length&&(r=parseInt(e.substring(t))),r++,n+r}validateActivePage(e){return this.validatePageCore(this.activePage,e)}validatePageCore(e,t,n){if(t===void 0&&(t=this.focusOnFirstError),!e)return!0;let r,i;n&&(r=t=>{if(i===void 0)i=!t;else{let r=this.fireValidatedErrorsOnPage(e);n(!t||r)}});let a=e.validate(!0,t,r);if(i===void 0&&n)return i=!1,a;let o=this.fireValidatedErrorsOnPage(e);return n&&i!==void 0&&n(i||o),a&&!o}fireValidatedErrorsOnPage(e){if(this.onValidatePage.isEmpty||!e)return!1;let t=this.getNestedQuestionsByQuestionArray(e.questions,!0);for(var n=[],r=[],i=0;i<t.length;i++){var a=t[i];if(a.errors.length>0){n.push(a);for(var o=0;o<a.errors.length;o++)r.push(a.errors[o])}}let s=r.length;return this.onValidatePage.fire(this,{questions:n,errors:r,page:e}),r.length>s}prevPage(){if(this.isFirstPage||this.state===`starting`)return!1;this.resetNavigationButton();let e=this.currentSingleElement;if(this.doSkipOnPrevPage(e))return!0;
84if(e)return this.prevPageSingleElement(e);let t=this.visiblePages,n=t.indexOf(this.currentPage);return this.currentPage=t[n-1],!0}doSkipOnPrevPage(e){let t=e||this.currentPage,n=this.skippedPages.find(e=>e.to===t),r;if(n){this.skippedPages.splice(this.skippedPages.indexOf(n),1);let e=n.from;!e.isDisposed&&e.isVisible&&(r=e)}return r&&(e?this.currentSingleElement=r:this.currentPage=r),!!r}prevPageSingleElement(e){if(this.isSingleVisibleInput&&e.prevSingleInput())return this.updateButtonsVisibility(),!0;let t=this.getSingleElements(),n=t.indexOf(e);return n!==0&&(this.currentSingleElement=t[n-1],!0)}tryComplete(){return this.isValidateOnComplete&&this.cancelPreview(),this.doCurrentPageComplete(!0),this.isCompleted}completeLastPage(){return this.tryComplete()}navigationMouseDown(){return this.isNavigationButtonPressed=!0,!0}resetNavigationButton(){this.isNavigationButtonPressed=!1}nextPageUIClick(){return this.mouseDownPage&&this.mouseDownPage!==this.activePage?!1:(this.mouseDownPage=null,this.performNext())}nextPageMouseDown(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()}showPreview(){return this.resetNavigationButton(),this.validateOnNavigate(!0,!0)!==!1&&this.isShowingPreview}showPreviewCore(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow}cancelPreview(e=null){var t;if(!this.isShowingPreview)return;this.gotoPageFromPreview=e,this.isShowingPreview=!1;let n=(t=this.currentSingleElement)==null?void 0:t.page;n&&(n.updateRows(),this.currentPage=n)}cancelPreviewByPage(e){this.cancelPreview(e)}doCurrentPageComplete(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),this.validateOnNavigate(e)===!0)}doCurrentPageCompleteCore(e){return this.doServerValidation(e)?!1:e?(this.currentPage&&(this.currentPage.passed=!0),this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0)}get isSinglePage(){return this.questionsOnPageMode==`singlePage`}set isSinglePage(e){this.questionsOnPageMode=e?`singlePage`:`standard`}get isSingleVisibleQuestion(){return!this.isDesignMode&&(this.isSingleVisibleQuestionVal(this.questionsOnPageMode)||this.isSingleVisibleInput)}get isSingleVisibleInput(){return!this.isDesignMode&&this.questionsOnPageMode==`inputPerPage`}isSingleVisibleQuestionVal(e){return e===`questionPerPage`||e===`questionOnPage`}get firstPageIsStarted(){return this.firstPageIsStartPage}set firstPageIsStarted(e){this.firstPageIsStartPage=e}isPageStarted(e){return this.firstPageIsStartPage&&this.pages.length>1&&this.pages[0]===e}setShowPreviewBeforeComplete(e){e===void 0||e===`noPreview`||e===!1?this.setPropertyValue(`showPreviewBeforeComplete`,!1):(this.setPropertyValue(`showPreviewBeforeComplete`,!0),e===`showAllQuestions`&&(this.previewMode=`allQuestions`),e===`showAnsweredQuestions`&&(this.previewMode=`answeredQuestions`))}onFirstPageIsStartedChanged(){this.isStartedState=this.firstPageIsStartPage&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)}onShowingPreviewChanged(){this.updatePagesContainer()}createRootPage(e,t){let n=J.createClass(`page`);return n.name=e,n.isPageContainer=!0,t.forEach(e=>{e.isStartPage||n.addElement(e)}),n}disposeContainerPage(){let e=this.pageContainerValue;[].concat(e.elements).forEach(t=>e.removeElement(t)),e.dispose(),this.pageContainerValue=void 0}updatePagesContainer(){if(this.isDesignMode)return;this.getAllQuestions().forEach(e=>e.updateElementVisibility()),this.setPropertyValue(`currentPage`,void 0);let e=`preview-page`,t;if(this.isSinglePage){let n=this.pageContainerValue;n&&n.name===e?(t=n.elements[0],this.disposeContainerPage()):t=this.createRootPage(`single-page`,this.pages)}this.isShowingPreview&&(t=this.createRootPage(e,t?[t]:this.pages)),t&&(t.setSurveyImpl(this),this.pageContainerValue=t,this.currentPage=t,this.currentSingleElementValue&&this.visiblePages.forEach(e=>e.updateRows()));let n=!1;if(!this.isSinglePage&&!this.isShowingPreview){this.disposeContainerPage();let e=this.gotoPageFromPreview;this.gotoPageFromPreview=null,K.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePages[this.visiblePageCount-1]),e&&(n=!0,this.changeCurrentPageFromPreview=!0,this.currentPage=e,this.changeCurrentPageFromPreview=!1)}!this.currentPage&&this.visiblePageCount>0&&!n&&(this.currentPage=this.visiblePages[0]),this.isShowingPreview&&this.pages.forEac
84h(e=>{e.onFirstRendering()}),this.pages.forEach(e=>{e.wasRendered&&e.updateElementCss(!0)}),this.updateButtonsVisibility()}getSingleElements(e){let t=[],n=this.pages,r=this.isSingleVisibleInput;for(var i=0;i<n.length;i++){let a=n[i];if(!a.isStartPage&&a.isVisible){let n=[];r?a.addQuestionsToList(n,!0):a.elements.forEach(e=>n.push(e)),n.forEach(n=>{(n===e||n.isVisible)&&t.push(n)})}}return t}get currentSingleElement(){return this.isShowingPreview?void 0:this.currentSingleElementValue}set currentSingleElement(e){if(e&&e.isQuestion&&this.isSingleVisibleQuestionVal(this.questionsOnPageMode))for(;e.parent&&e.parent.isPanel;)e=e.parent;let t=this.currentSingleElement;if(e!==t&&!this.isCompleted){let n=e!=null&&e.isQuestion?e:void 0,r=t!=null&&t.isQuestion?t:void 0,i=e==null?void 0:e.page,a=i&&t?this.createPageChangeEventOptions(i,t.page,n,r):void 0,o=()=>{this.currentSingleElementValue=e,e?(this.isSingleVisibleInput&&e.isQuestion&&e.onSetAsSingleInput(),i.updateRows(),i===this.currentPage?n&&this.autoFocusFirstQuestion&&n.focus():this.currentPage=i,this.updateButtonsVisibility(),a&&this.onCurrentPageChanged.fire(this,a)):this.visiblePages.forEach(e=>e.updateRows())};a?this.currentPageChanging(a,o):o()}}get currentSingleQuestion(){let e=this.currentSingleElement;return e&&e.isQuestion?e:void 0}set currentSingleQuestion(e){this.currentSingleElement=e}supportsNestedSingleInput(e){let t={question:e,enabled:!0};return this.onCheckSingleInputPerPageMode.fire(this,t),t.enabled}updateNestedSingleQuestions(e,t){let n={question:e,nestedQuestions:t};this.onGetLoopQuestions.fire(this,n)}changeCurrentSingleElementOnVisibilityChanged(){let e=this.currentSingleElement;if(!e||e.isVisible)return;let t=this.getSingleElements(e),n=t.indexOf(e),r=n>0?t[n-1]:n<t.length-1?t[n+1]:void 0;this.currentSingleElement=r}onQuestionsOnPageModeChanged(e){if(!(this.isShowingPreview||this.isDesignMode)&&(this.skippedPages=[],this.currentSingleElement=void 0,e===`singlePage`&&this.updatePagesContainer(),e===`inputPerPage`&&this.getAllQuestions().forEach(e=>e.resetSingleInput()),this.isSinglePage&&this.updatePagesContainer(),this.setupSingleInputNavigationActions(),this.isSingleVisibleQuestion)){let e=this.getSingleElements();e.length>0&&(this.currentSingleElement=e[0])}}setupSingleInputNavigationActions(){let e=`sv-singleinput-add`;if(this.isSingleVisibleInput){let t=()=>{this.currentSingleQuestion.singleInputAddItem(!0),this.resetNavigationButton()};this.addNavigationItem({id:e,visible:!1,action:()=>t()})}else this.removeNavigationItem(e)}getPageStartIndex(){return this.firstPageIsStartPage&&this.pages.length>0?1:0}get isFirstPage(){return this.getPropertyValue(`isFirstPage`)}get isLastPage(){return this.getPropertyValue(`isLastPage`)}updateNavigationElements(){this.updateButtonsVisibility()}updateButtonsVisibility(){this.updateIsFirstLastPageState(),this.setPropertyValue(`isShowPrevButton`,this.calcIsShowPrevButton()),this.setPropertyValue(`isShowNextButton`,this.calcIsShowNextButton()),this.setPropertyValue(`isCompleteButtonVisible`,this.calcIsCompleteButtonVisible()),this.setPropertyValue(`isPreviewButtonVisible`,this.calcIsPreviewButtonVisible()),this.setPropertyValue(`isCancelPreviewButtonVisible`,this.calcIsCancelPreviewButtonVisible()),this.updateSingleInputActions()}updateSingleInputActions(){if(!this.isSingleVisibleInput)return;let e=this.currentSingleQuestion;if(!e)return;function t(t){t&&(t.title=e.getSingleInputAddText(),t.visible=!!t.t
84itle)}t(this.navigationBar.getActionById(`sv-singleinput-add`))}get isShowPrevButton(){return this.getPropertyValue(`isShowPrevButton`)}get isShowNextButton(){return this.getPropertyValue(`isShowNextButton`)}get isCompleteButtonVisible(){return this.getPropertyValue(`isCompleteButtonVisible`)}get isPreviewButtonVisible(){return this.getPropertyValue(`isPreviewButtonVisible`)}get isCancelPreviewButtonVisible(){return this.getPropertyValue(`isCancelPreviewButtonVisible`)}get isFirstElement(){return this.getPropertyValue(`isFirstElement`)}get isLastElement(){return this.getPropertyValue(`isLastElement`)}updateIsFirstLastPageState(){let e=this.currentPage,t,n,r=this.currentSingleElement;if(r){let e=!0,i=!0;if(this.isSingleVisibleInput){let t=r.getSingleInputElementPos();t!==0&&(e=t===-1,i=t===1)}let a=this.getSingleElements(),o=a.indexOf(r);o>=0&&(t=e&&o===0,n=i&&o===a.length-1)}this.setPropertyValue(`isFirstPage`,!!e&&e===this.firstVisiblePage&&(!r||t===!0)),this.setPropertyValue(`isLastPage`,!!e&&e===this.lastVisiblePage&&(!r||n===!0)),this.setPropertyValue(`isFirstElement`,t),this.setPropertyValue(`isLastElement`,n)}get isLastPageOrElement(){return this.isLastElement===void 0?this.isLastPage:this.isLastElement}get isFirstPageOrElement(){return this.isFirstElement===void 0?this.isFirstPage:this.isFirstElement}calcIsShowPrevButton(){if(this.isFirstPageOrElement||!this.showPrevButton||this.state!==`running`)return!1;if(this.isFirstElement!==void 0)return!0;let e=this.visiblePages[this.currentPageNo-1];return e&&e.getMaxTimeToFinish()<=0}calcIsShowNextButton(){return this.state===`running`&&!this.isLastPageOrElement&&!this.canBeCompletedByTrigger}calcIsCompleteButtonVisible(){let e=this.state;return this.isEditMode&&(this.state===`running`&&(this.isLastPageOrElement&&!this.showPreviewBeforeComplete||this.canBeCompletedByTrigger)||e===`preview`)&&this.showCompleteButton}calcIsPreviewButtonVisible(){return this.isEditMode&&this.showPreviewBeforeComplete&&this.state==`running`&&this.isLastPageOrElement}calcIsCancelPreviewButtonVisible(){return this.isEditMode&&this.showPreviewBeforeComplete&&this.state==`preview`}get firstVisiblePage(){if(this.visiblePageCount===1)return this.visiblePages[0];let e=this.pages;for(let t=0;t<e.length;t++)if(this.isPageInVisibleList(e[t]))return e[t];return null}get lastVisiblePage(){if(this.visiblePageCount===1)return this.visiblePages[0];let e=this.pages;for(let t=e.length-1;t>=0;t--)if(this.isPageInVisibleList(e[t]))return e[t];return null}doComplete(e=!1,t){if(!this.isCompleted)return this.checkOnCompletingEvent(e,t,n=>{n?(this.checkOnPageTriggers(!0),this.stopTimer(),this.notifyQuestionsOnHidingContent(this.currentPage),this.isCompleted=!0,this.cancelPreview(),this.clearUnusedValues(),this.saveDataOnComplete(e,t),this.setCookie()):this.isCompleted=!1})}saveDataOnComplete(e=!1,t){let n=this.hasCookie,r=e=>{s=!0,this.setCompletedState(`saving`,e)},i=e=>{this.setCompletedState(`error`,e)},a=e=>{this.setCompletedState(`success`,e),this.navigateTo()},o=e=>{this.setCompletedState(``,``)};var s=!1,c={isCompleteOnTrigger:e,completeTrigger:t,showSaveInProgress:r,showSaveError:i,showSaveSuccess:a,clearSaveMessages:o,showDataSaving:r,showDataSavingError:i,showDataSavingSuccess:a,showDataSavingClear:o};this.onComplete.fire(this,c),!n&&this.surveyPostId&&this.sendResult(),s||this.navigateTo()}checkOnCompletingEvent(e,t,n){let r,i={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:t};return this.onCompleting.fire(this,i,()=>{this.isNavigationBlocked=!1;let e=i.allowComplete&&i.allow;i.message&&this.notify(i.message,e?`success`:`error`),r=e,n(e)},()=>this.isNavigationBlocked=!0),r}start(){return!this.firstPageIsStartPage||(this.isCurrentPageRendering=!0,!this.validatePageCore(this.startPage,!0))?!1:(this.isStartedState=!1,this.notifyQuestionsOnHidingContent(this.pages[0]),this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPageNo=0,this.currentPage&&this.currentPage.locStrsChanged(),!0)}get isValidatingOnServer(){return this.getPropertyValue(`isValidatingOnServer`,!1)}setIsValidatingOnServer(e){e!=this.isValidatingOnServer&&(this.setPropertyValue(`isValidatingOnServer`,e),this.onIsValidatingOnServerChanged())}createServerValidationOptions(e,t,n){var r=this;let i={data:{},errors:{},survey:this,complete:function(){r.completeServerValidation(i,t,n)}};if(e&&this.isValidateOnComplete)i.data=this.data;else for(var a=this.activePage.questions,o=0;o<a.length;o++){var s=a[o];if(s.visible){var c=this.getValue(s.getValueName());this.isValueEmpty(c)||(i.data[s.getValueName()]=c)}}return i}onIsValidatingOnServerChanged(){}
84doServerValidation(e,t=!1,n){if(!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty||!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);let r=typeof this.onServerValidateQuestions==`function`;return this.serverValidationEventCount=r?1:this.onServerValidateQuestions.length,r?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,t,n)):this.onServerValidateQuestions.fireByCreatingOptions(this,()=>this.createServerValidationOptions(e,t,n)),!0}completeServerValidation(e,t,n){if(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&Object.keys(e.errors).length===0)||(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),!e&&!e.survey))return;var r=e.survey;let i=!0;if(e.errors){var a=this.autoFocusFirstError;for(var o in e.errors){var s=r.getQuestionByName(o);s&&s.errors&&(i=!1,s.addError(new dN(e.errors[o],this)),a&&(a=!1,s.page&&(this.currentPage=s.page),s.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}i&&(t?this.showPreviewCore():n?this.currentPage=n:r.isLastPage?r.doComplete():r.doNextPage())}doNextPage(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.sendPartialResult(),this.isCompleted)this.doComplete(!0);else if(e===this.currentPage){var t=this.visiblePages,n=t.indexOf(this.currentPage);this.currentPage=t[n+1]}}setCompleted(e){this.doComplete(!0,e)}sendPartialResult(){this.partialSendEnabled&&!this.isCompleted&&this.sendResult(this.surveyPostId,this.clientId,!0)}canBeCompleted(e,t){var n;if(!G.triggers.changeNavigationButtonsOnComplete)return;let r=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),t?this.completedByTriggers[e.id]={trigger:e,pageId:(n=this.currentPage)==null?void 0:n.id}:delete this.completedByTriggers[e.id],r!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}get canBeCompletedByTrigger(){var e;if(!this.completedByTriggers)return!1;let t=Object.keys(this.completedByTriggers);if(t.length===0)return!1;let n=(e=this.currentPage)==null?void 0:e.id;if(!n)return!0;for(let e=0;e<t.length;e++)if(n===this.completedByTriggers[t[e]].pageId)return!0;return!1}get completedTrigger(){if(!this.canBeCompletedByTrigger)return;let e=Object.keys(this.completedByTriggers)[0];return this.completedByTriggers[e].trigger}get processedCompletedHtml(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,`completed`):``}get processedCompletedBeforeHtml(){return this.locCompletedBeforeHtml.textOrHtml}get processedLoadingHtml(){return this.locLoadingHtml.textOrHtml}getProgressInfo(){return this.progressTextModel.getProgressInfo()}get progressBarAriaLabel(){return this.progressTextModel.progressBarAriaLabel}get progressText(){return this.progressTextModel.getProgressText()}get progressValue(){return this.progressTextModel.getProgressValue()}updateProgressText(e=!1){this.progressBarValue&&this.progressBarValue.resetProgressText(),this.progressTextModel.updateProgressText(e)}getProgressText(){return this.progressTextModel.getProgressText()}getRootCss(){return new X().append(this.css.root).append(this.css.rootProgress+`--`+this.progressBarType).append(this.css.rootMobile,this.isMobile).append(this.css.rootAnimationDisabled,!G.animationEnabled).append(this.css.rootReadOnly,this.readOnly&&!this.isDesignMode).append(this.css.rootCompact,this.isCompact).append(this.css.rootFitToContainer,this.fitToContainer).toString()}afterRenderSurvey(e){if(!tj.isAvailable())return;this.destroyResizeObserver(),Array.isArray(e)&&(e=DP.GetFirstNonTextElement(e));let t=e;this._processingResponsivenessFunc=void 0;let n=this.css.variables;if(n){let e=Number.parseFloat(nj.getComputedStyle(t).getPropertyValue(n.mobileWidth));if(e){let n=!1,r=tj.getScreenOrientationType();this._processingResponsivenessFunc=()=>this.processResponsiveness(t.offsetWidth,e,t.offsetHeight),this.resizeObserver=new ResizeObserver(e=>{tj.requestAnimationFrame(()=>{let e=tj.getScreenOrientationType();(n||!BN(t))&&r===e?n=!1:(n=!!this._processingResponsivenessFunc&&this._processingResponsivenessFunc(),r=e)})}),this.resizeObserver.observe(t)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e,this.scrollerElement=e.getElementsByClassName(`sv-scroll__scroller`)[0],this.addScrollEventListener()}forceProcessResponsiveness(){this._processingResponsivenessFunc&&this._processingResponsivenessFunc()}beforeDestroySurveyElement(){this._processingResponsivenessFunc=void 0,this.destroyResizeObserver(),this.removeScrollEventListener(),this.rootElement=void 0,this.scrollerElement=void 0}processResponsiveness(e,t,n){let r=e<t,i=this.isMobile!==r;
84this.setIsMobile(r),this.layoutElements.forEach(t=>t.processResponsiveness&&t.processResponsiveness(e));let a={height:n,width:e};return this.onResize.fire(this,a),i}triggerResponsiveness(e){this.getAllQuestions().forEach(t=>{t.triggerResponsiveness(e)})}destroyResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)}updateQuestionCssClasses(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})}updatePanelCssClasses(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})}updatePageCssClasses(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})}updateChoiceItemCss(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)}afterRenderPage(e){if(!this.isDesignMode&&!this.focusingQuestionInfo){let e=this.isCurrentPageRendered===!1;setTimeout(()=>this.scrollToTopOnPageChange(e),1)}this.focusQuestionInfo(),this.isCurrentPageRendered=!0,!this.onAfterRenderPage.isEmpty&&this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})}afterRenderHeader(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})}afterRenderQuestion(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})}afterRenderQuestionInput(e,t){if(this.onAfterRenderQuestionInput.isEmpty)return;let n=e.inputId,r=NN(t);if(r){if(n&&(!t||t.id!==n)&&r!==void 0){let e=r.getElementById(n);e&&(t=e)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}}afterRenderPanel(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})}get lastActiveQuestion(){return this.lastActiveQuestionValue}set lastActiveQuestion(e){this.lastActiveQuestionValue=e,this.doUIStateChanged(`activeElementName`,e)}whenQuestionFocusIn(e){this.lastActiveQuestion=e,this.onFocusInQuestion.fire(this,{question:e})}whenPanelFocusIn(e){this.onFocusInPanel.fire(this,{panel:e})}rebuildQuestionChoices(){this.getAllQuestions().forEach(e=>e.surveyChoiceItemVisibilityChange())}canChangeChoiceItemsVisibility(){return!this.onShowingChoiceItem.isEmpty}getChoiceItemVisibility(e,t,n){let r={question:e,item:t,visible:n};return this.onShowingChoiceItem.fire(this,r),r.visible}loadQuestionChoices(e){this.onChoicesLazyLoad.isEmpty?e.setItems([],0):this.onChoicesLazyLoad.fire(this,e)}getChoiceDisplayValue(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)}matrixBeforeRowAdded(e){this.onMatrixRowAdding.fire(this,e)}matrixRowAdded(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})}matrixColumnAdded(e,t){this.onMatrixColumnAdded.fire(this,{question:e,column:t})}multipleTextItemAdded(e,t){this.onMultipleTextItemAdded.fire(this,{question:e,item:t})}getQuestionByValueNameFromArray(e,t,n){var r=this.getQuestionsByValueName(e);if(r){for(var i=0;i<r.length;i++){var a=r[i].getQuestionFromArray(t,n);if(a)return a}return null}}matrixRowRemoved(e,t,n){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:n})}matrixRowRemoving(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRowRemoving.fire(this,r),r.allow}matrixAllowRemoveRow(e,t,n){let r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,r),r.allow}matrixDetailPanelVisibleChanged(e,t,n,r){let i={question:e,rowIndex:t,row:n,visible:r,detailPanel:n.detailPanel};this.onMatrixDetailPanelVisibleChanged.fire(this,i)}matrixCellCreating(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)}matrixCellCreated(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)}matrixAfterCellRender(e){var t;let n=this.onAfterRenderMatrixCell;n.isEmpty||(e.question=(t=e.cellQuestion)==null?void 0:t.parentQuestion,n.fire(this,e))}matrixCellValueChanged(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)}matrixCellValueChanging(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)}get isValidateOnValueChanging(){return this.checkErrorsMode===`onValueChanging`}get isValidateOnValueChanged(){return this.checkErrorsMode===`onValueChanged`}get isValidateOnValueChange(){return this.isValidateOnValueChanged||this.isValidateOnValueChanging}get isValidateOnComplete(){return this.checkErrorsMode===`onComplete`||this.validationAllowSwitchPages&&!this.validationAllowComplete}matrixCellValidate(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new dN(t.error,this):null}dynamicPanelAdded(e,t,n,r){!this.isLoadingFromJson&&r&&this.updateVisibleIndexes(e.page),this.onDynamicPanelAdded.fire(this,{question:e,panel:n,panelIndex:t})}dynamicPanelRemoved(e,t,n,r){for(var i=n?n.questions:[],a=0;a<i.length;a++)i[a].clearOnDeletingContainer();r&&this.updateVisibleIndexes(e.page),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:n})}dynamicPanelRemoving(e,t,n){let r={question:e,panelIndex:t,panel:n,allow:!0};return this.onDynamicPanelRemoving.fire(this,r),r.allow}dynamicPanelGetTabTitle(e,t){t.question=e,this.onGetDynamicPanelTabTitle.fire(this,t)}dynamicPanelCurrentIndexChanged(e,t){t.question=e,this.onDynamicPanelCurrentIndexChanged.fire(this,t),this.doUIStateChanged(`activePanelIndex`,e)}dragAndDropAllow(e){return this.onDragDropAllow.fire(this,e),e.allow}elementContentVisibilityChanged(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e}),this.doUIStateChanged(`collapsed`,e)}pagePassed(e){this.doUIStateChanged(`passed`,e)}doUIStateChanged(e,t){this.onUIStateChanged.isEmpty||this.onUIStateChanged.fire(this,{changedProperty:e,element:t})}getUpdatedPanelFooterActions(e,t,n){let r={question:n,panel:e,actions:t};return this.onGetPanelFooterActions.fire(this,r),r.actions}getUpdatedElementTitleActions(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)}
84getTitleActionsResult(e,t){return e==t.actions?e==t.titleActions?e:t.titleActions:t.actions}getUpdatedQuestionTitleActions(e,t){let n={question:e,actions:t,titleActions:t};return this.onGetQuestionTitleActions.fire(this,n),this.getTitleActionsResult(t,n)}getUpdatedPanelTitleActions(e,t){let n={panel:e,actions:t,titleActions:t};return this.onGetPanelTitleActions.fire(this,n),this.getTitleActionsResult(t,n)}getUpdatedPageTitleActions(e,t){var n={page:e,actions:t,titleActions:t};return this.onGetPageTitleActions.fire(this,n),this.getTitleActionsResult(t,n)}getUpdatedMatrixRowActions(e,t,n){let r={question:e,actions:n,row:t};return this.onGetMatrixRowActions.fire(this,r),r.actions}scrollElementToTop(e,t,n,r,i,a,o,s){let c;c=e&&typeof e.getType==`function`?{element:e,question:t,page:n,id:r,scrollIfVisible:i,scrollIntoViewOptions:a,passedRootElement:o,onScolledCallback:s}:e;let{element:l,question:u,page:d,id:f,scrollIfVisible:p,scrollIntoViewOptions:m,passedRootElement:h,onScolledCallback:g}=c,_={element:l,question:u,page:d,elementId:f,cancel:!1,allow:!0};if(this.onScrollToTop.fire(this,_),!_.cancel&&_.allow){let e=this.getPageByElement(l),t=l,n=l.parentQuestion;!e&&n&&(e=this.getPageByElement(n),t=n);let{rootElement:r}=G.environment,i=this.rootElement||h||r;if(this.isLazyRendering&&e){let n=1;this.skeletonHeight&&i&&typeof i.getBoundingClientRect==`function`&&(n=i.getBoundingClientRect().height/this.skeletonHeight-1),e.forceRenderElement(t,()=>{let t=i==null?void 0:i.querySelector(`#${_.elementId}`);this.suspendLazyRendering(),DP.ScrollElementToTop(t,p,m,()=>{this.releaseLazyRendering(),LN(i.querySelector(`#${e.id}`)),g&&g()})},n)}else if(l.isPage&&!this.isSinglePage&&!this.isDesignMode&&this.rootElement){let e=i.querySelector(RN(this.css.rootWrapper));DP.ScrollElementToViewCore(e,!1,p,m,g)}else{let e=i==null?void 0:i.querySelector(`#${_.elementId}`);this.suspendLazyRendering(),DP.ScrollElementToTop(e,p,m,()=>{this.releaseLazyRendering(),LN(e),g&&g()})}}}chooseFiles(e,t,n){this.onOpenFileChooser.isEmpty?vI(e,t):this.onOpenFileChooser.fire(this,{input:e,element:n&&n.element||this.survey,elementType:n&&n.elementType,item:n&&n.item,propertyName:n&&n.propertyName,callback:t,context:n})}uploadFiles(e,t,n,r,i){this.onUploadFiles.isEmpty?r(`error`,this.getLocString(`noUploadFilesHandler`)):this.taskManager.runTask(`file`,a=>{this.onUploadFiles.fire(this,{question:e,name:t,sourceType:i,files:n||[],callback:(e,t)=>{r(e,t),a()}})}),this.surveyPostId&&this.uploadFilesCore(t,n,r)}downloadFile(e,t,n,r){this.onDownloadFile.isEmpty&&r&&r(`skipped`,n.content||n),this.onDownloadFile.fire(this,{question:e,name:t,content:n.content||n,fileValue:n,callback:r})}clearFiles(e,t,n,r,i){this.onClearFiles.isEmpty&&i&&i(`success`,n),this.onClearFiles.fire(this,{question:e,name:t,value:n,fileName:r,callback:i})}updateChoicesFromServer(e,t,n){var r={question:e,choices:t,serverResult:n};return this.onChoicesLoaded.fire(this,r),r.choices}loadedChoicesFromServer(e){this.locStrsChanged()}uploadFilesCore(e,t,n){this.reportWarningOnUsingService()}getPage(e){return this.pages[e]}addPage(e,t=-1){e!=null&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))}
84addNewPage(e=null,t=-1){var n=this.createNewPage(e);return this.addPage(n,t),n}removePage(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))}getQuestionByName(e,t=!1){let n=this.getQuestionsFromHash(this.questionHashes.names,this.questionHashes.namesInsensitive,e,t);return n?n[0]:null}findQuestionByName(e){return this.getQuestionByName(e)}getEditingSurveyElement(){return this.editingObjValue}getQuestionByValueName(e,t=!1){var n=this.getQuestionsByValueName(e,t);return n?n[0]:null}getQuestionsByValueName(e,t=!1){return this.getQuestionsFromHash(this.questionHashes.valueNames,this.questionHashes.valueNamesInsensitive,e,t)}getCalculatedValueByName(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null}getQuestionsFromHash(e,t,n,r){if(!n)return null;let i=e[n];return i||r&&(n=n.toLowerCase(),i=t[n],i)?i:null}getQuestionsByNames(e,t=!1){var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var i=this.getQuestionByName(e[r],t);i&&n.push(i)}return n}getPageByElement(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];if(n.containsElement(e))return n}return null}getPageByQuestion(e){return this.getPageByElement(e)}getPageByName(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null}getPagesByNames(e){var t=[];if(!e)return t;for(var n=0;n<e.length;n++)if(e[n]){var r=this.getPageByName(e[n]);r&&t.push(r)}return t}getAllQuestions(e=!1,t=!1,n=!1){n&&(t=!1,(e?this.visiblePages:this.pages).forEach(e=>e.onFirstRendering()));for(var r=[],i=0;i<this.pages.length;i++)this.pages[i].addQuestionsToList(r,e,t);return n?this.getNestedQuestionsByQuestionArray(r,e):r}getNestedQuestionsByQuestionArray(e,t){let n=[];return e.forEach(e=>{e.getNestedQuestions(t,!0,!0).forEach(e=>n.push(e))}),n}getQuizQuestions(){for(var e=[],t=this.getPageStartIndex();t<this.pages.length;t++)if(this.pages[t].isVisible)for(var n=this.pages[t].questions,r=0;r<n.length;r++){var i=n[r];i.quizQuestionCount>0&&e.push(i)}return e}getPanelByName(e,t=!1){var n=this.getAllPanels();t&&(e=e.toLowerCase());for(var r=0;r<n.length;r++){var i=n[r].name;if(t&&(i=i.toLowerCase()),i==e)return n[r]}return null}getAllPanels(e=!1,t=!1){for(var n=[],r=0;r<this.pages.length;r++)this.pages[r].addPanelsIntoList(n,e,t);return n}createNewPage(e){let t=J.createClass(`page`);return t.name=e,t}getValueChangeReason(){return this.isSettingValueOnExpression?`expression`:this.isSettingValueFromTrigger?`trigger`:void 0}questionOnValueChanging(e,t,n){if(this.editingObj){let n=J.findProperty(this.editingObj.getType(),e);n&&(t=n.settingValue(this.editingObj,t))}if(this.onValueChanging.isEmpty)return t;var r={name:e,question:this.getQuestionByValueName(n||e),value:this.getUnbindValue(t),oldValue:this.getValue(e),reason:this.getValueChangeReason()};return this.onValueChanging.fire(this,r),r.value}getLocNotification(e,t,n){return e===!1&&K.isTwoValueEquals(t,n,!1,!0,!1)?!0:e}updateQuestionValue(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var i=n[r].value;(i===t&&Array.isArray(i)&&this.editingObj||!this.isTwoValueEquals(i,t))&&n[r].updateValueFromSurvey(t,!1)}}}validateQuestionOnValueChanged(e){if(this.isNavigationButtonPressed)return;if(this.isValidateOnValueChanged||e.getAllErrors().length>0){this.validateQuestionOnValueChangedCore(e);return}let t=e.parent;for(;t;){if(t.errors&&t.errors.length>0){t.validateContainerOnly();return}t=t.parent}}validateQuestionOnValueChangedCore(e){var t=e.getAllErrors().length;let n=e.validate(!0,!1,!this.isValidateOnValueChanging,void 0,this.isValidateOnValueChanging);return e.page&&this.isValidateOnValueChange&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),n}validateOnValueChanging(e,t){if(this.isLoadingFromJson)return!1;let n=this.getQuestionsByValueName(e);if(!n)return!1;let r=!0;for(let e=0;e<n.length;e++){let i=n[e];this.isTwoValueEquals(i.valueForSurvey,t)||(i.value=t),r=this.validateQuestionOnValueChangedCore(i)&&r&&i.errors.length==0}return r}fireOnValueChanged(e,t,n){this.onValueChanged.fire(this,{name:e,question:n,value:t,reason:this.getValueChangeReason()})}notifyQuestionOnValueChanged(e,t,n){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);
84if(r)for(var i=0;i<r.length;i++){var a=r[i];this.validateQuestionOnValueChanged(a),a.onSurveyValueChanged(t)}this.updateProgressText(!0),this.fireOnValueChanged(e,t,n?this.getQuestionByName(n):void 0),!this.isDisposed&&(this.checkElementsBindings(e,t),this.notifyElementsOnAnyValueOrVariableChanged(e,n))}}checkElementsBindings(e,t){this.isRunningElementsBindings=!0;for(var n=0;n<this.pages.length;n++)this.pages[n].checkBindings(e,t);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)}notifyElementsOnAnyValueOrVariableChanged(e,t){if(this.isEndLoadingFromJson!==`processing`){if(this.isRunningConditions){this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;return}for(var n=0;n<this.pages.length;n++)this.pages[n].onAnyValueChanged(e,t);this.isEndLoadingFromJson||this.locStrsChanged()}}updateAllQuestionsValue(e){for(var t=this.getAllQuestions(),n=0;n<t.length;n++){var r=t[n],i=r.getValueName();r.updateValueFromSurvey(this.getValue(i),e),r.requireUpdateCommentValue&&r.updateCommentFromSurvey(this.getComment(i))}}notifyAllQuestionsOnValueChanged(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))}checkOnPageTriggers(e){for(var t=this.getCurrentPageQuestions(!0),n={},r=0;r<t.length;r++){var i=t[r].getValueName();n[i]=this.getValue(i)}this.addCalculatedValuesIntoFilteredValues(n),this.checkTriggers(n,!0,e)}getCurrentPageQuestions(e=!1){var t=[],n=this.currentPage;if(!n)return t;for(var r=0;r<n.questions.length;r++){var i=n.questions[r];!e&&!i.visible||!i.name||t.push(i)}return t}checkTriggers(e,t,n=!1,r=!1,i){if(this.isCompleted||this.triggers.length==0||this.isDisplayMode)return;if(this.isTriggerIsRunning){for(var a in e)this.triggerKeys[a]=e[a];return}let o=!1;if(!n&&i&&this.hasRequiredValidQuestionTrigger){let e=this.getQuestionByValueName(i);o=e&&!e.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e;let s=this.getFilteredProperties(),c={isOnNextPage:t,isOnComplete:n,isOnNavigation:r,keys:this.triggerKeys,properties:s},l=K.createCopy(this.triggerKeys);for(let e=0;e<3&&(this.runSurveyTriggers(c,o),!(this.isCompleted||K.isTwoValueEquals(l,this.triggerKeys)));e++)this.triggerKeys=K.createDiff(this.triggerKeys,l),l=K.createCopy(this.triggerKeys);this.canBeCompletedByTrigger!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}runSurveyTriggers(e,t){for(let n=0;n<this.triggers.length;n++){let r=this.triggers[n];t&&r.requireValidQuestion||(e.keys=this.triggerKeys,r.checkExpression(e))}}checkTriggersAndRunConditions(e,t,n,r){var i={};if(i[e]={newValue:t,oldValue:n},r){let e=this.getValue(r);i[r]={newValue:e,oldValue:e},this.questionTriggersKeys||(this.questionTriggersKeys={}),this.questionTriggersKeys[r]=e}this.runConditionOnValueChanged(e,t),this.checkTriggers(i,!1,!1,!1,r||e)}get hasRequiredValidQuestionTrigger(){for(let e=0;e<this.triggers.length;e++)if(this.triggers[e].requireValidQuestion)return!0;return!1}doElementsOnLoad(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()}get isRunningConditions(){return this.isRunningConditionsValue}runExpressions(){this.runConditions()}runConditions(){if(!(this.isCompleted||this.isEndLoadingFromJson===`processing`||this.isRunningConditions)){this.isRunningConditionsValue=!0;var e=this.getFilteredProperties();this.runConditionsCore(e),this.isRunningConditionsValue=!1,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<G.maxConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged(``)),this.isRunningConditionOnValueChanged||(this.questionTriggersKeys=void 0))}}getValueChangedKeys(){if(this.isRunningConditionOnValueChanged&&this.onExpressionRunning.isEmpty)return this.questionTriggersKeys}runConditionOnValueChanged(e,t){this.questionTriggersKeys||(this.questionTriggersKeys={}),this.questionTriggersKeys[e]=t,this.isRunningConditions?this.isValueChangedOnRunningCondition=!0:(this.isRunningConditionOnValueChanged=!0,this.runConditions(),this.isRunningConditionOnValueChanged=!1,this.runQuestionsTriggers(e,t),this.questionTriggersKeys=void 0)}runConditionsCore(e){for(var t=this.pages,n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].resetCalculation();for(var n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].doCalculation(this.calculatedValues,e);super.runConditionCore(e);for(let n=0;n<t.length;n++)t[n].runCondition(e)}runQuestionsTriggers(e,t){this.isDisplayMode||this.isDesignMode||this.getAllQuestions().forEac
84h(n=>{n.runTriggers(e,t,this.questionTriggersKeys)})}sendResult(e=null,t=null,n=!1){this.isEditMode&&(n&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!(n&&!this.clientId)&&this.reportWarningOnUsingService()))}getResult(e,t){this.reportWarningOnUsingService()}loadSurveyFromService(e=null,t=null){e&&(this.surveyId=e),t&&(this.clientId=t),this.reportWarningOnUsingService()}reportWarningOnUsingService(){Gj.warn(`Self-hosted Form Library no longer supports integration with SurveyJS Demo Service. Learn more: https://surveyjs.io/stay-updated/release-notes/v2.0.0#form-library-removes-apis-for-integration-with-surveyjs-demo-service`)}loadSurveyFromServiceJson(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))}onLoadingSurveyFromService(){}onLoadSurveyFromService(){}resetVisibleIndexes(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()}updateVisibleIndexes(e){if(!(this.isLoadingFromJson||this.isEndLoadingFromJson)){if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty){this.conditionUpdateVisibleIndexes=!0;return}if(this.isRunningElementsBindings){this.updateVisibleIndexAfterBindings=!0;return}this.updatePageVisibleIndexes(),this.updatePageElementsVisibleIndexes(e),this.updateProgressText(!0)}}updatePageElementsVisibleIndexes(e){if(this.showQuestionNumbers==`onPage`)for(var t=e?[e]:this.visiblePages,n=0;n<t.length;n++)t[n].setVisibleIndex(0);else{let e=this.getStartVisibleIndex(),t=this.pages;for(let n=0;n<t.length;n++)e+=t[n].setVisibleIndex(e)}}getStartVisibleIndex(){let e=this.showQuestionNumbers;return e===`on`||e===`recursive`?0:-1}updatePageVisibleIndexes(){this.updateButtonsVisibility();let e=0,t=1;this.pages.forEach(e=>{});for(var n=0;n<this.pages.length;n++){let r=this.pages[n],i=r.isVisible&&(n>0||!r.isStartPage);r.questionStartIndex&&(t=1),r.visibleIndex=i?e++:-1,r.num=i?t++:-1}}fromJSON(e,t){if(!e)return;this.resetHasLogo(),this.resetPropertyValue(`titleIsEmpty`),this.questionHashesClear(),this.jsonErrors=null,this.sjsVersion=void 0;let n=new Pj;n.toObject(e,this,t),n.errors.length>0&&(this.jsonErrors=n.errors),this.onStateAndCurrentPageChanged(),this.endLoading(),this.updateState(),this.sjsVersion&&G.version&&K.compareVerions(this.sjsVersion,G.version)>0&&Gj.warn(`The version of the survey JSON schema (v`+this.sjsVersion+`) is newer than your current Form Library version (`+G.version+`). Please update the Form Library to make sure that all survey features work as expected.`)}toJSON(e){let t=super.toJSON(e);
84if((e==null?void 0:e.storeLocaleStrings)===`stringsOnly`){let n=e.locales;Array.isArray(n)&&n.length===1&&(t.locale=n[0])}return t}mergeLocalizationJSON(t,n){let r=new e(t);if(r.locale&&(n=[r.locale]),Array.isArray(n)){let e=mj.defaultLocale,t=G.localization.defaultLocaleName;if(e!==t)for(let r=0;r<n.length;r++)n[r]===e&&(n[r]=t)}this.mergeLocalizationObj(r,n)}isPropertyStoredInHash(e){return!0}startLoadingFromJson(e){super.startLoadingFromJson(e),e&&e.locale&&(this.locale=e.locale)}setJsonObject(e){this.fromJSON(e)}endLoadingFromJson(){this.isEndLoadingFromJson=`processing`,this.onFirstPageIsStartedChanged(),super.endLoadingFromJson(),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.onQuestionsOnPageModeChanged(`standard`),this.isEndLoadingFromJson=`conditions`,this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(``),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateCurrentPage(),this.setCalculatedWidthModeUpdater(),this.onEndLoadingFromJson.fire(this,{})}getProcessedTextValue(e){if(this.getProcessedTextValueCore(e),!this.onProcessDynamicText.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessDynamicText.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}}getProcessedTextValueCore(e){let t=e.name.toLocaleLowerCase();if([`no`,`require`,`title`].indexOf(t)!==-1)return;let n=new Fj().getValueInfo({name:t,context:this.getValueGetterContext(),isText:!0,isDisplayValue:e.returnDisplayValue});n.isFound&&(e.isExists=!0,e.value=n.value)}clearUnusedValues(){this.isClearingUnsedValues=!0;for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();this.clearInvisibleQuestionValues(),this.isClearingUnsedValues=!1}hasVisibleQuestionByValueName(e){let t=e;var n=this.getQuestionsByValueName(t.getValueName());if(!Array.isArray(n)||n.length<2)return!1;for(var r=0;r<n.length;r++){let e=n[r];if(e!==t&&e.isVisible&&e.isParentVisible&&!e.parentQuestion&&e.parentQuestion===t.parentQuestion)return!0}return!1}questionsByValueName(e){return this.getQuestionsByValueName(e)||[]}clearInvisibleQuestionValues(){let e=this.clearInvisibleValues===`none`?`none`:`onComplete`,t=this.getAllQuestions();for(var n=0;n<t.length;n++)t[n].clearValueIfInvisible(e)}getVariable(e){if(!e)return null;e=e.toLowerCase();let t=this.getVariableCore(e);return HM(e,t,!0),t}getVariableCore(e){let t=this.variablesHash[e];return this.isValueEmpty(t)&&(e.indexOf(`.`)>-1||e.indexOf(`[`)>-1)?new Fj().getValue(e,new Lj(this.variablesHash)):t}setVariable(e,t){if(!e)return;let n=this.getVariable(e);this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),K.isTwoValueEquals(n,t)||(this.checkTriggersAndRunConditions(e,t,n),this.onVariableChanged.fire(this,{name:e,value:t}))}getVariableNames(){var e=[];for(var t in this.variablesHash)e.push(t);return e}getUnbindValue(e){return this.editingObj?e:K.getUnbindValue(e)}getValue(e){if(!e||e.length==0)return null;var t=this.getDataValueCore(this.valuesHash,e);let n=this.getUnbindValue(t);return HM(e,n),n}setValue(e,t,n=!1,r=!0,i){var a=t;if(r&&(a=this.questionOnValueChanging(e,t)),!(this.isValidateOnValueChanging&&!this.validateOnValueChanging(e,a))&&!(!this.editingObj&&this.isValueEqual(e,a)&&this.isTwoValueEquals(a,t))){var o=this.getValue(e);this.isValueEmpyOnSetValue(e,a)?this.deleteDataValueCore(this.valuesHash,e):(a=this.getUnbindValue(a),this.setDataValueCore(this.valuesHash,e,a)),n=this.getLocNotification(n,a,o),this.updateOnSetValue(e,a,o,n,r,i)}}getDynamicPanelOptions(e,t,n){let r=e,i=r.parentQuestion;if(!i||!i.isDescendantOf(`paneldynamic`)||t.isEmpty)return;let a=i.getValueChangingOptions(r);return a&&n&&(a.name=r.name+this.commentSuffix),a}questionValueChanging(e,t,n){let r=this.getDynamicPanelOptions(e,this.onDynamicPanelValueChanging,n);return r?(r.value=t,this.onDynamicPanelValueChanging.fire(this,r),r.value):t}questionValueChanged(e,t,n){let r=this.getDynamicPanelOptions(e,this.onDynamicPanelValueChanged,n);r&&(r.value=n?e.comment:e.value,r.oldValue=t,this.onDynamicPanelValueChanged.fire(this,r))}isValueEmpyOnSetValue(e,t){return this.isValueEmpty(t,!1)?!this.editingObj||t==null||this.editingObj.getDefaultPropertyValue(e)===t:!1}updateOnSetValue(e,t,n,r=!1,i=!0,a){this.updateQuestionValue(e,t),!(r===!0||this.isDisposed||this.isRunningElementsBindings)&&(a=a||e,this.nofifyQuesitonHash[e]=!0,this.checkTriggersAndRunConditions(e,t,n),this.nofifyQuesitonHash[e]&&(i&&this.notifyQuestionOnValueChanged(e,t,a),r!==`text`&&this.tryGoNextPageAutomatic(e),delete this.nofifyQuesitonHash[e]))}isValueEqual(e,t){(t===``||t===void 0)&&(t=null);var n=this.getValue(e);return(n===``||n===void 0)&&(n=null),t===null||n===null?t===n:this.isTwoValueEquals(t,n)}doOnPageAdded(e){if(e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,`page`)),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),!this.runningPages&&(this.isLoadingFromJson||this.updateCurrentPage(),this.canFireAddPage())){var t={page:e};this.onPageAdded.fire(this,t)}}canFireAddPage(){return!this.isMovingPage}doOnPageRemoved(e){e.setSurveyImpl(null),!this.runningPages&&(e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateLazyRenderingRowsOnRemovingElements())}generateNewName(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].name]=!0;for(var i=1;n[t+i];)i++;return t+i}getNewGeneratedName(e,t){return this.generateNewName(e,t)}tryGoNextPageAutomatic(e){if(this.isEndLoadingFromJson||!this.autoAdvanceEnabled||!this.currentPage)return;let t=this.getQuestionByValueName(e);
84if(!t||t&&(!t.visible||!t.supportAutoAdvance())||!t.validate(!1)&&!t.supportGoNextPageError())return;if(this.currentSingleElement){let e=this.currentSingleElement;mI.safeTimeOut(()=>{e===this.currentSingleElement&&(this.isLastElement?this.autoAdvanceAllowComplete&&this.tryCompleteOrShowPreview():this.performNext())},G.autoAdvanceDelay)}var n=this.getCurrentPageQuestions();if(n.indexOf(t)<0)return;for(var r=0;r<n.length;r++)if(n[r].hasInput&&n[r].isEmpty())return;if(this.isLastPage&&(this.autoAdvanceEnabled!==!0||!this.autoAdvanceAllowComplete)||!this.validateActivePage(!1))return;let i=this.currentPage;mI.safeTimeOut(()=>{i===this.currentPage&&(this.isLastPage?this.tryCompleteOrShowPreview():this.nextPage())},G.autoAdvanceDelay)}tryCompleteOrShowPreview(){this.showPreviewBeforeComplete?this.showPreview():this.tryComplete()}getComment(e){return this.getValue(e+this.commentSuffix)||``}setComment(e,t,n=!1){if(t||(t=``),this.isTwoValueEquals(t,this.getComment(e)))return;let r=e+this.commentSuffix;t=this.questionOnValueChanging(r,t,e);let i=this.getComment(e);n=this.getLocNotification(n,t,i),this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,r):this.setDataValueCore(this.valuesHash,r,t);var a=this.getQuestionsByValueName(e);if(a)for(var o=0;o<a.length;o++)a[o].updateCommentFromSurvey(t),this.validateQuestionOnValueChanged(a[o]);n||this.checkTriggersAndRunConditions(r,t,i,e),n!==`text`&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByValueName(e);s&&(this.fireOnValueChanged(r,t,s),s.comment=t,s.comment!=t&&(s.comment=t))}clearValue(e){this.setValue(e,null),this.setComment(e,null)}get clearValueOnDisableItems(){return this.clearDisabledChoices}set clearValueOnDisableItems(e){this.clearDisabledChoices=e}getQuestionClearIfInvisible(e){return this.isShowingPreview||this.runningPages?`none`:e==="default"?this.clearInvisibleValues:e}questionVisibilityChanged(e,t,n){n&&this.updateVisibleIndexes(e.page),t||this.changeCurrentSingleElementOnVisibilityChanged(),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:t})}pageVisibilityChanged(e,t){if(this.isLoadingFromJson)return;(t&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),t||this.changeCurrentSingleElementOnVisibilityChanged();let n=this.currentSingleElement,r=this.currentPage;n&&r&&n.page!==r&&(this.currentSingleElement=r.getFirstVisibleElement()),this.onPageVisibleChanged.fire(this,{page:e,visible:t}),this.onPagesVisibleChangedCallback&&this.onPagesVisibleChangedCallback()}panelVisibilityChanged(e,t){e.page&&(this.updateVisibleIndexes(e.page),t||this.changeCurrentSingleElementOnVisibilityChanged()),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})}questionCreated(e){this.onQuestionCreated.fire(this,{question:e})}questionAdded(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),`question`)),e.page&&this.questionHashesAdded(e),this.isLoadingFromJson||(this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(e.page),this.setCalculatedWidthModeUpdater()),this.canFireAddElement()&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})}canFireAddElement(){return!this.isMovingQuestion}questionRemoved(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(e.page),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()}questionRenamed(e,t,n){this.questionHashesRemoved(e,t,n),this.questionHashesAdded(e)}questionHashesClear(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}}questionHashesPanelAdded(e){if(!this.isLoadingFromJson)for(var t=e.questions,n=0;n<t.length;n++)this.questionHashesAdded(t[n])}questionHashesAdded(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())}questionHashesRemoved(e,t,n){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),n&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,n),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,n.toLowerCase()))}questionHashAddedCore(e,t,n){var r=e[n];if(r){var r=e[n];r.indexOf(t)<0&&r.push(t)}else e[n]=[t]}questionHashRemovedCore(e,t,n){var r=e[n];if(r){var i=r.indexOf(t);i>-1&&r.splice(i,1),r.length==0&&delete e[n]}}panelAdded(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),`panel`)),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(e.page),this.canFireAddElement()&&this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})}panelRemoved(e){this.updateVisibleIndexes(e.page),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()}validateQuestion(e,t,n){if(!this.onValidateQuestion.isEmpty){var r={
84name:e.name,question:e,value:e.value,errors:t,error:null};this.onValidateQuestion.fire(this,r),r.error&&t.push(new dN(r.error,this))}n&&this.beforeSettingQuestionErrors(e,t)}validatePanel(e,t,n){if(e.isPanel&&!this.onValidatePanel.isEmpty){let n={name:e.name,panel:e,error:null,errors:t};this.onValidatePanel.fire(this,n),n.error&&t.push(new dN(n.error,this))}n&&this.makeRequiredErrorsInvisible(t)}processHtml(e,t){t||(t=``);var n={html:e,reason:t};return this.onProcessHtml.fire(this,n),this.processText(n.html,!0)}getValueGetterContext(){return new VI(this,this.valuesHash,this.variablesHash)}processText(e,t,n){return this.processTextEx({text:e,returnDisplayValue:t,doEncoding:!1,context:n}).text}processTextEx(e){return e.doEncoding===void 0&&(e.doEncoding=G.web.encodeUrlParams),e.runAtDesign||!this.isDesignMode?this.textPreProcessor.processTextEx(e):{text:e.text,hasAllValuesOnLastRun:!1}}get textPreProcessor(){return this.textPreProcessorValue||(this.textPreProcessorValue=new mF(this),this.textPreProcessorValue.onProcess=e=>{this.getProcessedTextValue(e)}),this.textPreProcessorValue}getSurveyMarkdownHtml(e,t,n,r){let i={element:e,text:t,name:n,item:r,html:null};return this.onTextMarkdown.fire(this,i),i.html}getCorrectedAnswerCount(){return this.getCorrectAnswerCount()}getCorrectAnswerCount(){return this.getCorrectedAnswerCountCore(!0)}getQuizQuestionCount(){for(var e=this.getQuizQuestions(),t=0,n=0;n<e.length;n++)t+=e[n].quizQuestionCount;return t}getInCorrectedAnswerCount(){return this.getIncorrectAnswerCount()}getInCorrectAnswerCount(){return this.getIncorrectAnswerCount()}getIncorrectAnswerCount(){return this.getCorrectedAnswerCountCore(!1)}onCorrectQuestionAnswer(e,t){this.onIsAnswerCorrect.isEmpty||(t.question=e,this.onIsAnswerCorrect.fire(this,t))}getCorrectedAnswerCountCore(e){var t=this.getQuizQuestions(),n=0;for(let r=0;r<t.length;r++){let i=t[r],a=i.correctAnswerCount;n+=e?a:i.quizQuestionCount-a}return n}getCorrectedAnswers(){return this.getCorrectedAnswerCount()}getInCorrectedAnswers(){return this.getInCorrectedAnswerCount()}get showTimerPanel(){return this.showTimer?this.timerLocation:`none`}set showTimerPanel(e){this.showTimer=e!==`none`,this.showTimer&&(this.timerLocation=e)}get isTimerPanelShowingOnTop(){return this.showTimer&&this.timerLocation===`top`}get isTimerPanelShowingOnBottom(){return this.showTimer&&this.timerLocation===`bottom`}get timerInfoMode(){return this.getTimerInfoVal(this.getPropertyValue(`timerInfoMode`))}set timerInfoMode(e){this.setPropertyValue(`timerInfoMode`,e)}getTimerInfoVal(e){return e===`all`?`combined`:e}get showTimerPanelMode(){let e=this.timerInfoMode;return e===`combined`?`all`:e}set showTimerPanelMode(e){this.timerInfoMode=this.getTimerInfoVal(e)}updateGridColumns(){this.pages.forEach(e=>e.updateGridColumns())}setCalculatedWidthModeUpdater(){this.isLoadingFromJson||(this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new KM(()=>this.calculateWidthMode()),this.calculatedWidthMode=this.calculatedWidthModeUpdater)}calculateWidthMode(){if(this.widthMode==`auto`){let e=!1;return this.isSingleVisibleInput||this.pages.forEach(t=>{t.needResponsiveWidth()&&(e=!0)}),e?`responsive`:`static`}return this.widthMode}get renderedWidth(){let e=this.getPropertyValue(`calculatedWidthMode`)==`static`,t=this.getPropertyValue(`width`);if(this.isScaled&&this.responsiveStartWidth>1){let n=this.responsiveStartWidth;try{t=t||this.staticStartWidth,n=isNaN(t)?parseFloat(t.toString().replace(`px`,``)):t}catch{}return(e?n:this.responsiveStartWidth)*this.widthScale/100+`px`}return t&&!isNaN(t)&&(t+=`px`),e&&t||void 0}setStaticStartWidth(e){this.staticStartWidth=e}setResponsiveStartWidth(e){this.responsiveStartWidth=e}get isScaled(){return Math.abs(this.widthScale-100)>.001}get timerInfo(){return this.getTimerInfo()}get timerClock(){let e,t;if(this.currentPage){let{spent:n,limit:r,minorSpent:i,minorLimit:a}=this.getTimerInfo();e=r>0?this.getDisplayClockTime(r-n):this.getDisplayClockTime(n),i!==void 0&&(t=a>0?this.getDisplayClockTime(a-i):this.getDisplayClockTime(i))}return{majorText:e,minorText:t}}get timerInfoText(){let e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new yj(this,!0);return t.text=e.text,t.textOrHtml}getTimerInfo(){let e=this.currentPage;if(!e)return{spent:0,limit:0};let t=e.timeSpent,n=this.timeSpent,r=e.getMaxTimeToFinish(),i=this.timeLimit;return this.timerInfoMode==`page`?{spent:t,limit:r}:this.timerInfoMode==`survey`?{spent:n,limit:i}:r>0&&i>0?{spent:t,limit:r,minorSpent:n,minorLimit:i}:r>0?{spent:t,limit:r,minorSpent:n}:i>0?{spent:n,limit:i,minorSpent:t}:{spent:t,minorSpent:n}}getTimerInfoText(){var e=this.currentPage;if(!e)return``;var t=this.getDisplayTime(e.timeSpent),n=this.getDisplayTime(this.timeSpent),r=e.getMaxTimeToFinish(),i=this.getDisplayTime(r),a=this.getDisplayTime(this.timeLimit);if(this.timerInfoMode==`page`)return this.getTimerInfoPageText(e,t,i);if(this.timerInfoMode==`survey`)return this.getTimerInfoSurveyText(n,a);if(this.timerInfoMode==`combined`){if(r<=0&&this.timeLimit<=0)return this.getLocalizationFormatString(`timerSpentAll`,t,n);if(r>0&&this.timeLimit>0)return this.getLocalizationFormatString(`timerLimitAll`,t,i,n,a);let o=this.getTimerInfoPageText(e,t,i),s=this.getTimerInfoSurveyText(n,a);return o+` `+s}return``}getTimerInfoPageText(e,t,n){return e&&e.getMaxTimeToFinish()>0?this.getLocalizationFormatString(`timerLimitPage`,t,n):this.getLocalizationFormatString(`timerSpentPage`,t,n)}getTimerInfoSurveyText(e,t){let n=this.timeLimit>0?`timerLimitSurvey`:`timerSpentSurvey`;return this.getLocalizationFormatString(n,e,t)}getDisplayClockTime(e){e<0&&(e=0);let t=Math.floor(e/60),n=e%60,r=n.toString();return n<10&&(r=`0`+r),`${t}:${r}`}getDisplayTime(e){let t=Math.floor(e/60),n=e%60,r=``;return t>0&&(r+=t+` `+this.getLocalizationString(`timerMin`)),r&&n==0?r:(r&&(r+=` `),r+n+` `+this.getLocalizationString(`timerSec`))}get timerModel(){return this.timerModelValue||(this.timerModelValue=new gI(this),this.timerModelValue.onTimerTick=e=>{this.doTimer(e)}),this.timerModelValue}startTimer(){this.isEditMode&&this.timerModel.start()}startTimerFromUI(){this.showTimer&&this.state===`running`&&this.startTimer()}stopTimer(){this.timerModel.stop()}get timeSpent(){return this.timerModel.spent}set timeSpent(e){this.timerModel.spent=e}get maxTimeToFinish(){return this.timeLimit}set maxTimeToFinish(e){this.timeLimit=e}get maxTimeToFinishPage(){return this.timeLimitPerPage}set maxTimeToFinishPage(e){this.timeLimitPerPage=e}doTimer(e){if(this.onTimerTick.fire(this,{}),this.timeLimit>0&&this.timeLimit<=this.timeSpent&&(this.timeSpent=this.timeLimit,this.tryComplete()),e){var t=e.getMaxTimeToFinish();t>0&&t==e.timeSpent&&(this.isLastPage?this.tryComplete():this.nextPage())}}get inSurvey(){return!0}getSurveyData(){return this}getSurvey(){return this}getTextProcessor(){return this}getObjects(e,t){var n=[];return Array.prototype.push.apply(n,this.getPagesByNames(e)),Array.prototype.push.apply(n,this.getQuestionsByNames(t)),n}setTriggerValue(e,t,n){if(e){if(n)this.setVariable(e,t);else{this.startSetValueFromTrigger();let n=new Fj().getValueInfo({name:e,context:this.getValueGetterContext(),createObjects:!0});n.isFound&&n.question?n.question.value=t:e.indexOf(`.`)<0&&this.setValue(e,t),this.finishSetValueFromTrigger()}}}copyTriggerValue(e,t,n){if(!e||!t)return;let r=new Fj().getValueInfo({name:t,context:this.getValueGetterContext(),createObjects:!0,isText:n,isDisplayValue:n});r.isFound&&this.setTriggerValue(e,K.getUnbindValue(r.value),!1)}triggerExecuted(e){this.onTriggerExecuted.fire(this,{trigger:e})}get isSettingValueFromTrigger(){return this.setValueFromTriggerCounter>0}startSetValueFromTrigger(){this.setValueFromTriggerCounter++}finishSetValueFromTrigger(){this.setValueFromTriggerCounter--}startMovingQuestion(){this.isMovingQuestion=!0}
84stopMovingQuestion(){this.isMovingQuestion=!1}get isQuestionDragging(){return this.isMovingQuestion}startMovingPage(){this.isMovingPage=!0}stopMovingPage(){this.isMovingPage=!1}focusQuestion(e){return this.focusQuestionByInstance(this.getQuestionByName(e,!0))}focusQuestionByInstance(e,t=!1){var n;if(!e||!e.isVisible||!e.page||((n=this.focusingQuestionInfo)==null?void 0:n.question)===e)return!1;this.focusingQuestionInfo={question:e,onError:t};let r=this.currentSingleElement;this.skippedPages.push({from:r||this.currentPage,to:r?e:e.page});let i=this.activePage!==e.page&&!e.page.isStartPage;return i&&(this.currentPage=e.page),this.isSingleVisibleQuestion&&!this.isDesignMode&&(this.currentSingleElement=e),i||this.focusQuestionInfo(),!0}focusQuestionInfo(){var e;let t=(e=this.focusingQuestionInfo)==null?void 0:e.question;t&&!t.isDisposed&&t.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0}questionEditFinishCallback(e,t){let n=this.enterKeyAction||G.enterKeyAction;if(n==`loseFocus`&&t.target.blur(),n==`moveToNextEditor`){let n=this.currentPage.questions,r=n.indexOf(e);r>-1&&r<n.length-1?n[r+1].focus():t.target.blur()}}elementWrapperComponentNameCore(e,t,n,r,i){if(this.onElementWrapperComponentName.isEmpty)return e;let a={componentName:e,element:t,wrapperName:n,reason:r,item:i};return this.onElementWrapperComponentName.fire(this,a),a.componentName}elementWrapperDataCore(e,t,n,r,i){if(this.onElementWrapperComponentData.isEmpty)return e;let a={data:e,element:t,wrapperName:n,reason:r,item:i};return this.onElementWrapperComponentData.fire(this,a),a.data}getElementWrapperComponentName(t,n){let r=n===`logo-image`?`sv-logo-image`:e.TemplateRendererComponentName;return this.elementWrapperComponentNameCore(r,t,`component`,n)}getQuestionContentWrapperComponentName(t){return this.elementWrapperComponentNameCore(e.TemplateRendererComponentName,t,`content-component`)}getRowWrapperComponentName(t){return this.elementWrapperComponentNameCore(e.TemplateRendererComponentName,t,`row`)}getItemValueWrapperComponentName(t,n){return this.elementWrapperComponentNameCore(e.TemplateRendererComponentName,n,`itemvalue`,void 0,t)}getElementWrapperComponentData(e,t){return this.elementWrapperDataCore(e,e,`component`,t)}getRowWrapperComponentData(e){return this.elementWrapperDataCore(e,e,`row`)}getItemValueWrapperComponentData(e,t){return this.elementWrapperDataCore(e,t,`itemvalue`,void 0,e)}getMatrixCellTemplateData(e){let t=e.question;return this.elementWrapperDataCore(t,t,`cell`)}searchText(e){e&&(e=e.toLowerCase());for(var t=[],n=0;n<this.pages.length;n++)this.pages[n].searchText(e,t);return t}getSkeletonComponentName(e){return this.skeletonComponentName}get layoutElements(){return this.getPropertyValue(`layoutElements`,void 0,()=>this.createLayoutElements())}createLayoutElements(){if(this.isCreatingLayout)return[];this.isCreatingLayout=!0;let e=[];return e.push(...this.timerModel.createLayoutElements()),e.push(...this.progressTextModel.createLayoutElements()),e.push(...this.tocModel.createLayoutElements()),e.push(...this.navigationLayoutModel.createLayoutElements()),this.isCreatingLayout=!1,e}isElementInContainerByContainerProperty(e,t){return Array.isArray(e.container)&&e.container.indexOf(t)!==-1||e.container===t}isLayoutElementInContainer(e,t){return e.isInContainer?e.isInContainer(t):this.isElementInContainerByContainerProperty(e,t)}addLayoutElement(e){let t=this.removeLayoutElement(e.id);return this.layoutElements.push(e),t}findLayoutElement(e){return this.layoutElements.filter(t=>t.id===e)[0]}removeLayoutElement(e){let t=this.findLayoutElement(e);if(t){let e=this.layoutElements.indexOf(t);this.layoutElements.splice(e,1)}return t}getContainerContent(e){let t=[];for(let n of this.layoutElements)this.isLayoutElementInContainer(n,e)&&t.push(n);return t.sort((e,t)=>(e.index||0)-(t.index||0)),t.forEach(e=>{e.getData&&(e.data=e.getData())}),t}processPopupVisiblityChanged(e,t,n){this.onScrollCallback=n?()=>{t.hide()}:void 0,this.onPopupVisibleChanged.fire(this,{question:e,popup:t,visible:n})}processOpenDropdownMenu(e,t){let n=Object.assign({question:e},t);this.onOpenDropdownMenu.fire(this,n),t.menuType=n.menuType}getCssTitleExpandableSvg(){return null}createCustomChoiceItem(e){this.onCreateCustomChoiceItem.fire(this,e)}applyTheme(e){if(e){if(Object.keys(e).forEach(t=>{t!==`header`&&(t===`isPanelless`?this.isCompact=e[t]:this[t]=e[t])}),`header`in e&&!e.headerView&&(this.headerView=`advanced`),this.headerView!==`basic`){this.removeLayoutElement(`advanced-header`);let t=new xI;t.fromTheme(e),this.insertAdvancedHeader(t)}this.themeChanged(e)}}
84themeChanged(e){this.getAllQuestions().forEach(t=>t.themeChanged(e))}waitAndExecute(e){this.taskManager.waitAndExecute(e)}dispose(){if(this.unConnectEditingObj(),this.removeScrollEventListener(),this.destroyResizeObserver(),this.rootElement=void 0,this.layoutElements){for(var e=0;e<this.layoutElements.length;e++)this.layoutElements[e].data&&this.layoutElements[e].data!==this&&this.layoutElements[e].data.dispose&&this.layoutElements[e].data.dispose();this.layoutElements.splice(0,this.layoutElements.length)}if(super.dispose(),this.editingObj=null,this.pages){this.currentPage=null;for(var e=0;e<this.pages.length;e++)this.pages[e].setSurveyImpl(void 0),this.pages[e].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}}_isElementShouldBeSticky(e){var t;if(!e)return!1;let n=(t=this.scrollerElement)==null?void 0:t.querySelector(e);return n?!!this.scrollerElement&&this.scrollerElement.scrollTop>0&&n.getBoundingClientRect().y<=this.scrollerElement.getBoundingClientRect().y:!1}get rootScrollDisabled(){return!(this.fitToContainer&&this.formScrollDisabled)}get formScrollDisabled(){return!this.backgroundImage||this.backgroundImageAttachment!==`fixed`}onScroll(){this.rootElement&&(this._isElementShouldBeSticky(`.sv-components-container-center`)?this.rootElement.classList&&this.rootElement.classList.add(`sv-root--sticky-top`):this.rootElement.classList&&this.rootElement.classList.remove(`sv-root--sticky-top`),this.tocModel&&this.tocModel.updateStickyTOCSize(this.rootElement)),this.onScrollCallback&&this.onScrollCallback()}addScrollEventListener(){this.scrollHandler=()=>{this.onScroll()},this.rootElement.addEventListener(`scroll`,this.scrollHandler),this.rootElement.getElementsByTagName(`form`)[0]&&this.rootElement.getElementsByTagName(`form`)[0].addEventListener(`scroll`,this.scrollHandler),this.scrollerElement&&this.scrollerElement.addEventListener(`scroll`,this.scrollHandler)}removeScrollEventListener(){this.rootElement&&this.scrollHandler&&(this.rootElement.removeEventListener(`scroll`,this.scrollHandler),this.rootElement.getElementsByTagName(`form`)[0]&&this.rootElement.getElementsByTagName(`form`)[0].removeEventListener(`scroll`,this.scrollHandler),this.scrollerElement&&this.scrollerElement.removeEventListener(`scroll`,this.scrollHandler))}};Z.TemplateRendererComponentName=`sv-template-renderer`,Z.platform=`unknown`,q([Y()],Z.prototype,`sjsVersion`,void 0),q([Y()],Z.prototype,`$schema`,void 0),q([Y()],Z.prototype,`completedCss`,void 0),q([Y()],Z.prototype,`completedBeforeCss`,void 0),q([Y()],Z.prototype,`loadingBodyCss`,void 0),q([Y()],Z.prototype,`containerCss`,void 0),q([Y({onSet:(e,t)=>{t.updateCss()}})],Z.prototype,`fitToContainer`,void 0),q([Y({onSet:(e,t)=>{if(e===`basic`)t.removeLayoutElement(`advanced-header`);else if(!t.findLayoutElement(`advanced-header`)){let e=new xI;t.insertAdvancedHeader(e)}}})],Z.prototype,`headerView`,void 0),q([Y()],Z.prototype,`showBrandInfo`,void 0),q([Y()],Z.prototype,`enterKeyAction`,void 0),q([Y()],Z.prototype,`lazyRenderFirstBatchSizeValue`,void 0),q([Y()],Z.prototype,`surveyId`,void 0),q([Y()],Z.prototype,`surveyPostId`,void 0),q([Y()],Z.prototype,`clientId`,void 0),q([Y()],Z.prototype,`cookieName`,void 0),q([Y()],Z.prototype,`partialSendEnabled`,void 0),q([Y()],Z.prototype,`sendResultOnPageNext`,void 0),q([Y()],Z.prototype,`surveyShowDataSaving`,void 0),q([Y()],Z.prototype,`autoFocusFirstQuestion`,void 0),q([Y()],Z.prototype,`autoFocusFirstError`,void 0),q([Y()],Z.prototype,`navigationButtonsLocation`,void 0),q([Y()],Z.prototype,`showPrevButton`,void 0),q([Y({defaultValue:!0})],Z.prototype,`showCompleteButton`,void 0),q([Y()],Z.prototype,`showTOC`,void 0),q([Y()],Z.prototype,`tocLocation`,void 0),q([Y()],Z.prototype,`tocItemComponent`,void 0),q([Y()],Z.prototype,`showTitle`,void 0),q([Y()],Z.prototype,`showPageTitles`,void 0),q([Y()],Z.prototype,`showCompletePage`,void 0),q([Y()],Z.prototype,`navigateToUrl`,void 0),q([Y()],Z.prototype,`requiredMark`,void 0),q([Y({returnValue:``})],Z.prototype,`questionStartIndex`,void 0),q([Y()],Z.prototype,`storeOthersAsComment`,void 0),q([Y()],Z.prototype,`maxTextLength`,void 0),q([Y()],Z.prototype,`maxCommentLength`,void 0),q([Y()],Z.prototype,`autoAdvanceEnabled`,void 0),q([Y()],Z.prototype,`autoAdvanceAllowComplete`,void 0),q([Y()],Z.prototype,`checkErrorsMode`,void 0),q([Y()],Z.prototype,`validateVisitedEmptyFields`,void 0),q([Y()],Z.prototype,`autoGrowComment`,void 0),q([Y()],Z.prototype,`allowResizeComment`,void 0),q([Y()],Z.prototype,`commentAreaRows`,void 0),q([Y()],Z.prototype,`textUpdateMode`,void 0),q([Y({onSetting:e=>e===!0?`onComplete`:e===!1?`none`:e})],Z.prototype,`clearInvisibleValues`,void 0),q([Y()],Z.prototype,`keepIncorrectValues`,void 0),q([Y({localizable:{defaultStr:`emptySurvey`,markdown:!0}})],Z.prototype,`emptySurveyText`,void 0),q([Y({localizable:!0})],Z.prototype,`logo`,void 0),q([Y()],Z.prototype,`logoWidth`,void 0),q([Y()],Z.prototype,`logoHeight`,void 0),q([Y()],Z.prototype,`logoPosition`,void 0),q([Y()],Z.prototype,`logoFit`,void 0),q([Y({defaultValue:{}})],Z.prototype,`cssVariables`,void 0),q([Y()],Z.prototype,`_isMobile`,void 0),q([Y()],Z.prototype,`_isCompact`,void 0),q([Y({onSet:(e,t)=>{t.updateCss()}})],Z.prototype,`backgroundImage`,void 0),q([Y()],Z.prototype,`backgroundImageFit`,void 0),q([Y({onSet:(e,t)=>{t.updateCss()}})],Z.prototype,`backgroundImageAttachment`,void 0),q([Y()],Z.prototype,`backgroundOpacity`,void 0),q([Y()],Z.prototype,`wrapperFormCss`,void 0),q([Y({localizable:{defaultStr:!0}})],Z.prototype,`startSurveyText`,void 0),q([Y({localizable:{defaultStr:!0}})],Z.prototype,`pagePrevText`,void 0),q([Y({localizable:{defaultStr:!0}})],Z.prototype,`pageNextText`,void 0),q([Y({localizable:{defaultStr:!0}})],Z.prototype,`completeText`,void 0),q([Y({localizable:{defaultStr:!0}})],Z.prototype,`previewText`,void 0),q([Y({localizable:{defaultStr:!0}})],Z.prototype,`editText`,void 0),q([Y({defaultValue:`numTitleRequire`,onSetting:e=>e!==`numRequireTitle`&&e!==`requireNumTitle`&&e!=`numTitle`?`numTitleRequire`:e})],Z.prototype,`questionTitlePattern`,void 0),q([Y({onSet:(e,t)=>t.updateVisibleIndexes()})],Z.prototype,`showPageNumbers`,void 0),q([Y({onSetting:e=>e.toLowerCase()})],Z.prototype,`progressBarLocation`,void 0),q([Y({onSetting:e=>e===`correctquestion`?`correctQuestion`:e===`requiredquestion`?`requiredQuestion`:e})],Z.prototype,`progressBarType`,void 0),q([Y({getDefaultValue:e=>e.progressBarType===`buttons`})],Z.prototype,`progressBarShowPageTitles`,void 0),q([Y()],Z.prototype,`progressBarShowPageNumbers`,void 0),q([Y()],Z.prototype,`progressBarInheritWidthFrom`,void 0),q([Y({onSetting:e=>e.toLowerCase()})],Z.prototype,`questionErrorLocation`,void 0),q([Y()],Z.prototype,`questionDescriptionLocation`,void 0),q([Y()],Z.prototype,`readOnly`,void 0),q([Y({defaultValue:`entireItem`})],Z.prototype,`matraixDragHandleArea`,void 0),q([Y()],Z.prototype,`questionOrder`,void 0),q([Y({defaultValue:!1})],Z.prototype,`isCompleted`,void 0),q([Y({defaultValue:!1})],Z.prototype,`isStartedState`,void 0),q([Y({defaultValue:!1})],Z.prototype,`isCompletedBefore`,void 0),q([Y({defaultValue:!1})],Z.prototype,`isLoading`,void 0),q([Y({defaultValue:!1})],Z.prototype,`isNavigationBlocked`,void 0),q([Y({defaultValue:!0})],Z.prototype,`validationEnabled`,void 0),q([Y()],Z.prototype,`questionsOnPageMode`,void 0),q([Y()],Z.prototype,`firstPageIsStartPage`,void 0),q([Y()],Z.prototype,`showPreviewBeforeComplete`,void 0),q([Y()],Z.prototype,`previewMode`,void 0),q([Y()],Z.prototype,`rootCss`,void 0),q([Y({defaultValue:!1})],Z.prototype,`clearDisabledChoices`,void 0),q([Y()],Z.prototype,`showTimer`,void 0),q([Y()],Z.prototype,`timerLocation`,void 0),q([Y({onSet:(e,t)=>{t.updateGridColumns()}})],Z.prototype,`gridLayoutEnabled`,void 0),q([Y()],Z.prototype,`widthMode`,void 0),q([Y()],Z.prototype,`calculatedWidthMode`,void 0),q([Y()],Z.prototype,`width`,void 0),q([Y({defaultValue:100,onSet(e,t,n){t.pages.forEac
84h(e=>e.updateRootStyle())}})],Z.prototype,`widthScale`,void 0),q([Y()],Z.prototype,`staticStartWidth`,void 0),q([Y()],Z.prototype,`responsiveStartWidth`,void 0),q([Y({defaultValue:0})],Z.prototype,`timeLimit`,void 0),q([Y({defaultValue:0})],Z.prototype,`timeLimitPerPage`,void 0);function HI(e,t){return e?e.toUpperCase()===t.toUpperCase():!1}J.addClass(`survey`,[{name:`locale`,choices:()=>mj.getLocales(!0),onGetValue:e=>e.locale==mj.defaultLocale?null:e.locale},{name:`title`,serializationProperty:`locTitle`,dependsOn:`locale`},{name:`description:text`,serializationProperty:`locDescription`,dependsOn:`locale`},{name:`logo:file`,serializationProperty:`locLogo`},{name:`logoWidth`,default:`auto`,minValue:0},{name:`logoHeight`,default:`40px`,minValue:0},{name:`logoFit`,default:`contain`,choices:[`none`,`contain`,`cover`,`fill`]},{name:`logoPosition`,default:`left`,choices:[`none`,`left`,`right`,`top`,`bottom`]},{name:`autoFocusFirstQuestion:boolean`,alternativeName:`focusFirstQuestionAutomatic`},{name:`autoFocusFirstError:boolean`,default:!0,alternativeName:`focusOnFirstError`},{name:`completedHtml:html`,serializationProperty:`locCompletedHtml`},{name:`completedBeforeHtml:html`,serializationProperty:`locCompletedBeforeHtml`},{name:`completedHtmlOnCondition:htmlconditions`,className:`htmlconditionitem`,isArray:!0},{name:`loadingHtml:html`,serializationProperty:`locLoadingHtml`},{name:`pages:surveypages`,className:`page`,isArray:!0,onSerializeValue:e=>e.originalPages||e.pages},{name:`elements`,alternativeName:`questions`,baseClassName:`question`,visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,n){e.pages.splice(0,e.pages.length);var r=e.addNewPage(``);n.toObject({questions:t},r,n==null?void 0:n.options)}},{name:`triggers:triggers`,baseClassName:`surveytrigger`,classNamePart:`trigger`},{name:`calculatedValues:calculatedvalues`,className:`calculatedvalue`,isArray:!0},{name:`sjsVersion`,visible:!1},{name:`$schema`,visible:!1},{name:`surveyId`,visible:!1},{name:`surveyPostId`,visible:!1},{name:`surveyShowDataSaving:boolean`,visible:!1},`cookieName`,{name:`partialSendEnabled:boolean`,alternativeName:`sendResultOnPageNext`},{name:`showNavigationButtons:boolean`,default:!0},{name:`navigationButtonsLocation`,default:`bottom`,choices:[`top`,`bottom`,`topBottom`]},{name:`showPrevButton:boolean`,default:!0,visibleIf:e=>e.showNavigationButtons!==`none`},{name:`showTitle:boolean`,default:!0},{name:`showPageTitles:boolean`,default:!0},{name:`showCompletePage:boolean`,default:!0,alternativeName:`showCompletedPage`},`navigateToUrl`,{name:`navigateToUrlOnCondition:urlconditions`,className:`urlconditionitem`,isArray:!0},{name:`questionOrder`,alternativeName:`questionsOrder`,default:`initial`,choices:[`initial`,`random`]},{name:`matrixDragHandleArea`,visible:!1,default:`entireItem`,choices:[`entireItem`,`icon`]},`showPageNumbers:boolean`,{name:`showQuestionNumbers`,default:`off`,acceptedValues:[!1,!0],choices:[`on`,`onPage`,`recursive`,`off`]},{name:`questionTitleLocation`,default:`top`,choices:[`top`,`bottom`,`left`]},{name:`questionDescriptionLocation`,default:`underTitle`,choices:[`underInput`,`underTitle`,`hidden`]},{name:`questionErrorLocation`,default:`top`,choices:[`top`,`bottom`]},{name:`showProgressBar:boolean`,default:!1,onSetValue:(e,t,n)=>{e&&e.setShowProgressBar(t)}},{name:`progressBarLocation`,default:`auto`,choices:[`auto`,`aboveheader`,`belowheader`,`bottom`,`topbottom`],visibleIf:e=>e.showProgressBar},{name:`progressBarType`,default:`pages`,choices:[`pages`,`questions`,`requiredQuestions`,`correctQuestions`],visibleIf:e=>e.showProgressBar},{name:`progressBarShowPageTitles:switch`,visibleIf:e=>e.showProgressBar&&e.progressBarType===`pages`},{name:`progressBarShowPageNumbers:switch`,visibleIf:e=>e.showProgressBar&&e.progressBarType===`pages`},{name:`progressBarInheritWidthFrom`,default:`container`,choices:[`container`,`survey`],visibleIf:e=>e.showProgressBar&&e.progressBarType===`pages`},{name:`showTOC:switch`,default:!1},{name:`tocLocation`,default:`left`,choices:[`left`,`right`],dependsOn:[`showTOC`],visibleIf:e=>!!e&&e.showTOC},{name:`tocItemComponent`,visible:!1},{name:`readOnly:boolean`},{name:`mode`,visible:!1,isSerializable:!1},{name:`storeOthersAsComment:boolean`,default:!0},{name:`maxTextLength:number`,default:0,minValue:0},{name:`maxCommentLength:number`,default:0,minValue:0,alternativeName:`maxOthersLength`},{name:`autoAdvanceEnabled:boolean`,alternativeName:`goNextPageAutomatic`,onSetValue:function(e,t){t!==`autogonext`&&(t=K.isTwoValueEquals(t,!0)),t===`autogonext`&&(t=!0),e.setPropertyValue(`autoAdvanceEnabled`,t)}},{name:`autoAdvanceAllowComplete:boolean`,default:!0,alternativeName:`allowCompleteSurveyAutomatic`,visibleIf:e=>e.autoAdvanceEnabled===!0},{name:`clearInvisibleValues`,default:`onComplete`,choices:[`none`,`onComplete`,`onHidden`,`onHiddenContainer`]},{name:`checkErrorsMode`,default:`onNextPage`,choices:[`onNextPage`,`onValueChanged`,`onComplete`]}
84,{name:`validateVisitedEmptyFields:boolean`,dependsOn:`checkErrorsMode`,visibleIf:e=>e.checkErrorsMode===`onValueChanged`},{name:`textUpdateMode`,default:`onBlur`,choices:[`onBlur`,`onTyping`]},{name:`autoGrowComment:boolean`,default:!1},{name:`allowResizeComment:boolean`,default:!0},{name:`commentAreaRows:number`,minValue:1},{name:`startSurveyText`,serializationProperty:`locStartSurveyText`,visibleIf:e=>e.firstPageIsStartPage},{name:`pagePrevText`,serializationProperty:`locPagePrevText`,visibleIf:e=>e.showNavigationButtons!==`none`&&e.showPrevButton},{name:`pageNextText`,serializationProperty:`locPageNextText`,visibleIf:e=>e.showNavigationButtons!==`none`},{name:`completeText`,serializationProperty:`locCompleteText`,visibleIf:e=>e.showNavigationButtons!==`none`},{name:`previewText`,serializationProperty:`locPreviewText`,visibleIf:e=>e.showPreviewBeforeComplete},{name:`editText`,serializationProperty:`locEditText`,visibleIf:e=>e.showPreviewBeforeComplete},{name:`requiredMark`,default:`*`,alternativeName:`requiredText`},{name:`questionStartIndex`,dependsOn:[`showQuestionNumbers`],visibleIf:e=>!e||e.showQuestionNumbers!==`off`},{name:`questionTitlePattern`,default:`numTitleRequire`,dependsOn:[`questionStartIndex`,`requiredMark`],choices:e=>e?e.getQuestionTitlePatternOptions():[]},{name:`questionTitleTemplate`,visible:!1,isSerializable:!1,serializationProperty:`locQuestionTitleTemplate`},{name:`firstPageIsStartPage:boolean`,default:!1,alternativeName:`firstPageIsStarted`},{name:`isSinglePage:boolean`,default:!1,visible:!1,isSerializable:!1},{name:`questionsOnPageMode`,default:`standard`,choices:[`standard`,`singlePage`,`questionPerPage`,`inputPerPage`]},{name:`showPreviewBeforeComplete:boolean`,default:!1,onSetValue:(e,t,n)=>{e&&e.setShowPreviewBeforeComplete(t)}},{name:`previewMode`,default:`allQuestions`,choices:[`allQuestions`,`answeredQuestions`],visibleIf:e=>e.showPreviewBeforeComplete},{name:`showTimer:boolean`},{name:`timeLimit:number`,alternativeName:`maxTimeToFinish`,default:0,minValue:0,enableIf:e=>e.showTimer},{name:`timeLimitPerPage:number`,alternativeName:`maxTimeToFinishPage`,default:0,minValue:0,enableIf:e=>e.showTimer},{name:`timerLocation`,default:`top`,choices:[`top`,`bottom`],enableIf:e=>e.showTimer},{name:`timerInfoMode`,alternativeName:`showTimerPanelMode`,default:`combined`,choices:[`page`,`survey`,`combined`],enableIf:e=>e.showTimer},{name:`showTimerPanel`,visible:!1,isSerializable:!1},{name:`widthMode`,default:`auto`,choices:[`auto`,`static`,`responsive`]},{name:`gridLayoutEnabled:boolean`,default:!1},{name:`width`,visibleIf:e=>e.widthMode===`static`},{name:`fitToContainer:boolean`,default:!0,visible:!1},{name:`headerView`,default:`basic`,choices:[`basic`,`advanced`],visible:!1},{name:`backgroundImage:file`,visible:!1},{name:`backgroundImageFit`,default:`cover`,choices:[`auto`,`contain`,`cover`],visible:!1},{name:`backgroundImageAttachment`,default:`scroll`,choices:[`scroll`,`fixed`],visible:!1},{name:`backgroundOpacity:number`,minValue:0,maxValue:1,default:1,visible:!1},{name:`showBrandInfo:boolean`,default:!1,visible:!1}]);var UI=`other`,WI=class extends HP{getBaseType(){return`choiceitem`}getAllChildren(){return[...super.getAllChildren(),...this.hasElements?this.detailElements:[]]}get choiceOwner(){return this.locOwner}get supportElements(){var e;return((e=this.choiceOwner)==null?void 0:e.supportElementsInChoice())===!0}get isCommentShowing(){return this.getPropertyValue(`isCommentShowing`,!1)}setIsCommentShowing(e){this.setPropertyValue(`isCommentShowing`,e)}get supportComment(){let e=this.locOwner;return!e||!e.supportMultipleComment?!1:e.supportMultipleComment(this)}isPropertyStoredInHash(e){return e===`elements`?!this.hasElements:super.isPropertyStoredInHash(e)}mergeLocalizationWithInnerObjects(e,t){let n=e.panelValue;n&&this.panel.mergeLocalizationObj(n,t)}canAddPpropertyToJSON(e){return e.name===`commentPlaceholder`?!!this.getLocalizableString(`commentPlaceholder`):super.canAddPpropertyToJSON(e)}onLocOwnerChanged(){this.showCommentArea&&!this.supportComment&&(this.showCommentArea=!1),this.setPanelSurvey(this.panelValue)}get onExpandPanelAtDesign(){return this.onExpandPanelAtDesignValue||(this.onExpandPanelAtDesignValue=new vj),this.onExpandPanelAtDesignValue}get isPanelShowing(){return!this.panelValue||!this.choiceOwner?!1:this.hasElements&&this.choiceOwner.isItemSelected(this)===!0}get hasElements(){let e=this.panelValue;return!!e&&e.elements.length>0}get panel(){return this.panelValue?this.panelValue.survey||this.setPanelSurvey(this.panelValue):this.panelValue=this.createPanel(),this.panelValue}get isPanelCreated(){return!!this.panelValue}get elements(){return this.panel.elements}panelFirstRendering(){this.hasElements&&this.isPanelShowing&&this.panel.onFirstRendering()}createPanel(){let e=J.createClass(`panel`);return e.renderWidth=`100%`,e.isInteractiveDesignElement=!1,e.showTitle=!1,e.isInternalNested=!0,e.choiceItem=this,this.setPanelSurvey(e),e}setPanelSurvey(e){var t;if(e&&!e.survey){e.selectedElementInDesign=this.choiceOwner;let n=(t=this.choiceOwner)==null?void 0:t.getSurvey();n&&(e.name=`choicePanel`+e.uniqueId,e.parent=this.choiceOwner.parent,e.setSurveyImpl(n))}}dispose(){var e;super.dispose(),(e=this.panelValue)==null||e.dispose(),this.panelValue=void 0}};q([Y({onSetting:(e,t)=>
84t.supportComment?e:!1})],WI.prototype,`showCommentArea`,void 0),q([Y()],WI.prototype,`isCommentRequired`,void 0),q([Y({localizable:!0})],WI.prototype,`commentPlaceholder`,void 0);var GI=class extends zP{get choiceCallbacks(){return this.survey}get waitingChoicesByURL(){return!this.isChoicesLoaded&&this.hasChoicesUrl}constructor(e){super(e),this.isRunningChoicesValue=!1,this.isFirstLoadChoicesFromUrl=!0,this.isUpdatingChoicesDependedQuestions=!1,this._renderedChoices=[],this.renderedChoicesAnimation=new bP(this.getRenderedChoicesAnimationOptions(),e=>{this._renderedChoices=e,this.renderedChoicesChangedCallback&&this.renderedChoicesChangedCallback()},()=>this._renderedChoices),this.headItemsCount=0,this.footItemsCount=0,this.createItemValues(`choices`),this.createNewArray(`visibleChoices`,()=>this.updateRenderedChoices(),()=>this.updateRenderedChoices())}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n);let r=[`choices`,`customChoices`,`choicesFromQuestion`,`choicesFromQuestionMode`,`choiceValuesFromQuestion`,`choiceTextsFromQuestion`,`showOtherItem`,`showNoneItem`,`showRefuseItem`,`showDontKnowItem`,`isUsingRestful`,`isMessagePanelVisible`,`choicesOrder`];r.indexOf(e)>-1&&(e!==`choices`||!this.filterItems())&&this.onVisibleChoicesChanged(),r.indexOf(e)>-1&&this.updateCorrectAnswerOnChoicesChanged(),e===`hideIfChoicesEmpty`&&this.onVisibleChanged(),e===`selectedItemValues`&&this.onSelectedItemValuesChangedHandler(n),(e===`choicesVisibleIf`||e===`choicesEnableIf`)&&this.filterItems()}getType(){return`selectbase`}validateExpression(e,t,n){let r=super.validateExpression(e,t,n);if(!(r&&(e===`choicesVisibleIf`||e===`choicesEnableIf`)&&(r.errors=r.errors.filter(e=>e.errorType!==Kj.UnknownVariable||(e.variableName||``).toLowerCase()!==`item`),r.errors.length===0)))return r}getAllChildren(){return[...super.getAllChildren(),...this.choices]}dispose(){super.dispose();let e=this.getQuestionWithChoices();e&&e.removeDependedQuestion(this);let t=this.commentAreaModelValues;t&&Object.keys(t).forEach(e=>{t[e].dispose()}),this.doForPanels(void 0,e=>e.dispose())}supportElementsInChoice(){return!1}getPanels(){if(!this.supportElementsInChoice())return super.getPanels();let e=[];return this.choices.forEach(t=>{t.isPanelCreated&&e.push(t.panel)}),e}getVisiblePanels(e){if(!this.supportElementsInChoice())return null;let t=[];return this.choices.forEach(n=>{n.isPanelCreated&&n.isPanelShowing===e&&t.push(n.panel)}),t}doForPanels(e,t){let n=e===void 0?this.getPanels():this.getVisiblePanels(e);Array.isArray(n)&&n.forEach(t)}collectNestedQuestionsCore(e,t,n,r){e.push(this),n&&this.supportElementsInChoice()&&this.choices.forEach(i=>{i.hasElements&&(!t||i.isPanelShowing)&&i.panel.questions.forEach(i=>i.addNestedQuestion(e,t,n,r))})}getElementsInDesign(e=!1){if(!this.supportElementsInChoice())return[];let t=[];return this.choices.forEach(n=>{n.hasElements&&(e?t.push(n.panel):t.push(...n.elements))}),t}get otherTextAreaModel(){return this.getCommentTextAreaModel(this.otherItem)}getCommentTextAreaModel(e){let t=e==null?void 0:e.value;if(t===void 0)return null;this.commentAreaModelValues||(this.commentAreaModelValues={});let n=this.commentAreaModelValues;return n[t]||(n[t]=new NP(this.getOtherTextAreaOptions(e))),n[t]}getOtherTextAreaOptions(e){return{question:this,id:()=>this.getItemCommentId(e),propertyNames:[this.getCommentPropertyValue(e)],className:()=>this.cssClasses.comment,placeholder:()=>this.getCommentPlaceholder(e),isDisabledAttr:()=>this.isInputReadOnly||!1,rows:()=>this.commentAreaRows,maxLength:()=>this.getOthersMaxLength(),autoGrow:()=>this.survey&&this.survey.autoGrowComment,ariaRequired:()=>this.ariaRequired||this.a11y_input_ariaRequired,ariaLabel:()=>this.ariaLabel||this.a11y_input_ariaLabel,getTextValue:()=>this.getCommentValueCore(e),onTextAreaChange:t=>{this.onOtherValueChange(e,t)},onTextAreaInput:t=>{this.onOtherValueInput(e,t)}}}getCommentPlaceholder(e){if(e.commentPlaceholder)return e.commentPlaceholder;if(this.isOtherItemByValue(e))return this.otherPlaceholder;let t=this.commentPlaceholder;return new mF(e).processText(t,!0)}resetDependedQuestion(){this.choicesFromQuestion=``}get otherId(){return this.getItemCommentId(this.otherItem)}getItemCommentId(e){return this.id+`_`+e.uniqueId}getCommentElementsId(){return[this.commentId,this.otherId]}getItemValueType(){return`choiceitem`}createItemValue(e,t){let n=this.createChoiceItem(e);return n.locOwner=this,t&&(n.text=t),n}
84createChoiceItem(e){return J.createClass(this.getItemValueType(),{value:e})}validateElementCore(e){e.isOnValueChanged!==!0&&this.getClearIfInvisible()!==`none`&&this.clearIncorrectValues();let t=!0;return this.doForPanels(!0,n=>{t&&(t=n.validateElement(e))}),super.validateElementCore(e)&&t}get isUsingCarryForward(){return!!this.carryForwardQuestionType}get carryForwardQuestionType(){return this.getPropertyValue(`carryForwardQuestionType`)}setCarryForwardQuestionType(e,t){let n=e?`select`:t?`array`:void 0;this.setPropertyValue(`carryForwardQuestionType`,n)}get isUsingRestful(){return this.getPropertyValueWithoutDefault(`isUsingRestful`)||!1}updateIsUsingRestful(){this.setPropertyValueDirectly(`isUsingRestful`,this.hasChoicesUrl)}supportGoNextPageError(){return!this.isOtherSelected||!!this.otherValue}isLayoutTypeSupported(e){return!0}localeChanged(){super.localeChanged(),this.choicesOrder!==`none`&&(this.updateVisibleChoices(),this.onVisibleChoicesChanged())}locStrsChanged(){super.locStrsChanged(),this.choicesFromUrl&&(HP.locStrsChanged(this.choicesFromUrl),HP.locStrsChanged(this.visibleChoices)),this.isUsingCarryForward&&HP.locStrsChanged(this.visibleChoices)}updatePrevOtherErrorValue(e){let t=this.otherValue;e!==t&&(this.prevOtherErrorValue=t)}setNewComment(e){this.isOtherSelected&&this.getStoreOthersAsComment()&&this.updatePrevOtherErrorValue(e),super.setNewComment(e)}get otherValue(){return this.getStoreOthersAsComment()?this.getQuestionComment():this.otherValueCore}set otherValue(e){e=this.getTrimmedComment(e),!this.isSettingComment&&this.otherValue!==e&&(this.onUpdateCommentOnAutoOtherMode(e),this.updatePrevOtherErrorValue(e),this.isSettingComment=!0,this.getStoreOthersAsComment()?this.setNewComment(e):(this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.getValueOnSettingOther(e))),this.isSettingComment=!1,this.updateChoicesDependedQuestions())}get otherValueCore(){return this.getPropertyValue(`otherValue`)}set otherValueCore(e){this.setPropertyValue(`otherValue`,e)}get otherItem(){return this.otherItemValue||(this.otherItemValue=this.createBuiltInItem(UI,`otherText`,`otherItemText`,e=>{e.setPropertyValue(`showCommentArea`,!0),e.isCommentRequired=!0})),this.otherItemValue}get isOtherSelected(){return this.showOtherItem&&this.isOtherValue(this.renderedValue)}get isNoneSelected(){return this.showNoneItem&&this.getIsItemValue(this.renderedValue,this.noneItem)}supportMultipleComment(e){return!0}isCommentShowing(e){return e&&e.showCommentArea&&this.isItemSelected(e)}getCommentValue(e){return this.isCommentShowing(e)&&this.getCommentValueCore(e)||``}setCommentValue(e,t){this.isCommentShowing(e)&&this.setCommentValueCore(e,t)}get commentPropertyValue(){return`comment`}getCommentValueCore(e){return this.isOtherItemByValue(e)?this.otherValue:this.getPropertyValue(this.getCommentPropertyValue(e),this.getCommentValueByItem(e))||``}getCommentValueByItem(e){let t=this.value;return typeof t==`object`&&t[this.commentPropertyValue]||``}setCommentValueCore(e,t){this.isOtherItemByValue(e)?this.otherValue=t:(this.setCommentPropertyValue(e,t),this.isItemSelectedCore(e)&&(this.value=t?{value:e.value,comment:t}:e.value))}setCommentPropertyValue(e,t){this.setPropertyValue(this.getCommentPropertyValue(e),t)}isOtherItemByValue(e){return this.isOtherValue(e.value)}getCommentPropertyValue(e){return this.isOtherItemByValue(e)?this.getStoreOthersAsComment()?`comment`:`otherValue`:`other_`+e.uniqueId}get hasNone(){return this.showNoneItem}set hasNone(e){this.showNoneItem=e}get noneItem(){return this.noneItemValue||(this.noneItemValue=this.createBuiltInNoneItem(G.noneItemValue,`noneText`,`noneItemText`)),this.noneItemValue}get noneText(){return this.getLocStringText(this.locNoneText)}set noneText(e){this.setLocStringText(this.locNoneText,e)}get locNoneText(){return this.noneItem.locText}get refuseItem(){return this.refuseItemValue||(this.refuseItemValue=this.createBuiltInNoneItem(G.refuseItemValue,`refuseText`,`refuseItemText`)),this.refuseItemValue}get refuseText(){return this.getLocStringText(this.locRefuseText)}set refuseText(e){this.setLocStringText(this.locRefuseText,e)}get locRefuseText(){return this.refuseItem.locText}get dontKnowItem(){return this.dontKnowItemValue||(this.dontKnowItemValue=this.createBuiltInNoneItem(G.dontKnowItemValue,`dontKnowText`,`dontKnowItemText`)),this.dontKnowItemValue}get dontKnowText(){return this.getLocStringText(this.locDontKnowText)}set dontKnowText(e){this.setLocStringText(this.locDontKnowText,e)}get locDontKnowText(){return this.dontKnowItem.locText}createBuiltInNoneItem(e,t,n){return this.createBuiltInItem(e,t,n,e=>e.isExclusive=!0)}createBuiltInItem(e,t,n,r){let i=this.createChoiceItem(e),a=this.createLocalizableString(t,i,!0,n);
84return i.setLocText(a),r&&r(i),i.locOwner=this,i}surveyChoiceItemVisibilityChange(){this.filterItems()}addUsedLocales(e){super.addUsedLocales(e),this.doForPanels(void 0,t=>{t.addUsedLocales(e)})}runConditionCore(e){super.runConditionCore(e),this.runItemsEnableCondition(e),this.runItemsCondition(e),this.choices.forEach(t=>{t.runConditionCore(e)}),this.doForPanels(void 0,t=>{t.runCondition(e)})}isTextValue(){return!0}setDefaultIntoValue(e){!this.isValueEmpty(e)&&!this.waitingChoicesByURL&&this.showOtherItem&&this.hasUnknownValue(e,!0)?this.setDefaultUnknownValue(e):super.setDefaultIntoValue(e)}setDefaultUnknownValue(e){this.renderedValue=this.setOtherValueIntoValue(e),this.otherValue=e}valueToData(e){return K.isValueEmpty(e)?e:Array.isArray(e)?e.length>0?e[0]:void 0:e}getCorrectAnswerValue(){let e=super.getCorrectAnswerValue();if(this.isValueEmpty(e)||this.isLoadingFromJson||this.visibleChoices.length===0)return e;if(Array.isArray(e)){let t=e.filter(e=>this.isCorrectAnswerValueExists(e));return t.length>0?t:void 0}return this.isCorrectAnswerValueExists(e)?e:void 0}isCorrectAnswerValueExists(e){return!!this.getItemByValue(e,this.visibleChoices)}updateCorrectAnswerOnChoicesChanged(){if(this.isValueEmpty(this.correctAnswer)||this.activeChoices.length===0||!this.canClearIncorrectValues())return;let e=this.getCorrectAnswerOnChoicesChanged(this.correctAnswer);K.isTwoValueEquals(this.correctAnswer,e)||(this.isValueEmpty(e)?(this.correctAnswer=void 0,Array.isArray(this.getPropertyValue(`correctAnswer`))&&this.clearPropertyValue(`correctAnswer`)):this.correctAnswer=e)}getCorrectAnswerOnChoicesChanged(e){return this.correctAnswerValueExistsInChoices(e)?e:void 0}correctAnswerValueExistsInChoices(e){return!this.hasUnknownValueItem(e,!0,!1)}filterItems(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredProperties();return this.runItemsEnableCondition(e),this.runItemsCondition(e)}runItemsCondition(e){let t=this.runConditionsForItems(e);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),t&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),t}runItemsEnableCondition(e){let t=this.getChoicesCondition(`choicesEnableIf`);HP.runEnabledConditionsForItems(this.activeChoices,t,e,(e,t)=>t&&this.onEnableItemCallBack(e))&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()}onAfterRunItemsEnableCondition(){}onEnableItemCallBack(e){return!0}onSelectedItemValuesChangedHandler(e){var t;(t=this.survey)==null||t.loadedChoicesFromServer(this)}getItemIfChoicesNotContainThisValue(e,t){return this.waitingChoicesByURL?this.createItemValue(e,t):null}getSingleSelectedItem(){let e=this.selectedItemValues;if(this.isEmpty())return null;let t=this.getItemByValue(this.value);return this.onGetSingleSelectedItem(t),!t&&(!e||this.value!=e.id)&&this.updateSelectedItemValues(),t||e||(this.isOtherSelected?this.otherItem:this.getItemIfChoicesNotContainThisValue(this.value))}onGetSingleSelectedItem(e){}getMultipleSelectedItems(){return[]}getChoicesCondition(e){let t=this.getExpressionFromSurvey(e);return t?new Jj(t):null}canSurveyChangeItemVisibility(){return!!this.survey&&this.choiceCallbacks.canChangeChoiceItemsVisibility()}changeItemVisibility(){return this.canSurveyChangeItemVisibility()?(e,t)=>this.choiceCallbacks.getChoiceItemVisibility(this,e,t):null}runConditionsForItems(e){this.filteredChoicesValue=[];let t=this.changeItemVisibility(),n=this.areInvisibleElementsShowing?null:this.getChoicesCondition(`choicesVisibleIf`),r=this.activeChoices;return HP.runConditionsForItems(r,this.getFilteredChoices(),n,e,!this.survey||!this.survey.areInvisibleElementsShowing,(e,n)=>t?t(e,n):n)||this.isCarryForwardChanged(r)}isCarryForwardChanged(e){if(!this.isUsingCarryForward)return!1;let t=this.visibleChoices;if(t.length!==e.length)return!0;for(let n=0;n<e.length;n++)if(t[n].value!==e[n].value)return!0;return!1}isOtherValue(e){return Array.isArray(e)?e.indexOf(UI)>-1:e===UI}getIsItemValue(e,t){return e===t.value}get validatedValue(){return this.renderedValueToDataCore(this.value)}createRestful(){return new JP}getQuestionComment(){return this.showCommentArea?super.getQuestionComment():this.otherValueCore?this.otherValueCore:this.showCommentArea||this.get
84StoreOthersAsComment()?super.getQuestionComment():this.otherValueCore}selectOtherValueFromComment(e){e&&(this.prevIsOtherSelected=!0),this.value=e?this.otherItem.value:void 0}onUpdateCommentOnAutoOtherMode(e){if(!this.autoOtherMode)return;let t=this.isOtherSelected;(!t&&e||t&&!e)&&this.selectOtherValueFromComment(!!e)}getValueOnSettingOther(e){let t=this.rendredValueToData(this.renderedValue);if(this.showCommentArea||this.getStoreOthersAsComment())return t;let n=this.getItemByValue(e);if(!n||n===this.otherItemValue)return t;if(this.otherValueCore=``,!Array.isArray(t))return e;let r=t.indexOf(this.otherItem.value);return r>-1&&t.splice(r,1),t.indexOf(e)<0&&t.push(e),t}onClearValue(){super.onClearValue(),this.selectedItemValues=void 0}get renderedValue(){return this.getPropertyValue(`renderedValue`,null)}set renderedValue(e){this.setRenderedValue(e,!0)}setRenderedValue(e,t){this.setPropertyValue(`renderedValue`,e),t&&!this.isReadOnlyAttr&&(e=this.rendredValueToData(e),this.isTwoValueEquals(e,this.value)||(this.value=e)),this.onRenderedValueChagned(t)}onRenderedValueChagned(e){this.choices.forEach(t=>this.updateItemIsCommentShowing(t,e)),this.showOtherItem&&this.updateItemIsCommentShowing(this.otherItem,e)}updateItemIsCommentShowing(e,t){if(e.showCommentArea){let n=this.isCommentShowing(e);e.setIsCommentShowing(n),!n&&t&&this.setCommentValueCore(e,void 0)}}selectItem(e){if(this.isReadOnlyAttr||!e)return;let t=this.getSingleSelectedItem();this.renderedValue=e.value,t&&t!==this.getSingleSelectedItem()&&this.onItemDeselected(t),this.onItemSelected(e)}onItemSelected(e){e.showCommentArea&&this.focusOtherComment(e)}onItemDeselected(e){e.showCommentArea&&this.setCommentValueCore(e,void 0)}setQuestionValue(e,t=!0,n=!0){this.isLoadingFromJson||this.isTwoValueEquals(this.value,e)||(this.setRenderedValue(this.rendredValueFromData(e),!1),super.setQuestionValue(e,t),this.updateChoicesDependedQuestions(),this.updateChoicesPanels(),!this.showCommentArea&&n&&!this.isOtherSelected&&this.otherValue&&(this.makeCommentEmpty=!0,this.otherValueCore=``,this.setPropertyValue(`comment`,``)))}setValueCore(e){super.setValueCore(e),this.makeCommentEmpty&&(this.setCommentIntoData(``),this.makeCommentEmpty=!1)}setNewValue(e){var t;e=this.valueFromData(e),(!this.isRunningChoices&&!((t=this.choicesByUrlValue)!=null&&t.isWaitingForParameters)||!this.isValueEmpty(e))&&(this.cachedValueForUrlRequests=e),super.setNewValue(e)}valueFromData(e){let t=this.getItemByValue(e,this.activeChoices);return t?this.getChoiceValue(t,e,!1):super.valueFromData(e)}updateChoicesPanels(){!this.supportElementsInChoice()||!this.wasRendered||(this.choices.forEach(e=>{e.isDescendantOf(`choiceitem`)&&e.panelFirstRendering()}),this.isClearValueOnHidden&&this.clearValuesInVisiblePanels(`onHiddenContainer`))}getChoiceValue(e,t,n){let r=typeof t==`object`,i=r?t[this.commentPropertyValue]:``,a=!K.isValueEmpty(i);if(r&&e.showCommentArea&&(n||a)){let t={value:e.value};return a&&(t[this.commentPropertyValue]=i),t}return e.value}getItemByValue(e,t){let n=t||this.visibleChoices;return e&&typeof e==`object`&&!K.isValueEmpty(e.value)&&(e=e.value),HP.getItemByValue(n,e)}rendredValueFromData(e){if(e&&typeof e==`object`&&!K.isValueEmpty(e.value)){let t=this.getItemByValue(e.value);t&&(this.setCommentPropertyValue(t,e[this.commentPropertyValue]),e=e.value)}return this.getStoreOthersAsComment()||!this.showOtherItem?e:this.renderedValueFromDataCore(e)}getValueFromValueWithComment(e){return e&&typeof e==`object`&&!K.isValueEmpty(e.value)?e.value:e}getFilteredValue(e){return this.getValueFromValueWithComment(this.value)}rendredValueToData(e){return this.getStoreOthersAsComment()?e:this.renderedValueToDataCore(e)}renderedValueFromDataCore(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)}renderedValueToDataCore(e){return this.isOtherValue(e)&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e}needConvertRenderedOtherToDataValue(){let e=this.otherValue;return this.getTrimmedComment(e)?this.hasUnknownValue(e,!0,!1):!1}getIsQuestionReady(){return super.getIsQuestionReady()&&!this.waitingChoicesByURL&&!this.waitingGetChoiceDisplayValueResponse}updateSelectedItemValues(){if(this.waitingGetChoiceDisplayValueResponse||!this.survey||this.isEmpty())return;let e=this.value,t=Array.isArray(e)?e:[e];t.some(e=>!this.getItemByValue(e,this.choices))&&(this.choicesLazyLoadEnabled||this.hasChoicesUrl)&&(this.waitingGetChoiceDisplayValueResponse=!0,this.updateIsReady(),this.choiceCallbacks.getChoiceDisplayValue({question:this,values:t,setItems:(n,...r)=>{if(this.waitingGetChoiceDisplayValueResponse=!1,!n||!n.length){this.updateIsReady();return}let i=n.map((e,n)=>this.createItemValue(t[n],e));this.setCustomValuesIntoItems(i,r),this.selectedItemValues=Array.isArray(e)?i:i[0],this.updateIsReady(),this.onSelectedItemValuesUpdated()}}))}onSelectedItemValuesUpdated(){}setCustomValuesIntoItems(e,t){!Array.isArray(t)||t.length===0||t.forEach(t=>{let n=t.values,r=t.propertyName;if(Array.isArray(n))for(let t=0;t<e.length&&t<n.length;t++)e[t][r]=n[t]})}hasUnknownValue(e,t=!1,n=!0,r=!1){if(!Array.isArray(e))return this.hasUnknownValueItem(e,t,n,r);for(let i=0;i<e.length;i++)if(this.hasUnknownValueItem(e[i],t,n,r))return!0;return!1}hasUnknownValueItem(e,t=!1,n=!0,r=!1){return!r&&this.isValueEmpty(e)||t&&this.isOtherValue(e)||!this.hasUnknownValueItemInChoices(e,n)?!1:!this.isValueInSharedQuestions(e,n)}hasUnknownValueItemInChoices(e,t){if(this.showNoneItem&&e==this.noneItem.value||this.showRefuseItem&&e==this.refuseItem.value||this.showDontKnowItem&&e==this.dontKnowItem.value)return!1;var n=t?this.getFilteredChoices():this.activeChoices;return this.getItemByValue(e,n)==null}isValueInSharedQuestions(e,t){let n=this.getQuestionsWithSameValueName();for(let r=0;r<n.length;r++)if(!n[r].hasUnknownValueItemInChoices(e,t))return!0;return!1}getQuestionsWithSameValueName(){let e=[];
84if(!this.valueName||!this.survey)return e;let t=this.survey.questionsByValueName(this.getValueName());return!Array.isArray(t)||t.length<2||t.forEach(t=>{t!==this&&t.isDescendantOf&&t.isDescendantOf(`selectbase`)&&e.push(t)}),e}isValueDisabled(e){var t=this.getItemByValue(e,this.getFilteredChoices());return!!t&&!t.isEnabled}endLoadingFromJson(){super.endLoadingFromJson(),this.updateVisibleChoices()}get customChoices(){return this.getItemValuesPropertyValue(`customChoices`)}set customChoices(e){this.setArrayPropertyValue(`customChoices`,e)}get choicesByUrl(){return this.getPropertyValue(`choicesByUrl`,void 0,()=>this.createChoicesByUrl())}set choicesByUrl(e){if(!e)return;let t=this.choicesByUrlValue;t&&(t.dispose(),this.setPropertyValueDirectly(`choicesByUrl`,this.createChoicesByUrl())),this.choicesByUrl.fromJSON(e.toJSON())}get choicesByUrlValue(){return this.getPropertyValueWithoutDefault(`choicesByUrl`)}get isChoicesUrlEmpty(){let e=this.choicesByUrlValue;return!e||e.isEmpty}createChoicesByUrl(){let e=this.createRestful();return e.owner=this,e.loadingOwner=this,e.createItemValue=e=>this.createItemValue(e),e.beforeSendRequestCallback=()=>{this.onBeforeSendRequest()},e.getResultCallback=e=>{this.onLoadChoicesFromUrl(e)},e.updateResultCallback=(e,t)=>this.survey?this.choiceCallbacks.updateChoicesFromServer(this,e,t):e,e}get choicesFromQuestion(){return this.getPropertyValue(`choicesFromQuestion`)}set choicesFromQuestion(e){var t=this.getQuestionWithChoices();this.isLockVisibleChoices=!!t&&t.name===e,t&&t.name!==e&&(t.removeDependedQuestion(this),this.isInDesignMode&&!this.isLoadingFromJson&&e&&this.setPropertyValue(`choicesFromQuestion`,void 0)),this.setPropertyValue(`choicesFromQuestion`,e),this.isLockVisibleChoices=!1}get otherText(){return this.getLocStringText(this.locOtherText)}set otherText(e){this.setLocStringText(this.locOtherText,e),this.onVisibleChoicesChanged()}get locOtherText(){return this.otherItem.locText}get otherPlaceHolder(){return this.otherPlaceholder}set otherPlaceHolder(e){this.otherPlaceholder=e}get visibleChoices(){return this.getPropertyValue(`visibleChoices`)}get enabledChoices(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++)t[n].isEnabled&&e.push(t[n]);return e}updateVisibleChoices(){if(this.isLoadingFromJson||this.isDisposed)return;var e=this.calcVisibleChoices(),t=[];(e||[]).forEach(e=>t.push(e));let n=this.visibleChoices;(!this.isTwoValueEquals(n,t)||this.choicesLazyLoadEnabled)&&(this.setArrayPropertyDirectly(`visibleChoices`,t),this.updateRenderedChoices())}calcVisibleChoices(){let e=[];return this.customChoices.forEach(t=>e.push(t)),this.getFilteredChoices().forEach(t=>e.push(t)),e=this.sortArrayByChoicesOrder(e),this.addToVisibleChoices(e,this.isAddDefaultItems),e}setCanShowOptionItemCallback(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()}get newItem(){return this.newItemValue}addToVisibleChoices(e,t){this.headItemsCount=0,this.footItemsCount=0,this.isEmptyActiveChoicesInDesign||this.addNewItemToVisibleChoices(e,t);let n=[];this.addNonChoicesItems(n,t),n.sort((e,t)=>e.index===t.index?0:e.index<t.index?-1:1);for(let t=0;t<n.length;t++){let r=n[t];r.index<0?(e.splice(t,0,r.item),this.headItemsCount++):(e.push(r.item),this.footItemsCount++)}}addNewItemToVisibleChoices(e,t){t&&(this.newItemValue||(this.newItemValue=this.createItemValue(`newitem`),this.newItemValue.isGhost=!0,this.newItemValue.registerFunctionOnPropertyValueChanged(`isVisible`,()=>{this.updateVisibleChoices()})),this.newItemValue.isVisible&&!this.isUsingCarryForward&&this.canShowOptionItem(()=>this.newItemValue,t,!1)&&(this.footItemsCount=1,e.push(this.newItemValue)))}addNonChoicesItems(e,t){this.supportNone()&&this.addNonChoiceItem(e,()=>this.noneItem,t,this.showNoneItem,G.specialChoicesOrder.noneItem),this.supportRefuse()&&this.addNonChoiceItem(e,()=>this.refuseItem,t,this.showRefuseItem,G.specialChoicesOrder.refuseItem),this.supportDontKnow()&&this.addNonChoiceItem(e,()=>this.dontKnowItem,t,this.showDontKnowItem,G.specialChoicesOrder.dontKnowItem),this.supportOther()&&this.addNonChoiceItem(e,()=>this.otherItem,t,this.showOtherItem,G.specialChoicesOrder.otherItem)}addNonChoiceItem(e,t,n,r,i){let a=this.canShowOptionItem(t,n,r);
84a&&i.forEach(t=>e.push({index:t,item:a}))}canShowOptionItem(e,t,n){let r=this.canSurveyChangeItemVisibility();if(!t&&!n&&!r)return null;let i=e(),a=n||t&&(!this.canShowOptionItemCallback||this.canShowOptionItemCallback(i));return r&&(a=this.changeItemVisibility()(i,a)),a?i:null}isItemInList(e){return e===this.otherItemValue?this.showOtherItem:e===this.noneItemValue?this.showNoneItem:e===this.refuseItemValue?this.showRefuseItem:e===this.dontKnowItemValue?this.showDontKnowItem:e!==this.newItemValue}get isAddDefaultItems(){return G.showDefaultItemsInCreator&&this.isInDesignMode&&!this.customWidget}getPlainData(e={includeEmpty:!0,includeQuestionTypes:!1}){var t=super.getPlainData(e);if(t){var n=Array.isArray(this.value)?this.value:[this.value];t.isNode=!0,t.data=(t.data||[]).concat(n.map((t,n)=>{var r=this.getItemByValue(t),i={name:n,title:this.getLocalizationString(`choices_Choice`),value:t,displayValue:this.getChoicesDisplayValue(this.visibleChoices,t),getString:e=>this.getValueAsString(e),isNode:!1};return r&&(e.calculations||[]).forEach(e=>{i[e.propertyName]=r[e.propertyName]}),this.isOtherSelected&&this.otherItemValue===r&&(i.isOther=!0,i.displayValue=this.otherValue),i}))}return t}getDisplayValueCore(e,t,n){return t=this.getValueFromValueWithComment(t),this.useDisplayValuesInDynamicTexts?this.getChoicesDisplayValue(this.visibleChoices,t,n):t}getDisplayValueEmpty(){return HP.getTextOrHtmlByValue(this.visibleChoices,void 0)}getChoicesDisplayValue(e,t,n){if(this.isOtherValue(t))return n?this.locOtherText.textOrHtml:this.otherValue?this.otherValue:this.locOtherText.textOrHtml;let r=this.getSingleSelectedItem();if(r&&this.isTwoValueEquals(r.value,t))return r.locText.textOrHtml;var i=HP.getTextOrHtmlByValue(e,t);return i==``&&t?t:i}getDisplayArrayValue(e,t,n,r){var i=this.visibleChoices,a=[];let o=[];for(var s=0;s<t.length;s++)o.push(n?n(s):t[s]);if(K.isTwoValueEquals(this.value,o)&&this.getMultipleSelectedItems().forEac
84h((e,t)=>a.push(this.getItemDisplayValue(e,o[t],r))),a.length===0)for(var s=0;s<o.length;s++){let e=this.getChoicesDisplayValue(i,o[s],r);e&&a.push(e)}return a.join(G.choicesSeparator)}getItemDisplayValue(e,t,n){if(this.isOtherItemByInstance(e)){let e=this.getOtherItemDisplayValue(t,n);if(e!==void 0)return e}return e.locText.textOrHtml}getOtherItemDisplayValue(e,t){if(this.showOtherItem&&this.showCommentArea&&e)return e;if(this.comment)return this.comment}getFilteredChoices(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices}get activeChoices(){let e=this.getCarryForwardQuestion();return this.carryForwardQuestionType===`select`?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):this.carryForwardQuestionType===`array`?(e.addDependedQuestion(this),this.getChoicesFromArrayQuestion(e)):this.isEmptyActiveChoicesInDesign?[]:this.choicesFromUrl?this.choicesFromUrl:this.getChoices()}get isEmptyActiveChoicesInDesign(){return this.isInDesignMode&&(this.hasChoicesUrl||this.isMessagePanelVisible)}getCarryForwardQuestion(e){let t=this.findCarryForwardQuestion(e),n=this.getQuestionWithChoicesCore(t),r=n?null:this.getQuestionWithArrayValue(t);return this.setCarryForwardQuestionType(!!n,!!r),n||r?t:null}getIsReadyDependsOn(){let e=super.getIsReadyDependsOn();return this.carryForwardQuestion&&e.push(this.carryForwardQuestion),e}getQuestionWithChoices(){return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion())}findCarryForwardQuestion(e){var t;return e||(e=this.data||((t=this.parentQuestion)==null?void 0:t.data)),this.carryForwardQuestion=null,this.choicesFromQuestion&&e&&(this.carryForwardQuestion=e.findQuestionByName(this.choicesFromQuestion)),this.carryForwardQuestion}getQuestionWithChoicesCore(e){return e&&e.visibleChoices&&J.isDescendantOf(e.getType(),`selectbase`)&&e!==this?e:null}getQuestionWithArrayValue(e){return e&&e.isValueArray?e:null}getChoicesFromArrayQuestion(e){if(this.isInDesignMode)return[];let t=e.value;if(!Array.isArray(t))return[];let n=[];for(var r=0;r<t.length;r++){let e=t[r];if(!K.isValueObject(e))continue;let i=this.getValueKeyName(e);if(i&&!this.isValueEmpty(e[i])){let t=this.choiceTextsFromQuestion?e[this.choiceTextsFromQuestion]:void 0;n.push(this.createItemValue(e[i],t))}}return n}getValueKeyName(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;let t=Object.keys(e);return t.length>0?t[0]:void 0}getChoicesFromSelectQuestion(e){if(this.isInDesignMode)return[];let t=[];var n=this.choicesFromQuestionMode==`selected`||this.choicesFromQuestionMode!=`unselected`&&void 0;let r=e.visibleChoices;for(var i=0;i<r.length;i++)if(!e.isBuiltInChoice(r[i])){if(n===void 0){t.push(this.copyChoiceItem(r[i]));continue}var a=e.isItemSelected(r[i]);(a&&n||!a&&!n)&&t.push(this.copyChoiceItem(r[i]))}return this.choicesFromQuestionMode===`selected`&&!this.showOtherItem&&e.isOtherSelected&&e.otherValue&&t.push(this.createItemValue(e.otherItem.value,e.otherValue)),t}copyChoiceItem(e){let t=this.createItemValue(e.value);return t.setData(e),t}get hasActiveChoices(){var e=this.visibleChoices;(!e||e.length==0)&&(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t]))return!0;return!1}isBuiltInChoice(e){return!!e&&[this.otherItemValue,this.noneItemValue,this.refuseItemValue,this.dontKnowItemValue,this.newItemValue].indexOf(e)>-1}isNoneItem(e){return e.isExclusive===!0}getChoices(){return this.choices}get hasOther(){return this.showOtherItem}set hasOther(e){this.showOtherItem=e}get requireUpdateCommentValue(){return this.showCommentArea||this.showOtherItem}supportOther(){return this.isSupportProperty(`showOtherItem`)}supportNone(){return this.isSupportProperty(`showNoneItem`)}supportRefuse(){return this.isSupportProperty(`showRefuseItem`)}supportDontKnow(){return this.isSupportProperty(`showDontKnowItem`)}isSupportProperty(e){return!this.isDesignMode||this.getPropertyByName(e).visible}
84onCheckForErrors(e,t,n){if(super.onCheckForErrors(e,t,n),this.hasEmptyComments()&&(!t||this.prevOtherErrorValue)){let t=new iN(this.otherErrorText,this);t.onUpdateErrorTextCallback=e=>{e.text=this.otherErrorText},e.push(t)}}hasEmptyComments(){let e=this.visibleChoices;for(let t=0;t<e.length;t++){let n=e[t];if(n.isCommentRequired&&this.isCommentShowing(n)&&!this.getCommentValue(e[t]))return!0}return!1}setSurveyImpl(e,t){this.isRunningChoicesValue=!0,super.setSurveyImpl(e,t),this.isRunningChoicesValue=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices(),this.randomSeedChanged()}setSurveyCore(e){super.setSurveyCore(e),e&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()}getStoreOthersAsComment(){return this.showCommentArea?!1:this.checkHasChoicesComments()?!0:this.storeOthersAsComment===!0||this.storeOthersAsComment=="default"&&(this.survey==null||this.choiceCallbacks.storeOthersAsComment)||this.hasChoicesUrl&&!this.choicesFromUrl}checkHasChoicesComments(){let e=this.choices;for(let t=0;t<e.length;t++)if(e[t].showCommentArea)return!0;return!1}onSurveyLoad(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),this.doForPanels(void 0,e=>{e.onSurveyLoad()}),super.onSurveyLoad()}onFirstRenderingCore(){super.onFirstRenderingCore(),this.doForPanels(!0,e=>{e.onFirstRendering()})}onAnyValueChanged(e,t){super.onAnyValueChanged(e,t),e!=this.getValueName()&&this.runChoicesByUrl();let n=this.choicesFromQuestion;e&&n&&(e===n||t===n)&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues())}updateValueFromSurvey(e,t){var n=``;this.showOtherItem&&this.activeChoices.length>0&&!this.isRunningChoices&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(e)&&!this.isOtherValue(e)?(n=this.getCommentFromValue(e),e=this.setOtherValueIntoValue(e)):this.data&&(n=this.data.getComment(this.getValueName()))),super.updateValueFromSurvey(e,t),this.isRunningChoices&&!this.isEmpty()&&(this.cachedValueForUrlRequests=this.value),n&&(this.isUpdatingValueFromSurvey=!0,this.setNewComment(n),this.isUpdatingValueFromSurvey=!1),this.updateValueForPanels(t,!1)}updateCommentFromSurvey(e){super.updateCommentFromSurvey(e),this.updateValueForPanels(!1,!0)}updateValueForPanels(e,t){this.data&&this.doForPanels(!0,n=>{n.questions.forEach(n=>{let r=n.getValueName();t?n.updateCommentFromSurvey(this.data.getComment(r)):n.updateValueFromSurvey(this.data.getValue(r),e)})})}getCommentFromValue(e){return e}setOtherValueIntoValue(e){return this.otherItem.value}onOtherValueInput(e,t){this.isInputTextUpdate&&t.target&&this.setCommentValueCore(e,t.target.value)}onOtherValueChange(e,t){let n=t.target;if(!n)return;this.setCommentValueCore(e,n.value||``);let r=this.getCommentValueCore(e);r!==n.value&&(n.value=r||``)}runChoicesByUrl(){if(this.updateIsUsingRestful(),!(!this.choicesByUrlValue||this.isLoadingFromJson||this.isRunningChoicesValue||this.isInDesignMode||this.choicesLazyLoadEnabled)){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.updateIsReady(),this.isRunningChoicesValue=!0,this.choicesByUrl.run(e),this.isRunningChoicesValue=!1)}}get isRunningChoices(){var e;return this.isRunningChoicesValue||((e=this.choicesByUrlValue)==null?void 0:e.isRunning)}onBeforeSendRequest(){G.web.disableQuestionWhileLoadingChoices===!0&&!this.isReadOnly&&(this.enableOnLoadingChoices=!0,this.readOnly=!0)}onLoadChoicesFromUrl(e){var t;this.enableOnLoadingChoices&&(this.readOnly=!1);let n=[];if(!this.isReadOnly){let e=this.choicesByUrlValue;e&&e.error&&n.push(e.error)}var r=null,i=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,i=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value);var a=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,i);if(e&&(e.length>0||(t=this.choicesByUrlValue)!=null&&t.allowEmptyResponse)&&(r=[],HP.setData(r,e)),r)for(var o=0;o<r.length;o++)r[o].locOwner=this;this.setChoicesFromUrl(r,n,a)}canAvoidSettChoicesFromUrl(e){return this.isFirstLoadChoicesFromUrl||(!e||Array.isArray(e)&&e.length===0)&&!this.isEmpty()?!1:K.isTwoValueEquals(this.choicesFromUrl,e)}setChoicesFromUrl(e,t,n){if(!this.canAvoidSettChoicesFromUrl(e)){if(this.isFirstLoadChoicesFromUrl=!1,this.choicesFromUrl=e,this.filterItems(),this.onVisibleChoicesChanged(),e){var r=this.updateCachedValueForUrlRequests(n,e);if(r&&!this.isReadOnly){var i=!this.isTwoValueEquals(this.value,r.value);try{this.isValueEmpty(r.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=i,i?this.value=r.value:this.setQuestionValue(r.value,!0,!1)}finally{this.allowNotifyValueChanged=!0}}}!this.isReadOnly&&!e&&!this.isFirstLoadChoicesFromUrl&&(this.value=null),this.errors=t,this.choicesLoaded()}}createCachedValueForUrlRequests(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++)n.push(this.createCachedValueForUrlRequests(e[r],!0));return n}return{value:e,isExists:!t||!this.hasUnknownValue(e)}}updateCachedValueForUrlRequests(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++){var i=this.updateCachedValueForUrlRequests(e[r],t);if(i&&!this.isValueEmpty(i.value)){var a=i.value,o=this.getItemByValue(i.value,t);o&&(a=o.value),n.push(a)}}return{value:n}}var s=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,o=this.getItemByValue(s,t);return o&&(s=o.value),{value:s}}updateChoicesDependedQuestions(){this.isLoadingFromJson||this.isUpdatingChoicesDependedQuestions||!this.allowNotifyValueChanged||this.isRunningChoices||(this.isUpdatingChoicesDependedQuestions=!0,this.updateDependedQuestions(),this.isUpdatingChoicesDependedQuestions=!1)}updateDependedQuestion(){this.onVisibleChoicesChanged(),this.clearIncorrectValues()}onSurveyValueChanged(e){super.onSurveyValueChanged(e),this.updateChoicesDependedQuestions()}onVisibleChoicesChanged(){this.isLoadingFromJson||this.isLockVisibleChoices||(this.updateVisibleChoices(),this.isOtherValue(this.renderedValue)&&this.setRenderedValue(this.rendredValueFromData(this.value),!1),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())}isVisibleCore(){let e=super.isVisibleCore();if(!this.hideIfChoicesEmpty||!e)return e;var t=this.isUsingCarryForward?this.visibleChoices:this.getFilteredChoices();return!t||t.length>0}sortArrayByChoicesOrder(e){let t=e.slice();if(this.isInDesignMode)return t;let n=this.choicesOrder.toLowerCase();return n==`asc`?this.sortArray(t,1):n==`desc`?this.sortArray(t,-1):n==`random`?this.randomizeArray(t):t}sortArray(e,t){return e.sort(function(e,n){return K.compareStrings(e.calculatedText,n.calculatedText)*t})}randomSeedChanged(){this.choicesOrder.toLowerCase()===`random`&&this.updateVisibleChoices()}randomizeArray(e){return K.randomizeArray(e,this.randomSeed)}get hasChoicesUrl(){var e;return!!((e=this.choicesByUrlValue)!=null&&e.url)}
84clearIncorrectValues(){!this.canClearIncorrectValues()||!this.hasValueToClearIncorrectValues()||(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())}canClearIncorrectValues(){return!(this.canAddCustomChoices()||this.carryForwardQuestion&&!this.carryForwardQuestion.isReady||this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1||this.hasChoicesUrl&&(!this.choicesFromUrl||this.choicesFromUrl.length==0))}canAddCustomChoices(){return!1}hasValueToClearIncorrectValues(){return this.survey&&this.survey.keepIncorrectValues?!1:!this.keepIncorrectValues&&!this.isEmpty()}clearValueIfInvisibleCore(e){super.clearValueIfInvisibleCore(e),this.clearIncorrectValues(),this.clearValuesInVisiblePanels(e)}clearValuesInVisiblePanels(e){this.doForPanels(!1,t=>{t.questions.forEach(e=>{e.clearValue()}),t.questions.forEach(t=>{t.clearValueIfInvisible(e)})})}isItemSelected(e){return this.isOtherItemByInstance(e)?this.isOtherSelected:this.isItemSelectedCore(e)}isItemSelectedCore(e){return e.value===this.renderedValue}clearDisabledValues(){!this.survey||!this.choiceCallbacks.clearDisabledChoices||this.clearDisabledValuesCore()}clearIncorrectValuesCore(){var e=this.value;this.canClearValueAnUnknown(e)&&this.clearValue(!0)}canClearValueAnUnknown(e){return!this.getStoreOthersAsComment()&&this.isOtherSelected?!1:this.hasUnknownValue(e,!0,!0,!0)}clearDisabledValuesCore(){this.isValueDisabled(this.value)&&this.clearValue(!0)}clearUnusedValues(){super.clearUnusedValues(),this.isOtherValueUnused()&&(this.otherValue=``)}isOtherValueUnused(){return!this.isOtherSelected}getColumnClass(){return new X().append(this.cssClasses.column).append(`sv-q-column-`+this.colCount,this.hasColumns).toString()}getItemIndex(e){return this.visibleChoices.indexOf(e)}getItemClass(e){let t={item:e};return t.css=this.getItemClassCore(e,t),this.survey&&this.cssCallbacks.updateChoiceItemCss(this,t),t.css}getCurrentColCount(){return this.colCount}getItemClassCore(e,t){let n=new X().append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&this.colCount===0).append(`sv-q-col-`+this.getCurrentColCount(),!this.hasColumns&&this.colCount!==0).append(this.cssClasses.itemOnError,this.hasCssError()),r=this.getIsDisableAndReadOnlyStyles(!e.isEnabled),i=r[0],a=r[1],o=this.isItemSelected(e),s=!a&&!o&&!(this.survey&&this.survey.isDesignMode),c=e===this.noneItemValue;return t.isDisabled=a||i,t.isChecked=o,t.isNone=c,n.append(this.cssClasses.itemDisabled,a).append(this.cssClasses.itemReadOnly,i).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,o).append(this.cssClasses.itemHover,s).append(this.cssClasses.itemNone,c).toString()}getLabelClass(e){return new X().append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()}getControlLabelClass(e){return new X().append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0}updateRenderedChoices(){this.renderedChoices=this.onGetRenderedChoicesCallback?this.onGetRenderedChoicesCallback(this.visibleChoices):this.visibleChoices}getRenderedChoicesAnimationOptions(){return{isAnimationEnabled:()=>this.animationAllowed,getRerenderEvent:()=>this.onElementRerendered,getKey:e=>e==this.newItemValue?this.newItemValue:e.value,getLeaveOptions:e=>{let t=this.cssClasses.itemLeave;if(this.hasColumns){let n=this.bodyItems.indexOf(e);n!==-1&&n!==this.bodyItems.length-1&&(t=``)}return{cssClass:t,onBeforeRunAnimation:wP,onAfterRunAnimation:TP}},getAnimatedElement:e=>e.getRootElement(),getEnterOptions:e=>{let t=this.cssClasses.itemEnter;if(this.hasColumns){let n=this.bodyItems.indexOf(e);n!==-1&&n!==this.bodyItems.length-1&&(t=``)}return{cssClass:t,onBeforeRunAnimation:t=>{if(this.getCurrentColCount()==0&&this.bodyItems.indexOf(e)>=0){let e=t.parentElement.firstElementChild.offsetLeft;t.offsetLeft>e&&CP(t,{moveAnimationDuration:`0s`,fadeAnimationDelay:`0s`},`--`)}wP(t)},onAfterRunAnimation:TP}}}}get renderedChoices(){return this._renderedChoices}
84set renderedChoices(e){this.renderedChoicesAnimation.sync(e)}get headItems(){let e=this.separateSpecialChoices||this.isInDesignMode?this.headItemsCount:0,t=[];for(let n=0;n<e;n++)this.renderedChoices[n]&&t.push(this.renderedChoices[n]);return t}get footItems(){let e=this.separateSpecialChoices||this.isInDesignMode?this.footItemsCount:0,t=[],n=this.renderedChoices;for(let r=0;r<e;r++)this.renderedChoices[n.length-e+r]&&t.push(this.renderedChoices[n.length-e+r]);return t}get dataChoices(){return this.renderedChoices.filter(e=>!this.isBuiltInChoice(e))}get bodyItems(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.renderedChoices}get hasHeadItems(){return this.headItems.length>0}get hasFootItems(){return this.footItems.length>0}get itemFlowDirection(){return G.itemFlowDirection}get columns(){if(!this.hasColumns||this.renderedChoices.length===0)return[];let e=this.getCurrentColCount(),t=!this.separateSpecialChoices&&!this.isInDesignMode?this.renderedChoices:this.dataChoices;return this.itemFlowDirection===`column`?this.getColumnsWithColumnItemFlow(t,e):this.getColumnsWithRowItemFlow(t,e)}getColumnsWithColumnItemFlow(e,t){let n=[],r=Math.floor(e.length/t);e.length%t&&(r+=1);let i=e.length,a=t,o=0;for(let s=0;s<t;s++){let t=[];for(let n=0;n<r;n++){i<=a&&(r=1);let s=e[n+o];s&&(t.push(s),i--)}n.push(t),a--,o+=t.length}return n}getColumnsWithRowItemFlow(e,t){let n=[];for(let r=0;r<t;r++){let i=[];for(let n=r;n<e.length;n+=t)i.push(e[n]);n.push(i)}return n}getItemsColumnKey(e){return(e||[]).map(e=>e.uniqueId).join(`-`)}get hasColumns(){return!this.isMobile&&this.getCurrentColCount()>1}get rowLayout(){return this.getCurrentColCount()==0&&!(this.hasFootItems||this.hasHeadItems)}get blockedRow(){return this.getCurrentColCount()==0&&(this.hasFootItems||this.hasHeadItems)}choicesLoaded(){this.isChoicesLoaded=!0,this.updateIsReady(),this.survey&&this.choiceCallbacks.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()}getItemValueWrapperComponentName(e){let t=this.survey;
84return t?t.getItemValueWrapperComponentName(e,this):Z.TemplateRendererComponentName}getItemValueWrapperComponentData(e){let t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e}ariaItemChecked(e){return this.renderedValue===e.value?`true`:`false`}isOtherItem(e){return this.showOtherItem&&this.isOtherValue(e.value)}isOtherItemByInstance(e){let t=this.showOtherItem?this.otherItem:this.otherItemValue;return!!e&&e===t}get itemSvgIcon(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId}getSelectBaseRootCss(){return new X().append(this.getQuestionRootCss()).append(this.cssClasses.rootRow,this.rowLayout).toString()}allowMobileInDesignMode(){return!0}getAriaItemLabel(e){return e.locText.renderedHtml}getItemId(e){return this.inputId+`_`+this.getItemIndex(e)}getItemEnabled(e){return!this.isDisabledAttr&&e.isEnabled}focusOtherComment(e){var t;this.autoOtherMode||DP.FocusElement(this.getItemCommentId(e),!1,(t=this.survey)==null?void 0:t.rootElement)}getDefaultItemComponent(){return``}};q([Y()],GI.prototype,`selectedItemValues`,void 0),q([Y()],GI.prototype,`showNoneItem`,void 0),q([Y()],GI.prototype,`showRefuseItem`,void 0),q([Y()],GI.prototype,`showDontKnowItem`,void 0),q([Y()],GI.prototype,`choicesVisibleIf`,void 0),q([Y()],GI.prototype,`choicesEnableIf`,void 0),q([Y()],GI.prototype,`autoOtherMode`,void 0),q([Y()],GI.prototype,`choices`,void 0),q([Y()],GI.prototype,`choicesFromQuestionMode`,void 0),q([Y()],GI.prototype,`choiceValuesFromQuestion`,void 0),q([Y()],GI.prototype,`choiceTextsFromQuestion`,void 0),q([Y()],GI.prototype,`hideIfChoicesEmpty`,void 0),q([Y()],GI.prototype,`keepIncorrectValues`,void 0),q([Y()],GI.prototype,`storeOthersAsComment`,void 0),q([Y({isLowerCase:!0})],GI.prototype,`choicesOrder`,void 0),q([Y()],GI.prototype,`separateSpecialChoices`,void 0),q([Y({localizable:{defaultStr:!0}})],GI.prototype,`otherPlaceholder`,void 0),q([Y({localizable:{defaultStr:`Other required error`,markdown:!0}})],GI.prototype,`otherErrorText`,void 0),q([Y()],GI.prototype,`isMessagePanelVisible`,void 0),q([Y({onSetting:(e,t)=>t.supportOther()?e:!1})],GI.prototype,`showOtherItem`,void 0),q([mN()],GI.prototype,`_renderedChoices`,void 0),q([Y({getDefaultValue:e=>e.getDefaultItemComponent()})],GI.prototype,`itemComponent`,void 0);var KI=class extends GI{get colCount(){return this.getPropertyValue(`colCount`,this.isFlowLayout?0:void 0)}set colCount(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue(`colCount`,e),this.fireCallback(this.colCountChangedCallback))}onParentChanged(){super.onParentChanged(),this.isFlowLayout&&this.setPropertyValue(`colCount`,null)}onParentQuestionChanged(){this.onVisibleChoicesChanged()}getSearchableItemValueKeys(e){e.push(`choices`)}};function qI(e,t){var n;if(!e)return!1;if(e.templateQuestion){let t=(n=e.colOwner)==null?void 0:n.data;if(e=e.templateQuestion,!e.getCarryForwardQuestion(t))return!1}return e.carryForwardQuestionType===t}J.addClass(`choiceitem`,[{name:`showCommentArea:boolean`,locationInTable:`detail`,visibleIf:e=>e.supportComment},{name:`isCommentRequired:boolean`,locationInTable:`detail`,visibleIf:e=>e.showCommentArea},{name:`commentPlaceholder`,locationInTable:`detail`,serializationProperty:`locCommentPlaceholder`,visibleIf:e=>e.showCommentArea},{name:`elements`,baseClassName:`question`,visible:!1,isLightSerializable:!1,isSerializableFunc:e=>e.hasElements}],e=>new WI(e),`itemvalue`),J.addClass(`selectbase`,[{name:`showCommentArea:switch`,visible:!0},`choicesFromQuestion:question_carryforward`,{name:`choices:choiceitem[]`,uniqueProperty:`value`,baseValue:function(){return hj(`choices_Item`)},dependsOn:`choicesFromQuestion`,visibleIf:e=>!e.choicesFromQuestion},{name:`choicesFromQuestionMode`,default:`all`,choices:[`all`,`selected`,`unselected`],dependsOn:`choicesFromQuestion`,visibleIf:e=>qI(e,`select`)},{name:`choiceValuesFromQuestion`,dependsOn:`choicesFromQuestion`,visibleIf:e=>qI(e,`array`)},{name:`choiceTextsFromQuestion`,dependsOn:`choicesFromQuestion`,visibleIf:e=>qI(e,`array`)},{name:`choicesOrder`,default:`none`,choices:[`none`,`asc`,`desc`,`random`],dependsOn:`choicesFromQuestion`,visibleIf:e=>!e.choicesFromQuestion},{name:`choicesByUrl:restfull`,className:`choicesByUrl`,onGetValue:e=>{let t=e.choicesByUrlValue;return t?t.toJSON():void 0},onSetValue:(e,t)=>
84{e.choicesByUrl.setData(t)}},`hideIfChoicesEmpty:boolean`,`choicesVisibleIf:condition`,{name:`choicesEnableIf:condition`,dependsOn:`choicesFromQuestion`,visibleIf:e=>!e.choicesFromQuestion},{name:`defaultValue:value`,visibleIf:e=>!e.choicesFromQuestion,dependsOn:`choicesFromQuestion`},{name:`correctAnswer:value`,visibleIf:e=>!e.choicesFromQuestion,dependsOn:`choicesFromQuestion`},{name:`separateSpecialChoices:boolean`,visible:!1},{name:`showOtherItem:boolean`,alternativeName:`hasOther`},{name:`showNoneItem:boolean`,alternativeName:`hasNone`},{name:`showRefuseItem:boolean`,visible:!1,version:`1.9.128`},{name:`showDontKnowItem:boolean`,visible:!1,version:`1.9.128`},{name:`otherPlaceholder`,alternativeName:`otherPlaceHolder`,serializationProperty:`locOtherPlaceholder`,dependsOn:`showOtherItem`,visibleIf:function(e){return e.showOtherItem}},{name:`noneText`,serializationProperty:`locNoneText`,dependsOn:`showNoneItem`,visibleIf:function(e){return e.showNoneItem}},{name:`refuseText`,serializationProperty:`locRefuseText`,dependsOn:`showRefuseItem`,visibleIf:function(e){return e.showRefuseItem}},{name:`dontKnowText`,serializationProperty:`locDontKnowText`,dependsOn:`showDontKnowItem`,visibleIf:function(e){return e.showDontKnowItem}},{name:`otherText`,serializationProperty:`locOtherText`,dependsOn:`showOtherItem`,visibleIf:function(e){return e.showOtherItem}},{name:`otherErrorText`,serializationProperty:`locOtherErrorText`,dependsOn:`showOtherItem`,visibleIf:function(e){return e.showOtherItem}},{name:`storeOthersAsComment`,default:`default`,choices:[`default`,!0,!1],visible:!1}],null,`question`),J.addClass(`checkboxbase`,[{name:`colCount:number`,default:1,choices:[0,1,2,3,4,5],layout:`row`}],null,`selectbase`);var JI=`sv-focused--by-key`;function YI(e){let t=e.target;!t||!t.classList||t.classList.remove(JI)}function XI(e,t){if(e.target&&e.target.contentEditable===`true`)return;let n=e.target;if(!n)return;let r=e.which||e.keyCode;if(r===9){n.classList&&!n.classList.contains(JI)&&n.classList.add(JI);return}if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}r===13||r===32?n.click&&n.click():(!t||t.processEsc)&&r===27&&n.blur&&n.blur()}function ZI(e,t={processEsc:!0}){if(t&&(t.__keyDownReceived=!0),e.target&&e.target.contentEditable===`true`)return;var n=e.which||e.keyCode;let r=[13,32];t.processEsc&&r.push(27),r.indexOf(n)!==-1&&e.preventDefault()}var QI=class e extends qM{get focusFirstInputSelector(){return this.getFocusFirstInputSelector()}getFocusFirstInputSelector(){return rP?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:``}resetItemsSettings(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]}setItems(e,t){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=t,this.listModel.isAllDataLoaded=this.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items}_loadQuestionChoices(e){let t=this.filterString;this.setIsChoicesLoading(!0),this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:(n,r)=>{this.setItems(n||[],r||0),this.popupRecalculatePosition(this.itemsSettings.skip===this.itemsSettings.take),e&&e(),this.processCustomValue(t),this.setIsChoicesLoading(!1)}}),this.itemsSettings.skip+=this.itemsSettings.take}setIsChoicesLoading(e){this.question.setIsChoicesLoading&&this.question.setIsChoicesLoading(e)}processCustomValue(e){if(!this.allowCustomChoices)return;let t=e||this.filterString;this.listModel.getVisibleActions().filter(e=>K.isTwoValueEquals(e.text,t,!1,!1))[0]?this.customValue=void 0:(this.customValue=t,this.updateItems(),this.listModel.focusFirstVisibleItem())}updateQuestionChoices(e){let t=this.itemsSettings.skip+1<this.itemsSettings.totalCount;(!this.itemsSettings.skip||t)&&(this.resetTimer(),this.filterString&&G.dropdownSearchDelay>0?this.timer=setTimeout(()=>{this._loadQuestionChoices(e)},G.dropdownSearchDelay):this._loadQuestionChoices(e))}resetTimer(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)}updatePopupFocusFirstInputSelector(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector}getDropdownMenuOptions(){let e=tj.getInnerWidth(),t=tj.getInnerHeight(),n=aP(e,t),r=`dropdown`,i=`desktop`;return rP&&(r=`popup`,i=n?`tablet`:`mobile`),{menuType:r,deviceType:i,hasTouchScreen:rP,screenHeight:t,screenWidth:e}}
84checkFocusRemainsWithinComponent(e){if(!this.question.cssClasses.root||!(e!=null&&e.target))return!1;let t=e.target.closest(RN(this.question.cssClasses.root));return t&&t.contains(e.relatedTarget)}createButtons(){this.editorButtons=new XN,this.editorButtons.containerCss=`sd-dropdown-action-bar`,this.chevronButton=new kN({id:`chevron`,css:`sd-editor-chevron-button`,iconName:this.question.cssClasses.chevronButtonIconId||`icon-chevron`,iconSize:`auto`,showTitle:!1,locTitle:this.locSelectCaption,disableTabStop:!0,enabled:!this.question.isInputReadOnly,visible:!this.question.isPreviewStyle,action:e=>{this.onClick()}}),this.clearButton=new kN({id:`clear`,css:`sd-editor-clean-button`,iconName:this.question.cssClasses.cleanButtonIconId||`icon-cancel-24x24`,iconSize:`auto`,showTitle:!1,locTitle:this.locClearCaption,disableTabStop:!0,enabled:!this.question.isInputReadOnly,visible:this.isClearButtonVisible,action:e=>{this.onClear()}}),this.editorButtons.setItems([this.clearButton,this.chevronButton]),this.editorButtons.actions.forEach(e=>e.cssClasses={item:`sd-editor-button-item`,itemIcon:`sv-editor-button-item__icon`,itemPressed:`sd-editor-button-item--pressed`})}get isClearButtonVisible(){return this.question.allowClear&&!this.question.isEmpty()&&!this.question.isReadOnly}updateButtonsState(){this.chevronButton&&(this.chevronButton.setEnabled(!this.question.isInputReadOnly),this.chevronButton.setVisible(!this.question.isPreviewStyle)),this.clearButton&&(this.clearButton.setEnabled(!this.question.isInputReadOnly),this.clearButton.setVisible(this.isClearButtonVisible))}createPopup(){let e={verticalPosition:`bottom`,horizontalPosition:`center`,showPointer:!1};this._popupModel=new lP(`sv-list`,{model:this.listModel},e),this._popupModel.displayMode=rP?`overlay`:`popup`,this._popupModel.positionMode=`fixed`,this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=rP,this._popupModel.setWidthByTarget=!rP,this._popupModel.locale=this.question.getLocale(),this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers([`showFilter`],()=>{this.updatePopupFocusFirstInputSelector()}),this._popupModel.onVisibilityChanged.add((e,t)=>{this.popupVisibilityChanged(t.isVisible),this.chevronButton.pressed=t.isVisible})}popupVisibilityChanged(e){if(e&&(this.listModel.renderElements=!0),e&&this.choicesLazyLoadEnabled&&(this.listModel.actions=[],this.resetItemsSettings(),this.updateQuestionChoices()),e){this.updatePopupFocusFirstInputSelector();let e=this.getDropdownMenuOptions();this.question.processOpenDropdownMenu(e),this._popupModel.updateDisplayMode(e.menuType)&&this.listModel.setSearchEnabled(this.inputAvailable&&e.menuType!==`dropdown`),this.question.onOpenedCallBack&&this.question.onOpenedCallBack()}e||this.onHidePopup(),this.ariaExpanded=e?`true`:`false`,this.question.processPopupVisiblilityChanged(this.popupModel,e)}setFilterStringToListModel(e){if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0){this.listModel.focusedItem=this.getAvailableItems().filter(e=>e.id==this.question.selectedItem.value)[0],this.listModel.filterString&&this.listModel.actions.map(e=>e.selectedValue=!1);return}(!this.listModel.focusedItem||!this.listModel.isItemVisible(this.listModel.focusedItem))&&this.listModel.focusFirstVisibleItem()}setTextWrapEnabled(e){this.listModel.textWrapEnabled=e}popupRecalculatePosition(e){setTimeout(()=>{this.popupModel.recalculatePosition(e)},1)}onHidePopup(){this.choicesLazyLoadEnabled&&this.resetItemsSettings(),this.customValue=void 0,this.resetCustomItemValue(),this.resetKeyboardPreviewState()}getAvailableItems(){return this.allowCustomChoices?[].concat(this.question.visibleChoices,[this.customItemValue]):this.question.visibleChoices}setOnTextSearchCallbackForListModel(e){e.setOnTextSearchCallback((e,t)=>{if(e.id===this.customItemValue.id)return e.visible;if(this.filteredItems)return this.filteredItems.indexOf(e)>=0;let n=fj(e.text,`filter`),r=fj(t,`filter`),i=n.indexOf(r);return this.question.searchMode==`startsWith`?i==0:i>-1})}createListModel(){let e=this.getAvailableItems(),t=this.onSelectionChanged;t||(t=e=>{this.setQuestionValue(e),this.popupModel.hide()});let n=new cP({items:e,onSelectionChanged:t,allowSelection:!1,locOwner:this.question,elementId:this.listElementId});this.setOnTextSearchCallbackForListModel(n),n.renderElements=!1,n.forceShowFilter=this.question.choicesLazyLoadEnabled||this.question.allowCustomChoices,n.areSameItemsCallback=(e,t)=>e===t;let r=n.isItemFocused.bind(n);return n.isItemFocused=e=>(this.isListFocusedByKeyboard||!!this.filterString)&&r(e),n}setQuestionValue(e){let t=e;this.allowCustomChoices&&e.id===this.customItemValue.id&&(t=this.createCustomItem()),t&&(this.question.selectItem(t),this.resetFilterString(),this.searchEnabled&&this.applyInputString(t))}resetListKeyboardHighlightState(){this.listModel.actions.forEach(e
84=>{let t=e;typeof t.selectedValue==`boolean`&&(t.selectedValue=void 0)}),this.listModel.resetFocusedItem(),this.ariaActivedescendant=void 0}resetKeyboardPreviewState(){this.isListFocusedByKeyboard=!1,this.question.suggestedItem=null,this.resetListKeyboardHighlightState()}selectAvailableItem(){if(!rP&&G.dropdownSaveOnOutsideClick&&this.popupModel.isVisible){let e=this.listModel.visibleItems;if(e.length>0)return this.listModel.onItemClick(e[0]),!0}return!1}createCustomItem(){let e=new HP(this.customValue),t={item:e,question:this.question,allow:!0};return this.question.survey.createCustomChoiceItem(t),t.allow?(this.question.customChoices.push(e),this.customValue=void 0,this.updateItems(),e):(this.clear(),null)}updateAfterListModelCreated(e){e.isItemSelected=e=>e.selectedValue===!0?!0:e.selectedValue===!1&&this.question.suggestedItem?!1:!!this.question.isItemSelected(e),e.isAllDataLoaded=!this.choicesLazyLoadEnabled,e.disableSearch=this.choicesLazyLoadEnabled,e.actions.forEach(e=>e.disableTabStop=!0),e.setOnFilterStringChangedCallback(this.listModelFilterStringChanged),e.setLoadingIndicatorVisibilityObserver(e=>{e&&this.updateQuestionChoices()})}getPopupCssClasses(){return`sv-single-select-list`}updateCssClasses(e,t){this.popupModel.cssClass=new X().append(e).append(this.getPopupCssClasses()).toString(),this.listModel.cssClasses=t}resetFilterString(){this.filterString&&(this.filterString=void 0,this.listModel.filterString=``),this.inputString=null,this.hintString=``}clear(){this.customValue=void 0,this.resetFilterString()}onSetFilterString(){if(this.filteredItems=void 0,!this.filterString&&!this.popupModel.isVisible)return;let e={question:this.question,choices:this.getAvailableItems(),filter:this.filterString,filteredChoices:void 0};this.question.survey.onChoicesSearch.fire(this.question.survey,e),this.filteredItems=e.filteredChoices,this.filterString&&!this.popupModel.isVisible&&this.popupModel.show();let t=()=>{this.setFilterStringToListModel(this.filterString),this.filterString&&this.applyHintString(),this.popupRecalculatePosition(!0)};this.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(t)):t()}get isAllDataLoaded(){return!!this.itemsSettings.totalCount&&this.itemsSettings.items.length==this.itemsSettings.totalCount}loadQuestionChoices(e){this.isAllDataLoaded||this._loadQuestionChoices(e)}get canShowSelectedItem(){return!this.focused||this._markdownMode||!this.searchEnabled}get needRenderInput(){return!this.question.isInputReadOnly||!!this.placeholderRendered}updateCustomItemValue(){this.customValue?(this.customItemValue.text=this.getCustomItemText(this.customValue),this.customItemValue.visible=!0):this.resetCustomItemValue()}resetCustomItemValue(){this.customItemValue.text=``,this.customItemValue.visible=!1}get customItemValue(){return this._customItemValue||(this._customItemValue=new HP(`newCustomItem`,this.getCustomItemText(this.customValue)),this._customItemValue.css=`sv-list-item--custom-value`),this._customItemValue}getCustomItemText(e){let t=this.question.createCustomChoiceText;return t?t.replace(`{0}`,e):this.getLocalizationFormatString(`createCustomItem`,e)}applyInputString(e){e!=null&&e.locText.hasHtml||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString=this.cleanHtml(e==null?void 0:e.locText.getHtmlValue()),this.hintString=``):(this.inputString=e==null?void 0:e.title,this.hintString=e==null?void 0:e.title)}cleanHtml(e){return this.htmlCleanerElement?(this.htmlCleanerElement.innerHTML=e,this.htmlCleanerElement.textContent):``}fixInputCase(){let e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)}applyHintString(){let e=this.listModel.focusedItem||this.question.selectedItem;e!=null&&e.locText.hasHtml||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=``):this.hintString=e===this.customItemValue?``:e==null?void 0:e.title}get inputStringRendered(){return this.inputString||``}set inputStringRendered(e){var t;this.isListFocusedByKeyboard=!!e,this.inputString=e,this.filterString=e,this.choicesLazyLoadEnabled||this.processCustomValue(),(!e||!this.searchEnabled||((t=this.listModel.focusedItem)==null?void 0:t.id)===this.customItemValue.id)&&(this.hintString=``)}get placeholderRendered(){return this.hintString||this.question.readOnly||!this.question.isEmpty()?``:this.inputPlaceholder}get listElementId(){return this.question.inputId+`_list`}get hintStringLC(){var e;return((e=this.hintString)==null?void 0:e.toLowerCase())||``}get inputStringLC(){var e;return((e=this.inputString)==null?void 0:e.toLowerCase())||``}get showHintPrefix(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0}get hintStringPrefix(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null}get showHintString(){return!!this.searchEnabled&&!!(this.hintStringLC||this.inputStringLC)||!this.searchEnabled&&this.hintStringLC&&this.question.isEmpty()}get hintStringSuffix(){return this.hintStringLC.indexOf(this.inputStringLC)>=0?this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length):``}get hintStringMiddle(){let e=this.hintStringLC.indexOf(this.inputStringLC);return e==-1?null:this.hintString.substring(e,e+this.inputStringLC.length)}constructor(e,t){super(),this.question=e,this.onSelectionChanged=t,this.minPageSize=25,this.loadingItemHeight=40,this.timer=void 0,this._markdownMode=!1,this.filteredItems=void 0,this.selectedItemSelector=`.sv-list__item--selected`,this.itemSelector=`.sv-list__item`,this.itemsSettings={skip:0,take:0,totalCount:0,items:[]},this.listModelFilterStringChanged=e=>{this.filterString!==e&&(this.filterString=e,this.choicesLazyLoadEnabled||this.processCustomValue())}
vendor: 4,798 bytes, line 84
84,this.isListFocusedByKeyboard=!1,this.questionPropertyChangedHandler=(e,t)=>{this.onPropertyChangedHandler(e,t)},this.surveyPropertyChangedHandler=(e,t)=>{t.name===`state`&&this.updateButtonsState()},this.ariaExpanded=`false`,this.createLocalizableString(`clearCaption`,this.question,!1,!0),this.createLocalizableString(`selectCaption`,this.question,!1,!0),this.htmlCleanerElement=nj.createElement(`div`),e.onPropertyChanged.add(this.questionPropertyChangedHandler),e.survey&&e.survey.onPropertyChanged.add(this.surveyPropertyChangedHandler),this.showInputFieldComponent=this.question.showInputFieldComponent,this.listModel=this.createListModel(),this.setChoicesLazyLoadEnabled(this.question.choicesLazyLoadEnabled),this.setInputPlaceholder(this.question.placeholder),this.updateAfterListModelCreated(this.listModel),this.setSearchEnabled(this.question.searchEnabled),this.setAllowCustomChoices(this.question.allowCustomChoices),this.setTextWrapEnabled(this.question.textWrapEnabled),this.createPopup(),this.createButtons(),this.resetItemsSettings();let n=e.cssClasses;this.updateCssClasses(n.popup,n.list)}get popupModel(){return this._popupModel}get clearCaption(){return this.getLocalizableStringText(`clearCaption`)}set clearCaption(e){this.setLocalizableStringText(`clearCaption`,e)}get locClearCaption(){return this.getLocalizableString(`clearCaption`)}get selectCaption(){return this.getLocalizableStringText(`selectCaption`)}set selectCaption(e){this.setLocalizableStringText(`selectCaption`,e)}get locSelectCaption(){return this.getLocalizableString(`selectCaption`)}get inputAvailable(){return this.searchEnabled||this.allowCustomChoices}get noTabIndex(){return this.question.isInputReadOnly||this.inputAvailable}get filterReadOnly(){return!this.filterStringEnabled||!this.focused}get filterStringEnabled(){return!this.question.isInputReadOnly&&this.inputAvailable}get inputMode(){return rP?`none`:`text`}get popupEnabled(){return!this.question.isInputReadOnly}get ariaQuestionRole(){return this.filterStringEnabled?void 0:`combobox`}get ariaQuestionRequired(){return this.ariaQuestionRole?this.question.a11y_input_ariaRequired:void 0}get ariaQuestionInvalid(){return this.ariaQuestionRole?this.question.a11y_input_ariaInvalid:void 0}get ariaQuestionErrorMessage(){return this.ariaQuestionRole?this.question.a11y_input_ariaErrormessage:void 0}get ariaQuestionLabel(){return this.ariaQuestionRole?this.question.a11y_input_ariaLabel:void 0}get ariaQuestionLabelledby(){return this.ariaQuestionRole?this.question.a11y_input_ariaLabelledBy:void 0}get ariaQuestionDescribedby(){return this.ariaQuestionRole?this.question.a11y_input_ariaDescribedBy:void 0}get ariaQuestionControls(){return this.ariaQuestionRole&&this.popupEnabled?this.listElementId:void 0}get ariaQuestionExpanded(){return this.ariaQuestionRole?this.popupEnabled?this.ariaExpanded:`false`:void 0}get ariaQuestionActivedescendant(){return this.ariaQuestionRole?this.ariaActivedescendant:void 0}get ariaInputRole(){return this.filterStringEnabled?`combobox`:void 0}get ariaInputRequired(){return this.ariaInputRole?this.question.a11y_input_ariaRequired:void 0}get ariaInputInvalid(){return this.ariaInputRole?this.question.a11y_input_ariaInvalid:void 0}get ariaInputErrorMessage(){return this.ariaInputRole?this.question.a11y_input_ariaErrormessage:void 0}get ariaInputLabel(){return this.ariaInputRole?this.question.a11y_input_ariaLabel:void 0}get ariaInputLabelledby(){return this.ariaInputRole?this.question.a11y_input_ariaLabelledBy:void 0}get ariaInputDescribedby(){return this.ariaInputRole?this.question.a11y_input_ariaDescribedBy:void 0}get ariaInputControls(){return this.ariaInputRole&&this.popupEnabled?this.listElementId:void 0}get ariaInputExpanded(){return this.ariaInputRole?this.popupEnabled?this.ariaExpanded:`false`:void 0}get ariaInputActivedescendant(){return this.ariaInputRole?this.ariaActivedescendant:void 0}setSearchEnabled(e){this.listModel.setSearchEnabled(rP&&(e||this.question.allowCustomChoices)),this.searchEnabled=e}setAllowCustomChoices(e){this.allowCustomChoices=e,this.listModel.forceShowFilter=this.question.choicesLazyLoadEnabled||e,e&&(this.searchEnabled=e)}setChoicesLazyLoadEnabled(e){this.choicesLazyLoadEnabled=e,this.listModel.disableSearch=e,this.listModel.isAllDataLoaded=!e,this.listModel.forceShowFilter=e||this.question.allowCustomChoices}setInputPlaceholder(e){this.inputPlaceholder=e}updateItems(){this.listModel.setItems(this.getAvailableItems())}onClick(e){this.question.readOnly||this.question.isDesignMode||this.question.isPreviewStyle||this.question.isReadOnlyAttr||(this._popupModel.toggleVisibility(),this.isListFocusedByKeyboard=!1,this.focusItemOnClickAndPopup(),this.question.focusInputElement(!1))}chevronPointerDown(e){this._popupModel.isVisible&&e.preventDefault()}
84onPropertyChangedHandler(e,t){t.name==`value`&&(this.showInputFieldComponent=this.question.showInputFieldComponent,this.updateButtonsState()),(t.name===`readOnly`||t.name===`isInputReadOnly`||t.name===`isDesignMode`||t.name===`forceIsInputReadOnly`||t.name===`allowClear`)&&this.updateButtonsState(),t.name==`textWrapEnabled`&&this.setTextWrapEnabled(t.newValue)}focusItemOnClickAndPopup(){this._popupModel.isVisible&&this.question.value&&(HP.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem),this.afterScrollToFocusedItem())}onClear(e){this.resetKeyboardPreviewState(),this.question.clearValueFromUI(),this._popupModel.hide(),e&&(e.preventDefault(),e.stopPropagation())}getSelectedAction(){return this.question.selectedItem||null}changeSelectionWithKeyboard(e){var t;this.isListFocusedByKeyboard=!0;let n=this.listModel.focusedItem;!n&&this.question.selectedItem?HP.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(n),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=(t=this.listModel.focusedItem)==null?void 0:t.elementId}beforeScrollToFocusedItem(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)}afterScrollToFocusedItem(){var e;this.question.value&&!this.listModel.filterString&&this.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(),this.fixInputCase(),this.ariaActivedescendant=(e=this.listModel.focusedItem)==null?void 0:e.elementId}keyHandler(e){let t=e.keyCode,n=e.which||t;this.handleKeyEvent(t,n,e).stopPropagation&&(e.preventDefault(),e.stopPropagation())}handleKeyEvent(t,n,r){return t===e.KEY_UP?this.handleArrowUp(r):t===e.KEY_DOWN?this.handleArrowDown():t===e.KEY_TAB?this.handleTab(r):t===e.KEY_SPACE?this.handleSpace(r):t===e.KEY_ENTER?this.handleEnter(r):n===e.KEY_DELETE||n===e.KEY_BACKSPACE?this.handleDelete(r):t===e.KEY_ESCAPE?this.handleEscape():this.handleOtherKeys(r)}handleArrowUp(e){return this.popupModel.isVisible?(this.changeSelectionWithKeyboard(!0),{stopPropagation:!0}):(XI(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly}),{stopPropagation:!0})}handleArrowDown(){return this.popupModel.show(),this.changeSelectionWithKeyboard(!1),{stopPropagation:!0}}handleTab(e){return this.handleEnter(e),this.popupModel.hide(),{stopPropagation:!1}}handleSpace(e){return this.popupModel.isVisible?!this.searchEnabled||!this.inputString?(this.listModel.selectFocusedItem(),this.onFocus(e),{stopPropagation:!0}):{stopPropagation:!1}:(this.popupModel.show(),this.changeSelectionWithKeyboard(!1),{stopPropagation:!0})}handleEnter(e){return this.popupModel.isVisible?this.handleEnterWhenPopupVisible(e):this.handleEnterWhenPopupHidden(e),{stopPropagation:!0}}handleEnterWhenPopupHidden(e){this.question.survey.questionEditFinishCallback(this.question,e)}handleEnterWhenPopupVisible(e){this.searchEnabled&&!this.inputString&&!this._markdownMode&&this.question.value?(this._popupModel.hide(),this.onClear(e)):(this.listModel.selectFocusedItem(),this.onFocus(e))}handleDelete(e){return this.inputAvailable||this.onClear(e),{stopPropagation:!1}}handleEscape(){return this._popupModel.hide(),this.resetFilterString(),this.onEscape(),{stopPropagation:!1}}handleOtherKeys(e){return XI(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly}),{stopPropagation:!1}}onEscape(){this.searchEnabled&&this.applyInputString(this.question.selectedItem)}onScroll(e){let t=e.target;t.scrollHeight-(t.scrollTop+t.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()}onBlur(e){this.checkFocusRemainsWithinComponent(e)||(this.focused=!1,!(this.popupModel.isVisible&&this.popupModel.displayMode==`overlay`)&&(YI(e),this.selectAvailableItem()||this.resetFilterString(),this._popupModel.hide(),e.stopPropagation()))}onFocus(e){this.focused=!0,this.setInputStringFromSelectedItem(this.question.selectedItem)}setInputStringFromSelectedItem(e){this.focused&&this.searchEnabled&&e&&this.applyInputString(e)}dispose(){super.dispose(),this.question&&this.question.onPropertyChanged.remove(this.questionPropertyChangedH
84andler),this.question&&this.question.survey&&this.question.survey.onPropertyChanged.remove(this.surveyPropertyChangedHandler),this.questionPropertyChangedHandler=void 0,this.surveyPropertyChangedHandler=void 0,this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose(),this.htmlCleanerElement=void 0}scrollToFocusedItem(){this.listModel.scrollToFocusedItem()}};QI.KEY_UP=38,QI.KEY_DOWN=40,QI.KEY_TAB=9,QI.KEY_ENTER=13,QI.KEY_ESCAPE=27,QI.KEY_SPACE=32,QI.KEY_DELETE=46,QI.KEY_BACKSPACE=8,q([Y({defaultValue:!1})],QI.prototype,`focused`,void 0),q([Y({defaultValue:!1})],QI.prototype,`allowCustomChoices`,void 0),q([Y({onSet:(e,t)=>{t.updateCustomItemValue()}})],QI.prototype,`customValue`,void 0),q([Y({defaultValue:!0})],QI.prototype,`searchEnabled`,void 0),q([Y()],QI.prototype,`choicesLazyLoadEnabled`,void 0),q([Y({defaultValue:``,onSet:(e,t)=>{t.onSetFilterString()}})],QI.prototype,`filterString`,void 0),q([Y({defaultValue:``,onSet:(e,t)=>{t.question.inputHasValue=!!e}})],QI.prototype,`inputString`,void 0),q([Y({})],QI.prototype,`showInputFieldComponent`,void 0),q([Y()],QI.prototype,`ariaActivedescendant`,void 0),q([Y()],QI.prototype,`ariaExpanded`,void 0),q([Y()],QI.prototype,`inputPlaceholder`,void 0),q([Y({defaultValue:``})],QI.prototype,`hintString`,void 0);function $I(e){class t extends e{get dropdownListModel(){return this.dropdownListModelValue}set dropdownListModel(e){this.dropdownListModelValue=e}get popupModel(){return this.dropdownListModel.popupModel}get showClearButton(){return this.allowClear&&!this.isEmpty()}get readOnlyText(){return this.locReadOnlyText.calculatedText}get locReadOnlyText(){return this.getOrCreateLocStr(`readOnlyText`,!0,!1,e=>{e.onGetTextCallback=()=>this.calculateReadOnlyText()||this.placeholder})}calculateReadOnlyText(){return this.displayValue}resetReadOnlyText(){this.resetPropertyValue(`readOnlyText`)}updateCustomChoices(e,t){}onOpenedCallBack(){this.onOpened.fire(this,{question:this,choices:this.choices})}onSelectedItemValuesUpdated(){super.onSelectedItemValuesUpdated(),this.resetReadOnlyText()}hasUnknownValue(e,t,n,r){return!this.choicesLazyLoadEnabled&&super.hasUnknownValue(e,t,n,r)}needConvertRenderedOtherToDataValue(){var e;let t=(e=this.otherValue)==null?void 0:e.trim();return t?super.hasUnknownValue(t,!0,!1):!1}getItemIfChoicesNotContainThisValue(e,t){return this.choicesLazyLoadEnabled?this.createItemValue(e,t):super.getItemIfChoicesNotContainThisValue(e,t)}onVisibleChoicesChanged(){super.onVisibleChoicesChanged(),this.dropdownListModelValue&&this.dropdownListModel.updateItems()}canAddCustomChoices(){return this.allowCustomChoices}getIsQuestionReady(){return super.getIsQuestionReady()&&!this._isChoicesLoading}ensureQuestionIsReady(){super.ensureQuestionIsReady(),this.dropdownListModel&&this.choicesLazyLoadEnabled&&this.dropdownListModel.loadQuestionChoices()}onLoadChoicesFromUrl(e){this.updateCustomChoices(this.value,e),super.onLoadChoicesFromUrl(e)}valueFromData(e){let t=super.valueFromData(e);return this.survey&&this.survey.isSettingData()&&this.updateCustomChoices(t,this.visibleChoices),t}setIsChoicesLoading(e){this._isChoicesLoading=e,this.updateIsReady()}supportEmptyValidation(){return!0}onBlurCore(e){this.dropdownListModel.onBlur(e),super.onBlurCore(e)}onFocusCore(e){this.dropdownListModel.onFocus(e),super.onFocusCore(e)}calcCssClasses(e){let t=super.calcCssClasses(e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(t.popup,t.list),t}onClearValue(){var e;super.onClearValue(),(e=this.dropdownListModelValue)==null||e.clear()}dispose(){super.dispose(),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)}}return t}var eL=class extends $I(GI){constructor(){super(...arguments),this.lastSelectedItemValue=null,this.minMaxChoices=[],this.onOpened=this.addEvent()}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),[`choicesMin`,`choicesMax`,`choicesStep`].indexOf(e)>-1&&this.onVisibleChoicesChanged(),[`value`,`renderAs`,`showOtherItem`,`otherText`,`placeholder`,`choices`,`visibleChoices`].indexOf(e)>-1&&(this.getSingleSelectedItem(),this.resetReadOnlyText()),e===`placeholder`&&this.updateInputPlaceholder(n)}locStrsChanged(){super.locStrsChanged(),this.resetReadOnlyText(),this.updateInputPlaceholder(this.placeholder)}updateInputPlaceholder(e){this.dropdownListModelValue&&this.dropdownListModel.setInputPlaceholder(e)}get showOptionsCaption(){return this.allowClear}set showOptionsCaption(e){this.allowClear=e}get optionsCaption(){return this.placeholder}set optionsCaption(e){this.placeholder=e}getType(){return`dropdown`}get isNewA11yStructure(){return!0}get a11yQuestionAriaRole(){return this.searchEnabled?null:`combobox`}get a11yInputAriaRole(){return this.searchEnabled?`combobox`:null}
84get selectedItem(){return this.getSingleSelectedItem()}isOtherValueUnused(){var e;return!((e=this.selectedItem)!=null&&e.showCommentArea)}onGetSingleSelectedItem(e){e&&(this.lastSelectedItemValue=e)}get isShowingChoiceComment(){var e;return(e=this.selectedItem)==null?void 0:e.showCommentArea}supportAutoAdvance(){return!this.isShowingChoiceComment}getChoices(){var e=super.getChoices();if(this.choicesMax<=this.choicesMin)return e;for(var t=[],n=0;n<e.length;n++)t.push(e[n]);if(this.minMaxChoices.length===0||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1){this.minMaxChoices=[];for(var n=this.choicesMin;n<=this.choicesMax;n+=this.choicesStep)this.minMaxChoices.push(this.createItemValue(n))}return t=t.concat(this.minMaxChoices),t}getControlClass(){return new X().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()}updateCssClasses(e,t){super.updateCssClasses(e,t),this.useDropdownList&&qN(e,t)}get selectedItemLocText(){let e=this.suggestedItem||this.selectedItem;return e==null?void 0:e.locText}get inputFieldComponentName(){return this.inputFieldComponent||this.itemComponent}get showSelectedItemLocText(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText&&this.dropdownListModel.canShowSelectedItem}get showInputFieldComponent(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()}calculateReadOnlyText(){if(!this.useDropdownList){if(this.isOtherSelected)return this.otherText;if(this.isNoneSelected)return this.noneText}let e=this.selectedItem;return e?e.text:``}get useDropdownList(){return this.renderAs!==`select`}get dropdownListModel(){return!this.isDisposed&&this.useDropdownList&&!this.dropdownListModelValue&&(this.dropdownListModelValue=new QI(this)),this.dropdownListModelValue}set dropdownListModel(e){this.dropdownListModelValue=e}onSelectedItemValuesChangedHandler(e){var t;(t=this.dropdownListModelValue)==null||t.setInputStringFromSelectedItem(e),super.onSelectedItemValuesChangedHandler(e)}updateCustomChoices(e,t){e!=null&&this.allowCustomChoices&&!this.choicesLazyLoadEnabled&&(this.customChoices.splice(0,this.customChoices.length),t.filter(t=>K.isTwoValueEquals(t.id,e,!1,!1))[0]||this.customChoices.splice(0,this.customChoices.length,new HP(e)))}getFirstInputElementId(){return this.getInputIdCore(this.searchEnabled||this.allowCustomChoices)}getInputId(){return this.getInputIdCore(!0)}getInputIdCore(e){let t=e&&this.useDropdownList?`_0`:``;return this.inputId+t}onClearValue(){super.onClearValue(),this.lastSelectedItemValue=null}afterRenderCore(e){super.afterRenderCore(e),this.dropdownListModelValue&&this.dropdownListModelValue.clear()}onClick(e){this.onOpenedCallBack&&this.onOpenedCallBack()}onKeyUp(e){(e.which||e.keyCode)===46&&(this.clearValueFromUI(),e.preventDefault(),e.stopPropagation())}};q([Y({localizable:{defaultStr:!0}})],eL.prototype,`placeholder`,void 0),q([Y()],eL.prototype,`choicesMin`,void 0),q([Y()],eL.prototype,`choicesMax`,void 0),q([Y({onSetting:e=>e<1?1:e})],eL.prototype,`choicesStep`,void 0),q([Y()],eL.prototype,`autocomplete`,void 0),q([Y()],eL.prototype,`allowClear`,void 0),q([Y({onSet:(e,t)=>{t.dropdownListModelValue&&t.dropdownListModel.setSearchEnabled(e)}})],eL.prototype,`searchEnabled`,void 0),q([Y()],eL.prototype,`searchMode`,void 0),q([Y({onSet:(e,t)=>{t.dropdownListModelValue&&t.dropdownListModel.setAllowCustomChoices(e)}})],eL.prototype,`allowCustomChoices`,void 0),q([Y({localizable:{defaultStr:`createCustomItem`}})],eL.prototype,`createCustomChoiceText`,void 0),q([Y()],eL.prototype,`textWrapEnabled`,void 0),q([Y({defaultValue:!1})],eL.prototype,`inputHasValue`,void 0),q([Y({onSet:(e,t)=>{t.dropdownListModelValue&&t.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],eL.prototype,`choicesLazyLoadEnabled`,void 0),q([Y()],eL.prototype,`choicesLazyLoadPageSize`,void 0),q([Y()],eL.prototype,`suggestedItem`,void 0),J.addClass(`dropdown`,[{name:`placeholder`,alternativeName:`optionsCaption`,serializationProperty:`locPlaceholder`},{name:`allowClear:boolean`,alternativeName:`showOptionsCaption`,default:!0},{name:`choicesMin:number`,default:0},{name:`choicesMax:number`,default:0},{name:`choicesStep:number`,default:1,minValue:1},{name:`autocomplete`,alternativeName:`autoComplete`,choices:G.questions.dataList},{name:`textWrapEnabled:boolean`,default:!0},{name:`renderAs`,default:`default`,visible:!1},{name:`searchEnabled:boolean`,default:!0,visible:!1},{name:`allowCustomChoices:boolean`,visibleIf:e=>!e.choicesFromQuestion,dependsOn:`choicesFromQuestion`},{name:`createCustomChoiceText`,serializationProperty:`locCreateCustomChoiceText`,visibleIf:e=>e.allowCustomChoices},{name:`searchMode`,default:`contains`,choices:[`contains`,`startsWith`]},{name:`choicesLazyLoadEnabled:boolean`,visible:!1},{name:`choicesLazyLoadPageSize:number`,default:25,visible:!1},{name:`inputFieldComponent`,visible:!1},{name:`itemComponent`,visible:!1,default:``}],function(){return new eL(``)},`selectbase`),xF.Instance.registerQuestion(`dropdown`,e=>{var t=new eL(e);return t.choices=xF.DefaultChoices,t});var tL=class{constructor(e){this.row=e}getObj(){return this.row}getValue(e){if(e.path.length===0)return{isFound:!0,value:this.row.value,context:this}}getTextValue(e,t,n){return n?this.row.getDisplayValue(t):t}},nL=class extends HP{getBaseType(){return`matrixcolumn`}};q([Y({defaultValue:!1})],nL.prototype,`isExclusive`,void 0);var rL=class extends qM{constructor(e,t,n,r){super(),this.item=e,this.fullName=t,this.data=n,this.setValueDirectly(r),this.data.hasErrorInRow(this)&&(this.hasError=!0)}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`value`&&this.data&&this.data.onMatrixRowChanged(this)}cellClick(e){this.data.cellClick(this,e)}isChecked(e){return this.data.isCellChecked(this,e)}get name(){return this.item.value}get text(){return this.item.text}get locText(){return this.item.locText}getOwner(){return this.data}get isVisible(){return this.item.isVisible}get value(){return this.getPropertyValue(`value`)}set value(e){this.isReadOnly||this.setValueDirectly(this.data.getCorrectedRowValue(e))}setValueDirectly(e){this.setPropertyValue(`value`,e)}getDisplayValue(e){return this.data.getDisplayRowValue(e)}get isReadOnly(){return!this.item.enabled||this.data.isInputReadOnly}get isReadOnlyAttr(){return this.data.isReadOnlyAttr}get isDisabledAttr(){return!this.item.enabled||this.data.isDisabledAttr}
84get rowTextClasses(){return new X().append(this.data.cssClasses.rowTextCell).toString()}get rowClasses(){let e=this.data.cssClasses;return new X().append(e.row).append(e.rowError,this.hasError).append(e.rowReadOnly,this.isReadOnly).append(e.rowDisabled,this.data.isDisabledStyle).toString()}getValueGetterContext(){return new tL(this)}};q([Y({defaultValue:!1})],rL.prototype,`hasError`,void 0);var iL=class extends qM{constructor(e){super(),this.cellsOwner=e,this.values={},this.locs={}}getType(){return`cells`}get isEmpty(){return Object.keys(this.values).length==0}valuesChanged(){!this.locNotification&&this.onValuesChanged&&this.onValuesChanged()}getDefaultCellLocText(e){return this.getCellLocCore(this.defaultRowValue,e)}getCellDisplayLocText(e,t){return this.getCellLocCore(e,t)}getCellLocCore(e,t){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),K.isValueEmpty(e)||K.isValueEmpty(t))return null;this.locs[e]||(this.locs[e]={});let n=this.locs[e][t];return n||(n=this.createString(e,t,n=>n.setJson(this.getCellLocData(e,t)))),n}get defaultRowValue(){return G.matrix.defaultRowName}getCellLocData(e,t){return this.getCellLocDataFromValue(e,t)||this.getCellLocDataFromValue(this.defaultRowValue,t)}getCellLocDataFromValue(e,t){return!this.values[e]||!this.values[e][t]?null:this.values[e][t]}getCellText(e,t){var n=this.getCellLocCore(e,t);return n?n.calculatedText:null}setCellText(e,t,n){let r=this.getCellLocCore(e,t);r&&(r.text=n)}updateValues(e,t,n){n?(this.values[e]||(this.values[e]={}),this.values[e][t]=n,this.valuesChanged()):this.values[e]&&this.values[e][t]&&(delete this.values[e][t],Object.keys(this.values[e]).length==0&&delete this.values[e],this.valuesChanged())}getDefaultCellText(e){var t=this.getCellLocCore(this.defaultRowValue,e);return t?t.calculatedText:null}setDefaultCellText(e,t){this.setCellText(this.defaultRowValue,e,t)}getCellDisplayText(e,t){var n=this.getCellDisplayLocText(e,t);return n?n.calculatedText:null}get rows(){return this.cellsOwner?this.cellsOwner.getRows():[]}get columns(){return this.cellsOwner?this.cellsOwner.getColumns():[]}getCellRowColumnValue(e,t){if(e==null)return null;if(typeof e==`number`){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e}getJson(e){if(this.isEmpty||(e==null?void 0:e.storeLocaleStrings)===!1)return null;let t=this.values[this.defaultRowValue],n={};for(let r in this.values){let i={},a=this.values[r];for(let n in a)if(r===this.defaultRowValue||!t||t[n]!==a[n]){let t=this.getCellLocCore(r,n);i[n]=t?t.getJson(e):a[n]}n[r]=i}return n}setJson(e,t){if(this.values={},e){for(var n in e)if(n!=`pos`){var r=e[n];for(var i in this.values[n]={},r)i!=`pos`&&(this.values[n][i]=r[i])}}this.locNotification=!0,this.runFuncOnLocs((e,t,n)=>n.setJson(this.getCellLocData(e,t))),this.locNotification=!1,this.valuesChanged()}mergeWith(e,t){this.locNotification=!0;let n={locales:t,storeLocaleStrings:!0};for(let r in e.values){let i=e.values[r];for(let a in i){let i=e.getCellLocCore(r,a);if(i){let e=this.getCellLocCore(r,a);e?e.mergeWith(i,t):e=this.createString(r,a,e=>e.setJson(i.getJson(n)))}}}this.locNotification=!1,this.onValuesChanged()}locStrsChanged(){this.runFuncOnLocs((e,t,n)=>n.strChanged())}runFuncOnLocs(e){for(let t in this.locs){let n=this.locs[t];for(let r in n)e(t,r,n[r])}}createString(e,t,n){let r=new yj(this.cellsOwner,!0);return n(r),r.onGetTextCallback=e=>{if(!e){let e=HP.getItemByValue(this.columns,t);if(e)return e.locText.getJson()||e.value}return e},r.onStrChanged=(n,r)=>{this.updateValues(e,t,r)},this.locs[e][t]=r,r}},aL=class extends Ij{constructor(e){super(),this.question=e}getObj(){return this.question}getValue(e){if(e.path.length>0){let t=super.getValue(e);if(t&&t.isFound)return t}return new Lj(this.question.value).getValue(e)}getRootObj(){return this.question.data}updateValueByItem(e,t){var n;let r=this.question.getMatrixRows();e=e.toLocaleLowerCase();for(let i=0;i<r.length;i++){let a=r[i];if((((n=a.name)==null?void 0:n.toString())||``).toLocaleLowerCase()===e){t.isFound=!0,t.obj=a,t.context=a.getValueGetterContext();return}}}},oL=class e extends uF{constructor(e){super(e),this.isRowChanging=!1,this.emptyLocalizableString=new yj(this),this.cellsValue=new iL(this),this.cellsValue.onValuesChanged=()=>{this.updateHasCellText(),this.propertyValueChanged(`cells`,this.cells,this.cells)}}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`columns`&&this.onColumnsChanged(),e===`rows`&&this.executeOnSyncPropertiesChanged(()=>{this.rows=this.sortVisibleRows(this.rows),this.runCondition(this.getDataFilteredProperties()),this.onRowsChanged()}),e===`hideIfRowsEmpty`&&this.updateVisibilityBasedOnRows(),e===`cellType`&&(this.value=this.convertToCorrectValue(this.value)),e===`rowOrder`&&this.onRowsChanged()}getType(){return`matrix`}getAllChildren(){return[...super.getAllChildren(),...this.columns,...this.rows]}get isMultiSelect(){return this.cellType===`checkbox`}get hasSingleInput(){return!1}get isAllRowRequired(){return this.eachRowRequired}set isAllRowRequired(e){this.eachRowRequired=e}get hasRows(){return this.rows.length>0}get rowsOrder(){return this.rowOrder}set rowsOrder(e){this.rowOrder=e}getRows(){return this.rows}getColumns(){return this.visibleColumns}addColumn(e,t){var n=new nL(e,t);return this.columns.push(n),n}get checkType(){return this.isMultiSelect?`checkbox`:`radio`}formatCss(e){return(e||``).replace(`{type}`,this.checkType)}getItemClass(e,t){let n=e.isChecked(t),r=this.isReadOnly,i=!n&&!r,a=this.hasCellText,o=this.cssClasse
84s;return new X().append(o.cell,a).append(a?o.cellText:this.formatCss(o.label)).append(o.itemOnError,!a&&(this.eachRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(a?o.cellTextSelected:this.formatCss(o.itemChecked),n).append(a?o.cellTextDisabled:this.formatCss(o.itemDisabled),this.isDisabledStyle).append(a?o.cellTextReadOnly:this.formatCss(o.itemReadOnly),this.isReadOnlyStyle).append(a?o.cellTextPreview:this.formatCss(o.itemPreview),this.isPreviewStyle).append(this.formatCss(o.itemHover),i&&!a).toString()}get itemSvgIcon(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId}getItemSvgIcon(e,t){return this.isMultiSelect&&e.isChecked(t)?this.cssClasses.itemPreviewSvgIconId:this.itemSvgIcon}get cssItemValue(){return this.formatCss(this.cssClasses.itemValue)}get cssMaterialDecorator(){return this.formatCss(this.cssClasses.materialDecorator)}get cssItemDecorator(){return this.formatCss(this.cssClasses.itemDecorator)}locStrsChanged(){super.locStrsChanged(),this.cells.locStrsChanged()}getQuizQuestionCount(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e}convertToCorrectValue(e){if(typeof e!=`object`||!e)return e;let t=Object.keys(e);for(let n=0;n<t.length;n++){let r=t[n],i=e[r];Array.isArray(i)&&!this.isMultiSelect&&(i.length>0?e[r]=i[0]:delete e[r]),!Array.isArray(i)&&this.isMultiSelect&&(e[r]=[i])}return e}getCorrectAnswerCount(){for(var e=0,t=this.value,n=0;n<this.rows.length;n++){var r=this.rows[n].value;!this.isValueEmpty(t[r])&&this.isTwoValueEquals(this.correctAnswer[r],t[r])&&e++}return e}runConditionCore(e){HP.runEnabledConditionsForItems(this.rows,void 0,e),super.runConditionCore(e)}createRowsVisibleIfRunner(){let e=this.getExpressionFromSurvey(`rowsVisibleIf`);return e?new Jj(e):null}onRowsChanged(){this.clearGeneratedRows(),super.onRowsChanged()}getMatrixRows(){if(this.generatedVisibleRows)return this.generatedVisibleRows;let e=[],t=this.value;t||(t={});let n=this.rows;for(let r=0;r<n.length;r++){let i=n[r];if(this.isValueEmpty(i.value))continue;let a=this.id+`_`+i.value.toString().replace(/\s/g,`_`);e.push(this.createMatrixRow(i,a,t[i.value]))}return this.generatedVisibleRows=e,e}getVisibleRows(){let e=[];return this.getMatrixRows().forEach(t=>{t.isVisible&&e.push(t)}),e}getMatrixSingleInputQuestions(e,t){if(this.nestedQuestionsValue)return this.nestedQuestionsValue;let n=[],r=this.isMultiSelect?`checkbox`:`radiogroup`;return this.visibleRows.forEach(e=>{let t=J.createClass(r);t.name=e.name,t.locTitle.sharedData=e.locText,t.choices=this.visibleColumns,t.value=e.value,t.isRequired=this.eachRowRequired,t.setSurveyImpl(this),t.setParentQuestion(this),n.push(t)}),this.nestedQuestionsValue=n,n}disposeNestedQuestions(){this.nestedQuestionsValue&&(this.nestedQuestionsValue.forEach(e=>e.dispose()),this.nestedQuestionsValue=null)}getRowByName(e){let t=this.visibleRows;for(let n=0;n<t.length;n++)if(t[n].name===e)return t[n];return null}createSingleInputBehavior(){return new sL(this)}resetSingleInput(){this.disposeNestedQuestions(),super.resetSingleInput()}dispose(){this.disposeNestedQuestions(),super.dispose()}getSurveyData(){return this}getTextProcessor(){var e;return(e=this.surveyImpl)==null?void 0:e.getTextProcessor()}getValue(e){let t=this.getRowByName(e);return t?t.value:void 0}setValue(e,t){this.getRowByName(e).value=t}getComment(e){var t;return(t=this.data)==null?void 0:t.getComment(e)}setComment(e,t,n){var r;(r=this.data)==null||r.setComment(e,t,n)}getFilteredProperties(){var e;return(e=this.data)==null?void 0:e.getFilteredProperties()}findQuestionByName(e){var t;return(t=this.data)==null?void 0:t.findQuestionByName(e)}sortVisibleRows(e){return this.survey&&this.survey.isDesignMode?e:this.rowOrder.toLowerCase()===`random`?K.randomizeArray(e,this.randomSeed):e}randomSeedChanged(){this.rowOrder.toLowerCase()===`random`&&(this.rows=this.sortVisibleRows(this.rows),this.onRowsChanged())}endLoadingFromJson(){super.endLoadingFromJson(),this.rows=this.sortVisibleRows(this.rows),this.onRowsChanged(),this.onColumnsChanged()}isNewValueCorrect(e){return K.isValueObject(e,!0)}get visibleRows(){return this.getVisibleRows()}get cells(){return this.cellsValue}set cells(e){this.cells.setJson(e&&e.getJson?e.getJson():null)}isPropertyStoredInHash(e){return e!==`cells`&&super.isPropertyStoredInHash(e)}mergeLocalizationWithInnerObjects(t,n){t instanceof e&&this.cells.mergeWith(t.cells,n)}get hasCellText(){return this.getPropertyValue(`hasCellText`,!1)}updateHasCellText(){this.setPropertyValue(`hasCellText`,!this.cells.isEmpty)}setCellText(e,t,n){this.cells.setCellText(e,t,n)}getCellText(e,t){return this.cells.getCellText(e,t)}setDefaultCellText(e,t){this.cells.setDefaultCellText(e,t)}getDefaultCellText(e){return this.cells.getDefaultCellText(e)}getCellDisplayText(e,t){return this.cells.getCellDisplayText(e,t)}getCellDisplayLocText(e,t){return this.cells.getCellDisplayLocText(e,t)||this.emptyLocalizableString}supportAutoAdvance(){return this.isMouseDown===!0&&this.hasValuesInAllRows()}
84onCheckForErrors(e,t,n){if(super.onCheckForErrors(e,t,n),!t||this.hasCssError()){let t={noValue:!1,isNotUnique:!1};this.checkErrorsAllRows(n,t),t.noValue&&e.push(new oN(null,this)),t.isNotUnique&&e.push(new sN(null,this))}}hasValuesInAllRows(){let e={noValue:!1,isNotUnique:!1};return this.checkErrorsAllRows(!1,e,!0),!e.noValue}checkErrorsAllRows(e,t,n){let r=this.eachRowRequired||n,i=this.eachRowUnique;if(t.noValue=!1,t.isNotUnique=!1,e&&(this.errorsInRow=void 0),!r&&!i)return;let a=this.visibleRows;if(!a)return;let o={};for(var s=0;s<a.length;s++){let n=a[s].value,c=this.isValueEmpty(n),l=i&&!c&&o[n]===!0;c=c&&r,e&&(c||l)&&this.addErrorIntoRow(a[s]),c||(o[n]=!0),t.noValue=t.noValue||c,t.isNotUnique=t.isNotUnique||l}e&&a.forEach(e=>{e.hasError=this.hasErrorInRow(e)})}addErrorIntoRow(e){this.errorsInRow||(this.errorsInRow={}),this.errorsInRow[e.name]=!0,e.hasError=!0}refreshRowsErrors(){this.errorsInRow&&this.checkErrorsAllRows(!0,{noValue:!1,isNotUnique:!1})}getIsAnswered(){return super.getIsAnswered()&&this.hasValuesInAllRows()}createMatrixRow(e,t,n){var r=new rL(e,t,this,n);return this.onMatrixRowCreated(r),r}onMatrixRowCreated(e){}setQuestionValue(e,t=!0){if(super.setQuestionValue(e,this.isRowChanging||t),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0)){this.isRowChanging=!0;var n=this.value;if(n||(n={}),this.rows.length==0)this.generatedVisibleRows[0].setValueDirectly(n);else for(var r=0;r<this.generatedVisibleRows.length;r++){var i=this.generatedVisibleRows[r],a=n[i.name];this.isValueEmpty(a)&&(a=null),this.generatedVisibleRows[r].setValueDirectly(a)}this.refreshRowsErrors(),this.updateIsAnswered(),this.isRowChanging=!1}}getValueGetterContext(){return new aL(this)}getDisplayValueCore(e,t){var n={};for(var r in t){var i=e?HP.getTextOrHtmlByValue(this.rows,r):r;i||(i=r);let o=t[r];var a=Array.isArray(o)?o.map(e=>HP.getTextOrHtmlByValue(this.columns,e)||e):HP.getTextOrHtmlByValue(this.columns,o);a||(a=o),n[i]=a}return n}getPlainData(e={includeEmpty:!0}){var t=super.getPlainData(e);if(t){var n=this.createValueCopy();t.isNode=!0,t.data=(e.includeEmpty?this.visibleRows:this.visibleRows.filter(e=>e.name in(n||{}))).map(t=>{let r=n?n[t.name]:void 0,i=Array.isArray(r)?r.map(e=>HP.getTextOrHtmlByValue(this.visibleColumns,e)):HP.getTextOrHtmlByValue(this.visibleColumns,r);var a={name:t.name,title:t.text,value:r,displayValue:i,getString:e=>this.getValueAsString(e),isNode:!1},o=HP.getItemByValue(this.visibleColumns,r);return o&&(e.calculations||[]).forEach(e=>{a[e.propertyName]=o[e.propertyName]}),a})}return t}addConditionObjectsByContext(e,t){for(var n=0;n<this.rows.length;n++){var r=this.rows[n];r.value&&e.push({name:this.getValueName()+`.`+r.value,text:this.processedTitle+`.`+r.calculatedText,question:this})}}getConditionJson(e=null,t=null){if(!t)return super.getConditionJson(e);var n=new eL(t);n.choices=this.columns;var r=new Pj().toJsonObject(n);return r.type=n.getType(),r}clearIncorrectValues(){this.clearInvisibleValuesInRowsAndColumns(!0,!0,!0),super.clearIncorrectValues()}clearValueIfInvisibleCore(e){super.clearValueIfInvisibleCore(e),this.clearInvisibleValuesInRowsAndColumns(!0,!0,!1)}clearInvisibleColumnValues(){this.clearInvisibleValuesInRowsAndColumns(!1,!0,!1)}clearInvisibleValuesInRows(){this.clearInvisibleValuesInRowsAndColumns(!0,!1,!1)}clearInvisibleValuesInRowsAndColumns(e,t,n){if(this.isEmpty())return;let r=this.getUnbindValue(this.value),i={},a=this.rows;for(let n=0;n<a.length;n++){let o=a[n].value;r[o]&&(e&&!a[n].isVisible?delete r[o]:(t&&this.clearIncorrectValuesInRow(o,r),r[o]!=null&&(i[o]=r[o])))}n&&(r=i),!this.isTwoValueEquals(r,this.value)&&(this.value=r)}clearIncorrectValuesInRow(e,t){let n=t[e];if(n===void 0){delete t[e];return}if(this.isMultiSelect&&Array.isArray(n)){for(let e=n.length-1;e>=0;e--)this.getVisibleColumnByValue(n[e])||n.splice(e,1);n.length===0&&delete t[e]}else this.getVisibleColumnByValue(n)||delete t[e]}getVisibleColumnByValue(e){let t=HP.getItemByValue(this.columns,e);return t&&t.isVisible?t:null}getFirstInputElementId(){var e=this.generatedVisibleRows;return e||(e=this.visibleRows),e.length>0&&this.visibleColumns.length>0?this.inputId+`_`+e[0].name+`_0`:super.getFirstInputElementId()}onMatrixRowChanged(e){if(!this.isRowChanging){if(this.isRowChanging=!0,!this.hasRows)this.setNewValue(e.value);else{let t=this.value||{};this.isValueEmpty(e.value)?delete t[e.name]:t[e.name]=e.value,this.setNewValue(t)}this.isRowChanging=!1}}getCorrectedRowValue(e){let t=this.getColumnByValue(e);return t?t.value:e}getDisplayRowValue(e){let t=this.getColumnByValue(e);return t?t.text:e==null?``:e.toString()}cellClick(e,t){this.isReadOnly||this.isDisabledAttr||(e.value=this.getValueOnCellClick(e,t))}getValueOnCellClick(e,t){if(this.isMultiSelect){if(t.isExclusive)return this.isCellChecked(e,t)?void 0:[t.value];let n=Array.isArray(e.value)?[].concat(e.value):[];if(this.isCellChecked(e,t)){let r=this.getRowValueIndex(e,t);r>-1&&n.splice(r,1),n.length===0&&(n=void 0)}
84else Array.isArray(n)||(n=[]),this.columns.forEach(e=>{if(e.isExclusive){let t=n.indexOf(e.value);t>-1&&n.splice(t,1)}}),n.push(t.value);return n}return t.value}isCellChecked(e,t){return this.isMultiSelect?this.getRowValueIndex(e,t)>-1:K.isTwoValueEquals(e.value,t.value)}getRowValueIndex(e,t){let n=e.value;if(!Array.isArray(n))return-1;for(let e=0;e<n.length;e++)if(this.isTwoValueEquals(n[e],t.value))return e;return-1}getColumnByValue(e){let t=this.columns;for(var n=0;n<t.length;n++)if(e===t[n].value)return t[n];for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(e,t[n].value))return t[n];return null}hasErrorInRow(e){return!!this.errorsInRow&&!!this.errorsInRow[e.name]}getSearchableItemValueKeys(e){e.push(`columns`),e.push(`rows`)}get SurveyModel(){return this.survey}getColumnHeaderWrapperComponentName(e){return this.SurveyModel.getElementWrapperComponentName({column:e},`column-header`)}getColumnHeaderWrapperComponentData(e){return this.SurveyModel.getElementWrapperComponentData({column:e},`column-header`)}getRowHeaderWrapperComponentName(e){return this.SurveyModel.getElementWrapperComponentName({row:e},`row-header`)}getRowHeaderWrapperComponentData(e){return this.SurveyModel.getElementWrapperComponentData({row:e},`row-header`)}};q([Y({onSetting:e=>e===`checkbox`?e:`radio`})],oL.prototype,`cellType`,void 0),q([Y()],oL.prototype,`cellComponent`,void 0),q([Y()],oL.prototype,`eachRowRequired`,void 0),q([Y()],oL.prototype,`eachRowUnique`,void 0),q([Y({isLowerCase:!0})],oL.prototype,`rowOrder`,void 0),q([Y()],oL.prototype,`hideIfRowsEmpty`,void 0),J.addClass(`matrixcolumn`,[{name:`isExclusive:boolean`,visibleIf:e=>{var t;return((t=e.locOwner)==null?void 0:t.cellType)===`checkbox`},locationInTable:`detail`}],e=>new nL(e),`itemvalue`),J.addClass(`matrix`,[`rowTitleWidth`,{name:`columns:matrixcolumn[]`,uniqueProperty:`value`,baseValue:function(){return hj(`matrix_column`)}},{name:`rows:itemvalue[]`,uniqueProperty:`value`,baseValue:function(){return hj(`matrix_row`)}},{name:`cells:cells`,serializationProperty:`cells`},{name:`rowOrder`,alternativeName:`rowsOrder`,default:`initial`,choices:[`initial`,`random`]},{name:`eachRowRequired:boolean`,alternativeName:`isAllRowRequired`},{name:`eachRowUnique:boolean`}
84,`hideIfRowsEmpty:boolean`,{name:`cellComponent`,visible:!1,default:`survey-matrix-cell`},{name:`cellType`,default:`radio`,choices:[`radio`,`checkbox`]}],function(){return new oL(``)},`matrixbase`),xF.Instance.registerQuestion(`matrix`,e=>{var t=new oL(e);return t.rows=xF.DefaultRows,t.columns=xF.DefaultColums,t});var sL=class extends PP{get matrix(){return this.question}getSingleInputQuestionsCore(e,t){return this.matrix.getMatrixSingleInputQuestions(e,t)}},cL=class extends qM{updateRemainingCharacterCounter(e,t){this.remainingCharacterCounter=K.getRemainingCharacterCounterText(e,t)}};q([Y()],cL.prototype,`remainingCharacterCounter`,void 0);var lL=class extends zP{constructor(){super(...arguments),this.characterCounter=new cL}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`maxLength`&&this.updateRemainingCharacterCounter(this.value)}isTextValue(){return!0}getMaxLength(){return K.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)}updateRemainingCharacterCounter(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())}get placeHolder(){return this.placeholder}set placeHolder(e){this.placeholder=e}get locPlaceHolder(){return this.locPlaceholder}getType(){return`textbase`}isEmpty(){return super.isEmpty()||this.value===``}getIsInputTextUpdate(){return this.textUpdateMode=="default"?super.getIsInputTextUpdate():this.textUpdateMode==`onTyping`}get renderedPlaceholder(){return this.getPropertyValue(`renderedPlaceholder`,void 0,()=>this.hasPlaceholder()?this.placeHolder:void 0)}onReadOnlyChanged(){super.onReadOnlyChanged(),this.resetRenderedPlaceholder()}localeChanged(){super.localeChanged(),this.resetRenderedPlaceholder()}supportEmptyValidation(){return!0}resetRenderedPlaceholder(){this.resetPropertyValue(`renderedPlaceholder`)}hasPlaceholder(){return!this.isReadOnly}setNewValue(e){super.setNewValue(e),this.updateRemainingCharacterCounter(e)}setQuestionValue(e,t=!0){super.setQuestionValue(e,t),this.updateRemainingCharacterCounter(e)}convertToCorrectValue(e){return Array.isArray(e)?e.join(this.getValueSeparator()):e}getValueSeparator(){return`, `}getControlCssClassBuilder(){return new X().append(this.cssClasses.root).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle)}getControlClass(){return this.getControlCssClassBuilder().toString()}get isNewA11yStructure(){return!0}};q([Y()],lL.prototype,`maxLength`,void 0),q([Y({localizable:!0,onSet:(e,t)=>t.resetRenderedPlaceholder()})],lL.prototype,`placeholder`,void 0),q([Y()],lL.prototype,`textUpdateMode`,void 0),J.addClass(`textbase`,[],function(){return new lL(``)},`question`);var uL=class{setInputValue(e){this.inputElement.maxLength>=0&&this.inputElement.maxLength<e.length&&(e=e.slice(0,this.inputElement.maxLength)),this.inputElement.value=e}updateInputValue(){this.inputElement.placeholder&&this.inputElement.value==this.maskedEmptyValue&&(this.inputElement.value=``)}constructor(e,t,n){this.inputMaskInstance=e,this.inputElement=t,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=(e,t)=>{if(t.name!==`saveMaskedValue`){let e=this.inputMaskInstance.getMaskedValue(this.prevUnmaskedValue);this.setInputValue(e)}},this.clickHandler=e=>{this.inputElement.value==this.maskedEmptyValue&&this.inputElement.setSelectionRange(0,0)},this.focusHandler=e=>{this.inputElement.placeholder&&this.inputElement.value==``&&this.setInputValue(this.maskedEmptyValue),this.clickHandler(e)},this.blurHandler=e=>{this.updateInputValue()},this.beforeInputHandler=e=>{if(this.inputElement.readOnly){e.preventDefault();return}let t=this.createArgs(e),n=this.inputMaskInstance.processInput(t);this.setInputValue(n.value),this.inputElement.setSelectionRange(n.caretPosition,n.caretPosition),n.cancelPreventDefault||e.preventDefault()},this.changeHandler=e=>{let t=this.inputMaskInstance.processInput({prevValue:``,insertedChars:e.target.value,selectionStart:0,selectionEnd:0});this.setInputValue(t.value)};let r=n;r??(r=``),this.maskedEmptyValue=this.inputMaskInstance.getMaskedValue(``),this.setInputValue(e.getMaskedValueBySaveMode(r)),this.updateInputValue(),this.prevUnmaskedValue=r,e.onPropertyChanged.add(this.inputMaskInstancePropertyChangedH
84andler),this.addInputEventListener()}updateInputElementValue(e){e??(e=``);let t=this.inputMaskInstance.getMaskedValueBySaveMode(e);this.inputElement.value!==t&&(this.setInputValue(t),this.updateInputValue()),this.prevUnmaskedValue=e}createArgs(e){let t={insertedChars:e.data,selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd,prevValue:e.target.value,inputDirection:`forward`};return e.inputType===`deleteContentBackward`&&(t.inputDirection=`backward`,t.selectionStart===t.selectionEnd&&(t.selectionStart=Math.max(t.selectionStart-1,0))),e.inputType===`deleteContentForward`&&t.selectionStart===t.selectionEnd&&(t.selectionEnd+=1),t}addInputEventListener(){this.inputElement&&(this.inputElement.addEventListener(`beforeinput`,this.beforeInputHandler),this.inputElement.addEventListener(`click`,this.clickHandler),this.inputElement.addEventListener(`focus`,this.focusHandler),this.inputElement.addEventListener(`blur`,this.blurHandler),this.inputElement.addEventListener(`change`,this.changeHandler))}removeInputEventListener(){this.inputElement&&(this.inputElement.removeEventListener(`beforeinput`,this.beforeInputHandler),this.inputElement.removeEventListener(`click`,this.clickHandler),this.inputElement.removeEventListener(`focus`,this.focusHandler),this.inputElement.removeEventListener(`blur`,this.blurHandler),this.inputElement.removeEventListener(`change`,this.changeHandler))}dispose(){this.removeInputEventListener(),this.inputElement=void 0,this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler)}},dL=/[0-9]/;function fL(){let e=(J.getChildrenClasses(`masksettings`)||[]).map(e=>{let t=e.name;return e.name.indexOf(`mask`)!==-1&&(t=t.slice(0,t.indexOf(`mask`))),t});return e.unshift(`none`),e}var pL=class extends lL{createMaskAdapter(){this.input&&!this.maskTypeIsEmpty&&(this.maskInputAdapter=new uL(this.maskInstance,this.input,this.value))}deleteMaskAdapter(){this.maskInputAdapter&&(this.maskInputAdapter.dispose(),this.maskInputAdapter=void 0)}updateMaskAdapter(){this.deleteMaskAdapter(),this.createMaskAdapter()}onSetMaskType(e){this.setNewMaskSettingsProperty(),this.updateMaskAdapter()}get maskTypeIsEmpty(){switch(this.inputType){case`tel`:case`text`:return this.maskType===`none`;default:return!0}}get maskSettings(){return this.getPropertyValue(`maskSettings`)}set maskSettings(e){if(!e)return;let t=this.maskSettings;t&&t.dispose(),this.setNewMaskSettingsProperty(),this.maskSettings.fromJSON(e.toJSON()),this.updateMaskAdapter()}setNewMaskSettingsProperty(){this.setPropertyValue(`maskSettings`,this.createMaskSettings())}createMaskSettings(){let e=!this.maskType||this.maskType===`none`?`masksettings`:this.maskType+`mask`;J.findClass(e)||(e=`masksettings`);let t=J.createClass(e);return t.onPropertyChanged.add((e,t)=>{this.onNestedPropertyChanged.fire(this,{name:`maskSettings`,newValue:t.newValue,nestedName:t.name}),this.updateInputValue()}),t.owner=this,t}constructor(e){super(e),this.doNotUpdateInputValue=!1,this._isWaitingForEnter=!1,this._isValueChanged=!1,this.onCompositionUpdate=e=>{this.isInputTextUpdate&&setTimeout(()=>{this.updateValueOnEvent(e)},1),this.updateRemainingCharacterCounter(e.target.value)},this.onKeyUp=e=>{this.updateDateValidationMessage(e),this.updateNumericValue(e),this.isInputTextUpdate?(!this._isWaitingForEnter||e.keyCode===13)&&(this.updateValueOnEvent(e),this._isWaitingForEnter=!1):e.keyCode===13&&this.updateValueOnEvent(e),this.updateRemainingCharacterCounter(e.target.value)},this.readOnlyBlocker=e=>{if(this.isReadOnlyAttr&&[`color`,`range`].indexOf(this.inputType)>-1)return e.preventDefault(),!0},this.onKeyDown=e=>{if(!this.readOnlyBlocker(e)){if(this.setIsValueChanged(),this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),this.inputType===`number`&&this.shouldPreventNumberInput(e)){e.preventDefault();return}this.isInputTextUpdate&&(this._isWaitingForEnter=e.keyCode===229),this.onTextKeyDownHandler(e)}},this.onChange=e=>{this.setIsValueChanged(),this.updateDateValidationMessage(e);let t=NN(this.input);t&&((e.target!==t.activeElement||this.isInputTextUpdate)&&this.updateV
84alueOnEvent(e),this.updateRemainingCharacterCounter(e.target.value))},this.setNewMaskSettingsProperty()}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),[`min`,`max`,`inputType`,`minValueExpression`,`maxValueExpression`].indexOf(e)>-1&&this.setRenderedMinMax(),(e===`inputType`||e===`inputSize`)&&(this.resetInputSize(),this.resetRenderedPlaceholder())}isTextValue(){return this.isDateInputType||[`text`,`number`,`password`].indexOf(this.inputType)>-1}getType(){return`text`}onSurveyLoad(){super.onSurveyLoad(),this.setRenderedMinMax()}get inputType(){return this.getPropertyValue(`inputType`)}set inputType(e){e=e.toLowerCase(),(e===`datetime_local`||e===`datetime`)&&(e=`datetime-local`),this.setPropertyValue(`inputType`,e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0),this.updateMaskAdapter()}getMaxLength(){return this.isTextInput?super.getMaxLength():null}getSupportedValidators(){let e={},t=[`text`,`email`,`tel`,`password`,`url`];e.text=t,e.regex=t,e.email=[`email`],e.numeric=[`number`,`range`];let n=super.getSupportedValidators();for(let t=n.length-1;t>=0;t--){let r=n[t];e[r]&&e[r].indexOf(this.inputType)<0&&n.splice(t,1)}return n}runConditionCore(e){super.runConditionCore(e),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(e)}getDisplayValueCore(e,t){return!this.maskTypeIsEmpty&&!K.isValueEmpty(t)?this.maskInstance.getMaskedValue(t):super.getDisplayValueCore(e,t)}isLayoutTypeSupported(e){return!0}get size(){return this.inputSize}set size(e){this.inputSize=e}get isTextInput(){return[`text`,`search`,`tel`,`url`,`email`,`password`].indexOf(this.inputType)>-1}get renderedInputSize(){return this.getPropertyValue(`renderedInputSize`,void 0,()=>{let e=this.calInputSize();return e>0?e:void 0})}get inputWidth(){return this.getPropertyValue(`inputWidth`,void 0,()=>this.calInputSize()>0?`auto`:``)}calInputSize(){if(!this.isTextInput)return 0;let e=this.inputSize>0?this.inputSize:0;return e<1&&this.parent&&this.parent.inputSize&&(e=this.parent.inputSize),e}resetInputSize(){this.resetPropertyValue(`renderedInputSize`),this.resetPropertyValue(`inputWidth`)}get min(){return this.getPropertyValue(`min`)}set min(e){if(this.isValueExpression(e)){this.minValueExpression=e.substring(1);return}this.setPropertyValue(`min`,e)}get max(){return this.getPropertyValue(`max`)}set max(e){if(this.isValueExpression(e)){this.maxValueExpression=e.substring(1);return}this.setPropertyValue(`max`,e)}get renderedMin(){return this.getPropertyValue(`renderedMin`)}get renderedMax(){return this.getPropertyValue(`renderedMax`)}get isMinMaxType(){return hL(this)}get maskInstance(){return this.maskSettings}get inputValue(){return!this._inputValue&&!this.maskTypeIsEmpty?this.maskInstance.getMaskedValue(``):this._inputValue}set inputValue(e){let t=e,n=e,r=!1;this.maskTypeIsEmpty||(t=this.maskInstance.getUnmaskedValue(e),t==null||t===``?(r=!0,t=void 0):(n=this.maskInstance.getMaskedValue(t),t&&this.maskSettings.saveMaskedValue&&(t=n))),this._inputValue=n,K.isTwoValueEquals(this.value,t,!1,!0,!1)||(this.doNotUpdateInputValue=r,this.value=t,this.doNotUpdateInputValue=!1)}getFilteredValue(){return this.getExpressionValue(this.value)}getExpressionValue(e){return!this.maskTypeIsEmpty&&this.maskSettings.saveMaskedValue?this.maskInstance.getUnmaskedValue(e):e}tryPreserveMaskedStringValue(e){if(typeof e!=`string`)return;if(this.maskInstance.getUnmaskedValue(e))return e;let t=this.maskInstance.getMaskedValue(e),n=this.maskInstance.getMaskedValue(``);if(t===n&&e!==n||!this.maskInstance.getUnmaskedValue(t))return e}convertToCorrectValue(e){if(e!=null&&e!==``&&!this.maskTypeIsEmpty){if(this.maskSettings.saveMaskedValue){let t=this.tryPreserveMaskedStringValue(e);return t===void 0?this.maskInstance.getMaskedValue(e):t}if(this.maskType===`pattern`&&e===this.maskInstance.getMaskedValue(e))return this.maskInstance.getUnmaskedValue(e)}return super.convertToCorrectValue(e)}onChangeQuestionValue(e){super.onChangeQuestionValue(e),this.updateInputValue()}updateInputValue(){if(this.doNotUpdateInputValue)return;let e=this.value;this._inputValue=this.maskTypeIsEmpty?e:this.maskSettings.saveMaskedValue?e??this.maskInstance.getMaskedValue(``):this.maskInstance.getMaskedValue(e),this.maskInputAdapter&&this.maskInputAdapter.updateInputElementValue(e)}hasToConvertToUTC(e){return G.storeUtcDates&&this.isDateTimeLocaleType()&&!!e}createDate(e){return uj(`question-text`,e)}valueForSurveyCore(e){return this.hasToConvertToUTC(e)&&(e=this.createDate(e).toISOString()),super.valueForSurveyCore(e)}valueFromDataCore(e){if(this.hasToConvertToUTC(e)){let t=this.createDate(e),n=this.createDate(t.getTime()-t.getTimezoneOffset()*60*1e3).toISOString();e=n.substring(0,n.length-2)}return super.valueFromDataCore(e)}isMaskInputIncomplete(){if(this.maskTypeIsEmpty||!this.isEmpty())return!1;let e=this._inputValue;return e?e!==this.maskInstance.getMaskedValue(``):!1}
84onCheckForErrors(e,t,n){var r,i;if(super.onCheckForErrors(e,t,n),this.isMaskInputIncomplete()){let t=e.findIndex(e=>e.getErrorType()===`required`);t>=0&&e.splice(t,1),e.push(new uN(null,this))}let a=this.getIsInputTextUpdate();if(!(t&&a)){if((i=(r=this===null||this===void 0?void 0:this.input)==null?void 0:r.validity)!=null&&i.badInput&&e.push(new dN(this.invalidInputErrorText,this)),!this.isOnValueChanged){if(this.isValueLessMin){let t=new dN(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);t.onUpdateErrorTextCallback=e=>{e.text=this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin))},e.push(t)}if(this.isValueGreaterMax){let t=new dN(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);t.onUpdateErrorTextCallback=e=>{e.text=this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax))},e.push(t)}this.isStepNumberIncorrect&&e.push(new dN(this.getStepErrorText(),this)),e.length===0&&this.dateValidationMessage&&e.push(new dN(this.dateValidationMessage,this))}if(this.inputType===`email`&&!this.validators.some(e=>e.getType()===`emailvalidator`)){let t=this.getValidatorTitle(),n=new CN;n.owner=this;let r=n.validate(this.value,t);r&&r.error&&e.push(r.error)}}}canSetValueToSurvey(){if(!this.isMinMaxType)return!0;let e=!this.isValueLessMin&&!this.isValueGreaterMax;return(!e||this.errors.length>0)&&this.survey&&(this.validationCallbacks.isValidateOnValueChanging||this.validationCallbacks.isValidateOnValueChanged)&&this.validate(),e}convertFuncValuetoQuestionValue(e){let t=this.maskTypeIsEmpty?this.inputType:this.maskSettings.getTypeForExpressions(),n=K.convertValToQuestionVal(e,t);if(!this.maskTypeIsEmpty&&this.maskSettings.saveMaskedValue&&typeof n==`string`){let e=this.tryPreserveMaskedStringValue(n);return e===void 0?this.maskInstance.getMaskedValue(n):e}return n}getMinMaxErrorText(e,t){if(K.isValueEmpty(t))return e;let n=t.toString();return this.inputType===`date`&&t.toDateString&&(n=t.toDateString()),e.replace(`{0}`,n)}getStepErrorText(){return this.stepErrorText.replace(`{0}`,this.renderedStep)}get isValueLessMin(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)}get isValueGreaterMax(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)}get isStepNumberIncorrect(){if(this.inputType!==`number`||this.isEmpty()||!K.isNumber(this.renderedStep)||!K.isNumber(this.value))return!1;let e=K.getNumber(this.value),t=K.getNumber(this.renderedStep),n=1;for(;(Math.round(t*n)/n!==t||Math.round(e*n)/n!==e)&&n<1e6;)n*=10;return e=Math.round(e*n),t=Math.round(t*n),t>0&&e%t!==0}get isDateInputType(){return this.inputType===`date`||this.isDateTimeLocaleType()}isDateTimeLocaleType(){return this.inputType===`datetime-local`}getCalculatedMinMax(e){return this.isValueEmpty(e)?e:this.isDateInputType?this.createDate(e):e}setRenderedMinMax(e=null){let t=(e,t)=>{this.setPropertyValue(e,this.convertFuncValuetoQuestionValue(t))},n=e=>{!e&&this.isDateInputType&&G.minDate&&(e=G.minDate),t(`renderedMin`,e)},r=e=>{!e&&this.isDateInputType&&(e=G.maxDate),t(`renderedMax`,e)};this.runExpressionByProperty(`minValueExpression`,e,e=>{n(e)})||n(this.min),this.runExpressionByProperty(`maxValueExpression`,e,e=>{r(e)})||r(this.max)}get renderedStep(){return this.isValueEmpty(this.step)?this.inputType===`number`?`any`:void 0:this.step}getIsInputTextUpdate(){return this.maskTypeIsEmpty?super.getIsInputTextUpdate():!1}supportAutoAdvance(){return!this.getIsInputTextUpdate()&&!this.isDateInputType}supportGoNextPageError(){return!this.isDateInputType}get dataList(){return this.locDataList.value}set dataList(e){this.locDataList.value=e}get locDataList(){return this.locDataListValue||(this.locDataListValue=new bj(this),this.locDataListValue.onValueChanged=(e,t)=>{this.propertyValueChanged(`dataList`,e,t)}),this.locDataListValue}get dataListId(){var e;return(e=this.locDataListValue)!=null&&e.hasValue()?this.id+`_datalist`:void 0}isPropertyStoredInHash(e){return e===`dataList`?!this.locDataListValue:super.isPropertyStoredInHash(e)}setNewValue(e){this.setIsValueChanged(),e=this.correctValueType(e),e&&(this.dateValidationMessage=void 0),super.setNewValue(e)}updateValueFromSurvey(e,t=!1){super.updateValueFromSurvey(e,t),this.isEmpty()||this.setIsValueChanged();let n=this.value;!this.maskTypeIsEmpty&&!this.isValueEmpty(e)&&!this.isTwoValueEquals(n,e)&&this.setValueCore(n)}correctValueType(e){if(!e)return e;if(this.inputType===`number`||this.inputType===`range`)return K.isNumber(e)?K.getNumber(e):``;if(this.inputType===`month`){let t=this.createDate(e),n=t.toISOString().indexOf(e)==0&&e.indexOf(`T`)==-1,r=n?t.getUTCMonth():t.getMonth(),i=(n?t.getUTCFullYear():t.getFullYear()).toString();for(;i.length<4;)i=`0`+i;let a=r+1;return i+`-`+(a<10?`0`:``)+a}return e}hasPlaceholder(){return!this.isReadOnly&&this.inputType!==`range`}getControlCssClassBuilder(){let e=this.getMaxLength();
84return super.getControlCssClassBuilder().append(this.cssClasses.constrolWithCharacterCounter,!!e).append(this.cssClasses.characterCounterBig,e>99).append(this.cssClasses.isValueChanged,this._isValueChanged)}isReadOnlyRenderDiv(){return this.isReadOnly&&G.readOnly.textRenderMode===`div`}get inputStyle(){var e={};return e.width=this.inputWidth,this.updateTextAlign(e),e}updateTextAlign(e){this.inputTextAlignment===`auto`?!this.maskTypeIsEmpty&&this.maskSettings.getTextAlignment()!==`auto`&&(e.textAlign=this.maskSettings.getTextAlignment()):e.textAlign=this.inputTextAlignment}setIsValueChanged(){this._isValueChanged||(this._isValueChanged=!0,this.input&&this.cssClasses.isValueChanged&&this.input.classList.add(this.cssClasses.isValueChanged))}updateValueOnEvent(e){if(this.inputType===`color`&&!this._isValueChanged)return;let t=e.target.value;this.isTwoValueEquals(this.value,t)||(this.inputValue=t)}updateNumericValue(e){var t;if(this.inputType!==`number`||e.key!==`-`)return;let n=((t=e.target)==null?void 0:t.value)||this.prevNumberValue;typeof n==`string`&&n.length>0&&(e.target.value=n[0]+n.substring(1).replace(/-/g,``)),this.prevNumberValue=void 0}updateDateValidationMessage(e){this.dateValidationMessage=this.isDateInputType&&e.target?e.target.validationMessage:void 0}shouldPreventNumberInput(e){var t;let n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return!1;if([`e`,`E`,`+`].indexOf(n)>-1)return!0;if(n===`-`){if(!K.isValueEmpty(this.renderedMin)){let e=K.getNumber(this.renderedMin);if(!isNaN(e)&&e>=0)return!0}this.prevNumberValue=((t=e.target)==null?void 0:t.value)||``}return!1}onBlurCore(e){this.updateDateValidationMessage(e),this.updateValueOnEvent(e),this.updateRemainingCharacterCounter(e.target.value),super.onBlurCore(e)}onFocusCore(e){this.updateRemainingCharacterCounter(e.target.value),super.onFocusCore(e)}afterRenderQuestionElement(e){e&&(this.input=e instanceof HTMLInputElement?e:e.querySelector(`input`),this.createMaskAdapter()),super.afterRenderQuestionElement(e)}beforeDestroyQuestionElement(e){this.deleteMaskAdapter(),this.input=void 0}};q([Y({onSet:(e,t)=>{t.onSetMaskType(e)}})],pL.prototype,`maskType`,void 0),q([Y()],pL.prototype,`inputTextAlignment`,void 0),q([Y()],pL.prototype,`inputSize`,void 0),q([Y()],pL.prototype,`autocomplete`,void 0),q([Y()],pL.prototype,`minValueExpression`,void 0),q([Y()],pL.prototype,`maxValueExpression`,void 0),q([Y({localizable:{defaultStr:`minError`,markdown:!0}})],pL.prototype,`minErrorText`,void 0),q([Y({localizable:{defaultStr:`maxError`,markdown:!0}})],pL.prototype,`maxErrorText`,void 0),q([Y({localizable:{defaultStr:`stepError`,markdown:!0}})],pL.prototype,`stepErrorText`,void 0),q([Y({localizable:{defaultStr:`invalidInputError`,markdown:!0}})],pL.prototype,`invalidInputErrorText`,void 0),q([Y()],pL.prototype,`_inputValue`,void 0),q([Y()],pL.prototype,`step`,void 0);var mL=[`number`,`range`,`date`,`datetime-local`,`month`,`time`,`week`];function hL(e){let t=e?e.inputType:``;return t?mL.indexOf(t)>-1:!1}function gL(e,t){let n=e.split(t);return n.length!==2||!K.isNumber(n[0])||!K.isNumber(n[1])?-1:parseFloat(n[0])*60+parseFloat(n[1])}
84function _L(e,t,n){let r=gL(e,n),i=gL(t,n);return r<0||i<0?!1:r>i}function vL(e,t,n,r){let i=r?n:t;if(!hL(e)||K.isValueEmpty(t)||K.isValueEmpty(n))return i;if(e.inputType.indexOf(`date`)===0||e.inputType===`month`){let a=e.inputType===`month`,o=`question-text-minmax`,s=uj(o,a?t+`-01`:t),c=uj(o,a?n+`-01`:n);if(!s||!c)return i;if(s>c)return r?t:n}if(e.inputType===`week`||e.inputType===`time`)return _L(t,n,e.inputType===`week`?`-W`:`:`)?r?t:n:i;if(e.inputType===`number`){if(!K.isNumber(t)||!K.isNumber(n))return i;if(K.getNumber(t)>K.getNumber(n))return r?t:n}return typeof t==`string`||typeof n==`string`?i:t>n?r?t:n:i}function yL(e,t){e&&e.inputType&&(t.inputType=e.inputType===`range`?`number`:e.inputType,t.textUpdateMode=`onBlur`)}function bL(e){return e.inputType===`number`||e.inputType===`range`}J.addClass(`text`,[{name:`inputType`,default:`text`,choices:G.questions.inputTypes},{name:`inputSize:number`,alternativeName:`size`,minValue:0,dependsOn:`inputType`,visibleIf:function(e){return e?e.isTextInput:!1}},{name:`textUpdateMode`,default:`default`,choices:[`default`,`onBlur`,`onTyping`],dependsOn:`inputType`,visibleIf:function(e){return e?e.isTextInput:!1}},{name:`autocomplete`,alternativeName:`autoComplete`,choices:G.questions.dataList},{name:`min`,dependsOn:`inputType`,visibleIf:function(e){return hL(e)},onPropertyEditorUpdate:function(e,t){yL(e,t)},onSettingValue:(e,t)=>vL(e,t,e.max,!1)},{name:`max`,dependsOn:`inputType`,nextToProperty:`*min`,visibleIf:function(e){return hL(e)},onSettingValue:(e,t)=>vL(e,e.min,t,!0),onPropertyEditorUpdate:function(e,t){yL(e,t)}},{name:`minValueExpression:expression`,dependsOn:`inputType`,visibleIf:function(e){return hL(e)}},{name:`maxValueExpression:expression`,dependsOn:`inputType`,visibleIf:function(e){return hL(e)}},{name:`minErrorText`,serializationProperty:`locMinErrorText`,dependsOn:`inputType`,visibleIf:function(e){return hL(e)}},{name:`maxErrorText`,serializationProperty:`locMaxErrorText`,dependsOn:`inputType`,visibleIf:function(e){return hL(e)}},{name:`stepErrorText`,serializationProperty:`locStepErrorText`,dependsOn:`inputType`,visibleIf:e=>bL(e)},{name:`inputTextAlignment`,default:`auto`,choices:[`left`,`right`,`auto`]},{name:`maskType`,default:`none`,visibleIndex:0,dependsOn:`inputType`,visibleIf:e=>e.inputType===`text`||e.inputType===`tel`,choices:e=>fL()},{name:`maskSettings:masksettings`,className:`masksettings`,visibleIndex:1,dependsOn:[`inputType`,`maskType`],visibleIf:e=>e.inputType===`text`||e.inputType===`tel`,onGetValue:function(e){return e.maskSettings.getData()},onSetValue:function(e,t){e.maskSettings.setData(t)}},{name:`step:number`,dependsOn:`inputType`,visibleIf:e=>bL(e)},{name:`maxLength:number`,default:-1,dependsOn:`inputType`,visibleIf:function(e){return e?e.isTextInput:!1}},{name:`placeholder`,alternativeName:`placeHolder`,serializationProperty:`locPlaceholder`,dependsOn:`inputType`,visibleIf:function(e){return e?e.isTextInput:!1}},{name:`dataList:string[]`,serializationProperty:`locDataList`,dependsOn:`inputType`,visibleIf:function(e){return e?e.inputType===`text`:!1}}],function(){return new pL(``)},`textbase`),xF.Instance.registerQuestion(`text`,e=>new pL(e));var xL=class extends Ij{constructor(e){super(),this.question=e}getRootObj(){return this.question.data}updateValueByItem(e,t){let n=this.question.items;for(let r=0;r<n.length;r++){let i=n[r].editor;if(i.getValueName()===e){t.isFound=!0,t.obj=i,t.context=i.getValueGetterContext();return}}}},SL=class extends pL{get a11y_input_ariaLabel(){return this.locTitle.renderedHtml}get a11y_input_ariaLabelledBy(){return null}get a11y_input_ariaDescribedBy(){return null}},CL=class extends qM{constructor(e=null,t=null){super(),this.focusIn=()=>{this.editor.focusIn()},this.editorValue=this.createEditor(e),this.maskSettings=this.editorValue.maskSettings,this.editor.questionTitleTemplateCallback=function(){return``},this.editor.titleLocation=`left`,t&&(this.title=t),this.editor.onPropertyChanged.add((e,t)=>{t.name!==`maskSettings`&&this.onPropertyChanged.fire(this,t)})}getType(){return`multipletextitem`}getOwner(){return this.question}getAllChildren(){return[...super.getAllChildren(),...this.validators]}get id(){return this.editor.id}getOriginalObj(){return this.editor}get name(){return this.editor.name}set name(e){this.editor.name=e}get question(){return this.data}get editor(){return this.editorValue}createEditor(e){return new SL(e)}addUsedLocales(e){super.addUsedLocales(e),this.editor.addUsedLocales(e)}localeChanged(){super.localeChanged(),this.editor.localeChanged()}locStrsChanged(){super.locStrsChanged(),this.editor.locStrsChanged()}setData(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e,this.editor.setParentQuestion(e))}get isRequired(){return this.editor.isRequired}set isRequired(e){this.editor.isRequired=e}get inputType(){return this.editor.inputType}set inputType(e){this.editor.inputType=e}get title(){return this.editor.title}set title(e){this.editor.title=e}get locTitle(){return this.editor.locTitle}get fullTitle(){return this.editor.fullTitle}get maxLength(){return this.editor.maxLength}set maxLength(e){this.editor.maxLength=e}getMaxLength(){var e=this.getSurvey();return K.getMaxLength(this.maxLength,e?e.maxTextLength:-1)}get placeholder(){return this.editor.placeholder}set placeholder(e){this.editor.placeholder=e}get locPlaceholder(){return this.editor.locPlaceholder}get placeHolder(){return this.placeholder}set placeHolder(e){this.placeholder=e}get locPlaceHolder(){return this.locPlaceholder}get requiredErrorText(){return this.editor.requiredErrorText}set requiredErrorText(e){this.editor.requiredErrorText=e}get locRequiredErrorText(){return this.editor.locRequiredErrorText}get inputSize(){return this.editor.inputSize}set inputSize(e){this.editor.inputSize=e}get size(){return this.inputSize}set size(e){this.inputSize=e}get defaultValueExpression(){return this.editor.defaultValueExpression}set defaultValueExpression(e){this.editor.defaultValueExpression=e}get minValueExpression(){return this.editor.minValueExpression}set minValueExpression(e){this.editor.minValueExpression=e}get maxValueExpression(){return this.editor.maxValueExpression}set maxValueExpression(e){this.editor.maxValueExpression=e}get validators(){return this.editor.validators}set validators(e){this.editor.validators=e}getValidators(){return this.validators}get maskType(){return this.editor.maskType}set maskType(e){this.editor.maskType=e,this.maskSettings=this.editor.maskSettings}get maskSettings(){return this.getPropertyValue(`maskSettings`)}set maskSettings(e){this.setPropertyValue(`maskSettings`,e),this.editor.maskSettings!==e&&(this.editor.maskSettings=e)}get inputTextAlignment(){return this.editor.inputTextAlignment}set inputTextAlignment(e){this.editor.inputTextAlignment=e}get value(){return this.data?this.data.getMultipleTextValue(this.name):null}set value(e){this.data!=null&&this.data.setMultipleTextValue(this.name,e)}isEmpty(){return this.editor.isEmpty()}onValueChanged(e){this.valueChangedCallback&&this.valueChangedCallback(e)}getSurveyData(){return this}getSurvey(){return this.data?this.data.getSurvey():null}getTextProcessor(){return this.data?this.data.getTextProcessor():null}getValue(e){return this.data?this.data.getMultipleTextValue(e):null}setValue(e,t){this.data&&this.data.setMultipleTextValue(e,t)}getComment(e){return null}setComment(e,t){}getFilteredProperties(){return{survey:this.getSurvey()}}findQuestionByName(e){let t=this.getSurvey();return t?t.getQuestionByName(e):null}getValidatorTitle(){return this.title}get validatedValue(){return this.value}set validatedValue(e){this.value=e}getDataFilteredProperties(){return this.getFilteredProperties()}},wL=class extends zP{static addDefaultItems(e){for(var t=xF.DefaultMutlipleTextItems,n=0;n<t.length;n++)e.addItem(t[n])}constructor(e){super(e),this.isMultipleItemValueChanging=!1,this.createNewArray(`items`,e=>{e.setData(this),this.survey&&this.survey.multipleTextItemAdded(this,e)})}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),[`items`,`colCount`,`itemErrorLocation`].indexOf(e)>-1&&this.calcVisibleRows(),e===`inputSize`&&this.resetItemsSize()}getType(){return`multipletext`}getAllChildren(){return[...super.getAllChildren(),...this.items]}setSurveyImpl(e,t){super.setSurveyImpl(e,t);for(var n=0;n<this.items.length;n++)this.items[n].setData(this)}get isAllowTitleLeft(){return!1}get isContainer(){return!0}onSurveyLoad(){this.editorsOnSurveyLoad(),super.onSurveyLoad(),K.isValueEmpty(this.rows)||this.calcVisibleRows()}setQuestionValue(e,t=!0){super.setQuestionValue(e,t),this.performForEveryEditor(e=>{e.editor.updateValueFromSurvey(e.value)}),this.updateIsAnswered()}onSurveyValueChanged(e){super.onSurveyValueChanged(e),this.performForEveryEditor(e=>{e.editor.onSurveyValueChanged(e.value)})}resetItemsSize(){this.performForEveryEditor(e=>{e.editor.resetInputSize()})}editorsOnSurveyLoad(){this.performForEveryEditor(e=>{e.editor.onSurveyLoad()})}performForEveryEditor(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];n.editor&&e(n)}}addItem(e,t=null){var n=this.createTextItem(e,t);return this.items.push(n),n}getItemByName(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null}getElementsInDesign(e=!1){let t;return t=super.getElementsInDesign(e),t.concat(this.items)}addConditionObjectsByContext(e,t){for(var n=0;n<this.items.length;n++){var r=this.items[n];e.push({name:this.getValueName()+`.`+r.name,text:this.processedTitle+`.`+r.fullTitle,question:this})}}collectNestedQuestionsCore(e,t,n,r){r&&e.push(this),this.items.forEac
vendor: 4,117 bytes, line 84
84h(i=>i.editor.addNestedQuestion(e,t,n,r))}getConditionJson(e=null,t=null){if(!t)return super.getConditionJson(e);var n=this.getItemByName(t);if(!n)return null;var r=new Pj().toJsonObject(n);return r.type=`text`,r}locStrsChanged(){super.locStrsChanged();for(var e=0;e<this.items.length;e++)this.items[e].locStrsChanged()}localeChanged(){super.localeChanged();for(var e=0;e<this.items.length;e++)this.items[e].localeChanged()}getQuestionErrorLocation(){return this.itemErrorLocation==="default"?this.getErrorLocation():this.itemErrorLocation}get showItemErrorOnTop(){return this.getQuestionErrorLocation()==`top`}get showItemErrorOnBottom(){return this.getQuestionErrorLocation()==`bottom`}getChildErrorLocation(e){return this.getQuestionErrorLocation()}isNewValueCorrect(e){return K.isValueObject(e,!0)}supportAutoAdvance(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0}get itemSize(){return this.inputSize}set itemSize(e){this.inputSize=e}onRowCreated(e){return e}calcVisibleRows(){let e=this.colCount,t=this.items,n=0,r,i,a=[];for(var o=0;o<t.length;o++)n==0&&(r=this.onRowCreated(new TL),i=this.onRowCreated(new EL),this.showItemErrorOnTop?(a.push(i),a.push(r)):(a.push(r),a.push(i))),r.cells.push(new DL(t[o],this)),i.cells.push(new OL(t[o],this)),n++,(n>=e||o==t.length-1)&&(n=0,i.onAfterCreated());this.rows=a}getRows(){return K.isValueEmpty(this.rows)&&this.calcVisibleRows(),this.rows}onValueChanged(){super.onValueChanged(),this.onItemValueChanged()}createTextItem(e,t){return new CL(e,t)}onItemValueChanged(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}}runConditionCore(e){super.runConditionCore(e),this.items.forEach(t=>t.editor.runCondition(e))}getIsRunningValidators(){if(super.getIsRunningValidators())return!0;for(var e=0;e<this.items.length;e++)if(this.items[e].editor.isRunningValidators)return!0;return!1}validateElementCore(e){let t=!0;for(var n=0;n<this.items.length;n++)e.isOnValueChanged&&this.items[n].editor.isEmpty()||(t=this.items[n].editor.validateElement(e)&&t);return super.validateElementCore(e)&&t}getAllErrors(){for(var e=super.getAllErrors(),t=0;t<this.items.length;t++){var n=this.items[t].editor.getAllErrors();n&&n.length>0&&(e=e.concat(n))}return e}clearErrors(){super.clearErrors();for(var e=0;e<this.items.length;e++)this.items[e].editor.clearErrors()}getContainsErrors(){var e=super.getContainsErrors();if(e)return e;for(var t=this.items,n=0;n<t.length;n++)if(t[n].editor.containsErrors)return!0;return!1}getIsAnswered(){if(!super.getIsAnswered())return!1;for(var e=0;e<this.items.length;e++){var t=this.items[e].editor;if(t.isVisible&&!t.isAnswered)return!1}return!0}getProgressInfo(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return DP.getProgressInfoByElements(e,this.isRequired)}getValueGetterContext(){return new xL(this)}getDisplayValueCore(e,t){if(!t)return t;for(var n={},r=0;r<this.items.length;r++){var i=this.items[r],a=t[i.name];if(!K.isValueEmpty(a)){var o=i.name;e&&i.title&&(o=i.title),n[o]=i.editor.getDisplayValue(e,a)}}return n}allowMobileInDesignMode(){return!0}getMultipleTextValue(e){return this.value?this.value[e]:null}setMultipleTextValue(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var n=this.value;n||(n={}),n[e]=t,this.setNewValue(n),this.isMultipleItemValueChanging=!1}getItemDefaultValue(e){return this.defaultValue?this.defaultValue[e]:null}getTextProcessor(){return this.textProcessor}addElement(e,t){}removeElement(e){return!1}getQuestionTitleLocation(){return`left`}getQuestionTitleWidth(){}getColumsForElement(e){return[]}updateColumns(){}getQuestionStartIndex(){return this.getStartIndex()}getChildrenLayoutType(){return`row`}elementWidthChanged(e){}get elements(){return[]}indexOf(e){return-1}ensureRowsVisibility(){}validateContainerOnly(){}getItemLabelCss(e){return new X().append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelDisabled,this.isDisabledStyle).append(this.cssClasse
84s.itemLabelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.itemLabelPreview,this.isPreviewStyle).append(this.cssClasses.itemLabelAnswered,e.editor.isAnswered).append(this.cssClasses.itemLabelAllowFocus,!this.isDesignMode).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).append(this.cssClasses.itemWithCharacterCounter,!!e.getMaxLength()).toString()}getItemCss(){return new X().append(this.cssClasses.item).toString()}getItemTitleCss(){return new X().append(this.cssClasses.itemTitle).toString()}get ariaRole(){return`group`}get ariaRequired(){return null}get ariaInvalid(){return null}};q([Y()],wL.prototype,`items`,void 0),q([Y()],wL.prototype,`itemErrorLocation`,void 0),q([Y({onSetting:e=>e<1?1:e>5?5:e})],wL.prototype,`colCount`,void 0),q([Y()],wL.prototype,`inputSize`,void 0),q([Y({returnValue:``})],wL.prototype,`itemTitleWidth`,void 0),q([mN()],wL.prototype,`rows`,void 0);var TL=class extends qM{constructor(){super(...arguments),this.isVisible=!0,this.cells=[]}};q([Y()],TL.prototype,`isVisible`,void 0),q([mN()],TL.prototype,`cells`,void 0);var EL=class extends TL{onAfterCreated(){let e=()=>{this.isVisible=this.cells.some(e=>{var t,n;return((t=e.item)==null?void 0:t.editor)&&((n=e.item)==null?void 0:n.editor.hasVisibleErrors)})};this.cells.forEach(t=>{var n,r;(n=t.item)!=null&&n.editor&&((r=t.item)==null||r.editor.registerFunctionOnPropertyValueChanged(`hasVisibleErrors`,e))}),e()}},DL=class{constructor(e,t){this.item=e,this.question=t,this.isErrorsCell=!1}getClassName(){return new X().append(this.question.cssClasses.cell).toString()}get className(){return this.getClassName()}},OL=class extends DL{constructor(){super(...arguments),this.isErrorsCell=!0}getClassName(){return new X().append(super.getClassName()).append(this.question.cssClasses.cellError).append(this.question.cssClasses.cellErrorTop,this.question.showItemErrorOnTop).append(this.question.cssClasses.cellErrorBottom,this.question.showItemErrorOnBottom).toString()}};J.addClass(`multipletextitem`,[{name:`!name`,isUnique:!0},`isRequired:boolean`,{name:`placeholder`,alternativeName:`placeHolder`,serializationProperty:`locPlaceholder`},{name:`inputType`,default:`text`,choices:G.questions.inputTypes},{name:`maskType`,default:`none`,visibleIndex:0,dependsOn:`inputType`,visibleIf:e=>e.inputType===`text`,choices:e=>fL()},{name:`maskSettings:masksettings`,className:`masksettings`,visibleIndex:1,dependsOn:`inputType`,visibleIf:e=>e.inputType===`text`,onGetValue:function(e){return e.maskSettings.getData()},onSetValue:function(e,t){e.maskSettings.setData(t)}},{name:`inputTextAlignment`,default:`auto`,choices:[`left`,`right`,`auto`]},{name:`title`,serializationProperty:`locTitle`},{name:`maxLength:number`,default:-1},{name:`inputSize:number`,alternativeName:`size`,minValue:0},{name:`requiredErrorText:text`,serializationProperty:`locRequiredErrorText`},{name:`defaultValueExpression:expression`},{name:`minValueExpression:expression`,dependsOn:`inputType`,visibleIf:function(e){return hL(e)}},{name:`maxValueExpression:expression`,dependsOn:`inputType`,visibleIf:function(e){return hL(e)}},{name:`validators:validators`,baseClassName:`surveyvalidator`,classNamePart:`validator`}],function(){return new CL(``)}),J.addClass(`multipletext`,[{name:`!items:textitems`,className:`multipletextitem`,isArray:!0},{name:`inputSize:number`,minValue:0,visible:!1,alternativeName:`itemSize`},{name:`colCount:number`,default:1,choices:[1,2,3,4,5]},{name:`itemErrorLocation`,default:`default`,choices:[`default`,`top`,`bottom`],visible:!1},{name:`itemTitleWidth`}],function(){return new wL(``)},`question`),xF.Instance.registerQuestion(`multipletext`,e=>{var t=new wL(e);return wL.addDefaultItems(t),t});var kL=class e extends DI{onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`content`&&this.onContentChanged()}getType(){return`flowpanel`}getChildrenLayoutType(){return`flow`}onSurveyLoad(){super.onSurveyLoad(),this.onContentChanged()}onContentChanged(){var e=``;e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()}produceHtml(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,n=this.content,r=0,i=null;(i=t.exec(n))!==null;){i.index>r&&(e.push(n.substring(r,i.index)),r=i.index);var a=this.getQuestionFromText(i[0]);a?e.push(this.getHtmlForQuestion(a)):e.push(n.substring(r,i.index+i[0].length)),r=i.index+i[0].length}return r<n.length&&e.push(n.substring(r,n.length)),e.join(``).replace(RegExp(`<br>`,`g`),`<br/>`)}getQuestionFromText(t){return t=t.substring(1,t.length-1),t=t.replace(e.contentElementNamePrefix,``).trim(),this.getQuestionByName(t)}getHtmlForQuestion(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):``}getQuestionHtmlId(e){return this.name+`_`+e.id}onAddElement(e,t){super.onAddElement(e,t),this.addElementToContent(e),e.renderWidth=``}onRemoveElement(e){var t=this.getElementContentText(e);this.content=this.content.replace(t,``),super.onRemoveElement(e)}dragDropMoveElement(e,t,n){}addElementToContent(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content+=t)}}insertTextAtCursor(e,t=null){if(!this.isDesignMode||!tj.isAvailable())return!1;let n=tj.getSelection();if(n.getRangeAt&&n.rangeCount){let a=n.getRangeAt(0);a.deleteContents();let o=new Text(e);a.insertNode(o);var r=this;if(r.getContent){var i=r.getContent(t);this.content=i}return!0}return!1}getElementContentText(t){return`{`+e.contentElementNamePrefix+t.name+`}`}};kL.contentElementNamePrefix=`element:`,q([Y({localizable:!0})],kL.prototype,`content`,void 0),q([Y({returnValue:``})],kL.prototype,`html`,void 0),J.addClass(`flowpanel`,[{name:`content:html`,serializationProperty:`locContent`}],function(){return new kL},`panel`);var AL=class extends zP{constructor(e){super(e)}getType(){return`nonvalue`}get hasInput(){return!1}get hasTitle(){return!1}getTitleLocation(){return``}get hasComment(){return!1}validateElementCore(e){return!0}getAllErrors(){return[]}supportAutoAdvance(){return!1}
84addConditionObjectsByContext(e,t){}getConditionJson(e=null,t=null){return null}get ariaRole(){return null}get ariaRequired(){return null}};J.addClass(`nonvalue`,[{name:`title`,visible:!1},{name:`description`,visible:!1},{name:`valueName`,visible:!1},{name:`enableIf`,visible:!1},{name:`defaultValue`,visible:!1},{name:`correctAnswer`,visible:!1},{name:`clearIfInvisible`,visible:!1},{name:`isRequired`,visible:!1,isSerializable:!1},{name:`requiredErrorText`,visible:!1},{name:`readOnly`,visible:!1},{name:`requiredIf`,visible:!1},{name:`validators`,visible:!1},{name:`titleLocation`,visible:!1},{name:`showTitle`,visible:!1,isSerializable:!1},{name:`showCommentArea`,visible:!1},{name:`useDisplayValuesInDynamicTexts`,alternativeName:`useDisplayValuesInTitle`,visible:!1}],function(){return new AL(``)},`question`);var jL=class extends zP{constructor(e){super(e)}getType(){return`empty`}};J.addClass(`empty`,[],function(){return new jL(``)},`question`);var ML=class e{constructor(e,t){this.val=e??[],this.name=t}add(e){return this.contains(e)||(this.name?this.val.push({[this.name]:e}):this.val.push(e)),this.val}indexOf(e){for(let t=0;t<this.val.length;t++)if(this.getValue(t)===e)return t;return-1}contains(e){return this.indexOf(e)>-1}toggle(e,t=0){return this.contains(e)?this.remove(e):t>0&&this.val.length>=t?this.val:this.add(e)}remove(e){let t=this.indexOf(e);return t>-1&&this.val.splice(t,1),this.val}convert(e){return e==null||(Array.isArray(e)||(e=[e]),!this.name)?e:e.map(e=>e&&typeof e==`object`&&this.name in e?e:{[this.name]:e})}getNamedValue(e){return this.name?{[this.name]:e}:e}getValues(){if(this.val)return this.val.map((e,t)=>this.getValue(t))}getValue(e){if(e<0||e>=this.val.length)return;let t=this.val[e];return this.name&&typeof t==`object`?t[this.name]:t}equals(t){if(!Array.isArray(t)||this.val.length!==t.length)return!1;let n=new e(t,this.name).getValues(),r=this.getValues();for(let e=0;e<n.length;e++)if(n[e]!==r[e])return!1;return!0}},NL=class extends WI{getBaseType(){return`checkboxitem`}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`showCommentArea`&&this.locOwner&&this.locOwner.onItemHasCommentChanged()}};q([Y()],NL.prototype,`isExclusive`,void 0);var PL=class extends KI{constructor(){super(...arguments),this.invisibleOldValues={},this.isChangingValueOnClearIncorrect=!1}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),[`showSelectAllItem`,`selectAllText`].indexOf(e)>-1&&this.onVisibleChoicesChanged(),e===`choices`&&this.onItemHasCommentChanged(),(e===`maxSelectedChoices`||e===`minSelectedChoices`)&&this.filterItems()}supportElementsInChoice(){return!0}getDefaultItemComponent(){return`survey-checkbox-item`}getType(){return`checkbox`}getItemValueType(){return`checkboxitem`}onCreating(){super.onCreating(),this.createNewArray(`renderedValue`),this.createNewArray(`value`)}getFirstInputElementId(){return this.inputId+`_0`}getValuePropertyName(){return this.valuePropertyName||(this.isTheOnlyComment?``:`value`)}getQuestionFromArray(e,t){if(e&&e===this.getValuePropertyName()){let e=this.value;if(Array.isArray(e)&&t<e.length)return this}return null}getDependedQuestionsByValueName(e){return e&&this.getValuePropertyName()?[]:super.getDependedQuestionsByValueName(e)}get selectAllItem(){return this.selectAllItemValue||(this.selectAllItemValue=this.createBuiltInItem(``,`selectAllText`,`selectAllItemText`,e=>{e.value=``,e.id=`selectall`})),this.selectAllItemValue}get selectAllText(){return this.getLocalizableStringText(`selectAllText`)}set selectAllText(e){this.setLocStringText(this.locSelectAllText,e)}get locSelectAllText(){return this.selectAllItem.locText}get hasSelectAll(){return this.showSelectAllItem}set hasSelectAll(e){this.showSelectAllItem=e}get isAllSelected(){return this.allElementsSelected()}set isAllSelected(e){e?this.selectAll():this.unselectAll()}toggleSelectAll(){this.isAllSelected=!this.isAllSelected}allElementsSelected(){if(this.isNoneItemsSelected())return!1;let e=this.getVisibleEnableItems();if(e.length===0)return!1;let t=this.value;if(!t||!Array.isArray(t)||t.length===0||t.length<e.length)return!1;let n=this.getPropertyNameArray(t).getValues();for(let t=0;t<e.length;t++)if(n.indexOf(e[t].value)<0)return!1;return!0}isNoneItemsSelected(){let e=this.getNoneItems();for(let t=0;t<e.length;t++)if(this.isItemSelected(e[t]))return!0;return!1}getNoneItems(){let e=[];
84return this.visibleChoices.forEach(t=>{this.isNoneItem(t)&&e.push(t)}),e}selectAll(){this.selectAllCore(e=>e.isEnabled||this.isItemSelected(e))}unselectAll(){this.selectAllCore(e=>!e.isEnabled&&this.isItemSelected(e))}selectAllCore(e){let t=[],n=this.getVisibleEnableItems(!0);for(let r=0;r<n.length;r++){let i=n[r];e(i)&&t.push(i.value)}this.renderedValue=t}clickItemHandler(e,t){this.selectItem(e,t)}selectItem(e,t){if(!(this.isReadOnlyAttr||!e)){if(e===this.selectAllItem)t===!0||t===!1?this.isAllSelected=t:this.toggleSelectAll();else{if(this.isNoneItem(e))this.renderedValue=t?[e.value]:[];else{let n=[].concat(this.renderedValue||[]),r=n.indexOf(e.value);t?r<0&&n.push(e.value):r>-1&&n.splice(r,1),this.renderedValue=n}t&&this.onItemSelected(e)}}}isItemSelectedCore(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(t[n],e.value))return!0;return!1}hasUnknownValueItem(e,t=!1,n=!0,r=!1){return super.hasUnknownValueItem(this.getPropertyNameArray([e]).getValue(0),t,n,r)}hasUnknownValueItemInChoices(e,t){return super.hasUnknownValueItemInChoices(this.getPropertyNameArray([e]).getValue(0),t)}setCommentValueCore(e,t){if(t=this.getTrimmedComment(t),this.isOtherItemByValue(e))super.setCommentValueCore(e,t);else{this.setCommentPropertyValue(e,t);let n=this.getItemValIndexByItemValue(e.value);if(n>-1){let e=this.createValueCopy(),r=e[n];t?r[this.commentPropertyValue]=t:delete r[this.commentPropertyValue],this.value=e}}}getCommentValueByItem(e){let t=this.getItemValIndexByItemValue(e.value);return t>-1?this.value[t][this.commentPropertyValue]:void 0}getItemValIndexByItemValue(e){return this.getPropertyNameArray(this.value).indexOf(e)}get isTheOnlyComment(){return this.getPropertyValue(`isTheOnlyComment`,void 0,()=>this.calcIsTheOnlyComment())}calcIsTheOnlyComment(){for(let e=0;e<this.choices.length;e++){let t=this.choices[e];if(t.showCommentArea&&!this.isOtherValue(t.value))return!1}return!0}onItemHasCommentChanged(){this.resetPropertyValue(`isTheOnlyComment`)}getValueFromReal(e){return this.getPropertyNameArray([]).getNamedValue(e)}get isValueArray(){return!0}get selectedChoices(){let e=this.renderedValue,t=this.visibleChoices,n=this.selectedItemValues;if(this.isEmpty())return[];let r=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,t):t,i=e.map(e=>HP.getItemByValue(r,e)).filter(e=>!!e);return!i.length&&!n&&this.updateSelectedItemValues(),this.validateItemValues(i)}get selectedItems(){return this.selectedChoices}get hasFilteredValue(){return!!this.getValuePropertyName()}getFilteredName(){let e=super.getFilteredName();return this.hasFilteredValue&&(e+=G.expressionVariables.unwrapPostfix),e}getFilteredValue(e){return this.hasFilteredValue&&(e||!this.valuePropertyName)?this.renderedValue:super.getFilteredValue(e)}getMultipleSelectedItems(){return this.selectedChoices}validateItemValues(e){if(e.length)return e;let t=this.selectedItemValues;return t&&t.length?(this.defaultSelectedItemValues=[].concat(t),t):this.renderedValue.map(e=>this.createItemValue(e))}getAnswerCorrectIgnoreOrder(){return!0}
84onCheckForErrors(e,t,n){if(super.onCheckForErrors(e,t,n),!t&&this.checkMinSelectedChoicesUnreached()){let t=new dN(this.getLocalizationFormatString(`minSelectError`,this.minSelectedChoices),this);e.push(t)}}onVisibleChoicesChanged(){super.onVisibleChoicesChanged(),this.updateSelectAllItemProps()}onEnableItemCallBack(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)}onAfterRunItemsEnableCondition(){this.updateSelectAllItemProps();let e=this.maxSelectedChoices<1||this.isOtherSelected||!this.shouldCheckMaxSelectedChoices();this.showOtherItem&&this.otherItem.setIsEnabled(e)}updateSelectAllItemProps(){this.showSelectAllItem&&this.selectAllItem.setIsEnabled(this.getSelectAllEnabled())}getSelectAllEnabled(){if(!this.showSelectAllItem)return!0;let e=this.getVisibleEnableItems().length,t=this.maxSelectedChoices;return t>0&&t<e?!1:e>0}getVisibleEnableItems(e){let t=[],n=this.visibleChoices;for(let r=0;r<n.length;r++){let i=n[r];(e||i.isEnabled)&&!this.isBuiltInChoice(i)&&!i.isExclusive&&t.push(i)}return t}shouldCheckMaxSelectedChoices(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices}checkMinSelectedChoicesUnreached(){if(this.minSelectedChoices<1)return!1;var e=this.value,t=Array.isArray(e)?e.length:0;return t===1&&this.isNoneItemsSelected()?!1:t<this.minSelectedChoices}getItemClassCore(e,t){return this.value,t.isSelectAllItem=e===this.selectAllItem,new X().append(super.getItemClassCore(e,t)).append(this.cssClasses.itemSelectAll,t.isSelectAllItem).toString()}updateValueFromSurvey(e,t){super.updateValueFromSurvey(e,t),this.invisibleOldValues={}}onSurveyLoad(){this.onItemHasCommentChanged(),super.onSurveyLoad()}getPropertyNameArray(e){return new ML(e,this.getValuePropertyName())}setDefaultUnknownValue(e){if(!Array.isArray(e)){super.setDefaultUnknownValue(e);return}let t=this.getPropertyNameArray(e);if(this.hasActiveChoices){let r=[],i=``;for(var n=0;n<e.length;n++){let e=t.getValue(n);this.hasUnknownValue(e)?i||(i=e,r.push(this.otherItem.value)):r.push(e)}this.renderedValue=r,this.otherValue=i}else{for(var n=0;n<e.length;n++){let e=t.getValue(n);this.addIntoInvisibleOldValues(e)}this.value=e}}addIntoInvisibleOldValues(e){this.invisibleOldValues[e]=e}hasValueToClearIncorrectValues(){return super.hasValueToClearIncorrectValues()||!K.isValueEmpty(this.invisibleOldValues)}setNewValue(e){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),e=this.valueFromData(e);var t=this.value;e||(e=[]),t||(t=[]),!this.isTwoValueEquals(t,e)&&(this.removeNoneItemsValues(t,e),super.setNewValue(e))}getCommentFromValue(e){var t=this.getFirstUnknownIndex(e);return t<0?``:e[t]}getStoreOthersAsComment(){return!this.getValuePropertyName()&&super.getStoreOthersAsComment()}setOtherValueIntoValue(e){var t=this.getFirstUnknownIndex(e);return t<0||e.splice(t,1,this.getPropertyNameArray([]).getNamedValue(this.otherItem.value)),e}getFirstUnknownIndex(e){if(!Array.isArray(e))return-1;for(var t=0;t<e.length;t++)if(this.hasUnknownValueItem(e[t],!1,!1))return t;return-1}removeNoneItemsValues(e,t){if(this.getPropertyNameArray(e).equals(t))return;let n=this.getNoneItems().map(e=>e.value);if(n.length>0){let r=this.noneIndexInArray(e,n),i=this.noneIndexInArray(t,n);if(r.index>-1){if(r.val===i.val)t.length>0&&t.splice(i.index,1);else{let e=this.noneIndexInArray(t,[r.val]);e.index>-1&&e.index<t.length-1&&t.splice(e.index,1)}}else i.index>-1&&t.length>1&&t.splice(0,t.length,this.getValueFromReal(i.val))}}noneIndexInArray(e,t){if(!Array.isArray(e))return{index:-1,val:void 0};let n=this.getPropertyNameArray(e);for(var r=e.length-1;r>=0;r--){let e=t.indexOf(n.getValue(r));if(e>-1)return{index:r,val:t[e]}}return{index:-1,val:void 0}}supportSelectAll(){return this.isSupportProperty(`showSelectAllItem`)}addNonChoicesItems(e,t){super.addNonChoicesItems(e,t),this.supportSelectAll()&&this.addNonChoiceItem(e,()=>this.selectAllItem,t,this.showSelectAllItem,G.specialChoicesOrder.selectAllItem)}isBuiltInChoice(e){return e===this.selectAllItem||super.isBuiltInChoice(e)}isItemInList(e){return e==this.selectAllItem?this.showSelectAllItem:super.isItemInList(e)}getDisplayValueEmpty(){return HP.getTextOrHtmlByValue(this.visibleChoices.filter(e=>e!=this.selectAllItemValue),void 0)}getDisplayValueCore(e,t,n){return Array.isArray(t)?this.getDisplayArrayValue(e,t,e=>this.getPropertyNameArray(t).getValue(e),n):super.getDisplayValueCore(e,t,n)}clearIncorrectValuesCore(){this.clearIncorrectAndDisabledValues(!1)}clearDisabledValuesCore(){this.clearIncorrectAndDisabledValues(!0)}
84clearIncorrectAndDisabledValues(e){var t=this.value,n=!1,r=this.restoreValuesFromInvisible();if(!t&&r.length==0)return;if(!Array.isArray(t)||t.length==0){if(this.isChangingValueOnClearIncorrect=!0,e||(this.showCommentArea?this.value=null:this.clearValue(!0)),this.isChangingValueOnClearIncorrect=!1,r.length==0)return;t=[]}var i=[];let a=this.getPropertyNameArray(t);for(var o=0;o<t.length;o++){let r=a.getValue(o);var s=this.canClearValueAnUnknown(r);!e&&!s||e&&!this.isValueDisabled(r)?i.push(t[o]):(n=!0,s&&this.addIntoInvisibleOldValues(t[o]))}for(var o=0;o<r.length;o++)i.push(r[o]),n=!0;n&&(this.isChangingValueOnClearIncorrect=!0,i.length==0?this.clearValue(!0):this.value=i,this.isChangingValueOnClearIncorrect=!1)}restoreValuesFromInvisible(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++){let i=t[n];if(i!==this.selectAllItem){var r=t[n].value;K.isTwoValueEquals(r,this.invisibleOldValues[r])&&(this.isItemSelected(i)||e.push(r),delete this.invisibleOldValues[r])}}return e}getConditionJson(e=null,t=null){let n=super.getConditionJson(e,t);return(e==`contains`||e==`notcontains`)&&(n.type=`radiogroup`),n.maxSelectedChoices=0,n.minSelectedChoices=0,n}isAnswerCorrect(){return K.isArrayContainsEqual(this.value,this.getCorrectAnswerValue())}getCorrectAnswerOnChoicesChanged(e){if(!Array.isArray(e))return super.getCorrectAnswerOnChoicesChanged(e);let t=e.filter(e=>this.correctAnswerValueExistsInChoices(e));return t.length>0?t:void 0}setDefaultValueWithOthers(){this.value=this.renderedValueFromDataCore(this.defaultValue)}getIsItemValue(e,t){return!e||!Array.isArray(e)?!1:e.indexOf(t.value)>=0}valueFromData(e){if(!e)return e;if(!Array.isArray(e))return[super.valueFromData(e)];let t=[];for(let n=0;n<e.length;n++){let r=this.getItemByValue(e[n],this.visibleChoices);r?t.push(this.getChoiceValue(r,e[n],!0)):t.push(e[n])}return t}rendredValueFromData(e){return e=this.convertValueFromObject(e),super.rendredValueFromData(e)}convertValueFromObject(e){return Array.isArray(e)?this.getPropertyNameArray(e).getValues():e}renderedValueFromDataCore(e){if((!e||!Array.isArray(e))&&(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length;t++){if(this.isOtherValue(e[t]))return e;if(this.hasUnknownValueItem(e[t],!0,!1)){this.otherValue=e[t];var n=e.slice();return n[t]=this.otherItem.value,n}}return e}renderedValueToDataCore(e){if(!e||!e.length)return e;let t=[],n=this.createValueCopy();for(var r=0;r<e.length;r++){let i=-1,a=e[r];this.isOtherValue(a)&&this.needConvertRenderedOtherToDataValue()?(i=this.getFirstUnknownIndex(n),a=this.otherValue,i>-1&&(n[i]=this.getValueFromReal(this.otherValue))):i=this.getItemValIndexByItemValue(a),i>-1?t.push(n[i]):t.push(this.getValueFromReal(a))}return t}valueToData(e){return K.isValueEmpty(e)?e:(Array.isArray(e)||(e=[e]),this.getPropertyNameArray(e).convert(e))}selectOtherValueFromComment(e){var t=[];let n=this.renderedValue;if(Array.isArray(n))for(var r=0;r<n.length;r++)this.isOtherValue(n[r])||t.push(n[r]);e&&t.push(this.otherItem.value),this.value=t}get checkBoxSvgPath(){return`M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z`}get isNewA11yStructure(){return!0}get a11y_input_ariaRole(){return`group`}get a11y_input_ariaRequired(){return null}};q([Y()],PL.prototype,`valuePropertyName`,void 0),q([Y()],PL.prototype,`showSelectAllItem`,void 0),q([Y({onSetting:e=>e<0?0:e})],PL.prototype,`maxSelectedChoices`,void 0),q([Y({onSetting:e=>e<0?0:e})],PL.prototype,`minSelectedChoices`,void 0),J.addClass(`checkboxitem`,[{name:`isExclusive:boolean`,locationInTable:`detail`}],e=>new NL(e),`choiceitem`),J.addClass(`checkbox`,[{name:`showSelectAllItem:boolean`,alternativeName:`hasSelectAll`},{name:`separateSpecialChoices`,visible:!0},{name:`maxSelectedChoices:number`,default:0,onSettingValue:(e,t)=>{if(t<=0)return 0;let n=e.minSelectedChoices;return n>0&&t<n?n:t}},{name:`minSelectedChoices:number`,default:0,onSettingValue:(e,t)=>{if(t<=0)return 0;let n=e.maxSelectedChoices;return n>0&&t>n?n:t}},{name:`selectAllText`,serializationProperty:`locSelectAllText`,dependsOn:`showSelectAllItem`,visibleIf:function(e){return e.showSelectAllItem}},`valuePropertyName`,{name:`itemComponent`,visible:!1,default:`survey-checkbox-item`}],function(){return new PL(``)},`checkboxbase`),J.getProperty(`checkbox`,`choices`).type=`checkboxitem[]`,xF.Instance.registerQuestion(`checkbox`,e=>{var t=new PL(e);return t.choices=xF.DefaultChoices,t});var FL=class extends cP{updateItemState(){this.actions.forEach(e
84=>{let t=this.isItemSelected(e);e.visible=!this.hideSelectedItems||!t})}constructor(e){super(e),this.onItemClick=e=>{this.isItemDisabled(e)||(this.isExpanded=!1,this.isItemSelected(e)?(this.selectedItems.splice(this.selectedItems.indexOf(e),1)[0],this.onSelectionChanged&&this.onSelectionChanged(e,`removed`)):(this.selectedItems.push(e),this.onSelectionChanged&&this.onSelectionChanged(e,`added`)))},this.isItemDisabled=e=>e.enabled!==void 0&&!e.enabled,this.isItemSelected=e=>!!this.allowSelection&&this.selectedItems.filter(t=>this.areSameItems(t,e)).length>0,this.setSelectedItems(e.selectedItems||[])}updateState(){this.updateItemState(),this.raiseUpdate({needUpdateIsEmpty:!0})}setSelectedItems(e){this.selectedItems=e,this.updateState()}selectFocusedItem(){super.selectFocusedItem(),this.hideSelectedItems&&this.focusNextVisibleItem()}};q([Y()],FL.prototype,`hideSelectedItems`,void 0);var IL=class extends QI{get needRenderInput(){return!this.question.isInputReadOnly||!!this.filterStringPlaceholder}locStrsChanged(){super.locStrsChanged(),this.syncFilterStringPlaceholder()}updateListState(){this.listModel.updateState(),this.updateCustomItemValue(),this.syncFilterStringPlaceholder()}syncFilterStringPlaceholder(){this.filterStringPlaceholder=this.getSelectedActions().length||this.question.selectedItems.length||this.listModel.focusedItem?void 0:this.question.placeholder}getSelectedActions(){return this.listModel.actions.filter(e=>e.selected)}getFocusFirstInputSelector(){return this.listModel.hideSelectedItems&&rP&&!this.isValueEmpty(this.question.value)?this.itemSelector:super.getFocusFirstInputSelector()}getPopupCssClasses(){return`sv-multi-select-list`}createListModel(){let e=this.getAvailableItems(),t=this.onSelectionChanged;t||(t=(e,t)=>{this.resetFilterString(),e.id===`selectall`?this.selectAllItems():t===`added`&&e.value===G.noneItemValue?this.selectNoneItem():t===`added`?this.selectItem(e.value):t===`removed`&&this.deselectItem(e.value),this.popupRecalculatePosition(!1),this.closeOnSelect&&(this.popupModel.isVisible=!1)});let n=new FL({items:e,onSelectionChanged:t,allowSelection:!1,locOwner:this.question,elementId:this.listElementId});return this.setOnTextSearchCallbackForListModel(n),n.forceShowFilter=this.question.choicesLazyLoadEnabled||this.question.allowCustomChoices,n}get shouldResetAfterCancel(){return rP&&!this.closeOnSelect}createPopup(){super.createPopup(),this.popupModel.onFooterActionsCreated.add((e,t)=>{t.actions.push({id:`sv-dropdown-done-button`,title:this.doneButtonCaption,innerCss:`sv-popup__button--done`,needSpace:!0,action:()=>{this.popupModel.isVisible=!1},enabled:new KM(()=>!this.isTwoValueEquals(this.question.renderedValue,this.previousValue))})}),this.popupModel.onVisibilityChanged.add((e,t)=>{this.shouldResetAfterCancel&&t.isVisible&&(this.previousValue=[].concat(this.question.renderedValue||[]))}),this.popupModel.onCancel=()=>{this.shouldResetAfterCancel&&(this.question.renderedValue=this.previousValue,this.updateListState())}}selectAllItems(){this.question.toggleSelectAll(),this.question.isAllSelected&&this.question.hideSelectedItems&&this.popupModel.hide(),this.updateListState()}selectNoneItem(){this.question.renderedValue=[G.noneItemValue],this.updateListState()}selectItem(e){let t;if(this.allowCustomChoices&&e===this.customItemValue.id){let e=this.createCustomItem();e&&(t=e.id)}else t=e;if(t!=null){let e=[].concat(this.question.renderedValue||[]);e.push(t),this.question.renderedValue=e,this.updateListState()}}deselectItem(e){let t=[].concat(this.question.renderedValue||[]);t.splice(t.indexOf(e),1),this.question.renderedValue=t,this.applyHintString(),this.updateListState()}clear(){super.clear(),this.syncFilterStringPlaceholder()}onClear(e){super.onClear(e),this.updateListState()}setHideSelectedItems(e){this.listModel.hideSelectedItems=e,this.updateListState()}removeLastSelectedItem(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)}constructor(e,t){super(e,t),this.setHideSelectedItems(e.hideSelectedItems),this.syncFilterStringPlaceholder(),this.closeOnSelect=e.closeOnSelect}inputKeyHandler(e){e.keyCode===8&&!this.filterString&&(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())}setInputStringFromSelectedItem(e){this.question.searchEnabled&&(this.inputString=null)}focusItemOnClickAndPopup(){}resetListKeyboardHighlightState(){this.listModel.resetFocusedItem(),this.ariaActivedescendant=void 0}resetKeyboardPreviewState(){this.resetListKeyboardHighlightState()}onEscape(){}beforeScrollToFocusedItem(e){}afterScrollToFocusedItem(){var e;(e=this.listModel.focusedItem)!=null&&e.selected?this.hintString=``:this.applyHintString(),this.syncFilterStringPlaceholder()}handleEnterWhenPopupVisible(e){this.listModel.selectFocusedItem(),this.onFocus(e)}
84onPropertyChangedHandler(e,t){super.onPropertyChangedHandler(e,t),(t.name===`value`||t.name===`renderedValue`||t.name===`placeholder`)&&this.syncFilterStringPlaceholder()}};q([Y({defaultValue:``})],IL.prototype,`filterStringPlaceholder`,void 0),q([Y({defaultValue:!0})],IL.prototype,`closeOnSelect`,void 0),q([Y()],IL.prototype,`previousValue`,void 0),q([Y({localizable:{defaultStr:`tagboxDoneButtonCaption`}})],IL.prototype,`doneButtonCaption`,void 0);var LL=class extends $I(PL){constructor(){super(...arguments),this.itemDisplayNameMap={},this.onOpened=this.addEvent()}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),[`value`,`renderAs`,`showOtherItem`,`otherText`,`placeholder`,`choices`,`visibleChoices`].indexOf(e)>-1&&this.resetReadOnlyText(),e===`placeholder`&&this.dropdownListModelValue&&this.dropdownListModel.setInputPlaceholder(n)}calculateReadOnlyText(){return this.getDisplayValue(!0,void 0,!0)}getOtherItemDisplayValue(e,t){if(!t)return super.getOtherItemDisplayValue(e)}supportElementsInChoice(){return!1}locStrsChanged(){var e;super.locStrsChanged(),this.resetReadOnlyText(),(e=this.dropdownListModelValue)==null||e.locStrsChanged()}getDefaultItemComponent(){return``}get dropdownListModel(){return!this.isDisposed&&!this.dropdownListModelValue&&(this.dropdownListModelValue=new IL(this)),this.dropdownListModelValue}set dropdownListModel(e){this.dropdownListModelValue=e}getType(){return`tagbox`}supportMultipleComment(e){return this.isOtherValue(e.value)}get a11yInputAriaRole(){return`combobox`}getControlClass(){return new X().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlEditable,!this.isDisabledStyle&&!this.isReadOnlyStyle&&!this.isPreviewStyle).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()}updateCssClasses(e,t){super.updateCssClasses(e,t),qN(e,t)}validateItemValues(e){this.updateItemDisplayNameMap();let t=this.renderedValue;if(e.length&&e.length===t.length)return e;let n=this.selectedItemValues;if(!e.length&&n&&n.length)return this.defaultSelectedItemValues=[].concat(n),n;let r=e.map(e=>e.value);return t.filter(e=>r.indexOf(e)===-1).forEach(t=>{let n=this.getItemIfChoicesNotContainThisValue(t,this.itemDisplayNameMap[t]);n&&e.push(n)}),e.sort((e,n)=>t.indexOf(e.value)-t.indexOf(n.value)),e}updateItemDisplayNameMap(){let e=e=>{this.itemDisplayNameMap[e.value]=e.text};(this.defaultSelectedItemValues||[]).forEach(e),(this.selectedItemValues||[]).forEach(e),this.visibleChoices.forEach(e)}updateCustomChoices(e,t){if(e!=null&&e.length>0&&this.allowCustomChoices&&!this.choicesLazyLoadEnabled){this.customChoices.splice(0,this.customChoices.length);let n=[];e.forEach(e=>{t.filter(t=>K.isTwoValueEquals(t.id,e,!1,!1))[0]||n.push(new HP(e))}),n.length>0&&this.customChoices.splice(0,this.customChoices.length,...n)}}getFirstInputElementId(){return this.inputId+(this.searchEnabled||this.allowCustomChoices?`_0`:``)}getInputId(){return this.inputId+`_0`}allElementsSelected(){let e=super.allElementsSelected();return this.updateSelectAllItemText(e),e}updateSelectAllItemText(e){this.selectAllTextValue=this.selectAllTextValue||this.locSelectAllText,this.selectAllItem.setLocText(e?this.deselectAllText():this.selectAllTextValue)}deselectAllText(){return this.deselectAllTextValue||(this.deselectAllTextValue=this.createLocalizableString(`deselectAllText`,this.selectAllItem,!0,`deselectAllItemText`)),this.deselectAllTextValue}};q([Y()],LL.prototype,`searchMode`,void 0),q([Y({onSet:(e,t)=>{t.dropdownListModelValue&&t.dropdownListModel.setAllowCustomChoices(e)}})],LL.prototype,`allowCustomChoices`,void 0),q([Y({localizable:{defaultStr:`createCustomItem`}})],LL.prototype,`createCustomChoiceText`,void 0),q([Y()],LL.prototype,`allowClear`,void 0),q([Y({onSet:(e,t)=>{t.dropdownListModelValue&&t.dropdownListModel.setSearchEnabled(e)}})],LL.prototype,`searchEnabled`,void 0),q([Y({onSet:(e,t)=>{t.dropdownListModelValue&&t.dropdownListModel.setHideSelectedItems(e)}})],LL.prototype,`hideSelectedItems`,void 0),q([Y({onSet:(e,t)=>{t.dropdownListModelValue&&t.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],LL.prototype,`choicesLazyLoadEnabled`,void 0),q([Y()],LL.prototype,`choicesLazyLoadPageSize`,void 0),q([Y({getDefaultValue:()=>G.tagboxCloseOnSelect})],LL.prototype,`closeOnSelect`,void 0),q([Y()],LL.prototype,`textWrapEnabled`,void 0),q([Y({localizable:{defaultStr:!0}})],LL.prototype,`placeholder`,void 0),J.addClass(`tagbox`,[{name:`placeholder`,serializationProperty:`locPlaceholder`},{name:`allowClear:boolean`,default:!0},{name:`searchEnabled:boolean`,default:!0},{name:`allowCustomChoices:boolean`,default:!1,visibleIf:e=>!e.choicesFromQuestion,dependsOn:`choicesFromQuestion`},{name:`createCustomChoiceText`,serializationProperty:`locCreateCustomChoiceText`,visibleIf:e=>e.allowCustomChoices},{name:`textWrapEnabled:boolean`,default:!0},{name:`choicesLazyLoadEnabled:boolean`,default:!1,visible:!1},{name:`choicesLazyLoadPageSize:number`,default:25,visible:!1}
84,{name:`hideSelectedItems:boolean`,default:!1},{name:`closeOnSelect:boolean`},{name:`itemComponent`,visible:!1,default:``},{name:`searchMode`,default:`contains`,choices:[`contains`,`startsWith`]}],function(){return new LL(``)},`checkbox`),xF.Instance.registerQuestion(`tagbox`,e=>{let t=new LL(e);return t.choices=xF.DefaultChoices,t});var RL=class extends tI{constructor(){super(...arguments),this.doDragOver=()=>{if(this.parentElement.getType()===`imagepicker`)return;let e=this.domAdapter.draggedElementShortcut.querySelector(`.svc-item-value-controls__button`);e.style.cursor=`grabbing`},this.doBanDropHere=()=>{if(this.parentElement.getType()===`imagepicker`)return;let e=this.domAdapter.draggedElementShortcut.querySelector(`.svc-item-value-controls__button`);e.style.cursor=`not-allowed`}}get draggedElementType(){return`item-value`}createDraggedElementShortcut(e,t,n){if(this.parentElement.getType()===`imagepicker`)return this.createImagePickerShortcut(this.draggedElement,e,t,n);let r=nj.createElement(`div`);if(!r)return;r.className=`sv-drag-drop-choices-shortcut`;let i=t.closest(`[data-sv-drop-target-item-value]`).cloneNode(!0);i.classList.add(`sv-drag-drop-choices-shortcut__content`);let a=i.querySelector(`.svc-item-value-controls__drag-icon`);a.style.visibility=`visible`;let o=i.querySelector(`.svc-item-value-controls__remove`);o.style.backgroundColor=`transparent`,i.classList.remove(`svc-item-value--moveup`),i.classList.remove(`svc-item-value--movedown`),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,r.appendChild(i);let s=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-s.x,r.shortcutYOffset=n.clientY-s.y,this.isBottom=null,typeof this.onShortcutCreated==`function`&&this.onShortcutCreated(r),r}createImagePickerShortcut(e,t,n,r){let i=nj.createElement(`div`);if(!i)return;i.classList.add(`sv-drag-drop-image-picker-shortcut`);let a=n.closest(`[data-sv-drop-target-item-value]`);this.imagepickerControlsNode=a.querySelector(`.svc-image-item-value-controls`);let o=a.querySelector(`.sd-imagepicker__image-container`),s=a.querySelector(e.imageLink?`img`:`.sd-imagepicker__no-image`).cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display=`none`),o.style.width=s.width+`px`,o.style.height=s.height+`px`,s.style.objectFit=`cover`,s.style.borderRadius=`4px`,i.appendChild(s),i}getDropTargetByDataAttributeValue(e){let t;return t=this.parentElement.choices.filter(t=>``+t.value==e)[0],t}getChoices(){let e=this.parentElement;return e.getType()===`ranking`?e.selectToRankEnabled?e.unRankingChoices:e.rankingChoices:e.visibleChoices}isDropTargetValid(e,t){let n=this.getChoices();if(this.parentElement.getType()!==`imagepicker`){let e=n.indexOf(this.dropTarget),t=n.indexOf(this.draggedElement);if(t>e&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(t<e&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return n.indexOf(e)!==-1}isDropTargetDoesntChanged(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom}calculateIsBottom(e,t){let n=t.getBoundingClientRect();return e>=n.y+n.height/2}afterDragOver(e){let t=this.getChoices(),n=t.indexOf(this.dropTarget),r=t.indexOf(this.draggedElement);if(r<n&&this.isBottom===!0)t.splice(r,1),t.splice(n,0,this.draggedElement);else if(r>n&&this.isBottom===!1)t.splice(n,1),t.splice(r,0,this.dropTarget);else return;this.parentElement.getType()!==`imagepicker`&&(r!==n&&(e.classList.remove(`svc-item-value--moveup`),e.classList.remove(`svc-item-value--movedown`),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),r>n&&(this.dropTarget.isDragDropMoveDown=!0),r<n&&(this.dropTarget.isDragDropMoveUp=!0),super.ghostPositionChanged())}doDrop(){let e=this.parentElement.choices,t=this.getChoices().filter(t=>e.indexOf(t)!==-1),n=e.indexOf(this.draggedElement),r=t.indexOf(this.draggedElement);return e.splice(n,1),e.splice(r,0,this.draggedElement),this.parentElement}clear(){this.parentElement&&this.updateVisibleChoices(this.parentElement),this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display=`flex`,this.imagepickerControlsNode=null),super.clear()}updateVisibleChoices(e){e.getType()===`ranking`?e.updateRankingChoices():e.updateVisibleChoices()}},zL=class extends RL{constructor(){super(...arguments),this.isDragOverRootNode=!1,this.doDragOver=()=>{let e=this.domAdapter.draggedElementShortcut.querySelector(`.sv-ranking-item`);e.style.cursor=`grabbing`}
84,this.reorderRankedItem=(e,t,n)=>{if(t==n)return;let r=e.rankingChoices,i=r[t];e.isValueSetByUser=!0,r.splice(t,1),r.splice(n,0,i),this.updateDraggedElementShortcut(n+1)},this.doBanDropHere=()=>{if(this.isDragOverRootNode){this.allowDropHere=!0;return}let e=this.domAdapter.draggedElementShortcut.querySelector(`.sv-ranking-item`);e.style.cursor=`not-allowed`,rP&&this.parentElement.updateRankingChoices(!0)}}get draggedElementType(){return`ranking-item`}createDraggedElementShortcut(e,t,n){let r=nj.createElement(`div`);if(!r)return;r.className=this.shortcutClass+` sv-ranking-shortcut`;let i=t.cloneNode(!0);r.appendChild(i);let a=t.getBoundingClientRect();nj.getComputedStyle(this.survey.rootElement).direction===`rtl`?r.style.right=a.right:r.style.left=a.x,r.style.top=a.y,this.domAdapter.rootElement.append(r);let o=r.offsetHeight,s=n.clientY;return s>a.y+o&&(s=a.y+o-10),r.shortcutXOffset=n.clientX-a.x,r.shortcutYOffset=s-a.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(r.style.width=t.offsetWidth+`px`,r.style.height=t.offsetHeight+`px`),r}get shortcutClass(){return new X().append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,eP).toString()}getDropTargetByDataAttributeValue(e){return this.parentElement.rankingChoices[e]}findDropTargetNodeByDragOverNode(e){return this.isDragOverRootNode=this.getIsDragOverRootNode(e),super.findDropTargetNodeByDragOverNode(e)}getIsDragOverRootNode(e){return typeof e.className==`string`&&e.className.indexOf(`sv-ranking`)!==-1}isDropTargetValid(e,t){return this.parentElement.rankingChoices.indexOf(e)!==-1}calculateIsBottom(e,t){return this.dropTarget instanceof HP&&this.draggedElement!==this.dropTarget&&super.calculateIsBottom(e,t)}getIndices(e,t,n){let r=t.indexOf(this.draggedElement),i=n.indexOf(this.dropTarget);return r<0&&this.draggedElement&&(this.draggedElement=HP.getItemByValue(t,this.draggedElement.value)||this.draggedElement,r=t.indexOf(this.draggedElement)),i===-1?i=e.value.length:t==n?(!this.isBottom&&r<i&&i--,this.isBottom&&r>i&&i++):t!=n&&this.isBottom&&i++,{fromIndex:r,toIndex:i}}afterDragOver(e){let{fromIndex:t,toIndex:n}=this.getIndices(this.parentElement,this.parentElement.rankingChoices,this.parentElement.rankingChoices);this.reorderRankedItem(this.parentElement,t,n)}updateDraggedElementShortcut(e){var t;if((t=this.domAdapter)!=null&&t.draggedElementShortcut){let t=e===null?``:e+``,n=this.domAdapter.draggedElementShortcut.querySelector(`.sv-ranking-item__index`);n.innerText=t}}ghostPositionChanged(){this.parentElement.currentDropTarget=this.draggedElement,super.ghostPositionChanged()}doDrop(){return this.parentElement.setValue(),this.parentElement}clear(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),super.clear()}},BL=class extends zL{constructor(){super(...arguments),this.selectToRank=(e,t,n)=>{let r=[].concat(e.rankingChoices),i=e.unRankingChoices[t];r.splice(n,0,i),this.updateChoices(e,r)},this.unselectFromRank=(e,t,n)=>{let r=[].concat(e.rankingChoices);r.splice(t,1),this.updateChoices(e,r)}}findDropTargetNodeByDragOverNode(e){if(e.dataset.ranking===`from-container`||e.dataset.ranking===`to-container`)return e;let t=e.closest(`[data-ranking='to-container']`),n=e.closest(`[data-ranking='from-container']`);return this.parentElement.unRankingChoices.length===0&&n?n:this.parentElement.rankingChoices.length===0&&t?t:super.findDropTargetNodeByDragOverNode(e)}getDropTargetByDataAttributeValue(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]}getDropTargetByNode(e,t){return e.dataset.ranking===`to-container`?`to-container`:e.dataset.ranking===`from-container`||e.closest(`[data-ranking='from-container']`)?`from-container`:super.getDropTargetByNode(e,t)}isDropTargetValid(e,t){return e===`to-container`||e===`from-container`||super.isDropTargetValid(e,t)}afterDragOver(e){let t=this.parentElement,n=t.rankingChoices,r=t.unRankingChoices;if(this.isDraggedElementUnranked&&this.isDropTargetRanked){this.doRankBetween(e,r,n,this.selectToRank);return}if(this.isDraggedElementRanked&&this.isDropTargetRanked){this.doRankBetween(e,n,n,this.reorderRankedItem);return}if(this.isDraggedElementRanked&&!this.isDropTargetRanked){this.doRankBetween(e,n,r,this.unselectFromRank);return}}doRankBetween(e,t,n,r){let i=this.parentElement,{fromIndex:a,toIndex:o}=this.getIndices(i,t,n);r(i,a,o,e)}get isDraggedElementRanked(){return this.parentElement.rankingChoices.indexOf(this.draggedElement)!==-1}get isDropTargetRanked(){return this.dropTarget===`to-container`||this.parentElement.rankingChoices.indexOf(this.dropTarget)!==-1}get isDraggedElementUnranked(){return!this.isDraggedElementRanked}updateChoices(e,t){e.isValueSetByUser=!0,e.rankingChoices=t,e.updateUnRankingChoices(t)}},VL=class extends PL{constructor(e){super(e),this.domNode=null,this.onVisibleChoicesChanged=()=>
84{if(super.onVisibleChoicesChanged(),this.carryForwardStartUnranked&&!this.isValueSetByUser&&!this.selectToRankEnabled&&!this.defaultValue&&(this.value=[]),this.visibleChoices.length===1&&!this.selectToRankEnabled){this.value=[],this.value.push(this.visibleChoices[0].value),this.updateRankingChoices();return}if(this.isEmpty()){this.updateRankingChoices();return}if(this.selectToRankEnabled){this.updateRankingChoices();return}this.syncDefaultValueWithVisibleChoices(),this.syncValueWithVisibleChoices(),this.updateRankingChoices()},this.localeChanged=()=>{super.localeChanged(),this.updateRankingChoicesSync()},this._rankingChoicesAnimation=new bP(this.getChoicesAnimationOptions(!0),e=>{this._renderedRankingChoices=e},()=>this.renderedRankingChoices),this._unRankingChoicesAnimation=new bP(this.getChoicesAnimationOptions(!1),e=>{this._renderedUnRankingChoices=e},()=>this.renderedUnRankingChoices),this.rankingChoices=[],this.unRankingChoices=[],this._renderedRankingChoices=[],this._renderedUnRankingChoices=[],this.handlePointerDown=(e,t,n)=>{let r=e.target;this.isDragStartNodeValid(r)&&this.isAllowStartDrag(r,t)&&(this.draggedChoiceValue=t.value,this.draggedTargetNode=n,this.dragOrClickHelper.onPointerDown(e))},this.startDrag=e=>{let t=HP.getItemByValue(this.visibleChoices,this.draggedChoiceValue);this.dragDropRankingChoices.startDrag(e,t,this,this.draggedTargetNode)},this.handlePointerUp=(e,t,n)=>{if(!this.selectToRankEnabled)return;let r=e.target;this.isAllowStartDrag(r,t)&&this.handleKeydownSelectToRank(e,t,` `,!1)},this.handleKeydown=(e,t)=>{if(!this.isReadOnlyAttr&&!this.isDesignMode){let n=e.key,r=this.rankingChoices.indexOf(t);if(this.selectToRankEnabled){this.handleKeydownSelectToRank(e,t);return}if(n===`ArrowUp`&&r||n===`ArrowDown`&&r!==this.rankingChoices.length-1){let t=n==`ArrowUp`?r-1:r+1;this.dragDropRankingChoices.reorderRankedItem(this,r,t),this.setValueAfterKeydown(t,``,!0,e)}}},this.focusItem=(e,t)=>{if(this.domNode){if(this.selectToRankEnabled&&t){let n=`[data-ranking='`+t+`']`;this.domNode.querySelectorAll(n+` .`+this.cssClasses.item)[e].focus()}else this.domNode.querySelectorAll(`.`+this.cssClasses.item)[e].focus()}},this.isValueSetByUser=!1,this.setValue=()=>{let e=[];this.rankingChoices.forEach(t=>{e.push(t.value)}),this.value=e,this.isValueSetByUser=!0},this.dragOrClickHelper=new rI(this.startDrag)}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`selectToRankEnabled`&&(this.clearValue(!0),this.setDragDropRankingChoices(),this.updateRankingChoicesSync())}getType(){return`ranking`}supportElementsInChoice(){return!1}getItemTabIndex(e){if(!(this.isDesignMode||e.disabled))return 0}supportContainerQueries(){return this.selectToRankEnabled}get rootClass(){return new X().append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,this.isMobileMode()).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.hasCssError()).append(this.cssClasses.rootDragHandleAreaIcon,G.rankingDragHandleArea===`icon`).append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod,this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout===`horizontal`).append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout===`vertical`).append(this.cssClasses.rootSelectToRankSwapAreas,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout===`horizontal`&&this.selectToRankSwapAreas).toString()}isItemSelectedCore(e){return!this.selectToRankEnabled||super.isItemSelectedCore(e)}getItemClassCore(e,t){return new X().append(super.getItemClassCore(e,t)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===e).toString()}getContainerClasses(e){let t=!1,n=e===`to`,r=e===`from`;return n?t=this.renderedRankingChoices.length===0:r&&(t=this.renderedUnRankingChoices.length===0),new X().append(this.cssClasse
84s.container).append(this.cssClasses.containerToMode,n).append(this.cssClasses.containerFromMode,r).append(this.cssClasses.containerEmptyMode,t).toString()}isItemCurrentDropTarget(e){return this.dragDropRankingChoices.dropTarget===e}get ghostPositionCssClass(){return this.ghostPosition===`top`?this.cssClasses.dragDropGhostPositionTop:this.ghostPosition===`bottom`?this.cssClasses.dragDropGhostPositionBottom:``}getItemIndexClasses(e){let t;return t=this.selectToRankEnabled?this.unRankingChoices.indexOf(e)!==-1:this.isEmpty(),new X().append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,t).toString()}getNumberByIndex(e){return this.isEmpty()?``:e+1+``}updateRankingChoicesSync(){this.blockAnimations(),this.updateRankingChoices(),this.releaseAnimations()}setSurveyImpl(e,t){super.setSurveyImpl(e,t),this.setDragDropRankingChoices(),this.updateRankingChoicesSync()}isAnswerCorrect(){return K.isArraysEqual(this.value,this.correctAnswer,!1)}get requireStrictCompare(){return!0}onSurveyValueChanged(e){super.onSurveyValueChanged(e),!this.isLoadingFromJson&&(this.syncValueWithVisibleChoices(),this.updateRankingChoices())}onSurveyLoad(){this.blockAnimations(),super.onSurveyLoad(),this.syncDefaultValueWithVisibleChoices(),this.syncValueWithVisibleChoices(),this.updateRankingChoices(),this.releaseAnimations()}updateValueFromSurvey(e,t){super.updateValueFromSurvey(e,t),e&&(this.isValueSetByUser=!0)}getRankedValueByVisibleChoices(e){let t=[],n=this.visibleChoices.filter(e=>this.isItemInList(e));
84return(Array.isArray(e)?e:[]).forEach(e=>{HP.getItemByValue(n,e)&&t.indexOf(e)<0&&t.push(e)}),n.forEach(e=>{t.indexOf(e.value)<0&&t.push(e.value)}),t}syncValueWithVisibleChoices(){if(this.selectToRankEnabled||this.isEmpty())return;let e=this.getRankedValueByVisibleChoices(this.value);this.isTwoValueEquals(this.value,e)||(this.value=e)}syncDefaultValueWithVisibleChoices(){if(!this.isDesignMode||this.isLoadingFromJson||this.selectToRankEnabled)return;let e=this.defaultValue;if(!Array.isArray(e)||e.length===0)return;let t=this.getRankedValueByVisibleChoices(e);this.isTwoValueEquals(e,t)||(this.defaultValue=t)}getChoicesAnimationOptions(e){return{getKey(e){return e.value},getRerenderEvent:()=>this.onElementRerendered,isAnimationEnabled:()=>this.animationAllowed&&!this.isDesignMode&&this.isVisible&&!!this.domNode,getReorderOptions:(e,t)=>{let n=``;return e!==this.currentDropTarget&&(n=t?`sv-dragdrop-movedown`:`sv-dragdrop-moveup`),{cssClass:n}},getLeaveOptions:t=>{let n=e?this.renderedRankingChoices:this.renderedUnRankingChoices;return this.renderedSelectToRankAreasLayout==`vertical`&&n.length==1&&n.indexOf(t)>=0?{cssClass:`sv-ranking-item--animate-item-removing-empty`}:{cssClass:`sv-ranking-item--animate-item-removing`,onBeforeRunAnimation:e=>{e.style.setProperty(`--animation-height`,e.offsetHeight+`px`)}}},getEnterOptions:t=>{let n=e?this.renderedRankingChoices:this.renderedUnRankingChoices;return this.renderedSelectToRankAreasLayout==`vertical`&&n.length==1&&n.indexOf(t)>=0?{cssClass:`sv-ranking-item--animate-item-adding-empty`}:{cssClass:`sv-ranking-item--animate-item-adding`,onBeforeRunAnimation:e=>{e.style.setProperty(`--animation-height`,e.offsetHeight+`px`)}}},getAnimatedElement:t=>{var n;let r=this.cssClasses,i=``;this.selectToRankEnabled&&(!e&&r.containerFromMode?i=RN(r.containerFromMode):e&&r.containerToMode&&(i=RN(r.containerToMode)));let a=e?this.renderedRankingChoices.indexOf(t):this.renderedUnRankingChoices.indexOf(t);return(n=this.domNode)==null?void 0:n.querySelector(`${i} [data-sv-drop-target-ranking-item='${a}']`)},allowSyncRemovalAddition:!0}}get rankingChoicesAnimation(){return this._rankingChoicesAnimation}get unRankingChoicesAnimation(){return this._unRankingChoicesAnimation}get renderedRankingChoices(){return this._renderedRankingChoices}set renderedRankingChoices(e){this.rankingChoicesAnimation.sync(e)}get renderedUnRankingChoices(){return this._renderedUnRankingChoices}set renderedUnRankingChoices(e){this.unRankingChoicesAnimation.sync(e)}updateRenderedRankingChoices(){this.renderedRankingChoices=this.rankingChoices}updateRenderedUnRankingChoices(){this.renderedUnRankingChoices=this.unRankingChoices}updateRankingChoices(e=!1){if(this.selectToRankEnabled){this.updateRankingChoicesSelectToRankMode(e);return}let t=[];if(e&&(this.rankingChoices=[]),this.isEmpty()){this.rankingChoices=this.visibleChoices;return}this.value.forEach(e=>{this.visibleChoices.forEach(n=>{n.value===e&&t.push(n)})}),this.visibleChoices.forEach(e=>{t.indexOf(e)<0&&t.push(e)}),this.rankingChoices=t}updateUnRankingChoices(e){let t=[];this.visibleChoices.forEach(e=>{t.push(e)}),e.forEach(e=>{t.forEach((n,r)=>{n.value===e.value&&t.splice(r,1)})}),this.unRankingChoices=t}updateRankingChoicesSelectToRankMode(e){let t=[];this.isEmpty()||this.value.forEach(e=>{this.visibleChoices.forEach(n=>{n.value===e&&t.push(n)})}),this.updateUnRankingChoices(t),this.rankingChoices=t}endLoadingFromJson(){super.endLoadingFromJson(),this.setDragDropRankingChoices()}setDragDropRankingChoices(){this.dragDropRankingChoices=this.createDragDropRankingChoices()}createDragDropRankingChoices(){return this.selectToRankEnabled?new BL(this.survey,null,this.longTap):new zL(this.survey,null,this.longTap)}isDragStartNodeValid(e){return G.rankingDragHandleArea!==`icon`||e.classList.contains(this.cssClasses.itemIconHoverMod)}isAllowStartDrag(e,t){return!this.isReadOnly&&!this.isDesignMode&&this.canStartDragDueMaxSelectedChoices(e)&&this.canStartDragDueItemEnabled(t)}canStartDragDueMaxSelectedChoices(e){return!this.selectToRankEnabled||!e.closest(`[data-ranking='from-container']`)||this.checkMaxSelectedChoicesUnreached()}canStartDragDueItemEnabled(e){return e.enabled}checkMaxSelectedChoicesUnreached(){if(this.maxSelectedChoices<1)return!0;var e=this.value;return(Array.isArray(e)?e.length:0)<this.maxSelectedChoices}
84afterRenderQuestionElement(e){this.domNode=e,super.afterRenderQuestionElement(e)}beforeDestroyQuestionElement(e){this.domNode=void 0,super.beforeDestroyQuestionElement(e)}supportSelectAll(){return!1}supportOther(){return!1}supportNone(){return!1}supportRefuse(){return!1}supportDontKnow(){return!1}handleKeydownSelectToRank(e,t,n,r=!0){if(this.isDesignMode)return;let i=e.key;if(n&&(i=n),i!==` `&&i!==`ArrowUp`&&i!==`ArrowDown`)return;let a=this.dragDropRankingChoices,o=this.rankingChoices,s=o.indexOf(t)!==-1,c=(s?o:this.unRankingChoices).indexOf(t);if(c<0)return;let l;if(i===` `&&!s){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(t))return;l=this.value.length,a.selectToRank(this,c,l),this.setValueAfterKeydown(l,`to-container`,r,e);return}if(!s)return;if(i===` `){a.unselectFromRank(this,c),l=this.unRankingChoices.indexOf(t),this.setValueAfterKeydown(l,`from-container`,r,e);return}let u=i===`ArrowUp`?-1:+(i===`ArrowDown`);u!==0&&(l=c+u,!(l<0||l>=o.length)&&(a.reorderRankedItem(this,c,l),this.setValueAfterKeydown(l,`to-container`,r,e)))}setValueAfterKeydown(e,t,n=!0,r){this.setValue(),n&&setTimeout(()=>{this.focusItem(e,t)},1),r&&r.preventDefault()}getIconHoverCss(){return new X().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()}getIconFocusCss(){return new X().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()}getDefaultItemComponent(){return`sv-ranking-item`}get renderedSelectToRankAreasLayout(){return this.isMobileMode()?`vertical`:this.selectToRankAreasLayout}isMobileMode(){return eP}get useFullItemSizeForShortcut(){return this.getPropertyValue(`useFullItemSizeForShortcut`)}set useFullItemSizeForShortcut(e){this.setPropertyValue(`useFullItemSizeForShortcut`,e)}get dragDropSvgIcon(){return this.cssClasses.dragDropSvgIconId||`#icon-drag-24x24`}get arrowsSvgIcon(){return this.cssClasses.arrowsSvgIconId||`#icon-reorder-24x24`}get dashSvgIcon(){return this.cssClasses.dashSvgIconId||`#icon-rankingundefined-16x16`}get isNewA11yStructure(){return!1}get ariaRole(){return`group`}};q([mN({onSet:(e,t)=>
84t.updateRenderedRankingChoices(),onRemove:(e,t,n)=>n.updateRenderedRankingChoices(),onPush:(e,t,n)=>n.updateRenderedRankingChoices()})],VL.prototype,`rankingChoices`,void 0),q([mN({onSet:(e,t)=>t.updateRenderedUnRankingChoices(),onRemove:(e,t,n)=>n.updateRenderedUnRankingChoices(),onPush:(e,t,n)=>n.updateRenderedUnRankingChoices()})],VL.prototype,`unRankingChoices`,void 0),q([mN()],VL.prototype,`_renderedRankingChoices`,void 0),q([mN()],VL.prototype,`_renderedUnRankingChoices`,void 0),q([Y({defaultValue:null})],VL.prototype,`currentDropTarget`,void 0),q([Y()],VL.prototype,`longTap`,void 0),q([Y({defaultValue:!1})],VL.prototype,`selectToRankEnabled`,void 0),q([Y({defaultValue:!1})],VL.prototype,`selectToRankSwapAreas`,void 0),q([Y({defaultValue:!0})],VL.prototype,`carryForwardStartUnranked`,void 0),q([Y()],VL.prototype,`selectToRankAreasLayout`,void 0),q([Y({localizable:{defaultStr:!0,markdown:!0}})],VL.prototype,`selectToRankEmptyRankedAreaText`,void 0),q([Y({localizable:{defaultStr:!0,markdown:!0}})],VL.prototype,`selectToRankEmptyUnrankedAreaText`,void 0),J.addClass(`ranking`,[{name:`showOtherItem`,visible:!1,isSerializable:!1},{name:`otherText`,visible:!1,isSerializable:!1},{name:`otherErrorText`,visible:!1,isSerializable:!1},{name:`storeOthersAsComment`,visible:!1,isSerializable:!1},{name:`showNoneItem`,visible:!1,isSerializable:!1},{name:`showRefuseItem`,visible:!1,isSerializable:!1},{name:`showDontKnowItem`,visible:!1,isSerializable:!1},{name:`noneText`,visible:!1,isSerializable:!1},{name:`showSelectAllItem`,visible:!1,isSerializable:!1},{name:`selectAllText`,visible:!1,isSerializable:!1},{name:`colCount:number`,visible:!1,isSerializable:!1},{name:`separateSpecialChoices`,visible:!1,isSerializable:!1},{name:`longTap`,default:!0,visible:!1,isSerializable:!1},{name:`selectToRankEnabled:switch`,default:!1,visible:!0,isSerializable:!0},{name:`selectToRankSwapAreas:switch`,default:!1,visible:!1,isSerializable:!0,dependsOn:`selectToRankEnabled`},{name:`selectToRankAreasLayout`,default:`horizontal`,choices:[`horizontal`,`vertical`],dependsOn:`selectToRankEnabled`,visibleIf:e=>!!e.selectToRankEnabled,visible:!0,isSerializable:!0},{name:`selectToRankEmptyRankedAreaText:text`,serializationProperty:`locSelectToRankEmptyRankedAreaText`,dependsOn:`selectToRankEnabled`,visibleIf:e=>!!e.selectToRankEnabled},{name:`selectToRankEmptyUnrankedAreaText:text`,serializationProperty:`locSelectToRankEmptyUnrankedAreaText`,dependsOn:`selectToRankEnabled`,visibleIf:e=>!!e.selectToRankEnabled},{name:`maxSelectedChoices:number`,visible:!0,default:0,dependsOn:`selectToRankEnabled`,visibleIf:e=>!!e.selectToRankEnabled,isSerializable:!0},{name:`minSelectedChoices:number`,visible:!0,default:0,dependsOn:`selectToRankEnabled`,visibleIf:e=>!!e.selectToRankEnabled,isSerializable:!0},{name:`itemComponent`,visible:!1,default:`sv-ranking-item`}],function(){return new VL(``)},`checkbox`),xF.Instance.registerQuestion(`ranking`,e=>{let t=new VL(e);return t.choices=xF.DefaultChoices,t});var HL=class extends lL{constructor(e){super(e)}get textAreaModel(){return this.textAreaModelValue||(this.textAreaModelValue=new NP(this.getTextAreaOptions())),this.textAreaModelValue}getTextAreaOptions(){let e=this,t=t=>{K.isTwoValueEquals(e.value,t,!1,!0,!1)||(e.value=t)};return{question:this,id:()=>this.inputId,propertyNames:[`value`],className:()=>this.className,placeholder:()=>this.renderedPlaceholder,isDisabledAttr:()=>this.isDisabledAttr,isReadOnlyAttr:()=>this.isReadOnlyAttr||this.forceIsInputReadOnly||!1,autoGrow:()=>this.renderedAutoGrow,maxLength:()=>this.getMaxLength(),rows:()=>this.rows,cols:()=>this.cols,ariaRequired:()=>this.a11y_input_ariaRequired,ariaLabel:()=>this.a11y_input_ariaLabel,ariaLabelledBy:()=>this.a11y_input_ariaLabelledBy,ariaDescribedBy:()=>this.a11y_input_ariaDescribedBy,ariaInvalid:()=>this.a11y_input_ariaInvalid,ariaErrormessage:()=>this.a11y_input_ariaErrormessage,getTextValue:()=>this.value,onTextAreaChange:e=>{t(e.target.value)},onTextAreaInput:e=>{this.onInput(e)},onTextAreaKeyDown:e=>{this.onKeyDown(e)},onTextAreaFocus:e=>{this.onFocus(e)},onTextAreaBlur:e=>{this.onBlur(e)}}}get renderedAutoGrow(){let e=this.autoGrow;return e===void 0&&this.survey?this.survey.autoGrowComment:!!e}get renderedAllowResize(){let e=this.allowResize;return e===void 0&&this.survey?this.survey.allowResizeComment:!!e}get resizeStyle(){return this.renderedAllowResize?`both`:`none`}getType(){return`comment`}afterRenderQuestionElement(e){this.element=(e==null?void 0:e.querySelector(`#${this.inputId}
84`))||e,super.afterRenderQuestionElement(e)}beforeDestroyQuestionElement(e){super.beforeDestroyQuestionElement(e),this.element=void 0}onInput(e){this.isInputTextUpdate&&(this.value=e.target.value),this.updateRemainingCharacterCounter(e.target.value)}onBlurCore(e){super.onBlurCore(e)}onKeyDown(e){this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),!this.acceptCarriageReturn&&(e.key===`Enter`||e.keyCode===13)&&(e.preventDefault(),e.stopPropagation())}setNewValue(e){!this.acceptCarriageReturn&&e&&(e=e.replace(RegExp(`(\r 85| 86|\r)`,`gm`),``)),super.setNewValue(e)}getValueSeparator(){return` 87`}notifyStateChanged(e){super.notifyStateChanged(e),this.isCollapsed||this.textAreaModel.updateElement()}get className(){return(this.cssClasses?this.getControlClass():`panel-comment-root`)||void 0}};q([Y()],HL.prototype,`rows`,void 0),q([Y()],HL.prototype,`cols`,void 0),q([Y()],HL.prototype,`acceptCarriageReturn`,void 0),q([Y()],HL.prototype,`autoGrow`,void 0),q([Y()],HL.prototype,`allowResize`,void 0),J.addClass(`comment`,[{name:`maxLength:number`,default:-1},{name:`cols:number`,default:50,visible:!1,isSerializable:!1},{name:`rows:number`,default:4},{name:`placeholder`,alternativeName:`placeHolder`,serializationProperty:`locPlaceholder`},{name:`textUpdateMode`,default:`default`,choices:[`default`,`onBlur`,`onTyping`]},{name:`autoGrow:boolean`,defaultFunc:()=>void 0},{name:`allowResize:boolean`,defaultFunc:()=>void 0},{name:`acceptCarriageReturn:boolean`,default:!0,visible:!1}],function(){return new HL(``)},`textbase`),xF.Instance.registerQuestion(`comment`,e=>new HL(e));function UL(){if(UL.isIEOrEdge===void 0){let e=navigator.userAgent,t=e.indexOf(`MSIE `),n=e.indexOf(`Trident/`);UL.isIEOrEdge=e.indexOf(`Edge/`)>0||n>0||t>0}return UL.isIEOrEdge}var WL=`environment`,GL=`user`,KL=class e{constructor(){this.canFlipValue=void 0}static clear(){e.cameraList=void 0,e.cameraIndex=-1}static setCameraList(t){let n=function(e){let t=e.label.toLocaleLowerCase();return t.indexOf(GL)>-1?GL:t.indexOf(WL)>-1?WL:t.indexOf(`front`)>-1?GL:t.indexOf(`back`)>-1?WL:``};e.clear(),Array.isArray(t)&&t.length>0&&(e.cameraIndex=-1,t.sort((e,r)=>{if(e===r)return 0;if(e.label!==r.label){let t=n(e),i=n(r);if(t!==i){if(t===GL)return-1;if(i===GL)return 1;if(t===WL)return-1;if(i===WL)return 1}}return t.indexOf(e)<t.indexOf(r)?-1:1})),e.cameraList=t}hasCamera(t){if(e.cameraList!==void 0){this.hasCameraCallback(t);return}if(e.mediaDevicesCallback){e.mediaDevicesCallback(e=>{this.setVideoInputs(e),this.hasCameraCallback(t)});return}typeof navigator<`u`&&navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then(e=>{this.setVideoInputs(e),this.hasCameraCallback(t),this.updateCanFlipValue()}).catch(n=>{e.cameraList=null,this.hasCameraCallback(t)}):(e.cameraList=null,this.hasCameraCallback(t))}getMediaConstraints(t){let n=e.cameraList;if(!Array.isArray(n)||n.length<1)return;e.cameraIndex<0&&(e.cameraIndex=0);let r=n[e.cameraIndex],i={};return r&&r.deviceId?i.deviceId={exact:r.deviceId}:i.facingMode=e.cameraFacingMode,t&&(t!=null&&t.height&&(i.height={ideal:t.height}),t!=null&&t.width&&(i.width={ideal:t.width})),{video:i,audio:!1}}startVideo(t,n,r,i){if(!t){n(void 0);return}t.style.width=`100%`,t.style.height=`auto`,t.style.height=`100%`,t.style.objectFit=`contain`;let a=this.getMediaConstraints({width:r,height:i});navigator.mediaDevices.getUserMedia(a).then(r=>{var i;t.srcObject=r,!((i=e.cameraList[e.cameraIndex])!=null&&i.deviceId)&&r.getTracks()[0].getCapabilities().facingMode&&(e.canSwitchFacingMode=!0,this.updateCanFlipValue()),t.play(),n(r)}).catch(e=>{n(void 0)})}getImageSize(e){return{width:e.videoWidth,height:e.videoHeight}}snap(e,t){if(!e||!nj.isAvailable())return!1;let n=nj.getDocument().createElement(`canvas`),r=this.getImageSize(e);n.height=r.height,n.width=r.width;let i=n.getContext(`2d`);return i.clearRect(0,0,n.width,n.height),i.drawImage(e,0,0,n.width,n.height),n.toBlob(t,`image/png`),!0}updateCanFlipValue(){let t=e.cameraList;this.canFlipValue=Array.isArray(t)&&t.length>1||e.canSwitchFacingMode,this.onCanFlipChangedCallback&&this.onCanFlipChangedCallback(this.canFlipValue)}canFlip(e){return this.canFlipValue===void 0&&this.updateCanFlipValue(),e&&(this.onCanFlipChangedCallback=e),this.canFlipValue}flip(){this.canFlip()&&(e.canSwitchFacingMode?e.cameraFacingMode=e.cameraFacingMode===GL?`environment`:GL:e.cameraIndex>=e.cameraList.length-1?e.cameraIndex=0:e.cameraIndex++)}hasCameraCallback(t){t(Array.isArray(e.cameraList))}setVideoInputs(t){let n=[];
87t.forEach(e=>{e.kind===`videoinput`&&n.push(e)}),e.setCameraList(n.length>0?n:null)}};KL.cameraIndex=-1,KL.cameraFacingMode=GL,KL.canSwitchFacingMode=!1;function qL(e,t,n){let r=atob(e.split(`,`)[1]),i=new Uint8Array(r.split(``).map(e=>e.charCodeAt(0))).buffer;return new File([i],t,{type:n})}var JL=G.customFileCategoryName,YL=class extends zP{constructor(){super(...arguments),this.isUploading=!1,this.onUploadStateChanged=this.addEvent(),this.onStateChanged=this.addEvent()}stateChanged(e){this.currentState!=e&&(e===`loading`&&(this.isUploading=!0),e===`loaded`&&(this.isUploading=!1),e===`error`&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))}get showLoadingIndicator(){return this.isUploading}get fileCallbacks(){return this.survey}clearValue(e,t){this.clearOnDeletingContainer(),super.clearValue(e,t)}clearOnDeletingContainer(){this.fileCallbacks&&this.fileCallbacks.clearFiles(this,this.name,this.value,null,()=>{})}onCheckForErrors(e,t,n){super.onCheckForErrors(e,t,n
87),this.isUploading&&this.waitForUpload&&e.push(new aN(this.getLocalizationString(`uploadingFile`),this))}uploadFiles(e,t){this.fileCallbacks&&(this.errors=[],this.stateChanged(`loading`),this.fileCallbacks.uploadFiles(this,this.name,e,(e,t)=>{Array.isArray(e)&&(this.setValueFromResult(e),Array.isArray(t)&&(t.forEach(e=>this.errors.push(new aN(e,this))),this.stateChanged(`error`))),e===`success`&&Array.isArray(t)&&this.setValueFromResult(t),e===`error`&&(typeof t==`string`&&this.errors.push(new aN(t,this)),Array.isArray(t)&&t.length>0&&t.forEach(e=>this.errors.push(new aN(e,this))),this.stateChanged(`error`)),this.stateChanged(`loaded`)},t))}loadPreview(e){}onChangeQuestionValue(e){super.onChangeQuestionValue(e),this.stateChanged(this.isEmpty()?`empty`:`loaded`)}getIsQuestionReady(){return super.getIsQuestionReady()&&!this.isFileLoading}get isFileLoading(){return this.isFileLoadingValue}set isFileLoading(e){this.isFileLoadingValue=e,this.updateIsReady()}};q([Y()],YL.prototype,`isUploading`,void 0),q([Y({defaultValue:`empty`})],YL.prototype,`currentState`,void 0),q([Y()],YL.prototype,`storeDataAsText`,void 0),q([Y()],YL.prototype,`waitForUpload`,void 0);var XL=class e extends qM{static getId(){return`sv_sfp_`+e.pageCounter++}constructor(t,n){super(),this.question=t,this.index=n,this.id=e.getId()}get css(){return this.question.cssClasses.page}};XL.pageCounter=0,q([mN({})],XL.prototype,`items`,void 0);var ZL=class extends YL{get fileNavigatorVisible(){let e=this.showLoadingIndicator,t=this.isPlayingVideo,n=this.containsMultiplyFiles,r=this.pageSize<this.previewValue.length;return!e&&!t&&n&&r}get pagesCount(){return Math.ceil(this.previewValue.length/this.pageSize)}get actionsContainerVisible(){let e=this.showLoadingIndicator,t=this.isPlayingVideo;return!e&&!t}constructor(e){super(e),this.isDragging=!1,this.canFlipCameraValue=void 0,this.prevPreviewLength=0,this.isClearingFiles=!1,this._renderedPages=[],this.pagesAnimation=new xP(this.getPagesAnimationOptions(),e=>{this._renderedPages=e},()=>this.renderedPages),this.calcAvailableItemsCount=(e,t,n)=>{let r=Math.floor(e/(t+n));return(r+1)*(t+n)-n<=e&&r++,r},this.dragCounter=0,this.onDragEnter=e=>{this.canDragDrop()&&(e.preventDefault(),this.isDragging=!0,this.dragCounter++)},this.onDragOver=e=>{if(!this.canDragDrop())return e.returnValue=!1,!1;e.dataTransfer.dropEffect=`copy`,e.preventDefault()},this.onDrop=e=>{if(this.canDragDrop()){this.isDragging=!1,this.dragCounter=0,e.preventDefault();let t=e.dataTransfer;this.onChange(t)}},this.onDragLeave=e=>{this.canDragDrop()&&(this.dragCounter--,this.dragCounter===0&&(this.isDragging=!1))},this.doChange=e=>{var t=e.target||e.srcElement;this.onChange(t)},this.doClean=()=>{if(this.needConfirmRemoveFile){ZF({message:this.confirmRemoveAllMessage,funcOnYes:()=>{this.clearFilesCore()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.clearFilesCore()},this.doDownloadFileFromContainer=e=>{e.stopPropagation();let t=e.currentTarget;if(t&&t.getElementsByTagName){let e=t.getElementsByTagName(`a`)[0];e==null||e.click()}},this.doDownloadFile=(e,t)=>{e.stopPropagation(),UL()&&(e.preventDefault(),_I(t.content,t.name))},this.createNewArray(`acceptedCategories`,void 0,e=>{e===JL&&(this.acceptedTypes=void 0)}),this.actionsContainerValue=this.createActionsContainer()}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`acceptedTypes`&&this.updateAcceptedCategories(),e===`acceptedCategories`&&(!Array.isArray(n)||n.indexOf(JL)<0)&&(this.acceptedTypes=void 0)}get actionsContainer(){return this.actionsContainerValue.actions.length===0&&(this.actionsContainerValue.actions=this.createContainerActions()),this.actionsContainerValue}get fileNavigator(){return this.fileNavigatorValue||(this.fileNavigatorValue=this.createActionsContainer(),this.fileNavigatorValue.actions=this.createFileNavigatorActions()),this.fileNavigatorValue}createActionsContainer(){let e=new XN;return e.locOwner=this,e}createContainerActions(){return[new kN({iconName:`icon-choosefile`,id:`sv-file-choose-file`,iconSize:`auto`,data:{question:this},enabledIf:()=>!this.isInputReadOnly,visible:new KM(()=>
87{let e=this.isDesignMode,t=this.sourceType===`camera`;return!e&&this.hasFileUI||e&&!t}),component:`sv-file-choose-btn`}),new kN({iconName:`icon-takepicture_24x24`,id:`sv-file-start-camera`,iconSize:`auto`,locTitle:this.locTakePhotoCaption,visible:new KM(()=>{let e=this.isDesignMode,t=this.sourceType===`file`;return!e&&this.hasVideoUI||e&&!t}),showTitle:new KM(()=>!this.isAnswered),enabledIf:()=>!this.isInputReadOnly,action:()=>{this.startVideo()}}),new kN({iconName:`icon-clear`,id:`sv-file-clean`,iconSize:`auto`,locTitle:this.locClearButtonCaption,showTitle:!1,enabledIf:()=>!this.isInputReadOnly,visible:new KM(()=>this.isAnswered),innerCss:new KM(()=>this.cssClasses.removeButton),action:()=>{this.doClean()}})]}createFileNavigatorActions(){return this.fileIndexAction=new kN({id:`fileIndex`,css:`sv-action--file-index`,title:this.getFileIndexCaption(),enabled:!1}),this.prevFileAction=new kN({id:`prevPage`,iconSize:16,action:()=>{this.navigationDirection=`left`,this.indexToShow=this.previewValue.length&&(this.indexToShow-1+this.pagesCount)%this.pagesCount||0,this.updateFileIndexActionTitle()}}),this.nextFileAction=new kN({id:`nextPage`,iconSize:16,action:()=>{this.navigationDirection=`right`,this.indexToShow=this.previewValue.length&&(this.indexToShow+1)%this.pagesCount||0,this.updateFileIndexActionTitle()}}),this.updateFileNavigatorActionsCss(this.cssClasses),[this.prevFileAction,this.fileIndexAction,this.nextFileAction]}updateFileIndexActionTitle(){this.fileIndexAction&&(this.fileIndexAction.title=this.getFileIndexCaption())}get closeCameraAction(){return this.closeCameraActionValue||(this.closeCameraActionValue=new kN({iconName:`icon-closecamera`,id:`sv-file-close-camera`,iconSize:`auto`,innerCss:new KM(()=>new X().append(this.cssClasses.contextButton).append(this.cssClasses.closeCameraButton).toString()),action:()=>{this.stopVideo()}}),this.closeCameraActionValue.cssClasses={}),this.closeCameraActionValue}get takePictureAction(){return this.takePictureActionValue||(this.takePictureActionValue=new kN({iconName:`icon-takepicture`,id:`sv-file-take-picture`,iconSize:`auto`,innerCss:new KM(()=>new X().append(this.cssClasses.contextButton).append(this.cssClasses.takePictureButton).toString()),locTitle:this.locTakePhotoCaption,showTitle:!1,action:()=>{this.snapPicture()}}),this.takePictureActionValue.cssClasses={}),this.takePictureActionValue}get changeCameraAction(){return this.changeCameraActionValue||(this.changeCameraActionValue=new kN({iconName:`icon-changecamera`,id:`sv-file-change-camera`,iconSize:`auto`,innerCss:new KM(()=>new X().append(this.cssClasses.contextButton).append(this.cssClasses.changeCameraButton).toString()),visible:new KM(()=>this.canFlipCamera()),action:()=>{this.flipCamera()}}),this.changeCameraActionValue.cssClasses={}),this.changeCameraActionValue}get videoId(){return this.id+`_video`}get hasVideoUI(){return this.currentMode!==`file`}get hasFileUI(){return this.currentMode!==`camera`}startVideo(){this.currentMode===`file`||this.isDesignMode||this.isPlayingVideo||(this.setIsPlayingVideo(!0),setTimeout(()=>{this.startVideoInCamera()},0))}get videoHtmlElement(){var e;return(e=this.rootElement)==null?void 0:e.querySelector(`#${this.videoId}`)}startVideoInCamera(){this.camera.startVideo(this.videoHtmlElement,e=>{this.videoStream=e,e||this.stopVideo()},ij(this.imageWidth),ij(this.imageHeight))}stopVideo(){this.setIsPlayingVideo(!1),this.closeVideoStream()}snapPicture(){this.isPlayingVideo&&(this.camera.snap(this.videoHtmlElement,e=>{if(e){let t=new File([e],`snap_picture.png`,{type:`image/png`});this.loadFiles([t],`camera`)}}),this.stopVideo())}canFlipCamera(){return this.canFlipCameraValue===void 0&&(this.canFlipCameraValue=this.camera.canFlip(e=>{this.canFlipCameraValue=e})),this.canFlipCameraValue}flipCamera(){this.canFlipCamera()&&(this.closeVideoStream(),this.camera.flip(),this.startVideoInCamera())}closeVideoStream(){this.videoStream&&(this.videoStream.getTracks().forEach(e=>{e.stop()}),this.videoStream=void 0)}onHidingContent(){super.onHidingContent(),this.stopVideo()}updateFileNavigatorActionsCss(e){this.prevFileAction&&(this.prevFileAction.iconName=e.leftIconId),this.nextFileAction&&(this.nextFileAction.iconName=e.rightIconId)}updateElementCssCore(e){super.updateElementCssCore(e),this.updateFileNavigatorActionsCss(e),this.updateCurrentMode()}getFileIndexCaption(){return this.getLocalizationFormatString(`indexText`,this.indexToShow+1,this.pagesCount)}updateFileNavigator(){this.updatePages(),this.navigationDirection=void 0,this.indexToShow=this.previewValue.length&&(this.indexToShow+this.pagesCount)%this.pagesCount||0,this.updateFileIndexActionTitle()}updateRenderedPages(){this.pages&&this.pages[this.indexToShow]&&(this.renderedPages=[this.pages[this.indexToShow]])}updatePages(){this.blockAnimations();let e;this.pages=[],this.renderedPages=[],this.previewValue.forEach((t,n)=>{n%this.pageSize==0&&(e=new XL(this,this.pages.length),this.pages.push(e)),e.items.push(t)}),this.releaseAnimations(),this.updateRenderedPages()}previewValueChanged(){this.navigationDirection=void 0,this.previewValue.length!==this.prevPreviewLength&&(this.previewValue.length>0?this.prevPreviewLength>this.previewValue.length?this.indexToShow>=this.pagesCount&&this.indexToShow>0&&(this.indexToShow=this.pagesCount-1,this.navigationDirection=`left-delete`):this.indexToShow=Math.floor(this.prevPreviewLength/this.pageSize):this.indexToShow=0),this.updatePages(),this.updateFileIndexActionTitle(),this.containsMultiplyFiles=this.previewValue.length>1,this.previewValue.length>0&&!this.calculatedGapBetweenItems&&!this.calculatedItemWidth&&setTimeout(()=>{this.processResponsiveness(0,this._width)},1),this.prevPreviewLength=this.previewValue.length}getType(){return`file`}onChangeQuestionValue(e){super.onChangeQuestionValue(e),this.isLoadingFromJson||this.loadPreview(e)}updateAcceptedCategories(){this.acceptedTypes&&this.acceptedCategories.indexOf(JL)<0&&this.acceptedCategories.push(JL)}get renderedAcceptedTypes(){let e=[];
87this.acceptedCategories.forEach(t=>{let n=G.acceptedFileCategories[t];n&&e.push(...n)});let t=t=>{t.forEach(t=>{t&&e.indexOf(t)<0&&e.push(t)})};return Array.isArray(this.acceptedTypes)?t(this.acceptedTypes):t((this.acceptedTypes||``).split(`,`)),e.length>0?e.join(`,`):void 0}chooseFile(e){if(!this.rootElement)return;let t=this.rootElement.querySelector(`#${this.inputId}`);t&&(e.preventDefault(),e.stopImmediatePropagation(),t&&(this.fileCallbacks?this.fileCallbacks.chooseFiles(t,e=>this.loadFiles(e,`file`),{element:this,elementType:this.getType(),propertyName:this.name}):t.click()))}getConfirmRemoveMessage(e){return this.confirmRemoveMessage.format(e)}get locRenderedPlaceholder(){return this.locRenderedPlaceholderValue===void 0&&(this.locRenderedPlaceholderValue=new KM(()=>{let e=this.isReadOnly,t=!this.isDesignMode&&this.hasFileUI||this.isDesignMode&&this.sourceType!=`camera`,n=!this.isDesignMode&&this.hasVideoUI||this.isDesignMode&&this.sourceType!=`file`,r;return r=e?this.locNoFileChosenCaption:t&&n?this.locFileOrPhotoPlaceholder:t?this.locFilePlaceholder:this.locPhotoPlaceholder,r})),this.locRenderedPlaceholderValue}get currentMode(){return this.getPropertyValue(`currentMode`,this.sourceType)}get isPlayingVideo(){return this.getPropertyValue(`isPlayingVideo`,!1)}setIsPlayingVideo(e){this.setPropertyValue(`isPlayingVideo`,e)}updateCurrentMode(){!this.isDesignMode&&this.survey&&(this.sourceType===`file`?this.setPropertyValue(`currentMode`,this.sourceType):this.camera.hasCamera(e=>{this.setPropertyValue(`currentMode`,e?this.sourceType:`file`)}))}get inputTitle(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:` `}get chooseButtonText(){return this.isEmpty()||this.allowMultiple?this.chooseButtonCaption:this.replaceButtonCaption}clear(e){this.fileCallbacks&&(this.containsMultiplyFiles=!1,this.isClearingFiles=!0,this.fileCallbacks.clearFiles(this,this.name,this.value,null,(t,n)=>{t===`success`&&(this.value=void 0,this.errors=[],e&&e(),this.indexToShow=0,this.updateFileIndexActionTitle(),this.isClearingFiles=!1)}))}get renderCapture(){return this.allowCameraAccess?`user`:void 0}get multipleRendered(){return this.allowMultiple?`multiple`:void 0}get showFileDecorator(){let e=this.isPlayingVideo,t=this.showLoadingIndicator;return!e&&!t}get showDragAreaPlaceholder(){return!this.isAnswered}get showLoadingIndicator(){return this.isUploading||this.isClearingFiles}get allowShowPreview(){let e=this.showLoadingIndicator,t=this.isPlayingVideo;return!e&&!t}get showPreviewContainer(){return this.previewValue&&this.previewValue.length>0}defaultImage(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage}removeFile(e){this.removeFileByContent(this.value.filter(t=>t.name===e)[0])}removeFileByContent(e){this.fileCallbacks&&(this.isClearingFiles=!0,this.fileCallbacks.clearFiles(this,this.name,this.value,e.name,(t,n)=>{if(t===`success`){var r=this.value;this.value=Array.isArray(r)?r.filter(t=>!K.isTwoValueEquals(t,e,!0,!1,!1)):void 0,this.isClearingFiles=!1}}))}setValueFromResult(e){this.value=(this.value||[]).concat(e.map(e=>({name:e.file.name,type:e.file.type,content:e.content})))}loadFiles(e,t){if(this.survey&&(this.errors=[],this.allFilesOk(e))){var n=()=>{this.stateChanged(`loading`);var n=[];this.storeDataAsText?e.forEach(t=>{let r=new FileReader;r.onload=i=>{n=n.concat([{name:t.name,type:t.type,content:r.result}]),n.length===e.length&&(this.value=(this.value||[]).concat(n))},r.readAsDataURL(t)}):this.uploadFiles(e,t)};this.allowMultiple?n():this.clear(n)}}get camera(){return this.cameraValue||(this.cameraValue=new KL),this.cameraValue}canPreviewImage(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)}loadPreview(e){if(!(this.showPreview&&this.prevLoadedPreviewValue===e)&&(this.previewValue.splice(0,this.previewValue.length),!(!this.showPreview||!e))){this.prevLoadedPreviewValue=e;var t=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?(t.forEach(e=>{var t=e.content||e;this.previewValue.push({name:e.name,type:e.type,content:t})}),this.previewValueChanged()):(this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new QL(this,(e,t)=>
87{e!==`error`&&(t.forEach(e=>{this.previewValue.push(e)}),this.previewValueChanged()),this.isFileLoading=!1,this._previewLoader.dispose(),this._previewLoader=void 0}),this._previewLoader.load(t))}}allFilesOk(e){var t=this.errors?this.errors.length:0;e=e||[];let n=Array.isArray(this.value)?this.value.length:0;return this.maxFiles>0&&this.maxFiles<e.length+n&&this.errors.push(new tN(this.maxFiles,this)),e.forEach(e=>{this.maxSize>0&&e.size>this.maxSize&&this.errors.push(new eN(this.maxSize,this))}),t===this.errors.length}isFileImage(e){if(!e||!e.content||!e.content.substring)return!1;var t=e.content&&e.content.substring(0,10);return t=t&&t.toLowerCase(),t===`data:image`||!!e.type&&e.type.toLowerCase().indexOf(`image/`)===0}getPlainData(e={includeEmpty:!0}){var t=super.getPlainData(e);return t&&!this.isEmpty()&&(t.isNode=!1,t.data=(Array.isArray(this.value)?this.value:[this.value]).map((e,t)=>({name:t,title:`File`,value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:e=>this.getValueAsString(e),isNode:!1}))),t}getImageWrapperCss(e){return new X().append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()}getActionsContainerCss(e){return new X().append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()}getRemoveButtonCss(){return new X().append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()}getChooseFileCss(){let e=this.isAnswered;return new X().append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.contextButton,e).append(this.cssClasses.chooseFileAsIcon,e).toString()}getReadOnlyFileCss(){return new X().append(`form-control`).append(this.cssClasses.placeholderInput).toString()}get fileRootCss(){return new X().append(this.cssClasses.root).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDragging,this.isDragging).append(this.cssClasses.rootAnswered,this.isAnswered).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()}getFileDecoratorCss(){return new X().append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()}onChange(e){if(!tj.isFileReaderAvailable()||!e||!e.files||e.files.length<1)return;let t=[],n=this.allowMultiple?e.files.length:1;for(let r=0;r<n;r++)t.push(e.files[r]);e.value=``,this.loadFiles(t)}updateActionsContainerCss(e,t){let n=this.actionsContainerValue;
87n.cssClasses=e.actionBar,n.cssClasses.itemWithTitle=n.cssClasses.item,n.cssClasses.item=``,n.cssClasses.itemAsIcon=t.contextButton,n.containerCss=t.actionsContainer}calcCssClasses(e){let t=super.calcCssClasses(e);return this.updateActionsContainerCss(e,t),t}onSurveyLoad(){super.onSurveyLoad(),this.updateAcceptedCategories(),this.updateCurrentMode(),this.loadPreview(this.value)}needResponsiveness(){return this.supportResponsiveness()}supportResponsiveness(){return!0}getObservedElementSelector(){return RN(this.cssClasses.dragArea)}getFileListSelector(){return RN(this.cssClasses.fileList)}get renderedPages(){return this._renderedPages}set renderedPages(e){this.pagesAnimation.sync(e)}getPagesAnimationOptions(){return{getEnterOptions:e=>{let t=this.cssClasses.page;return{cssClass:t?new X().append(`${t}--enter-from-left`,this.navigationDirection==`left`||this.navigationDirection==`left-delete`).append(`${t}--enter-from-right`,this.navigationDirection==`right`).toString():``}},getLeaveOptions:e=>{let t=this.cssClasses.page;return{cssClass:t?new X().append(`${t}--leave-to-left`,this.navigationDirection==`right`).append(`${t}--leave-to-right`,this.navigationDirection==`left`).toString():``}},getAnimatedElement:e=>{var t;return(t=this.rootElement)==null?void 0:t.querySelector(`#${e.id}`)},isAnimationEnabled:()=>this.animationAllowed&&!!this.rootElement,getRerenderEvent:()=>this.onElementRerendered}}triggerResponsiveness(e){e&&(this.calculatedGapBetweenItems=void 0,this.calculatedItemWidth=void 0),super.triggerResponsiveness()}processResponsiveness(e,t){if(this._width=t,this.rootElement&&(!this.calculatedGapBetweenItems||!this.calculatedItemWidth)&&this.allowMultiple){let e=this.getFileListSelector()?this.rootElement.querySelector(this.getFileListSelector()):void 0;if(e){let t=e.querySelector(RN(this.cssClasses.page));if(t){let e=t.querySelector(RN(this.cssClasses.previewItem));this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(nj.getComputedStyle(t).gap)),e&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(nj.getComputedStyle(e).width)))}}}return this.calculatedGapBetweenItems&&this.calculatedItemWidth?(this.pageSize=Math.max(this.calcAvailableItemsCount(t,this.calculatedItemWidth,this.calculatedGapBetweenItems),1),!0):!1}canDragDrop(){return!this.isInputReadOnly&&this.currentMode!==`camera`&&!this.isPlayingVideo}afterRenderQuestionElement(e){super.afterRenderQuestionElement(e),this.rootElement=e}beforeDestroyQuestionElement(e){super.beforeDestroyQuestionElement(e),this.stopVideo(),this.rootElement=void 0}clearFilesCore(){if(this.rootElement){let e=this.rootElement.querySelectorAll(`input`)[0];e&&(e.value=``)}this.clear()}doRemoveFile(e,t){if(t.stopPropagation(),this.needConfirmRemoveFile){ZF({message:this.getConfirmRemoveMessage(e.name),funcOnYes:()=>{this.removeFileCore(e)},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeFileCore(e)}removeFileCore(e){let t=this.previewValue.indexOf(e);this.removeFileByContent(t===-1?e:this.value[t])}dispose(){this.cameraValue=void 0,this.closeVideoStream(),super.dispose()}};q([Y()],ZL.prototype,`isDragging`,void 0),q([mN({})],ZL.prototype,`previewValue`,void 0),q([mN({})],ZL.prototype,`pages`,void 0),q([Y({defaultValue:0,onSet:(e,t)=>{t.updateRenderedPages()}})],ZL.prototype,`indexToShow`,void 0),q([Y({defaultValue:1,onSet:(e,t)=>{t.updateFileNavigator()}})],ZL.prototype,`pageSize`,void 0),q([Y({defaultValue:!1})],ZL.prototype,`containsMultiplyFiles`,void 0),q([Y()],ZL.prototype,`allowCameraAccess`,void 0),q([Y({onSet:(e,t)=>{t.isLoadingFromJson||t.updateCurrentMode()}})],ZL.prototype,`sourceType`,void 0),q([Y()],ZL.prototype,`canFlipCameraValue`,void 0),q([Y()],ZL.prototype,`showPreview`,void 0),q([Y()],ZL.prototype,`allowMultiple`,void 0),q([Y()],ZL.prototype,`imageHeight`,void 0),q([Y()],ZL.prototype,`imageWidth`,void 0),q([Y()],ZL.prototype,`acceptedCategories`,void 0),q([Y()],ZL.prototype,`acceptedTypes`,void 0),q([Y()],ZL.prototype,`allowImagesPreview`,void 0),q([Y()],ZL.prototype,`maxSize`,void 0),q([Y()],ZL.prototype,`maxFiles`,void 0),q([Y()],ZL.prototype,`needConfirmRemoveFile`,void 0),q([Y({localizable:{defaultStr:`confirmRemoveFile`}})],ZL.prototype,`confirmRemoveMessage`,void 0),q([Y({localizable:{defaultStr:`confirmRemoveAllFiles`}})],ZL.prototype,`confirmRemoveAllMessage`,void 0),q([Y({localizable:{defaultStr:`noFileChosen`}})],ZL.prototype,`noFileChosenCaption`,void 0),q([Y({localizable:{defaultStr:`chooseFileCaption`}})],ZL.prototype,`chooseButtonCaption`,void 0),q([Y({localizable:{defaultStr:!0}})],ZL.prototype,`takePhotoCaption`,void 0),q([Y({localizable:{defaultStr:`replaceFileCaption`}})],ZL.prototype,`replaceButtonCaption`,void 0),q([Y({localizable:{defaultStr:!0}})],ZL.prototype,`removeFileCaption`,void 0),q([Y({localizable:{defaultStr:`loadingFile`}})],ZL.prototype,`loadingFileTitle`,void 0),q([Y({localizable:{defaultStr:`chooseFile`}})],ZL.prototype,`chooseFileTitle`,void 0),q([Y({localizable:{defaultStr:`clearCaption`}})],ZL.prototype,`clearButtonCaption`,void 0),q([Y({localizable:{defaultStr:!0}})],ZL.prototype,`fileOrPhotoPlaceholder`,void 0),q([Y({localizable:{defaultStr:!0}})],ZL.prototype,`photoPlaceholder`,void 0),q([Y({localizable:{defaultStr:!0}})],ZL.prototype,`filePlaceholder`,void 0),q([Y()],ZL.prototype,`locRenderedPlaceholderValue`,void 0),q([Y()],ZL.prototype,`isClearingFiles`,void 0),q([mN()],ZL.prototype,`_renderedPages`,void 0),J.addClass(`file`,[{name:`showCommentArea:switch`,visible:!0},{name:`showPreview:boolean`,default:!0,visible:!1},`allowMultiple:boolean`,{name:`allowImagesPreview:boolean`,default:!0,dependsOn:`showPreview`,visibleIf:e=>!!e.showPreview},`imageHeight`,`imageWidth`,{name:`acceptedCategories:set`,choices:()=>{let e=[];for(let t in G.acceptedFileCategories)e.push(t);return e.push(JL),e},onSerializeValue:e=>{let t=[];
87return e.acceptedCategories.forEach(e=>{G.acceptedFileCategories[e]&&t.push(e)}),t}},{name:`acceptedTypes`,dependsOn:`acceptedCategories`,visibleIf:e=>e.acceptedCategories.indexOf(JL)>-1},{name:`storeDataAsText:boolean`,default:!0},{name:`waitForUpload:boolean`,default:!1},{name:`maxSize:number`,default:0},{name:`maxFiles:number`,default:1e3,visibleIf:e=>e.allowMultiple},{name:`defaultValue`,visible:!1},{name:`correctAnswer`,visible:!1},{name:`validators`,visible:!1},{name:`needConfirmRemoveFile:boolean`},{name:`sourceType`,choices:[`file`,`camera`,`file-camera`],default:`file`},{name:`fileOrPhotoPlaceholder:text`,serializationProperty:`locFileOrPhotoPlaceholder`},{name:`photoPlaceholder:text`,serializationProperty:`locPhotoPlaceholder`},{name:`filePlaceholder:text`,serializationProperty:`locFilePlaceholder`},{name:`allowCameraAccess:switch`,visible:!1}],function(){return new ZL(``)},`question`),xF.Instance.registerQuestion(`file`,e=>new ZL(e));var QL=class{constructor(e,t){this.fileQuestion=e,this.callback=t,this.loaded=[]}load(e){let t=0;this.loaded=Array(e.length),e.forEach((n,r)=>{this.fileQuestion.fileCallbacks&&this.fileQuestion.fileCallbacks.downloadFile(this.fileQuestion,this.fileQuestion.name,n,(i,a)=>{!this.fileQuestion||!this.callback||(i===`error`?this.callback(`error`,this.loaded):(this.loaded[r]={content:a,name:n.name,type:n.type},t++,t===e.length&&this.callback(i,this.loaded)))})})}dispose(){this.fileQuestion=void 0,this.callback=void 0}},$L=class extends AL{getType(){return`html`}get isCompositeQuestion(){return!0}getProcessedText(e){return this.ignoreHtmlProgressing?e:super.getProcessedText(e)}get processedHtml(){return this.processHtml(this.html)}processHtml(e){return this.survey?this.survey.processHtml(e,`html-question`):this.html}get isNewA11yStructure(){return!0}get renderCssRoot(){return new X().append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0}};q([Y({localizable:{onCreate:(e,t)=>{t.onGetTextCallback=t=>
87e.survey&&!e.ignoreHtmlProgressing?e.processHtml(t):t}}})],$L.prototype,`html`,void 0),J.addClass(`html`,[{name:`html:html`,serializationProperty:`locHtml`},{name:`showNumber`,visible:!1},{name:`state`,visible:!1},{name:`titleLocation`,visible:!1},{name:`descriptionLocation`,visible:!1},{name:`errorLocation`,visible:!1},{name:`indent`,visible:!1},{name:`width`,visible:!1}],function(){return new $L(``)},`nonvalue`),xF.Instance.registerQuestion(`html`,e=>new $L(e));var eR=class extends KI{constructor(e){super(e)}getDefaultItemComponent(){return`survey-radiogroup-item`}getType(){return`radiogroup`}supportElementsInChoice(){return!0}getFirstInputElementId(){return this.inputId+`_0`}get selectedItem(){return this.getSingleSelectedItem()}get showClearButton(){return this.allowClear}set showClearButton(e){this.allowClear=e}get canShowClearButton(){return this.allowClear&&!this.isReadOnly}get clearButtonCaption(){return this.getLocalizationString(`clearCaption`)}supportAutoAdvance(){var e;return this.isMouseDown===!0&&!((e=this.selectedItem)!=null&&e.showCommentArea)}getConditionJson(e=null,t=null){let n=super.getConditionJson(e,t);return delete n.allowClear,delete n.showClearButton,n}setNewComment(e){this.isMouseDown=!0,super.setNewComment(e),this.isMouseDown=!1}clickItemHandler(e){this.selectItem(e)}isOtherValueUnused(){var e;return!((e=this.selectedItem)!=null&&e.showCommentArea)}getDefaultTitleActions(){let e=[];
87if(!this.isDesignMode){let t=new kN({locTitleName:`clearCaption`,id:`sv-clr-btn-${this.id}`,action:()=>{this.clearValueFromUI()},innerCss:this.cssClasses.clearButton,visible:new KM(()=>this.canShowClearButton),ariaLabelledBy:this.a11y_input_ariaLabelledBy});e.push(t)}return e}get isNewA11yStructure(){return!0}get a11y_input_ariaRole(){return`radiogroup`}};q([Y()],eR.prototype,`allowClear`,void 0),J.addClass(`radiogroup`,[{name:`allowClear:boolean`,alternativeName:`showClearButton`},{name:`separateSpecialChoices`,visible:!0},{name:`itemComponent`,visible:!1,default:`survey-radiogroup-item`}],function(){return new eR(``)},`checkboxbase`),xF.Instance.registerQuestion(`radiogroup`,e=>{var t=new eR(e);return t.choices=xF.DefaultChoices,t});function tR(e,t){if(typeof getComputedStyle==`function`&&t){let n=getComputedStyle(t);return n.getPropertyValue&&n.getPropertyValue(e)}return``}function nR(e,t,n,r){let i=!!e&&e[t];if(i||(i=tR(n,r)),!i)return null;let a=nj.createElement(`canvas`);if(!a)return null;var o=a.getContext(`2d`);o.fillStyle=i,o.fillStyle==`#000000`&&(o.fillStyle=tR(n,r));let s=o.fillStyle;if(s.startsWith(`rgba`))return s.substring(5,s.length-1).split(`,`).map(e=>+e.trim());var c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(s);return c?[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16),1]:null}var rR=class extends HP{constructor(e,t){super(e,t)}getType(){return`ratingitem`}get ratingOwner(){return this.locOwner}get style(){return this.getPropertyValue(`style`,void 0,()=>{var e;return(e=this.ratingOwner)==null?void 0:e.getItemStyle(this)})}get className(){return this.getPropertyValue(`className`,void 0,()=>{var e;return(e=this.ratingOwner)==null?void 0:e.getItemClass(this)})}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),[`style`,`className`].indexOf(e)===-1&&this.resetVisuals()}resetVisuals(){this.resetPropertyValue(`style`),this.resetPropertyValue(`className`)}get description(){var e;return(e=this.ratingOwner)==null?void 0:e.getDescription(this)}getLocText(){var e;return((e=this.ratingOwner)==null?void 0:e.getLocTextForItem(this))||super.getLocText()}};q([Y({defaultValue:``})],rR.prototype,`highlight`,void 0);var iR=class e extends zP{constructor(e){super(e),this.createItemValues(`rateValues`)}resetItemsVisuals(){let e=this.getPropertyValue(`visibleChoices`);Array.isArray(e)&&e.forEach(e=>e.resetVisuals())}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`rateValues`&&this.executeOnSyncPropertiesChanged(()=>{this.autoGenerate=this.rateValues.length==0,this.setIconsToRateValues(),this.resetRenderedItems()}),e===`autoGenerate`&&this.executeOnSyncPropertiesChanged(()=>{!this.autoGenerate&&this.rateValues.length===0&&this.setArray(`rateValues`,this.rateValues,this.visibleRateValues,!1,!1),this.autoGenerate&&(this.rateValues.splice(0,this.rateValues.length),this.updateRateMax()),this.resetRenderedItems()}),e===`rateCount`&&this.executeOnSyncPropertiesChanged(()=>{if(!this.useRateValues())this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1);else if(this.rateCount<this.rateValues.length){if(this.rateCount>=10&&this.rateType==`smileys`)return;this.rateValues.splice(this.rateCount,this.rateValues.length-this.rateCount)}else for(let e=this.rateValues.length;e<this.rateCount;e++)this.rateValues.push(new rR(hj(`choices_Item`)+(e+1)))}),[`rateMin`,`rateMax`,`rateStep`,`rateValues`].indexOf(e)>-1&&this.executeOnSyncPropertiesChanged(()=>this.updateRateCount()),[`cssClassesValue`,`isReadOnly`,`isVisible`,`errors`,`value`].indexOf(e)>-1&&this.resetItemsVisuals(),[`value`,`renderAs`,`placeholder`,`choices`,`visibleChoices`].indexOf(e)>-1&&this.resetReadOnlyText(),[`rateMin`,`rateMax`,`minRateDescription`,`maxRateDescription`,`rateStep`,`displayRateDescriptionsAsExtremeItems`,`rateType`,`rateValues`].indexOf(e)>-1&&((e===`rateType`||e===`rateValues`)&&this.setIconsToRateValues(),this.resetRenderedItems(),e===`rateType`&&this.updateRateCount()),(e===`rateColorMode`||e===`scaleColorMode`)&&this.updateColors(this.survey.themeVariables),e===`displayMode`&&this.updateRenderAsBasedOnDisplayMode(!1)}
87setIconsToRateValues(){this.rateType==`smileys`&&this.rateValues.map(e=>e.icon=this.getItemSmiley(e))}locStrsChanged(){var e;super.locStrsChanged(),this.resetReadOnlyText(),(e=this.dropdownListModelValue)==null||e.locStrsChanged()}endLoadingFromJson(){super.endLoadingFromJson(),this.jsonObj.rateMin!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMax===void 0&&this.updateRateMax(),this.jsonObj.rateMax!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMin===void 0&&this.updateRateMin(),this.jsonObj.autoGenerate===void 0&&this.jsonObj.rateValues!==void 0&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues()}useRateValues(){return!!this.rateValues.length&&!this.autoGenerate}updateRateMax(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)}updateRateMin(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)}updateRateCount(){let e=0;e=this.useRateValues()?this.rateValues.length:Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1,e>10&&this.rateType==`smileys`&&(e=10),this.rateCount=e,this.rateValues.length>e&&this.rateValues.splice(e,this.rateValues.length-e)}get showSelectedItemLocText(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText}get selectedItemLocText(){var e;return!this.readOnly&&((e=this.visibleRateValues.filter(e=>e.value==this.value)[0])==null?void 0:e.locText)}selectItem(e){!this.isReadOnly&&e&&(this.value=e.value)}updateColors(t){this.colorMode!==`monochrome`&&nj.isAvailable()&&(e.colorsCalculated||(e.badColor=nR(t,`--sjs-special-red`,`--sd-rating-bad-color`,this.rootElement),e.normalColor=nR(t,`--sjs-special-yellow`,`--sd-rating-normal-color`,this.rootElement),e.goodColor=nR(t,`--sjs-special-green`,`--sd-rating-good-color`,this.rootElement),e.badColorLight=nR(t,`--sjs-special-red-light`,`--sd-rating-bad-color-light`,this.rootElement),e.normalColorLight=nR(t,`--sjs-special-yellow-light`,`--sd-rating-normal-color-light`,this.rootElement),e.goodColorLight=nR(t,`--sjs-special-green-light`,`--sd-rating-good-color-light`,this.rootElement),this.colorsCalculated=!0,this.resetRenderedItems()))}getDisplayValueCore(e,t){return this.useRateValues?HP.getTextOrHtmlByValue(this.visibleRateValues,t)||t:super.getDisplayValueCore(e,t)}get visibleRateValues(){return this.visibleChoices}supportEmptyValidation(){return this.isDropdown}get isDropdown(){return this.renderAs===`dropdown`}itemValuePropertyChanged(e,t,n,r){!this.useRateValues()&&[`value`,`text`,`icon`,`visibleIf`,`enableIf`].indexOf(t)>=0&&(this.autoGenerate=!1),super.itemValuePropertyChanged(e,t,n,r)}runConditionCore(e){super.runConditionCore(e),this.runRateItesmCondition(e)}runRateItesmCondition(e){var t;if(!this.useRateValues())return;let n=!1;if((t=this.survey)!=null&&t.areInvisibleElementsShowing?this.rateValues.forEach(e=>{n=n||!e.isVisible,e.setIsVisible(e,!0)}):n=HP.runConditionsForItems(this.rateValues,void 0,void 0,e,!0),n&&(this.resetRenderedItems(),!this.isEmpty()&&!this.isReadOnly)){let e=HP.getItemByValue(this.rateValues,this.value);e&&!e.isVisible&&this.clearValue()}}getRateValuesCore(){let e=this.useRateValues()?this.rateValues:this.createRateValues(),t=[];return e.forEach(e=>{e.isVisible&&t.push(e)}),t}calculateRateValues(){let e=this.getRateValuesCore();return this.rateType==`smileys`&&e.length>10&&(e=e.slice(0,10)),e}getDescription(e){if(!(this.isLoadingFromJson||!this.isDropdown))return this.getExtremeDescription(e)}getExtremeDescription(e){let t=this.visibleChoices,n=t.indexOf(e);if(n==0)return this.minRateDescription&&this.locMinRateDescription;if(n==t.length-1)return this.maxRateDescription&&this.locMaxRateDescription}getLocTextForItem(e){if(!(this.isLoadingFromJson||this.isDropdown||!this.displayRateDescriptionsAsExtremeItems))return this.getExtremeDescription(e)}resetRenderedItems(){if(this.autoGenerate){let e=this.createRateValues();this.rateMax=e[e.length-1].value}this.resetPropertyValue(`visibleChoices`)}get renderedRateItems(){return this.visibleChoices}get visibleChoices(){return this.getPropertyValue(`visibleChoices`,void 0,()=>this.calculateRateValues())}updateVisibleChoices(){this.resetRenderedItems()}createRateValues(){for(var e=[],t=this.rateMin,n=this.rateStep;t<=this.rateMax&&e.length<G.ratingMaximumRateValueCount;){let r=new rR(t,``);r.locOwner=this,r.ownerPropertyName=`rateValues`,e.push(r),t=this.correctValue(t+n,n)}return e}correctValue(e,t){if(!e||Math.round(e)==e)return e;for(var n=0;Math.round(t)!=t;)t*=10,n++;return parseFloat(e.toFixed(n))}getType(){return`rating`}getAllChildren(){return[...super.getAllChildren(),...this.rateValues]}getItemValueType(){return`ratingitem`}getFirstInputElementId(){return this.inputId+`_0`}getInputId(e){return this.inputId+`_`+e}supportAutoAdvance(){return this.isMouseDown===!0||this.isDropdown}supportOther(){return!1}getPlainDataCalculatedValue(e){let t=super.getPlainDataCalculatedValue(e);if(t!==void 0||!this.useRateValues||this.isEmpty())return t;let n=HP.getItemByValue(this.visibleRateValues,this.value);return n?n[e]:void 0}get hasMinRateDescription(){return this.getPropertyValue(`hasMinRateDescription`,void 0,()=>!!this.minRateDescription)}get hasMaxRateDescription(){return this.getPropertyValue(`hasMaxRateDescription`,void 0,()=>!!this.maxRateDescription)}get hasMinLabel(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription}get hasMaxLabel(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription}updateRenderAsBasedOnDisplayMode(e){this.isDesignMode?(e||this.isDropdown)&&(this.renderAs=`default`):(e||this.displayMode!==`auto`)&&(this.renderAs=this.displayMode===`dropdown`?`dropdown`
87:`default`)}onSurveyLoad(){super.onSurveyLoad(),this.isDropdown&&this.displayMode===`auto`?this.displayMode=`dropdown`:this.updateRenderAsBasedOnDisplayMode()}get rateDisplayMode(){return this.rateType}set rateDisplayMode(e){this.rateType=e}get isStar(){return this.rateType==`stars`}get isSmiley(){return this.rateType==`smileys`}getDefaultItemComponent(){return this.isDropdown?`sv-rating-dropdown-item`:this.isStar?`sv-rating-item-star`:this.isSmiley?`sv-rating-item-smiley`:`sv-rating-item`}valueToData(e){if(this.useRateValues()){var t=HP.getItemByValue(this.visibleChoices,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)}setValueFromClick(e){if(!this.isReadOnlyAttr){this.value===(typeof this.value==`string`?e:parseFloat(e))?this.clearValue(!0):this.value=e;for(let e=0;e<this.visibleChoices.length;e++)this.visibleChoices[e].highlight=`none`}}onItemMouseIn(e){if(rP||this.isReadOnly||!e.isEnabled||this.isDesignMode)return;let t=!0,n=!this.isEmpty();if(this.rateType!==`stars`){e.highlight=`highlighted`;return}for(let r=0;r<this.visibleChoices.length;r++)this.visibleChoices[r].highlight=t&&!n&&`highlighted`||!t&&n&&`unhighlighted`||`none`,this.visibleChoices[r]==e&&(t=!1),this.visibleChoices[r].value==this.value&&(n=!1)}onItemMouseOut(e){rP||(this.visibleChoices.forEach(e=>e.highlight=`none`),this.resetItemsVisuals())}get itemSmallMode(){return!this.isSingleInputActive&&this.inMatrixMode&&G.matrix.rateSize==`small`}get ratingRootCss(){let e=this.hasMaxLabel||this.hasMinLabel;return new X().append(this.cssClasses.root).append(this.cssClasses.rootWrappable,this.displayMode==`buttons`||!!this.survey&&this.survey.isDesignMode||this.displayMode==`auto`&&!this.supportResponsiveness()).append(this.cssClasses.rootLabelsTop,e&&this.rateDescriptionLocation==`top`).append(this.cssClasses.rootLabelsBottom,e&&this.rateDescriptionLocation==`bottom`).append(this.cssClasses.rootLabelsDiagonal,e&&this.rateDescriptionLocation==`topBottom`).append(this.cssClasses.itemSmall,this.itemSmallMode&&this.rateType!=`labels`).toString()}get itemStarIcon(){return this.itemSmallMode?`icon-rating-star-small`:`icon-rating-star`}get itemStarIconAlt(){return this.itemStarIcon+`-2`}getItemSmiley(e){let t=[`terrible`,`very-poor`,`poor`,`not-good`,`average`,`normal`,`good`,`very-good`,`excellent`,`perfect`],n=[`very-good`,`not-good`,`normal`,`good`,`average`,`excellent`,`poor`,`perfect`,`very-poor`,`terrible`],r=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,i=n.slice(0,r),a=t.filter(e=>i.indexOf(e)!=-1);return this.useRateValues()?a[this.rateValues.indexOf(e)]:a[e.value-this.rateMin]}getItemSmileyIconName(e){return`icon-`+this.getItemSmiley(e)}afterRenderQuestionElement(e){super.afterRenderQuestionElement(e),this.rootElement=e,this.renderAs!==`dropdown`&&(this.colorsCalculated=!1,this.updateColors(this.survey.themeVariables))}getRenderedItemColor(t,n){let r=n?e.badColorLight:e.badColor,i=n?e.goodColorLight:e.goodColor,a=(this.rateCount-1)/2,o=n?e.normalColorLight:e.normalColor;if(t<a?i=o:(r=o,t-=a),!r||!i)return null;let s=[0,0,0,0];for(let e=0;e<4;e++)s[e]=r[e]+(i[e]-r[e])*t/a,e<3&&(s[e]=Math.trunc(s[e]));return`rgba(`+s[0]+`, `+s[1]+`, `+s[2]+`, `+s[3]+`)`}getItemStyle(e){if(this.scaleColorMode===`monochrome`&&this.rateColorMode=="default"||this.isPreviewStyle||this.isReadOnlyStyle)return{};let t=this.visibleRateValues.indexOf(e),n=this.getRenderedItemColor(t,!1),r=e.highlight==`highlighted`&&this.scaleColorMode===`colored`&&this.getRenderedItemColor(t,!0);return r?{"--sd-rating-item-color":n,"--sd-rating-item-color-light":r}:{"--sd-rating-item-color":n}}getItemClass(e){let t=this.value==e.value;this.isStar&&(t=this.useRateValues()?this.rateValues.indexOf(this.rateValues.filter(e=>e.value==this.value)[0])>=this.rateValues.indexOf(e):this.value>=e.value);let n=!(this.isReadOnly||!e.isEnabled)&&this.value!=e.value&&!(this.survey&&this.survey.isDesignMode),r=this.isStar&&e.highlight==`highlighted`,i=this.isStar&&e.highlight==`unhighlighted`,a=this.cssClasses.item,o=this.cssClasses.selected,s=this.cssClasses.itemDisabled,c=this.cssClasse
87s.itemReadOnly,l=this.cssClasses.itemPreview,u=this.cssClasses.itemHover,d=this.cssClasses.itemOnError,f=null,p=null,m=null,h=null,g=null;this.isStar&&(a=this.cssClasses.itemStar,o=this.cssClasses.itemStarSelected,s=this.cssClasses.itemStarDisabled,c=this.cssClasses.itemStarReadOnly,l=this.cssClasses.itemStarPreview,u=this.cssClasses.itemStarHover,d=this.cssClasses.itemStarOnError,f=this.cssClasses.itemStarHighlighted,p=this.cssClasses.itemStarUnhighlighted,g=this.cssClasses.itemStarSmall),this.isSmiley&&(a=this.cssClasses.itemSmiley,o=this.cssClasses.itemSmileySelected,s=this.cssClasses.itemSmileyDisabled,c=this.cssClasses.itemSmileyReadOnly,l=this.cssClasses.itemSmileyPreview,u=this.cssClasses.itemSmileyHover,d=this.cssClasses.itemSmileyOnError,f=this.cssClasses.itemSmileyHighlighted,m=this.cssClasses.itemSmileyScaleColored,h=this.cssClasses.itemSmileyRateColored,g=this.cssClasses.itemSmileySmall);let _=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText)),v={item:e,css:``};return v.css=new X().append(a).append(o,t).append(s,this.isDisabledStyle).append(c,this.isReadOnlyStyle).append(l,this.isPreviewStyle).append(u,n).append(f,r).append(m,this.scaleColorMode==`colored`).append(h,this.rateColorMode==`scale`&&t).append(p,i).append(d,this.hasCssError()).append(g,this.itemSmallMode).append(this.cssClasses.itemFixedSize,_).toString(),this.survey&&this.cssCallbacks.updateChoiceItemCss(this,v),v.css}getControlClass(){return this.isEmpty(),new X().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()}get allowClear(){return!0}get searchEnabled(){return!1}get renderedValue(){return this.value}set renderedValue(e){this.value=e}isItemSelected(e){return e.value==this.value}get readOnlyText(){return this.locReadOnlyText.calculatedText}get locReadOnlyText(){return this.getOrCreateLocStr(`readOnlyText`,!0,!1,e=>{e.onGetTextCallback=()=>this.displayValue||this.placeholder})}resetReadOnlyText(){this.resetPropertyValue(`readOnlyText`)}needResponsiveWidth(){let e=this.getPropertyValue(`rateStep`),t=this.getPropertyValue(`rateMax`),n=this.getPropertyValue(`rateMin`);return this.displayMode!=`dropdown`&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(t-n)/e>9)}supportResponsiveness(){return!this.inMatrixMode}onBeforeSetCompactRenderer(){!this.isDisposed&&!this.dropdownListModelValue&&(this.dropdownListModelValue=new QI(this))}getCompactRenderAs(){return this.displayMode==`buttons`?`default`:`dropdown`}getDesktopRenderAs(){return this.displayMode==`dropdown`?`dropdown`:`default`}set dropdownListModel(e){this.dropdownListModelValue=e,this.updateElementCss()}get dropdownListModel(){return this.isDropdown&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue}onBlurCore(e){var t;(t=this.dropdownListModel)==null||t.onBlur(e),super.onBlurCore(e)}updateCssClasses(e,t){super.updateCssClasses(e,t),qN(e,t)}calcCssClasses(e){let t=super.calcCssClasses(e);return this.dropdownListModelValue&&this.dropdownListModelValue.updateCssClasses(t.popup,t.list),t}themeChanged(e){this.colorsCalculated=!1,this.updateColors(e.cssVariables)}setSurveyImpl(e,t){super.setSurveyImpl(e,t),this.survey&&(this.updateColors(this.survey.themeVariables),this.updateRenderAsBasedOnDisplayMode())}dispose(){super.dispose(),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)}get a11yInputAriaRole(){return this.isDropdown?`combobox`:null}get isNewA11yStructure(){return!0}get a11y_input_ariaRole(){return`radiogroup`}};iR.colorsCalculated=!1,q([Y({defaultValue:!1})],iR.prototype,`inputHasValue`,void 0),q([Y()],iR.prototype,`autoGenerate`,void 0),q([Y()],iR.prototype,`rateValues`,void 0),q([Y()],iR.prototype,`rateMin`,void 0),q([Y()],iR.prototype,`rateMax`,void 0),q([Y()],iR.prototype,`rateStep`,void 0),q([Y()],iR.prototype,`rateCount`,void 0),q([Y({localizable:{markdown:!0,onCreate:(e,t)=>
87t.onStringChanged.add(()=>e.setPropertyValue(`hasMinRateDescription`,!t.isEmpty))}})],iR.prototype,`minRateDescription`,void 0),q([Y({localizable:{markdown:!0,onCreate:(e,t)=>t.onStringChanged.add(()=>e.setPropertyValue(`hasMaxRateDescription`,!t.isEmpty))}})],iR.prototype,`maxRateDescription`,void 0),q([Y()],iR.prototype,`displayRateDescriptionsAsExtremeItems`,void 0),q([Y()],iR.prototype,`displayMode`,void 0),q([Y()],iR.prototype,`rateDescriptionLocation`,void 0),q([Y()],iR.prototype,`rateType`,void 0),q([Y()],iR.prototype,`scaleColorMode`,void 0),q([Y()],iR.prototype,`rateColorMode`,void 0),q([Y({getDefaultValue:e=>e.getDefaultItemComponent()})],iR.prototype,`itemComponent`,void 0),q([Y({localizable:{defaultStr:`ratingOptionsCaption`}})],iR.prototype,`placeholder`,void 0),J.addClass(`ratingitem`,[],function(e){return new rR(e,``)},`itemvalue`),J.addClass(`rating`,[{name:`showCommentArea:switch`,visible:!0},{name:`rateType`,alternativeName:`rateDisplayMode`,default:`labels`,choices:[`labels`,`stars`,`smileys`]},{name:`scaleColorMode`,default:`monochrome`,choices:[`monochrome`,`colored`],visibleIf:function(e){return e.rateType==`smileys`}},{name:`rateColorMode`,default:`scale`,choices:[`default`,`scale`],visibleIf:function(e){return e.rateType==`smileys`&&e.scaleColorMode==`monochrome`}},{name:`autoGenerate`,default:!0,choices:[!0,!1]},{name:`rateCount:number`,default:5,onSettingValue:(e,t)=>t<2?2:t>G.ratingMaximumRateValueCount&&t>e.rateValues.length?G.ratingMaximumRateValueCount:t>10&&e.rateType==`smileys`?10:t},{name:`rateValues:ratingitem[]`,baseValue:function(){return hj(`choices_Item`)},visibleIf:function(e){return!e.autoGenerate}},{name:`rateMin:number`,default:1,onSettingValue:(e,t)=>t>e.rateMax-e.rateStep?e.rateMax-e.rateStep:t,visibleIf:function(e){return!!e.autoGenerate}},{name:`rateMax:number`,default:5,onSettingValue:(e,t)=>t<e.rateMin+e.rateStep?e.rateMin+e.rateStep:t,visibleIf:function(e){return!!e.autoGenerate}},{name:`rateStep:number`,default:1,minValue:.1,onSettingValue:(e,t)=>(t<=0&&(t=1),t>e.rateMax-e.rateMin&&(t=e.rateMax-e.rateMin),t),visibleIf:function(e){return!!e.autoGenerate}},{name:`minRateDescription`,alternativeName:`mininumRateDescription`,serializationProperty:`locMinRateDescription`},{name:`maxRateDescription`,alternativeName:`maximumRateDescription`,serializationProperty:`locMaxRateDescription`},{name:`displayRateDescriptionsAsExtremeItems:boolean`,default:!1,visibleIf:function(e){return e.rateType==`labels`}},{name:`rateDescriptionLocation`,default:`leftRight`,choices:[`leftRight`,`top`,`bottom`,`topBottom`]},{name:`displayMode`,default:`auto`,choices:[`auto`,`buttons`,`dropdown`]},{name:`itemComponent`,visible:!1,defaultFunc:e=>e?(e.getOriginalObj&&(e=e.getOriginalObj()),e.getDefaultItemComponent()):`sv-rating-item`}],function(){return new iR(``)},`question`),xF.Instance.registerQuestion(`rating`,e=>new iR(e));var aR=class extends HP{getBaseType(){return`sliderlabel`}onGetText(e){return e||!this.locOwner?super.onGetText(e):this.locOwner.getTextByItem(this)}getCorrectValue(e){return typeof e==`number`?e:K.isNumber(e)?parseFloat(e.toString()):this.value||0}};q([Y({defaultValue:!1})],aR.prototype,`showValue`,void 0);var oR=class extends zP{get labelCount(){return this.customLabels.length>0?this.customLabels.length:this.tickSize?Math.round(100/this.tickSize)+2:this.getPropertyValue(`labelCount`)}set labelCount(e){this.setPropertyValue(`labelCount`,e)}get allowSwap(){return!this.minRangeLength&&this.getPropertyValue(`allowSwap`,!0)}set allowSwap(e){this.setPropertyValue(`allowSwap`,e)}constructor(e){super(e),this.getThumbContainerCss=e=>new X().append(this.cssClasses.thumbContainer).append(this.cssClasses.thumbContainerIndeterminateMode,!!this.isIndeterminate).append(this.cssClasses.thumbContainerFocusedMode,e===this.focusedThumb).toString(),this.getLabelCss=e=>new X().append(this.cssClasses.label).append(this.cssClasses.labelLongMod,e.renderedHtml.length>10).toString(),this.isIndeterminate=!1,this.getTrackPercentLeft=()=>{let{renderedValue:e,sliderType:t,renderedMin:n}=this,r;return r=t===`single`?e[0]>0?this.getPercent(Math.max(0,n)):this.getPercent(e[0]):this.getPercent(Math.min(...e)),r},this.getTrackPercentRight=()=>{let{renderedValue:e,sliderType:t,renderedMax:n}=this,r;return r=t===`single`?e[0]>0?this.getPercent(e[0]):this.getPercent(Math.min(0,n)):this.getPercent(Math.max(...e)),100-r},this.getPercent=e=>{let{renderedMax:t,renderedMin:n}=this,r=t-n;return Math.abs(e-n)/r*100},this.ensureMaxRangeBorders=(e,t)=>{let{renderedMaxRangeLength:n,renderedValue:r}=this,i=r.slice(),a=i[t],o=!1;i[t]=e;for(let e=0;e<i.length-1;e++)if(Math.abs(i[e]-i[e+1])>n){o=!0;break}return o?a:e},this.ensureMinRangeBorders=(e,t)=>{let{renderedMinRangeLength:n,renderedValue:r,allowSwap:i,renderedMin:a,renderedMax:o}=this,s=r.slice(),c=s[t],l=!1;s[t]=e;for(let e=0;e<s.length-1;e++)if(Math.abs(s[e]-s[e+1])<n){l=!0;break}if(!i){let n=t>0?s[t-1]:a,r=t<s.length-1?s[t+1]:o;(e<=n||e>=r)&&(l=!0)}return l?c:e},this.getClosestToStepValue=e=>{let{step:t,renderedMin:n,renderedMax:r}=this,i=n+Math.trunc((r-n)/t)*t,a=n+Math.round((e-n)/t)*t;return a=Math.min(i,a),a},this.handleRangeOnChange=e=>{if(!this.isRangeMoving||!this.isAllowToChange())return;let{renderedMax:t,renderedMin:n,renderedValue:r,ensureMaxRangeBorders:i,ensureMinRangeBorders:a}=this,o=e.target,s=this.oldInputValue-+o.value;this.oldInputValue=+o.value;
87let c=!1;for(let e=0;e<r.length;e++){let o=r[e]-s;o=i(o,e),o=a(o,e),o<=t&&o>=n?r.splice(e,1,o):c=!0}if(c){c=!1;return}},this.prepareInputRangeForMoving=(e,t)=>{let{renderedMax:n,renderedMin:r}=this;this.isRangeMoving=!0,this.animatedThumb=!1;let i=NN(t);if(!i)return;let a=i.querySelector(`#`+this.id+`-sjs-slider-input-range-input`);a.style.setProperty(`--sjs-range-slider-range-input-thumb-width`,`20px`),a.style.setProperty(`--sjs-range-slider-range-input-thumb-left`,`initial`),a.style.setProperty(`--sjs-range-slider-range-input-thumb-position`,`static`);let o=(e.clientX-t.getBoundingClientRect().x)/t.getBoundingClientRect().width*100/100*(n-r)+r;a.value=``+o,this.oldInputValue=o},this.handleRangePointerDown=(e,t)=>{let{dragOrClickHelper:n,allowDragRange:r,step:i,prepareInputRangeForMoving:a}=this,o=e.target;i&&(o.step=`0.01`),r&&(n.dragHandler=()=>{a.call(this,e,t)},n.onPointerDown(e))},this.handleRangePointerUp=(e,t)=>{let{step:n,renderedValue:r,getClosestToStepValue:i}=this,a=e.target;if(this.isRangeMoving){if(this.refreshInputRange(),this.isRangeMoving=!1,n){a.step=``+n;for(let e=0;e<r.length;e++)r[e]=i(r[e]);this.setSliderValue(r)}return}a.style.setProperty(`--sjs-range-slider-range-input-thumb-width`,`0px`),a.style.setProperty(`--sjs-range-slider-range-input-thumb-left`,`initial`),a.style.setProperty(`--sjs-range-slider-range-input-thumb-position`,`static`),this.setValueByClickOnPath(e,t)},this.refreshInputRange=e=>{let{allowDragRange:t,renderedValue:n,getPercent:r}=this;if(!t)return;let i=e||this.questionRootElement.querySelector(`#`+this.id+`-sjs-slider-input-range-input`);if(!i)return;let a=r(n[n.length-1]),o=r(n[0]),s=a-o;i.style.setProperty(`--sjs-range-slider-range-input-thumb-width`,`calc(${s}% - 20px - 20px)`),i.style.setProperty(`--sjs-range-slider-range-input-thumb-left`,`calc(${o}% + 20px)`),i.style.setProperty(`--sjs-range-slider-range-input-thumb-position`,`absolute`)},this.setSliderValue=e=>{if(this.isAllowToChange()){let t;this.sliderType===`single`?t=Array.isArray(e)?e[0]:e:this.sliderType===`range`&&(t=e),this.value=t,this.resetPropertyValue(`renderedValue`)}},this.setValueByClickOnPath=(e,t)=>{let{renderedMax:n,renderedMin:r}=this,i=nj.getComputedStyle(nj.getBody()).direction==`rtl`,a=(e.clientX-t.getBoundingClientRect().x)/t.getBoundingClientRect().width*100;i&&(a=100-a);let o=a/100*(n-r)+r;this.setValueByClick(o,e.target)},this.setValueByClick=(e,t)=>{let{step:n,getClosestToStepValue:r,ensureMaxRangeBorders:i,ensureMinRangeBorders:a,renderedValue:o,refreshInputRange:s,setSliderValue:c}=this;this.animatedThumb=!0;let l=o.slice(),u=0;for(let t=0;t<l.length;t++){let n=Math.abs(l[u]-e);Math.abs(l[t]-e)<n&&(u=t)}if(l.length>1&&(e=i(e,u),e=a(e,u)),l[u]=e,n){let e=o.slice();for(let t=0;t<l.length;t++){let i=e[t]/n,a=l[t]/n;Math.round(a)===i&&(a>i?l[t]=l[t]+n:a<i&&(l[t]=l[t]-n)),l[t]=r(l[t])}}c(l),s()},this.handleOnChange=(e,t)=>
87{if(!this.isAllowToChange()||this.oldValue===null)return;let{allowSwap:n,ensureMaxRangeBorders:r,ensureMinRangeBorders:i,renderedValue:a}=this,o=+e.target.value;a.length>1&&(o=r(o,t),n||(o=i(o,t))),a.splice(t,1,o)},this.handlePointerDown=e=>{let{step:t,renderedValue:n}=this;if(t)for(let e=0;e<n.length;e++){let t=this.questionRootElement.querySelector(`#`+this.id+`-sjs-slider-input-${e}`);t.step=.01}this.oldValue=this.renderedValue,this.animatedThumb=!1},this.handlePointerUp=e=>{e.stopPropagation();let{step:t,focusedThumb:n,renderedValue:r,allowSwap:i,renderedMinRangeLength:a,getClosestToStepValue:o,refreshInputRange:s,setSliderValue:c}=this,l=r[n];if(e.target,r.sort((e,t)=>e-t),this.focusedThumb=r.indexOf(l),t)for(let e=0;e<r.length;e++){r[e]=o(r[e]);let n=this.questionRootElement.querySelector(`#`+this.id+`-sjs-slider-input-${e}`);n.step=t}if(i){for(let e=0;e<r.length-1;e++)if(Math.abs(r[e]-r[e+1])<a){this.setPropertyValue(`renderedValue`,this.oldValue);break}}c(r),s(),this.oldValue=null},this.handleKeyDown=e=>{this.oldValue=this.renderedValue,this.animatedThumb=!0},this.handleKeyUp=e=>{this.oldValue=null,this.setSliderValue(this.renderedValue)},this.handleOnFocus=e=>{this.focusedThumb=e},this.handleOnBlur=()=>{this.focusedThumb=null},this.handleLabelPointerUp=(e,t)=>{let n=e.target;isNaN(t)||this.setValueByClick(t,n)},this.getTooltipValue=e=>{let{step:t,getClosestToStepValue:n,renderedValue:r,tooltipFormat:i,formatNumber:a}=this,o=r[e];return o=t?n(o):o,o=a(o),i.replace(`{0}`,``+o)},this.getLabelText=e=>{let{step:t,renderedMax:n,renderedMin:r,renderedLabelCount:i,formatNumber:a}=this,o=n-r,s=t%1!=0,c=i-1,l=c===0?0:e*o/c;return s?``+a(l+r):``+Math.round(l+r)},this.getLabelPosition=e=>{let{max:t,min:n,renderedLabelCount:r,customLabels:i}=this,a=r-1;return a===0?0:n+e*(t-n)/a},this.isRangeMoving=!1,this.oldInputValue=null,this.oldValue=null,this.calcRenderedValue=()=>{let{renderedMax:e,renderedMin:t,renderedMaxRangeLength:n,getClosestToStepValue:r,sliderType:i}=this,a;if(i===`single`)return a=this.ensureValueRespectMinMax(this.value),a==null||a.length===0?(this.isIndeterminate=!0,this.isNegativeScale?[Math.min(e,0)]:[t]):Array.isArray(a)?[a[0]]:[a];if(a=Array.isArray(this.value)?this.value.slice():[],a.length===0){let i=e-t;if(this.isIndeterminate=!0,Math.abs(i)>n){let a=(i-n)/2;return[r(t+a),r(e-a)]}return[t,e]}return a.map(e=>this.ensureValueRespectMinMax(e))},this.createItemValues(`customLabels`),this.dragOrClickHelper=new rI(null,!1)}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`autoGenerate`&&this.executeOnSyncPropertiesChanged(()=>{!this.autoGenerate&&this.customLabels.length===0&&this.setPropertyValue(`customLabels`,this.calcGeneratedLabels()),this.autoGenerate&&this.customLabels.splice(0,this.customLabels.length)}),[`min`,`max`,`step`,`autoGenerate`,`labelFormat`,`labelCount`].indexOf(e)>-1&&(this.resetPropertyValue(`generatedLabels`),this.locStrsChanged()),[`min`,`max`,`step`,`maxRangeLength`,`minRangeLength`,`sliderType`].indexOf(e)>-1&&this.resetPropertyValue(`renderedValue`)}get generatedLabels(){return this.getPropertyValue(`generatedLabels`,void 0,()=>this.calcGeneratedLabels())}get renderedValue(){return this.getPropertyValue(`renderedValue`,void 0,()=>this.calcRenderedValue())}set renderedValue(e){this.setPropertyValue(`renderedValue`,e)}getType(){return`slider`}getAllChildren(){return[...super.getAllChildren(),...this.customLabels]}get rootCss(){return new X().append(this.cssClasses.root).append(this.cssClasses.rootSingleMode,this.sliderType===`single`).append(this.cssClasses.rootNegativeScaleMode,!!this.isNegativeScale).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.rootAnimatedThumbMode,!!this.animatedThumb).append(this.cssClasses.rootTooltipsAlwaysMode,this.tooltipVisibility===`always`).append(this.cssClasses.rootLabelsShowValueTextMode,this.isLabelsShowValueText).toString()}get tooltipCss(){return new X().append(this.cssClasses.tooltip).append(this.cssClasses.tooltipOnHoverMode,this.tooltipVisibility===`auto`).toString()}get renderedLabelCount(){return this.labelCount<0?6:this.labelCount}get renderedMax(){return this.max}get renderedMin(){return this.min}get renderedMaxRangeLength(){return this.maxRangeLength??this.renderedMax-this.renderedMin}get renderedMinRangeLength(){return this.minRangeLength??this.step}get renderedLabels(){let e=this.generatedLabels,t=this.customLabels;return this.autoGenerate?e:t}get isNegativeScale(){return this.renderedMin<0}getTextByItem(e){let t=e.value.toString();return this.labelFormat.replace(`{0}`,``+t)}endLoadingFromJson(){super.endLoadingFromJson(),this.jsonObj.customLabels!==void 0&&(this.autoGenerate=!1),!this.isDesignMode&&this.sliderType===`range`&&this.createNewArray(`value`)}updateValueFromSurvey(e,t){e=this.ensureValueRespectMinMax(e),super.updateValueFromSurvey(e,t),this.isIndeterminate&&(this.isIndeterminate=!1),this.resetPropertyValue(`renderedValue`)}itemValuePropertyChanged(e,t,n,r){if(this.autoGenerate===!0){let t=this.generatedLabels.indexOf(e);this.autoGenerate=!1,this.setPropertyValue(`customLabels`,this.calcGeneratedLabels()),e=this.customLabels[t]}t===`text`&&(Number.isFinite(+r)?e.value=+r:e.text=r),super.itemValuePropertyChanged(e,t,n,r)}
87afterRenderQuestionElement(e){super.afterRenderQuestionElement(e),this.questionRootElement=e}beforeDestroyQuestionElement(e){super.beforeDestroyQuestionElement(e),this.questionRootElement=void 0}runConditionCore(e){super.runConditionCore(e),this.runExpressionByProperty(`maxValueExpression`,e,e=>{this.max=e??this.renderedMax}),this.runExpressionByProperty(`minValueExpression`,e,e=>{this.min=e??this.renderedMin})}setNewValue(e){e=this.ensureValueRespectMinMax(e),super.setNewValue(e),this.isIndeterminate&&(this.isIndeterminate=!1),this.resetPropertyValue(`renderedValue`)}setDefaultValue(){super.setDefaultValue();let e=this.defaultValue;this.sliderType===`single`&&Array.isArray(e)&&this.setSliderValue(e),this.resetPropertyValue(`renderedValue`)}getDefaultTitleActions(){let e=[];if(!this.isDesignMode){let t=new kN({locTitleName:`clearCaption`,id:`sv-clr-btn-${this.id}`,action:()=>{this.clearValueFromUI()},innerCss:this.cssClasses.clearButton,visible:new KM(()=>this.allowClear&&!this.isReadOnly),ariaLabelledBy:this.a11y_input_ariaLabelledBy});e.push(t)}return e}getItemValueType(){return`sliderlabel`}createLabelItem(e){let t=new aR(e);return t.locOwner=this,t}calcGeneratedLabels(){let e=[];for(let t=0;t<this.renderedLabelCount;t++)e.push(this.createLabelItem(this.getLabelPosition(t)));return e}formatNumber(e){return parseFloat(e.toFixed(4))}ensureValueRespectMinMax(e){return Array.isArray(e)?e.forEach((t,n,r)=>{t<this.min&&(e[n]=this.min),t>this.max&&(e[n]=this.max),n===0?t??(e[n]=this.min):n===r.length-1&&(t??(e[n]=this.max))}):(e<this.min&&(e=this.min),e>this.max&&(e=this.max)),e}isAllowToChange(){return!this.isReadOnly&&!this.isDisabledAttr&&!this.isPreviewStyle&&!this.isDisabledStyle}get isLabelsShowValueText(){return!!this.customLabels.find(e=>e.showValue)}};q([Y({defaultValue:`single`})],oR.prototype,`sliderType`,void 0),q([Y({defaultValue:100})],oR.prototype,`max`,void 0),q([Y({defaultValue:0})],oR.prototype,`min`,void 0),q([Y({defaultValue:null})],oR.prototype,`maxValueExpression`,void 0),q([Y({defaultValue:null})],oR.prototype,`minValueExpression`,void 0),q([Y({defaultValue:null})],oR.prototype,`maxRangeLength`,void 0),q([Y({defaultValue:null})],oR.prototype,`minRangeLength`,void 0),q([Y({defaultValue:`{0}`})],oR.prototype,`tooltipFormat`,void 0),q([Y({defaultValue:`{0}`})],oR.prototype,`labelFormat`,void 0),q([Y({defaultValue:`auto`})],oR.prototype,`tooltipVisibility`,void 0),q([Y()],oR.prototype,`step`,void 0),q([Y({defaultValue:!0})],oR.prototype,`showLabels`,void 0),q([Y({defaultValue:!0})],oR.prototype,`autoGenerate`,void 0),q([Y()],oR.prototype,`customLabels`,void 0),q([Y({defaultValue:!0})],oR.prototype,`allowDragRange`,void 0),q([Y({defaultValue:null})],oR.prototype,`tickSize`,void 0),q([Y({defaultValue:!1})],oR.prototype,`allowClear`,void 0),q([Y({defaultValue:null})],oR.prototype,`focusedThumb`,void 0),q([Y({defaultValue:null})],oR.prototype,`animatedThumb`,void 0);function sR(e,t,n,r){return e>=t?n?e+r:t-r:n?t:e}J.addClass(`sliderlabel`,[{name:`!value:number`},{name:`visibleIf`,visible:!1},{name:`enableIf`,visible:!1},{name:`showValue:boolean`,locationInTable:`detail`,default:!1}],e=>new aR(e),`itemvalue`),J.addClass(`slider`,[{name:`sliderType`,default:`single`,choices:[`single`,`range`]},{name:`autoGenerate`,default:!0,isSerializable:!1,choices:[!0,!1]},{name:`min:number`,default:0,onSettingValue:(e,t)=>sR(t,e.max,!1,e.step)},{name:`max:number`,default:100,onSettingValue:(e,t)=>sR(e.min,t,!0,e.step)},{name:`step:number`,default:1},{name:`minValueExpression`,type:`expression`},{name:`maxValueExpression`,type:`expression`},{name:`minRangeLength:number`,visibleIf:function(e){return e.sliderType===`range`}},{name:`maxRangeLength:number`,visibleIf:function(e){return e.sliderType===`range`}},{name:`customLabels:sliderlabel[]`,visibleIf:function(e){return!e.autoGenerate}},{name:`showLabels:boolean`,default:!0},{name:`tooltipVisibility:string`,default:`auto`,choices:[`auto`,`always`,`never`]},{name:`labelFormat:string`,default:`{0}`},{name:`tooltipFormat:string`,default:`{0}`},{name:`allowDragRange:boolean`,default:!0,visible:!1,visibleIf:function(e){return e.sliderType===`range`}},{name:`allowSwap:boolean`,default:!0,visibleIf:function(e){return e.sliderType===`range`}},{name:`labelCount:number`,default:-1,visibleIf:function(e){return e.autoGenerate}},{name:`allowClear:boolean`,default:!1}],function(){return new oR(``)},`question`),xF.Instance.registerQuestion(`slider`,e=>new oR(e));var cR=class extends zP{getType(){return`boolean`}isLayoutTypeSupported(e){return!0}supportAutoAdvance(){return this.renderAs!==`checkbox`}get isIndeterminate(){return this.isEmpty()}get booleanValue(){return this.isEmpty()?null:this.value==this.getValueTrue()}set booleanValue(e){this.isReadOnly||this.isDesignMode||this.setBooleanValue(e)}setBooleanValue(e){this.value=this.isValueEmpty(e)?void 0:e==1?this.getValueTrue():this.getValueFalse()}get defaultValue(){return this.getPropertyValue(`defaultValue`)}set defaultValue(e){e===!0&&(e=`true`),e===!1&&(e=`false`),this.setPropertyValue(`defaultValue`,e),this.updateV
87alueWithDefaults()}getDefaultValue(){let e=this.defaultValue;if(e!==`indeterminate`&&e!=null)return e==`true`?this.getValueTrue():this.getValueFalse()}get locTitle(){let e=this.getLocalizableString(`title`);return(this.isLabelRendered&&!this.showTitle||this.isValueEmpty(e.text))&&!this.isValueEmpty(this.locLabel.text)?this.locLabel:e}get labelRenderedAriaID(){return this.isLabelRendered?this.ariaTitleId:null}beforeDestroyQuestionElement(e){super.beforeDestroyQuestionElement(e),this.leftAnswerElement=void 0}get isLabelRendered(){return this.titleLocation===`hidden`||this.useTitleAsLabel}get canRenderLabelDescription(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)}get isDeterminated(){return this.booleanValue!==null&&this.booleanValue!==void 0}get locLabelLeft(){return this.swapOrder?this.locLabelTrue:this.locLabelFalse}get locLabelRight(){return this.swapOrder?this.locLabelFalse:this.locLabelTrue}getValueTrue(){return this.valueTrue===void 0||this.valueTrue}getValueFalse(){return this.valueFalse!==void 0&&this.valueFalse}setDefaultValue(){this.isDefaultValueSet(`true`,this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet(`false`,this.valueFalse)&&this.setBooleanValue(!1);let e=this.defaultValue;(e===`indeterminate`||e==null)&&this.setBooleanValue(void 0)}isDefaultValueSet(e,t){return this.defaultValue==e||t!==void 0&&this.defaultValue===t}getDisplayValueCore(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml}getItemCssValue(e){return new X().append(e.item).append(e.itemOnError,this.hasCssError()).append(e.itemDisabled,this.isDisabledStyle).append(e.itemReadOnly,this.isReadOnlyStyle).append(e.itemPreview,this.isPreviewStyle).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemExchanged,!!this.swapOrder).append(e.itemIndeterminate,!this.isDeterminated).append(e.itemIsLabelRendered,!!this.isLabelRendered).toString()}getItemCss(){return this.getItemCssValue(this.cssClasses)}getCheckboxItemCss(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemDisable:this.cssClasses.checkboxItemDisabled,itemReadOnly:this.cssClasses.checkboxItemReadOnly,itemPreview:this.cssClasses.checkboxItemPreview,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate,itemIsLabelRendered:this.cssClasses.checkboxIsLabelRendered})}getLabelCss(e){return new X().append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isDisabledStyle).append(this.cssClasses.labelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.labelPreview,this.isPreviewStyle).append(this.cssClasses.labelTrue,!this.isIndeterminate&&e===!this.swapOrder).append(this.cssClasses.labelFalse,!this.isIndeterminate&&e===this.swapOrder).toString()}updateValueFromSurvey(e,t=!1){super.updateValueFromSurvey(e,t)}onValueChanged(){super.onValueChanged()}get svgIcon(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:!this.isDeterminated&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId}get itemSvgIcon(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId}get allowClick(){return this.isIndeterminate&&!this.isInputReadOnly}getCheckedLabel(){if(this.booleanValue===!0)return this.locLabelTrue;if(this.booleanValue===!1)return this.locLabelFalse}setQuestionValue(e,t=!0){e===`true`&&this.valueTrue!==`true`&&(e=!0),e===`false`&&this.valueFalse!==`false`&&(e=!1),(e===`indeterminate`||e===null)&&(e=void 0),super.setQuestionValue(e,t)}onLabelClick(e,t){return this.allowClick&&(KN(e),this.booleanValue=t),!0}calculateBooleanValueByEvent(e,t){let n=!1;nj.isAvailable()&&(n=nj.getComputedStyle(e.target).direction==`rtl`);let r=n?!t:t;this.swapOrder&&(r=!r),this.booleanValue=r}onSwitchClickModel(e){if(this.allowClick){KN(e);var t=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,t);return}return!0}onKeyDownCore(e){let t=e.key;if(t===`ArrowLeft`||t===`ArrowRight`||t===`ArrowUp`||t===`ArrowDown`){if(this.isInputReadOnly)return KN(e),!1;(t===`ArrowLeft`||t===`ArrowRight`)&&(e.stopPropagation(),this.calculateBooleanValueByEvent(e,t===`ArrowRight`))}return!0}getRadioItemClass(e,t){let n;return e.radioItem&&(n=e.radioItem),e.radioItemChecked&&t===this.value&&(n=(n?n+` `:``)+e.radioItemChecked),this.isDisabledStyle&&(n+=` `+e.radioItemDisabled),this.isReadOnlyStyle&&(n+=` `+e.radioItemReadOnly),this.isPreviewStyle&&(n+=` `+e.radioItemPreview),n}supportResponsiveness(){return!0}getCompactRenderAs(){return`radio`}createActionContainer(e){return super.createActionContainer(this.renderAs!==`checkbox`)}getIsTitleRenderedAsString(){return!1}get isNewA11yStructure(){return!0}get a11y_input_ariaRole(){return`switch`}};q([Y({localizable:!0})],cR.prototype,`label`,void 0),q([Y({defaultValue:!1,onSet:(e,t)=>{e&&t.setPropertyValue(`titleLocation`,`hidden`)}})],cR.prototype,`useTitleAsLabel`,void 0),q([Y({localizable:{defaultStr:`booleanCheckedLabel`,markdown:!0}})],cR.prototype,`labelTrue`,void 0),q([Y({defaultValue:!1})],cR.prototype,`swapOrder`,void 0),q([Y({localizable:{defaultStr:`booleanUncheckedLabel`,markdown:!0}})],cR.prototype,`labelFalse`,void 0),q([Y()],cR.prototype,`valueTrue`,void 0),q([Y()],cR.prototype,`valueFalse`,void 0),J.addClass(`boolean`,[{name:`showCommentArea:switch`,visible:!0},{name:`label:text`,serializationProperty:`locLabel`,isSerializable:!1,visible:!1},{name:`labelTrue`,serializationProperty:`locLabelTrue`},{name:`labelFalse`,serializationProperty:`locLabelFalse`},`valueTrue`,`valueFalse`,{name:`swapOrder:boolean`},{name:`renderAs`,default:`default`,visible:!1},{name:`useTitleAsLabel`,default:!1,visible:!1}],function(){return new cR(``)},`question`),xF.Instance.registerQuestion(`boolean`,e=>new cR(e));var lR=class extends WI{getBaseType(){return`imageitemvalue`}isPropertyStoredInHash(e){return e!==`imageLink`&&super.isPropertyStoredInHash(e)}getLocale(){return this.locOwner?this.locOwner.getLocale():``}getMarkdownHtml(e,t,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,t,n):void 0}getRenderer(e){return this.locOwner?this.locOwner.getRenderer(e):null}getRendererContext(e){return this.locOwner?this.locOwner.getRendererContext(e):e}getProcessedText(e,t){return this.locOwner?this.locOwner.getProcessedText(e,t):e}onErrorHandler(){this.contentNotLoaded=!0}set contentNotLoaded(e){this.locOwner instanceof uR&&this.locOwner.contentMode==`video`?this.videoNotLoaded=e:this.imageNotLoaded=e}get contentNotLoaded(){return this.locOwner instanceof uR&&this.locOwner.contentMode==`video`?this.videoNotLoaded:this.imageNotLoaded}};q([Y({defaultValue:!1})],lR.prototype,`videoNotLoaded`,void 0),q([Y({defaultValue:!1})],lR.prototype,`imageNotLoaded`,void 0),q([Y({localizable:!0})],lR.prototype,`imageLink`,void 0);var uR=class extends KI{constructor(e){super(e),this.isResponsiveValue=!1,this.onContentLoaded=(e,t)=>{e.contentNotLoaded=!1;let n=t.target;e.aspectRatio=this.contentMode==`video`?n.videoWidth/n.videoHeight:n.naturalWi
87dth/n.naturalHeight,this._width&&this.processResponsiveness(0,this._width)},this.gridColCount=void 0,this.colCount=0,this.calcIsResponsive()}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),[`minImageWidth`,`maxImageWidth`,`minImageHeight`,`maxImageHeight`,`visibleChoices`,`colCount`,`isResponsiveValue`].indexOf(e)>-1&&this._width&&this.processResponsiveness(0,this._width),(e===`imageWidth`||e===`imageHeight`)&&this.calcIsResponsive(),e===`imageLink`&&(this.imageNotLoaded=!1,this.videoNotLoaded=!1)}getType(){return`imagepicker`}supportAutoAdvance(){return!this.multiSelect}get hasSingleInput(){return!1}getItemValueType(){return`imageitemvalue`}get isCompositeQuestion(){return!0}get itemFlowDirection(){return`row`}supportOther(){return!1}supportNone(){return!1}supportRefuse(){return!1}supportDontKnow(){return!1}isAnswerCorrect(){return this.multiSelect?K.isArrayContainsEqual(this.value,this.getCorrectAnswerValue()):super.isAnswerCorrect()}isItemSelected(e){var t=this.value;let n=e;if(this.isValueEmpty(t)||!n.imageLink||n.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1}getItemEnabled(e){let t=e;return!t.imageLink||t.contentNotLoaded?!1:super.getItemEnabled(e)}clearIncorrectValues(){if(this.multiSelect){var e=this.value;if(!e)return;if(!Array.isArray(e)||e.length==0){this.clearValue(!0);return}for(var t=[],n=0;n<e.length;n++)this.hasUnknownValue(e[n],!0)||t.push(e[n]);if(t.length==e.length)return;t.length==0?this.clearValue(!0):this.value=t}else super.clearIncorrectValues()}getDisplayValueCore(e,t){return!this.multiSelect&&!Array.isArray(t)?super.getDisplayValueCore(e,t):this.getDisplayArrayValue(e,t)}endLoadingFromJson(){super.endLoadingFromJson(),!this.isDesignMode&&this.multiSelect&&(this.createNewArray(`renderedValue`),this.createNewArray(`value`)),this.calcIsResponsive()}getValueCore(){var e=super.getValueCore();return e===void 0&&this.multiSelect?[]:e}convertValToArrayForMultSelect(e){return!this.multiSelect||this.isValueEmpty(e)||Array.isArray(e)?e:[e]}renderedValueFromDataCore(e){return this.convertValToArrayForMultSelect(e)}renderedValueToDataCore(e){return this.convertValToArrayForMultSelect(e)}get imageScale(){return this.survey?this.survey.widthScale/100:1}get renderedImageHeight(){return(this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight*this.imageScale)||150*this.imageScale}get renderedImageWidth(){return(this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth*this.imageScale)||200*this.imageScale}valueToData(e){return e}get inputType(){return this.multiSelect?`checkbox`:`radio`}isBuiltInChoice(e){return!1}addToVisibleChoices(e,t){this.addNewItemToVisibleChoices(e,t)}getSelectBaseRootCss(){let e=this.isResponsive;return new X().append(super.getSelectBaseRootCss()).append(this.cssClasses.rootResponsive,e).append(this.cssClasses.rootStatic,!e).append(this.cssClasses.rootColumn,this.getCurrentColCount()==1).toString()}get isResponsive(){return this.isResponsiveValue}get exactSizesAreEmpty(){return![`imageHeight`,`imageWidth`].some(e=>this[e]!==void 0&&this[e]!==null)}calcIsResponsive(){this.isResponsiveValue=this.exactSizesAreEmpty}getObservedElementSelector(){return RN(this.cssClasses.root)}supportResponsiveness(){return!0}needResponsiveness(){return this.supportResponsiveness()}needResponsiveWidth(){return this.colCount>2}getCurrentColCount(){return this.responsiveColCount===void 0||this.colCount===0?this.colCount:this.responsiveColCount}getContainerStyle(){return this.isResponsive?{gridAutoFlow:this.gridColCount?null:`column`,gridTemplateColumns:this.gridColCount?`repeat(${this.gridColCount}, 1fr)`:null}:{}}processResponsiveness(e,t){this._width=t=Math.floor(t);let n=(e,t,n)=>{let r=Math.floor(e/(t+n));return(r+1)*(t+n)-n<=e&&r++,r};if(this.isResponsive){let e=this.choices.length+ +!!this.isDesignMode,r=(this.gapBetweenItems||0)*this.imageScale,i=this.minImageWidth*this.imageScale,a=this.maxImageWidth*this.imageScale,o=this.maxImageHeight*this.imageScale,s=this.minImageHeight*this.imageScale,c=this.colCount,l,u=n(t,i,r);c===0?(l=(r+i)*e-r>t?Math.floor((t-r*(u-1))/u):Math.floor((t-r*(e-1))/e),this.gridColCount=Math.max(Math.min(e,u),1)):(u<c?(this.responsiveColCount=Math.max(u,1),c=this.responsiveColCount):this.responsiveColCount=c,this.gridColCount=this.responsiveColCount,l=Math.floor((t-r*(c-1))/c)),l=Math.max(i,Math.min(l,a));let d=Number.MIN_VALUE;
87this.choices.forEach(e=>{let t=l/e.aspectRatio;d=t>d?t:d}),d>o?d=o:d<s&&(d=s);let f=this.responsiveImageWidth,p=this.responsiveImageHeight;return this.responsiveImageWidth=l,this.responsiveImageHeight=d,f!==this.responsiveImageWidth||p!==this.responsiveImageHeight}return!1}triggerResponsiveness(e=!0){e&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),super.triggerResponsiveness(e)}afterRender(e){super.afterRender(e);let t=this.getObservedElementSelector(),n=e&&t?e.querySelector(t):void 0;n&&(this.reCalcGapBetweenItemsCallback=()=>{this.gapBetweenItems=Math.ceil(Number.parseFloat(nj.getComputedStyle(n).gap))||16},this.reCalcGapBetweenItemsCallback())}get ariaRole(){return this.multiSelect?`group`:`radiogroup`}get ariaRequired(){return null}get inputRequiredAttribute(){return this.multiSelect?this.hasRequiredError():null}};q([Y()],uR.prototype,`multiSelect`,void 0),q([Y()],uR.prototype,`showLabel`,void 0),q([Y()],uR.prototype,`imageHeight`,void 0),q([Y({})],uR.prototype,`responsiveImageHeight`,void 0),q([Y()],uR.prototype,`imageWidth`,void 0),q([Y({})],uR.prototype,`responsiveImageWidth`,void 0),q([Y()],uR.prototype,`imageFit`,void 0),q([Y({onSet:(e,t)=>{e===`video`&&(t.showLabel=!0)}})],uR.prototype,`contentMode`,void 0),q([Y({})],uR.prototype,`isResponsiveValue`,void 0),q([Y({})],uR.prototype,`maxImageWidth`,void 0),q([Y({})],uR.prototype,`minImageWidth`,void 0),q([Y({})],uR.prototype,`maxImageHeight`,void 0),q([Y({})],uR.prototype,`minImageHeight`,void 0),q([Y({})],uR.prototype,`responsiveColCount`,void 0),q([Y()],uR.prototype,`gridColCount`,void 0),J.addClass(`imageitemvalue`,[{name:`imageLink:file`,serializationProperty:`locImageLink`}],e=>new lR(e),`itemvalue`),J.addClass(`responsiveImageSize`,[],void 0,`number`),J.addClass(`imagepicker`,[{name:`showOtherItem`,visible:!1},{name:`otherText`,visible:!1},{name:`showNoneItem`,visible:!1},{name:`showRefuseItem`,visible:!1},{name:`showDontKnowItem`,visible:!1},{name:`noneText`,visible:!1},{name:`placeholder`,visible:!1},{name:`otherErrorText`,visible:!1},{name:`storeOthersAsComment`,visible:!1},{name:`contentMode`,default:`image`,choices:[`image`,`video`]},{name:`imageFit`,default:`contain`,choices:[`none`,`contain`,`cover`,`fill`]},{name:`imageHeight:number`,minValue:0},{name:`imageWidth:number`,minValue:0},{name:`minImageWidth:responsiveImageSize`,default:200,minValue:0},{name:`minImageHeight:responsiveImageSize`,default:133,minValue:0},{name:`maxImageWidth:responsiveImageSize`,default:3e3,minValue:0},{name:`maxImageHeight:responsiveImageSize`,default:3e3,minValue:0},`showLabel:boolean`,{name:`colCount:number`,default:0,choices:[0,1,2,3,4,5]},`multiSelect:boolean`],function(){return new uR(``)},`checkboxbase`),J.getProperty(`imagepicker`,`choices`).type=`imageitemvalue[]`,xF.Instance.registerQuestion(`imagepicker`,e=>new uR(e));function dR(e){return nj.getDocument().createElementNS(`http://www.w3.org/2000/svg`,e)}var fR=class extends zP{constructor(e){super(e),this.onBgImageLoaded=()=>{!this.svg||!this.bg||(this.svg.setAttribute(`viewBox`,`0 0 ${this.bg.naturalWidth} ${this.bg.naturalHeight}`),this.renderSVG())},this.onClickHandler=e=>{if(this.isInDesignMode&&this.selectedArea){let t=e.target.dataset.idx;if(t)this.selectedArea.removeCoord(Number(t));else{let[t,n]=this.scaleCoordsToSVG([e.offsetX,e.offsetY]);this.selectedArea.addCoord(t,n)}this.drawAreaControls();return}let t=e.target.dataset.uid;if(!t)return;let n=this.areas.find(e=>e.uniqueId===Number(t));this.mapItemToggle(n)},this.onMouseOverHandler=e=>{if(this.isInDesignMode&&this.selectedArea)return;let t=e.target.dataset.uid;t&&(this.hoveredUID=Number(t))},this.onMouseOutHandler=()=>{this.hoveredUID=null},this.onMouseDownHandler=e=>{e.target.dataset.idx!==void 0&&(this.activeControlPoint=e.target)},this.onMouseUpHandler=()=>{this.activeControlPoint=null},this.onMouseMoveHandler=e=>{if(!this.activeControlPoint)return;let[t,n]=this.scaleCoordsToSVG([e.offsetX,e.offsetY]),r=Number(this.activeControlPoint.dataset.idx);this.selectedArea.setCoord(r,t,n)},this.controlPoints=[],this.createItemValues(`areas`)}get isMultiSelect(){return!this.isDesignMode&&this.multiSelect}getType(){return`imagemap`}getAllChildren(){return[...super.getAllChildren(),...this.areas]}onValueChanged(){super.onValueChanged(),this.renderSVG()}localeChanged(){super.localeChanged(),this.renderSVG()}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`isSelectedInDesigner`&&n===!1&&(this.selectedArea=void 0),e===`multiSelect`&&this.clearValue(),[`idleStrokeColor`,`idleStrokeWidth`,`idleFillColor`,`hoverStrokeColor`,`hoverStrokeWidth`,`hoverFillColor`,`selectedStrokeColor`,`selectedStrokeWidth`,`selectedFillC
87olor`].indexOf(e)>-1&&this.updateCSSVariables(),this.isInDesignMode&&e===`areas`&&!this.areas.length&&(this.selectedArea=void 0),[`areas`,`shape`,`selectedArea`,`hoveredUID`].indexOf(e)>-1&&this.renderSVG()}getValueCore(){var e=super.getValueCore();if(!(!this.isMultiSelect&&Array.isArray(e)&&e.length===0))return e}runConditionCore(e){if(super.runConditionCore(e),HP.runEnabledConditionsForItems(this.areas,void 0,e),HP.runConditionsForItems(this.areas,void 0,void 0,e,!0)){let e=this.getClearIfInvisible();(e==`onHidden`||e==`onHiddenContainer`)&&this.clearIncorrectValues(),this.renderSVG()}}clearValueIfInvisibleCore(e){super.clearValueIfInvisibleCore(e),this.clearIncorrectValues()}clearIncorrectValues(){if(super.clearIncorrectValues(),this.value){if(this.isMultiSelect)this.value=this.value.filter(e=>{let t=this.areas.find(t=>t.value===e);return!!t&&t.isVisible});else{let e=this.areas.find(e=>e.value===this.value);(!e||!e.isVisible)&&(this.value=void 0)}}}afterRenderQuestionElement(e){tj.isAvailable()&&e&&this.initImageMap(e),super.afterRenderQuestionElement(e)}beforeDestroyQuestionElement(e){super.beforeDestroyQuestionElement(e),this.bg&&this.bg.removeEventListener(`load`,this.onBgImageLoaded),this.svg&&(this.svg.removeEventListener(`click`,this.onClickHandler),this.svg.removeEventListener(`mouseover`,this.onMouseOverHandler),this.svg.removeEventListener(`mouseout`,this.onMouseOutHandler),this.svg.removeEventListener(`mousedown`,this.onMouseDownHandler),this.svg.removeEventListener(`mouseup`,this.onMouseUpHandler),this.svg.removeEventListener(`mousemove`,this.onMouseMoveHandler))}initImageMap(e){e&&(this.bg=e.querySelector(`#${this.id}-bg`),this.svg=e.querySelector(`#${this.id}-svg`),this.bg.addEventListener(`load`,this.onBgImageLoaded),this.svg.removeEventListener(`click`,this.onClickHandler),this.svg.addEventListener(`click`,this.onClickHandler),this.svg.removeEventListener(`mouseover`,this.onMouseOverHandler),this.svg.addEventListener(`mouseover`,this.onMouseOverHandler),this.svg.removeEventListener(`mouseout`,this.onMouseOutHandler),this.svg.addEventListener(`mouseout`,this.onMouseOutHandler),this.svg.removeEventListener(`mousedown`,this.onMouseDownHandler),this.svg.addEventListener(`mousedown`,this.onMouseDownHandler),this.svg.removeEventListener(`mouseup`,this.onMouseUpHandler),this.svg.addEventListener(`mouseup`,this.onMouseUpHandler),this.svg.removeEventListener(`mousemove`,this.onMouseMoveHandler),this.svg.addEventListener(`mousemove`,this.onMouseMoveHandler),this.updateCSSVariables())}scaleCoordsToSVG([e,t]){if(!this.svg||!this.bg)return[e,t];let n=this.svg.getScreenCTM().a;return[e/n,t/n]}getCSSVariables(){let e={"--sd-imagemap-idle-fill-color":this.idleFillColor,"--sd-imagemap-idle-stroke-color":this.idleStrokeColor,"--sd-imagemap-idle-stroke-width":this.idleStrokeWidth,"--sd-imagemap-hover-fill-color":this.hoverFillColor,"--sd-imagemap-hover-stroke-color":this.hoverStrokeColor,"--sd-imagemap-hover-stroke-width":this.hoverStrokeWidth,"--sd-imagemap-selected-fill-color":this.selectedFillColor,"--sd-imagemap-selected-stroke-color":this.selectedStrokeColor,"--sd-imagemap-selected-stroke-width":this.selectedStrokeWidth};for(let t in e)(e[t]==null||e[t]===null)&&delete e[t];return Object.keys(e).map(t=>`${t}: ${e[t]}`).join(`; `)}updateCSSVariables(){if(!this.svg)return;let e=this.getCSSVariables();e.length?this.svg.setAttribute(`style`,e):this.svg.removeAttribute(`style`)}dispose(){super.dispose()}renderSVG(){this.svg&&(this.requestAnimationFrameId||(this.requestAnimationFrameId=requestAnimationFrame(()=>{this.requestAnimationFrameId=null,this.svg.innerHTML=``;for(let e of this.areas)e.render(this.svg);this.drawAreaControls()})))}
87onCheckForErrors(e,t,n){if(super.onCheckForErrors(e,t,n),this.isMultiSelect){let t=Array.isArray(this.value)?this.value.length:0;this.maxSelectedAreas>0&&t>this.maxSelectedAreas&&e.push(new dN(this.getLocalizationFormatString(`maxSelectError`,this.maxSelectedAreas),this)),this.minSelectedAreas>0&&t<this.minSelectedAreas&&e.push(new dN(this.getLocalizationFormatString(`minSelectError`,this.minSelectedAreas),this))}}convertToCorrectValue(e){return this.isMultiSelect&&(e=new ML(e,this.valuePropertyName).convert(e)),super.convertToCorrectValue(e)}getDisplayValueCore(e,t){return t&&(Array.isArray(t)||(t=[t]),t=t.map(e=>typeof e==`object`?this.valuePropertyName?e[this.valuePropertyName]:void 0:e).filter(e=>e!==void 0),t=t.map(e=>{var t;return((t=this.areas.find(t=>t.value===e))==null?void 0:t.text)||void 0}).filter(e=>e!==void 0).join(G.choicesSeparator),t)}mapItemToggle(e){if(this.isInDesignMode){this.selectedArea=this.selectedArea===e?void 0:e;return}if(!(this.isReadOnly||!e.enabled)){if(!this.isMultiSelect){this.value=this.value===e.value?void 0:e.value;return}this.value=new ML(this.value,this.valuePropertyName).toggle(e.value,this.maxSelectedAreas)}}isItemSelected(e){return this.isInDesignMode?this.selectedArea===e:this.isMultiSelect?new ML(this.value,this.valuePropertyName).contains(e.value):this.value===e.value}isItemHovered(e){if(!this.hoveredUID)return!1;let t=this.areas.find(e=>e.uniqueId===this.hoveredUID);return t?this.isInDesignMode?e.uniqueId===this.hoveredUID:e.value===t.value:!1}addItem(e){let t=new pR(e);return this.areas.push(t),t}createControlPoint(e,t,n){let r=dR(`circle`);return r.setAttribute(`cx`,e),r.setAttribute(`cy`,t),r.setAttribute(`r`,`4`),r.setAttribute(`class`,this.cssClasses.svgControlPoint),r.dataset.idx=n.toString(),r}drawAreaControls(){if(!this.isInDesignMode)return;for(let e of this.controlPoints)e.parentNode===this.svg&&this.svg.removeChild(e);this.controlPoints=[];let e=this.areas.find(e=>e===this.selectedArea);if(!e)return;let t=e.getShape(),n=e.getCoords();switch(t){case`rect`:for(let e=0;e<4;e+=2){let t=this.createControlPoint(n[e],n[e+1],this.controlPoints.length);this.svg.appendChild(t),this.controlPoints.push(t)}break;case`circle`:for(let[e,t]of[[n[0],n[1]],[Number(n[0])+Number(n[2]),n[1]]]){let n=this.createControlPoint(e,t,this.controlPoints.length);this.svg.appendChild(n),this.controlPoints.push(n)}break;case`poly`:for(let e=0;e<n.length;e+=2){let t=this.createControlPoint(n[e],n[e+1],this.controlPoints.length);this.svg.appendChild(t),this.controlPoints.push(t)}}}};q([Y()],fR.prototype,`imageLink`,void 0),q([Y()],fR.prototype,`areas`,void 0),q([Y()],fR.prototype,`hoveredUID`,void 0),q([Y()],fR.prototype,`valuePropertyName`,void 0),q([Y({defaultValue:!0})],fR.prototype,`multiSelect`,void 0),q([Y({onSetting:e=>e<0?0:e})],fR.prototype,`maxSelectedAreas`,void 0),q([Y({onSetting:e=>e<0?0:e})],fR.prototype,`minSelectedAreas`,void 0),q([Y()],fR.prototype,`shape`,void 0),q([Y()],fR.prototype,`idleStrokeColor`,void 0),q([Y()],fR.prototype,`idleStrokeWidth`,void 0),q([Y()],fR.prototype,`idleFillColor`,void 0),q([Y()],fR.prototype,`hoverStrokeColor`,void 0),q([Y()],fR.prototype,`hoverStrokeWidth`,void 0),q([Y()],fR.prototype,`hoverFillColor`,void 0),q([Y()],fR.prototype,`selectedStrokeColor`,void 0),q([Y()],fR.prototype,`selectedStrokeWidth`,void 0),q([Y()],fR.prototype,`selectedFillColor`,void 0),q([Y()],fR.prototype,`selectedArea`,void 0);var pR=class extends HP{constructor(e){super(e)}getBaseType(){return`imagemaparea`}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n);let r=this.locOwner;[`idleStrokeColor`,`idleStrokeWidth`,`idleFillColor`,`hoverStrokeColor`,`hoverStrokeWidth`,`hoverFillColor`,`selectedStrokeColor`,`selectedStrokeWidth`,`selectedFillColor`].indexOf(e)>-1&&this.updateCSSVariables(),e===`shape`&&r.renderSVG(),e===`coords`&&(this.draw(),r.renderSVG())}getShape(){let e=this.locOwner;return this.shape===`inherit`?e==null?void 0:e.shape:this.shape}getCoords(){let e=this.getShape(),t=this.coords?this.coords.split(`,`).map(e=>e.trim()).filter(e=>e!==``):[];switch(e){case`rect`:t=t.length<4?[`10`,`10`,`100`,`50`]:t;break;case`circle`:t=t.length<3?[`50`,`50`,`40`]:t;break;case`poly`:t=t.length?t:[`50`,`10`,`90`,`90`,`10`,`90`]}return t}getSVGCoords(){let e=this.getCoords();switch(this.getShape()){case`rect`:let[t,n,r,i]=e.map(Number);return[Math.min(t,r),Math.min(n,i),Math.abs(r-t),Math.abs(i-n)].map(e=>e.toString());case`circle`:return[e[0],e[1],e[2]];case`poly`:return e}}addCoord(e,t){if(this.getShape()!==`poly`)return;let n=this.getCoords();this.coords=n+`,${e},${t}`}removeCoord(e){if(this.getShape()!==`poly`)return;let t=this.getCoords();t.length/2<=3||(t.splice(e*2,2),this.coords=t.join(`,`))}setCoord(e,t,n){let r=this.getCoords();switch(this.getShape()){case`rect`:if(e<0||e>1)return;r[e*2]=t.toString(),r[e*2+1]=n.toString();break;case`circle`:if(e<0||e>1)return;if(e===0)r[e*2]=t.toString(),r[e*2+1]=n.toString();else{let e=Number(r[0]),i=Number(r[1]);r[2]=Math.sqrt((t-e)*(t-e)+(n-i)*(n-i)).toString()}break;case`poly`:r[e*2]=t.toString(),r[e*2+1]=n.toString()}this.coords=r.join(`,`)}draw(){switch(this.getShape()){case`rect`:let[e,t,n,r]=this.getSVGCoords();this.svg.setAttribute(`x`,e),this.svg.setAttribute(`y`,t),this.svg.setAttribute(`width`,n),this.svg.setAttribute(`height`,r);break;case`circle`:let[i,a,o]=this.getSVGCoords();this.svg.setAttribute(`cx`,i),this.svg.setAttribute(`cy`,a),this.svg.setAttribute(`r`,o);break;
87case`poly`:this.svg.setAttribute(`points`,this.getSVGCoords().join(`,`))}}render(e){if(!e)return;let t=this.getSVGElement();this.updateCSSVariables(),this.updateCSSClasses(),t.setAttribute(`title`,this.text?this.text:``),this.visible&&t.ownerSVGElement!==e&&e.appendChild(t)}getSVGElement(){let e=this.getShape();if(this.svg&&this.svg.tagName===e)return this.svg;let t=nj.getDocument().createElementNS(`http://www.w3.org/2000/svg`,e===`poly`?`polygon`:e);return t.dataset.uid=this.uniqueId.toString(),this.svg=t,this.draw(),this.svg}getCSSVariables(){let e={"--sd-imagemap-idle-fill-color":this.idleFillColor,"--sd-imagemap-idle-stroke-color":this.idleStrokeColor,"--sd-imagemap-idle-stroke-width":this.idleStrokeWidth,"--sd-imagemap-hover-fill-color":this.hoverFillColor,"--sd-imagemap-hover-stroke-color":this.hoverStrokeColor,"--sd-imagemap-hover-stroke-width":this.hoverStrokeWidth,"--sd-imagemap-selected-fill-color":this.selectedFillColor,"--sd-imagemap-selected-stroke-color":this.selectedStrokeColor,"--sd-imagemap-selected-stroke-width":this.selectedStrokeWidth};for(let t in e)(e[t]==null||e[t]===null)&&delete e[t];return Object.keys(e).map(t=>`${t}: ${e[t]}`).join(`; `)}getCSSClasses(){let e=this.locOwner;if(!e)return``;let t=e.cssClasses,n=e.isItemSelected(this),r=e.isItemHovered(this);return this.enabled?n?t.svgItemSelected:r?t.svgItemHovered:t.svgItem:t.svgItemDisabled}updateCSSVariables(){if(!this.svg)return;let e=this.getCSSVariables();e.length?this.svg.setAttribute(`style`,e):this.svg.removeAttribute(`style`)}updateCSSClasses(){this.svg&&this.svg.setAttribute(`class`,this.getCSSClasses())}};q([Y()],pR.prototype,`shape`,void 0),q([Y()],pR.prototype,`coords`,void 0),q([Y()],pR.prototype,`idleFillColor`,void 0),q([Y()],pR.prototype,`idleStrokeColor`,void 0),q([Y()],pR.prototype,`idleStrokeWidth`,void 0),q([Y()],pR.prototype,`hoverFillColor`,void 0),q([Y()],pR.prototype,`hoverStrokeColor`,void 0),q([Y()],pR.prototype,`hoverStrokeWidth`,void 0),q([Y()],pR.prototype,`selectedFillColor`,void 0),q([Y()],pR.prototype,`selectedStrokeColor`,void 0),q([Y()],pR.prototype,`selectedStrokeWidth`,void 0),J.addClass(`imagemaparea`,[{name:`value`,isUnique:!1},{name:`shape`,choices:[`inherit`,`circle`,`rect`,`poly`],default:`inherit`},{name:`coords:string`,locationInTable:`detail`},{name:`idleFillColor:color`,locationInTable:`detail`},{name:`idleStrokeColor:color`,locationInTable:`detail`},{name:`idleStrokeWidth:number`,locationInTable:`detail`},{name:`hoverFillColor:color`,locationInTable:`detail`},{name:`hoverStrokeColor:color`,locationInTable:`detail`},{name:`hoverStrokeWidth:number`,locationInTable:`detail`},{name:`selectedFillColor:color`,locationInTable:`detail`},{name:`selectedStrokeColor:color`,locationInTable:`detail`},{name:`selectedStrokeWidth:number`,locationInTable:`detail`}],()=>new pR(``),`itemvalue`),J.addClass(`imagemap`,[{name:`imageLink:file`},{name:`areas:imagemaparea[]`},{name:`multiSelect:boolean`,default:!0},{name:`valuePropertyName`},{name:`shape`,choices:[`circle`,`rect`,`poly`],default:`poly`},{name:`idleFillColor:color`},{name:`idleStrokeColor:color`},{name:`idleStrokeWidth:number`},{name:`hoverFillColor:color`},{name:`hoverStrokeColor:color`},{name:`hoverStrokeWidth:number`},{name:`selectedFillColor:color`},{name:`selectedStrokeColor:color`},{name:`selectedStrokeWidth:number`},{name:`maxSelectedAreas:number`,default:0,onSettingValue:(e,t)=>{if(t<=0)return 0;let n=e.minSelectedAreas;return n>0&&t<n?n:t}},{name:`minSelectedAreas:number`,default:0,onSettingValue:(e,t)=>{if(t<=0)return 0;let n=e.maxSelectedAreas;return n>0&&t>n?n:t}}],()=>new fR(``),`question`);var mR=[`.mp4`,`.mov`,`.wmv`,`.flv`,`.avi`,`.mkv`],hR=`https://www.youtube.com/`,gR=`embed`,_R=class extends AL{onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),(e===`contentMode`||e===`imageLink`)&&this.calculateRenderedMode()}getType(){return`image`}get isCompositeQuestion(){return!1}onSurveyLoad(){super.onSurveyLoad(),this.calculateRenderedMode()}get renderedStyleHeight(){return this.imageHeight?aj(this.imageHeight):void 0}get renderedHeight(){return this.imageHeight?ij(this.imageHeight):void 0}get renderedStyleWidth(){return this.imageWidth?aj(this.imageWidth):void 0}get renderedWidth(){return this.imageWidth?ij(this.imageWidth):void 0}get renderedMode(){return this.getPropertyValue(`renderedMode`,`image`)}get ariaInvalid(){return null}get ariaLabel(){return null}get renderedAltText(){return this.altText||this.title}getImageCss(){let e=this.getPropertyByName(`imageHeight`),t=this.getPropertyByName(`imageWidth`),n=e.isDefaultValue(this.imageHeight)&&t.isDefaultValue(this.imageWidth);
87return new X().append(this.cssClasses.image).append(this.cssClasses.adaptive,n).toString()}onLoadHandler(){this.contentNotLoaded=!1}onErrorHandler(){this.contentNotLoaded=!0}setRenderedMode(e){this.setPropertyValue(`renderedMode`,e)}calculateRenderedMode(){this.contentMode===`auto`?this.isYoutubeVideo()?this.setRenderedMode(`youtube`):this.isVideo()?this.setRenderedMode(`video`):this.setRenderedMode(`image`):this.setRenderedMode(this.contentMode)}isYoutubeVideo(){return K.isUrlYoutubeVideo(this.imageLink)}isVideo(){let e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(let t=0;t<mR.length;t++)if(e.endsWith(mR[t]))return!0;return!1}};q([Y({defaultValue:!1})],_R.prototype,`contentNotLoaded`,void 0),q([Y({localizable:{onCreate:(e,t)=>{t.onGetTextCallback=t=>vR(t,e.contentMode==`youtube`)}}})],_R.prototype,`imageLink`,void 0),q([Y({localizable:!0})],_R.prototype,`altText`,void 0),q([Y()],_R.prototype,`imageHeight`,void 0),q([Y()],_R.prototype,`imageWidth`,void 0),q([Y()],_R.prototype,`imageFit`,void 0),q([Y({onSet:(e,t)=>{e===`video`&&(t.showLabel=!0)}})],_R.prototype,`contentMode`,void 0);function vR(e,t){if(!e||!K.isUrlYoutubeVideo(e))return t?``:e;if(e.toLocaleLowerCase().indexOf(gR)>-1)return e;let n=``;for(var r=e.length-1;r>=0&&e[r]!==`=`&&e[r]!==`/`;r--)n=e[r]+n;return hR+gR+`/`+n}J.addClass(`image`,[{name:`imageLink:file`,serializationProperty:`locImageLink`},{name:`altText`,serializationProperty:`locAltText`,alternativeName:`text`},{name:`contentMode`,default:`auto`,choices:[`auto`,`image`,`video`,`youtube`]},{name:`imageFit`,default:`contain`,choices:[`none`,`contain`,`cover`,`fill`]},{name:`imageHeight`,default:`150`},{name:`imageWidth`,default:`200`}],function(){return new _R(``)},`nonvalue`),xF.Instance.registerQuestion(`image`,e=>new _R(e));var yR=class{constructor(e,t,n,r){if(isNaN(e)||isNaN(t))throw Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt((this.x-e.x)**2+(this.y-e.y)**2)}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time===e.time?0:this.distanceTo(e)/(this.time-e.time)}},bR=class e{static fromPoints(t,n){let r=this.calculateControlPoints(t[0],t[1],t[2]).c2,i=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new e(t[1],r,i,t[2],n.start,n.end)}static calculateControlPoints(e,t,n){let r=e.x-t.x,i=e.y-t.y,a=t.x-n.x,o=t.y-n.y,s={x:(e.x+t.x)/2,y:(e.y+t.y)/2},c={x:(t.x+n.x)/2,y:(t.y+n.y)/2},l=Math.sqrt(r*r+i*i),u=Math.sqrt(a*a+o*o),d=s.x-c.x,f=s.y-c.y,p=u/(l+u),m={x:c.x+d*p,y:c.y+f*p},h=t.x-m.x,g=t.y-m.y;return{c1:new yR(s.x+h,s.y+g),c2:new yR(c.x+h,c.y+g)}}constructor(e,t,n,r,i,a){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=r,this.startWidth=i,this.endWidth=a}length(){let e=0,t,n;for(let r=0;r<=10;r+=1){let i=r/10,a=this.point(i,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),o=this.point(i,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){let r=a-t,i=o-n;e+=Math.sqrt(r*r+i*i)}t=a,n=o}return e}point(e,t,n,r,i){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+i*e*e*e}},xR=class{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}};function SR(e,t=250){let n=0,r=null,i,a,o,s=()=>{n=Date.now(),r=null,i=e.apply(a,o),r||(a=null,o=[])};return function(...c){let l=Date.now(),u=t-(l-n);return a=this,o=c,u<=0||u>t?(r&&(clearTimeout(r),r=null),n=l,i=e.apply(a,o),r||(a=null,o=[])):r||(r=window.setTimeout(s,u)),i}}var CR=class e extends xR{constructor(t,n={}){super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{e.buttons===1&&this._strokeBegin(e)},this._handleMouseMove=e=>{this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{e.buttons===1&&this._strokeEnd(e)},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),e.targetTouches.length===1){let t=e.changedTouches[0];this._strokeBegin(t)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();let t=e.targetTouches[0];this._strokeMoveUpdate(t)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();let t=e.changedTouches[0];this._strokeEnd(t)}},this._handlePointerStart=e=>{e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._strokeMoveUpdate(e)},this._handlePointerEnd=e=>{this._drawingStroke&&(e.preventDefault(),this._strokeEnd(e))},this.velocityFilterWeight=n.velocityFilterWeight||.7,this.minWidth=n.minWidth||.5,this.maxWidth=n.maxWidth||2.5,this.throttle=`throttle`in n?n.throttle:16,this.minDistance=`minDistance`in n?n.minDistance:5,this.dotSize=n.dotSize||0,this.penColor=n.penColor||`black`,this.backgroundColor=n.backgroundColor||`rgba(0,0,0,0)`,this.compositeOperation=n.compositeOperation||`source-over`,this.canvasContextOptions=`canvasContextOptions`in n?n.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?SR(e.prototype._strokeUpdate,this.throttle):e.prototype._strokeUpdate,this._ctx=t.getContext(`2d`,this.canvasContextOptions),this.clear(),this.on()}clear(){let{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise((n,r)=>{let i=new Image,a=t.ratio||window.devicePixelRatio||1,o=t.width||this.canvas.width/a,s=t.height||this.canvas.height/a,c=t.xOffset||0,l=t.yOffset||0;this._reset(this._getPointGroupOptions()),i.onload=()=>{this._ctx.drawImage(i,c,l,o,s),n()},i.onerror=e=>{r(e)},i.crossOrigin=`anonymous`,i.src=e,this._isEmpty=!1})}toDataURL(e=`image/png`,t){switch(e){case`image/svg+xml`:return typeof t!=`object`&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`;default:return typeof t!=`number`&&(t=void 0),this.canvas.toDataURL(e,t)}}on(){this.canvas.style.touchAction=`none`,this.canvas.style.msTouchAction=`none`,this.canvas.style.userSelect=`none`;let e=/Macintosh/.test(navigator.userAgent)&&`ontouchstart`in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),`ontouchstart`in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction=`auto`,this.canvas.style.msTouchAction=`auto`,this.canvas.style.userSelect=`auto`,this.canvas.removeEventListener(`pointerdown`,this._handlePointerStart),this.canvas.removeEventListener(`pointermove`,this._handlePointerMove),this.canvas.ownerDocument.removeEventListener(`pointerup`,this._handlePointerEnd),this.canvas.removeEventListener(`mousedown`,this._handleMouseDown),this.canvas.removeEventListener(`mousemove`,this._handleMouseMove),this.canvas.ownerDocument.removeEventListener(`mouseup`,this._handleMouseUp),this.canvas.removeEventListener(`touchstart`,this._handleTouchStart),this.canvas.removeEventListener(`touchmove`,this._handleTouchMove),this.canvas.removeEventListener(`touchend`,this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&`penColor`in e?e.penColor:this.penColor,dotSize:e&&`dotSize`in e?e.dotSize:this.dotSize,minWidth:e&&`minWidth`in e?e.minWidth:this.minWidth,maxWidth:e&&`maxWidth`in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&`velocityFilterWeight`in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&`compositeOperation`in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){if(!this.dispatchEvent(new CustomEvent(`beginStroke`,{detail:e,cancelable:!0})))return;this._drawingStroke=!0;let t=this._getPointGroupOptions(),n=Object.assign(Object.assign({},t),{points:[]});this._data.push(n),this._reset(t),this._strokeUpdate(e)}_strokeUpdate(e){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(e);return}this.dispatchEvent(new CustomEvent(`beforeUpdateStroke`,{detail:e}));let t=e.clientX,n=e.clientY,r=e.pressure===void 0?e.force===void 0?0:e.force:e.pressure,i=this._createPoint(t,n,r),a=this._data[this._data.length-1],o=a.points,s=o.length>0&&o[o.length-1],c=s?i.distanceTo(s)<=this.minDistance:!1,l=this._getPointGroupOptions(a);if(!s||!(s&&c)){let e=this._addPoint(i,l);s?e&&this._drawCurve(e,l):this._drawDot(i,l),o.push({time:i.time,x:i.x,y:i.y,pressure:i.pressure})}this.dispatchEvent(new CustomEvent(`afterUpdateStroke`,{detail:e}))}_strokeEnd(e){this._drawingStroke&&(this._strokeUpdate(e),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent(`endStroke`,{detail:e})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener(`pointerdown`,this._handlePointerStart),this.canvas.addEventListener(`pointermove`,this._handlePointerMove),this.canvas.ownerDocument.addEventListener(`pointerup`,this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener(`mousedown`,this._handleMouseDown),this.canvas.addEventListener(`mousemove`,this._handleMouseMove),this.canvas.ownerDocument.addEventListener(`mouseup`,this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener(`touchstart`,this._handleTouchStart),this.canvas.addEventListener(`touchmove`,this._handleTouchMove),this.canvas.addEventListener(`touchend`,this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,n){let r=this.canvas.getBoundingClientRect();return new yR(e-r.left,t-r.top,n,new Date().getTime())}_addPoint(e,t){let{_lastPoints:n}=this;if(n.push(e),n.length>2){n.length===3&&n.unshift(n[0]);let e=this._calculateCurveWidths(n[1],n[2],t),r=bR.fromPoints(n,e);return n.shift(),r}return null}_calculateCurveWidths(e,t,n){let r=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(r,n),a={end:i,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=i,a}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){let r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){let n=this._ctx,r=e.endWidth-e.startWidth,i=Math.ceil(e.length())*2;n.beginPath(),n.fillStyle=t.penColor;for(let n=0;n<i;n+=1){let a=n/i,o=a*a,s=o*a,c=1-a,l=c*c,u=l*c,d=u*e.startPoint.x;d+=3*l*a*e.control1.x,d+=3*c*o*e.control2.x,d+=s*e.endPoint.x;let f=u*e.startPoint.y;f+=3*l*a*e.control1.y,f+=3*c*o*e.control2.y,f+=s*e.endPoint.y;let p=Math.min(e.startWidth+s*r,t.maxWidth);this._drawCurveSegment(d,f,p)}n.closePath(),n.fill()}_drawDot(e,t){let n=this._ctx,r=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,r),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(let r of e){let{points:e}=r,i=this._getPointGroupOptions(r);if(e.length>1)for(let n=0;n<e.length;
87n+=1){let r=e[n],a=new yR(r.x,r.y,r.pressure,r.time);n===0&&this._reset(i);let o=this._addPoint(a,i);o&&t(o,i)}else this._reset(i),n(e[0],i)}}toSVG({includeBackgroundColor:e=!1}={}){let t=this._data,n=Math.max(window.devicePixelRatio||1,1),r=this.canvas.width/n,i=this.canvas.height/n,a=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);if(a.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),a.setAttribute(`xmlns:xlink`,`http://www.w3.org/1999/xlink`),a.setAttribute(`viewBox`,`0 0 ${r} ${i}`),a.setAttribute(`width`,r.toString()),a.setAttribute(`height`,i.toString()),e&&this.backgroundColor){let e=document.createElement(`rect`);e.setAttribute(`width`,`100%`),e.setAttribute(`height`,`100%`),e.setAttribute(`fill`,this.backgroundColor),a.appendChild(e)}return this._fromData(t,(e,{penColor:t})=>{let n=document.createElement(`path`);if(!isNaN(e.control1.x)&&!isNaN(e.control1.y)&&!isNaN(e.control2.x)&&!isNaN(e.control2.y)){let r=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;n.setAttribute(`d`,r),n.setAttribute(`stroke-width`,(e.endWidth*2.25).toFixed(3)),n.setAttribute(`stroke`,t),n.setAttribute(`fill`,`none`),n.setAttribute(`stroke-linecap`,`round`),a.appendChild(n)}},(e,{penColor:t,dotSize:n,minWidth:r,maxWidth:i})=>{let o=document.createElement(`circle`),s=n>0?n:(r+i)/2;o.setAttribute(`r`,s.toString()),o.setAttribute(`cx`,e.x.toString()),o.setAttribute(`cy`,e.y.toString()),o.setAttribute(`fill`,t),a.appendChild(o)}),a.outerHTML}},wR=300,TR=200,ER=class extends YL{onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),(e===`penColor`||e===`backgroundColor`||e===`backgroundImage`)&&this.signaturePad&&this.updateColors(this.signaturePad)}getPenColorFromTheme(){let e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables[`--sjs-primary-backcolor`]}updateColors(e){let t=this.getPenColorFromTheme(),n=this.getPropertyByName(`penColor`);e.penColor=this.penColor||t||n.defaultValue||`#1ab394`;let r=this.getPropertyByName(`backgroundColor`),i=t?`transparent`:void 0;e.backgroundColor=(this.backgroundImage?`transparent`:this.backgroundColor)||i||r.defaultValue||`#ffffff`}getCssRoot(e){return new X().append(super.getCssRoot(e)).append(e.small,this.signatureWidth.toString()===`300`).toString()}getFormat(){return this.dataFormat===`jpeg`?`image/jpeg`:this.dataFormat===`svg`?`image/svg+xml`:``}updateValue(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.getFormat());this.valueIsUpdatingInternally=!0,this.value=e,this.valueIsUpdatingInternally=!1}}constructor(e){super(e),this.valueIsUpdatingInternally=!1,this._loadedData=void 0,this.updateValueHandler=()=>{this._loadedData=void 0,this.scaleCanvas(!0,!0)}}getType(){return`signaturepad`}afterRenderQuestionElement(e){tj.isAvailable()&&e&&(this.isDesignMode||this.initSignaturePad(e),this.element=e),super.afterRenderQuestionElement(e)}beforeDestroyQuestionElement(e){e&&this.destroySignaturePad(e)}themeChanged(e){this.signaturePad&&this.updateColors(this.signaturePad)}resizeCanvas(){this.canvas.width=this.containerWidth,this.canvas.height=this.containerHeight}scaleCanvas(e=!0,t=!1){let n=this.canvas,r=n.offsetWidth/this.containerWidth;(this.scale!=r||t)&&(this.scale=r,n.style.width=this.renderedCanvasWidth,this.resizeCanvas(),this.signaturePad.minWidth=this.penMinWidth*r,this.signaturePad.maxWidth=this.penMaxWidth*r,n.getContext(`2d`).scale(1/r,1/r),e&&this.loadPreview(this.value))}fromUrl(e){if(this.isFileLoading=!0,GN(e))this.fromDataUrl(e),this.isFileLoading=!1;else{let t=new Image;t.crossOrigin=`anonymous`,t.src=e,t.onload=()=>{if(this.canvas){let n=nj.createElement(`canvas`);n.width=this.containerWidth,n.height=this.containerHeight,n.getContext(`2d`).drawImage(t,0,0);var e=n.toDataURL(this.getFormat());this.fromDataUrl(e)}this.isFileLoading=!1},t.onerror=()=>{this.isFileLoading=!1}}}fromDataUrl(e){if(this._loadedData=e,this.signaturePad){let t=1,n=this.scale;this.dataFormat===`svg`&&(t=tj.getDevicePixelRatio()||1,n=1);let r={width:this.canvas.width*n/t,height:this.canvas.height*n/t};this.signaturePad.fromDataURL(e,r)}}get loadedData(){return this._loadedData}loadPreview(e){if(!e){this.signaturePad&&this.canvas&&(this.canvas.getContext(`2d`).clearRect(0,0,this.canvas.width*this.scale,this.canvas.height*this.scale),this.signaturePad.clear()),this.hasDrawnStroke=!1,this.valueWasCh
87angedFromLastUpload=!1;return}if(this.storeDataAsText)this.fromDataUrl(e);else if(this.loadedData)this.fromDataUrl(this.loadedData);else{var t=e?[e]:[];this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new QL(this,(t,n)=>{t===`success`&&n&&n.length>0&&n[0].content?(this.fromDataUrl(n[0].content),this.isFileLoading=!1):t===`skipped`&&this.fromUrl(e),this._previewLoader.dispose(),this._previewLoader=void 0}),this._previewLoader.load(t)}}onChangeQuestionValue(e){super.onChangeQuestionValue(e),this.isLoadingFromJson||(this._loadedData=void 0,this.loadPreview(e))}onSurveyLoad(){super.onSurveyLoad(),this.loadPreview(this.value)}initSignaturePad(e){var t=e.getElementsByTagName(`canvas`)[0];this.canvas=t,this.resizeCanvas();var n=new CR(t,{backgroundColor:`#ffffff`});this.signaturePad=n,this.isInputReadOnly&&n.off(),this.readOnlyChangedCallback=()=>{this.isInputReadOnly?n.off():n.on()},this.updateColors(n),n.addEventListener(`beginStroke`,()=>{this.scaleCanvas(),this.hasDrawnStroke=!0,t.focus()},{once:!1}),n.addEventListener(`endStroke`,()=>{this.storeDataAsText?this.updateValue():this.valueWasChangedFromLastUpload=!0},{once:!1}),this.updateValueHandler(),this.readOnlyChangedCallback();var r=(e,t)=>{(t.name===`signatureWidth`||t.name===`signatureHeight`)&&(this.valueIsUpdatingInternally||this.updateValueHandler())};this.onPropertyChanged.add(r),this.signaturePad.propertyChangedHandler=r}destroySignaturePad(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null}get containerHeight(){return this.signatureHeight||TR}get containerWidth(){return this.signatureWidth||wR}get renderedCanvasWidth(){return this.signatureAutoScaleEnabled?`100%`:this.containerWidth+`px`}get canShowClearButton(){let e=!this.nothingIsDrawn(),t=this.isUploading;return!this.isInputReadOnly&&this.allowClear&&e&&!t}get clearButtonCaption(){return this.getLocalizationString(`clearCaption`)}get locRenderedPlaceholder(){return this.isReadOnly?this.locPlaceholderReadOnly:this.locPlaceholder}nothingIsDrawn(){let e=this.hasDrawnStroke,t=this.isEmpty(),n=this.isUploading,r=this.valueWasChangedFromLastUpload;return!e&&t&&!n&&!r}needShowPlaceholder(){return this.showPlaceholder&&this.nothingIsDrawn()}onBlurCore(e){if(super.onBlurCore(e),!this.storeDataAsText&&!this.element.contains(e.relatedTarget)){if(!this.valueWasChangedFromLastUpload)return;this.uploadFiles([qL(this.signaturePad.toDataURL(this.getFormat()),this.name+`.`+DR(this.dataFormat),this.getFormat())],`signature`),this.valueWasChangedFromLastUpload=!1}}uploadResultItemToValue(e){return e.content}setValueFromResult(e){this.valueIsUpdatingInternally=!0,this.value=e!=null&&e.length?e.map(e=>e.content)[0]:void 0,this.valueIsUpdatingInternally=!1}onClearValue(){super.onClearValue(),this.valueWasChangedFromLastUpload=!1,this._loadedData=void 0,this.loadPreview(this.value)}endLoadingFromJson(){super.endLoadingFromJson(),this.signatureWidth===300&&this.width&&typeof this.width==`number`&&this.width&&(Gj.warn(`Use signatureWidth property to set width for the signature pad`),this.signatureWidth=this.width,this.width=void 0),this.signatureHeight===200&&this.height&&(Gj.warn(`Use signatureHeight property to set width for the signature pad`),this.signatureHeight=this.height,this.height=void 0)}};q([Y({defaultValue:!1})],ER.prototype,`hasDrawnStroke`,void 0),q([Y({defaultValue:!1})],ER.prototype,`isReadyForUpload`,void 0),q([Y({defaultValue:!1})],ER.prototype,`valueWasChangedFromLastUpload`,void 0),q([Y({onSetting:e=>DR(e)})],ER.prototype,`dataFormat`,void 0),q([Y()],ER.prototype,`signatureWidth`,void 0),q([Y()],ER.prototype,`signatureHeight`,void 0),q([Y()],ER.prototype,`signatureAutoScaleEnabled`,void 0),q([Y()],ER.prototype,`penMinWidth`,void 0),q([Y()],ER.prototype,`penMaxWidth`,void 0),q([Y()],ER.prototype,`height`,void 0),q([Y()],ER.prototype,`allowClear`,void 0),q([Y()],ER.prototype,`penColor`,void 0),q([Y()],ER.prototype,`backgroundColor`,void 0),q([Y()],ER.prototype,`backgroundImage`,void 0),q([Y({})],ER.prototype,`showPlaceholder`,void 0),q([Y({localizable:{defaultStr:`signaturePlaceHolder`,markdown:!0}})],ER.prototype,`placeholder`,void 0),q([Y({localizable:{defaultStr:`signaturePlaceHolderReadOnly`,markdown:!0}})],ER.prototype,`placeholderReadOnly`,void 0);function DR(e){return e||(e=`png`),e=e.replace(`image/`,``).replace(`+xml`,``),e!==`jpeg`&&e!==`svg`&&(e=`png`),e}J.addClass(`signaturepad`,[{name:`signatureWidth:number`,default:300},{name:`signatureHeight:number`,default:200},{name:`signatureAutoScaleEnabled:boolean`,default:!1},{name:`penMinWidth:number`,default:.5},{name:`penMaxWidth:number`,default:2.5},{name:`height:number`,visible:!1},{name:`allowClear:boolean`,default:!0},{name:`showPlaceholder:boolean`,default:!0},{name:`placeholder:text`,serializationProperty:`locPlaceholder`,dependsOn:`showPlaceholder`,visibleIf:e=>e.showPlaceholder},{name:`placeholderReadOnly:text`,serializationProperty:`locPlaceholderReadOnly`,dependsOn:`showPlaceholder`,visibleIf:e=>e.showPlaceholder},{name:`backgroundImage:file`},{name:`penColor:color`},{name:`backgroundColor:color`},{name:`dataFormat`,default:`png`,choices:[{value:`png`,text:`PNG`},{value:`jpeg`,text:`JPEG`},{value:`svg`,text:`SVG`}],onSettingValue:(e,t)=>
87DR(t)},{name:`defaultValue`,visible:!1},{name:`correctAnswer`,visible:!1},{name:`storeDataAsText:boolean`,default:!0},{name:`waitForUpload:boolean`,default:!1}],function(){return new ER(``)},`question`),xF.Instance.registerQuestion(`signaturepad`,e=>new ER(e));var OR=class extends LF{constructor(e){super(e),this.item=e}getNextName(){return G.expressionVariables.nextPanel}getPrevName(){return G.expressionVariables.prevPanel}getVisibleItem(e){return e<0||e>=this.getPanels(!0).length?null:this.getPanels(!0)[e].data}getSpecificValue(e){let t=e.path;if(t.length>1&&t[0].name.toLocaleLowerCase()===G.expressionVariables.parentPanel.toLocaleLowerCase()){let n=this.item.data;if(n&&n.parentQuestion&&n.parent&&n.parent.data)return t[0].name=this.variableName,e.isRoot=!0,n.parent.data.getValueGetterContext().getValue(e)}return null}getTextValue(e,t,n){return e=e.toLocaleLowerCase(),[this.indexVar,this.visIndexVar].indexOf(e)>-1&&t>-1&&t++,super.getTextValue(e,t,n)}get indexVar(){return G.expressionVariables.panelIndex.toLocaleLowerCase()}get visIndexVar(){return G.expressionVariables.visiblePanelIndex.toLocaleLowerCase()}getItemVariableNames(){return[G.expressionVariables.panelIndex,G.expressionVariables.visiblePanelIndex]}getRelatedItemNames(){return[G.expressionVariables.parentPanel]}getItemValue(e){if(e=e.toLocaleLowerCase(),e===this.indexVar)return this.panelIndex;if(e==this.visIndexVar)return this.visibleIndex}get panelIndex(){return this.getPanels(!1).indexOf(this.item.panel)}get visibleIndex(){return this.getPanels(!0).indexOf(this.item.panel)}getPanels(e){let t=this.item.data;return t?e?t.visiblePanels:t.panels:[]}},kR=class extends FP{constructor(e){super(e),this.question=e}getValue(e){let t=e.path,n=this.question,r=e.index;if(r>-1&&n.isDesignMode&&t.length>0){let r=t[0].name,i=n.template.getQuestionByName(r);return i?(t.shift(),t.length===0?{isFound:!0}:i.getValueGetterContext().getValue(e)):{isFound:!1}}if(r>-1){if(r>=0&&r<n.panels.length){let t=n.panels[r].data;return e.isRoot=!1,t.getValueGetterContext().getValue(e)}return{isFound:!1,value:void 0,context:this}}return!e.createObjects&&this.question.isEmpty()?{isFound:t.length===0,value:void 0}:super.getValue(e)}},AR=class extends kN{constructor(e){super(e)}},jR=class extends RF{constructor(e,t){super(e),this.data=e,this.data=e,this.panelValue=t,this.setSurveyImpl()}get panel(){return this.panelValue}setSurveyImpl(){this.panel.setSurveyImpl(this)}getValueGetterContext(){return new OR(this)}getVariableName(){return G.expressionVariables.panel}getQuestionsByValueName(e,t){return this.panel.getQuestionsByValueName(e,t)}getQuestionByName(e){return this.panel.getQuestionByName(e)}getIndex(){return this.data.getItemIndex(this)}get questions(){return this.panel.questions}setValue(e,t){this.isSettingValue||!this.isValueChanged(e,t)||(this.updateSharedQuestionsValue(e,t),this.data.updateItemValue(this,e,K.getUnbindValue(t),!1),this.runTriggersOnSetValue(e,t))}getComment(e){return this.getValue(e+G.commentSuffix)||``}setComment(e,t,n){this.setValue(e+G.commentSuffix,t)}},MR=class{constructor(e){this.data=e}getSurveyData(){return null}getSurvey(){return this.data.getSurvey()}getTextProcessor(){return null}},NR=class extends zP{get dynamicPanelCallbacks(){return this.survey}constructor(e){super(e),this._renderedPanels=[],this.isPanelsAnimationRunning=!1,this.isAddingNewPanels=!1,this.isSetPanelItemData={},this.createNewArray(`panels`,e=>{this.onPanelAdded(e)},e=>{this.onPanelRemoved(e)}),this.createNewArray(`visiblePanels`),this.templateValue=this.createAndSetupNewPanelObject(),this.template.renderWidth=`100%`,this.template.selectedElementInDesign=this,this.template.addElementCallback=e=>{this.addOnPropertyChangedCallback(e),this.rebuildPanels()},this.template.removeElementCallback=()=>{this.rebuildPanels()},this.template.onPropertyChanged.add((e,t)=>{t.name===`title`&&this.propertyValueChanged(`templateTitle`,t.oldValue,t.newValue),t.name===`description`&&this.propertyValueChanged(`templateDescription`,t.oldValue,t.newValue)})}onPropertyValueChanged(e,t,n){if(super.onPropertyValueChanged(e,t,n),e===`panelsState`&&this.setPanelsState(),[`newPanelPosition`,`displayMode`,`showProgressBar`].indexOf(e)>-1&&this.updateFooterActions(),e===`allowAddPanel`&&this.updateNoEntriesTextDefaultLoc(),e===`minPanelCount`&&this.onMinPanelCountChanged(),e===`maxPanelCount`&&this.onMaxPanelCountChanged(),[`templateQuestionTitleLocation`,`templateQuestionTitleWidth`].indexOf(e)>-1){let e=this.visiblePanelsCore;
87e&&e.forEach(e=>{e.updateElementCss(!0)})}e===`showQuestionNumbers`&&this.survey&&this.lifecycleCallbacks.questionVisibilityChanged(this,this.visible,!0),e===`tabAlign`&&this.isRenderModeTab&&(this.tabbedMenu.containerCss=this.getTabbedMenuCss())}dispose(){super.dispose(),this.templateValue.dispose()}validateExpressions(e={functions:!0,variables:!0,semantics:!0}){this.useTemplatePanel||new jR(this,this.template);let t=super.validateExpressions(e);return this.useTemplatePanel||this.setTemplatePanelSurveyImpl(),t}get isValidatingExpressions(){return!this.useTemplatePanel&&this.template.data instanceof jR}get isCompositeQuestion(){return!0}get isContainer(){return!0}getFirstQuestionToFocus(e){let t=this.currentPanel?[this.currentPanel]:this.visiblePanelsCore;for(let n of t){let t=n.getFirstQuestionToFocus(e);if(t)return t}return this.showAddPanelButton&&(!e||this.currentErrorCount>0)?this:null}getFirstInputElementId(){let e=this.getFirstQuestionToFocus(!1);return e&&e!==this?e.inputId:this.showAddPanelButton?this.addButtonId:super.getFirstInputElementId()}getFirstErrorInputElementId(){let e=this.getFirstQuestionToFocus(!0);return e?e.inputId:super.getFirstErrorInputElementId()}setSurveyImpl(e,t){super.setSurveyImpl(e,t),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()}getFilteredData(){return this.value}assignOnPropertyChangedToTemplate(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])}addOnPropertyChangedCallback(e){e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add((e,t)=>{this.onTemplateElementPropertyChanged(e,t)}),e.isPanel&&(e.addElementCallback=e=>{this.addOnPropertyChangedCallback(e)})}onTemplateElementPropertyChanged(e,t){if(!(this.isLoadingFromJson||this.useTemplatePanel||this.panelsCore.length==0)&&J.findProperty(e.getType(),t.name))for(var n=this.panelsCore,r=0;r<n.length;r++){var i=n[r].getQuestionByName(e.name);i&&i[t.name]!==t.newValue&&(i[t.name]=t.newValue)}}get useTemplatePanel(){return this.isDesignMode&&!this.isContentElement}getType(){return`paneldynamic`}getAllChildren(){return[...super.getAllChildren(),...this.templateElements]}clearOnDeletingContainer(){this.panelsCore.forEach(e=>{e.clearOnDeletingContainer()})}get isAllowTitleLeft(){return!1}removeElement(e){return this.template.removeElement(e)}get template(){return this.templateValue}getPanelInDesignMode(){return this.template}getPanels(){return[this.template]}get templateElements(){return this.template.elements}isPropertyStoredInHash(e){return e!==`templateElements`&&super.isPropertyStoredInHash(e)}mergeLocalizationWithInnerObjects(e,t){let n=e.template;n&&this.template.mergeLocalizationObj(n,t)}get templateTitle(){return this.template.title}set templateTitle(e){this.template.title=e}get locTemplateTitle(){return this.template.locTitle}getLocalizableString(e){return e===`templateTitle`?this.template.locTitle:e===`templateDescription`?this.template.locDescription:super.getLocalizableString(e)}get templateDescription(){return this.template.description}set templateDescription(e){this.template.description=e}get locTemplateDescription(){return this.template.locDescription}get templateVisibleIf(){return this.getPropertyValue(`templateVisibleIf`)}set templateVisibleIf(e){this.setPropertyValue(`templateVisibleIf`,e),this.template.visibleIf=e}get questionStartIndex(){return this.template.questionStartIndex}set questionStartIndex(e){this.template.questionStartIndex=e}get items(){for(var e=[],t=0;t<this.panelsCore.length;t++)e.push(this.panelsCore[t].data);return e}get panels(){return this.buildPanelsFirstTime(this.canBuildPanels),this.panelsCore}get visiblePanels(){return this.buildPanelsFirstTime(this.canBuildPanels),this.visiblePanelsCore}get panelsCore(){return this.getPropertyValue(`panels`)}get visiblePanelsCore(){return this.getPropertyValue(`visiblePanels`)}onPanelAdded(e){if(this.onPanelRemovedCore(e),!e.visible)return;let t=0,n=this.panelsCore;for(var r=0;r<n.length&&n[r]!==e;r++)n[r].visible&&t++;this.visiblePanelsCore.splice(t,0,e),this.addTabFromToolbar(e,t),this.currentPanel||(this.currentPanel=e),this.updateRenderedPanels()}onPanelRemoved(e){let t=this.onPanelRemovedCore(e);if(this.currentPanel===e){let e=this.visiblePanelsCore;t>=e.length&&(t=e.length-1),this.currentPanel=t>=0?e[t]:null}this.updateRenderedPanels()}
87onPanelRemovedCore(e){let t=this.visiblePanelsCore,n=t.indexOf(e);return n>-1&&(t.splice(n,1),this.removeTabFromToolbar(e)),n}get currentIndex(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanelsCore.indexOf(this.currentPanel)}set currentIndex(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanelsCore[e])}get currentPanel(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;let e=this.getPropertyValue(`currentPanel`,null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanelsCore[0],this.currentPanel=e),e}set currentPanel(e){if(this.isRenderModeList||this.useTemplatePanel)return;let t=this.getPropertyValue(`currentPanel`),n=e?this.visiblePanelsCore.indexOf(e):-1;if(!(e&&n<0||e===t)&&(t&&t.onHidingContent(),e&&e.onFirstRendering(),this.setPropertyValue(`currentPanel`,e),this.updateRenderedPanels(),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback),n>-1&&this.survey)){let t={panel:e,visiblePanelIndex:n};this.dynamicPanelCallbacks.dynamicPanelCurrentIndexChanged(this,t)}}getUIState(){let e=super.getUIState(),t=this.currentIndex;return t>0&&(e=e||{},e.activePanelIndex=t),e}setUIState(e){super.setUIState(e),e.activePanelIndex&&(this.currentIndex=e.activePanelIndex)}updateRenderedPanels(){let e=[];this.isRenderModeList?e=[].concat(this.visiblePanels):this.currentPanel&&(e=[this.currentPanel]),e.forEach(e=>this.panelOnFirstRendering(e)),this.renderedPanels=e}panelOnFirstRendering(e){e&&(e.onFirstRendering(),e.locStrsChanged())}set renderedPanels(e){this.renderedPanels.length==0||e.length==0?(this.blockAnimations(),this.panelsAnimation.sync(e),this.releaseAnimations()):(this.isPanelsAnimationRunning=!0,this.panelsAnimation.sync(e))}get renderedPanels(){return this._renderedPanels}getPanelsAnimationOptions(){let e=()=>{if(this.isRenderModeList)return``;let e=new X,t=!1,n=this.renderedPanels.filter(e=>e!==this.currentPanel)[0],r=this.visiblePanels.indexOf(n);return r<0&&(t=!0,r=this.removedPanelIndex),e.append(`sv-pd-animation-adding`,!!this.focusNewPanelCallback).append(`sv-pd-animation-removing`,t).append(`sv-pd-animation-left`,r<=this.currentIndex).append(`sv-pd-animation-right`,r>this.currentIndex).toString()};return{getRerenderEvent:()=>this.onElementRerendered,getAnimatedElement:e=>{var t,n;if(e&&this.cssContent){let r=RN(this.cssContent);return(n=(t=this.getWrapperElement())==null?void 0:t.querySelector(`:scope ${r} #${e.id}`))==null?void 0:n.parentElement}},getEnterOptions:()=>({onBeforeRunAnimation:e=>{if(this.focusNewPanelCallback){let t=this.isRenderModeList?e:e.parentElement;DP.ScrollElementToViewCore(t,!1,!1,{behavior:`smooth`})}!this.isRenderModeList&&e.parentElement?CP(e.parentElement,{heightTo:e.offsetHeight+`px`}):wP(e)},onAfterRunAnimation:e=>{TP(e),e.parentElement&&TP(e.parentElement)},cssClass:new X().append(this.cssClasses.panelWrapperEnter).append(e()).toString()}),getLeaveOptions:()=>({onBeforeRunAnimation:e=>{!this.isRenderModeList&&e.parentElement?CP(e.parentElement,{heightFrom:e.offsetHeight+`px`}):wP(e)},onAfterRunAnimation:e=>{TP(e),e.parentElement&&TP(e.parentElement)},cssClass:new X().append(this.cssClasses.panelWrapperLeave).append(e()).toString()}),isAnimationEnabled:()=>this.animationAllowed&&!!this.getWrapperElement()}}disablePanelsAnimations(){this.panelsCore.forEach(e=>{e.blockAnimations()})}enablePanelsAnimations(){this.panelsCore.forEach(e=>{e.releaseAnimations()})}updatePanelsAnimation(){this._panelsAnimations=new(this.isRenderModeList?bP:xP)(this.getPanelsAnimationOptions(),(e,t)=>{this._renderedPanels=e,t||(this.isPanelsAnimationRunning=!1,this.focusNewPanel())},()=>this._renderedPanels)}get panelsAnimation(){return this._panelsAnimations||this.updatePanelsAnimation(),this._panelsAnimations}onHidingContent(){super.onHidingContent(),this.currentPanel?this.currentPanel.onHidingContent():this.visiblePanelsCore.forEach(e=>e.onHidingContent())}get panelPrevText(){return this.prevPanelText}set panelPrevText(e){this.prevPanelText=e}get panelNextText(){return this.nextPanelText}set panelNextText(e){this.nextPanelText=e}get panelAddText(){return this.addPanelText}set panelAddText(e){this.addPanelText=e}get panelRemoveText(){return this.removePanelText}set panelRemoveText(e){this.removePanelText=e}get isProgressTopShowing(){return this.displayMode==`carousel`&&(this.progressBarLocation===`top`||this.progressBarLocation===`topBottom`)}get isProgressBottomShowing(){return this.displayMode==`carousel`&&(this.progressBarLocation===`bottom`||this.progressBarLocation===`topBottom`)}get isPrevButtonVisible(){return this.currentIndex>0}get isPrevButtonShowing(){return this.isPrevButtonVisible}get isNextButtonVisible(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1}get isNextButtonShowing(){return this.isNextButtonVisible}get isRangeShowing(){return this.showProgressBar&&this.currentIndex>=0&&this.visiblePanelCount>1}getElementsInDesign(e=!1){return e?[this.template]:this.templateElements}prepareValueForPanelCreating(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1}setValueAfterPanelsCreating(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)}getValueCore(){return this.isAddingNewPanels?this.addingNewPanelsValue:super.getValueCore()}setValueCore(e){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=e):super.setValueCore(e)}setIsMobile(e){super.setIsMobile(e),(this.panelsCore||[]).forEac
87h(t=>t.getQuestions(!0).forEach(t=>{t.setIsMobile(e)}))}themeChanged(e){super.themeChanged(e),(this.panelsCore||[]).forEach(t=>t.getQuestions(!0).forEach(t=>{t.themeChanged(e)}))}get panelCount(){return!this.canBuildPanels||this.wasNotRenderedInSurvey?this.getPropertyValue(`panelCount`):this.panelsCore.length}set panelCount(e){if(e<0)return;if(!this.isLoadingFromJson&&this.isDesignMode){let t=this.minPanelCount;e<t&&(e=t);let n=this.maxPanelCount;n>0&&e>n&&(e=n)}if(!this.canBuildPanels||this.wasNotRenderedInSurvey){this.setPropertyValue(`panelCount`,e),this.updateFooterActions();return}if(e==this.panelsCore.length||this.useTemplatePanel)return;this.updateBindings(`panelCount`,e),this.prepareValueForPanelCreating();let t=e-this.panelCount===1,n=this.panelCount;for(let t=this.panelCount;t<e;t++){let e=this.createNewPanel();this.panelsCore.push(e),this.displayMode==`list`&&this.panelsState!="default"&&(this.panelsState===`expanded`?e.expand():e.title&&e.collapse())}t&&this.singleInputOnAddItem(this.settingPanelCountBasedOnValue),e<this.panelCount&&this.panelsCore.splice(e,this.panelCount-e),this.disablePanelsAnimations(),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.updateNewPanelsVisibleIndex(n),this.fireCallback(this.panelCountChangedCallback),this.enablePanelsAnimations()}updateNewPanelsVisibleIndex(e){if(!this.survey)return;let t=this.getShowQuestionNumbers();if(t===`onpanel`||t===`recursive`)for(let t=e;t<this.panelsCore.length;t++)this.panelsCore[t].setVisibleIndex(0)}get visiblePanelCount(){return this.visiblePanels.length}getStructuredValue(e=-1){if(e<0||this.isEmpty()||!Array.isArray(this.value))return this.value;let t=[],n=Math.min(this.visiblePanelCount,this.value.length);for(let r=0;r<n;r++){let n=this.visiblePanels[r],i={};n.collectValues(i,e),t.push(i)}return t}setTemplatePanelSurveyImpl(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new MR(this))}setPanelsSurveyImpl(){for(var e=0;e<this.panelsCore.length;e++){var t=this.panelsCore[e];t!=this.template&&t.setSurveyImpl(t.data)}}setPanelsState(){if(!(this.useTemplatePanel||this.displayMode!=`list`||!this.templateTitle))for(var e=0;e<this.panelsCore.length;e++){var t=this.panelsState;t===`firstExpanded`&&(t=e===0?`expanded`:`collapsed`),t===`expanded`?this.panelsCore[e].expand(!1):this.panelsCore[e].state=t}}setValueBasedOnPanelCount(){var e=this.value;if((!e||!Array.isArray(e))&&(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++){let n=this.panels[t].getValue(),r=K.isValueEmpty(n)?{}:n;e.push(r)}e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}}onMinPanelCountChanged(){let e=this.minPanelCount;e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e)}onMaxPanelCountChanged(){let e=this.maxPanelCount;e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e),this.updateFooterActions()}get addButtonId(){return this.id+`addPanel`}get templateTitleLocation(){return this.templateQuestionTitleLocation}set templateTitleLocation(e){this.templateQuestionTitleLocation=e}resetSingleInput(){super.resetSingleInput(),this.locTemplateTitle.onGetTextCallback=null}get locEditPanelText(){return this.getOrCreateLocStr(`editPanelText`,!1,`editText`)}createSingleInputBehavior(){return new PR(this)}getShowQuestionNumbers(){var e;let t=this.showQuestionNumbers;if(t==="default"){let t=(e=this.survey)==null?void 0:e.showQuestionNumbers;if(t===`recursive`)return t}return t}notifySurveyOnChildrenVisibilityChanged(){return this.showQuestionNumbers==="default"}get panelRemoveButtonLocation(){return this.removePanelButtonLocation}set panelRemoveButtonLocation(e){this.removePanelButtonLocation=e}get showRangeInProgress(){return this.showProgressBar}set showRangeInProgress(e){this.showProgressBar=e}get renderMode(){let e=this.displayMode;if(e==`carousel`){let e=this.progressBarLocation;if(e==`top`)return`progressTop`;if(e==`bottom`)return`progressBottom`;if(e==`topBottom`)return`progressTopBottom`}return e}set renderMode(e){(e||``).startsWith(`progress`)?(e==`progressTop`?this.progressBarLocation=`top`:e==`progressBottom`?this.progressBarLocation=`bottom`:e==`progressTopBottom`&&(this.progressBarLocation=`topBottom`),this.displayMode=`carousel`):this.displayMode=e}updatePanelView(){this.blockAnimations(),this.updateRenderedPanels(),this.releaseAnimations(),this.updatePanelsAnimation()}get isRenderModeList(){return this.displayMode===`list`||this.isSingleInputActive}get isRenderModeTab(){return this.displayMode===`tab`&&!this.isSingleInputActive}setVisibleIndex(e){let t=this.isDesignMode?[this.template]:this.visiblePanelsCore;
87if(this.isVisibleIndexNegative(e))return t.forEach(e=>e.setVisibleIndex(-1)),super.setVisibleIndex(-1);let n=this.getShowQuestionNumbers(),r=n==="default",i=r?e:0;for(let e=0;e<t.length;e++){let a=this.setPanelVisibleIndex(t[e],i,n!=`off`);r&&(i+=a)}return super.setVisibleIndex(r?-1:e),r?i-e:1}setPanelVisibleIndex(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)}get canAddPanel(){return this.isDesignMode||!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1&&this.newPanelPosition!==`next`?!1:this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount}get canRemovePanel(){return!this.isDesignMode&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount}rebuildPanels(){if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var e=[];if(this.useTemplatePanel)new jR(this,this.template),e.push(this.template);else for(var t=0;t<this.panelCount;t++)e.push(this.createNewPanel());this.panelsCore.splice(0,this.panelsCore.length,...e),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}}get defaultValueFromLastPanel(){return this.copyDefaultValueFromLastEntry}set defaultValueFromLastPanel(e){this.copyDefaultValueFromLastEntry=e}isDefaultValueEmpty(){return super.isDefaultValueEmpty()&&this.isValueEmpty(this.defaultPanelValue)}setDefaultValue(){if(this.isValueEmpty(this.defaultPanelValue)||!this.isValueEmpty(this.defaultValue)){super.setDefaultValue();return}if(!(!this.isEmpty()||this.panelCount==0)){for(var e=[],t=0;t<this.panelCount;t++)e.push(this.defaultPanelValue);this.value=e}}get isValueArray(){return!0}isEmpty(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0}getProgressInfo(){return DP.getProgressInfoByElements(this.visiblePanelsCore,this.isRequired)}hasCorrectAnswerValue(){return this.getQuizQuestionsInPanels().length>0||super.hasCorrectAnswerValue()}getQuizQuestionCount(){return this.calcQuizCountInPanels(e=>e.quizQuestionCount,()=>super.getQuizQuestionCount())}getCorrectAnswerCount(){return this.calcQuizCountInPanels(e=>e.correctAnswerCount,()=>super.getCorrectAnswerCount())}calcQuizCountInPanels(e,t){let n=this.getQuizQuestionsInPanels();return n.length===0?t():n.reduce((t,n)=>t+e(n),0)}getQuizQuestionsInPanels(){let e=[];return this.visiblePanels.forEach(t=>{t.questions.forEach(t=>{t.quizQuestionCount>0&&e.push(t)})}),e}isRowEmpty(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}addPanelUI(){return this.addPanel(void 0,!0)}addPanel(e,t){let n=t===!0;if(n&&(!this.canAddPanel||!this.canLeaveCurrentPanel()))return null;let r=this.addPanelCore(e);return this.panelOnFirstRendering(r),n&&(this.displayMode===`list`&&this.panelsState!=="default"&&r.expand(),this.focusNewPanelCallback=()=>{r==null||r.focusFirstQuestion()},this.isPanelsAnimationRunning||this.focusNewPanel()),r}addPanelCore(e){let t=this.currentIndex;return e===void 0&&(e=t<0?this.panelCount:t+1),(e<0||e>this.panelCount)&&(e=this.panelCount),this.updateValueOnAddingPanel(t<0?this.panelCount-1:t,e),this.isRenderModeList||(this.currentIndex=e),this.notifyOnPanelAddedRemoved(!0,e),this.panelsCore[e]}focusNewPanel(){this.focusNewPanelCallback&&(this.focusNewPanelCallback(),this.focusNewPanelCallback=void 0)}updateValueOnAddingPanel(e,t){this.panelCount++;let n=this.value;if(!Array.isArray(n)||n.length!==this.panelCount)return;let r=!1,i=this.panelCount-1;if(t<i){r=!0;let e=n[i];n.splice(i,1),n.splice(t,0,e)}if(this.isValueEmpty(this.defaultPanelValue)||(r=!0,this.copyValue(n[t],this.defaultPanelValue)),this.copyDefaultValueFromLastEntry&&n.length>1){let a=e>-1&&e<=i?e:i;r=!0,this.copyValue(n[t],n[a])}r&&(this.value=n)}canLeaveCurrentPanel(){return this.displayMode===`list`||!this.currentPanel||this.currentPanel.validate(!0,!0)}copyValue(e,t){for(var n in t)e[n]=t[n]}getPanelRemoveButtonId(e){return e.id+`_remove_button`}isRequireConfirmOnDelete(e){if(!this.confirmDelete)return!1;let t=this.getVisualPanelIndex(e);if(t<0||t>=this.visiblePanelCount)return!1;let n=this.visiblePanelsCore[t].getValue();return!this.isValueEmpty(n)&&(this.isValueEmpty(this.defaultPanelValue)||!this.isTwoValueEquals(n,this.defaultPanelValue))}goToNextPanel(){return this.currentIndex<0||!this.canLeaveCurrentPanel()?!1:(this.currentIndex++,!0)}goToPrevPanel(){this.currentIndex<0||this.currentIndex--}removePanelUI(e){this.removePanel(e,this.isRequireConfirmOnDelete(e))}removePanel(e,t){let n=this.getVisualPanelIndex(e);if(!(n<0||n>=this.visiblePanelCount)){if(t!==void 0){if(!this.canRemovePanel)return;let e=()=>{var e;this.removePanelCore(n);let t=this.visiblePanelCount,r=n>=t?t-1:n,i=t===0?this.addButtonId:r>-1?this.getPanelRemoveButtonId(this.visiblePanels[r]):``;i&&DP.FocusElement(i,!0,(e=this.survey)==null?void 0:e.rootElement)};t?ZF({message:this.confirmDeleteText,funcOnYes:()=>{e()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasse
87s.confirmDialog}):e()}else this.removePanelCore(n)}}removePanelCore(e){this.removedPanelIndex=e;let t=this.visiblePanelsCore[e],n=this.panelsCore.indexOf(t);if(!(n<0)&&!(this.survey&&!this.dynamicPanelCallbacks.dynamicPanelRemoving(this,n,t))){this.panelsCore.splice(n,1),this.setPropertyValue(`panelCount`,this.panelCount),this.singleInputOnRemoveItem(e);var r=this.value;!r||!Array.isArray(r)||n>=r.length?this.updateFooterActions():(this.isValueChangingInternally=!0,r.splice(n,1),this.value=r,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.notifyOnPanelAddedRemoved(!1,n,t),this.isValueChangingInternally=!1)}}notifyOnPanelAddedRemoved(e,t,n){n||(n=this.panelsCore[t]);let r=this.getShowQuestionNumbers();if(this.survey){let i=r==="default";e?this.dynamicPanelCallbacks.dynamicPanelAdded(this,t,n,i):this.dynamicPanelCallbacks.dynamicPanelRemoved(this,t,n,i)}e&&n&&(r===`onpanel`||r===`recursive`)&&n.setVisibleIndex(0)}recursiveNoCallback(){return this.getShowQuestionNumbers()===`recursive`?this.no:``}getVisualPanelIndex(e){if(K.isNumber(e))return e;let t=this.visiblePanelsCore;for(var n=0;n<t.length;n++)if(t[n]===e||t[n].data===e)return n;return-1}getPanelVisibleIndexById(e){let t=this.visiblePanelsCore;for(var n=0;n<t.length;n++)if(t[n].id===e)return n;return-1}locStrsChanged(){super.locStrsChanged(),this.locTemplateTitle.strChanged();for(var e=this.panelsCore,t=0;t<e.length;t++)e[t].locStrsChanged();this.tabbedMenu&&this.tabbedMenu.locStrsChanged()}randomSeedChanged(){let e=this.panelsCore;for(var t=0;t<e.length;t++)e[t].randomSeedChanged()}clearIncorrectValues(){for(var e=0;e<this.panelsCore.length;e++)this.clearIncorrectValuesInPanel(e)}clearErrors(){super.clearErrors();for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].clearErrors()}getQuestionFromArray(e,t){return t<0||t>=this.panelsCore.length?null:this.panelsCore[t].getQuestionByName(e)}clearIncorrectValuesInPanel(e){var t=this.panelsCore[e];t.clearIncorrectValues();var n=this.value,r=n&&e<n.length?n[e]:null;if(r){var i=!1;for(var a in r)this.getSharedQuestionFromArray(a,e)||t.getQuestionByValueName(a)||this.iscorrectValueWithPostPrefix(t,a,G.commentSuffix)||this.iscorrectValueWithPostPrefix(t,a,G.matrix.totalsSuffix)||(delete r[a],i=!0);i&&(n[e]=r,this.value=n)}}iscorrectValueWithPostPrefix(e,t,n){return t.indexOf(n)===t.length-n.length&&!!e.getQuestionByName(t.substring(0,t.indexOf(n)))}getSharedQuestionFromArray(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null}addConditionObjectsByContext(e,t){let n=t!=null&&t.isValidator?t.errorOwner:t,r=!!t&&(t===!0||this.template.questions.indexOf(n)>-1),i=[],a=this.template.questions;for(var o=0;o<a.length;o++)a[o].addConditionObjectsByContext(i,t);for(var s=0;s<G.panel.maxPanelCountInCondition;s++){let t=`[`+s+`].`,n=this.getValueName()+t,r=this.processedTitle+t;for(var o=0;o<i.length;o++)i[o].context?e.push(i[o]):e.push({name:n+i[o].name,text:r+i[o].text,question:i[o].question})}if(r){let n=t===!0?this.getValueName()+`.`:``,r=t===!0?this.processedTitle+`.`:``,a=G.expressionVariables.panel+`.`;for(var o=0;o<i.length;o++){if(i[o].question==t)continue;let s={name:n+a+i[o].name,text:r+a+i[o].text,question:i[o].question};s.context=this,e.push(s)}}}collectNestedQuestionsCore(e,t,n,r){r&&e.push(this);let i=t?this.visiblePanelsCore:this.panelsCore;Array.isArray(i)&&i.forEach(i=>{i.questions.forEach(i=>i.addNestedQuestion(e,t,n,r))})}getConditionJson(e=null,t=null){if(!t)return super.getConditionJson(e);var n=t,r=t.indexOf(`.`);r>-1&&(n=t.substring(0,r),t=t.substring(r+1));var i=this.template.getQuestionByName(n);return i?i.getConditionJson(e,t):null}onReadOnlyChanged(){var e=this.isReadOnly;this.template.readOnly=e;for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].readOnly=e;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),super.onReadOnlyChanged()}updateNoEntriesTextDefaultLoc(){let e=this.getLocalizableString(`noEntriesText`);e&&(e.localizationName=this.getNoEntriesLocalizationName())}getNoEntriesLocalizationName(){return this.isReadOnly||!this.allowAddPanel?`noEntriesReadonlyText`:`noEntriesText`}onSurveyLoad(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad();let e=this.adjustPanelCount();e>-1&&this.setPropertyValue(`panelCount`,e),super.onSurveyLoad()}adjustPanelCount(){let e=this.getPropertyValue(`panelCount`);return e<this.minPanelCount?this.minPanelCount:e>this.maxPanelCount?this.maxPanelCount:-1}buildPanelsFirstTime(e=!1){if(!this.hasPanelBuildFirstTime&&!(!e&&this.wasNotRen
87deredInSurvey)){if(this.blockAnimations(),this.hasPanelBuildFirstTime=!0,this.isBuildingPanelsFirstTime=!0,this.getPropertyValue(`panelCount`)>0&&(this.panelCount=this.getPropertyValue(`panelCount`)),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.data&&this.isValueChangedWithoutPanels&&(this.isValueChangedWithoutPanels=!1,this.runTriggersOnBuildPanelsFirstTime()),this.survey)for(var t=0;t<this.panelCount;t++)this.notifyOnPanelAddedRemoved(!0,t);this.updateIsReady(),this.showAddPanelButton||this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),this.isBuildingPanelsFirstTime=!1,this.releaseAnimations()}}runTriggersOnBuildPanelsFirstTime(){this.value,this.visiblePanelsCore.forEach(e=>{let t=this.getItemData(e.data);if(!K.isValueEmpty(t)){let n=K.createCopyWithPrefix(t,G.expressionVariables.panel+`.`);e.data.runTriggers(``,void 0,n)}})}get showAddPanelButton(){return this.allowAddPanel&&!this.isReadOnly}get wasNotRenderedInSurvey(){return!this.hasPanelBuildFirstTime&&!this.wasRendered&&!!this.survey}get canBuildPanels(){return!this.isLoadingFromJson&&!this.useTemplatePanel}onFirstRenderingCore(){super.onFirstRenderingCore(),this.buildPanelsFirstTime(),this.template.onFirstRendering()}localeChanged(){super.localeChanged(),this.panelsCore.forEach(e=>e.localeChanged())}runConditionCore(e){super.runConditionCore(e),this.runPanelsCondition(this.panelsCore,e)}runTriggers(e,t,n){super.runTriggers(e,t,n),this.visiblePanelsCore.forEach(r=>{r.data.runTriggers(e,t,n)})}reRunCondition(){this.data&&this.runCondition(this.getDataFilteredProperties())}runPanelsCondition(e,t){let n=this.isValueChangingInternally;this.isValueChangingInternally=!0;for(var r=0;r<e.length;r++){let n=e[r],i=G.expressionVariables.panel,a=K.createCopy(t);a[i]=n,n.runCondition(a),n.isVisible}this.isValueChangingInternally=n}onAnyValueChanged(e,t){super.onAnyValueChanged(e,t),!this.hasPanelBuildFirstTime&&e===this.getValueName()&&(this.isValueChangedWithoutPanels=!0);for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].onAnyValueChanged(e,t),this.panelsCore[n].onAnyValueChanged(G.expressionVariables.panel,``)}hasKeysDuplicated(e){for(var t=[],n,r=0;r<this.panelsCore.length;r++)n=this.isValueDuplicated(this.panelsCore[r],t,e)||n;return n}
87updatePanelsContainsErrors(){let e=this.changingValueQuestions;if(!(!Array.isArray(e)||e.length===0)){for(var t=e[0].parent;t;)t.updateContainsErrors(),t=t.parent;this.updateContainsErrors()}}validateElementCore(e){if(this.isValueChangingInternally&&!this.hasInputInChangedQuestions()||this.isBuildingPanelsFirstTime)return!0;let t=!0,n=this.changingValueQuestions;if(Array.isArray(n)){let r=!0;n.forEach(t=>{r=t.validateElement(e)&&r}),t=!this.hasKeysDuplicated(e)&&r,this.updatePanelsContainsErrors()}else t=this.validateInPanels(e);return super.validateElementCore(e)&&t}hasInputInChangedQuestions(){let e=this.changingValueQuestions;if(!Array.isArray(e)||e.length===0)return!1;for(let t=0;t<e.length;t++)if(e[t].hasInput)return!0;return!1}getContainsErrors(){var e=super.getContainsErrors();if(e)return e;for(var t=this.panelsCore,n=0;n<t.length;n++)if(t[n].containsErrors)return!0;return!1}getIsAnswered(){if(!super.getIsAnswered())return!1;for(var e=this.visiblePanelsCore,t=0;t<e.length;t++){var n=[];e[t].addQuestionsToList(n,!0);for(var r=0;r<n.length;r++)if(!n[r].isAnswered)return!1}return!0}clearValueOnHidding(e){if(!e){if(this.survey&&this.survey.getQuestionClearIfInvisible(`onHidden`)===`none`)return;this.clearValueInPanelsIfInvisible(`onHiddenContainer`)}super.clearValueOnHidding(e)}clearValueIfInvisible(e=`onHidden`){let t=e===`onHidden`?`onHiddenContainer`:e;this.clearValueInPanelsIfInvisible(t),super.clearValueIfInvisible(e)}clearValueInPanelsIfInvisible(e){for(var t=0;t<this.panelsCore.length;t++){let i=this.panelsCore[t];var n=i.questions;this.isSetPanelItemData={};for(var r=0;r<n.length;r++){let t=n[r];t.visible&&!i.isVisible||(t.clearValueIfInvisible(e),this.isSetPanelItemData[t.getValueName()]=this.maxCheckCount+1)}}this.isSetPanelItemData={}}getIsRunningValidators(){if(super.getIsRunningValidators())return!0;for(var e=0;e<this.panelsCore.length;e++)for(var t=this.panelsCore[e].questions,n=0;n<t.length;n++)if(t[n].isRunningValidators)return!0;return!1}getAllErrors(){var e=super.getAllErrors();let t=this.visiblePanelsCore;for(var n=0;n<t.length;n++)for(var r=t[n].questions,i=0;i<r.length;i++){var a=r[i].getAllErrors();a&&a.length>0&&(e=e.concat(a))}return e}getValueGetterContext(){return new kR(this)}getDisplayValueCore(e,t){var n=this.getUnbindValue(t);if(!n||!Array.isArray(n))return n;for(var r=0;r<this.panelsCore.length&&r<n.length;r++){var i=n[r];i&&(n[r]=this.getPanelDisplayValue(r,i,e))}return n}getPanelDisplayValue(e,t,n){if(!t)return t;for(var r=this.panelsCore[e],i=Object.keys(t),a=0;a<i.length;a++){var o=i[a],s=r.getQuestionByValueName(o);if(s||(s=this.getSharedQuestionFromArray(o,e)),s){var c=s.getDisplayValue(n,t[o]);t[o]=c,n&&s.title&&s.title!==o&&(t[s.title]=c,delete t[o])}}return t}validateInPanels(e){let t=!0,n=this.visiblePanels,r=[];for(let i=0;i<n.length;i++){let a=n[i].validateElement(e);a=!this.isValueDuplicated(n[i],r,e)&&a,!this.isRenderModeList&&!a&&t&&e.focusOnFirstError&&(this.currentIndex=i),t=a&&t}return t}isValueDuplicated(e,t,n){if(!this.keyName)return!1;var r=e.getQuestionByValueName(this.keyName);if(!r||r.isEmpty())return!1;var i=r.value;
87let a=this.changingValueQuestions;Array.isArray(a)&&a.indexOf(r)<0&&r.validateElement(n);for(var o=0;o<t.length;o++)if(i==t[o])return n.fireCallback&&r.addError(new lN(this.keyDuplicationError,this)),n.setErrorElement(r),!0;return t.push(i),!1}getPanelActions(e){let t=e.footerActions;return this.removePanelButtonLocation!==`right`&&t.push(new kN({id:`remove-panel-${e.id}`,component:`sv-paneldynamic-remove-btn`,visible:new KM(()=>[this.canRenderRemovePanel(e,`bottom`)].every(e=>e===!0)),enabled:new KM(()=>this.enableRemovePanel!==!1),data:{question:this,panel:e}})),this.survey&&(t=this.titleSettings.getUpdatedPanelFooterActions(e,t,this)),t}canRenderRemovePanelOnRight(e){return this.canRenderRemovePanel(e,`right`)}canRenderRemovePanel(e,t){let n=this.canRemovePanel,r=e.state!==`collapsed`;return this.removePanelButtonLocation===t&&n&&r}createNewPanel(){var e=this.createAndSetupNewPanelObject(),t=this.template.toJSON();return new Pj().toObject(t,e),e.renderWidth=`100%`,e.updateCustomWidgets(),e.questions.forEach(e=>e.setParentQuestion(this)),new jR(this,e),e.onGetFooterActionsCallback=()=>this.getPanelActions(e),e.onGetFooterToolbarCssCallback=()=>this.cssClasses.panelFooter,e.registerPropertyChangedHandlers([`visible`],()=>{e.visible?this.onPanelAdded(e):this.onPanelRemoved(e),this.updateFooterActions()}),e}createAndSetupNewPanelObject(){var e=this.createNewPanelObject();return e.isInteractiveDesignElement=!1,e.setParentQuestion(this),e.onGetQuestionTitleLocation=()=>this.getTemplateQuestionTitleLocation(),e.onGetQuestionTitleWidth=()=>this.templateQuestionTitleWidth,e.recursiveNoCallback=()=>this.recursiveNoCallback(),e}getTemplateQuestionTitleLocation(){return this.templateQuestionTitleLocation=="default"?this.getParentTitleLocation():this.templateQuestionTitleLocation}getChildErrorLocation(e){return this.templateErrorLocation==="default"?super.getChildErrorLocation(e):this.templateErrorLocation}createNewPanelObject(){return J.createClass(`panel`)}setPanelCountBasedOnValue(){if(!(this.isValidatingExpressions||this.isValueChangingInternally||this.useTemplatePanel)){var e=this.value,t=e&&Array.isArray(e)?e.length:0;t==0&&this.getPropertyValue(`panelCount`)>0&&(t=this.getPropertyValue(`panelCount`)),this.settingPanelCountBasedOnValue=!0,this.panelCount=t,this.settingPanelCountBasedOnValue=!1}}setQuestionValue(e){if(!(this.isValidatingExpressions||this.settingPanelCountBasedOnValue)){if(super.setQuestionValue(e,!1),this.setPanelCountBasedOnValue(),!this.isSettingPanelItemData())for(var t=0;t<this.panelsCore.length;t++)this.panelUpdateValueFromSurvey(this.panelsCore[t]);this.updateIsAnswered()}}isSettingPanelItemData(){for(let e in this.isSetPanelItemData)if(this.isSetPanelItemData[e]>0)return!0;return!1}onSurveyValueChanged(e){if(!(e===void 0&&this.isAllPanelsEmpty())){super.onSurveyValueChanged(e);for(var t=0;t<this.panelsCore.length;t++)this.panelSurveyValueChanged(this.panelsCore[t]);e===void 0&&this.setValueBasedOnPanelCount(),this.updateIsReady()}}isAllPanelsEmpty(){for(var e=0;e<this.panelsCore.length;e++)if(!K.isValueEmpty(this.panelsCore[e].getValue()))return!1;return!0}panelUpdateValueFromSurvey(e){let t=e.questions;for(var n=this.getItemData(e.data),r=0;r<t.length;r++){let e=t[r];e.updateValueFromSurvey(n[e.getValueName()]),e.updateCommentFromSurvey(n[e.getValueName()+G.commentSuffix]),e.initDataUI()}}panelSurveyValueChanged(e){for(var t=e.questions,n=this.getItemData(e.data),r=0;r<t.length;r++){var i=t[r];i.onSurveyValueChanged(n[i.getValueName()])}}onSetData(){super.onSetData(),!this.isLoadingFromJson&&this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())}isNewValueCorrect(e){return Array.isArray(e)}getValueChangingOptions(e){let t=e.parent;for(;t.parent;)t=t.parent;let n=t,r=this.panels.indexOf(n);return{question:this,panel:n,name:e.name,panelIndex:r,panelData:this.getPanelItemDataByIndex(r),oldValue:e.value}}getItemIndex(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length}getItemData(e){return this.getPanelItemDataByIndex(this.items.indexOf(e))}getBindedQuestions(){return!this.survey||!this.valueName?[]:this.survey.getQuestionsByValueName(this.valueName)}getItem(e){let t=this.visiblePanels[e]||void 0;return t==null?void 0:t.data}getPanelItemDataByIndex(e){let t=this.items;var n=this.value;return e<0&&Array.isArray(n)&&n.length>t.length&&(e=t.length),e<0||!n||!Array.isArray(n)||n.length<=e?{}:n[e]}updateItemValue(e,t,n,r){if(this.isValidatingExpressions||e===this.template.data||this.isSetPanelItemData[t]>this.maxCheckCount)return;this.isSetPanelItemData[t]||(this.isSetPanelItemData[t]=0),this.isSetPanelItemData[t]++;var i=this.items,a=i.indexOf(e);a<0&&(a=i.length);var o=this.getUnbindValue(this.value);(!o||!Array.isArray(o))&&(o=[]);let s=Math.max(a+1,i.length);for(var c=o.length;c<s;c++)o.push({});if(o[a]||(o[a]={}),this.isValueEmpty(n)?delete o[a][t]:o[a][t]=n,a>
87=0&&a<this.panelsCore.length){Array.isArray(this.changingValueQuestions)||(this.changingValueQuestions=[]);let e=t,n=G.commentSuffix;e.endsWith(n)&&(e=e.substring(0,e.length-n.length));let r=this.panelsCore[a].getQuestionByValueName(e);r&&this.changingValueQuestions.push(r)}this.value=o,this.changingValueQuestions=null,this.isSetPanelItemData[t]--,this.isSetPanelItemData[t]-1&&delete this.isSetPanelItemData[t]}getPlainData(e={includeEmpty:!0}){var t=super.getPlainData(e);if(t){t.isNode=!0;let n=Array.isArray(t.data)?[].concat(t.data):[];t.data=this.panels.map((t,n)=>{var r={name:t.name||n,title:t.title||`Panel`,value:t.getValue(),displayValue:t.getValue(),getString:e=>this.getValueAsString(e),isNode:!0,data:t.questions.map(t=>t.getPlainData(e)).filter(e=>!!e)};return(e.calculations||[]).forEach(e=>{r[e.propertyName]=t[e.propertyName]}),r}),t.data=t.data.concat(n)}return t}updateElementCss(e){super.updateElementCss(e);for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].updateElementCss(e)}get progressText(){var e=this.visiblePanelCount;return this.getLocalizationFormatString(`panelDynamicProgressText`,this.currentIndex+1,e)}get progress(){return(this.currentIndex+1)/this.visiblePanelCount*100+`%`}get progressBarAriaLabel(){return hj(`progressbar`,this.getLocale())}getRootCss(){return new X().append(super.getRootCss()).append(this.cssClasses.empty,this.get
87ShowNoEntriesPlaceholder()).toString()}get cssHeader(){let e=this.isRenderModeTab&&!!this.visiblePanelCount;return new X().append(super.getCssHeader(this.cssClasses)).append(this.cssClasses.headerTab,this.hasTitleOnTop&&e).toString()}getTabsContainerCss(){return new X().append(this.cssClasses.tabsContainer).append(this.cssClasses.tabsContainerWithHeader,this.hasTitleOnTop).toString()}getPanelWrapperCss(e){return new X().append(this.cssClasses.panelWrapper,!e||e.visible).append(this.cssClasses.panelWrapperList,this.isRenderModeList).append(this.cssClasses.panelWrapperInRow,this.removePanelButtonLocation===`right`).toString()}getPanelRemoveButtonCss(){return new X().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,this.removePanelButtonLocation===`right`).toString()}getAddButtonCss(){return new X().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+`--list-mode`,this.displayMode===`list`).toString()}getPrevButtonCss(){return new X().append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()}getNextButtonCss(){return new X().append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()}get noEntriesText(){return this.getLocStringText(this.locNoEntriesText)}set noEntriesText(e){this.setLocStringText(this.locNoEntriesText,e)}get locNoEntriesText(){return this.getOrCreateLocStr(`noEntriesText`,!1,this.getNoEntriesLocalizationName())}getShowNoEntriesPlaceholder(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&this.visiblePanelCount===0}needResponsiveWidth(){let e=this.getPanels();for(let t=0;t<e.length;t++){let n=e[t];if(n.isVisible&&n.needResponsiveWidth())return!0}return!1}get hasTabbedMenu(){return this.isRenderModeTab&&this.visiblePanels.length>0}get tabbedMenu(){return this.isRenderModeTab?(this.tabbedMenuValue||(this.tabbedMenuValue=new mP,this.tabbedMenuValue.dotsItem.popupModel.showPointer=!1,this.tabbedMenuValue.dotsItem.popupModel.verticalPosition=`bottom`,this.tabbedMenuValue.dotsItem.popupModel.horizontalPosition=`center`,this.updateElementCss(!1)),this.tabbedMenuValue):null}get showFooterToolbar(){return this.footerToolbar&&this._showFooterToolbar}get footerToolbar(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue}get ariaRole(){return`group`}get ariaRequired(){return null}get ariaInvalid(){return null}updateFooterActions(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()}initFooterToolbar(){this.footerToolbarValue=this.createActionContainer();let e=[],t=new kN({id:`sv-pd-prev-btn`,title:this.prevPanelText,action:()=>{this.goToPrevPanel()}}),n=new kN({id:`sv-pd-next-btn`,title:this.nextPanelText,action:()=>{this.goToNextPanel()}}),r=new kN({id:`sv-pd-add-btn`,component:`sv-paneldynamic-add-btn`,enabled:new KM(()=>this.enableAddPanel!==!1),data:{question:this}}),i=new kN({id:`sv-prev-btn-icon`,component:`sv-paneldynamic-prev-btn`,data:{question:this}}),a=new kN({id:`sv-pd-progress-text`,component:`sv-paneldynamic-progress-text`,data:{question:this}}),o=new kN({id:`sv-pd-next-btn-icon`,component:`sv-paneldynamic-next-btn`,data:{question:this}});e.push(t,n,r,i,a,o),this.updateFooterActionsCallback=()=>{let e=this.legacyNavigation,s=this.isRenderModeList,c=this.isMobile,l=!e&&!s;t.visible=l&&this.currentIndex>0,n.visible=l&&this.currentIndex<this.visiblePanelCount-1,n.needSpace=c&&n.visible&&t.visible,r.visible=this.canAddPanel,r.needSpace=this.isMobile&&!n.visible&&t.visible,a.visible=!this.isRenderModeList&&!c,a.needSpace=!e&&!this.isMobile;let u=e&&!s;i.visible=u,o.visible=u,i.needSpace=u},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(e),this.footerToolbar.flushUpdates(),this._showFooterToolbar=new KM(()=>{var e;return(e=this.footerToolbarValue)==null?void 0:e.hasVisibleActions})}createTabByPanel(e,t){if(!this.isRenderModeTab)return;let n=new yj(e,!0);n.onGetTextCallback=n=>{if(n||(n=this.locTabTitlePlaceholder.renderedHtml),!this.survey)return n;let r={title:n,panel:e,visiblePanelIndex:t};return this.dynamicPanelCallbacks.dynamicPanelGetTabTitle(this,r),r.title},n.sharedData=this.locTemplateTabTitle;let r=e.id,i=this.getPanelVisibleIndexById(r)===this.currentIndex;return new AR({id:`${this.id}_tab_${r}`,panelId:r,pressed:i,locTitle:n,disableHide:i,action:()=>{this.currentIndex=this.getPanelVisibleIndexById(r)}})}
87getTabbedMenuCss(e){let t=e??this.cssClasses;return new X().append(t.tabsRoot).append(t.tabsLeft,this.tabAlign===`left`).append(t.tabsRight,this.tabAlign===`right`).append(t.tabsCenter,this.tabAlign===`center`).toString()}updateTabToolbarItemsPressedState(){if(!this.isRenderModeTab||this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)return;let e=this.visiblePanelsCore[this.currentIndex];this.tabbedMenu.actions.forEach(t=>{let n=t.panelId===e.id;t.pressed=n,t.disableHide=n})}updateTabToolbar(){if(!this.isRenderModeTab)return;let e=[],t=this.visiblePanelsCore;for(let n=0;n<t.length;n++)this.visiblePanelsCore.forEach(r=>e.push(this.createTabByPanel(t[n],n)));this.tabbedMenu.setItems(e)}addTabFromToolbar(e,t){if(!this.isRenderModeTab)return;let n=this.createTabByPanel(e,t);this.tabbedMenu.actions.splice(t,0,n),this.updateTabToolbarItemsPressedState()}removeTabFromToolbar(e){if(!this.isRenderModeTab)return;let t=this.tabbedMenu.actions.find(t=>t.panelId==e.id);t&&(this.tabbedMenu.actions.splice(this.tabbedMenu.actions.indexOf(t),1),this.updateTabToolbarItemsPressedState())}get showNavigation(){return this.isReadOnly&&this.visiblePanelCount==1?!1:this.visiblePanelCount>0&&!!this.cssClasses.footer}showSeparator(e){return this.isRenderModeList&&e<this.renderedPanels.length-1}calcCssClasses(e){let t=super.calcCssClasses(e),n=this.tabbedMenu;
87return n&&(n.containerCss=this.getTabbedMenuCss(t),n.cssClasses=t.tabs,n.dotsItem.cssClasses=t.tabs,n.dotsItem.popupModel.contentComponentData.model.cssClasses=e.list),t}onMobileChanged(){super.onMobileChanged(),this.updateFooterActions()}ensureRowsVisibility(){this.visiblePanels.forEach(e=>e.ensureRowsVisibility())}};q([Y({localizable:{defaultStr:`panelDynamicTabTextFormat`,markdown:!0}})],NR.prototype,`templateTabTitle`,void 0),q([Y({localizable:{defaultStr:!0,markdown:!0}})],NR.prototype,`tabTitlePlaceholder`,void 0),q([mN({})],NR.prototype,`_renderedPanels`,void 0),q([Y()],NR.prototype,`confirmDelete`,void 0),q([Y({defaultValue:``})],NR.prototype,`keyName`,void 0),q([Y({localizable:{defaultStr:`confirmDelete`}})],NR.prototype,`confirmDeleteText`,void 0),q([Y({localizable:{defaultStr:!0}})],NR.prototype,`keyDuplicationError`,void 0),q([Y({localizable:{defaultStr:`pagePrevText`}})],NR.prototype,`prevPanelText`,void 0),q([Y({localizable:{defaultStr:`pageNextText`}})],NR.prototype,`nextPanelText`,void 0),q([Y({localizable:{defaultStr:`addPanel`}})],NR.prototype,`addPanelText`,void 0),q([Y({localizable:{defaultStr:`removePanel`}})],NR.prototype,`removePanelText`,void 0),q([Y()],NR.prototype,`panelsState`,void 0),q([Y({onSetting:e=>e<0?0:e})],NR.prototype,`minPanelCount`,void 0),q([Y({onSetting:e=>e<=0?1:e<G.panel.maxPanelCount?e:G.panel.maxPanelCount})],NR.prototype,`maxPanelCount`,void 0),q([Y()],NR.prototype,`allowAddPanel`,void 0),q([Y()],NR.prototype,`newPanelPosition`,void 0),q([Y()],NR.prototype,`allowRemovePanel`,void 0),q([Y({defaultValue:!0})],NR.prototype,`enableAddPanel`,void 0),q([Y({defaultValue:!0})],NR.prototype,`enableRemovePanel`,void 0),q([Y()],NR.prototype,`templateQuestionTitleLocation`,void 0),q([Y()],NR.prototype,`templateQuestionTitleWidth`,void 0),q([Y()],NR.prototype,`templateErrorLocation`,void 0),q([Y({onSetting:e=>e?(e=e.toLowerCase(),e===`onsurvey`?`default`:e):`off`})],NR.prototype,`showQuestionNumbers`,void 0),q([Y()],NR.prototype,`removePanelButtonLocation`,void 0),q([Y({onSet:(e,t)=>{t.fireCallback(t.renderModeChangedCallback),t.updatePanelView()}})],NR.prototype,`displayMode`,void 0),q([Y({onSet:(e,t)=>{t.fireCallback(t.currentIndexChangedCallback)}})],NR.prototype,`showProgressBar`,void 0),q([Y({onSet:(e,t)=>{}})],NR.prototype,`progressBarLocation`,void 0),q([Y()],NR.prototype,`tabAlign`,void 0),q([Y()],NR.prototype,`defaultPanelValue`,void 0),q([Y()],NR.prototype,`copyDefaultValueFromLastEntry`,void 0),q([Y({defaultValue:!1})],NR.prototype,`_showFooterToolbar`,void 0),q([Y({defaultValue:!1,onSet:(e,t)=>{t.updateFooterActions()}})],NR.prototype,`legacyNavigation`,void 0);var PR=class extends PP{get panelDynamic(){return this.question}getSingleInputQuestionsCore(e,t){this.panelDynamic.onFirstRendering();let n=[],r=this.panelDynamic.visiblePanels;if(t)for(let e=0;e<r.length;e++){let t=r[e];(!t.hasValueAnyQuestion(!0)||!t.validate(!1,!1))&&this.fillSingleInputQuestionsByPanel(n,t)}return this.getSingleInputQuestionsForDynamic(e,n)}fillSingleInputQuestionsInContainer(e,t){let n=this.getPanelByQuestion(t);this.fillSingleInputQuestionsByPanel(e,n)}fillSingleInputQuestionsByPanel(e,t){t&&t.visibleQuestions.forEach(t=>t.addNestedQuestion(e,!0,!1,!1))}getSingleQuestionLocTitleCore(){let e=this.panelDynamic.locTemplateTitle;return e.onGetTextCallback=e=>{let t=this.panelDynamic.singleInputQuestion;return t?this.processSingleInputTitle(e,this.getPanelByQuestion(t)):e},e}processSingleInputTitle(e,t){return e||(e=this.getSingleInputTitleTemplate()),t?t.getProcessedText(e):e}getSingleInputTitleTemplate(){return this.panelDynamic.getLocalizationString(`panelDynamicTabTextFormat`)}getPanelByQuestion(e){let t=e.parent;for(;t&&t.parent;)t=t.parent;return t}getSingleInputAddTextCore(){if(this.panelDynamic.canAddPanel)return this.panelDynamic.addPanelText}singleInputAddItemCore(){this.panelDynamic.addPanelUI()}getSingleQuestionOnChange(e){let t=this.panelDynamic.visiblePanels;if(t.length>0){(e<0||e>=t.length)&&(e=t.length-1);let n=t[e].visibleQuestions;if(n.length>0)return n[0]}return null}createSingleInputSummary(){let e=this.panelDynamic,t=new aI(e,e.locNoEntriesText),n=[];
87return e.visiblePanels.forEach(t=>{let r=new yj(e,!0,void 0,e.locTemplateTitle.localizationName);r.setJson(e.locTemplateTitle.getJson()),r.onGetTextCallback=n=>this.processSingleInputTitle(e.templateTitle,t);let i=new kN({locTitle:e.locEditPanelText,action:()=>{this.singInputEditPanel(t)}}),a=e.canRemovePanel?new kN({locTitle:e.locRemovePanelText,action:()=>{e.removePanelUI(t)}}):void 0;n.push(new iI(r,i,a))}),t.items=n,t}singleInputMoveToFirstCore(){var e;let t=(e=this.panelDynamic.singleInputQuestion)==null?void 0:e.parent;for(;t&&t.parent;)t=t.parent;this.singInputEditPanel(t)}singInputEditPanel(e){if(!e)return;let t=e.visibleQuestions;t.length>0&&this.setSingleInputQuestion(t[0])}};J.addClass(`paneldynamic`,[{name:`showCommentArea:switch`,visible:!0},{name:`templateElements`,alternativeName:`questions`,baseClassName:`question`,visible:!1,isLightSerializable:!1},{name:`templateTitle:text`,serializationProperty:`locTemplateTitle`},{name:`templateTabTitle`,serializationProperty:`locTemplateTabTitle`,visibleIf:e=>e.displayMode===`tab`},{name:`tabTitlePlaceholder`,serializationProperty:`locTabTitlePlaceholder`,visibleIf:e=>e.displayMode===`tab`},{name:`templateDescription:text`,serializationProperty:`locTemplateDescription`},{name:`minWidth`,defaultFunc:()=>`auto`},{name:`noEntriesText:text`,serializationProperty:`locNoEntriesText`},{name:`allowAddPanel:boolean`,default:!0},{name:`allowRemovePanel:boolean`,default:!0},{name:`newPanelPosition`,choices:[`next`,`last`],default:`last`},{name:`panelCount:number`,isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10],onSettingValue:(e,t)=>t<e.minPanelCount?e.minPanelCount:t>e.maxPanelCount?e.maxPanelCount:t},{name:`minPanelCount:number`,default:0,minValue:0},{name:`maxPanelCount:number`,defaultFunc:()=>G.panel.maxPanelCount},`defaultPanelValue:panelvalue`,{name:`copyDefaultValueFromLastEntry:boolean`,alternativeName:`defaultValueFromLastPanel`},{name:`panelsState`,default:`default`,choices:[`default`,`collapsed`,`expanded`,`firstExpanded`],visibleIf:e=>e.displayMode===`list`},{name:`keyName`},{name:`keyDuplicationError`,serializationProperty:`locKeyDuplicationError`},{name:`confirmDelete:boolean`},{name:`confirmDeleteText`,serializationProperty:`locConfirmDeleteText`,visibleIf:e=>e.confirmDelete},{name:`addPanelText`,alternativeName:`panelAddText`,serializationProperty:`locAddPanelText`,visibleIf:e=>e.allowAddPanel},{name:`removePanelText`,alternativeName:`panelRemoveText`,serializationProperty:`locRemovePanelText`,visibleIf:e=>e.allowRemovePanel},{name:`prevPanelText`,alternativeName:`panelPrevText`,serializationProperty:`locPrevPanelText`,visibleIf:e=>e.displayMode!==`list`},{name:`nextPanelText`,alternativeName:`panelNextText`,serializationProperty:`locNextPanelText`,visibleIf:e=>e.displayMode!==`list`},{name:`showQuestionNumbers`,default:`off`,choices:[`default`,`onpanel`,`recursive`,`off`]},{name:`questionStartIndex`,visibleIf:e=>{let t=e.showQuestionNumbers;return t===`onpanel`||t===`recursive`}},{name:`renderMode`,visible:!1,isSerializable:!1},{name:`displayMode`,default:`list`,choices:[`list`,`carousel`,`tab`]},{name:`showProgressBar:boolean`,alternativeName:`showRangeInProgress`,default:!0,visibleIf:e=>e.displayMode===`carousel`},{name:`progressBarLocation`,default:`top`,choices:[`top`,`bottom`,`topBottom`],visibleIf:e=>e.showProgressBar&&e.displayMode===`carousel`},{name:`tabAlign`,default:`center`,choices:[`left`,`center`,`right`],visibleIf:e=>e.displayMode===`tab`},{name:`templateQuestionTitleLocation`,alternativeName:`templateTitleLocation`,default:`default`,choices:[`default`,`top`,`bottom`,`left`]},{name:`templateQuestionTitleWidth`,visibleIf:function(e){return!!e&&e.template.availableQuestionTitleWidth()}},{name:`templateErrorLocation`,default:`default`,choices:[`default`,`top`,`bottom`]},{name:`templateVisibleIf:expression`},{name:`removePanelButtonLocation`,alternativeName:`panelRemoveButtonLocation`,default:`bottom`,choices:[`bottom`,`right`],visibleIf:e=>e.allowRemovePanel}],function(){return new NR(``)},`question`),xF.Instance.registerQuestion(`paneldynamic`,e=>new NR(e));var FR=class{static getProgressTextInBarCss(e){return new X().append(e.progressText).append(e.progressTextInBar).toString()}static getProgressTextUnderBarCss(e){return new X().append(e.progressText).append(e.progressTextUnderBar).toString()}},IR=class e extends qM{static get operators(){return e.operatorsValue??(e.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||e.indexOf(t)==-1},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}}),e.operatorsValue}constructor(){super()}get id(){return this.uniqueId}getType(){return`triggerbase`}toString(){var e=this.getType().replace(`trigger`,``),t=this.expression;return t&&(e+=`, `+t),e}get isInternal(){return this.isGhost===!0}get operator(){return this.getPropertyValue(`operator`,`equal`)}set operator(t){t&&(t=t.toLowerCase(),e.operators[t]&&this.setPropertyValue(`operator`,t))}get expression(){return this.getPropertyValue(`expression`,this.buildExpression())}set expression(e){this.setPropertyValue(`expression`,e)}canBeExecuted(e){return!0}canBeExecutedOnComplete(){return!1}checkExpression(e){if(this.isExecutingOnNextPage=e.isOnNextPage,this.isExecutingOnNavigation=e.isOnNavigation||e.isOnNextPage,!this.canBeExecuted(e.isOnNextPage)||e.isOnComplete&&!this.canBeExecutedOnComplete())return;let t=Object.keys(e.keys);if(Array.isArray(t)&&!this.canBeExecuteOnKeysChange(t))return;let n=e.properties||null;this.runExpressionByProperty(`expression`,n,e=>{this.triggerResult(e===!0,n)},t=>this.isCheckRequired(t,e.keys))||this.isCheckRequired(null,e.keys)&&this.canSuccessOnEmptyExpression()&&this.triggerResult(!0,n)}canBeExecuteOnKeysChange(e){return!0}canSuccessOnEmptyExpression(){return!1}check(t){e.operators[this.operator](t,this.value)?this.onSuccess(null):this.onFailure()}get requireValidQuestion(){return!1}triggerResult(e,t){e?(this.onSuccess(t),this.onSuccessExecuted()):this.onFailure()}onSuccess(e){}onFailure(){}onSuccessExecuted(){}buildExpression(){return!this.name||this.isValueEmpty(this.value)&&this.isRequireValue?``:`{`+this.name+`} `+this.operator+` `+nF.toOperandString(this.value)}isCheckRequired(e,t){return t?!this.canSkipExpressionByKeys(e,t,this.getUsedVariables(e)):!1}getUsedVariables(e){return e?e.getVariables():[]}get isRequireValue(){return this.operator!==`empty`&&this.operator!=`notempty`}};IR.operatorsValue=null,q([Y()],IR.prototype,`value`,void 0),q([Y()],IR.prototype,`name`,void 0);var LR=class extends IR{constructor(){super(),this.ownerValue=null}get owner(){return this.ownerValue}setOwner(e){this.ownerValue=e}getOwner(){return this.owner}getSurvey(e=!1){return this.owner&&this.owner.getSurvey?this.owner.getSurvey():null}isRealExecution(){return!0}onSuccessExecuted(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)}}
87,RR=class extends LR{constructor(){super(),this.pages=[],this.questions=[]}getType(){return`visibletrigger`}onSuccess(e){this.onTrigger(this.onItemSuccess)}onFailure(){this.onTrigger(this.onItemFailure)}onTrigger(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),n=0;n<t.length;n++)e(t[n])}onItemSuccess(e){e.visible=!0}onItemFailure(e){e.visible=!1}},zR=class extends LR{constructor(){super()}getType(){return`completetrigger`}get requireValidQuestion(){return!0}isRealExecution(){return!G.triggers.executeCompleteOnValueChanged===this.isExecutingOnNavigation}onSuccess(e){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))}onFailure(){this.owner.canBeCompleted(this,!1)}},BR=class extends LR{constructor(){super()}getType(){return`setvaluetrigger`}canBeExecuted(e){return!e&&!!this.setToName}canBeExecuteOnKeysChange(e){return e.length===1&&e[0]===this.setToName?!1:super.canBeExecuteOnKeysChange(e)}onPropertyValueChanged(e,t,n){if(super.onPropertyValueChanged(e,t,n),e===`setToName`){var r=this.getSurvey();r&&!r.isLoadingFromJson&&r.isDesignMode&&(this.setValue=void 0)}}onSuccess(e){!this.setToName||!this.owner||this.owner.setTriggerValue(this.setToName,K.getUnbindValue(this.setValue),this.isVariable)}};q([Y()],BR.prototype,`setToName`,void 0),q([Y()],BR.prototype,`setValue`,void 0),q([Y()],BR.prototype,`isVariable`,void 0);
87var VR=class extends LR{constructor(){super()}getType(){return`skiptrigger`}get requireValidQuestion(){return this.canBeExecuted(!1)}canBeExecuted(e){return e===!G.triggers.executeSkipOnValueChanged}onSuccess(e){!this.gotoName||!this.owner||this.owner.focusQuestion(this.gotoName)}};q([Y()],VR.prototype,`gotoName`,void 0);var HR=class extends LR{constructor(){super()}getType(){return`runexpressiontrigger`}canBeExecuted(e){return!e}onSuccess(e){this.owner&&this.runExpressionByProperty(`runExpression`,e,e=>{this.onCompleteRunExpression(e)})}onCompleteRunExpression(e){this.setToName&&e!==void 0&&this.owner.setTriggerValue(this.setToName,K.convertValToQuestionVal(e),!1)}};q([Y()],HR.prototype,`setToName`,void 0),q([Y()],HR.prototype,`runExpression`,void 0);var UR=class extends LR{constructor(){super()}canBeExecuted(e){return!e&&!!this.setToName&&!!this.fromName}getType(){return`copyvaluetrigger`}canBeExecuteOnKeysChange(e){return e.length===1&&e[0]===this.setToName?!1:super.canBeExecuteOnKeysChange(e)}onSuccess(e){!this.setToName||!this.owner||this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)}canSuccessOnEmptyExpression(){return!0}getUsedVariables(e){let t=super.getUsedVariables(e);return this.fromName&&t.indexOf(this.fromName)<0&&t.push(this.fromName),t}};q([Y()],UR.prototype,`setToName`,void 0),q([Y()],UR.prototype,`fromName`,void 0),q([Y()],UR.prototype,`copyDisplayValue`,void 0),J.addClass(`trigger`,[{name:`operator`,default:`equal`,visible:!1},{name:`value`,visible:!1},`expression:condition`]),J.addClass(`surveytrigger`,[{name:`name`,visible:!1}],null,`trigger`),J.addClass(`visibletrigger`,[`pages:pages`,`questions:questions`],function(){return new RR},`surveytrigger`),J.addClass(`completetrigger`,[],function(){return new zR},`surveytrigger`),J.addClass(`setvaluetrigger`,[{name:`!setToName:questionvalue`},{name:`setValue:triggervalue`,dependsOn:`setToName`,visibleIf:function(e){return!!e&&!!e.setToName}},{name:`isVariable:boolean`,visible:!1}],function(){return new BR},`surveytrigger`),J.addClass(`copyvaluetrigger`,[{name:`!fromName:questionvalue`},{name:`!setToName:questionvalue`},{name:`copyDisplayValue:boolean`,visible:!1}],function(){return new UR},`surveytrigger`),J.addClass(`skiptrigger`,[{name:`!gotoName:question`}],function(){return new VR},`surveytrigger`),J.addClass(`runexpressiontrigger`,[{name:`setToName:questionvalue`},`runExpression:expression`],function(){return new HR},`surveytrigger`);var WR=class extends qM{constructor(e,t=null){super(),this.closeOnCompleteTimeout=0,this.surveyValue=t||this.createSurvey(e),this.surveyValue.fitToContainer=!0,this.windowElement=nj.createElement(`div`),this.survey.onComplete.add((e,t)=>{this.onSurveyComplete()}),this.width=new KM(()=>this.survey.width),this.width=this.survey.width,this.updateCss()}onPropertyValueChanged(e,t,n){if(super.onPropertyValueChanged(e,t,n),e===`isShowing`){let e=this.showingChangedCallback;e&&e()}e===`isExpanded`&&(this.isFullScreen&&!n&&(this.isFullScreen=!1),this.onExpandedChanged()),e===`isFullScreen`&&(n&&!this.isExpanded&&(this.isExpanded=!0),this.setCssRoot())}getType(){return`popupsurvey`}get survey(){return this.surveyValue}show(){this.isShowing=!0}hide(){this.isShowing=!1}toggleFullScreen(){this.isFullScreen=!this.isFullScreen}get isCollapsed(){return!this.isExpanded}onExpandedChanged(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()}get title(){return this.survey.title}set title(e){this.survey.title=e}get locTitle(){return this.survey.locTitle.isEmpty?null:this.survey.locTitle}get locDescription(){return this.survey.locTitle.isEmpty?null:this.survey.locDescription}expand(){this.isExpanded=!0}collapse(){this.isExpanded=!1}changeExpandCollapse(){this.isExpanded=!this.isExpanded}get css(){return this.survey.css}get cssButton(){return this.getPropertyValue(`cssButton`,``)}get cssRoot(){let e=this.getPropertyValue(`cssRoot`,``);return this.isCollapsed&&(e+=` `+this.getPropertyValue(`cssRootCollapsedMod`,``)),e}get cssRootCollapsedMod(){return this.getPropertyValue(`cssRootCollapsedMod`)}get cssRootContent(){return this.getPropertyValue(`cssRootContent`)}get cssBody(){return this.getPropertyValue(`cssBody`,``)}get cssHeaderRoot(){return this.getPropertyValue(`cssHeaderRoot`,``)}get cssHeaderTitleCollapsed(){return this.getPropertyValue(`cssHeaderTitleCollapsed`,``)}get cssHeaderButtonsContainer(){return this.getPropertyValue(`cssHeaderButtonsContainer`,``)}get cssHeaderCollapseButton(){return this.getPropertyValue(`cssHeaderCollapseButton`,``)}get cssHeaderCloseButton(){return this.getPropertyValue(`cssHeaderCloseButton`,``)}get cssHeaderFullScreenButton(){return this.getPropertyValue(`cssHeaderFullScreenButton`,``)}get renderedWidth(){let e=this.getPropertyValue(`width`,`60%`);return e&&!isNaN(e)&&(e+=`px`),e}updateCss(){if(!this.css||!this.css.window)return;let e=this.css.window;this.setCssRoot(),this.setPropertyValue(`cssRootCollapsedMod`,e.rootCollapsedMod),this.setPropertyValue(`cssRootContent`,e.rootContent),this.setPropertyValue(`cssBody`,e.body);let t=e.header;t&&(this.setPropertyValue(`cssHeaderRoot`,t.root),this.setPropertyValue(`cssHeaderTitleCollapsed`,t.titleCollapsed),this.setPropertyValue(`cssHeaderButtonsContainer`,t.buttonsContainer),this.setPropertyValue(`cssHeaderCollapseButton`,t.collapseButton),this.setPropertyValue(`cssHeaderCloseButton`,t.closeButton),this.setPropertyValue(`cssHeaderFullScreenButton`,t.fullScreenButton),this.updateCssButton())}setCssRoot(){let e=this.css.window;this.isFullScreen?this.setPropertyValue(`cssRoot`,e.root+` `+e.rootFullScreenMode):this.setPropertyValue(`cssRoot`,e.root)}updateCssButton(){let e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)}setCssButton(e){e&&this.setPropertyValue(`cssButton`,e)}createSurvey(e){return new Z(e)}onSurveyComplete(){if(!(this.closeOnCompleteTimeout<0)){if(this.closeOnCompleteTimeout==0)this.hide();else{var e=this,t=null;t=setInterval(function(){e.hide(),clearInterval(t)},this.closeOnCompleteTimeout*1e3)}}}onScroll(){this.survey.onScroll()}};q([Y({defaultValue:!1})],WR.prototype,`isShowing`,void 0),q([Y({defaultValue:!1})],WR.prototype,`isFullScreen`,void 0),q([Y({defaultValue:!1})],WR.prototype,`isExpanded`,void 0),q([Y({defaultValue:!1})],WR.prototype,`allowClose`,void 0),q([Y({defaultValue:!1})],WR.prototype,`allowFullScreen`,void 0),q([Y()],WR.prototype,`width`,void 0);var GR=class{constructor(){this._lockScroll=!1}setRootElement(e){this._containerElementValue=e==null?void 0:e.querySelector(`.sv-scroll__scroller`),this._scrollbarElement=e==null?void 0:e.querySelector(`.sv-scroll__scrollbar`),this._scrollbarSizerElement=e==null?void 0:e.querySelector(`.sv-scroll__scrollbar-sizer`),this._containerBodyElement=e==null?void 0:e.querySelector(`.sv-scroll__container`),!(!e||!tj.isAvailable())&&(this._containerBodyResizeObserver=new ResizeObserver(e=>{for(let t of e){let e=t.contentBoxSize?t.contentBoxSize[0].blockSize:t.contentRect.width;this._scrollbarSizerElement.style.height=e+`px`}
87this.onInnerHeightChanged&&this.onInnerHeightChanged(this._containerBodyElement.clientHeight>this._containerElementValue.clientHeight)}),this._containerBodyResizeObserver.observe(this._containerBodyElement))}onScrollContainer(){this._lockScroll=!0,this._scrollbarElement.scrollTop=this._containerElementValue.scrollTop}onScrollScrollbar(){if(this._lockScroll){this._lockScroll=!1;return}this._containerElementValue.scrollTop=this._scrollbarElement.scrollTop}unsubscribeRootElement(){this._containerBodyResizeObserver&&(this._containerBodyResizeObserver.disconnect(),this._containerBodyResizeObserver=void 0)}},KR=[`input:not(:disabled):not([readonly]):not([type=hidden])`,`select:not(:disabled)`,`textarea:not(:disabled):not([readonly])`,`button:not(:disabled):not([tabindex="-1"])`,`[tabindex]:not([tabindex^="-"])`].join(`,`),qR=class extends qM{updateIsVisible(e){this._isVisible=e,this.onVisibilityChanged.fire(this,{isVisible:e})}updateBeforeShowing(){this.model.onShow()}updateAfterHiding(){this.model.onHiding()}getLeaveOptions(){return{cssClass:`sv-popup--leave`,onBeforeRunAnimation:e=>{e.setAttribute(`inert`,``)},onAfterRunAnimation:e=>e.removeAttribute(`inert`)}}getEnterOptions(){return{cssClass:`sv-popup--enter`}}getAnimatedElement(){return this.getAnimationContainer()}isAnimationEnabled(){return this.model.displayMode!==`overlay`&&G.animationEnabled}getRerenderEvent(){return this.onElementRerendered}getAnimationContainer(){var e;return(e=this.container)==null?void 0:e.querySelector(this.fixedPopupContainer)}get isVisible(){return this._isVisible}set isVisible(e){this.visibilityAnimation.sync(e)}get container(){return this.containerElement||this.createdContainer}getLocale(){return this.locale?this.locale:super.getLocale()}hidePopup(){this.model.isVisible=!1}getStyleClass(){return new X().append(this.model.cssClass)}getShowFooter(){return this.isOverlay}getShowHeader(){return this.getShowCloseButton()}getShowCloseButton(){return!!this.model.showCloseButton}getPopupHeaderTemplate(){return this.model.showCloseButton?`popup-close-button`:void 0}createFooterActionBar(){this.footerToolbarValue=new XN}resetDimensionsAndPositionStyleProperties(){this.top=``,this.left=``,this.height=``,this.width=``,this.minWidth=``}onModelChanging(e){}setupModel(e){this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.onModelChanging(e),this._model=e,e.onVisibilityChanged.add(this.onModelIsVisibleChangedCallback),this.onModelIsVisibleChangedCallback()}get model(){return this._model}set model(e){this.setupModel(e)}constructor(e){super(),this.popupSelector=`.sv-popup`,this.fixedPopupContainer=`.sv-popup`,this.containerSelector=`.sv-popup__container`,this.scrollingContentSelector=`.sv-popup__scrolling-content`,this.visibilityAnimation=new yP(this,e=>{this._isVisible!==e&&(e?(this.updateBeforeShowing(),this.updateIsVisible(e)):(this.updateOnHiding(),this.updateIsVisible(e),this.updateAfterHiding(),this._isPositionSetValue=!1))},()=>this._isVisible),this.onVisibilityChanged=new vj,this.onModelIsVisibleChangedCallback=()=>{this.isVisible=this.model.isVisible},this._isPositionSetValue=!1,this.model=e,this.locale=this.model.locale}get title(){return this.model.title}get contentComponentName(){return this.model.contentComponentName}get contentComponentData(){return this.model.contentComponentData}get isModal(){return this.model.isModal}get isFocusedContent(){return this.model.isFocusedContent}get isFocusedContainer(){return this.model.isFocusedContainer}get showFooter(){return this.getShowFooter()}get showHeader(){return this.getShowHeader()}get showCloseButton(){return this.getShowCloseButton()}get popupHeaderTemplate(){return this.getPopupHeaderTemplate()}get isOverlay(){return this.model.displayMode===`overlay`}get styleClass(){return this.getStyleClass().toString()}get cancelButtonText(){return this.getLocalizationString(`modalCancelButtonText`)}get footerToolbar(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue}onKeyDown(e){e.key===`Tab`||e.keyCode===9?this.trapFocus(e):(e.key===`Escape`||e.keyCode===27)&&this.hidePopup()}trapFocus(e){let t=this.container.querySelectorAll(KR),n=t[0],r=t[t.length-1],i=PN();e.shiftKey?i===n&&(r.focus(),e.preventDefault()):i===r&&(n.focus(),e.preventDefault())}switchFocus(){this.isFocusedContent?this.focusFirstInput():this.isFocusedContainer&&this.focusContainer()}get isPositionSet(){return this._isPositionSetValue}updateOnShowing(){let e=PN();this.prevActiveElement=e,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus(),this._isPositionSetValue=!0}updateOnHiding(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus({preventScroll:!0})}focusContainer(){if(!this.container)return;let e=this.container.querySelector(this.popupSelector);e==null||e.focus()}focusFirstInput(){setTimeout(()=>{if(this.container){var e=this.container.querySelector(this.model.focusFirstInputSelector||KR);e?e.focus():this.focusContainer()}},100)}clickClose(e){this.hidePopup(),e==null||e.stopPropagation()}clickOutside(e){this.hidePopup(),e==null||e.stopPropagation()}blur(e){this.model.onBlur()}cancel(){this.model.onCancel(),this.hidePopup()}dispose(){super.dispose(),this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.createdContainer&&(this.createdContainer.remove(),this.createdContainer=void 0),this.footerToolbarValue&&this.footerToolbarValue.dispose(),this.resetComponentElement()}initializePopupContainer(){if(!this.container){let e=nj.createElement(`div`);this.createdContainer=e,MN(G.environment.popupMountContainer).appendChild(e)}}setComponentElement(e){e&&(this.containerElement=e)}resetComponentElement(){this.containerElement=void 0,this.prevActiveElement=void 0}preventScrollOuside(e,t){let n=e.target;for(;n!==this.container;){if(nj.getComputedStyle(n).overflowY===`auto`&&n.scrollHeight!==n.offsetHeight){let{scrollHeight:e,scrollTop:r,clientHeight:i}=n;if(!(t>0&&Math.abs(e-i-r)<1)&&!(t<0&&r<=0))return}n=n.parentElement}e.cancelable&&e.preventDefault()}};q([Y({defaultValue:`0px`})],qR.prototype,`top`,void 0),q([Y({defaultValue:`0px`})],qR.prototype,`left`,void 0),q([Y({defaultValue:`auto`})],qR.prototype,`height`,void 0),q([Y({defaultValue:`auto`})],qR.prototype,`width`,void 0),q([Y({defaultValue:`auto`})],qR.prototype,`minWidth`,void 0),q([Y({defaultValue:!1})],qR.prototype,`_isVisible`,void 0),q([Y()],qR.prototype,`locale`,void 0);var JR=class{constructor(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}get left(){return this.x}get top(){return this.y}get right(){return this.x+this.width}get bottom(){return this.y+this.height}},YR=class e{static calculatePosition(e,t,n,r,i,a=`flex`){let o=e.left,s=e.top;
87return a===`flex`&&(o=i==`center`?(e.left+e.right-n)/2:i==`left`?e.left-n:e.right),s=r==`middle`?(e.top+e.bottom-t)/2:r==`top`?e.top-t:e.bottom,i!=`center`&&r!=`middle`&&(r==`top`?s+=e.height:s-=e.height),{left:Math.round(o),top:Math.round(s)}}static getCorrectedVerticalDimensions(t,n,r,i,a=!0,o={top:0,bottom:0}){let s,c=r-e.bottomIndent;if(i===`top`&&(s={height:n,top:t}),t<-o.top)s={height:a?n+t:n,top:-o.top};else if(n+t>r){let e=Math.min(n,c-t);s={height:a?e:n,top:a?t:t-(n-e)}}return s&&(s.height=Math.min(s.height,c),s.top=Math.max(s.top,-o.top)),s}static updateHorizontalDimensions(e,t,n,r,i=`flex`,a={left:0,right:0}){t+=a.left+a.right;let o,s=e;return r===`center`&&(i===`fixed`?(e+t>n&&(o=n-e),s-=a.left):e<0?(s=a.left,o=Math.min(t,n)):t+e>n&&(s=n-t,s=Math.max(s,a.left),o=Math.min(t,n))),r===`left`&&e<0&&(s=a.left,o=Math.min(t,n)),r===`right`&&t+e>n&&(o=n-e),{width:o-a.left-a.right,left:s}}static updateVerticalPosition(e,t,n,r,i){if(r===`middle`)return r;let a=t-(e.top+(n===`center`?0:e.height)),o=t+e.bottom-(n===`center`?0:e.height)-i;return a>0&&o<=0&&r==`top`?r=`bottom`:o>0&&a<=0&&r==`bottom`?r=`top`:o>0&&a>0&&(r=a<o?`top`:`bottom`),r}static updateHorizontalPosition(e,t,n,r){if(n===`center`)return n;let i=t-e.left,a=t+e.right-r;return i>0&&a<=0&&n==`left`?n=`right`:a>0&&i<=0&&n==`right`?n=`left`:a>0&&i>0&&(n=i<a?`left`:`right`),n}static calculatePopupDirection(e,t){var n;return t==`center`&&e!=`middle`?n=e:t!=`center`&&(n=t),n}static calculatePointerTarget(e,t,n,r,i,a=0,o=0){var s={};return i==`center`?r!=`middle`&&(s.top=e[r],s.left=e.left+e.width/2):(s.top=e.top+e.height/2,s.left=e[i]),s.left=Math.round(s.left-n),s.top=Math.round(s.top-t),i==`left`&&(s.left-=a+o),i===`center`&&(s.left-=a),s}};YR.bottomIndent=16;var XR=class extends qR{createFooterActionBar(){super.createFooterActionBar(),this.footerToolbar.setCssClasses({root:TN.root,defaultSizeMode:TN.defaultSizeMode,smallSizeMode:TN.smallSizeMode,item:`sd-action sv-menu-popup__button`},!1),this.footerToolbar.containerCss=`sv-menu-footer-action-bar`;let e=[{id:`cancel`,visibleIndex:10,title:this.cancelButtonText,innerCss:`sv-popup__button--cancel`,action:()=>{this.cancel()}}];e=this.model.updateFooterActions(e),this.footerToolbarValue.setItems(e)}getAvailableAreaRect(){let e=this.model.getAreaCallback?this.model.getAreaCallback(this.container):void 0;if(e){let t=e.getBoundingClientRect();return new JR(t.x,t.y,t.width,t.height)}return new JR(0,0,tj.getInnerWidth(),tj.getInnerHeight())}getTargetElementRect(e){let t=this.container,n=this.model.getTargetCallback?this.model.getTargetCallback(t):void 0;if(t&&t.parentElement&&!this.isModal&&!n&&(n=t.parentElement),!n)return null;let r=n.getBoundingClientRect();return new JR(r.left-e.left,r.top-e.top,r.width,r.height)}_updatePosition(){var e,t,n;let r=this.getAvailableAreaRect(),i=this.getTargetElementRect(r);if(!i)return;let a=(e=this.container)==null?void 0:e.querySelector(this.containerSelector);if(!a)return;let o=(t=this.container)==null?void 0:t.querySelector(this.fixedPopupContainer),s=a.querySelector(this.scrollingContentSelector),c=nj.getComputedStyle(a),l=parseFloat(c.marginLeft)||0,u=parseFloat(c.marginRight)||0,d=parseFloat(c.marginTop)||0,f=parseFloat(c.marginBottom)||0,p=a.offsetHeight-s.offsetHeight+s.scrollHeight,m=a.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=i.width+`px`);let h=this.model.verticalPosition,g=this.getActualHorizontalPosition();if(tj.isAvailable()){let e=[p,tj.getInnerHeight()*.9,(n=tj.getVisualViewport())==null?void 0:n.height];p=Math.ceil(Math.min(...e.filter(e=>typeof e==`number`))),h=YR.updateVerticalPosition(i,p,this.model.horizontalPosition,this.model.verticalPosition,r.height),g=YR.updateHorizontalPosition(i,m,g,r.width)}this.popupDirection=YR.calculatePopupDirection(h,g);let _=YR.calculatePosition(i,p,m+l+u,h,g,this.model.positionMode);if(tj.isAvailable()){let e=YR.getCorrectedVerticalDimensions(_.top,p,r.height,h,this.model.canShrink,{top:d,bottom:f});if(e&&(this.height=e.height+`px`,_.top=e.top),this.model.setWidthByTarget)this.width=i.width+`px`,_.left=i.left;else{let e=YR.updateHorizontalDimensions(_.left,m,tj.getInnerWidth(),g,this.model.positionMode,{left
87:l,right:u});e&&(this.width=e.width?e.width+`px`:void 0,_.left=e.left)}}if(o){let e=o.getBoundingClientRect();_.top-=e.top,_.left-=e.left}this.showHeader&&(this.pointerTarget=YR.calculatePointerTarget(i,_.top,_.left,h,g,l,u),this.pointerTarget.top+=`px`,this.pointerTarget.left+=`px`),_.left+=r.left,_.top+=r.top,this.left=_.left+`px`,this.top=_.top+`px`}getActualHorizontalPosition(){let e=this.model.horizontalPosition;return nj.isAvailable()&&nj.getComputedStyle(nj.getBody()).direction==`rtl`&&(this.model.horizontalPosition===`left`?e=`right`:this.model.horizontalPosition===`right`&&(e=`left`)),e}getStyleClass(){let e=this.model.getDisplayMode();return super.getStyleClass().append(`sv-popup--menu-phone`,e===`menu-overlay`).append(`sv-popup--menu-tablet`,e===`menu-popup-overlay`).append(`sv-popup--menu-popup`,e===`menu-popup`).append(`sv-popup--show-pointer`,e===`menu-popup`&&this.showHeader).append(`sv-popup--${this.popupDirection}`,e===`menu-popup`&&(this.showHeader||this.popupDirection==`top`||this.popupDirection==`bottom`))}getShowHeader(){return this.model.showPointer&&!this.isOverlay}getPopupHeaderTemplate(){return`popup-pointer`}constructor(e){super(e),this.scrollEventCallBack=e=>{if(this.isOverlay&&rP){e.stopPropagation(),e.preventDefault();return}this.hidePopup()},this.visualViewportChangedCallback=()=>{if(!tj.isAvailable())return;let e=tj.getVisualViewport(),t=nj.getDocumentElement();if(t&&e){let n=e.scale||1;t.style.setProperty(`--sv-popup-overlay-height`,`${e.height*n}px`);let r=n===1?e.offsetTop:0;t.style.setProperty(`--sv-popup-overlay-top`,`${r}px`)}},this.resizeWindowCallback=()=>{this.isOverlay||this.updatePosition(!0,Z.platform===`vue`||Z.platform===`vue3`||Z.platform==`react`||Z.platform==`js-ui`)},this.clientY=0,this.touchStartEventCallback=e=>{this.clientY=e.touches[0].clientY},this.touchMoveEventCallback=e=>{this.preventScrollOuside(e,this.clientY-e.changedTouches[0].clientY)},this.model.onRecalculatePosition.add(this.recalculatePositionHandler)}setComponentElement(e){super.setComponentElement(e)}resetComponentElement(){super.resetComponentElement()}updateOnShowing(){let e=NN(this.container);if(e){if(this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),tj.addEventListener(`resize`,this.resizeWindowCallback),this.shouldCreateResizeCallback){let e=tj.getVisualViewport();e.addEventListener(`resize`,this.visualViewportChangedCallback),e.addEventListener(`scroll`,this.visualViewportChangedCallback),this.container&&(this.container.addEventListener(`touchstart`,this.touchStartEventCallback),this.container.addEventListener(`touchmove`,this.touchMoveEventCallback)),this.visualViewportChangedCallback()}tj.addEventListener(`scroll`,this.scrollEventCallBack),this._isPositionSetValue=!0}}get shouldCreateResizeCallback(){return!!tj.getVisualViewport()&&this.isOverlay}updatePosition(e,t=!0){e&&(this.height=`auto`),t?setTimeout(()=>{this._updatePosition()},1):this._updatePosition()}updateOnHiding(){if(super.updateOnHiding(),tj.removeEventListener(`resize`,this.resizeWindowCallback),this.shouldCreateResizeCallback){let e=tj.getVisualViewport();e.removeEventListener(`resize`,this.visualViewportChangedCallback),e.removeEventListener(`scroll`,this.visualViewportChangedCallback),this.container&&(this.container.removeEventListener(`touchstart`,this.touchStartEventCallback),this.container.removeEventListener(`touchmove`,this.touchMoveEventCallback))}tj.removeEventListener(`scroll`,this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)}onModelChanging(e){this.model&&this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler||(this.recalculatePositionHandler=(e,t)=>{this.isOverlay||this.updatePosition(t.isResetHeight)}),super.onModelChanging(e),e.onRecalculatePosition.add(this.recalculatePositionHandler)}dispose(){super.dispose(),this.updateOnHiding(),this.model&&(this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler=void 0),this.resetComponentElement()}};XR.tabletSizeBreakpoint=600,q([Y({defaultValue:`left`})],XR.prototype,`popupDirection`,void 0),q([Y({defaultValue:{left:`0px`,top:`0px`}}
87)],XR.prototype,`pointerTarget`,void 0);var ZR=class extends qR{getStyleClass(){let e=this.model.getDisplayMode();return super.getStyleClass().append(`sv-popup--modal-popup`,e===`modal-popup`).append(`sv-popup--modal-overlay`,e===`modal-overlay`)}getShowFooter(){return!0}createFooterActionBar(){super.createFooterActionBar(),this.footerToolbar.setCssClasses({root:TN.root,defaultSizeMode:TN.defaultSizeMode,smallSizeMode:TN.smallSizeMode,item:`sv-popup__body-footer-item sv-popup__button sv-modal-popup__button sd-btn sd-btn--small`},!1),this.footerToolbar.containerCss=`sv-modal-footer-action-bar`;let e=[{id:`cancel`,visibleIndex:10,title:this.cancelButtonText,innerCss:`sv-popup__button--cancel`,action:()=>{this.cancel()}},{id:`apply`,visibleIndex:20,title:this.applyButtonText,innerCss:`sv-popup__button--apply sd-btn--action`,action:()=>{this.apply()}}];e=this.model.updateFooterActions(e),this.footerToolbarValue.setItems(e)}constructor(e){super(e),this.onScrollOutsideCallback=e=>{this.preventScrollOuside(e,e.deltaY)}}get applyButtonText(){return this.getLocalizationString(`modalApplyButtonText`)}apply(){this.model.onApply&&!this.model.onApply()||this.hidePopup()}clickOutside(){}onKeyDown(e){(e.key===`Escape`||e.keyCode===27)&&this.model.onCancel(),super.onKeyDown(e)}updateOnShowing(){this.container&&this.container.addEventListener(`wheel`,this.onScrollOutsideCallback,{passive:!1}),super.updateOnShowing()}updateOnHiding(){this.container&&this.container.removeEventListener(`wheel`,this.onScrollOutsideCallback),super.updateOnHiding()}};function QR(e,t){let n=Object.assign({},e);n.verticalPosition=`top`,n.horizontalPosition=`left`,n.showPointer=!1,n.isModal=!0,n.displayMode=e.displayMode||`popup`;let r=new lP(e.componentName,e.data,n);r.isFocusedContent=e.isFocusedContent??!0,r.showCloseButton=!!e.showCloseButton;let i=new ZR(r);if(t&&t.appendChild){var a=nj.createElement(`div`);t.appendChild(a),i.setComponentElement(a)}i.container||i.initializePopupContainer();let o=(e,t)=>{t.isVisible||a&&i.resetComponentElement(),i.onVisibilityChanged.remove(o)};return i.onVisibilityChanged.add(o),i}function $R(e){return e.isModal?new ZR(e):new XR(e)}var ez=class{constructor(){this.modals=[]}onModalsChanged(e=[],t=[]){this.onModalsChangedCallback&&this.onModalsChangedCallback(this.modals,e,t)}addModal(e){let t=(n,r)=>{if(!r.isVisible){let n=this.modals.indexOf(e);n>=0&&this.modals.splice(n,1),e.onVisibilityChanged.remove(t),this.onModalsChanged(void 0,[e]),e.dispose()}};e.onVisibilityChanged.add(t),this.modals.push(e),this.onModalsChanged([e]),e.model.isVisible=!0}addDialog(e,t){let n=QR(e,t);return this.addModal(n),n}getModals(){return this.modals}clear(){let e=this.modals;this.modals=[],this.onModalsChanged(void 0,e);for(let t of e)t.dispose()}},tz=class extends WI{getBaseType(){return`buttongroupitemvalue`}};q([Y()],tz.prototype,`iconName`,void 0),q([Y()],tz.prototype,`iconSize`,void 0),q([Y()],tz.prototype,`showCaption`,void 0);var nz=class extends KI{constructor(){super(...arguments),this._allowClear=!0}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),[`value`,`renderAs`,`placeholder`,`choices`,`visibleChoices`].indexOf(e)>-1&&this.resetReadOnlyText()}locStrsChanged(){var e;super.locStrsChanged(),this.resetReadOnlyText(),(e=this.dropdownListModelValue)==null||e.locStrsChanged()}getType(){return`buttongroup`}getItemValueType(){return`buttongroupitemvalue`}supportOther(){return!1}getControlClass(){return this.isEmpty(),new X().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()}getFirstInputElementId(){return this.inputId+`_0`}getInputId(e){return this.inputId+`_`+e}get allowClear(){return this._allowClear}set allowClear(e){this._allowClear=e}get searchEnabled(){return!1}isItemSelected(e){return e.value==this.value}get readOnlyText(){return this.locReadOnlyText.calculatedText}get locReadOnlyText(){return this.getOrCreateLocStr(`readOnlyText`,!0,!1,e=>{e.onGetTextCallback=()=>this.displayValue||this.placeholder})}resetReadOnlyText(){this.resetPropertyValue(`readOnlyText`)}get showSelectedItemLocText(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText}get selectedItemLocText(){var e;return(e=this.selectedItem)==null?void 0:e.locText}set dropdownListModel(e){this.dropdownListModelValue=e,this.updateElementCss()}get dropdownListModel(){return this.renderAs===`dropdown`&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue}
87get selectedItem(){return this.getSingleSelectedItem()}onBlurCore(e){var t;(t=this.dropdownListModel)==null||t.onBlur(e),super.onBlurCore(e)}updateCssClasses(e,t){super.updateCssClasses(e,t),qN(e,t)}calcCssClasses(e){let t=super.calcCssClasses(e);return this.dropdownListModelValue&&this.dropdownListModelValue.updateCssClasses(t.popup,t.list),t}needResponsiveWidth(){return!0}supportResponsiveness(){return!0}getCompactRenderAs(){return`dropdown`}getObservedElementSelector(){return`.sd-button-group-scrollable-container`}onBeforeSetCompactRenderer(){!this.isDisposed&&!this.dropdownListModelValue&&(this.dropdownListModelValue=new QI(this))}dispose(){super.dispose(),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)}};q([Y({localizable:{defaultStr:`buttongroupOptionsCaption`}})],nz.prototype,`placeholder`,void 0),q([Y({defaultValue:!1})],nz.prototype,`inputHasValue`,void 0),J.addClass(`buttongroup`,[{name:`choices:buttongroupitemvalue[]`}],function(){return new nz(``)},`checkboxbase`),J.addClass(`buttongroupitemvalue`,[{name:`showCaption:boolean`,default:!0},{name:`iconName:text`},{name:`iconSize:number`}],e=>new tz(e),`choiceitem`);var rz=class{constructor(e,t,n){this.question=e,this.item=t,this.index=n}get value(){return this.item.value}get iconName(){return this.item.iconName}get iconSize(){return this.item.iconSize||24}get caption(){return this.item.locText}get showCaption(){return this.item.showCaption||this.item.showCaption===void 0}get isRequired(){return this.question.isRequired}get selected(){return this.question.isItemSelected(this.item)}get readOnly(){return this.question.isInputReadOnly||!this.item.isEnabled}get name(){return this.question.name+`_`+this.question.id}get id(){return this.question.inputId+`_`+this.index}get hasErrors(){return this.question.errors.length>0}get describedBy(){return this.question.errors.length>0?this.question.id+`_errors`:null}get labelClass(){return new X().append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()}get css(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}}onChange(){this.question.selectItem(this.item)}},iz={changecamera:`flip-24x24`,clear:`clear-24x24`,cancel:`cancel-24x24`,closecamera:`close-24x24`,defaultfile:`file-72x72`,choosefile:`folder-24x24`,file:`toolbox-file-24x24`,left:`chevronleft-16x16`,modernbooleancheckchecked:`plus-32x32`,modernbooleancheckunchecked:`minus-32x32`,more:`more-24x24`,navmenu_24x24:`navmenu-24x24`,removefile:`error-24x24`,takepicture:`camera-32x32`,takepicture_24x24:`camera-24x24`,v2check:`check-16x16`,checked:`check-16x16`,v2check_24x24:`check-24x24`,"back-to-panel_16x16":`restoredown-16x16`,clear_16x16:`clear-16x16`,close_16x16:`close-16x16`,collapsedetail:`collapsedetails-16x16`,expanddetail:`expanddetails-16x16`,"full-screen_16x16":`maximize-16x16`,loading:`loading-48x48`,minimize_16x16:`minimize-16x16`,next_16x16:`chevronright-16x16`,previous_16x16:`chevronleft-16x16`,"no-image":`noimage-48x48`,"ranking-dash":`rankingundefined-16x16`,"drag-n-drop":`drag-24x24`,"ranking-arrows":`reorder-24x24`,restore_16x16:`fullsize-16x16`,reset:`restore-24x24`,search:`search-24x24`,average:`smiley-rate5-24x24`,excellent:`smiley-rate9-24x24`,good:`smiley-rate7-24x24`,normal:`smiley-rate6-24x24`,"not-good":`smiley-rate4-24x24`,perfect:`smiley-rate10-24x24`,poor:`smiley-rate3-24x24`,terrible:`smiley-rate1-24x24`,"very-good":`smiley-rate8-24x24`,"very-poor":`smiley-rate2-24x24`,add_16x16:`add-16x16`,add_24x24:`add-24x24`,alert_24x24:`warning-24x24`,apply:`apply-24x24`,"arrow-down":`arrowdown-24x24`,"arrow-left":`arrowleft-24x24`,"arrow-left_16x16":`arrowleft-16x16`,arrowleft:`arrowleft-16x16`,"arrow-right":`arrowright-24x24`,"arrow-right_16x16":`arrowright-16x16`,arrowright:`arrowright-16x16`,"arrow-up":`arrowup-24x24`,boolean:`toolbox-boolean-24x24`,"change-question-type_16x16":`speechbubble-16x16`,checkbox:`toolbox-checkbox-24x24`,"collapse-detail_16x16":`minusbox-16x16`,"collapse-panel":`collapse-pg-24x24`,collapse_16x16:`collapse-16x16`,"color-picker":`dropper-16x16`,comment:`toolbox-longtext-24x24`,config:`wrench-24x24`,copy:`copy-24x24`,default:`toolbox-customquestion-24x24`,delete_16x16:`delete-16x16`,delete_24x24:`delete-24x24`,delete:`delete-24x24`,"description-hide":`hidehint-16x16`,description:`hint-16x16`,"device-desktop":`desktop-24x24`,"device-phone":`phone-24x24`,"device-rotate":`rotate-24x24`,"device-tablet":`tablet-24x24`,download:`download-24x24`,"drag-area-indicator":`drag-24x24`,"drag-area-indicator_24x16":`draghorizontal-24x16`,v2dragelement_16x16:`draghorizontal-24x16`,"drop-down-arrow":`chevrondown-24x24`,"drop-down-arrow_16x16":`chevrondown-16x16`,chevron_16x16:`chevrondown-16x16`,dropdown:`toolbox-dropdown-24x24`,duplicate_16x16:`copy-16x16`,edit:`edit-24x24`,edit_16x16:`edit-16x16`,"editing-finish":`finishedit-24x24`,error:`error-16x16`,"expand-detail_16x16":`plusbox-16x16`,"expand-panel":`expand-pg-24x24`,expand_16x16:`expand-16x16`,expression:`toolbox-expression-24x24`,"fast-entry":`textedit-24x24`,fix:`fix-24x24`,html:`toolbox-html-24x24`,image:`toolbox-image-24x24`,imagepicker:`toolbox-imagepicker-24x24`,import:`import-24x24`,"invisible-items":`invisible-24x24`,language:`language-24x24`,load:`import-24x24`,"logic-collapse":`collapse-24x24`,"logic-expand":`expand-24x24`,logo:`image-48x48`,matrix:`toolbox-matrix-24x24`,matrixdropdown:`toolbox-multimatrix-24x24`,matrixdynamic:`toolbox-dynamicmatrix-24x24`,multipletext:`toolbox-multipletext-24x24`,panel:`toolbox-panel-24x24`,paneldynamic:`toolbox-dynamicpanel-24x24`,preview:`preview-24x24`,radiogroup:`toolbox-radiogroup-24x24`,ranking:`toolbox-ranking-24x24`,rating:`toolbox-rating-24x24`,slider:`toolbox-slider-24x24`,redo:`redo-24x24`,remove_16x16:`remove-16x16`,required:`required-16x16`,save:`save-24x24`,"select-page":`selectpage-24x24`,settings:`settings-24x24`,settings_16x16:`settings-16x16`,signaturepad:`toolbox-signature-24x24`,"switch-active_16x16":`switchon-16x16`,"switch-inactive_16x16":`switchoff-16x16`,tagbox:`toolbox-tagbox-24x24`,text:`toolbox-singleline-24x24`,theme:`theme-24x24`,toolbox:`toolbox-24x24`,undo:`undo-24x24`,visible:`visible-24x24`,wizard:`wand-24x24`,searchclear:`clear-16x16`,"chevron-16x16":`chevrondown-16x16`,chevron:`chevrondown-24x24`,progressbuttonv2:`arrowleft-16x16`,right:`chevronright-16x16`,"add-lg":`add-24x24`,add:`add-24x24`};function az(e){let t=`icon-`,n=e.replace(t,``);return t+(iz[n]||n)}function oz(e){let t=G.customIcons[e];return t?az(t):(e=az(e),t=G.customIcons[e],t||null)}function sz(e,t,n,r,i,a){if(!i)return;e!==`auto`&&(i.style.width=(e||t||16)+`px`,i.style.height=(e||n||16)+`px`);let o=i.childNodes[0],s=cz(r);o.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,`#`+s);let c=i.getElementsByTagName(`title`)[0];if(a)c||(c=nj.getDocument().createElementNS(`http://www.w3.org/2000/svg`,`title`),i.appendChild(c));else{c&&i.removeChild(c);return}c.textContent=a}function cz(e){return oz(e)||az(e)}var lz=class extends qM{getSurvey(e=!1){var t;return(t=this.owner)==null?void 0:t.getSurvey()}getType(){return`masksettings`}
87setData(e){J.getProperties(this.getType()).forEach(t=>{let n=e[t.name];this[t.name]=n===void 0?t.getDefaultValue(this):n})}getData(){let e={};return J.getProperties(this.getType()).forEach(t=>{let n=this[t.name];t.isDefaultValue(n)||(e[t.name]=n)}),e}processInput(e){return{value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1}}getUnmaskedValue(e){return e}getMaskedValue(e){return e}getMaskedValueBySaveMode(e){return this.saveMaskedValue?e:this.getMaskedValue(e)}getTextAlignment(){return`auto`}getTypeForExpressions(){return`text`}};q([Y()],lz.prototype,`saveMaskedValue`,void 0),J.addClass(`masksettings`,[{name:`saveMaskedValue:boolean`,visibleIf:function(e){return e?e.getType()!==`masksettings`:!1}}],function(){return new lz});function uz(e){let t=G.maskSettings.patternDefinitions;for(let n in t)if(e.match(t[n]))return!0;return!1}function dz(e){return uz(e)?`fixed`:`const`}function fz(e){let t=[],n=!1,r=Object.keys(G.maskSettings.patternDefinitions);for(let i=0;i<e.length;i++){let a=e[i];if(a===G.maskSettings.patternEscapeChar)n=!0;else if(n)n=!1,t.push({type:`fixed`,value:a});else{let e=r.indexOf(a)===-1?dz(a):`regex`;t.push({type:e,value:a})}}return t}function pz(e,t,n){let r=G.maskSettings.patternDefinitions[n.value];for(;t<e.length;){if(e[t].match(r))return t;t++}return t}function mz(e,t,n){let r=e??``,i=``,a=0,o=typeof t==`string`?fz(t):t;for(let e=0;e<o.length;e++)switch(o[e].type){case`regex`:if(a<r.length&&(a=pz(r,a,o[e])),a<r.length)i+=r[a];else if(n)i+=G.maskSettings.patternPlaceholderChar;else return i;a++;break;case`const`:case`fixed`:i+=o[e].value,o[e].value===r[a]&&a++}return i}function hz(e,t,n,r=!1){let i=``;if(!e)return i;let a=typeof t==`string`?fz(t):t;for(let t=0;t<a.length;t++)if(a[t].type===`fixed`&&!r&&(i+=a[t].value),a[t].type===`regex`){let r=G.maskSettings.patternDefinitions[a[t].value];if(e[t]&&e[t].match(r))i+=e[t];else if(n){i=``;break}else break}return i}var gz=class extends lz{constructor(){super(...arguments),this.literals=[]}updateLiterals(){this.literals=fz(this.pattern||``)}onPropertyValueChanged(e,t,n){super.onPropertyValueChanged(e,t,n),e===`pattern`&&this.updateLiterals()}getType(){return`patternmask`}fromJSON(e,t){super.fromJSON(e,t),this.updateLiterals()}_getMaskedValue(e,t=!1){return mz(e??``,this.literals,t)}_getUnmaskedValue(e,t=!1){return hz(e??``,this.literals,t)}processInput(e){let t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1};if(!e.insertedChars&&e.selectionStart===e.selectionEnd)return t;let n=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||``),r=hz(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),i=hz(e.prevValue.slice(e.selectionEnd),this.literals.slice(e.selectionEnd),!1,!0);return t.value=this._getMaskedValue(r+(e.insertedChars||``)+i,!0),t.caretPosition=!e.insertedChars&&e.inputDirection===`backward`?e.selectionStart:this._getMaskedValue(n).length,t}getMaskedValue(e){return this._getMaskedValue(e,!0)}getUnmaskedValue(e){return this._getUnmaskedValue(e,!0)}};q([Y()],gz.prototype,`pattern`,void 0),J.addClass(`patternmask`,[{name:`pattern`}],function(){return new gz},`masksettings`);function _z(e,t=!0,n=3){let r=[];if(t){for(let t=e.length-n;t>-n;t-=n)r.push(e.substring(t,t+n));r=r.reverse()}else for(let t=0;t<e.length;t+=n)r.push(e.substring(t,t+n));return r}var vz=class extends lz{calccaretPosition(e,t,n){let r=e?this.displayNumber(this.parseNumber(e),!1).length:0,i=0,a=t.selectionStart,o=!t.insertedChars&&t.inputDirection===`forward`;for(let e=0;e<n.length;e++)if(n[e]!==this.thousandsSeparator&&i++,i===r+ +!!o){a=o?e:e+1;break}return a}numericalCompositionIsEmpty(e){return!e.integralPart&&!e.fractionalPart}displayNumber(e,t=!0,n=!1){let r=e.integralPart;t&&r&&this.thousandsSeparator&&(r=_z(r).join(this.thousandsSeparator));let i=e.fractionalPart,a=e.isNegative?`-`:``;if(i===``){if(n)return!r||r===`0`?r:a+r;{let t=e.hasDecimalSeparator&&!n?this.decimalSeparator:``,i=r+t;return i===`0`?i:a+i}}return r=r||`0`,i=i.substring(0,this.precision),[a+r,i].join(this.decimalSeparator)}convertNumber(e){let t,n=e.isNegative?`-`:``;return t=e.fractionalPart?parseFloat(n+(e.integralPart||`0`)+`.`+e.fractionalPart.substring(0,this.precision)):parseInt(n+e.integralPart||`0`),t}validateNumber(e,t){let n=this.min||-(2**53-1),r=this.max||2**53-1;if(this.numericalCompositionIsEmpty(e))return!0;
87if(this.min!==void 0||this.max!==void 0){let i=this.convertNumber(e);if(Number.isNaN(i)||i>=n&&i<=r)return!0;if(!t){if(!e.hasDecimalSeparator&&i!=0){let e=i,t=i;if(i>0){if(i+1>n&&i<=r)return!0;for(;e=e*10+9,t*=10,!(t>r);)if(e>n)return!0;return!1}if(i<0){if(i>=n&&i-1<r)return!0;for(;e*=10,t=t*10-9,!(e<n);)if(t<r)return!0;return!1}}else{let t=.1**(e.fractionalPart||``).length;if(i>=0)return i+t>n&&i<=r;if(i<0)return i>=n&&i-t<r}return i>=0&&i<=r||i<0&&i>=n}return!1}return!0}parseNumber(e){let t={integralPart:``,fractionalPart:``,hasDecimalSeparator:!1,isNegative:!1},n=e==null?``:e.toString(),r=0;for(let e=0;e<n.length;e++){let i=n[e];switch(i){case`-`:this.allowNegativeValues&&(this.min===void 0||this.min<0)&&r++;break;case this.decimalSeparator:this.precision>0&&(t.hasDecimalSeparator=!0);break;case this.thousandsSeparator:break;default:i.match(dL)&&(t.hasDecimalSeparator?t.fractionalPart+=i:t.integralPart+=i)}}return t.isNegative=r%2!=0,t.integralPart.length>1&&t.integralPart[0]===`0`&&(t.integralPart=t.integralPart.slice(1)),t}getNumberMaskedValue(e,t=!1){let n=this.parseNumber(e);return this.validateNumber(n,t)?this.displayNumber(n,!0,t):null}getNumberUnmaskedValue(e){let t=this.parseNumber(e);if(!this.numericalCompositionIsEmpty(t))return this.convertNumber(t)}getTextAlignment(){return`right`}getMaskedValue(e){let t=e==null?``:e.toString();return t=t.replace(`.`,this.decimalSeparator),this.getNumberMaskedValue(t,!0)}getUnmaskedValue(e){return this.getNumberUnmaskedValue(e)}processInput(e){let t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},n=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||``),r=n+e.prevValue.slice(e.selectionEnd),i=this.parseNumber(r);if(!this.validateNumber(i,!1))return t;let a=this.getNumberMaskedValue(r),o=this.calccaretPosition(n,e,a);return t.value=a,t.caretPosition=o,t}getType(){return`numericmask`}};q([Y()],vz.prototype,`allowNegativeValues`,void 0),q([Y()],vz.prototype,`decimalSeparator`,void 0),q([Y()],vz.prototype,`precision`,void 0),q([Y()],vz.prototype,`thousandsSeparator`,void 0),q([Y()],vz.prototype,`min`,void 0),q([Y()],vz.prototype,`max`,void 0),J.addClass(`numericmask`,[{name:`allowNegativeValues:boolean`,default:!0},{name:`decimalSeparator`,default:`.`,maxLength:1},{name:`thousandsSeparator`,default:`,`,maxLength:1},{name:`precision:number`,default:2,minValue:0},{name:`min:number`},{name:`max:number`}],function(){return new vz},`masksettings`);function yz(e,t){switch(e){case`hour`:case`minute`:case`second`:case`day`:case`month`:return 2;case`timeMarker`:case`year`:return t;default:return 1}}function bz(e,t){let n=t;return e.count<e.maxCount&&(e.type===`day`&&parseInt(t[0])===0||e.type===`month`&&parseInt(t[0])===0)&&(n=t.slice(1,t.length)),n}function xz(e){let t=[],n,r=(e,r,i=!1)=>
87{if(n&&n===e){t[t.length-1].count++;let n=yz(e,t[t.length-1].count);t[t.length-1].maxCount=n}else{let n=yz(e,1);t.push({type:e,value:r,count:1,maxCount:n,upperCase:i})}};for(let i=0;i<e.length;i++){let a=e[i];switch(a){case`m`:r(`month`,a);break;case`d`:r(`day`,a);break;case`y`:r(`year`,a);break;case`h`:r(`hour`,a,!1);break;case`H`:r(`hour`,a,!0);break;case`M`:r(`minute`,a);break;case`s`:r(`second`,a);break;case`t`:r(`timeMarker`,a);break;case`T`:r(`timeMarker`,a,!0);break;default:t.push({type:`separator`,value:a,count:1,maxCount:1,upperCase:!1})}n=t[t.length-1].type}return t}var Sz=class extends gz{constructor(){super(...arguments),this.defaultDate=`1970-01-01T`,this.turnOfTheCentury=68,this.twelve=12,this.lexems=[],this.inputDateTimeData=[],this.validBeginningOfNumbers={hour:1,hourU:2,minute:5,second:5,day:3,month:1}}get hasDatePart(){return this.lexems.some(e=>e.type===`day`||e.type===`month`||e.type===`year`)}get hasTimePart(){return this.lexems.some(e=>e.type===`hour`||e.type===`minute`||e.type===`second`)}get hasSeconds(){return this.lexems.some(e=>e.type===`second`)}get is12Hours(){return this.lexems.filter(e=>e.type===`hour`&&!e.upperCase).length>0}getType(){return`datetimemask`}getTypeForExpressions(){return this.hasTimePart&&this.hasSeconds?`datetime-seconds`:this.hasTimePart?`datetime-local`:`datetime`}updateLiterals(){this.lexems=xz(this.pattern||``)}leaveOnlyNumbers(e){let t=``;for(let n=0;n<e.length;n++)e[n].match(dL)&&(t+=e[n]);return t}getMaskedStrFromISO(e){let t=new Date(e);return this.initInputDateTimeData(),this.hasTimePart||(t=new Date(e+`T00:00:00`)),this.hasDatePart||(t=new Date(this.defaultDate+e)),isNaN(t)||this.lexems.forEach((e,n)=>{let r=this.inputDateTimeData[n];switch(r.isCompleted=!0,e.type){case`hour`:r.value=this.is12Hours?((t.getHours()-1)%this.twelve+1).toString():t.getHours().toString();break;case`minute`:r.value=t.getMinutes().toString();break;case`second`:r.value=t.getSeconds().toString();break;case`timeMarker`:{let n=t.getHours()>=this.twelve?`pm`:`am`;r.value=e.upperCase?n.toUpperCase():n;break}case`day`:r.value=t.getDate().toString();break;case`month`:r.value=(t.getMonth()+1).toString();break;case`year`:{let n=t.getFullYear();e.count==2&&(n%=100),r.value=n.toString();break}}}),this.getFormatedString(!0)}initInputDateTimeData(){this.inputDateTimeData=[],this.lexems.forEach(e=>{this.inputDateTimeData.push({lexem:e,isCompleted:!1,value:void 0})})}getISO_8601Format(e){let t=[],n=[];if(e.year!==void 0){let n=this.getPlaceholder(4,e.year.toString(),`0`)+e.year;t.push(n)}if(e.month!==void 0&&e.year!==void 0){let n=this.getPlaceholder(2,e.month.toString(),`0`)+e.month;t.push(n)}if(e.day!==void 0&&e.month!==void 0&&e.year!==void 0){let n=this.getPlaceholder(2,e.day.toString(),`0`)+e.day;t.push(n)}if(e.hour!==void 0){let t=this.getPlaceholder(2,e.hour.toString(),`0`)+e.hour;n.push(t)}if(e.minute!==void 0&&e.hour!==void 0){let t=this.getPlaceholder(2,e.minute.toString(),`0`)+e.minute;n.push(t)}if(e.second!==void 0&&e.minute!==void 0&&e.hour!==void 0){let t=this.getPlaceholder(2,e.second.toString(),`0`)+e.second;n.push(t)}let r=[];return t.length>0&&r.push(t.join(`-`)),n.length>1&&r.push(n.join(`:`)),r.join(`T`)}isYearValid(e){if(e.min===void 0&&e.max===void 0)return!1;let t=e.year.toString(),n=e.min.toISOString().slice(0,t.length),r=e.max.toISOString().slice(0,t.length);return e.year>=parseInt(n)&&e.year<=parseInt(r)}createIDateTimeCompositionWithDefaults(e,t){let n=e.day==29&&e.month==2,r=e.min.getFullYear(),i=e.max.getFullYear();n&&(r=Math.ceil(r/4)*4,i=Math.floor(i/4)*4,r>i&&(r=void 0,i=void 0));let a=e.year===void 0?t?i:r:e.year,o=e.month===void 0?t&&this.hasDatePart?12:1:e.month;return{year:a,month:o,day:e.day===void 0?t&&this.hasDatePart?this.getMaxDateForMonth(a,o):1:e.day,hour:e.hour===void 0?t?23:0:e.hour,minute:e.minute===void 0?t?59:0:e.minute,second:e.second===void 0?t?59:0:e.second}}getMaxDateForMonth(e,t){return t==2?e%4==0&&e%100!=0||e%400==0?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][t-1]}isDateValid(e){let t=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!1))),n=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!0))
87);return!isNaN(t)&&(t.getDate()===e.day||e.day===void 0)&&(t.getMonth()===e.month-1||e.month===void 0)&&(t.getFullYear()===e.year||e.year===void 0)&&n>=e.min&&t<=e.max}getPlaceholder(e,t,n){let r=e-(t||``).length;return r>0?n.repeat(r):``}isDateValid12(e){return this.is12Hours?this.is12Hours&&e.hour>this.twelve?!1:e.timeMarker?e.timeMarker[0].toLowerCase()===`p`?(e.hour!==this.twelve&&(e.hour+=this.twelve),this.isDateValid(e)):(e.hour===this.twelve&&(e.hour=0),this.isDateValid(e)):this.isDateValid(e)?!0:(e.hour+=this.twelve,this.isDateValid(e)):this.isDateValid(e)}updateTimeMarkerInputDateTimeData(e,t){let n=e.value;if(!n)return;let r=`timeMarker`,i=Object.assign({},t);i[r]=n,this.isDateValid12(i)?e.isCompleted=!0:n=n.slice(0,n.length-1),e.value=n||void 0,t[r]=n||void 0}updateInputDateTimeData(e,t){let n=e.value;if(!n)return;let r=e.lexem.type,i=Object.assign({},t);if(i[r]=parseInt(this.parseTwoDigitYear(e)),n.length===e.lexem.maxCount){if(this.isDateValid12(i)){e.isCompleted=!0,e.value=n||void 0,t[r]=parseInt(n)>0?parseInt(n):void 0;return}n=n.slice(0,n.length-1)}i[r]=parseInt(n);let a=parseInt(n[0]),o=this.validBeginningOfNumbers[r+(e.lexem.upperCase?`U`:``)];r===`year`&&!this.isYearValid(i)?(n=n.slice(0,n.length-1),e.isCompleted=!1):o!==void 0&&a>o?this.isDateValid12(i)?e.isCompleted=!0:n=n.slice(0,n.length-1):o!==void 0&&a!==0&&a<=o&&(this.checkValidationDateTimePart(i,r,e),e.isCompleted&&!this.isDateValid12(i)&&(n=n.slice(0,n.length-1))),e.value=n||void 0,t[r]=parseInt(n)>0?parseInt(n):void 0}checkValidationDateTimePart(e,t,n){let r=e[t],i=r*10,a=10;t===`month`&&(a=3),t===`hour`&&(a=this.is12Hours?3:5),n.isCompleted=!0;for(let r=0;r<a;r++)if(e[t]=i+r,this.isDateValid12(e)){n.isCompleted=!1;break}e[t]=r}getCorrectDatePartFormat(e,t){let n=e.lexem,r=e.value||``;return r&&n.type===`timeMarker`?(t&&(r+=this.getPlaceholder(n.count,r,n.value)),r):(r&&e.isCompleted&&(r=parseInt(r).toString()),r&&e.isCompleted?r=this.getPlaceholder(n.count,r,`0`)+r:(r=bz(n,r),t&&(r+=this.getPlaceholder(n.count,r,n.value))),r)}createIDateTimeComposition(){let e,t;return this.hasDatePart?(e=this.min||`0001-01-01`,t=this.max||`9996-12-31`):(e=this.defaultDate+(this.min||`00:00:00`),t=this.defaultDate+(this.max||`23:59:59`)),{hour:void 0,minute:void 0,second:void 0,day:void 0,month:void 0,year:void 0,min:new Date(e),max:new Date(t)}}parseTwoDigitYear(e){let t=e.value;return e.lexem.type!==`year`||e.lexem.count>2?t:(this.max&&this.max.length>=4&&(this.turnOfTheCentury=parseInt(this.max.slice(2,4))),(parseInt(t)>this.turnOfTheCentury?`19`:`20`)+t)}getFormatedString(e){let t=``,n=``,r=!1,i=this.inputDateTimeData.length-1;if(!e){let e=this.inputDateTimeData.filter(e=>!!e.value);i=this.inputDateTimeData.indexOf(e[e.length-1])}for(let a=0;a<this.inputDateTimeData.length;a++){let o=this.inputDateTimeData[a];switch(o.lexem.type){case`timeMarker`:case`hour`:case`minute`:case`second`:case`day`:case`month`:case`year`:if(o.value===void 0&&!e)return t+=r?n:``,t;{let s=e||i>a,c=this.getCorrectDatePartFormat(o,s);t+=n+c,r=o.isCompleted}break;case`separator`:n=o.lexem.value}}return t}cleanTimeMarker(e,t){let n=``;e=e.toUpperCase();for(let t=0;t<e.length;t++)(!n&&(e[t]==`P`||e[t]==`A`)||n&&e[t]==`M`)&&(n+=e[t]);return n=t?n.toUpperCase():n.toLowerCase(),n}setInputDateTimeData(e){let t=0;this.initInputDateTimeData(),this.lexems.forEach((n,r)=>{if(e.length>0&&t<e.length){if(n.type===`separator`)return;let i=this.inputDateTimeData[r],a=e[t],o;o=n.type===`timeMarker`?this.cleanTimeMarker(a,n.upperCase):this.leaveOnlyNumbers(a),i.value=o.slice(0,n.maxCount),t++}})}_getMaskedValue(e,t=!0){let n=e==null?``:e.toString(),r=this.getParts(n);this.setInputDateTimeData(r);let i=this.createIDateTimeComposition();return this.inputDateTimeData.forEach(e=>{e.lexem.type===`timeMarker`?this.updateTimeMarkerInputDateTimeData(e,i):this.updateInputDateTimeData(e,i)}),this.getFormatedString(t)}getParts(e){let t=[],n=this.lexems.filter(e=>e.type!==`separator`),r=this.lexems.filter(e=>e.type===`separator`).map(e=>e.value),i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e[s];if(c.match(dL)||c===n[t.length].value||n[t.length].type===`timeMarker`?(a=!1,o=!1,i+=c):r.indexOf(c)===-1?a||(o=!0,t.push(i),i=``):o||(a=!0,t.push(i),i=``),t.length>=n.length){a=!1;break}}return(i!=``||a)&&t.push(i),t}getUnmaskedValue(e){var t;let n=e==null?``:e.toString(),r=this.getParts(n);this.setInputDateTimeData(r);let i=(t=this.inputDateTimeData.filter(e=>e.lexem.type===`timeMarker`)[0])==null?void 0:t.value.toLowerCase()[0],a=this.createIDateTimeComposition(),o=!1;
87return this.inputDateTimeData.forEach(e=>{let t=e.value;if(e.lexem.type==`timeMarker`||e.lexem.type==`separator`)return;if(!t||t.length<e.lexem.count){o=!0;return}let n=parseInt(this.parseTwoDigitYear(e));e.lexem.type==`hour`&&i===`p`&&n!=this.twelve&&(n+=this.twelve),a[e.lexem.type]=n}),o?``:this.getISO_8601Format(a)}getMaskedValue(e){return this.getMaskedStrFromISO(e)}processInput(e){let t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},n=e.prevValue.slice(0,e.selectionStart),r=e.prevValue.slice(e.selectionEnd);return t.value=this._getMaskedValue(n+(e.insertedChars||``)+r),t.caretPosition=!e.insertedChars&&e.inputDirection===`backward`?e.selectionStart:this._getMaskedValue(n+(e.insertedChars||``),!1).length,t}};q([Y()],Sz.prototype,`min`,void 0),q([Y()],Sz.prototype,`max`,void 0),J.addClass(`datetimemask`,[{name:`min`,type:`datetime`,enableIf:e=>!!e.pattern},{name:`max`,type:`datetime`,enableIf:e=>!!e.pattern}],function(){return new Sz},`patternmask`);var Cz=class extends vz{getType(){return`currencymask`}wrapText(e){let t=this.prefix||``,n=this.suffix||``,r=e;return r&&(r.indexOf(t)===-1&&(r=t+r),r.indexOf(n)===-1&&(r+=n),r)}unwrapInputArgs(e){let t=e.prevValue;if(t){if(this.prefix&&t.indexOf(this.prefix)!==-1){t=t.slice(t.indexOf(this.prefix)+this.prefix.length);let n=(this.prefix||``).length;e.selectionStart=Math.max(e.selectionStart-n,0),e.selectionEnd-=n}this.suffix&&t.indexOf(this.suffix)!==-1&&(t=t.slice(0,t.indexOf(this.suffix))),e.prevValue=t}}processInput(e){this.unwrapInputArgs(e);let t=super.processInput(e),n=(this.prefix||``).length;return t.value&&(t.caretPosition+=n),t.value=this.wrapText(t.value),t}getMaskedValue(e){let t=super.getMaskedValue(e);return this.wrapText(t)}};q([Y()],Cz.prototype,`prefix`,void 0),q([Y()],Cz.prototype,`suffix`,void 0),J.addClass(`currencymask`,[{name:`prefix`},{name:`suffix`}],()=>new Cz,`numericmask`);var wz=`2.5.40`;G.version=wz;function Tz(e,t){if(wz!=e){let n=`survey-core has version '`+wz+`' and `+t+` has version '`+e+`'. SurveyJS libraries should have the same versions to work correctly.`;console.error(n)}}function Ez(e){return Dz(e)===!0}function Dz(e){return Oz[e.toString()]||!1}var Oz={},kz=new class{constructor(){this.icons={},this.iconPrefix=`icon-`,this.onIconsChanged=new vj}processId(e,t){return e.indexOf(t)==0&&(e=e.substring(t.length)),e=iz[e]||e,e}registerIconFromSymbol(e,t){this.icons[e]=t}registerIconFromSvgViaElement(e,t,n=this.iconPrefix){if(!nj.isAvailable())return;e=this.processId(e,n);let r=nj.createElement(`div`);r.innerHTML=t;let i=nj.createElement(`symbol`),a=r.querySelector(`svg`);i.innerHTML=a.innerHTML;for(var o=0;o<a.attributes.length;o++)i.setAttributeNS(`http://www.w3.org/2000/svg`,a.attributes[o].name,a.attributes[o].value);i.id=n+e,this.registerIconFromSymbol(e,i.outerHTML)}registerIconFromSvg(e,t,n=this.iconPrefix){e=this.processId(e,n),t=t.trim();let r=t.toLowerCase();return r.substring(0,5)===`<svg `&&r.substring(r.length-6,r.length)===`</svg>`&&(this.registerIconFromSymbol(e,`<symbol id="`+n+e+`" `+t.substring(5,r.length-6)+`</symbol>`),!0)}registerIconsFromFolder(e){e.keys().forEach(t=>{this.registerIconFromSvg(t.substring(2,t.length-4).toLowerCase(),e(t))})}registerIcons(e){for(let t in e)this.registerIconFromSvg(t,e[t]);this.updateMarkup()}registerIcon(e,t,n=`v2`){this.registerIconFromSvg(e,t),jz(n,{[e]:t})}iconsRenderedHtml(){return Object.keys(this.icons).map(e=>this.icons[e]).join(``)}updateMarkup(){this.onIconsChanged.fire(this,{})}},Az={};function jz(e,t){Az[e]||(Az[e]={});let n=Az[e];for(let e in t)n[e]=t[e]}var Mz=class{constructor(){this.creatorHash={}}registerElement(e,t){this.creatorHash[e]=t}getAllTypes(){var e=[];for(var t in this.creatorHash)e.push(t);return e.sort()}isElementRegistered(e){return!!this.creatorHash[e]}createElement(e,t){var n=this.creatorHash[e];return n==null?null:n(t)}};Mz.Instance=new Mz;var Nz=class{static wrapRow(e,t,n){let r=e.getRowWrapperComponentName(n),i=e.getRowWrapperComponentData(n);return Mz.Instance.createElement(r,{element:t,row:n,componentData:i})}static wrapElement(e,t,n){let r=e.getElementWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return Mz.Instance.createElement(r,{element:t,question:n,componentData:i})}static wrapQuestionContent(e,t,n){let r=e.getQuestionContentWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return Mz.Instance.createElement(r,{element:t,question:n,componentData:i})}
87static wrapItemValue(e,t,n,r){let i=e.getItemValueWrapperComponentName(r,n),a=e.getItemValueWrapperComponentData(r,n);return Mz.Instance.createElement(i,{key:t==null?void 0:t.key,element:t,question:n,item:r,componentData:a})}static wrapMatrixCell(e,t,n,r=`cell`){let i=e.getElementWrapperComponentName(n,r),a=e.getElementWrapperComponentData(n,r);return Mz.Instance.createElement(i,{element:t,cell:n,componentData:a})}};Z.platform=`react`;var Pz=class e extends g.Component{static renderLocString(e,t=null,n){return Mz.Instance.createElement(e.renderAs,{model:e.renderAsData,style:t,key:n})}static renderQuestionDescription(t){var n=e.renderLocString(t.locDescription);return g.createElement(`div`,{style:t.hasDescription?void 0:{display:`none`},id:t.ariaDescriptionId,className:t.cssDescription},n)}constructor(e){super(e),this._allowComponentUpdate=!0,this.prevStateElements=[],this.propertyValueChangedHandler=(e,t)=>{let n=t.name;!this.canUsePropInState(n)||this.isRendering||(this.changedStatePropNameValue=n,this.setState(e=>{var r={};return r[n]=t.newValue,r}))},this.onArrayChangedCallback=(e,t)=>{this.isRendering||(this.changedStatePropNameValue=t.name,this.setState(e=>{var n={};return n[t.name]=t.newValue,n}))}}componentDidMount(){this.makeBaseElementsReact()}componentWillUnmount(){this.unMakeBaseElementsReact(),this.disableStateElementsRerenderEvent(this.getStateElements())}componentDidUpdate(e,t){this.makeBaseElementsReact();let n=this.getStateElements();this.disableStateElementsRerenderEvent((this.prevStateElements??[]).filter(e=>!n.find(t=>t==e))),this.prevStateElements=[],this.getStateElements().forEach(e=>{e.afterRerender()})}allowComponentUpdate(){this._allowComponentUpdate=!0,this.forceUpdate()}denyComponentUpdate(){this._allowComponentUpdate=!1}shouldComponentUpdate(e,t){return this._allowComponentUpdate&&(this.unMakeBaseElementsReact(),this.prevStateElements=this.getStateElements()),this._allowComponentUpdate}render(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e}wrapElement(e){return e}get isRendering(){var e=this.getRenderedElements();for(let t of e)if(t.reactRendering>0)return!0;return!1}getRenderedElements(){return this.getStateElements()}startEndRendering(e){var t=this.getRenderedElements();for(let n of t)n.reactRendering||(n.reactRendering=0),n.reactRendering+=e}canRender(){return!0}renderElement(){return null}get changedStatePropName(){return this.changedStatePropNameValue}makeBaseElementsReact(){for(var e=this.getStateElements(),t=0;t<e.length;t++)e[t].enableOnElementRerenderedEvent(),this.makeBaseElementReact(e[t])}unMakeBaseElementsReact(){var e=this.getStateElements();this.unMakeBaseElementsReactive(e)}unMakeBaseElementsReactive(e){for(var t=0;t<e.length;t++)this.unMakeBaseElementReact(e[t])}disableStateElementsRerenderEvent(e){e.forEach(e=>{e.disableOnElementRerenderedEvent()})}getStateElements(){var e=this.getStateElement();return e?[e]:[]}getStateElement(){return null}get isDisplayMode(){return this.props.isDisplayMode||!1}renderLocString(t,n=null,r){return e.renderLocString(t,n,r)}canMakeReact(e){return!!e&&!!e.iteratePropertiesHash}makeBaseElementReact(e){this.canMakeReact(e)&&(e.addOnArrayChangedCallback(this.onArrayChangedCallback),e.addOnPropertyValueChangedCallback(this.propertyValueChangedHandler))}canUsePropInState(e){return!0}unMakeBaseElementReact(e){this.canMakeReact(e)&&(e.removeOnPropertyValueChangedCallback(this.propertyValueChangedHandler),e.removeOnArrayChangedCallback(this.onArrayChangedCallback))}},Fz=class extends Pz{constructor(e){super(e)}get cssClasses(){return this.props.cssClasses}},Iz=class extends Pz{constructor(e){super(e)}componentDidUpdate(e,t){super.componentDidUpdate(e,t),this.updateDomElement()}componentDidMount(){super.componentDidMount(),this.updateDomElement()}componentWillUnmount(){if(super.componentWillUnmount(),this.questionBase){let e=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(e),e&&e.removeAttribute(`data-rendered`)}}updateDomElement(){let e=this.content||this.control;e&&e.getAttribute(`data-rendered`)!==`r`&&(e.setAttribute(`data-rendered`,`r`),this.questionBase.afterRe
87nderQuestionElement(e))}get questionBase(){return this.props.question}getRenderedElements(){return[this.questionBase]}get creator(){return this.props.creator}canRender(){return!!this.questionBase&&!!this.creator}shouldComponentUpdate(e,t){return super.shouldComponentUpdate(e,t)?!this.questionBase.customWidget||!!this.questionBase.customWidgetData.isNeedRender||!!this.questionBase.customWidget.widgetJson.isDefaultRender||!!this.questionBase.customWidget.widgetJson.render:!1}get isDisplayMode(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1}wrapCell(e,t,n){if(!n)return t;let r=this.questionBase.survey,i=null;return r&&(i=Nz.wrapMatrixCell(r,t,e,n)),i??t}setControl(e){e&&(this.control=e)}setContent(e){e&&(this.content=e)}},Lz=class extends Iz{constructor(e){super(e),this.updateValueOnEvent=e=>{K.isTwoValueEquals(this.questionBase.value,e.target.value,!1,!0,!1)||this.setValueCore(e.target.value)},this.updateValueOnEvent=this.updateValueOnEvent.bind(this)}get question(){return this.questionBase}setValueCore(e){this.questionBase.value=e}getValueCore(){return this.questionBase.value}updateDomElement(){if(this.control){let e=this.control,t=this.getValueCore();K.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.getValue(t))}super.updateDomElement()}getValue(e){return K.isValueEmpty(e)?``:e}},Rz=class extends g.Component{constructor(e){super(e),this.svgIconRef=g.createRef()}updateSvg(){this.props.iconName&&sz(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)}componentDidUpdate(){this.updateSvg()}render(){let e=`sv-svg-icon`;return this.props.className&&(e+=` `+this.props.className),this.props.css&&(e=this.props.css),this.props.iconName?g.createElement(`svg`,{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:`presentation`},g.createElement(`use`,null)):null}componentDidMount(){this.updateSvg()}};Mz.Instance.registerElement(`sv-svg-icon`,e=>g.createElement(Rz,e));var zz=class extends g.Component{constructor(e){super(e)}render(){var e=`sv-action-bar-separator ${this.props.cssClasses}`;return g.createElement(`div`,{className:e})}};Mz.Instance.registerElement(`sv-action-bar-separator`,e=>g.createElement(zz,e));var Bz=class extends g.Component{constructor(e){super(e),this.onChangedHandler=(e,t)=>{this.isRendering||this.setState({changed:this.state&&this.state.changed?this.state.changed+1:1})},this.rootRef=g.createRef()}get locStr(){return this.props.model}get style(){return this.props.style}get textClass(){return this.props.textClass}componentDidMount(){this.reactOnStrChanged()}componentWillUnmount(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)}componentDidUpdate(e,t){e.model&&e.model.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()}reactOnStrChanged(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)}render(){if(!this.locStr)return null;this.isRendering=!0;let e=this.renderString();return this.isRendering=!1,e}renderString(){let e=this.locStr.getStringViewerClassName(this.textClass);if(this.locStr.hasHtml){let t={__html:this.locStr.renderedHtml};return g.createElement(`span`,{ref:this.rootRef,className:e,style:this.style,dangerouslySetInnerHTML:t})}return g.createElement(`span`,{ref:this.rootRef,className:e,style:this.style},this.locStr.renderedHtml)}};Mz.Instance.registerElement(yj.defaultRenderer,e=>g.createElement(Bz,e));var Vz=class extends Pz{constructor(e){super(e),this.ref=g.createRef()}get item(){return this.props.item}getStateElement(){return this.item}renderElement(){let e=this.item.getActionRootCss(),t=this.item.needSeparator?g.createElement(zz,null):null,n=Mz.Instance.createElement(this.item.component||`sv-action-bar-item`,{item:this.item});return g.createElement(`div`,{className:e,id:``+this.item.uniqueId,ref:this.ref},g.createElement(`div`,{className:`sv-action__content`},t,n))}componentWillUnmount(){super.componentWillUnmount(),this.item.updateModeCallback=void 0}componentDidMount(){super.componentDidMount(),this.item.updateModeCallback=(e,t)=>{queueMicrotask(()=>{ne.flushSync?ne.flushSync(()=>{this.item.mode=e}):this.item.mode=e,queueMicrotask(()=>{t(e,this.ref.current)})})}
87,this.item.afterRender()}},Hz=class extends Pz{get item(){return this.props.item}getStateElement(){return this.item}renderElement(){return g.createElement(g.Fragment,null,this.renderInnerButton())}renderText(){return this.item.hasTitle?g.createElement(Bz,{model:this.item.locTitle,textClass:this.item.getActionBarItemTitleCss()}):null}renderButtonContent(){let e=this.renderText(),t=this.item.iconName?g.createElement(Rz,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return g.createElement(g.Fragment,null,t,e)}renderInnerButton(){let e=this.item.getActionBarItemCss(),t=this.item.tooltip||this.item.title,n=this.renderButtonContent(),r=this.item.disableTabStop?-1:void 0;return cB(g.createElement(`button`,{className:e,type:`button`,disabled:this.item.disabled,onMouseDown:e=>this.item.doMouseDown(e),onFocus:e=>this.item.doFocus(e),onClick:e=>this.item.doAction(e),title:t,tabIndex:r,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,"aria-labelledby":this.item.ariaLabelledBy,role:this.item.ariaRole},n),this.item,{processEsc:!1})}};Mz.Instance.registerElement(`sv-action-bar-item`,e=>g.createElement(Hz,e));var Uz=class extends Pz{constructor(e){super(e),this.containerRef=g.createRef(),this.createModel()}get model(){return this.props.model}getStateElement(){return this.model}createModel(){this.popup=$R(this.props.model)}setTargetElement(){let e=this.containerRef.current;this.popup.setComponentElement(e)}componentDidMount(){super.componentDidMount(),this.setTargetElement()}componentDidUpdate(e,t){super.componentDidUpdate(e,t),this.setTargetElement()}componentWillUnmount(){super.componentWillUnmount(),this.popup.resetComponentElement()}shouldComponentUpdate(e,t){var n;if(!super.shouldComponentUpdate(e,t))return!1;let r=e.model!==this.popup.model;return r&&((n=this.popup)==null||n.dispose(),this.createModel()),r}render(){this.popup.model=this.model;let e;return e=this.model.isModal?g.createElement(Wz,{model:this.popup}):g.createElement(Gz,{model:this.popup}),g.createElement(`div`,{ref:this.containerRef},e)}};Mz.Instance.registerElement(`sv-popup`,e=>g.createElement(Uz,e));var Wz=class extends Pz{constructor(e){super(e),this.handleKeydown=e=>{this.model.onKeyDown(e)},this.clickInside=e=>{e.stopPropagation()}}get model(){return this.props.model}getStateElement(){return this.model}componentDidUpdate(e,t){super.componentDidUpdate(e,t),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()}renderContainer(e){let t=e.showHeader?this.renderHeaderPopup(e):null,n=e.title?this.renderHeaderContent():null,r=this.renderContent(),i=e.showFooter?this.renderFooter(this.model):null;return g.createElement(`div`,{className:`sv-popup__container`,style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:e=>{this.clickInside(e)}},t,g.createElement(`div`,{className:`sv-popup__body-content`},n,g.createElement(`div`,{className:`sv-popup__scrolling-content`},r),i))}renderHeaderContent(){return g.createElement(`div`,{className:`sv-popup__body-header`},this.model.title)}renderContent(){let e=Mz.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return g.createElement(`div`,{className:`sv-popup__content`},e)}renderHeaderPopup(e){return e.showCloseButton?g.createElement(`button`,{tabIndex:-1,className:`sv-popup__close-button sd-action sd-action--icon`,onClick:()=>this.model.clickClose()},g.createElement(Rz,{className:`sv-popup__close-button-icon`,iconName:`icon-close-24x24`,size:`auto`})):null}renderFooter(e){return g.createElement(`div`,{className:`sv-popup__body-footer`},g.createElement(qz,{model:e.footerToolbar}))}render(){let e=this.renderContainer(this.model),t=new X().append(`sv-popup`).append(this.model.styleClass).toString(),n={display:this.model.isVisible?``:`none`};return g.createElement(`div`,{tabIndex:-1,className:t,style:n,onClick:e=>{this.model.clickOutside(e)},onBlur:e=>{this.model.blur(e)},onKeyDown:this.handleKeydown},e)}componentDidMount(){super.componentDidMount(),this.model.isVisible&&this.model.updateOnShowing()}},Gz=class extends Wz{renderHeaderPopup(e){let t=e;return t?g.createElement(`span`,{style:{left:t.pointerTarget.left,top:t.pointerTarget.top},className:`sv-popup__pointer`}):null}},Kz=class extends Hz{constructor(e){super(e)}renderInnerButton(){let e=super.renderInnerButton();return g.createElement(g.Fragment,null,e,g.createElement(Uz,{model:this.item.popupModel}))}componentDidMount(){this.viewModel=new AN(this.item)}componentWillUnmount(){super.componentWillUnmount(),this.viewModel.dispose()}};Mz.Instance.registerElement(`sv-action-bar-item-dropdown`,e=>g.createElement(Kz,e));var qz=class extends Pz{constructor(e){super(e),this.rootRef=g.createRef()}get handleClick(){return this.props.handleClick===void 0||this.props.handleClick}get model(){return this.props.model}componentDidMount(){if(super.componentDidMount(),!this.model.hasVisibleActions)return;let e=this.rootRef.current;e&&this.model.initResponsivityManager(e,e=>{setTimeout(e,100)})}componentWillUnmount(){super.componentWillUnmount(),this.model.resetResponsivityManager()}componentDidUpdate(e,t){if(super.componentDidUpdate(e,t),e.model!=this.props.model&&e.model.resetResponsivityManager(),this.model.hasVisibleActions){let e=this.rootRef.current;e&&this.model.initResponsivityManager(e,e=>{setTimeout(e,100)})}}getStateElement(){return this.model}renderElement(){if(!this.model.hasActions)return null;let e=this.renderItems();return g.createElement(`div`,{ref:this.rootRef,style:this.model.getRootStyle(),className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)}renderItems(){return this.model.renderedActions.concat([]).map((e,t)=>g.createElement(Vz,{item:e,key:e.renderedId}))}};Mz.Instance.registerElement(`sv-action-bar`,e=>g.createElement(qz,e));var Jz=class extends g.Component{constructor(e){super(e)}
87get cssClasses(){return this.props.cssClasses}get element(){return this.props.element}render(){if(this.element.isTitleRenderedAsString)return Pz.renderLocString(this.element.locRenderedTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return g.createElement(g.Fragment,null,e)}renderTitleSpans(e,t){var n=e=>g.createElement(`span`,{"data-key":e,key:e},`\xA0`),r=[];e.isRequireTextOnStart&&(r.push(this.renderRequireText(e)),r.push(n(`req-sp`)));var i=e.no;return i&&(r.push(g.createElement(`span`,{"data-key":`q_num`,key:`q_num`,className:e.cssTitleNumber,style:{position:`static`},"aria-hidden":!0},i)),r.push(n(`num-sp`))),e.isRequireTextBeforeTitle&&(r.push(this.renderRequireText(e)),r.push(n(`req-sp`))),r.push(Pz.renderLocString(e.locRenderedTitle,null,`q_title`)),e.isRequireTextAfterTitle&&(r.push(n(`req-sp`)),r.push(this.renderRequireText(e))),r}renderRequireText(e){return g.createElement(`span`,{"data-key":`req-text`,key:`req-text`,className:e.cssRequiredMark,"aria-hidden":!0},e.requiredMark)}},Yz=class extends g.Component{get cssClasses(){return this.props.cssClasses}get element(){return this.props.element}get renderActions(){return this.props.renderActions===void 0||this.props.renderActions}render(){let e=g.createElement(Jz,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?g.createElement(`div`,{className:`sv-title-actions`},g.createElement(`span`,{className:`sv-title-actions__title`},e),this.renderActions?g.createElement(qz,{model:this.element.getTitleToolbar()}):null):e}};jP.Instance.registerRenderer(`element`,`title-actions`,`sv-title-actions`),Mz.Instance.registerElement(`sv-title-actions`,e=>g.createElement(Yz,e));var Xz=class extends g.Component{constructor(e){super(e)}get element(){return this.props.element}renderTitleExpandableSvg(){if(!this.element.getCssTitleExpandableSvg())return null;let e=this.element.isExpanded?`icon-collapse-16x16`:`icon-expand-16x16`;return g.createElement(Rz,{className:this.element.getCssTitleExpandableSvg(),iconName:e,size:`auto`})}render(){let e=this.element;if(!e||!e.hasTitle)return null;let t=e.titleAriaLabel||void 0,n=this.renderTitleExpandableSvg(),r=g.createElement(Yz,{element:e,cssClasses:e.cssClasses,renderActions:this.props.renderActions}),i;e.hasTitleEvents&&(i=e=>{XI(e.nativeEvent)});let a=e.titleTagName;return g.createElement(a,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:void 0,onKeyUp:i},n,r)}},Zz=class extends g.Component{constructor(e){super(e),this.state={changed:0},this.rootRef=g.createRef()}get survey(){return this.props.survey}get css(){return this.survey.css}componentDidMount(){let e=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}}componentWillUnmount(){this.survey.locLogo.onChanged=function(){}}renderTitle(){if(!this.survey.renderedHasTitle)return null;let e=Pz.renderLocString(this.survey.locDescription);return g.createElement(`div`,{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},g.createElement(Xz,{element:this.survey}),this.survey.renderedHasDescription?g.createElement(`div`,{className:this.css.description},e):null)}
87renderLogoImage(e){if(!e)return null;let t=this.survey.getElementWrapperComponentName(this.survey,`logo-image`),n=this.survey.getElementWrapperComponentData(this.survey,`logo-image`);return Mz.Instance.createElement(t,{data:n})}render(){return this.survey.renderedHasHeader?g.createElement(`div`,{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),g.createElement(`div`,{className:this.css.headerClose})):null}};Mz.Instance.registerElement(`survey-header`,e=>g.createElement(Zz,e));var Qz=class{constructor(){this.creatorHash={}}registerQuestion(e,t){this.creatorHash[e]=t}getAllTypes(){var e=[];for(var t in this.creatorHash)e.push(t);return e.sort()}createQuestion(e,t){var n=this.creatorHash[e];return n==null?null:n(t)}};Qz.Instance=new Qz;var $z=class extends g.Component{render(){return g.createElement(`div`,{className:`sv-brand-info`},g.createElement(`a`,{className:`sv-brand-info__logo`,href:`https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page`},g.createElement(`img`,{src:`https://surveyjs.io/Content/Images/poweredby.svg`})),g.createElement(`div`,{className:`sv-brand-info__text`},`Try and see how easy it is to `,g.createElement(`a`,{href:`https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey`},`create a survey`)),g.createElement(`div`,{className:`sv-brand-info__terms`},g.createElement(`a`,{href:`https://surveyjs.io/TermsOfUse`},`Terms of Use & Privacy Statement`)))}},eB=class extends Pz{get notifier(){return this.props.notifier}getStateElement(){return this.notifier}renderElement(){if(!this.notifier.isDisplayed)return null;let e={visibility:this.notifier.active?`visible`:`hidden`};return g.createElement(`div`,{className:this.notifier.css,style:e,role:`alert`,"aria-live":`polite`},g.createElement(`span`,null,this.notifier.message),g.createElement(qz,{model:this.notifier.actionBar}))}};Mz.Instance.registerElement(`sv-notifier`,e=>g.createElement(eB,e));var tB=class extends g.Component{render(){let e=this.props.survey.getContainerContent(this.props.container),t=this.props.needRenderWrapper!==!1;return e.length==0?null:t?g.createElement(`div`,{className:`sv-components-column sv-components-container-`+this.props.container},e.map(e=>Mz.Instance.createElement(e.component,{survey:this.props.survey,model:e.data,container:this.props.container,key:e.id}))):g.createElement(g.Fragment,null,e.map(e=>Mz.Instance.createElement(e.component,{survey:this.props.survey,model:e.data,container:this.props.container,key:e.id})))}};Mz.Instance.registerElement(`sv-components-container`,e=>g.createElement(tB,e));var nB=class extends g.Component{constructor(e){super(e),this.onIconsChanged=()=>{this.containerRef.current&&(this.containerRef.current.innerHTML=kz.iconsRenderedHtml())},this.containerRef=g.createRef()}componentDidMount(){this.onIconsChanged(),kz.onIconsChanged.add(this.onIconsChanged)}componentWillUnmount(){kz.onIconsChanged.remove(this.onIconsChanged)}render(){return g.createElement(`svg`,{style:{display:`none`},id:`sv-icon-holder-global-container`,ref:this.containerRef})}},rB=class e extends Pz{createPopupModalManager(){let e=new ez;return e.onModalsChangedCallback=()=>{this.setState({changed:this.state.changed+1})},e}constructor(e){super(e),this.modalManager=this.createPopupModalManager(),this.isInitialized=!1,this.init=()=>{this.isInitialized||(G.showDialog=(e,t)=>
87this.modalManager.addDialog(e,t),this.isInitialized=!0)},this.clean=()=>{this.isInitialized&&(G.showDialog=void 0,this.isInitialized=!1)},this.state={changed:0},this.descriptor={init:this.init,clean:this.clean}}static addModalDescriptor(e){G.showDialog||e.init(),this.modalDescriptors.push(e)}static removeModalDescriptor(e){e.clean(),this.modalDescriptors.splice(this.modalDescriptors.indexOf(e),1),!G.showDialog&&this.modalDescriptors[0]&&this.modalDescriptors[0].init()}renderElement(){return g.createElement(g.Fragment,null,this.modalManager.getModals().map(e=>(0,ne.createPortal)(g.createElement(Wz,{model:e}),e.container,e.uniqueId.toString())))}componentDidMount(){e.addModalDescriptor(this.descriptor)}componentWillUnmount(){this.modalManager.clear(),e.removeModalDescriptor(this.descriptor)}};rB.modalDescriptors=[];var iB={modernbooleancheckchecked:`<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "/></svg>`,modernbooleancheckind:`<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"/></svg>`,modernbooleancheckunchecked:`<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"/></svg>`,moderncheck:`<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"/></svg>`,modernradio:`<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"/></svg>`,progressbutton:`<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "/></svg>`,removefile:`<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"/></svg>`,timercircle:`<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke:var(--sd-timer-stroke-background-color);stroke-width:var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"/><circle cx="80" cy="80" r="70"/></svg>`,"add-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 11H17V13H13V17H11V13H7V11H11V7H13V11ZM23 12C23 18.1 18.1 23 12 23C5.9 23 1 18.1 1 12C1 5.9 5.9 1 12 1C18.1 1 23 5.9 23 12ZM21 12C21 7 17 3 12 3C7 3 3 7 3 12C3 17 7 21 12 21C17 21 21 17 21 12Z"/></svg>`,"arrowleft-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.4L8.7 13.3L7.3 14.7L0.599998 7.99999L7.3 1.29999L8.7 2.69999L4.4 6.99999H15V8.99999Z"/></svg>`,"arrowright-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"/></svg>`,"camera-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.01 4H18.4C18.2 4 18.01 3.9 17.9 3.73L16.97 2.34C16.41 1.5 15.48 1 14.47 1H9.54C8.53 1 7.6 1.5 7.04 2.34L6.11 3.73C6 3.9 5.81 4 5.61 4H4C2.35 4 1 5.35 1 7V19C1 20.65 2.35 22 4 22H20C21.65 22 23 20.65 23 19V7C23 5.35 21.65 4 20 4H20.01ZM21.01 19C21.01 19.55 20.56 20 20.01 20H4.01C3.46 20 3.01 19.55 3.01 19V7C3.01 6.45 3.46 6 4.01 6H5.62C6.49 6 7.3 5.56 7.79 4.84L8.72 3.45C8.91 3.17 9.22 3 9.55 3H14.48C14.81 3 15.13 3.17 15.31 3.45L16.24 4.84C16.72 5.56 17.54 6 18.41 6H20.02C20.57 6 21.02 6.45 21.02 7V19H21.01ZM12.01 6C8.7 6 6.01 8.69 6.01 12C6.01 15.31 8.7 18 12.01 18C15.32 18 18.01 15.31 18.01 12C18.01 8.69 15.32 6 12.01 6ZM12.01 16C9.8 16 8.01 14.21 8.01 12C8.01 9.79 9.8 8 12.01 8C14.22 8 16.01 9.79 16.01 12C16.01 14.21 14.22 16 12.01 16ZM13.01 10C13.01 10.55 12.56 11 12.01 11C11.46 11 11.01 11.45 11.01 12C11.01 12.55 10.56 13 10.01 13C9.46 13 9.01 12.55 9.01 12C9.01 10.35 10.36 9 12.01 9C12.56 9 13.01 9.45 13.01 10Z"/></svg>`,"camera-32x32":`<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M27 6H23.8C23.34 6 22.92 5.77 22.66 5.39L22.25 4.78C21.51 3.66 20.26 3 18.92 3H13.06C11.72 3 10.48 3.67 9.73 4.78L9.32 5.39C9.07 5.77 8.64 6 8.18 6H4.98C2.79 6 1 7.79 1 10V24C1 26.21 2.79 28 5 28H27C29.21 28 31 26.21 31 24V10C31 7.79 29.21 6 27 6ZM29 24C29 25.1 28.1 26 27 26H5C3.9 26 3 25.1 3 24V10C3 8.9 3.9 8 5 8H8.2C9.33 8 10.38 7.44 11 6.5L11.41 5.89C11.78 5.33 12.41 5 13.07 5H18.93C19.6 5 20.22 5.33 20.59 5.89L21 6.5C21.62 7.44 22.68 8 23.8 8H27C28.1 8 29 8.9 29 10V24ZM16 9C12.13 9 9 12.13 9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9ZM16 21C13.24 21 11 18.76 11 16C11 13.24 13.24 11 16 11C18.76 11 21 13.24 21 16C21 18.76 18.76 21 16 21ZM17 13C17 13.55 16.55 14 16 14C14.9 14 14 14.9 14 16C14 16.55 13.55 17 13 17C12.45 17 12 16.55 12 16C12 13.79 13.79 12 16 12C16.55 12 17 12.45 17 13Z"/></svg>`,"cancel-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.2000
875 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"/></svg>`,"check-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.003 14.413L0.292999 9.70303L1.703 8.29303L5.003 11.583L14.293 2.29303L15.703 3.70303L5.003 14.413Z"/></svg>`,"check-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"/></svg>`,"chevrondown-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 15L17 10H7L12 15Z"/></svg>`,"chevronright-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.64648 12.6465L6.34648 13.3465L11.7465 8.04648L6.34648 2.64648L5.64648 3.34648L10.2465 8.04648L5.64648 12.6465Z"/></svg>`,"clear-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"/></svg>`,"clear-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.2000
875 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"/></svg>`,"close-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M9.43 8.0025L13.7 3.7225C14.09 3.3325 14.09 2.6925 13.7 2.2925C13.31 1.9025 12.67 1.9025 12.27 2.2925L7.99 6.5725L3.72 2.3025C3.33 1.9025 2.69 1.9025 2.3 2.3025C1.9 2.6925 1.9 3.3325 2.3 3.7225L6.58 8.0025L2.3 12.2825C1.91 12.6725 1.91 13.3125 2.3 13.7125C2.69 14.1025 3.33 14.1025 3.73 13.7125L8.01 9.4325L12.29 13.7125C12.68 14.1025 13.32 14.1025 13.72 13.7125C14.11 13.3225 14.11 12.6825 13.72 12.2825L9.44 8.0025H9.43Z"/></svg>`,"close-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.4101 12L20.7001 4.71C21.0901 4.32 21.0901 3.69 20.7001 3.3C20.3101 2.91 19.6801 2.91 19.2901 3.3L12.0001 10.59L4.71006 3.29C4.32006 2.9 3.68006 2.9 3.29006 3.29C2.90006 3.68 2.90006 4.32 3.29006 4.71L10.5801 12L3.29006 19.29C2.90006 19.68 2.90006 20.31 3.29006 20.7C3.49006 20.9 3.74006 20.99 4.00006 20.99C4.26006 20.99 4.51006 20.89 4.71006 20.7L12.0001 13.41L19.2901 20.7C19.4901 20.9 19.7401 20.99 20.0001 20.99C20.2601 20.99 20.5101 20.89 20.7101 20.7C21.1001 20.31 21.1001 19.68 20.7101 19.29L13.4201 12H13.4101Z"/></svg>`,"collapse-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 6L3 5L8 10L13 5L14 6L8 12L2 6Z"/></svg>`,"collapsedetails-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"/></svg>`,"delete-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H14H11V1C11 0.4 10.6 0 10 0H7C6.4 0 6 0.4 6 1V2H3H2V4H3V14C3 15.1 3.9 16 5 16H12C13.1 16 14 15.1 14 14V4H15V2ZM7 1H10V2H7V1ZM12 14H5V4H12V14ZM7 13H6V5H7V13ZM9 13H8V5H9V13ZM11 13H10V5H11V13Z"/></svg>`,"delete-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"/></svg>`,"drag-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16ZM9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16Z"/></svg>`,"draghorizontal-24x16":`<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M18 9C19.1 9 20 9.9 20 11C20 12.1 19.1 13 18 13C16.9 13 16 12.1 16 11C16 9.9 16.9 9 18 9ZM20 5C20 3.9 19.1 3 18 3C16.9 3 16 3.9 16 5C16 6.1 16.9 7 18 7C19.1 7 20 6.1 20 5ZM14 11C14 9.9 13.1 9 12 9C10.9 9 10 9.9 10 11C10 12.1 10.9 13 12 13C13.1 13 14 12.1 14 11ZM14 5C14 3.9 13.1 3 12 3C10.9 3 10 3.9 10 5C10 6.1 10.9 7 12 7C13.1 7 14 6.1 14 5ZM8 11C8 9.9 7.1 9 6 9C4.9 9 4 9.9 4 11C4 12.1 4.9 13 6 13C7.1 13 8 12.1 8 11ZM8 5C8 3.9 7.1 3 6 3C4.9 3 4 3.9 4 5C4 6.1 4.9 7 6 7C7.1 7 8 6.1 8 5Z"/></svg>`,"editsmall-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.59 4.5884L11.42 2.4184C11.03 2.0284 10.52 1.8284 10.01 1.8284C9.5 1.8284 8.99 2.0284 8.6 2.4184L3.76 7.2384C2.63 8.3684 2 9.8884 2 11.4784V12.9884C2 13.5384 2.45 13.9884 3 13.9884H4.51C6.1 13.9884 7.63 13.3584 8.75 12.2284L13.58 7.3984C14.36 6.6184 14.36 5.3484 13.58 4.5684L13.59 4.5884ZM7.35 10.8284C6.59 11.5884 5.59 11.9984 4.52 11.9984H4.01V11.4884C4.01 10.4184 4.43 9.4184 5.18 8.6584L7.72 6.1184L9.89 8.2884L7.35 10.8284ZM11.3 6.8784L9.13 4.7084L10.01 3.8284L12.18 5.9984L11.3 6.8784Z"/></svg>`,"expand-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6 14L5 13L10 8L5 3L6 2L12 8L6 14Z"/></svg>`,"expanddetails-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
87<path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"/></svg>`,"file-72x72":`<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"/></svg>`,"flip-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M23 12.0037C23 14.2445 21.7794 16.3052 19.5684 17.8257C19.3984 17.9458 19.1983 18.0058 19.0082 18.0058C18.688 18.0058 18.3779 17.8557 18.1778 17.5756C17.8677 17.1155 17.9777 16.4953 18.4379 16.1852C20.0887 15.0448 21.0091 13.5643 21.0091 12.0138C21.0091 8.70262 16.9673 6.01171 12.005 6.01171C11.4948 6.01171 10.9945 6.04172 10.5043 6.09173L11.7149 7.30215C12.105 7.69228 12.105 8.32249 11.7149 8.71263C11.5148 8.9127 11.2647 9.00273 11.0045 9.00273C10.7444 9.00273 10.4943 8.90269 10.2942 8.71263L6.58254 5.00136L10.2842 1.2901C10.6744 0.899964 11.3047 0.899964 11.6949 1.2901C12.085 1.68023 12.085 2.31045 11.6949 2.70058L10.3042 4.09105C10.8545 4.03103 11.4147 4.00102 11.985 4.00102C18.0578 4.00102 22.99 7.59225 22.99 12.0037H23ZM12.2851 15.2949C11.895 15.685 11.895 16.3152 12.2851 16.7054L13.4957 17.9158C13.0055 17.9758 12.4952 17.9958 11.995 17.9958C7.03274 17.9958 2.99091 15.3049 2.99091 11.9937C2.99091 10.4332 3.90132 8.95271 5.56207 7.82232C6.02228 7.51222 6.13233 6.89201 5.82219 6.43185C5.51205 5.97169 4.89177 5.86166 4.43156 6.17176C2.22055 7.69228 1 9.76299 1 11.9937C1 16.4052 5.93224 19.9965 12.005 19.9965C12.5753 19.9965 13.1355 19.9665 13.6858 19.9064L12.2951 21.2969C11.905 21.6871 11.905 22.3173 12.2951 22.7074C12.4952 22.9075 12.7453 22.9975 13.0055 22.9975C13.2656 22.9975 13.5157 22.8975 13.7158 22.7074L17.4275 18.9961L13.7158 15.2849C13.3256 14.8947 12.6953 14.8947 12.3051 15.2849L12.2851 15.2949Z"/></svg>`,"folder-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.93 9H21V7C21 6.46957 20.7893 5.96086 20.4142 5.58579C20.0391 5.21071 19.5304 5 19 5H10L8 3H4C3.46957 3 2.96086 3.21071 2.58579 3.58579C2.21071 3.96086 2 4.46957 2 5L2 21H21L23.89 11.63C23.9916 11.3244 24.0179 10.9988 23.9667 10.6809C23.9155 10.363 23.7882 10.0621 23.5958 9.80392C23.4034 9.54571 23.1514 9.33779 22.8614 9.19782C22.5714 9.05786 22.2519 8.99 21.93 9ZM4 5H7.17L8.59 6.41L9.17 7H19V9H6L4 15V5ZM22 11L19.54 19H4.77L7.44 11H22Z"/></svg>`,"fullsize-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 13H4C2.9 13 2 12.1 2 11V5C2 3.9 2.9 3 4 3H12C13.1 3 14 3.9 14 5V11C14 12.1 13.1 13 12 13ZM4 5V11H12V5H4Z"/></svg>`,"image-48x48":`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M36 8H12C9.79 8 8 9.79 8 12V36C8 38.21 9.79 40 12 40H36C38.21 40 40 38.21 40 36V12C40 9.79 38.21 8 36 8ZM38 36C38 37.1 37.1 38 36 38H12C10.9 38 10 37.1 10 36V12C10 10.9 10.9 10 12 10H36C37.1 10 38 10.9 38 12V36ZM14 17C14 15.34 15.34 14 17 14C18.66 14 20 15.34 20 17C20 18.66 18.66 20 17 20C15.34 20 14 18.66 14 17ZM27 24L36 36H12L19 27L23 29L27 24Z"/></svg>`,"loading-48x48":`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"/>
87<path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z"/></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"/></clipPath></defs></svg>`,"maximize-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6.71 10.71L4.42 13H6.01C6.56 13 7.01 13.45 7.01 14C7.01 14.55 6.56 15 6.01 15H2C1.45 15 1 14.55 1 14V10C1 9.45 1.45 9 2 9C2.55 9 3 9.45 3 10V11.59L5.29 9.3C5.68 8.91 6.31 8.91 6.7 9.3C7.09 9.69 7.09 10.32 6.7 10.71H6.71ZM14 1H10C9.45 1 9 1.45 9 2C9 2.55 9.45 3 10 3H11.59L9.3 5.29C8.91 5.68 8.91 6.31 9.3 6.7C9.5 6.9 9.75 6.99 10.01 6.99C10.27 6.99 10.52 6.89 10.72 6.7L13.01 4.41V6C13.01 6.55 13.46 7 14.01 7C14.56 7 15.01 6.55 15.01 6V2C15.01 1.45 14.56 1 14.01 1H14Z"/></svg>`,"minimize-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 9H3C2.45 9 2 8.55 2 8C2 7.45 2.45 7 3 7H13C13.55 7 14 7.45 14 8C14 8.55 13.55 9 13 9Z"/></svg>`,"more-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"/></svg>`,"navmenu-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H2V5H16V7ZM2 11V13H22V11H2ZM2 19H10V17H2V19Z"/></svg>`,"noimage-48x48":`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"/></svg>`,"ranking-arrows":`<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"/><path d="M6 19V15H4V19H0L5 24L10 19H6Z"/></svg>`,"rankingundefined-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"/></svg>`,"rating-star-2":`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.
876102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"/><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"/></svg>`,"rating-star-small-2":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"/><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"/></svg>`,"rating-star-small":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"/></g></svg>`,"rating-star":`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.
876102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"/></g></svg>`,"reorder-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17 5L12 0L7 5H11V9H13V5H17Z"/><path d="M13 19V15H11V19H7L12 24L17 19H13Z"/></svg>`,"restoredown-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 6C15 6.55 14.55 7 14 7H10C9.45 7 9 6.55 9 6V2C9 1.45 9.45 1 10 1C10.55 1 11 1.45 11 2V3.59L13.29 1.29C13.49 1.09 13.74 1 14 1C14.26 1 14.51 1.1 14.71 1.29C15.1 1.68 15.1 2.31 14.71 2.7L12.42 4.99H14.01C14.56 4.99 15.01 5.44 15.01 5.99L15 6ZM6 9H2C1.45 9 0.999998 9.45 0.999998 10C0.999998 10.55 1.45 11 2 11H3.59L1.29 13.29C0.899998 13.68 0.899998 14.31 1.29 14.7C1.68 15.09 2.31 15.09 2.7 14.7L4.99 12.41V14C4.99 14.55 5.44 15 5.99 15C6.54 15 6.99 14.55 6.99 14V10C6.99 9.45 6.54 9 5.99 9H6Z"/></svg>`,"search-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"/></svg>`,"smiley-rate1-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"/></svg>`,"smiley-rate10-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"/></svg>
87`,"smiley-rate2-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"/></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"/></clipPath></defs></svg>`,"smiley-rate3-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"/></svg>`,"smiley-rate4-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"/></svg>`,"smiley-rate5-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"/></svg>`,"smiley-rate6-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"/></svg>`,"smiley-rate7-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
87<path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"/></svg>`,"smiley-rate8-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"/></svg>`,"smiley-rate9-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"/></svg>`},aB={modernbooleancheckchecked:`<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "/></svg>`,modernbooleancheckind:`<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"/></svg>`,modernbooleancheckunchecked:`<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"/></svg>`,moderncheck:`<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"/></svg>`,modernradio:`<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"/></svg>`,progressbutton:`<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "/></svg>`,removefile:`<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"/></svg>`,timercircle:`<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke:var(--sd-timer-stroke-background-color);stroke-width:var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"/><circle cx="80" cy="80" r="70"/></svg>`,"add-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.75 12C15.75 12.41 15.41 12.75 15 12.75H12.75V15C12.75 15.41 12.41 15.75 12 15.75C11.59 15.75 11.25 15.41 11.25 15V12.75H9C8.59 12.75 8.25 12.41 8.25 12C8.25 11.59 8.59 11.25 9 11.25H11.25V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9V11.25H15C15.41 11.25 15.75 11.59 15.75 12ZM21.75 12C21.75 17.38 17.38 21.75 12 21.75C6.62 21.75 2.25 17.38 2.25 12C2.25 6.62 6.62 2.25 12 2.25C17.38 2.25 21.75 6.62 21.75 12ZM20.25 12C20.25 7.45 16.55 3.75 12 3.75C7.45 3.75 3.75 7.45 3.75 12C3.75 16.55 7.45 20.25 12 20.25C16.55 20.25 20.25 16.55 20.25 12Z"/></svg>`,"arrowleft-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.7475 7.9975C14.7475 8.4075 14.4075 8.7475 13.9975 8.7475H3.8075L7.5275 12.4675C7.8175 12.7575 7.8175 13.2375 7.5275 13.5275C7.3775 13.6775 7.1875 13.7475 6.9975 13.7475C6.8075 13.7475 6.6175 13.6775 6.4675 13.5275L1.4675 8.5275C1.1775 8.2375 1.1775 7.7575 1.4675 7.4675L6.4675 2.4675C6.7575 2.1775 7.2375 2.1775 7.5275 2.4675C7.8175 2.7575 7.8175 3.2375 7.5275 3.5275L3.8075 7.2475H13.9975C14.4075 7.2475 14.7475 7.5875 14.7475 7.9975Z"/></svg>`,"arrowright-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 8.5275L9.53 13.5275C9.38 13.6775 9.19 13.7475 9 13.7475C8.81 13.7475 8.62 13.6775 8.47 13.5275C8.18 13.2375 8.18 12.7575 8.47 12.4675L12.19 8.7475H2C1.59 8.7475 1.25 8.4075 1.25 7.9975C1.25 7.5875 1.59 7.2475 2 7.2475H12.19L8.47 3.5275C8.18 3.2375 8.18 2.7575 8.47 2.4675C8.76 2.1775 9.24 2.1775 9.53 2.4675L14.53 7.4675C14.82 7.7575 14.82 8.2375 14.53 8.5275Z"/></svg>`,"camera-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.19 4.25H17.12C16.72 4.25 16.35 4.03 16.17 3.67C15.73 2.8 14.86 2.25 13.88 2.25H10.12C9.14 2.25 8.27 2.79 7.83 3.67C7.65 4.03 7.29 4.25 6.88 4.25H4.81C3.4 4.25 2.25 5.4 2.25 6.81V18.19C2.25 19.6 3.4 20.75 4.81 20.75H19.19C20.6 20.75 21.75 19.6 21.75 18.19V6.81C21.75 5.4 20.6 4.25 19.19 4.25ZM20.25 18.19C20.25 18.77 19.78 19.25 19.19 19.25H4.81C4.23 19.25 3.75 18.78 3.75 18.19V6.81C3.75 6.23 4.22 5.75 4.81 5.75H6.88C7.86 5.75 8.73 5.21 9.17 4.33C9.35 3.97 9.71 3.75 10.12 3.75H13.88C14.28 3.75 14.65 3.97 14.83 4.33C15.27 5.2 16.14 5.75 17.12 5.75H19.19C19.77 5.75 20.25 6.22 20.25 6.81V18.19ZM12 6.25C8.83 6.25 6.25 8.83 6.25 12C6.25 15.17 8.83 17.75 12 17.75C15.17 17.75 17.75 15.17 17.75 12C17.75 8.83 15.17 6.25 12 6.25ZM12 16.25C9.66 16.25 7.75 14.34 7.75 12C7.75 9.66 9.66 7.75 12 7.75C14.34 7.75 16.25 9.66 16.25 12C16.25 14.34 14.34 16.25 12 16.25ZM14.75 12C14.75 13.52 13.52 14.75 12 14.75C11.59 14.75 11.25 14.41 11.25 14C11.25 13.59 11.59 13.25 12 13.25C12.69 13.25 13.25 12.69 13.25 12C13.25 11.59 13.59 11.25 14 11.25C14.41 11.25 14.75 11.59 14.75 12Z"/></svg>`,"camera-32x32":`<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M25 7.25H22.19C21.73 7.25 21.31 7 21.09 6.59L20.89 6.22C20.23 5.01 18.97 4.25 17.59 4.25H14.41C13.03 4.25 11.77 5 11.11 6.22L10.91 6.6C10.69 7 10.27 7.26 9.81 7.26H7C4.93 7.26 3.25 8.94 3.25 11.01V24.01C3.25 26.08 4.93 27.76 7 27.76H25C27.07 27.76 28.75 26.08 28.75 24.01V11C28.75 8.93 27.07 7.25 25 7.25ZM27.25 24C27.25 25.24 26.24 26.25 25 26.25H7C5.76 26.25 4.75 25.24 4.75 24V11C4.75 9.76 5.76 8.75 7 8.75H9.81C10.82 8.75 11.75 8.2 12.23 7.31L12.43 6.94C12.82 6.21 13.58 5.76 14.41 5.76H17.59C18.42 5.76 19.18 6.21 19.57 6.94L19.77 7.31C20.25 8.2 21.18 8.76 22.19 8.76H25C26.24 8.76 27.25 9.77 27.25 11.01V24.01V24ZM16 10.25C12.28 10.25 9.25 13.28 9.25 17C9.25 20.72 12.28 23.75 16 23.75C19.72 23.75 22.75 20.72 22.75 17C22.75 13.28 19.72 10.25 16 10.25ZM16 22.25C13.11 22.25 10.75 19.89 10.75 17C10.75 14.11 13.11 11.75 16 11.75C18.89 11.75 21.25 14.11 21.25 17C21.25 19.89 18.89 22.25 16 22.25ZM19.75 17C19.75 19.07 18.07 20.75 16 20.75C15.59 20.75 15.25 20.41 15.25 20C15.25 19.59 15.59 19.25 16 19.25C17.24 19.25 18.25 18.24 18.25 17C18.25 16.59 18.59 16.25 19 16.25C19.41 16.25 19.75 16.59 19.75 17Z"/></svg>`,"cancel-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.8099 11.75L15.2799 9.28C15.5699 8.99 15.5699 8.51 15.2799 8.22C14.9899 7.93 14.5099 7.93 14.2199 8.22L11.7499 10.69L9.27994 8.22C8.98994 7.93 8.50994 7.93 8.21994 8.22C7.92994 8.51 7.92994 8.99 8.21994 9.28L10.6899 11.75L8.21994 14.22C7.92994 14.51 7.92994 14.99 8.21994 15.28C8.36994 15.43 8.55994 15.5 8.74994 15.5C8.93994 15.5 9.12994 15.43 9.27994 15.28L11.7499 12.81L14.2199 15.28C14.3699 15.43 14.5599 15.5 14.7499 15.5C14.9399 15.5 15.1299 15.43 15.2799 15.28C15.5699 14.99 15.5699 14.51 15.2799 14.22L12.8099 11.75Z"/></svg>`,"check-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.0275 5.0275L6.5275 12.5275C6.3775 12.6775 6.1875 12.7475 5.9975 12.7475C5.8075 12.7475 5.6175 12.6775 5.4675 12.5275L2.4675 9.5275C2.1775 9.2375 2.1775 8.7575 2.4675 8.4675C2.7575 8.1775 3.2375 8.1775 3.5275 8.4675L5.9975 10.9375L12.9675 3.9675C13.2575 3.6775 13.7375 3.6775 14.0275 3.9675C14.3175 4.2575 14.3175 4.7375 14.0275 5.0275Z"/></svg>`,"check-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 7.5275L9.5275 17.5275C9.3775 17.6775 9.1875 17.7475 8.9975 17.7475C8.8075 17.7475 8.6175 17.6775 8.4675 17.5275L4.4675 13.5275C4.1775 13.2375 4.1775 12.7575 4.4675 12.4675C4.7575 12.1775 5.2375 12.1775 5.5275 12.4675L8.9975 15.9375L18.4675 6.4675C18.7575 6.1775 19.2375 6.1775 19.5275 6.4675C19.8175 6.7575 19.8175 7.2375 19.5275 7.5275Z"/></svg>`,"chevrondown-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16.5275 10.5275L12.5275 14.5275C12.3775 14.6775 12.1875 14.7475 11.9975 14.7475C11.8075 14.7475 11.6175 14.6775 11.4675 14.5275L7.4675 10.5275C7.1775 10.2375 7.1775 9.7575 7.4675 9.4675C7.7575 9.1775 8.2375 9.1775 8.5275 9.4675L11.9975 12.9375L15.4675 9.4675C15.7575 9.1775 16.2375 9.1775 16.5275 9.4675C16.8175 9.7575 16.8175 10.2375 16.5275 10.5275Z"/></svg>`,"chevronright-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.35 8.34627L7.35 12.3463C7.25 12.4463 7.12 12.4963 7 12.4963C6.88 12.4963 6.74 12.4463 6.65 12.3463C6.45 12.1463 6.45 11.8363 6.65 11.6363L10.3 7.98627L6.65 4.34627C6.45 4.15627 6.45 3.83627 6.65 3.64627C6.85 3.45627 7.16 3.44627 7.35 3.64627L11.35 7.64627C11.55 7.84627 11.55 8.15627 11.35 8.35627V8.34627Z"/></svg>`,"clear-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.35 11.65C12.55 11.85 12.55 12.16 12.35 12.36C12.25 12.46 12.12 12.51 12 12.51C11.88 12.51 11.74 12.46 11.65 12.36L8 8.71L4.35 12.36C4.25 12.46 4.12 12.51 4 12.51C3.88 12.51 3.74 12.46 3.65 12.36C3.45 12.16 3.45 11.85 3.65 11.65L7.3 8L3.65 4.35C3.45 4.16 3.45 3.84 3.65 3.65C3.85 3.46 4.16 3.45 4.35 3.65L8 7.3L11.65 3.65C11.85 3.45 12.16 3.45 12.36 3.65C12.56 3.85 12.56 4.16 12.36 4.36L8.71 8.01L12.36 11.66L12.35 11.65Z"/></svg>`,"clear-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.12 10.9325C20.64 10.4125 20.93 9.7225 20.93 8.9925C20.93 8.2625 20.64 7.5725 20.12 7.0525L16.95 3.8825C15.88 2.8125 14.13 2.8125 13.06 3.8825L3.88 13.0525C3.36 13.5725 3.07 14.2625 3.07 14.9925C3.07 15.7225 3.36 16.4125 3.88 16.9325L5.64 18.6925C6.57 19.6225 7.78 20.0825 9 20.0825C10.22 20.0825 11.43 19.6225 12.36 18.6925L20.12 10.9325ZM14.12 4.9325C14.36 4.6925 14.67 4.5625 15 4.5625C15.33 4.5625 15.65 4.6925 15.88 4.9325L19.05 8.1025C19.54 8.5925 19.54 9.3825 19.05 9.8725L12.99 15.9325L8.05 10.9925L14.12 4.9325ZM6.7 17.6325L4.94 15.8725C4.45 15.3825 4.45 14.5925 4.94 14.1025L7 12.0425L11.94 16.9825L11.3 17.6225C10.07 18.8525 7.93 18.8525 6.7 17.6225V17.6325ZM22.75 20.9925C22.75 21.4025 22.41 21.7425 22 21.7425H14C13.59 21.7425 13.25 21.4025 13.25 20.9925C13.25 20.5825 13.59 20.2425 14 20.2425H22C22.41 20.2425 22.75 20.5825 22.75 20.9925ZM4.75 20.9925C4.75 21.4025 4.41 21.7425 4 21.7425H2C1.59 21.7425 1.25 21.4025 1.25 20.9925C1.25 20.5825 1.59 20.2425 2 20.2425H4C4.41 20.2425 4.75 20.5825 4.75 20.9925Z"/></svg>`,"close-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.5275 12.4675C13.8175 12.7575 13.8175 13.2375 13.5275 13.5275C13.3775 13.6775 13.1875 13.7475 12.9975 13.7475C12.8075 13.7475 12.6175 13.6775 12.4675 13.5275L7.9975 9.0575L3.5275 13.5275C3.3775 13.6775 3.1875 13.7475 2.9975 13.7475C2.8075 13.7475 2.6175 13.6775 2.4675 13.5275C2.1775 13.2375 2.1775 12.7575 2.4675 12.4675L6.9375 7.9975L2.4675 3.5275C2.1775 3.2375 2.1775 2.7575 2.4675 2.4675C2.7575 2.1775 3.2375 2.1775 3.5275 2.4675L7.9975 6.9375L12.4675 2.4675C12.7575 2.1775 13.2375 2.1775 13.5275 2.4675C13.8175 2.7575 13.8175 3.2375 13.5275 3.5275L9.0575 7.9975L13.5275 12.4675Z"/></svg>`,"close-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 18.4675C19.8175 18.7575 19.8175 19.2375 19.5275 19.5275C19.3775 19.6775 19.1875 19.7475 18.9975 19.7475C18.8075 19.7475 18.6175 19.6775 18.4675 19.5275L11.9975 13.0575L5.5275 19.5275C5.3775 19.6775 5.1875 19.7475 4.9975 19.7475C4.8075 19.7475 4.6175 19.6775 4.4675 19.5275C4.1775 19.2375 4.1775 18.7575 4.4675 18.4675L10.9375 11.9975L4.4675 5.5275C4.1775 5.2375 4.1775 4.7575 4.4675 4.4675C4.7575 4.1775 5.2375 4.1775 5.5275 4.4675L11.9975 10.9375L18.4675 4.4675C18.7575 4.1775 19.2375 4.1775 19.5275 4.4675C19.8175 4.7575 19.8175 5.2375 19.5275 5.5275L13.0575 11.9975L19.5275 18.4675Z"/></svg>`,"collapse-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"/></svg>`,"collapsedetails-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"/></svg>`,"delete-16x16":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13 3.25H10.75V3C10.75 2.04 9.96 1.25 9 1.25H7C6.04 1.25 5.25 2.04 5.25 3V3.25H3C2.59 3.25 2.25 3.59 2.25 4C2.25 4.41 2.59 4.75 3 4.75H3.25V13C3.25 13.96 4.04 14.75 5 14.75H11C11.96 14.75 12.75 13.96 12.75 13V4.75H13C13.41 4.75 13.75 4.41 13.75 4C13.75 3.59 13.41 3.25 13 3.25ZM6.75 3C6.75 2.86 6.86 2.75 7 2.75H9C9.14 2.75 9.25 2.86 9.25 3V3.25H6.75V3ZM11.25 13C11.25 13.14 11.14 13.25 11 13.25H5C4.86 13.25 4.75 13.14 4.75 13V4.75H11.25V13ZM9.25 6.25C9.66 6.25 10 6.59 10 7V11C10 11.41 9.66 11.75 9.25 11.75C8.84 11.75 8.5 11.41 8.5 11V7C8.5 6.59 8.84 6.25 9.25 6.25ZM7.5 7V11C7.5 11.41 7.16 11.75 6.75 11.75C6.34 11.75 6 11.41 6 11V7C6 6.59 6.34 6.25 6.75 6.25C7.16 6.25 7.5 6.59 7.5 7Z"/></svg>`,"delete-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.75 9V17C12.75 17.41 12.41 17.75 12 17.75C11.59 17.75 11.25 17.41 11.25 17V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9ZM14.25 9V17C14.25 17.41 14.59 17.75 15 17.75C15.41 17.75 15.75 17.41 15.75 17V9C15.75 8.59 15.41 8.25 15 8.25C14.59 8.25 14.25 8.59 14.25 9ZM9 8.25C8.59 8.25 8.25 8.59 8.25 9V17C8.25 17.41 8.59 17.75 9 17.75C9.41 17.75 9.75 17.41 9.75 17V9C9.75 8.59 9.41 8.25 9 8.25ZM20.75 6C20.75 6.41 20.41 6.75 20 6.75H18.75V18C18.75 19.52 17.52 20.75 16 20.75H8C6.48 20.75 5.25 19.52 5.25 18V6.75H4C3.59 6.75 3.25 6.41 3.25 6C3.25 5.59 3.59 5.25 4 5.25H8.25V4C8.25 3.04 9.04 2.25 10 2.25H14C14.96 2.25 15.75 3.04 15.75 4V5.25H20C20.41 5.25 20.75 5.59 20.75 6ZM9.75 5.25H14.25V4C14.25 3.86 14.14 3.75 14 3.75H10C9.86 3.75 9.75 3.86 9.75 4V5.25ZM17.25 6.75H6.75V18C6.75 18.69 7.31 19.25 8 19.25H16C16.69 19.25 17.25 18.69 17.25 18V6.75Z"/></svg>`,"drag-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 8.75C15.19 8.75 15.75 8.19 15.75 7.5C15.75 6.81 15.19 6.25 14.5 6.25C13.81 6.25 13.25 6.81 13.25 7.5C13.25 8.19 13.81 8.75 14.5 8.75ZM14.5 7.25C14.64 7.25 14.75 7.36 14.75 7.5C14.75 7.78 14.25 7.78 14.25 7.5C14.25 7.36 14.36 7.25 14.5 7.25ZM9.5 6.25C8.81 6.25 8.25 6.81 8.25 7.5C8.25 8.19 8.81 8.75 9.5 8.75C10.19 8.75 10.75 8.19 10.75 7.5C10.75 6.81 10.
8719 6.25 9.5 6.25ZM9.25 7.5C9.25 7.36 9.36 7.25 9.5 7.25C9.64 7.25 9.75 7.36 9.75 7.5C9.75 7.78 9.25 7.78 9.25 7.5ZM14.5 11.25C13.81 11.25 13.25 11.81 13.25 12.5C13.25 13.19 13.81 13.75 14.5 13.75C15.19 13.75 15.75 13.19 15.75 12.5C15.75 11.81 15.19 11.25 14.5 11.25ZM14.25 12.5C14.25 12.36 14.36 12.25 14.5 12.25C14.64 12.25 14.75 12.36 14.75 12.5C14.75 12.78 14.25 12.78 14.25 12.5ZM9.5 11.25C8.81 11.25 8.25 11.81 8.25 12.5C8.25 13.19 8.81 13.75 9.5 13.75C10.19 13.75 10.75 13.19 10.75 12.5C10.75 11.81 10.19 11.25 9.5 11.25ZM9.25 12.5C9.25 12.36 9.36 12.25 9.5 12.25C9.64 12.25 9.75 12.36 9.75 12.5C9.75 12.78 9.25 12.78 9.25 12.5ZM14.5 16.25C13.81 16.25 13.25 16.81 13.25 17.5C13.25 18.19 13.81 18.75 14.5 18.75C15.19 18.75 15.75 18.19 15.75 17.5C15.75 16.81 15.19 16.25 14.5 16.25ZM14.25 17.5C14.25 17.36 14.36 17.25 14.5 17.25C14.64 17.25 14.75 17.36 14.75 17.5C14.75 17.78 14.25 17.78 14.25 17.5ZM9.5 16.25C8.81 16.25 8.25 16.81 8.25 17.5C8.25 18.19 8.81 18.75 9.5 18.75C10.19 18.75 10.75 18.19 10.75 17.5C10.75 16.81 10.19 16.25 9.5 16.25ZM9.25 17.5C9.25 17.36 9.36 17.25 9.5 17.25C9.64 17.25 9.75 17.36 9.75 17.5C9.75 17.78 9.25 17.78 9.25 17.5Z"/></svg>`,"draghorizontal-24x16":`<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 9.25C16.81 9.25 16.25 9.81 16.25 10.5C16.25 11.19 16.81 11.75 17.5 11.75C18.19 11.75 18.75 11.19 18.75 10.5C18.75 9.81 18.19 9.25 17.5 9.25ZM17.25 10.5C17.25 10.36 17.36 10.25 17.5 10.25C17.64 10.25 17.75 10.36 17.75 10.5C17.75 10.78 17.25 10.78 17.25 10.5ZM17.5 6.75C18.19 6.75 18.75 6.19 18.75 5.5C18.75 4.81 18.19 4.25 17.5 4.25C16.81 4.25 16.25 4.81 16.25 5.5C16.25 6.19 16.81 6.75 17.5 6.75ZM17.5 5.25C17.64 5.25 17.75 5.36 17.75 5.5C17.75 5.78 17.25 5.78 17.25 5.5C17.25 5.36 17.36 5.25 17.5 5.25ZM12.5 9.25C11.81 9.25 11.25 9.81 11.25 10.5C11.25 11.19 11.81 11.75 12.5 11.75C13.19 11.75 13.75 11.19 13.75 10.5C13.75 9.81 13.19 9.25 12.5 9.25ZM12.25 10.5C12.25 10.36 12.36 10.25 12.5 10.25C12.64 10.25 12.75 10.36 12.75 10.5C12.75 10.78 12.25 10.78 12.25 10.5ZM12.5 4.25C11.81 4.25 11.25 4.81 11.25 5.5C11.25 6.19 11.81 6.75 12.5 6.75C13.19 6.75 13.75 6.19 13.75 5.5C13.75 4.81 13.19 4.25 12.5 4.25ZM12.25 5.5C12.25 5.36 12.36 5.25 12.5 5.25C12.64 5.25 12.75 5.36 12.75 5.5C12.75 5.78 12.25 5.78 12.25 5.5ZM7.5 9.25C6.81 9.25 6.25 9.81 6.25 10.5C6.25 11.19 6.81 11.75 7.5 11.75C8.19 11.75 8.75 11.19 8.75 10.5C8.75 9.81 8.19 9.25 7.5 9.25ZM7.25 10.5C7.25 10.36 7.36 10.25 7.5 10.25C7.64 10.25 7.75 10.36 7.75 10.5C7.75 10.78 7.25 10.78 7.25 10.5ZM7.5 4.25C6.81 4.25 6.25 4.81 6.25 5.5C6.25 6.19 6.81 6.75 7.5 6.75C8.19 6.75 8.75 6.19 8.75 5.5C8.75 4.81 8.19 4.25 7.5 4.25ZM7.25 5.5C7.25 5.36 7.36 5.25 7.5 5.25C7.64 5.25 7.75 5.36 7.75 5.5C7.75 5.78 7.25 5.78 7.25 5.5Z"/></svg>`,"editsmall-16x16":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13.1209 3.05249L12.9509 2.88249C11.8809 1.81249 10.1309 1.81249 9.06089 2.88249L3.47089 8.46249C3.37089 8.56249 3.31089 8.68249 3.27089 8.81249L2.27089 12.8125C2.21089 13.0625 2.28089 13.3425 2.47089 13.5225C2.61089 13.6625 2.80089 13.7425 3.00089 13.7425C3.06089 13.7425 3.12089 13.7425 3.18089 13.7225L7.18089 12.7225C7.31089 12.6925 7.43089 12.6225 7.53089 12.5225L13.1209 6.93249C14.1909 5.86249 14.1909 4.11249 13.1209 3.04249V3.05249ZM6.62089 11.3125L4.04089 11.9625L4.69089 9.38249L8.01089 6.06249L9.95089 8.00249L6.63089 11.3225L6.62089 11.3125ZM12.0609 5.87249L11.0009 6.93249L9.06089 4.99249L10.1209 3.93249C10.6109 3.44249 11.4009 3.44249 11.8909 3.93249L12.0609 4.10249C12.5509 4.59249 12.5509 5.38249 12.0609 5.87249Z"/></svg>`,"expand-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"/></svg>`,"expanddetails-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.7
875H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"/></svg>`,"file-72x72":`<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"/></svg>`,"flip-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 17.4775C14.82 17.7675 14.82 18.2475 14.53 18.5375L11.53 21.5375C11.38 21.6875 11.19 21.7575 11 21.7575C10.81 21.7575 10.62 21.6875 10.47 21.5375C10.18 21.2475 10.18 20.7675 10.47 20.4775L12.2 18.7475C12.13 18.7475 12.07 18.7475 12 18.7475C6.62 18.7475 2.25 15.7475 2.25 12.0575C2.25 10.2975 3.22 8.6375 4.99 7.3875C5.33 7.1475 5.8 7.2275 6.03 7.5675C6.27 7.9075 6.19 8.3775 5.85 8.6075C4.49 9.5675 3.74 10.7875 3.74 12.0575C3.74 14.9175 7.44 17.2475 11.99 17.2475C12.05 17.2475 12.11 17.2475 12.17 17.2475L10.46 15.5375C10.17 15.2475 10.17 14.7675 10.46 14.4775C10.75 14.1875 11.23 14.1875 11.52 14.4775L14.52 17.4775H14.53ZM12 5.2575C11.93 5.2575 11.87 5.2575 11.8 5.2575L13.53 3.5275C13.82 3.2375 13.82 2.7575 13.53 2.4675C13.24 2.1775 12.76 2.1775 12.47 2.4675L9.47 5.4675C9.18 5.7575 9.18 6.2375 9.47 6.5275L12.47 9.5275C12.62 9.6775 12.81 9.7475 13 9.7475C13.19 9.7475 13.38 9.6775 13.53 9.5275C13.82 9.2375 13.82 8.7575 13.53 8.4675L11.82 6.7575C11.88 6.7575 11.94 6.7575 12 6.7575C16.55 6.7575 20.25 9.0875 20.25 11.9475C20.25 13.2075 19.5 14.4375 18.14 15.3975C17.8 15.6375 17.72 16.1075 17.96 16.4475C18.11 16.6575 18.34 16.7675 18.57 16.7675C18.72 16.7675 18.87 16.7275 19 16.6275C20.77 15.3775 21.75 13.7175 21.75 11.9575C21.75 8.2675 17.38 5.2675 12 5.2675V5.2575Z"/></svg>`,"folder-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.72 9.24C21.45 8.92 21.12 8.67 20.75 8.5V8C20.75 6.48 19.52 5.25 18 5.25H10.65C10.32 4.1 9.26 3.25 8 3.25H6C4.48 3.25 3.25 4.48 3.25 6V18C3.25 19.52 4.48 20.75 6 20.75H18.33C19.66 20.75 20.8 19.8 21.04 18.49L22.31 11.49C22.46 10.69 22.24 9.86 21.72 9.24ZM4.75 18V6C4.75 5.31 5.31 4.75 6 4.75H8C8.69 4.75 9.25 5.31 9.25 6C9.25 6.41 9.59 6.75 10 6.75H18C18.69 6.75 19.25 7.31 19.25 8V8.25H9.27C7.94 8.25 6.8 9.2 6.56 10.51L5.29 17.51C5.19 18.07 5.27 18.64 5.51 19.15C5.06 18.96 4.75 18.52 4.75 18ZM20.83 11.22L19.56 18.22C19.45 18.81 18.94 19.25 18.33 19.25H8C7.63 19.25 7.28 19.09 7.04 18.8C6.8 18.51 6.7 18.14 6.77 17.78L8.04 10.78C8.15 10.19 8.66 9.75 9.27 9.75H19.6C19.97 9.75 20.32 9.91 20.56 10.2C20.8 10.49 20.9 10.86 20.83 11.22Z"/></svg>`,"fullsize-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 3.25H4C3.04 3.25 2.25 4.04 2.25 5V11C2.25 11.96 3.04 12.75 4 12.75H12C12.96 12.75 13.75 11.96 13.75 11V5C13.75 4.04 12.96 3.25 12 3.25ZM12.25 11C12.25 11.14 12.14 11.25 12 11.25H4C3.86 11.25 3.75 11.14 3.75 11V5C3.75 4.86 3.86 4.75 4 4.75H12C12.14 4.75 12.25 4.86 12.25 5V11Z"/></svg>`,"image-48x48":`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M33 10.25H15C12.38 10.25 10.25 12.38 10.25 15V33C10.25 35.62 12.38 37.75 15 37.75H33C35.62 37.75 37.75 35.62 37.75 33V15C37.75 12.38 35.62 10.25 33 10.25ZM36.25 33C36.25 34.79 34.79 36.25 33 36.25H15C13.21 36.25 11.75 34.79 11.75 33V15C11.75 13.21 13.21 11.75 15 11.75H33C34.79 11.75 36.25 13.21 36.25 15V33ZM30.5 14.25C28.71 14.25 27.25 15.71 27.25 17.5C27.25 19.29 28.71 20.75 30.5 20.75C32.29 20.75 33.75 19.29 33.75 17.5C33.75 15.71 32.29 14.25 30.5 14.25ZM30.5 19.25C29.54 19.25 28.75 18.46 28.75 17.5C28.75 16.54 29.54 15.75 30.5 15.75C31.46 15.75 32.25 16.54 32.25 17.5C32.25 18.46 31.46 19.25 30.5 19.25ZM29.26 26.28C28.94 25.92 28.49 25.71 28.01 25.7C27.54 25.68 27.07 25.87 26.73 26.2L24.95 27.94L22.28 25.23C21.94 24.89 21.5 24.71 21 24.71C20.52 24.71 20.06 24.93 19.74 25.28L14.74 30.78C14.25 31.3 14.12 32.06 14.41 32.72C14.69 33.36 15.28 33.75 15.95 33.75H32.07C32.74 33.75 33.33 33.35 33.61 32.72C33.89 32.06 33.77 31.31 33.29 30.79L29.27 26.29L29.26 26.28ZM32.22 32.12C32.18 32.2 32.13 32.25 32.06 32.25H15.94C15.87 32.25 15.81 32.21 15.78 32.12C15.77 32.09 15.71 31.93 15.83 31.8L20.84 26.29C20.9 26.22 20.99 26.21 21.02 26.21C21.06 26.21 21.14 26.22 21.2 26.29L24.4 29.54C24.69 29.83 25.16 29.84 25.46 29.54L27.77 27.27C27.83 27.21 27.9 27.2 27.94 27.2C28.01 27.2 28.06 27.21 28.13 27.28L32.16 31.79C32.16 31.79 32.16 31.79 32.17 31.8C32.29 31.93 32.23 32.09 32.22 32.12Z"/></svg>`,"loading-48x48":`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"/>
87<path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z"/></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"/></clipPath></defs></svg>`,"maximize-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 3V7C13.75 7.41 13.41 7.75 13 7.75C12.59 7.75 12.25 7.41 12.25 7V4.81L9.53 7.53C9.38 7.68 9.19 7.75 9 7.75C8.81 7.75 8.62 7.68 8.47 7.53C8.18 7.24 8.18 6.76 8.47 6.47L11.19 3.75H9C8.59 3.75 8.25 3.41 8.25 3C8.25 2.59 8.59 2.25 9 2.25H13C13.1 2.25 13.19 2.27 13.29 2.31C13.47 2.39 13.62 2.53 13.7 2.72C13.74 2.81 13.76 2.91 13.76 3.01L13.75 3ZM7.53 8.47C7.24 8.18 6.76 8.18 6.47 8.47L3.75 11.19V9C3.75 8.59 3.41 8.25 3 8.25C2.59 8.25 2.25 8.59 2.25 9V13C2.25 13.1 2.27 13.19 2.31 13.29C2.39 13.47 2.53 13.62 2.72 13.7C2.81 13.74 2.91 13.76 3.01 13.76H7.01C7.42 13.76 7.76 13.42 7.76 13.01C7.76 12.6 7.42 12.26 7.01 12.26H4.82L7.54 9.54C7.83 9.25 7.83 8.77 7.54 8.48L7.53 8.47Z"/></svg>`,"minimize-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 8C13.75 8.41 13.41 8.75 13 8.75H3C2.59 8.75 2.25 8.41 2.25 8C2.25 7.59 2.59 7.25 3 7.25H13C13.41 7.25 13.75 7.59 13.75 8Z"/></svg>`,"more-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 10.25C11.04 10.25 10.25 11.04 10.25 12C10.25 12.96 11.04 13.75 12 13.75C12.96 13.75 13.75 12.96 13.75 12C13.75 11.04 12.96 10.25 12 10.25ZM11.75 12C11.75 11.86 11.86 11.75 12 11.75C12.14 11.75 12.25 11.86 12.25 12C12.25 12.28 11.75 12.28 11.75 12ZM19 10.25C18.04 10.25 17.25 11.04 17.25 12C17.25 12.96 18.04 13.75 19 13.75C19.96 13.75 20.75 12.96 20.75 12C20.75 11.04 19.96 10.25 19 10.25ZM18.75 12C18.75 11.86 18.86 11.75 19 11.75C19.14 11.75 19.25 11.86 19.25 12C19.25 12.28 18.75 12.28 18.75 12ZM5 10.25C4.04 10.25 3.25 11.04 3.25 12C3.25 12.96 4.04 13.75 5 13.75C5.96 13.75 6.75 12.96 6.75 12C6.75 11.04 5.96 10.25 5 10.25ZM4.75 12C4.75 11.86 4.86 11.75 5 11.75C5.14 11.75 5.25 11.86 5.25 12C5.25 12.28 4.75 12.28 4.75 12Z"/></svg>`,"navmenu-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3.25 7C3.25 6.59 3.59 6.25 4 6.25H15C15.41 6.25 15.75 6.59 15.75 7C15.75 7.41 15.41 7.75 15 7.75H4C3.59 7.75 3.25 7.41 3.25 7ZM20 11.25H4C3.59 11.25 3.25 11.59 3.25 12C3.25 12.41 3.59 12.75 4 12.75H20C20.41 12.75 20.75 12.41 20.75 12C20.75 11.59 20.41 11.25 20 11.25ZM9 16.25H4C3.59 16.25 3.25 16.59 3.25 17C3.25 17.41 3.59 17.75 4 17.75H9C9.41 17.75 9.75 17.41 9.75 17C9.75 16.59 9.41 16.25 9 16.25Z"/></svg>`,"noimage-48x48":`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M30.4975 14.2475C28.7075 14.2475 27.2475 15.7075 27.2475 17.4975C27.2475 19.2875 28.7075 20.7475 30.4975 20.7475C32.2875 20.7475 33.7475 19.2875 33.7475 17.4975C33.7475 15.7075 32.2875 14.2475 30.4975 14.2475ZM30.4975 19.2475C29.5375 19.2475 28.7475 18.4575 28.7475 17.4975C28.7475 16.5375 29.5375 15.7475 30.4975 15.7475C31.4575 15.7475 32.2475 16.5375 32.2475 17.4975C32.2475 18.4575 31.4575 19.2475 30.4975 19.2475ZM13.5175 11.2175C13.4375 10.8075 13.7075 10.4175 14.1175 10.3375C14.4275 10.2775 14.7175 10.2475 14.9975 10.2475H32.9975C35.6175 10.2475 37.7475 12.3775 37.7475 14.9975V32.9975C37.7475 33.2775 37.7175 33.5675 37.6575 33.8775C37.5875 34.2375 37.2775 34.4875 36.9175 34.4875C36.8675 34.4875 36.8275 34.4875 36.7775 34.4775C36.3675 34.3975 36.1075 34.0075 36.1775 33.5975C36.2175 33.3775 36.2375 33.1775 36.2375 32.9975V14.9975C36.2375 13.2075 34.7775 11.7475 32.9875 11.7475H14.9975C14.8075 11.7475 14.6175 11.7675 14.3975 11.8075C13.9875 11.8875 13.5975 11.6175 13.5175 11.2075V11.2175ZM34.4775 36.7775C34.5575 37.1875 34.2875 37.5775 33.8775 37.6575C33.5675 37.7175 33.2775 37.7475 32.9975 37.7475H14.9975C12.3775 37.7475 10.2475 35.6175 10.2475 32.9975V14.9975C10.2475 14.7175 10.2775 14.4275 10.3375 14.1175C10.4175 13.7075 10.8075 13.4375 11.2175 13.5175C11.6275 13.5975 11.8875 13.9875 11.8175 14.3975C11.7775 14.6175 11.7575 14.8175 11.7575 14.9975V32.9975C11.7575 34.7875 13.2175 36.2475 15.0075 36.2475H33.0075C33.1975 36.2475 33.3875 36.2275 33.6075 36.1875C34.0075 36.1075 34.4075 36.3775 34.4875 36.7875L34.4775 36.7775ZM15.8275 31.7975C15.6975 31.9375 15.7575 32.0875 15.7775 32.1175C15.8175 32.1975 15.8675 32.2475 15.9375 32.2475H29.8175C30.2275 32.2475 30.5675 32.5875 30.5675 32.9975C30.5675 33.4075 30.2275 33.7475 29.8175 33.7475H15.9375C15.2675 33.7475 14.6775 33.3475 14.3975 32.7175C14.1075 32.0575 14.2375 31.2975 14.7275 30.7775L19.7275 25.2775C20.0475 24.9275 20.5075 24.7175 20.9875 24.7075C21.4875 24.7275 21.9375 24.8875 22.2675 25.2275L25.4675 28.4775C25.7575 28.7675 25.7575 29.2475 25.4675 29.5375C25.1675 29.8275 24.6975 29.8275 24.4075 29.5375L21.2075 26.2875C21.1475 26.2175 21.0675 26.1875 21.0275 26.2075C20.9875 26.2075 20.9075 26.2175 20.8475 26.2875L15.8375 31.7975H15.8275ZM38.5275 38.5275C38.3775 38.6775 38.1875 38.7475 37.9975 38.7475C37.8075 38.7475 37.6175 38.6775 37.4675 38.5275L9.4675 10.5275C9.1775 10.2375 9.1775 9.7575 9.4675 9.4675C9.7575 9.1775 10.2375 9.1775 10.5275 9.4675L38.5275 37.4675C38.8175 37.7575 38.8175 38.2375 38.5275 38.5275Z"/></svg>`,"ranking-arrows":`<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"/><path d="M6 19V15H4V19H0L5 24L10 19H6Z"/></svg>`,"rankingundefined-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"/></svg>`,"rating-star-2":`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.
876102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"/><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"/></svg>`,"rating-star-small-2":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"/><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"/></svg>`,"rating-star-small":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"/></g></svg>`,"rating-star":`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.
876102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"/></g></svg>`,"reorder-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8.9444 10.75H15.0544C15.7144 10.75 16.3144 10.39 16.6144 9.80002C16.9144 9.22002 16.8644 8.52002 16.4844 7.98002L13.4244 3.71002C12.7644 2.79002 11.2344 2.79002 10.5744 3.71002L7.5244 7.99002C7.1444 8.53002 7.0944 9.22002 7.3944 9.81002C7.6944 10.4 8.2944 10.76 8.9544 10.76L8.9444 10.75ZM8.7444 8.86002L11.7944 4.58002C11.8644 4.49002 11.9544 4.48002 11.9944 4.48002C12.0344 4.48002 12.1344 4.49002 12.1944 4.58002L15.2544 8.86002C15.3344 8.97002 15.3044 9.07002 15.2744 9.12002C15.2444 9.17002 15.1844 9.26002 15.0544 9.26002H8.9444C8.8144 9.26002 8.7444 9.18002 8.7244 9.12002C8.7044 9.06002 8.6644 8.97002 8.7444 8.86002ZM15.0544 13.25H8.9444C8.2844 13.25 7.6844 13.61 7.3844 14.2C7.0844 14.78 7.1344 15.48 7.5144 16.02L10.5744 20.3C10.9044 20.76 11.4344 21.03 11.9944 21.03C12.5544 21.03 13.0944 20.76 13.4144 20.3L16.4744 16.02C16.8544 15.48 16.9044 14.79 16.6044 14.2C16.3044 13.61 15.7044 13.25 15.0444 13.25H15.0544ZM15.2644 15.15L12.2044 19.43C12.0744 19.61 11.9244 19.61 11.7944 19.43L8.7344 15.15C8.6544 15.04 8.6844 14.94 8.7144 14.89C8.7444 14.84 8.8044 14.75 8.9344 14.75H15.0444C15.1744 14.75 15.2444 14.83 15.2644 14.89C15.2844 14.95 15.3244 15.04 15.2444 15.15H15.2644Z"/></svg>`,"restoredown-16x16":`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M7.69 8.71C7.73 8.8 7.75 8.9 7.75 9V13C7.75 13.41 7.41 13.75 7 13.75C6.59 13.75 6.25 13.41 6.25 13V10.81L3.53 13.53C3.38 13.68 3.19 13.75 3 13.75C2.81 13.75 2.62 13.68 2.47 13.53C2.18 13.24 2.18 12.76 2.47 12.47L5.19 9.75H3C2.59 9.75 2.25 9.41 2.25 9C2.25 8.59 2.59 8.25 3 8.25H7C7.1 8.25 7.19 8.27 7.29 8.31C7.47 8.39 7.62 8.53 7.7 8.72L7.69 8.71ZM13 6.25H10.81L13.53 3.53C13.82 3.24 13.82 2.76 13.53 2.47C13.24 2.18 12.76 2.18 12.47 2.47L9.75 5.19V3C9.75 2.59 9.41 2.25 9 2.25C8.59 2.25 8.25 2.59 8.25 3V7C8.25 7.1 8.27 7.19 8.31 7.29C8.39 7.47 8.53 7.62 8.72 7.7C8.81 7.74 8.91 7.76 9.01 7.76H13.01C13.42 7.76 13.76 7.42 13.76 7.01C13.76 6.6 13.42 6.26 13.01 6.26L13 6.25Z"/></svg>`,"search-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.9975 2.25C9.7275 2.25 6.2475 5.73 6.2475 10C6.2475 11.87 6.9075 13.58 8.0175 14.92L2.4675 20.47C2.1775 20.76 2.1775 21.24 2.4675 21.53C2.6175 21.68 2.8075 21.75 2.9975 21.75C3.1875 21.75 3.3775 21.68 3.5275 21.53L9.0775 15.98C10.4175 17.08 12.1275 17.75 13.9975 17.75C18.2675 17.75 21.7475 14.27 21.7475 10C21.7475 5.73 18.2675 2.25 13.9975 2.25ZM13.9975 16.25C10.5475 16.25 7.7475 13.45 7.7475 10C7.7475 6.55 10.5475 3.75 13.9975 3.75C17.4475 3.75 20.2475 6.55 20.2475 10C20.2475 13.45 17.4475 16.25 13.9975 16.25Z"/></svg>`,"smiley-rate1-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"/></svg>`,"smiley-rate10-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.870
875 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"/></svg>`,"smiley-rate2-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"/></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"/></clipPath></defs></svg>`,"smiley-rate3-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"/></svg>`,"smiley-rate4-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"/></svg>`,"smiley-rate5-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"/></svg>`,"smiley-rate6-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"/></svg>`,"smiley-rate7-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
87<path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"/></svg>`,"smiley-rate8-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"/></svg>`,"smiley-rate9-24x24":`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"/></svg>`},oB=class extends g.Component{constructor(e){super(e),this.rootRef=g.createRef(),this.model=new GR,this.model.onInnerHeightChanged=e=>{this.props.onInnerHeightChanged&&this.props.onInnerHeightChanged(e)}}componentDidMount(){let e=this.rootRef.current;e&&this.model.setRootElement(e)}componentWillUnmount(){this.model.unsubscribeRootElement(),this.model.setRootElement(void 0)}render(){return this.props.disabled?g.createElement(g.Fragment,null,this.props.children):g.createElement(`div`,{ref:this.rootRef,className:`sv-scroll__wrapper`},g.createElement(`div`,{className:`sv-scroll__scroller sv-drag-target-skipped`,onScroll:()=>this.model.onScrollContainer()},g.createElement(`div`,{className:`sv-scroll__container`},this.props.children)),g.createElement(`div`,{className:`sv-scroll__scrollbar`,onScroll:()=>this.model.onScrollScrollbar()},g.createElement(`div`,{className:`sv-scroll__scrollbar-sizer`})))}};Mz.Instance.registerElement(`svc-scroll`,e=>g.createElement(oB,e)),jz(`v1`,iB),jz(`v2`,aB),kz.registerIcons(aB);var sB=class extends Pz{constructor(e){super(e),this.previousJSON={},this.isSurveyUpdated=!1,this.createSurvey(e),this.updateSurvey(e,{}),this.rootRef=g.createRef(),this.rootNodeId=e.id||null,this.rootNodeClassName=e.className||``}getStateElement(){return this.survey}onSurveyUpdated(){if(this.survey){let e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI(),this.setSurveyEvents()}}shouldComponentUpdate(e,t){return super.shouldComponentUpdate(e,t)?(this.isModelJSONChanged(e)&&(this.destroySurvey(),this.createSurvey(e),this.updateSurvey(e,{}),this.isSurveyUpdated=!0),!0):!1}componentDidUpdate(e,t){super.componentDidUpdate(e,t),this.updateSurvey(this.props,e),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)}componentDidMount(){super.componentDidMount(),this.onSurveyUpdated()}destroySurvey(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())}componentWillUnmount(){super.componentWillUnmount(),this.destroySurvey()}doRender(){let e;e=this.survey.state==`completed`?this.renderCompleted():this.survey.state==`completedbefore`?this.renderCompletedBefore():this.survey.state==`loading`?this.renderLoading():this.survey.state==`empty`?this.renderEmptySurvey():this.renderSurvey();let t=this.survey.backgroundImage?g.createElement(`div`,{className:this.css.rootBackgroun
87dImage,style:this.survey.backgroundImageStyle}):null,n=this.survey.headerView===`basic`?g.createElement(Zz,{survey:this.survey}):null,r=function(e){e.preventDefault()},i=g.createElement(`div`,{className:`sv_custom_header`});this.survey.hasLogo&&(i=null);let a=this.survey.getRootCss(),o=this.rootNodeClassName?this.rootNodeClassName+` `+a:a;return g.createElement(`div`,{id:this.rootNodeId,ref:this.rootRef,className:o,style:this.survey.themeVariables,lang:this.survey.locale||`en`,dir:this.survey.localeDir},g.createElement(oB,{disabled:this.survey.rootScrollDisabled},this.survey.needRenderIcons?g.createElement(nB,null):null,g.createElement(rB,null),g.createElement(`div`,{className:this.survey.wrapperFormCss},t,g.createElement(`form`,{onSubmit:r},g.createElement(oB,{disabled:this.survey.formScrollDisabled},i,g.createElement(`div`,{className:this.css.container},n,g.createElement(tB,{survey:this.survey,container:`header`,needRenderWrapper:!1}),e,g.createElement(tB,{survey:this.survey,container:`footer`,needRenderWrapper:!1})))),g.createElement(eB,{notifier:this.survey.notifier}))))}renderElement(){return this.doRender()}get css(){return this.survey.css}set css(e){this.survey.css=e}renderCompleted(){if(!this.survey.showCompletedPage)return null;var e={__html:this.survey.processedCompletedHtml};return g.createElement(g.Fragment,null,g.createElement(`div`,{dangerouslySetInnerHTML:e,className:this.survey.completedCss}),g.createElement(tB,{survey:this.survey,container:`completePage`,needRenderWrapper:!1}))}renderCompletedBefore(){var e={__html:this.survey.processedCompletedBeforeHtml};return g.createElement(`div`,{dangerouslySetInnerHTML:e,className:this.survey.completedBeforeCss})}renderLoading(){var e={__html:this.survey.processedLoadingHtml};return g.createElement(`div`,{dangerouslySetInnerHTML:e,className:this.survey.loadingBodyCss})}renderSurvey(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null;this.survey.isShowStartingPage;var t=this.survey.activePage?this.survey.activePage.id:``;let n=this.survey.bodyCss,r={};return this.survey.renderedWidth&&(r.maxWidth=this.survey.renderedWidth),g.createElement(`div`,{className:this.survey.bodyContainerCss},g.createElement(tB,{survey:this.survey,container:`left`}),g.createElement(`div`,{className:`sv-components-column sv-components-column--expandable`},g.createElement(tB,{survey:this.survey,container:`center`}),g.createElement(`div`,{id:t,className:n,style:r},g.createElement(tB,{survey:this.survey,container:`contentTop`}),e,g.createElement(tB,{survey:this.survey,container:`contentBottom`}),this.survey.showBrandInfo?g.createElement($z,null):null)),g.createElement(tB,{survey:this.survey,container:`right`}))}renderPage(e){return Mz.Instance.createElement(this.survey.pageComponent||`sv-page`,{survey:this.survey,page:e,css:this.css,creator:this})}renderEmptySurvey(){return g.createElement(`div`,{className:this.css.bodyEmpty},this.survey.emptySurveyText)}createSurvey(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new Z(e.json)):this.survey=new Z,e.css&&(this.survey.css=this.css)}isModelJSONChanged(e){return e.model?this.survey!==e.model:e.json?!K.isTwoValueEquals(e.json,this.previousJSON):!1}updateSurvey(e,t){if(e){for(var n in t=t||{},e)if(n!=`model`&&n!=`children`&&n!=`json`){if(n==`css`){this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss();continue}e[n]!==t[n]&&(n.indexOf(`on`)==0&&this.survey[n]&&this.survey[n].add?(t[n]&&this.survey[n].remove(t[n]),this.survey[n].add(e[n])):this.survey[n]=e[n])}}}setSurveyEvents(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add(t=>{e.state&&e.setState(e.state)})}createQuestionElement(e){return Qz.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})}renderError(e,t,n,r){return Mz.Instance.createElement(this.survey.questionErrorComponent,{key:e,error:t,cssClasse
87s:n,element:r})}questionTitleLocation(){return this.survey.questionTitleLocation}questionErrorLocation(){return this.survey.questionErrorLocation}};Mz.Instance.registerElement(`survey`,e=>g.createElement(sB,e));function cB(e,t,n={processEsc:!0,disableTabStop:!1}){let r={};return t&&t.disableTabStop||n&&n.disableTabStop?r={tabIndex:-1}:(n=Object.assign({},n),r={tabIndex:0,onKeyUp:e=>{e.preventDefault(),e.stopPropagation(),XI(e,n)},onKeyDown:e=>ZI(e,n),onBlur:e=>YI(e)}),r.onPointerUp=e=>{if(e.pointerType===`pen`){e.preventDefault(),e.stopPropagation();let t=e.target;t!=null&&t.click&&t.click()}},g.cloneElement(e,r)}var lB=class extends Pz{constructor(e){super(e),this.updateStateFunction=null,this.state={update:0}}get survey(){return this.props.survey}get css(){return this.props.css||this.survey.css}componentDidMount(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}}componentWillUnmount(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)}},uB=class extends Fz{constructor(e){super(e),this.circleLength=440}getStateElement(){return this.timerModel}get timerModel(){return this.props.model}get progress(){return-this.timerModel.progress*this.circleLength}render(){if(!this.timerModel.isRunning)return null;let e=g.createElement(`div`,{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){let t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},n=this.timerModel.showProgress?g.createElement(Rz,{className:this.timerModel.getProgressCss(),style:t,iconName:`icon-timercircle`,size:`auto`}):null;e=g.createElement(`div`,{className:this.timerModel.rootCss},n,g.createElement(`div`,{className:this.timerModel.textContainerCss},g.createElement(`span`,{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?g.createElement(`span`,{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e}};Mz.Instance.registerElement(`sv-timerpanel`,e=>g.createElement(uB,e));var dB=class extends Pz{constructor(e){super(e),this.element.cssClasses,this.rootRef=g.createRef()}getStateElement(){return this.element}get element(){return this.props.element}get index(){return this.props.index}get row(){return this.props.row}get survey(){return this.props.survey}get creator(){return this.props.creator}get css(){return this.props.css}componentDidMount(){super.componentDidMount(),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)}componentWillUnmount(){super.componentWillUnmount(),this.element.setWrapperElement(void 0)}shouldComponentUpdate(e,t){return super.shouldComponentUpdate(e,t)?(e.element!==this.element&&(e.element&&e.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0):!1}renderElement(){let e=this.element,t=this.createElement(e,this.index),n=e.cssClassesValue;return g.createElement(`div`,{className:n.questionWrapper,style:e.rootStyle,"data-key":e.name+this.index,onFocus:()=>{let t=e;t&&t.isQuestion&&t.focusIn()},ref:this.rootRef},t)}createElement(e,t){if(!this.row.isNeedRender)return Mz.Instance.createElement(e.skeletonComponentName,{element:e,css:this.css});let n=e.getTemplate();return Mz.Instance.isElementRegistered(n)||(n=`question`),Mz.Instance.createElement(n,{element:e,creator:this.creator,survey:this.survey,css:this.css})}},fB=class extends Pz{constructor(e){super(e),this.rootRef=g.createRef(),this.recalculateCss()}recalculateCss(){this.row.visibleElements.map(e=>e.cssClasses)}getStateElement(){return this.row}get row(){return this.props.row}get survey(){return this.props.survey}get creator(){return this.props.creator}get css(){return this.props.css}canRender(){return!!this.row&&!!this.survey&&!!this.creator}renderElementContent(){let e=this.row.visibleElements.map((e,t)=>g.createElement(dB,{element:e,index:t,row:this.row,survey:this.survey,creator:this.creator,css:this.css,key:e.id}));return g.createElement(`div`,{ref:this.rootRef,className:this.row.getRowCss()},e)}renderElement(){let e=this.survey,t=this.renderElementContent();return Nz.wrapRow(e,t,this.row)||t}componentDidMount(){super.componentDidMount();var e=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),e&&!this.row.isNeedRender){var t=e;this.lazyRenderingTimeout=setTimeout(()=>{this.row.startLazyRendering(t)},10)}}shouldComponentUpdate(e,t){return super.shouldComponentUpdate(e,t)?(e.row!==this.row&&(e.row.isNeedRender=this.row.isNeedRender,e.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0):!1}stopLazyRendering(){clearTimeout(this.lazyRenderingTimeout),this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()}componentWillUnmount(){super.componentWillUnmount(),this.row&&(this.row.hasActiveUISubscribers||(this.row.setRootElement(void 0),this.stopLazyRendering()))}createElement(e,t){let n=t?`-`+t:0;var r=e.getType();return Mz.Instance.isElementRegistered(r)||(r=`question`),Mz.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})}},pB=class extends Pz{constructor(e){super(e),this.rootRef=g.createRef()}getStateElement(){return this.panelBase}canUsePropInState(e){return e!==`elements`&&super.canUsePropInState(e)}
87get survey(){return this.getSurvey()}get creator(){return this.props.creator}get css(){return this.getCss()}get panelBase(){return this.getPanelBase()}getPanelBase(){return this.props.element||this.props.question}getSurvey(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)}getCss(){return this.props.css}componentDidMount(){super.componentDidMount(),this.doAfterRender()}componentWillUnmount(){super.componentWillUnmount();var e=this.rootRef.current;e&&e.removeAttribute(`data-rendered`)}componentDidUpdate(e,t){super.componentDidUpdate(e,t),!(e.page&&this.survey&&this.survey.activePage&&e.page.id===this.survey.activePage.id)&&this.doAfterRender()}doAfterRender(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.panelBase.afterRender(e):this.survey.afterRenderPage(e))}getIsVisible(){return this.panelBase.isVisible}canRender(){return super.canRender()&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()}renderRows(e){return this.panelBase.visibleRows.map(t=>this.createRow(t,e))}createRow(e,t){return g.createElement(fB,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})}},mB=class extends Pz{getStateElement(){return this.props.counter}renderElement(){return g.createElement(`div`,{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)}};Mz.Instance.registerElement(`sv-character-counter`,e=>g.createElement(mB,e));var hB=class extends Pz{constructor(e){super(e),this.initialValue=this.viewModel.getTextValue()||``,this.textareaRef=g.createRef()}get viewModel(){return this.props.viewModel}canRender(){return!!this.viewModel.question}componentDidMount(){super.componentDidMount();let e=this.textareaRef.current;e&&this.viewModel.setElement(e)}componentWillUnmount(){super.componentWillUnmount(),this.viewModel.resetElement()}renderElement(){return g.createElement(`textarea`,{id:this.viewModel.id,className:this.viewModel.className,ref:this.textareaRef,disabled:this.viewModel.isDisabledAttr,readOnly:this.viewModel.isReadOnlyAttr,rows:this.viewModel.rows,cols:this.viewModel.cols,placeholder:this.viewModel.placeholder,maxLength:this.viewModel.maxLength,defaultValue:this.initialValue,onChange:e=>{this.viewModel.onTextAreaInput(e)},onFocus:e=>{this.viewModel.onTextAreaFocus(e)},onBlur:e=>{this.viewModel.onTextAreaBlur(e)},onKeyDown:e=>{this.viewModel.onTextAreaKeyDown(e)},"aria-required":this.viewModel.ariaRequired,"aria-label":this.viewModel.ariaLabel,"aria-labelledby":this.viewModel.ariaLabelledBy,"aria-describedby":this.viewModel.ariaDescribedBy,"aria-invalid":this.viewModel.ariaInvalid,"aria-errormessage":this.viewModel.ariaErrormessage,style:{resize:this.viewModel.question.resizeStyle}})}};Mz.Instance.registerElement(`sv-text-area`,e=>g.createElement(hB,e));var gB=class extends Lz{renderCharacterCounter(){let e=null;return this.question.getMaxLength()&&(e=g.createElement(mB,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter})),e}constructor(e){super(e)}renderElement(){if(this.question.isReadOnlyRenderDiv())return g.createElement(`div`,null,this.question.value);let e=this.renderCharacterCounter(),t=this.props.question.textAreaModel;return g.createElement(g.Fragment,null,g.createElement(hB,{viewModel:t}),e)}},_B=class extends Fz{constructor(e){super(e),this.textAreaModel=this.getTextAreaModel()}canRender(){return!!this.props.question}getTextAreaModel(){return this.props.question.commentTextAreaModel}renderElement(){if(this.props.question.isReadOnlyRenderDiv()){let e=this.textAreaModel.getTextValue()||``;return g.createElement(`div`,null,e)}return g.createElement(hB,{key:this.getKey(),viewModel:this.textAreaModel})}getKey(){}},vB=class extends _B{constructor(e){super(e)}getTextAreaModel(){return this.props.question.getCommentTextAreaModel(this.props.item)}getKey(){return this.props.item.uniqueId}};Qz.Instance.registerQuestion(`comment`,e=>g.createElement(gB,e));var yB=class extends Iz{constructor(e){super(e),this.widgetRef=g.createRef()}_afterRender(){if(this.questionBase.customWidget){let e=this.widgetRef.current;
87e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}}componentDidMount(){super.componentDidMount(),this.questionBase&&this._afterRender()}componentDidUpdate(e,t){super.componentDidUpdate(e,t);var n=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!n&&this._afterRender()}componentWillUnmount(){if(super.componentWillUnmount(),this.questionBase.customWidget){let e=this.widgetRef.current;e&&this.questionBase.customWidget.willUnmount(this.questionBase,e)}}canRender(){return super.canRender()&&this.questionBase.visible}renderElement(){let e=this.questionBase.customWidget;if(e.isDefaultRender)return g.createElement(`div`,{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));let t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){let t={__html:e.htmlTemplate};return g.createElement(`div`,{ref:this.widgetRef,dangerouslySetInnerHTML:t})}return g.createElement(`div`,{ref:this.widgetRef},t)}},bB=class extends Pz{get element(){return this.props.element}getRenderedElements(){return[this.element]}renderElement(){let e=this.element,t=e.hasTitle?g.createElement(Xz,{element:e}):null,n=e.hasDescriptionUnderTitle?Pz.renderQuestionDescription(this.element):null,r=e.hasAdditionalTitleToolbar?g.createElement(qz,{model:e.additionalTitleToolbar}):null,i={width:void 0};return e instanceof zP&&(i.width=e.titleWidth),g.createElement(`div`,{className:e.cssHeader,onClick:t=>e.clickTitleFunction&&e.clickTitleFunction(t.nativeEvent),style:i},t,n,r)}},xB=class extends Fz{constructor(e){super(e)}get css(){return this.props.css}get summary(){return this.props.summary}renderElement(){return this.summary?this.summary.isEmpty()?this.renderNoItems():this.renderItems():null}renderItems(){return g.createElement(`div`,{className:this.css.summary},this.summary.items.map((e,t)=>this.renderItem(e,t)))}renderNoItems(){let e=this.summary.question;return Mz.Instance.createElement(`sv-placeholder-`+e.getTemplate(),{cssClasses:this.css,question:e})||g.createElement(`div`,null,this.renderLocString(this.summary.noEntry))}renderItem(e,t){let n=e.btnEdit?g.createElement(`button`,{className:this.css.summaryRowActionEdit,onClick:()=>e.btnEdit.action(),title:e.btnEdit.title},g.createElement(Rz,{iconName:`icon-editsmall-16x16`,iconSize:`auto`})):null,r=e.showRemove&&e.btnRemove?g.createElement(`button`,{className:this.css.summaryRowActionDelete,onClick:()=>e.btnRemove.action(),title:e.btnRemove.title},g.createElement(Rz,{iconName:`icon-delete-16x16`,iconSize:`auto`})):null;return g.createElement(`div`,{className:this.css.summaryRow,key:t},g.createElement(`div`,{className:this.css.summaryRowContent},this.renderLocString(e.locText)),g.createElement(`div`,{className:this.css.summaryRowActions},n,r))}};Mz.Instance.registerElement(`sv-singleinput-summary`,e=>g.createElement(xB,e));var SB=class extends Pz{constructor(e){super(e)}getStateElement(){return this.props.model}get items(){return this.props.model.actions}get css(){return this.props.css}renderElement(){if(!this.items||!this.items.length)return null;let e=this.renderItems();return g.createElement(`div`,{className:this.css.breadcrumbsRoot},e)}renderItems(){let e=[];return this.items.concat([]).forEach((t,n)=>{n&&e.push(g.createElement(Rz,{key:t.renderedId+`_separator`,className:this.css.breadcrumbsSeparator,iconName:`arrowright-16x16`,size:`auto`})),e.push(g.createElement(Vz,{key:t.renderedId,item:t}))}),e}};Mz.Instance.registerElement(`sv-breadcrumbs`,e=>g.createElement(SB,e));var CB=class e extends Pz{static renderQuestionBody(e,t){return t.customWidget?g.createElement(yB,{creator:e,question:t}):e.createQuestionElement(t)}constructor(e){super(e),this.isNeedFocus=!1,this.rootRef=g.createRef()}getStateElement(){return this.question}get question(){return this.props.element}get creator(){return this.props.creator}componentDidMount(){super.componentDidMount(),this.question&&(this.question.react=this),this.doAfterRender()}componentWillUnmount(){super.componentWillUnmount(),this.question&&(this.question.react=null);let e=this.rootRef.current;e&&e.removeAttribute(`data-rendered`)}componentDidUpdate(e,t){super.componentDidUpdate(e,t),this.doAfterRender()}
87doAfterRender(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&e.getAttribute(`data-rendered`)!==`r`&&(e.setAttribute(`data-rendered`,`r`),this.question.afterRender&&this.question.afterRender(e))}}canRender(){return super.canRender()&&!!this.question&&!!this.creator}renderQuestionContent(){let e=this.question;var t={display:this.question.renderedIsExpanded?``:`none`},n=e.cssClasses,r=this.renderQuestion(),i=e&&e.hasComment?this.renderComment(n):null,a=e.hasDescriptionUnderInput?this.renderDescription():null;return g.createElement(`div`,{className:e.cssContent||void 0,style:t,"aria-hidden":e.contentAriaHidden,role:`presentation`,"data-sv-drop-target-matrix":this.question.dragDropMatrixAttribute,"data-sv-drop-target-matrix-row":this.question.dragDropMatrixAttribute},r,i,a)}renderElement(){var e=this.question,t=e.cssClasses,n=this.renderHeader(e),r=e.hasTitleOnLeftTop?n:null,i=e.hasTitleOnBottom?n:null;let a=this.question.showErrorsAboveQuestion?this.renderErrors(t,``):null,o=this.question.showErrorsBelowQuestion?this.renderErrors(t,``):null,s=e.getRootStyle(),c=e.singleInputHasActions?this.renderSingleInputBreadcrumbs(e,t):void 0,l=(e.singleInputSummary?this.renderSingleInputSummary(e,t):void 0)||(e.singleInputQuestion?this.renderSingleInputQuestion(e,t):void 0)||this.wrapQuestionContent(this.renderQuestionContent());return g.createElement(g.Fragment,null,g.createElement(`div`,{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:s,"data-name":e.name,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-label":this.question.ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,"aria-expanded":e.ariaExpanded},c,a,r,l,i,o))}renderSingleInputQuestion(t,n){let r=t.singleInputQuestion,i=r.id;return g.createElement(e,{key:i,element:r,creator:this.creator,css:n})}renderSingleInputBreadcrumbs(e,t){return g.createElement(SB,{model:e.singleInputActions,css:t})}renderSingleInputSummary(e,t){return g.createElement(xB,{summary:e.singleInputSummary,creator:this.creator,css:t})}wrapElement(e){let t=this.question.survey,n=null;return t&&(n=Nz.wrapElement(t,e,this.question)),n??e}wrapQuestionContent(e){let t=this.question.survey,n=null;return t&&(n=Nz.wrapQuestionContent(t,e,this.question)),n??e}renderQuestion(){return e.renderQuestionBody(this.creator,this.question)}renderDescription(){return Pz.renderQuestionDescription(this.question)}renderComment(e){let t=Pz.renderLocString(this.question.locCommentText);return g.createElement(`div`,{className:this.question.getCommentAreaCss()},g.createElement(`div`,null,t),g.createElement(_B,{question:this.question,cssClasses:e,isDisplayMode:this.question.isInputReadOnly}))}renderHeader(e){return g.createElement(bB,{element:e})}renderErrors(e,t){return g.createElement(wB,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+`_errors`})}};Mz.Instance.registerElement(`question`,e=>g.createElement(CB,e));var wB=class extends Fz{constructor(e){super(e),this.state=this.getState()}get id(){return this.props.element.id+`_errors`}get element(){return this.props.element}get creator(){return this.props.creator}getState(e=null){return e?{error:e.error+1}:{error:0}}canRender(){return!!this.element&&this.element.hasVisibleErrors}componentWillUnmount(){}renderElement(){let e=[];for(let t=0;t<this.element.renderedErrors.length;t++){let n=`error`+t;e.push(this.creator.renderError(n,this.element.renderedErrors[t],this.cssClasses,this.element))}return g.createElement(`div`,{className:this.element.cssError,id:this.id,role:`alert`,"aria-live":`polite`,"aria-atomic":`true`},e)}},TB=class extends Fz{constructor(e){super(e)}getStateElement(){return this.question}get question(){return this.getQuestion()}get creator(){return this.props.creator}getQuestion(){return this.props.question}get itemCss(){return this.props.itemCss}componentDidMount(){super.componentDidMount(),this.doAfterRender()}componentDidUpdate(e,t){super.componentDidUpdate(e,t),this.doAfterRender()}doAfterRender(){}canRender(){return!!this.question}renderContent(){var e=this.renderQuestion();return g.createElement(g.Fragment,null,e)}getShowErrors(){return this.question.isVisible}renderQuestion(){return CB.renderQuestionBody(this.creator,this.question)}},EB=class extends TB{constructor(e){super(e),this.cellRef=g.createRef()}componentWillUnmount(){if(super.componentWillUnmount(),this.question){var e=this.cellRef.current;e&&e.removeAttribute(`data-rendered`)}}renderCellContent(){return g.createElement(`div`,{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())}renderElement(){var e=this.getCellStyle();let t=this.props.cell;return g.createElement(`td`,{ref:this.cellRef,className:this.itemCss,colSpan:t.colSpans,title:t.getTitle(),style:e,onFocus:()=>{t.focusIn()}},this.wrapCell(this.props.cell,this.renderCellContent()))}getCellStyle(){return null}getHeaderText(){return``}wrapCell(e,t){if(!e)return t;let n=this.question.survey,r=null;return n&&(r=Nz.wrapMatrixCell(n,t,e,this.props.reason)),r??t}},DB=class extends g.Component{constructor(e){super(e),this.state={changed:0},this.question&&this.registerCallback(this.question)}get question(){return this.props.question}update(){this.setState({changed:this.state.changed+1})}getQuestionPropertiesToTrack(){return[`errors`]}registerCallback(e){e.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),()=>{this.update()},`__reactSubscription`)}unRegisterCallback(e){e.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),`__reactSubscription`)}componentDidUpdate(e){e.question&&e.question!==this.question&&this.unRegisterCallback(e.cell),this.question&&this.registerCallback(this.question)}componentWillUnmount(){this.question&&this.unRegisterCallback(this.question)}render(){return g.createElement(wB,{element:this.question,creator:this.props.creator,cssClasse
87s:this.question.cssClasses})}},OB=class extends pB{constructor(e){super(e)}getPanelBase(){return this.props.page}get page(){return this.panelBase}renderElement(){var e=this.renderTitle(),t=this.renderDescription(),n=this.renderRows(this.panelBase.cssClasses);let r=g.createElement(wB,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return g.createElement(`div`,{ref:this.rootRef,className:this.page.cssRoot},e,t,r,n)}renderTitle(){return g.createElement(Xz,{element:this.page})}renderDescription(){if(!this.page._showDescription)return null;var e=Pz.renderLocString(this.page.locDescription);return g.createElement(`div`,{className:this.panelBase.cssClasses.page.description},e)}};Mz.Instance.registerElement(`sv-page`,e=>g.createElement(OB,e));var kB=class extends pB{constructor(e){super(e),this.hasBeenExpanded=!1}get panel(){return this.panelBase}renderElement(){let e=this.renderHeader(),t=g.createElement(wB,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),n={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:`none`},r=null;if(this.panel.renderedIsExpanded){let e=this.renderRows(this.panelBase.cssClasses),t=this.panelBase.cssClasses.panel.content;r=this.renderContent(n,e,t)}return g.createElement(`div`,{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:()=>{this.panelBase&&this.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?t:null,e,this.panel.showErrorsAbovePanel?null:t,r)}renderHeader(){return!this.panel.hasTitle&&!this.panel.hasDescription?null:g.createElement(bB,{element:this.panel})}wrapElement(e){let t=this.panel.survey,n=null;return t&&(n=Nz.wrapElement(t,e,this.panel)),n??e}renderContent(e,t,n){let r=this.renderBottom();return g.createElement(`div`,{style:e,className:n,id:this.panel.contentId,role:this.panel.ariaRole,"aria-labelledby":this.panel.ariaLabelledBy,"aria-label":this.panel.ariaLabel},t,r)}renderTitle(){return this.panelBase.title?g.createElement(Xz,{element:this.panelBase}):null}renderDescription(){if(!this.panelBase.description)return null;var e=Pz.renderLocString(this.panelBase.locDescription);return g.createElement(`div`,{className:this.panel.cssClasses.panel.description},e)}renderBottom(){let e=this.panel.getFooterToolbar();return e.hasActions?g.createElement(qz,{model:e}):null}getIsVisible(){return this.panelBase.getIsContentVisible()}};Mz.Instance.registerElement(`panel`,e=>g.createElement(kB,e));var AB=class extends kB{constructor(e){super(e)}get flowPanel(){return this.panel}componentDidMount(){super.componentDidMount(),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return``},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)}componentWillUnmount(){super.componentWillUnmount(),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)}getQuestion(e){return this.flowPanel.getQuestionByName(e)}renderQuestion(e){return`<question>`+e.name+`</question>`}renderRows(){let e=this.renderHtml();return e?[e]:[]}getNodeIndex(){return this.renderedIndex++}renderHtml(){if(!this.flowPanel)return null;let e=`<span>`+this.flowPanel.produceHtml()+`</span>`;if(!DOMParser){let t={__html:e};return g.createElement(`div`,{dangerouslySetInnerHTML:t})}let t=new DOMParser().parseFromString(e,`text/xml`);return this.renderedIndex=0,this.renderParentNode(t)}renderNodes(e){let t=[];for(let n=0;n<e.length;n++){let r=this.renderNode(e[n]);r&&t.push(r)}return t}getStyle(e){let t={};return e.toLowerCase()===`b`&&(t.fontWeight=`bold`),e.toLowerCase()===`i`&&(t.fontStyle=`italic`),e.toLowerCase()===`u`&&(t.textDecoration=`underline`),t}renderParentNode(e){let t=e.nodeName.toLowerCase(),n=this.renderNodes(this.getChildDomNodes(e));return t===`div`?g.createElement(`div`,{key:this.getNodeIndex()},n):g.createElement(`span`,{key:this.getNodeIndex(),style:this.getStyle(t)},n)}renderNode(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);let t=e.nodeName.toLowerCase();if(t===`question`){let t=this.flowPanel.getQuestionByName(e.textContent);if(!t)return null;let n=g.createElement(CB,{key:t.name,element:t,creator:this.creator,css:this.css});return g.createElement(`span`,{key:this.getNodeIndex()},n)}return t===`div`?g.createElement(`div`,{key:this.getNodeIndex()},e.textContent):g.createElement(`span`,{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)}getChildDomNodes(e){let t=[];for(let n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t}hasTextChildNodesOnly(e){let t=e.childNodes;for(let e=0;e<t.length;e++)if(t[e].nodeName.toLowerCase()!==`#text`)return!1;return!0}renderContent(e,t){return g.createElement(`f-panel`,{style:e},t)}};Mz.Instance.registerElement(`flowpanel`,e=>g.createElement(AB,e));var jB=class extends Iz{constructor(e){super(e)}get question(){return this.questionBase}
87renderElement(){var e=this.question.cssClasses;return g.createElement(`fieldset`,{className:this.question.getSelectBaseRootCss(),ref:e=>this.setControl(e),role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},this.renderHeader(),this.question.hasColumns?this.getColumnedBody(e):this.getBody(e),this.getFooter())}renderHeader(){return null}getFooter(){if(this.question.hasFootItems){let e=this.question.footItems.map((e,t)=>this.renderItem(e,!1,this.question.cssClasses));return g.createElement(g.Fragment,null,e)}return null}getStateValue(){}isItemChecked(e,t){return!1}getColumnedBody(e){return g.createElement(`div`,{className:e.rootMultiColumn},this.getColumns(e))}getColumns(e){let t=this.getStateValue();return this.question.columns.map((n,r)=>{var i=n.map((n,i)=>this.renderItem(n,r===0&&i===0,e,``+r+i,this.isItemChecked(n,t)));return g.createElement(`div`,{key:`column`+r+this.question.getItemsColumnKey(n),className:this.question.getColumnClass(),role:`presentation`},i)})}getBody(e){return this.question.blockedRow?g.createElement(`div`,{className:e.rootRow},this.getItems(e,this.question.dataChoices)):g.createElement(g.Fragment,null,this.getItems(e,this.question.bodyItems))}getItems(e,t){let n=[],r=this.getStateValue();for(let i=0;i<t.length;i++){let a=t[i],o=this.renderItem(a,i==0,e,``+i,this.isItemChecked(a,r));o&&n.push(o)}return n}get textStyle(){return null}renderItem(e,t,n,r,i){let a=Mz.Instance.createElement(this.question.itemComponent,{key:e.uniqueId,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:r,isFirst:t,isChecked:i,creator:this.props.creator}),o=this.question.survey,s=null;return o&&a&&(s=Nz.wrapItemValue(o,a,this.question,e)),s??a}},MB=class extends Fz{constructor(e){super(e),this.handleOnChange=e=>{this.doOnItemChange(e)},this.rootRef=g.createRef()}getStateElement(){return this.item}get question(){return this.props.question}get item(){return this.props.item}get textStyle(){return this.props.textStyle}get isFirst(){return this.props.isFirst}get index(){return this.props.index}get hideCaption(){return this.props.hideCaption===!0}get ariaLabel(){return this.props.ariaLabel||null}componentDidUpdate(e,t){super.componentDidUpdate(e,t),e.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),e.item&&e.item.setRootElement(void 0))}shouldComponentUpdate(e,t){return super.shouldComponentUpdate(e,t)?!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render:!1}doOnItemChange(e){}canRender(){return!!this.item&&!!this.question}renderElement(){return g.createElement(g.Fragment,null,this.renderElementContent(),this.renderPanel(),this.renderComment())}renderElementContent(){return null}get inputStyle(){return null}renderComment(){return this.item.isCommentShowing?g.createElement(`div`,{className:this.question.getCommentAreaCss(!0)},g.createElement(vB,{question:this.question,item:this.item,cssClasses:this.question.cssClasses})):null}renderPanel(){if(this.item.isPanelShowing){let e=this.item.panel;return g.createElement(kB,{key:e.id,element:e,survey:this.question.survey,cssClasses:this.props.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.props.creator})}return null}componentDidMount(){super.componentDidMount(),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)}componentWillUnmount(){super.componentWillUnmount(),this.question.isDesignMode||this.item.setRootElement(void 0)}},NB=class extends jB{constructor(e){super(e)}get question(){return this.questionBase}renderHeader(){return g.createElement(g.Fragment,null,g.createElement(`legend`,{className:`sv-hidden`},this.question.locTitle.renderedHtml),this.getHeader())}getHeader(){return this.question.hasHeadItems?this.question.headItems.map((e,t)=>
87this.renderItem(e,!1,this.question.cssClasses)):null}},PB=class extends MB{constructor(e){super(e)}doOnItemChange(e){this.question.clickItemHandler(this.item,e.target.checked)}renderElementContent(){let e=this.question.isItemSelected(this.item);return this.renderCheckbox(e)}get inputStyle(){return null}renderCheckbox(e){let t=this.question.getItemId(this.item),n=this.question.getItemClass(this.item),r=this.question.getLabelClass(this.item),i=this.hideCaption?null:g.createElement(`span`,{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return g.createElement(`div`,{className:n,role:`presentation`,ref:this.rootRef},g.createElement(`label`,{className:r},g.createElement(`input`,{className:this.cssClasses.itemControl,type:`checkbox`,name:this.question.name+this.item.id,value:this.item.value,id:t,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,checked:e,onChange:this.handleOnChange,required:this.question.hasRequiredError(),"aria-label":this.ariaLabel}),this.cssClasses.materialDecorator?g.createElement(`span`,{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?g.createElement(`svg`,{className:this.cssClasses.itemDecorator},g.createElement(`use`,{xlinkHref:this.question.itemSvgIcon})):null):null,i))}};Mz.Instance.registerElement(`survey-checkbox-item`,e=>g.createElement(PB,e)),Qz.Instance.registerQuestion(`checkbox`,e=>g.createElement(NB,e));var FB=class extends Iz{get question(){return this.questionBase}renderElement(){return this.question.selectToRankEnabled?g.createElement(`div`,{className:this.question.rootClass,ref:e=>this.setControl(e)},g.createElement(`div`,{className:this.question.getContainerClasses(`from`),"data-ranking":`from-container`},this.getItems(this.question.renderedUnRankingChoices,!0),this.question.renderedUnRankingChoices.length===0?g.createElement(`div`,{className:this.question.cssClasses.containerPlaceholder},` `,this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText),` `):null),g.createElement(`div`,{className:this.question.cssClasses.containersDivider}),g.createElement(`div`,{className:this.question.getContainerClasses(`to`),"data-ranking":`to-container`},this.getItems(),this.question.renderedRankingChoices.length===0?g.createElement(`div`,{className:this.question.cssClasses.containerPlaceholder},` `,this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText),` `):null)):g.createElement(`div`,{className:this.question.rootClass,ref:e=>this.setControl(e)},this.getItems())}getItems(e=this.question.renderedRankingChoices,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(this.renderItem(i,r,e=>{this.question.handleKeydown.call(this.question,e,i)},e=>{e.persist(),this.question.handlePointerDown.call(this.question,e,i,e.currentTarget)},e=>{e.persist(),this.question.handlePointerUp.call(this.question,e,i,e.currentTarget)},this.question.cssClasses,this.question.getItemClass(i),this.question,t))}return n}renderItem(e,t,n,r,i,a,o,s,c){``+e.renderedId;let l=this.renderLocString(e.locText),u=t,d=this.question.getNumberByIndex(u),f=this.question.getItemTabIndex(e),p=g.createElement(IB,{key:e.uniqueId,text:l,index:u,indexText:d,itemTabIndex:f,handleKeydown:n,handlePointerDown:r,handlePointerUp:i,cssClasses:a,itemClass:o,question:s,unrankedItem:c,item:e}),m=this.question.survey,h=null;return m&&(h=Nz.wrapItemValue(m,p,this.question,e)),h??p}},IB=class extends Fz{get text(){return this.props.text}get index(){return this.props.index}get indexText(){return this.props.indexText}get handleKeydown(){return this.props.handleKeydown}get handlePointerDown(){return this.props.handlePointerDown}get handlePointerUp(){return this.props.handlePointerUp}get cssClasses(){return this.props.cssClasses}get itemClass(){return this.props.itemClass}get itemTabIndex(){return this.props.itemTabIndex}get question(){return this.props.question}get unrankedItem(){return this.props.unrankedItem}get item(){return this.props.item}renderEmptyIcon(){return g.createElement(`svg`,null,g.createElement(`use`,{xlinkHref:this.question.dashSvgIcon}))}renderElement(){let e=Mz.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasse
87s:this.cssClasses});return g.createElement(`div`,{id:this.question.getItemId(this.item),tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},g.createElement(`div`,{tabIndex:-1,style:{outline:`none`}},g.createElement(`div`,{className:this.cssClasses.itemGhostNode}),g.createElement(`div`,{className:this.cssClasses.itemContent},g.createElement(`div`,{className:this.cssClasses.itemIconContainer},g.createElement(`svg`,{className:this.question.getIconHoverCss()},g.createElement(`use`,{xlinkHref:this.question.dragDropSvgIcon})),g.createElement(`svg`,{className:this.question.getIconFocusCss()},g.createElement(`use`,{xlinkHref:this.question.arrowsSvgIcon}))),g.createElement(`div`,{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),e)))}},LB=class extends Fz{get item(){return this.props.item}get cssClasses(){return this.props.cssClasses}renderElement(){return g.createElement(`div`,{className:this.cssClasses.controlLabel},Pz.renderLocString(this.item.locText))}};Mz.Instance.registerElement(`sv-ranking-item`,e=>g.createElement(LB,e)),Qz.Instance.registerQuestion(`ranking`,e=>g.createElement(FB,e));var RB=class extends Pz{constructor(e){super(e),this.handleOnMouseDown=this.handleOnMouseDown.bind(this)}get question(){return this.props.question}get item(){return this.props.item}get index(){return this.props.index}getStateElement(){return this.item}handleOnMouseDown(e){this.question.onMouseDown()}},zB=class extends RB{render(){var e=this.renderLocString(this.item.locText);return g.createElement(`label`,{className:this.item.className,onMouseDown:this.handleOnMouseDown},g.createElement(`input`,{type:`radio`,className:`sv-visuallyhidden`,name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:()=>{},"aria-label":this.question.ariaLabel}),g.createElement(`span`,{className:this.question.cssClasses.itemText,"data-text":this.item.text},e))}componentDidMount(){super.componentDidMount()}};Mz.Instance.registerElement(`sv-rating-item`,e=>g.createElement(zB,e));var BB=class extends RB{render(){return g.createElement(`label`,{className:this.item.className,onMouseDown:this.handleOnMouseDown,onMouseOver:e=>this.question.onItemMouseIn(this.item),onMouseOut:e=>this.question.onItemMouseOut(this.item),title:this.item.text},g.createElement(`input`,{type:`radio`,className:`sv-visuallyhidden`,name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:()=>{},"aria-label":this.question.ariaLabel}),g.createElement(Rz,{className:`sv-star`,size:`auto`,iconName:this.question.itemStarIcon}),g.createElement(Rz,{className:`sv-star-2`,size:`auto`,iconName:this.question.itemStarIconAlt}))}};Mz.Instance.registerElement(`sv-rating-item-star`,e=>g.createElement(BB,e));var VB=class extends RB{render(){return g.createElement(`label`,{style:this.item.style,className:this.item.className,onMouseDown:this.handleOnMouseDown,onMouseOver:e=>this.question.onItemMouseIn(this.item),onMouseOut:e=>this.question.onItemMouseOut(this.item),title:this.item.text},g.createElement(`input`,{type:`radio`,className:`sv-visuallyhidden`,name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:()=>{},"aria-label":this.question.ariaLabel}),g.createElement(Rz,{size:`auto`,iconName:this.question.getItemSmileyIconName(this.item)}))}};Mz.Instance.registerElement(`sv-rating-item-smiley`,e=>g.createElement(VB,e));var HB=class extends Pz{get item(){return this.props.item}getStateElement(){return this.item}
87render(){if(!this.item)return null;let e=this.props.item,t=this.renderDescription(e);return g.createElement(`div`,{className:`sd-rating-dropdown-item`},g.createElement(`span`,{className:`sd-rating-dropdown-item_text`},e.title),t)}renderDescription(e){return e.description?g.createElement(`div`,{className:`sd-rating-dropdown-item_description`},this.renderLocString(e.description,void 0,`locString`)):null}};Mz.Instance.registerElement(`sv-rating-dropdown-item`,e=>g.createElement(HB,e));var UB=class extends Pz{get model(){return this.props.model}get question(){return this.props.question}componentDidUpdate(e,t){super.componentDidUpdate(e,t),this.updateDomElement()}componentDidMount(){super.componentDidMount(),this.updateDomElement()}updateDomElement(){if(this.inputElement){let e=this.inputElement,t=this.model.inputStringRendered;K.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.model.inputStringRendered)}}onChange(e){var t;let n=(t=e.target.getRootNode())==null?void 0:t.activeElement;e.target===n&&(this.model.inputStringRendered=e.target.value)}keyhandler(e){this.model.inputKeyHandler(e)}onBlur(e){this.question.onBlur(e)}onFocus(e){this.question.onFocus(e)}constructor(e){super(e)}getStateElement(){return this.model}render(){return g.createElement(`div`,{className:this.question.cssClasses.hint},this.model.showHintPrefix?g.createElement(`div`,{className:this.question.cssClasses.hintPrefix},g.createElement(`span`,null,this.model.hintStringPrefix)):null,g.createElement(`div`,{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?g.createElement(`div`,{className:this.question.cssClasses.hintSuffix},g.createElement(`span`,{style:{visibility:`hidden`},"data-bind":`text: model.filterString`},this.model.inputStringRendered),g.createElement(`span`,null,this.model.hintStringSuffix)):null,g.createElement(`input`,{type:`text`,autoComplete:`off`,id:this.question.getInputId(),inputMode:this.model.inputMode,ref:e=>this.inputElement=e,className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:this.model.filterReadOnly?!0:void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.ariaInputRole,"aria-required":this.model.ariaInputRequired,"aria-invalid":this.model.ariaInputInvalid,"aria-errormessage":this.model.ariaInputErrorMessage,"aria-expanded":this.model.ariaInputExpanded,"aria-label":this.model.ariaInputLabel,"aria-labelledby":this.model.ariaInputLabelledby,"aria-describedby":this.model.ariaInputDescribedby,"aria-controls":this.model.ariaInputControls,"aria-activedescendant":this.model.ariaInputActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:e=>{this.keyhandler(e)},onChange:e=>{this.onChange(e)},onBlur:e=>{this.onBlur(e)},onFocus:e=>{this.onFocus(e)}})))}};Qz.Instance.registerQuestion(`sv-tagbox-filter`,e=>g.createElement(UB,e));var WB=class extends Fz{constructor(e){super(e),this.state={changed:0},this.setupModel()}componentDidUpdate(e,t){super.componentDidUpdate(e,t),this.setupModel()}componentDidMount(){super.componentDidMount(),this.setupModel()}componentWillUnmount(){super.componentWillUnmount(),this.item&&(this.item.locText.onChanged=()=>{})}setupModel(){if(!this.item.locText)return;let e=this;this.item.locText.onChanged=()=>{e.setState({changed:e.state.changed+1})}}getStateElement(){return this.item}get item(){return this.props.item}canRender(){return!!this.item}renderElement(){return g.createElement(`option`,{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)}},GB=class extends Lz{constructor(){super(...arguments),this.click=e=>{var t;(t=this.question.dropdownListModel)==null||t.onClick(e)},this.chevronPointerDown=e=>{var t;(t=this.question.dropdownListModel)==null||t.chevronPointerDown(e)},this.clear=e=>{var t;(t=this.question.dropdownListModel)==null||t.onClear(e)},this.keyhandler=e=>{var t;(t=this.question.dropdownListModel)==null||t.keyHandler(e)},this.blur=e=>{this.updateInputDomElement(),this.question.onBlur(e)},this.focus=e=>{this.question.onFocus(e)}}get dropdownListModel(){return this.question.dropdownListModel}getStateElement(){return this.question.dropdownListModel}setValueCore(e){this.questionBase.renderedValue=e}getValueCore(){return this.questionBase.renderedValue}renderReadOnlyElement(){return this.question.showInputFieldComponent?g.createElement(`div`,{className:this.question.cssClasse
87s.controlValue},this.renderValueElement()):this.question.readOnlyText?g.createElement(`div`,{className:this.question.cssClasses.controlValue},this.renderLocString(this.question.locReadOnlyText)):null}renderSelect(e){let t=null,n=this.dropdownListModel;return t=this.question.isReadOnly?g.createElement(`div`,{id:this.question.inputId,role:n==null?void 0:n.ariaQuestionRole,"aria-label":n==null?void 0:n.ariaQuestionLabel,"aria-labelledby":n==null?void 0:n.ariaQuestionLabelledby,"aria-describedby":n==null?void 0:n.ariaQuestionDescribedby,"aria-expanded":`false`,"aria-readonly":`true`,"aria-disabled":`true`,tabIndex:this.question.isDisabledAttr?void 0:0,className:this.question.getControlClass(),ref:e=>this.setControl(e)},this.renderReadOnlyElement(),this.renderEditorButtons()):g.createElement(g.Fragment,null,this.renderInput(),this.question.isInputReadOnly?null:g.createElement(Uz,{model:n.popupModel})),g.createElement(`div`,{className:e.selectWrapper,onClick:this.click},t)}renderValueElement(){if(this.question.showInputFieldComponent){let e=this.dropdownListModel,t=e?e.getSelectedAction():this.question.selectedItem;return Mz.Instance.createElement(this.question.inputFieldComponentName,{item:t,question:this.question})}return this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null}renderInput(){let e=this.dropdownListModel,t=this.renderValueElement();return g.createElement(`div`,{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.noTabIndex?void 0:0,disabled:this.question.isDisabledAttr,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,onFocus:this.focus,role:e.ariaQuestionRole,"aria-required":e.ariaQuestionRequired,"aria-invalid":e.ariaQuestionInvalid,"aria-errormessage":e.ariaQuestionErrorMessage,"aria-expanded":e.ariaQuestionExpanded,"aria-label":e.ariaQuestionLabel,"aria-labelledby":e.ariaQuestionLabelledby,"aria-describedby":e.ariaQuestionDescribedby,"aria-controls":e.ariaQuestionControls,"aria-activedescendant":e.ariaQuestionActivedescendant,ref:e=>this.setControl(e)},e.showHintPrefix?g.createElement(`div`,{className:this.question.cssClasses.hintPrefix},g.createElement(`span`,null,e.hintStringPrefix)):null,g.createElement(`div`,{className:this.question.cssClasses.controlValue},e.showHintString?g.createElement(`div`,{className:this.question.cssClasses.hintSuffix},g.createElement(`span`,{style:{visibility:`hidden`},"data-bind":`text: model.filterString`},e.inputStringRendered),g.createElement(`span`,null,e.hintStringSuffix)):null,t,e.needRenderInput?this.renderFilterInput():null),this.renderEditorButtons())}renderFilterInput(){let{root:e}=G.environment,t=this.dropdownListModel,n=e=>{var n;let r=(n=e.target.getRootNode())==null?void 0:n.activeElement;e.target===r&&(t.inputStringRendered=e.target.value)};return g.createElement(`input`,{type:`text`,autoComplete:`off`,id:this.question.getInputId(),ref:e=>this.inputElement=e,className:this.question.cssClasses.filterStringInput,role:t.ariaInputRole,"aria-required":t.ariaInputRequired,"aria-invalid":t.ariaInputInvalid,"aria-errormessage":t.ariaInputErrorMessage,"aria-expanded":t.ariaInputExpanded,"aria-label":t.ariaInputLabel,"aria-labelledby":t.ariaInputLabelledby,"aria-describedby":t.ariaInputDescribedby,"aria-controls":t.ariaInputControls,"aria-activedescendant":t.ariaInputActivedescendant,placeholder:t.placeholderRendered,readOnly:t.filterReadOnly?!0:void 0,tabIndex:t.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:t.inputMode,onChange:e=>{n(e)},onBlur:this.blur,onFocus:this.focus})}renderOther(e,t){return!e||!e.isCommentShowing?null:g.createElement(`div`,{key:e.uniqueId,className:this.question.getCommentAreaCss(!0)},g.createElement(vB,{question:this.question,item:e,cssClasses:this.question.cssClasses}))}renderEditorButtons(){return g.createElement(qz,{model:this.dropdownListModel.editorButtons})}componentDidUpdate(e,t){super.componentDidUpdate(e,t),this.updateInputDomElement()}componentDidMount(){super.componentDidMount(),this.updateInputDomElement()}componentWillUnmount(){super.componentWillUnmount(),this.question.dropdownListModel&&(this.question.dropdownListModel.focused=!1)}updateInputDomElement(){if(this.inputElement){let e=this.inputElement,t=this.question.dropdownListModel.inputStringRendered;K.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.question.dropdownListModel.inputStringRendered)}}},KB=class extends GB{constructor(e){super(e)}
87renderElement(){let e=this.question.cssClasses,t=this.renderOther(this.question.selectedItem,e),n=this.renderSelect(e);return g.createElement(`div`,{className:this.question.renderCssRoot},n,t)}};Qz.Instance.registerQuestion(`dropdown`,e=>g.createElement(KB,e));var qB=class extends Fz{constructor(e){super(e)}get question(){return this.props.question}get item(){return this.props.item}canRender(){return!!this.item&&!!this.question}renderElement(){let e=this.renderLocString(this.item.locText);return g.createElement(`div`,{className:`sv-tagbox__item`},g.createElement(`div`,{className:`sv-tagbox__item-text`},e),g.createElement(`div`,{className:this.question.cssClasses.cleanItemButton,onClick:e=>{this.question.dropdownListModel.deselectItem(this.item.value),e.stopPropagation()}},g.createElement(Rz,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:`auto`})))}},JB=class extends GB{constructor(e){super(e)}renderItem(e,t){return g.createElement(qB,{key:e,question:this.question,item:t})}renderInput(){let e=this.dropdownListModel,t=this.question.selectedChoices.map((e,t)=>this.renderItem(`item`+t,e));return g.createElement(`div`,{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.noTabIndex?void 0:0,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:e.ariaQuestionRole,"aria-required":e.ariaQuestionRequired,"aria-invalid":e.ariaQuestionInvalid,"aria-errormessage":e.ariaQuestionErrorMessage,"aria-label":e.ariaQuestionLabel,"aria-labelledby":e.ariaQuestionLabelledby,"aria-describedby":e.ariaQuestionDescribedby,"aria-expanded":e.ariaQuestionExpanded,"aria-controls":e.ariaQuestionControls,"aria-activedescendant":e.ariaQuestionActivedescendant,ref:e=>this.setControl(e)},g.createElement(`div`,{className:this.question.cssClasses.controlValue},t,e.needRenderInput?g.createElement(UB,{model:e,question:this.question}):null),this.renderEditorButtons())}renderElement(){let e=this.question.cssClasses,t=this.renderOther(this.question.otherItem,e),n=this.renderSelect(e);return g.createElement(`div`,{className:this.question.renderCssRoot},n,t)}};Qz.Instance.registerQuestion(`tagbox`,e=>g.createElement(JB,e));var YB=class extends KB{constructor(e){super(e)}renderSelect(e){let t=this.isDisplayMode?g.createElement(`div`,{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):g.createElement(`select`,{id:this.question.inputId,className:this.question.getControlClass(),ref:e=>this.setControl(e),autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:e=>{this.question.onClick(e)},onKeyUp:e=>{this.question.onKeyUp(e)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage,required:this.question.isRequired},this.question.allowClear?g.createElement(`option`,{value:``},this.question.placeholder):null,this.question.visibleChoices.map(e=>g.createElement(WB,{key:e.uniqueId,item:e})));return g.createElement(`div`,{className:e.selectWrapper},t,this.createChevronButton())}createChevronButton(){return this.question.cssClasses.chevronButtonIconId?g.createElement(`div`,{className:this.question.cssClasses.chevronButton,"aria-hidden":`true`,onPointerDown:this.chevronPointerDown},g.createElement(Rz,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:`auto`})):null}};Qz.Instance.registerQuestion(`sv-dropdown-select`,e=>g.createElement(YB,e)),jP.Instance.registerRenderer(`dropdown`,`select`,`sv-dropdown-select`);var XB=class extends Iz{constructor(e){super(e),this.state={rowsChanged:0}}get question(){return this.questionBase}componentDidMount(){if(super.componentDidMount(),this.question){var e=this;this.question.visibleRowsChangedCallback=function(){e.setState({rowsChanged:e.state.rowsChanged+1})}}}componentWillUnmount(){super.componentWillUnmount(),this.question&&(this.question.visibleRowsChangedCallback=null)}
87renderElement(){for(var e=this.question.cssClasses,t=this.question.hasRows?g.createElement(`td`,null):null,n=[],r=0;r<this.question.visibleColumns.length;r++){var i=this.question.visibleColumns[r],a=this.renderLocString(i.locText);let e={};this.question.columnMinWidth&&(e.minWidth=this.question.columnMinWidth,e.width=this.question.columnMinWidth),n.push(g.createElement(`th`,{className:this.question.cssClasses.headerCell,style:e,key:i.uniqueId},this.wrapCell({column:i},a,`column-header`)))}for(var o=[],s=this.question.visibleRows,r=0;r<s.length;r++){var c=s[r];o.push(g.createElement(ZB,{key:c.uniqueId,question:this.question,cssClasses:e,row:c,isFirst:r==0}))}var l=this.question.showHeader?g.createElement(`thead`,{role:`presentation`},g.createElement(`tr`,null,t,n)):null;return g.createElement(`div`,{className:this.question.getTableWrapperCss(),ref:e=>this.setControl(e)},g.createElement(`fieldset`,{role:`radiogroup`},g.createElement(`legend`,{className:`sv-visuallyhidden`},this.question.locTitle.renderedHtml),g.createElement(`table`,{className:this.question.getTableCss(),role:`presentation`},l,g.createElement(`tbody`,null,o))))}},ZB=class extends Fz{constructor(e){super(e)}getStateElement(){return this.row?this.row.item:super.getStateElement()}get question(){return this.props.question}get row(){return this.props.row}wrapCell(e,t,n){if(!n)return t;let r=this.question.survey,i=null;return r&&(i=Nz.wrapMatrixCell(r,t,e,n)),i??t}canRender(){return!!this.row}renderElement(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText);let n={};this.question.rowTitleWidth&&(n.minWidth=this.question.rowTitleWidth,n.width=this.question.rowTitleWidth),e=g.createElement(`td`,{style:n,className:this.row.rowTextClasses},this.wrapCell({row:this.row},t,`row-header`))}var n=this.generateTds();return g.createElement(`tr`,{className:this.row.rowClasses||void 0},e,n)}generateTds(){let e=[],t=this.row,n=this.question.cellComponent;for(var r=0;r<this.question.visibleColumns.length;r++){let i=null,a=this.question.visibleColumns[r],o=a.uniqueId,s=this.question.getItemClass(t,a);if(this.question.hasCellText){let e=e=>()=>this.cellClick(t,e);i=g.createElement(`td`,{key:o,className:s,onClick:e?e(a):()=>{}},this.renderLocString(this.question.getCellDisplayLocText(t.name,a)))}else{let e=Mz.Instance.createElement(n,{question:this.question,row:this.row,column:a,columnIndex:r,cssClasses:this.cssClasses,cellChanged:()=>{this.cellClick(this.row,a)}});i=g.createElement(`td`,{key:o,"data-responsive-title":a.locText.renderedHtml,className:this.question.cssClasses.cell},e)}e.push(i)}return e}cellClick(e,t){e.cellClick(t),this.setState({value:e.value})}},QB=class extends Fz{constructor(e){super(e),this.handleOnMouseDown=this.handleOnMouseDown.bind(this),this.handleOnChange=this.handleOnChange.bind(this)}handleOnChange(e){this.props.cellChanged&&this.props.cellChanged(),this.setState({value:this.row.isChecked(this.column)})}handleOnMouseDown(e){this.question.onMouseDown()}get question(){return this.props.question}get row(){return this.props.row}get column(){return this.props.column}get columnIndex(){return this.props.columnIndex}canRender(){return!!this.question&&!!this.row}renderElement(){let e=this.row.isChecked(this.column),t=this.question.inputId+`_`+this.row.name+`_`+this.columnIndex,n=this.question.getItemClass(this.row,this.column),r=this.question.getItemSvgIcon(this.row,this.column),i=this.question.isMobile?g.createElement(`span`,{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return g.createElement(`label`,{onMouseDown:this.handleOnMouseDown,className:n},this.renderInput(t,e),g.createElement(`span`,{className:this.question.cssMaterialDecorator},r?g.createElement(`svg`,{className:this.question.cssItemDecorator},g.createElement(`use`,{xlinkHref:r})):null),i)}renderInput(e,t){return g.createElement(`input`,{id:e,type:this.question.checkType,className:this.question.cssItemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:t,onChange:this.handleOnChange,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.getCellAriaLabel(this.row,this.column),"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage})}};Mz.Instance.registerElement(`survey-matrix-cell`,e=>g.createElement(QB,e)),Qz.Instance.registerQuestion(`matrix`,e=>g.createElement(XB,e));var $B=class extends Iz{constructor(e){super(e)}get question(){return this.questionBase}componentDidMount(){this.reactOnStrChanged()}componentWillUnmount(){this.question.locHtml.onChanged=function(){}}componentDidUpdate(e,t){this.reactOnStrChanged()}reactOnStrChanged(){this.question.locHtml.onChanged=()=>{this.setState({changed:this.state&&this.state.changed?this.state.changed+1:1})}}canRender(){return super.canRender()&&!!this.question.html}renderElement(){var e={__html:this.question.locHtml.renderedHtml};return g.createElement(`div`,{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})}};Qz.Instance.registerQuestion(`html`,e=>g.createElement($B,e));var eV=class extends g.Component{render(){return g.createElement(`div`,{className:`sd-loading-indicator`},g.createElement(Rz,{iconName:`icon-loading`,size:`auto`}))}},tV=class extends Iz{constructor(e){super(e)}get question(){return this.questionBase}renderElement(){let e=this.question.allowShowPreview?this.renderPreview():null,t=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,n=this.question.isPlayingVideo?this.renderVideo():null,r=this.question.showFileDecorator?this.renderFileDecorator():null,i=this.question.fileNavigatorVisible?g.createElement(qz,{model:this.question.fileNavigator}):null,a=this.question.renderedAcceptedTypes,o=this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasse
87s.fileInput,s=this.isDisplayMode?{color:`transparent`}:{},c;return c=this.question.isReadOnlyAttr?g.createElement(`input`,{readOnly:!0,type:`file`,className:o,id:this.question.inputId,ref:e=>this.setControl(e),style:s,multiple:this.question.allowMultiple,placeholder:this.question.title,accept:a}):this.question.isDisabledAttr?g.createElement(`input`,{disabled:!0,type:`file`,className:o,id:this.question.inputId,ref:e=>this.setControl(e),style:s,multiple:this.question.allowMultiple,placeholder:this.question.title,accept:a}):this.question.hasFileUI?g.createElement(`input`,{type:`file`,disabled:this.isDisplayMode,tabIndex:-1,className:o,id:this.question.inputId,ref:e=>this.setControl(e),style:s,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:a,capture:this.question.renderCapture}):null,g.createElement(`div`,{className:this.question.fileRootCss,ref:e=>this.setContent(e)},c,g.createElement(`div`,{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},r,t,n,e,i))}renderFileDecorator(){let e=this.question.actionsContainerVisible?g.createElement(qz,{model:this.question.actionsContainer}):null;return g.createElement(`div`,{className:this.question.getFileDecoratorCss()},this.question.showDragAreaPlaceholder?g.createElement(`span`,{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)):!1,g.createElement(`div`,{className:this.question.cssClasses.wrapper},e))}renderPreview(){return Mz.Instance.createElement(`sv-file-preview`,{question:this.question})}renderLoadingIndicator(){return g.createElement(`div`,{className:this.question.cssClasses.loadingIndicator},g.createElement(eV,null))}renderVideo(){return g.createElement(`div`,{className:this.question.cssClasses.videoContainer},g.createElement(Vz,{item:this.question.changeCameraAction}),g.createElement(Vz,{item:this.question.closeCameraAction}),g.createElement(`video`,{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),g.createElement(Vz,{item:this.question.takePictureAction}))}};Qz.Instance.registerQuestion(`file`,e=>g.createElement(tV,e));var nV=class extends Fz{constructor(e){super(e)}get question(){return this.props.item&&this.props.item.data.question||this.props.data.question}render(){return cB(g.createElement(`label`,{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:e=>this.question.chooseFile(e.nativeEvent)},this.question.cssClasses.chooseFileIconId?g.createElement(Rz,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:`auto`}):null,g.createElement(`span`,null,this.question.chooseButtonText)))}};Mz.Instance.registerElement(`sv-file-choose-btn`,e=>g.createElement(nV,e));var rV=class extends Pz{get question(){return this.props.question}get page(){return this.props.page}renderElement(){let e=this.page.items.map((e,t)=>Mz.Instance.createElement(`sv-file-item`,{item:e,question:this.question,key:t}));return g.createElement(`div`,{className:this.page.css,id:this.page.id},e)}},iV=class extends Pz{get question(){return this.props.question}renderFileSign(e,t){return!e||!t.name?null:g.createElement(`div`,{className:e},g.createElement(`a`,{href:t.content,onClick:e=>{this.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name))}renderElement(){let e=this.question.renderedPages.map((e,t)=>g.createElement(rV,{page:e,question:this.question,key:e.id}));return g.createElement(`div`,{className:this.question.cssClasses.fileList||void 0},e)}canRender(){return this.question.showPreviewContainer}};Mz.Instance.registerElement(`sv-file-preview`,e=>g.createElement(iV,e));var aV=class extends Pz{get question(){return this.props.question}get item(){return this.props.item}renderFileSign(e,t){return!e||!t.name?null:g.createElement(`div`,{className:e},g.createElement(`a`,{href:t.content,onClick:e=>{this.question.doDownloadFile(e,t)},title:t.name,download:t.name,target:`_blank`,rel:`noreferrer`,style:{width:this.question.imageWidth}},t.name))}renderElement(){let e=this.item;return g.createElement(`span`,{className:this.question.cssClasse
87s.previewItem,onClick:e=>this.question.doDownloadFileFromContainer(e)},this.renderFileSign(this.question.cssClasses.fileSign,e),g.createElement(`div`,{className:this.question.getImageWrapperCss(e)},this.question.canPreviewImage(e)?g.createElement(`img`,{src:e.content,style:{height:this.question.imageHeight,width:this.question.imageWidth},alt:`File preview`}):this.question.cssClasses.defaultImage?g.createElement(Rz,{iconName:this.question.cssClasses.defaultImageIconId,size:`auto`,className:this.question.cssClasses.defaultImage}):null,e.name&&!this.question.isReadOnly?g.createElement(`div`,{className:this.question.getRemoveButtonCss(),onClick:t=>this.question.doRemoveFile(e,t)},g.createElement(`span`,{className:this.question.cssClasses.removeFile},this.question.removeFileCaption),this.question.cssClasses.removeFileSvgIconId?g.createElement(Rz,{title:this.question.removeFileCaption,iconName:this.question.cssClasses.removeFileSvgIconId,size:`auto`,className:this.question.cssClasses.removeFileSvg}):null):null),this.renderFileSign(this.question.cssClasses.fileSignBottom,e))}canRender(){return this.question.showPreviewContainer}};Mz.Instance.registerElement(`sv-file-item`,e=>g.createElement(aV,e));var oV=class extends Iz{constructor(e){super(e)}get question(){return this.questionBase}renderElement(){for(var e=this.question.cssClasses,t=this.question.getRows(),n=[],r=0;r<t.length;r++)t[r].isVisible&&n.push(this.renderRow(r,t[r].cells,e));return g.createElement(`table`,{className:this.question.getQuestionRootCss()},g.createElement(`tbody`,null,n))}renderCell(e,t,n){let r;return r=e.isErrorsCell?g.createElement(DB,{question:e.item.editor,creator:this.creator}):g.createElement(sV,{question:this.question,item:e.item,creator:this.creator,cssClasses:t}),g.createElement(`td`,{key:e.item.id,className:e.className,onFocus:()=>{e.item.focusIn()}},r)}renderRow(e,t,n){let r=`item`+e,i=[];for(let e=0;e<t.length;e++){let r=t[e];i.push(this.renderCell(r,n,e))}return g.createElement(`tr`,{key:r,className:n.row},i)}},sV=class extends Fz{get question(){return this.props.question}get item(){return this.props.item}getStateElements(){return[this.item,this.item.editor]}get creator(){return this.props.creator}renderElement(){let e=this.item,t=this.cssClasses,n={};return this.question.itemTitleWidth&&(n.minWidth=this.question.itemTitleWidth,n.width=this.question.itemTitleWidth),g.createElement(`label`,{className:this.question.getItemLabelCss(e)},g.createElement(`span`,{className:t.itemTitle,style:n},g.createElement(Jz,{element:e.editor,cssClasses:e.editor.cssClasses})),g.createElement(cV,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}))}},cV=class extends TB{renderElement(){return g.createElement(`div`,{className:this.itemCss},this.renderContent())}};Qz.Instance.registerQuestion(`multipletext`,e=>g.createElement(oV,e));var lV=class extends jB{constructor(e){super(e)}get question(){return this.questionBase}getFooter(){return g.createElement(g.Fragment,null,super.getFooter(),this.renderClearButton())}renderClearButton(){return this.question.showClearButtonInContent?g.createElement(`div`,null,g.createElement(`input`,{type:`button`,className:this.question.cssClasses.clearButton,onClick:()=>this.question.clearValueFromUI(),value:this.question.clearButtonCaption})):null}getStateValue(){return this.question.isEmpty()?``:this.question.renderedValue}isItemChecked(e,t){return e.value===t}},uV=class extends MB{constructor(e){super(e),this.handleOnMouseDown=this.handleOnMouseDown.bind(this)}getStateElement(){return this.item}get question(){return this.props.question}get isChecked(){return this.props.isChecked}doOnItemChange(e){this.question.clickItemHandler(this.item)}handleOnMouseDown(e){this.question.onMouseDown()}renderElementContent(){return this.renderRadioButton()}renderRadioButton(){var e=this.question.getItemClass(this.item),t=this.question.getLabelClass(this.item),n=this.question.getControlLabelClass(this.item);let r=this.hideCaption?null:g.createElement(`span`,{className:n},this.renderLocString(this.item.locText,this.textStyle));return g.createElement(`div`,{className:e,role:`presentation`,ref:this.rootRef},g.createElement(`label`,{onMouseDown:this.handleOnMouseDown,className:t},g.createElement(`input`,{"aria-errormessage":this.question.ariaErrormessage,className:this.cssClasse
87s.itemControl,id:this.question.getItemId(this.item),type:`radio`,name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange,"aria-label":this.ariaLabel}),this.cssClasses.materialDecorator?g.createElement(`span`,{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?g.createElement(`svg`,{className:this.cssClasses.itemDecorator},g.createElement(`use`,{xlinkHref:this.question.itemSvgIcon})):null):null,r))}};Mz.Instance.registerElement(`survey-radiogroup-item`,e=>g.createElement(uV,e)),Qz.Instance.registerQuestion(`radiogroup`,e=>g.createElement(lV,e));var dV=class extends Lz{constructor(e){super(e)}renderInput(){let e=this.question.getControlClass(),t=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return g.createElement(`div`,null,this.question.inputValue);let n=this.question.getMaxLength()?g.createElement(mB,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return g.createElement(g.Fragment,null,g.createElement(`input`,{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:e,type:this.question.inputType,ref:e=>this.setControl(e),style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:t,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:e=>{this.question.onBlur(e)},onFocus:e=>{this.question.onFocus(e)},onChange:this.question.onChange,onClick:this.question.readOnlyBlocker,onPointerDown:this.question.readOnlyBlocker,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:e=>this.question.onCompositionUpdate(e.nativeEvent),"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),n)}renderElement(){return this.question.dataListId?g.createElement(`div`,null,this.renderInput(),this.renderDataList()):this.renderInput()}setValueCore(e){this.question.inputValue=e}getValueCore(){return this.question.inputValue}renderDataList(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(e.length==0)return null;for(var t=[],n=0;n<e.length;n++)t.push(g.createElement(`option`,{key:`item`+n,value:e[n]}));return g.createElement(`datalist`,{id:this.question.dataListId},t)}};Qz.Instance.registerQuestion(`text`,e=>g.createElement(dV,e));var fV=class extends Iz{constructor(e){super(e),this.handleOnChange=this.handleOnChange.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.handleOnLabelClick=this.handleOnLabelClick.bind(this),this.handleOnSwitchClick=this.handleOnSwitchClick.bind(this),this.handleOnKeyDown=this.handleOnKeyDown.bind(this),this.checkRef=g.createRef()}getStateElement(){return this.question}get question(){return this.questionBase}doCheck(e){this.question.booleanValue=e}handleOnChange(e){this.doCheck(e.target.checked)}handleOnClick(e){this.question.onLabelClick(e,!0)}handleOnSwitchClick(e){this.question.onSwitchClickModel(e.nativeEvent)}handleOnLabelClick(e,t){this.question.onLabelClick(e,t)}handleOnKeyDown(e){this.question.onKeyDownCore(e)}updateDomElement(){if(!this.question)return;let e=this.checkRef.current;e&&(e.indeterminate=this.question.isIndeterminate),this.setControl(e),super.updateDomElement()}renderElement(){let e=this.question.cssClasses,t=this.question.getItemCss();return g.createElement(`div`,{className:e.root,onKeyDown:this.handleOnKeyDown},g.createElement(`label`,{className:t},g.createElement(`input`,{ref:this.checkRef,type:`checkbox`,name:this.question.name,value:this.question.booleanValue===null?``:this.question.booleanValue,id:this.question.inputId,className:e.control,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),g.createElement(`div`,{className:e.sliderGhost,onClick:e=>this.handleOnLabelClick(e,this.question.swapOrder)},g.createElement(`span`,{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),g.createElement(`div`,{className:e.switch,onClick:this.handleOnSwitchClick},g.createElement(`span`,{className:e.slider},this.question.isDeterminated&&e.sliderText?g.createElement(`span`,{className:e.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),g.createElement(`div`,{className:e.sliderGhost,onClick:e=>this.handleOnLabelClick(e,!this.question.swapOrder)},g.createElement(`span`,{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))}};Qz.Instance.registerQuestion(`boolean`,e=>g.createElement(fV,e));var pV=class extends fV{constructor(e){super(e)}
87renderElement(){let e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),n=this.question.canRenderLabelDescription?Pz.renderQuestionDescription(this.question):null;return g.createElement(`div`,{className:e.rootCheckbox},g.createElement(`div`,{className:t},g.createElement(`label`,{className:e.checkboxLabel},g.createElement(`input`,{ref:this.checkRef,type:`checkbox`,name:this.question.name,value:this.question.booleanValue===null?``:this.question.booleanValue,id:this.question.inputId,className:e.controlCheckbox,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),g.createElement(`span`,{className:e.checkboxMaterialDecorator},this.question.svgIcon?g.createElement(`svg`,{className:e.checkboxItemDecorator},g.createElement(`use`,{xlinkHref:this.question.svgIcon})):null,g.createElement(`span`,{className:`check`})),this.question.isLabelRendered&&g.createElement(`span`,{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},g.createElement(Yz,{element:this.question,cssClasses:this.question.cssClasses}))),n))}};Qz.Instance.registerQuestion(`sv-boolean-checkbox`,e=>g.createElement(pV,e)),jP.Instance.registerRenderer(`boolean`,`checkbox`,`sv-boolean-checkbox`);var mV=class extends fV{constructor(e){super(e)}renderRadioItem(e,t){let n=this.question.cssClasses;return g.createElement(`div`,{role:`presentation`,className:this.question.getRadioItemClass(n,e)},g.createElement(`label`,{className:n.radioLabel},g.createElement(`input`,{type:`radio`,name:this.question.questionName,value:e,"aria-errormessage":this.question.ariaErrormessage,checked:e===this.question.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:n.itemRadioControl,onChange:()=>{this.question.isInputReadOnly||(this.question.value=e)}}),this.question.cssClasses.materialRadioDecorator?g.createElement(`span`,{className:n.materialRadioDecorator},this.question.itemSvgIcon?g.createElement(`svg`,{className:n.itemRadioDecorator},g.createElement(`use`,{xlinkHref:this.question.itemSvgIcon})):null):null,g.createElement(`span`,{className:n.radioControlLabel},this.renderLocString(t))))}renderElement(){let e=this.question.cssClasses;return g.createElement(`div`,{className:e.rootRadio,onKeyDown:this.handleOnKeyDown},g.createElement(`fieldset`,{role:`presentation`,className:e.radioFieldset},this.question.swapOrder?g.createElement(g.Fragment,null,this.renderRadioItem(this.question.getValueTrue(),this.question.locLabelTrue),this.renderRadioItem(this.question.getValueFalse(),this.question.locLabelFalse)):g.createElement(g.Fragment,null,this.renderRadioItem(this.question.getValueFalse(),this.question.locLabelFalse),this.renderRadioItem(this.question.getValueTrue(),this.question.locLabelTrue))))}};Qz.Instance.registerQuestion(`sv-boolean-radio`,e=>g.createElement(mV,e)),jP.Instance.registerRenderer(`boolean`,`radio`,`sv-boolean-radio`);var hV=class extends Iz{constructor(e){super(e),this.state={value:this.question.value}}get question(){return this.questionBase}renderElement(){return g.createElement(`div`,null)}};Qz.Instance.registerQuestion(`empty`,e=>g.createElement(hV,e));var gV=class extends Pz{constructor(e){super(e),this.root=g.createRef(),this.onPointerDownHandler=e=>{this.parentMatrix.onPointerDown(e.nativeEvent,this.model.row)}}get model(){return this.props.model}get parentMatrix(){return this.props.parentMatrix}getStateElement(){return this.model}componentDidMount(){super.componentDidMount(),this.root.current&&this.model.setRootElement(this.root.current)}componentWillUnmount(){super.componentWillUnmount(),this.model.setRootElement(void 0)}shouldComponentUpdate(e,t){return super.shouldComponentUpdate(e,t)?(e.model!==this.model&&(e.element&&e.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0):!1}render(){let e=this.model;return e.visible?g.createElement(`tr`,{ref:this.root,className:e.className,"data-sv-drop-target-matrix-row":e.dropTargetId},this.props.children):null}};Mz.Instance.registerElement(`sv-matrix-row`,e=>g.createElement(gV,e));var _V=class extends Fz{get question(){return this.props.item.data.question}get row(){return this.props.item.data.row}renderElement(){return g.createElement(`div`,{onPointerDown:e=>{this.question.onPointerDown(e.nativeEvent,this.row)}},this.renderIcon())}renderIcon(){return this.question.iconDragElement?g.createElement(`svg`,{className:this.question.cssClasse
87s.dragElementDecorator},g.createElement(`use`,{xlinkHref:this.question.iconDragElement})):g.createElement(`span`,{className:this.question.cssClasses.iconDrag})}};Mz.Instance.registerElement(`sv-matrix-drag-drop-icon`,e=>g.createElement(_V,e));var vV=class extends Pz{get question(){return this.props.question}get creator(){return this.props.creator}get table(){return this.question.renderedTable}getStateElement(){return this.table}wrapCell(e,t,n){return this.props.wrapCell(e,t,n)}renderHeader(){let e=this.question.renderedTable;if(!e.showHeader)return null;let t=[],n=e.headerRow.cells;for(var r=0;r<n.length;r++){let e=n[r],i=`column`+r,a={};e.width&&(a.width=e.width),e.minWidth&&(a.minWidth=e.minWidth);let o=this.renderCellContent(e,`column-header`,{}),s=e.hasTitle?g.createElement(`th`,{className:e.className,key:i,style:a},` `,o,` `):g.createElement(`td`,{className:e.className,key:i,style:a});t.push(s)}return g.createElement(`thead`,null,g.createElement(`tr`,null,t))}renderFooter(){let e=this.question.renderedTable;if(!e.showFooter)return null;let t=this.renderRow(`footer`,e.footerRow,this.question.cssClasses,`row-footer`);return g.createElement(`tfoot`,null,t)}renderRows(){let e=this.question.cssClasses,t=[],n=this.question.renderedTable.renderedRows;for(var r=0;r<n.length;r++)t.push(this.renderRow(n[r].id,n[r],e));return g.createElement(`tbody`,null,t)}renderRow(e,t,n,r){let i=[],a=t.cells;for(var o=0;o<a.length;o++)i.push(this.renderCell(a[o],n,r));let s=`row`+e;return g.createElement(g.Fragment,{key:s},r==`row-footer`?g.createElement(`tr`,null,i):g.createElement(gV,{model:t,parentMatrix:this.question},i))}renderCell(e,t,n){let r=`cell`+e.id;if(e.hasQuestion)return g.createElement(CV,{key:r,cssClasses:t,cell:e,creator:this.creator,reason:n});if(e.isErrorsCell&&e.isErrorsCell)return g.createElement(xV,{cell:e,key:r,keyValue:r,question:e.question,creator:this.creator});let i=n;i||(i=e.hasTitle?`row-header`:``);let a=this.renderCellContent(e,i,t),o=null;return(e.width||e.minWidth)&&(o={},e.width&&(o.width=e.width),e.minWidth&&(o.minWidth=e.minWidth)),g.createElement(`td`,{className:e.className,key:r,style:o,colSpan:e.colSpans,title:e.getTitle()},a)}renderCellContent(e,t,n){let r=null,i=null;if((e.width||e.minWidth)&&(i={},e.width&&(i.width=e.width),e.minWidth&&(i.minWidth=e.minWidth)),e.hasTitle){t=`row-header`;let n=this.renderLocString(e.locTitle),i=e.column?g.createElement(SV,{column:e.column,question:this.question}):null;r=g.createElement(g.Fragment,null,n,i)}if(e.isDragHandlerCell&&(r=g.createElement(g.Fragment,null,g.createElement(_V,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(r=Mz.Instance.createElement(`sv-matrixdynamic-actions-cell`,{question:this.question,cssClasses:n,cell:e,model:e.item.getData()})),e.hasPanel&&(r=g.createElement(kB,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:n,isDisplayMode:this.isDisplayMode,creator:this.creator})),!r)return null;let a=g.createElement(g.Fragment,null,r);return this.wrapCell(e,a,t)}renderElement(){let e=this.renderHeader(),t=this.renderFooter(),n=this.renderRows();return g.createElement(`table`,{className:this.question.getTableCss()},e,n,t)}},yV=class extends Iz{constructor(e){super(e),this.question.renderedTable,this.state=this.getState()}get question(){return this.questionBase}getState(e=null){return{rowCounter:e?e.rowCounter+1:0}}updateStateOnCallback(){this.isRendering||this.setState(this.getState(this.state))}componentDidMount(){super.componentDidMount(),this.question.onRenderedTableResetCallback=()=>{this.updateStateOnCallback()}}componentWillUnmount(){super.componentWillUnmount(),this.question.onRenderedTableResetCallback=()=>{}}renderElement(){return this.renderTableDiv()}renderTableDiv(){return g.createElement(`div`,{className:this.question.getTableWrapperCss(),ref:e=>this.setControl(e)},g.createElement(vV,{question:this.question,creator:this.creator,wrapCell:(e,t,n)=>this.wrapCell(e,t,n)}))}},bV=class extends Fz{constructor(e){super(e)}get model(){return this.props.model}renderElement(){return g.createElement(qz,{model:this.model,handleClick:!1})}},xV=class extends DB{constructor(e){super(e)}get key(){return this.props.keyValue}get cell(){return this.props.cell}render(){return this.cell.isVisible?g.createElement(`td`,{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},super.render()):null}getQuestionPropertiesToTrack(){return super.getQuestionPropertiesToTrack().concat([`visible`])}};Mz.Instance.registerElement(`sv-matrixdynamic-actions-cell`,e=>g.createElement(bV,e));var SV=class extends Fz{constructor(e){super(e)}get column(){return this.props.column}get question(){return this.props.question}getStateElement(){return this.column}renderElement(){return this.column.isRenderedRequired?g.createElement(g.Fragment,null,g.createElement(`span`,null,`\xA0`),g.createElement(`span`,{className:this.question.cssClasse
87s.cellRequiredMark},this.column.requiredMark)):null}},CV=class extends EB{constructor(e){super(e)}get cell(){return this.props.cell}get itemCss(){return this.cell?this.cell.className:``}getQuestion(){return super.getQuestion()||(this.cell?this.cell.question:null)}doAfterRender(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&e.getAttribute(`data-rendered`)!==`r`){e.setAttribute(`data-rendered`,`r`);let t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(t),this.question.afterRenderCore(e)}}getShowErrors(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)}getCellStyle(){var e=super.getCellStyle();return(this.cell.width||this.cell.minWidth)&&(e||(e={}),this.cell.width&&(e.width=this.cell.width),this.cell.minWidth&&(e.minWidth=this.cell.minWidth)),e}getHeaderText(){return this.cell.headers}renderElement(){return this.cell.isVisible?super.renderElement():null}renderCellContent(){let e=super.renderCellContent(),t=this.cell.showResponsiveTitle?g.createElement(`span`,{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle),g.createElement(SV,{column:this.cell.column,question:this.cell.matrix})):null;return g.createElement(g.Fragment,null,t,e)}renderQuestion(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():CB.renderQuestionBody(this.creator,this.question):g.createElement(g.Fragment,null)}renderOtherComment(){let e=this.cell.question,t=e.cssClasses||{};return g.createElement(vB,{question:e,item:e.otherItem,cssClasses:t})}renderCellCheckboxButton(){var e=this.cell.question.id+`item`+this.cell.choiceIndex;return g.createElement(PB,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0,ariaLabel:this.getCellAriaLabel()})}renderCellRadiogroupButton(){var e=this.cell.question.id+`item`+this.cell.choiceIndex;return g.createElement(uV,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0,ariaLabel:this.getCellAriaLabel()})}getCellAriaLabel(){return this.question.parentQuestion.getCellAriaLabel(this.cell.row,this.cell.column)}},wV=class extends yV{constructor(e){super(e)}};Qz.Instance.registerQuestion(`matrixdropdown`,e=>g.createElement(wV,e));var TV=class extends yV{constructor(e){super(e),this.handleOnRowAddClick=this.handleOnRowAddClick.bind(this)}get matrix(){return this.questionBase}handleOnRowAddClick(e){this.matrix.addRowUI()}renderElement(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return g.createElement(`div`,null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))}renderAddRowButtonOnTop(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null}renderAddRowButtonOnBottom(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null}renderNoRowsContent(e){return Mz.Instance.createElement(`sv-placeholder-matrixdynamic`,{cssClasse
87s:e,question:this.matrix})}renderAddRowButton(e,t=!1){return Mz.Instance.createElement(`sv-matrixdynamic-add-btn`,{question:this.question,cssClasses:e,isEmptySection:t})}};Qz.Instance.registerQuestion(`matrixdynamic`,e=>g.createElement(TV,e));var EV=class extends Fz{constructor(e){super(e),this.handleOnRowAddClick=this.handleOnRowAddClick.bind(this)}get matrix(){return this.props.question}handleOnRowAddClick(e){this.matrix.addRowUI()}renderElement(){let e=this.renderLocString(this.matrix.locAddRowText),t=g.createElement(`button`,{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:`button`,disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,g.createElement(`span`,{className:this.props.cssClasses.iconAdd},this.cssClasses.iconAddId&&g.createElement(`svg`,null,g.createElement(`use`,{xlinkHref:this.cssClasses.iconAddId}))));return this.props.isEmptySection?t:g.createElement(`div`,{className:this.props.cssClasses.footer},t)}},DV=class extends Fz{constructor(e){super(e)}renderElement(){let e=this.props.cssClasses,t=this.props.question,n=t.renderedTable.showAddRow,r=this.renderLocString(t.locNoRowsText),i=g.createElement(`div`,{className:e.noRowsText},r),a=n?this.renderAddRowButton(e,t):void 0;return g.createElement(`div`,{className:e.noRowsSection},i,a)}renderAddRowButton(e,t){return Mz.Instance.createElement(`sv-matrixdynamic-add-btn`,{question:t,cssClasses:e,isEmptySection:!0})}};Mz.Instance.registerElement(`sv-matrixdynamic-add-btn`,e=>g.createElement(EV,e)),Mz.Instance.registerElement(`sv-placeholder-matrixdynamic`,e=>g.createElement(DV,e));var OV=class extends Iz{constructor(e){super(e)}get question(){return this.questionBase}componentDidMount(){super.componentDidMount(),this.setState({panelCounter:0});let e=this;this.question.panelCountChangedCallback=function(){e.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){e.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){e.updateQuestionRendering()}}componentWillUnmount(){super.componentWillUnmount(),this.question.panelCountChangedCallback=()=>{},this.question.currentIndexChangedCallback=()=>{},this.question.renderModeChangedCallback=()=>{}}updateQuestionRendering(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})}renderElement(){let e=[],t=this.question.cssClasses;this.question.renderedPanels.forEach((n,r)=>{e.push(g.createElement(kV,{key:n.id,element:n,question:this.question,index:r,cssClasses:t,isDisplayMode:this.isDisplayMode,creator:this.creator}))});let n=this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null,r=this.renderNavigatorV2(),i=this.renderPlaceholder(t);return g.createElement(`div`,{className:t.root},this.question.hasTabbedMenu?g.createElement(`div`,{className:this.question.getTabsContainerCss()},g.createElement(qz,{model:this.question.tabbedMenu})):null,i,n,g.createElement(`div`,{className:this.question.cssClasses.panelsContainer},e),r)}renderRange(){return g.createElement(`div`,{className:this.question.cssClasses.progress},g.createElement(`div`,{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:`progressbar`,"aria-label":this.question.progressBarAriaLabel}))}renderAddRowButton(){return Mz.Instance.createElement(`sv-paneldynamic-add-btn`,{data:{question:this.question}})}renderNavigatorV2(){if(!this.question.showNavigation)return null;let e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return g.createElement(`div`,{className:this.question.cssClasses.footer},g.createElement(`hr`,{className:this.question.cssClasses.separator}),e,this.question.showFooterToolbar?g.createElement(`div`,{className:this.question.cssClasses.footerButtonsContainer},g.createElement(qz,{model:this.question.footerToolbar})):null)}renderPlaceholder(e){return this.question.getShowNoEntriesPlaceholder()?Mz.Instance.createElement(`sv-placeholder-paneldynamic`,{cssClasse
87s:e,question:this.question}):null}},kV=class extends kB{get question(){return this.props.question}get index(){return this.props.index}getSurvey(){return this.question?this.question.survey:null}getCss(){let e=this.getSurvey();return e?e.getCss():{}}render(){let e=super.render(),t=this.renderButton(),n=this.question.showSeparator(this.index)?g.createElement(`hr`,{className:this.question.cssClasses.separator}):null;return g.createElement(g.Fragment,null,g.createElement(`div`,{className:this.question.getPanelWrapperCss(this.panel)},e,t),n)}renderButton(){return this.question.canRenderRemovePanelOnRight(this.panel)?Mz.Instance.createElement(`sv-paneldynamic-remove-btn`,{data:{question:this.question,panel:this.panel}}):null}};Qz.Instance.registerQuestion(`paneldynamic`,e=>g.createElement(OV,e));var AV=class extends Fz{constructor(e){super(e)}renderElement(){let e=this.props.cssClasses,t=this.props.question;return g.createElement(`div`,{className:e.noEntriesPlaceholder},g.createElement(`span`,null,this.renderLocString(t.locNoEntriesText)),this.renderAddRowButton(t))}renderAddRowButton(e){return Mz.Instance.createElement(`sv-paneldynamic-add-btn`,{data:{question:e}})}};Mz.Instance.registerElement(`sv-placeholder-paneldynamic`,e=>g.createElement(AV,e));var jV=class extends lB{constructor(e){super(e)}get isTop(){return this.props.isTop}get model(){return this.props.model}getStateElement(){return this.model}get progress(){return this.model.progressValue}get progressText(){return this.model.progressText}get progressBarAriaLabel(){return this.model.progressBarAriaLabel}render(){var e={width:this.progress+`%`};return g.createElement(`div`,{className:this.model.getProgressCssClasses(this.props.container)},g.createElement(`div`,{style:e,className:this.model.css.progressBar,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-label":this.progressBarAriaLabel},g.createElement(`span`,{className:FR.getProgressTextInBarCss(this.model.css)},this.progressText)),g.createElement(`span`,{className:FR.getProgressTextUnderBarCss(this.model.css)},this.progressText))}};Mz.Instance.registerElement(`sv-progress-pages`,e=>g.createElement(jV,e)),Mz.Instance.registerElement(`sv-progress-questions`,e=>g.createElement(jV,e)),Mz.Instance.registerElement(`sv-progress-correctquestions`,e=>g.createElement(jV,e)),Mz.Instance.registerElement(`sv-progress-requiredquestions`,e=>g.createElement(jV,e));var MV=class extends lB{constructor(e){super(e),this.listContainerRef=g.createRef()}get model(){return this.props.model}get container(){return this.props.container}getStateElement(){return this.model}onResize(e){this.setState({canShowItemTitles:e}),this.setState({canShowHeader:!e})}onUpdateScroller(e){this.setState({hasScroller:e})}onUpdateSettings(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})}render(){return g.createElement(`div`,{className:this.model.getRootCss(this.props.container),style:{maxWidth:this.model.progressWidth,"--sd-progress-buttons-pages-count":this.model.visiblePages.length},role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-label":this.model.progressBarAriaLabel},this.state.canShowHeader?g.createElement(`div`,{className:this.css.progressButtonsHeader},g.createElement(`div`,{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,g.createElement(`div`,{className:this.css.progressButtonsContainer},g.createElement(`div`,{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:`button`,onClick:()=>this.clickScrollButton(this.listContainerRef.current,!0)}),g.createElement(`div`,{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},g.createElement(`ul`,{className:this.css.progressButtonsList},this.getListElements())),g.createElement(`div`,{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:`button`,onClick:()=>this.clickScrollButton(this.listContainerRef.current,!1)})),this.state.canShowFooter?g.createElement(`div`,{className:this.css.progressButtonsFooter},g.createElement(`div`,{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)}getListElements(){let e=[];
87return this.model.visiblePages.forEach((t,n)=>{e.push(this.renderListElement(t,n))}),e}renderListElement(e,t){let n=Pz.renderLocString(e.locNavigationTitle);return g.createElement(`li`,{key:`listelement`+t,className:this.model.getListElementCss(t),onClick:this.model.isListElementClickable(t)?()=>this.model.clickListElement(e):void 0,"data-page-number":this.model.getItemNumber(e)},g.createElement(`div`,{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?g.createElement(g.Fragment,null,g.createElement(`div`,{className:this.css.progressButtonsPageTitle,title:e.renderedNavigationTitle},n),g.createElement(`div`,{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription)):null,g.createElement(`div`,{className:this.css.progressButtonsButton},g.createElement(`div`,{className:this.css.progressButtonsButtonBackground}),g.createElement(`div`,{className:this.css.progressButtonsButtonContent}),g.createElement(`span`,null,this.model.getItemNumber(e))))}clickScrollButton(e,t){e&&(e.scrollLeft+=(t?-1:1)*70)}componentDidMount(){super.componentDidMount(),this.respManager=new AI(this.model,this.listContainerRef.current,this)}componentWillUnmount(){this.respManager&&this.respManager.dispose(),super.componentWillUnmount()}};Mz.Instance.registerElement(`sv-progress-buttons`,e=>g.createElement(MV,e));var NV=class extends Pz{constructor(e){super(e),this.handleKeydown=e=>{this.model.onKeyDown(e)},this.elementRef=g.createRef()}get model(){return this.props.model}get item(){return this.props.item}getStateElement(){return this.item}render(){if(!this.item)return null;let e=this.model.getItemClass(this.item),t=this.item.component||this.model.itemComponent,n=this.item.data,r=Mz.Instance.createElement(t,{item:this.item,key:this.item.id,model:this.model,itemData:n,survey:n==null?void 0:n.survey,page:n==null?void 0:n.page}),i=g.createElement(`div`,{ref:this.elementRef,style:this.model.getItemStyle(this.item),className:this.model.cssClasses.itemBody,title:this.item.getTooltip(),onMouseOver:e=>{this.model.onItemHover(this.item)},onMouseLeave:e=>{this.model.onItemLeave(this.item)}},r),a=this.item.needSeparator?g.createElement(`div`,{className:this.model.cssClasses.itemSeparator}):null,o={display:this.model.isItemVisible(this.item)?null:`none`};return cB(g.createElement(`li`,{className:e,role:this.model.listItemRole,style:o,id:this.item.elementId,"aria-selected":this.model.getA11yItemAriaSelected(this.item),"aria-checked":this.model.getA11yItemAriaChecked(this.item),onClick:e=>{this.model.onItemClick(this.item),e.stopPropagation()},onPointerDown:e=>this.model.onPointerDown(e,this.item)},a,i),this.item)}componentDidMount(){var e;super.componentDidMount(),this.model.onItemRended(this.item,(e=this.elementRef)==null?void 0:e.current)}};Mz.Instance.registerElement(`sv-list-item`,e=>g.createElement(NV,e));var PV=class extends Pz{constructor(e){super(e),this.handleKeydown=e=>{this.model.onKeyDown(e)},this.handleMouseMove=e=>{this.model.onMouseMove(e)},this.state={filterString:this.model.filterString||``},this.listContainerRef=g.createRef()}get model(){return this.props.model}getStateElement(){return this.model}componentDidMount(){super.componentDidMount(),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)}componentDidUpdate(e,t){var n;super.componentDidUpdate(e,t),this.model!==e.model&&(this.model&&(n=this.listContainerRef)!=null&&n.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current),e.model&&e.model.initListContainerHtmlElement(void 0))}componentWillUnmount(){super.componentWillUnmount(),this.model&&this.model.initListContainerHtmlElement(void 0)}renderElement(){return g.createElement(`div`,{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())}renderList(){if(!this.model.renderElements)return null;let e=this.renderItems(),t={display:this.model.isEmpty?`none`:null};return g.createElement(`ul`,{className:this.model.getListClass(),style:t,role:this.model.listRole,"aria-label":this.model.a11ya11y_input_ariaLabel,id:this.model.elementId,onMouseDown:e=>{e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)}renderItems(){if(!this.model)return null;let e=this.model.renderedActions;return e?e.map((e,t)=>g.createElement(NV,{model:this.model,item:e,key:`item`+t})):null}searchElementContent(){if(this.model.showFilter){let e=e=>{var t;let n=(t=e.target.getRootNode())==null?void 0:t.activeElement;e.target===n&&(this.model.filterString=e.target.value)},t=e=>{this.model.goToItems(e)},n=this.model.showSearchClearButton&&this.model.filterString?g.createElement(`button`,{className:this.model.cssClasse
87s.searchClearButtonIcon,onClick:e=>{this.model.onClickSearchClearButton(e)}},g.createElement(Rz,{iconName:`icon-searchclear`,size:`auto`})):null;return g.createElement(`div`,{className:this.model.cssClasses.filter},g.createElement(`div`,{className:this.model.cssClasses.filterIcon},g.createElement(Rz,{iconName:`icon-search`,size:`auto`})),g.createElement(`input`,{type:`text`,className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:t,onChange:e}),n)}return null}emptyContent(){let e={display:this.model.isEmpty?null:`none`};return g.createElement(`div`,{className:this.model.cssClasses.emptyContainer,style:e},g.createElement(`div`,{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))}};Mz.Instance.registerElement(`sv-list`,e=>g.createElement(PV,e));var FV=class extends lB{componentDidMount(){super.componentDidMount(),this.props.model.updateStickyTOCSize(this.survey.rootElement)}render(){let e=this.props.model,t;return t=e.isMobile?g.createElement(`div`,{onClick:e.togglePopup},g.createElement(Rz,{iconName:e.icon,size:24}),g.createElement(Uz,{model:e.popupModel})):g.createElement(PV,{model:e.listModel}),g.createElement(`div`,{className:e.containerCss},t)}};Mz.Instance.registerElement(`sv-navigation-toc`,e=>g.createElement(FV,e));var IV=class extends Iz{constructor(e){super(e),this.handleOnClick=this.handleOnClick.bind(this)}get question(){return this.questionBase}handleOnClick(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})}componentDidMount(){super.componentDidMount(),this.setState({value:this.question.value})}renderItem(e,t){return Mz.Instance.createElement(this.question.itemComponent,{question:this.question,item:e,index:t,key:`value`+t,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})}renderElement(){var e=this.question.cssClasses,t=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,n=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return g.createElement(`div`,{className:this.question.ratingRootCss,ref:e=>this.setControl(e)},g.createElement(`fieldset`,{role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},g.createElement(`legend`,{role:`presentation`,className:`sv-hidden`}),this.question.hasMinLabel?g.createElement(`span`,{className:e.minText},t):null,this.question.renderedRateItems.map((e,t)=>this.renderItem(e,t)),this.question.hasMaxLabel?g.createElement(`span`,{className:e.maxText},n):null))}};Qz.Instance.registerQuestion(`rating`,e=>g.createElement(IV,e));var LV=class extends GB{constructor(e){super(e)}renderElement(){var e=this.question.cssClasses,t=this.renderSelect(e);return g.createElement(`div`,{className:this.question.cssClasses.rootDropdown},t)}};Qz.Instance.registerQuestion(`sv-rating-dropdown`,e=>g.createElement(LV,e)),jP.Instance.registerRenderer(`rating`,`dropdown`,`sv-rating-dropdown`);var RV=class extends Iz{constructor(e){super(e),this.rangeInputRef=g.createRef()}componentDidMount(){super.componentDidMount(),this.question.refreshInputRange(this.rangeInputRef.current)}get question(){return this.questionBase}getStateElement(){return this.question}
87renderElement(){let{cssClasses:e,showLabels:t,sliderType:n,getTrackPercentLeft:r,getTrackPercentRight:i,allowDragRange:a,setValueByClickOnPath:o}=this.question,s=n===`single`&&a?null:this.getRangeInput(),c=this.getInputsAndThumbs(),l=t?this.getLabels():null;return g.createElement(`div`,{className:this.question.rootCss,ref:e=>this.setControl(e)},s,g.createElement(`div`,{className:e.visualContainer,onPointerUp:e=>{o(e.nativeEvent,this.control)}},g.createElement(`div`,{className:e.visualContainerSlider},g.createElement(`div`,{className:e.inverseTrackLeft,style:{width:r()+`%`}}),g.createElement(`div`,{className:e.inverseTrackRight,style:{width:i()+`%`}}),g.createElement(`div`,{className:e.rangeTrack,style:{left:r()+`%`,right:i()+`%`}}),c)),l)}getInputsAndThumbs(){let e=[],t=this.question.renderedValue;for(let n=0;n<t.length;n++){let t=g.createElement(g.Fragment,{key:n},this.getInput(n),this.getThumb(n));e.push(t)}return e}getThumb(e){let{cssClasses:t,getThumbContainerCss:n,tooltipVisibility:r,tooltipCss:i,getPercent:a,renderedValue:o,getTooltipValue:s}=this.question,c=o[e],l=null;return r!==`never`&&(l=g.createElement(`div`,{className:i},g.createElement(`div`,{className:t.tooltipPanel},g.createElement(`div`,{className:t.tooltipValue},s(e))))),g.createElement(`div`,{className:n(e),style:{left:a(c)+`%`}},l,g.createElement(`div`,{className:t.thumb},g.createElement(`div`,{className:t.thumbDot})))}getInput(e){let{renderedMax:t,renderedMin:n,step:r,cssClasses:i,isDisabledAttr:a,renderedValue:o,handleOnChange:s,handlePointerDown:c,handlePointerUp:l,handleKeyDown:u,handleKeyUp:d,handleOnFocus:f,handleOnBlur:p,id:m}=this.question,h=o[e];return g.createElement(`input`,{className:i.input,id:m+`-sjs-slider-input-`+e,type:`range`,min:n,max:t,step:r,value:h,onChange:t=>{s(t.nativeEvent,e)},onPointerDown:e=>{c(e.nativeEvent)},onPointerUp:e=>{e.stopPropagation(),l(e.nativeEvent)},onKeyDown:e=>{u(e.nativeEvent)},onKeyUp:e=>{d(e.nativeEvent)},onFocus:()=>{f(e)},onBlur:()=>{p()},disabled:a,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage})}getRangeInput(){let{renderedMax:e,renderedMin:t,step:n,cssClasses:r,handleRangeOnChange:i,handleRangePointerDown:a,handleRangePointerUp:o,id:s}=this.question;return g.createElement(`input`,{name:`range-input`,id:s+`-sjs-slider-input-range-input`,ref:this.rangeInputRef,className:r.input,type:`range`,"aria-hidden":`true`,min:t,max:e,step:n,tabIndex:-1,onChange:e=>{i(e.nativeEvent)},onPointerDown:e=>{e.persist(),a(e.nativeEvent,this.control)},onPointerUp:e=>{o(e.nativeEvent,this.control)}})}getLabels(){let e=[],{renderedLabels:t,cssClasses:n}=this.question;for(let n=0;n<t.length;n++){let r=Mz.Instance.createElement(`sv-slider-label-item`,{item:t[n],question:this.question,key:t[n].id});e.push(r)}return g.createElement(`div`,{className:n.labelsContainer},g.createElement(`div`,null,e))}};Qz.Instance.registerQuestion(`slider`,e=>g.createElement(RV,e));var zV=class extends Iz{constructor(e){super(e)}get question(){return this.questionBase}renderElement(){var e=this.question.cssClasses;return g.createElement(`div`,{id:this.question.inputId,className:e.root,ref:e=>this.setControl(e),"aria-live":`polite`,"aria-label":this.question.formatedValue},this.question.formatedValue)}};Qz.Instance.registerQuestion(`expression`,e=>g.createElement(zV,e));var BV=class extends Iz{constructor(e){super(e)}get question(){return this.questionBase}renderElement(){var e=this.question.cssClasses;return g.createElement(`fieldset`,{className:this.question.getSelectBaseRootCss(),style:this.question.getContainerStyle()},g.createElement(`legend`,{className:`sv-hidden`},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(e):this.getItems(e))}getColumns(e){return this.question.columns.map((t,n)=>{var r=t.map((t,n)=>this.renderItem(t,e));return g.createElement(`div`,{key:`column`+n+this.question.getItemsColumnKey(t),className:this.question.getColumnClass(),role:`presentation`},r)})}getItems(e){for(var t=[],n=0;n<this.question.visibleChoices.length;n++){var r=this.question.visibleChoices[n];t.push(this.renderItem(r,e))}return t}get textStyle(){return{marginLeft:`3px`,display:`inline`,position:`static`}}renderItem(e,t){let n=g.createElement(VV,{key:e.uniqueId,question:this.question,item:e,cssClasse
87s:t}),r=this.question.survey,i=null;return r&&(i=Nz.wrapItemValue(r,n,this.question,e)),i??n}},VV=class extends Fz{constructor(e){super(e),this.handleOnChange=this.handleOnChange.bind(this)}getStateElement(){return this.item}componentDidMount(){super.componentDidMount(),this.reactOnStrChanged()}componentWillUnmount(){super.componentWillUnmount(),this.item.locImageLink.onChanged=function(){}}componentDidUpdate(e,t){super.componentDidUpdate(e,t),this.reactOnStrChanged()}reactOnStrChanged(){this.item.locImageLink.onChanged=()=>{this.setState({locImageLinkchanged:this.state&&this.state.locImageLink?this.state.locImageLink+1:1})}}get cssClasses(){return this.props.cssClasses}get item(){return this.props.item}get question(){return this.props.question}handleOnChange(e){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect){if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}}else this.question.value=e.target.value;this.setState({value:this.question.value})}}renderElement(){let e=this.item,t=this.question,n=this.cssClasses;var r=t.isItemSelected(e),i=t.getItemClass(e),a=null;t.showLabel&&(a=g.createElement(`span`,{className:t.cssClasses.itemText},e.text?Pz.renderLocString(e.locText):e.value));var o={objectFit:this.question.imageFit},s=null;if(e.locImageLink.renderedHtml&&this.question.contentMode===`image`&&(s=g.createElement(`img`,{className:n.image,src:e.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:e.locText.renderedHtml,style:o,onLoad:t=>{this.question.onContentLoaded(e,t.nativeEvent)},onError:t=>{e.onErrorHandler(e,t.nativeEvent)}})),e.locImageLink.renderedHtml&&this.question.contentMode===`video`&&(s=g.createElement(`video`,{controls:!0,className:n.image,src:e.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:o,onLoadedMetadata:t=>{this.question.onContentLoaded(e,t.nativeEvent)},onError:t=>{e.onErrorHandler(e,t.nativeEvent)}})),!e.locImageLink.renderedHtml||e.contentNotLoaded){let e={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};s=g.createElement(`div`,{className:n.itemNoImage,style:e},n.itemNoImageSvgIcon?g.createElement(Rz,{className:n.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return g.createElement(`div`,{className:i},g.createElement(`label`,{className:n.label},g.createElement(`input`,{className:n.itemControl,id:this.question.getItemId(e),type:this.question.inputType,name:this.question.questionName,checked:r,value:e.value,disabled:!this.question.getItemEnabled(e),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange,required:this.question.inputRequiredAttribute,"aria-label":e.locText.renderedHtml,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),g.createElement(`div`,{className:this.question.cssClasses.itemDecorator},g.createElement(`div`,{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?g.createElement(`span`,{className:this.question.cssClasses.checkedItemDecorator,"aria-hidden":`true`},this.question.cssClasses.checkedItemSvgIconId?g.createElement(Rz,{size:`auto`,className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,s),a)))}};Qz.Instance.registerQuestion(`imagepicker`,e=>g.createElement(BV,e));var HV=class extends Iz{constructor(e){super(e),this.state={width:void 0,height:void 0,scale:void 0}}get question(){return this.questionBase}componentDidMount(){super.componentDidMount()}componentWillUnmount(){super.componentWillUnmount()}renderElement(){return g.createElement(`div`,{className:this.question.cssClasses.root,ref:e=>this.setControl(e)},g.createElement(`img`,{className:this.question.cssClasses.bg,id:`${this.question.id}-bg`,src:this.question.imageLink,role:`presentation`}
87),g.createElement(`svg`,{className:this.question.cssClasses.svg,id:`${this.question.id}-svg`}))}};Qz.Instance.registerQuestion(`imagemap`,e=>g.createElement(HV,e));var UV=class extends Iz{constructor(e){super(e)}componentDidMount(){super.componentDidMount(),this.question.locImageLink.onChanged=()=>{this.forceUpdate()}}componentWillUnmount(){super.componentWillUnmount(),this.question.locImageLink.onChanged=()=>{}}get question(){return this.questionBase}renderElement(){var e=this.question.getImageCss(),t={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};(!this.question.imageLink||this.question.contentNotLoaded)&&(t.display=`none`);var n=null;this.question.renderedMode===`image`&&(n=g.createElement(`img`,{className:e,src:this.question.locImageLink.renderedHtml||null,alt:this.question.renderedAltText,width:this.question.renderedWidth,height:this.question.renderedHeight,style:t,onLoad:e=>{this.question.onLoadHandler()},onError:e=>{this.question.onErrorHandler()}})),this.question.renderedMode===`video`&&(n=g.createElement(`video`,{controls:!0,className:e,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:t,onLoadedMetadata:e=>{this.question.onLoadHandler()},onError:e=>{this.question.onErrorHandler()}})),this.question.renderedMode===`youtube`&&(n=g.createElement(`iframe`,{className:e,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:t,title:this.question.renderedAltText}));var r=null;return(!this.question.imageLink||this.question.contentNotLoaded)&&(r=g.createElement(`div`,{className:this.question.cssClasses.noImage},g.createElement(Rz,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),g.createElement(`div`,{className:this.question.cssClasses.root},n,r)}};Qz.Instance.registerQuestion(`image`,e=>g.createElement(UV,e));var WV=class extends Iz{constructor(e){super(e),this.state={value:this.question.value}}get question(){return this.questionBase}renderElement(){var e=this.question.cssClasses;let t=this.question.showLoadingIndicator?this.renderLoadingIndicator():null;var n=this.renderCleanButton();return g.createElement(`div`,{className:e.root,ref:e=>this.setControl(e),style:{width:this.question.renderedCanvasWidth}},g.createElement(`div`,{className:e.placeholder,style:{display:this.question.needShowPlaceholder()?``:`none`}},this.renderLocString(this.question.locRenderedPlaceholder)),g.createElement(`div`,null,this.renderBackgroundImage(),g.createElement(`canvas`,{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:e=>{this.question.onBlur(e)}})),n,t)}renderBackgroundImage(){return this.question.backgroundImage?g.createElement(`img`,{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth},role:`presentation`}):null}renderLoadingIndicator(){return g.createElement(`div`,{className:this.question.cssClasses.loadingIndicator},g.createElement(eV,null))}renderCleanButton(){if(!this.question.canShowClearButton)return null;var e=this.question.cssClasses;return g.createElement(`div`,{className:e.controls},g.createElement(`button`,{type:`button`,className:e.clearButton,title:this.question.clearButtonCaption,onClick:()=>this.question.clearValueFromUI()},this.question.cssClasses.clearButtonIconId?g.createElement(Rz,{iconName:this.question.cssClasses.clearButtonIconId,size:`auto`}):g.createElement(`span`,null,`â`),` `))}};Qz.Instance.registerQuestion(`signaturepad`,e=>g.createElement(WV,e));var GV=class extends Iz{constructor(e){super(e)}get question(){return this.questionBase}getStateElement(){return this.question}renderElement(){let e=this.renderItems();return g.createElement(`div`,{className:this.question.cssClasses.root},e)}renderItems(){return this.question.visibleChoices.map((e,t)=>g.createElement(KV,{key:this.question.inputId+`_`+t,item:e,question:this.question,index:t}))}};Qz.Instance.registerQuestion(`buttongroup`,e=>g.createElement(GV,e));var KV=class extends Pz{constructor(e){super(e)}get index(){return this.props.index}get question(){return this.props.question}get item(){return this.props.item}getStateElement(){return this.item}renderElement(){this.model=new rz(this.question,this.item,this.index);let e=this.renderIcon(),t=this.renderInput(),n=this.renderCaption();return g.createElement(`label`,{className:this.model.css.label,title:this.model.caption.renderedHtml},t,g.createElement(`div`,{className:this.model.css.decorator},e,n))}renderIcon(){return this.model.iconName?g.createElement(Rz,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null}renderInput(){return g.createElement(`input`,{className:this.model.css.control,id:this.model.id,type:`radio`,name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:()=>{this.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-errormessage":this.model.describedBy})}renderCaption(){if(!this.model.showCaption)return null;let e=this.renderLocString(this.model.caption);return g.createElement(`span`,{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)}},qV=class extends GB{constructor(e){super(e)}
87renderElement(){let e=this.question.cssClasses,t=this.renderSelect(e);return g.createElement(`div`,{className:this.question.cssClasses.rootDropdown},t)}};Qz.Instance.registerQuestion(`sv-buttongroup-dropdown`,e=>g.createElement(qV,e)),jP.Instance.registerRenderer(`buttongroup`,`dropdown`,`sv-buttongroup-dropdown`);var JV=class extends Lz{constructor(e){super(e)}getStateElements(){let e=super.getStateElements();return this.question.contentQuestion&&e.push(this.question.contentQuestion),e}getRenderedElements(){let e=super.getRenderedElements();return this.question.contentQuestion&&e.push(this.question.contentQuestion),e}renderElement(){return CB.renderQuestionBody(this.creator,this.question.contentQuestion)}},YV=class extends Lz{constructor(e){super(e)}canRender(){return!!this.question.contentPanel}renderElement(){return g.createElement(kB,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})}};Qz.Instance.registerQuestion(`custom`,e=>g.createElement(JV,e)),Qz.Instance.registerQuestion(`composite`,e=>g.createElement(YV,e));var XV=class extends Pz{get model(){return this.props.model}get item(){return this.props.item}getStateElement(){return this.item}render(){if(!this.item)return null;let e=this.renderLocString(this.item.locTitle,void 0,`locString`),t=this.item.iconName?g.createElement(Rz,{className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title}):null,n=this.item.markerIconName?g.createElement(Rz,{className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:`auto`}):null;return g.createElement(g.Fragment,null,t,e,n)}};Mz.Instance.registerElement(`sv-list-item-content`,e=>g.createElement(XV,e));var ZV=class extends Pz{get model(){return this.props.model}get item(){return this.props.item}getStateElement(){return this.item}render(){var e;if(!this.item)return null;let t=Mz.Instance.createElement(`sv-list-item-content`,{item:this.item,key:`content`+this.item.id,model:this.model});return g.createElement(g.Fragment,null,t,g.createElement(Uz,{model:(e=this.item)==null?void 0:e.popupModel}))}};Mz.Instance.registerElement(`sv-list-item-group`,e=>g.createElement(ZV,e));var QV=class extends g.Component{constructor(e){super(e)}get survey(){return this.props.data}render(){let e=[];return e.push(g.createElement(`div`,{key:`logo-image`,className:this.survey.logoClassNames},g.createElement(`img`,{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml||null,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),g.createElement(g.Fragment,null,e)}};Mz.Instance.registerElement(`sv-logo-image`,e=>g.createElement(QV,e));var $V=class extends Fz{constructor(e){super(e),this.handleOnRowRemoveClick=this.handleOnRowRemoveClick.bind(this)}get question(){return this.props.item.data.question}get row(){return this.props.item.data.row}handleOnRowRemoveClick(e){this.question.removeRowUI(this.row)}renderElement(){var e=this.renderLocString(this.question.locRemoveRowText);return g.createElement(`button`,{className:this.question.getRemoveRowButtonCss(),type:`button`,onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,g.createElement(`span`,{className:this.question.cssClasses.iconRemove}))}};Mz.Instance.registerElement(`sv-matrix-remove-button`,e=>g.createElement($V,e));var eH=class extends Fz{constructor(e){super(e),this.handleOnShowHideClick=this.handleOnShowHideClick.bind(this)}getStateElement(){return this.props.item}get item(){return this.props.item}get question(){return this.props.item.data.question}get row(){return this.props.item.data.row}handleOnShowHideClick(e){this.row.showHideDetailPanelClick()}renderElement(){var e=this.row.isDetailPanelShowing,t=e,n=e?this.row.detailPanelId:void 0;return g.createElement(`button`,{type:`button`,title:this.props.item.title,onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":t,"aria-controls":n},g.createElement(Rz,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:`auto`}))}};Mz.Instance.registerElement(`sv-matrix-detail-button`,e=>g.createElement(eH,e));var tH=class extends Fz{constructor(e){super(e)}get data(){return this.props.item&&this.props.item.data||this.props.data}get question(){return this.props.item&&this.props.item.data.question||this.props.data.question}get isActionEnabled(){return!this.props.item||this.props.item.enabled!==!1}},nH=class extends tH{constructor(){super(...arguments),this.handleClick=e=>{this.isActionEnabled&&this.question.addPanelUI()}}get isActionEnabled(){return this.props.item?this.props.item.enabled!==!1:this.question.enableAddPanel!==!1}renderElement(){if(!this.question.canAddPanel)return null;let e=this.renderLocString(this.question.locAddPanelText);return g.createElement(`button`,{type:`button`,id:this.question.addButtonId,className:this.question.getAddButtonCss(),onClick:this.handleClick,disabled:!this.isActionEnabled}
87,g.createElement(`span`,{className:this.question.cssClasses.buttonAddText},e))}};Mz.Instance.registerElement(`sv-paneldynamic-add-btn`,e=>g.createElement(nH,e));var rH=class extends tH{constructor(){super(...arguments),this.handleClick=e=>{this.isActionEnabled&&this.question.removePanelUI(this.data.panel)}}renderElement(){let e=this.renderLocString(this.question.locRemovePanelText),t=this.question.getPanelRemoveButtonId(this.data.panel);return g.createElement(`button`,{id:t,className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,disabled:!this.isActionEnabled,type:`button`},g.createElement(`span`,{className:this.question.cssClasses.buttonRemoveText},e),g.createElement(`span`,{className:this.question.cssClasses.iconRemove}))}};Mz.Instance.registerElement(`sv-paneldynamic-remove-btn`,e=>g.createElement(rH,e));var iH=class extends tH{constructor(){super(...arguments),this.handleClick=e=>{this.question.goToPrevPanel()}}renderElement(){return g.createElement(`div`,{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},g.createElement(Rz,{iconName:this.question.cssClasses.progressBtnIcon,size:`auto`}))}};Mz.Instance.registerElement(`sv-paneldynamic-prev-btn`,e=>g.createElement(iH,e));var aH=class extends tH{constructor(){super(...arguments),this.handleClick=e=>{this.question.goToNextPanel()}}renderElement(){return g.createElement(`div`,{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},g.createElement(Rz,{iconName:this.question.cssClasses.progressBtnIcon,size:`auto`}))}};Mz.Instance.registerElement(`sv-paneldynamic-next-btn`,e=>g.createElement(aH,e));var oH=class extends tH{renderElement(){return g.createElement(`div`,{className:this.question.cssClasses.progressText},this.question.progressText)}};Mz.Instance.registerElement(`sv-paneldynamic-progress-text`,e=>g.createElement(oH,e));var sH=class extends Fz{constructor(){super(...arguments),this.inputElement=null,this.inputParent=null,this.setInputRef=e=>{!e&&this.inputElement&&this.inputParent&&this.inputElement.parentNode!==this.inputParent&&this.inputParent.appendChild(this.inputElement),this.inputElement=e,this.inputParent=(e==null?void 0:e.parentNode)??this.inputParent}}get item(){return this.props.item}canRender(){return this.item.isVisible}renderElement(){return g.createElement(`input`,{ref:this.setInputRef,className:this.item.innerCss,type:`button`,disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})}};Mz.Instance.registerElement(`sv-nav-btn`,e=>g.createElement(sH,e));var cH=class extends g.Component{render(){let e=this.props.error,t=this.props.cssClasses;return g.createElement(`div`,null,g.createElement(`span`,{className:e.getCssIcon(t),"aria-hidden":`true`}),g.createElement(`span`,{className:this.props.cssClasses.error.item||void 0},g.createElement(Bz,{model:e.locText})))}};Mz.Instance.registerElement(`sv-question-error`,e=>g.createElement(cH,e));var lH=class extends Pz{getStateElement(){return this.item}get item(){return this.props.item}get question(){return this.props.question}componentDidUpdate(e,t){super.componentDidUpdate(e,t)}
87renderElement(){let{cssClasses:e,handleLabelPointerUp:t,getLabelCss:n,getPercent:r}=this.question,{value:i,locText:a}=this.item,o=null,s=null;return this.item.showValue?(o=g.createElement(`div`,{className:e.labelText},this.item.value),s=g.createElement(`div`,{className:e.labelTextSecondaryMode},this.renderLocString(a))):o=g.createElement(`div`,{className:e.labelText},this.renderLocString(a)),g.createElement(`div`,{key:this.item.uniqueId,className:n(a),style:{left:r(i)+`%`},onPointerUp:e=>{t(e.nativeEvent,i)}},g.createElement(`div`,{className:e.labelTick}),g.createElement(`div`,{className:e.labelTextContainer},o,s))}};Mz.Instance.registerElement(`sv-slider-label-item`,e=>g.createElement(lH,e));var uH=class extends g.Component{render(){var e,t;return g.createElement(`div`,{className:`sv-skeleton-element`,id:(e=this.props.element)==null?void 0:e.id,style:{height:(t=this.props.element)==null?void 0:t.skeletonHeight}})}};Mz.Instance.registerElement(`sv-skeleton`,e=>g.createElement(uH,e));var dH=class extends g.Component{get model(){return this.props.model}renderLogoImage(){let e=this.model.survey.getElementWrapperComponentName(this.model.survey,`logo-image`),t=this.model.survey.getElementWrapperComponentData(this.model.survey,`logo-image`);return Mz.Instance.createElement(e,{data:t})}render(){return g.createElement(`div`,{className:`sv-header--mobile`},this.model.survey.hasLogo?g.createElement(`div`,{className:`sv-header__logo`},this.renderLogoImage()):null,this.model.survey.hasTitle?g.createElement(`div`,{className:`sv-header__title`,style:{maxWidth:this.model.renderedTextAreaWidth}},g.createElement(Xz,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?g.createElement(`div`,{className:`sv-header__description`,style:{maxWidth:this.model.renderedTextAreaWidth}},g.createElement(`div`,{className:this.model.survey.css.description},Pz.renderLocString(this.model.survey.locDescription))):null)}},fH=class extends g.Component{get model(){return this.props.model}renderLogoImage(){let e=this.model.survey.getElementWrapperComponentName(this.model.survey,`logo-image`),t=this.model.survey.getElementWrapperComponentData(this.model.survey,`logo-image`);return Mz.Instance.createElement(e,{data:t})}render(){return g.createElement(`div`,{className:this.model.css,style:this.model.style},g.createElement(`div`,{className:`sv-header__cell-content`,style:this.model.contentStyle},this.model.showLogo?g.createElement(`div`,{className:`sv-header__logo`},this.renderLogoImage()):null,this.model.showTitle?g.createElement(`div`,{className:`sv-header__title`,style:{maxWidth:this.model.textAreaWidth}},g.createElement(Xz,{element:this.model.survey})):null,this.model.showDescription?g.createElement(`div`,{className:`sv-header__description`,style:{maxWidth:this.model.textAreaWidth}},g.createElement(`div`,{className:this.model.survey.css.description},Pz.renderLocString(this.model.survey.locDescription))):null))}},pH=class extends Pz{get model(){return this.props.model}getStateElement(){return this.model}renderElement(){if(this.model.survey=this.props.survey,this.props.survey.headerView!==`advanced`||this.model.isEmpty)return null;let e=null;return e=this.props.survey.isMobile?g.createElement(dH,{model:this.model}):g.createElement(`div`,{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map((e,t)=>g.createElement(fH,{key:t,model:e}))),g.createElement(`div`,{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?g.createElement(`div`,{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,e)}componentDidMount(){super.componentDidMount(),this.model.processResponsiveness()}componentDidUpdate(e,t){super.componentDidUpdate(e,t),this.model.processResponsiveness()}};Mz.Instance.registerElement(`sv-header`,e=>g.createElement(pH,e));var mH=class extends g.Component{constructor(e){super(e),this.onInput=e=>{this.locStr.text=e.target.innerText},this.onClick=e=>{e.preventDefault(),e.stopPropagation()},this.state={changed:0}}get locStr(){return this.props.model}get style(){return this.props.style}componentDidMount(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}}componentWillUnmount(){this.locStr&&(this.locStr.onChanged=function(){})}
vendor: 6,054 bytes, line 87
87render(){if(!this.locStr)return null;if(this.locStr.hasHtml){let e={__html:this.locStr.renderedHtml};return g.createElement(`span`,{className:`sv-string-editor`,contentEditable:`true`,suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return g.createElement(`span`,{className:`sv-string-editor`,contentEditable:`true`,suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)}};Mz.Instance.registerElement(yj.editableRenderer,e=>g.createElement(mH,e)),Tz(`2.5.40`,`survey-react-ui`);function hH(e){"@babel/helpers - typeof";return hH=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hH(e)}var gH=Uint8Array,_H=Uint16Array,vH=Int32Array,yH=new gH([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),bH=new gH([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),xH=new gH([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),SH=function(e,t){for(var n=new _H(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new vH(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},CH=SH(yH,2),wH=CH.b,TH=CH.r;wH[28]=258,TH[258]=28;var EH=SH(bH,0);EH.b;for(var DH=EH.r,OH=new _H(32768),kH=0;kH<32768;++kH){var AH=(kH&43690)>>1|(kH&21845)<<1;AH=(AH&52428)>>2|(AH&13107)<<2,AH=(AH&61680)>>4|(AH&3855)<<4,OH[kH]=((AH&65280)>>8|(AH&255)<<8)>>1}for(var jH=(function(e,t,n){for(var r=e.length,i=0,a=new _H(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new _H(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new _H(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[OH[d]>>c]=l}else for(s=new _H(r),i=0;i<r;++i)e[i]&&(s[i]=OH[o[e[i]-1]++]>>15-e[i]);return s}),MH=new gH(288),kH=0;kH<144;++kH)MH[kH]=8;for(var kH=144;kH<256;++kH)MH[kH]=9;for(var kH=256;kH<280;++kH)MH[kH]=7;for(var kH=280;kH<288;++kH)MH[kH]=8;for(var NH=new gH(32),kH=0;kH<32;++kH)NH[kH]=5;var PH=jH(MH,9,0),FH=jH(NH,5,0),IH=function(e){return(e+7)/8|0},LH=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new gH(e.subarray(t,n))},RH=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},zH=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},BH=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return{t:qH,l:0};if(i==1){var o=new gH(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=i-1;)s=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c};for(var f=a[0].s,r=1;r<i;++r)a[r].s>f&&(f=a[r].s);var p=new _H(f+1),m=VH(n[u-1],p,0);if(m>t){var r=0,h=0,g=m-t,_=1<<g;for(a.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});r<i;++r){var v=a[r].s;if(p[v]>t)h+=_-(1<<m-p[v]),p[v]=t;else break}for(h>>=g;h>0;){var y=a[r].s;p[y]<t?h-=1<<t-p[y]++-1:++r}for(;r>=0&&h;--r){var b=a[r].s;p[b]==t&&(--p[b],++h)}m=t}return{t:new gH(p),l:m}},VH=function(e,t,n){return e.s==-1?Math.max(VH(e.l,t,n+1),VH(e.r,t,n+1)):t[e.s]=n},HH=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new _H(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:n.subarray(0,r),n:t}},UH=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},WH=function(e,t,n){var r=n.length,i=IH(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<r;++a)e[i+a+4]=n[a];return(i+4+r)*8},GH=function(e,t,n,r,i,a,o,s,c,l,u){RH(t,u++,n),++i[256];for(var d=BH(i,15),f=d.t,p=d.l,m=BH(a,15),h=m.t,g=m.l,_=HH(f),v=_.c,y=_.n,b=HH(h),x=b.c,S=b.n,C=new _H(19),w=0;w<v.length;++w)++C[v[w]&31];for(var w=0;w<x.length;++w)++C[x[w]&31];for(var T=BH(C,7),E=T.t,D=T.l,O=19;O>4&&!E[xH[O-1]];--O);var k=l+5<<3,A=UH(i,MH)+UH(a,NH)+o,j=UH(i,f)+UH(a,h)+o+14+3*O+UH(C,E)+2*C[16]+3*C[17]+7*C[18];if(c>=0&&k<=A&&k<=j)return WH(t,u,e.subarray(c,c+l));var M,N,P,ee;if(RH(t,u,1+(j<A)),u+=2,j<A){M=jH(f,p,0),N=f,P=jH(h,g,0),ee=h;var F=jH(E,D,0);RH(t,u,y-257),RH(t,u+5,S-1),RH(t,u+10,O-4),u+=14;for(var w=0;w<O;++w)RH(t,u+3*w,E[xH[w]]);u+=3*O;for(var I=[v,x],te=0;te<2;++te)for(var L=I[te],w=0;w<L.length;++w){var ne=L[w]&31;RH(t,u,F[ne]),u+=E[ne],ne>15&&(RH(t,u,L[w]>>5&127),u+=L[w]>>12)}}else M=PH,N=MH,P=FH,ee=NH;for(var w=0;w<s;++w){var R=r[w];if(R>255){var ne=R>>18&31;zH(t,u,M[ne+257]),u+=N[ne+257],ne>7&&(RH(t,u,R>>23&31),u+=yH[ne]);var re=R&31;zH(t,u,P[re]),u+=ee[re],re>3&&(zH(t,u,R>>5&8191),u+=bH[re])}else zH(t,u,M[R]),u+=N[R]}return zH(t,u,M[256]),u+N[256]},KH=new vH([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),qH=new gH(0),JH=function(e,t,n,r,i,a){var o=a.z||e.length,s=new gH(r+o+5*(1+Math.ceil(o/7e3))+i),c=s.subarray(r,s.length-i),l=a.l,u=(a.r||0)&7;if(t){u&&(c[0]=a.r>>3);for(var d=KH[t-1],f=d>>13,p=d&8191,m=(1<<n)-1,h=a.p||new _H(32768),g=a.h||new _H(m+1),_=Math.ceil(n/3),v=2*_,y=function(t){return(e[t]^e[t+1]<<_^e[t+2]<<v)&m},b=new vH(25e3),x=new _H(288),S=new _H(32),C=0,w=0,T=a.i||0,E=0,D=a.w||0,O=0;T+2<o;++T){var k=y(T),A=T&32767,j=g[k];if(h[A]=j,g[k]=A,D<=T){var M=o-T;if((C>7e3||E>24576)&&(M>423||!l)){u=GH(e,c,0,b,x,S,w,E,O,T-O,u),E=C=w=0,O=T;for(var N=0;N<286;++N)x[N]=0;for(var N=0;N<30;++N)S[N]=0}var P=2,ee=0,F=p,I=A-j&32767;if(M>2&&k==y(T-I))for(var te=Math.min(f,M)-1,L=Math.min(32767,T),ne=Math.min(258,M);I<=L&&--F&&A!=j;){if(e[T+P]==e[T+P-I]){for(var R=0;R<ne&&e[T+R]==e[T+R-I];++R);if(R>P){if(P=R,ee=I,R>te)break;for(var re=Math.min(I,R-2),z=0,N=0;N<re;++N){var ie=T-I+N&32767,ae=ie-h[ie]&32767;ae>z&&(z=ae,j=ie)}}}A=j,j=h[A],I+=A-j&32767}if(ee){b[E++]=268435456|TH[P]<<18|DH[ee];var oe=TH[P]&31,se=DH[ee]&31;
vendor: 9,934 bytes, lines 87-88
87w+=yH[oe]+bH[se],++x[257+oe],++S[se],D=T+P,++C}else b[E++]=e[T],++x[e[T]]}}for(T=Math.max(T,D);T<o;++T)b[E++]=e[T],++x[e[T]];u=GH(e,c,l,b,x,S,w,E,O,T-O,u),l||(a.r=u&7|c[u/8|0]<<3,u-=7,a.h=g,a.p=h,a.i=T,a.w=D)}else{for(var T=a.w||0;T<o+l;T+=65535){var ce=T+65535;ce>=o&&(c[u/8|0]=l,ce=o),u=WH(c,u+1,e.subarray(T,ce))}a.i=o}return LH(s,0,r+IH(u)+i)},YH=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},XH=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new gH(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return JH(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},ZH=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},QH=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=YH();i.p(t.dictionary),ZH(e,2,i.d())}};function $H(e,t){t||(t={});var n=YH();n.p(e);var r=XH(e,t,t.dictionary?6:2,4);return QH(r,t),ZH(r,r.length-4,n.d()),r}var eU=typeof TextDecoder<`u`&&new TextDecoder;try{eU.decode(qH,{stream:!0})}catch{}function tU(e){if(Array.isArray(e))return e}function nU(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function rU(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iU(e,t){if(e){if(typeof e==`string`)return rU(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rU(e,t):void 0}}function aU(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 88In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oU(e,t){return tU(e)||nU(e,t)||iU(e,t)||aU()}function sU(e,t=`utf8`){return new TextDecoder(t).decode(e)}var cU=new TextEncoder;function lU(e){return cU.encode(e)}var uU=8192,dU=(()=>{let e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),fU={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},pU=class e{constructor(t=uU,n={}){Ll(this,`buffer`,void 0),Ll(this,`byteLength`,void 0),Ll(this,`byteOffset`,void 0),Ll(this,`length`,void 0),Ll(this,`offset`,void 0),Ll(this,`lastWrittenByte`,void 0),Ll(this,`littleEndian`,void 0),Ll(this,`_data`,void 0),Ll(this,`_mark`,void 0),Ll(this,`_marks`,void 0);let r=!1;typeof t==`number`?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);let i=n.offset?n.offset>>>0:0,a=t.byteLength-i,o=i;(ArrayBuffer.isView(t)||t instanceof e)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+i),t=t.buffer),this.lastWrittenByte=r?a:0,this.buffer=t,this.length=a,this.byteLength=a,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,a),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let e=this._marks.pop();if(e===void 0)throw Error(`Mark stack empty`);return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){let t=(this.offset+e)*2,n=new Uint8Array(t);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=t,this.byteLength=t,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,`uint8`)}readArray(e,t){let n=fU[t].BYTES_PER_ELEMENT*e,r=this.byteOffset+this.offset,i=this.buffer.slice(r,r+n);if(this.littleEndian===dU&&t!==`uint8`&&t!==`int8`){let e=new Uint8Array(this.buffer.slice(r,r+n));e.reverse();let i=new fU[t](e.buffer);return this.offset+=n,i.reverse(),i}let a=new fU[t](i);return this.offset+=n,a}readInt16(){let e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){let e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){let e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){let e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){let e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){let e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){let e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){let e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t=``;for(let n=0;n<e;n++)t+=this.readChar();return t}readUtf8(e=1){return sU(this.readBytes(e))}decodeText(e=1,t=`utf8`){return sU(this.readBytes(e),t)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let t=0;t<e.length;t++)this._data.setUint8(this.offset++,e[t]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let t=0;t<e.length;t++)this.writeUint8(e.charCodeAt(t));return this}writeUtf8(e){return this.writeBytes(lU(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}},mU=4,hU=0,gU=1,_U=2;function vU(e){let t=e.length;for(;--t>=0;)e[t]=0}var yU=29,bU=256,xU=286,SU=30,CU=19,wU=573,TU=15,EU=16,DU=7,OU=256,kU=16,AU=17,jU=18,MU=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),NU=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),PU=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),FU=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),IU=512,LU=Array(576);vU(LU);var RU=Array(60);vU(RU);var zU=Array(IU);vU(zU);var BU=Array(256);vU(BU);var VU=Array(yU);vU(VU);var HU=Array(SU);vU(HU);function UU(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var WU,GU,KU;function qU(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var JU=e=>e<256?zU[e]:zU[256+(e>>>7)],YU=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},XU=(e,t,n)=>{e.bi_valid>EU-n?(e.bi_buf|=t<<e.bi_valid&65535,YU(e,e.bi_buf),e.bi_buf=t>>EU-e.bi_valid,e.bi_valid+=n-EU):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},ZU=(e,t,n)=>{XU(e,n[t*2],n[t*2+1])},QU=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},$U=e=>{e.bi_valid===16?(YU(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},eW=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=TU;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<wU;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2
vendor: 40,986 bytes, line 88
88+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}},tW=(e,t,n)=>{let r=Array(16),i=0,a,o;for(a=1;a<=TU;a++)i=i+n[a-1]<<1,r[a]=i;for(o=0;o<=t;o++){let t=e[o*2+1];t!==0&&(e[o*2]=QU(r[t]++,t))}},nW=()=>{let e,t,n,r,i,a=Array(16);for(n=0,r=0;r<28;r++)for(VU[r]=n,e=0;e<1<<MU[r];e++)BU[n++]=r;for(BU[n-1]=r,i=0,r=0;r<16;r++)for(HU[r]=i,e=0;e<1<<NU[r];e++)zU[i++]=r;for(i>>=7;r<SU;r++)for(HU[r]=i<<7,e=0;e<1<<NU[r]-7;e++)zU[256+i++]=r;for(t=0;t<=TU;t++)a[t]=0;for(e=0;e<=143;)LU[e*2+1]=8,e++,a[8]++;for(;e<=255;)LU[e*2+1]=9,e++,a[9]++;for(;e<=279;)LU[e*2+1]=7,e++,a[7]++;for(;e<=287;)LU[e*2+1]=8,e++,a[8]++;for(tW(LU,287,a),e=0;e<SU;e++)RU[e*2+1]=5,RU[e*2]=QU(e,5);WU=new UU(LU,MU,257,xU,TU),GU=new UU(RU,NU,0,SU,TU),KU=new UU([],PU,0,CU,DU)},rW=e=>{let t;for(t=0;t<xU;t++)e.dyn_ltree[t*2]=0;for(t=0;t<SU;t++)e.dyn_dtree[t*2]=0;for(t=0;t<CU;t++)e.bl_tree[t*2]=0;e.dyn_ltree[OU*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},iW=e=>{e.bi_valid>8?YU(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},aW=(e,t,n,r)=>{let i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},oW=(e,t,n)=>{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&aW(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!aW(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},sW=(e,t,n)=>{let r,i,a=0,o,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+a++]&255,r+=(e.pending_buf[e.sym_buf+a++]&255)<<8,i=e.pending_buf[e.sym_buf+a++],r===0?ZU(e,i,t):(o=BU[i],ZU(e,o+bU+1,t),s=MU[o],s!==0&&(i-=VU[o],XU(e,i,s)),r--,o=JU(r),ZU(e,o,n),s=NU[o],s!==0&&(r-=HU[o],XU(e,r,s)));while(a<e.sym_next);ZU(e,OU,t)},cW=(e,t)=>{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=wU,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)oW(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],oW(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,oW(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],eW(e,t),tW(n,c,e.bl_count)},lW=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[34]++:e.bl_tree[36]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[32]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))},uW=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do ZU(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(ZU(e,AU,e.bl_tree),XU(e,s-3,3)):(ZU(e,jU,e.bl_tree),XU(e,s-11,7)):(a!==i&&(ZU(e,a,e.bl_tree),s--),ZU(e,kU,e.bl_tree),XU(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}},dW=e=>{let t;for(lW(e,e.dyn_ltree,e.l_desc.max_code),lW(e,e.dyn_dtree,e.d_desc.max_code),cW(e,e.bl_desc),t=18;t>=3&&e.bl_tree[FU[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},fW=(e,t,n,r)=>{let i;for(XU(e,t-257,5),XU(e,n-1,5),XU(e,r-4,4),i=0;i<r;i++)XU(e,e.bl_tree[FU[i]*2+1],3);uW(e,e.dyn_ltree,t-1),uW(e,e.dyn_dtree,n-1)},pW=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return hU;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return gU;for(n=32;n<bU;n++)if(e.dyn_ltree[n*2]!==0)return gU;return hU},mW=!1,hW=e=>{mW||(nW(),mW=!0),e.l_desc=new qU(e.dyn_ltree,WU),e.d_desc=new qU(e.dyn_dtree,GU),e.bl_desc=new qU(e.bl_tree,KU),e.bi_buf=0,e.bi_valid=0,rW(e)},gW=(e,t,n,r)=>{XU(e,0+ +!!r,3),iW(e),YU(e,n),YU(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},_W={_tr_init:hW,_tr_stored_block:gW,_tr_flush_block:(e,t,n,r)=>{let i,a,o=0;e.level>0?(e.strm.data_type===_U&&(e.strm.data_type=pW(e)),cW(e,e.l_desc),cW(e,e.d_desc),o=dW(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&t!==-1?gW(e,t,n,r):e.strategy===mU||a===i?(XU(e,2+ +!!r,3),sW(e,LU,RU)):(XU(e,4+ +!!r,3),fW(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),sW(e,e.dyn_ltree,e.dyn_dtree)),rW(e),r&&iW(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(BU[n]+bU+1)*2]++,e.dyn_dtree[JU(t)*2]++),e.sym_next===e.sym_end),_tr_align:e=>{XU(e,2,3),ZU(e,OU,LU),$U(e)}},vW=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0},yW=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t})()),bW=(e,t,n,r)=>{let i=yW,a=r+n;e^=-1;for(let n=r;n<a;n++)e=e>>>8^i[(e^t[n])&255];return e^-1},xW={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`},SW={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:CW,_tr_stored_block:wW,_tr_flush_block:TW,_tr_tally:EW,_tr_align:DW}=_W,{Z_NO_FLUSH:OW,Z_PARTIAL_FLUSH:kW,Z_FULL_FLUSH:AW,Z_FINISH:jW,Z_BLOCK:MW,Z_OK:NW,Z_STREAM_END:PW,Z_STREAM_ERROR:FW,Z_DATA_ERROR:IW,Z_BUF_ERROR:LW,Z_DEFAULT_COMPRESSION:RW,Z_FILTERED:zW,Z_HUFFMAN_ONLY:BW,Z_RLE:VW,Z_FIXED:HW,Z_DEFAULT_STRATEGY:UW,Z_UNKNOWN:WW,Z_DEFLATED:GW}=SW,KW=9,qW=15,JW=8,YW=573,XW=3,ZW=258,QW=262,$W=32,eG=42,tG=57,nG=69,rG=73,iG=91,aG=103,oG=113,sG=666,cG=1,lG=2,uG=3,dG=4,fG=3,pG=(e,t)=>(e.msg=xW[t],t),mG=e=>e*2-(e>4?9:0),hG=e=>{let t=e.length;for(;--t>=0;)e[t]=0},gG=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},_G=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,vG=(e,t)=>{let n;if(e.legacy_hash)n=e.ins_h=_G(e,e.ins_h,e.window[t+XW-1]);else{let r=e.window,i=r[t]|r[t+1]<<8|r[t+2]<<16|r[t+3]<<24;n=e.ins_h=Math.imul(i,66521)+66521>>>16&e.hash_mask}let r=e.prev[t&e.w_mask]=e.head[n];return e.head[n]=t,r},yG=e=>{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},bG=(e,t)=>{TW(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,yG(e.strm)},xG=(e,t)=>{e.pending_buf[e.pending++]=t},SG=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},CG=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=vW(e.adler,t,i,n):e.state.wrap===2&&(e.adler=bW(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},wG=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-QW?e.strstart-(e.w_size-QW):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+ZW,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,l[i+o]===m&&l[i+o-1]===p&&l[i]===l[r]&&l[++i]===l[r+1]){r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=ZW-(f-r),r=f-ZW,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead},TG=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-QW)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),gG(e),r+=t),e.strm.avail_in===0)break;if(n=CG(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,!e.legacy_hash){if(e.lookahead+e.insert>XW)for(i=e.strstart-e.insert;e.insert&&(vG(e,i),i++,e.insert--,!(e.lookahead+e.insert<=XW)););}else if(e.lookahead+e.insert>=XW)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=_G(e,e.ins_h,e.window[i+1]);e.insert&&(vG(e,i),i++,e.insert--,!(e.lookahead+e.insert<XW)););}while(e.lookahead<QW&&e.strm.avail_in!==0)},EG=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,o=0,s=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r<n&&(r===0&&t!==jW||t===OW||r!==i+e.strm.avail_in)))break;o=+(t===jW&&r===i+e.strm.avail_in),wW(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,yG(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(CG(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?dG:t!==OW&&t!==jW&&e.strm.avail_in===0&&e.strstart===e.block_start?lG:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(CG(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,n=a>e.w_size?e.w_size:a,i=e.strstart-e.block_start,(i>=n||(i||t===jW)&&t!==OW&&e.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,o=+(t===jW&&e.strm.avail_in===0&&r===i),wW(e,e.block_start,r,o),e.block_start+=r,yG(e.strm)),o?uG:cG)},DG=(e,t)=>{let n,r;for(;;){if(e.lookahead<QW){if(TG(e),e.lookahead<QW&&t===OW)return cG;if(e.lookahead===0)break}if(n=0,e.lookahead>=XW&&(n=vG(e,e.strstart)),n!==0&&e.strstart-n<=e.w_size-QW&&(e.match_length=wG(e,n)),e.match_length>=XW){if(r=EW(e,e.strstart-e.match_start,e.match_length-XW),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=XW){e.match_length--;do e.strstart++,n=vG(e,e.strstart);while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.legacy_hash&&(e.ins_h=e.window[e.strstart],e.ins_h=_G(e,e.ins_h,e.window[e.strstart+1]))}else r=EW(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(bG(e,!1),e.strm.avail_out===0))return cG}return e.insert=e.strstart<2?e.strstart:2,t===jW?(bG(e,!0),e.strm.avail_out===0?uG:dG):e.sym_next&&(bG(e,!1),e.strm.avail_out===0)?cG:lG},OG=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<QW){if(TG(e),e.lookahead<QW&&t===OW)return cG;if(e.lookahead===0)break}if(n=0,e.lookahead>=XW&&(n=vG(e,e.strstart)),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-QW&&(e.match_length=wG(e,n),e.match_length<=5&&(e.strategy===zW||e.match_length===XW&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=XW&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-XW,r=EW(e,e.strstart-1-e.prev_match,e.prev_length-XW),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(n=vG(e,e.strstart));while(--e.prev_length!==0);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(bG(e,!1),e.strm.avail_out===0))return cG}else if(e.match_available){if(r=EW(e,0,e.window[e.strstart-1]),r&&bG(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return cG}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=EW(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===jW?(bG(e,!0),e.strm.avail_out===0?uG:dG):e.sym_next&&(bG(e,!1),e.strm.avail_out===0)?cG:lG},kG=(e,t)=>{let n,r,i,a,o=e.window;for(;;){if(e.lookahead<=ZW){if(TG(e),e.lookahead<=ZW&&t===OW)return cG;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=XW&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+ZW;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=ZW-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=XW?(n=EW(e,1,e.match_length-XW),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=EW(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(bG(e,!1),e.strm.avail_out===0))return cG}return e.insert=0,t===jW?(bG(e,!0),e.strm.avail_out===0?uG:dG):e.sym_next&&(bG(e,!1),e.strm.avail_out===0)?cG:lG},AG=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(TG(e),e.lookahead===0)){if(t===OW)return cG;break}if(e.match_length=0,n=EW(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(bG(e,!1),e.strm.avail_out===0))return cG}return e.insert=0,t===jW?(bG(e,!0),e.strm.avail_out===0?uG:dG):e.sym_next&&(bG(e,!1),e.strm.avail_out===0)?cG:lG};function jG(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var MG=[new jG(0,0,0,0,EG),new jG(4,4,8,4,DG),new jG(4,5,16,8,DG),new jG(4,6,32,32,DG),new jG(4,4,16,16,OG),new jG(8,16,32,32,OG),new jG(8,16,128,128,OG),new jG(8,32,128,256,OG),new jG(32,128,258,1024,OG),new jG(32,258,258,4096,OG)],NG=e=>{e.window_size=2*e.w_size,hG(e.head),e.max_lazy_match=MG[e.level].max_lazy,e.good_match=MG[e.level].good_length,e.nice_match=MG[e.level].nice_length,e.max_chain_length=MG[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0};function PG(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=GW,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.legacy_hash=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(YW*2),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),hG(this.dyn_ltree),hG(this.dyn_dtree),hG(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),hG(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),hG(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var FG=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.status!==eG&&t.status!==tG&&t.status!==nG&&t.status!==rG&&t.status!==iG&&t.status!==aG&&t.status!==oG&&t.status!==sG)},IG=e=>{if(FG(e))return pG(e,FW);e.total_in=e.total_out=0,e.data_type=WW;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?tG:t.wrap?eG:oG,e.adler=t.wrap===2?0:1,t.last_flush=-2,CW(t),NW},LG=e=>{let t=IG(e);return t===NW&&NG(e.state),t},RG=(e,t)=>FG(e)||e.state.wrap!==2?FW:(e.state.gzhead=t,NW),zG=(e,t,n,r,i,a,o)=>{if(!e)return FW;let s=1;if(t===RW&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>KW||n!==GW||r<8||r>15||t<0||t>9||a<0||a>HW||r===8&&s!==1)return pG(e,FW);r===8&&(r=9);let c=new PG;return e.state=c,c.strm=e,c.status=eG,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.legacy_hash=+!!o,c.hash_bits=i+7,!c.legacy_hash&&c.hash_bits<15&&(c.hash_bits=15),c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+XW-1)/XW),c.window=new Uint8Array(c.w_size*2),c.head=new Uint16Array(c.hash_size),c.prev=new Uint16Array(c.w_size),c.lit_bufsize=1<<i+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new Uint8Array(c.pending_buf_size),c.sym_buf=c.lit_bufsize,c.sym_end=(c.lit_bufsize-1)*3,c.level=t,c.strategy=a,c.method=n,LG(e)},BG={deflateInit:(e,t)=>zG(e,t,GW,qW,JW,UW),deflateInit2:zG,deflateReset:LG,deflateResetKeep:IG,deflateSetHeader:RG,deflate:(e,t)=>{if(FG(e)||t>MW||t<0)return e?pG(e,FW):FW;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===sG&&t!==jW)return pG(e,e.avail_out===0?LW:FW);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(yG(e),e.avail_out===0)return n.last_flush=-1,NW}else if(e.avail_in===0&&mG(t)<=mG(r)&&t!==jW)return pG(e,LW);if(n.status===sG&&e.avail_in!==0)return pG(e,LW);if(n.status===eG&&n.wrap===0&&(n.status=oG),n.status===eG){let t=GW+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=BW||n.level<2?0:n.level<6?1:n.level===6?2:3,t|=r<<6,n.strstart!==0&&(t|=$W),t+=31-t%31,SG(n,t),n.strstart!==0&&(SG(n,e.adler>>>16),SG(n,e.adler&65535)),e.adler=1,n.status=oG,yG(e),n.pending!==0)return n.last_flush=-1,NW}if(n.status===tG){if(e.adler=0,xG(n,31),xG(n,139),xG(n,8),n.gzhead)xG(n,+!!n.gzhead.text+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),xG(n,n.gzhead.time&255),xG(n,n.gzhead.time>>8&255),xG(n,n.gzhead.time>>16&255),xG(n,n.gzhead.time>>24&255),xG(n,n.level===9?2:n.strategy>=BW||n.level<2?4:0),xG(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(xG(n,n.gzhead.extra.length&255),xG(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=bW(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=nG;else if(xG(n,0),xG(n,0),xG(n,0),xG(n,0),xG(n,0),xG(n,n.level===9?2:n.strategy>=BW||n.level<2?4:0),xG(n,fG),n.status=oG,yG(e),n.pending!==0)return n.last_flush=-1,NW}if(n.status===nG){if(n.gzhead.extra){let t=n.pending,r=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=bW(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,yG(e),n.pending!==0)return n.last_flush=-1,NW;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=bW(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=rG}if(n.status===rG){if(n.gzhead.name){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=bW(e.adler,n.pending_buf,n.pending-t,t)),yG(e),n.pending!==0)return n.last_flush=-1,NW;t=0}r=n.gzindex<n.gzhead.name.length?n.gzhead.name.charCodeAt(n.gzindex++)&255:0,xG(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=bW(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=iG}if(n.status===iG){if(n.gzhead.comment){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=bW(e.adler,n.pending_buf,n.pending-t,t)),yG(e),n.pending!==0)return n.last_flush=-1,NW;t=0}r=n.gzindex<n.gzhead.comment.length?n.gzhead.comment.charCodeAt(n.gzindex++)&255:0,xG(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=bW(e.adler,n.pending_buf,n.pending-t,t))}n.status=aG}if(n.status===aG){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(yG(e),n.pending!==0))return n.last_flush=-1,NW;xG(n,e.adler&255),xG(n,e.adler>>8&255),e.adler=0}if(n.status=oG,yG(e),n.pending!==0)return n.last_flush=-1,NW}if(e.avail_in!==0||n.lookahead!==0||t!==OW&&n.status!==sG){let r=n.level===0?EG(n,t):n.strategy===BW?AG(n,t):n.strategy===VW?kG(n,t):MG[n.level].func(n,t);if((r===uG||r===dG)&&(n.status=sG),r===cG||r===uG)return e.avail_out===0&&(n.last_flush=-1),NW;if(r===lG&&(t===kW?DW(n):t!==MW&&(wW(n,0,0,!1),t===AW&&(hG(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),yG(e),e.avail_out===0))return n.last_flush=-1,NW}return t===jW?n.wrap<=0?PW:(n.wrap===2?(xG(n,e.adler&255),xG(n,e.adler>>8&255),xG(n,e.adler>>16&255),xG(n,e.adler>>24&255),xG(n,e.total_in&255),xG(n,e.total_in>>8&255),xG(n,e.total_in>>16&255),xG(n,e.total_in>>24&255)):(SG(n,e.adler>>>16),SG(n,e.adler&65535)),yG(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending===0?PW:NW):NW},deflateEnd:e=>{if(FG(e))return FW;let t=e.state.status;return e.state=null,t===oG?pG(e,IW):NW},deflateSetDictionary:(e,t)=>{let n=t.length;if(FG(e))return FW;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==eG||r.lookahead)return FW;if(i===1&&(e.adler=vW(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(hG(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}let a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,TG(r);r.lookahead>=XW;){let e=r.strstart,t=r.lookahead-2;do vG(r,e),e++;while(--t);r.strstart=e,r.lookahead=2,TG(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,r.wrap=i,NW},deflateInfo:`pako deflate (from Nodeca project)`},VG=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),HG={assign:function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(let t in n)VG(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;let n=new Uint8Array(t);for(let t=0,r=0,i=e.length;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n}},UG=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{UG=!1}var WG=new Uint8Array(256);for(let e=0;e<256;e++)WG[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;WG[254]=WG[255]=1;var GG=e=>{if(typeof TextEncoder==`function`&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t},KG=(e,t)=>{if(t<65534&&e.subarray&&UG)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n=``;for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n},qG={string2buf:GG,buf2string:(e,t)=>{let n=t||e.length;if(typeof TextDecoder==`function`&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,a=Array(n*2);for(i=0,r=0;r<n;){let t=e[r++];if(t<128){a[i++]=t;continue}let o=WG[t];if(o>4){a[i++]=65533,r+=o-1;continue}for(t&=o===2?31:o===3?15:7;o>1&&r<n;)t=t<<6|e[r++]&63,o--;if(o>1){a[i++]=65533;continue}t<65536?a[i++]=t:(t-=65536,a[i++]=55296|t>>10&1023,a[i++]=56320|t&1023)}return KG(a,i)},utf8border:(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+WG[e[n]]>t?n:t}};function JG(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}var YG=JG,XG=Object.prototype.toString,{Z_NO_FLUSH:ZG,Z_SYNC_FLUSH:QG,Z_FULL_FLUSH:$G,Z_FINISH:eK,Z_OK:tK,Z_STREAM_END:nK,Z_DEFAULT_COMPRESSION:rK,Z_DEFAULT_STRATEGY:iK,Z_DEFLATED:aK}=SW,oK={level:rK,method:aK,chunkSize:16384,windowBits:15,memLevel:8,strategy:iK,legacyHash:!0};function sK(e){this.options=HG.assign({},oK,e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new YG,this.strm.avail_out=0;let n=BG.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy,t.legacyHash);if(n!==tK)throw Error(xW[n]);if(t.header&&BG.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e=typeof t.dictionary==`string`?qG.string2buf(t.dictionary):XG.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,n=BG.deflateSetDictionary(this.strm,e),n!==tK)throw Error(xW[n]);this._dict_set=!0}}sK.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(a=t===~~t?t:t===!0?eK:ZG,n.input=typeof e==`string`?qG.string2buf(e):XG.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(a===QG||a===$G)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=BG.deflate(n,a),i===nK)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=BG.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===tK;if(n.avail_out===0){this.onData(n.output);continue}if(a>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0},sK.prototype.onData=function(e){this.chunks.push(e)},sK.prototype.onEnd=function(e){e===tK&&(this.result=HG.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function cK(e,t){let n=new sK(t);if(n.push(e,!0),n.err)throw n.msg||xW[n.err];return n.result}function lK(e,t){return t=t||{},t.raw=!0,cK(e,t)}function uK(e,t){return t=t||{},t.gzip=!0,cK(e,t)}var dK={Deflate:sK,deflate:cK,deflateRaw:lK,gzip:uK,constants:SW},fK=16209,pK=16191,mK=function(e,t){let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=e.state;n=e.next_in,w=e.input,r=n+(e.avail_in-5),i=e.next_out,T=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=E.dmax,c=E.wsize,l=E.whave,u=E.wnext,d=E.window,f=E.hold,p=E.bits,m=E.lencode,h=E.distcode,g=(1<<E.lenbits)-1,_=(1<<E.distbits)-1;top:do{p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=m[f&g];dolen:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y===0)T[i++]=v&65535;else if(y&16){b=v&65535,y&=15,y&&(p<y&&(f+=w[n++]<<p,p+=8),b+=f&(1<<y)-1,f>>>=y,p-=y),p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=h[f&_];dodist:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y&16){if(x=v&65535,y&=15,p<y&&(f+=w[n++]<<p,p+=8,p<y&&(f+=w[n++]<<p,p+=8)),x+=f&(1<<y)-1,x>s){e.msg=`invalid distance too far back`,E.mode=fK;break top}if(f>>>=y,p-=y,y=i-a,x>y){if(y=x-y,y>l&&E.sane){e.msg=`invalid distance too far back`,E.mode=fK;break top}if(S=0,C=d,u===0){if(S+=c-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}else if(u<y){if(S+=c+u-y,y-=u,y<b){b-=y;do T[i++]=d[S++];while(--y);if(S=0,u<b){y=u,b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}}else if(S+=u-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}for(;b>2;)T[i++]=C[S++],T[i++]=C[S++],T[i++]=C[S++],b-=3;b&&(T[i++]=C[S++],b>1&&(T[i++]=C[S++]))}else{S=i-x;do T[i++]=T[S++],T[i++]=T[S++],T[i++]=T[S++],b-=3;while(b>2);b&&(T[i++]=T[S++],b>1&&(T[i++]=T[S++]))}}else if(y&64){e.msg=`invalid distance code`,E.mode=fK;break top}else{v=h[(v&65535)+(f&(1<<y)-1)];continue dodist}break}}else if(!(y&64)){v=m[(v&65535)+(f&(1<<y)-1)];continue dolen}else if(y&32){E.mode=pK;break top}else{e.msg=`invalid literal/length code`,E.mode=fK;break top}break}}while(n<r&&i<o);b=p>>3,n-=b,p-=b<<3,f&=(1<<p)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?5+(r-n):5-(n-r),e.avail_out=i<o?257+(o-i):257-(i-o),E.hold=f,E.bits=p},hK=15,gK=852,_K=592,vK=0,yK=1,bK=2,xK=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),SK=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),CK=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),wK=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),TK=(e,t,n,r,i,a,o,s)=>{let c=s.bits,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y,b,x,S,C,w=null,T,E=new Uint16Array(16),D=new Uint16Array(16),O=null,k,A,j;for(l=0;l<=hK;l++)E[l]=0;for(u=0;u<r;u++)E[t[n+u]]++;for(p=c,f=hK;f>=1&&E[f]===0;f--);if(p>f&&(p=f),f===0)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(d=1;d<f&&E[d]===0;d++);for(p<d&&(p=d),g=1,l=1;l<=hK;l++)if(g<<=1,g-=E[l],g<0)return-1;if(g>0&&(e===vK||f!==1))return-1;for(D[1]=0,l=1;l<hK;l++)D[l+1]=D[l]+E[l];for(u=0;u<r;u++)t[n+u]!==0&&(o[D[t[n+u]]++]=u);if(e===vK?(w=O=o,T=20):e===yK?(w=xK,O=SK,T=257):(w=CK,O=wK,T=0),v=0,u=0,l=d,C=a,m=p,h=0,x=-1,_=1<<p,S=_-1,e===yK&&_>gK||e===bK&&_>_K)return 1;for(;;){k=l-h,o[u]+1<T?(A=0,j=o[u]):o[u]>=T?(A=O[o[u]-T],j=w[o[u]-T]):(A=96,j=0),y=1<<l-h,b=1<<m,d=b;do b-=y,i[C+(v>>h)+b]=k<<24|A<<16|j|0;while(b!==0);for(y=1<<l-1;v&y;)y>>=1;if(y===0?v=0:(v&=y-1,v+=y),u++,--E[l]===0){if(l===f)break;l=t[n+o[u]]}if(l>p&&(v&S)!==x){for(h===0&&(h=p),C+=d,m=l-h,g=1<<m;m+h<f&&(g-=E[m+h],!(g<=0));)m++,g<<=1;if(_+=1<<m,e===yK&&_>gK||e===bK&&_>_K)return 1;x=v&S,i[x]=p<<24|m<<16|C-a|0}}return v!==0&&(i[C+v]=l-h<<24|4194304),s.bits=p,0},EK=0,DK=1,OK=2,{Z_FINISH:kK,Z_BLOCK:AK,Z_TREES:jK,Z_OK:MK,Z_STREAM_END:NK,Z_NEED_DICT:PK,Z_STREAM_ERROR:FK,Z_DATA_ERROR:IK,Z_MEM_ERROR:LK,Z_BUF_ERROR:RK,Z_DEFLATED:zK}=SW,BK=16180,VK=16181,HK=16182,UK=16183,WK=16184,GK=16185,KK=16186,qK=16187,JK=16188,YK=16189,XK=16190,ZK=16191,QK=16192,$K=16193,eq=16194,tq=16195,nq=16196,rq=16197,iq=16198,aq=16199,oq=16200,sq=16201,cq=16202,lq=16203,uq=16204,dq=16205,fq=16206,pq=16207,mq=16208,hq=16209,gq=16210,_q=16211,vq=852,yq=592,bq=15,xq=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Sq(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Cq=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.mode<BK||t.mode>_q)},wq=e=>{if(Cq(e))return FK;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=t.wrap&1),t.mode=BK,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(vq),t.distcode=t.distdyn=new Int32Array(yq),t.sane=1,t.back=-1,MK},Tq=e=>{if(Cq(e))return FK;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,wq(e)},Eq=(e,t)=>{let n;if(Cq(e))return FK;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?FK:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Tq(e))},Dq=(e,t)=>{if(!e)return FK;let n=new Sq;e.state=n,n.strm=e,n.window=null,n.mode=BK;let r=Eq(e,t);return r!==MK&&(e.state=null),r},Oq=e=>Dq(e,bq),kq=!0,Aq,jq,Mq=e=>{if(kq){Aq=new Int32Array(512),jq=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(TK(DK,e.lens,0,288,Aq,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;TK(OK,e.lens,0,32,jq,0,e.work,{bits:5}),kq=!1}e.lencode=Aq,e.lenbits=9,e.distcode=jq,e.distbits=5},Nq=(e,t,n,r)=>{let i,a=e.state;return a.window===null&&(a.window=new Uint8Array(1<<a.wbits)),a.wsize===0&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Pq={inflateReset:Tq,inflateReset2:Eq,inflateResetKeep:wq,inflateInit:Oq,inflateInit2:Dq,inflate:(e,t)=>{let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g=0,_,v,y,b,x,S,C,w,T=new Uint8Array(4),E,D,O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Cq(e)||!e.output||!e.input&&e.avail_in!==0)return FK;n=e.state,n.mode===ZK&&(n.mode=QK),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,d=s,f=c,w=MK;inf_leave:for(;;)switch(n.mode){case BK:if(n.wrap===0){n.mode=QK;break}for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,T[0]=l&255,T[1]=l>>>8&255,n.check=bW(n.check,T,2,0),l=0,u=0,n.mode=VK;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg=`incorrect header check`,n.mode=hq;break}if((l&15)!==zK){e.msg=`unknown compression method`,n.mode=hq;break}if(l>>>=4,u-=4,C=(l&15)+8,n.wbits===0&&(n.wbits=C),C>15||C>n.wbits){e.msg=`invalid window size`,n.mode=hq;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=l&512?YK:ZK,l=0,u=0;break;case VK:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.flags=l,(n.flags&255)!==zK){e.msg=`unknown compression method`,n.mode=hq;break}if(n.flags&57344){e.msg=`unknown header flags set`,n.mode=hq;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=bW(n.check,T,2,0)),l=0,u=0,n.mode=HK;case HK:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=bW(n.check,T,4,0)),l=0,u=0,n.mode=UK;case UK:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=bW(n.check,T,2,0)),l=0,u=0,n.mode=WK;case WK:if(n.flags&1024){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=bW(n.check,T,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=GK;case GK:if(n.flags&1024&&(p=n.length,p>s&&(p=s),p&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+p),C)),n.flags&512&&n.wrap&4&&(n.check=bW(n.check,r,p,a)),s-=p,a+=p,n.length-=p),n.length))break inf_leave;n.length=0,n.mode=KK;case KK:if(n.flags&2048){if(s===0)break inf_leave;p=0;do C=r[a+p++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=bW(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.name=null);n.length=0,n.mode=qK;case qK:if(n.flags&4096){if(s===0)break inf_leave;p=0;do C=r[a+p++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=bW(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.comment=null);n.mode=JK;case JK:if(n.flags&512){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.check&65535)){e.msg=`header crc mismatch`,n.mode=hq;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ZK;break;case YK:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}e.adler=n.check=xq(l),l=0,u=0,n.mode=XK;case XK:if(n.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,PK;e.adler=n.check=1,n.mode=ZK;case ZK:if(t===AK||t===jK)break inf_leave;case QK:if(n.last){l>>>=u&7,u-=u&7,n.mode=fq;break}for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}switch(n.last=l&1,l>>>=1,--u,l&3){case 0:n.mode=$K;break;case 1:if(Mq(n),n.mode=aq,t===jK){l>>>=2,u-=2;break inf_leave}break;case 2:n.mode=nq;break;case 3:e.msg=`invalid block type`,n.mode=hq}l>>>=2,u-=2;break;case $K:for(l>>>=u&7,u-=u&7;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if((l&65535)!=(l>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=hq;break}if(n.length=l&65535,l=0,u=0,n.mode=eq,t===jK)break inf_leave;case eq:n.mode=tq;case tq:if(p=n.length,p){if(p>s&&(p=s),p>c&&(p=c),p===0)break inf_leave;i.set(r.subarray(a,a+p),o),s-=p,a+=p,c-=p,o+=p,n.length-=p;break}n.mode=ZK;break;case nq:for(;u<14;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.nlen=(l&31)+257,l>>>=5,u-=5,n.ndist=(l&31)+1,l>>>=5,u-=5,n.ncode=(l&15)+4,l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg=`too many length or distance symbols`,n.mode=hq;break}n.have=0,n.mode=rq;case rq:for(;n.have<n.ncode;){for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.lens[O[n.have++]]=l&7,l>>>=3,u-=3}for(;n.have<19;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},w=TK(EK,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid code lengths set`,n.mode=hq;break}n.have=0,n.mode=iq;case iq:for(;n.have<n.nlen+n.ndist;){for(;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(y<16)l>>>=_,u-=_,n.lens[n.have++]=y;else{if(y===16){for(D=_+2;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(l>>>=_,u-=_,n.have===0){e.msg=`invalid bit length repeat`,n.mode=hq;break}C=n.lens[n.have-1],p=3+(l&3),l>>>=2,u-=2}else if(y===17){for(D=_+3;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=3+(l&7),l>>>=3,u-=3}else{for(D=_+7;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=11+(l&127),l>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=hq;break}for(;p--;)n.lens[n.have++]=C}}if(n.mode===hq)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=hq;break}if(n.lenbits=9,E={bits:n.lenbits},w=TK(DK,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid literal/lengths set`,n.mode=hq;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},w=TK(OK,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,w){e.msg=`invalid distances set`,n.mode=hq;break}if(n.mode=aq,t===jK)break inf_leave;case aq:n.mode=oq;case oq:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,mK(e,f),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,n.mode===ZK&&(n.back=-1);break}for(n.back=0;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(v&&!(v&240)){for(b=_,x=v,S=y;g=n.lencode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,n.length=y,v===0){n.mode=dq;break}if(v&32){n.back=-1,n.mode=ZK;break}if(v&64){e.msg=`invalid literal/length code`,n.mode=hq;break}n.extra=v&15,n.mode=sq;case sq:if(n.extra){for(D=n.extra;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=cq;case cq:for(;g=n.distcode[l&(1<<n.distbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(!(v&240)){for(b=_,x=v,S=y;g=n.distcode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,v&64){e.msg=`invalid distance code`,n.mode=hq;break}n.offset=y,n.extra=v&15,n.mode=lq;case lq:if(n.extra){for(D=n.extra;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=hq;break}n.mode=uq;case uq:if(c===0)break inf_leave;if(p=f-c,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=hq;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),h=n.window}else h=i,m=o-n.offset,p=n.length;p>c&&(p=c),c-=p,n.length-=p;do i[o++]=h[m++];while(--p);n.length===0&&(n.mode=oq);break;case dq:if(c===0)break inf_leave;i[o++]=n.length,c--,n.mode=oq;break;case fq:if(n.wrap){for(;u<32;){if(s===0)break inf_leave;s--,l|=r[a++]<<u,u+=8}
88if(f-=c,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?bW(n.check,i,f,o-f):vW(n.check,i,f,o-f)),f=c,n.wrap&4&&(n.flags?l:xq(l))!==n.check){e.msg=`incorrect data check`,n.mode=hq;break}l=0,u=0}n.mode=pq;case pq:if(n.wrap&&n.flags){for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.total&4294967295)){e.msg=`incorrect length check`,n.mode=hq;break}l=0,u=0}n.mode=mq;case mq:w=NK;break inf_leave;case hq:w=IK;break inf_leave;case gq:return LK;case _q:default:return FK}return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,(n.wsize||f!==e.avail_out&&n.mode<hq&&(n.mode<fq||t!==kK))&&Nq(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?bW(n.check,i,f,e.next_out-f):vW(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===ZK?128:0)+(n.mode===aq||n.mode===eq?256:0),(d===0&&f===0||t===kK)&&w===MK&&(w=RK),w},inflateEnd:e=>{if(Cq(e))return FK;let t=e.state;return t.window&&(t.window=null),e.state=null,MK},inflateGetHeader:(e,t)=>{if(Cq(e))return FK;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,MK):FK},inflateSetDictionary:(e,t)=>{let n=t.length,r,i,a;return Cq(e)||(r=e.state,r.wrap!==0&&r.mode!==XK)?FK:r.mode===XK&&(i=1,i=vW(i,t,n,0),i!==r.check)?IK:(a=Nq(e,t,n,n),a?(r.mode=gq,LK):(r.havedict=1,MK))},inflateInfo:`pako inflate (from Nodeca project)`};function Fq(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}var Iq=Fq,Lq=Object.prototype.toString,{Z_NO_FLUSH:Rq,Z_FINISH:zq,Z_OK:Bq,Z_STREAM_END:Vq,Z_NEED_DICT:Hq,Z_STREAM_ERROR:Uq,Z_DATA_ERROR:Wq,Z_MEM_ERROR:Gq,Z_BUF_ERROR:Kq}=SW,qq={chunkSize:65536,windowBits:15,to:``};function Jq(e){this.options=HG.assign({},qq,e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new YG,this.strm.avail_out=0;let n=Pq.inflateInit2(this.strm,t.windowBits);if(n!==Bq||(this.header=new Iq,Pq.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary==`string`?t.dictionary=qG.string2buf(t.dictionary):Lq.call(t.dictionary)===`[object ArrayBuffer]`&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Pq.inflateSetDictionary(this.strm,t.dictionary),n!==Bq))))throw Error(xW[n])}Jq.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,o,s;if(this.ended)return!1;for(o=t===~~t?t:t===!0?zq:Rq,n.input=Lq.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=Pq.inflate(n,o),a===Hq&&i&&(a=Pq.inflateSetDictionary(n,i),a===Bq?a=Pq.inflate(n,o):a===Wq&&(a=Hq));n.avail_in>0&&a===Vq&&n.state.wrap&2&&n.state.flags!==0&&n.input[n.next_in]!==0;)Pq.inflateReset(n),a=Pq.inflate(n,o);switch(a){case Uq:case Wq:case Hq:case Gq:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===Vq||o>0)){if(this.options.to===`string`){let e=qG.utf8border(n.output,n.next_out),t=n.next_out-e,i=qG.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out)),n.avail_out=0,n.next_out=0}if(a!==Bq&&a!==Kq||s!==0){if(a===Vq)return a=Pq.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0){if(o===zq)return a=Pq.inflateEnd(this.strm),this.onEnd(a===Bq?Kq:a),this.ended=!0,!1;break}}}return!0},Jq.prototype.onData=function(e){this.chunks.push(e)},Jq.prototype.onEnd=function(e){e===Bq&&(this.result=this.options.to===`string`?this.chunks.join(``):HG.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Yq(e,t){let n=new Jq(t);if(n.push(e,!0),n.err)throw n.msg||xW[n.err];return n.result}function Xq(e,t){return t=t||{},t.raw=!0,Yq(e,t)}var Zq={Inflate:Jq,inflate:Yq,inflateRaw:Xq,ungzip:Yq,constants:SW},{Deflate:Qq,deflate:$q,deflateRaw:eJ,gzip:tJ}=dK,{Inflate:nJ,inflate:rJ,inflateRaw:iJ,ungzip:aJ}=Zq,oJ=nJ,sJ=rJ,cJ=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)t&1?t=3988292384^t>>>1:t>>>=1;cJ[e]=t}var lJ=4294967295;function uJ(e,t,n){let r=e;for(let e=0;e<n;e++)r=cJ[(r^t[e])&255]^r>>>8;return r}function dJ(e,t){return(uJ(lJ,e,t)^lJ)>>>0}function fJ(e,t,n){let r=e.readUint32(),i=dJ(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function pJ(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function mJ(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function hJ(e,t,n,r){let i=0;if(n.length===0)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function gJ(e,t,n,r,i){let a=0;if(n.length===0){for(;a<i;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+(t[a-i]>>1)&255}else{for(;a<i;a++)t[a]=e[a]+(n[a]>>1)&255;for(;a<r;a++)t[a]=e[a]+(t[a-i]+n[a]>>1)&255}}function _J(e,t,n,r,i){let a=0;if(n.length===0){for(;a<i;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+t[a-i]&255}else{for(;a<i;a++)t[a]=e[a]+n[a]&255;for(;a<r;a++)t[a]=e[a]+vJ(t[a-i],n[a],n[a-i])&255}}function vJ(e,t,n){let r=e+t-n,i=Math.abs(r-e),a=Math.abs(r-t),o=Math.abs(r-n);return i<=a&&i<=o?e:a<=o?t:n}function yJ(e,t,n,r,i,a){switch(e){case 0:pJ(t,n,i);break;case 1:mJ(t,n,i,a);break;case 2:hJ(t,n,r,i);break;case 3:gJ(t,n,r,i,a);break;case 4:_J(t,n,r,i,a);break;default:throw Error(`Unsupported filter: ${e}`)}}
88var bJ=new Uint16Array([255]),xJ=new Uint8Array(bJ.buffer)[0]===255;function SJ(e){let{data:t,width:n,height:r,channels:i,depth:a}=e,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(a/8)*i,c=new Uint8Array(r*n*s),l=0;for(let e=0;e<7;e++){let i=o[e],a=Math.ceil((n-i.x)/i.xStep),u=Math.ceil((r-i.y)/i.yStep);if(a<=0||u<=0)continue;let d=a*s,f=new Uint8Array(d);for(let e=0;e<u;e++){let o=t[l++],u=t.subarray(l,l+d);l+=d;let p=new Uint8Array(d);yJ(o,u,p,f,d,s),f.set(p);for(let t=0;t<a;t++){let a=i.x+t*i.xStep,o=i.y+e*i.yStep;if(!(a>=n||o>=r))for(let e=0;e<s;e++)c[(o*n+a)*s+e]=p[t*s+e]}}}if(a===16){let e=new Uint16Array(c.buffer);if(xJ)for(let t=0;t<e.length;t++)e[t]=CJ(e[t]);return e}return c}function CJ(e){return(e&255)<<8|e>>8&255}var wJ=new Uint16Array([255]),TJ=new Uint8Array(wJ.buffer)[0]===255,EJ=new Uint8Array;function DJ(e){let{data:t,width:n,height:r,channels:i,depth:a}=e,o=Math.ceil(a/8)*i,s=Math.ceil(a/8*i*n),c=new Uint8Array(r*s),l=EJ,u=0,d,f;for(let e=0;e<r;e++){switch(d=t.subarray(u+1,u+1+s),f=c.subarray(e*s,(e+1)*s),t[u]){case 0:pJ(d,f,s);break;case 1:mJ(d,f,s,o);break;case 2:hJ(d,f,l,s);break;case 3:gJ(d,f,l,s,o);break;case 4:_J(d,f,l,s,o);break;default:throw Error(`Unsupported filter: ${t[u]}`)}l=f,u+=s+1}if(a===16){let e=new Uint16Array(c.buffer);if(TJ)for(let t=0;t<e.length;t++)e[t]=OJ(e[t]);return e}return c}function OJ(e){return(e&255)<<8|e>>8&255}var kJ=Uint8Array.of(137,80,78,71,13,10,26,10);function AJ(e){if(!jJ(e.readBytes(kJ.length)))throw Error(`wrong PNG signature`)}function jJ(e){if(e.length<kJ.length)return!1;for(let t=0;t<kJ.length;t++)if(e[t]!==kJ[t])return!1;return!0}var MJ=`tEXt`,NJ=0,PJ=new TextDecoder(`latin1`);function FJ(e){if(LJ(e),e.length===0||e.length>79)throw Error(`keyword length must be between 1 and 79`)}var IJ=/^[\u0000-\u00FF]*$/;function LJ(e){if(!IJ.test(e))throw Error(`invalid latin1 text`)}function RJ(e,t,n){let r=zJ(t);e[r]=BJ(t,n-r.length-1)}function zJ(e){for(e.mark();e.readByte()!==NJ;);let t=e.offset;e.reset();let n=PJ.decode(e.readBytes(t-e.offset-1));return e.skip(1),FJ(n),n}function BJ(e,t){return PJ.decode(e.readBytes(t))}var VJ={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},HJ={UNKNOWN:-1,DEFLATE:0},UJ={UNKNOWN:-1,ADAPTIVE:0},WJ={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},GJ={NONE:0,BACKGROUND:1,PREVIOUS:2},KJ={SOURCE:0,OVER:1},qJ=class extends pU{constructor(e,t={}){super(e),Ll(this,`_checkCrc`,void 0),Ll(this,`_inflator`,void 0),Ll(this,`_png`,void 0),Ll(this,`_apng`,void 0),Ll(this,`_end`,void 0),Ll(this,`_hasPalette`,void 0),Ll(this,`_palette`,void 0),Ll(this,`_hasTransparency`,void 0),Ll(this,`_transparency`,void 0),Ll(this,`_compressionMethod`,void 0),Ll(this,`_filterMethod`,void 0),Ll(this,`_interlaceMethod`,void 0),Ll(this,`_colorType`,void 0),Ll(this,`_isAnimated`,void 0),Ll(this,`_numberOfFrames`,void 0),Ll(this,`_numberOfPlays`,void 0),Ll(this,`_frames`,void 0),Ll(this,`_writingDataChunks`,void 0);let{checkCrc:n=!1}=t;this._checkCrc=n,this._inflator=new oJ,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array,depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array,this._compressionMethod=HJ.UNKNOWN,this._filterMethod=UJ.UNKNOWN,this._interlaceMethod=WJ.UNKNOWN,this._colorType=VJ.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(AJ(this);!this._end;){let e=this.readUint32(),t=this.readChars(4);this.decodeChunk(e,t)}return this.decodeImage(),this._png}decodeApng(){for(AJ(this);!this._end;){let e=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(e,t)}return this.decodeApngImage(),this._apng}decodeChunk(e,t){let n=this.offset;switch(t){case`IHDR`:this.decodeIHDR();break;case`PLTE`:this.decodePLTE(e);break;case`IDAT`:this.decodeIDAT(e);break;case`IEND`:this._end=!0;break;case`tRNS`:this.decodetRNS(e);break;case`iCCP`:this.decodeiCCP(e);break;case MJ:RJ(this._png.text,this,e);break;case`pHYs`:this.decodepHYs();break;default:this.skip(e)}if(this.offset-n!==e)throw Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?fJ(this,e+4,t):this.skip(4)}decodeApngChunk(e,t){let n=this.offset;switch(t!==`fdAT`&&t!==`IDAT`&&this._writingDataChunks&&this.pushDataToFrame(),t){case`acTL`:this.decodeACTL();break;case`fcTL`:this.decodeFCTL();break;case`fdAT`:this.decodeFDAT(e);break;default:this.decodeChunk(e,t),this.offset=n+e}if(this.offset-n!==e)throw Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?fJ(this,e+4,t):this.skip(4)}decodeIHDR(){let e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=JJ(this.readUint8());let t=this.readUint8();this._colorType=t;let n;switch(t){case VJ.GREYSCALE:n=1;break;case VJ.TRUECOLOUR:n=3;break;case VJ.INDEXED_COLOUR:n=1;break;case VJ.GREYSCALE_ALPHA:n=2;break;case VJ.TRUECOLOUR_ALPHA:n=4;break;case VJ.UNKNOWN:default:throw Error(`Unknown color type: ${t}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==HJ.DEFLATE)throw Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array};this._frames.push(e)}
88decodePLTE(e){if(e%3!=0)throw RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);let t=e/3;this._hasPalette=!0;let n=[];this._palette=n;for(let e=0;e<t;e++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;let t=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let t=e,n=this.offset+this.byteOffset;if(n+=4,t-=4,this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case VJ.GREYSCALE:case VJ.TRUECOLOUR:if(e%2!=0)throw RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let t=0;t<e/2;t++)this._transparency[t]=this.readUint16();break;case VJ.INDEXED_COLOUR:{if(e>
88this._palette.length)throw Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let t=0;for(;t<e;t++){let e=this.readByte();this._palette[t].push(e)}for(;t<this._palette.length;t++)this._palette[t].push(255);break}case VJ.UNKNOWN:case VJ.GREYSCALE_ALPHA:case VJ.TRUECOLOUR_ALPHA:default:throw Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){let t=zJ(this),n=this.readUint8();if(n!==HJ.DEFLATE)throw Error(`Unsupported iCCP compression method: ${n}`);let r=this.readBytes(e-t.length-2);this._png.iccEmbeddedProfile={name:t,profile:sJ(r)}}decodepHYs(){let e=this.readUint32(),t=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:t,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){let t={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=DJ({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)t.data=n.data;else{let r=this._apng.frames.at(e-1);this.disposeFrame(n,r,t),this.addFrameDataToCanvas(t,n)}this._apng.frames.push(t)}}return this._apng}disposeFrame(e,t,n){switch(e.disposeOp){case GJ.NONE:break;case GJ.BACKGROUND:for(let t=0;t<this._png.height;t++)for(let r=0;r<this._png.width;r++){let i=(t*e.width+r)*this._png.channels;for(let e=0;e<this._png.channels;e++)n.data[i+e]=0}break;case GJ.PREVIOUS:n.data.set(t.data);break;default:throw Error(`Unknown disposeOp`)}}addFrameDataToCanvas(e,t){let n=1<<this._png.depth,r=(e,n)=>({index:((e+t.yOffset)*this._png.width+t.xOffset+n)*this._png.channels,frameIndex:(e*t.width+n)*this._png.channels});switch(t.blendOp){case KJ.SOURCE:for(let n=0;n<t.height;n++)for(let i=0;i<t.width;i++){let{index:a,frameIndex:o}=r(n,i);for(let n=0;n<this._png.channels;n++)e.data[a+n]=t.data[o+n]}break;case KJ.OVER:for(let i=0;i<t.height;i++)for(let a=0;a<t.width;a++){let{index:o,frameIndex:s}=r(i,a);for(let r=0;r<this._png.channels;r++){let i=t.data[s+this._png.channels-1]/n,a=r%(this._png.channels-1)==0?1:t.data[s+r],c=Math.floor(i*a+(1-i)*e.data[o+r]);e.data[o+r]+=c}}break;default:throw Error(`Unknown blendOp`)}}decodeImage(){var e;if(this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);let t=this._isAnimated?((e=this._frames)==null?void 0:e.at(0)).data:this._inflator.result;if(this._filterMethod!==UJ.ADAPTIVE)throw Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===WJ.NO_INTERLACE)this._png.data=DJ({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===WJ.ADAM7)this._png.data=SJ({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let e=this._inflator.result,t=this._frames.at(-1);t?t.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:GJ.NONE,blendOp:KJ.SOURCE,data:e}),this._inflator=new oJ,this._writingDataChunks=!1}};function JJ(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw Error(`invalid bit depth: ${e}`);return e}var YJ;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.METRE=1]=`METRE`})(YJ||(YJ={}));function XJ(e,t){return new qJ(e,t).decode()}var ZJ=function(){return typeof window<`u`?window:{}}();function QJ(){ZJ.console&&typeof ZJ.console.log==`function`&&ZJ.console.log.apply(ZJ.console,arguments)}var $J={log:QJ,warn:function(e){ZJ.console&&(typeof ZJ.console.warn==`function`?ZJ.console.warn.apply(ZJ.console,arguments):QJ.call(null,arguments))},error:function(e){ZJ.console&&(typeof ZJ.console.error==`function`?ZJ.console.error.apply(ZJ.console,arguments):QJ(e))}};function eY(e,t,n){var r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){rY(r.response,t,n
vendor: 20,719 bytes, line 88
88)},r.onerror=function(){$J.error(`could not download file`)},r.send()}function tY(e){var t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function nY(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{var t=document.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var rY=ZJ.saveAs||((typeof window>`u`?`undefined`:hH(window))!==`object`||window!==ZJ?function(){}:typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype?function(e,t,n){var r=ZJ.URL||ZJ.webkitURL,i=document.createElement(`a`);t=t||e.name||`download`,i.download=t,i.rel=`noopener`,typeof e==`string`?(i.href=e,i.origin===location.origin?nY(i):tY(i.href)?eY(e,t,n):nY(i,i.target=`_blank`)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){nY(i)},0))}:`msSaveOrOpenBlob`in navigator?function(e,t,n){if(t=t||e.name||`download`,typeof e==`string`){if(tY(e))eY(e,t,n);else{var r=document.createElement(`a`);r.href=e,r.target=`_blank`,setTimeout(function(){nY(r)})}}else navigator.msSaveOrOpenBlob(function(e,t){return t===void 0?t={autoBom:!1}:hH(t)!==`object`&&($J.warn(`Deprecated: Expected third argument to be a object`),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}(e,n),t)}:function(e,t,n,r){if((r=r||open(``,`_blank`))&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return eY(e,t,n);var i=e.type===`application/octet-stream`,a=/constructor/i.test(ZJ.HTMLElement)||ZJ.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>`u`?`undefined`:hH(FileReader))===`object`){var s=new FileReader;s.onloadend=function(){var e=s.result;e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location=e,r=null},s.readAsDataURL(e)}else{var c=ZJ.URL||ZJ.webkitURL,l=c.createObjectURL(e);r?r.location=l:location.href=l,r=null,setTimeout(function(){c.revokeObjectURL(l)},4e4)}});function iY(e){var t;e=e||``,this.ok=!1,e.charAt(0)==`#`&&(e=e.substr(1,6)),e={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`00ffff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000000`,blanchedalmond:`ffebcd`,blue:`0000ff`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`00ffff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dodgerblue:`1e90ff`,feldspar:`d19275`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`ff00ff`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgrey:`d3d3d3`,lightgreen:`90ee90`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslateblue:`8470ff`,lightslategray:`778899`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`00ff00`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`ff00ff`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370d8`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`d87093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,red:`ff0000`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,violetred:`d02090`,wheat:`f5deb3`,white:`ffffff`,whitesmoke:`f5f5f5`,yellow:`ffff00`,yellowgreen:`9acd32`}[e=(e=e.replace(/ /g,``)).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:[`rgb(123, 234, 45)`,`rgb(255,234,245)`],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:[`#00ff00`,`336699`],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:[`#fb0`,`f0f`],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,a=n[r].process,o=i.exec(e);o&&(t=a(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return`rgb(`+this.r+`, `+this.g+`, `+this.b+`)`},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return e.length==1&&(e=`0`+e),t.length==1&&(t=`0`+t),n.length==1&&(n=`0`+n),`#`+e+t+n}}var aY=ZJ.atob.bind(ZJ),oY=ZJ.btoa.bind(ZJ);function sY(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n=lY(n,r,i,a,t[0],7,-680876936),a=lY(a,n,r,i,t[1],12,-389564586),i=lY(i,a,n,r,t[2],17,606105819),r=lY(r,i,a,n,t[3],22,-1044525330),n=lY(n,r,i,a,t[4],7,-176418897),a=lY(a,n,r,i,t[5],12,1200080426),i=lY(i,a,n,r,t[6],17,-1473231341),r=lY(r,i,a,n,t[7],22,-45705983),n=lY(n,r,i,a,t[8],7,1770035416),a=lY(a,n,r,i,t[9],12,-1958414417),i=lY(i,a,n,r,t[10],17,-42063),r=lY(r,i,a,n,t[11],22,-1990404162),n=lY(n,r,i,a,t[12],7,1804603682),a=lY(a,n,r,i,t[13],12,-40341101),i=lY(i,a,n,r,t[14],17,-1502002290),n=uY(n,r=lY(r,i,a,n,t[15],22,1236535329),i,a,t[1],5,-165796510),a=uY(a,n,r,i,t[6],9,-1069501632),i=uY(i,a,n,r,t[11],14,643717713),r=uY(r,i,a,n,t[0],20,-373897302),n=uY(n,r,i,a,t[5],5,-701558691),a=uY(a,n,r,i,t[10],9,38016083),i=uY(i,a,n,r,t[15],14,-660478335),r=uY(r,i,a,n,t[4],20,-405537848),n=uY(n,r,i,a,t[9],5,568446438),a=uY(a,n,r,i,t[14],9,-1019803690),i=uY(i,a,n,r,t[3],14,-187363961),r=uY(r,i,a,n,t[8],20,1163531501),n=uY(n,r,i,a,t[13],5,-1444681467),a=uY(a,n,r,i,t[2],9,-51403784),i=uY(i,a,n,r,t[7],14,1735328473),n=dY(n,r=uY(r,i,a,n,t[12],20,-1926607734),i,a,t[5],4,-378558),a=dY(a,n,r,i,t[8],11,-2022574463),i=dY(i,a,n,r,t[11],16,1839030562),r=dY(r,i,a,n,t[14],23,-35309556),n=dY(n,r,i,a,t[1],4,-1530992060),a=dY(a,n,r,i,t[4],11,1272893353),i=dY(i,a,n,r,t[7],16,-155497632),r=dY(r,i,a,n,t[10],23,-1094730640),n=dY(n,r,i,a,t[13],4,681279174),a=dY(a,n,r,i,t[0],11,-358537222),i=dY(i,a,n,r,t[3],16,-722521979),r=dY(r,i,a,n,t[6],23,76029189),n=dY(n,r,i,a,t[9],4,-640364487),a=dY(a,n,r,i,t[12],11,-421815835),i=dY(i,a,n,r,t[15],16,530742520),n=fY(n,r=dY(r,i,a,n,t[2],23,-995338651),i,a,t[0],6,-198630844),a=fY(a,n,r,i,t[7],10,1126891415),i=fY(i,a,n,r,t[14],15,-1416354905),r=fY(r,i,a,n,t[5],21,-57434055),n=fY(n,r,i,a,t[12],6,1700485571),a=fY(a,n,r,i,t[3],10,-1894986606),i=fY(i,a,n,r,t[10],15,-1051523),r=fY(r,i,a,n,t[1],21,-2054922799),n=fY(n,r,i,a,t[8],6,1873313359),a=fY(a,n,r,i,t[15],10,-30611744),i=fY(i,a,n,r,t[6],15,-1560198380),r=fY(r,i,a,n,t[13],21,1309151649),n=fY(n,r,i,a,t[4],6,-145523070),a=fY(a,n,r,i,t[11],10,-1120210379),i=fY(i,a,n,r,t[2],15,718787259),r=fY(r,i,a,n,t[9],21,-343485551),e[0]=bY(n,e[0]),e[1]=bY(r,e[1]),e[2]=bY(i,e[2]),e[3]=bY(a,e[3])}function cY(e,t,n,r,i,a){return t=bY(bY(t,e),bY(r,a)),bY(t<<i|t>>>32-i,n)}function lY(e,t,n,r,i,a,o){return cY(t&n|~t&r,e,t,i,a,o)}function uY(e,t,n,r,i,a,o){return cY(t&r|n&~r,e,t,i,a,o)}function dY(e,t,n,r,i,a,o){return cY(t^n^r,e,t,i,a,o)}function fY(e,t,n,r,i,a,o){return cY(n^(t|~r),e,t,i,a,o)}function pY(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)sY(r,mY(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(sY(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,sY(r,i),r}function mY(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var hY=`0123456789abcdef`.split(``);function gY(e){for(var t=``,n=0;n<4;n++)t+=hY[e>>8*n+4&15]+hY[e>>8*n&15];return t}function _Y(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function vY(e){return pY(e).map(_Y).join(``)}var yY=function(e){for(var t=0;t<e.length;t++)e[t]=gY(e[t]);return e.join(``)}(pY(`hello`))!=`5d41402abc4b2a76b9719d911017c592`;function bY(e,t){if(yY){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}function xY(e,t){var n,r,i,a;if(e!==n){for(var o=(i=e,a=1+(256/e.length|0),Array(a+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var l=0;for(c=0;c<256;c++){var u=s[c];l=(l+u+o.charCodeAt(c))%256,s[c]=s[l],s[l]=u}n=e,r=s}else s=r;var d=t.length,f=0,p=0,m=``;for(c=0;c<d;c++)p=(p+(u=s[f=(f+1)%256]))%256,s[f]=s[p],s[p]=u,o=s[(s[f]+s[p])%256],m+=String.fromCharCode(t.charCodeAt(c)^o);return m}var SY={print:4,modify:8,copy:16,"annot-forms":32};function CY(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(e){if(SY.perm!==void 0)throw Error(`Invalid permission: `+e);i+=SY[e]}),this.padding=`(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz`;var a=(t+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=vY(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=xY(this.encryptionKey,this.padding)}function wY(e){if(/[^\u0000-\u00ff]/.test(e))throw Error(`Invalid PDF Name Object: `+e+`, Only accept ASCII characters.`);for(var t=``,n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);t+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?`#`+(`0`+i.toString(16)).slice(-2):e[r]}return t}function TY(e){if(hH(e)!==`object`)throw Error(`Invalid Context passed to initialize PubSub (jsPDF-module)`);var t={};this.subscribe=function(e,n,r){if(r=r||!1,typeof e!=`string`||typeof n!=`function`||typeof r!=`boolean`)throw Error(`Invalid arguments passed to PubSub.subscribe (jsPDF-module)`);t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[n,!!r],i},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[n]){var o=t[n][a];try{o[0].apply(e,r)}catch(e){ZJ.console&&$J.error(`jsPDF PubSub Error`,e.message,e)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function EY(e){if(!(this instanceof EY))return new EY(e);var t=`opacity,stroke-opacity`.split(`,`);for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id=``,this.objectNumber=-1}function DY(e,t){this.gState=e,this.matrix=t,this.id=``,this.objectNumber=-1}function OY(e,t,n,r,i){if(!(this instanceof OY))return new OY(e,t,n,r,i);this.type=e===`axial`?2:3,this.coords=t,this.colors=n,DY.call(this,r,i)}function kY(e,t,n,r,i){if(!(this instanceof kY))return new kY(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream=``,this.cloneIndex=0,DY.call(this,r,i)}function AY(e){var t,n=typeof arguments[0]==`string`?arguments[0]:`p`,r=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,c=16,l=`S`,u=null;hH(e=e||{})===`object`&&(n=e.orientation,r=e.unit||r,i=e.format||i,a=e.compress||e.compressPdf||a,(u=e.encryption||null)!==null&&(u.userPassword=u.userPassword||``,u.ownerPassword=u.ownerPassword||``,u.userPermissions=u.userPermissions||[]),s=typeof e.userUnit==`number`?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(c=e.floatPrecision),l=e.defaultPathOperation||`S`),o=e.filters||(!0===a?[`FlateEncode`]:o),r=r||`mm`,n=(``+(n||`P`)).toLowerCase();var d=e.putOnlyUsedFonts||!1,f={},p={internal:{},__private__:{}};p.__private__.PubSub=TY;var m=`1.3`,h=p.__private__.getPdfVersion=function(){return m};p.__private__.setPdfVersion=function(e){m=e};var g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return g};var _=p.__private__.getPageFormat=function(e){return g[e]};i=i||`a4`;var v=`compat`,y=`advanced`,b=v;function x(){this.saveGraphicsState(),B(new We(Te,0,0,-Te,0,Dn()*Te).toString()+` cm`),this.setFontSize(this.getFontSize()/Te),l=`n`,b=y}function S(){this.restoreGraphicsState(),l=`S`,b=v}var C=p.__private__.combineFontStyleAndFontWeight=function(e,t){if(e==`bold`&&t==`normal`||e==`bold`&&t==400||e==`normal`&&t==`italic`||e==`bold`&&t==`italic`)throw Error(`Invalid Combination of fontweight and fontstyle`);return t&&(e=t==400||t===`normal`?e===`italic`?`italic`:`normal`:t!=700&&t!==`bold`||e!==`normal`?(t==700?`bold`:t)+``+e:`bold`),e};p.advancedAPI=function(e){var t=b===v;return t&&x.call(this),typeof e!=`function`||(e(this),t&&S.call(this)),this},p.compatAPI=function(e){var t=b===y;return t&&S.call(this),typeof e!=`function`||(e(this),t&&x.call(this)),this},p.isAdvancedAPI=function(){return b===y};var w,T=function(e){if(b!==y)throw Error(e+` is only available in 'advanced' API mode. You need to call advancedAPI() first.`)},E=p.roundToPrecision=p.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw Error(`Invalid argument passed to jsPDF.roundToPrecision`);return e.toFixed(r).replace(/0+$/,``)};w=p.hpf=p.__private__.hpf=typeof c==`number`?function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.hpf`);return E(e,c)}:c===`smart`?function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.hpf`);return E(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.hpf`);return E(e,16)};var D=p.f2=p.__private__.f2=function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.f2`);return E(e,2)},O=p.__private__.f3=function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.f3`);return E(e,3)},k=p.scale=p.__private__.scale=function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.scale`);return b===v?e*Te:b===y?e:void 0},A=function(e){return k(function(e){return b===v?Dn()-e:b===y?e:void 0}(e))};p.__private__.setPrecision=p.setPrecision=function(e){typeof parseInt(e,10)==`number`&&(t=parseInt(e,10))};var j,M=`00000000000000000000000000000000`,N=p.__private__.getFileId=function(){return M},P=p.__private__.setFileId=function(e){return M=e!==void 0&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():M.split(``).map(function(){return`ABCDEF0123456789`.charAt(Math.floor(16*Math.random()))}).join(``),u!==null&&(Nt=new CY(u.userPermissions,u.userPassword,u.ownerPassword,M)),M};p.setFileId=function(e){return P(e),this},p.getFileId=function(){return N()};var ee=p.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?`+`:`-`,r=Math.floor(Math.abs(t/60)),i=Math.abs(t%60),a=[n,ne(r),`'`,ne(i),`'`].join(``);return[`D:`,e.getFullYear(),ne(e.getMonth()+1),ne(e.getDate()),ne(e.getHours()),ne(e.getMinutes()),ne(e.getSeconds()),a].join(``)},F=p.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),a=parseInt(e.substr(12,2),10),o=parseInt(e.substr(14,2),10);return new Date(t,n,r,i,a,o,0)},I=p.__private__.setCreationDate=function(e){var t;if(e===void 0&&(e=new Date),e instanceof Date)t=ee(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw Error(`Invalid argument passed to jsPDF.setCreationDate`);t=e}return j=t},te=p.__private__.getCreationDate=function(e){var t=j;return e===`jsDate`&&(t=F(j)),t};p.setCreationDate=function(e){return I(e),this},p.getCreationDate=function(e){return te(e)};var L,ne=p.__private__.padd2=function(e){return(`0`+parseInt(e)).slice(-2)},R=p.__private__.padd2Hex=function(e){return(`00`+(e=e.toString())).substr(e.length)},re=0,z=[],ie=[],ae=0,oe=[],se=[],ce=!1,le=ie;p.__private__.setCustomOutputDestination=function(e){ce=!0,le=e};var ue=function(e){ce||(le=e)};p.__private__.resetCustomOutputDestination=function(){ce=!1,le=ie};var B=p.__private__.out=function(e){return e=e.toString(),ae+=e.length+1,le.push(e),le},de=p.__private__.write=function(e){return B(arguments.length===1?e.toString():Array.prototype.join.call(arguments,` `))},fe=p.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},pe=[[`Helvetica`,`helvetica`,`normal`,`WinAnsiEncoding`],[`Helvetica-Bold`,`helvetica`,`bold`,`WinAnsiEncoding`],[`Helvetica-Oblique`,`helvetica`,`italic`,`WinAnsiEncoding`],[`Helvetica-BoldOblique`,`helvetica`,`bolditalic`,`WinAnsiEncoding`],[`Courier`,`courier`,`normal`,`WinAnsiEncoding`],[`Courier-Bold`,`courier`,`bold`,`WinAnsiEncoding`],[`Courier-Oblique`,`courier`,`italic`,`WinAnsiEncoding`],[`Courier-BoldOblique`,`courier`,`bolditalic`,`WinAnsiEncoding`],[`Times-Roman`,`times`,`normal`,`WinAnsiEncoding`],[`Times-Bold`,`times`,`bold`,`WinAnsiEncoding`],[`Times-Italic`,`times`,`italic`,`WinAnsiEncoding`],[`Times-BoldItalic`,`times`,`bolditalic`,`WinAnsiEncoding`],[`ZapfDingbats`,`zapfdingbats`,`normal`,null],[`Symbol`,`symbol`,`normal`,null]];p.__private__.getStandardFonts=function(){return pe};var me=e.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(e){return me=b===y?e/Te:e,this};var he,ge=p.__private__.getFontSize=p.getFontSize=function(){return b===v?me:me*Te},_e=e.R2L||!1;p.__private__.setR2L=p.setR2L=function(e){return _e=e,this},p.__private__.getR2L=p.getR2L=function(){return _e};var ve,ye=p.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))he=e;else if(isNaN(e)){if([void 0,null,`fullwidth`,`fullheight`,`fullpage`,`original`].indexOf(e)===-1)throw Error(`zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "`+e+`" is not recognized.`);he=e}else he=parseInt(e,10)};p.__private__.getZoomMode=function(){return he};var be,xe=p.__private__.setPageMode=function(e){if([void 0,null,`UseNone`,`UseOutlines`,`UseThumbs`,`FullScreen`].indexOf(e)==-1)throw Error(`Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "`+e+`" is not recognized.`);ve=e};p.__private__.getPageMode=function(){return ve};var Se=p.__private__.setLayoutMode=function(e){if([void 0,null,`continuous`,`single`,`twoleft`,`tworight`,`two`].indexOf(e)==-1)throw Error(`Layout mode must be one of continuous, single, twoleft, tworight. "`+e+`" is not recognized.`);be=e};p.__private__.getLayoutMode=function(){return be},p.__private__.setDisplayMode=p.setDisplayMode=function(e,t,n){return ye(e),Se(t),xe(n),this};var Ce={title:``,subject:``,author:``,keywords:``,creator:``};p.__private__.getDocumentProperty=function(e){if(Object.keys(Ce).indexOf(e)===-1)throw Error(`Invalid argument passed to
88jsPDF.getDocumentProperty`);return Ce[e]},p.__private__.getDocumentProperties=function(){return Ce},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(e){for(var t in Ce)Ce.hasOwnProperty(t)&&e[t]&&(Ce[t]=e[t]);return this},p.__private__.setDocumentProperty=function(e,t){if(Object.keys(Ce).indexOf(e)===-1)throw Error(`Invalid arguments passed to jsPDF.setDocumentProperty`);return Ce[e]=t};var we,Te,Ee,De,Oe,ke={},Ae={},je=[],Me={},Ne={},Pe={},Fe={},Ie=null,Le=0,Re=[],ze=new TY(p),Be=e.hotfixes||[],Ve={},He={},Ue=[],We=function e(t,n,r,i,a,o){if(!(this instanceof e))return new e(t,n,r,i,a,o);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[t,n,r,i,a,o]};Object.defineProperty(We.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(We.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(We.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(We.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(We.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(We.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(We.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(We.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(We.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(We.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(We.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(We.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(We.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(We.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(We.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(We.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),We.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(w).join(e)},We.prototype.multiply=function(e){return new We(e.sx*this.sx+e.shy*this.shx,e.sx*this.shy+e.shy*this.sy,e.shx*this.sx+e.sy*this.shx,e.shx*this.shy+e.sy*this.sy,e.tx*this.sx+e.ty*this.shx+this.tx,e.tx*this.shy+e.ty*this.sy+this.ty)},We.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(e*e+t*t),s=(e/=o)*n+(t/=o)*r;n-=e*s,r-=t*s;var c=Math.sqrt(n*n+r*r);return s/=c,e*(r/=c)<t*(n/=c)&&(e=-e,t=-t,s=-s,o=-o),{scale:new We(o,0,0,c,0,0),translate:new We(1,0,0,1,i,a),rotate:new We(e,t,-t,e,0,0),skew:new We(1,0,s,1,0,0)}},We.prototype.toString=function(e){return this.join(` `)},We.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,o=1/(e*r-t*n),s=r*o,c=-t*o,l=-n*o,u=e*o;return new We(s,c,l,u,-s*i-l*a,-c*i-u*a)},We.prototype.applyToPoint=function(e){return new gn(e.x*this.sx+e.y*this.shx+this.tx,e.x*this.shy+e.y*this.sy+this.ty)},We.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new gn(e.x+e.w,e.y+e.h));return new _n(t.x,t.y,n.x-t.x,n.y-t.y)},We.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty;return new We(e,t,n,r,i,a)},p.Matrix=We;var Ge=p.matrixMult=function(e,t){return t.multiply(e)},Ke=new We(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Ke;var qe=function(e,t){if(!Ne[e]){var n=(t instanceof OY?`Sh`:`P`)+(Object.keys(Me).length+1).toString(10);t.id=n,Ne[e]=n,Me[n]=t,ze.publish(`addPattern`,t)}};p.ShadingPattern=OY,p.TilingPattern=kY,p.addShadingPattern=function(e,t){return T(`addShadingPattern()`),qe(e,t),this},p.beginTilingPattern=function(e){T(`beginTilingPattern()`),yn(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},p.endTilingPattern=function(e,t){T(`endTilingPattern()`),t.stream=se[L].join(`
89`),qe(e,t),ze.publish(`endTilingPattern`,t),Ue.pop().restore()};var Je,Ye=p.__private__.newObject=function(){var e=Xe();return Ze(e,!0),e},Xe=p.__private__.newObjectDeferred=function(){return re++,z[re]=function(){return ae},re},Ze=function(e,t){return t=typeof t==`boolean`&&t,z[e]=ae,t&&B(e+` 0 obj`),e},Qe=p.__private__.newAdditionalObject=function(){var e={objId:Xe(),content:``};return oe.push(e),e},$e=Xe(),et=Xe(),tt=p.__private__.decodeColorString=function(e){var t=e.split(` `);if(t.length!==2||t[1]!==`g`&&t[1]!==`G`)t.length!==5||t[4]!==`k`&&t[4]!==`K`||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),`r`]);else{var n=parseFloat(t[0]);t=[n,n,n,`r`]}for(var r=`#`,i=0;i<3;i++)r+=(`0`+Math.floor(255*parseFloat(t[i])).toString(16)).slice(-2);return r},nt=p.__private__.encodeColorString=function(e){var t;typeof e==`string`&&(e={ch1:e});var n=e.ch1,r=e.ch2,i=e.ch3,a=e.ch4,o=e.pdfColorType===`draw`?[`G`,`RG`,`K`]:[`g`,`rg`,`k`];if(typeof n==`string`&&n.charAt(0)!==`#`){var s=new iY(n);if(s.ok)n=s.toHex();else if(!/^\d*\.?\d*$/.test(n))throw Error(`Invalid color "`+n+`" passed to jsPDF.encodeColorString.`)}if(typeof n==`string`&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n=`#`+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),typeof n==`string`&&/^#[0-9A-Fa-f]{6}$/.test(n)){var c=parseInt(n.substr(1),16);n=c>>16&255,r=c>>8&255,i=255&c}if(r===void 0||a===void 0&&n===r&&r===i)t=typeof n==`string`?n+` `+o[0]:e.precision===2?D(n/255)+` `+o[0]:O(n/255)+` `+o[0];else if(a===void 0||hH(a)===`object`){if(a&&!isNaN(a.a)&&a.a===0)return[`1.`,`1.`,`1.`,o[1]].join(` `);t=typeof n==`string`?[n,r,i,o[1]].join(` `):e.precision===2?[D(n/255),D(r/255),D(i/255),o[1]].join(` `):[O(n/255),O(r/255),O(i/255),o[1]].join(` `)}else t=typeof n==`string`?[n,r,i,a,o[2]].join(` `):e.precision===2?[D(n),D(r),D(i),D(a),o[2]].join(` `):[O(n),O(r),O(i),O(a),o[2]].join(` `);return t},rt=p.__private__.getFilters=function(){return o},it=p.__private__.putStream=function(e){var t=(e=e||{}).data||``,n=e.filters||rt(),r=e.alreadyAppliedFilters||[],i=e.addLength1||!1,a=t.length,o=e.objectId,s=function(e){return e};if(u!==null&&o===void 0)throw Error(`ObjectId must be passed to putStream for file encryption`);u!==null&&(s=Nt.encryptor(o,0));var c={};!0===n&&(n=[`FlateEncode`]);var l=e.additionalKeyValues||[],d=(c=AY.API.processDataByFilters===void 0?{data:t,reverseChain:[]}:AY.API.processDataByFilters(t,n)).reverseChain+(Array.isArray(r)?r.join(` `):r.toString());if(c.data.length!==0&&(l.push({key:`Length`,value:c.data.length}),!0===i&&l.push({key:`Length1`,value:a})),d.length!=0){if(d.split(`/`).length-1==1)l.push({key:`Filter`,value:d});else{l.push({key:`Filter`,value:`[`+d+`]`});for(var f=0;f<l.length;f+=1)if(l[f].key===`DecodeParms`){for(var p=[],m=0;m<c.reverseChain.split(`/`).length-1;m+=1)p.push(`null`);p.push(l[f].value),l[f].value=`[`+p.join(` `)+`]`}}}B(`<<`);for(var h=0;h<l.length;h++)B(`/`+l[h].key+` `+l[h].value);B(`>>`),c.data.length!==0&&(B(`stream`),B(s(c.data)),B(`endstream`))},at=p.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,i=e.contentsObjId;Ze(r,!0),B(`<</Type /Page`),B(`/Parent `+e.rootDictionaryObjId+` 0 R`),B(`/Resources `+e.resourceDictionaryObjId+` 0 R`),B(`/MediaBox [`+parseFloat(w(e.mediaBox.bottomLeftX))+` `+parseFloat(w(e.mediaBox.bottomLeftY))+` `+w(e.mediaBox.topRightX)+` `+w(e.mediaBox.topRightY)+`]`),e.cropBox!==null&&B(`/CropBox [`+w(e.cropBox.bottomLeftX)+` `+w(e.cropBox.bottomLeftY)+` `+w(e.cropBox.topRightX)+` `+w(e.cropBox.topRightY)+`]`),e.bleedBox!==null&&B(`/BleedBox [`+w(e.bleedBox.bottomLeftX)+` `+w(e.bleedBox.bottomLeftY)+` `+w(e.bleedBox.topRightX)+` `+w(e.bleedBox.topRightY)+`]`),e.trimBox!==null&&B(`/TrimBox [`+w(e.trimBox.bottomLeftX)+` `+w(e.trimBox.bottomLeftY)+` `+w(e.trimBox.topRightX)+` `+w(e.trimBox.topRightY)+`]`),e.artBox!==null&&B(`/ArtBox [`+w(e.artBox.bottomLeftX)+` `+w(e.artBox.bottomLeftY)+` `+w(e.artBox.topRightX)+` `+w(e.artBox.topRightY)+`]`),typeof e.userUnit==`number`&&e.userUnit!==1&&B(`/UserUnit `+e.userUnit),ze.publish(`putPage`,{objId:r,pageContext:Re[t],pageNumber:t,page:n}),B(`/Contents `+i+` 0 R`),B(`>>`),B(`endobj`);var a=n.join(` 90`);return b===y&&(a+=` 91Q`),Ze(i,!0),it({data:a,filters:rt(),objectId:i}),B(`endobj`),r},ot=p.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Le;e++)Re[e].objId=Xe(),Re[e].contentsObjId=Xe();for(e=1;e<=Le;e++)n.push(at({number:e,data:se[e],objId:Re[e].objId,contentsObjId:Re[e].contentsObjId,mediaBox:Re[e].mediaBox,cropBox:Re[e].cropBox,bleedBox:Re[e].bleedBox,trimBox:Re[e].trimBox,artBox:Re[e].artBox,userUnit:Re[e].userUnit,rootDictionaryObjId:$e,resourceDictionaryObjId:et}));Ze($e,!0),B(`<</Type /Pages`);var r=`/Kids [`;for(t=0;t<Le;t++)r+=n[t]+` 0 R `;B(r+`]`),B(`/Count `+Le),B(`>>`),B(`endobj`),ze.publish(`postPutPages`)},st=function(e){ze.publish(`putFont`,{font:e,out:B,newObject:Ye,putStream:it}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ye(),B(`<<`),B(`/Type /Font`),B(`/BaseFont /`+wY(e.postScriptName)),B(`/Subtype /Type1`),typeof e.encoding==`string`&&B(`/Encoding /`+e.encoding),B(`/FirstChar 32`),B(`/LastChar 255`),B(`>>`),B(`endobj`))},ct=function(e){e.objectNumber=Ye();var t=[];t.push({key:`Type`,value:`/XObject`}),t.push({key:`Subtype`,value:`/Form`}),t.push({key:`BBox`,value:`[`+[w(e.x),w(e.y),w(e.x+e.width),w(e.y+e.height)].join(` `)+`]`}),t.push({key:`Matrix`,value:`[`+e.matrix.toString()+`]`}),it({data:e.pages[1].join(` 92`),additionalKeyValues:t,objectId:e.objectNumber}),B(`endobj`)},lt=function(e,t){t||(t=21);var n=Ye(),r=function(e,t){var n,r=[],i=1/(t-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),e[0].offset!=0){var a={offset:0,color:e[0].color};e.unshift(a)}if(e[e.length-1].offset!=1){var o={offset:1,color:e[e.length-1].color};e.push(o)}for(var s=``,c=0,l=0;l<r.length;l++){for(n=r[l];n>e[c+1].offset;)c++;var u=e[c].offset,d=(n-u)/(e[c+1].offset-u),f=e[c].color,p=e[c+1].color;s+=R(Math.round((1-d)*f[0]+d*p[0]).toString(16))+R(Math.round((1-d)*f[1]+d*p[1]).toString(16))+R(Math.round((1-d)*f[2]+d*p[2]).toString(16))}return s.trim()}(e.colors,t),i=[];i.push({key:`FunctionType`,value:`0`}),i.push({key:`Domain`,value:`[0.0 1.0]`}),i.push({key:`Size`,value:`[`+t+`]`}),i.push({key:`BitsPerSample`,value:`8`}),i.push({key:`Range`,value:`[0.0 1.0 0.0 1.0 0.0 1.0]`}),i.push({key:`Decode`,value:`[0.0 1.0 0.0 1.0 0.0 1.0]`}),it({data:r,additionalKeyValues:i,alreadyAppliedFilters:[`/ASCIIHexDecode`],objectId:n}),B(`endobj`),e.objectNumber=Ye(),B(`<< /ShadingType `+e.type),B(`/ColorSpace /DeviceRGB`);var a=`/Coords [`+w(parseFloat(e.coords[0]))+` `+w(parseFloat(e.coords[1]))+` `;e.type===2?a+=w(parseFloat(e.coords[2]))+` `+w(parseFloat(e.coords[3])):a+=w(parseFloat(e.coords[2]))+` `+w(parseFloat(e.coords[3]))+` `+w(parseFloat(e.coords[4]))+` `+w(parseFloat(e.coords[5])),B(a+=`]`),e.matrix&&B(`/Matrix [`+e.matrix.toString()+`]`),B(`/Function `+n+` 0 R`),B(`/Extend [true true]`),B(`>>`),B(`endobj`)},ut=function(e,t){var n=Xe(),r=Ye();t.push({resourcesOid:n,objectOid:r}),e.objectNumber=r;var i=[];i.push({key:`Type`,value:`/Pattern`}),i.push({key:`PatternType`,value:`1`}),i.push({key:`PaintType`,value:`1`}),i.push({key:`TilingType`,value:`1`}),i.push({key:`BBox`,value:`[`+e.boundingBox.map(w).join(` `)+`]`}),i.push({key:`XStep`,value:w(e.xStep)}),i.push({key:`YStep`,value:w(e.yStep)}),i.push({key:`Resources`,value:n+` 0 R`}),e.matrix&&i.push({key:`Matrix`,value:`[`+e.matrix.toString()+`]`}),it({data:e.stream,additionalKeyValues:i,objectId:e.objectNumber}),B(`endobj`)},dt=function(e){for(var t in e.objectNumber=Ye(),B(`<<`),e)switch(t){case`opacity`:B(`/ca `+D(e[t]));break;case`stroke-opacity`:B(`/CA `+D(e[t]))}B(`>>`),B(`endobj`)},ft=function(e){Ze(e.resourcesOid,!0),B(`<<`),B(`/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]`),function(){for(var e in B(`/Font <<`),ke)ke.hasOwnProperty(e)&&(!1===d||!0===d&&f.hasOwnProperty(e))&&B(`/`+e+` `+ke[e].objectNumber+` 0 R`);B(`>>`)}(),function(){if(Object.keys(Me).length>0){for(var e in B(`/Shading <<`),Me)Me.hasOwnProperty(e)&&Me[e]instanceof OY&&Me[e].objectNumber>=0&&B(`/`+e+` `+Me[e].objectNumber+` 0 R`);ze.publish(`putShadingPatternDict`),B(`>>`)}}(),function(e){if(Object.keys(Me).length>0){for(var t in B(`/Pattern <<`),Me)Me.hasOwnProperty(t)&&Me[t]instanceof p.TilingPattern&&Me[t].objectNumber>=0&&Me[t].objectNumber<e&&B(`/`+t+` `+Me[t].objectNumber+` 0 R`);ze.publish(`putTilingPatternDict`),B(`>>`)}}(e.objectOid),function(){if(Object.keys(Pe).length>0){for(var e in B(`/ExtGState <<`),Pe)Pe.hasOwnProperty(e)&&Pe[e].objectNumber>=0&&B(`/`+e+` `+Pe[e].objectNumber+` 0 R`);ze.publish(`putGStateDict`),B(`>>`)}}(),function(){for(var e in B(`/XObject <<`),Ve)Ve.hasOwnProperty(e)&&Ve[e].objectNumber>=0&&B(`/`+e+` `+Ve[e].objectNumber+` 0 R`);ze.publish(`putXobjectDict`),B(`>>`)}(),B(`>>`),B(`endobj`)},pt=function(e){Ae[e.fontName]=Ae[e.fontName]||{},Ae[e.fontName][e.fontStyle]=e.id},mt=function(e,t,n,r,i){var a={id:`F`+(Object.keys(ke).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return ze.publish(`addFont`,{font:a,instance:this}),ke[a.id]=a,pt(a),a.id},ht=p.__private__.pdfEscape=p.pdfEscape=function(e,t){return function(e,t){var n,r,i,a,o,s,c,l,u;if(i=(t=t||{}).sourceEncoding||`Unicode`,o=t.outputEncoding,(t.autoencode||o)&&ke[we].metadata&&ke[we].metadata[i]&&ke[we].metadata[i].encoding&&(a=ke[we].metadata[i].encoding,!o&&ke[we].encoding&&(o=ke[we].encoding),!o&&a.codePages&&(o=a.codePages[0]),typeof o==`string`&&(o=a[o]),o)){for(c=!1,s=[],n=0,r=e.length;n<r;n++)(l=o[e.charCodeAt(n)])?s.push(String.fromCharCode(l)):s.push(e[n]),s[n].charCo
92deAt(0)>>8&&(c=!0);e=s.join(``)}for(n=e.length;c===void 0&&n!==0;)e.charCodeAt(n-1)>>8&&(c=!0),n--;if(!c)return e;for(s=t.noBOM?[]:[254,255],n=0,r=e.length;n<r;n++){if((u=(l=e.charCodeAt(n))>>8)>>8)throw Error(`Character at position `+n+` of string '`+e+`' exceeds 16bits. Cannot be encoded into UCS-2 BE`);s.push(u),s.push(l-(u<<8))}return String.fromCharCode.apply(void 0,s)}(e,t).replace(/\\/g,`\\\\`).replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)},gt=p.__private__.beginPage=function(e){se[++Le]=[],Re[Le]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},yt(Le),ue(se[L])},_t=function(e,t){var r,a,o;switch(n=t||n,typeof e==`string`&&(r=_(e.toLowerCase()),Array.isArray(r)&&(a=r[0],o=r[1])),Array.isArray(e)&&(a=e[0]*Te,o=e[1]*Te),isNaN(a)&&(a=i[0],o=i[1]),(a>14400||o>14400)&&($J.warn(`A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400`),a=Math.min(14400,a),o=Math.min(14400,o)),i=[a,o],n.substr(0,1)){case`l`:o>a&&(i=[o,a]);break;case`p`:a>o&&(i=[o,a])}gt(i),Qt(Xt),B(sn),pn!==0&&B(pn+` J`),mn!==0&&B(mn+` j`),ze.publish(`addPage`,{pageNumber:Le})},vt=function(e){e>0&&e<=Le&&(se.splice(e,1),Re.splice(e,1),Le--,L>Le&&(L=Le),this.setPage(L))},yt=function(e){e>0&&e<=Le&&(L=e)},bt=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return se.length-1},xt=function(e,t,n){var r,i=void 0;return n=n||{},e=e===void 0?ke[we].fontName:e,t=t===void 0?ke[we].fontStyle:t,r=e.toLowerCase(),Ae[r]!==void 0&&Ae[r][t]!==void 0?i=Ae[r][t]:Ae[e]!==void 0&&Ae[e][t]!==void 0?i=Ae[e][t]:!1===n.disableWarning&&$J.warn(`Unable to look up font label for font '`+e+`', '`+t+`'. Refer to getFontList() for available fonts.`),i||n.noFallback||((i=Ae.times[t])??(i=Ae.times.normal)),i},St=p.__private__.putInfo=function(){var e=Ye(),t=function(e){return e};for(var n in u!==null&&(t=Nt.encryptor(e,0)),B(`<<`),B(`/Producer (`+ht(t(`jsPDF `+AY.version))+`)`),Ce)Ce.hasOwnProperty(n)&&Ce[n]&&B(`/`+n.substr(0,1).toUpperCase()+n.substr(1)+` (`+ht(t(Ce[n]))+`)`);B(`/CreationDate (`+ht(t(j))+`)`),B(`>>`),B(`endobj`)},Ct=p.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||$e;switch(Ye(),B(`<<`),B(`/Type /Catalog`),B(`/Pages `+t+` 0 R`),he||(he=`fullwidth`),he){case`fullwidth`:B(`/OpenAction [3 0 R /FitH null]`);break;case`fullheight`:B(`/OpenAction [3 0 R /FitV null]`);break;case`fullpage`:B(`/OpenAction [3 0 R /Fit]`);break;case`original`:B(`/OpenAction [3 0 R /XYZ null null 1]`);break;default:var n=``+he;n.substr(n.length-1)===`%`&&(he=parseInt(he)/100),typeof he==`number`&&B(`/OpenAction [3 0 R /XYZ null null `+D(he)+`]`)}switch(be||(be=`continuous`),be){case`continuous`:B(`/PageLayout /OneColumn`);break;case`single`:B(`/PageLayout /SinglePage`);break;case`two`:case`twoleft`:B(`/PageLayout /TwoColumnLeft`);break;case`tworight`:B(`/PageLayout /TwoColumnRight`)}ve&&B(`/PageMode /`+ve),ze.publish(`putCatalog`),B(`>>`),B(`endobj`)},wt=p.__private__.putTrailer=function(){B(`trailer`),B(`<<`),B(`/Size `+(re+1)),B(`/Root `+re+` 0 R`),B(`/Info `+(re-1)+` 0 R`),u!==null&&B(`/Encrypt `+Nt.oid+` 0 R`),B(`/ID [ <`+M+`> <`+M+`> ]`),B(`>>`)},Tt=p.__private__.putHeader=function(){B(`%PDF-`+m),B(`%ºÃˆ `)},Et=p.__private__.putXRef=function(){var e=`0000000000`;B(`xref`),B(`0 `+(re+1)),B(`0000000000 65535 f `);for(var t=1;t<=re;t++)typeof z[t]==`function`?B((e+z[t]()).slice(-10)+` 00000 n `):z[t]===void 0?B(`0000000000 00000 n `):B((e+z[t]).slice(-10)+` 00000 n `)},Dt=p.__private__.buildDocument=function(){var e;re=0,ae=0,ie=[],z=[],oe=[],$e=Xe(),et=Xe(),ue(ie),ze.publish(`buildDocument`),Tt(),ot(),function(){ze.publish(`putAdditionalObjects`);for(var e=0;e<oe.length;e++){var t=oe[e];Ze(t.objId,!0),B(t.content),B(`endobj`)}ze.publish(`postPutAdditionalObjects`)}(),e=[],function(){for(var e in ke)ke.hasOwnProperty(e)&&(!1===d||!0===d&&f.hasOwnProperty(e))&&st(ke[e])}(),function(){for(var e in Pe)Pe.hasOwnProperty(e)&&dt(Pe[e])}(),function(){for(var e in Ve)Ve.hasOwnProperty(e)&&ct(Ve[e])}(),function(e){for(var t in Me)Me.hasOwnProperty(t)&&(Me[t]instanceof OY?lt(Me[t]):Me[t]instanceof kY&&ut(Me[t],e))}(e),ze.publish(`putResources`),e.forEach(ft),ft({resourcesOid:et,objectOid:2**53-1}),ze.publish(`postPutResources`),u!==null&&(Nt.oid=Ye(),B(`<<`),B(`/Filter /Standard`),B(`/V `+Nt.v),B(`/R `+Nt.r),B(`/U <`+Nt.toHexString(Nt.U
92)+`>`),B(`/O <`+Nt.toHexString(Nt.O)+`>`),B(`/P `+Nt.P),B(`>>`),B(`endobj`)),St(),Ct();var t=ae;return Et(),wt(),B(`startxref`),B(``+t),B(`%%EOF`),ue(se[L]),ie.join(` 93`)},Ot=p.__private__.getBlob=function(e){return new Blob([fe(e)],{type:`application/pdf`})},kt=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},At=function(e){var t,n=e.document,r=n.documentElement,i=n.head,a=n.body;return i||(i=n.createElement(`head`),r.appendChild(i)),a||(a=n.createElement(`body`),r.appendChild(a)),kt(i),kt(a),(t=n.createElement(`style`)).appendChild(n.createTextNode(`html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}`)),i.appendChild(t),{document:n,body:a}},jt=p.output=p.__private__.output=(Je=function(e,t){switch(typeof(t=t||{})==`string`?t={filename:t}:t.filename=t.filename||`generated.pdf`,e){case void 0:return Dt();case`save`:p.save(t.filename);break;case`arraybuffer`:return fe(Dt());case`blob`:return Ot(Dt());case`bloburi`:case`bloburl`:if(ZJ.URL!==void 0&&typeof ZJ.URL.createObjectURL==`function`)return ZJ.URL&&ZJ.URL.createObjectURL(Ot(Dt()))||void 0;$J.warn(`bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.`);break;case`datauristring`:case`dataurlstring`:var n=``,r=Dt();try{n=oY(r)}catch{n=oY(unescape(encodeURIComponent(r)))}return`data:application/pdf;filename=`+encodeURIComponent(t.filename)+`;base64,`+n;case`pdfobjectnewwindow`:if(Object.prototype.toString.call(ZJ)===`[object Window]`){var i=`https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js`,a=!t.pdfObjectUrl;a||(i=t.pdfObjectUrl);var o=ZJ.open();if(o!==null){var s=At(o),c=s.document.createElement(`script`),l=this;c.src=i,a&&(c.integrity=`sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==`,c.crossOrigin=`anonymous`),c.onload=function(){o.PDFObject.embed(l.output(`dataurlstring`),t)},s.body.appendChild(c)}return o}throw Error(`The option pdfobjectnewwindow just works in a browser-environment.`);case`pdfjsnewwindow`:if(Object.prototype.toString.call(ZJ)===`[object Window]`){var u=t.pdfJsUrl||`examples/PDF.js/web/viewer.html`,d=ZJ.open();if(d!==null){var f=At(d),m=f.document.createElement(`iframe`),h=u.indexOf(`?`)===-1?`?`:`&`;l=this,m.id=`pdfViewer`,m.width=`500px`,m.height=`400px`,m.src=u+h+`file=&downloadName=`+encodeURIComponent(t.filename),m.onload=function(){d.document.title=t.filename,m.contentWindow.PDFViewerApplication.open(l.output(`bloburl`))},f.body.appendChild(m)}return d}throw Error(`The option pdfjsnewwindow just works in a browser-environment.`);case`dataurlnewwindow`:if(Object.prototype.toString.call(ZJ)!==`[object Window]`)throw Error(`The option dataurlnewwindow just works in a browser-environment.`);var g=ZJ.open();if(g!==null){var _=At(g),v=_.document.createElement(`iframe`);v.src=this.output(`datauristring`,t),_.body.appendChild(v),g.document.title=t.filename}if(g||typeof safari>`u`)return g;break;case`datauri`:case`dataurl`:return ZJ.document.location.href=this.output(`datauristring`,t);default:return null}},Je.foo=function(){try{return Je.apply(this,arguments)}catch(n){var e=n.stack||``;~e.indexOf(` at `)&&(e=e.split(` at `)[1]);var t=`Error in function `+e.split(` 94`)[0].split(`<`)[0]+`: `+n.message;if(!ZJ.console)throw Error(t);ZJ.console.error(t,n),ZJ.alert&&alert(t)}},Je.foo.bar=Je,Je.foo),Mt=function(e){return!0===Array.isArray(Be)&&Be.indexOf(e)>-1};switch(r){case`pt`:Te=1;break;case`mm`:Te=72/25.4;break;case`cm`:Te=72/2.54;break;case`in`:Te=72;break;case`px`:Te=Mt(`px_scaling`)==1?.75:96/72;break;case`pc`:case`em`:Te=12;break;case`ex`:Te=6;break;default:if(typeof r!=`number`)throw Error(`Invalid unit: `+r);Te=r}var Nt=null;I(),P();var Pt=p.__private__.getPageInfo=p.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw Error(`Invalid argument passed to jsPDF.getPageInfo`);return{objId:Re[e].objId,pageNumber:e,pageContext:Re[e]}},Ft=p.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw Error(`Invalid argument passed to jsPDF.getPageInfoByObjId`);for(var t in Re)if(Re[t].objId===e)break;return Pt(t)},It=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Re[L].obj
vendor: 13,477 bytes, lines 94-108
94Id,pageNumber:L,pageContext:Re[L]}};p.addPage=function(){return _t.apply(this,arguments),this},p.setPage=function(){return yt.apply(this,arguments),ue.call(this,se[L]),this},p.insertPage=function(e){return this.addPage(),this.movePage(L,e),this},p.movePage=function(e,t){var n,r;if(e>t){n=se[e],r=Re[e];for(var i=e;i>t;i--)se[i]=se[i-1],Re[i]=Re[i-1];se[t]=n,Re[t]=r,this.setPage(t)}else if(e<t){n=se[e],r=Re[e];for(var a=e;a<t;a++)se[a]=se[a+1],Re[a]=Re[a+1];se[t]=n,Re[t]=r,this.setPage(t)}return this},p.deletePage=function(){return vt.apply(this,arguments),this},p.__private__.text=p.text=function(e,t,n,r,i){var a,o,s,c,l,u,d,p,m,h=(r=r||{}).scope||this;if(typeof e==`number`&&typeof t==`number`&&(typeof n==`string`||Array.isArray(n))){var g=n;n=t,t=e,e=g}if(arguments[3]instanceof We==0?(s=arguments[4],c=arguments[5],hH(d=arguments[3])===`object`&&d!==null||(typeof s==`string`&&(c=s,s=null),typeof d==`string`&&(c=d,d=null),typeof d==`number`&&(s=d,d=null),r={flags:d,angle:s,align:c})):(T(`The transform parameter of text() with a Matrix value`),m=i),isNaN(t)||isNaN(n)||e==null)throw Error(`Invalid arguments passed to jsPDF.text`);if(e.length===0)return h;var _,v=``,x=typeof r.lineHeightFactor==`number`?r.lineHeightFactor:Yt,S=h.internal.scaleFactor;function C(e){return e=e.split(` `).join(Array(r.TabLen||9).join(` `)),ht(e,d)}function E(e){for(var t,n=e.concat(),r=[],i=n.length;i--;)typeof(t=n.shift())==`string`?r.push(t):Array.isArray(e)&&(t.length===1||t[1]===void 0&&t[2]===void 0)?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function D(e,t){var n;if(typeof e==`string`)n=t(e)[0];else if(Array.isArray(e)){for(var r,i,a=e.concat(),o=[],s=a.length;s--;)typeof(r=a.shift())==`string`?o.push(t(r)[0]):Array.isArray(r)&&typeof r[0]==`string`&&(i=t(r[0],r[1],r[2]),o.push([i[0],i[1],i[2]]));n=o}return n}var O=!1,A=!0;if(typeof e==`string`)O=!0;else if(Array.isArray(e)){var j=e.concat();o=[];for(var M,N=j.length;N--;)(typeof(M=j.shift())!=`string`||Array.isArray(M)&&typeof M[0]!=`string`)&&(A=!1);O=A}if(!1===O)throw Error(`Type of text must be string or Array. "`+e+`" is not recognized.`);typeof e==`string`&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var P=me/h.internal.scaleFactor,ee=P*(x-1);switch(r.baseline){case`bottom`:n-=ee;break;case`top`:n+=P-ee;break;case`hanging`:n+=P-2*ee;break;case`middle`:n+=P/2-ee}if((u=r.maxWidth||0)>0&&(typeof e==`string`?e=h.splitTextToSize(e,u):Object.prototype.toString.call(e)===`[object Array]`&&(e=e.reduce(function(e,t){return e.concat(h.splitTextToSize(t,u))},[]))),a={text:e,x:t,y:n,options:r,mutex:{pdfEscape:ht,activeFontKey:we,fonts:ke,activeFontSize:me}},ze.publish(`preProcessText`,a),e=a.text,s=(r=a.options).angle,m instanceof We==0&&s&&typeof s==`number`){s*=Math.PI/180,r.rotationDirection===0&&(s=-s),b===y&&(s=-s);var F=Math.cos(s),I=Math.sin(s);m=new We(F,I,-I,F,0,0)}else s&&s instanceof We&&(m=s);b!==y||m||(m=Ke),(l=r.charSpace||dn)!==void 0&&(v+=w(k(l))+` Tc 95`,this.setCharSpace(this.getCharSpace()||0)),(p=r.horizontalScale)!==void 0&&(v+=w(100*p)+` Tz 96`),r.lang;var te=-1,L=r.renderingMode===void 0?r.stroke:r.renderingMode,ne=h.internal.getCurrentPageInfo().pageContext;switch(L){case 0:case!1:case`fill`:te=0;break;case 1:case!0:case`stroke`:te=1;break;case 2:case`fillThenStroke`:te=2;break;case 3:case`invisible`:te=3;break;case 4:case`fillAndAddForClipping`:te=4;break;case 5:case`strokeAndAddPathForClipping`:te=5;break;case 6:case`fillThenStrokeAndAddToPathForClipping`:te=6;break;case 7:case`addToPathForClipping`:te=7}var R=ne.usedRenderingMode===void 0?-1:ne.usedRenderingMode;te===-1?R!==-1&&(v+=`0 Tr 97`):v+=te+` Tr 98`,te!==-1&&(ne.usedRenderingMode=te),c=r.align||`left`;var re,z=me*x,ie=h.internal.pageSize.getWidth(),ae=ke[we];l=r.charSpace||dn,u=r.maxWidth||0,d=Object.assign({autoencode:!0,noBOM:!0},r.flags);var oe=[],se=function(e){return h.getStringUnitWidth(e,{font:ae,charSpace:l,fontSize:me,doKerning:!1})*me/S};if(Object.prototype.toString.call(e)===`[object Array]`){var ce;o=E(e),c!==`left`&&(re=o.map(se));var le,ue=0;if(c===`right`){t-=re[0],e=[],N=o.length;for(var de=0;de<N;de++)de===0?(le=nn(t),ce=rn(n)):(le=k(ue-re[de]),ce=-z),e.push([o[de],le,ce]),ue=re[de]}else if(c===`center`){t-=re[0]/2,e=[],N=o.length;for(var fe=0;fe<N;fe++)fe===0?(le=nn(t),ce=rn(n)):(le=k((ue-re[fe])/2),ce=-z),e.push([o[fe],le,ce]),ue=re[fe]}else if(c===`left`){e=[],N=o.length;for(var pe=0;pe<N;pe++)e.push(o[pe])}else if(c===`justify`&&ae.encoding===`Identity-H`){e=[],N=o.length,u=u===0?ie:u;for(var he=0,ge=0;ge<N;ge++)if(ce=ge===0?rn(n):-z,le=ge===0?nn(t):he,ge<N-1){var ve=k((u-re[ge])/(o[ge].split(` `).length-1)),ye=o[ge].split(` `);e.push([ye[0]+` `,le,ce]),he=0;for(var be=1;be<ye.length;be++){var xe=(se(ye[be-1]+` `+ye[be])-se(ye[be]))*S+ve;be==ye.length-1?e.push([ye[be],xe,0]):e.push([ye[be]+` `,xe,0]),he-=xe}}else e.push([o[ge],le,ce]);e.push([``,he,0])}else{if(c!==`justify`)throw Error(`Unrecognized alignment option, use "left", "center", "right" or "justify".`);for(e=[],N=o.length,u=u===0?ie:u,ge=0;ge<N;ge++){ce=ge===0?rn(n):-z,le=ge===0?nn(t):0;var Se=o[ge].split(` `).length-1,Ce=Se>0?(u-re[ge])/Se:0;ge<N-1?oe.push(w(k(Ce))):oe.push(0),e.push([o[ge],le,ce])}}}!0===(typeof r.R2L==`boolean`?r.R2L:_e)&&(e=D(e,function(e,t,n){return[e.split(``).reverse().join(``),t,n]})),a={text:e,x:t,y:n,options:r,mutex:{pdfEscape:ht,activeFontKey:we,fonts:ke,activeFontSize:me}},ze.publish(`postProcessText`,a),e=a.text,_=a.mutex.isHex||!1;var Te=ke[we].encoding;Te!==`WinAnsiEncoding`&&Te!==`StandardEncoding`||(e=D(e,function(e,t,n){return[C(e),t,n]})),o=E(e),e=[];for(var Ee,De,Oe,Ae=+!!Array.isArray(o[0]),je=``,Me=function(e,t,n){var i=``;return n instanceof We?(n=typeof r.angle==`number`?Ge(n,new We(1,0,0,1,e,t)):Ge(new We(1,0,0,1,e,t),n),b===y&&(n=Ge(new We(1,0,0,-1,0,0),n)),i=n.join(` `)+` Tm 99`):i=w(e)+` `+w(t)+` Td 100`,i},Ne=0;Ne<o.length;Ne++){switch(je=``,Ae){case 1:Oe=(_?`<`:`(`)+o[Ne][0]+(_?`>`:`)`),Ee=parseFloat(o[Ne][1]),De=parseFloat(o[Ne][2]);break;case 0:Oe=(_?`<`:`(`)+o[Ne]+(_?`>`:`)`),Ee=nn(t),De=rn(n)}oe!==void 0&&oe[Ne]!==void 0&&(je=oe[Ne]+` Tw 101`),Ne===0?e.push(je+Me(Ee,De,m)+Oe):Ae===0?e.push(je+Oe):Ae===1&&e.push(je+Me(Ee,De,m)+Oe)}e=Ae===0?e.join(` Tj 102T* `):e.join(` Tj 103`),e+=` Tj 104`;var Pe=`BT 105/`;return Pe+=we+` `+me+` Tf 106`,Pe+=w(me*x)+` TL 107`,Pe+=ln+` 108`,Pe+=v,Pe+=e,B(Pe+=`ET`),f[we]=!0,h};var Lt=p.__private__.clip=p.clip=function(e){return B(e===`evenodd`?`W*`:`W`),this};p.clipEvenOdd=function(){return Lt(`evenodd`)},p.__private__.discardPath=p.discardPath=function(){return B(`n`),this};var Rt=p.__private__.isValidStyle=function(e){var t=!1;return[void 0,null,`S`,`D`,`F`,`DF`,`FD`,`f`,`f*`,`B`,`B*`,`n`].indexOf(e)!==-1&&(t=!0),t};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(e){return Rt(e)&&(l=e),this};var zt=p.__private__.getStyle=p.getStyle=function(e){var t=l;switch(e){case`D`:case`S`:t=`S`;break;case`F`:t=`f`;break;case`FD`:case`DF`:t=`B`;break;case`f`:case`f*`:case`B`:case`B*`:t=e}return t},Bt=p.close=function(){return B(`h`),this};p.stroke=function(){return B(`S`),this},p.fill=function(e){return Vt(`f`,e),this},p.fillEvenOdd=function(e){return Vt(`f*`,e),this},p.fillStroke=function(e){return Vt(`B`,e),this},p.fillStrokeEvenOdd=function(e){return Vt(`B*`,e),this};var Vt=function(e,t){hH(t)===`object`?V(t,e):B(e)},Ht=function(e){e===null||b===y&&e===void 0||(e=zt(e),B(e))};function Ut(e,t,n,r,i){var a=new kY(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);return a.stream=this.stream,qe(e+`$$`+this.cloneIndex+++`$$`,a),a}var V=function(e,t){var n=Ne[e.key],r=Me[n];if(r instanceof OY)B(`q`),B(Wt(t)),r.gState&&p.setGState(r.gState),B(e.matrix.toString()+` cm`),B(`/`+n+` sh`),B(`Q`);else if(r instanceof kY){var i=new We(1,0,0,-1,0,Dn());e.matrix&&(i=i.multiply(e.matrix||Ke),n=Ut.call(r,e.key,e.boundingBox,e.xStep,e.yStep,i).id),B(`q`),B(`/Pattern cs`),B(`/`+n+` scn`),r.gState&&p.setGState(r.gState),B(t),B(`Q`)}},Wt=function(e){switch(e){case`f`:case`F`:case`n`:return`W n`;case`f*`:return`W* n`;case`B`:case`S`:return`W S`;case`B*`:return`W* S`}},Gt=p.moveTo=function(e,t){return B(w(k(e))+` `+w(A(t))+` m`),this},Kt=p.lineTo=function(e,t){return B(w(k(e))+` `+w(A(t))+` l`),this},qt=p.curveTo=function(e,t,n,r,i,a){return B([w(k(e)),w(A(t)),w(k(n)),w(A(r)),w(k(i)),w(A(a)),`c`].join(` `)),this};p.__private__.line=p.line=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Rt(i))throw Error(`Invalid arguments passed to jsPDF.line`);return b===v?this.lines([[n-e,r-t]],e,t,[1,1],i||`S`):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},p.__private__.lines=p.lines=function(e,t,n,r,i,a){var o,s,c,l,u,d,f,p,m,h,g,_;if(typeof e==`number`&&(_=n,n=t,t=e,e=_),r=r||[1,1],a=a||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!Rt(i)||typeof a!=`boolean`)throw Error(`Invalid arguments passed to jsPDF.lines`);for(Gt(t,n),o=r[0],s=r[1],l=e.length,h=t,g=n,c=0;c<l;c++)(u=e[c]).length===2?(h=u[0]*o+h,g=u[1]*s+g,Kt(h,g)):(d=u[0]*o+h,f=u[1]*s+g,p=u[2]*o+h,m=u[3]*s+g,h=u[4]*o+h,g=u[5]*s+g,qt(d,f,p,m,h,g));return a&&Bt(),Ht(i),this},p.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.c;switch(n.op){case`m`:Gt(r[0],r[1]);break;case`l`:Kt(r[0],r[1]);break;case`c`:qt.apply(this,r);break;case`h`:Bt()}}return this},p.__private__.rect=p.rect=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Rt(i))throw Error(`Invalid arguments passed to jsPDF.rect`);return b===v&&(r=-r),B([w(k(e)),w(A(t)),w(k(n)),w(k(r)),`re`].join(` `)),Ht(i),this},p.__private__.triangle=p.triangle=function(e,t,n,r,i,a,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a)||!Rt(o))throw Error(`Invalid arguments passed to jsPDF.triangle`);return this.lines([[n-e,r-t],[i-n,a-r],[e-i,t-a]],e,t,[1,1],o,!0),this},p.__private__.roundedRect=p.roundedRect=function(e,t,n,r,i,a,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a)||!Rt(o))throw Error(`Invalid arguments passed to jsPDF.roundedRect`);var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),a=Math.min(a,.5*r),this.lines([[n-2*i,0],[i*s,0,i,a-a*s,i,a],[0,r-2*a],[0,a*s,-i*s,a,-i,a],[2*i-n,0],[-i*s,0,-i,-a*s,-i,-a],[0,2*a-r],[0,-a*s,i*s,-a,i,-a]],e+i,t,[1,1],o,!0),this},p.__private__.ellipse=p.ellipse=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Rt(i))throw Error(`Invalid arguments passed to jsPDF.ellipse`);var a=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*r;return Gt(e+n,t),qt(e+n,t-o,e+a,t-r,e,t-r),qt(e-a,t-r,e-n,t-o,e-n,t),qt(e-n,t+o,e-a,t+r,e,t+r),qt(e+a,t+r,e+n,t+o,e+n,t),Ht(i),this},p.__private__.circle=p.circle=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||!Rt(r))throw Error(`Invalid arguments passed to jsPDF.circle`);return this.ellipse(e,t,n,n,r)},p.setFont=function(e,t,n){return n&&(t=C(t,n)),we=xt(e,t,{disableWarning:!1}),this};var Jt=p.__private__.getFont=p.getFont=function(){return ke[xt.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var e,t,n={};for(e in Ae)if(Ae.hasOwnProperty(e))for(t in n[e]=[],Ae[e])Ae[e].hasOwnProperty(t)&&n[e].push(t);return n},p.addFont=function(e,t,n,r,i){var a=[`StandardEncoding`,`MacRomanEncoding`,`Identity-H`,`WinAnsiEncoding`];return arguments[3]&&a.indexOf(arguments[3])!==-1?i=arguments[3]:arguments[3]&&a.indexOf(arguments[3])==-1&&(n=C(n,r)),mt.call(this,e,t,n,i=i||`Identity-H`)};var Yt,Xt=e.lineWidth||.200025,Zt=p.__private__.getLineWidth=p.getLineWidth=function(){return Xt},Qt=p.__private__.setLineWidth=p.setLineWidth=function(e){return Xt=e,B(w(k(e))+` w`),this};p.__private__.setLineDash=AY.API.setLineDash=AY.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw Error(`Invalid arguments passed to jsPDF.setLineDash`);return e=e.map(function(e){return w(k(e))}).join(` `),t=w(k(t)),B(`[`+e+`] `+t+` d`),this};var $t=p.__private__.getLineHeight=p.getLineHeight=function(){return me*Yt};p.__private__.getLineHeight=p.getLineHeight=function(){return me*Yt};var en=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(e){return typeof(e=e||1.15)==`number`&&(Yt=e),this},tn=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return Yt};en(e.lineHeight);var nn=p.__private__.getHorizontalCoordinate=function(e){return k(e)},rn=p.__private__.getVerticalCoordinate=function(e){return b===y?e:Re[L].mediaBox.topRightY-Re[L].mediaBox.bottomLeftY-k(e)},an=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(e){return w(nn(e))},on=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(e){return w(rn(e))},sn=e.strokeColor||`0 G`;p.__private__.getStrokeColor=p.getDrawColor=function(){return tt(sn)},p.__private__.setStrokeColor=p.setDrawColor=function(e,t,n,r){return sn=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:`draw`,precision:2}),B(sn),this};var cn=e.fillColor||`0 g`;p.__private__.getFillColor=p.getFillColor=function(){return tt(cn)},p.__private__.setFillColor=p.setFillColor=function(e,t,n,r){return cn=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:`fill`,precision:2}),B(cn),this};var ln=e.textColor||`0 g`,un=p.__private__.getTextColor=p.getTextColor=function(){return tt(ln)};p.__private__.setTextColor=p.setTextColor=function(e,t,n,r){return ln=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:`text`,precision:3}),this};var dn=e.charSpace,fn=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(dn||0)};p.__private__.setCharSpace=p.setCharSpace=function(e){if(isNaN(e))throw Error(`Invalid argument passed to
108jsPDF.setCharSpace`);return dn=e,this};var pn=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(e){var t=p.CapJoinStyles[e];if(t===void 0)throw Error(`Line cap style of '`+e+`' is not recognized. See or extend .CapJoinStyles property for valid styles`);return pn=t,B(t+` J`),this};var mn=0;p.__private__.setLineJoin=p.setLineJoin=function(e){var t=p.CapJoinStyles[e];if(t===void 0)throw Error(`Line join style of '`+e+`' is not recognized. See or extend .CapJoinStyles property for valid styles`);return mn=t,B(t+` j`),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw Error(`Invalid argument passed to jsPDF.setLineMiterLimit`);return B(w(k(e))+` M`),this},p.GState=EY,p.setGState=function(e){(e=typeof e==`string`?Pe[Fe[e]]:hn(null,e)).equals(Ie)||(B(`/`+e.id+` gs`),Ie=e)};var hn=function(e,t){if(!e||!Fe[e]){var n=!1;for(var r in Pe)if(Pe.hasOwnProperty(r)&&Pe[r].equals(t)){n=!0;break}if(n)t=Pe[r];else{var i=`GS`+(Object.keys(Pe).length+1).toString(10);Pe[i]=t,t.id=i}return e&&(Fe[e]=t.id),ze.publish(`addGState`,t),t}};p.addGState=function(e,t){return hn(e,t),this},p.saveGraphicsState=function(){return B(`q`),je.push({key:we,size:me,color:ln}),this},p.restoreGraphicsState=function(){B(`Q`);var e=je.pop();return we=e.key,me=e.size,ln=e.color,Ie=null,this},p.setCurrentTransformationMatrix=function(e){return B(e.toString()+` cm`),this},p.comment=function(e){return B(`#`+e),this};var gn=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var i=`pt`;return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(e){i=e.toString()}}),this},_n=function(e,t,n,r){gn.call(this,e,t),this.type=`rect`;var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}});var a=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return a}
vendor: 8,558 bytes, lines 108-114
108,set:function(e){isNaN(e)||(a=parseFloat(e))}}),this},vn=function(){this.page=Le,this.currentPage=L,this.pages=se.slice(0),this.pagesContext=Re.slice(0),this.x=Ee,this.y=De,this.matrix=Oe,this.width=xn(L),this.height=Cn(L),this.outputDestination=le,this.id=``,this.objectNumber=-1};vn.prototype.restore=function(){Le=this.page,L=this.currentPage,Re=this.pagesContext,se=this.pages,Ee=this.x,De=this.y,Oe=this.matrix,Sn(L,this.width),wn(L,this.height),le=this.outputDestination};var yn=function(e,t,n,r,i){Ue.push(new vn),Le=L=0,se=[],Ee=e,De=t,Oe=i,gt([n,r])};for(var bn in p.beginFormObject=function(e,t,n,r,i){return yn(e,t,n,r,i),this},p.endFormObject=function(e){return function(e){if(He[e])Ue.pop().restore();else{var t=new vn,n=`Xo`+(Object.keys(Ve).length+1).toString(10);t.id=n,He[e]=n,Ve[n]=t,ze.publish(`addFormObject`,t),Ue.pop().restore()}}(e),this},p.doFormObject=function(e,t){var n=Ve[He[e]];return B(`q`),B(t.toString()+` cm`),B(`/`+n.id+` Do`),B(`Q`),this},p.getFormObject=function(e){var t=Ve[He[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},p.save=function(e,t){return e=e||`generated.pdf`,(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(rY(Ot(Dt()),e),typeof rY.unload==`function`&&ZJ.setTimeout&&setTimeout(rY.unload,911),this):new Promise(function(t,n){try{var r=rY(Ot(Dt()),e);typeof rY.unload==`function`&&ZJ.setTimeout&&setTimeout(rY.unload,911),t(r)}catch(e){n(e.message)}})},AY.API)AY.API.hasOwnProperty(bn)&&(bn===`events`&&AY.API.events.length?function(e,t){var n,r,i;for(i=t.length-1;i!==-1;i--)n=t[i][0],r=t[i][1],e.subscribe.apply(e,[n].concat(typeof r==`function`?[r]:r))}(ze,AY.API.events):p[bn]=AY.API[bn]);function xn(e){return Re[e].mediaBox.topRightX-Re[e].mediaBox.bottomLeftX}function Sn(e,t){Re[e].mediaBox.topRightX=t+Re[e].mediaBox.bottomLeftX}function Cn(e){return Re[e].mediaBox.topRightY-Re[e].mediaBox.bottomLeftY}function wn(e,t){Re[e].mediaBox.topRightY=t+Re[e].mediaBox.bottomLeftY}var Tn=p.getPageWidth=function(e){return xn(e=e||L)/Te},En=p.setPageWidth=function(e,t){Sn(e,t*Te)},Dn=p.getPageHeight=function(e){return Cn(e=e||L)/Te},On=p.setPageHeight=function(e,t){wn(e,t*Te)};return p.internal={pdfEscape:ht,getStyle:zt,getFont:Jt,getFontSize:ge,getCharSpace:fn,getTextColor:un,getLineHeight:$t,getLineHeightFactor:tn,getLineWidth:Zt,write:de,getHorizontalCoordinate:nn,getVerticalCoordinate:rn,getCoordinateString:an,getVerticalCoordinateString:on,collections:{},newObject:Ye,newAdditionalObject:Qe,newObjectDeferred:Xe,newObjectDeferredBegin:Ze,getFilters:rt,putStream:it,events:ze,scaleFactor:Te,pageSize:{getWidth:function(){return Tn(L)},setWidth:function(e){En(L,e)},getHeight:function(){return Dn(L)},setHeight:function(e){On(L,e)}},encryptionOptions:u,encryption:Nt,getEncryptor:function(e){return u===null?function(e){return e}:Nt.encryptor(e,0)},output:jt,getNumberOfPages:bt,get pages(){return se},out:B,f2:D,f3:O,getPageInfo:Pt,getPageInfoByObjId:Ft,getCurrentPageInfo:It,getPDFVersion:h,Point:gn,Rectangle:_n,Matrix:We,hasHotfix:Mt},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Tn(L)},set:function(e){En(L,e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return Dn(L)},set:function(e){On(L,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=pe.length;t<n;t++){var r=mt.call(this,e[t][0],e[t][1],e[t][2],pe[t][3],!0);!1===d&&(f[r]=!0);var i=e[t][0].split(`-`);pt({id:r,fontName:i[0],fontStyle:i[1]||``})}ze.publish(`addFonts`,{fonts:ke,dictionary:Ae})}.call(p,pe),we=`F1`,_t(i,n),ze.publish(`initialized`),p}CY.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},CY.prototype.toHexString=function(e){return e.split(``).map(function(e){return(`0`+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join(``)},CY.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join(``)},CY.prototype.processOwnerPassword=function(e,t){return xY(vY(t).substr(0,5),e)},CY.prototype.encryptor=function(e,t){var n=vY(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return xY(n,e)}},EY.prototype.equals=function(e){var t,n=`id,objectNumber,equals`;if(!e||hH(e)!==hH(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return r===0},AY.API={events:[]},AY.version=`4.2.1`;var jY=AY.API,MY=1,NY=function(e){return e.replace(/\\/g,`\\\\`).replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)},PY=function(e){return e.replace(/\\\\/g,`\\`).replace(/\\\(/g,`(`).replace(/\\\)/g,`)`)},FY=function(e){return e.toString().replace(/#/g,`#23`).replace(/[\s\n\r()<>[\]{}\/%]/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return`#`+(t.length===1?`0`+t:t)})},IY=function(e){return e.toFixed(2)},LY=function(e){return e.toFixed(5)};jY.__acroform__={};var RY=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},zY=function(e){return e*MY},BY=function(e){var t=new rX,n=_X.internal.getHeight(e)||0,r=_X.internal.getWidth(e)||0;return t.BBox=[0,0,Number(IY(r)),Number(IY(n))],t},VY=jY.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.setBit`);return e|1<<t},HY=jY.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.clearBit`);return e&~(1<<t)},UY=jY.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.getBit`);return e&1<<t?1:0},WY=jY.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf`);return UY(e,t-1)},GY=jY.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf`);return VY(e,t-1)},KY=jY.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf`);return HY(e,t-1)},qY=jY.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],a=e[1],o=e[2],s=e[3],c={};return c.lowerLeft_X=n(i)||0,c.lowerLeft_Y=r(a+s)||0,c.upperRight_X=n(i+o)||0,c.upperRight_Y=r(a)||0,[Number(IY(c.lowerLeft_X)),Number(IY(c.lowerLeft_Y)),Number(IY(c.upperRight_X)),Number(IY(c.upperRight_Y))]},JY=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=YY(e,e._V||e.DV),r=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push(`/Tx BMC`),t.push(`q`),t.push(`BT`),t.push(e.scope.__private__.encodeColorString(e.color)),t.push(`/`+r+` `+IY(n.fontSize)+` Tf`),t.push(`1 0 0 1 0 0 Tm`),t.push(n.text),t.push(`ET`),t.push(`Q`),t.push(`EMC`);var i=BY(e);return i.scope=e.scope,i.stream=t.join(` 109`),i}},YY=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:``,fontSize:``},i=(t=(t=t.substr(0,1)==`(`?t.substr(1):t).substr(t.length-1)==`)`?t.substr(0,t.length-1):t).split(` `);i=e.multiline?i.map(function(e){return e.split(` 110`)}):i.map(function(e){return[e]});var a=n,o=_X.internal.getHeight(e)||0;o=o<0?-o:o;var s=_X.internal.getWidth(e)||0;s=s<0?-s:s;var c=function(t,n,r){return t+1<i.length&&XY(n+` `+i[t+1][0],e,r).width<=s-4};a++;t:for(;a>0;){t=``,a--;var l,u,d=XY(`3`,e,a).height,f=e.multiline?o-a:(o-d)/2,p=f+=2,m=0,h=0,g=0;if(a<=0){t=`(...) Tj 111`,t+=`% Width of Text: `+XY(t,e,a=12).width+`, FieldWidth:`+s+` 112`;break}for(var _=``,v=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var b=!1;if(i[y].length!==1&&g!==i[y].length-1){if((d+2)*(v+2)+2>o)continue t;_+=i[y][g],b=!0,h=y,y--}else{_=(_+=i[y][g]+` `).substr(_.length-1)==` `?_.substr(0,_.length-1):_;var x=parseInt(y),S=c(x,_,a),C=y>=i.length-1;if(S&&!C){_+=` `,g=0;continue}if(S||C){if(C)h=x;else if(e.multiline&&(d+2)*(v+2)+2>o)continue t}else{if(!e.multiline||(d+2)*(v+2)+2>o)continue t;h=x}}for(var w=``,T=m;T<=h;T++){var E=i[T];if(e.multiline){if(T===h){w+=E[g]+` `,g=(g+1)%E.length;continue}if(T===m){w+=E[E.length-1]+` `;continue}}w+=E[0]+` `}switch(w=w.substr(w.length-1)==` `?w.substr(0,w.length-1):w,u=XY(w,e,a).width,e.textAlign){case`right`:l=s-u-2;break;case`center`:l=(s-u)/2;break;default:l=2}t+=IY(l)+` `+IY(p)+` Td 113`,t+=`(`+NY(w)+`) Tj 114`,t+=-IY(l)+` 0 Td
115`,p=-(a+2),u=0,m=b?h:h+1,v++,_=``}break}return r.text=t,r.fontSize=a,r},XY=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth(`3`,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},ZY={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},QY=function(e,t){var n={type:`reference`,object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(e){return e.type===n.type&&e.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},$Y=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||!1===e.internal.acroformPlugin.isInitialized)){if(aX.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(ZY)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw Error(`Exception while creating AcroformDictionary`);MY=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new iX,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe(`postPutResources`,function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe(`buildDocument`,function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.objId=void 0,r.hasAnnotation&&QY(r,e)}})(e)}),e.internal.events.subscribe(`putCatalog`,function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw Error(`putCatalogCallback: Root missing.`);e.internal.write(`/AcroForm `+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+` 0 R`)})(e)}),e.internal.events.subscribe(`postPutPages`,function(t){(function(e,t){var n=!e;for(var r in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(r)){var i=e[r],a=[],o=i.Rect;if(i.Rect&&(i.Rect=qY(i.Rect,t)),t.internal.newObjectDeferredBegin(i.objId,!0),i.DA=_X.createDefaultAppearanceStream(i),hH(i)===`object`&&typeof i.getKeyValueListForStream==`function`&&(a=i.getKeyValueListForStream()),i.Rect=o,i.hasAppearanceStream&&!i.appearanceStreamContent){var s=JY(i);a.push({key:`AP`,value:`<</N `+s+`>>`}),t.internal.acroformPlugin.xForms.push(s)}if(i.appearanceStreamContent){var c=``;for(var l in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(l)){var u=i.appearanceStreamContent[l];if(c+=`/`+l+` `,c+=`<<`,Object.keys(u).length>=1||Array.isArray(u)){for(var r in u)if(u.hasOwnProperty(r)){var d=u[r];typeof d==`function`&&(d=d.call(t,i)),c+=`/`+r+` `+d+` `,t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d)}}else typeof(d=u)==`function`&&(d=d.call(t,i)),c+=`/`+r+` `+d,t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d);c+=`>>`}a.push({key:`AP`,value:`<< 116`+c+`>>`})}t.internal.putStream({additionalKeyValues:a,objectId:i.objId}),t.internal.out(`endobj`)}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=n,i=e[n];t.internal.newObjectDeferredBegin(i.objId,!0),hH(i)===`object`&&typeof i.putStream==`function`&&i.putStream(),delete e[r]}}(t.internal.acroformPlugin.xForms,t)})(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},eX=jY.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(e){return e};if(Array.isArray(e)){for(var i=`[`,a=0;a<e.length;a++)switch(a!==0&&(i+=` `),hH(e[a])){case`boolean`:case`number`:case`object`:i+=e[a].toString();break;case`string`:e[a].substr(0,1)===`/`?i+=`/`+FY(e[a].substr(1)):(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),i+=`(`+NY(r(e[a].toString()))+`)`)}return i+`]`}
vendor: 4,337 bytes, line 116
116throw Error(`Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray`)},tX=function(e,t,n){var r=function(e){return e};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||``).toString(),`(`+NY(r(e))+`)`},nX=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};nX.prototype.toString=function(){return this.objId+` 0 R`},nX.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out(`endobj`)},nX.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(e){return e!=`content`&&e!=`appearanceStreamContent`&&e!=`scope`&&e!=`objId`&&e.substring(0,1)!=`_`});for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:eX(i,this.objId,this.scope)}):i instanceof nX?(i.scope=this.scope,e.push({key:r,value:i.objId+` 0 R`})):typeof i!=`function`&&e.push({key:r,value:i}))}return e};var rX=function(){nX.call(this),Object.defineProperty(this,"Type",{value:`/XObject`,configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:`/Form`,configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:`2 0 R`,configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};RY(rX,nX);var iX=function(){nX.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),`(`+NY(t(e))+`)`}},set:function(t){e=t}})};RY(iX,nX);var aX=function e(){nX.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw Error(`Invalid value "`+e+`" for attribute F supplied.`);t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!WY(t,3)},set:function(e){this.F=!!e==1?GY(t,3):KY(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw Error(`Invalid value "`+e+`" for attribute Ff supplied.`);n=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(e){r=e===void 0?[]:e}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var i=``;Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(e){switch(e){case`/Btn`:case`/Tx`:case`/Ch`:case`/Sig`:i=e;break;default:throw Error(`Invalid value "`+e+`" for attribute FT supplied.`)}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof pX)return;a=`FieldObject`+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),`(`+NY(t(a))+`)`},set:function(e){a=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a}
116,set:function(e){a=e}});var o=`helvetica`;Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){o=e}});var s=`normal`;Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/MY:l},set:function(e){l=e}});var u=`black`;Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){u=e}});var d=`/F1 0 Tf 0 g`;Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof pX||this instanceof hX))return tX(d,this.objId,this.scope)},set:function(e){e=e.toString(),d=e}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof uX==0?tX(f,this.objId,this.scope):f},set:function(e){e=e.toString(),f=this instanceof uX==0?e.substr(0,1)===`(`?PY(e.substr(1,e.length-2)):PY(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof uX==1?PY(f.substr(1,f.length-1)):f},set:function(e){e=e.toString(),f=this instanceof uX==1?`/`+FY(e):e}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof uX==0?tX(p,this.objId,this.scope):p},set:function(e){e=e.toString(),p=this instanceof uX==0?e.substr(0,1)===`(`?PY(e.substr(1,e.length-2)):PY(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof uX==1?PY(p.substr(1,p.length-1)):p},set:function(e){e=e.toString(),p=this instanceof uX==1?`/`+FY(e):e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?`/Annot`:null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?`/Widget`:null}});var m,h=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return h},set:function(e){e=!!e,h=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(e){m=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,1)},set:function(e){this.Ff=!!e==1?GY(this.Ff,1):KY(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,2)},set:function(e){this.Ff=!!e==1?GY(this.Ff,2):KY(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,3)},set:function(e){this.Ff=!!e==1?GY(this.Ff,3):KY(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(g!==null)return g},set:function(e){if([0,1,2].indexOf(e)===-1)throw Error(`Invalid value "`+e+`" for attribute Q supplied.`);g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){case 0:default:e=`left`;break;case 1:e=`center`;break;case 2:e=`right`}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case`right`:case 2:g=2;break;case`center`:case 1:g=1;break;default:g=0}}})};RY(aX,nX);var oX=function(){aX.call(this),this.FT=`/Ch`,this.V=`()`,this.fontName=`zapfdingbats`;var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return eX(t,this.objId,this.scope)},set:function(e){var n,r=[];typeof(n=e)==`string`&&(r=function(e,t,n){n||(n=1);for(var r,i=[];r=t.exec(e);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||``).toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||``).toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,18)}
116,set:function(e){this.Ff=!!e==1?GY(this.Ff,18):KY(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,19)},set:function(e){!0===this.combo&&(this.Ff=!!e==1?GY(this.Ff,19):KY(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,20)},set:function(e){!!e==1?(this.Ff=GY(this.Ff,20),t.sort()):this.Ff=KY(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,22)},set:function(e){this.Ff=!!e==1?GY(this.Ff,22):KY(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,23)},set:function(e){this.Ff=!!e==1?GY(this.Ff,23):KY(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,27)},set:function(e){this.Ff=!!e==1?GY(this.Ff,27):KY(this.Ff,27)}}),this.hasAppearanceStream=!1};RY(oX,aX);var sX=function(){oX.call(this),this.fontName=`helvetica`,this.combo=!1};RY(sX,oX);var cX=function(){sX.call(this),this.combo=!0};RY(cX,sX);var lX=function(){cX.call(this),this.edit=!0};RY(lX,cX);var uX=function(){aX.call(this),this.FT=`/Btn`,Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,15)},set:function(e){this.Ff=!!e==1?GY(this.Ff,15):KY(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,16)},set:function(e){this.Ff=!!e==1?GY(this.Ff,16):KY(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,17)},set:function(e){this.Ff=!!e==1?GY(this.Ff,17):KY(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,26)},set:function(e){this.Ff=!!e==1?GY(this.Ff,26):KY(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,r=[];for(n in r.push(`<<`),t)r.push(`/`+n+` (`+NY(e(t[n]))+`)`);return r.push(`>>`),r.join(` 117`)}},set:function(e){hH(e)===`object`&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||``},set:function(e){typeof e==`string`&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){var n=t==null?``:t.toString();n.substr(0,1)===`/`&&(n=n.substr(1)),e=`/`+FY(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e=`/`+FY(t)}})};RY(uX,aX);var dX=function(){uX.call(this),this.pushButton=!0};RY(dX,uX);var fX=function(){uX.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t===void 0?[]:t}})};RY(fX,uX);var pX=function(){var e,t;aX.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push(`<<`),r)n.push(`/`+t+` (`+NY(e(r[t]))+`)`);return n.push(`>>`),n.join(` 118`)},set:function(e){hH(e)===`object`&&(r=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||``},set:function(e){typeof e==`string`&&(r.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){var t=e==null?``:e.toString();t.substr(0,1)===`/`&&(t=t.substr(1)),n=`/`+FY(t)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){var t=e==null?``:e.toString();t.substr(0,1)===`/`&&(t=t.substr(1)),n=`/`+FY(t)}}),this.caption=`l`,this.appearanceState=`Off`,this._AppearanceType=_X.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};RY(pX,aX),fX.prototype.setAppearance=function(e){if(!(`createAppearanceStream`in e)||!(`getCA`in e))throw Error(`Couldn't assign Appearance to RadioButton. Appearance was Invalid!`);for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},fX.prototype.createOption=function(e){var t=new pX;return t.Parent=this,t.optionName=e,this.Kids.push(t),vX.call(this.scope,t),t};var mX=function(){uX.call(this),this.fontName=`zapfdingbats`,this.caption=`3`,this.appearanceState=`On`,this.value=`On`,this.textAlign=`center`,this.appearanceStreamContent=_X.CheckBox.createAppearanceStream()};RY(mX,uX);var hX=function(){aX.call(this),this.FT=`/Tx`,Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,13)}
vendor: 5,535 bytes, lines 118-124
118,set:function(e){this.Ff=!!e==1?GY(this.Ff,13):KY(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,21)},set:function(e){this.Ff=!!e==1?GY(this.Ff,21):KY(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,23)},set:function(e){this.Ff=!!e==1?GY(this.Ff,23):KY(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,24)},set:function(e){this.Ff=!!e==1?GY(this.Ff,24):KY(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,25)},set:function(e){this.Ff=!!e==1?GY(this.Ff,25):KY(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,26)},set:function(e){this.Ff=!!e==1?GY(this.Ff,26):KY(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};RY(hX,aX);var gX=function(){hX.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!WY(this.Ff,14)},set:function(e){this.Ff=!!e==1?GY(this.Ff,14):KY(this.Ff,14)}}),this.password=!0};RY(gX,hX);var _X={CheckBox:{createAppearanceStream:function(){return{N:{On:_X.CheckBox.YesNormal},D:{On:_X.CheckBox.YesPushDown,Off:_X.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=BY(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=YY(e,e.caption);return n.push(`0.749023 g`),n.push(`0 0 `+IY(_X.internal.getWidth(e))+` `+IY(_X.internal.getHeight(e))+` re`),n.push(`f`),n.push(`BMC`),n.push(`q`),n.push(`0 0 1 rg`),n.push(`/`+r+` `+IY(a.fontSize)+` Tf `+i),n.push(`BT`),n.push(a.text),n.push(`ET`),n.push(`Q`),n.push(`EMC`),t.stream=n.join(` 119`),t},YesNormal:function(e){var t=BY(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],a=_X.internal.getHeight(e),o=_X.internal.getWidth(e),s=YY(e,e.caption);return i.push(`1 g`),i.push(`0 0 `+IY(o)+` `+IY(a)+` re`),i.push(`f`),i.push(`q`),i.push(`0 0 1 rg`),i.push(`0 0 `+IY(o-1)+` `+IY(a-1)+` re`),i.push(`W`),i.push(`n`),i.push(`0 g`),i.push(`BT`),i.push(`/`+n+` `+IY(s.fontSize)+` Tf `+r),i.push(s.text),i.push(`ET`),i.push(`Q`),t.stream=i.join(` 120`),t},OffPushDown:function(e){var t=BY(e);t.scope=e.scope;var n=[];return n.push(`0.749023 g`),n.push(`0 0 `+IY(_X.internal.getWidth(e))+` `+IY(_X.internal.getHeight(e))+` re`),n.push(`f`),t.stream=n.join(` 121`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:_X.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=_X.RadioButton.Circle.YesNormal,t.D[e]=_X.RadioButton.Circle.YesPushDown,t},getCA:function(){return`l`},YesNormal:function(e){var t=BY(e);t.scope=e.scope;var n=[],r=_X.internal.getWidth(e)<=_X.internal.getHeight(e)?_X.internal.getWidth(e)/4:_X.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=_X.internal.Bezier_C,a=Number((r*i).toFixed(5));return n.push(`q`),n.push(`1 0 0 1 `+LY(_X.internal.getWidth(e)/2)+` `+LY(_X.internal.getHeight(e)/2)+` cm`),n.push(r+` 0 m`),n.push(r+` `+a+` `+a+` `+r+` 0 `+r+` c`),n.push(`-`+a+` `+r+` -`+r+` `+a+` -`+r+` 0 c`),n.push(`-`+r+` -`+a+` -`+a+` -`+r+` 0 -`+r+` c`),n.push(a+` -`+r+` `+r+` -`+a+` `+r+` 0 c`),n.push(`f`),n.push(`Q`),t.stream=n.join(` 122`),t},YesPushDown:function(e){var t=BY(e);t.scope=e.scope;var n=[],r=_X.internal.getWidth(e)<=_X.internal.getHeight(e)?_X.internal.getWidth(e)/4:_X.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*_X.internal.Bezier_C).toFixed(5)),o=Number((r*_X.internal.Bezier_C).toFixed(5));return n.push(`0.749023 g`),n.push(`q`),n.push(`1 0 0 1 `+LY(_X.internal.getWidth(e)/2)+` `+LY(_X.internal.getHeight(e)/2)+` cm`),n.push(i+` 0 m`),n.push(i+` `+a+` `+a+` `+i+` 0 `+i+` c`),n.push(`-`+a+` `+i+` -`+i+` `+a+` -`+i+` 0 c`),n.push(`-`+i+` -`+a+` -`+a+` -`+i+` 0 -`+i+` c`),n.push(a+` -`+i+` `+i+` -`+a+` `+i+` 0 c`),n.push(`f`),n.push(`Q`),n.push(`0 g`),n.push(`q`),n.push(`1 0 0 1 `+LY(_X.internal.getWidth(e)/2)+` `+LY(_X.internal.getHeight(e)/2)+` cm`),n.push(r+` 0 m`),n.push(r+` `+o+` `+o+` `+r+` 0 `+r+` c`),n.push(`-`+o+` `+r+` -`+r+` `+o+` -`+r+` 0 c`),n.push(`-`+r+` -`+o+` -`+o+` -`+r+` 0 -`+r+` c`),n.push(o+` -`+r+` `+r+` -`+o+` `+r+` 0 c`),n.push(`f`),n.push(`Q`),t.stream=n.join(` 123`),t},OffPushDown:function(e){var t=BY(e);t.scope=e.scope;var n=[],r=_X.internal.getWidth(e)<=_X.internal.getHeight(e)?_X.internal.getWidth(e)/4:_X.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*_X.internal.Bezier_C).toFixed(5));return n.push(`0.749023 g`),n.push(`q`),n.push(`1 0 0 1 `+LY(_X.internal.getWidth(e)/2)+` `+LY(_X.internal.getHeight(e)/2)+` cm`),n.push(i+` 0 m`),n.push(i+` `+a+` `+a+` `+i+` 0 `+i+` c`),n.push(`-`+a+` `+i+` -`+i+` `+a+` -`+i+` 0 c`),n.push(`-`+i+` -`+a+` -`+a+` -`+i+` 0 -`+i+` c`),n.push(a+` -`+i+` `+i+` -`+a+` `+i+` 0 c`),n.push(`f`),n.push(`Q`),t.stream=n.join(` 124`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:_X.RadioButton.Cross.OffPushDown},N:{}}
vendor: 8,750 bytes, lines 124-127
124;return t.N[e]=_X.RadioButton.Cross.YesNormal,t.D[e]=_X.RadioButton.Cross.YesPushDown,t},getCA:function(){return`8`},YesNormal:function(e){var t=BY(e);t.scope=e.scope;var n=[],r=_X.internal.calculateCross(e);return n.push(`q`),n.push(`1 1 `+IY(_X.internal.getWidth(e)-2)+` `+IY(_X.internal.getHeight(e)-2)+` re`),n.push(`W`),n.push(`n`),n.push(IY(r.x1.x)+` `+IY(r.x1.y)+` m`),n.push(IY(r.x2.x)+` `+IY(r.x2.y)+` l`),n.push(IY(r.x4.x)+` `+IY(r.x4.y)+` m`),n.push(IY(r.x3.x)+` `+IY(r.x3.y)+` l`),n.push(`s`),n.push(`Q`),t.stream=n.join(` 125`),t},YesPushDown:function(e){var t=BY(e);t.scope=e.scope;var n=_X.internal.calculateCross(e),r=[];return r.push(`0.749023 g`),r.push(`0 0 `+IY(_X.internal.getWidth(e))+` `+IY(_X.internal.getHeight(e))+` re`),r.push(`f`),r.push(`q`),r.push(`1 1 `+IY(_X.internal.getWidth(e)-2)+` `+IY(_X.internal.getHeight(e)-2)+` re`),r.push(`W`),r.push(`n`),r.push(IY(n.x1.x)+` `+IY(n.x1.y)+` m`),r.push(IY(n.x2.x)+` `+IY(n.x2.y)+` l`),r.push(IY(n.x4.x)+` `+IY(n.x4.y)+` m`),r.push(IY(n.x3.x)+` `+IY(n.x3.y)+` l`),r.push(`s`),r.push(`Q`),t.stream=r.join(` 126`),t},OffPushDown:function(e){var t=BY(e);t.scope=e.scope;var n=[];return n.push(`0.749023 g`),n.push(`0 0 `+IY(_X.internal.getWidth(e))+` `+IY(_X.internal.getHeight(e))+` re`),n.push(`f`),t.stream=n.join(` 127`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return`/`+t+` `+e.fontSize+` Tf `+n}};_X.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=_X.internal.getWidth(e),n=_X.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},_X.internal.getWidth=function(e){var t=0;return hH(e)===`object`&&(t=zY(e.Rect[2])),t},_X.internal.getHeight=function(e){var t=0;return hH(e)===`object`&&(t=zY(e.Rect[3])),t};var vX=jY.addField=function(e){if($Y(this,e),!(e instanceof aX))throw Error(`Invalid argument passed to jsPDF.addField.`);var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};jY.AcroFormChoiceField=oX,jY.AcroFormListBox=sX,jY.AcroFormComboBox=cX,jY.AcroFormEditBox=lX,jY.AcroFormButton=uX,jY.AcroFormPushButton=dX,jY.AcroFormRadioButton=fX,jY.AcroFormCheckBox=mX,jY.AcroFormTextField=hX,jY.AcroFormPasswordField=gX,jY.AcroFormAppearance=_X,jY.AcroForm={ChoiceField:oX,ListBox:sX,ComboBox:cX,EditBox:lX,Button:uX,PushButton:dX,RadioButton:fX,CheckBox:mX,TextField:hX,PasswordField:gX,Appearance:_X},AY.AcroForm={ChoiceField:oX,ListBox:sX,ComboBox:cX,EditBox:lX,Button:uX,PushButton:dX,RadioButton:fX,CheckBox:mX,TextField:hX,PasswordField:gX,Appearance:_X},AY.AcroForm;function yX(e){return e.reduce(function(e,t,n){return e[t]=n,e},{})}(function(e){var t=`addImage_`;e.__addimage__={};var n=`UNKNOWN`,r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(e,t){var i,a,o,s,c,l=n;if((t=t||n)===`RGBA`||e.data!==void 0&&e.data instanceof Uint8ClampedArray&&`height`in e&&`width`in e)return`RGBA`;if(S(e))for(c in r)for(o=r[c],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(o[i][a]!==void 0&&o[i][a]!==e[a]){s=!1;break}if(!0===s){l=c;break}}else for(c in r)for(o=r[c],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(o[i][a]!==void 0&&o[i][a]!==e.charCodeAt(a)){s=!1;break}if(!0===s){l=c;break}}return l===n&&t!==n&&(l=t),l},a=function e(t){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();i.indexOf(`FlateEncode`)!==-1;)i.splice(i.indexOf(`FlateEncode`),1);t.objectId=this.internal.newObject();var a=[];if(a.push({key:`Type`,value:`/XObject`}),a.push({key:`Subtype`,value:`/Image`}),a.push({key:`Width`,value:t.width}),a.push({key:`Height`,value:t.height}),t.colorSpace===_.INDEXED?a.push({key:`ColorSpace`,value:`[/Indexed /DeviceRGB `+(t.palette.length/3-1)+` `+(`sMask`in t&&t.sMask!==void 0?t.objectId+2:t.objectId+1)+` 0 R]`}):(a.push({key:`ColorSpace`,value:`/`+t.colorSpace}),t.colorSpace===_.DEVICE_CMYK&&a.push({key:`Decode`,value:`[1 0 1 0 1 0 1 0]`})),a.push({key:`BitsPerComponent`,value:t.bitsPerComponent}),`decodeParameters`in t&&t.decodeParameters!==void 0&&a.push({key:`DecodeParms`,value:`<<`+t.decodeParameters+`>>`}),`transparency`in t&&Array.isArray(t.transparency)&&t.transparency.length>0){for(var o=``,s=0,c=t.transparency.length;s<c;s++)o+=t.transparency[s]+` `+t.transparency[s]+` `;a.push({key:`Mask`,value:`[`+o+`]`})}t.sMask!==void 0&&a.push({key:`SMask`,value:t.objectId+1+` 0 R`});var l=t.filter===void 0?void 0:[`/`+t.filter];if(r({data:t.data,additionalKeyValues:a,alreadyAppliedFilters:l,objectId:t.objectId}),n(`endobj`),`sMask`in t&&t.sMask!==void 0){var u=t.sMaskBitsPerComponent??t.bitsPerComponent,d={width:t.width,height:t.height,colorSpace:`DeviceGray`,bitsPerComponent:u,data:t.sMask};`filter`in t&&(d.decodeParameters=`/Predictor ${t.predictor} /Colors 1 /BitsPerComponent ${u} /Columns ${t.width}`,d.filter=t.filter),e.call(this,d)}if(t.colorSpace===_.INDEXED){var f=this.internal.newObject();r({data:w(new Uint8Array(t.palette)),objectId:f}),n(`endobj`)}},o=function(){var e=this.internal.collections[t+`images`];for(var n in e)a.call(this,e[n])},s=function(){var e,n=this.internal.collections[t+`images`],r=this.internal.write;for(var i in n)r(`/I`+(e=n[i]).index,e.objectId,`0`,`R`)},c=function(){this.internal.collections[t+`images`]||(this.internal.collections[t+`images`]={},this.internal.events.subscribe(`putResources`,o),this.internal.events.subscribe(`putXobjectDict`,s))},l=function(){var e=this.internal.collections[t+`images`];return c.call(this),e},u=function(){return Object.keys(this.internal.collections[t+`images`]).length},d=function(t){return typeof e[`process`+t.toUpperCase()]==`function`},f=function(e){return hH(e)===`object`&&e.nodeType===1},p=function(t,n){if(t.nodeName===`IMG`&&t.hasAttribute(`src`)){var r=``+t.getAttribute(`src`);if(r.indexOf(`data:image/`)===0)return aY(unescape(r).split(`base64,`).pop());var i=e.loadFile(r,!0);if(i!==void 0)return i}if(t.nodeName===`CANVAS`){if(t.width===0||t.height===0)throw Error(`Given canvas must have data. Canvas width: `+t.width+`, height: `+t.height);var a;switch(n){case`PNG`:a=`image/png`;break;case`WEBP`:a=`image/webp`;break;default:a=`image/jpeg`}return aY(t.toDataURL(a,1).split(`base64,`).pop())}},m=function(e){var n=this.internal.collections[t+`images`];if(n){for(var r in n)if(e===n[r].alias)return n[r]}},h=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),e===0&&(e=t*n.width/n.height),t===0&&(t=e*n.height/n.width),[e,t]},g=function(e,t,n,r,i,a){var o=h.call(this,n,r,i),s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,u=l.call(this);if(n=o[0],r=o[1],u[i.index]=i,a){a*=Math.PI/180;var d=Math.cos(a),f=Math.sin(a),p=function(e){return e.toFixed(4)},m=[p(d),p(f),p(-1*f),p(d),0,0,`cm`]}this.internal.write(`q`),a?(this.internal.write([1,`0`,`0`,1,s(e),c(t+r),`cm`].join(` `)),this.internal.write(m.join(` `)),this.internal.write([s(n),`0`,`0`,s(r),`0`,`0`,`cm`].join(` `))):this.internal.write([s(n),`0`,`0`,s(r),s(e),c(t+r),`cm`].join(` `)),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,`cm`].join(` `)),this.internal.write(`/I`+i.index+` Do`),this.internal.write(`Q`)},_=e.color_spaces={DEVICE_RGB:`DeviceRGB`,DEVICE_GRAY:`DeviceGray`,DEVICE_CMYK:`DeviceCMYK`,CAL_GREY:`CalGray`,CAL_RGB:`CalRGB`,LAB:`Lab`,ICC_BASED:`ICCBased`,INDEXED:`Indexed`,PATTERN:`Pattern`,SEPARATION:`Separation`,DEVICE_N:`DeviceN`};e.decode={DCT_DECODE:`DCTDecode`,FLATE_DECODE:`FlateDecode`,LZW_DECODE:`LZWDecode`,JPX_DECODE:`JPXDecode`,JBIG2_DECODE:`JBIG2Decode`,ASCII85_DECODE:`ASCII85Decode`,ASCII_HEX_DECODE:`ASCIIHexDecode`,RUN_LENGTH_DECODE:`RunLengthDecode`,CCITT_FAX_DECODE:`CCITTFaxDecode`};var v=e.image_compression={NONE:`NONE`,FAST:`FAST`,MEDIUM:`MEDIUM`,SLOW:`SLOW`},y=e.__addimage__.sHashCode=function(e){var t,n,r=0;if(typeof e==`string`)for(n=e.length,t=0;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;else if(S(e))for(n=e.byteLength/2,t=0;t<n;t++)r=(r<<5)-r+e[t],r|=0;return r}
127,b=e.__addimage__.validateStringAsBase64=function(e){(e=e||``).toString().trim();var t=!0;return e.length===0&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},x=e.__addimage__.extractImageFromDataUrl=function(e){if(e==null||!(e=e.trim()).startsWith(`data:`))return null;var t=e.indexOf(`,`);return t<0?null:e.substring(0,t).trim().endsWith(`base64`)?e.substring(t+1):null};e.__addimage__.isArrayBuffer=function(e){return e instanceof ArrayBuffer};var S=e.__addimage__.isArrayBufferView=function(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array},C=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},w=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t=``,n=S(e)?e:new Uint8Array(e),r=0;r<n.length;r+=8192)t+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return t};e.addImage=function(){var e,t,r,i,a,o,s,l,u;if(typeof arguments[1]==`number`?(t=n,r=arguments[1],i=arguments[2],a=arguments[3],o=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]):(t=arguments[1],r=arguments[2],i=arguments[3],a=arguments[4],o=arguments[5],s=arguments[6],l=arguments[7],u=arguments[8]),hH(e=arguments[0])===`object`&&!f(e)&&`imageData`in e){var d=e;e=d.imageData,t=d.format||t||n,r=d.x||r||0,i=d.y||i||0,a=d.w||d.width||a,o=d.h||d.height||o,s=d.alias||s,l=d.compression||l,u=d.rotation||d.angle||u}var p=this.internal.getFilters();if(l===void 0&&p.indexOf(`FlateEncode`)!==-1&&(l=`SLOW`),isNaN(r)||isNaN(i))throw Error(`Invalid coordinates passed to jsPDF.addImage`);c.call(this);var m=T.call(this,e,t,s,l);return g.call(this,r,i,a,o,m,u),this};var T=function(t,r,a,o){var s,c,l;if(typeof t==`string`&&i(t)===n){t=unescape(t);var h=E(t,!1);(h!==``||(h=e.loadFile(t,!0))!==void 0)&&(t=h)}if(f(t)&&(t=p(t,r)),r=i(t,r),!d(r))throw Error(`addImage does not support files of type '`+r+`', please ensure that a plugin for '`+r+`' support is added.`);if(((l=a)==null||l.length===0)&&(a=function(e){return typeof e==`string`||S(e)?y(e):S(e.data)?y(e.data):null}(t)),(s=m.call(this,a))||(t instanceof Uint8Array||r===`RGBA`||(c=t,t=C(t)),s=this[`process`+r.toUpperCase()](t,u.call(this),a,function(t){return t&&typeof t==`string`&&(t=t.toUpperCase()),t in e.image_compression?t:v.NONE}(o),c)),!s)throw Error(`An unknown error occurred whilst processing the image.`);return s},E=e.__addimage__.convertBase64ToBinaryString=function(e,t){t=typeof t!=`boolean`||t;var n,r=``;if(typeof e==`string`){n=x(e)??e;try{r=aY(n)}catch(e){if(t)throw b(n)?Error(`atob-Error in jsPDF.convertBase64ToBinaryString `+e.message):Error(`Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString `)}}return r};e.getImageProperties=function(t){var r,a,o=``;if(f(t)&&(t=p(t)),typeof t==`string`&&i(t)===n&&((o=E(t,!1))===``&&(o=e.loadFile(t)||``),t=o),a=i(t),!d(a))throw Error(`addImage does not support files of type '`+a+`', please ensure that a plugin for '`+a+`' support is added.`);if(t instanceof Uint8Array||(t=C(t)),!(r=this[`process`+a.toUpperCase()](t)))throw Error(`An unknown error occurred whilst processing the image`);return r.fileType=a,r}})(AY.API),function(e){var t=function(e){if(e!==void 0&&e!=``)return!0};AY
vendor: 3,728 bytes, line 127
127.API.events.push([`addPage`,function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),e.events.push([`putPage`,function(e){for(var n,r,i,a=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(e.objId),c=e.pageContext.annotations,l=!1,u=0;u<c.length&&!l;u++)switch((n=c[u]).type){case`link`:(t(n.options.url)||t(n.options.pageNumber))&&(l=!0);break;case`reference`:case`text`:case`freetext`:l=!0}if(l!=0){this.internal.write(`/Annots [`);for(var d=0;d<c.length;d++){n=c[d];var f=this.internal.pdfEscape,p=this.internal.getEncryptor(e.objId);switch(n.type){case`reference`:this.internal.write(` `+n.object.objId+` 0 R `);break;case`text`:var m=this.internal.newAdditionalObject(),h=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(m.objId),_=n.title||`Note`;i=`<</Type /Annot /Subtype /Text `+(r=`/Rect [`+a(n.bounds.x)+` `+o(n.bounds.y+n.bounds.h)+` `+a(n.bounds.x+n.bounds.w)+` `+o(n.bounds.y)+`] `)+`/Contents (`+f(g(n.contents))+`)`,i+=` /Popup `+h.objId+` 0 R`,i+=` /P `+s.objId+` 0 R`,i+=` /T (`+f(g(_))+`) >>`,m.content=i;var v=m.objId+` 0 R`;i=`<</Type /Annot /Subtype /Popup `+(r=`/Rect [`+a(n.bounds.x+30)+` `+o(n.bounds.y+n.bounds.h)+` `+a(n.bounds.x+n.bounds.w+30)+` `+o(n.bounds.y)+`] `)+` /Parent `+v,n.open&&(i+=` /Open true`),i+=` >>`,h.content=i,this.internal.write(m.objId,`0 R`,h.objId,`0 R`);break;case`freetext`:r=`/Rect [`+a(n.bounds.x)+` `+o(n.bounds.y)+` `+a(n.bounds.x+n.bounds.w)+` `+o(n.bounds.y+n.bounds.h)+`] `;var y=`font: Helvetica,sans-serif 12.0pt; text-align:left; color:#`+(n.color||`#000000`);i=`<</Type /Annot /Subtype /FreeText `+r+`/Contents (`+f(p(n.contents))+`)`,i+=` /DS(`+f(p(y))+`)`,i+=` /Border [0 0 0]`,i+=` >>`,this.internal.write(i);break;case`link`:if(n.options.name){var b=this.annotations._nameMap[n.options.name];n.options.pageNumber=b.page,n.options.top=b.y}else n.options.top||(n.options.top=0);if(r=`/Rect [`+n.finalBounds.x+` `+n.finalBounds.y+` `+n.finalBounds.w+` `+n.finalBounds.h+`] `,i=``,n.options.url)i=`<</Type /Annot /Subtype /Link `+r+`/Border [0 0 0] /A <</S /URI /URI (`+f(p(n.options.url))+`) >>`;else if(n.options.pageNumber)switch(i=`<</Type /Annot /Subtype /Link `+r+`/Border [0 0 0] /Dest [`+this.internal.getPageInfo(n.options.pageNumber).objId+` 0 R`,n.options.magFactor=n.options.magFactor||`XYZ`,n.options.magFactor){case`Fit`:i+=` /Fit]`;break;case`FitH`:i+=` /FitH `+n.options.top+`]`;break;case`FitV`:n.options.left=n.options.left||0,i+=` /FitV `+n.options.left+`]`;break;default:var x=o(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),i+=` /XYZ `+n.options.left+` `+x+` `+n.options.zoom+`]`}i!=``&&(i+=` >>`,this.internal.write(i))}}this.internal.write(`]`)}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case`link`:this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case`text`:case`freetext`:t.pageContext.annotations.push(e)}},e.link=function(e,t,n,r,i){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(e),y:s(t),w:o(e+n),h:s(t+r)},options:i,type:`link`})},e.textWithLink=function(e,t,n,r){var i,a,o=this.getTextWidth(e),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(r.maxWidth!==void 0){a=r.maxWidth;var c=this.splitTextToSize(e,a).length;i=Math.ceil(s*c)}else a=o,i=s;return this.text(e,t,n,r),n+=.2*s,r.align===`center`&&(t-=o/2),r.align===`right`&&(t-=o),this.link(t,n-s,a,i,r),o},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(
127AY.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,6437
vendor: 50,042 bytes, line 127
1277],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(e){return t[e.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(e){return typeof e==`string`&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(e){return o(e)&&i.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=1};var l=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length==4},d=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,i=``,a=0;for(t=0;t<e.length;t+=1)r[e.charCodeAt(t)]===void 0?(r=n,i+=e.charAt(t-a),t-=a,a=0):(a++,typeof(r=r[e.charCodeAt(t)])==`number`&&(i+=String.fromCharCode(r),r=n,a=0),t===e.length-1&&(r=n,i+=e.charAt(t-(a-1)),t-=a-1,a=0));return i};e.__arabicParser__.isArabicDiacritic=function(e){return e!==void 0&&r[e.charCodeAt(0)]!==void 0};var f=e.__arabicParser__.getCorrectForm=function(e,t,n){return o(e)?!1===a(e)?-1:!l(e)||!o(t)&&!o(n)||!o(n)&&s(t)||s(e)&&!o(t)||s(e)&&c(t)||s(e)&&s(t)?0:u(e)&&o(t)&&!s(t)&&o(n)&&l(n)?3:s(e)||!o(n)?1:2:-1},p=function(e){var n=0,r=0,i=0,a=``,s=``,c=``,l=(e=e||``).split(`\\s+`),u=[];for(n=0;n<l.length;n+=1){for(u.push(``),r=0;r<l[n].length;r+=1)a=l[n][r],s=l[n][r-1],c=l[n][r+1],o(a)?(i=f(a,s,c),u[n]+=i===-1?a:String.fromCharCode(t[a.charCodeAt(0)][i])):u[n]+=a;u[n]=d(u[n])}return u.join(` `)},m=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t=typeof arguments[0]==`string`?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var r=0;for(n=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?n.push([p(t[r][0]),t[r][1],t[r][2]]):n.push([p(t[r])]);e=n}else e=p(t);return typeof arguments[0]==`string`?e:(arguments[0].text=e,arguments[0])};e.events.push([`preProcessText`,m])}(AY.API),AY.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||`non-conform`,e.variant===`javascript`?this.addJS(`print({});`):(this.internal.events.subscribe(`postPutResources`,function(){t=this.internal.newObject(),this.internal.out(`<<`),this.internal.out(`/S /Named`),this.internal.out(`/Type /Action`),this.internal.out(`/N /Print`),this.internal.out(`>>`),this.internal.out(`endobj`)}),this.internal.events.subscribe(`putCatalog`,function(){this.internal.out(`/OpenAction `+t+` 0 R`)})),this},function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext(`2d`).pageWrapXEnabled&&(this.getContext(`2d`).pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext(`2d`).pageWrapYEnabled&&(this.getContext(`2d`).pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(e){i=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if((e=e||`2d`)!==`2d`)return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw Error(`toDataURL is not implemented.`)},e.events.push([`initialized`,function(){this.canvas=new t,this.canvas.pdf=this}])}(AY.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return a},set:function(e){a=e}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(e){o=e}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return r.call(this),this.internal.__cell__.headerFunction=typeof e==`function`?e:void 0,this},e.getTextDimensions=function(e,t){r.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),i=t.font||this.getFont(),a=t.scaleFactor||this.internal.scaleFactor,o=0,s=0,c=0,l=this;if(!Array.isArray(e)&&typeof e!=`string`){if(typeof e!=`number`)throw Error(`getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.`);e=String(e)}var u=t.maxWidth;u>0?typeof e==`string`?e=this.splitTextToSize(e,u):Object.prototype.toString.call(e)===`[object Array]`&&(e=e.reduce(function(e,t){return e.concat(l.splitTextToSize(t,u))},[])):e=Array.isArray(e)?e:[e];for(var d=0;d<e.length;d++)o<(c=this.getStringUnitWidth(e[d],{font:i})*n)&&(o=c);return o!==0&&(s=e.length),{w:o/=a,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/a,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var e=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]);r.call(this);var i=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,c=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return i.lineNumber!==void 0&&(i.lineNumber===e.lineNumber?(e.x=(i.x||0)+(i.width||0),e.y=i.y||0):i.y+i.height+e.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=s.top,l&&c&&(this.printHeaderRow(e.lineNumber,!0),e.y+=c[0].height)):e.y=i.y+i.height||e.y),e.text[0]!==void 0&&(this.rect(e.x,e.y,e.width,e.height,!0===n?`FD`:void 0),e.align===`right`?this.text(e.text,e.x+e.width-o,e.y+o,{align:`right`,baseline:`top`}):e.align===`center`?this.text(e.text,e.x+e.width/2,e.y+o,{align:`center`,baseline:`top`,maxWidth:e.width-o-o}):this.text(e.text,e.x+o,e.y+o,{align:`left`,baseline:`top`,maxWidth:e.width-o-o})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,c,l,u){if(r.call(this),!c)throw Error(`No data for PDF table.`);var d,f,p,m,h=[],g=[],_=[],v={},y={},b=[],x=[],S=(u=u||{}).autoSize||!1,C=!1!==u.printHeaders,w=u.css&&u.css[`font-size`]!==void 0?16*u.css[`font-size`]:u.fontSize||12,T=u.margins||Object.assign({width:this.getPageWidth()},t),E=typeof u.padding==`number`?u.padding:3,D=u.headerBackgroundColor||`#c8c8c8`,O=u.headerTextColor||`#000`;if(i.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=T,this.internal.__cell__.table_font_size=w,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=D,this.internal.__cell__.headerTextColor=O,this.setFontSize(w),l==null)g=h=Object.keys(c[0]),_=h.map(function(){return`left`});else if(Array.isArray(l)&&hH(l[0])===`object`)for(h=l.map(function(e){return e.name}),g=l.map(function(e){return e.prompt||e.name||``}),_=l.map(function(e){return e.align||`left`}),d=0;d<l.length;d+=1)y[l[d].name]=.7499990551181103*l[d].width;else Array.isArray(l)&&typeof l[0]==`string`&&(g=h=l,_=h.map(function(){return`left`}));if(S||Array.isArray(l)&&typeof l[0]==`string`)for(d=0;d<h.length;d+=1){for(v[m=h[d]]=c.map(function(e){return e[m]}),this.setFont(void 0,`bold`),b.push(this.getTextDimensions(g[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=v[m],this.setFont(void 0,`normal`),p=0;p<f.length;p+=1)b.push(this.getTextDimensions(f[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);y[m]=Math.max.apply(null,b)+E+E,b=[]}if(C){var k={};for(d=0;d<h.length;d+=1)k[h[d]]={},k[h[d]].text=g[d],k[h[d]].align=_[d];var A=s.call(this,k,y);x=h.map(function(t){return new a(e,n,y[t],A,k[t].text,void 0,k[t].align)}),this.setTableHeaderRow(x),this.printHeaderRow(1,!1)}var j=l.reduce(function(e,t){return e[t.name]=t.align,e},{});for(d=0;d<c.length;d+=1){`rowStart`in u&&u.rowStart instanceof Function&&u.rowStart({row:d,data:c[d]},this);var M=s.call(this,c[d],y);for(p=0;p<h.length;p+=1){var N=c[d][h[p]];`cellStart`in u&&u.cellStart instanceof Function&&u.cellStart({row:d,col:p,data:N},this),o.call(this,new a(e,n,y[h[p]],M,N,d+2,j[h[p]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var s=function(e,t){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(e).map(function(r){var i=e[r];return this.splitTextToSize(i.hasOwnProperty(`text`)?i.text:i,t[r]-n-n)},this).map(function(e){return this.getLineHeightFactor()*e.length*r/i+n+n},this).reduce(function(e,t){return Math.max(e,t)},0)};e.setTableHeaderRow=function(e){r.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw Error(`Property tableHeaderRow does not exist.`);var i;if(n=!0,typeof this.internal.__cell__.headerFunction==`function`){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,`bold`);for(var c=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){i=this.internal.__cell__.tableHeaderRow[l].clone(),t&&(i.y=this.internal.__cell__.margins.top||0,c.push(i)),i.lineNumber=e;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,i),this.setTextColor(u)}c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,`normal`),n=!1}}(AY.API);var bX={italic:[`italic`,`oblique`,`normal`],oblique:[`oblique`,`italic`,`normal`],normal:[`normal`,`oblique`,`italic`]},xX=[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`],SX=yX(xX),CX=[100,200,300,400,500,600,700,800,900],wX=yX(CX);function TX(e){var t=e.family.replace(/"|'/g,``).toLowerCase(),n=function(e){return bX[e=e||`normal`]?e:`normal`}(e.style),r=function(e){return e?typeof e==`number`?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):e===`bold`?700:400:400}(e.weight),i=function(e){return typeof SX[e=e||`normal`]==`number`?e:`normal`}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(` `)}}}function EX(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var DX={"sans-serif":`helvetica`,fixed:`courier`,monospace:`courier`,terminal:`courier`,cursive:`times`,fantasy:`times`,serif:`times`},OX={caption:`times`,icon:`times`,menu:`times`,"message-box":`times`,"small-caption":`times`,"status-bar":`times`};function kX(e){return[e.stretch,e.style,e.weight,e.family].join(` `)}function AX(e){return e.trimLeft()}function jX(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function MX(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var NX,PX,FX,IX,LX,RX=[`times`];function zX(e,t,n,r,i){var a=4,o=HX;switch(i){case AY.API.image_compression.FAST:a=1,o=VX;break;case AY.API.image_compression.MEDIUM:a=6,o=UX;break;case AY.API.image_compression.SLOW:a=9,o=WX}e=function(e,t,n,r){for(var i,a=e.length/t,o=new Uint8Array(e.length+a),s=[BX,VX,HX,UX,WX],c=0;c<a;c+=1){var l=c*t,u=e.subarray(l,l+t);if(r)o.set(r(u,n,i),l+c);else{for(var d=s.length,f=[],p=0;p<d;p+=1)f[p]=s[p](u,n,i);var m=KX(f.concat());o.set(f[m],l+c)}i=u}return o}(e,t,Math.ceil(n*r/8),o);var s=$H(e,{level:a});return AY.API.__addimage__.arrayBufferToBinaryString(s)}function BX(e){var t=Array.apply([],e);return t.unshift(0),t}function VX(e,t){var n=e.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var a=e[i-t]||0;r[i+1]=e[i]-a+256&255}return r}function HX(e,t,n){var r=e.length,i=[];i[0]=2;for(var a=0;a<r;a+=1){var o=n&&n[a]||0;i[a+1]=e[a]-o+256&255}return i}function UX(e,t,n){var r=e.length,i=[];i[0]=3;for(var a=0;a<r;a+=1){var o=e[a-t]||0,s=n&&n[a]||0;i[a+1]=e[a]+256-(o+s>>>1)&255}return i}function WX(e,t,n){var r=e.length,i=[];i[0]=4;for(var a=0;a<r;a+=1){var o=GX(e[a-t]||0,n&&n[a]||0,n&&n[a-t]||0);i[a+1]=e[a]-o+256&255}return i}function GX(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),i=Math.abs(e-n),a=Math.abs(e+t-n-n);return r<=i&&r<=a?e:i<=a?t:n}function KX(e){var t=e.map(function(e){return e.reduce(function(e,t){return e+Math.abs(t)},0)});return t.indexOf(Math.min.apply(null,t))}function qX(e,t,n){var r=t*n,i=Math.floor(r/8),a=16-(r-8*i+n),o=(1<<n)-1;return YX(e,i)>>a&o}function JX(e,t,n,r){var i=n*r,a=Math.floor(i/8),o=16-(i-8*a+r),s=(1<<r)-1,c=(t&s)<<o;(function(e,t,n){if(t+1<e.byteLength)e.setUint16(t,n,!1);else{var r=n>>8&255;e.setUint8(t,r)}})(e,a,YX(e,a)&~(s<<o)&65535|c)}function YX(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function XX(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw Error(`Invalid GIF 87a/89a header.`);var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],a=i>>7,o=1<<1+(7&i);e[t++],e[t++];var s=null,c=null;a&&(s=t,c=o,t+=3*o);var l=!0,u=[],d=0,f=null,p=0,m=null;for(this.width=n,this.height=r;l&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,m=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((D=e[t++])>=0))throw Error(`Invalid block size`);if(D===0)break;t+=D}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw Error(`Invalid graphics extension block.`);var h=e[t++];d=e[t++]|e[t++]<<8,f=e[t++],1&h||(f=null),p=h>>2&7,t++;break;case 254:for(;;){if(!((D=e[t++])>=0))throw Error(`Invalid block size`);if(D===0)break;t+=D}break;default:throw Error(`Unknown graphic control label: 0x`+e[t-1].toString(16))}break;case 44:var g=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++],x=b>>6&1,S=1<<1+(7&b),C=s,w=c,T=!1;b>>7&&(T=!0,C=t,w=S,t+=3*S);var E=t;for(t++;;){var D;if(!((D=e[t++])>=0))throw Error(`Invalid block size`);if(D===0)break;t+=D}u.push({x:g,y:_,width:v,height:y,has_local_palette:T,palette_offset:C,palette_size:w,data_offset:E,data_length:t-E,transparent_index:f,interlaced:!!x,delay:d,disposal:p});break;case 59:l=!1;break;default:throw Error(`Unknown gif block: 0x`+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return m},this.frameInfo=function(e){if(e<0||e>=u.length)throw Error(`Frame index out of range.`);return u[e]},this.decodeAndBlitFrameBGRA=function(t,r){var i=this.frameInfo(t),a=i.width*i.height;if(a>536870912)throw Error(`Image dimensions exceed 512MB, which is too large.`);var o=new Uint8Array(a);ZX(e,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;c===null&&(c=256);var l=i.width,u=n-l,d=l,f=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),m=f,h=4*u;!0===i.interlaced&&(h+=4*n*7);for(var g=8,_=0,v=o.length;_<v;++_){var y=o[_];if(d===0&&(d=l,(m+=h)>=p&&(h=4*u+4*n*(g-1),m=f+(l+u)*(g<<1),g>>=1)),y===c)m+=4;else{var b=e[s+3*y],x=e[s+3*y+1],S=e[s+3*y+2];r[m++]=S,r[m++]=x,r[m++]=b,r[m++]=255}--d}},this.decodeAndBlitFrameRGBA=function(t,r){var i=this.frameInfo(t),a=i.width*i.height;if(a>536870912)throw Error(`Image dimensions exceed 512MB, which is too large.`);var o=new Uint8Array(a);ZX(e,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;c===null&&(c=256);var l=i.width,u=n-l,d=l,f=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),m=f,h=4*u;!0===i.interlaced&&(h+=4*n*7);for(var g=8,_=0,v=o.length;_<v;++_){var y=o[_];if(d===0&&(d=l,(m+=h)>=p&&(h=4*u+4*n*(g-1),m=f+(l+u)*(g<<1),g>>=1)),y===c)m+=4;else{var b=e[s+3*y],x=e[s+3*y+1],S=e[s+3*y+2];r[m++]=b,r[m++]=x,r[m++]=S,r[m++]=255}--d}}}function ZX(e,t,n,r){for(var i=e[t++],a=1<<i,o=a+1,s=o+1,c=i+1,l=(1<<c)-1,u=0,d=0,f=0,p=e[t++],m=new Int32Array(4096),h=null;;){for(;u<16&&p!==0;)d|=e[t++]<<u,u+=8,p===1?p=e[t++]:--p;if(u<c)break;var g=d&l;if(d>>=c,u-=c,g!==a){if(g===o)break;for(var _=g<s?g:h,v=0,y=_;y>a;)y=m[y]>>8,++v;var b=y;if(f+v+(_===g?0:1)>r)return void $J.log(`Warning, gif stream longer than expected.`);n[f++]=b;var x=f+=v;for(_!==g&&(n[f++]=b),y=_;v--;)y=m[y],n[--x]=255&y,y>>=8;h!==null&&s<4096&&(m[s++]=h<<8|b,s>=l+1&&c<12&&(++c,l=l<<1|1)),h=g}else s=o+1,l=(1<<(c=i+1))-1,h=null}return f!==r&&$J.log(`Warning, gif stream shorter than expected.`),n}function QX(e){var t,n,r,i,a,o=Math.floor,s=Array(64),c=Array(64),l=Array(64),u=Array(64),d=Array(65535),f=Array(65535),p=Array(64),m=Array(64),h=[],g=0,_=7,v=Array(64),y=Array(64),b=Array(64),x=Array(256),S=Array(2048),C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],w=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],j=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function M(e,t){for(var n=0,r=0,i=[],a=1;a<=16;a++){for(var o=1;o<=e[a];o++)i[t[r]]=[],i[t[r]][0]=n,i[t[r]][1]=a,r++,n++;n*=2}return i}function N(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(g|=1<<_),n--,--_<0&&(g==255?(P(255),P(0)):P(g),_=7,g=0)}function P(e){h.push(e)}function ee(e){P(e>>8&255),P(255&e)}function F(e,t,n,r,i){for(var a,o=i[0],s=i[240],c=function(e,t){var n,r,i,a,o,s,c,l,u,d,f=0;for(u=0;u<8;++u){n=e[f],r=e[f+1],i=e[f+2],a=e[f+3],o=e[f+4],s=e[f+5],c=e[f+6];var m=n+(l=e[f+7]),h=n-l,g=r+c,_=r-c,v=i+s,y=i-s,b=a+o,x=a-o,S=m+b,C=m-b,w=g+v,T=g-v;e[f]=S+w,e[f+4]=S-w;var E=.707106781*(T+C);e[f+2]=C+E,e[f+6]=C-E;var D=.382683433*((S=x+y)-(T=_+h)),O=.5411961*S+D,k=1.306562965*T+D,A=.707106781*(w=y+_),j=h+A,M=h-A;e[f+5]=M+O,e[f+3]=M-O,e[f+1]=j+k,e[f+7]=j-k,f+=8}for(f=0,u=0;u<8;++u){n=e[f],r=e[f+8],i=e[f+16],a=e[f+24],o=e[f+32],s=e[f+40],c=e[f+48];var N=n+(l=e[f+56]),P=n-l,ee=r+c,F=r-c,I=i+s,te=i-s,L=a+o,ne=a-o,R=N+L,re=N-L,z=ee+I,ie=ee-I;e[f]=R+z,e[f+32]=R-z;var ae=.707106781*(ie+re);e[f+16]=re+ae,e[f+48]=re-ae;var oe=.382683433*((R=ne+te)-(ie=F+P)),se=.5411961*R+oe,ce=1.306562965*ie+oe,le=.707106781*(z=te+F),ue=P+le,B=P-le;e[f+40]=B+se,e[f+24]=B-se,e[f+8]=ue+ce,e[f+56]=ue-ce,f++}for(u=0;u<64;++u)d=e[u]*t[u],p[u]=d>0?d+.5|0:d-.5|0;return p}(e,t),l=0;l<64;++l)m[C[l]]=c[l];var u=m[0]-n;n=m[0],u==0?N(r[0]):(N(r[f[a=32767+u]]),N(d[a]));for(var h=63;h>0&&m[h]==0;)h--;if(h==0)return N(o),n;for(var g,_=1;_<=h;){for(var v=_;m[_]==0&&_<=h;)++_;var y=_-v;if(y>=16){g=y>>4;for(var b=1;b<=g;++b)N(s);y&=15}a=32767+m[_],N(i[(y<<4)+f[a]]),N(d[a]),_++}return h!=63&&N(o),n}function I(e){e=Math.min(Math.max(e,1),100),a!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=o((t[n]*e+50)/100);r=Math.min(Math.max(r,1),255),s[C[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;a<64;a++){var d=o((i[a]*e+50)/100);d=Math.min(Math.max(d,1),255),c[C[a]]=d}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,m=0;m<8;m++)for(var h=0;h<8;h++)l[p]=1/(s[C[p]]*f[m]*f[h]*8),u[p]=1/(c[C[p]]*f[m]*f[h]*8),p++}(Math.floor(e<50?5e3/e:200-2*e)),a=e)}this.encode=function(e,a){a&&I(a),h=[],g=0,_=7,ee(65496),ee(65504),ee(16),P(74),P(70),P(73),P(70),P(0),P(1),P(1),P(0),ee(1),ee(1),P(0),P(0),function(){ee(65499),ee(132),P(0);for(var e=0;e<64;e++)P(s[e]);P(1);for(var t=0;t<64;t++)P(c[t])}(),function(e,t){ee(65472),ee(17),P(8),ee(t),ee(e),P(3),P(1),P(17),P(0),P(2),P(17),P(1),P(3),P(17),P(1)}(e.width,e.height),function(){ee(65476),ee(418),P(0);for(var e=0;e<16;e++)P(w[e+1]);for(var t=0;t<=11;t++)P(T[t]);P(16);for(var n=0;n<16;n++)P(E[n+1]);for(var r=0;r<=161;r++)P(D[r]);P(1);for(var i=0;i<16;i++)P(O[i+1]);for(var a=0;a<=11;a++)P(k[a]);P(17);for(var o=0;o<16;o++)P(A[o+1]);for(var s=0;s<=161;s++)P(j[s])}(),ee(65498),ee(12),P(3),P(1),P(0),P(2),P(17),P(3),P(17),P(0),P(63),P(0);var o=0,d=0,f=0;g=0,_=7,this.encode.displayName=`_encode_`;for(var p,m,x,C,M,te,L,ne,R,re=e.data,z=e.width,ie=e.height,ae=4*z,oe=0;oe<ie;){for(p=0;p<ae;){for(M=ae*oe+p,L=-1,ne=0,R=0;R<64;R++)te=M+(ne=R>>3)*ae+(L=4*(7&R)),oe+ne>=ie&&(te-=ae*(oe+1+ne-ie)),p+L>=ae&&(te-=p+L-ae+4),m=re[te++],x=re[te++],C=re[te++],v[R]=(S[m]+S[x+256|0]+S[C+512|0]>>16)-128,y[R]=(S[m+768|0]+S[x+1024|0]+S[C+1280|0]>>16)-128,b[R]=(S[m+1280|0]+S[x+1536|0]+S[C+1792|0]>>16)-128;o=F(v,l,o,t,r),d=F(y,u,d,n,i),f=F(b,u,f,n,i),p+=32}oe+=8}if(_>=0){var se=[];se[1]=_+1,se[0]=(1<<_+1)-1,N(se)}return ee(65497),new Uint8Array(h)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)x[t]=e(t)}(),t=M(w,T),n=M(O,k),r=M(E,D),i=M(A,j),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)f[32767+r]=n,d[32767+r]=[],d[32767+r][1]=n,d[32767+r][0]=r;for(var i=-(t-1);i<=-e;i++)f[32767+i]=n,d[32767+i]=[],d[32767+i][1]=n,d[32767+i][0]=t-1+i;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)S[e]=19595*e,S[e+256|0]=38470*e,S[e+512|0]=7471*e+32768,S[e+768|0]=-11059*e,S[e+1024|0]=-21709*e,S[e+1280|0]=32768*e+8421375,S[e+1536|0]=-27439*e,S[e+1792|0]=-5329*e}(),I(e)}function $X(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,[`BM`,`BA`,`CI`,`CP`,`IC`,`PT`].indexOf(this.flag)===-1)throw Error(`Invalid BMP File`);this.parseHeader(),this.parseBGR()}function eZ(e){function t(e){if(!e)throw Error(`assert :P`)}function n(e,t,n){for(var r=0;4>r;r++)if(e[t+r]!=n.charCodeAt(r))return!0;return!1}function r(e,t,n,r,i){for(var a=0;a<i;a++)e[t+a]=n[r+a]}function i(e,t,n,r){for(var i=0;i<r;i++)e[t+i]=n}function a(e){return new Int32Array(e)}function o(e,t){for(var n=[],r=0;r<e;r++)n.push(new t);return n}function s(e,t){var n=[];return function e(n,r,i){for(var a=i[r],o=0;o<a&&(n.push(i.length>r+1?[]:new t),!(i.length<r+1));o++)e(n[o],r+1,i)}(n,0,e),n}var c=function(){var e=this;function c(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function l(e,n,r,i,a){t(!(i%r));do e[n+(i-=r)]=a;while(0<i)}function u(e,n,r,i,o){if(t(2328>=o),512>=o)var s=a(512);else if((s=a(o))==null)return 0;return function(e,n,r,i,o,s){var u,f,p=n,m=1<<r,h=a(16),g=a(16);for(t(o!=0),t(i!=null),t(e!=null),t(0<r),f=0;f<o;++f){if(15<i[f])return 0;++h[i[f]]}if(h[0]==o)return 0;for(g[1]=0,u=1;15>u;++u){if(h[u]>1<<u)return 0;g[u+1]=g[u]+h[u]}for(f=0;f<o;++f)u=i[f],0<i[f]&&(s[g[u]++]=f);if(g[15]==1)return(i=new d).g=0,i.value=s[0],l(e,p,1,m,i),m;var _,v=-1,y=m-1,b=0,x=1,S=1,C=1<<r;for(f=0,u=1,o=2;u<=r;++u,o<<=1){if(x+=S<<=1,0>(S-=h[u]))return 0;for(;0<h[u];--h[u])(i=new d).g=u,i.value=s[f++],l(e,p+b,o,C,i),b=c(b,u)}for(u=r+1,o=2;15>=u;++u,o<<=1){if(x+=S<<=1,0>(S-=h[u]))return 0;for(;0<h[u];--h[u]){if(i=new d,(b&y)!=v){for(p+=C,_=1<<(v=u)-r;15>v&&!(0>=(_-=h[v]));)++v,_<<=1;m+=C=1<<(_=v-r),e[n+(v=b&y)].g=_+r,e[n+v].value=p-n-v}i.g=u-r,i.value=s[f++],l(e,p+(b>>r),o,C,i),b=c(b,u)}}return x==2*g[15]-1?m:0}(e,n,r,i,o,s)}function d(){this.value=this.g=0}function f(){this.value=this.g=0}function p(){this.G=o(5,d),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Xn,f)}function m(e,n,r,i){t(e!=null),t(n!=null),t(2147483648>i),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=r,e.Jd=n,e.Yc=r+i,e.Zc=4<=i?r+i-4+1:r,E(e)}function h(e,t){for(var n=0;0<t--;)n|=O(e,128)<<t;return n}function g(e,t){var n=h(e,t);return D(e)?-n:n}function _(e,n,r,i){var a,o=0;for(t(e!=null),t(n!=null),t(4294967288>i),e.Sb=i,e.Ra=0,e.u=0,e.h=0,4<i&&(i=4),a=0;a<i;++a)o+=n[r+a]<<8*a;e.Ra=o,e.bb=i,e.oa=n,e.pa=r}function v(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<$n-8>>>0,++e.bb,e.u-=8;C(e)&&(e.h=1,e.u=0)}function y(e,n){if(t(0<=n),!e.h&&n<=Qn){var r=S(e)&Zn[n];return e.u+=n,v(e),r}return e.h=1,e.u=0}function b(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function S(e){return e.Ra>>>(e.u&$n-1)>>>0}function C(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>$n}function w(e,t){e.u=t,e.h=C(e)}function T(e){e.u>=er&&(t(e.u>=er),v(e))}function E(e){t(e!=null&&e.oa!=null),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(e!=null&&e.oa!=null),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function D(e){return h(e,1)}function O(e,t){var n=e.Ca;0>e.b&&E(e);var r=e.b,i=n*t>>>8,a=(e.I>>>r>i)+0;for(a?(n-=i,e.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+tr[r],e.b-=r,e.Ca=(n<<r)-1,a}function k(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function A(e,t){return e[t+0]|e[t+1]<<8}function j(e,t){return A(e,t)|e[t+2]<<16}function M(e,t){return A(e,t)|A(e,t+2)<<16}function N(e,n){var r=1<<n;return t(e!=null),t(0<n),e.X=a(r),e.X==null?0:(e.Mb=32-n,e.Xa=n,1)}function P(e,n){t(e!=null),t(n!=null),t(e.Xa==n.Xa),r(n.X,0,e.X,0,1<<n.Xa)}function ee(){this.X=[],this.Xa=this.Mb=0}function F(e,n,r,i){t(r!=null),t(i!=null);var a=r[0],o=i[0];return a==0&&(a=(e*o+n/2)/n),o==0&&(o=(n*a+e/2)/e),0>=a||0>=o?0:(r[0]=a,i[0]=o,1)}function I(e,t){return e+(1<<t)-1>>>t}function te(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function L(t,n){e[n]=function(n,r,i,a,o,s,c){var l;for(l=0;l<o;++l){var u=e[t](s[c+l-1],i,a+l);s[c+l]=te(n[r+l],u)}}}function ne(){this.ud=this.hd=this.jd=0}function R(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function re(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function z(e,t){return re(e+(e-t+.5>>1))}function ie(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function ae(e,t,n,r,i,a,o){for(r=a[o-1],n=0;n<i;++n)a[o+n]=r=te(e[t+n],r)}function oe(e,t,n,r,i){var a;for(a=0;a<n;++a){var o=e[t+a],s=o>>8&255,c=16711935&(c=(c=16711935&o)+((s<<16)+s));r[i+a]=(4278255360&o)+c>>>0}}function se(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function ce(e,t,n,r,i,a){var o;for(o=0;o<r;++o){var s=t[n+o],c=s>>>8,l=s,u=255&(u=(u=s>>>16)+((e.jd<<24>>24)*(c<<24>>24)>>>5));l=255&(l=(l+=(e.hd<<24>>24)*(c<<24>>24)>>>5)+((e.ud<<24>>24)*(u<<24>>24)>>>5)),i[a+o]=(4278255360&s)+(u<<16)+l}}function le(t,n,r,i,a){e[n]=function(e,t,n,r,o,s,c,l,u){for(r=c;r<l;++r)for(c=0;c<u;++c)o[s++]=a(n[i(e[t++])])},e[t]=function(t,n,o,s,c,l,u){var d=8>>t.b,f=t.Ea,p=t.K[0],m=t.w;if(8>d)for(t=(1<<t.b)-1,m=(1<<d)-1;n<o;++n){var h,g=0;for(h=0;h<f;++h)h&t||(g=i(s[c++])),l[u++]=a(p[g&m]),g>>=d}else e[`VP8LMapColor`+r](s,c,p,m,l,u,n,o,f)}}function ue(e,t,n,r,i){for(n=t+n;t<n;){var a=e[t++];r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=255&a}}function B(e,t,n,r,i){for(n=t+n;t<n;){var a=e[t++];r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=255&a,r[i++]=a>>24&255}}function de(e,t,n,r,i){for(n=t+n;t<n;){var a=(o=e[t++])>>16&240|o>>12&15,o=240&o|o>>28&15;r[i++]=a,r[i++]=o}}function fe(e,t,n,r,i){for(n=t+n;t<n;){var a=(o=e[t++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;r[i++]=a,r[i++]=o}}function pe(e,t,n,r,i){for(n=t+n;t<n;){var a=e[t++];r[i++]=255&a,r[i++]=a>>8&255,r[i++]=a>>16&255}}function me(e,t,n,i,a,o){if(o==0)for(n=t+n;t<n;)k(i,((o=e[t++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),a+=32;else r(i,a,e,t,n)}function he(t,n){e[n][0]=e[t+`0`],e[n][1]=e[t+`1`],e[n][2]=e[t+`2`],e[n][3]=e[t+`3`],e[n][4]=e[t+`4`],e[n][5]=e[t+`5`],e[n][6]=e[t+`6`],e[n][7]=e[t+`7`],e[n][8]=e[t+`8`],e[n][9]=e[t+`9`],e[n][10]=e[t+`10`],e[n][11]=e[t+`11`],e[n][12]=e[t+`12`],e[n][13]=e[t+`13`],e[n][14]=e[t+`0`],e[n][15]=e[t+`0`]}function ge(e){return e==ei||e==ti||e==ni||e==ri}function _e(){this.eb=[],this.size=this.A=this.fb=0}function ve(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ye(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new _e,this.f.kb=new ve,this.sd=null}function be(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function xe(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Se(e){return alert(`todo:WebPSamplerProcessPlane`),e.T}function Ce(e,t){var n=e.T,i=t.ba.f.RGBA,a=i.eb,o=i.fb+e.ka*i.A,s=Oi[t.ba.S],c=e.y,l=e.O,u=e.f,d=e.N,f=e.ea,p=e.W,m=t.cc,h=t.dc,g=t.Mc,_=t.Nc,v=e.ka,y=e.ka+e.T,b=e.U,x=b+1>>1;for(v==0?s(c,l,null,null,u,d,f,p,u,d,f,p,a,o,null,null,b):(s(t.ec,t.fc,c,l,m,h,g,_,u,d,f,p,a,o-i.A,a,o,b),++n);v+2<y;v+=2)m=u,h=d,g=f,_=p,d+=e.Rc,p+=e.Rc,o+=2*i.A,s(c,(l+=2*e.fa)-e.fa,c,l,m,h,g,_,u,d,f,p,a,o-i.A,a,o,b);return l+=e.fa,e.j+y<e.o?(r(t.ec,t.fc,c,l,b),r(t.cc,t.dc,u,d,x),r(t.Mc,t.Nc,f,p,x),n--):1&y||s(c,l,null,null,u,d,f,p,u,d,f,p,a,o+i.A,null,null,b),n}function we(e,n,r){var i=e.F,a=[e.J];if(i!=null){var o=e.U,s=n.ba.S,c=s==Zr||s==ni;n=n.ba.f.RGBA;var l=[0],u=e.ka;l[0]=e.T,e.Kb&&(u==0?--l[0]:(--u,a[0]-=e.width),e.j+e.ka+e.T==e.o&&(l[0]=e.o-e.j-u));var d=n.eb;u=n.fb+u*n.A,e=Ir(i,a[0],e.width,o,l,d,u+(c?0:3),n.A),t(r==l),e&&ge(s)&&Pr(d,u,c,o,l,n.A)}return 0}function Te(e){var t=e.ma,n=t.ba.S,r=11>n,i=n==Jr||n==Xr||n==Zr||n==Qr||n==12||ge(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!qn(t.Oa,e,i?11:12))return 0;if(i&&ge(n)&&An(),e.da)alert(`todo:use_scaling`);else{if(r){if(t.Ib=Se,e.Kb){if(n=e.U+1>>1,t.memory=a(e.U+2*n),t.memory==null)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=Ce,An()}}else alert(`todo:EmitYUV`);i&&(t.Jb=we,r&&On())}if(r&&!Vi){for(e=0;256>e;++e)Hi[e]=89858*(e-128)+Li>>Ii,Gi[e]=-22014*(e-128)+Li,Wi[e]=-45773*(e-128),Ui[e]=113618*(e-128)+Li>>Ii;for(e=H;e<Ri;++e)t=76283*(e-16)+Li>>Ii,Ki[e-H]=it(t,255),qi[e-H]=it(t+8>>4,15);Vi=1}return 1}function Ee(e){var n=e.ma,r=e.U,i=e.T;return t(!(1&e.ka)),0>=r||0>=i?0:(r=n.Ib(e,n),n.Jb!=null&&n.Jb(e,n,r),n.Dc+=r,1)}function De(e){e.ma.memory=null}function Oe(e,t,n,r){return y(e,8)==47?(t[0]=y(e,14)+1,n[0]=y(e,14)+1,r[0]=y(e,1),y(e,3)==0?!e.h:0):0}function ke(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+y(t,n)+1}function Ae(e,t){return 120<t?t-120:1<=(n=((n=li[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function je(e,t,n){var r=S(n),i=e[t+=255&r].g-8;return 0<i&&(w(n,n.u+8),r=S(n),t+=e[t].value,t+=r&(1<<i)-1),w(n,n.u+e[t].g),e[t].value}function Me(e,n,r){return r.g+=e.g,r.value+=e.value<<n>>>0,t(8>=r.g),e.g}function Ne(e,n,r){var i=e.xc;return t((n=i==0?0:e.vc[e.md*(r>>i)+(n>>i)])<e.Wb),e.Ya[n]}function Pe(e,n,i,a){var o=e.ab,s=e.c*n,c=e.C;n=c+n;var l=i,u=a;for(a=e.Ta,i=e.Ua;0<o--;){var d=e.gc[o],f=c,p=n,m=l,h=u,g=(u=a,l=i,d.Ea);switch(t(f<p),t(p<=d.nc),d.hc){case 2:ir(m,h,(p-f)*g,u,l);break;case 0:var _=f,v=p,y=u,b=l,x=(E=d).Ea;_==0&&(nr(m,h,null,null,1,y,b),ae(m,h+1,0,0,x-1,y,b+1),h+=x,b+=x,++_);for(var S=1<<E.b,C=S-1,w=I(x,E.b),T=E.K,E=E.w+(_>>E.b)*w;_<v;){var D=T,O=E,k=1;for(rr(m,h,y,b-x,1,y,b);k<x;){var A=(k&~C)+S;A>x&&(A=x),(0,lr[D[O++]>>8&15])(m,h+ +k,y,b+k-x,A-k,y,b+k),k=A}h+=x,b+=x,++_&C||(E+=w)}p!=d.nc&&r(u,l-g,u,l+(p-f-1)*g,g);break;case 1:for(g=m,v=h,x=(m=d.Ea)-(b=m&~(y=(h=1<<d.b)-1)),_=I(m,d.b),S=d.K,d=d.w+(f>>d.b)*_;f<p;){for(C=S,w=d,T=new ne,E=v+b,D=v+m;v<E;)se(C[w++],T),ur(T,g,v,h,u,l),v+=h,l+=h;v<D&&(se(C[w++],T),ur(T,g,v,x,u,l),v+=x,l+=x),++f&y||(d+=_)}break;case 3:if(m==u&&h==l&&0<d.b){for(v=u,m=g=l+(p-f)*g-(b=(p-f)*I(d.Ea,d.b)),h=u,y=l,_=[],b=(x=b)-1;0<=b;--b)_[b]=h[y+b];for(b=x-1;0<=b;--b)v[m+b]=_[b];ar(d,f,p,u,g,u,l)}else ar(d,f,p,m,h,u,l)}l=a,u=i}u!=i&&r(a,i,l,u,s)}function Fe(e,n){var r=e.V,i=e.Ba+e.c*e.C,a=n-e.C;if(t(n<=e.l.o),t(16>=a),0<a){var o=e.l,s=e.Ta,c=e.Ua,l=o.width;if(Pe(e,a,r,i),a=c=[c],t((r=e.C)<(i=n)),t(o.v<o.va),i>o.o&&(i=o.o),r<o.j){var u=o.j-r;r=o.j,a[0]+=u*l}if(r>=i?r=0:(a[0]+=4*o.v,o.ka=r-o.j,o.U=o.va-o.v,o.T=i-r,r=1),r){if(c=c[0],11>(r=e.ca).S){var d=r.f.RGBA,f=(i=r.S,a=o.U,o=o.T,u=d.eb,d.A),p=o;for(d=d.fb+e.Ma*d.A;0<p--;){var m=s,h=c,g=a,_=u,v=d;switch(i){case qr:dr(m,h,g,_,v);break;case Jr:fr(m,h,g,_,v);break;case ei:fr(m,h,g,_,v),Pr(_,v,0,g,1,0);break;case Yr:hr(m,h,g,_,v);break;case Xr:me(m,h,g,_,v,1);break;case ti:me(m,h,g,_,v,1),Pr(_,v,0,g,1,0);break;case Zr:me(m,h,g,_,v,0);break;case ni:me(m,h,g,_,v,0),Pr(_,v,1,g,1,0);break;case Qr:pr(m,h,g,_,v);break;case ri:pr(m,h,g,_,v),Fr(_,v,g,1,0);break;case $r:mr(m,h,g,_,v);break;default:t(0)}c+=l,d+=f}e.Ma+=o}else alert(`todo:EmitRescaledRowsYUVA`);t(e.Ma<=r.height)}}e.C=n,t(e.C<=e.i)}function Ie(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,r=e.Ya[t].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function Le(e,n,r,i,a,o){if(e.Z!=0){var s=e.qd,c=e.rd;for(t(Di[e.Z]!=null);n<r;++n)Di[e.Z](s,c,i,a,i,a,o),s=i,c=a,a+=o;e.qd=s,e.rd=c}}function Re(e,n){var r=e.l.ma,i=r.Z==0||r.Z==1?e.l.j:e.C;if(i=e.C<i?i:e.C,t(n<=e.l.o),n>i){var a=e.l.width,o=r.ca,s=r.tb+a*i,c=e.V,l=e.Ba+e.c*i,u=e.gc;t(e.ab==1),t(u[0].hc==3),sr(u[0],i,n,c,l,o,s),Le(r,i,n,o,s,a)}e.C=e.Ma=n}function ze(e,n,r,i,a,o,s){var c=e.$/i,l=e.$%i,u=e.m,d=e.s,f=r+e.$,p=f;a=r+i*a;var m=r+i*o,h=280+d.ua,g=e.Pb?c:16777216,_=0<d.ua?d.Wa:null,v=d.wc,y=f<m?Ne(d,l,c):null;t(e.C<o),t(m<=a);var b=!1;t:for(;;){for(;b||f<m;){var x=0;if(c>=g){var E=f-r;t((g=e).Pb),g.wd=g.m,g.xd=E,0<g.s.ua&&P(g.s.Wa,g.s.vb),g=c+di}if(l&v||(y=Ne(d,l,c)),t(y!=null),y.Qb&&(n[f]=y.qb,b=!0),!b){if(T(u),y.jc){x=u,E=n;var D=f,O=y.pd[S(x)&Xn-1];t(y.jc),256>O.g?(w(x,x.u+O.g),E[D]=O.value,x=0):(w(x,x.u+O.g-256),t(256<=O.value),x=O.value),x==0&&(b=!0)}else x=je(y.G[0],y.H[0],u)}if(u.h)break;if(b||256>x){if(!b){if(y.nd)n[f]=(y.qb|x<<8)>>>0;else{if(T(u),b=je(y.G[1],y.H[1],u),T(u),E=je(y.G[2],y.H[2],u),D=je(y.G[3],y.H[3],u),u.h)break;n[f]=(D<<24|b<<16|x<<8|E)>>>0}}if(b=!1,++f,++l>=i&&(l=0,++c,s!=null&&c<=o&&!(c%16)&&s(e,c),_!=null))for(;p<f;)x=n[p++],_.X[(506832829*x&4294967295)>>>_.Mb]=x}else if(280>x){if(x=ke(x-256,u),E=je(y.G[4],y.H[4],u),T(u),E=Ae(i,E=ke(E,u)),u.h)break;if(f-r<E||a-f<x)break t;for(D=0;D<x;++D)n[f+D]=n[f+D-E];for(f+=x,l+=x;l>=i;)l-=i,++c,s!=null&&c<=o&&!(c%16)&&s(e,c);if(t(f<=a),l&v&&(y=Ne(d,l,c)),_!=null)for(;p<f;)x=n[p++],_.X[(506832829*x&4294967295)>>>_.Mb]=x}else{if(!(x<h))break t;for(b=x-280,t(_!=null);p<f;)x=n[p++],_.X[(506832829*x&4294967295)>>>_.Mb]=x;x=f,t(!(b>>>(E=_).Xa)),n[x]=E.X[b],b=!0}b||t(u.h==C(u))}if(e.Pb&&u.h&&f<a)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&P(e.s.vb,e.s.Wa);else{if(u.h)break t;s!=null&&s(e,c>o?o:c),e.a=0,e.$=f-r}return 1}return e.a=3,0}function Be(e){t(e!=null),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;n!=null&&(n.X=null),e.vb=null,t(e!=null)}function Ve(){var t=new vn;return t==null?null:(t.a=0,t.xb=Ei,he(`Predictor`,`VP8LPredictors`),he(`Predictor`,`VP8LPredictors_C`),he(`PredictorAdd`,`VP8LPredictorsAdd`),he(`PredictorAdd`,`VP8LPredictorsAdd_C`),ir=oe,ur=ce,dr=ue,fr=B,pr=de,mr=fe,hr=pe,e.VP8LMapColor32b=or,e.VP8LMapColor8b=cr,t)}function He(e,n,r,s,c){var l=1,f=[e],m=[n],h=s.m,g=s.s,_=null,v=0;t:for(;;){if(r)for(;l&&y(h,1);){var b=f,x=m,C=s,E=1,D=C.m,O=C.gc[C.ab],k=y(D,2);if(C.Oc&1<<k)l=0;else{switch(C.Oc|=1<<k,O.hc=k,O.Ea=b[0],O.nc=x[0],O.K=[null],++C.ab,t(4>=C.ab),k){case 0:case 1:O.b=y(D,3)+2,E=He(I(O.Ea,O.b),I(O.nc,O.b),0,C,O.K),O.K=O.K[0];break;case 3:var A,j=y(D,8)+1,M=16<j?0:4<j?1:2<j?2:3;if(b[0]=I(O.Ea,M),O.b=M,A=E=He(j,1,0,C,O.K)){var P,ee=j,F=O,L=1<<(8>>F.b),ne=a(L);if(ne==null)A=0;else{var R=F.K[0],re=F.w;for(ne[0]=F.K[0][0],P=1;P<1*ee;++P)ne[P]=te(R[re+P],ne[P-1]);for(;P<4*L;++P)ne[P]=0;F.K[0]=null,F.K[0]=ne,A=1}}E=A;break;case 2:break;default:t(0)}l=E}}if(f=f[0],m=m[0],l&&y(h,1)&&!(l=1<=(v=y(h,4))&&11>=v)){s.a=3;break t}var z;if(z=l)e:{var ie,ae,oe,se=s,ce=f,le=m,ue=v,B=r,de=se.m,fe=se.s,pe=[null],me=1,he=0,ge=ui[ue];r:for(;;){if(B&&y(de,1)){var _e=y(de,3)+2,ve=I(ce,_e),ye=I(le,_e),be=ve*ye;if(!He(ve,ye,0,se,pe))break r;for(pe=pe[0],fe.xc=_e,ie=0;ie<be;++ie){var xe=pe[ie]>>8&65535;pe[ie]=xe,xe>=me&&(me=xe+1)}}if(de.h)break r;for(ae=0;5>ae;++ae){var Se=oi[ae];!ae&&0<ue&&(Se+=1<<ue),he<Se&&(he=Se)}var Ce=o(me*ge,d),we=me,Te=o(we,p);if(Te==null)var Ee=null;else t(65536>=we),Ee=Te;var De=a(he);if(Ee==null||De==null||Ce==null){se.a=1;break r}var Oe=Ce;for(ie=oe=0;ie<me;++ie){var ke=Ee[ie],Ae=ke.G,je=ke.H,Ne=0,Pe=1,Fe=0;for(ae=0;5>ae;++ae){Se=oi[ae],Ae[ae]=Oe,je[ae]=oe,!ae&&0<ue&&(Se+=1<<ue);n:{var Ie,Le=Se,Re=se,Ve=De,Ue=Oe,We=oe,Ge=0,Ke=Re.m,qe=y(Ke,1);if(i(Ve,0,0,Le),qe){var Je=y(Ke,1)+1,Ye=y(Ke,y(Ke,1)==0?1:8);Ve[Ye]=1,Je==2&&(Ve[Ye=y(Ke,8)]=1);var Xe=1}else{var Ze=a(19),Qe=y(Ke,4)+4;if(19<Qe){Re.a=3;var $e=0;break n}for(Ie=0;Ie<Qe;++Ie)Ze[ci[Ie]]=y(Ke,3);var et=void 0,tt=void 0,nt=Re,rt=Ze,it=Le,at=Ve,ot=0,st=nt.m,ct=8,lt=o(128,d);i:for(;u(lt,0,7,rt,19);){if(y(st,1)){if((et=2+y(st,2+2*y(st,3)))>it)break i}else et=it;for(tt=0;tt<it&&et--;){T(st);var ut=lt[0+(127&S(st))];w(st,st.u+ut.g);var dt=ut.value;if(16>dt)at[tt++]=dt,dt!=0&&(ct=dt);else{var ft=dt==16,pt=dt-16,mt=ai[pt],ht=y(st,ii[pt])+mt;if(tt+ht>it)break i;for(var gt=ft?ct:0;0<ht--;)at[tt++]=gt}}ot=1;break i}ot||(nt.a=3),Xe=ot}(Xe=Xe&&!Ke.h)&&(Ge=u(Ue,We,8,Ve,Le)),Xe&&Ge!=0?$e=Ge:(Re.a=3,$e=0)}if($e==0)break r;if(Pe&&si[ae]==1&&(Pe=Oe[oe].g==0),Ne+=Oe[oe].g,oe+=$e,3>=ae){var _t,vt=De[0];for(_t=1;_t<Se;++_t)De[_t]>vt&&(vt=De[_t]);Fe+=vt}}if(ke.nd=Pe,ke.Qb=0,Pe&&(ke.qb=(Ae[3][je[3]+0].value<<24|Ae[1][je[1]+0].value<<16|Ae[2][je[2]+0].value)>>>0,Ne==0&&256>Ae[0][je[0]+0].value&&(ke.Qb=1,ke.qb+=Ae[0][je[0]+0].value<<8)),ke.jc=!ke.Qb&&6>Fe,ke.jc){var yt,bt=ke;for(yt=0;yt<Xn;++yt){var xt=yt,St=bt.pd[xt],Ct=bt.G[0][bt.H[0]+xt];256<=Ct.value?(St.g=Ct.g+256,St.value=Ct.value):(St.g=0,St.value=0,xt>>=Me(Ct,8,St),xt>>=Me(bt.G[1][bt.H[1]+xt],16,St),xt>>=Me(bt.G[2][bt.H[2]+xt],0,St),Me(bt.G[3][bt.H[3]+xt],24,St))}}}fe.vc=pe,fe.Wb=me,fe.Ya=Ee,fe.yc=Ce,z=1;break e}z=0}if(!(l=z)){s.a=3;break t}if(0<v){if(g.ua=1<<v,!N(g.Wa,v)){s.a=1,l=0;break t}}else g.ua=0;var wt=s,Tt=f,Et=m,Dt=wt.s,Ot=Dt.xc;if(wt.c=Tt,wt.i=Et,Dt.md=I(Tt,Ot),Dt.wc=Ot==0?-1:(1<<Ot)-1,r){s.xb=Ti;break t}if((_=a(f*m))==null){s.a=1,l=0;break t}l=(l=ze(s,_,0,f,m,m,null))&&!h.h;break t}return l?(c==null?(t(_==null),t(r)):c[0]=_,s.$=0,r||Be(g)):Be(g),l}function Ue(e,n){var r=e.c*e.i,i=r+n+16*n;return t(e.c<=n),e.V=a(i),e.V==null?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+r+n,1)}function We(e,n){var r=e.C,i=n-r,a=e.V,o=e.Ba+e.c*r;for(t(n<=e.l.o);0<i;){var s=16<i?16:i,c=e.l.ma,l=e.l.width,u=l*s,d=c.ca,f=c.tb+l*r,p=e.Ta,m=e.Ua;Pe(e,s,a,o),Lr(p,m,d,f,u),Le(c,r,r+s,d,f,l),i-=s,a+=s*e.c,r+=s}t(r==n),e.C=e.Ma=n}function Ge(){this.ub=this.yd=this.td=this.Rb=0}function Ke(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function qe(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Je(){this.Yb=function(){var e=[];return function e(t,n,r){for(var i=r[n],a=0;a<i&&(t.push(r.length>n+1?[]:0),!(r.length<n+1));a++)e(t[a],n+1,r)}(e,0,[3,11]),e}()}function Ye(){this.jb=a(3),this.Wc=s([4,8],Je),this.Xc=s([4,17],Je)}function Xe(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Ze(){this.ld=this.La=this.dd=this.tc=0}function Qe(){this.Na=this.la=0}function $e(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function et(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function tt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ze),this.Y=0,this.ya=Array(new et),this.aa=0,this.l=new at}function nt(){this.y=a(16),this.f=a(8),this.ea=a(8)}function rt(){this.cb=this.a=0,this.sc=``,this.m=new b,this.Od=new Ge,this.Kc=new Ke,this.ed=new Xe,this.Qa=new qe,this.Ic=this.$c=this.Aa=0,this.D=new tt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,b),this.ia=0,this.pb=o(4,$e),this.Pa=new Ye,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new nt),this.Hd=0,this.rb=Array(new Qe),this.sb=0,this.wa=Array(new Ze),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new et),this.L=this.aa=0,this.gd=s([4,2],Ze),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function it(e,t){return 0>e?0:e>t?t:e}function at(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma=`void`,this.put=`VP8IoPutHook`,this.ac=`VP8IoSetupHook`,this.bc=`VP8IoTeardownHook`,this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ot(){var e=new rt;return e!=null&&(e.a=0,e.sc=`OK`,e.cb=0,e.Xb=0,mi||(mi=ut)),e}function st(e,t,n){return e.a==0&&(e.a=t,e.sc=n,e.cb=0),0}function ct(e,t,n){return 3<=n&&e[t+0]==157&&e[t+1]==1&&e[t+2]==42}function lt(e,n){if(e==null)return 0;if(e.a=0,e.sc=`OK`,n==null)return st(e,2,`null VP8Io passed to VP8GetHeaders()`);var r=n.data,a=n.w,o=n.ha;if(4>o)return st(e,7,`Truncated header.`);var s=r[a+0]|r[a+1]<<8|r[a+2]<<16,c=e.Od;if(c.Rb=!(1&s),c.td=s>>1&7,c.yd=s>>4&1,c.ub=s>>5,3<c.td)return st(e,3,`Incorrect keyframe parameters.`);if(!c.yd)return st(e,4,`Frame not displayable.`);a+=3,o-=3;var l=e.Kc;if(c.Rb){if(7>o)return st(e,7,`cannot parse picture header`);if(!ct(r,a,o))return st(e,3,`Bad code word`);l.c=16383&(r[a+4]<<8|r[a+3]),l.Td=r[a+4]>>6,l.i=16383&(r[a+6]<<8|r[a+5]),l.Ud=r[a+6]>>6,a+=7,o-=7,e.za=l.c+15>>4,e.Ub=l.i+15>>4,n.width=l.c,n.height=l.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((s=e.Pa).jb,0,255,s.jb.length),t((s=e.Qa)!=null),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(c.ub>o)return st(e,7,`bad partition length`);m(s=e.m,r,a,c.ub),a+=c.ub,o-=c.ub,c.Rb&&(l.Ld=D(s),l.Kd=D(s)),l=e.Qa;var u,d=e.Pa;if(t(s!=null),t(l!=null),l.Cb=D(s),l.Cb){if(l.Bb=D(s),D(s)){for(l.Fb=D(s),u=0;4>u;++u)l.Zb[u]=D(s)?g(s,7):0;for(u=0;4>u;++u)l.Lb[u]=D(s)?g(s,6):0}if(l.Bb)for(u=0;3>u;++u)d.jb[u]=D(s)?h(s,8):255}else l.Bb=0;if(s.Ka)return st(e,3,`cannot parse segment header`);if((l=e.ed).zd=D(s),l.Tb=h(s,6),l.wb=h(s,3),l.Pc=D(s),l.Pc&&D(s)){for(d=0;4>d;++d)D(s)&&(l.vd[d]=g(s,6));for(d=0;4>d;++d)D(s)&&(l.od[d]=g(s,6))}if(e.L=l.Tb==0?0:l.zd?1:2,s.Ka)return st(e,3,`cannot parse filter header`);var f=o;if(o=u=a,a=u+f,l=f,e.Xb=(1<<h(e.m,2))-1,f<3*(d=e.Xb))r=7;else{for(u+=3*d,l-=3*d,f=0;f<d;++f){var p=r[o+0]|r[o+1]<<8|r[o+2]<<16;p>l&&(p=l),m(e.Jc[+f],r,u,p),u+=p,l-=p,o+=3}m(e.Jc[+d],r,u,l),r=u<a?0:5}if(r!=0)return st(e,r,`cannot parse partitions`);for(r=h(u=e.m,7),o=D(u)?g(u,4):0,a=D(u)?g(u,4):0,l=D(u)?g(u,4):0,d=D(u)?g(u,4):0,u=D(u)?g(u,4):0,f=e.Qa,p=0;4>p;++p){if(f.Cb){var _=f.Zb[p];f.Fb||(_+=r)}else{if(0<p){e.pb[p]=e.pb[0];continue}_=r}var v=e.pb[p];v.Sc[0]=fi[it(_+o,127)],v.Sc[1]=pi[it(_+0,127)],v.Eb[0]=2*fi[it(_+a,127)],v.Eb[1]=101581*pi[it(_+l,127)]>>16,8>v.Eb[1]&&(v.Eb[1]=8),v.Qc[0]=fi[it(_+d,117)],v.Qc[1]=pi[it(_+u,127)],v.lc=_+u}if(!c.Rb)return st(e,4,`Not a key frame.`);for(D(s),c=e.Pa,r=0;4>r;++r){for(o=0;8>o;++o)for(a=0;3>a;++a)for(l=0;11>l;++l)d=O(s,bi[r][o][a][l])?h(s,8):vi[r][o][a][l],c.Wc[r][o].Yb[a][l]=d;for(o=0;17>o;++o)c.Xc[r][o]=c.Wc[r][xi[o]]}return e.kc=D(s),e.kc&&(e.Bd=h(s,8)),e.cb=1}function ut(e,t,n,r,i,a,o){var s=t[i].Yb[n];for(n=0;16>i;++i){if(!O(e,s[n+0]))return i;for(;!O(e,s[n+1]);)if(s=t[++i].Yb[0],n=0,i==16)return 16;var c=t[i+1].Yb;if(O(e,s[n+2])){var l=e,u=0;if(O(l,(f=s)[(d=n)+3])){if(O(l,f[d+6])){for(s=0,d=2*(u=O(l,f[d+8]))+(f=O(l,f[d+9+u])),u=0,f=hi[d];f[s];++s)u+=u+O(l,f[s]);u+=3+(8<<d)}else O(l,f[d+7])?(u=7+2*O(l,165),u+=O(l,145)):u=5+O(l,159)}else u=O(l,f[d+4])?3+O(l,f[d+5]):2;s=c[2]}else u=1,s=c[1];c=o+gi[i],0>(l=e).b&&E(l);var d,f=l.b,p=(d=l.Ca>>1)-(l.I>>f)>>31;--l.b,l.Ca+=p,l.Ca|=1,l.I-=(d+1&p)<<f,a[c]=((u^p)-p)*r[(0<i)+0]}return 16}function dt(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,i(e.zc,0,0,e.zc.length),e.ja=0}function ft(e,t,n,r,i){i=e[t+n+32*r]+(i>>3),e[t+n+32*r]=-256&i?0>i?0:255:i}function pt(e,t,n,r,i,a){ft(e,t,0,n,r+i),ft(e,t,1,n,r+a),ft(e,t,2,n,r-a),ft(e,t,3,n,r-i)}function mt(e){return(20091*e>>16)+e}function ht(e,t,n,r){var i,o=0,s=a(16);for(i=0;4>i;++i){var c=e[t+0]+e[t+8],l=e[t+0]-e[t+8],u=(35468*e[t+4]>>16)-mt(e[t+12]),d=mt(e[t+4])+(35468*e[t+12]>>16);s[o+0]=c+d,s[o+1]=l+u,s[o+2]=l-u,s[o+3]=c-d,o+=4,t++}for(i=o=0;4>i;++i)c=(e=s[o+0]+4)+s[o+8],l=e-s[o+8],u=(35468*s[o+4]>>16)-mt(s[o+12]),ft(n,r,0,0,c+(d=mt(s[o+4])+(35468*s[o+12]>>16))),ft(n,r,1,0,l+u),ft(n,r,2,0,l-u),ft(n,r,3,0,c-d),o++,r+=32}function gt(e,t,n,r){var i=e[t+0]+4,a=35468*e[t+4]>>16,o=mt(e[t+4]),s=35468*e[t+1]>>16;pt(n,r,0,i+o,e=mt(e[t+1]),s),pt(n,r,1,i+a,e,s),pt(n,r,2,i-a,e,s),pt(n,r,3,i-o,e,s)}function _t(e,t,n,r,i){ht(e,t,n,r),i&&ht(e,t+16,n,r+4)}function vt(e,t,n,r){_r(e,t+0,n,r,1),_r(e,t+32,n,r+128,1)}function yt(e,t,n,r){var i;for(e=e[t+0]+4,i=0;4>i;++i)for(t=0;4>t;++t)ft(n,r,t,i,e)}function bt(e,t,n,r){e[t+0]&&br(e,t+0,n,r),e[t+16]&&br(e,t+16,n,r+4),e[t+32]&&br(e,t+32,n,r+128),e[t+48]&&br(e,t+48,n,r+128+4)}function xt(e,t,n,r){var i,o=a(16);for(i=0;4>i;++i){var s=e[t+0+i]+e[t+12+i],c=e[t+4+i]+e[t+8+i],l=e[t+4+i]-e[t+8+i],u=e[t+0+i]-e[t+12+i];o[0+i]=s+c,o[8+i]=s-c,o[4+i]=u+l,o[12+i]=u-l}for(i=0;4>i;++i)s=(e=o[0+4*i]+3)+o[3+4*i],c=o[1+4*i]+o[2+4*i],l=o[1+4*i]-o[2+4*i],u=e-o[3+4*i],n[r+0]=s+c>>3,n[r+16]=u+l>>3,n[r+32]=s-c>>3,n[r+48]=u-l>>3,r+=64}function St(e,t,n){var r,i=t-32,a=Gr,o=255-e[i-1];for(r=0;r<n;++r){var s,c=a,l=o+e[t-1];for(s=0;s<n;++s)e[t+s]=c[l+e[i+s]];t+=32}}function Ct(e,t){St(e,t,4)}function wt(e,t){St(e,t,8)}function Tt(e,t){St(e,t,16)}function Et(e,t){var n;for(n=0;16>n;++n)r(e,t+32*n,e,t-32,16)}function Dt(e,t){var n;for(n=16;0<n;--n)i(e,t,e[t-1],16),t+=32}function Ot(e,t,n){var r;for(r=0;16>r;++r)i(t,n+32*r,e,16)}function kt(e,t){var n,r=16;for(n=0;16>n;++n)r+=e[t-1+32*n]+e[t+n-32];Ot(r>>5,e,t)}function At(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t-1+32*n];Ot(r>>4,e,t)}function jt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t+n-32];Ot(r>>4,e,t)}function Mt(e,t){Ot(128,e,t)}function Nt(e,t,n){return e+2*t+n+2>>2}function Pt(e,t){var n,i=t-32;for(i=new Uint8Array([Nt(e[i-1],e[i+0],e[i+1]),Nt(e[i+0],e[i+1],e[i+2]),Nt(e[i+1],e[i+2],e[i+3]),Nt(e[i+2],e[i+3],e[i+4])]),n=0;4>n;++n)r(e,t+32*n,i,0,i.length)}function Ft(e,t){var n=e[t-1],r=e[t-1+32],i=e[t-1+64],a=e[t-1+96];k(e,t+0,16843009*Nt(e[t-1-32],n,r)),k(e,t+32,16843009*Nt(n,r,i)),k(e,t+64,16843009*Nt(r,i,a)),k(e,t+96,16843009*Nt(i,a,a))}function It(e,t){var n,r=4;
vendor: 3,461 bytes, line 127
127for(n=0;4>n;++n)r+=e[t+n-32]+e[t-1+32*n];for(r>>=3,n=0;4>n;++n)i(e,t+32*n,r,4)}function Lt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1-32],o=e[t+0-32],s=e[t+1-32],c=e[t+2-32],l=e[t+3-32];e[t+0+96]=Nt(r,i,e[t-1+96]),e[t+1+96]=e[t+0+64]=Nt(n,r,i),e[t+2+96]=e[t+1+64]=e[t+0+32]=Nt(a,n,r),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=Nt(o,a,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=Nt(s,o,a),e[t+3+32]=e[t+2+0]=Nt(c,s,o),e[t+3+0]=Nt(l,c,s)}function Rt(e,t){var n=e[t+1-32],r=e[t+2-32],i=e[t+3-32],a=e[t+4-32],o=e[t+5-32],s=e[t+6-32],c=e[t+7-32];e[t+0+0]=Nt(e[t+0-32],n,r),e[t+1+0]=e[t+0+32]=Nt(n,r,i),e[t+2+0]=e[t+1+32]=e[t+0+64]=Nt(r,i,a),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=Nt(i,a,o),e[t+3+32]=e[t+2+64]=e[t+1+96]=Nt(a,o,s),e[t+3+64]=e[t+2+96]=Nt(o,s,c),e[t+3+96]=Nt(s,c,c)}function zt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1-32],o=e[t+0-32],s=e[t+1-32],c=e[t+2-32],l=e[t+3-32];e[t+0+0]=e[t+1+64]=a+o+1>>1,e[t+1+0]=e[t+2+64]=o+s+1>>1,e[t+2+0]=e[t+3+64]=s+c+1>>1,e[t+3+0]=c+l+1>>1,e[t+0+96]=Nt(i,r,n),e[t+0+64]=Nt(r,n,a),e[t+0+32]=e[t+1+96]=Nt(n,a,o),e[t+1+32]=e[t+2+96]=Nt(a,o,s),e[t+2+32]=e[t+3+96]=Nt(o,s,c),e[t+3+32]=Nt(s,c,l)}function Bt(e,t){var n=e[t+0-32],r=e[t+1-32],i=e[t+2-32],a=e[t+3-32],o=e[t+4-32],s=e[t+5-32],c=e[t+6-32],l=e[t+7-32];e[t+0+0]=n+r+1>>1,e[t+1+0]=e[t+0+64]=r+i+1>>1,e[t+2+0]=e[t+1+64]=i+a+1>>1,e[t+3+0]=e[t+2+64]=a+o+1>>1,e[t+0+32]=Nt(n,r,i),e[t+1+32]=e[t+0+96]=Nt(r,i,a),e[t+2+32]=e[t+1+96]=Nt(i,a,o),e[t+3+32]=e[t+2+96]=Nt(a,o,s),e[t+3+64]=Nt(o,s,c),e[t+3+96]=Nt(s,c,l)}function Vt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1+96];e[t+0+0]=n+r+1>>1,e[t+2+0]=e[t+0+32]=r+i+1>>1,e[t+2+32]=e[t+0+64]=i+a+1>>1,e[t+1+0]=Nt(n,r,i),e[t+3+0]=e[t+1+32]=Nt(r,i,a),e[t+3+32]=e[t+1+64]=Nt(i,a,a),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=a}function Ht(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1+96],o=e[t-1-32],s=e[t+0-32],c=e[t+1-32],l=e[t+2-32];e[t+0+0]=e[t+2+32]=n+o+1>>1,e[t+0+32]=e[t+2+64]=r+n+1>>1,e[t+0+64]=e[t+2+96]=i+r+1>>1,e[t+0+96]=a+i+1>>1,e[t+3+0]=Nt(s,c,l),e[t+2+0]=Nt(o,s,c),e[t+1+0]=e[t+3+32]=Nt(n,o,s),e[t+1+32]=e[t+3+64]=Nt(r,n,o),e[t+1+64]=e[t+3+96]=Nt(i,r,n),e[t+1+96]=Nt(a,i,r)}function Ut(e,t){var n;for(n=0;8>n;++n)r(e,t+32*n,e,t-32,8)}function V(e,t){var n;for(n=0;8>n;++n)i(e,t,e[t-1],8),t+=32}function Wt(e,t,n){var r;for(r=0;8>r;++r)i(t,n+32*r,e,8)}function Gt(e,t){var n,r=8;for(n=0;8>n;++n)r+=e[t+n-32]+e[t-1+32*n];Wt(r>>4,e,t)}function Kt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t+n-32];Wt(r>>3,e,t)}function qt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t-1+32*n];Wt(r>>3,e,t)}function Jt(e,t){Wt(128,e,t)}function Yt(e,t,n){var r=e[t-n],i=e[t+0],a=3*(i-r)+Ur[1020+e[t-2*n]-e[t+n]],o=Wr[112+(a+4>>3)];e[t-n]=Gr[255+r+Wr[112+(a+3>>3)]],e[t+0]=Gr[255+i-o]}function Xt(e,t,n,r){var i=e[t+0],a=e[t+n];return Kr[255+e[t-2*n]-e[t-n]]>r||Kr[255+a-i]>r}function Zt(e,t,n,r){return 4*Kr[255+e[t-n]-e[t+0]]+Kr[255+e[t-2*n]-e[t+n]]<=r}function Qt(e,t,n,r,i){var a=e[t-3*n],o=e[t-2*n],s=e[t-n],c=e[t+0],l=e[t+n],u=e[t+2*n],d=e[t+3*n];return 4*Kr[255+s-c]+Kr[255+o-l]>r?0:Kr[255+e[t-4*n]-a]<=i&&Kr[255+a-o]<=i&&Kr[255+o-s]<=i&&Kr[255+d-u]<=i&&Kr[255+u-l]<=i&&Kr[255+l-c]<=i}function $t(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)Zt(e,t+r,n,i)&&Yt(e,t+r,n)}function en(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)Zt(e,t+r*n,1,i)&&Yt(e,t+r*n,1)}function tn(e,t,n,r){var i;for(i=3;0<i;--i)$t(e,t+=4*n,n,r)}function nn(e,t,n,r){var i;for(i=3;0<i;--i)en(e,t+=4,n,r)}function rn(e,t,n,r,i,a,o,s){for(a=2*a+1;0<i--;
vendor: 13,114 bytes, line 127
127){if(Qt(e,t,n,a,o)){if(Xt(e,t,n,s))Yt(e,t,n);else{var c=e,l=t,u=n,d=c[l-2*u],f=c[l-u],p=c[l+0],m=c[l+u],h=c[l+2*u],g=27*(v=Ur[1020+3*(p-f)+Ur[1020+d-m]])+63>>7,_=18*v+63>>7,v=9*v+63>>7;c[l-3*u]=Gr[255+c[l-3*u]+v],c[l-2*u]=Gr[255+d+_],c[l-u]=Gr[255+f+g],c[l+0]=Gr[255+p-g],c[l+u]=Gr[255+m-_],c[l+2*u]=Gr[255+h-v]}}t+=r}}function an(e,t,n,r,i,a,o,s){for(a=2*a+1;0<i--;){if(Qt(e,t,n,a,o)){if(Xt(e,t,n,s))Yt(e,t,n);else{var c=e,l=t,u=n,d=c[l-u],f=c[l+0],p=c[l+u],m=Wr[112+(4+(h=3*(f-d))>>3)],h=Wr[112+(h+3>>3)],g=m+1>>1;c[l-2*u]=Gr[255+c[l-2*u]+g],c[l-u]=Gr[255+d+h],c[l+0]=Gr[255+f-m],c[l+u]=Gr[255+p-g]}}t+=r}}function on(e,t,n,r,i,a){rn(e,t,n,1,16,r,i,a)}function sn(e,t,n,r,i,a){rn(e,t,1,n,16,r,i,a)}function cn(e,t,n,r,i,a){var o;for(o=3;0<o;--o)an(e,t+=4*n,n,1,16,r,i,a)}function ln(e,t,n,r,i,a){var o;for(o=3;0<o;--o)an(e,t+=4,1,n,16,r,i,a)}function un(e,t,n,r,i,a,o,s){rn(e,t,i,1,8,a,o,s),rn(n,r,i,1,8,a,o,s)}function dn(e,t,n,r,i,a,o,s){rn(e,t,1,i,8,a,o,s),rn(n,r,1,i,8,a,o,s)}function fn(e,t,n,r,i,a,o,s){an(e,t+4*i,i,1,8,a,o,s),an(n,r+4*i,i,1,8,a,o,s)}function pn(e,t,n,r,i,a,o,s){an(e,t+4,1,i,8,a,o,s),an(n,r+4,1,i,8,a,o,s)}function mn(){this.ba=new ye,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new xe,this.memory=0,this.Ib=`OutputFunc`,this.Jb=`OutputAlphaFunc`,this.Nd=`OutputRowFunc`}function hn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function gn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function _n(){this.ua=0,this.Wa=new ee,this.vb=new ee,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new p,this.yc=new d}function vn(){this.xb=this.a=0,this.l=new at,this.ca=new ye,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new _n,this.ab=0,this.gc=o(4,gn),this.Oc=0}function yn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new at,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function bn(e,t,n,r,i,a,o){for(e=e==null?0:e[t+0],t=0;t<o;++t)i[a+t]=e+n[r+t]&255,e=i[a+t]}function xn(e,t,n,r,i,a,o){var s;if(e==null)bn(null,null,n,r,i,a,o);else for(s=0;s<o;++s)i[a+s]=e[t+s]+n[r+s]&255}function Sn(e,t,n,r,i,a,o){if(e==null)bn(null,null,n,r,i,a,o);else{var s,c=e[t+0],l=c,u=c;for(s=0;s<o;++s)l=u+(c=e[t+s])-l,u=n[r+s]+(-256&l?0>l?0:255:l)&255,l=c,i[a+s]=u}}function Cn(e,n,i,o){var s=n.width,c=n.o;if(t(e!=null&&n!=null),0>i||0>=o||i+o>c)return null;if(!e.Cc){if(e.ga==null){var l;if(e.ga=new yn,(l=e.ga==null)||(l=n.width*n.o,t(e.Gb.length==0),e.Gb=a(l),e.Uc=0,e.Gb==null?l=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,l=1),l=!l),!l){l=e.ga;var u=e.Fa,d=e.P,f=e.qc,p=e.mb,m=e.nb,h=d+1,g=f-1,v=l.l;if(t(u!=null&&p!=null&&n!=null),Di[0]=null,Di[1]=bn,Di[2]=xn,Di[3]=Sn,l.ca=p,l.tb=m,l.c=n.width,l.i=n.height,t(0<l.c&&0<l.i),1>=f)n=0;else if(l.$a=3&u[d+0],l.Z=u[d+0]>>2&3,l.Lc=u[d+0]>>4&3,d=u[d+0]>>6&3,0>l.$a||1<l.$a||4<=l.Z||1<l.Lc||d)n=0;else if(v.put=Ee,v.ac=Te,v.bc=De,v.ma=l,v.width=n.width,v.height=n.height,v.Da=n.Da,v.v=n.v,v.va=n.va,v.j=n.j,v.o=n.o,l.$a)t:{t(l.$a==1),n=Ve();e:for(;;){if(n==null){n=0;break t}if(t(l!=null),l.mc=n,n.c=l.c,n.i=l.i,n.l=l.l,n.l.ma=l,n.l.width=l.c,n.l.height=l.i,n.a=0,_(n.m,u,h,g),!He(l.c,l.i,1,n,null)||(n.ab==1&&n.gc[0].hc==3&&Ie(n.s)?(l.ic=1,u=n.c*n.i,n.Ta=null,n.Ua=0,n.V=a(u),n.Ba=0,n.V==null?(n.a=1,n=0):n=1):(l.ic=0,n=Ue(n,l.c)),!n))break e;n=1;break t}l.mc=null,n=0}else n=g>=l.c*l.i;l=!n}if(l)return null;e.ga.Lc==1?o=c-i:e.Ga=0}t(e.ga!=null),t(i+o<=c);t:{if(n=(u=e.ga).c,c=u.l.o,u.$a==0){if(h=e.rc,g=e.Vc,v=e.Fa,d=e.P+1+i*n,f=e.mb,p=e.nb+i*n,t(d<=e.P+e.qc),u.Z!=0)for(t(Di[u.Z]!=null),l=0;l<o;++l)Di[u.Z](h,g,v,d,f,p,n),h=f,g=p,p+=n,d+=n;else for(l=0;l<o;++l)r(f,p,v,d,n),h=f,g=p,p+=n,d+=n;e.rc=h,e.Vc=g}else{if(t(u.mc!=null),n=i+o,t((l=u.mc)!=null),t(n<=l.i),l.C>=n)n=1;else if(u.ic||On(),u.ic){u=l.V,h=l.Ba,g=l.c;var y=l.i,b=(v=1,d=l.$/g,f=l.$%g,p=l.m,m=l.s,l.$),x=g*y,S=g*n,w=m.wc,E=b<S?Ne(m,f,d):null;t(b<=x),t(n<=y),t(Ie(m));e:for(;;){for(;!p.h&&b<S;){if(f&w||(E=Ne(m,f,d)),t(E!=null),T(p),256>(y=je(E.G[0],E.H[0],p)))u[h+b]=y,++b,++f>=g&&(f=0,++d<=n&&!(d%16)&&Re(l,d));else{if(!(280>y)){v=0;break e}y=ke(y-256,p);var D,O=je(E.G[4],E.H[4],p);if(T(p),!(b>=(O=Ae(g,O=ke(O,p)))&&x-b>=y)){v=0;break e}for(D=0;D<y;++D)u[h+b+D]=u[h+b+D-O];for(b+=y,f+=y;f>=g;)f-=g,++d<=n&&!(d%16)&&Re(l,d);b<S&&f&w&&(E=Ne(m,f,d))}t(p.h==C(p))}Re(l,d>n?n:d);break e}!v||p.h&&b<x?(v=0,l.a=p.h?5:3):l.$=b,n=v}else n=ze(l,l.V,l.Ba,l.c,l.i,n,We);if(!n){o=0;break t}}i+o>=c&&(e.Cc=1),o=1}if(!o)return null;if(e.Cc&&((o=e.ga)!=null&&(o.mc=null),e.ga=null,0<e.Ga))return alert(`todo:WebPDequantizeLevels`),null}return e.nb+i*s}function wn(e,t,n,r,i,a){for(;0<i--;){var o,s=e,c=t+ +!!n,l=e,u=t+(n?0:3);for(o=0;o<r;++o){var d=l[u+4*o];d!=255&&(d*=32897,s[c+4*o+0]=s[c+4*o+0]*d>>23,s[c+4*o+1]=s[c+4*o+1]*d>>23,s[c+4*o+2]=s[c+4*o+2]*d>>23)}t+=a}}function Tn(e,t,n,r,i){for(;0<r--;){var a;for(a=0;a<n;++a){var o=e[t+2*a+0],s=15&(l=e[t+2*a+1]),c=4369*s,l=(240&l|l>>4)*c>>16;e[t+2*a+0]=(240&o|o>>4)*c>>16&240|(15&o|o<<4)*c>>16>>4&15,e[t+2*a+1]=240&l|s}t+=i}}function En(e,t,n,r,i,a,o,s){var c,l,u=255;for(l=0;l<i;++l){for(c=0;c<r;++c){var d=e[t+c];a[o+4*c]=d,u&=d}t+=n,o+=s}return u!=255}function Dn(e,t,n,r,i){var a;for(a=0;a<i;++a)n[r+a]=e[t+a]>>8}function On(){Pr=wn,Fr=Tn,Ir=En,Lr=Dn}function kn(n,r,i){e[n]=function(e,n,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y){var b,x=y-1>>1,S=s[c+0]|l[u+0]<<16,C=d[f+0]|p[m+0]<<16;t(e!=null);var w=3*S+C+131074>>2;for(r(e[n+0],255&w,w>>16,h,g),a!=null&&(w=3*C+S+131074>>2,r(a[o+0],255&w,w>>16,_,v)),b=1;b<=x;++b){var T=s[c+b]|l[u+b]<<16,E=d[f+b]|p[m+b]<<16,D=S+T+C+E+524296,O=D+2*(T+C)>>3;w=O+S>>1,S=(D=D+2*(S+E)>>3)+T>>1,r(e[n+2*b-1],255&w,w>>16,h,g+(2*b-1)*i),r(e[n+2*b-0],255&S,S>>16,h,g+(2*b-0)*i),a!=null&&(w=D+C>>1,S=O+E>>1,r(a[o+2*b-1],255&w,w>>16,_,v+(2*b-1)*i),r(a[o+2*b+0],255&S,S>>16,_,v+(2*b+0)*i)),S=T,C=E}1&y||(w=3*S+C+131074>>2,r(e[n+y-1],255&w,w>>16,h,g+(y-1)*i),a!=null&&(w=3*C+S+131074>>2,r(a[o+y-1],255&w,w>>16,_,v+(y-1)*i)))}}function An(){Oi[qr]=ki,Oi[Jr]=ji,Oi[Yr]=Ai,Oi[Xr]=Mi,Oi[Zr]=Ni,Oi[Qr]=Pi,Oi[$r]=Fi,Oi[ei]=ji,Oi[ti]=Mi,Oi[ni]=Ni,Oi[ri]=Pi}function jn(e){return e&~Bi?0>e?0:255:e>>zi}function Mn(e,t){return jn((19077*e>>8)+(26149*t>>8)-14234)}function Nn(e,t,n){return jn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function Pn(e,t){return jn((19077*e>>8)+(33050*t>>8)-17685)}function Fn(e,t,n,r,i){r[i+0]=Mn(e,n),r[i+1]=Nn(e,t,n),r[i+2]=Pn(e,t)}function In(e,t,n,r,i){r[i+0]=Pn(e,t),r[i+1]=Nn(e,t,n),r[i+2]=Mn(e,n)}function Ln(e,t,n,r,i){var a=Nn(e,t,n);t=a<<3&224|Pn(e,t)>>3,r[i+0]=248&Mn(e,n)|a>>5,r[i+1]=t}function Rn(e,t,n,r,i){var a=240&Pn(e,t)|15;r[i+0]=240&Mn(e,n)|Nn(e,t,n)>>4,r[i+1]=a}function zn(e,t,n,r,i){r[i+0]=255,Fn(e,t,n,r,i+1)}function Bn(e,t,n,r,i){In(e,t,n,r,i),r[i+3]=255}function Vn(e,t,n,r,i){Fn(e,t,n,r,i),r[i+3]=255}function Hn(t,n,r){e[t]=function(e,t,i,a,o,s,c,l,u){for(var d=l+(-2&u)*r;l!=d;)n(e[t+0],i[a+0],o[s+0],c,l),n(e[t+1],i[a+0],o[s+0],c,l+r),t+=2,++a,++s,l+=2*r;1&u&&n(e[t+0],i[a+0],o[s+0],c,l)}}function Un(e,t,n){return n==0?e==0?t==0?6:5:t==0?4:0:n}function Wn(e,t,n,r,i){switch(e>>>30){case 3:_r(t,n,r,i,0);break;case 2:vr(t,n,r,i);break;case 1:br(t,n,r,i)}}function Gn(e,t){var n,a,o=t.M,s=t.Nb,c=e.oc,l=e.pc+40,u=e.oc,d=e.pc+584,f=e.oc,p=e.pc+600;for(n=0;16>n;++n)c[l+32*n-1]=129;for(n=0;8>n;++n)u[d+32*n-1]=129,f[p+32*n-1]=129;for(0<o?c[l-1-32]=u[d-1-32]=f[p-1-32]=129:(i(c,l-32-1,127,21),i(u,d-32-1,127,9),i(f,p-32-1,127,9)),a=0;a<e.za;++a){var m=t.ya[t.aa+a];if(0<a){for(n=-1;16>n;++n)r(c,l+32*n-4,c,l+32*n+12,4);for(n=-1;8>n;++n)r(u,d+32*n-4,u,d+32*n+4,4),r(f,p+32*n-4,f,p+32*n+4,4)}var h=e.Gd,g=e.Hd+a,_=m.ad,v=m.Hc;if(0<o&&(r(c,l-32,h[g].y,0,16),r(u,d-32,h[g].f,0,8),r(f,p-32,h[g].ea,0,8)),m.Za){var y=c,b=l-32+16;for(0<o&&(a>=e.za-1?i(y,b,h[g].y[15],4):r(y,b,h[g+1].y,0,4)),n=0;4>n;n++)y[b+128+n]=y[b+256+n]=y[b+384+n]=y[b+0+n];for(n=0;16>n;++n,v<<=2)y=c,b=l+Ji[n],Ci[m.Ob[n]](y,b),Wn(v,_,16*n,y,b)}else if(y=Un(a,o,m.Ob[0]),Si[y](c,l),v!=0)for(n=0;16>n;++n,v<<=2)Wn(v,_,16*n,c,l+Ji[n]);for(n=m.Gc,y=Un(a,o,m.Dd),wi[y](u,d),wi[y](f,p),v=_,y=u,b=d,255&(m=0|n)&&(170&m?yr(v,256,y,b):xr(v,256,y,b)),m=f,v=p,255&(n>>=8)&&(170&n?yr(_,320,m,v):xr(_,320,m,v)),o<e.Ub-1&&(r(h[g].y,0,c,l+480,16),r(h[g].f,0,u,d+224,8),r(h[g].ea,0,f,p+224,8)),n=8*s*e.B,h=e.sa,g=e.ta+16*a+16*s*e.R,_=e.qa,m=e.ra+8*a+n,v=e.Ha,y=e.Ia+8*a+n,n=0;16>n;++n)r(h,g+n*e.R,c,l+32*n,16);for(n=0;8>n;++n)r(_,m+n*e.B,u,d+32*n,8),r(v,y+n*e.B,f,p+32*n,8)}}function Kn(e,r,i,a,o,s,c,l,u){var d=[0],f=[0],p=0,m=u==null?0:u.kd,h=u??new hn;if(e==null||12>i)return 7;h.data=e,h.w=r,h.ha=i,r=[r],i=[i],h.gb=[h.gb];t:{var g=r,v=i,y=h.gb;if(t(e!=null),t(v!=null),t(y!=null),y[0]=0,12<=v[0]&&!n(e,g[0],`RIFF`)){if(n(e,g[0]+8,`WEBP`)){y=3;break t}var b=M(e,g[0]+4);if(12>b||4294967286<b){y=3;break t}if(m&&b>v[0]-8){y=7;break t}y[0]=b,g[0]+=12,v[0]-=12}y=0}if(y!=0)return y;for(b=0<h.gb[0],i=i[0];;){t:{var S=e;v=r,y=i;var C=d,w=f,T=g=[0];if((O=p=[p])[0]=0,8>y[0])y=7;else{if(!n(S,v[0],`VP8X`)){if(M(S,v[0]+4)!=10){y=3;break t}if(18>y[0]){y=7;break t}var E=M(S,v[0]+8),D=1+j(S,v[0]+12);if(2147483648<=D*(S=1+j(S,v[0]+15))){y=3;break t}T!=null&&(T[0]=E),C!=null&&(C[0]=D),w!=null&&(w[0]=S),v[0]+=18,y[0]-=18,O[0]=1}y=0}}if(p=p[0],g=g[0],y!=0)return y;if(v=!!(2&g),!b&&p)return 3;if(s!=null&&(s[0]=!!(16&g)),c!=null&&(c[0]=v),l!=null&&(l[0]=0),c=d[0],g=f[0],p&&v&&u==null){y=0;break}if(4>i){y=7;break}if(b&&p||!b&&!p&&!n(e,r[0],`ALPH`)){i=[i],h.na=[h.na],h.P=[h.P],h.Sa=[h.Sa];t:{E=e,y=r,b=i;var O=h.gb;C=h.na,w=h.P,T=h.Sa,D=22,t(E!=null),t(b!=null),S=y[0];var k=b[0];for(t(C!=null),t(T!=null),C[0]=null,w[0]=null,T[0]=0;;){if(y[0]=S,b[0]=k,8>k){y=7;break t}var A=M(E,S+4);if(4294967286<A){y=3;break t}var N=8+A+1&-2;if(D+=N,0<O&&D>O){y=3;break t}if(!n(E,S,`VP8 `)||!n(E,S,`VP8L`)){y=0;break t}if(k[0]<N){y=7;break t}n(E,S,`ALPH`)||(C[0]=E,w[0]=S+8,T[0]=A),S+=N,k-=N}}if(i=i[0],h.na=h.na[0],h.P=h.P[0],h.Sa=h.Sa[0],y!=0)break}i=[i],h.Ja=[h.Ja],h.xa=[h.xa];t:if(O=e,y=r,b=i,C=h.gb[0],w=h.Ja,T=h.xa,E=y[0],S=!n(O,E,`VP8 `),D=!n(O,E,`VP8L`),t(O!=null),t(b!=null),t(w!=null),t(T!=null),8>b[0])y=7;else{if(S||D){if(O=M(O,E+4),12<=C&&O>C-12){y=3;break t}if(m&&O>b[0]-8){y=7;break t}w[0]=O,y[0]+=8,b[0]-=8,T[0]=D}else T[0]=5<=b[0]&&O[E+0]==47&&!(O[E+4]>>5),w[0]=b[0];y=0}if(i=i[0],h.Ja=h.Ja[0],h.xa=h.xa[0],r=r[0],y!=0)break;if(4294967286<h.Ja)return 3;if(l==null||v||(l[0]=h.xa?2:1),c=[c],g=[g],h.xa){if(5>i){y=7;break}l=c,m=g,v=s,e==null||5>i?e=0:5<=i&&e[r+0]==47&&!(e[r+4]>>5)?(b=[0],O=[0],C=[0],_(w=new x,e,r,i),Oe(w,b,O,C)?(l!=null&&(l[0]=b[0]),m!=null&&(m[0]=O[0]),v!=null&&(v[0]=C[0]),e=1):e=0):e=0}else{if(10>i){y=7;break}l=g,e==null||10>i||!ct(e,r+3,i-3)?e=0:(m=e[r+0]|e[r+1]<<8|e[r+2]<<16,v=16383&(e[r+7]<<8|e[r+6]),e=16383&(e[r+9]<<8|e[r+8]),1&m||3<(m>>1&7)||!(m>>4&1)||m>>5>=h.Ja||!v||!e?e=0:(c&&(c[0]=v),l&&(l[0]=e),e=1))}if(!e||(c=c[0],g=g[0],p&&(d[0]!=c||f[0]!=g)))return 3;u!=null&&(u[0]=h,u.offset=r-u.w,t(4294967286>r-u.w),t(u.offset==u.ha-i));break}return y==0||y==7&&p&&u==null?(s!=null&&(s[0]|=h.na!=null&&0<h.na.length),a!=null&&(a[0]=c),o!=null&&(o[0]=g),0):y}function qn(e,t,n){var r=t.width,i=t.height,a=0,o=0,s=r,c=i;if(t.Da=e!=null&&0<e.Da,t.Da&&(s=e.cd,c=e.bd,a=e.v,o=e.j,11>n||(a&=-2,o&=-2),0>a||0>o||0>=s||0>=c||a+s>r||o+c>i))return 0;if(t.v=a,t.j=o,t.va=a+s,t.o=o+c,t.U=s,t.T=c,t.da=e!=null&&0<e.da,t.da){if(!F(s,c,n=[e.ib],a=[e.hb]))return 0;t.ib=n[0],t.hb=a[0]}return t.ob=e!=null&&e.ob,t.Kb=e==null||!e.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*i/4,t.Kb=0),1}function Jn(e){if(e==null)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,t.F!=null&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Yn(e,t,n,r){if(r==null||0>=e||0>=t)return 2;if(n!=null){if(n.Da){var i=n.cd,o=n.bd,s=-2&n.v,c=-2&n.j;if(0>s||0>c||0>=i||0>=o||s+i>e||c+o>t)return 2;e=i,t=o}if(n.da){if(!F(e,t,i=[n.ib],o=[n.hb]))return 2;e=i[0],t=o[0]}}r.width=e,r.height=t;t:{var l=r.width,u=r.height;if(e=r.S,0>=l||0>=u||!(e>=qr&&13>e))e=2;else{if(0>=r.Rd&&r.sd==null){s=o=i=t=0;var d=(c=l*Qi[e])*u;if(11>e||(o=(u+1)/2*(t=(l+1)/2),e==12&&(s=(i=l)*u)),(u=a(d+2*o+s))==null){e=1;break t}r.sd=u,11>e?((l=r.f.RGBA).eb=u,l.fb=0,l.A=c,l.size=d):((l=r.f.kb).y=u,l.O=0,l.fa=c,l.Fd=d,l.f=u,l.N=0+d,l.Ab=t,l.Cd=o,l.ea=u,l.W=0+d+o,l.Db=t,l.Ed=o,e==12&&(l.F=u,l.J=0+d+2*o),l.Tc=s,l.lb=i)}if(t=1,i=r.S,o=r.width,s=r.height,i>=qr&&13>i){if(11>i)e=r.f.RGBA,t&=(c=Math.abs(e.A))*(s-1)+o<=e.size,t&=c>=o*Qi[i],t&=e.eb!=null;else{e=r.f.kb,c=(o+1)/2,d=(s+1)/2,l=Math.abs(e.fa),u=Math.abs(e.Ab);var f=Math.abs(e.Db),p=Math.abs(e.lb),m=p*(s-1)+o;t&=l*(s-1)+o<=e.Fd,t&=u*(d-1)+c<=e.Cd,t=(t&=f*(d-1)+c<=e.Ed)&l>=o&u>=c&f>=c,t&=e.y!=null,t&=e.f!=null,t&=e.ea!=null,i==12&&(t&=p>=o,t&=m<=e.Tc,t&=e.F!=null)}}else t=0;e=t?0:2}}return e!=0||n!=null&&n.fd&&(e=Jn(r)),e}var Xn=64,Zn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Qn=24,$n=32,er=8,tr=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
vendor: 4,728 bytes, line 127
1276,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];L(`Predictor0`,`PredictorAdd0`),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return R(R(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return R(e,t[n-1])},e.Predictor7=function(e,t,n){return R(e,t[n+0])},e.Predictor8=function(e,t,n){return R(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return R(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return R(R(e,t[n-1]),R(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var r=t[n+0];return 0>=ie(r>>24&255,e>>24&255,(t=t[n-1])>>24&255)+ie(r>>16&255,e>>16&255,t>>16&255)+ie(r>>8&255,e>>8&255,t>>8&255)+ie(255&r,255&e,255&t)?r:e},e.Predictor12=function(e,t,n){var r=t[n+0];return(re((e>>24&255)+(r>>24&255)-((t=t[n-1])>>24&255))<<24|re((e>>16&255)+(r>>16&255)-(t>>16&255))<<16|re((e>>8&255)+(r>>8&255)-(t>>8&255))<<8|re((255&e)+(255&r)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var r=t[n-1];return(z((e=R(e,t[n+0]))>>24&255,r>>24&255)<<24|z(e>>16&255,r>>16&255)<<16|z(e>>8&255,r>>8&255)<<8|z(255&e,255&r))>>>0};var nr=e.PredictorAdd0;e.PredictorAdd1=ae,L(`Predictor2`,`PredictorAdd2`),L(`Predictor3`,`PredictorAdd3`),L(`Predictor4`,`PredictorAdd4`),L(`Predictor5`,`PredictorAdd5`),L(`Predictor6`,`PredictorAdd6`),L(`Predictor7`,`PredictorAdd7`),L(`Predictor8`,`PredictorAdd8`),L(`Predictor9`,`PredictorAdd9`),L(`Predictor10`,`PredictorAdd10`),L(`Predictor11`,`PredictorAdd11`),L(`Predictor12`,`PredictorAdd12`),L(`Predictor13`,`PredictorAdd13`);var rr=e.PredictorAdd2;le(`ColorIndexInverseTransform`,`MapARGB`,`32b`,function(e){return e>>8&255},function(e){return e}),le(`VP8LColorIndexInverseTransformAlpha`,`MapAlpha`,`8b`,function(e){return e},function(e){return e>>8&255});var ir,ar=e.ColorIndexInverseTransform,or=e.MapARGB,sr=e.VP8LColorIndexInverseTransformAlpha,cr=e.MapAlpha,lr=e.VP8LPredictorsAdd=[];lr.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr=a(511),zr=a(2041),Br=a(225),Vr=a(767),Hr=0,Ur=zr,Wr=Br,Gr=Vr,Kr=Rr,qr=0,Jr=1,Yr=2,Xr=3,Zr=4,Qr=5,$r=6,ei=7,ti=8,ni=9,ri=10,ii=[2,3,7],ai=[3,3,11],oi=[280,256,256,256,40],si=[0,1,1,1,0],ci=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],li=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],ui=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],di=8,fi=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],pi=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],mi=null,hi=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],gi=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],_i=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],vi=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,25
1275,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],yi=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,25
1275,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],bi=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 11,668 bytes, line 127
1275,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],xi=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Si=[],Ci=[],wi=[],Ti=1,Ei=2,Di=[],Oi=[];kn(`UpsampleRgbLinePair`,Fn,3),kn(`UpsampleBgrLinePair`,In,3),kn(`UpsampleRgbaLinePair`,Vn,4),kn(`UpsampleBgraLinePair`,Bn,4),kn(`UpsampleArgbLinePair`,zn,4),kn(`UpsampleRgba4444LinePair`,Rn,2),kn(`UpsampleRgb565LinePair`,Ln,2);var ki=e.UpsampleRgbLinePair,Ai=e.UpsampleBgrLinePair,ji=e.UpsampleRgbaLinePair,Mi=e.UpsampleBgraLinePair,Ni=e.UpsampleArgbLinePair,Pi=e.UpsampleRgba4444LinePair,Fi=e.UpsampleRgb565LinePair,Ii=16,Li=1<<Ii-1,H=-227,Ri=482,zi=6,Bi=(256<<zi)-1,Vi=0,Hi=a(256),Ui=a(256),Wi=a(256),Gi=a(256),Ki=a(Ri-H),qi=a(Ri-H);Hn(`YuvToRgbRow`,Fn,3),Hn(`YuvToBgrRow`,In,3),Hn(`YuvToRgbaRow`,Vn,4),Hn(`YuvToBgraRow`,Bn,4),Hn(`YuvToArgbRow`,zn,4),Hn(`YuvToRgba4444Row`,Rn,2),Hn(`YuvToRgb565Row`,Ln,2);var Ji=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Yi=[0,2,8],Xi=[8,7,6,4,4,2,2,2,1,1,1,1],Zi=1;this.WebPDecodeRGBA=function(e,n,s,c,l){var u=Jr,d=new mn,f=new ye;d.ba=f,f.S=u,f.width=[f.width],f.height=[f.height];var p=f.width,m=f.height,h=new be;if(h==null||e==null)var g=2;else t(h!=null),g=Kn(e,n,s,h.width,h.height,h.Pd,h.Qd,h.format,null);if(g==0?(p!=null&&(p[0]=h.width[0]),m!=null&&(m[0]=h.height[0]),p=1):p=0,p){f.width=f.width[0],f.height=f.height[0],c!=null&&(c[0]=f.width),l!=null&&(l[0]=f.height);t:{if(c=new at,(l=new hn).data=e,l.w=n,l.ha=s,l.kd=1,n=[0],t(l!=null),((e=Kn(l.data,l.w,l.ha,null,null,null,n,null,l))==0||e==7)&&n[0]&&(e=4),(n=e)==0){if(t(d!=null),c.data=l.data,c.w=l.w+l.offset,c.ha=l.ha-l.offset,c.put=Ee,c.ac=Te,c.bc=De,c.ma=d,l.xa){if((e=Ve())==null){d=1;break t}if(function(e,n){var r=[0],i=[0],a=[0];e:for(;;){if(e==null)return 0;if(n==null)return e.a=2,0;if(e.l=n,e.a=0,_(e.m,n.data,n.w,n.ha),!Oe(e.m,r,i,a)){e.a=3;break e}if(e.xb=Ei,n.width=r[0],n.height=i[0],!He(r[0],i[0],1,e,null))break e;return 1}return t(e.a!=0),0}(e,c)){if(c=(n=Yn(c.width,c.height,d.Oa,d.ba))==0){e:{c=e;r:for(;;){if(c==null){c=0;break e}if(t(c.s.yc!=null),t(c.s.Ya!=null),t(0<c.s.Wb),t((s=c.l)!=null),t((l=s.ma)!=null),c.xb!=0){if(c.ca=l.ba,c.tb=l.tb,t(c.ca!=null),!qn(l.Oa,s,Xr)){c.a=2;break r}if(!Ue(c,s.width)||s.da)break r;if((s.da||ge(c.ca.S))&&On(),11>c.ca.S||(alert(`todo:WebPInitConvertARGBToYUV`),c.ca.f.kb.F!=null&&On()),c.Pb&&0<c.s.ua&&c.s.vb.X==null&&!N(c.s.vb,c.s.Wa.Xa)){c.a=1;break r}c.xb=0}if(!ze(c,c.V,c.Ba,c.c,c.i,s.o,Fe))break r;l.Dc=c.Ma,c=1;break e}t(c.a!=0),c=0}c=!c}c&&(n=e.a)}else n=e.a}else{if((e=new ot)==null){d=1;break t}if(e.Fa=l.na,e.P=l.P,e.qc=l.Sa,lt(e,c)){if((n=Yn(c.width,c.height,d.Oa,d.ba))==0){if(e.Aa=0,s=d.Oa,t((l=e)!=null),s!=null){if(0<(p=0>(p=s.Md)?0:100<p?255:255*p/100)){for(m=h=0;4>m;++m)12>(g=l.pb[m]).lc&&(g.ia=p*Xi[0>g.lc?0:g.lc]>>3),h|=g.ia;h&&(alert(`todo:VP8InitRandom`),l.ia=1)}l.Ga=s.Id,100<l.Ga?l.Ga=100:0>l.Ga&&(l.Ga=0)}(function(e,n){if(e==null)return 0;if(n==null)return st(e,2,`NULL VP8Io parameter in VP8Decode().`);if(!e.cb&&!lt(e,n))return 0;if(t(e.cb),n.ac==null||n.ac(n)){n.ob&&(e.L=0);var s=Yi[e.L];if(e.L==2?(e.yb=0,e.zb=0):(e.yb=n.v-s>>4,e.zb=n.j-s>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+s>>4,e.Hb=n.va+15+s>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var c=e.ed;for(s=0;4>s;++s){var l;if(e.Qa.Cb){var u=e.Qa.Lb[s];e.Qa.Fb||(u+=c.Tb)}else u=c.Tb;for(l=0;1>=l;++l){var d=e.gd[s][l],f=u;if(c.Pc&&(f+=c.vd[0],l&&(f+=c.od[0])),0<(f=0>f?0:63<f?63:f)){var p=f;0<c.wb&&(p=4<c.wb?p>>2:p>>1)>9-c.wb&&(p=9-c.wb),1>p&&(p=1),d.dd=p,d.tc=2*f+p,d.ld=40<=f?2:+(15<=f)}else d.tc=0;d.La=l}}}s=0}else st(e,6,`Frame setup failed`),s=e.a;if(s=s==0){if(s){e.$c=0,0<e.Aa||(e.Ic=Zi);e:{s=e.Ic,c=4*(p=e.za);var m=32*p,h=p+1,g=0<e.L?p*(0<e.Aa?2:1):0,_=(e.Aa==2?2:1)*p;if((d=c+832+(l=3*(16*s+Yi[e.L])/2*m)+(u=e.Fa!=null&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=d)s=0;else{if(d>e.Vb){if(e.Vb=0,e.Ec=a(d),e.Fc=0,e.Ec==null){s=st(e,1,`no memory during frame initialization.`);break e}e.Vb=d}d=e.Ec,f=e.Fc,e.Ac=d,e.Bc=f,f+=c,e.Gd=o(m,nt),e.Hd=0,e.rb=o(h+1,Qe),e.sb=1,e.wa=g?o(g,Ze):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=p),t(!0),e.oc=d,e.pc=f,f+=832,e.ya=o(_,et),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,e.Aa==2&&(e.D.aa+=p),e.R=16*p,e.B=8*p,p=(m=Yi[e.L])*e.R,m=m/2*e.B,e.sa=d,e.ta=f+p,e.qa=e.sa,e.ra=e.ta+16*s*e.R+m,e.Ha=e.qa,e.Ia=e.ra+8*s*e.B+m,e.$c=0,f+=l,e.mb=u?d:null,e.nb=u?f:null,t(f+u<=e.Fc+e.Vb),dt(e),i(e.Ac,e.Bc,0,c),s=1}}if(s){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!Hr){for(s=-255;255>=s;++s)Rr[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)zr[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Br[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Vr[255+s]=0>s?0:255<s?255:s;Hr=1}gr=xt,_r=_t,yr=vt,br=yt,xr=bt,vr=gt,Sr=on,Cr=sn,wr=un,Tr=dn,Er=cn,Dr=ln,Or=fn,kr=pn,Ar=$t,jr=en,Mr=tn,Nr=nn,Ci[0]=It,Ci[1]=Ct,Ci[2]=Pt,Ci[3]=Ft,Ci[4]=Lt,Ci[5]=zt,Ci[6]=Rt,Ci[7]=Bt,Ci[8]=Ht,Ci[9]=Vt,Si[0]=kt,Si[1]=Tt,Si[2]=Et,Si[3]=Dt,Si[4]=At,Si[5]=jt,Si[6]=Mt,wi[0]=Gt,wi[1]=wt,wi[2]=Ut,wi[3]=V,wi[4]=qt,wi[5]=Kt,wi[6]=Jt,s=1}else s=0}s&&(s=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var o,s=e.Jc[e.M&e.Xb],c=e.m,l=e;for(o=0;o<l.za;++o){var u=c,d=l,f=d.Ac,p=d.Bc+4*o,m=d.zc,h=d.ya[d.aa+o];if(d.Qa.Bb?h.$b=O(u,d.Pa.jb[0])?2+O(u,d.Pa.jb[2]):O(u,d.Pa.jb[1]):h.$b=0,d.kc&&(h.Ad=O(u,d.Bd)),h.Za=!O(u,145)+0,h.Za){var g=h.Ob,_=0;for(d=0;4>d;++d){var v,y=m[0+d];for(v=0;4>v;++v){y=yi[f[p+v]][y];for(var b=_i[O(u,y[0])];0<b;)b=_i[2*b+O(u,y[b])];y=-b,f[p+v]=y}r(g,_,f,p,4),_+=4,m[0+d]=y}}else y=O(u,156)?O(u,128)?1:3:O(u,163)?2:0,h.Ob[0]=y,i(f,p,y,4),i(m,0,y,4);h.Dd=O(u,142)?O(u,114)?O(u,183)?1:3:2:0}if(l.m.Ka)return st(e,7,`Premature end-of-partition0 encountered.`);for(;e.ja<e.za;++e.ja){if(l=s,u=(c=e).rb[c.sb-1],f=c.rb[c.sb+c.ja],o=c.ya[c.aa+c.ja],p=c.kc?o.Ad:0)u.la=f.la=0,o.Za||(u.Na=f.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var x,S;if(u=f,f=l,p=c.Pa.Xc,m=c.ya[c.aa+c.ja],h=c.pb[m.$b],d=m.ad,g=0,_=c.rb[c.sb-1],y=v=0,i(d,g,0,384),m.Za)var C=0,w=p[3];else{b=a(16);var T=u.Na+_.Na;if(T=mi(f,p[1],T,h.Eb,0,b,0),u.Na=_.Na=(0<T)+0,1<T)gr(b,0,d,g);else{var E=b[0]+3>>3;for(b=0;256>b;b+=16)d[g+b]=E}C=1,w=p[0]}var D=15&u.la,k=15&_.la;for(b=0;4>b;++b){var A=1&k;for(E=S=0;4>E;++E)D=D>>1|(A=(T=mi(f,w,T=A+(1&D),h.Sc,C,d,g))>C)<<7,S=S<<2|(3<T?3:1<T?2:d[g+0]!=0),g+=16;D>>=4,k=k>>1|A<<7,v=(v<<8|S)>>>0}for(w=D,C=k>>4,x=0;4>x;x+=2){for(S=0,D=u.la>>4+x,k=_.la>>4+x,b=0;2>b;++b){for(A=1&k,E=0;2>E;++E)T=A+(1&D),D=D>>1|(A=0<(T=mi(f,p[2],T,h.Qc,0,d,g)))<<3,S=S<<2|(3<T?3:1<T?2:d[g+0]!=0),g+=16;D>>=2,k=k>>1|A<<5}y|=S<<4*x,w|=D<<4<<x,C|=(240&k)<<x}u.la=w,_.la=C,m.Hc=v,m.Gc=y,m.ia=43690&y?0:h.ia,p=!(v|y)}if(0<c.L&&(c.wa[c.Y+c.ja]=c.gd[o.$b][o.Za],c.wa[c.Y+c.ja].La|=!p),l.Ka)return st(e,7,`Premature end-of-file encountered.`)}if(dt(e),c=n,l=1,o=(s=e).D,u=0<s.L&&s.M>=s.zb&&s.M<=s.Va,s.Aa==0)e:{if(o.M=s.M,o.uc=u,Gn(s,o),l=1,o=(S=s.D).Nb,u=(y=Yi[s.L])*s.R,f=y/2*s.B,b=16*o*s.R,E=8*o*s.B,p=s.sa,m=s.ta-u+b,h=s.qa,d=s.ra-f+E,g=s.Ha,_=s.Ia-f+E,k=(D=S.M)==0,v=D>=s.Va-1,s.Aa==2&&Gn(s,S),S.uc)for(A=(T=s).D.M,t(T.D.uc),S=T.yb;S<T.Hb;++S){C=S,w=A;var j=(M=(R=T).D).Nb;x=R.R;var M=M.wa[M.Y+C],N=R.sa,P=R.ta+16*j*x+16*C,ee=M.dd,F=M.tc;if(F!=0){if(t(3<=F),R.L==1)0<C&&jr(N,P,x,F+4),M.La&&Nr(N,P,x,F),0<w&&Ar(N,P,x,F+4),M.La&&Mr(N,P,x,F);else{var I=R.B,te=R.qa,L=R.ra+8*j*I+8*C,ne=R.Ha,R=R.Ia+8*j*I+8*C;j=M.ld,0<C&&(Cr(N,P,x,F+4,ee,j),Tr(te,L,ne,R,I,F+4,ee,j)),M.La&&(Dr(N,P,x,F,ee,j),kr(te,L,ne,R,I,F,ee,j)),0<w&&(Sr(N,P,x,F+4,ee,j),wr(te,L,ne,R,I,F+4,ee,j)),M.La&&(Er(N,P,x,F,ee,j),Or(te,L,ne,R,I,F,ee,j))}}}if(s.ia&&alert(`todo:DitherRow`),c.put!=null){if(S=16*D,D=16*(D+1),k?(c.y=s.sa,c.O=s.ta+b,c.f=s.qa,c.N=s.ra+E,c.ea=s.Ha,c.W=s.Ia+E):(S-=y,c.y=p,c.O=m,c.f=h,c.N=d,c.ea=g,c.W=_),v||(D-=y),D>c.o&&(D=c.o),c.F=null,c.J=null,s.Fa!=null&&0<s.Fa.length&&S<D&&(c.J=Cn(s,c,S,D-S),c.F=s.mb,c.F==null&&c.F.length==0)){l=st(s,3,`Could not decode alpha data.`);break e}S<c.j&&(y=c.j-S,S=c.j,t(!(1&y)),c.O+=s.R*y,c.N+=s.B*(y>>1),c.W+=s.B*(y>>1),c.F!=null&&(c.J+=c.width*y)),S<D&&(c.O+=c.v,c.N+=c.v>>1,c.W+=c.v>>1,c.F!=null&&(c.J+=c.v),c.ka=S-c.j,c.U=c.va-c.v,c.T=D-S,l=c.put(c))}o+1!=s.Ic||v||(r(s.sa,s.ta-u,p,m+16*s.R,u),r(s.qa,s.ra-f,h,d+8*s.B,f),r(s.Ha,s.Ia-f,g,_+8*s.B,f))}if(!l)return st(e,6,`Output aborted.`)}return 1}(e,n)),n.bc!=null&&n.bc(n),s&=1}return s?(e.cb=0,s):0})(e,c)||(n=e.a)}}else n=e.a}n==0&&d.Oa!=null&&d.Oa.fd&&(n=Jn(d.ba))}d=n}u=d==0?11>u?f.f.RGBA.eb:f.f.kb.y:null}else u=null;return u};var Qi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(e,t){for(var n=``,r=0;r<4;r++)n+=String.fromCharCode(e[t++]);return n}function u(e,t){return e[t+0]|e[t+1]<<8}function d(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function f(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new c;var p=[0],m=[0],h=[],g=new c,_=e,v=function(e,t){var n={},r=0,i=!1,a=0,o=0;if(n.frames=[],!function(e,t){for(var n=0;n<4;n++)if(e[t+n]!=`RIFF`.charCodeAt(n))return!0;return!1}(e,t)){for(f(e,t+=4),t+=8;t<e.length;){var s=l(e,t),c=f(e,t+=4);t+=4;var p=c+(1&c);switch(s){case`VP8 `:case`VP8L`:n.frames[r]===void 0&&(n.frames[r]={}),(g=n.frames[r]).src_off=i?o:t-8,g.src_size=a+c+8,r++,i&&(i=!1,a=0,o=0);break;case`VP8X`:(g=n.header={}).feature_flags=e[t];var m=t+4;g.canvas_width=1+d(e,m),m+=3,g.canvas_height=1+d(e,m),m+=3;break;case`ALPH`:i=!0,a=p+8,o=t-8;break;case`ANIM`:(g=n.header).bgcolor=f(e,t),m=t+4,g.loop_count=u(e,m),m+=2;break;case`ANMF`:var h,g;(g=n.frames[r]={}).offset_x=2*d(e,t),t+=3,g.offset_y=2*d(e,t),t+=3,g.width=1+d(e,t),t+=3,g.height=1+d(e,t),t+=3,g.duration=d(e,t),t+=3,h=e[t++],g.dispose=1&h,g.blend=h>>1&1}s!=`ANMF`&&(t+=p)}return n}}(_,0);v.response=_,v.rgbaoutput=!0,v.dataurl=!1;var y=v.header?v.header:null,b=v.frames?v.frames:null;if(y){y.loop_counter=y.loop_count,p=[y.canvas_height],m=[y.canvas_width];for(var x=0;x<b.length&&b[x].blend!=0;x++);}var S=b[0],C=g.WebPDecodeRGBA(_,S.src_off,S.src_size,m,p);S.rgba=C,S.imgwidth=m[0],S.imgheight=p[0];for(var w=0;w<m[0]*p[0]*4;w++)h[w]=C[w];return this.width=m,this.height=p,this.data=h,this}function tZ(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:`<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="`+this.internal.__metadata__.namespaceUri+`"><jspdf:metadata>`+n.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)+`</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>`,this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write(`<< /Type /Metadata /Subtype /XML /Length `+e.length+` >>`),this.internal.write(`stream`),this.internal.write(e),this.internal.write(`endstream`),this.internal.write(`endobj`)}function nZ(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write(`/Metadata `+this.internal.__metadata__.metadataObjectNumber+` 0 R`)}(function(e){var t,n,r,i,a,o,s,c,l,u=function(e){return e=e||
vendor: 5,294 bytes, line 127
127{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||`#000000`,this.fillStyle=e.fillStyle||`#000000`,this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||`10px sans-serif`,this.textBaseline=e.textBaseline||`alphabetic`,this.textAlign=e.textAlign||`left`,this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||`miter`,this.lineCap=e.lineCap||`butt`,this.path=e.path||[],this.transform=e.transform===void 0?new c:e.transform.clone(),this.globalCompositeOperation=e.globalCompositeOperation||`normal`,this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new o,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new o,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect=typeof e.ignoreClearRect!=`boolean`||e.ignoreClearRect,this};e.events.push([`initialized`,function(){this.context2d=new d(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,c=this.internal.Matrix,l=new u}]);var d=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=!!e}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(e){r=!!e}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}});var a=0;Object.defineProperty(this,"posY",{get:function(){return a},set:function(e){isNaN(e)||(a=e)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(e){var t;typeof e==`number`?t=[e,e,e,e]:((t=[,,,,])[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),l.margin=t}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(e){o=e}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(e){s=e}});var c=[];Object.defineProperty(this,"pageBreaks",{get:function(){return c},set:function(e){c=e}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(e){e instanceof u&&(l=e)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(e){l.path=e}});var d=[];Object.defineProperty(this,"ctxStack",{get:function(){return d},set:function(e){d=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t=f(e);this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=t.a===0,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=f(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=t.a===0,this.ctx.strokeOpacity=t.a,t.a===0?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){[`butt`,`round`,`square`].indexOf(e)!==-1&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){[`bevel`,`round`,`miter`].indexOf(e)!==-1&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){[`right`,`end`,`center`,`left`,`start`].indexOf(e)!==-1&&(this.ctx.textAlign=e)}});var p=null,m=null,h=null;Object.defineProperty(this,"fontFaces",{get:function(){return h},set:function(e){p=null,m=null,h=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(e))!==null){var n=t[1];t[2];var r=t[3],i=t[4];t[5];var a=t[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i=Math.floor(o===`px`?parseFloat(i)*this.pdf.internal.scaleFactor:o===`em`?parseFloat(i)*this.pdf.getFontSize():parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(e){var t,n,r=[],i=e.trim();if(i===``)return
127RX;if(i in OX)return[OX[i]];for(;i!==``;){switch(n=null,t=(i=AX(i)).charAt(0)){case`"`:case`'`:n=jX(i.substring(1),t);break;default:n=MX(i)}if(n===null||(r.push(n[0]),(i=AX(n[1]))!==``&&i.charAt(0)!==`,`))return RX;i=i.replace(/^,/,``)}return r}(a);if(this.fontFaces){var c=function(e,t,n){for(var r=(n=n||{}).defaultFontFamily||`times`,i=Object.assign({},DX,n.genericFontFamilies||{}),a=null,o=null,s=0;s<t.length;++s)if(i[(a=TX(t[s])).family]&&(a.family=i[a.family]),e.hasOwnProperty(a.family)){o=e[a.family];break}if(!(o=o||e[r]))throw Error(`Could not find a font-family for the rule '`+kX(a)+`' and default family '`+r+`'.`);if(o=function(e,t){if(t[e])return t[e];var n=SX[e],r=EX(t,xX,n,n<=SX.normal?-1:1);if(!r)throw Error(`Could not find a matching font-stretch value for `+e);return r}(a.stretch,o),o=function(e,t){if(t[e])return t[e];for(var n=bX[e],r=0;r<n.length;++r)if(t[n[r]])return t[n[r]];throw Error(`Could not find a matching font-style for `+e)}(a.style,o),!(o=function(e,t){if(t[e])return t[e];if(e===400&&t[500])return t[500];if(e===500&&t[400])return t[400];var n=wX[e],r=EX(t,CX,n,e<400?-1:1);if(!r)throw Error(`Could not find a matching font-weight for value `+e);return r}(a.weight,o)))throw Error(`Failed to resolve a font for the rule '`+kX(a)+`'.`);return o}(function(e,t){var n=e.getFontList(),r=JSON.stringify(n);return(p===null||m!==r)&&(p=function(e){for(var t={},n=0;n<e.length;++n){var r=TX(e[n]),i=r.family,a=r.stretch,o=r.style,s=r.weight;t[i]=t[i]||{},t[i][a]=t[i][a]||{},t[i][a][o]=t[i][a][o]||{},t[i][a][o][s]=r}return t}(function(e){var t=[];return Object.keys(e).forEach(function(n){e[n].forEach(function(e){var r=null;switch(e){case`bold`:r={family:n,weight:`bold`};break;case`italic`:r={family:n,style:`italic`};break;case`bolditalic`:r={family:n,weight:`bold`,style:`italic`};break;case``:case`normal`:r={family:n}}r!==null&&(r.ref={name:n,style:e},t.push(r))})}),t}(n).concat(t)),m=r),p}(this.pdf,this.fontFaces),s.map(function(e){return{family:e,stretch:`normal`,weight:r,style:n}}));this.pdf.setFont(c.ref.name,c.ref.style)}
vendor: 4,714 bytes, line 127
127else{var l=``;(r===`bold`||parseInt(r,10)>=700||n===`bold`)&&(l=`bold`),n===`italic`&&(l+=`italic`),l.length===0&&(l=`normal`);for(var u=``,d={arial:`Helvetica`,Arial:`Helvetica`,verdana:`Helvetica`,Verdana:`Helvetica`,helvetica:`Helvetica`,Helvetica:`Helvetica`,"sans-serif":`Helvetica`,fixed:`Courier`,monospace:`Courier`,terminal:`Courier`,cursive:`Times`,fantasy:`Times`,serif:`Times`},f=0;f<s.length;f++){if(this.pdf.internal.getFont(s[f],l,{noFallback:!0,disableWarning:!0})!==void 0){u=s[f];break}if(l===`bolditalic`&&this.pdf.internal.getFont(s[f],`bold`,{noFallback:!0,disableWarning:!0})!==void 0)u=s[f],l=`bold`;else if(this.pdf.internal.getFont(s[f],`normal`,{noFallback:!0,disableWarning:!0})!==void 0){u=s[f],l=`normal`;break}}if(u===``){for(var h=0;h<s.length;h++)if(d[s[h]]){u=d[s[h]];break}}u=u===``?`Times`:u,this.pdf.setFont(u,l)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,I.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,I.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=!!e}})};d.prototype.setLineDash=function(e){this.lineDash=e},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){b.call(this,`fill`,!1)},d.prototype.stroke=function(){b.call(this,`stroke`,!1)},d.prototype.beginPath=function(){this.path=[{type:`begin`}]},d.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw $J.error(`jsPDF.context2d.moveTo: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.moveTo`);var n=this.ctx.transform.applyToPoint(new o(e,t));this.path.push({type:`mt`,x:n.x,y:n.y}),this.ctx.lastPoint=new o(e,t)},d.prototype.closePath=function(){var e=new o(0,0),t=0;for(t=this.path.length-1;t!==-1;t--)if(this.path[t].type===`begin`&&hH(this.path[t+1])===`object`&&typeof this.path[t+1].x==`number`){e=new o(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:`close`}),this.ctx.lastPoint=new o(e.x,e.y)},d.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw $J.error(`jsPDF.context2d.lineTo: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.lineTo`);var n=this.ctx.transform.applyToPoint(new o(e,t));this.path.push({type:`lt`,x:n.x,y:n.y}),this.ctx.lastPoint=new o(n.x,n.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),b.call(this,null,!0)},d.prototype.quadraticCurveTo=function(e,t,n,r){if(isNaN(n)||isNaN(r)||isNaN(e)||isNaN(t))throw $J.error(`jsPDF.context2d.quadraticCurveTo: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.quadraticCurveTo`);var i=this.ctx.transform.applyToPoint(new o(n,r)),a=this.ctx.transform.applyToPoint(new o(e,t));this.path.push({type:`qct`,x1:a.x,y1:a.y,x:i.x,y:i.y}),this.ctx.lastPoint=new o(i.x,i.y)},d.prototype.bezierCurveTo=function(e,t,n,r,i,a){if(isNaN(i)||isNaN(a)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw $J.error(`jsPDF.context2d.bezierCurveTo: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.bezierCurveTo`);var s=this.ctx.transform.applyToPoint(new o(i,a)),c=this.ctx.transform.applyToPoint(new o(e,t)),l=this.ctx.transform.applyToPoint(new o(n,r));this.path.push({type:`bct`,x1:c.x,y1:c.y,x2:l.x,y2:l.y,x:s.x,y:s.y}),this.ctx.lastPoint=new o(s.x,s.y)},d.prototype.arc=function(e,t,n,r,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i))throw $J.error(`jsPDF.context2d.arc: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.arc`);if(a=!!a,!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new o(e,t));e=s.x,t=s.y;var c=this.ctx.transform.applyToPoint(new o(0,n)),l=this.ctx.transform.applyToPoint(new o(0,0));n=Math.sqrt((c.x-l.x)**2+(c.y-l.y)**2)}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:`arc`,x:e,y:t,radius:n,startAngle:r,endAngle:i,counterclockwise:a})},d.prototype.arcTo=function(e,t,n,r,i){throw Error(`arcTo not implemented.`)},d.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw $J.error(`jsPDF.context2d.rect: Invalid arguments`,arguments),Error(`Invalid arguments passed to
127jsPDF.context2d.rect`);this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},d.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw $J.error(`jsPDF.context2d.fillRect: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.fillRect`);if(!p.call(this)){var i={};this.lineCap!==`butt`&&(i.lineCap=this.lineCap,this.lineCap=`butt`),this.lineJoin!==`miter`&&(i.lineJoin=this.lineJoin,this.lineJoin=`miter`),this.beginPath(),this.rect(e,t,n,r),this.fill(),i.hasOwnProperty(`lineCap`)&&(this.lineCap=i.lineCap),i.hasOwnProperty(`lineJoin`)&&(this.lineJoin=i.lineJoin)}},d.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw $J.error(`jsPDF.context2d.strokeRect: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.strokeRect`);m.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},d.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw $J.error(`jsPDF.context2d.clearRect: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.clearRect`);this.ignoreClearRect||(this.fillStyle=`#ffffff`,this.fillRect(e,t,n,r))},d.prototype.save=function(e){e=typeof e!=`boolean`||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out(`q`);if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},d.prototype.restore=function(e){e=typeof e!=`boolean`||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out(`Q`);this.pdf.setPage(t),e&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw Error(`toDataUrl not implemented.`)};var f=function(e){var t,n,r,i;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,r=0,i=0;else{var a=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(a!==null)t=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),i=1;else if((a=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e))!==null)t=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),i=parseFloat(a[4]);else{if(i=1,typeof e==`string`&&e.charAt(0)!==`#`){var o=new iY(e);e=o.ok?o.toHex():`#000000`}e.length===4?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,r=e.substring(3,4),r+=r):(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:t,g:n,b:r,a:i,style:e}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},m=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||typeof e!=`string`)throw $J.error(`jsPDF.context2d.fillText: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.fillText`);if(r=isNaN(r)?void 0:r,!p.call(this)){var i=P(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;O.call(this,{text:e,x:t,y:n,scale:a,angle:i,align:this.textAlign,maxWidth:r})}},d.prototype.strokeText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||typeof e!=`string`)throw $J.error(`jsPDF.context2d.strokeText: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.strokeText`);if(!m.call(this)){r=isNaN(r)?void 0:r;var i=P(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;O.call(this,{text:e,x:t,y:n,scale:a,renderingMode:`stroke`,angle:i,align:this.textAlign,maxWidth:r})}},d.prototype.measureText=function(e){if(typeof e!=`string`)throw $J.error(`jsPDF.context2d.measureText: Invalid arguments`,arguments),Error(`Invalid arguments passed to
127jsPDF.context2d.measureText`);var t=this.pdf,n=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),i=t.getStringUnitWidth(e)*r/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:i*=Math.round(96*n/72*1e4)/1e4})},d.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw $J.error(`jsPDF.context2d.scale: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.scale`);var n=new c(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.rotate=function(e){if(isNaN(e))throw $J.error(`jsPDF.context2d.rotate: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.rotate`);var t=new c(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},d.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw $J.error(`jsPDF.context2d.translate: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.translate`);var n=new c(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.transform=function(e,t,n,r,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a))throw $J.error(`jsPDF.context2d.transform: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.transform`);var o=new c(e,t,n,r,i,a);this.ctx.transform=this.ctx.transform.multiply(o)},d.prototype.setTransform=function(e,t,n,r,i,a){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,a=isNaN(a)?0:a,this.ctx.transform=new c(e,t,n,r,i,a)};var h=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(e,t,n,r,i,a,o,l,u){var d=this.pdf.getImageProperties(e),f=1,p=1,m=1,_=1;r!==void 0&&l!==void 0&&(m=l/r,_=u/i,f=d.width/r*l/r,p=d.height/i*u/i),a===void 0&&(a=t,o=n,t=0,n=0),r!==void 0&&l===void 0&&(l=r,u=i),r===void 0&&l===void 0&&(l=d.width,u=d.height);var b=this.ctx.transform.decompose(),S=P(b.rotate.shx),C=new c,w=(C=(C=(C=C.multiply(b.translate)).multiply(b.skew)).multiply(b.scale)).applyToRectangle(new s(a-t*m,o-n*_,r*f,i*p));if(this.autoPaging){for(var T,E=g.call(this,w),D=[],O=0;O<E.length;O+=1)D.indexOf(E[O])===-1&&D.push(E[O]);y(D);for(var k=D[0],A=D[D.length-1],j=k;j<A+1;j++){this.pdf.setPage(j);var M=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],N=j===1?this.posY+this.margin[0]:this.margin[0],ee=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],F=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],I=j===1?0:ee+(j-2)*F;if(this.ctx.clip_path.length!==0){var te=this.path;T=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(T,this.posX+this.margin[3],-I+N+this.ctx.prevPageLastElemOffset),x.call(this,`fill`,!0),this.path=te}var L=JSON.parse(JSON.stringify(w));L=v([L],this.posX+this.margin[3],-I+N+this.ctx.prevPageLastElemOffset)[0];var ne=(j>k||j<A)&&h.call(this);ne&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],M,F,null).clip().discardPath()),this.pdf.addImage(e,`JPEG`,L.x,L.y,L.w,L.h,null,null,S),ne&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(e,`JPEG`,w.x,w.y,w.w,w.h,null,null,S)};var g=function(e,t,n){var r=[];t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case`mt`:case`lt`:r.push(Math.floor((e.y+i)/n)+1);break;case`arc`:r.push(Math.floor((e.y+i-e.radius)/n)+1),r.push(Math.floor((e.y+i+e.radius)/n)+1);break;case`qct`:var a=ee(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);r.push(Math.floor((a.y+i)/n)+1),r.push(Math.floor((a.y+a.h+i)/n)+1);break;case`bct`:var o=F(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);r.push(Math.floor((o.y+i)/n)+1),r.push(Math.floor((o.y+o.h+i)/n)+1);break;case`rect`:r.push(Math.floor((e.y+i)/n)+1),r.push(Math.floor((e.y+e.h+i)/n)+1)}for(var s=0;s<r.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<r[s];)_.call(this);return r},_=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,a=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=a},v=function(e,t,n){for(var r=0;r<e.length;r++)switch(e[r].type){case`bct`:e[r].x2+=t,e[r].y2+=n;case`qct`:e[r].x1+=t,e[r].y1+=n;default:e[r].x+=t,e[r].y+=n}return e},y=function(e){return e.sort(function(e,t){return e-t})},b=function(e,t){var n=this.fillStyle,r=this.strokeStyle,i=this.lineCap,a=this.lineWidth,o=Math.abs(a*this.ctx.transform.scaleX),s=this.lineJoin;if(this.autoPaging){for(var c,l,u=JSON.parse(JSON.stringify(this.path)),d=JSON.parse(JSON.stringify(this.path)),f=[],p=0;p<d.length;p++)if(d[p].x!==void 0)for(var m=g.call(this,d[p]),b=0;b<m.length;b+=1)f.indexOf(m[b])===-1&&f.push(m[b]);for(var S=0;S<f.length;S++)for(;this.pdf.internal.getNumberOfPages()<f[S];)_.call(this);y(f);for(var C=f[0],w=f[f.length-1],T=C;T<w+1;T++){this.pdf.setPage(T),this.fillStyle=n,this.strokeStyle=r,this.lineCap=i,this.lineWidth=o,this.lineJoin=s;var E=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],D=T===1?this.posY+this.margin[0]:this.margin[0],O=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],A=T===1?0:O+(T-2)*k;if(this.ctx.clip_path.length!==0){var j=this.path;c=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(c,this.posX+this.margin[3],-A+D+this.ctx.prevPageLastElemOffset),x.call(this,e,!0),this.path=j}if(l=JSON.parse(JSON.stringify(u)),this.path=v(l,this.posX+this.margin[3],-A+D+this.ctx.prevPageLastElemOffset),!1===t||T===0){var M=(T>C||T<w)&&h.call(this);M&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],E,k,null).clip().discardPath()),x.call(this,e,t),M&&this.pdf.restoreGraphicsState()}this.lineWidth=a}this.path=u}else this.lineWidth=o,x.call(this,e,t),this.lineWidth=a},x=function(e,t){if((e!==`stroke`||t||!m.call(this))&&(e===`stroke`||t||!p.call(this))){for(var n,r,i=[],a=this.path,o=0;o<a.length;o++){var s=a[o];switch(s.type){case`begin`:i.push({begin:!0}
vendor: 5,892 bytes, line 127
127);break;case`close`:i.push({close:!0});break;case`mt`:i.push({start:s,deltas:[],abs:[]});break;case`lt`:var c=i.length;if(a[o-1]&&!isNaN(a[o-1].x)&&(n=[s.x-a[o-1].x,s.y-a[o-1].y],c>0)){for(;c>=0;c--)if(!0!==i[c-1].close&&!0!==i[c-1].begin){i[c-1].deltas.push(n),i[c-1].abs.push(s);break}}break;case`bct`:n=[s.x1-a[o-1].x,s.y1-a[o-1].y,s.x2-a[o-1].x,s.y2-a[o-1].y,s.x-a[o-1].x,s.y-a[o-1].y],i[i.length-1].deltas.push(n);break;case`qct`:var l=a[o-1].x+2/3*(s.x1-a[o-1].x),u=a[o-1].y+2/3*(s.y1-a[o-1].y),d=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),h=s.x,g=s.y;n=[l-a[o-1].x,u-a[o-1].y,d-a[o-1].x,f-a[o-1].y,h-a[o-1].x,g-a[o-1].y],i[i.length-1].deltas.push(n);break;case`arc`:i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=t?null:e===`stroke`?`stroke`:`fill`;for(var _=!1,v=0;v<i.length;v++)if(i[v].arc)for(var y=i[v].abs,b=0;b<y.length;b++){var x=y[b];x.type===`arc`?w.call(this,x.x,x.y,x.radius,x.startAngle,x.endAngle,x.counterclockwise,void 0,t,!_):k.call(this,x.x,x.y),_=!0}else if(!0===i[v].close)this.pdf.internal.out(`h`),_=!1;else if(!0!==i[v].begin){var S=i[v].start.x,C=i[v].start.y;A.call(this,i[v].deltas,S,C),_=!0}r&&T.call(this,r),t&&E.call(this)}},S=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case`bottom`:return e-n;case`top`:return e+t-n;case`hanging`:return e+t-2*n;case`middle`:return e+t/2-n;default:return e}},C=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return this.colorStops.length===0?`#000000`:this.colorStops[0][1]},e.isCanvasGradient=!0,e},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var w=function(e,t,n,r,i,a,o,s,c){for(var l=M.call(this,n,r,i,a),u=0;u<l.length;u++){var d=l[u];u===0&&(c?D.call(this,d.x1+e,d.y1+t):k.call(this,d.x1+e,d.y1+t)),j.call(this,e,t,d.x2,d.y2,d.x3,d.y3,d.x4,d.y4)}s?E.call(this):T.call(this,o)},T=function(e){switch(e){case`stroke`:this.pdf.internal.out(`S`);break;case`fill`:this.pdf.internal.out(`f`)}},E=function(){this.pdf.clip(),this.pdf.discardPath()},D=function(e,t){this.pdf.internal.out(n(e)+` `+r(t)+` m`)},O=function(e){var t;switch(e.align){case`right`:case`end`:t=`right`;break;case`center`:t=`center`;break;default:t=`left`}var n,r,i,a=this.pdf.getTextDimensions(e.text),l=S.call(this,e.y),u=C.call(this,l)-a.h,d=this.ctx.transform.applyToPoint(new o(e.x,l));if(this.autoPaging){var f=this.ctx.transform.decompose(),p=new c;p=(p=(p=p.multiply(f.translate)).multiply(f.skew)).multiply(f.scale);for(var m=this.ctx.transform.applyToRectangle(new s(e.x,l,a.w,a.h)),_=p.applyToRectangle(new s(e.x,u,a.w,a.h)),b=g.call(this,_),w=[],T=0;T<b.length;T+=1)w.indexOf(b[T])===-1&&w.push(b[T]);y(w);for(var E=w[0],D=w[w.length-1],O=E;O<D+1;O++){this.pdf.setPage(O);var k=O===1?this.posY+this.margin[0]:this.margin[0],A=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],j=this.pdf.internal.pageSize.height-this.margin[2],M=j-this.margin[0],N=this.pdf.internal.pageSize.width-this.margin[1],P=N-this.margin[3],ee=O===1?0:A+(O-2)*M;if(this.ctx.clip_path.length!==0){var F=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(n,this.posX+this.margin[3],-1*ee+k),x.call(this,`fill`,!0),this.path=F}var I=v([JSON.parse(JSON.stringify(_))],this.posX+this.margin[3],-ee+k+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),i=this.lineWidth,this.lineWidth=i*e.scale);var te=this.autoPaging!==`text`;if(te||I.y+I.h<=j){if(te||I.y>=k&&I.x<=N){var L=te?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||N-I.x)[0],ne=v([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-ee+k+this.ctx.prevPageLastElemOffset)[0],R=te&&(O>E||O<D)&&h.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],P,M,null).clip().discardPath()),this.pdf.text(L,ne.x,ne.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),R&&this.pdf.restoreGraphicsState()}}else I.y<j&&(this.ctx.prevPageLastElemOffset+=j-I.y);e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=i)}}else e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),i=this.lineWidth,this.lineWidth=i*e.scale),this.pdf.text(e.text,d.x+this.posX,d.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=i)},k=function(e,t,i,a){i=i||0,a=a||0,this.pdf.internal.out(n(e+i)+` `+r(t+a)+` l`)},A=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},j=function(e,n,r,o,s,c,l,u){this.pdf.internal.out([t(i(r+e)),t(a(o+n)),t(i(s+e)),t(a(c+n)),t(i(l+e)),t(a(u+n)),`c`].join(` `))},M=function(e,t,n,r){for(var i=2*Math.PI,a=Math.PI/2;t>n;)t-=i;var o=Math.abs(n-t);o<i&&r&&(o=i-o);for(var s=[],c=r?-1:1,l=t;o>1e-5;){var u=l+c*Math.min(o,a);s.push(N.call(this,e,l,u)),o-=Math.abs(u-l),l=u}return s},N=function(e,t,n){var r=(n-t)/2,i=e*Math.cos(r),a=e*Math.sin(r),o=i,s=-a,c=o*o+s*s,l=c+o*i+s*a,u=4/3*(Math.sqrt(2*c*l)-l)/(o*a-s*i),d=o-u*s,f=s+u*o,p=d,m=-f,h=r+t,g=Math.cos(h),_=Math.sin(h);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:d*g-f*_,y2:d*_+f*g,x3:p*g-m*_,y3:p*_+m*g,x4:e*Math.cos(n),y4:e*Math.sin(n)}},P=function(e){return 180*e/Math.PI},ee=function(e,t,n,r,i,a){var o=e+.5*(n-e),c=t+.5*(r-t),l=i+.5*(n-i),u=a+.5*(r-a),d=Math.min(e,i,o,l),f=Math.max(e,i,o,l),p=Math.min(t,a,c,u),m=Math.max(t,a,c,u);return new s(d,p,f-d,m-p)},F=function(e,t,n,r,i,a,o,c){var l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=n-e,w=r-t,T=i-n,E=a-r,D=o-i,O=c-a;for(u=0;
127u<41;u++)_=(h=(d=e+(l=u/40)*C)+l*((p=n+l*T)-d))+l*(p+l*(i+l*D-p)-h),v=(g=(f=t+l*w)+l*((m=r+l*E)-f))+l*(m+l*(a+l*O-m)-g),u==0?(y=_,b=v,x=_,S=v):(y=Math.min(y,_),b=Math.min(b,v),x=Math.max(x,_),S=Math.max(S,v));return new s(Math.round(y),Math.round(b),Math.round(x-y),Math.round(S-b))},I=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}})(AY.API),function(e){var t=function(e){var t,n,r,i,a,o,s,c,l,u;for(/[^\x00-\xFF]/.test(e),n=[],r=0,i=(e+=t=`\0\0\0\0`.slice(e.length%4||4)).length;i>r;r+=4)(a=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))===0?n.push(122):(o=(a=((a=((a=((a=(a-(u=a%85))/85)-(l=a%85))/85)-(c=a%85))/85)-(s=a%85))/85)%85,n.push(o+33,s+33,c+33,l+33,u+33));return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+`~>`},n=function(e){var t,n,r,i,a,o=String,s=`length`,c=255,l=`charCodeAt`,u=`slice`,d=`replace`;for(e[u](-2),e=e[u](0,-2)[d](/\s/g,``)[d](`z`,`!!!!!`),r=[],i=0,a=(e+=t=`uuuuu`[u](e[s]%5||5))[s];a>i;i+=5)n=52200625*(e[l](i)-33)+614125*(e[l](i+1)-33)+7225*(e[l](i+2)-33)+85*(e[l](i+3)-33)+(e[l](i+4)-33),r.push(c&n>>24,c&n>>16,c&n>>8,c&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[s]),o.fromCharCode.apply(o,r)},r=function(e){return e.split(``).map(function(e){return(`0`+e.charCodeAt().toString(16)).slice(-2)}).join(``)+`>`},i=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((e=e.replace(/\s/g,``)).indexOf(`>`)!==-1&&(e=e.substr(0,e.indexOf(`>`))),e.length%2&&(e+=`0`),!1===t.test(e))return``;for(var n=``,r=0;r<e.length;r+=2)n+=String.fromCharCode(`0x`+(e[r]+e[r+1]));return n},a=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=$H(t)).reduce(function(e,t){return e+String.fromCharCode(t)},``)};e.processDataByFilters=function(e,o){var s=0,c=e||``,l=[];for(typeof(o=o||[])==`string`&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case`ASCII85Decode`:case`/ASCII85Decode`:c=n(c),l.push(`/ASCII85Encode`);break;case`ASCII85Encode`:case`/ASCII85Encode`:c=t(c),l.push(`/ASCII85Decode`);break;case`ASCIIHexDecode`:case`/ASCIIHexDecode`:c=i(c),l.push(`/ASCIIHexEncode`);break;case`ASCIIHexEncode`:case`/ASCIIHexEncode`:c=r(c),l.push(`/ASCIIHexDecode`);break;case`FlateEncode`:case`/FlateEncode`:c=a(c),l.push(`/FlateDecode`);break;default:throw Error(`The filter: "`+o[s]+`" is not implemented`)}return{data:c,reverseChain:l.reverse().join(` `)}}}(AY.API),function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n=typeof n==`function`?n:function(){};var r=void 0;try{r=function(e,t,n){var r=new XMLHttpRequest,i=0,a=function(e){var t=e.length,n=[],r=String.fromCharCode;for(i=0;i<t;i+=1)n.push(r(255&e.charCodeAt(i)));return n.join(``)};if(r.open(`GET`,e,!t),r.overrideMimeType(`text/plain; charset=x-user-defined`),!1===t&&(r.onload=function(){r.status===200?n(a(this.responseText)):n(void 0)}),r.send(null),t&&r.status===200)return a(r.responseText)}(e,t,n)}catch{}return r}(e,t,n)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(AY.API),function(e){function n(){return(ZJ.html2canvas?Promise.resolve(ZJ.html2canvas):ie(()=>import(`./html2canvas-chunk.8_WCJqiX.js`).then(e=>t(e.default)),__vite__mapDeps([0,1]))).catch(function(e){return Promise.reject(Error(`Could not load html2canvas: `+e))}).then(function(e){return e.default?e.default:e})}function r(){return(ZJ.DOMPurify?Promise.resolve(ZJ.DOMPurify):ie(()=>import(`./purify.es-chunk.DbmNsQR-.js`),[])).catch(function(e){return Promise.reject(Error(`Could not load dompurify: `+e))}).then(function(e){return e.default?e.default:e})}var i=function(e){var t=hH(e);return t===`undefined`?`undefined`:t===`string`||e instanceof String?`string`:t===`number`||e instanceof Number?`number`:t===`function`||e instanceof Function?`function`:e&&e.constructor===Array?`array`:e&&e.nodeType===1?`element`:t===`object`?`object`:`unknown`},a=function(e,t){var n=document.createElement(e);for(var r in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[r]=t.style[r];return n}
vendor: 25,543 bytes, lines 127-133
127,o=function e(t,n){for(var r=t.nodeType===3?document.createTextNode(t.nodeValue):t.cloneNode(!1),i=t.firstChild;i;i=i.nextSibling)!0!==n&&i.nodeType===1&&i.nodeName===`SCRIPT`||r.appendChild(e(i,n));return t.nodeType===1&&(t.nodeName===`CANVAS`?(r.width=t.width,r.height=t.height,r.getContext(`2d`).drawImage(t,0,0)):t.nodeName!==`TEXTAREA`&&t.nodeName!==`SELECT`||(r.value=t.value),r.addEventListener(`load`,function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft},!0)),r},s=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(e,t){return e.__proto__=t||s.prototype,e},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:`file.pdf`,margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:`transparent`}},s.prototype.from=function(e,t){return this.then(function(){switch(t=t||function(e){switch(i(e)){case`string`:return`string`;case`element`:return e.nodeName.toLowerCase()===`canvas`?`canvas`:`element`;default:return`unknown`}}(e),t){case`string`:return this.then(r).then(function(t){return this.set({src:a(`div`,{innerHTML:e,dompurify:t})})});case`element`:return this.set({src:e});case`canvas`:return this.set({canvas:e});case`img`:return this.set({img:e});default:return this.error(`Unknown source type.`)}})},s.prototype.to=function(e){switch(e){case`container`:return this.toContainer();case`canvas`:return this.toCanvas();case`img`:return this.toImg();case`pdf`:return this.toPdf();default:return this.error(`Invalid target.`)}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error(`Cannot duplicate - no source HTML.`)},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e={position:`relative`,display:`inline-block`,width:(typeof this.opt.width!=`number`||isNaN(this.opt.width)||typeof this.opt.windowWidth!=`number`||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+`px`,left:0,right:0,top:0,margin:`auto`,backgroundColor:this.opt.backgroundColor},t=o(this.prop.src,this.opt.html2canvas.javascriptEnabled);t.tagName===`BODY`&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+`px`),this.prop.overlay=a(`div`,{className:`html2pdf__overlay`,style:{position:`fixed`,overflow:`hidden`,zIndex:1e3,left:`-100000px`,right:0,bottom:0,top:0}}),this.prop.container=a(`div`,{className:`html2pdf__container`,style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(a(`div`,{style:{clear:`both`,border:`0 none transparent`,margin:0,padding:0,height:0}})),this.prop.container.style.float=`none`,this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position=`relative`,this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+`px`})},s.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(n).then(function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(n).then(function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,r=typeof this.opt.width!=`number`||isNaN(this.opt.width)||typeof this.opt.windowWidth!=`number`||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:`#ffffff`,imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.onrendered,t.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var a=0;a<n.length;++a){var o=n[a],s=o.src.find(function(e){return e.format===`truetype`});s&&t.addFont(s.url,o.ref.name,o.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=i.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,t.context2d.save(!0),e(this.prop.container,i)}).then(function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL(`image/`+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement(`img`),this.prop.img.src=e})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(e,t,n){return(n=n||`pdf`).toLowerCase()===`img`||n.toLowerCase()===`image`?this.outputImg(e,t):this.outputPdf(e,t)},s.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(e,t)})},s.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){case void 0:case`img`:return this.prop.img;case`datauristring`:case`dataurlstring`:return this.prop.img.src;case`datauri`:case`dataurl`:return document.location.href=this.prop.img.src;default:throw`Image output type "`+e+`" is not supported.`}})},s.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(e){if(i(e)!==`object`)return this;var t=Object.keys(e||{}).map(function(t){if(t in s.template.prop)return function(){this.prop[t]=e[t]};switch(t){case`margin`:return this.setMargin.bind(this,e.margin);case`jsPDF`:return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case`pageSize`:return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},s.prototype.get=function(e,t){return this.then(function(){var n=e in s.template.prop?this.prop[e]:this.opt[e];return t?t(n):n})},s.prototype.setMargin=function(e){return this.then(function(){switch(i(e)){case`number`:e=[e,e,e,e];case`array`:if(e.length===2&&(e=[e[0],e[1],e[0],e[1]]),e.length===4)break;default:return this.error(`Invalid margin array.`)}this.opt.margin=e}).then(this.setPageSize)},s.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then(function(){(e=e||AY.getPageSize(this.opt.jsPDF)).hasOwnProperty(`inner`)||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},s.prototype.setProgress=function(e,t,n,r){return e!=null&&(this.progress.val=e),t!=null&&(this.progress.state=t),n!=null&&(this.progress.n=n),r!=null&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},s.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(e){return n.updateProgress(1),e})})},s.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then;var r=this;e&&(e=e.bind(r)),t&&(t=t.bind(r));var i=Promise.toString().indexOf(`[native code]`)!==-1&&Promise.name===`Promise`?r:s.convert(Object.assign({},r),Promise.prototype),a=n.call(i,e,t);return s.convert(a,r.__proto__)},s.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},s.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},s.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return s.convert(t,this)},s.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},s.prototype.error=function(e){return this.then(function(){throw Error(e)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,AY.getPageSize=function(e,t,n){if(hH(e)===`object`){var r=e;e=r.orientation,t=r.unit||t,n=r.format||n}t=t||`mm`,n=n||`a4`,e=(``+(e||`P`)).toLowerCase();var i,a=(``+n).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case`pt`:i=1;break;case`mm`:i=72/25.4;break;case`cm`:i=72/2.54;break;case`in`:i=72;break;case`px`:i=.75;break;case`pc`:case`em`:i=12;break;case`ex`:i=6;break;default:throw`Invalid unit: `+t}var s,c=0,l=0;if(o.hasOwnProperty(a))c=o[a][1]/i,l=o[a][0]/i;else try{c=n[1],l=n[0]}catch{throw Error(`Invalid format: `+n)}if(e===`p`||e===`portrait`)e=`p`,l>c&&(s=l,l=c,c=s);else{if(e!==`l`&&e!==`landscape`)throw`Invalid orientation: `+e;e=`l`,c>l&&(s=l,l=c,c=s)}return{width:l,height:c,unit:t,k:i,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(TX):null;var n=new s(t);return t.worker?n:n.from(e).doCallback()}}(AY.API),AY.API.addJS=function(e){var t,n,r=function(e){for(var t=``,n=0;n<e.length;n++){var r=e[n];if(r===`(`||r===`)`){for(var i=0,a=n-1;a>=0&&e[a]===`\\`;a--)i++;t+=i%2==0?`\\`+r:r}else t+=r}return t}(e);return this.internal.events.subscribe(`postPutResources`,function(){t=this.internal.newObject(),this.internal.out(`<<`),this.internal.out(`/Names [(EmbeddedJS) `+(t+1)+` 0 R]`),this.internal.out(`>>`),this.internal.out(`endobj`),n=this.internal.newObject(),this.internal.out(`<<`),this.internal.out(`/S /JavaScript`),this.internal.out(`/JS (`+r+`)`),this.internal.out(`>>`),this.internal.out(`endobj`)}),this.internal.events.subscribe(`putCatalog`,function(){t!==void 0&&n!==void 0&&this.internal.out(`/Names <</JavaScript `+t+` 0 R>>`)}),this},function(e){var t;e.events.push([`postPutResources`,function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),i=0;i<r.length;i++){var a=r[i],o=n.exec(a);if(o!=null){var s=o[1];e.internal.newObjectDeferredBegin(s,!1)}e.internal.write(a)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,l=[];for(i=0;i<c;i++){var u=e.internal.newObject();l.push(u);var d=e.internal.getPageInfo(i+1);e.internal.write(`<< /D[`+d.objId+` 0 R /XYZ null null null]>> endobj`)}var f=e.internal.newObject();for(e.internal.write(`<< /Names [ `),i=0;i<l.length;i++)e.internal.write(`(page_`+(i+1)+`)`+l[i]+` 0 R`);e.internal.write(` ] >>`,`endobj`),t=e.internal.newObject(),e.internal.write(`<< /Dests `+f+` 0 R`),e.internal.write(`>>`,`endobj`)}}]),e.events.push([`putCatalog`,function(){var e=this;e.outline.root.children.length>0&&(e.internal.write(`/Outlines`,this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write(`/Names `+t+` 0 R`))}]),e.events.push([`initialized`,function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return e??(e=this.root),e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val=``,this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line(`/Type /Outlines`),e.children.length>0&&(this.line(`/First `+this.makeRef(e.children[0])),this.line(`/Last `+this.makeRef(e.children[e.children.length-1]))),this.line(`/Count `+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var i=t.children[r];this.objStart(i),this.line(`/Title `+this.makeString(i.title)),this.line(`/Parent `+this.makeRef(t)),r>0&&this.line(`/Prev `+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line(`/Next `+this.makeRef(t.children[r+1])),i.children.length>0&&(this.line(`/First `+this.makeRef(i.children[0])),this.line(`/Last `+this.makeRef(i.children[i.children.length-1])));var a=this.count=this.count_r({count:0},i);if(a>0&&this.line(`/Count `+a),i.options&&i.options.pageNumber){var o=e.internal.getPageInfo(i.options.pageNumber);this.line(`/Dest [`+o.objId+` 0 R /XYZ 0 `+n(0)+` 0]`)}this.objEnd()}for(var s=0;s<t.children.length;s++)this.renderItems(t.children[s])},e.outline.line=function(e){this.ctx.val+=e+`\r 128`},e.outline.makeRef=function(e){return e.id+` 0 R`},e.outline.makeString=function(t){return`(`+e.internal.pdfEscape(t)+`)`},e.outline.objStart=function(e){this.ctx.val+=`\r 129`+e.id+` 0 obj\r 130<<\r 131`},e.outline.objEnd=function(){this.ctx.val+=`>> \r 132endobj\r 133`},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(AY.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,r,i,a,o){var s,c=this.decode.DCT_DECODE,l=null;if(typeof e==`string`||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=a||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,s=function(e){for(var n,r=256*e.charCodeAt(4)+e.charCodeAt(5),i=e.length,a={width:0,height:0,numcomponents:1},o=4;o<i;o+=2){if(o+=r,t.indexOf(e.charCodeAt(o+1))!==-1){n=256*e.charCodeAt(o+5)+e.charCodeAt(o+6),a={width:256*e.charCodeAt(o+7)+e.charCodeAt(o+8),height:n,numcomponents:e.charCodeAt(o+9)};break}r=256*e.charCodeAt(o+2)+e.charCodeAt(o+3)}return a}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),s.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}l={data:e,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:c,index:n,alias:r}}return l}}(AY.API),AY.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,a=XJ(e,{checkCrc:!0}),o=a.width,s=a.height,c=a.channels,l=a.palette,u=a.depth;i=l&&c===1?function(e){for(var t=e.width,n=e.height,r=e.data,i=e.palette,a=e.depth,o=!1,s=[],c=[],l=void 0,u=!1,d=0,f=0;f<i.length;f++){var p=oU(i[f],4),m=p[0],h=p[1],g=p[2],_=p[3];s.push(m,h,g),_!=null&&(_===0?(d++,c.length<1&&c.push(f)):_<255&&(u=!0))}if(u||d>1){o=!0,c=void 0;var v=t*n;l=new Uint8Array(v);for(var y=new DataView(r.buffer),b=0;b<v;b++){var x=oU(i[qX(y,b,a)],4)[3];l[b]=x}}else d===0&&(c=void 0);return{colorSpace:`Indexed`,colorsPerPixel:1,sMaskBitsPerComponent:o?8:void 0,colorBytes:r,alphaBytes:l,needSMask:o,palette:s,mask:c}}(a):c===2||c===4?function(e){for(var t=e.data,n=e.width,r=e.height,i=e.channels,a=e.depth,o=i===2?`DeviceGray`:`DeviceRGB`,s=i-1,c=n*r,l=s,u=c*l,d=1*c,f=Math.ceil(u*a/8),p=Math.ceil(d*a/8),m=new Uint8Array(f),h=new Uint8Array(p),g=new DataView(t.buffer),_=new DataView(m.buffer),v=new DataView(h.buffer),y=!1,b=0;b<c;b++){for(var x=b*i,S=0;S<l;S++)JX(_,qX(g,x+S,a),b*l+S,a);var C=qX(g,x+l,a);C<(1<<a)-1&&(y=!0),JX(v,C,1*b,a)}return{colorSpace:o,colorsPerPixel:s,sMaskBitsPerComponent:y?a:void 0,colorBytes:m,alphaBytes:h,needSMask:y}}(a):function(e){var t=e.data,n=e.channels===1?`DeviceGray`:`DeviceRGB`;return{colorSpace:n,colorsPerPixel:n===`DeviceGray`?1:3,colorBytes:t instanceof Uint16Array?function(e){for(var t=e.length,n=new Uint8Array(2*t),r=new DataView(n.buffer,n.byteOffset,n.byteLength),i=0;i<t;i++)r.setUint16(2*i,e[i],!1);return n}(t):t,needSMask:!1}}(a);var d,f,p,m=i,h=m.colorSpace,g=m.colorsPerPixel,_=m.sMaskBitsPerComponent,v=m.colorBytes,y=m.alphaBytes,b=m.needSMask,x=m.palette,S=m.mask,C=null;return r!==AY.API.image_compression.NONE&&typeof $H==`function`?(C=function(e){var t;switch(e){case AY.API.image_compression.FAST:t=11;break;case AY.API.image_compression.MEDIUM:t=13;break;case AY.API.image_compression.SLOW:t=14;break;default:t=12}return t}(r),d=this.decode.FLATE_DECODE,f=`/Predictor ${C} /Colors ${g} /BitsPerComponent ${u} /Columns ${o}`,e=zX(v,Math.ceil(o*g*u/8),g,u,r),b&&(p=zX(y,Math.ceil(o*_/8),1,_,r))):(d=void 0,f=void 0,e=v,b&&(p=y)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:n,data:e,index:t,filter:d,decodeParameters:f,transparency:S,palette:x,sMask:p,predictor:C,width:o,height:s,bitsPerComponent:u,sMaskBitsPerComponent:_,colorSpace:h}}},function(e){e.processGIF89A=function(t,n,r,i){var a=new XX(t),o=a.width,s=a.height,c=[];a.decodeAndBlitFrameRGBA(0,c);var l={data:c,width:o,height:s},u=new QX(100).encode(l,100);return e.processJPEG.call(this,u,n,r,i)},e.processGIF87A=e.processGIF89A}(AY.API),$X.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},$X.prototype.parseBGR=function(){this.pos=this.offset;var e=`bit`+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw Error(`Image dimensions exceed 512MB, which is too large.`);this.data=new Uint8Array(t);try{this[e]()}catch(e){$J.log(`bit decode error:`+e)}},$X.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var c=this.palette[a>>7-s&1];this.data[o+4*s]=c.blue,this.data[o+4*s+1]=c.green,this.data[o+4*s+2]=c.red,this.data[o+4*s+3]=255}n!==0&&(this.pos+=4-n)}},$X.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=a>>4,c=15&a,l=this.palette[s];if(this.data[o]=l.blue,this.data[o+1]=l.green,this.data[o+2]=l.red,this.data[o+3]=255,2*i+1>=this.width)break;l=this.palette[c],this.data[o+4]=l.blue,this.data[o+4+1]=l.green,this.data[o+4+2]=l.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},$X.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},$X.prototype.bit15=function(){for(var e=this.width%3,t=31,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,c=(a>>10&t)/t*255|0,l=a>>15?255:0,u=r*this.width*4+4*i;this.data[u]=c,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=l}this.pos+=e}},$X.prototype.bit16=function(){for(var e=this.width%3,t=31,n=63,r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,c=(o>>5&n)/n*255|0,l=(o>>11)/t*255|0,u=i*this.width*4+4*a;this.data[u]=l,this.data[u+1]=c,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},$X.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},$X.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},$X.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,i){var a=new $X(t,!1),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},l=new QX(100).encode(c,100);return e.processJPEG.call(this,l,n,r,i)}}(AY.API),eZ.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,i){var a=new eZ(t),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},l=new QX(100).encode(c,100);return e.processJPEG.call(this,l,n,r,i)}}(AY.API),AY.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,c=0,l=0;l<i;l+=4){var u=r[l],d=r[l+1],f=r[l+2],p=r[l+3];a[s++]=u,a[s++]=d,a[s++]=f,o[c++]=p}var m=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:m,index:t,alias:n,colorSpace:`DeviceRGB`,bitsPerComponent:8,width:e.width,height:e.height}},AY.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:`Afrikaans`,sq:`Albanian`,ar:`Arabic (Standard)`,"ar-DZ":`Arabic (Algeria)`,"ar-BH":`Arabic (Bahrain)`,"ar-EG":`Arabic (Egypt)`,"ar-IQ":`Arabic (Iraq)`,"ar-JO":`Arabic (Jordan)`,"ar-KW":`Arabic (Kuwait)`,"ar-LB":`Arabic (Lebanon)`,"ar-LY":`Arabic (Libya)`,"ar-MA":`Arabic (Morocco)`,"ar-OM":`Arabic (Oman)`,"ar-QA":`Arabic (Qatar)`,"ar-SA":`Arabic (Saudi Arabia)`,"ar-SY":`Arabic (Syria)`,"ar-TN":`Arabic (Tunisia)`,"ar-AE":`Arabic (U.A.E.)`,"ar-YE":`Arabic (Yemen)`,an:`Aragonese`,hy:`Armenian`,as:`Assamese`,ast:`Asturian`,az:`Azerbaijani`,eu:`Basque`,be:`Belarusian`,bn:`Bengali`,bs:`Bosnian`,br:`Breton`,bg:`Bulgarian`,my:`Burmese`,ca:`Catalan`,ch:`Chamorro`,ce:`Chechen`,zh:`Chinese`,"zh-HK":`Chinese (Hong Kong)`,"zh-CN":`Chinese (PRC)`,"zh-SG":`Chinese (Singapore)`,"zh-TW":`Chinese (Taiwan)`,cv:`Chuvash`,co:`Corsican`,cr:`Cree`,hr:`Croatian`,cs:`Czech`,da:`Danish`,nl:`Dutch (Standard)`,"nl-BE":`Dutch (Belgian)`,en:`English`,"en-AU":`English (Australia)`,"en-BZ":`English (Belize)`,"en-CA":`English (Canad
133a)`,"en-IE":`English (Ireland)`,"en-JM":`English (Jamaica)`,"en-NZ":`English (New Zealand)`,"en-PH":`English (Philippines)`,"en-ZA":`English (South Africa)`,"en-TT":`English (Trinidad & Tobago)`,"en-GB":`English (United Kingdom)`,"en-US":`English (United States)`,"en-ZW":`English (Zimbabwe)`,eo:`Esperanto`,et:`Estonian`,fo:`Faeroese`,fj:`Fijian`,fi:`Finnish`,fr:`French (Standard)`,"fr-BE":`French (Belgium)`,"fr-CA":`French (Canada)`,"fr-FR":`French (France)`,"fr-LU":`French (Luxembourg)`,"fr-MC":`French (Monaco)`,"fr-CH":`French (Switzerland)`,fy:`Frisian`,fur:`Friulian`,gd:`Gaelic (Scots)`,"gd-IE":`Gaelic (Irish)`,gl:`Galacian`,ka:`Georgian`,de:`German (Standard)`,"de-AT":`German (Austria)`,"de-DE":`German (Germany)`,"de-LI":`German (Liechtenstein)`,"de-LU":`German (Luxembourg)`,"de-CH":`German (Switzerland)`,el:`Greek`,gu:`Gujurati`,ht:`Haitian`,he:`Hebrew`,hi:`Hindi`,hu:`Hungarian`,is:`Icelandic`,id:`Indonesian`,iu:`Inuktitut`,ga:`Irish`,it:`Italian (Standard)`,"it-CH":`Italian (Switzerland)`,ja:`Japanese`,kn:`Kannada`,ks:`Kashmiri`,kk:`Kazakh`,km:`Khmer`,ky:`Kirghiz`,tlh:`Klingon`,ko:`Korean`,"ko-KP":`Korean (North Korea)`,"ko-KR":`Korean (South Korea)`,la:`Latin`,lv:`Latvian`,lt:`Lithuanian`,lb:`Luxembourgish`,mk:`North Macedonia`,ms:`Malay`,ml:`Malayalam`,mt:`Maltese`,mi:`Maori`,mr:`Marathi`,mo:`Moldavian`,nv:`Navajo`,ng:`Ndonga`,ne:`Nepali`,no:`Norwegian`,nb:`Norwegian (Bokmal)`,nn:`Norwegian (Nynorsk)`,oc:`Occitan`,or:`Oriya`,om:`Oromo`,fa:`Persian`,"fa-IR":`Persian/Iran`,pl:`Polish`,pt:`Portuguese`,"pt-BR":`Portuguese (Brazil)`,pa:`Punjabi`,"pa-IN":`Punjabi (India)`,"pa-PK":`Punjabi (Pakistan)`,qu:`Quechua`,rm:`Rhaeto-Romanic`,ro:`Romanian`,"ro-MO":`Romanian (Moldavia)`,ru:`Russian`,"ru-MO":`Russian (Moldavia)`,sz:`Sami (Lappish)`,sg:`Sango`,sa:`Sanskrit`,sc:`Sardinian`,sd:`Sindhi`,si:`Singhalese`,sr:`Serbian`,sk:`Slovak`,sl:`Slovenian`,so:`Somani`,sb:`Sorbian`,es:`Spanish`,"es-AR":`Spanish (Argentina)`,"es-BO":`Spanish (Bolivia)`,"es-CL":`Spanish (Chile)`,"es-CO":`Spanish (Colombia)`,"es-CR":`Spanish (Costa Rica)`,"es-DO":`Spanish (Dominican Republic)`,"es-EC":`Spanish (Ecuador)`,"es-SV":`Spanish (El Salvador)`,"es-GT":`Spanish (Guatemala)`,"es-HN":`Spanish (Honduras)`,"es-MX":`Spanish (Mexico)`,"es-NI":`Spanish (Nicaragua)`,"es-PA":`Spanish (Panama)`,"es-PY":`Spanish (Paraguay)`,"es-PE":`Spanish (Peru)`,"es-PR":`Spanish (Puerto Rico)`,"es-ES":`Spanish (Spain)`,"es-UY":`Spanish (Uruguay)`,"es-VE":`Spanish (Venezuela)`,sx:`Sutu`,sw:`Swahili`,sv:`Swedish`,"sv-FI":`Swedish (Finland)`,"sv-SV":`Swedish (Sweden)`,ta:`Tamil`,tt:`Tatar`,te:`Teluga`,th:`Thai`,tig:`Tigre`,ts:`Tsonga`,tn:`Tswana`,tr:`Turkish`,tk:`Turkmen`,uk:`Ukrainian`,hsb:`Upper Sorbian`,ur:`Urdu`,ve:`Venda`,vi:`Vietnamese`,vo:`Volapuk`,wa:`Walloon`,cy:`Welsh`,xh:`Xhosa`,ji:`Yiddish`,zu:`Zulu`}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe(`putCatalog`,function(){this.internal.write(`/Lang (`+this.internal.languageSettings.languageCode+`)`)}),this.internal.languageSettings.isSubscribed=!0)),this},NX=AY.API,PX=NX.getCharWidthsArray=function(e,t){var n,r,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,c=s.fof?s.fof:1,l=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=l.fof?l.fof:1,d=!1!==t.doKerning,f=0,p=e.length,m=0,h=s[0]||c,g=[];for(n=0;n<p;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString==`function`?g.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+1e3/a*o||0)/1e3):(f=d&&hH(l[r])===`object`&&!isNaN(parseInt(l[r][m],10))?l[r][m]/u:0,g.push((s[r]||h)/c+f)),m=r;return g},FX=NX.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return NX.processArabic&&(e=NX.processArabic(e)),typeof r.metadata.widthOfString==`function`?r.metadata.widthOfString(e,n,i)/n:PX.apply(this,arguments).reduce(function(e,t){return e+t},0)},IX=function(e,t,n,r){for(var i=[],a=0,o=e.length,s=0;
vendor: 2,299 bytes, lines 133-135
133a!==o&&s+t[a]<n;)s+=t[a],a++;i.push(e.slice(0,a));var c=a;for(s=0;a!==o;)s+t[a]>r&&(i.push(e.slice(c,a)),s=0,c=a),s+=t[a],a++;return c!==a&&i.push(e.slice(c,a)),i},LX=function(e,t,n){n||(n={});var r,i,a,o,s,c,l,u=[],d=[u],f=n.textIndent||0,p=0,m=0,h=e.split(` `),g=PX.apply(this,[` `,n])[0];if(c=n.lineIndent===-1?h[0].length+2:n.lineIndent||0){var _=Array(c).join(` `),v=[];h.map(function(e){(e=e.split(/\s*\n/)).length>1?v=v.concat(e.map(function(e,t){return(t&&e.length?` 134`:``)+e})):v.push(e[0])}),h=v,c=FX.apply(this,[_,n])}for(a=0,o=h.length;a<o;a++){var y=0;if(r=h[a],c&&r[0]==` 135`&&(r=r.substr(1),y=1),f+p+(m=(i=PX.apply(this,[r,n])).reduce(function(e,t){return e+t},0))>t||y){if(m>t){for(s=IX.apply(this,[r,i,t-(f+p),t]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);m=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(e,t){return e+t},0)}else u=[r];d.push(u),f=m+c,p=g}else u.push(r),f+=p+m,p=g}return l=c?function(e,t){return(t?_:``)+e.join(` `)}:function(e){return e.join(` `)},d.map(l)},NX.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle),n=`Unicode`;return t.metadata[n]?{widths:t.metadata[n].widths||{0:1},kerning:t.metadata[n].kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,c,l=[];for(s=0,c=r.length;s<c;s++)l=l.concat(LX.apply(this,[r[s],o,a]));return l},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t=`0123456789abcdef`,n=`klmnopqrstuvwxyz`,r={},i={},a=0;a<16;a++)r[n[a]]=t[a],i[t[a]]=n[a];var o=function(e){return`0x`+parseInt(e,10).toString(16)},s=e.__fontmetrics__.compress=function(e){var t,n,r,a,c=[`{`];for(var l in e){if(t=e[l],isNaN(parseInt(l,10))?n=`'`+l+`'`:(l=parseInt(l,10),n=(n=o(l).slice(2)).slice(0,-1)+i[n.slice(-1)]),typeof t==`number`)t<0?(r=o(t).slice(3),a=`-`):(r=o(t).slice(2),a=``),r=a+r.slice(0,-1)+i[r.slice(-1)];else{if(hH(t)!==`object`)throw Error(`Don't know what to do with value type `+hH
vendor: 15,976 bytes, line 135
135(t)+`.`);r=s(t)}c.push(n+r)}return c.push(`}`),c.join(``)},c=e.__fontmetrics__.uncompress=function(e){if(typeof e!=`string`)throw Error(`Invalid argument passed to uncompress.`);for(var t,n,i,a,o={},s=1,c=o,l=[],u=``,d=``,f=e.length-1,p=1;p<f;p+=1)(a=e[p])==`'`?t?(i=t.join(``),t=void 0):t=[]:t?t.push(a):a==`{`?(l.push([c,i]),c={},i=void 0):a==`}`?((n=l.pop())[0][n[1]]=c,i=void 0,c=n[0]):a==`-`?s=-1:i===void 0?r.hasOwnProperty(a)?(u+=r[a],i=parseInt(u,16)*s,s=1,u=``):u+=a:r.hasOwnProperty(a)?(d+=r[a],c[i]=parseInt(d,16)*s,s=1,i=void 0,d=``):d+=a;return o},l={codePages:[`WinAnsiEncoding`],WinAnsiEncoding:c(`{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}`)},u={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},d={Unicode:{"Courier-Oblique":c(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Times-BoldItalic":c(`{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}`),"Helvetica-Bold":c(`{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}`),Courier:c(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Courier-BoldOblique":c(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Times-Bold":c(`{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}`),Symbol:c(`{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}`),Helvetica:c(`{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}`),"Helvetica-BoldOblique":c(`{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}`),ZapfDingbats:c(`{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}`),"Courier-Bold":c(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Times-Italic":c(`{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}`),"Times-Roman":c(`{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}`),"Helvetica-Oblique":c(`{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}`)}};e.events.push([`addFont`,function(e){var t=e.font,n=d.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var r=u.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(
135AY.API),function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n};e.API.events.push([`addFont`,function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw Error(`Font does not exist in vFS, import fonts or remove declaration doc.addFont('`+i.postScriptName+`').`);if(typeof(r=!1===a.existsFileInVFS(i.postScriptName)?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!=`string`)throw Error(`Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('`+i.postScriptName+`').`);(function(n,r){r=/^\x00\x01\x00\x00/.test(r)?t(r):t(aY(r)),n.metadata=e.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]})(i,r)}}])}(AY),AY.API.addSvgAsImage=function(e,t,n,r,i,a,o,s){if(isNaN(t)||isNaN(n))throw $J.error(`jsPDF.addSvgAsImage: Invalid coordinates`,arguments),Error(`Invalid coordinates passed to jsPDF.addSvgAsImage`);if(isNaN(r)||isNaN(i))throw $J.error(`jsPDF.addSvgAsImage: Invalid measurements`,arguments),Error(`Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage`);var c=document.createElement(`canvas`);c.width=r,c.height=i;var l=c.getContext(`2d`);l.fillStyle=`#fff`,l.fillRect(0,0,c.width,c.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(ZJ.canvg?Promise.resolve(ZJ.canvg):ie(()=>import(`./index.es-chunk.BA1WJ--v.js`),__vite__mapDeps([2,1]))).catch(function(e){return Promise.reject(Error(`Could not load canvg: `+e))}).then(function(e){return e.default?e.default:e}).then(function(t){return t.fromString(l,e,u)},function(){return Promise.reject(Error(`Could not load canvg.`))}).then(function(e){return e.render(u)}).then(function(){d.addImage(c.toDataURL(`image/jpeg`,1),t,n,r,i,o,s)})},AY.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,`g`),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),`g`),n=this.pdfEscape16(this.internal.getNumberOfPages()+``,this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},AY.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:`boolean`,explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:`boolean`,explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:`boolean`,explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:`boolean`,explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:`boolean`,explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:`boolean`,explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:`UseNone`,value:`UseNone`,type:`name`,explicitSet:!1,valueSet:[`UseNone`,`UseOutlines`,`UseThumbs`,`UseOC`],pdfVersion:1.3},Direction:{defaultValue:`L2R`,value:`L2R`,type:`name`,explicitSet:!1,valueSet:[`L2R`,`R2L`],pdfVersion:1.3},ViewArea:{defaultValue:`CropBox`,value:`CropBox`,type:`name`,explicitSet:!1,valueSet:[`MediaBox`,`CropBox`,`TrimBox`,`BleedBox`,`ArtBox`],pdfVersion:1.4},ViewClip:{defaultValue:`CropBox`,value:`CropBox`,type:`name`,explicitSet:!1,valueSet:[`MediaBox`,`CropBox`,`TrimBox`,`BleedBox`,`ArtBox`],pdfVersion:1.4},PrintArea:{defaultValue:`CropBox`,value:`CropBox`,type:`name`,explicitSet:!1,valueSet:[`MediaBox`,`CropBox`,`TrimBox`,`BleedBox`,`ArtBox`],pdfVersion:1.4},PrintClip:{defaultValue:`CropBox`,value:`CropBox`,type:`name`,explicitSet:!1,valueSet:[`MediaBox`,`CropBox`,`TrimBox`,`BleedBox`,`ArtBox`],pdfVersion:1.4},PrintScaling:{defaultValue:`AppDefault`,value:`AppDefault`,type:`name`,explicitSet:!1,valueSet:[`AppDefault`,`None`],pdfVersion:1.6},Duplex:{defaultValue:``,value:`none`,type:`name`,explicitSet:!1,valueSet:[`Simplex`,`DuplexFlipShortEdge`,`DuplexFlipLongEdge`,`none`],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:`boolean`,explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:``,value:``,type:`array`,explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:`integer`,explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),c=[],l=0,u=0,d=0;function f(e,t){var n,r=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(r=!0);return r}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e===`reset`||!0===t){var p=s.length;for(d=0;d<p;d+=1)n[s[d]].value=n[s[d]].defaultValue,n[s[d]].explicitSet=!1}if(hH(e)===`object`){for(i in e)if(a=e[i],f(s,i)&&a!==void 0){if(n[i].type===`boolean`&&typeof a==`boolean`)n[i].value=a;else if(n[i].type===`name`&&f(n[i].valueSet,a))n[i].value=a;else if(n[i].type===`integer`&&Number.isInteger(a))n[i].value=a;else if(n[i].type===`array`){for(l=0;l<a.length;l+=1)if(r=!0,a[l].length===1&&typeof a[l][0]==`number`)c.push(String(a[l]-1));else if(a[l].length>1){for(u=0;
vendor: 4,160 bytes, lines 135-163
135u<a[l].length;u+=1)typeof a[l][u]!=`number`&&(r=!1);!0===r&&c.push([a[l][0]-1,a[l][1]-1].join(` `))}n[i].value=`[`+c.join(` `)+`]`}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe(`putCatalog`,function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&(n[e].type===`name`?t.push(`/`+e+` /`+n[e].value):t.push(`/`+e+` `+n[e].value));t.length!==0&&this.internal.write(`/ViewerPreferences 136<< 137`+t.join(` 138`)+` 139>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},AY.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??`http://jspdf.default.namespaceuri/`,rawXml:typeof t==`boolean`&&t},this.internal.events.subscribe(`putCatalog`,nZ),this.internal.events.subscribe(`postPutResources`,tZ)),this},function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,i=[``,`0`,`00`,`000`,`0000`],a=[``],o=0,s=e.length;o<s;++o){if(n=t.metadata.characterToGlyph(e.charCodeAt(o)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(o),r.indexOf(n)==-1&&(r.push(n),r.push([parseInt(t.metadata.widthOfGlyph(n),10)])),n==`0`)return a.join(``);n=n.toString(16),a.push(i[4-n.length],n)}return a.join(``)},r=function(e){var t,n,r,i,a,o,s;for(a=`/CIDInit /ProcSet findresource begin 14012 dict begin 141begincmap 142/CIDSystemInfo << 143 /Registry (Adobe) 144 /Ordering (UCS) 145 /Supplement 0 146>> def 147/CMapName /Adobe-Identity-UCS def 148/CMapType 2 def 1491 begincodespacerange 150<0000><ffff> 151endcodespacerange`,r=[],o=0,s=(n=Object.keys(e).sort(function(e,t){return e-t})).length;o<s;o++)t=n[o],r.length>=100&&(a+=` 152`+r.length+` beginbfchar 153`+r.join(` 154`)+` 155endbfchar`,r=[]),e[t]!==void 0&&e[t]!==null&&typeof e[t].toString==`function`&&(i=(`0000`+e[t].toString(16)).slice(-4),t=(`0000`+(+t).toString(16)).slice(-4),r.push(`<`+t+`><`+i+`>`));return r.length&&(a+=` 156`+r.length+` beginbfchar 157`+r.join(` 158`)+` 159endbfchar 160`),a+`endcmap 161CMapName currentdict /CMap defineresource pop 162end 163end`};t.events.push([`putFont`,function(t){(function(t){var n=t.font,i=t.out,a=t.newObject,o=t.putStream;if(n.metadata instanceof e.API.TTFFont&&n.encoding===`Identity-H`){for(var s=n.metadata.Unicode.widths,c=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),l=``,u=0;u<c.length;u++)l+=String.fromCharCode(c[u]);var d=a();o({data:l,addLength1:!0,objectId:d}),i(`endobj`);var f=a();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:f}),i(`endobj`);var p=a();i(`<<`),i(`/Type /FontDescriptor`),i(`/FontName /`+wY(n.fontName)),i(`/FontFile2 `+d+` 0 R`),i(`/FontBBox `+e.API.PDFObject.convert(n.metadata.bbox)),i(`/Flags `+n.metadata.flags),i(`/StemV `+n.metadata.stemV),i(`/ItalicAngle `+n.metadata.italicAngle),i(`/Ascent `+n.metadata.ascender),i(`/Descent `+n.metadata.decender),i(`/CapHeight `+n.metadata.capHeight),i(`>>`),i(`endobj`);var m=a();i(`<<`),i(`/Type /Font`),i(`/BaseFont /`+wY(n.fontName)),i(`/FontDescriptor `+p+` 0 R`),i(`/W `+e.API.PDFObject.convert(s)),i(`/CIDToGIDMap /Identity`),i(`/DW 1000`),i(`/Subtype /CIDFontType2`),i(`/CIDSystemInfo`),i(`<<`),i(`/Supplement 0`),i(`/Registry (Adobe)`),i(`/Ordering (`+n.encoding+`)`),i(`>>`),i(`>>`),i(`endobj`),n.objectNumber=a(),i(`<<`),i(`/Type /Font`),i(`/Subtype /Type0`),i(`/ToUnicode `+f+` 0 R`),i(`/BaseFont /`+wY(n.fontName)),i(`/Encoding /`+n.encoding),i(`/DescendantFonts [`+m+` 0 R]`),i(`>>`),i(`endobj`),n.isAlreadyPutted=!0}})(t)}]),t.events.push([`putFont`,function(t){(function(t){var n=t.font,i=t.out,a=t.newObject,o=t.putStream;if(n.metadata instanceof e.API.TTFFont&&n.encoding===`WinAnsiEncoding`){for(var s=n.metadata.rawData,c=``,l=0;l<s.length;l++)c+=String.fromCharCode(s[l]);var u=a();o({data:c,addLength1:!0,objectId:u}),i(`endobj`);var d=a();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),i(`endobj`);var f=a();i(`<<`),i(`/Descent `+n.metadata.decender),i(`/CapHeight `+n.metadata.capHeight),i(`/StemV `+n.metadata.stemV),i(`/Type /FontDescriptor`),i(`/FontFile2 `+u+` 0 R`),i(`/Flags 96`),i(`/FontBBox `+e.API.PDFObject.convert(n.metadata.bbox)),i(`/F
163ontName /`+wY(n.fontName)),i(`/ItalicAngle `+n.metadata.italicAngle),i(`/Ascent `+n.metadata.ascender),i(`>>`),i(`endobj`),n.objectNumber=a();for(var p=0;p<n.metadata.hmtx.widths.length;p++)n.metadata.hmtx.widths[p]=parseInt(n.metadata.hmtx.widths[p]*(1e3/n.metadata.head.unitsPerEm));i(`<</Subtype/TrueType/Type/Font/ToUnicode `+d+` 0 R/BaseFont/`+wY(n.fontName)+`/FontDescriptor `+f+` 0 R/Encoding/`+n.encoding+` /FirstChar 29 /LastChar 255 /Widths `+e.API.PDFObject.convert(n.metadata.hmtx.widths)+`>>`),i(`endobj`),n.isAlreadyPutted=!0}})(t)}]);var i=function(e){var t,r=e.text||``,i=e.x,a=e.y,o=e.options||{},s=e.mutex||{},c=s.pdfEscape,l=s.activeFontKey,u=s.fonts,d=l,f=``,p=0,m=``,h=u[d].encoding;if(u[d].encoding!==`Identity-H`)return{text:r,x:i,y:a,options:o,mutex:s};for(m=r,d=l,Array.isArray(r)&&(m=r[0]),p=0;p<m.length;p+=1)u[d].metadata.hasOwnProperty(`cmap`)&&(t=u[d].metadata.cmap.unicode.codeMap[m[p].charCodeAt(0)]),t||m[p].charCodeAt(0)<256&&u[d].metadata.hasOwnProperty(`Unicode`)?f+=m[p]:f+=``;var g=``;return parseInt(d.slice(1))<14||h===`WinAnsiEncoding`?g=c(f,d).split(``).map(function(e){return e.charCodeAt(0).toString(16)}).join(``):h===`Identity-H`&&(g=n(f,u[d])),s.isHex=!0,{text:g,x:i,y:a,options:o,mutex:s}};t.events.push([`postProcessText`,function(e){var t=e.text||``,n=[],r={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var a=0;for(a=0;a<t.length;a+=1)Array.isArray(t[a])&&t[a].length===3?n.push([i(Object.assign({},r,{text:t[a][0]})).text,t[a][1],t[a][2]]):n.push(i(Object.assign({},r,{text:t[a]})).text);e.text=n}else e.text=i(Object.assign({},r,{text:t})).text}])}(AY),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]===void 0?null:this.internal.vFS[e]}}(AY.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,i,a,o,s,c,l=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},m=`(.).(.<.>.<.[.].[.{.}.{.«.».«.â¹.âº.â¹.â
.â.â
.â½.â¾.â½.â.â.â.â¤.â¥.â¤.â©.âª.â©.ï¹.ï¹.ï¹.ï¹.ï¹.ï¹.ï¹.ï¹.ï¹.﹤.ï¹¥.﹤`.split(`.`),h=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,_=0;this.__bidiEngine__={};var v=function(e){var t=e.charCodeAt(),n=t>>8,r=p[n];return r===void 0?n===252||n===253?`AL`:h.test(n)?`L`:n===8?`R`:`N`:l[256*r+(255&t)]},y=function(e){for(var t,n=0;n<e.length;n++){if((t=v(e.charAt(n)))===`L`)return!1;if(t===`R`)return!0}return!1},b=function(e,t,o,s){var c,l,u,d,f=t[s];switch(f){case`L`:case`R`:case`LRE`:case`RLE`:case`LRO`:case`RLO`:case`PDF`:g=!1;break;case`N`:case`AN`:break;case`EN`:g&&(f=`AN`);break;case`AL`:g=!0,f=`R`;break;case`WS`:case`BN`:f=`N`;break;case`CS`:s<1||s+1>=t.length||(c=o[s-1])!==`EN`&&c!==`AN`||(l=t[s+1])!==`EN`&&l!==`AN`?f=`N`:g&&(l=`AN`),f=l===c?l:`N`;break;case`ES`:f=(c=s>0?o[s-1]:`B`)===`EN`&&s+1<t.length&&t[s+1]===`EN`?`EN`:`N`;break;case`ET`:if(s>0&&o[s-1]===`EN`){f=`EN`;break}if(g){f=`N`;break}for(u=s+1,d=t.length;u<d&&t[u]===`ET`;)u++;f=u<d&&t[u]===`EN`?`EN`:`N`;break;case`NSM`:if(i&&!a){for(d=t.length,u=s+1;u<d&&t[u]===`NSM`;)u++;if(u<d){var p=e[s],m=p>=1425&&p<=2303||p===64286;if(c=t[u],m&&(c===`R`||c===`AL`)){f=`R`;break}}}f=s<1||(c=t[s-1])===`B`?`N`:o[s-1];break;case`B`:g=!1,n=!0,f=_;break;case`S`:r=!0,f=`N`}return f},x=function(e,t,n){var r=e.split(``);return n&&S(r,n,{hiLevel:_}),r.reverse(),t&&t.reverse(),r.join(``)},S=function(e,t,i){var a,o,s,c,l,p=-1,m=e.length,h=0,y=[],x=_?d:u,S=[];for(g=!1,n=!1,r=!1,o=0;o<m;o++)S[o]=v(e[o]);for(s=0;s<m;s++){if(l=h,y[s]=b(e,S,y,s),a=240&(h=x[l][f[y[s]]]),h&=15,t[s]=c=x[h][5],a>0){if(a===16){for(o=p;o<s;o++)t[o]=1;p=-1}else p=-1}if(x[h][6])p===-1&&(p=s);else if(p>-1){for(o=p;o<s;o++)t[o]=c;p=-1}S[s]===`B`&&(t[s]=0),i.hiLevel|=c}r&&function(e,t,n){for(var r=0;r<n;r++)if(e[r]===`S`){t[r]=_;for(var i=r-1;i>=0&&e[i]===`WS`;i--)t[i]=_}}(S,t,m)},C=function(e,t,r,i,a){if(!(a.hiLevel<e)){if(e===1&&_===1&&!n)return t.reverse(),void(r&&r.reverse());for(var o,s,c,l,u=t.length,d=0;d<u;){if(i[d]>=e){for(c=d+1;c<u&&i[c]>=e;)c++;for(l=d,s=c-1;l<s;l++,s--)o=t[l],t[l]=t[s],t[s]=o,r&&(o=r[l],r[l]=r[s],r[s]=o);d=c}d++}}},w=function(e,t,n){var r=e.split(``),i={hiLevel:_};return n||(n=[]),S(r,n,i),function(e,t,n){if(n.hiLevel!==0&&c)for(var r,i=0;i<e.length;i++)t[i]===1&&(r=m.indexOf(e[i]))>=0&&(e[i]=m[r+1])}(r,n,i),C(2,r,t,n,i),C(1,r,t,n,i),r.join(``)};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;a===void 0&&(a=y(e)),s===void 0&&(s=y(e))}
163(e,t),i||!o||s){if(i&&o&&a^s)_=+!!a,e=x(e,t,n);else if(!i&&o&&s)_=+!!a,e=w(e,t,n),e=x(e,t);else if(!i||a||o||s){if(i&&!o&&a^s)e=x(e,t),a?(_=0,e=w(e,t,n)):(_=1,e=w(e,t,n),e=x(e,t));else if(i&&a&&!o&&s)_=1,e=w(e,t,n),e=x(e,t);else if(!i&&!o&&a^s){var r=c;a?(_=1,e=w(e,t,n),_=0,c=!1,e=w(e,t,n),c=r):(_=0,e=w(e,t,n),e=x(e,t),_=1,c=!1,e=w(e,t,n),c=r,e=x(e,t))}}else _=0,e=w(e,t,n)}else _=+!!a,e=w(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(i=e.isInputVisual,o=e.isOutputVisual,a=e.isInputRtl,s=e.isOutputRtl,c=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=`BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.N.N.ET.ET.ET.N.N.N.N.N.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.N.N.N.N.N.N.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.N.N.N.N.N.N.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.N.N.N.N.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.N.ET.ET.ET.ET.N.N.N.N.L.N.N.BN.N.N.ET.ET.EN.EN.N.L.N.N.N.EN.L.N.N.N.N.N.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.N.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.N.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.N.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.N.N.L.L.L.L.L.L.L.N.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.N.L.N.N.N.N.N.ET.N.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.R.NSM.R.NSM.NSM.R.NSM.NSM.R.NSM.N.N.N.N.N.N.N.N.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.N.N.N.N.N.R.R.R.R.R.N.N.N.N.N.N.N.N.N.N.N.AN.AN.AN.AN.AN.AN.N.N.AL.ET.ET.AL.CS.AL.N.N.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.AL.AL.N.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.AN.AN.AN.AN.AN.AN.AN.AN.AN.AN.ET.AN.AN.AL.AL.AL.NSM.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.NSM.NSM.NSM.NSM.NSM.NSM.NSM.AN.N.NSM.NSM.NSM.NSM.NSM.NSM.AL.AL.NSM.NSM.N.NSM.NSM.NSM.NSM.AL.AL.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.N.AL.AL.NSM.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.N.N.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.AL.N.N.N.N.N.N.N.N.N.N.N.N.N.N.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.R.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.R.R.N.N.N.N.R.N.N.N.N.N.WS.WS.WS.WS.WS.WS.WS.WS.WS.WS.WS.BN.BN.BN.L.R.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.WS.B.LRE.RLE.PDF.LRO.RLO.CS.ET.ET.ET.ET.ET.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.CS.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.WS.BN.BN.BN.BN.BN.N.LRI.RLI.FSI.PDI.BN.BN.BN.BN.BN.BN.EN.L.N.N.EN.EN.EN.EN.EN.EN.ES.ES.N.N.N.L.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.ES.ES.N.N.N.N.L.L.L.L.L.L.L.L.L.L.L.L.L.N.N.N.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.ET.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.L.L.L.L.L.L.L.N.N.N.N.N.N.N.N.N.N.N.N.L.L.L.L.L.N.N.N.N.N.R.NSM.R.R.R.R.R.R.R.R.R.R.ES.R.R.R.R.R.R.R.R.R.R.R.R.R.N.R.R.R.R.R.N.R.N.R.R.N.R.R.N.R.R.R.R.R.R.R.R.R.R.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.CS.N.CS.N.N.CS.N.N.N.N.N.N.N.N.N.ET.N.N.ES.ES.N.N.N.N.N.ET.ET.N.N.N.N.N.AL.AL.AL.AL.AL.N.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.N.N.BN.N.N.N.ET.ET.ET.N.N.N.N.N.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.N.N.N.N.N.N.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.N.N.N.N.N.N.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.N.N.N.N.N.N.N.N.N.N.N.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.N.N.N.L.L.L.L.L.L.N.N.L.L.L.L.L.L.N.N.L.L.L.L.L.L.N.N.L.L.L.N.N.N.ET.ET.N.N.N.ET.ET.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N`.split(`.`),n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push([`postProcessText`,function(e){var t=e.text;e.x,e.y;var r=e.options||{};e.mutex,r.lang;var i=[];if(r.isInputVisual=typeof r.isInputVisual!=`boolean`||r.isInputVisual,n.setOptions(r),Object.prototype.toString.call(t)===`[object Array]`){var a=0;for(i=[],a=0;a<t.length;a+=1)Object.prototype.toString.call(t[a])===`[object Array]`?i.push([n.doBidiReorder(t[a][0]),t[a][1],t[a][2]]
vendor: 21,351 bytes, line 163
163):i.push([n.doBidiReorder(t[a])]);e.text=i}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(AY),AY.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new iZ(e),this.contents.pos=4,t.readString(4)===`ttcf`)throw Error(`TTCF not supported.`);t.pos=0,this.parse(),this.subset=new CZ(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new aZ(this.contents),this.head=new cZ(this),this.name=new hZ(this),this.cmap=new uZ(this),this.toUnicode={},this.hhea=new dZ(this),this.maxp=new gZ(this),this.hmtx=new _Z(this),this.post=new pZ(this),this.os2=new fZ(this),this.loca=new SZ(this),this.glyf=new yZ(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,r,i;for(i=[],t=0,n=(r=this.bbox).length;t<n;t++)e=r[t],i.push(Math.round(e*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(t=r>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+`.`+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw Error(`No unicode cmap for font`)},e.prototype.characterToGlyph=function(e){var t;return((t=this.cmap.unicode)==null?void 0:t.codeMap[e])||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,i,a,o;for(a=0,i=0,o=(e=``+e).length;0<=o?i<o:i>o;i=0<=o?++i:--i)r=e.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(r))+1e3/t*n||0;return t/1e3*a},e.prototype.lineHeight=function(e,t){var n;return t??(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var rZ,iZ=function(){function e(e){this.data=e??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join(``)},e.prototype.writeString=function(e){var t,n,r;for(r=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,r,i,a,o,s;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^a)+256*(255^o)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*i+65536*a+256*o+s},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r,i;for(i=[],n=0,r=e.length;n<r;n++)t=e[n],i.push(this.writeByte(t));return i},e}(),aZ=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,i,a,o,s,c,l,u,d,f,p,m;for(m in f=Object.keys(t).length,s=Math.log(2),u=16*Math.floor(Math.log(f)/s),a=Math.floor(u/s),l=16*f-u,(r=new iZ).writeInt(this.scalarType),r.writeShort(f),r.writeShort(u),r.writeShort(a),r.writeShort(l),i=16*f,c=r.pos+i,o=null,p=[],t)for(d=t[m],r.writeString(m),r.writeInt(e(d)),r.writeInt(c),r.writeInt(d.length),p=p.concat(d),m===`head`&&(o=c),c+=d.length;c%4;)p.push(0),c++;return r.write(p),n=2981146554-e(r.data),r.pos=o+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,i;for(e=vZ.call(e);e.length%4;)e.push(0);for(r=new iZ(e),n=0,t=0,i=e.length;t<i;t=t+=4)n+=r.readUInt32();return 4294967295&n},t}(),oZ={}.hasOwnProperty,sZ=function(e,t){for(var n in t)oZ.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};rZ=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var cZ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return sZ(e,rZ),e.prototype.tag=`head`,e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new iZ).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),lZ=function(){function e(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(f=e.readUInt16(),d=f/2,e.pos+=6,i=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,m=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),c=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,o=function(){var t,n;for(n=[],s=t=0;0<=r?t<r:t>r;s=0<=r?++t:--t)n.push(e.readUInt16());return n}(),s=g=0,v=i.length;g<v;s=++g)for(h=i[s],n=_=p=m[s];p<=h?_<=h:_>=h;n=p<=h?++_:--_)l[s]===0?a=n+c[s]:(a=o[l[s]/2+(n-p)-(d-s)]||0)!==0&&(a+=c[s]),this.codeMap[n]=65535&a}e.pos=u}return e.encode=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,ee,F,I,te,L,ne,R,re,z,ie,ae,oe,se;switch(k=new iZ,a=Object.keys(e).sort(function(e,t){return e-t}),t){case`macroman`:for(m=0,h=function(){var e=[];for(p=0;p<256;++p)e.push(0);return e}(),_={0:0},i={},A=0,P=a.length;A<P;A++)_[ie=e[r=a[A]]]??(_[ie]=++m),i[r]={old:e[r],new:_[e[r]]},h[r]=_[e[r]];return k.writeUInt16(1),k.writeUInt16(0),k.writeUInt32(12),k.writeUInt16(0),k.writeUInt16(262),k.writeUInt16(0),k.write(h),{charMap:i,subtable:k.data,maxGlyphID:m+1};case`unicode`:for(D=[],u=[],v=0,_={},n={},g=c=null,j=0,ee=a.length;j<ee;j++)_[b=e[r=a[j]]]??(_[b]=++v),n[r]={old:b,new:_[b]},o=_[b]-r,g!=null&&o===c||(g&&u.push(g),D.push(r),c=o),g=r;for(g&&u.push(g),u.push(65535),D.push(65535),T=2*(w=D.length),C=2*(Math.log(w)/Math.LN2)**2,d=Math.log(C/2)/Math.LN2,S=2*w-C,s=[],x=[],f=[],p=M=0,F=D.length;M<F;p=++M){if(E=D[p],l=u[p],E===65535){s.push(0),x.push(0);break}if(E-(O=n[E].new)>=32768)for(s.push(0),x.push(2*(f.length+w-p)),r=N=E;E<=l?N<=l:N>=l;r=E<=l?++N:--N)f.push(n[r].new);else s.push(O-E),x.push(0)}for(k.writeUInt16(3),k.writeUInt16(1),k.writeUInt32(12),k.writeUInt16(4),k.writeUInt16(16+8*w+2*f.length),k.writeUInt16(0),k.writeUInt16(T),k.writeUInt16(C),k.writeUInt16(d),k.writeUInt16(S),re=0,I=u.length;re<I;re++)r=u[re],k.writeUInt16(r);for(k.writeUInt16(0),z=0,te=D.length;z<te;z++)r=D[z],k.writeUInt16(r);for(ae=0,L=s.length;ae<L;ae++)o=s[ae],k.writeUInt16(o);for(oe=0,ne=x.length;oe<ne;oe++)y=x[oe],k.writeUInt16(y);for(se=0,R=f.length;se<R;se++)m=f[se],k.writeUInt16(m);return{charMap:n,subtable:k.data,maxGlyphID:v+1}}},e}(),uZ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return sZ(e,rZ),e.prototype.tag=`cmap`,e.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new lZ(e,this.offset),this.tables.push(t),t.isUnicode&&this.unicode==null&&(this.unicode=t);return!0},e.encode=function(e,t){var n,r;return t??(t=`macroman`),n=lZ.encode(e,t),(r=new iZ).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),dZ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return sZ(e,rZ),e.prototype.tag=`hhea`,e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),fZ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return sZ(e,rZ),e.prototype.tag=`OS/2`,e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),pZ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return sZ(e,rZ),e.prototype.tag=`post`,e.prototype.parse=function(e){var t,n,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(n=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,r;for(r=[],i=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;i=0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},e}(),mZ=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},hZ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return sZ(e,rZ),e.prototype.tag=`name`,e.prototype.parse=function(e){var t,n,r,i,a,o,s,c,l,u,d;for(e.pos=this.offset,e.readShort(),t=e.readShort(),o=e.readShort(),n=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+o+e.readShort()});for(s={},i=l=0,u=n.length;l<u;i=++l)r=n[i],e.pos=r.offset,c=e.readString(r.length),a=new mZ(c,r),s[d=r.nameID]??(s[d]=[]),s[r.nameID].push(a);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,``)}catch{this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,``)}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),gZ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return sZ(e,rZ),e.prototype.tag=`maxp`,e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),_Z=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return sZ(e,rZ),e.prototype.tag=`hmtx`,e.prototype.parse=function(e){var t,n,r,i,a,o,s;for(e.pos=this.offset,this.metrics=[],t=0,o=this.file.hhea.numberOfMetrics;0<=o?t<o:t>o;t=0<=o?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],t=n=0;0<=r?n<r:n>r;t=0<=r?++n:--n)i.push(e.readInt16());return i}(),this.widths=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.metrics).length;e<t;e++)i=n[e],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],t=a=0;0<=r?a<r:a>r;t=0<=r?++a:--a)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),vZ=[].slice,yZ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return sZ(e,rZ),e.prototype.tag=`glyf`,e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,r,i,a,o,s,c,l,u;return e in this.cache?this.cache[e]:(i=this.file.loca,t=this.file.contents,n=i.indexOf(e),(r=i.lengthOf(e))===0?this.cache[e]=null:(t.pos=this.offset+n,a=(o=new iZ(t.read(r))).readShort(),c=o.readShort(),u=o.readShort(),s=o.readShort(),l=o.readShort(),this.cache[e]=a===-1?new xZ(o,c,u,s,l):new bZ(o,a,c,u,s,l),this.cache[e]))},e.prototype.encode=function(e,t,n){var r,i,a,o,s;for(a=[],i=[],o=0,s=t.length;o<s;o++)r=e[t[o]],i.push(a.length),r&&(a=a.concat(r.encode(n)));return i.push(a.length),{table:a,offsets:i}},e}(),bZ=function(){function e(e,t,n,r,i,a){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),xZ=function(){function e(e,t,n,r,i){var a,o;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new iZ(vZ.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),SZ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return sZ(e,rZ),e.prototype.tag=`loca`,e.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=t===0?function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=2)r.push(2*e.readUInt16());return r}.call(this):function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=4)r.push(e.readUInt32());return r}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,a=0;a<n.length;++a)if(n[a]=r,i<t.length&&t[i]==a){++i,n[a]=r;var o=this.offsets[a],s=this.offsets[a+1]-o;s>0&&(r+=s)}for(var c=Array(4*n.length),l=0;l<n.length;++l)c[4*l+3]=255&n[l],c[4*l+2]=(65280&n[l])>>8,c[4*l+1]=(16711680&n[l])>>16,c[4*l]=(4278190080&n[l])>>24;return c},e}(),CZ=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r,i;for(t in r=this.font.cmap.tables[0].codeMap,e={},i=this.subset)n=i[t],e[t]=r[n];return e},e.prototype.glyphsFor=function(e){var t,n,r,i,a,o,s;for(r={},a=0,o=e.length;a<o;a++)r[i=e[a]]=this.font.glyf.glyphFor(i);for(i in t=[],r)(n=r[i])!=null&&n.compound&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(i in s=this.glyphsFor(t))n=s[i],r[i]=n;return r},e.prototype.encode=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;for(r in n=uZ.encode(this.generateCmap(),`unicode`),a=this.glyphsFor(e),f={0:0},g=n.charMap)f[(s=g[r]).old]=s.new;for(p in d=n.maxGlyphID,a)p in f||(f[p]=d++);return l=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(f),u=Object.keys(l).sort(function(e,t){return e-t}),m=function(){var e,t,n;for(n=[],e=0,t=u.length;e<t;e++)o=u[e],n.push(l[o]);return n}(),i=this.font.glyf.encode(a,m,f),c=this.font.loca.encode(i.offsets,m),h={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(h[`OS/2`]=this.font.os2.raw()),this.font.directory.encode(h)},e}();AY.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join(`0`)+e).slice(-t)},t.convert=function(n){var r,i,a,o;if(Array.isArray(n))return`[`+function(){var e,i,a;for(a=[],e=0,i=n.length;e<i;e++)r=n[e],a.push(t.convert(r));return a}().join(` `)+`]`;if(typeof n==`string`)return`/`+n;
163if(n!=null&&n.isString)return`(`+n+`)`;if(n instanceof Date)return`(D:`+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+`Z)`;if({}.toString.call(n)===`[object Object]`){for(i in a=[`<<`],n)o=n[i],a.push(`/`+i+` `+t.convert(o));return a.push(`>>`),a.join(` 164`)}return``+n},t}();var wZ=Object.freeze({__proto__:null,get BooleanItemBrick(){return mQ},get CheckItemBrick(){return pQ},get CheckboxItemBrick(){return xQ},get CompositeBrick(){return TZ},get CustomBrick(){return KQ},get DocController(){return ZZ},get DocOptions(){return XZ},get DrawCanvas(){return lQ},get DropdownBrick(){return EQ},get EmptyBrick(){return UZ},get EventHandler(){return dQ},get FlatBoolean(){return yQ},get FlatCheckbox(){return SQ},get FlatComment(){return TQ},get FlatCustomModel(){return wQ},get FlatDropdown(){return DQ},get FlatExpression(){return OQ},get FlatFile(){return kQ},get FlatHTML(){return AQ},get FlatImage(){return jQ},get FlatImagePicker(){return MQ},get FlatMatrix(){return VQ},get FlatMatrixDynamic(){return WQ},get FlatMatrixMultiple(){return UQ},get FlatMultipleText(){return GQ},get FlatPanelDynamic(){return NQ},get FlatQuestion(){return PZ},get FlatQuestionDefault(){return FZ},get FlatRadiogroup(){return vQ},get FlatRanking(){return IQ},get FlatRating(){return LQ},get FlatRepository(){return IZ},get FlatSelectBase(){return _Q},get FlatSignaturePad(){return zQ},get FlatSlider(){return RQ},get FlatSurvey(){return jZ},get FlatTextbox(){return BQ},get HTMLBrick(){return VZ},get HorizontalAlign(){return sQ},get ImageBrick(){return HZ},get LinkBrick(){return BZ},get PagePacker(){return oQ},get PdfBrick(){return MZ},get RadioItemBrick(){return gQ},get RankingItemBrick(){return PQ},get RowlineBrick(){return EZ},get SurveyHelper(){return $},get SurveyPDF(){return fQ},get TextBoldBrick(){return LZ},get TextBrick(){return NZ},get TextFieldBrick(){return WZ},get TitlePanelBrick(){return RZ},get VerticalAlign(){return cQ}});function Q(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}var TZ=class{constructor(...e){this.bricks=[],this.isPageBreak=!1,this._xLeft=0,this._xRight=0,this._yTop=0,this._yBot=0,this.addBrick(...e)}get xLeft(){return this._xLeft}set xLeft(e){this.shift(e-this.xLeft,0,0,0),this._xLeft=e}get xRight(){return this._xRight}set xRight(e){this.shift(0,e-this.xRight,0,0),this._xRight=e}get yTop(){return this._yTop}set yTop(e){this.shift(0,0,e-this.yTop,0),this._yTop=e}get yBot(){return this._yBot}set yBot(e){this.shift(0,0,0,e-this.yBot),this._yBot=e}shift(e,t,n,r){this.bricks.forEach(i=>{i.xLeft+=e,i.xRight+=t,i.yTop+=n,i.yBot+=r})}get width(){return this.xRight-this.xLeft}get height(){return this.yBot-this.yTop}render(){return Q(this,void 0,void 0,function*(){for(let e=0;e<this.bricks.length;e++)yield this.bricks[e].render()})}get isEmpty(){return this.bricks.length===0}addBrick(...e){if(e.length!=0){this.bricks.push(...e);let t=$.mergeRects(...this.bricks);this._xLeft=t.xLeft,this._xRight=t.xRight,this._yTop=t.yTop,this._yBot=t.yBot}}unfold(){let e=[];return this.bricks.forEach(t=>{e.push(...t.unfold())}),e}translateX(e){this.bricks.forEach(t=>t.translateX(e));let t=e(this.xLeft,this.xRight);this._xLeft=t.xLeft,this._xRight=t.xRight}},EZ=class{constructor(e,t,n){this.controller=e,this.color=n,this.isPageBreak=!1,this.xLeft=t.xLeft,this.xRight=t.xRight,this.yTop=t.yTop,this.yBot=t.yBot}get width(){return this.xRight-this.xLeft}get height(){return this.yBot-this.yTop}render(){return Q(this,void 0,void 0,function*(){if(this.color!==null){let e=this.controller.doc.getDrawColor();this.controller.doc.setDrawColor(this.color),this.controller.doc.line(this.xLeft,this.yTop,this.xRight,this.yTop),this.controller.doc.setDrawColor(e)}})}unfold(){return[this]}translateX(e){}},DZ=class{constructor(e,t,n,r,i){this.point=e,this.bricks=t,this.controller=n,this.repository=r,this.module=i}},OZ=class extends DZ{constructor(e,t,n,r,i,a){super(e,t,r,i,a),this.question=n}},kZ=class extends DZ{constructor(e,t,n,r,i,a){super(e,t,r,i,a),this.panel=n}},AZ=class extends DZ{constructor(e,t,n,r,i,a){super(e,t,r,i,a),this.page=n}},jZ=class e{static generateFlatsPanel(e,t,n,r){return Q(this,void 0,void 0,function*(){let i=[],a=$.clone(r);t.pushMargins(),t.margins.left+=t.measureText(n.innerIndent).width,a.xLeft+=t.measureText(n.innerIndent).width,i.push(...yield this.generateFlatsPagePanel(e,t,n,a)),t.popMargins();
164let o=new kZ(r,i,n,t,IZ.getInstance(),wZ);return yield e.onRenderPanel.fire(e,o),[...o.bricks]})}static generateFlatsPagePanel(t,n,r,i){return Q(this,void 0,void 0,function*(){if(!r.isVisible)return;r.onFirstRendering();let a=[],o=$.clone(i);if(r.getType()!==`page`||t.showPageTitles){let t=new TZ;if(r.title){if(r instanceof DI&&r.no){let e=yield $.createTitlePanelFlat(o,n,r.no,r.getType()===`page`);t.addBrick(e),o.xLeft=e.xRight+n.measureText(` `).width}let e=yield $.createTitlePanelFlat(o,n,r.locTitle,r.getType()===`page`);t.addBrick(e),o=$.createPoint(e)}if(r.description){r.title&&(o.yTop+=n.unitWidth*e.PANEL_DESC_GAP_SCALE);let i=yield $.createDescFlat(o,null,n,r.locDescription);t.addBrick(i),o=$.createPoint(i)}if(!t.isEmpty){let r=$.createPoint(t);t.addBrick($.createRowlineFlat(r,n)),a.push(t),o.yTop+=n.unitHeight*e.PANEL_CONT_GAP_SCALE+$.EPSILON}}for(let s of r.rows){if(!s.visible)continue;n.pushMargins();let r=$.getPageAvailableWidth(n),c=n.margins.left,l=[],u=s.elements.filter(e=>e.isVisible);for(let e=0;e<u.length;e++){let i=u[e];if(!i.isVisible)continue;let a=$.parseWidth(i.renderWidth,r-(u.length-1)*n.unitWidth,u.length);n.margins.left=c+(e===0?0:n.unitWidth),n.margins.right=n.paperWidth-n.margins.left-a,o.xLeft=n.margins.left,c=n.margins.left+a,i instanceof DI?l.push(...yield this.generateFlatsPanel(t,n,i,o)):(yield i.waitForQuestionIsReady(),l.push(...yield $.generateQuestionFlats(t,n,i,o)))}n.popMargins(),o.xLeft=n.margins.left,l.length!==0&&(o.yTop=$.mergeRects(...l).yBot,o.xLeft=i.xLeft,o.yTop+=n.unitHeight*e.QUES_GAP_VERT_SCALE,a.push(...l),a.push($.createRowlineFlat(o,n)),o.yTop+=$.EPSILON)}return a})}static popRowlines(e){for(;e.length>0&&e[e.length-1]instanceof EZ;)e.pop()}static generateFlatTitle(t,n,r){return Q(this,void 0,void 0,function*(){let i=new TZ;if(t.showTitle){if(t.title){let e=yield $.createTitleSurveyFlat(r,n,t.locTitle);i.addBrick(e),r=$.createPoint(e)}t.description&&(t.title&&(r.yTop+=n.unitWidth*e.PANEL_DESC_GAP_SCALE),i.addBrick(yield $.createDescFlat(r,null,n,t.locDescription)))}return i})}static generateFlatLogoImage(e,t,n){return Q(this,void 0,void 0,function*(){let r=$.getLocString(e.locLogo),i=yield $.getCorrectedImageSize(t,{imageLink:r,imageHeight:e.logoHeight,imageWidth:e.logoWidth,defaultImageWidth:`300px`,defaultImageHeight:`200px`}),a=yield $.createImageFlat(n,null,t,{link:r,width:i.width,height:i.height}),o=0;return e.logoPosition===`right`?o=$.getPageAvailableWidth(t)-a.width:e.logoPosition!==`left`&&(o=$.getPageAvailableWidth(t)/2-a.width/2),a.xLeft+=o,a.xRight+=o,a})}static generateFlats(t,n){return Q(this,void 0,void 0,function*(){let r=[];if(!t.hasLogo){let e=yield this.generateFlatTitle(t,n,n.leftTopPoint);e.isEmpty||r.push([e])}else if(t.isLogoBefore){let e=yield this.generateFlatLogoImage(t,n,n.leftTopPoint);r.push([e]);let i=$.createPoint(e,t.logoPosition===`top`,t.logoPosition!==`top`);t.logoPosition===`top`?(i.xLeft=n.leftTopPoint.xLeft,i.yTop+=n.unitHeight/2):(n.pushMargins(),i.xLeft+=n.unitWidth,n.margins.left+=e.width+n.unitWidth);let a=yield this.generateFlatTitle(t,n,i);t.logoPosition!==`top`&&n.popMargins(),a.isEmpty||r[0].push(a)}else if(t.logoPosition===`right`){let e=yield this.generateFlatLogoImage(t,n,n.leftTopPoint);r.push([e]),n.pushMargins(),n.margins.right+=e.width+n.unitWidth;let i=yield this.generateFlatTitle(t,n,n.leftTopPoint);i.isEmpty||r[0].unshift(i),n.popMargins()}else{let e=yield this.generateFlatTitle(t,n,n.leftTopPoint),i=n.leftTopPoint;e.isEmpty||(r.push([e]),i=$.createPoint(e),i.yTop+=n.unitHeight/2);let a=yield this.generateFlatLogoImage(t,n,i);r.length===0?r.push([a]):r[0].push(a)}let i=n.leftTopPoint;r.length!==0&&(i.yTop=$.createPoint($.mergeRects(...r[0])).yTop,r[0].push($.createRowlineFlat(i,n)),i.yTop+=n.unitHeight*e.PANEL_CONT_GAP_SCALE+$.EPSILON);for(let e=0;e<t.visiblePages.length;e++){t.currentPage=t.visiblePages[e];let a=[];a.push(...yield this.generateFlatsPagePanel(t,n,t.visiblePages[e],i));let o=new AZ(i,a,t.visiblePages[e],n,IZ.getInstance(),wZ);yield t.onRenderPage.fire(t,o),a=[...o.bricks],e===0&&r.length!==0?r[0].push(...a):r.push(a),this.popRowlines(r[r.length-1]),i.yTop=n.leftTopPoint.yTop}return r})}};jZ.QUES_GAP_VERT_SCALE=1.5,jZ.PANEL_CONT_GAP_SCALE=1,jZ.PANEL_DESC_GAP_SCALE=.25;var MZ=class{get xLeft(){return this._xLeft}set xLeft(e){this.setXLeft(e)}get xRight(){return this._xRight}set xRight(e){this.setXRight(e)}get yTop(){return this._yTop}set yTop(e){this.setYTop(e)}get yBot(){return this._yBot}set yBot(e){this.setYBottom(e)}constructor(e,t,n){this.question=e,this.controller=t,this.textColor=$.TEXT_COLOR,this.formBorderColor=$.FORM_BORDER_COLOR,this.isPageBreak=!1,this.xLeft=n.xLeft,this.xRight=n.xRight,this.yTop=n.yTop,this.yBot=n.y
164Bot,this.fontSize=t?t.fontSize:ZZ.FONT_SIZE}translateX(e){let t=e(this.xLeft,this.xRight);this.xLeft=t.xLeft,this.xRight=t.xRight}get width(){return this.xRight-this.xLeft}get height(){return this.yBot-this.yTop}getShouldRenderReadOnly(){return $.shouldRenderReadOnly(this.question,this.controller)}render(){return Q(this,void 0,void 0,function*(){this.getShouldRenderReadOnly()?yield this.renderReadOnly():yield this.renderInteractive(),this.afterRenderCallback&&this.afterRenderCallback()})}renderInteractive(){return Q(this,void 0,void 0,function*(){})}renderReadOnly(){return Q(this,void 0,void 0,function*(){yield this.renderInteractive()})}unfold(){return[this]}getCorrectedText(e){return this.controller.isRTL?(e||``).split(``).reverse().join(``):e}setXLeft(e){this._xLeft=e}setXRight(e){this._xRight=e}setYTop(e){this._yTop=e}setYBottom(e){this._yBot=e}},NZ=class extends MZ{constructor(e,t,n,r){super(e,t,n),this.text=r,this.align={isInputRtl:!1,isOutputRtl:t.isRTL,align:t.isRTL?`right`:`left`,baseline:`middle`}}escapeText(){for(;this.text.indexOf(` `)>-1;)this.text=this.text.replace(` `,[,,,,,].join(`\xA0`));return this.text}renderInteractive(){return Q(this,void 0,void 0,function*(){let e=this.alignPoint(this),t=this.controller.fontSize;this.controller.fontSize=this.fontSize;let n=this.controller.doc.getTextColor();this.controller.doc.setTextColor(this.textColor),this.controller.doc.text(this.escapeText(),e.xLeft,e.yTop,this.align),this.controller.doc.setTextColor(n),this.controller.fontSize=t})}alignPoint(e){return{xLeft:this.controller.isRTL?e.xRight:e.xLeft,yTop:e.yTop+(e.yBot-e.yTop)/2}}},PZ=class e{constructor(e,t,n){this.survey=e,this.controller=n,this.question=t}generateFlatTitle(e){return Q(this,void 0,void 0,function*(){return yield $.createTitleFlat(e,this.question,this.controller)})}generateFlatDescription(e){return Q(this,void 0,void 0,function*(){return yield $.createDescFlat(e,this.question,this.controller,this.question.locDescription)})}generateFlatHeader(t){return Q(this,void 0,void 0,function*(){let n=yield this.generateFlatTitle(t),r=new TZ(n);if(this.question.hasDescriptionUnderTitle){let t=$.createPoint(n,!0,!1);t.yTop+=e.DESC_GAP_SCALE*this.controller.unitHeight,t.xLeft+=this.controller.unitWidth*e.CONTENT_INDENT_SCALE,r.addBrick(yield this.generateFlatDescription(t))}return r})}generateFlatsComment(e){return Q(this,void 0,void 0,function*(){let t=this.question.locCommentText,n=yield $.createTextFlat(e,this.question,this.controller,t,NZ),r=$.createPoint(n);return r.yTop+=this.controller.unitHeight*$.GAP_BETWEEN_ROWS,new TZ(n,yield $.createCommentFlat(r,this.question,this.controller,{fieldName:this.question.id+`_comment`,rows:$.OTHER_ROWS_COUNT,value:this.question.comment!==void 0&&this.question.comment!==null?this.question.comment:``,shouldRenderBorders:G.readOnlyCommentRenderMode===`textarea`,isReadOnly:this.question.isReadOnly,isMultiline:!0,placeholder:``}))})}generateFlatsComposite(e){return Q(this,void 0,void 0,function*(){let t=this.question.contentPanel;return t?yield jZ.generateFlatsPanel(this.survey,this.controller,t,e):(this.question=$.getContentQuestion(this.question),yield this.generateFlatsContent(e))})}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){return null})}generateFlatsContentWithOptionalElements(e){return Q(this,void 0,void 0,function*(){let t=[],n=yield this.generateFlatsComposite(e);Array.isArray(n)&&t.push(...n);let r=()=>{let r=$.clone(e);return n!==null&&n.length!==0&&(r.yTop=$.mergeRects(...t).yBot+this.controller.unitHeight*$.GAP_BETWEEN_ROWS),r};return this.question.hasComment&&t.push(yield this.generateFlatsComment(r(
164))),this.question.hasDescriptionUnderInput&&t.push(yield this.generateFlatDescription(r())),t})}generateFlats(t){return Q(this,void 0,void 0,function*(){this.controller.pushMargins(),this.controller.margins.left+=this.controller.measureText(this.question.indent).width;let n={xLeft:t.xLeft+this.controller.measureText(this.question.indent).width,yTop:t.yTop},r=[],i=this.question.getTitleLocation();switch(i=this.question.hasTitle?i:`hidden`,i){case`top`:case`default`:{let t=yield this.generateFlatHeader(n),i=$.createPoint(t);i.xLeft+=this.controller.unitWidth*e.CONTENT_INDENT_SCALE,t.addBrick($.createRowlineFlat($.createPoint(t),this.controller)),i.yTop+=this.controller.unitHeight*e.CONTENT_GAP_VERT_SCALE+$.EPSILON,this.controller.pushMargins(),this.controller.margins.left+=this.controller.unitWidth*e.CONTENT_INDENT_SCALE;let a=yield this.generateFlatsContentWithOptionalElements(i);this.controller.popMargins(),a!==null&&a.length!==0&&t.addBrick(a.shift()),r.push(t),r.push(...a);break}case`bottom`:{let t=$.clone(n);this.controller.pushMargins(),t.xLeft+=this.controller.unitWidth*e.CONTENT_INDENT_SCALE,this.controller.margins.left+=this.controller.unitWidth*e.CONTENT_INDENT_SCALE;let i=yield this.generateFlatsContentWithOptionalElements(t);this.controller.popMargins(),r.push(...i);let a=n;r.length!==0&&(a.yTop=r[r.length-1].yBot),a.yTop+=this.controller.unitHeight*e.CONTENT_GAP_VERT_SCALE,r.push(yield this.generateFlatHeader(a));break}case`left`:{this.controller.pushMargins(this.controller.margins.left,this.controller.paperWidth-this.controller.margins.left-$.getPageAvailableWidth(this.controller)*$.MULTIPLETEXT_TEXT_PERS);let t=yield this.generateFlatHeader(n),i=$.createPoint(t,!1,!0);this.controller.popMargins(),i.xLeft+=this.controller.unitWidth*e.CONTENT_GAP_HOR_SCALE,this.controller.margins.left=i.xLeft;let a=yield this.generateFlatsContentWithOptionalElements(i);a!==null&&a.length!==0&&t.addBrick(a.shift()),r.push(t),r.push(...a);break}case`hidden`:case $.TITLE_LOCATION_MATRIX:default:{let t=$.clone(n);this.controller.pushMargins(),i!==$.TITLE_LOCATION_MATRIX&&(t.xLeft+=this.controller.unitWidth*e.CONTENT_INDENT_SCALE,this.controller.margins.left+=this.controller.unitWidth*e.CONTENT_INDENT_SCALE),r.push(...yield this.generateFlatsContentWithOptionalElements(t)),this.controller.popMargins();break}}return this.controller.popMargins(),r})}get shouldRenderAsComment(){return $.shouldRenderReadOnly(this.question,this.controller)}};PZ.CONTENT_GAP_VERT_SCALE=.5,PZ.CONTENT_GAP_HOR_SCALE=1,PZ.CONTENT_INDENT_SCALE=1,PZ.DESC_GAP_SCALE=.0625,J.addProperty(`question`,{name:`readonlyRenderAs`,default:`auto`,choices:[`auto`,`text`,`acroform`],visible:!1});var FZ=class extends PZ{generateFlatsContent(e){return Q(this,void 0,void 0,function*(){return[yield $.createTextFlat(e,this.question,this.controller,`${this.question.displayValue}`,NZ)]})}},IZ=class e{constructor(){this.questions={}}static getInstance(){return e.instance}register(e,t){this.questions[e]=t}isTypeRegistered(e){return!!this.questions[e]}getRenderer(e){return this.questions[e]}create(e,t,n,r){var i;let a=r===void 0?t.getType():r,o=this.getRenderer(a);return o||(o=(i=t.customWidget)!=null&&i.pdfRender?PZ:FZ),new o(e,t,n)}static register(e,t){this.getInstance().register(e,t)}static getRenderer(e){return this.getInstance().getRenderer(e)}};IZ.instance=new IZ;var LZ=class extends NZ{constructor(e,t,n,r){super(e,t,n,r)}renderInteractive(){let e=Object.create(null,{renderInteractive:{get:()=>super.renderInteractive}});return Q(this,void 0,void 0,function*(){this.controller.fontStyle=`bold`,yield e.renderInteractive.call(this),this.controller.fontStyle=`normal`})}},RZ=class extends LZ{constructor(e,t,n,r){super(e,t,n,r)}renderInteractive(){let e=Object.create(null,{renderInteractive:{get:()=>super.renderInteractive}});return Q(this,void 0,void 0,function*(){let t=this.controller.fontSize;this.controller.fontSize=t*$.TITLE_PANEL_FONT_SIZE_SCALE,yield e.renderInteractive.call(this),this.controller.fontSize=t})}},zZ=class extends NZ{constructor(e,t,n,r){super(e,t,n,r)}},BZ=class e extends NZ{constructor(t,n){super(t.question,t.controller,t,t.text),this.link=n,this.textColor=e.COLOR}renderInteractive(){let t=Object.create(null,{renderInteractive:{get:()=>super.renderInteractive}});return Q(this,void 0,void 0,function*(){let n=this.controller.doc.getTextColor();this.controller.doc.setTextColor($.BACKGROUND_COLOR);let r=this.controller.unitHeight*(this.controller.doc.getLineHeightFactor()-e.SCALE_FACTOR_MAGIC),i=this.yTop+(this.yBot-this.yTop)-r;this.controller.doc.textWithLink(this.text,this.xLeft,i,{url:this.link}),yield t.renderInteractive.call(this),this.controller.doc.setTextColor(n)})}renderReadOnly(){let e=Object.create(null,{renderInteractive:{get:()=>super.renderInteractive}});return Q(this,void 0,void 0,function*(){if($.getReadonlyRenderAs(this.question,this.controller)!==`text`)return this.renderInteractive();yield e.renderInteractive.call(this)})}};BZ.SCALE_FACTOR_MAGIC=.955,BZ.COLOR=`#0000EE`;var VZ=class extends MZ{constructor(e,t,n,r,i=!1){super(e,t,n),this.html=r,this.margins=i?{top:0,bottom:0}:{top:t.margins.top,bottom:t.margins.bot}}renderInteractive(){return Q(this,void 0,void 0,function*(){let e=this.controller.fontSize;this.controller.fontSize=this.fontSize,yield new Promise(e=>{this.controller.doc.fromHTML(this.html,this.xLeft,this.yTop,{width:this.width,pagesplit:!0}
164,function(){[].slice.call(document.querySelectorAll(`.sjs-pdf-hidden-html-div`)).forEach(function(e){e.parentNode.removeChild(e)}),e()},this.margins)}),this.controller.fontSize=e})}},HZ=class extends MZ{constructor(e,t,n,r,i,a,o,s,c){super(e,t,{xLeft:r.xLeft,xRight:r.xLeft+(i||0),yTop:r.yTop,yBot:r.yTop+(a||0)}),this.image=n,this.targetWidth=i,this.targetHeight=a,this.imageWidth=o,this.imageHeight=s,this.imageId=c,this.imageWidth=this.imageWidth||this.targetWidth,this.imageHeight=this.imageHeight||this.targetHeight,this.isPageBreak=this.targetHeight===void 0}renderInteractive(){return Q(this,void 0,void 0,function*(){let e=this.targetWidth>this.imageWidth?this.xLeft+(this.targetWidth-this.imageWidth)/2:this.xLeft,t=this.targetHeight>this.imageHeight?this.yTop+(this.targetHeight-this.imageHeight)/2:this.yTop;yield new Promise(n=>{try{this.controller.doc.addImage(this.image,`PNG`,e,t,Math.min(this.imageWidth,this.targetWidth),Math.min(this.imageHeight,this.targetHeight),this.imageId,`MEDIUM`)}finally{n()}})})}},UZ=class extends MZ{constructor(e,t=null,n=!1){super(null,t,e),this.controller=t,this.isBorderVisible=!1,this.isBorderVisible=n}resizeBorder(e){let t=e?1:-1,n=this.controller.doc.getFontSize()*$.VALUE_READONLY_PADDING_SCALE;this.xLeft-=t*n,this.xRight+=t*n,this.yBot+=t*n}renderInteractive(){return Q(this,void 0,void 0,function*(){this.isBorderVisible&&(this.resizeBorder(!0),$.renderFlatBorders(this.controller,this),this.resizeBorder(!1))})}},WZ=class extends MZ{constructor(e,t,n,r){super(e,t,n),this.question=e,this.options=r,r.isMultiline=r.isMultiline??!1,r.placeholder=r.placeholder??``,r.inputType=r.inputType??``,r.value=r.value??``,this.question=e}renderColorQuestion(){let e=this.controller.doc.getFillColor();this.controller.doc.setFillColor(this.question.value||`black`),this.controller.doc.rect(this.xLeft,this.yTop,this.width,this.height,`F`),this.controller.doc.setFillColor(e)}renderInteractive(){return Q(this,void 0,void 0,function*(){if(this.options.inputType===`color`){this.renderColorQuestion();return}let e=this.options.inputType===`password`?new this.controller.doc.AcroFormPasswordField:new this.controller.doc.AcroFormTextField;e.fieldName=this.options.fieldName,e.fontName=this.controller.fontName,e.fontSize=this.fontSize,e.isUnicode=$.isCustomFont(this.controller,e.fontName),this.options.inputType===`password`?e.value=``:(e.V=` `+this.getCorrectedText(this.options.value),e.DV=` `+this.getCorrectedText(this.options.placeholder)),e.multiline=this.options.isMultiline,e.readOnly=this.options.isReadOnly,e.color=this.textColor;let t=$.formScale(this.controller,this);e.maxFontSize=this.controller.fontSize*t,e.Rect=$.createAcroformRect($.scaleRect(this,t)),this.controller.doc.addField(e),$.renderFlatBorders(this.controller,this)})}shouldRenderFlatBorders(){return this.options.shouldRenderBorders}getShouldRenderReadOnly(){return $.shouldRenderReadOnly(this.question,this.controller,this.options.isReadOnly)}get textBrick(){return this._textBrick}set textBrick(e){this._textBrick=e;let t=e.unfold(),n=t.length,r=0,i={},a=e=>{if(this.shouldRenderFlatBorders()){r++;let t=this.controller.getCurrentPageIndex();if(i[t]||(i[t]=[]),i[t].push(e),r>=n){let e=Object.keys(i),n=e.length==1;e.forEach(e=>{let r=new TZ;i[e].forEach(e=>{r.addBrick(e)});let a=this.controller.unitHeight*$.VALUE_READONLY_PADDING_SCALE,o={xLeft:this.xLeft,xRight:this.xRight,width:this.width,yTop:n?this.yTop:r.yTop-a,yBot:n?this.yBot:r.yBot+a,height:n?this.height:r.height+2*a,formBorderColor:this.formBorderColor};this.controller.setPage(Number(e)),$.renderFlatBorders(this.controller,o),this.controller.setPage(t)})}}};t.forEach(e=>{e.afterRenderCallback=a.bind(this,e)})}renderReadOnly(){return Q(this,void 0,void 0,function*(){this.controller.pushMargins(this.xLeft,this.controller.paperWidth-this.xRight),this.options.inputType===`color`?this.renderColorQuestion():yield this.textBrick.render(),this.controller.popMargins()})}unfold(){return this.getShouldRenderReadOnly()&&this.options.inputType!==`color`?this.textBrick.unfold():super.unfold()}translateX(e){let t=e(this.xLeft,this.xRight);this._xLeft=t.xLeft,this._xRight=t.xRight,this.textBrick&&this.textBrick.translateX(e)}setXLeft(e){let t=e-this._xLeft;super.setXLeft(e),this.textBrick&&(this.textBrick.xLeft=this.textBrick.xLeft+t)}setXRight(e){let t=e-this._xRight;super.setXRight(e),this.textBrick&&(this.textBrick.xRight=this.textBrick.xRight+t)}setYTop(e){let t=e-this._yTop;super.setYTop(e),this.textBrick&&(this.textBrick.yTop=this.textBrick.yTop+t)}setYBottom(e){let t=e-this._yBot;super.setYBottom(e),this.textBrick&&(this.textBrick.yBot=this.textBrick.yBot+t)}
164},GZ=class{constructor(){this.hash={},this.imageId=1}getImageId(){return`image_${this.imageId++}`}_getImageInfo(e){return Q(this,void 0,void 0,function*(){return{data:e,width:0,height:0,id:this.getImageId()}})}getImageInfo(e){return Q(this,void 0,void 0,function*(){if(!this.hash[e])try{this.hash[e]=yield this._getImageInfo(e)}catch{this.hash[e]=this.emptyImage}return this.hash[e]})}applyImageFit(e,t,n,r){return Q(this,void 0,void 0,function*(){if(t==`fill`)return{data:e.data,id:e.id,width:n,height:r};if((t==`contain`||t==`cover`)&&e.width&&e.height&&n&&n){let t=Math.min(n/e.width,r/e.height);return{data:e.data,id:e.id,width:e.width*t,height:e.height*t}}return e})}get emptyImage(){return{data:``,width:0,height:0,id:`image_0`}}clear(){this.hash={},this.imageId=1}},KZ=new GZ;function qZ(){return KZ}function JZ(e){KZ=e}var $=class e{static parseWidth(e,t,n=1,r){if(e.indexOf(`calc`)===0)return t/n;let i=parseFloat(e),a=e.replace(/[^A-Za-z%]/g,``)||r,o;switch(a){case`pt`:o=1;break;case`mm`:o=72/25.4;break;case`cm`:o=72/2.54;break;case`in`:o=72;break;case`px`:o=72/96;break;case`pc`:o=12;break;case`em`:o=12;break;case`ex`:o=6;break;default:case`%`:o=t/100}return Math.min(i*o,t)}static pxToPt(t){return typeof t==`string`?(isNaN(Number(t))||(t+=`px`),e.parseWidth(t,Number.MAX_VALUE)):t*72/96}static mergeRects(...e){let t={xLeft:e[0].xLeft,xRight:e[0].xRight,yTop:e[0].yTop,yBot:e[0].yBot};return e.forEach(e=>{t.xLeft=Math.min(t.xLeft,e.xLeft),t.xRight=Math.max(t.xRight,e.xRight),t.yTop=Math.min(t.yTop,e.yTop),t.yBot=Math.max(t.yBot,e.yBot)}),t}static createPoint(e,t=!0,n=!1){return{xLeft:t?e.xLeft:e.xRight,yTop:n?e.yTop:e.yBot}}static createRect(e,t,n){return{xLeft:e.xLeft,xRight:e.xLeft+t,yTop:e.yTop,yBot:e.yTop+n}}static createHeaderRect(e){return{xLeft:0,xRight:e.paperWidth,yTop:0,yBot:e.margins.top}}static createFooterRect(e){return{xLeft:0,xRight:e.paperWidth,yTop:e.paperHeight-e.margins.bot,yBot:e.paperHeight}}static chooseHtmlFont(e){return e.useCustomFontInHtml?e.fontName:this.STANDARD_FONT}static generateCssTextRule(e,t,n){return`"font-size: ${e}pt; font-weight: ${t}; font-family: ${n}; color: ${this.TEXT_COLOR}; margin: 0"`}static createHtmlContainerBlock(e,t,n){let r=this.chooseHtmlFont(t);return`<div class="__surveypdf_html" style=${this.generateCssTextRule(t.fontSize,t.fontStyle,r)}><style>.__surveypdf_html p { margin: 0; line-height: ${t.fontSize}pt } body { margin: 0; }</style>${e}</div>`}static splitHtmlRect(e,t){let n=[],r=t.height,i=e.doc.getFontSize();t.yBot=t.yTop+i;let a=Math.floor(r/i)-1;n.push(t);let o=this.createPoint(t);for(let e=0;e<a;e++)n.push(new UZ(this.createRect(o,t.width,i))),o.yTop+=i;let s=r-(a+1)*i;return s>0&&n.push(new UZ(this.createRect(o,t.width,s))),new TZ(...n)}static createPlainTextFlat(e,t,n,r,i){let a=n.doc.splitTextToSize(r,n.paperWidth-n.margins.right-e.xLeft),o=this.clone(e),s=new TZ;return a.forEach(e=>{let r=n.measureText(e);s.addBrick(new i(t,n,this.createRect(o,r.width,r.height),e)),o.yTop+=r.height}),s}static createTextFlat(e,t,n,r,i){return Q(this,void 0,void 0,function*(){return typeof r==`string`||!this.hasHtml(r)?this.createPlainTextFlat(e,t,n,typeof r==`string`?r:this.getLocString(r),i):this.splitHtmlRect(n,yield this.createHTMLFlat(e,t,n,this.createHtmlContainerBlock(this.getLocString(r),n,`standard`)))})}static hasHtml(e){let t=/<\/?[a-z][\s\S]*>/i;return e.hasHtml&&(t.test(e.renderedText)||t.test(e.renderedHtml))}static getHtmlMargins(e,t){let n=e.paperWidth-t.xLeft-e.margins.right;return{top:e.margins.top,bottom:e.margins.bot,width:n>e.unitWidth?n:e.unitWidth}}static createHTMLRect(t,n,r,i){let a=n.paperHeight-n.margins.bot-n.margins.top,o=(n.helperDoc.getNumberOfPages()-1)*(n.fontSize*Math.floor(a/n.fontSize))+i-r.top+e.HTML_TAIL_TEXT_SCALE*n.fontSize,s=n.helperDoc.getNumberOfPages();n.helperDoc.addPage();for(let e=0;e<s;e++)n.helperDoc.deletePage(1);return e.createRect(t,r.width,o)}static createHTMLFlat(t,n,r,i){return Q(this,void 0,void 0,function*(){let a=this.getHtmlMargins(r,t);return yield new Promise(o=>{r.helperDoc.fromHTML(i,t.xLeft,a.top,{pagesplit:!0,width:a.width}
164,function(s){o(new VZ(n,r,e.createHTMLRect(t,r,a,s.y),i))},a)})})}static generateFontFace(e,t,n){return`@font-face { font-family: ${e}; src: url(data:application/font-woff;charset=utf-8;base64,${t}) format('woff'); font-weight: ${n}; }`}static generateFontFaceWithItalicStyle(e,t,n){return`@font-face { font-family: ${e}; src: url(data:application/font-woff;charset=utf-8;base64,${t}) format('woff'); font-weight: ${n}; font-style: italic}`}static htmlToXml(e){let t=document.implementation.createHTMLDocument(``);return t.write(e.replace(/\#/g,`%23`)),t.documentElement.setAttribute(`xmlns`,t.documentElement.namespaceURI),t.body.style.margin=`unset`,new XMLSerializer().serializeToString(t.body).replace(/%23/g,`#`)}static createSvgContent(e,t,n){let r=document.createElement(`style`);r.innerHTML=`.__surveypdf_html p { margin: unset; line-height: 22px; } body { margin: unset; }`,document.body.appendChild(r);let i=document.createElement(`div`);i.className=`__surveypdf_html`,i.style.display=`block`,i.style.position=`fixed`,i.style.top=`-10000px`,i.style.left=`-10000px`,i.style.width=t/72*96+`px`,i.style.boxSizing=`initial`,i.style.color=`initial`,i.style.fontFamily=`
164initial`,i.style.font=`initial`,i.style.lineHeight=`initial`,i.insertAdjacentHTML(`beforeend`,e),document.body.appendChild(i);let a=i.offsetWidth,o=i.offsetHeight;i.remove(),r.remove();let s=``;return n.useCustomFontInHtml?s=`<defs><style>${this.generateFontFace(n.fontName,n.base64Normal,`normal`)} ${this.generateFontFace(n.fontName,n.base64Bold,`bold`)}</style></defs>`:Object.keys(ZZ.customFonts).forEach(e=>{let t=ZZ.customFonts[e];Object.keys(t).forEach(n=>{s+=n===`normal`||n===`bold`?`${this.generateFontFace(e,t[n],n)}`:`${this.generateFontFaceWithItalicStyle(e,t[n],n===`italic`?`normal`:`bold`)}`}),s=`<defs><style>`+s+`</style></defs>`}),{svg:`<svg xmlns="http://www.w3.org/2000/svg" width="${a}px" height="${o}px">`+s+`<style>.__surveypdf_html p { margin: unset; line-height: 22px; }</style><foreignObject width="${a}px" height="${o}px">`+this.htmlToXml(e)+`</foreignObject></svg>`,divWidth:a,divHeight:o}}static setCanvas(t,n,r,i){t.width=n*e.HTML_TO_IMAGE_QUALITY,t.height=r*e.HTML_TO_IMAGE_QUALITY;let a=t.getContext(`2d`);a.scale(e.HTML_TO_IMAGE_QUALITY,e.HTML_TO_IMAGE_QUALITY),a.fillStyle=e.BACKGROUND_COLOR,a.fillRect(0,0,n,r),a.drawImage(i,0,0)}static htmlToImage(t,n,r){return Q(this,void 0,void 0,function*(){let{svg:i,divWidth:a,divHeight:o}=e.createSvgContent(t,n,r),s=`data:image/svg+xml;base64,`+btoa(unescape(encodeURIComponent(i))),c=new Image;return c.crossOrigin=`anonymous`,c.src=s,new Promise(t=>{c.onload=function(){let n=document.createElement(`canvas`);e.setCanvas(n,a,o,c);let r=n.toDataURL(`image/jpeg`,e.HTML_TO_IMAGE_QUALITY);n.remove(),t({url:r,aspect:a/o})},c.onerror=function(){t({url:`data:,`,aspect:n/this.EPSILON})}})})}static createBoldTextFlat(e,t,n,r){return Q(this,void 0,void 0,function*(){n.fontStyle=`bold`;let i=yield this.createTextFlat(e,t,n,r,LZ);return n.fontStyle=`normal`,i})}static createTitleFlat(e,t,n){return Q(this,void 0,void 0,function*(){let r=new TZ,i=this.clone(e),a=n.fontSize;if(n.fontSize*=this.TITLE_FONT_SCALE,t.no){let e=t.no+` `,a;this.hasHtml(t.locTitle)?(n.fontStyle=`bold`,n.pushMargins(),n.margins.right=n.paperWidth-n.margins.left-n.measureText(e,`bold`).width,a=yield this.createHTMLFlat(i,t,n,this.createHtmlContainerBlock(e,n,`standard`)),n.popMargins(),n.fontStyle=`normal`):a=yield this.createBoldTextFlat(i,t,n,e),r.addBrick(a),i.xLeft=a.xRight}n.pushMargins(),n.margins.left=i.xLeft;let o=yield this.createBoldTextFlat(i,t,n,t.locTitle);if(r.addBrick(o),n.popMargins(),t.isRequired){let e=t.requiredText;this.hasHtml(t.locTitle)?(i=this.createPoint(o.unfold()[0],!1,!1),n.fontStyle=`bold`,n.pushMargins(),n.margins.right=n.paperWidth-n.margins.left-n.measureText(e,`bold`).width,r.addBrick(yield this.createHTMLFlat(i,t,n,this.createHtmlContainerBlock(e,n,`standard`))),n.popMargins(),n.fontStyle=`normal`):(i=this.createPoint(o.unfold().pop(),!1,!0),r.addBrick(yield this.createBoldTextFlat(i,t,n,e)))}return n.fontSize=a,r})}static createTitleSurveyPanelFlat(e,t,n,r){return Q(this,void 0,void 0,function*(){let i=t.fontSize;t.fontSize=i*r,t.fontStyle=`bold`;let a=yield this.createTextFlat(e,null,t,n,RZ);return t.fontStyle=`normal`,t.fontSize=i,a})}static createTitleSurveyFlat(e,t,n){return Q(this,void 0,void 0,function*(){return yield this.createTitleSurveyPanelFlat(e,t,n,this.TITLE_SURVEY_FONT_SIZE_SCALE)})}static createTitlePanelFlat(e,t,n){return Q(this,arguments,void 0,function*(e,t,n,r=!1){return yield this.createTitleSurveyPanelFlat(e,t,n,r?this.TITLE_PAGE_FONT_SIZE_SCALE:this.TITLE_PANEL_FONT_SIZE_SCALE)})}static createDescFlat(e,t,n,r){return Q(this,void 0,void 0,function*(){let i=n.fontSize;n.fontSize=i*this.DESCRIPTION_FONT_SIZE_SCALE;let a=yield this.createTextFlat(e,t,n,r,zZ);return n.fontSize=i,a})}static getReadonlyRenderAs(e,t){return e.readonlyRenderAs===`auto`?t.readonlyRenderAs:e.readonlyRenderAs}static createCommentFlat(t,n,r,i){return Q(this,void 0,void 0,function*(){i.rows=i.rows??1,i.value=i.value??``;let a=this.createTextFieldRect(t,r,i.rows),o;if(e.shouldRenderReadOnly(n,r,i.isReadOnly)){o=yield this.createReadOnlyTextFieldTextFlat(t,r,n,i.value);let e=r.unitHeight*this.VALUE_READONLY_PADDING_SCALE;o.yBot+e>a.yBot&&(a.yBot=o.yBot+e)}let s=new WZ(n,r,a,i);return o&&(s.textBrick=o),s})}static get hasDocument(){return typeof document<`u`}static createImageFlat(e,t,n,r,i){return Q(this,void 0,void 0,function*(){let a=qZ(),o=yield a.getImageInfo(r.link);return(i??n.applyImageFit)&&(o=yield a.applyImageFit(o,r.objectFit||`fill`,r.width,r.height)),new HZ(t,n,o.data,e,r.width,r.height,o.width,o.height,o.id)})}static canPreviewImage(e,t,n){return e.canPreviewImage(t)}static createRowlineFlat(e,t,n,r){let i=n===void 0?t.paperWidth-t.margins.right:e.xLeft+n;return i=i>e.xLeft?i:e.xLeft+this.EPSILON,new EZ(t,{xLeft:e.xLeft,xRight:i,yTop:e.yTop+this.EPSILON,yBot:e.yTop+this.EPSILON},r===void 0?null:r)}static createLinkFlat(e,t,n,r,i){return Q(this,void 0,void 0,function*(){let a=yield this.createTextFlat(e,t,n,r,NZ),o=new TZ;
164return a.unfold().forEach(e=>{o.addBrick(new BZ(e,i));let t=this.createPoint(o);o.addBrick(this.createRowlineFlat(t,n,o.width,BZ.COLOR))}),o})}static createAcroformRect(e){return[e.xLeft,e.yTop,e.xRight-e.xLeft,e.yBot-e.yTop]}static createTextFieldRect(e,t,n=1){let r=t.paperWidth-e.xLeft-t.margins.right;r=Math.max(r,t.unitWidth);let i=t.unitHeight*n;return this.createRect(e,r,i)}static createReadOnlyTextFieldTextFlat(e,t,n,r){return Q(this,void 0,void 0,function*(){let i=t.unitWidth*this.VALUE_READONLY_PADDING_SCALE;e.yTop+=i,e.xLeft+=i,t.pushMargins(e.xLeft,t.margins.right+i);let a=yield this.createTextFlat(e,n,t,r.toString(),NZ);return t.popMargins(),a})}static renderFlatBorders(e,t){if(!this.FORM_BORDER_VISIBLE)return;t.rounded=t.rounded??!0,t.outside=t.outside??!1;let n=Math.min(t.width,t.height),r=this.getBorderWidth(e),i=e.unitHeight*this.VISIBLE_BORDER_SCALE*this.BORDER_SCALE,a=t.outside?(n+r)/n-i/n:(n-r)/n+i/n,o=e.doc.getDrawColor();e.doc.setDrawColor(t.formBorderColor),e.doc.setLineWidth(i);let s=this.scaleRect(t,a);if(t.dashStyle){let n=t.dashStyle,r=(Math.abs(s.yTop-s.yBot)+Math.abs(s.xLeft-s.xRight))*2,i=n.dashArray[0]+(n.dashArray[1]??n.dashArray[0]),a=n.dashArray[0]+r%i/Math.floor(r/i);e.doc.setLineDashPattern([a,n.dashArray[1]??n.dashArray[0]],n.dashPhase)}if(e.doc.rect(...this.createAcroformRect(s)),t.rounded){let r=e.unitHeight*this.UNVISIBLE_BORDER_SCALE*this.BORDER_SCALE,i=1-r/n,a=this.RADIUS_SCALE*r;e.doc.setDrawColor(this.BACKGROUND_COLOR),e.doc.setLineWidth(r),e.doc.roundedRect(...this.createAcroformRect(this.scaleRect(t,i)),a,a)}t.dashStyle&&e.doc.setLineDashPattern([]),e.doc.setDrawColor(o)}static getLocString(e){return this.hasHtml(e)?e.renderedHtml:e.renderedText||e.renderedHtml}static getContentQuestion(e){return e.contentQuestion?e.contentQuestion:e}static getContentQuestionTypeRenderAs(e,t){let n=e.renderAs;if(e.getType()===`boolean`&&t.options.useLegacyBooleanRendering&&(n=`checkbox`),n!=="default"){let t=`${e.getType()}-${n}`;if(IZ.getInstance().isTypeRegistered(t))return t}return e.getType()}static getContentQuestionType(e,t){return e.customWidget?e.customWidget.pdfQuestionType:e.contentQuestion?`custom_model`:this.getContentQuestionTypeRenderAs(e,t)}static getRatingMinWidth(e){return e.measureText(this.RATING_MIN_WIDTH).width}static getRatingItemText(e,t,n){let r=new yj(n.owner,n.useMarkdown);return r.text=this.getLocString(n),t===0&&e.minRateDescription?r.text=e.locMinRateDescription.text+` `+this.getLocString(n):t===e.visibleRateValues.length-1&&e.maxRateDescription&&(r.text=this.getLocString(n)+` `+e.locMaxRateDescription.text),r}static getPageAvailableWidth(e){return e.paperWidth-e.margins.left-e.margins.right}static getImagePickerAvailableWidth(e){let t=this.getPageAvailableWidth(e)-(this.IMAGEPICKER_COUNT-1)*e.unitHeight;return t>0?t:e.unitHeight}static getColumnWidth(e,t){return(this.getPageAvailableWidth(e)-(t-1)*e.unitWidth*this.GAP_BETWEEN_COLUMNS)/t}static setColumnMargins(e,t,n){let r=this.getColumnWidth(e,t);e.margins.left=e.margins.left+n*(r+e.unitWidth*this.GAP_BETWEEN_COLUMNS),e.margins.right=e.margins.right+(t-n-1)*(r+e.unitWidth*this.GAP_BETWEEN_COLUMNS)}static moveRect(e,t=e.xLeft,n=e.yTop){return{xLeft:t,yTop:n,xRight:t+e.xRight-e.xLeft,yBot:n+e.yBot-e.yTop}}static scaleRect(e,t){let n=Math.min(e.xRight-e.xLeft,e.yBot-e.yTop)*(1-t)/2;return{xLeft:e.xLeft+n,yTop:e.yTop+n,xRight:e.xRight-n,yBot:e.yBot-n}}static getBorderWidth(e){return 2*e.unitWidth*this.BORDER_SCALE}static formScale(e,t){let n=Math.min(t.width,t.height);return(n-this.getBorderWidth(e))/n}static generateQuestionFlats(e,t,n,r){return Q(this,void 0,void 0,function*(){let i=this.getContentQuestionType(n,e),a=new OZ(r,yield IZ.getInstance().create(e,n,t,i).generateFlats(r),n,t,IZ.getInstance(),wZ);return n.customWidget&&n.customWidget.isFit(n)&&n.customWidget.pdfRender&&e.onRenderQuestion.unshift(n.customWidget.pdfRender),yield e.onRenderQuestion.fire(e,a),[...a.bricks]})}static isFontExist(e,t){return e.doc.internal.getFont(t).fontName===t}static isCustomFont(e,t){return e.doc.internal.getFont(t).encoding===this.CUSTOM_FONT_ENCODING}
164static fixFont(e){this.isCustomFont(e,e.fontName)&&(e.doc.text(`load font`,0,0),e.doc.deletePage(1),e.addPage())}static clone(e){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}static shouldRenderReadOnly(t,n,r){return(!!t&&t.isReadOnly||r)&&e.getReadonlyRenderAs(t,n)!==`acroform`||(n==null?void 0:n.compress)}static isSizeEmpty(e){return!e||e===`auto`}static isHeightEmpty(e){return this.isSizeEmpty(e)||e==`100%`}static getCorrectedImageSize(t,n){return Q(this,void 0,void 0,function*(){let{imageWidth:r,imageLink:i,imageHeight:a,defaultImageWidth:o,defaultImageHeight:s}=n;r=typeof r==`number`?r.toString():r,a=typeof a==`number`?a.toString():a;let c=r&&e.parseWidth(r,e.getPageAvailableWidth(t),1,`px`),l=a&&e.parseWidth(a,e.getPageAvailableWidth(t),1,`px`);o=typeof o==`number`?o.toString():o,s=typeof s==`number`?s.toString():s;let u=o&&e.parseWidth(o,e.getPageAvailableWidth(t),1,`px`),d=s&&e.parseWidth(s,e.getPageAvailableWidth(t),1,`px`);if(e.isSizeEmpty(r)||e.isHeightEmpty(a)){let n=yield qZ().getImageInfo(i);e.isSizeEmpty(r)?e.isHeightEmpty(a)?n&&n.height&&n.width&&(l=Math.min(n.height,e.getPageAvailableWidth(t)),c=Math.min(n.width,e.getPageAvailableWidth(t))):n&&n.height&&(c=n.width*l/n.height):n&&n.width&&(l=n.height*c/n.width)}return{width:c||u||0,height:l||d||0}})}static clear(){qZ().clear()}};$.EPSILON=2220446049250313e-30,$.TITLE_SURVEY_FONT_SIZE_SCALE=1.7,$.TITLE_PAGE_FONT_SIZE_SCALE=1.3,$.TITLE_PANEL_FONT_SIZE_SCALE=1.3,$.DESCRIPTION_FONT_SIZE_SCALE=2/3,$.OTHER_ROWS_COUNT=2,$.RATING_MIN_WIDTH=3,$.RATING_MIN_HEIGHT=2,$.RATING_COLUMN_WIDTH=5,$.MATRIX_COLUMN_WIDTH=5,$.IMAGEPICKER_COUNT=4,$.IMAGEPICKER_RATIO=4/3,$.MULTIPLETEXT_TEXT_PERS=Math.E/10,$.HTML_TAIL_TEXT_SCALE=.24,$.SELECT_ITEM_FLAT_SCALE=.95,$.GAP_BETWEEN_ROWS=.25,$.GAP_BETWEEN_COLUMNS=1.5,$.GAP_BETWEEN_ITEM_TEXT=.25,$.FORM_BORDER_VISIBLE=!0,$.BORDER_SCALE=.1,$.VISIBLE_BORDER_SCALE=.8,$.UNVISIBLE_BORDER_SCALE=.2,$.RADIUS_SCALE=3,$.TITLE_FONT_SCALE=1.1,$.VALUE_READONLY_PADDING_SCALE=.3,$.HTML_TO_IMAGE_QUALITY=1,$.FORM_BORDER_COLOR=`#9f9f9f`,$.TEXT_COLOR=`#404040`,$.BACKGROUND_COLOR=`#FFFFFF`,$.TITLE_LOCATION_MATRIX=`matrix`,$.STANDARD_FONT=`helvetica`,$.CUSTOM_FONT_ENCODING=`Identity-H`;function YZ(e){let t=e.AcroFormAppearance.RadioButton.Circle.YesNormal;e.AcroFormAppearance.RadioButton.Circle.YesNormal=function(n){let r=t(n),i=r.stream.split(` 165`),a=e.__private__.encodeColorString(n.color);return i[0]=i[0]+` 166`+a+` 167`+a.toUpperCase(),r.stream=i.join(` 168`),r}}(function(e,t){var n=e.API,r,i=1;function a(e){for(var t=``,n=0;n<e.length;n++){for(var r=e.charCodeAt(n).toString(16).toUpperCase();r.length<4;)r=`0`+r;t+=r}return`<FEFF`+t+`>`}var o=function(e){return e.replace(/\\/g,`\\\\`).replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)},s=function(e){return e.replace(/\\\\/g,`\\`).replace(/\\\(/g,`(`).replace(/\\\)/g,`)`)};function c(e){for(var t=`[ `,n=0;n<e.length;n++)t+=a(e[n]);return t+=` ]`,t}var l=function(e){return e.toFixed(2)},u=function(e){return e.toFixed(5)};n.__acroform__={};var d=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},f=function(e){return e*i},p=function(e){return e/i},m=function(e){var t=new L,n=fe.internal.getHeight(e)||0,r=fe.internal.getWidth(e)||0;return t.BBox=[0,0,Number(l(r)),Number(l(n))],t},h=n.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.setBit`);var n=1<<t;return e|=n,e},g=n.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.clearBit`);var n=1<<t;return e&=~n,e},_=n.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.getBit`);return e&1<<t?1:0},v=n.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf`);return _(e,t-1)},y=n.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf`);return h(e,t-1)},b=n.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to
168jsPDF.API.__acroform__.clearBitForPdf`);return g(e,t-1)},x=n.__acroform__.calculateCoordinates=function(e){var t=this.internal.getHorizontalCoordinate,n=this.internal.getVerticalCoordinate,r=e[0],i=e[1],a=e[2],o=e[3],s={};return s.lowerLeft_X=t(r)||0,s.lowerLeft_Y=n(i+o)||0,s.upperRight_X=t(r+a)||0,s.upperRight_Y=n(i)||0,[Number(l(s.lowerLeft_X)),Number(l(s.lowerLeft_Y)),Number(l(s.upperRight_X)),Number(l(s.upperRight_Y))]},S=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(!(!e.V&&!e.DV)){var t=[],n=C(e,e.V||e.DV),i=r.internal.getFont(e.fontName,e.fontStyle).id;t.push(`/Tx BMC`),t.push(`q`),t.push(`BT`),t.push(r.__private__.encodeColorString(e.color)),t.push(`/`+i+` `+l(n.fontSize)+` Tf`),t.push(`1 0 0 1 0 0 Tm`),t.push(n.text),t.push(`ET`),t.push(`Q`),t.push(`EMC`);var a=new m(e);return a.stream=t.join(` 169`),a}},C=function(e,t){e.isUnicode&&(t=e.trueValue);var n=e.fontSize===0?e.maxFontSize:e.fontSize,i={text:``,fontSize:``};t=t.substr(0,1)==`(`?t.substr(1):t,t=t.substr(t.length-1)==`)`?t.substr(0,t.length-1):t;var a=t.split(` `);a=a.map(function(e){return e.split(` 170`)}),e.multiline||(a=a.map(function(e){return[e.join(` `)]}));var s=n,c=2,u=2,d=fe.internal.getHeight(e)||0;d=d<0?-d:d;var f=fe.internal.getWidth(e)||0;f=f<0?-f:f;var p=function(t,n,r){return t+1<a.length&&w(n+` `+a[t+1][0],e,r).width<=f-2*u};s++;FontSize:for(;s>0;){t=``,s--;var m=w(`3`,e,s).height,h=e.multiline?d-s:(d-m)/2;h+=c;var g,_=h,v=0,y=0,b,x=0;if(s<=0){s=12,t=`(...) Tj 171`,t+=`% Width of Text: `+w(t,e,s).width+`, FieldWidth:`+f+` 172`;break}var S=``,C=0;Line:for(var T=0;T<a.length;T++)if(a.hasOwnProperty(T)){var E=!1;if(a[T].length!==1&&x!==a[T].length-1){if((m+c)*(C+2)+c>d)continue FontSize;S+=a[T][x],E=!0,y=T,T--}else{S+=a[T][x]+` `,S=S.substr(S.length-1)==` `?S.substr(0,S.length-1):S;var D=parseInt(T),O=p(D,S,s),k=T>=a.length-1;if(O&&!k){S+=` `,x=0;continue}if(!O&&!k){if(e.multiline){if((m+c)*(C+2)+c>d)continue FontSize;y=D}else continue FontSize}else if(k)y=D;else if(e.multiline&&(m+c)*(C+2)+c>d)continue FontSize}for(var A=``,j=v;j<=y;j++){var M=a[j];if(e.multiline){if(j===y){A+=M[x]+` `,x=(x+1)%M.length;continue}if(j===v){A+=M[M.length-1]+` `;continue}}A+=M[0]+` `}switch(A=A.substr(A.length-1)==` `?A.substr(0,A.length-1):A,b=w(A,e,s).width,e.textAlign){case`right`:g=f-b-u;break;case`center`:g=(f-b)/2;break;default:g=u}if(t+=l(g)+` `+l(_)+` Td 173`,e.isUnicode){var N={};N[r.internal.getFont().id]=r.internal.getFont();var P={text:A,x:null,y:null,options:{lang:null},mutex:{pdfEscape:o,activeFontKey:r.internal.getFont().id,fonts:N,activeFontSize:e.fontSize}};r.internal.events.publish(`postProcessText`,P),t+=`<`+P.text+`> Tj 174`}else t+=`(`+o(A)+`) Tj 175`;t+=-l(g)+` 0 Td 176`,_=-(s+c),b=0,v=E?y:y+1,C++,S=``;continue Line}break}return i.text=t,i.fontSize=s,i},w=function(e,t,n){var i=r.internal.getFont(t.fontName,t.fontStyle),a=r.getStringUnitWidth(e,{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:r.getStringUnitWidth(`3`,{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:a}},T={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},E=function(){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];n.objId=void 0,n.hasAnnotation&&O.call(r,n)}},D=function(e){r.internal.acroformPlugin.printedOut&&(r.internal.acroformPlugin.printedOut=!1,r.internal.acroformPlugin.acroFormDictionaryRoot=null),r.internal.acroformPlugin.acroFormDictionaryRoot||N.call(r),r.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e)},O=function(e){var t={type:`reference`,object:e};r.internal.getPageInfo(e.page).pageContext.annotations.find(function(e){return e.type===t.type&&e.object===t.object})===void 0&&r.internal.getPageInfo(e.page).pageContext.annotations.push(t)},k=function(){if(r.internal.acroformPlugin.acroFormDictionaryRoot!==void 0)r.internal.write(`/AcroForm `+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+` 0 R`);else throw Error(`putCatalogCallback: Root missing.`)},A=function(){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0},j=function(e){var t=!e;for(var n in e||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids,e)if(e.hasOwnProperty(n)){var i=e[n],a=[],o=i.Rect;
176if(i.Rect&&(i.Rect=x.call(this,i.Rect)),r.internal.newObjectDeferredBegin(i.objId,!0),i.DA=fe.createDefaultAppearanceStream(i),typeof i==`object`&&typeof i.getKeyValueListForStream==`function`&&(a=i.getKeyValueListForStream()),i.Rect=o,i.hasAppearanceStream&&!i.appearanceStreamContent){var s=S.call(this,i);a.push({key:`AP`,value:`<</N `+s+`>>`}),r.internal.acroformPlugin.xForms.push(s)}if(i.appearanceStreamContent){var c=``;for(var l in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(l)){var u=i.appearanceStreamContent[l];if(c+=`/`+l+` `,c+=`<<`,Object.keys(u).length>=1||Array.isArray(u)){for(var n in u)if(u.hasOwnProperty(n)){var d=u[n];typeof d==`function`&&(d=d.call(this,i)),c+=`/`+n+` `+d+` `,r.internal.acroformPlugin.xForms.indexOf(d)>=0||r.internal.acroformPlugin.xForms.push(d)}}else d=u,typeof d==`function`&&(d=d.call(this,i)),c+=`/`+n+` `+d,r.internal.acroformPlugin.xForms.indexOf(d)>=0||r.internal.acroformPlugin.xForms.push(d);c+=`>>`}a.push({key:`AP`,value:`<< 177`+c+`>>`})}r.internal.putStream({additionalKeyValues:a}),r.internal.out(`endobj`)}t&&M.call(this,r.internal.acroformPlugin.xForms)},M=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=t,i=e[t];r.internal.newObjectDeferredBegin(i&&i.objId,!0),typeof i==`object`&&typeof i.putStream==`function`&&i.putStream(),delete e[n]}},N=function(){if(this.internal!==void 0&&(this.internal.acroformPlugin===void 0||this.internal.acroformPlugin.isInitialized===!1)){if(r=this,R.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(T)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw Error(`Exception while creating AcroformDictionary`);i=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new ne,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe(`postPutResources`,A),r.internal.events.subscribe(`buildDocument`,E),r.internal.events.subscribe(`putCatalog`,k),r.internal.events.subscribe(`postPutPages`,j),r.internal.acroformPlugin.isInitialized=!0}},P=n.__acroform__.arrayToPdfArray=function(e){if(Array.isArray(e)){for(var t=`[`,n=0;n<e.length;n++)switch(n!==0&&(t+=` `),typeof e[n]){case`boolean`:case`number`:case`object`:t+=e[n].toString();break;case`string`:e[n].substr(0,1)===`/`?t+=e[n].toString():t+=`(`+o(e[n].toString())+`)`}return t+=`]`,t}throw Error(`Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray`)};function ee(e,t,n){n||(n=1);for(var r=[],i;i=t.exec(e);)r.push(i[n]);return r}var F=function(e){var t=[];return typeof e==`string`&&(t=ee(e,/\((.*?)\)/g)),t},I=function(e){return e=e||``,e.toString(),e=`(`+o(e)+`)`,e},te=function(){var e;Object.defineProperty(this,"objId",{configurable:!0,get:function(){return e||(e=r.internal.newObjectDeferred()),e},set:function(t){e=t}})};te.prototype.toString=function(){return this.objId+` 0 R`},te.prototype.putStream=function(){var e=this.getKeyValueListForStream();r.internal.putStream({data:this.stream,additionalKeyValues:e}),r.internal.out(`endobj`)},te.prototype.getKeyValueListForStream=function(){return function(e){var t=[],n=Object.getOwnPropertyNames(e).filter(function(e){return e!=`content`&&e!=`appearanceStreamContent`&&e.substring(0,1)!=`_`});for(var r in n){var i=Object.getOwnPropertyDescriptor(e,n[r]);if(i&&i.configurable===!1){var a=n[r],o=e[a];o&&(Array.isArray(o)?t.push({key:a,value:P(o)}):o instanceof te?t.push({key:a,value:o.objId+` 0 R`}):typeof o!=`function`&&t.push({key:a,value:o}))}}return t}(this)};var L=function(){te.call(this),Object.defineProperty(this,"Type",{value:`/XObject`,configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:`/Form`,configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var e=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:`2 0 R`,configurable:!1,writeable:!0});var t;Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};d(L,te);var ne=function(){te.call(this);var e=[];
177Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){if(e.length>0)return e}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}});var t;Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t)return`(`+t+`)`},set:function(e){t=e}})};d(ne,te);var R=function(){te.call(this);var e=4;this.isUnicode=!1,this.trueValue=``,Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(!isNaN(t))e=t;else throw Error(`Invalid value "`+t+`" for attribute F supplied.`)}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!v(e,3)},set:function(t){this.F=t?y(e,3):b(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(!isNaN(e))t=e;else throw Error(`Invalid value "`+e+`" for attribute Ff supplied.`)}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(e){n=e===void 0?[]:e}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:p(n[0])},set:function(e){n[0]=f(e)}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:p(n[1])},set:function(e){n[1]=f(e)}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:p(n[2])},set:function(e){n[2]=f(e)}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:p(n[3])},set:function(e){n[3]=f(e)}});var r=``;Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){switch(e){case`/Btn`:case`/Tx`:case`/Ch`:case`/Sig`:r=e;break;default:throw Error(`Invalid value "`+e+`" for attribute FT supplied.`)}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof le)return;i=`FieldObject`+R.FieldNum++}return`(`+o(i)+`)`},set:function(e){i=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(e){i=e}});var c=`helvetica`;Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var l=`normal`;Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return p(u)},set:function(e){u=f(e)}});var d=50;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return p(d)},set:function(e){d=f(e)}});var m=`black`;Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return m},set:function(e){m=e}});var h=`/F1 0 Tf 0 g`;Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof le||this instanceof B))return I(h)},set:function(e){e=e.toString(),h=e}});var g=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof oe?g:I(g)},set:function(e){e=e.toString(),g=this instanceof oe?e:e.substr(0,1)===`(`?s(e.substr(1,e.length-2)):s(e)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof oe?s(g.substr(1,g.length-1)):g},set:function(e){e=e.toString(),g=this instanceof oe?`/`+e:e}});var _=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(this.isUnicode)return _;if(_)return this instanceof oe?_:I(_)},set:function(e){e=e.toString(),this.isUnicode?(_=a(e),this.trueValue=e):_=this instanceof oe?e:e.substr(0,1)===`(`?s(e.substr(1,e.length-2)):s(e)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof oe?s(_.substr(1,_.length-1)):_},set:function(e){e=e.toString(),_=this instanceof oe?`/`+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?`/Annot`:null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?`/Widget`:null}});var x=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function(){return x},set:function(e){e=!!e,x=e}});var S;Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function(){if(S)return S}
177,set:function(e){S=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,1)},set:function(e){this.Ff=e?y(this.Ff,1):b(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,2)},set:function(e){this.Ff=e?y(this.Ff,2):b(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,3)},set:function(e){this.Ff=e?y(this.Ff,3):b(this.Ff,3)}});var C=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(C!==null)return C},set:function(e){if([0,1,2].indexOf(e)!==-1)C=e;else throw Error(`Invalid value "`+e+`" for attribute Q supplied.`)}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(C){case 0:default:e=`left`;break;case 1:e=`center`;break;case 2:e=`right`}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case`right`:case 2:C=2;break;case`center`:case 1:C=1;break;default:C=0}}})};d(R,te);var re=function(){R.call(this),this.FT=`/Ch`,this.V=`()`,this.fontName=`zapfdingbats`;var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}});var t=`<< /BG [ 0.975 0.975 0.975 ] >>`;Object.defineProperty(this,"MK",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var n=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return this.isUnicode?c(n):P(n)},set:function(e){n=F(e)}}),this.getOptions=function(){return n},this.setOptions=function(e){n=e,this.sort&&n.sort()},this.addOption=function(e){e=e||``,e=e.toString(),n.push(e),this.sort&&n.sort()},this.removeOption=function(e,t){for(t=t||!1,e=e||``,e=e.toString();n.indexOf(e)!==-1&&(n.splice(n.indexOf(e),1),t!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,18)},set:function(e){this.Ff=e?y(this.Ff,18):b(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,19)},set:function(e){this.combo===!0&&(this.Ff=e?y(this.Ff,19):b(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,20)},set:function(e){e?(this.Ff=y(this.Ff,20),n.sort()):this.Ff=b(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,22)},set:function(e){this.Ff=e?y(this.Ff,22):b(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,23)},set:function(e){this.Ff=e?y(this.Ff,23):b(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,27)},set:function(e){this.Ff=e?y(this.Ff,27):b(this.Ff,27)}}),this.hasAppearanceStream=!1};d(re,R);var z=function(){re.call(this),this.fontName=`helvetica`,this.combo=!1};d(z,re);var ie=function(){z.call(this),this.combo=!0};d(ie,z);var ae=function(){ie.call(this),this.edit=!0};d(ae,ie);var oe=function(){R.call(this),this.FT=`/Btn`,Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,15)},set:function(e){this.Ff=e?y(this.Ff,15):b(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,16)},set:function(e){this.Ff=e?y(this.Ff,16):b(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,17)},set:function(e){this.Ff=e?y(this.Ff,17):b(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,26)},set:function(e){this.Ff=e?y(this.Ff,26):b(this.Ff,26)}});var e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){if(Object.keys(e).length!==0){var t=[];for(var n in t.push(`<<`),e)t.push(`/`+n+` (`+e[n]+`)`);return t.push(`>>`),t.join(` 178`)}},set:function(t){typeof t==`object`&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||``},set:function(t){typeof t==`string`&&(e.CA=t)}});var t;
178Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t=`/`+e}})};d(oe,R);var se=function(){oe.call(this),this.pushButton=!0};d(se,oe);var ce=function(){oe.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t===void 0?[]:t}})};d(ce,oe);var le=function(){R.call(this);var e;Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}});var t;Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=[];for(var t in e.push(`<<`),n)e.push(`/`+t+` (`+n[t]+`)`);return e.push(`>>`),e.join(` 179`)},set:function(e){typeof e==`object`&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||``},set:function(e){typeof e==`string`&&(n.CA=e)}});var r;Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(e){r=`/`+e}}),this.caption=`l`,this.appearanceState=`Off`,this._AppearanceType=fe.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};d(le,R),ce.prototype.setAppearance=function(e){if(!(`createAppearanceStream`in e&&`getCA`in e))throw Error(`Couldn't assign Appearance to RadioButton. Appearance was Invalid!`);for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},ce.prototype.createOption=function(e){var t=new le;return t.Parent=this,t.optionName=e,this.Kids.push(t),pe.call(this,t),t};var ue=function(){oe.call(this),this.fontName=`zapfdingbats`,this.caption=`3`,this.appearanceState=`On`,this.value=`On`,this.textAlign=`center`,this.appearanceStreamContent=fe.CheckBox.createAppearanceStream()};d(ue,oe);var B=function(){R.call(this),this.FT=`/Tx`,Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,13)},set:function(e){this.Ff=e?y(this.Ff,13):b(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,21)},set:function(e){this.Ff=e?y(this.Ff,21):b(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,23)},set:function(e){this.Ff=e?y(this.Ff,23):b(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,24)},set:function(e){this.Ff=e?y(this.Ff,24):b(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,25)},set:function(e){this.Ff=e?y(this.Ff,25):b(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,26)},set:function(e){this.Ff=e?y(this.Ff,26):b(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};d(B,R);var de=function(){B.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!v(this.Ff,14)},set:function(e){this.Ff=e?y(this.Ff,14):b(this.Ff,14)}}),this.password=!0};d(de,B);var fe={CheckBox:{createAppearanceStream:function(){return{N:{On:fe.CheckBox.YesNormal},D:{On:fe.CheckBox.YesPushDown,Off:fe.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=new m(e),n=[],i=r.internal.getFont(e.fontName,e.fontStyle).id,a=r.__private__.encodeColorString(e.color),o=C(e,e.caption);return n.push(`0.749023 g`),n.push(`0 0 `+l(fe.internal.getWidth(e))+` `+l(fe.internal.getHeight(e))+` re`),n.push(`f`),n.push(`BMC`),n.push(`q`),n.push(`0 0 1 rg`),n.push(`/`+i+` `+l(o.fontSize)+` Tf `+a),n.push(`BT`),n.push(o.text),n.push(`ET`),n.push(`Q`),n.push(`EMC`),t.stream=n.join(` 180`),t},YesNormal:function(e){var t=new m(e),n=r.internal.getFont(e.fontName,e.fontStyle).id,i=r.__private__.encodeColorString(e.color),a=[],o=fe.internal.getHeight(e),s=fe.internal.getWidth(e),c=C(e,e.caption);return a.push(`1 g`),a.push(`0 0 `+l(s)+` `+l(o)+` re`),a.push(`f`),a.push(`q`),a.push(`0 0 1 rg`),a.push(`0 0 `+l(s-1)+` `+l(o-1)+` re`),a.push(`W`),a.push(`n`),a.push(`0 g`),a.push(`BT`),a.push(`/`+n+` `+l(c.fontSize)+` Tf `+i),a.push(c.text),a.push(`ET`),a.push(`Q`),t.stream=a.join(` 181`),t},OffPushDown:function(e){var t=new m(e),n=[];return n.push(`0.749023 g`),n.push(`0 0 `+l(fe.internal.getWidth(e))+` `+l(fe.internal.getHeight(e))+` re`),n.push(`f`),t.stream=n.join(` 182`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:fe.RadioButton.Circle.OffPushDown},N:{}}
182;return t.N[e]=fe.RadioButton.Circle.YesNormal,t.D[e]=fe.RadioButton.Circle.YesPushDown,t},getCA:function(){return`l`},YesNormal:function(e){var t=new m(e),n=[],r=fe.internal.getWidth(e)<=fe.internal.getHeight(e)?fe.internal.getWidth(e)/4:fe.internal.getHeight(e)/4;r=Number((r*.9).toFixed(5));var i=fe.internal.Bezier_C,a=Number((r*i).toFixed(5));return n.push(`q`),n.push(`1 0 0 1 `+u(fe.internal.getWidth(e)/2)+` `+u(fe.internal.getHeight(e)/2)+` cm`),n.push(r+` 0 m`),n.push(r+` `+a+` `+a+` `+r+` 0 `+r+` c`),n.push(`-`+a+` `+r+` -`+r+` `+a+` -`+r+` 0 c`),n.push(`-`+r+` -`+a+` -`+a+` -`+r+` 0 -`+r+` c`),n.push(a+` -`+r+` `+r+` -`+a+` `+r+` 0 c`),n.push(`f`),n.push(`Q`),t.stream=n.join(` 183`),t},YesPushDown:function(e){var t=new m(e),n=[],r=fe.internal.getWidth(e)<=fe.internal.getHeight(e)?fe.internal.getWidth(e)/4:fe.internal.getHeight(e)/4,r=Number((r*.9).toFixed(5)),i=Number((r*2).toFixed(5)),a=Number((i*fe.internal.Bezier_C).toFixed(5)),o=Number((r*fe.internal.Bezier_C).toFixed(5));return n.push(`0.749023 g`),n.push(`q`),n.push(`1 0 0 1 `+u(fe.internal.getWidth(e)/2)+` `+u(fe.internal.getHeight(e)/2)+` cm`),n.push(i+` 0 m`),n.push(i+` `+a+` `+a+` `+i+` 0 `+i+` c`),n.push(`-`+a+` `+i+` -`+i+` `+a+` -`+i+` 0 c`),n.push(`-`+i+` -`+a+` -`+a+` -`+i+` 0 -`+i+` c`),n.push(a+` -`+i+` `+i+` -`+a+` `+i+` 0 c`),n.push(`f`),n.push(`Q`),n.push(`0 g`),n.push(`q`),n.push(`1 0 0 1 `+u(fe.internal.getWidth(e)/2)+` `+u(fe.internal.getHeight(e)/2)+` cm`),n.push(r+` 0 m`),n.push(``+r+` `+o+` `+o+` `+r+` 0 `+r+` c`),n.push(`-`+o+` `+r+` -`+r+` `+o+` -`+r+` 0 c`),n.push(`-`+r+` -`+o+` -`+o+` -`+r+` 0 -`+r+` c`),n.push(o+` -`+r+` `+r+` -`+o+` `+r+` 0 c`),n.push(`f`),n.push(`Q`),t.stream=n.join(` 184`),t},OffPushDown:function(e){var t=new m(e),n=[],r=fe.internal.getWidth(e)<=fe.internal.getHeight(e)?fe.internal.getWidth(e)/4:fe.internal.getHeight(e)/4;r=Number((r*.9).toFixed(5));var i=Number((r*2).toFixed(5)),a=Number((i*fe.internal.Bezier_C).toFixed(5));return n.push(`0.749023 g`),n.push(`q`),n.push(`1 0 0 1 `+u(fe.internal.getWidth(e)/2)+` `+u(fe.internal.getHeight(e)/2)+` cm`),n.push(i+` 0 m`),n.push(i+` `+a+` `+a+` `+i+` 0 `+i+` c`),n.push(`-`+a+` `+i+` -`+i+` `+a+` -`+i+` 0 c`),n.push(`-`+i+` -`+a+` -`+a+` -`+i+` 0 -`+i+` c`),n.push(a+` -`+i+` `+i+` -`+a+` `+i+` 0 c`),n.push(`f`),n.push(`Q`),t.stream=n.join(` 185`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:fe.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=fe.RadioButton.Cross.YesNormal,t.D[e]=fe.RadioButton.Cross.YesPushDown,t},getCA:function(){return`8`},YesNormal:function(e){var t=new m(e),n=[],r=fe.internal.calculateCross(e);return n.push(`q`),n.push(`1 1 `+l(fe.internal.getWidth(e)-2)+` `+l(fe.internal.getHeight(e)-2)+` re`),n.push(`W`),n.push(`n`),n.push(l(r.x1.x)+` `+l(r.x1.y)+` m`),n.push(l(r.x2.x)+` `+l(r.x2.y)+` l`),n.push(l(r.x4.x)+` `+l(r.x4.y)+` m`),n.push(l(r.x3.x)+` `+l(r.x3.y)+` l`),n.push(`s`),n.push(`Q`),t.stream=n.join(` 186`),t},YesPushDown:function(e){var t=new m(e),n=fe.internal.calculateCross(e),r=[];return r.push(`0.749023 g`),r.push(`0 0 `+l(fe.internal.getWidth(e))+` `+l(fe.internal.getHeight(e))+` re`),r.push(`f`),r.push(`q`),r.push(`1 1 `+l(fe.internal.getWidth(e)-2)+` `+l(fe.internal.getHeight(e)-2)+` re`),r.push(`W`),r.push(`n`),r.push(l(n.x1.x)+` `+l(n.x1.y)+` m`),r.push(l(n.x2.x)+` `+l(n.x2.y)+` l`),r.push(l(n.x4.x)+` `+l(n.x4.y)+` m`),r.push(l(n.x3.x)+` `+l(n.x3.y)+` l`),r.push(`s`),r.push(`Q`),t.stream=r.join(` 187`),t},OffPushDown:function(e){var t=new m(e),n=[];return n.push(`0.749023 g`),n.push(`0 0 `+l(fe.internal.getWidth(e))+` `+l(fe.internal.getHeight(e))+` re`),n.push(`f`),t.stream=n.join(` 188`),t}}},createDefaultAppearanceStream:function(e){var t=r.internal.getFont(e.fontName,e.fontStyle).id,n=r.__private__.encodeColorString(e.color),i=e.fontSize;return`/`+t+` `+i+` Tf `+n}};fe.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=fe.internal.getWidth(e),n=fe.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},fe.internal.getWidth=function(e){var t=0;return typeof e==`object`&&(t=f(e.Rect[2])),t},fe.internal.getHeight=function(e){var t=0;return typeof e==`object`&&(t=f(e.Rect[3])),t};var pe=n.addField=function(e){if(N.call(this),e instanceof R)D.call(this,e);
188else throw Error(`Invalid argument passed to jsPDF.addField.`);return e.page=r.internal.getCurrentPageInfo().pageNumber,this};n.addButton=function(e){if(!(e instanceof oe))throw Error(`Invalid argument passed to jsPDF.addButton.`);return pe.call(this,e)},n.addTextField=function(e){if(!(e instanceof B))throw Error(`Invalid argument passed to jsPDF.addTextField.`);return pe.call(this,e)},n.addChoiceField=function(e){if(!(e instanceof re))throw Error(`Invalid argument passed to jsPDF.addChoiceField.`);return pe.call(this,e)},typeof t==`object`&&t.ChoiceField===void 0&&t.ListBox===void 0&&t.ComboBox===void 0&&t.EditBox===void 0&&t.Button===void 0&&t.PushButton===void 0&&t.RadioButton===void 0&&t.CheckBox===void 0&&t.TextField===void 0&&t.PasswordField===void 0&&(t.ChoiceField=re,t.ListBox=z,t.ComboBox=ie,t.EditBox=ae,t.Button=oe,t.PushButton=se,t.RadioButton=ce,t.CheckBox=ue,t.TextField=B,t.PasswordField=de,t.AcroForm={Appearance:fe}),n.AcroFormChoiceField=re,n.AcroFormListBox=z,n.AcroFormComboBox=ie,n.AcroFormEditBox=ae,n.AcroFormButton=oe,n.AcroFormPushButton=se,n.AcroFormRadioButton=ce,n.AcroFormCheckBox=ue,n.AcroFormTextField=B,n.AcroFormPasswordField=de,n.AcroFormAppearance=fe,n.AcroForm={ChoiceField:re,ListBox:z,ComboBox:ie,EditBox:ae,Button:oe,PushButton:se,RadioButton:ce,CheckBox:ue,TextField:B,PasswordField:de,Appearance:fe},e.AcroForm={ChoiceField:re,ListBox:z,ComboBox:ie,EditBox:ae,Button:oe,PushButton:se,RadioButton:ce,CheckBox:ue,TextField:B,PasswordField:de,Appearance:fe}})(AY,typeof window<`u`&&window||{}),(function(e){var t=function(){return function(t){return e.prototype=t,new e};function e(){}}(),n,r,i,a,o,s,c,l,u=function(e){var t,n=0,r=e.length,i,a,o,s;for(t=void 0,i=!1,o=!1;!i&&n!==r;)t=e[n]=e[n].trimLeft(),t&&(i=!0),n++;for(n=r-1;r&&!o&&n!==-1;)t=e[n]=e[n].trimRight(),t&&(o=!0),n--;for(a=/\s+$/g,s=!0,n=0;n!==r;)e[n]!=`\u2028`&&(t=e[n].replace(/\s+/g,` `),s&&(t=t.trimLeft()),t&&(s=a.test(t)),e[n]=t),n++;return e},d=function(e,t,n,r){return this.pdf=e,this.x=t,this.y=n,this.settings=r,this.watchFunctions=[],this.init(),this},f=function(e){var t=void 0,n,i=e.split(`,`);for(n=i.shift();!t&&n;)t=r[n.trim().toLowerCase()],n=i.shift();return t},p=function(e){e=e===`auto`?`0px`:e,e.indexOf(`em`)>-1&&!isNaN(Number(e.replace(`em`,``)))&&(e=Number(e.replace(`em`,``))*18.719+`px`),e.indexOf(`pt`)>-1&&!isNaN(Number(e.replace(`pt`,``)))&&(e=Number(e.replace(`pt`,``))*1.333+`px`);var t,n=void 0,r;return t=16,r=m[e],r||(r={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[e],r!==n||(r=parseFloat(e))?m[e]=r/t:(r=e.match(/([\d\.]+)(px)/),Array.isArray(r)&&r.length===3?m[e]=parseFloat(r[1])/t:m[e]=1))},m,h,g,_,v,y,b;l=function(e){var t,n,r=function(e){var t=function(e){return document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(e,null):e.currentStyle?e.currentStyle:e.style}(e);return function(e){return e=e.replace(/-\D/g,function(e){return e.charAt(1).toUpperCase()}),t[e]}}(e);return t={},n=void 0,t[`font-family`]=f(r(`font-family`))||`times`,t[`font-style`]=i[r(`font-style`)]||`normal`,t[`text-align`]=a[r(`text-align`)]||`left`,n=o[r(`font-weight`)]||`normal`,n===`bold`&&(t[`font-style`]===`normal`?t[`font-style`]=n:t[`font-style`]=n+t[`font-style`]),t[`font-size`]=p(r(`font-size`))||1,t[`line-height`]=p(r(`line-height`))||1,t.display=r(`display`)===`inline`?`inline`:`block`,n=t.display===`block`,t[`margin-top`]=n&&p(r(`margin-top`))||0,t[`margin-bottom`]=n&&p(r(`margin-bottom`))||0,t[`padding-top`]=n&&p(r(`padding-top`))||0,t[`padding-bottom`]=n&&p(r(`padding-bottom`))||0,t[`margin-left`]=n&&p(r(`margin-left`))||0,t[`margin-right`]=n&&p(r(`margin-right`))||0,t[`padding-left`]=n&&p(r(`padding-left`))||0,t[`padding-right`]=n&&p(r(`padding-right`))||0,t[`page-break-before`]=r(`page-break-before`)||`auto`,t.float=s[r(`cssFloat`)]||`none`,t.clear=c[r(`clear`)]||`none`,t.color=r(`color`),t},h=function(e,t,n){var r,i,a=!1,o,s;if(i=void 0,o=void 0,r=n[`#`+e.id],r){if(typeof r==`function`)a=r(e,t);else for(i=0,o=r.length;!a&&i!==o;)a=r[i](e,t),i++}if(r=n[e.nodeName],!a&&r){if(typeof r==`function`)a=r(e,t);else for(i=0,o=r.length;!a&&i!==o;)a=r[i](e,t),i++}for(s=typeof e.className==`string`?e.className.split(` `):[],i=0;i<s.length;i++)if(r=n[`.`+s[i]],!a&&r){if(typeof r==`function`)a=r(e,t);else for(i=0,o=r.length;!a&&i!==o;)a=r[i](e,t),i++}return a},b=function(e,t){for(var n=[],r=[],i=0,a,o,s,c,l,u=0,a=0;a<e.rows[0].cells.length;a++)u+=e.rows[0].cells[a].colSpan;for(c=e.clientWidth;i<u;){l=e.rows[0].cells[i];for(var a=0;a<l.colSpan;a++)r[i+a]={name:l.textContent.toLowerCase().replace(/\s+/g,``)+`_`+a,prompt:l.textContent.replace(/\r?\n/g,``),width:l.clientWidth/c*t.settings.width/l.colSpan};i+=a}for(i=1;i<e.rows.length;){for(s=e.rows[i],o={},a=0;a<s.cells.length;)o[r[a].name]=s.cells[a].textContent.replace(/\r?\n/g,``),a++;n.push(o),i++}return{rows:n,headers:r}};var x={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},S=1;n=function(e,r,i){var a,o=e.childNodes,s,c,u,d,f,p;for(a=void 0,s=l(e),u=s.display===`block`,u&&(r.setBlockBoundary(),r.setBlockStyle(s)),c=0,d=o.length;c<d;){if(a=o[c],typeof a==`object`){if(r.executeWatchFunctions(a),a.nodeType===1&&a.nodeName===`HEADER`){var m=a,_=r.pdf.margins_doc.top;r.pdf.internal.events.subscribe(`addPage`,function(e){r.y=_,n(m,r,i),r.pdf.margins_doc.top=r.y+10,r.y+=10},!1)}
188if(a.nodeType===8&&a.nodeName===`#comment`)~a.textContent.indexOf(`ADD_PAGE`)&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top);else if(a.nodeType===1&&!x[a.nodeName]){var v;if(a.nodeName===`IMG`){var y=a.getAttribute(`src`);v=g[r.pdf.sHashCode&&r.pdf.sHashCode(y)||y]}if(v){r.pdf.internal.pageSize.getHeight()-r.pdf.margins_doc.bottom<r.y+a.height&&r.y>r.pdf.margins_doc.top&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top,r.executeWatchFunctions(a));var C=l(a),w=r.x,T=12/r.pdf.internal.scaleFactor,E=(C[`margin-left`]+C[`padding-left`])*T,D=(C[`margin-right`]+C[`padding-right`])*T,O=(C[`margin-top`]+C[`padding-top`])*T,k=(C[`margin-bottom`]+C[`padding-bottom`])*T;C.float!==void 0&&C.float===`right`?w+=r.settings.width-a.width-D:w+=E,r.pdf.addImage(v,w,r.y+O,a.width,a.height),v=void 0,C.float===`right`||C.float===`left`?(r.watchFunctions.push(function(e,t,n,i){return r.y>=t?(r.x+=e,r.settings.width+=n,!0):i&&i.nodeType===1&&!x[i.nodeName]&&r.x+i.width>r.pdf.margins_doc.left+r.pdf.margins_doc.width?(r.x+=e,r.y=t,r.settings.width+=n,!0):!1}.bind(this,C.float===`left`?-a.width-E-D:0,r.y+a.height+O+k,a.width)),r.watchFunctions.push(function(e,t,n){return r.y<e&&t===r.pdf.internal.getNumberOfPages()?n.nodeType===1&&l(n).clear===`both`&&(r.y=e,!0):!0}.bind(this,r.y+a.height,r.pdf.internal.getNumberOfPages())),r.settings.width-=a.width+E+D,C.float===`left`&&(r.x+=a.width+E+D)):r.y+=a.height+O+k}else if(a.nodeName===`TABLE`)r.pdf.autoTable?(r.y+=10,r.pdf.autoTable({theme:`grid`,html:a,startY:r.y,styles:{font:r.pdf.getFont().fontName,fontSize:r.pdf.getFontSize(),textColor:r.pdf.getTextColor()},margin:{top:r.pdf.margins_doc.top,left:r.x,right:r.pdf.internal.pageSize.getWidth()-(r.x+r.settings.width),bottom:r.pdf.margins_doc.bottom}}),r.y=r.pdf.lastAutoTable.finalY):(f=b(a,r),r.y+=10,r.pdf.table(r.x,r.y,f.rows,f.headers,{autoSize:!1,printHeaders:i.printHeaders,margins:r.pdf.margins_doc,css:l(a)}),r.y=r.pdf.internal.__cell__.lastCell.y+r.pdf.internal.__cell__.lastCell.height);else if(a.nodeName===`OL`||a.nodeName===`UL`)S=1,h(a,r,i)||n(a,r,i),r.y+=10;else if(a.nodeName===`LI`){var A=r.x;r.x+=20/r.pdf.internal.scaleFactor,r.y+=3,h(a,r,i)||n(a,r,i),r.x=A}else a.nodeName===`BR`?(r.y+=s[`font-size`]*r.pdf.internal.scaleFactor,r.addText(`\u2028`,t(s))):h(a,r,i)||n(a,r,i)}else if(a.nodeType===3){var j=a.nodeValue;if(a.nodeValue&&a.parentNode.nodeName===`LI`){if(a.parentNode.parentNode.nodeName===`OL`)j=S+++`. `+j;else{var M=s[`font-size`],N=(3-M*.75)*r.pdf.internal.scaleFactor,P=M*.75*r.pdf.internal.scaleFactor,ee=M*1.74/r.pdf.internal.scaleFactor;p=function(e,t){this.pdf.circle(e+N,t+P,ee,`FD`)}}}a.ownerDocument.body.compareDocumentPosition(a)&16&&r.addText(j,s)}else typeof a==`string`&&r.addText(a,s)}c++}if(i.outY=r.y,u)return r.setBlockBoundary(p)},g={},_=function(e,t,n,r){var i=e.getElementsByTagName(`img`),a=i.length,o,s=0;
188function c(){t.pdf.internal.events.publish(`imagesLoaded`),r(o)}function l(e,n,r){if(e){var i=new Image;o=++s,i.crossOrigin=``,i.onerror=i.onload=function(){if(i.complete&&(i.src.indexOf(`data:image/`)===0&&(i.width=n||i.width||0,i.height=r||i.height||0),i.width+i.height)){var a=t.pdf.sHashCode&&t.pdf.sHashCode(e)||e;g[a]=g[a]||i}--s||c()},i.src=e}}for(;a--;)l(i[a].getAttribute(`src`),i[a].width,i[a].height);return s||c()},v=function(e,t,r){var i=e.getElementsByTagName(`footer`);if(i.length>0){i=i[0];var a=t.pdf.internal.write,o=t.y;t.pdf.internal.write=function(){},n(i,t,r);var s=Math.ceil(t.y-o)+5;t.y=o,t.pdf.internal.write=a,t.pdf.margins_doc.bottom+=s;for(var c=function(e){var a=e===void 0?1:e.pageNumber,o=t.y;t.y=t.pdf.internal.pageSize.getHeight()-t.pdf.margins_doc.bottom,t.pdf.margins_doc.bottom-=s;for(var c=i.getElementsByTagName(`span`),l=0;l<c.length;++l)(` `+c[l].className+` `).replace(/[\n\t]/g,` `).indexOf(` pageCounter `)>-1&&(c[l].innerHTML=a),(` `+c[l].className+` `).replace(/[\n\t]/g,` `).indexOf(` totalPages `)>-1&&(c[l].innerHTML=`###jsPDFVarTotalPages###`);n(i,t,r),t.pdf.margins_doc.bottom+=s,t.y=o},l=i.getElementsByTagName(`span`),u=0;u<l.length;++u)(` `+l[u].className+` `).replace(/[\n\t]/g,` `).indexOf(` totalPages `)>-1&&t.pdf.internal.events.subscribe(`htmlRenderingFinished`,t.pdf.putTotalPages.bind(t.pdf,`###jsPDFVarTotalPages###`),!0);t.pdf.internal.events.subscribe(`addPage`,c,!1),c(),x.FOOTER=1}},y=function(e,t,i,a,o,s){if(!t)return!1;typeof t!=`string`&&!t.parentNode&&(t=``+t.innerHTML),typeof t==`string`&&(t=function(e){var t,n,r=`jsPDFhtmlText`+Date.now().toString()+(Math.random()*1e3).toFixed(0),i=`position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;`;return n=document.createElement(`div`),n.className=`sjs-pdf-hidden-html-div`,n.style.cssText=i,n.innerHTML=`<iframe style="height:1px;width:1px" name="`+r+`" />`,document.body.appendChild(n),t=window.frames[r],t.document.open(),t.document.writeln(e),t.document.close(),t.document.body}(t.replace(/<\/?script[^>]*?>/gi,``)));for(var c=Object.keys(e.getFontList()),l=0;l<c.length;++l){var u=c[l],f=u.toLowerCase();r[f]||(r[f]=u)}var p=new d(e,i,a,o),m;return _.call(this,t,p,o.elementHandlers,function(e){v(t,p,o.elementHandlers),n(t,p,o.elementHandlers),p.pdf.internal.events.publish(`htmlRenderingFinished`),m=p.dispose(),typeof s==`function`?s(m):e&&console.error(`jsPDF Warning: rendering issues? provide a callback to fromHTML!`)}),m||{x:p.x,y:p.y}},d.prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write(`q`)},d.prototype.dispose=function(){return this.pdf.internal.write(`Q`),{x:this.x,y:this.y,ready:!0}},d.prototype.executeWatchFunctions=function(e){var t=!1,n=[];if(this.watchFunctions.length>0){for(var r=0;r<this.watchFunctions.length;++r)this.watchFunctions[r](e)===!0?t=!0:n.push(this.watchFunctions[r]);this.watchFunctions=n}return t},d.prototype.splitFragmentsIntoLines=function(e,n){var r,i=12,a,o,s,c,l,u,d=this.pdf.internal.scaleFactor,f,p,m,h;a=void 0,u=void 0,o=void 0,h=void 0,l=void 0,c=void 0,s=void 0,f=[],p=[f],r=0,m=this.settings.width;let g=this.pdf.getFont().fontName,_=this.pdf.getFont().fontStyle;for(;e.length;)if(o=e.shift(),h=n.shift(),o){if(a=h[`font-family`],u=h[`font-style`],this.pdf.setFont(a,u),l={textIndent:r,fontSize:h[`font-size`]*i},c=this.pdf.getStringUnitWidth(o,l)*l.fontSize/d,o==`\u2028`)f=[],p.push(f);else if(r+c>m){for(s=this.pdf.splitTextToSize(o,m,l),f.push([s.shift(),h]);s.length;)f=[[s.shift(),h]],p.push(f);r=this.pdf.getStringUnitWidth(f[0][0],l)*l.fontSize/d}else f.push([o,h]),r+=c}if(h[`text-align`]!==void 0&&(h[`text-align`]===`center`||h[`text-align`]===`right`||h[`text-align`]===`justify`))for(var v=0;v<p.length;++v){var y=this.pdf.getStringUnitWidth(p[v][0][0],l)*l.fontSize/d;v>0&&(p[v][0][1]=t(p[v][0][1]));var b=m-y;if(h[`text-align`]===`right`)p[v][0][1][`margin-left`]=b;else if(h[`text-align`]===`center`)p[v][0][1][`margin-left`]=b/2;else if(h[`text-align`]===`justify`){var x=p[v][0][0].split(` `).length-1;p[v][0][1][`word-spacing`]=b/x,v===p.length-1&&(p[v][0][1][`word-spacing`]=0)}}return this.pdf.setFont(g,_),p},d.prototype.RenderTextFragment=function(e,t){var n,r,i=0;if(n=12,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()){this.pdf.internal.write(`ET`,`Q`,`Q`);let e=this.pdf.getCurrentPageInfo().pageNumber;this.pdf.getNumberOfPages()===e?this.pdf.addPage():this.pdf.setPage(e+1),this.y=this.pdf.margins_doc.top,this.pdf.internal.write(`q`,`q`,`BT`,this.getPdfColor(t.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),`Td`),i=Math.max(i,t[`line-height`],t[`font-size`]),this.pdf.internal.write(0,(-1*n*i).toFixed(2),`Td`)}r=this.pdf.internal.getFont(t[`font-family`],t[`font-style`]);var a=this.getPdfColor(t.color);a!==this.lastTextColor&&(this.pdf.internal.write(a),this.lastTextColor=a),t[`word-spacing`]!==void 0&&t[`word-spacing`]>0&&this.pdf.internal.write(t[`word-spacing`].toFixed(2),`Tw`);var o=function(e,t){for(var n=t.metadata.Unicode.widths,r=[``,`0`,`00`,`000`,`0000`],i=[``],a=0,o=e.length,s;a<o;++a){if(s=t.metadata.characterToGlyph(e.charCodeAt(a)),t.metadata.glyIdsUsed.push(s),t.metadata.toUnicode[s]=e.charCodeAt(a),n.indexOf(s)==-1&&(n.push(s),n.push([parseInt(t.metadata.widthOfGlyph(s),10)])),s==`0`)return i.join(``);s=s.toString(16),i.push(r[4-s.length],s)}return i.join(``)},s=function(e,t){var e=e||``,n=``,r=0,i,a=``,s=t.encoding;if(t.encoding!==`Identity-H`)return e;for(a=e,r=0;r<a.length;r+=1)t.metadata.hasOwnProperty(`cmap`)&&(i=t.metadata.cmap.unicode.codeMap[a[r].charCodeAt(0)]),i||a[r].charCodeAt(0)<256&&t.metadata.hasOwnProperty(`Unicode`)?n+=a[r]:n+=``;var c=``;return parseInt(t.id.slice(1))<14||s===`WinAnsiEncoding`?c=this.pdf.internal.pdfEscape(n,key).split(``).map(function(e){return e.charCodeAt(0).toString(16)}).join(``):s===`Identity-H`&&(c=o(n,t)),c},c=``;c=r.encoding===`Identity-H`?`<`+s(e,r)+`>`:`(`+this.pdf.internal.pdfEscape(e)+`)`,this.pdf.internal.write(`/`+r.id,(n*t[`font-size`]).toFixed(2),`Tf`,c+` Tj`),t[`word-spacing`]!==void 0&&this.pdf.internal.write(0,`Tw`)},d.prototype.getPdfColor=function(e){var t,n,r,i,a=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(e);
188if(a!=null)n=parseInt(a[1]),r=parseInt(a[2]),i=parseInt(a[3]);else{if(typeof e==`string`&&e.charAt(0)!=`#`){var o=new RGBColor(e);e=o.ok?o.toHex():`#000000`}n=e.substring(1,3),n=parseInt(n,16),r=e.substring(3,5),r=parseInt(r,16),i=e.substring(5,7),i=parseInt(i,16)}if(typeof n==`string`&&/^#[0-9A-Fa-f]{6}$/.test(n)){var s=parseInt(n.substr(1),16);n=s>>16&255,r=s>>8&255,i=s&255}var c=this.f3;return t=n===0&&r===0&&i===0||r===void 0?c(n/255)+` g`:[c(n/255),c(r/255),c(i/255),`rg`].join(` `),t},d.prototype.f3=function(e){return e.toFixed(3)},d.prototype.renderParagraph=function(e){var t,n,r,i=u(this.paragraph.text),a,o,s,c,l,d,f,p,m=this.paragraph.style,h;if(t=this.paragraph.blockstyle,this.paragraph.priorblockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:t},i.join(``).trim()){c=this.splitFragmentsIntoLines(i,m),s=void 0,l=void 0,n=12,r=n/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,p=(Math.max((t[`margin-top`]||0)-this.priorMarginBottom,0)+(t[`padding-top`]||0))*r,f=((t[`margin-bottom`]||0)+(t[`padding-bottom`]||0))*r,this.priorMarginBottom=t[`margin-bottom`]||0,t[`page-break-before`]===`always`&&(this.pdf.addPage(),this.y=0,p=((t[`margin-top`]||0)+(t[`padding-top`]||0))*r),d=this.pdf.internal.write,a=void 0,o=void 0,this.y+=p,d(`q`,`BT 0 g`,this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),`Td`);for(var g=0;c.length;){for(s=c.shift(),l=0,a=0,o=s.length;a!==o;)s[a][0].trim()&&(l=Math.max(l,s[a][1][`line-height`],s[a][1][`font-size`]),h=s[a][1][`font-size`]*7),a++;var _=0,v=0;s[0][1][`margin-left`]!==void 0&&s[0][1][`margin-left`]>0&&(v=this.pdf.internal.getCoordinateString(s[0][1][`margin-left`]),_=v-g,g=v);var y=Math.max(t[`margin-left`]||0,0)*r;for(d(_+y,(-1*n*l).toFixed(2),`Td`),a=0,o=s.length;a!==o;)s[a][0]&&this.RenderTextFragment(s[a][0],s[a][1]),a++;if(this.y+=l*r,this.executeWatchFunctions(s[0][1])&&c.length>0){var b=[],x=[];c.forEach(function(e){for(var t=0,n=e.length;t!==n;)e[t][0]&&(b.push(e[t][0]+` `),x.push(e[t][1])),++t}),c=this.splitFragmentsIntoLines(u(b),x),d(`ET`,`Q`),d(`q`,`BT 0 g`,this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),`Td`)}}return e&&typeof e==`function`&&e.call(this,this.x-9,this.y-h/2),d(`ET`,`Q`),this.y+=f}},d.prototype.setBlockBoundary=function(e){return this.renderParagraph(e)},d.prototype.setBlockStyle=function(e){return this.paragraph.blockstyle=e},d.prototype.addText=function(e,t){return this.paragraph.text.push(e),this.paragraph.style.push(t)},r={helvetica:`helvetica`,"sans-serif":`helvetica`,"times new roman":`times`,serif:`times`,times:`times`,monospace:`courier`,courier:`courier`},o={100:`normal`,200:`normal`,300:`normal`,400:`normal`,500:`bold`,600:`bold`,700:`bold`,800:`bold`,900:`bold`,normal:`normal`,bold:`bold`,bolder:`bold`,lighter:`normal`},i={normal:`normal`,italic:`italic`,oblique:`italic`},a={left:`left`,right:`right`,center:`center`,justify:`justify`},s={none:`none`,right:`right`,left:`left`},c={none:`none`,both:`both`},m={normal:1},e.fromHTML=function(e,t,n,r,i,a){return this.margins_doc=a||{top:0,bottom:0},r||(r={}),r.elementHandlers||(r.elementHandlers={}),y(this,e,isNaN(t)?4:t,isNaN(n)?4:n,r,i)}})(AY.API);var XZ=class e{constructor(t){this._base64Normal=void 0,this._base64Bold=void 0,this._orientation=t.orientation===void 0?t.format===void 0||t.format[0]<t.format[1]?`p`:`l`:t.orientation,this._format=t.format||`a4`,Array.isArray(this._format)&&(this._format=this._format.map(t=>t*e.MM_TO_PT)),this._fontSize=t.fontSize||e.FONT_SIZE,this._fontName=t.fontName?t.fontName:!e.SEGOE_BOLD&&!e.SEGOE_NORMAL?$.STANDARD_FONT:`segoe`,t.fontName!==void 0&&(t.base64Normal!==void 0||t.base64Bold!==void 0)?(this._base64Normal=t.base64Normal||t.base64Bold,this._base64Bold=t.base64Bold||t.base64Normal):this.fontName===`segoe`&&(this._base64Normal=e.SEGOE_NORMAL,this._base64Bold=e.SEGOE_BOLD),this._margins=$.clone(t.margins),this._margins===void 0&&(this._margins={}),this._margins.top===void 0&&(this._margins.top=10),this._margins.bot===void 0&&(this._margins.bot=10),this._margins.left===void 0&&(this._margins.left=10),this._margins.right===void 0&&(this._margins.right=10),Object.keys(this._margins).forEac
188h(t=>{this._margins[t]=this._margins[t]*e.MM_TO_PT}),this._htmlRenderAs=t.htmlRenderAs||`auto`,this._matrixRenderAs=t.matrixRenderAs||`auto`,this._readonlyRenderAs=t.readonlyRenderAs||`auto`,this._compress=t.compress||!1,this._applyImageFit=t.applyImageFit||!1,this._useLegacyBooleanRendering=t.useLegacyBooleanRendering||!1,this._isRTL=t.isRTL||!1,this._tagboxSelectedChoicesOnly=t.tagboxSelectedChoicesOnly||!1}get leftTopPoint(){return{xLeft:this.margins.left,yTop:this.margins.top}}get fontSize(){return this._fontSize}get fontName(){return this._fontName}get base64Normal(){return this._base64Normal}get base64Bold(){return this._base64Bold}get useCustomFontInHtml(){return this._useCustomFontInHtml}get margins(){return this._margins}get format(){return this._format}get orientation(){return this._orientation}get htmlRenderAs(){return this._htmlRenderAs}get matrixRenderAs(){return this._matrixRenderAs}get readonlyRenderAs(){return this._readonlyRenderAs}get compress(){return this._compress}get applyImageFit(){return this._applyImageFit}get useLegacyBooleanRendering(){return this._useLegacyBooleanRendering}get isRTL(){return this._isRTL}get tagboxSelectedChoicesOnly(){return this._tagboxSelectedChoicesOnly}};XZ.MM_TO_PT=72/25.4,XZ.FONT_SIZE=14;var ZZ=class e extends XZ{constructor(t={}){super(t);let n={orientation:this.orientation,unit:`pt`,format:this.format,compress:this.compress};this._doc=new AY(n),this.base64Normal!==void 0&&!$.isFontExist(this,this.fontName)&&(e.addFont(this.fontName,this.base64Normal,`normal`),e.addFont(this.fontName,this.base64Bold,`bold`),this._doc=new AY(n)),YZ(this._doc),this._useCustomFontInHtml=t.useCustomFontInHtml&&$.isFontExist(this,this.fontName),this._helperDoc=new AY(n),this._doc.setFont(this.fontName),this._helperDoc.setFont(this.fontName),this._doc.setFontSize(this.fontSize),this._helperDoc.setFontSize(this.fontSize),this._fontStyle=`normal`,this.marginsStack=[]}static addFont(t,n,r){let i=e.customFonts[t];i||(i={},e.customFonts[t]=i),i[r]=n,AY.API.events.push([`addFonts`,function(){let n=e.customFonts[t];if(n&&n[r]){let e=`${t}-${r}.ttf`;this.addFileToVFS(e,n[r]),this.addFont(e,t,r)}}])}get doc(){return this._doc}get helperDoc(){return this._helperDoc}get fontName(){return this._fontName}set fontName(e){this._fontName=e,this._doc.setFont(e),this._helperDoc.setFont(e)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize=e,this._doc.setFontSize(e),this._helperDoc.setFontSize(e)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle=e,this._doc.setFont(this._fontName,e),this._helperDoc.setFont(this._fontName,e)}measureText(e=1,t=this._fontStyle,n=this._fontSize){let r=this._helperDoc.getFontSize();this._helperDoc.setFontSize(n),this._helperDoc.setFont(this._fontName,t);let i=this._helperDoc.getLineHeight()/this._helperDoc.internal.scaleFactor,a=0;return typeof e==`number`?a=i*e:(e=typeof e==`string`?e:$.getLocString(e),a=e.split(``).reduce((e,t)=>e+this._helperDoc.getTextWidth(t),0)),this._helperDoc.setFontSize(r),this._helperDoc.setFont(this._fontName,`normal`),{width:a,height:i}}get unitWidth(){return this.measureText().width}get unitHeight(){return this.measureText().height}pushMargins(e,t){this.marginsStack.push({left:this.margins.left,right:this.margins.right}),e!==void 0&&(this.margins.left=e),t!==void 0&&(this.margins.right=t)}popMargins(){let e=this.marginsStack.pop();this.margins.left=e.left,this.margins.right=e.right}get paperWidth(){return this.doc.internal.pageSize.width}get paperHeight(){return this.doc.internal.pageSize.height}getNumberOfPages(){return this.doc.getNumberOfPages()}addPage(){this.doc.addPage()}getCurrentPageIndex(){return this.doc.getCurrentPageInfo().pageNumber-1}setPage(e){this.doc.setPage(e+1)}};ZZ.customFonts={};function QZ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var $Z={},eQ,tQ;function nQ(){return tQ?eQ:(tQ=1,eQ=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],d=t[l];if(i=n?n.call(r,u,d,l):void 0,i===!1||i===void 0&&u!==d)return!1}return!0},eQ)}var rQ;function iQ(){if(rQ)return $Z;rQ=1,Object.defineProperty($Z,"__esModule",{value:!0});var e=nQ();function t(e){return e===void 0?-1:e.height}var n=function(){function e(e,t){this.intervalTree=e,this.records=[],this.height=0,this.key=t.low,this.max=t.high,this.records.push(t)}return e.prototype.getNodeHigh=function(){for(var e=this.records[0].high,t=1;t<this.records.length;t++)this.records[t].high>e&&(e=this.records[t].high);return e},e.prototype.updateHeight=function(){this.height=Math.max(t(this.left),t(this.right))+1},e.prototype.updateMaxOfParents=function(){if(this!==void 0){var e=this.getNodeHigh();this.max=this.left!==void 0&&this.right!==void 0?Math.max(Math.max(this.left.max,this.right.max),e):this.left!==void 0&&this.right===void 0?Math.max(this.left.max,e):this.left===void 0&&this.right!==void 0?Math.max(this.right.max,e):e,this.parent&&this.parent.updateMaxOfParents()}},e.prototype._updateMaxAfterRightRotate=function(){var e=this.parent,t=e.left,n=t.getNodeHigh();t.max=t.left===void 0&&t.right!==void 0?Math.max(n,t.right.max):t.left!==void 0&&t.right===void 0?Math.max(n,t.left.max):t.left===void 0&&t.right===void 0?n:Math.max(Math.max(t.left.max,t.right.max),n);var r=this.getNodeHigh();this.max=this.left===void 0&&this.right!==void 0?Math.max(r,this.right.max):this.left!==void 0&&this.right===void 0?Math.max(r,this.left.max):this.left===void 0&&this.right===void 0?r:Math.max(Math.max(this.left.max,this.right.max),r),e.max=Math.max(Math.max(e.left.max,e.right.max),e.getNodeHigh())},e.prototype._updateMaxAfterLeftRotate=function(){var e=this.parent,t=e.right,n=t.getNodeHigh();t.max=t.left===void 0&&t.right!==void 0?Math.max(n,t.right.max):t.left!==void 0&&t.right===void 0?Math.max(n,t.left.max):t.left===void 0&&t.right===void 0?n:Math.max(Math.max(t.left.max,t.right.max),n);var r=this.getNodeHigh();this.max=this.left===void 0&&this.right!==void 0?Math.max(r,this.right.max):this.left!==void 0&&this.right===void 0?Math.max(r,this.left.max):this.left===void 0&&this.right===void 0?r:Math.max(Math.max(this.left.max,this.right.max),r),e.max=Math.max(Math.max(e.left.max,t.max),e.getNodeHigh())},e.prototype._leftRotate=function(){var e=this.right;e.parent=this.parent,e.parent===void 0?this.intervalTree.root=e:e.parent.left===this?e.parent.left=e:e.parent.right===this&&(e.parent.right=e),this.right=e.left,this.right!==void 0&&(this.right.parent=this),e.left=this,this.parent=e,this.updateHeight(),e.updateHeight()},e.prototype._rightRotate=function(){var e=this.left;e.parent=this.parent,e.parent===void 0?this.intervalTree.root=e:e.parent.left===this?e.parent.left=e:e.parent.right===this&&(e.parent.right=e),this.left=e.right,this.left!==void 0&&(this.left.parent=this),e.right=this,this.parent=e,this.updateHeight(),e.updateHeight()},e.prototype._rebalance=function(){if(t(this.left)>=2+t(this.right)){var e=this.left;t(e.left)>=t(e.right)?(this._rightRotate(),this._updateMaxAfterRightRotate()):(e._leftRotate(),this._rightRotate(),this._updateMaxAfterRightRotate())}else if(t(this.right)>=2+t(this.left)){var n=this.right;t(n.right)>=t(n.left)?(this._leftRotate(),this._updateMaxAfterLeftRotate()):(n._rightRotate(),this._leftRotate(),this._updateMaxAfterLeftRotate())}},e.prototype.insert=function(t){t.low<this.key?this.left===void 0?(this.left=new e(this.intervalTree,t),this.left.parent=this):this.left.insert(t):this.right===void 0?(this.right=new e(this.intervalTree,t),this.right.parent=this):this.right.insert(t),this.max<t.high&&(this.max=t.high),this.updateHeight(),this._rebalance()},e.prototype._getOverlappingRecords=function(e,t,n){if(e.key<=n&&t<=e.getNodeHigh()){for(var r=[],i=0;i<e.records.length;i++)e.records[i].high>=t&&r.push(e.records[i]);return r}return[]},e.prototype.search=function(e,t){if(this===void 0)return[];var n=[],r=[],i=[];return e>this.max?[]:(this.left!==void 0&&this.left.max>=e&&(n=this.left.search(e,t)),r=this._getOverlappingRecords(this,e,t),t<this.key?n.concat(r):(this.right!==void 0&&(i=this.right.search(e,t)),n.concat(r,i)))},e.prototype.searchExisting=function(e){if(this!==void 0){if(this.key===e)return this;if(e<this.key){if(this.left!==void 0)return this.left.searchExisting(e)}else if(this.right!==void 0)return this.right.searchExisting(e)}},e.prototype._minValue=function(){return this.left===void 0?this:this.left._minValue()},e.prototype.remove=function(e){var t=this.parent;if(e.key<this.key)return this.left===void 0?void 0:this.left.remove(e);
188if(e.key>this.key)return this.right===void 0?void 0:this.right.remove(e);if(this.left!==void 0&&this.right!==void 0){var n=this.right._minValue();return this.key=n.key,this.records=n.records,this.right.remove(this)}if(t.left===this)return this.right===void 0?(t.left=this.left,this.left!==void 0&&(this.left.parent=t)):(t.left=this.right,this.right.parent=t),t.updateMaxOfParents(),t.updateHeight(),t._rebalance(),this;if(t.right===this)return this.right===void 0?(t.right=this.left,this.left!==void 0&&(this.left.parent=t)):(t.right=this.right,this.right.parent=t),t.updateMaxOfParents(),t.updateHeight(),t._rebalance(),this},e}();$Z.Node=n;var r=function(){function t(){this.count=0}return t.prototype.insert=function(t){if(t.low>t.high)throw Error("`low` value must be lower or equal to `high` value");if(this.root===void 0)return this.root=new n(this,t),this.count++,!0;var r=this.root.searchExisting(t.low);if(r!==void 0){for(var i=0;i<r.records.length;i++)if(e(r.records[i],t))return!1;return r.records.push(t),t.high>r.max&&(r.max=t.high,r.parent&&r.parent.updateMaxOfParents()),this.count++,!0}return this.root.insert(t),this.count++,!0},t.prototype.search=function(e,t){return this.root===void 0?[]:this.root.search(e,t)},t.prototype.remove=function(t){if(this.root===void 0)return!1;var r=this.root.searchExisting(t.low);if(r===void 0)return!1;if(r.records.length>1){for(var i=void 0,a=0;a<r.records.length;a++)if(e(r.records[a],t)){i=r.records[a],r.records.splice(a,1);break}if(i){if(i=void 0,t.high===r.max){var o=r.getNodeHigh();r.max=r.left!==void 0&&r.right!==void 0?Math.max(Math.max(r.left.max,r.right.max),o):r.left!==void 0&&r.right===void 0?Math.max(r.left.max,o):r.left===void 0&&r.right!==void 0?Math.max(r.right.max,o):o,r.parent&&r.parent.updateMaxOfParents()}return this.count--,!0}return!1}if(r.records.length===1){if(e(r.records[0],t)){if(this.root.key===r.key){var s=new n(this,{low:t.low,high:t.low});s.left=this.root,this.root.parent=s;var c=this.root.remove(r);return this.root=s.left,this.root!==void 0&&(this.root.parent=void 0),c?(c=void 0,this.count--,!0):!1}var c=this.root.remove(r);return c?(c=void 0,this.count--,!0):!1}return!1}return!1},t.prototype.inOrder=function(){return new i(this.root)},t.prototype.preOrder=function(){return new a(this.root)},t}();$Z.IntervalTree=r,$Z.default=function(){function e(){this.tree=new r}return e.prototype.insert=function(e,t,n){return this.tree.insert({low:e,high:t,data:n})},e.prototype.remove=function(e,t,n){return this.tree.remove({low:e,high:t,data:n})},e.prototype.search=function(e,t){return this.tree.search(e,t).map(function(e){return e.data})},e.prototype.inOrder=function(){return this.tree.inOrder()},e.prototype.preOrder=function(){return this.tree.preOrder()},Object.defineProperty(e.prototype,"count",{get:function(){return this.tree.count},enumerable:!0,configurable:!0}),e}();var i=function(){function e(e){this.stack=[],e!==void 0&&this.push(e)}return e.prototype.next=function(){return this.currentNode===void 0?{done:!0,value:void 0}:this.i<this.currentNode.records.length?{done:!1,value:this.currentNode.records[this.i++]}:(this.currentNode.right===void 0?this.pop():this.push(this.currentNode.right),this.next())},e.prototype.push=function(e){for(this.currentNode=e,this.i=0;this.currentNode.left!==void 0;)this.stack.push(this.currentNode),this.currentNode=this.currentNode.left},e.prototype.pop=function(){this.currentNode=this.stack.pop(),this.i=0},e}();$Z.InOrder=i,typeof Symbol==`function`&&(i.prototype[Symbol.iterator]=function(){return this});var a=function(){function e(e){this.stack=[],this.i=0,this.currentNode=e}return e.prototype.next=function(){return this.currentNode===void 0?{done:!0,value:void 0}:this.i<this.currentNode.records.length?{done:!1,value:this.currentNode.records[this.i++]}:(this.currentNode.right!==void 0&&this.push(this.currentNode.right),this.currentNode.left!==void 0&&this.push(this.currentNode.left),this.pop(),this.next())},e.prototype.push=function(e){this.stack.push(e)},e.prototype.pop=function(){this.currentNode=this.stack.pop(),this.i=0},e}();return $Z.PreOrder=a,typeof Symbol==`function`&&(a.prototype[Symbol.iterator]=function(){return this}),$Z}var aQ=QZ(iQ()),oQ=class e{static findBotInterval(e,t,n,r){let i=e.search(t,n);return i.push({pageIndex:0,xLeft:r.margins.left,xRight:r.margins.left,yBot:r.margins.top,absBot:r.margins.top}),i.reduce((e,r)=>
188Math.abs(r.xRight-t)<$.EPSILON||Math.abs(r.xLeft-n)<$.EPSILON||r.pageIndex<e.pageIndex?e:r.pageIndex>e.pageIndex||r.yBot>e.yBot?r:e,i[i.length-1])}static addPack(e,t,n){for(let n=e.length;n<=t;n++)e.push([]);e[t].push(n)}static pack(t,n){let r=n.paperHeight-n.margins.top-n.margins.bot,i=[];t.forEach(e=>{i.push([]),e.forEach(e=>{e.height>r+$.EPSILON?i[i.length-1].push(...e.unfold()):i[i.length-1].push(e)})}),i.forEach(e=>{e.sort((e,t)=>e.yTop<t.yTop?-1:e.yTop>t.yTop||e.xLeft>t.xLeft?1:e.xLeft<t.xLeft?-1:0)});let a=0,o=[],s=n.paperHeight-n.margins.bot;return i.forEach(t=>{let r=new aQ,i=0;t.forEach(t=>{let{pageIndex:c,yBot:l,absBot:u}=e.findBotInterval(r,t.xLeft,t.xRight,n),d=t.height;t.yTop=l+t.yTop-u,(Math.abs(t.yTop-n.margins.top)>$.EPSILON&&t.yTop+d>s+$.EPSILON||t.isPageBreak)&&(t.yTop=n.margins.top,c++,i=Math.max(i,c)),r.insert(t.xLeft,t.xRight,{pageIndex:c,xLeft:t.xLeft,xRight:t.xRight,yBot:t.yTop+d,absBot:t.yBot}),t.yBot=t.yTop+d,e.addPack(o,a+c,t)}),a+=i+1}),o}},sQ;(function(e){e.NotSet=`notset`,e.Left=`left`,e.Center=`center`,e.Right=`right`})(sQ||(sQ={}));var cQ;(function(e){e.NotSet=`notset`,e.Top=`top`,e.Middle=`middle`,e.Bottom=`bottom`})(cQ||(cQ={}));var lQ=class{constructor(e,t,n,r,i){this.packs=e,this.controller=t,this._rect=n,this._countPages=r,this._pageNumber=i}get pageCount(){return this._countPages}get countPages(){return this._countPages}get pageNumber(){return this._pageNumber}get rect(){return this._rect}alignRect(e,t){e.margins===void 0?e.margins={left:0,right:0,top:0,bot:0}:(e.margins.left===void 0&&(e.margins.left=0),e.margins.right===void 0&&(e.margins.right=0),e.margins.top===void 0&&(e.margins.top=0),e.margins.bot===void 0&&(e.margins.bot=0)),e.rect===void 0&&((e.horizontalAlign===void 0||e.horizontalAlign===sQ.NotSet)&&(e.horizontalAlign=sQ.Center),(e.verticalAlign===void 0||e.verticalAlign===cQ.NotSet)&&(e.verticalAlign=cQ.Middle));let n=$.clone(this.rect);if(e.horizontalAlign!==void 0)switch(e.horizontalAlign){case sQ.Left:n.xLeft=this.rect.xLeft+e.margins.left,n.xRight=Math.min(this.rect.xRight-e.margins.right,this.rect.xLeft+e.margins.left+t.width);break;case sQ.Center:n.xLeft=Math.max(this.rect.xLeft+e.margins.left,(this.rect.xLeft+this.rect.xRight-t.width)/2),n.xRight=Math.min(this.rect.xRight-e.margins.right,(this.rect.xLeft+this.rect.xRight+t.width)/2);break;case sQ.Right:n.xLeft=Math.max(this.rect.xLeft+e.margins.left,this.rect.xRight-e.margins.right-t.width),n.xRight=this.rect.xRight-e.margins.right}else n.xLeft=e.rect.xLeft||this.rect.xLeft,n.xRight=e.rect.xRight||this.rect.xRight;if(e.verticalAlign!==void 0)switch(e.verticalAlign){case cQ.Top:n.yTop=this.rect.yTop+e.margins.top,n.yBot=Math.min(this.rect.yBot-e.margins.bot,this.rect.yTop+e.margins.top+t.height);break;case cQ.Middle:n.yTop=Math.max(this.rect.yTop+e.margins.top,(this.rect.yTop+this.rect.yBot-t.height)/2),n.yBot=Math.min(this.rect.yBot-e.margins.bot,(this.rect.yTop+this.rect.yBot+t.height)/2);break;case cQ.Bottom:n.yTop=Math.max(this.rect.yTop+e.margins.top,this.rect.yBot-e.margins.bot-t.height),n.yBot=this.rect.yBot-e.margins.bot}else n.yTop=e.rect.yTop||this.rect.yTop,n.yBot=e.rect.yBot||this.rect.yBot;return n}drawText(e){e=$.clone(e),e.fontSize===void 0&&(e.fontSize=XZ.FONT_SIZE),e.isBold===void 0&&(e.isBold=!1);let t=this.controller.measureText(e.text,e.isBold?`bold`:`normal`,e.fontSize),n=this.alignRect(e,t);e.isBold?this.packs.push(new LZ(null,this.controller,n,e.text)):this.packs.push(new NZ(null,this.controller,n,e.text)),this.packs[this.packs.length-1].fontSize=e.fontSize}drawImage(e){return Q(this,void 0,void 0,function*(){e=$.clone(e),e.width===void 0&&(e.width=this.rect.xRight-this.rect.xLeft),e.height===void 0&&(e.height=this.rect.yBot-this.rect.yTop);let t={width:e.width,height:e.height},n=this.alignRect(e,t);this.controller.pushMargins(0,0),this.packs.push(yield $.createImageFlat($.createPoint(n,!0,!0),null,this.controller,{link:e.base64,width:n.xRight-n.xLeft,height:n.yBot-n.yTop,objectFit:e.imageFit},!!e.imageFit||this.controller.applyImageFit)),this.controller.popMargins()})}},uQ=class extends vj{unshift(e){this.hasFunc(e)||(this.callbacks??(this.callbacks=[]),this.callbacks.unshift(e))}fire(e,t){return Q(this,void 0,void 0,function*(){if(this.callbacks!=null)for(var n=0;n<this.callbacks.length;n++)yield this.callbacks[n](e,t)})}}
188,dQ=class{static process_header_events(e,t,n){return Q(this,void 0,void 0,function*(){e.haveCommercialLicense||e.onRenderHeader.add((e,t)=>{t.drawText({text:`SurveyJS PDF | Please purchase a SurveyJS PDF developer license to use it in your app | https://surveyjs.io/Buy`,fontSize:10})});for(let r=0;r<n.length;r++)yield e.onRenderHeader.fire(e,new lQ(n[r],t,$.createHeaderRect(t),n.length,r+1)),yield e.onRenderFooter.fire(e,new lQ(n[r],t,$.createFooterRect(t),n.length,r+1))})}},fQ=class e extends Z{constructor(e,t){super(e),this.onRenderHeader=new uQ,this.onRenderFooter=new uQ,this.onRenderQuestion=new uQ,this.onRenderPanel=new uQ,this.onRenderPage=new uQ,this.onDocControllerCreated=new vj,this.onRenderCheckItemAcroform=new uQ,this.onRenderRadioGroupWrapAcroform=new uQ,this.onRenderRadioItemAcroform=new uQ,t===void 0&&(t={}),(this.questionsOnPageMode==`inputPerPage`||this.questionsOnPageMode==`questionPerPage`)&&(this.questionsOnPageMode=`standard`),this.options=$.clone(t)}get haveCommercialLicense(){let e=Ez;return!!e&&e(2)}set haveCommercialLicense(e){console.error(`As of v1.9.101, the haveCommercialLicense property is not supported. To activate your license, use the setLicenseKey(key) method as shown on the following page: https://surveyjs.io/remove-alert-banner`)}getUpdatedCheckItemAcroformOptions(e){this.onRenderCheckItemAcroform.fire(this,e)}getUpdatedRadioGroupWrapOptions(e){this.onRenderRadioGroupWrapAcroform.fire(this,e)}getUpdatedRadioItemAcroformOptions(e){this.onRenderRadioItemAcroform.fire(this,e)}correctBricksPosition(e,t){e.isRTL&&t.forEach(t=>{t.forEach(t=>{t.translateX((t,n)=>{let r=e.paperWidth-t-n;return{xLeft:t+r,xRight:n+r}})})})}renderSurvey(e){return Q(this,void 0,void 0,function*(){this.visiblePages.forEach(e=>e.onFirstRendering());let t=yield jZ.generateFlats(this,e);this.correctBricksPosition(e,t);let n=oQ.pack(t,e);yield dQ.process_header_events(this,e,n);for(let t=0;t<n.length;t++)for(let r=0;r<n[t].length;r++)e.getNumberOfPages()===t&&e.addPage(),e.setPage(t),yield n[t][r].render();$.clear()})}save(){return Q(this,arguments,void 0,function*(t=`survey_result.pdf`){if(e.currentlySaving)e.saveQueue.push(()=>{this.save(t)});else{let n=new ZZ(this.options);this.onDocControllerCreated.fire(this,{controller:n}),e.currentlySaving=!0,$.fixFont(n),yield this.renderSurvey(n);let r=n.doc.save(t,{returnPromise:!0});return r.then(()=>{e.currentlySaving=!1;let t=e.saveQueue.shift();t&&t()}),r}})}raw(e){return Q(this,void 0,void 0,function*(){let t=new ZZ(this.options);return this.onDocControllerCreated.fire(this,{controller:t}),$.fixFont(t),yield this.renderSurvey(t),t.doc.output(e)})}};fQ.currentlySaving=!1,fQ.saveQueue=[];var pQ=class e extends MZ{constructor(e,t,n,r){super(r.question,e,t),this.fieldName=n,this.context=r,this.question=this.context.question,this.textColor=this.formBorderColor}getShouldRenderReadOnly(){return this.context.readOnly&&$.getReadonlyRenderAs(this.question,this.controller)!==`acroform`||this.controller.compress}renderInteractive(){return Q(this,void 0,void 0,function*(){var t;let n=new this.controller.doc.AcroFormCheckBox,r=$.formScale(this.controller,this),i={};i.maxFontSize=this.height*r*e.FONT_SIZE_SCALE,i.caption=e.CHECKMARK_READONLY_SYMBOL,i.textAlign=`center`,i.fieldName=this.fieldName,i.readOnly=this.context.readOnly,i.color=this.formBorderColor,i.value=this.context.checked?`On`:!1,i.AS=this.context.checked?`/On`:`/Off`,i.context=this.context,i.Rect=$.createAcroformRect($.scaleRect(this,r)),this.controller.doc.addField(n),(t=this.question.survey)==null||t.getUpdatedCheckItemAcroformOptions(i),n.maxFontSize=i.maxFontSize,n.caption=i.caption,n.textAlign=i.textAlign,n.fieldName=i.fieldName,n.readOnly=i.readOnly,n.color=i.color,n.value=i.value,n.AS=i.AS,n.Rect=i.Rect,$.renderFlatBorders(this.controller,this)})}renderReadOnly(){return Q(this,void 0,void 0,function*(){if($.renderFlatBorders(this.controller,this),this.context.checked){let t=$.createPoint(this,!0,!0),n=this.controller.fontName;this.controller.fontName=e.CHECKMARK_READONLY_FONT;let r=this.controller.fontSize;this.controller.fontSize=r*e.CHECKMARK_READONLY_FONT_SIZE_SCALE;let i=this.controller.measureText(e.CHECKMARK_READONLY_SYMBOL);t.xLeft+=this.width/2-i.width/2,t.yTop+=this.height/2-i.height/2;let a=yield $.createTextFlat(t,this.question,this.controller,e.CHECKMARK_READONLY_SYMBOL,NZ);a.unfold()[0].textColor=this.textColor,this.controller.fontSize=r,yield a.render(),this.controller.fontName=n}})}};pQ.FONT_SIZE_SCALE=.7,pQ.CHECKMARK_READONLY_SYMBOL=`3`,pQ.CHECKMARK_READONLY_FONT=`zapfdingbats`,pQ.CHECKMARK_READONLY_FONT_SIZE_SCALE=1-Math.E/10;var mQ=class extends pQ{constructor(e,t,n){super(t,n,e.id,{question:e,readOnly:e.isReadOnly,checked:e.booleanValue})}},hQ=class{constructor(e,t,n){this.name=e,this.controller=t,this.context=n}addToPdf(e){var t;this._radioGroup=new this.controller.doc.AcroFormRadioButton;let n={};n.fieldName=this.name,n.readOnly=this.readOnly,n.color=e,n.context=this.context,(t=this.context.question.survey)==null||t.getUpdatedRadioGroupWrapOptions(n),this._radioGroup.fieldName=n.fieldName,this._radioGroup.readOnly=n.readOnly,this._radioGroup.color=n.color,this._radioGroup.value=``,this.controller.doc.addField(this._radioGroup)}get radioGroup(){return this._radioGroup}get readOnly(){return this.context.readOnly}},gQ=class e extends MZ{constructor(e,t,n,r){super(n.question,e,t),this.context=n,this.radioGroupWrap=r,this.textColor=this.formBorderColor}getShouldRenderReadOnly(){return this.radioGroupWrap.readOnly&&$.getReadonlyRenderAs(this.question,this.controller)!==`acroform`||this.controller.compress}renderInteractive(){return Q(this,void 0,void 0,function*(){var e;
188this.context.index==0&&this.radioGroupWrap.addToPdf(this.formBorderColor);let t={};t.fieldName=this.radioGroupWrap.name+`index`+this.context.index;let n=$.formScale(this.controller,this);t.Rect=$.createAcroformRect($.scaleRect(this,n)),t.color=this.formBorderColor,t.appearance=this.controller.doc.AcroForm.Appearance.RadioButton.Circle,t.radioGroup=this.radioGroupWrap.radioGroup,t.context=this.context,(e=this.context.question.survey)==null||e.getUpdatedRadioItemAcroformOptions(t);let r=this.radioGroupWrap.radioGroup.createOption(t.fieldName);this.context.checked?(t.AS||(r.AS=`/`+t.fieldName),this.radioGroupWrap.radioGroup.value||(this.radioGroupWrap.radioGroup.value=t.fieldName)):t.AS||(t.AS=`/Off`),r.Rect=t.Rect,r.color=t.color,$.renderFlatBorders(this.controller,this),this.radioGroupWrap.radioGroup.setAppearance(t.appearance)})}renderReadOnly(){return Q(this,void 0,void 0,function*(){if($.renderFlatBorders(this.controller,this),this.context.checked){let t=$.createPoint(this,!0,!0),n=this.controller.fontSize,r=this.controller.fontName;this.controller.fontName=e.RADIOMARKER_READONLY_FONT,this.controller.fontSize=n*e.RADIOMARKER_READONLY_FONT_SIZE_SCALE;let i=this.controller.measureText(e.RADIOMARKER_READONLY_SYMBOL);t.xLeft+=this.width/2-i.width/2,t.yTop+=this.height/2-i.height/2;let a=yield $.createTextFlat(t,this.question,this.controller,e.RADIOMARKER_READONLY_SYMBOL,NZ);a.unfold()[0].textColor=this.textColor,yield a.render(),this.controller.fontSize=n,this.controller.fontName=r}})}};gQ.RADIOMARKER_READONLY_SYMBOL=`l`,gQ.RADIOMARKER_READONLY_FONT=`zapfdingbats`,gQ.RADIOMARKER_READONLY_FONT_SIZE_SCALE=1-(2+Math.E)/10;var _Q=class extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}generateItemComment(e,t){return Q(this,void 0,void 0,function*(){let n=this.question.getCommentTextAreaModel(t);return yield $.createCommentFlat(e,this.question,this.controller,{fieldName:n.id,rows:$.OTHER_ROWS_COUNT,value:n.getTextValue(),shouldRenderBorders:G.readOnlyCommentRenderMode===`textarea`,isReadOnly:this.question.isReadOnly,isMultiline:!0})})}generateFlatComposite(e,t,n){return Q(this,void 0,void 0,function*(){let r=new TZ,i=$.createRect(e,this.controller.unitWidth,this.controller.unitHeight),a=this.generateFlatItem($.moveRect($.scaleRect(i,$.SELECT_ITEM_FLAT_SCALE),e.xLeft),t,n);r.addBrick(a);let o=$.clone(e);if(o.xLeft=a.xRight+this.controller.unitWidth*$.GAP_BETWEEN_ITEM_TEXT,t.locText.renderedHtml!==null&&r.addBrick(yield $.createTextFlat(o,this.question,this.controller,t.locText,NZ)),t.isCommentShowing){let e=$.createPoint(r,!0,!1);e.yTop+=this.controller.unitHeight*$.GAP_BETWEEN_ROWS,r.addBrick(yield this.generateItemComment(e,t))}return r})}getVisibleChoices(){return this.question.visibleChoices}getColCount(){return this.question.colCount}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){let t=this.getColCount(),n=this.getVisibleChoices(),r=t;if(t==0)r=Math.floor($.getPageAvailableWidth(this.controller)/this.controller.measureText($.MATRIX_COLUMN_WIDTH).width)||1,n.length<r&&(r=n.length);else if(t>1&&(r=$.getColumnWidth(this.controller,t)<this.controller.measureText($.MATRIX_COLUMN_WIDTH).width?1:t,r==t))return yield this.generateColumns(e);
188return r==1?yield this.generateVerticallyItems(e,n):yield this.generateHorisontallyItems(e,r)})}generateRows(e,t){return Q(this,void 0,void 0,function*(){let n=this.getVisibleChoices(),r=$.clone(e),i=(t[0]??[]).length,a=[];for(let e of t){let t=new TZ;for(let a=0;a<e.length;a++){let o=e[a];this.controller.pushMargins(),$.setColumnMargins(this.controller,i,a),r.xLeft=this.controller.margins.left;let s=yield this.generateFlatComposite(r,o,n.indexOf(o));t.addBrick(s),this.controller.popMargins()}let o=$.createRowlineFlat($.createPoint(t),this.controller);r.yTop=o.yBot+$.GAP_BETWEEN_ROWS*this.controller.unitHeight,a.push(t,o)}return a})}generateVerticallyItems(e,t){return Q(this,void 0,void 0,function*(){let n=$.clone(e),r=[];for(let e=0;e<t.length;e++){let i=yield this.generateFlatComposite(n,t[e],e);n.yTop=i.yBot+$.GAP_BETWEEN_ROWS*this.controller.unitHeight,r.push(i)}return r})}generateColumns(e){return Q(this,void 0,void 0,function*(){let t=this.question.columns,n=t.reduce((e,t)=>Math.max(e,t.length),0),r=[];for(let e=0;e<n;e++){let n=[];for(let r of t)r[e]&&n.push(r[e]);r.push(n)}return yield this.generateRows(e,r)})}generateHorisontallyItems(e,t){return Q(this,void 0,void 0,function*(){let n=[];return this.getVisibleChoices().forEach((e,r)=>{let i=Math.floor(r/t),a=r%t;n[i]||(n[i]=[]),n[i][a]=e}),yield this.generateRows(e,n)})}},vQ=class extends _Q{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}isItemSelected(e,t){return t===void 0?e===this.question.otherItem?this.question.isOtherSelected:e.value===this.question.value||this.question.isItemSelected!==void 0&&this.question.isItemSelected(e):t}generateFlatItem(e,t,n,r,i,a={}){n===0?(this.radioGroupWrap=new hQ(this.question.id+(r===void 0?``:r),this.controller,Object.assign({readOnly:this.question.isReadOnly,question:this.question},a)),this.question.pdfRadioGroupWrap=this.radioGroupWrap):this.radioGroupWrap===void 0&&(this.radioGroupWrap=this.question.pdfRadioGroupWrap);let o=this.isItemSelected(t,i);return new gQ(this.controller,e,{question:this.question,index:n,checked:o,item:t},this.radioGroupWrap)}};IZ.getInstance().register(`radiogroup`,vQ),IZ.getInstance().register(`buttongroup`,vQ);var yQ=class extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){let t=new TZ,n=this.controller.unitHeight,r=new mQ(this.question,this.controller,$.moveRect($.scaleRect($.createRect(e,n,n),$.SELECT_ITEM_FLAT_SCALE),e.xLeft));if(t.addBrick(r),this.question.isLabelRendered){let n=$.clone(e);n.xLeft=r.xRight+this.controller.unitWidth*$.GAP_BETWEEN_ITEM_TEXT;let i=this.question.locTitle;if(i!==null&&i.renderedHtml!==null&&t.addBrick(yield $.createTextFlat(n,this.question,this.controller,i,NZ)),this.question.isRequired){let e=this.question.requiredText;if($.hasHtml(this.question.locTitle)){let n=$.createPoint(t.unfold()[0],!1,!1);this.controller.fontStyle=`bold`,this.controller.pushMargins(),this.controller.margins.right=this.controller.paperWidth-this.controller.margins.left-this.controller.measureText(e,`bold`).width,t.addBrick(yield $.createHTMLFlat(n,this.question,this.controller,$.createHtmlContainerBlock(e,this.controller,`standard`))),this.controller.popMargins(),this.controller.fontStyle=`normal`}else{let n=$.createPoint(t.unfold().pop(),!1,!0);t.addBrick(yield $.createBoldTextFlat(n,this.question,this.controller,e))}}}return[t]})}},bQ=class extends vQ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.buildItems()}buildItems(){let e=this.question,t=new HP(e.valueFalse!==void 0&&e.valueFalse),n=new HP(e.valueTrue===void 0||e.valueTrue);t.locOwner=e,t.setLocText(e.locLabelFalse),n.locOwner=e,n.setLocText(e.locLabelTrue),this.items=[t,n]}getVisibleChoices(){return this.items}getColCount(){return 0}};IZ.getInstance().register(`boolean`,bQ),IZ.getInstance().register(`boolean-checkbox`,yQ);var xQ=class extends pQ{constructor(e,t,n,r,i){super(t,n,e.id+`index`+i,{question:e,readOnly:e.isReadOnly||!r.isEnabled,item:r,checked:e.isItemSelected(r),index:i})}},SQ=class extends _Q{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}generateFlatItem(e,t,n){return new xQ(this.question,this.controller,e,t,n)}},CQ=class extends SQ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}getVisibleChoices(){return this.controller.tagboxSelectedChoicesOnly?this.question.selectedChoices:super.getVisibleChoices()}};IZ.getInstance().register(`tagbox`,CQ),IZ.getInstance().register(`checkbox`,SQ);var wQ=class extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){return IZ.getInstance().create(this.survey,this.question,this.controller,this.question.getType()).generateFlatsContent(e)})}};IZ.getInstance().register(`custom_model`,wQ);var TQ=class extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){return[yield $.createCommentFlat(e,this.question,this.controller,{rows:this.question.rows,isReadOnly:this.question.isReadOnly,isMultiline:!0,fieldName:this.question.id,placeholder:$.getLocString(this.question.locPlaceHolder),shouldRenderBorders:G.readOnlyCommentRen
188derMode===`textarea`,value:this.question.value})]})}};IZ.getInstance().register(`comment`,TQ);var EQ=class extends MZ{constructor(e,t,n){super(e,t,n),this.controller=t,this.question=e}renderInteractive(){return Q(this,void 0,void 0,function*(){let e=new this.controller.doc.AcroFormComboBox;e.fieldName=this.question.id,e.Rect=$.createAcroformRect($.scaleRect(this,$.formScale(this.controller,this))),e.edit=!1,e.color=this.textColor;let t=[];this.question.showOptionsCaption&&t.push(this.getCorrectedText(this.question.optionsCaption)),this.question.visibleChoices.forEach(e=>{t.push(this.getCorrectedText($.getLocString(e.locText)))}),e.setOptions(t),e.fontName=this.controller.fontName,e.fontSize=this.fontSize,e.readOnly=this.question.isReadOnly,e.isUnicode=$.isCustomFont(this.controller,e.fontName),e.V=this.getCorrectedText(this.question.readOnlyText||``),this.controller.doc.addField(e),$.renderFlatBorders(this.controller,this)})}},DQ=class extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}generateItemComment(e){return Q(this,void 0,void 0,function*(){let t=this.question.getCommentTextAreaModel(this.question.selectedItem);return yield $.createCommentFlat(e,this.question,this.controller,{fieldName:t.id,rows:$.OTHER_ROWS_COUNT,value:t.getTextValue(),shouldRenderBorders:G.readOnlyCommentRenderMode===`textarea`,isReadOnly:this.question.isReadOnly,isMultiline:!0})})}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){let t=new TZ(this.shouldRenderAsComment?yield $.createCommentFlat(e,this.question,this.controller,{fieldName:this.question.id,shouldRenderBorders:G.readOnlyTextRenderMode===`input`,value:this.question.readOnlyText||``,isReadOnly:this.question.isReadOnly,placeholder:$.getLocString(this.question.locPlaceholder)}):new EQ(this.question,this.controller,$.createTextFieldRect(e,this.controller)));if(this.question.isShowingChoiceComment){let e=$.createPoint(t);e.yTop+=this.controller.unitHeight*$.GAP_BETWEEN_ROWS,t.addBrick(yield this.generateItemComment(e))}return[t]})}};IZ.getInstance().register(`dropdown`,DQ);var OQ=class extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.question=t}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){return[yield $.createCommentFlat(e,this.question,this.controller,{value:this.question.displayValue,isReadOnly:!0,fieldName:this.question.id,shouldRenderBorders:G.readOnlyTextRenderMode===`input`})]})}};IZ.getInstance().register(`expression`,OQ);var kQ=class e extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.question=t}generateFlatItem(t,n){return Q(this,void 0,void 0,function*(){let r=new TZ(yield $.createLinkFlat(t,this.question,this.controller,n.name===void 0?`image`:n.name,typeof n.content==`string`?n.content:``));if($.canPreviewImage(this.question,n,n.content)){let t=$.createPoint(r);t.yTop+=this.controller.unitHeight*e.IMAGE_GAP_SCALE,r.addBrick(yield $.createImageFlat(t,this.question,this.controller,{link:n.content,width:n.imageSize.width,height:n.imageSize.height,objectFit:e.DEFAULT_IMAGE_FIT}))}return r})}addLine(e,t,n,r){n!==r.length-1&&(e[e.length-1].addBrick($.createRowlineFlat(t,this.controller)),t.yTop+=$.EPSILON,e.push(new TZ))}getImagePreviewContentWidth(t){return Q(this,void 0,void 0,function*(){return Math.max(t.imageSize.width,e.TEXT_MIN_SCALE*this.controller.unitWidth)})}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){let t=this.question.showPreview?this.question.previewValue:this.question.value;if(!t||t.length===0)return[yield $.createTextFlat(e,this.question,this.controller,this.question.noFileChosenCaption,NZ)];let n=[new TZ],r=$.clone(e),i=r.yTop;for(let a=0;a<t.length;a++){let o=Object.assign({},t[a]),s=$.canPreviewImage(this.question,o,o.content);s&&(o.imageSize=yield $.getCorrectedImageSize(this.controller,{imageWidth:this.question.imageWidth,imageHeight:this.question.imageHeight,imageLink:t[a].content,defaultImageWidth:200,defaultImageHeight:150}));let c=this.controller.paperWidth-this.controller.margins.right-r.xLeft;if(s){let s=yield this.getImagePreviewContentWidth(o);c<s&&(r.xLeft=e.xLeft,r.yTop=i,this.addLine(n,r,a,t)),this.controller.pushMargins(r.xLeft,this.controller.paperWidth-r.xLeft-s);let l=yield this.generateFlatItem(r,o);n[n.length-1].addBrick(l),r.xLeft+=l.width,i=Math.max(i,l.yBot),this.controller.popMargins()}else{c<this.controller.unitWidth&&(r.xLeft=e.xLeft,r.yTop=i,this.addLine(n,r,a,t));let s=yield this.generateFlatItem(r,o);n[n.length-1].addBrick(s),r.xLeft+=s.xRight-s.xLeft,i=Math.max(i,s.yBot)}r.xLeft+=this.controller.unitWidth}return n})}};kQ.IMAGE_GAP_SCALE=.195,kQ.TEXT_MIN_SCALE=5,kQ.DEFAULT_IMAGE_FIT=`contain`,IZ.getInstance().register(`file`,kQ);var AQ=class extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e}
188chooseRender(e){return/<[^>]*style[^<]*>/.test(e)||/<[^>]*table[^<]*>/.test(e)||/&\w+;/.test(e)?`image`:`standard`}get correctHtmlRules(){let e=[{searchRegExp:/(<\/?br\s*?\/?\s*?>\s*){2,}/g,replaceString:`<br>`}];return this.controller.fontName==`helvetica`&&(e.push({searchRegExp:/â/g,replaceString:`'`}),e.push({searchRegExp:/â/g,replaceString:`-`})),e}correctHtml(e){return this.correctHtmlRules.forEach(t=>{e=e.replace(t.searchRegExp,t.replaceString)}),e}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){let t=this.question.renderAs;if(!$.hasDocument)return[new UZ($.createRect(e,0,0))];t===`auto`&&(t=this.controller.htmlRenderAs),t===`auto`&&(t=this.chooseRender($.getLocString(this.question.locHtml)));let n=$.createHtmlContainerBlock($.getLocString(this.question.locHtml),this.controller,t);if(t===`image`){let t=$.getPageAvailableWidth(this.controller),{url:r,aspect:i}=yield $.htmlToImage(n,t,this.controller),a=t/i;return[yield $.createImageFlat(e,this.question,this.controller,{link:r,width:t,height:a})]}return[$.splitHtmlRect(this.controller,yield $.createHTMLFlat(e,this.question,this.controller,this.correctHtml(n)))]})}};J.removeProperty(`html`,`renderAs`),J.addProperty(`html`,{name:`renderAs`,default:`auto`,visible:!1,choices:[`auto`,`standard`,`image`]}),IZ.getInstance().register(`html`,AQ);var jQ=class extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.question=t}getCorrectImageSize(){return Q(this,void 0,void 0,function*(){return yield $.getCorrectedImageSize(this.controller,{imageWidth:this.question.imageWidth,imageHeight:this.question.imageHeight,imageLink:this.question.imageLink})})}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){let t=yield this.getCorrectImageSize();return[yield $.createImageFlat(e,this.question,this.controller,{link:this.question.imageLink,width:t.width,height:t.height})]})}};IZ.getInstance().register(`image`,jQ);var MQ=class extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.question=t}generateFlatItem(e,t,n){return Q(this,void 0,void 0,function*(){let r=$.getPageAvailableWidth(this.controller),i=new TZ(yield $.createImageFlat(e,this.question,this.controller,{link:t.imageLink,width:r,height:r/$.IMAGEPICKER_RATIO,objectFit:this.question.imageFit})),a=$.createPoint(i);if(this.question.showLabel){let e=yield $.createTextFlat(a,this.question,this.controller,t.text||t.value,NZ);i.addBrick(e),a=$.createPoint(e)}let o=this.controller.unitHeight,s=$.createRect(a,r,o);return this.question.multiSelect?i.addBrick(new pQ(this.controller,s,this.question.id+`index`+n,{readOnly:this.question.isReadOnly||!t.isEnabled,question:this.question,item:t,checked:this.question.value.indexOf(t.value)!==-1,index:n})):i.addBrick(this.radio.generateFlatItem(s,t,n)),i})}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){this.radio=this.question.multiSelect?null:new vQ(this.survey,this.question,this.controller);let t=[new TZ],n=$.getImagePickerAvailableWidth(this.controller)/$.IMAGEPICKER_COUNT,r=~~($.getPageAvailableWidth(this.controller)/n)||1,i=this.question.visibleChoices.length;r=r<=i?r:i;let a=~~Math.ceil(i/r),o=$.clone(e);for(let s=0;s<a;s++){let c=o.yTop;this.controller.pushMargins();let l=this.controller.margins.left;for(let e=0;e<r;e++){let a=s*r+e;if(a==i)break;this.controller.margins.left=l,this.controller.margins.right=this.controller.paperWidth-l-n,l=this.controller.paperWidth-this.controller.margins.right+this.controller.unitWidth,o.xLeft=this.controller.margins.left;let u=yield this.generateFlatItem(o,this.question.visibleChoices[a],a);t[t.length-1].addBrick(u),c=Math.max(c,u.yBot)}this.controller.popMargins(),o.xLeft=e.xLeft,o.yTop=c,s!==a-1&&(t[t.length-1].addBrick($.createRowlineFlat(o,this.controller)),o.yTop+=$.EPSILON,t.push(new TZ))}return t})}};IZ.getInstance().register(`imagepicker`,MQ);var NQ=class e extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}generateFlatsContent(t){return Q(this,void 0,void 0,function*(){let n=[],r=$.clone(t);for(let t of this.question.panels){let i=yield jZ.generateFlatsPanel(this.survey,this.controller,t,r);i.length!==0&&(r.yTop=$.mergeRects(...i).yBot,r.yTop+=this.controller.unitHeight*e.GAP_BETWEEN_PANELS,n.push(...i))}return n})}};NQ.GAP_BETWEEN_PANELS=.75,IZ.getInstance().register(`paneldynamic`,NQ);var PQ=class extends MZ{constructor(e,t,n,r){super(e,t,n),this.mark=r,this.question=e,this.textColor=this.formBorderColor}renderInteractive(){return Q(this,void 0,void 0,function*(){$.renderFlatBorders(this.controller,this);let e=$.createPoint(this,!0,!0),t=this.controller.fontSize;this.controller.fontSize=t*pQ.CHECKMARK_READONLY_FONT_SIZE_SCALE;let n=this.controller.measureText(this.mark);e.xLeft+=this.width/2-n.width/2,e.yTop+=this.height/2-n.height/2;let r=yield $.createTextFlat(e,this.question,this.controller,this.mark,NZ);r.unfold()[0].textColor=this.textColor,this.controller.fontSize=t,yield r.render()})}},FQ=class extends MZ{constructor(e,t,n,r,i){super(void 0,e,t),this.color=n,this.renderWidth=r,this.renderHeight=i}renderInteractive(){return Q(this,void 0,void 0,function*(){let e=this.controller.doc.getFillColor();this.controller.doc.setFillColor(this.color||`black`),this.controller.doc.rect(this.xLeft,this.yTop,this.renderWidth??this.width,this.renderHeight??this.height,`F`),this.controller.doc.setFillColor(e)})}},IQ=class extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}generateFlatComposite(e,t,n){return Q(this,arguments,void 0,function*(e,t,n,r=!1){let i=$.createRect(e,this.controller.unitWidth,this.controller.unitHeight),a=$.moveRect($.scaleRect(i,$.SELECT_ITEM_FLAT_SCALE),e.xLeft),o=new PQ(this.question,this.controller,a,r?`-`:this.question.getNumberByIndex(n)),s=$.clone(e);return s.xLeft=o.xRight+this.controller.unitWidth*$.GAP_BETWEEN_ITEM_TEXT,new TZ(o,yield $.createTextFlat(s,this.question,this.controller,t.locText,NZ))})}generateChoicesColumn(e,t){return Q(this,arguments,void 0,function*(e,t,n=!1){let r=$.clone(e),i=[];for(let e=0;e<t.length;e++){let a=yield this.generateFlatComposite(r,t[e],e,n);r.yTop=a.yBot+$.GAP_BETWEEN_ROWS*this.controller.unitHeight,i.push(a)}return i})}generateSelectToRankItemsVertically(e){return Q(this,void 0,void 0,function*(){let t=$.clone(e),n=[];this.question.rankingChoices.length!==0&&(n.push(...yield this.generateChoicesColumn(t,this.question.rankingChoices)),t.yTop=n[n.length-1].yBot+2*($.GAP_BETWEEN_ROWS*this.controller.unitHeight));let r=$.createRect({xLeft:t.xLeft,yTop:t.yTop-$.GAP_BETWEEN_ROWS*this.controller.unitHeight-.5},this.controller.paperWidth-this.controller.margins.right-t.xLeft,1);return n.push(new FQ(this.controller,r,$.FORM_BORDER_COLOR)),n.push(...yield this.generateChoicesColumn(t,this.question.unRankingChoices,!0)),n})}generateSelectToRankItemsHorizontally(e){return Q(this,void 0,void 0,function*(){let t=$.clone(e),n=[],r=Math.max(this.question.unRankingChoices.length,this.question.rankingChoices.length),i=new TZ;for(let e=0;e<r;e++){let a=0;for(let n of[this.question.unRankingChoices[e],this.question.rankingChoices[e]]){if(n){this.controller.pushMargins(this.controller.margins.left,this.controller.margins.right),$.setColumnMargins(this.controller,2,a),t.xLeft=this.controller.margins.left;let r=yield this.generateFlatComposite(t,n,e,a==0);i.addBrick(r),this.controller.popMargins()}a++}let o=$.createRowlineFlat($.createPoint(i),this.controller);n.push(i,o);let s=$.createRect({xLeft:this.controller.margins.left+$.getPageAvailableWidth(this.controller)/2-.5,yTop:t.yTop},0,0);i.addBrick(new FQ(this.controller,s,$.FORM_BORDER_COLOR,1,o.yBot-t.yTop+(e===r-1?0:$.GAP_BETWEEN_ROWS*this.controller.unitHeight))),t.yTop=o.yBot+$.GAP_BETWEEN_ROWS*this.controller.unitHeight,i=new TZ}return n})}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){return this.question.selectToRankEnabled?this.question.selectToRankAreasLayout==`vertical`?this.generateSelectToRankItemsVertically(e):this.generateSelectToRankItemsHorizontally(e):this.generateChoicesColumn(e,this.question.rankingChoices)})}};IZ.getInstance().register(`ranking`,IQ);var LQ=class extends vQ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.questionRating=t}generateFlatHorisontalComposite(e,t,n){return Q(this,void 0,void 0,function*(){let r=$.getRatingItemText(this.questionRating,n,t.locText);this.controller.pushMargins();let i=this.controller.unitWidth/2;this.controller.margins.left+=i,this.controller.margins.right+=i;let a=$.clone(e);a.xLeft+=i;let o=new TZ(yield $.createBoldTextFlat(a,this.questionRating,this.controller,r));this.controller.popMargins();let s=o.width;s<$.getRatingMinWidth(this.controller)?(o.xLeft+=($.getRatingMinWidth(this.controller)-s)/2-i,s=$.getRatingMinWidth(this.controller)):s+=this.controller.unitWidth;let c=$.createPoint(o);return c.xLeft=e.xLeft,o.addBrick(this.generateFlatItem($.createRect(c,s,this.controller.unitHeight),t,n,void 0,this.question.value==t.value)),o})}generateFlatComposite(e,t,n){return Q(this,void 0,void 0,function*(){let r=new TZ,i=$.createRect(e,this.controller.unitHeight,this.controller.unitHeight),a=this.generateFlatItem($.moveRect($.scaleRect(i,$.SELECT_ITEM_FLAT_SCALE),e.xLeft),t,n,void 0,this.question.value==t.value);r.addBrick(a);let o=$.clone(e);o.xLeft=a.xRight+this.controller.unitWidth*$.GAP_BETWEEN_ITEM_TEXT;let s=$.getRatingItemText(this.questionRating,n,t.locText);return s==null||r.addBrick(yield $.createTextFlat(o,this.question,this.controller,s,NZ)),r})}generateHorisontallyItems(e){return Q(this,void 0,void 0,function*(){let t=[new TZ],n=$.clone(e);for(let r=0;r<this.questionRating.visibleRateValues.length;r++){let i=yield this.generateFlatHorisontalComposite(n,this.questionRating.visibleRateValues[r],r);t[t.length-1].addBrick(i);let a=this.controller.paperWidth-this.controller.margins.right-i.xRight;$.getRatingMinWidth(this.controller)<=a+$.EPSILON?n.xLeft=i.xRight:(n.xLeft=e.xLeft,n.yTop=i.yBot,r!==this.questionRating.visibleRateValues.length-1&&(t[t.length-1].addBrick($.createRowlineFlat(n,this.controller)),n.yTop+=$.EPSILON,t.push(new TZ)))}return t})}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){let t=!1;for(let e=0;e<this.questionRating.visibleRateValues.length;e++){let n=$.getRatingItemText(this.questionRating,e,this.questionRating.visibleRateValues[e].locText);this.controller.measureText(n).width>this.controller.measureText($.RATING_COLUMN_WIDTH).width&&(t=!0)}return t?this.generateVerticallyItems(e,this.questionRating.visibleRateValues):this.generateHorisontallyItems(e)})}};IZ.getInstance().register(`rating`,LQ);var RQ=class extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){let t=$.clone(e);if(this.question.sliderType===`single`){let e=this.getOptionsByValue(this.question.value);return[yield this.generateInputBrick(t,e)]}if(this.question.sliderType===`range`){let e=new TZ;for(let n=0;n<this.question.value.length;n++){let r=this.question.value[n],i=this.getOptionsByValue(r),a=yield this.generateColumnInput(t,i,2,n);e.addBrick(a)}return[e]}})}getOptionsByValue(e){let{id:t,isReadOnly:n}=this.question;return{fieldName:t,inputType:`number`,value:e,isReadOnly:n,shouldRenderBorders:!0}}generateInputBrick(e,t){return Q(this,void 0,void 0,function*(){if(this.shouldRenderAsComment)return yield $.createCommentFlat(e,this.question,this.controller,Object.assign({},t));{let n=$.createTextFieldRect(e,this.controller);return new WZ(this.question,this.controller,n,Object.assign({},t))}})}generateColumnInput(e,t,n,r){return Q(this,void 0,void 0,function*(){this.controller.pushMargins(),$.setColumnMargins(this.controller,n,r);let i=$.clone(e);i.xLeft=this.controller.margins.left;let a=yield this.generateInputBrick(i,t);return this.controller.popMargins(),a})}};IZ.getInstance().register(`slider`,RQ);var zQ=class e extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.question=t}get signatureSize(){if(!this._signatureSize){let e=$.pxToPt(this.question.signatureWidth),t=$.pxToPt(this.question.signatureHeight),n=$.getPageAvailableWidth(this.controller);if(e>n){let r=n;t*=r/e,e=r}this._signatureSize={width:e,height:t}}return this._signatureSize}
188generateBackgroundImage(e){return Q(this,void 0,void 0,function*(){return yield $.createImageFlat(e,this.question,this.controller,Object.assign(Object.assign({link:this.question.backgroundImage},this.signatureSize),{objectFit:`cover`}),!0)})}getSignImageUrl(){return this.question.storeDataAsText||!this.question.loadedData?this.question.value:this.question.loadedData}generateSign(t){return Q(this,void 0,void 0,function*(){let n;return n=this.question.value?yield $.createImageFlat(t,this.question,this.controller,Object.assign({link:this.getSignImageUrl()},this.signatureSize),!1):new UZ($.createRect(t,this.signatureSize.width,this.signatureSize.height)),e.BORDER_STYLE!==`none`&&(n.afterRenderCallback=()=>{let t={height:n.width,width:n.width,yTop:n.yTop,yBot:n.yBot,xLeft:n.xLeft,xRight:n.xRight,formBorderColor:n.formBorderColor,rounded:!1,outside:!0,dashStyle:e.BORDER_STYLE==`dashed`?{dashArray:[5],dashPhase:0}:void 0};$.renderFlatBorders(this.controller,t)}),n})}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){let t=new TZ;return this.question.backgroundImage&&t.addBrick(yield this.generateBackgroundImage(e)),t.addBrick(yield this.generateSign(e)),[t]})}};zQ.BORDER_STYLE=`dashed`,IZ.getInstance().register(`signaturepad`,zQ);var BQ=class e extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.question=t}generateFlatsContent(t){return Q(this,void 0,void 0,function*(){let n={fieldName:this.question.id,inputType:this.question.inputType,value:this.question.inputValue,isReadOnly:this.question.isReadOnly,shouldRenderBorders:G.readOnlyTextRenderMode===`input`,placeholder:$.getLocString(this.question.locPlaceHolder)};if(!this.shouldRenderAsComment){let e=$.createTextFieldRect(t,this.controller);return[new WZ(this.question,this.controller,e,Object.assign({},n))]}return[yield $.createCommentFlat(t,this.question,this.controller,Object.assign({rows:e.MULTILINE_TEXT_ROWS_COUNT,isMultiline:!0},n))]})}};BQ.MULTILINE_TEXT_ROWS_COUNT=1,IZ.getInstance().register(`text`,BQ);var VQ=class e extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}generateFlatsHeader(e){return Q(this,void 0,void 0,function*(){let t=[],n=$.clone(e);this.question.hasRows&&(n.xLeft+=this.rowTitleWidth+this.controller.unitWidth*$.GAP_BETWEEN_COLUMNS);for(let e=0;e<this.question.visibleColumns.length;e++)this.controller.pushMargins(),this.controller.margins.left=n.xLeft,this.controller.margins.right+=$.getPageAvailableWidth(this.controller)-this.columnWidth,t.push(yield $.createBoldTextFlat(n,this.question,this.controller,this.question.visibleColumns[e].locText)),n.xLeft+=this.columnWidth+this.controller.unitWidth*$.GAP_BETWEEN_COLUMNS,this.controller.popMargins();let r=new TZ(...t);return[r,$.createRowlineFlat($.createPoint(r),this.controller)]})}generateFlatsRows(t,n){return Q(this,void 0,void 0,function*(){let r=[],i=$.clone(t);for(let t=0;t<this.question.visibleRows.length;t++){let a=`row`+t,o=yield new HQ(this.survey,this.question,this.controller,this.question.visibleRows[t],t,a,t==0,n,this.rowTitleWidth,this.columnWidth).generateFlatsContent(i);i=$.createPoint($.mergeRects(...o)),i.yTop+=this.controller.unitHeight*e.GAP_BETWEEN_ROWS,r.push(...o)}return r})}calculateColumnsWidthes(){let e=$.getPageAvailableWidth(this.controller);this.question.hasRows&&this.question.rowTitleWidth?(this.controller.pushMargins(),this.rowTitleWidth=$.parseWidth(this.question.rowTitleWidth,e),this.controller.margins.left+=this.rowTitleWidth+this.controller.unitWidth*$.GAP_BETWEEN_COLUMNS,this.columnWidth=$.getColumnWidth(this.controller,this.question.visibleColumns.length),this.controller.popMargins()):this.columnWidth=this.rowTitleWidth=$.getColumnWidth(this.controller,this.question.visibleColumns.length+ +!!this.question.hasRows)}generateFlatsContent(t){return Q(this,void 0,void 0,function*(){this.calculateColumnsWidthes();let n=this.question.renderAs===`list`||this.controller.matrixRenderAs===`list`||this.columnWidth<this.controller.measureText($.MATRIX_COLUMN_WIDTH).width,r=$.clone(t),i=[];if(!n&&this.question.showHeader&&this.question.visibleColumns.length!=0){let t=yield this.generateFlatsHeader(r);r=$.createPoint($.mergeRects(...t)),r.yTop+=e.GAP_BETWEEN_ROWS*this.controller.unitHeight,i.push(...t)}return i.push(...yield this.generateFlatsRows(r,n)),i})}};VQ.GAP_BETWEEN_ROWS=.5;var HQ=class{constructor(e,t,n,r,i,a,o=!1,s=!1,c,l){this.survey=e,this.question=t,this.controller=n,this.row=r,this.rowIndex=i,this.key=a,this.isFirst=o,this.isVertical=s,this.rowTitleWidth=c,this.columnWidth=l}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){return this.isVertical?yield this.generateFlatsVerticallyCells(e):yield this.generateFlatsHorizontallyCells(e)})}generateFlatItem(e,t,n,r,i={}){let a=this.question.id+r,o=this.row.isChecked(t);return this.question.isMultiSelect?new pQ(this.controller,e,a+`index`+n,{question:this.question,index:n,checked:o,item:t,readOnly:this.question.isReadOnly}):(n===0?(this.radioGroupWrap=new hQ(a,this.controller,Object.assign({readOnly:this.question.isReadOnly,question:this.question},i)),this.question.pdfRadioGroupWrap=this.radioGroupWrap):this.radioGroupWrap===void 0&&(this.radioGroupWrap=this.question.pdfRadioGroupWrap),new gQ(this.controller,e,{question:this.question,index:n,checked:o,item:t},this.radioGroupWrap))}generateTextComposite(e,t,n){return Q(this,void 0,void 0,function*(){let r=$.clone(e),i=$.createRect(r,$.getPageAvailableWidth(this.controller),this.controller.unitHeight),a=this.generateFlatItem(i,t,n,this.key,{row:this.row,rowIndex:this.rowIndex});return r.yTop=a.yBot+this.controller.unitHeight*$.GAP_BETWEEN_ITEM_TEXT,new TZ(a,yield $.createTextFlat(r,this.question,this.controller,this.question.getCellDisplayLocText(this.row.name,t),NZ))})}generateItemComposite(e,t,n){return Q(this,void 0,void 0,function*(){let r=$.clone(e),i=$.createRect(r,this.controller.unitHeight,this.controller.unitHeight),a=this.generateFlatItem($.moveRect($.scaleRect(i,$.SELECT_ITEM_FLAT_SCALE),i.xLeft),t,n,this.key,{row:this.row,rowIndex:this.rowIndex});return r.xLeft=a.xRight+this.controller.unitWidth*$.GAP_BETWEEN_ITEM_TEXT,new TZ(a,yield $.createTextFlat(r,this.question,this.controller,t.locText,NZ))})}generateFlatsHorizontallyCells(e){return Q(this,void 0,void 0,function*(){let t=[],n=$.clone(e);this.question.hasRows&&(this.controller.pushMargins(),n.xLeft=this.controller.margins.left,this.controller.margins.right+=$.getPageAvailableWidth(this.controller)-this.rowTitleWidth,t.pu
188sh(yield $.createTextFlat(n,this.question,this.controller,this.row.locText,NZ)),n.xLeft+=this.rowTitleWidth+this.controller.unitWidth*$.GAP_BETWEEN_COLUMNS,this.controller.popMargins());for(let e=0;e<this.question.visibleColumns.length;e++){let r=this.question.visibleColumns[e];if(this.row.value,r.value,this.controller.pushMargins(),this.controller.margins.left=n.xLeft,this.controller.margins.right+=$.getPageAvailableWidth(this.controller)-this.columnWidth,this.question.hasCellText)t.push(yield this.generateTextComposite(n,r,e));else{let i=$.createRect(n,this.controller.unitHeight,this.controller.unitHeight);t.push(this.generateFlatItem($.moveRect($.scaleRect(i,$.SELECT_ITEM_FLAT_SCALE),n.xLeft),r,e,this.key,{row:this.row,rowIndex:this.rowIndex}))}n.xLeft+=this.columnWidth+this.controller.unitWidth*$.GAP_BETWEEN_COLUMNS,this.controller.popMargins()}let r=new TZ(...t);return[r,$.createRowlineFlat($.createPoint(r),this.controller)]})}generateFlatsVerticallyCells(e){return Q(this,void 0,void 0,function*(){let t=[],n=$.clone(e);if(this.question.hasRows){let e=yield $.createTextFlat(n,this.question,this.controller,this.row.locText,NZ);n.yTop=e.yBot+PZ.CONTENT_GAP_VERT_SCALE*this.controller.unitHeight,t.push(e)}t.push(...yield this.generateVerticallyItems(n,this.question.visibleColumns));let r=new TZ(...t);return[r,$.createRowlineFlat($.createPoint(r),this.controller)]})}generateVerticallyItems(e,t){return Q(this,void 0,void 0,function*(){let n=$.clone(e),r=[];for(let e=0;e<t.length;e++){let i=yield(this.question.hasCellText?this.generateTextComposite:this.generateItemComposite).call(this,n,t[e],e);n.yTop=i.yBot+$.GAP_BETWEEN_ROWS*this.controller.unitHeight,r.push(i)}return r})}};J.removeProperty(`matrix`,`renderAs`),J.addProperty(`matrix`,{name:`renderAs`,default:`auto`,visible:!1,choices:[`auto`,`list`]}),IZ.getInstance().register(`matrix`,VQ);var UQ=class e extends PZ{constructor(e,t,n,r=!0){super(e,t,n),this.survey=e,this.isMultiple=r,this.question=t}get visibleRows(){return this.visibleRowsValue||(this.visibleRowsValue=this.question.renderedTable.rows.filter(e=>e.visible)),this.visibleRowsValue}generateFlatsCellTitle(e,t){return Q(this,void 0,void 0,function*(){let n=new TZ;return n.addBrick(yield $.createTextFlat(e,this.question,this.controller,t,NZ)),n})}generateFlatsCell(e,t,n){return Q(this,arguments,void 0,function*(e,t,n,r=!0){let i=new TZ;if(t.hasQuestion){if(!(n==`footer`&&!t.question.isAnswered)){if(r&&t.isChoice){let n=IZ.getInstance().create(this.survey,t.question,this.controller,t.question.getType()),r=$.moveRect($.scaleRect($.createRect(e,this.controller.unitHeight,this.controller.unitHeight),$.SELECT_ITEM_FLAT_SCALE),e.xLeft);i.addBrick(n.generateFlatItem(r,t.item,t.choiceIndex))}else t.question.titleLocation=$.TITLE_LOCATION_MATRIX,i.addBrick(...yield $.generateQuestionFlats(this.survey,this.controller,t.question,e))}}else t.hasTitle&&(n==`header`?i.addBrick(yield $.createBoldTextFlat(e,this.question,this.controller,t.locTitle)):i.addBrick(yield $.createTextFlat(e,this.question,this.controller,t.locTitle,NZ)));return i})}get hasDetailPanel(){return this.visibleRows.some(e=>e.row&&this.question.hasDetailPanel(e.row))}ignoreCell(e,t,n,r=!0){return!r&&n==`footer`&&e.hasQuestion&&!e.question.isAnswered?!0:!(e.hasQuestion||e.hasTitle||this.isMultiple&&(this.hasDetailPanel?t==1:t==0))}getRowLocation(e){return e===this.question.renderedTable.headerRow?`header`:this.question.renderedTable.footerRow===e?`footer`:void 0}generateFlatsRowHorisontal(e,t,n){return Q(this,void 0,void 0,function*(){let r=new TZ,i=$.clone(e),a=this.controller.paperWidth-this.controller.margins.left+this.controller.unitWidth*$.GAP_BETWEEN_COLUMNS;this.controller.pushMargins();let o=0,s=this.getRowLocation(t);for(let e=0;e<t.cells.length;e++){if(this.ignoreCell(t.cells[e],e,s))continue;this.controller.margins.left=this.controller.paperWidth-a+this.controller.unitWidth*$.GAP_BETWEEN_COLUMNS,this.controller.margins.right=this.controller.paperWidth-this.controller.margins.left-n[o],a=this.controller.margins.right,i.xLeft=this.controller.margins.left;let c=yield this.generateFlatsCell(i,t.cells[e],s);c.isEmpty||r.addBrick(c),o++}return this.controller.popMargins(),r})}generateFlatsRowVertical(t,n){return Q(this,void 0,void 0,function*(){var r,i;let a=new TZ,o=$.clone(t),s=this.getRowLocation(n);for(let t=0;t<n.cells.length;t++)this.ignoreCell(n.cells[t],t,s,!1)||(this.question.renderedTable.showHeader&&(!this.isMultiple||t>0)&&(i=(r=n.cells[t].cell)==null?void 0:r.column)!=null&&i.locTitle&&(a.addBrick(yield this.generateFlatsCellTitle(o,n.cells[t].cell.column.locTitle)),o.yTop=a.yBot+e.GAP_BETWEEN_ROWS*this.controller.unitHeight),a.addBrick(yield this.generateFlatsCell(o,n.cells[t],s,!1)),o.yTop=a.yBot+e.GAP_BETWEEN_ROWS*this.controller.unitHeight);return a})}getAvalableWidth(e){return $.getPageAvailableWidth(this.controller)-(e-1)*this.controller.unitWidth*$.GAP_BETWEEN_COLUMNS}calculateColumnWidth(e,t){let n=this.getAvalableWidth(t),r=n,i=t,a=[],o=[],s=e[0].cells.filter((e,t)=>
188!this.ignoreCell(e,t));for(let e=0;e<t;e++){let c=$.parseWidth(s[e].width,n,t)||0;r-=c,c===0?o.push(s[e]):i--,a.push(c)}if(i===0)return a;let c=this.controller.measureText($.MATRIX_COLUMN_WIDTH).width;return o.sort((e,r)=>{let i=$.parseWidth(e.minWidth,n,t)||0;return($.parseWidth(r.minWidth,n,t)||0)>i?1:-1}).forEach(e=>{let o=r/i,l=$.parseWidth(e.minWidth,n,t)||0;l>o&&l>c&&(r-=l,i--),a[s.indexOf(e)]=Math.max(c,l,o)}),a}generateOneRow(e,t,n,r){return Q(this,void 0,void 0,function*(){return n?yield this.generateFlatsRowHorisontal(e,t,r):yield this.generateFlatsRowVertical(e,t)})}generateFlatsRows(t,n,r,i){return Q(this,void 0,void 0,function*(){let a=$.clone(t),o=[];for(let t=0;t<n.length;t++){let s=yield this.generateOneRow(a,n[t],i,this.calculateColumnWidth(n,r));if(!(s.isEmpty&&!(n[t].row&&n[t].row.hasPanel))&&(s.isEmpty||(t!==n.length-1&&(a.yTop=s.yBot,s.addBrick($.createRowlineFlat(a,this.controller))),o.push(s),a.yTop=s.yBot+e.GAP_BETWEEN_ROWS*this.controller.unitHeight),n[t].row&&n[t].row.hasPanel)){n[t].row.showDetailPanel();let s=n[t].row.detailPanel;for(let e=0;e<s.questions.length;e++)s.questions[e].id+=`_`+t;let c=yield jZ.generateFlatsPanel(this.survey,this.controller,s,a),l=new TZ;if(l.addBrick(...c),a.yTop=l.yBot+e.GAP_BETWEEN_ROWS*this.controller.unitHeight,o.push(l),t!==n.length-1&&this.question.renderedTable.showHeader&&i){let t=yield this.generateOneRow(a,n[0],i,this.calculateColumnWidth(n,r)),s=l.yBot;t.isEmpty||(s=t.yBot,o.push(t)),a.yTop=s+e.GAP_BETWEEN_ROWS*this.controller.unitHeight}}}return o})}calculateIsWide(e,t){let n=[];if(e.showHeader&&n.push(e.headerRow),n.push(...this.visibleRows),n.length===0)return!0;let r=this.calculateColumnWidth(n,t).reduce((e,t)=>e+=t,0);return this.question.renderAs!==`list`&&this.controller.matrixRenderAs!==`list`&&Math.floor(r)<=Math.floor(this.getAvalableWidth(t))}getRowsToRender(e,t,n){let r=[],i=this.visibleRows;return e.showHeader&&n&&r.push(e.headerRow),r.push(...i),e.hasRemoveRows&&t&&r.pop(),e.showFooter&&r.push(e.footerRow),r}getColCount(e,t){return t[0]?t[0].cells.filter((e,t)=>!this.ignoreCell(e,t)).length:e.showHeader&&e.headerRow?e.headerRow.cells.length:e.showFooter&&e.footerRow?e.footerRow.cells.length:0}generateFlatsContent(e){return Q(this,void 0,void 0,function*(){let t=this.question.renderedTable,n=this.question.columnLayout===`vertical`,r=this.getColCount(t,this.visibleRows);if(r===0&&!this.hasDetailPanel)return[new TZ($.createRowlineFlat(e,this.controller))];let i=this.calculateIsWide(t,r);i||(this.question.isMobile=!0,n=!1,t=this.question.renderedTable,this.visibleRowsValue=void 0,r=this.getColCount(t,this.visibleRows));let a=this.getRowsToRender(t,n,i);return yield this.generateFlatsRows(e,a,r,i)})}};UQ.GAP_BETWEEN_ROWS=.5,J.removeProperty(`matrixdropdown`,`renderAs`),J.addProperty(`matrixdropdown`,{name:`renderAs`,default:`auto`,visible:!1,choices:[`auto`,`list`]}),IZ.getInstance().register(`matrixdropdown`,UQ);var WQ=class extends UQ{constructor(e,t,n){super(e,t,n,!1),this.survey=e}};J.removeProperty(`matrixdynamic`,`renderAs`),J.addProperty(`matrixdynamic`,{name:`renderAs`,default:`auto`,visible:!1,choices:[`auto`,`list`]}),IZ.getInstance().register(`matrixdynamic`,WQ);var GQ=class e extends PZ{constructor(e,t,n){super(e,t,n),this.survey=e,this.controller=n,this.question=t}getVisibleRows(){return this.question.getRows().filter(e=>e.isVisible)}generateFlatItem(e,t,n,r){return Q(this,void 0,void 0,function*(){let t=$.getPageAvailableWidth(this.controller);this.controller.pushMargins(),this.controller.margins.right=this.controller.paperWidth-this.controller.margins.left-t*$.MULTIPLETEXT_TEXT_PERS;let n=new TZ(yield $.createBoldTextFlat(e,this.question,this.controller,r.locTitle));this.controller.popMargins();let i=IZ.getInstance().create(this.survey,r.editor,this.controller,`text`),a=$.createTextFieldRect({xLeft:e.xLeft+t*$.MULTIPLETEXT_TEXT_PERS,yTop:e.yTop},this.controller);return n.addBrick(...yield i.generateFlatsContent(a)),n})}generateFlatsContent(t){return Q(this,void 0,void 0,function*(){let n=[],r=$.clone(t),i=this.getVisibleRows();for(let a=0;a<i.length;a++){n.push(new TZ);let o=r.yTop;this.controller.pushMargins();for(let e=0;e<i[a].cells.length;e++){this.controller.pushMargins(),$.setColumnMargins(this.controller,this.question.colCount,e),r.xLeft=this.controller.margins.left;let t=yield this.generateFlatItem(r,a,e,i[a].cells[e].item);n[n.length-1].addBrick(t),o=Math.max(o,t.yBot),this.controller.popMargins()}this.controller.popMargins(),r.xLeft=t.xLeft,r.yTop=o,n[n.length-1].addBrick($.createRowlineFlat(r,this.controller)),r.yTop+=$.EPSILON,r.
188yTop+=this.controller.unitHeight*e.ROWS_GAP_SCALE}return n})}};GQ.ROWS_GAP_SCALE=.195,IZ.getInstance().register(`multipletext`,GQ);var KQ=class extends MZ{constructor(e,t,n){super(e,t,n(t.helperDoc,e,0,0)),this.renderFunc=n}renderInteractive(){return Q(this,void 0,void 0,function*(){yield new Promise(e=>{this.renderFunc(this.controller.doc,this.question,this.xLeft,this.yTop),e()})})}};Tz(`2.5.40`,`survey-pdf`),JZ(new class extends GZ{_getImageInfo(e){return Q(this,void 0,void 0,function*(){let t=72/96,n=new Image;return n.crossOrigin=`anonymous`,yield new Promise((r,i)=>{n.onload=()=>{let e=document.createElement(`canvas`),i=e.getContext(`2d`),a=window.devicePixelRatio||1;e.height=n.naturalHeight*a,e.width=n.naturalWidth*a,i==null||i.drawImage(n,0,0,n.naturalWidth*a,n.naturalHeight*a),r({data:e.toDataURL(),width:n.naturalWidth*t,height:n.naturalHeight*t,id:this.getImageId()})},n.onerror=()=>{i()},n.src=e})})}getCoverCanvasOptions(e,t,n,r){let i=e/t,a=n/r,o,s;return a>i?(o=n,s=n/i):(s=r,o=r*i),{canvasWidth:n,canvasHeight:r,imageX:(n-o)/2,imageY:(r-s)/2,imageWidth:o,imageHeight:s}}applyImageFit(e,t,n,r){let i=Object.create(null,{applyImageFit:{get:()=>super.applyImageFit}});return Q(this,void 0,void 0,function*(){if(t==`cover`)try{let t=new Image;if(!e.width||!e.height||!e.data||!n||!r)return e;t.src=e.data instanceof Uint8Array?URL.createObjectURL(new Blob([e.data])):e.data,yield t.decode();let i=this.getCoverCanvasOptions(e.width,e.height,n,r),a=document.createElement(`canvas`),o=a.getContext(`2d`);return a.width=i.canvasWidth,a.height=i.canvasHeight,o==null||o.drawImage(t,i.imageX,i.imageY,i.imageWidth,i.imageHeight),{data:a.toDataURL(),width:n,height:r}}catch{return e}return i.applyImageFit.call(this,e,t,n,r)})}}),gj({localeCode:`ar`,strings:{pagePrevText:`Ø§ÙØ³Ø§Ø¨Ù`,pageNextText:`Ø§ÙØªØ§ÙÙ`,completeText:`Ø¥Ø±Ø³Ø§Ù Ø§ÙØ¨ÙØ§ÙØ§Øª`,previewText:`Ù
عاÙÙØ©`,editText:`تعدÙÙ`,startSurveyText:`Ø¨Ø¯Ø§ÙØ©`,commentText:`Ø§ÙØ±Ø¬Ø§Ø¡ تر٠تعÙÙÙ`,otherItemText:`ÙØµ آخر`,noneItemText:`ÙØ§ Ø´ÙØ¡`,refuseItemText:`Ø±ÙØ¶ Ø§ÙØ¥Ø¬Ø§Ø¨Ø©`,dontKnowItemText:`ÙØ§ أعرÙ`,selectAllItemText:`اختر اÙÙÙ`,deselectAllItemText:`Ø¥ÙØºØ§Ø¡ ØªØØ¯Ùد اÙÙÙ`,progressText:`{1} ØµÙØØ© {0} Ù
Ù`,indexText:`{0} Ù
Ù {1}`,panelDynamicProgressText:`سج٠{0} Ù
Ù {1}`,panelDynamicTabTextFormat:`ÙÙØØ© {باÙÙ Ø¥ÙØ¯Ùس}`,questionsProgressText:`تÙ
ت Ø§ÙØ¥Ø¬Ø§Ø¨Ø© عÙÙ Ø£Ø³Ø¦ÙØ© {0} / {1}`,emptySurvey:`ÙØ§ ØªÙØ¬Ø¯ ØµÙØØ© Ù
Ø±Ø¦ÙØ© أ٠سؤا٠Ù٠اÙÙÙ
ÙØ°Ø¬`,completingSurvey:`Ø´ÙØ±Ø§ ÙÙÙ
ÙØ§Ø³ØªÙÙ
ا٠اÙÙÙ
ÙØ°Ø¬!`,completingSurveyBefore:`ØªØ¸ÙØ± Ø³Ø¬ÙØ§ØªÙا Ø£ÙÙ ÙØ¯ Ø£ÙÙ
ÙØª ÙØ°Ø§ Ø§ÙØ§Ø³ØªØ·Ùاع باÙÙØ¹Ù.`,loadingSurvey:`...ÙØªÙ
تØÙ
Ù٠اÙÙÙ
ÙØ°Ø¬`,placeholder:`...اختر`,ratingOptionsCaption:`اختار...`,buttongroupOptionsCaption:`اختار...`,value:`اÙÙÙÙ
Ø©`,requiredError:`.ÙØ±Ø¬Ù Ø§ÙØ¥Ø¬Ø§Ø¨Ø© عÙÙ Ø§ÙØ³Ø¤Ø§Ù`,requiredErrorInPanel:`Ø§ÙØ±Ø¬Ø§Ø¡ Ø§ÙØ¥Ø¬Ø§Ø¨Ø© عÙÙ Ø³Ø¤Ø§Ù ÙØ§ØØ¯ عÙÙ Ø§ÙØ£ÙÙ.`,requiredInAllRowsError:`ÙØ±Ø¬Ù Ø§ÙØ¥Ø¬Ø§Ø¨Ø© عÙÙ Ø§ÙØ£Ø³Ø¦ÙØ© Ù٠جÙ
ÙØ¹ Ø§ÙØµÙÙÙ`,eachRowUniqueError:`ÙØ¬Ø¨ Ø£Ù ÙÙÙÙ ÙÙ٠ص٠ÙÙÙ
Ø© ÙØ±Ùدة.`,numericError:`ÙØ¬Ø¨ أ٠تÙÙ٠اÙÙÙÙ
Ø© رÙÙ
ÙØ©.`,minError:`ÙØ¬Ø¨ Ø£ÙØ§ تÙ٠اÙÙÙÙ
Ø© ع٠{0}`,stepError:`Ø§ÙØ±Ø¬Ø§Ø¡ إدخا٠ÙÙÙ
Ø© ØªØ·Ø§Ø¨Ù ØØ¬Ù
Ø§ÙØ®Ø·ÙØ© {0}.`,maxError:`ÙØ¬Ø¨ Ø£ÙØ§ ØªØ²ÙØ¯ اÙÙÙÙ
Ø© ع٠{0}`,invalidInputError:`Ø¥Ø¯Ø®Ø§Ù ØºÙØ± ØµØ§ÙØ`,textNoDigitsAllow:`Ø§ÙØ£Ø±ÙاÙ
ØºÙØ± Ù
سÙ
ÙØ Ø¨ÙØ§.`,incompletePatternError:`ÙØ±Ø¬Ù Ø¥ÙÙ
ا٠اÙÙÙÙ
Ø© ÙØªØªÙاسب Ù
ع Ø§ÙØªÙسÙ٠اÙÙ
Ø·ÙÙØ¨.`,textMinLength:`Ø§ÙØ±Ø¬Ø§Ø¡ إدخا٠Ù
ا ÙØ§ ÙÙ٠ع٠{0} ØØ±ÙÙ`,textMaxLength:`Ø§ÙØ±Ø¬Ø§Ø¡ إدخا٠أÙÙ Ù
Ù {0} ØØ±ÙÙ`,textMinMaxLength:`ÙØ±Ø¬Ù Ø¥Ø¯Ø®Ø§Ù Ø£ÙØ«Ø± Ù
Ù {0} ÙØ£ÙÙ Ù
Ù {1} ØØ±ÙÙ`,minRowCountError:`ÙØ±Ø¬Ù Ù
ÙØ¡ Ù
ا ÙØ§ ÙÙ٠ع٠{0} Ø§ÙØµÙÙÙ`,minSelectError:`ÙØ±Ø¬Ù ØªØØ¯Ùد Ù
ا ÙØ§ ÙÙ٠ع٠{0} اÙÙ
ØªØºÙØ±Ø§Øª`,maxSelectError:`ÙØ±Ø¬Ù ØªØØ¯Ùد Ù
ا ÙØ§ ÙØ²Ùد ع٠{0} اÙÙ
ØªØºÙØ±Ø§Øª`,numericMinMax:`Ù'{0}' ÙØ¬Ø¨ أ٠تÙÙÙ Ù
ساÙÙØ© Ø£Ù Ø£ÙØ«Ø± Ù
Ù {1} ÙØªØ³Ø§Ù٠أ٠أÙÙ Ù
Ù {2}ا`,numericMin:`Ù'{0}' ÙØ¬Ø¨ أ٠تÙÙÙ Ù
ساÙÙØ© Ø£Ù Ø£ÙØ«Ø± Ù
Ù {1}ا`,numericMax:`Ù'{0}' ÙØ¬Ø¨ أ٠تÙÙÙ Ù
ساÙÙØ© أ٠أÙÙ Ù
Ù {1}ا`,invalidEmail:`Ø§ÙØ±Ø¬Ø§Ø¡ Ø¥Ø¯Ø®Ø§Ù Ø¨Ø±ÙØ¯ اÙÙØªØ±ÙÙ٠صØÙØ`,invali
188dExpression:`ÙØ¬Ø¨ Ø£Ù ÙØ¹Ø±Ø¶ Ø§ÙØªØ¹Ø¨Ùر: {0} 'ØµÙØ§Ø¨'.`,urlRequestError:`Ø·ÙØ¨ إرجاع خطأ '{0}'. {1}ا`,urlGetChoicesError:`عاد Ø·ÙØ¨ Ø§ÙØ¨ÙØ§ÙØ§Øª ÙØ§Ø±Øº Ø£Ù 'اÙ٠سار' ØºÙØ± صØÙØ `,exceedMaxSize:`ÙÙØ¨ØºÙ Ø£ÙØ§ ÙØªØ¬Ø§Ùز ØØ¬Ù اÙÙ ÙÙ {0}ا`,fileSizeUnits:`Ø¨Ø§ÙØª, ÙÙÙÙØ¨Ø§Ùت, Ù ÙØ¨, Ø¬ÙØ¨, ØªÙØ¨Ø±Ø§Ùت`,exceedMaxFiles:`Ø§ÙØØ¯ Ø§ÙØ£ÙØµÙ ÙØ¹Ø¯Ø¯ اÙÙ ÙÙØ§Øª Ø§ÙØªÙ ÙÙ ÙÙÙ Ø±ÙØ¹Ùا ÙÙ {0}.`,noUploadFilesHandler:`ÙØ§ ÙÙ Ù٠تØÙ Ù٠اÙÙ ÙÙØ§Øª. ÙØ±Ø¬Ù Ø¥Ø¶Ø§ÙØ© Ù Ø¹Ø§ÙØ¬ ÙØØ¯Ø« "onUploadFiles".`,otherRequiredError:`Ø§ÙØ±Ø¬Ø§Ø¡ إدخا٠ÙÙÙ Ø© أخرÙ`,uploadingFile:`تØÙ Ù٠اÙÙ ÙÙ Ø§ÙØ®Ø§Øµ بÙ. ÙØ±Ø¬Ù Ø§ÙØ§Ùتظار عدة Ø«ÙØ§Ù ÙØ§ÙÙ ØØ§ÙÙØ© ÙØ§ØÙÙØ§`,loadingFile:`جار Ø§ÙØªØÙ ÙÙ...`,chooseFile:`اختر اÙÙ ÙÙØ§Øª...`,noFileChosen:`Ù٠تÙÙ Ø¨Ø§Ø®ØªÙØ§Ø± Ù ÙÙ`,filePlaceholder:`Ø§Ø³ØØ¨ Ù ÙÙØ§ ÙØ£ÙÙØªÙ ÙÙØ§ أ٠اÙÙØ± ÙÙÙ Ø§ÙØ²Ø± Ø£Ø¯ÙØ§Ù ÙØªØØ¯Ùد Ù ÙÙ ÙØªØÙ ÙÙÙ.`,confirmDelete:`ÙÙ ØªØ±ÙØ¯ ØØ°Ù Ø§ÙØ³Ø¬ÙØ`,keyDuplicationError:`ÙØ¬Ø¨ أ٠تÙÙÙ ÙØ°Ù اÙÙÙÙ Ø© ÙØ±Ùدة.`,addColumn:`Ø£Ø¶Ù Ø§ÙØ¹Ù ÙØ¯`,addRow:`Ø§Ø¶Ø§ÙØ© صÙ`,removeRow:`Ø¥Ø²Ø§ÙØ© صÙ`,noRowsText:`ÙØ§ ØªÙØ¬Ø¯ صÙÙÙ.`,rowIndexTemplateTitle:`Ø§ÙØµÙ {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Ø§Ø¶Ù Ø¬Ø¯ÙØ¯`,removePanel:`Ø¥Ø²Ø§ÙØ©`,showDetails:`Ø§Ø¸ÙØ± Ø§ÙØªÙاصÙÙ`,hideDetails:`Ø¥Ø®ÙØ§Ø¡ Ø§ÙØªÙاصÙÙ`,choices_Item:`Ø¨ÙØ¯`,choices_Choice:`Ø®ÙØ§Ø± Ø§ÙØ§Ø®ØªÙار`,matrix_column:`Ø¹Ù ÙØ¯`,matrix_row:`صÙ`,multipletext_itemname:`ÙØµ`,savingData:`ÙØªÙ ØÙظ اÙÙØªØ§Ø¦Ø¬ عÙÙ Ø§ÙØ®Ø§Ø¯Ù ...`,savingDataError:`ØØ¯Ø« خطأ ÙÙÙ ÙØªÙ ÙÙ Ù Ù ØÙظ اÙÙØªØ§Ø¦Ø¬.`,savingDataSuccess:`ت٠ØÙظ اÙÙØªØ§Ø¦Ø¬ Ø¨ÙØ¬Ø§Ø!`,saveAgainButton:`ØØ§Ù٠٠جددا`,timerMin:`دÙÙÙØ©`,timerSec:`ثاÙÙØ©`,timerSpentAll:`ÙÙØ¯ Ø£ÙÙÙØª {0} عÙÙ ÙØ°Ù Ø§ÙØµÙØØ© Ù {1} Ø¥Ø¬Ù Ø§ÙØ§Ù.`,timerSpentPage:`ÙÙØ¯ Ø£ÙÙÙØª {0} عÙÙ ÙØ°Ù Ø§ÙØµÙØØ©.`,timerSpentSurvey:`ÙÙØ¯ Ø£ÙÙÙØª {0} Ø¥Ø¬Ù Ø§ÙØ§Ù.`,timerLimitAll:`ÙÙØ¯ Ø£ÙÙÙØª {0} Ù Ù {1} ÙÙ ÙØ°Ù Ø§ÙØµÙØØ© Ù {2} ٠٠إج٠اÙÙ {3}.`,timerLimitPage:`ÙÙØ¯ Ø£ÙÙÙØª {0} Ù Ù {1} ÙÙ ÙØ°Ù Ø§ÙØµÙØØ©.`,timerLimitSurvey:`ÙÙØ¯ Ø£ÙÙÙØª {0} ٠٠إج٠اÙÙ {1}.`,clearCaption:`ÙØ§Ø¶Ø`,selectCaption:`اختار`,signaturePlaceHolder:`ÙÙØ¹ ÙÙØ§`,signaturePlaceHolderReadOnly:`ÙØ§ ÙÙØ¬Ø¯ تÙÙÙØ¹`,chooseFileCaption:`اختر Ù ÙÙ`,takePhotoCaption:`Ø§ÙØªÙاط ØµÙØ±Ø©`,photoPlaceholder:`اÙÙØ± ÙÙÙ Ø§ÙØ²Ø± Ø£Ø¯ÙØ§Ù ÙØ§ÙØªÙØ§Ø· ØµÙØ±Ø© باستخدا٠اÙÙØ§Ù ÙØ±Ø§.`,fileOrPhotoPlaceholder:`ÙÙ Ø¨Ø³ØØ¨ Ù ÙÙ ÙØ¥ÙÙØ§ØªÙ Ø£Ù ØªØØ¯ÙØ¯Ù ÙØªØÙ ÙÙÙ Ø£Ù Ø§ÙØªÙاط ØµÙØ±Ø© باستخدا٠اÙÙØ§Ù ÙØ±Ø§.`,replaceFileCaption:`استبدا٠اÙÙ ÙÙ`,removeFileCaption:`ÙÙ Ø¨Ø¥Ø²Ø§ÙØ© ÙØ°Ø§ اÙÙ ÙÙ`,booleanCheckedLabel:`ÙØ¹Ù `,booleanUncheckedLabel:`ÙØ§`,confirmRemoveFile:`ÙÙ Ø£ÙØª Ù ØªØ£ÙØ¯ Ø£ÙÙ ØªØ±ÙØ¯ Ø¥Ø²Ø§ÙØ© ÙØ°Ø§ اÙÙ ÙÙ: {0}Ø`,confirmRemoveAllFiles:`ÙÙ Ø£ÙØª Ù ØªØ£ÙØ¯ Ø£ÙÙ ØªØ±ÙØ¯ Ø¥Ø²Ø§ÙØ© ÙØ§ÙØ© اÙÙ ÙÙØ§ØªØ`,questionTitlePatternText:`عÙÙØ§Ù Ø§ÙØ³Ø¤Ø§Ù`,modalCancelButtonText:`Ø¥ÙØºØ§Ø¡ Ø§ÙØ£Ù ر`,modalApplyButtonText:`طبÙ`,filterStringPlaceholder:`Ø§ÙØªØ¨ ÙÙØ¨ØØ«...`,emptyMessage:`ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات ÙÙØ¹Ø±Ø¶`,loadingPage:`تØÙ ÙÙ...`,loadingData:`تØÙ ÙÙ...`,noEntriesText:`ÙØ§ ØªÙØ¬Ø¯ Ø¥Ø¯Ø®Ø§ÙØ§Øª بعد. 189اÙÙØ± ÙÙÙ Ø§ÙØ²Ø± Ø£Ø¯ÙØ§Ù ÙØ¥Ø¶Ø§ÙØ© Ø¥Ø¯Ø®Ø§Ù Ø¬Ø¯ÙØ¯.`,noEntriesReadonlyText:`ÙØ§ ØªÙØ¬Ø¯ Ø¥Ø¯Ø®Ø§ÙØ§Øª`,tabTitlePlaceholder:`ÙÙØØ© Ø¬Ø¯ÙØ¯Ø©`,more:`Ø£ÙØ«Ø±`,tagboxDoneButtonCaption:`Ù ÙØ§ÙÙ`,selectToRankEmptyRankedAreaText:`ÙØªÙ ØªØØ¯Ùد Ø¬Ù ÙØ¹ Ø§ÙØ®Ùارات ÙÙØªØ±ØªÙب`,selectToRankEmptyUnrankedAreaText:`Ø§Ø³ØØ¨ Ø§ÙØ®Ùارات ÙÙØ§ ÙØªØ±ØªÙØ¨ÙØ§`,ok:`Ù ÙØ§ÙÙ`,cancel:`Ø¥ÙØºØ§Ø¡ Ø§ÙØ£Ù ر`,createCustomItem:`ÙÙ Ø¨Ø¥ÙØ´Ø§Ø¡ Ø¹ÙØµØ± "{0}" ...`,toc:`جدÙ٠اÙÙ ØØªÙÙØ§Øª`,progressbar:`Ø´Ø±ÙØ· Ø§ÙØªÙد٠`},nativeName:`Ø§ÙØ¹Ø±Ø¨ÙØ©`,englishName:`Arabic`,rtl:!0}),gj({localeCode:`eu`,strings:{pagePrevText:`Aurrekoa`,pageNextText:`Hurrengoa`,completeText:`Bukatu`,previewText:`Aurrebista`,editText:`Editatu`,startSurveyText:`Hasi`,commentText:`Mesedez, utzi iruzkin bat`,otherItemText:`Beste bat (zehaztu)`,noneItemText:`Bat ere ez`,refuseItemText:`Erantzuteari uko egin`,dontKnowItemText:`Ez dakit`,selectAllItemText:`Guztia hautatu`,deselectAllItemText:`Guztiaren aukeraketa bertan behera utzi`,progressText:`{1}-(e)tik {0} orrialde`,indexText:`{1} {0}`,panelDynamicProgressText:`{0} errigistro {1}-(e)tik`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Erantzundako galderak {0}/{1}`,emptySurvey:`Ez dago orrialde bistaragarririk edo ez dago galderarik.`,completingSurvey:`Eskerrik asko galdetegia erantzuteagatik!`,completingSurveyBefore:`Gure datuek diote dagoeneko galdetegia erantzun duzula.`,loadingSurvey:`Galdetegia kargatzen...`,placeholder:`Hautatu...`,ratingOptionsCaption:`Aukeratu...`,buttongroupOptionsCaption:`Aukeratu...`,value:`balioa`,requiredError:`Mesedez, galdera erantzun.`,requiredErrorInPanel:`Mesedez, gutxienez galdera bat erantzun.`,requiredInAllRowsError:`Mesedez, errenkadako galdera guztiak erantzun.`,eachRowUniqueError:`Ilara bakoitzak balio bakarra izan behar du.`,numericError:`Estimazioa zenbakizkoa izan behar du.`,minError:`Balioa ez da {0} baino txikiagoa izan behar`,stepError:`Sartu {0} urratsaren tamainarekin bat datorren balioa.`,maxError:`Balioa ez da {0}
189 baino handiagoa izan behar`,invalidInputError:`Sarrera baliogabea`,textNoDigitsAllow:`Ezin da zenbakirik egin.`,incompletePatternError:`Bete balioa beharrezko formatuarekin bat etortzeko.`,textMinLength:`Mesedez, gutxienez {0} karaktere erabili behar dira.`,textMaxLength:`Mesedez, gehienez {0} karaktere erabili behar dira.`,textMinMaxLength:`Mesedez, gehienez {0} eta gutxienez {1} karaktere erabili behar dira.`,minRowCountError:`Mesedez, gutxienez {0} errenkada bete.`,minSelectError:`Mesedez, gutxienez {0} aukera hautatu.`,maxSelectError:`Mesedez, {0} aukera baino gehiago ez hautatu.`,numericMinMax:`El '{0}' debe de ser igual o más de {1} y igual o menos de {2}`,numericMin:`'{0}' {1} baino handiagoa edo berdin izan behar da`,numericMax:`'{0}' {1} baino txikiago edo berdin izan behar da`,invalidEmail:`Mesedez, baliozko emaila idatz ezazu.`,invalidExpression:`{0} adierazpenak 'egiazkoa' itzuli beharko luke.`,urlRequestError:`Eskaerak '{0}' errorea itzuli du. {1}`,urlGetChoicesError:`La solicitud regresó vacÃo de data o la propiedad 'trayectoria' no es correcta`,exceedMaxSize:`Fitxategiaren tamaina ez da {0} baino handiagoa izan behar.`,fileSizeUnits:`Byteak, KB, MB, GB, TB`,exceedMaxFiles:`Igo ditzakezun gehienezko fitxategi kopurua {0} da.`,noUploadFilesHandler:`Artxiboak ezin dira kargatu. Gaineratu kontrolatzaile bat 'onUploadFiles' ekitaldirako.`,otherRequiredError:`Mesedez, beste estimazioa gehitu.`,uploadingFile:`Zure fitxategia igotzen ari da. Mesedez, segundo batzuk itxaron eta saiatu berriro.`,loadingFile:`Kargatzen...`,chooseFile:`Fitxategia(k) hautatu...`,noFileChosen:`Ez da inolako fitxategirik hautatu`,filePlaceholder:`Eraman artxibo bat hemen edo egin klik beheko botoian, kargatzeko artxibo bat aukeratzeko.`,confirmDelete:`¿Erregistroa borratu nahi al duzu?`,keyDuplicationError:`Balio hau bakarra izan behar du.`,addColumn:`Zutabe bat gehitu`,addRow:`Errenkada bat gehitu`,removeRow:`Errenkada bat kendu`,noRowsText:`Ez dago errenkadarik.`,rowIndexTemplateTitle:`Fila {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Berria gehitu`,removePanel:`Kendu`,showDetails:`Xehetasunak erakutsi`,hideDetails:`Xehetasunak ezkutatu`,choices_Item:`artikulua`,choices_Choice:`Aukeratzeko aukera`,matrix_column:`Zutabea`,matrix_row:`Errenkada`,multipletext_itemname:`testua`,savingData:`Erantzunak zerbitzarian gordetzen ari dira...`,savingDataError:`Erroreren bat gertatu eta erantzunak ez dira zerbitzarian gorde ahal izan.`,savingDataSuccess:`Erantzunak egoki gorde dira!`,saveAgainButton:`Berriro saiatu.`,timerMin:`min`,timerSec:`seg`,timerSpentAll:`{0} erabili duzu orrialde honetan eta orotara {1}.`,timerSpentPage:`Zuk {0} erabili duzu.`,timerSpentSurvey:`Orotara gastatu duzu.`,timerLimitAll:`{0} gastatu duzu {1}-(e)tik orrialde honetan eta orotara {2} {3}-(e)tik.`,timerLimitPage:`{0} gastatu duzu orrialde honetan {1}-(e)tik.`,timerLimitSurvey:`Zuk orotara {0} gastatu duzu {1}-(e)tik.`,clearCaption:`Hustu`,selectCaption:`Aukeratu`,signaturePlaceHolder:`Sinatu hemen`,signaturePlaceHolderReadOnly:`Sinadurarik gabe`,chooseFileCaption:`Fitxategia hautatu`,takePhotoCaption:`Argazkia hartu`,photoPlaceholder:`Egin klik beheko botoian, kamerarekin argaz
189ki bat hartzeko.`,fileOrPhotoPlaceholder:`Arrastatu eta askatu artxibo bat kamerarekin argazki bat kargatzeko edo hartzeko.`,replaceFileCaption:`Artxiboa ordeztu`,removeFileCaption:`Fitxategi hau ezabatu`,booleanCheckedLabel:`Bai`,booleanUncheckedLabel:`Ez`,confirmRemoveFile:`Ziur zaude hurrengo fitxategia ezabatu nahi duzula: {0}?`,confirmRemoveAllFiles:`Ziur al zaude fitxategi guztiak ezabatu nahi dituzula?`,questionTitlePatternText:`Galderaren izenburua`,modalCancelButtonText:`Ezeztatu`,modalApplyButtonText:`Ezarri`,filterStringPlaceholder:`Idatzi bila...`,emptyMessage:`Ez daturik erakusteko`,loadingPage:`Karga...`,loadingData:`Karga...`,noEntriesText:`Oraindik ez sarrerarik. 190Klik beheko botoian klik egin sarrera berri bat eransteko.`,noEntriesReadonlyText:`Ez sarrerarik`,tabTitlePlaceholder:`Panel berria`,more:`Gehiago`,tagboxDoneButtonCaption:`Ados`,selectToRankEmptyRankedAreaText:`Aukera guztiak sailkapenerako aukeratzen dira`,selectToRankEmptyUnrankedAreaText:`Aukerak hemen dituzu sailkatzeko`,ok:`Ados`,cancel:`Ezeztatu`,createCustomItem:`"{0}" artikulua sortzea...`,toc:`Edukien taula`,progressbar:`Aurrerapen barra`},nativeName:`euskara`,englishName:`Basque`}),gj({localeCode:`bg`,strings:{pagePrevText:`Ðазад`,pageNextText:`ÐапÑед`,completeText:`ÐÑай`,previewText:`ÐизÑализаÑиÑ`,editText:`ÑедакÑиÑане`,startSurveyText:`ÐаÑало`,commentText:`ÐолÑ, оÑÑавеÑе коменÑаÑ`,otherItemText:`ÐÑÑго (опиÑеÑе)`,noneItemText:`ÐиÑо един`,refuseItemText:`ÐÑказва да оÑговоÑи`,dontKnowItemText:`Ðе знам`,selectAllItemText:`ÐÑиÑки`,deselectAllItemText:`ÐÑÐµÐ¼Ð°Ñ Ð²Ð°Ð½Ðµ на избоÑа на вÑиÑки`,progressText:`ÑÑÑ. {0}, обÑо ÑÑÑ. {1}`,indexText:`{0} на {1}`,panelDynamicProgressText:`ÐÐ°Ð¿Ð¸Ñ {0} Ð¾Ñ {1}`,panelDynamicTabTextFormat:`Ðанел {panelIndex}`,questionsProgressText:`ÐÑговоÑени на {0} / {1} вÑпÑоÑа`,emptySurvey:`ÐнкеÑаÑа не ÑÑдÑÑжа видими ÑÑÑаниÑи или вÑпÑоÑи.`,completingSurvey:`ÐлагодаÑим ви за ÑÑаÑÑиеÑо в анкеÑаÑа!`,completingSurveyBefore:`Ðзглежда, Ñе вие веÑе ÑÑе попÑлнили анкеÑаÑа.`,loadingSurvey:`ÐаÑеждане на анкеÑаÑа...`,placeholder:`ÐзбеÑеÑе...`,ratingOptionsCaption:`ÐÑбÑан...`,buttongroupOptionsCaption:`ÐÑбÑан...`,value:`СÑойноÑÑ`,requiredError:`ÐолÑ, оÑговоÑеÑе на ÑÐ»ÐµÐ´Ð½Ð¸Ñ Ð²ÑпÑоÑ.`,requiredErrorInPanel:`ÐолÑ, оÑговоÑеÑе поне на един Ð¾Ñ Ð²ÑпÑоÑиÑе.`,requiredInAllRowsError:`ÐолÑ, оÑговоÑеÑе на вÑпÑоÑиÑе на вÑиÑки Ñедове.`,eachRowUniqueError:`ÐÑеки Ñед ÑÑÑбва да има Ñникална ÑÑойноÑÑ.`,numericError:`СÑойноÑÑÑа Ñледва да бÑде ÑиÑло.`,minError:`СÑойноÑÑÑа не ÑÑÑбва да бÑде по-малка Ð¾Ñ {0}`,stepError:`ÐолÑ, вÑведеÑе ÑÑойноÑÑ, коÑÑо ÑÑоÑвеÑÑÑва на ÑазмеÑа на ÑÑÑпкаÑа на {0}.`,maxError:`СÑойноÑÑÑа не ÑÑÑбва да бÑде по-голÑма Ð¾Ñ {0}`,invalidInputError:`Ðевалиден Ð²Ñ Ð¾Ð´`,textNoDigitsAllow:`ÐомеÑаÑа не Ñа позволени.`,incompletePatternError:`ÐолÑ, попÑлнеÑе ÑÑойноÑÑÑа, за да ÑÑоÑвеÑÑÑваÑе на Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¸Ñ ÑоÑмаÑ.`,textMinLength:`ÐолÑ, използвайÑе поне {0} Ñимвола.`,textMaxLength:`ÐолÑ, използвайÑе не повеÑе Ð¾Ñ {0} Ñимвола.`,textMinMaxLength:`ÐолÑ, използвайÑе повеÑе Ð¾Ñ {0} и по-малко Ð¾Ñ {1} Ñимвола.`,minRowCountError:`ÐолÑ, попÑлнеÑе поне {0} Ñеда.`,minSelectError:`ÐолÑ, избеÑеÑе поне {0} ваÑианÑа.`,maxSelectError:`ÐолÑ, избеÑеÑе не повеÑе Ð¾Ñ {0} ваÑианÑа.`,numericMinMax:`СÑойноÑÑÑа '{0}' Ñледва да бÑде Ñавна или по-голÑма Ð¾Ñ {1} и Ñавна или по-малка Ð¾Ñ {2}`,numericMin:`СÑойноÑÑÑа '{0}' Ñледва да бÑде Ñавна или по-голÑма Ð¾Ñ {1}`,numericMax:`СÑойноÑÑÑа '{0}' Ñледва да бÑде Ñавна или по-малка Ð¾Ñ {1}`,invalidEmail:`ÐолÑ, вÑведеÑе валиден адÑÐµÑ Ð½Ð° елекÑÑонна поÑа.`,invali
190dExpression:`ÐзÑазÑÑ: {0} ÑÑÑбва да дава ÑезÑлÑÐ°Ñ 'true' (иÑÑина).`,urlRequestError:`ÐаÑвкаÑа води до гÑеÑка '{0}'. {1}`,urlGetChoicesError:`ÐаÑвкаÑа не вÑÑÑа данни или ÑаÑÑÑа 'path' (пÑÑ Ð´Ð¾ ÑÑÑÑÐµÐ½Ð¸Ñ ÑеÑÑÑÑ Ð½Ð° ÑÑÑвÑÑа) е непÑавилно зададена`,exceedMaxSize:`РазмеÑÑÑ Ð½Ð° Ñайла Ñледва да не пÑевиÑава {0}.`,fileSizeUnits:`ÐайÑове, KB, MB, GB, TB`,exceedMaxFiles:`ÐакÑималниÑÑ Ð±Ñой Ñайлове, коиÑо можеÑе да каÑиÑе, е {0}.`,noUploadFilesHandler:`ФайловеÑе не Ð¼Ð¾Ð³Ð°Ñ Ð´Ð° бÑÐ´Ð°Ñ ÐºÐ°Ñени. ÐолÑ, добавеÑе манипÑлаÑÐ¾Ñ Ð·Ð° ÑÑбиÑиеÑо "onUploadFiles".`,otherRequiredError:`ÐолÑ, вÑведеÑе дÑÑгаÑа ÑÑойноÑÑ.`,uploadingFile:`ÐаÑÐ¸Ñ Ñайл Ñе заÑежда на ÑÑÑвÑÑа. ÐолÑ, изÑакайÑе нÑколко ÑекÑнди и Ñогава опиÑвайÑе оÑново.`,loadingFile:`ÐаÑеждане...`,chooseFile:`ÐзбеÑеÑе Ñайл(ове)...`,noFileChosen:`ÐÑма избÑан Ñайл`,filePlaceholder:`ÐлÑзнеÑе и пÑÑнеÑе Ñайл ÑÑк или ÑÑакнеÑе вÑÑÑ Ñ Ð±ÑÑона по-долÑ, за да избеÑеÑе Ñайл за каÑване.`,confirmDelete:`ÐелаеÑе ли да изÑÑиеÑе запиÑа?`,keyDuplicationError:`СÑойноÑÑÑа Ñледва да бÑде Ñникална.`,addColumn:`ÐобавÑне на колона`,addRow:`ÐобавÑне на Ñед`,removeRow:`ÐÑÐµÐ¼Ð°Ñ Ð²Ð°Ð½Ðµ на Ñед`,noRowsText:`ÐÑма Ñедове.`,rowIndexTemplateTitle:`Ред {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`ÐобавÑне на панел`,removePanel:`ÐÑÐµÐ¼Ð°Ñ Ð²Ð°Ð½Ðµ на панел`,showDetails:`Ðоказване на подÑобни данни`,hideDetails:`СкÑий подÑобниÑе данни`,choices_Item:`елеменÑ`,choices_Choice:`ÐпÑÐ¸Ñ Ð·Ð° избоÑ`,matrix_column:`Ðолона`,matrix_row:`Ред`,multipletext_itemname:`ТекÑÑ`,savingData:`РезÑлÑаÑиÑе Ñе Ð·Ð°Ð¿Ð°Ð·Ð²Ð°Ñ Ð½Ð° ÑÑÑвÑÑа...`,savingDataError:`ÐоÑади вÑзникнала гÑеÑка ÑезÑлÑаÑиÑе не Ð¼Ð¾Ð¶Ð°Ñ Ð° да бÑÐ´Ð°Ñ Ð·Ð°Ð¿Ð°Ð·ÐµÐ½Ð¸.`,savingDataSuccess:`РезÑлÑаÑиÑе бÑÑ Ð° запазени ÑÑпеÑно!`,saveAgainButton:`Ðов опиÑ`,timerMin:`мин`,timerSec:`Ñек`,timerSpentAll:`Ðие Ð¸Ð·Ð¿Ð¾Ð»Ð·Ð²Ð°Ñ Ñе {0} на Ñази ÑÑÑаниÑа и обÑо {1}.`,timerSpentPage:`Ðие Ð¸Ð·Ð¿Ð¾Ð»Ð·Ð²Ð°Ñ Ñе {0} на Ñази ÑÑÑаниÑа.`,timerSpentSurvey:`Ðие Ð¸Ð·Ð¿Ð¾Ð»Ð·Ð²Ð°Ñ Ñе обÑо {0}.`,timerLimitAll:`Ðие Ð¸Ð·Ð¿Ð¾Ð·Ð²Ð°Ñ Ñе {0} Ð¾Ñ {1} на Ñази ÑÑÑаниÑа и обÑо {2} Ð¾Ñ {3}.`,timerLimitPage:`Ðие Ð¸Ð·Ð¿Ð¾Ð»Ð·Ð²Ð°Ñ Ñе {0} Ð¾Ñ {1} на Ñази ÑÑÑаниÑа.`,timerLimitSurvey:`Ðие Ð¸Ð·Ð¿Ð¾Ð»Ð·Ð²Ð°Ñ Ñе обÑо {0} Ð¾Ñ {1}.`,clearCaption:`ÐаÑално ÑÑÑÑоÑние`,selectCaption:`ÐÑбÑан`,signaturePlaceHolder:`ÐодпиÑеÑе ÑÑк`,signaturePlaceHolderReadOnly:`ÐÑма подпиÑ`,chooseFileCaption:`ÐзбеÑеÑе Ñайл`,takePhotoCaption:`ÐапÑавеÑе Ñнимка`,photoPlaceholder:`ÐликнеÑе вÑÑÑ Ñ Ð±ÑÑона по-долÑ, за да напÑавиÑе Ñнимка Ñ Ð¿Ð¾Ð¼Ð¾ÑÑа на камеÑаÑа.`,fileOrPhotoPlaceholder:`ÐлÑзнеÑе и пÑÑнеÑе или избеÑеÑе Ñайл за каÑване или пÑавене на Ñнимка Ñ Ð¿Ð¾Ð¼Ð¾ÑÑа на камеÑаÑа.`,replaceFileCaption:`ÐамеÑÑване на Ñайл`,removeFileCaption:`ÐÑÐµÐ¼Ð°Ñ Ð²Ð°Ð½Ðµ на Ñайла`,booleanCheckedLabel:`Ðа`,booleanUncheckedLabel:`Ðе`,confirmRemoveFile:`ÐаиÑÑина ли иÑкаÑе да пÑÐµÐ¼Ð°Ñ Ð½ÐµÑе Ñози Ñайл: {0}?`,confirmRemoveAllFiles:`ÐаиÑÑина ли иÑкаÑе да пÑÐµÐ¼Ð°Ñ Ð½ÐµÑе вÑиÑки Ñайлове?`,questionTitlePatternText:`Ðаглавие на вÑпÑоÑа`,modalCancelButtonText:`ÐÑмени`,modalApplyButtonText:`ÐÑилагам`,filterStringPlaceholder:`ÐÑведеÑе за ÑÑÑÑене...`,emptyMessage:`ÐÑма данни за показване`,loadingPage:`ÐаÑеждане...`,loadingData:`ÐаÑеждане...`,noEntriesText:`ÐÑе оÑе нÑма запиÑи. 191ЩÑакнеÑе вÑÑÑ Ñ Ð±ÑÑона по-долÑ, за да добавиÑе нов запиÑ.`,noEntriesReadonlyText:`ÐÑма запиÑи`,tabTitlePlaceholder:`Ðов панел`,more:`ÐÑе`,tagboxDoneButtonCaption:`ÐобÑе`,selectToRankEmptyRankedAreaText:`ÐÑиÑки избоÑи Ñе избиÑÐ°Ñ Ð·Ð° клаÑиÑане`,selectToRankEmptyUnrankedAreaText:`ÐлÑзнеÑе избоÑиÑе ÑÑк, за да ги клаÑиÑаÑе`,ok:`ÐобÑе`,cancel:`ÐÑмени`,createCustomItem:`СÑздайÑе ÐµÐ»ÐµÐ¼ÐµÐ½Ñ "{0}"...`,toc:`СÑдÑÑжание`,progressbar:`ÐенÑа за напÑедÑка`},nativeName:`бÑлгаÑÑки`,englishName:`Bulgarian`}),gj({localeCode:`mm`,strings:{pagePrevText:`áá±á¬ááºááá¯á·`,pageNextText:`áá¾á±á·ááá¯á·`,completeText:`áá¼á®á¸áá¯á¶á¸áá«áá¼á®`,previewText:`áá¼áá¯áááºáá¼áá·áºáá¾á¯áááº`,editText:`áááºá¸áá¼ááºáááº`,startSurveyText:`á áááºáááº`,otherItemText:`á¡áá¼á¬á¸ (áá±á¬áºáá¼áá«)`,noneItemText:`áá¬áá»á¾ááá¾ááá«`,refuseItemText:`áá¼á±ááá¯áááºáá¼ááºá¸áááºáááº`,dontKnowItemText:`ááááá«`,selectAllItemText:`á¡á¬á¸áá¯á¶á¸áá½á±á¸áá»ááºáá«`,deselectAllItemText:`á¡á¬á¸áá¯á¶á¸ááá½á±á¸áá»ááºáá«`,progressText:`á á¬áá»ááºáá¾á¬ {0}/{1}`,indexText:`{0}/{1}`,panelDynamicProgressText:`{0}/{1}`,panelDynamicTabTextFormat:`áááºá¸ááẠ{panelIndex}`,questionsProgressText:`áá±á¸áá½ááºá¸áá»á¬á¸ {0}/{1} áá¼á±ááá¯áá¼á®á¸áá¼á®`,emptySurvey:`áá®á á áºáááºá¸áá½áẠáá¼ááºáá¬áá±á¸áá½ááºá¸áá»á¬á¸ááá¾ááá«á`,completingSurvey:`á á áºáááºá¸ááá¯áá¼á®á¸áá¼á±á¬ááºá á½á¬áá¼á±ááá¯áá±á¸áá²á·ááá·áºá¡áá½ááºáá»á±á¸áá°á¸áááºáá«áááºá`,completingSurveyBefore:`áá®á á áºáááºá¸ááᯠáá»á¾áá±áá¼á®á¸áá¬á¸áá¼á±ááá¯áá¬á¸áá«áááºá`,loadingSurvey:`á á áºáááºá¸ááá¯áá¯ááºáá±á¬ááºáá±áááº...`,placeholder:`áá½á±á¸áá»ááºáá«...`,ratingOptionsCaption:`áá½á±á¸áá»ááºáá«...`,value:`áááºááá¯á¸`,requiredError:`áá¼á±ááá¯áááºááá¯á¡ááºáá«áááºá`,requiredErrorInPanel:`áá¼á±ááá¯áááºááá¯á¡ááºáá«ááẠ- á¡ááá
191ºá¸áá¯á¶á¸áá
áºáá¯ááá¯áá¼á±ááá¯áá«á`,requiredInAllRowsError:`á¡áááºá¸á¡á¬á¸áá¯á¶á¸áá½ááºáá¼á±ááá¯áááºááá¯á¡ááºáá«áááºá`,eachRowUniqueError:`á¡áááºá¸ááá¯ááºá¸áá½ááºáááºáá°áá¼á±ááá¯áá¾á¯ááá¾áááá«á`,numericError:`áááºááá¯á¸áááºááááºá¸ááááºá¸áá¼á
áºááá«áááºá`,minError:`áááºááá¯á¸ááẠ{0} áááºááááºá¸ááá«á`,maxError:`áááºááá¯á¸ááẠ{0} áááºááá»á±á¬áºááá«á`,textNoDigitsAllow:`ááááºá¸ááááºá¸áá»á¬á¸ááá¯áá½áá·áºááá¼á¯áá«á`,textMinLength:`á¡áááºá¸áá¯á¶á¸ {0} áá¯á¶á¸áá¼áá·áºá
á½ááºáá«á`,textMaxLength:`á¡áá»á¬á¸áá¯á¶á¸ {0} áá¯á¶á¸áááá¬áá¼áá·áºá
á½ááºáá«á`,textMinMaxLength:`á¡áááºá¸áá¯á¶á¸ {0} áá¾áá·áºá¡áá»á¬á¸áá¯á¶á¸ {1} áá¯á¶á¸áá¼áá·áºá
á½ááºáá«á`,minRowCountError:`á¡áááºá¸áá¯á¶á¸ {0} á¡áááºá¸áá¼áá·áºá
á½ááºáá«á`,minSelectError:`á¡áááºá¸áá¯á¶á¸ {0} áá½á±á¸áá»ááºáá»ááºáá»á¬á¸áá½á±á¸áá«á`,maxSelectError:`á¡áá»á¬á¸áá¯á¶á¸ {0} áá½á±á¸áá»ááºáá»ááºáá»á¬á¸áá¬áá½á±á¸áá«á`,numericMinMax:`â{0}â ááẠ{1} áá¾áá·áº {2} á¡áá¼á¬á¸áá¼á
áºááááºá`,numericMin:`â{0}â ááẠ{1} áááºááááºá¸ááá«á`,numericMax:`â{0}â ááẠ{1} áááºááá»á±á¬áºááá«á`,invalidEmail:`ááá¬á¸áááºáá±á¬ á¡á®á¸áá±á¸ááºááááºá
á¬ááá¯ááá¯ááºááá·áºáá«á`,invalidExpression:`á¡áá±á¬ááºá¡áá¬á¸ {0} ááẠ'true' áá¼ááºááá·áºáááºá`,urlRequestError:`áá±á¬ááºá¸ááá¯áá¾á¯áá½áẠá¡áá¾á¬á¸ '{0}' áá¼á
áºáá²á·áááºá {1}`,urlGetChoicesError:`áá±á¬ááºá¸ááá¯áá¾á¯áá½ááºáá±áá¬ááá¾ááá«á ááá¯á·ááá¯áẠ'path' ááá¯ááºááá¯ááºáá¾á¯áá¾á¬áá¾á¬á¸áá±áá«áááºá`,exceedMaxSize:`ááá¯ááºá¡áá½ááºá¡á
á¬á¸ááẠ{0} áááºááá»á±á¬áºááá«á`,noUploadFilesHandler:`ááá¯ááºáá»á¬á¸ááá¯á¡ááºáá¯ááºáá¯ááºáááááá¯ááºáá«á`,otherRequiredError:`áá¼á±ááá¯áááºááá¯á¡ááºáá«áááºá áááºááá¯á¸áá
áºáá¯ááá¯ááºááá·áºáá«á`,uploadingFile:`ááá¯ááºáááºáá±áááºá áááá
áºááá¯ááºá¸á
á±á¬ááºá·áá¼á®á¸áá¼ááºáá¼áá¯á¸á
á¬á¸áá«á`,loadingFile:`áááºáá±áááº...`,chooseFile:`ááá¯ááº(áá»á¬á¸) áá½á±á¸áá»ááºáá«...`,noFileChosen:`ááá¯ááºááá½á±á¸ááá±á¸áá«`,filePlaceholder:`ááá¯ááºáá
áºáá¯á¡á¬á¸á¤áá±áá¬áá½ááºáá½á²áá»áá¼á®á¸á¡á±á¬ááºáá½ááºáá¾ááá±á¬ááá¯ááºááá¯áá¾áááºáá«á`,confirmDelete:`á¤áá¾ááºáááºá¸ááá¯áá»ááºáááºáá¾á¬ áá±áá»á¬áá«ááá¬á¸?`,keyDuplicationError:`á¤áááºááá¯á¸áááºáá°á¸áá¼á¬á¸áá¼á
áºááá«áááºá`,addColumn:`áá±á¬áºáá¶ááá·áºáááº`,addRow:`áááºá¸ááá·áºáááº`,removeRow:`áááºáá¾á¬á¸áááº`,addPanel:`á¡áá
áºááá·áºáá«`,removePanel:`áááºáá¾á¬á¸áá«`,showDetails:`á¡áá±á¸á
áááºáá¼áááº`,hideDetails:`á¡áá±á¸á
áááºáá»á±á¬ááºáááº`,choices_Item:`á¡áá¬`,matrix_column:`áá±á¬áºáá¶`,matrix_row:`áááºá¸`,multipletext_itemname:`á
á¬áá¬á¸`,
191savingData:`ááááºáá»á¬á¸ááá¯áá¬áá¬áá½ááºááááºá¸áááºá¸áá±áááº...`,savingDataError:`á¡áá¾á¬á¸áá
áºáá¯áá¼á
áºáá¼á®á¸ ááááºáá»á¬á¸ááá¯ááááºá¸áááºá¸áááááá¯ááºáá«á`,savingDataSuccess:`ááááºáá»á¬á¸ááá¯á¡á±á¬ááºáá¼ááºá
á½á¬ááááºá¸áááºá¸áá¼á®á¸áá«áá¼á®á`,saveAgainButton:`áááºáá¼áá¯á¸á
á¬á¸áááº`,timerMin:`áááá
áº`,timerSec:`á
áá¹ááá·áº`,clearCaption:`áá¾ááºá¸áááºá¸áááº`,signaturePlaceHolder:`á¤áá±áá¬áá½ááºáááºáá¾ááºáá±á¸áá«`,confirmRemoveFile:`á¤ááá¯ááºá¡á¬á¸áááºáá¾á¬á¸áááºáá¾á¬ áá±áá»á¬áá«ááá¬á¸: {0}?`,ok:`á¡áá¯áá±`,cancel:`áááºáá»ááºáá«`},nativeName:`áá¼ááºáá¬`,englishName:`Burmese`}),gj({localeCode:`ca`,strings:{pagePrevText:`Anterior`,pageNextText:`Següent`,completeText:`Complet`,previewText:`Preestrena`,editText:`Editar`,startSurveyText:`Començar`,commentText:`Si us plau, deixa un comentari`,otherItemText:`Un altre (descrigui)`,noneItemText:`Cap`,refuseItemText:`Negar-se a respondre`,dontKnowItemText:`No sé`,selectAllItemText:`Selecciona-ho tot`,deselectAllItemText:`Desselecciona-ho tot`,progressText:`Pà gina {0} de {1}`,indexText:`{0} de {1}`,panelDynamicProgressText:`{0} de {1}`,panelDynamicTabTextFormat:`Panell {panelIndex}`,questionsProgressText:`Respostes {0}/{1} preguntes`,emptySurvey:`No hi ha cap pà gina visible o pregunta a l'enquesta.`,completingSurvey:`Grà cies per completar l'enquesta!`,completingSurveyBefore:`Ja heu completat aquesta enquesta.`,loadingSurvey:`L'enquesta s'està carregant ...`,placeholder:`Selecciona ...`,ratingOptionsCaption:`Seleccionar...`,buttongroupOptionsCaption:`Seleccionar...`,value:`valor`,requiredError:`Si us plau contesti la pregunta.`,requiredErrorInPanel:`Resposta necessà ria: respondre almenys una pregunta.`,requiredInAllRowsError:`Si us plau contesti les preguntes de cada filera.`,eachRowUniqueError:`Cada fila ha de tenir un valor únic.`,numericError:`L'estimació ha de ser numèrica.`,minError:`El valor no ha de ser inferior a {0}`,stepError:`Introduïu un valor que coincideixi amb la mida del pas de {0}.`,maxError:`El valor no ha de ser superior a {0}`,invalidInputError:`Entrada invà lida`,textNoDigitsAllow:`No es permeten números.`,incompletePatternError:`Si us plau, completeu el valor per ajustar-lo al format requerit.`,textMinLength:`Si us plau entre almenys {0} sÃmbols.`,textMaxLength:`Si us plau entre menys de {0} sÃmbols.`,textMinMaxLength:`Si us plau entre més de {0} i menys de {1} sÃmbols.`,minRowCountError:`Si us plau ompli almenys {0} fileres.`,minSelectError:`Si us plau seleccioni almenys {0} variants.`,maxSelectError:`Si us plau seleccioni no més de {0} variants.`,numericMinMax:`El '{0}' deu ser igual o més de {1} i igual o menys de {2}`,numericMin:`El '{0}' ha de ser igual o més de {1}`,numericMax:`El '{0}' ha de ser igual o menys de {1}`,invalidEmail:`Si us plau afegiu un correu electrònic và lid.`,invalidExpression:`L'expressió: {0} ha de tornar 'veritable'.`,urlRequestError:`La sol·licitud va tornar error '{0}'. {1}`,urlGetChoicesError:`La sol·licitud va tornar buida de dates o la propietat 'trajectòria' no és correcta`,exceedMaxSize:`La mida de l'arxiu no pot excedir {0}.`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`El nombre mà xim d'arxius que pots pujar és {0}.`,noUploadFilesHandler:`No es poden carregar fitxers. Afegiu un controlador per a l'esdeveniment 'onUploadFiles'.`,otherRequiredError:`Si us plau afegiu l'altra estimació.`,uploadingFile:`El seu arxiu s'està pujant. Si us plau esperi uns segons i intenteu-ho de nou.`,loadingFile:`Cà rrega...`,chooseFile:`Trieu fitxer(s)...`,noFileChosen:`Cap fitxer seleccionat`,filePlaceholder:`Arrossegueu i deixeu anar un fitxer aquà o feu clic al botó següent per seleccionar un fitxer per penjar.`,confirmDelete:`Esteu segur que voleu suprimir aquest registre?`,keyDuplicationError:`Aquest valor ha de ser únic.`,addColumn:`Afegeix una columna`,addRow:`Afegiu una filera`,removeRow:`Eliminar una filera`,noRowsText:`No hi ha files.`,rowIndexTemplateTitle:`Fila {rowIndex}`,rowNameTemplateTitle:`{rowTitle}
191`,addPanel:`Afegeix un nou`,removePanel:`Treure`,showDetails:`Mostra els detalls`,hideDetails:`Amaga els detalls`,choices_Item:`Ãtem`,choices_Choice:`Opció d'elecció`,matrix_column:`Columna`,matrix_row:`Filera`,multipletext_itemname:`SMS`,savingData:`Els resultats s'estan guardant al servidor...`,savingDataError:`S'ha produït un error i no hem pogut guardar els resultats.`,savingDataSuccess:`Els resultats es van salvar amb èxit!`,saveAgainButton:`Prova una altra vegada`,timerMin:`min`,timerSec:`Seg`,timerSpentAll:`Heu passat {0} en aquesta pà gina i {1} en total.`,timerSpentPage:`Has passat {0} en aquesta pà gina.`,timerSpentSurvey:`Has gastat {0} en total.`,timerLimitAll:`Heu passat {0} de {1} en aquesta pà gina i {2} de {3} en total.`,timerLimitPage:`Has passat {0} de {1} en aquesta pà gina.`,timerLimitSurvey:`Has gastat {0} d'{1} en total.`,clearCaption:`Clar`,selectCaption:`Seleccionar`,signaturePlaceHolder:`Inscriu-te aquÃ`,signaturePlaceHolderReadOnly:`Sense signatura`,chooseFileCaption:`Seleccioneu Fitxer`,takePhotoCaption:`Fer foto`,photoPlaceholder:`Feu clic al botó següent per fer una foto amb la cà mera.`,fileOrPhotoPlaceholder:`Arrossegueu i deixeu anar o seleccioneu un fitxer per penjar-lo o fer-ne una foto amb la cà mera.`,replaceFileCaption:`Substitueix el fitxer`,removeFileCaption:`Suprimeix aquest fitxer`,booleanCheckedLabel:`SÃ`,booleanUncheckedLabel:`No`,confirmRemoveFile:`Esteu segur que voleu eliminar aquest fitxer: {0}?`,confirmRemoveAllFiles:`Esteu segur que voleu eliminar tots els fitxers?`,questionTitlePatternText:`TÃtol de la pregunta`,modalCancelButtonText:`Cancel·lar`,modalApplyButtonText:`Aplicar`,filterStringPlaceholder:`Escriviu per cercar...`,emptyMessage:`No hi ha dades per mostrar`,loadingPage:`Cà rrega...`,loadingData:`Cà rrega...`,noEntriesText:`Encara no hi ha entrades. 192Feu clic al botó següent per afegir una nova entrada.`,noEntriesReadonlyText:`No hi ha entrades`,tabTitlePlaceholder:`Nou Panell`,more:`Més`,tagboxDoneButtonCaption:`D'ACORD`,selectToRankEmptyRankedAreaText:`Totes les opcions estan seleccionades per a la classificació`,selectToRankEmptyUnrankedAreaText:`Arrossega les opcions aquà per classificar-les`,ok:`D'ACORD`,cancel:`Cancel·lar`,createCustomItem:`Crea un element "{0}"...`,toc:`Taula de continguts`,progressbar:`Barra de progrés`},nativeName:`català `,englishName:`Catalan`}),gj({localeCode:`hr`,strings:{pagePrevText:`Prethodni`,pageNextText:`SljedeÄi`,completeText:`Kompletan`,previewText:`Pregled`,editText:`UreÄivanje`,startSurveyText:`PoÄetak`,commentText:`Molimo ostavite komentar`,otherItemText:`Ostali (opis)`,noneItemText:`Nitko`,refuseItemText:`Odbijte odgovoriti`,dontKnowItemText:`Ne znam`,selectAllItemText:`Odaberi sve`,deselectAllItemText:`PoniÅ¡tite odabir svega`,progressText:`Stranica {0} od {1}`,indexText:`{0} {1}`,panelDynamicProgressText:`Zapisa {0} od {1}`,panelDynamicTabTextFormat:`PloÄa {panelIndex}`,questionsProgressText:`Odgovorio na {0}/{1} pitanja`,emptySurvey:`U anketi nema vidljive stranice ili pitanja.`,completingSurvey:`Hvala vam Å¡to ste zavrÅ¡ili anketu!`,completingSurveyBefore:`NaÅ¡i zapisi pokazuju da ste veÄ zavrÅ¡ili ovu anketu.`,loadingSurvey:`Anketa o uÄitavanje...`,placeholder:`Odaberite...`,ratingOptionsCaption:`Odabirati...`,buttongroupOptionsCaption:`Odabirati...`,value:`vrijednost`,requiredError:`Molim vas odgovorite na pitanje.`,requiredErrorInPanel:`Molim vas odgovorite na barem jedno pitanje.`,requiredInAllRowsError:`Odgovorite na pitanja u svim redovima.`,eachRowUniqueError:`Svaki redak mora imati jedinstvenu vrijednost.`,numericError:`Vrijednost bi trebala biti brojÄana.`,minError:`Vrijednost ne smije biti manja od {0}`,stepError:`Unesite vrijednost koja odgovara veliÄini koraka {0}.`,maxError:`Vrijednost ne smije biti veÄa od {0}`,invalidInputError:`NevažeÄi ulaz`,textNoDigitsAllow:`Brojevi nisu dopuÅ¡teni.`,incompletePatternError:`Molimo ispunite vrijednost kako bi odgovarala potrebnom formatu.`,textMinLength:`Unesite najmanje {0} znak(ova).`,textMaxLength:`Unesite manje od {0} znak(ova).`,textMinMaxLength:`Unesite viÅ¡e od {0} i manje od {1} znakova.`,minRowCountError:`Molimo ispunite najmanje {0} redaka.`,minSelectError:`Odaberite barem {0} varijante.`,maxSelectError:`Odaberite ne viÅ¡e od {0} varijanti.`,numericMinMax:`'{0}'bi trebao biti jednak ili viÅ¡e od {1} i jednak ili manji od {2}.`,numericMin:`'{0}' bi trebao biti jednak ili viÅ¡e od {1}.`,numericMax:`'{0}' bi trebao biti jednak ili manji od {1}
192`,invalidEmail:`Unesite valjanu e-mail adresu.`,invalidExpression:`Izraz: {0} treba vratiti 'true'.`,urlRequestError:`Zahtjev vratio pogreÅ¡ku '{0}'. {1}`,urlGetChoicesError:`Zahtjev je vratio prazne podatke ili je 'path' svojstvo netoÄna.`,exceedMaxSize:`VeliÄina datoteke ne smije prelaziti {0}.`,fileSizeUnits:`Bajtovi, KB, MB, GB, TB`,exceedMaxFiles:`Maksimalan broj datoteka koje možete uÄitati je {0}.`,noUploadFilesHandler:`Datoteke se ne mogu prenijeti. Dodajte rukovatelja za dogaÄaj 'onUploadFiles'.`,otherRequiredError:`Unesite drugu vrijednost.`,uploadingFile:`VaÅ¡a datoteka se prenosi. PriÄekajte nekoliko sekundi i pokuÅ¡ajte ponovno.`,loadingFile:`UÄitavanje...`,chooseFile:`Odaberite datoteku...`,noFileChosen:`Nije odabrana datoteka`,filePlaceholder:`Ovdje povucite i ispustite datoteku ili kliknite gumb u nastavku da biste odabrali datoteku za prijenos.`,confirmDelete:`Želite li izbrisati zapis?`,keyDuplicationError:`Ta bi vrijednost trebala biti jedinstvena.`,addColumn:`Dodavanje stupca`,addRow:`Dodavanje redaka`,removeRow:`Ukloniti`,noRowsText:`Nema redova.`,rowIndexTemplateTitle:`Redak {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Dodavanje novih`,removePanel:`Ukloniti`,showDetails:`Pokaži detalje`,hideDetails:`Sakrij detalje`,choices_Item:`stavku`,choices_Choice:`Opcija izbora`,matrix_column:`Stupca`,matrix_row:`Redak`,multipletext_itemname:`Tekstualna poruka`,savingData:`Rezultati se spremaju na poslužitelju...`,savingDataError:`DoÅ¡lo je do pogreÅ¡ke i nismo mogli spremiti rezultate.`,savingDataSuccess:`Rezultati su uspjeÅ¡no spremljeni!`,saveAgainButton:`PokuÅ¡aj ponovo`,timerMin:`min`,timerSec:`SEC`,timerSpentAll:`Vi ste proveli {0} na ovoj stranici i {1} ukupno.`,timerSpentPage:`PotroÅ¡ili ste {0} na ovu stranicu.`,timerSpentSurvey:`You have spent {0} in total. {0}.`,timerLimitAll:`Vi ste proveli {0} od {1} na ovoj stranici i {2} od {3} ukupno.`,timerLimitPage:`PotroÅ¡io si {0} od {1} na ovoj stranici.`,timerLimitSurvey:`Ukupno ste potroÅ¡ili {0} od {1}.`,clearCaption:`OÄistiti`,selectCaption:`Odabirati`,signaturePlaceHolder:`PotpiÅ¡i ovdje`,signaturePlaceHolderReadOnly:`Bez potpisa`,chooseFileCaption:`Odaberite datoteku`,takePhotoCaption:`Snimi fotografiju`,photoPlaceholder:`Kliknite donji gumb da biste snimili fotografiju pomoÄu kamere.`,fileOrPhotoPlaceholder:`Povucite i ispustite ili odaberite datoteku za prijenos ili snimanje fotografije pomoÄu kamere.`,replaceFileCaption:`Zamijeni datoteku`,removeFileCaption:`Uklonite ovu datoteku`,booleanCheckedLabel:`Da`,booleanUncheckedLabel:`Ne`,confirmRemoveFile:`Jeste li sigurni da želite ukloniti ovu datoteku: {0}?`,confirmRemoveAllFiles:`Jeste li sigurni da želite ukloniti sve datoteke?`,questionTitlePatternText:`Naslov pitanja`,modalCancelButtonText:`Otkazati`,modalApplyButtonText:`Primijeniti`,filterStringPlaceholder:`UpiÅ¡ite za pretraživanje...`,emptyMessage:`Nema podataka za prikaz`,loadingPage:`UÄitavanje...`,loadingData:`UÄitavanje...`,noEntriesText:`JoÅ¡ nema unosa. 193Kliknite gumb u nastavku da biste dodali novi unos.`,noEntriesReadonlyText:`Nema unosa`,tabTitlePlaceholder:`Nova ploÄa`,more:`ViÅ¡e`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Svi izbori su odabrani za rangiranje`,selectToRankEmptyUnrankedAreaText:`Povucite izbore ovdje da biste ih rangirali`,ok:`OK`,cancel:`Otkazati`,createCustomItem:`Stvorite "{0}" stavku...`,toc:`Tablica sadržaja`,progressbar:`Traka napretka`},nativeName:`hrvatski`,englishName:`Croatian`}),gj({localeCode:`cs`,strings:{pagePrevText:`PÅedchozÃ`,pageNextText:`DalÅ¡Ã`,completeText:`DokonÄit`,previewText:`Náhled`,editText:`Upravit`,startSurveyText:`ZaÄÃt`,commentText:`Zanechte prosÃm komentáÅ`,otherItemText:`Jiná odpovÄÄ (napiÅ¡te)`,noneItemText:`Žádný`,refuseItemText:`OdmÃtnout odpovÄdÄt`,dontKnowItemText:`NevÃm`,selectAllItemText:`Vybrat vÅ¡e`,deselectAllItemText:`ZruÅ¡it výbÄr vÅ¡ech`,progressText:`Strana {0} z {1}`,indexText:`{0} z {1}`,panelDynamicProgressText:`Záznam {0} z {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`ZodpovÄzené otázky: {0} / {1}`,emptySurvey:`Průzkum neobsahuje žádné otázky.`,completingSurvey:`DÄkujeme za vyplnÄnà průzkumu!`,completingSurveyBefore:`NaÅ¡e záznamy ukazujÃ, že jste tento průzkum již dokonÄil/a.`,loadingSurvey:`ProbÃhá n
193aÄÃtánà průzkumu...`,placeholder:`Vyberte...`,ratingOptionsCaption:`Vybrat...`,buttongroupOptionsCaption:`Vybrat...`,value:`hodnota`,requiredError:`OdpovÄzte prosÃm na otázku.`,requiredErrorInPanel:`OdpovÄzte prosÃm alespoÅ jednu otázku.`,requiredInAllRowsError:`OdpovÄzte prosÃm na vÅ¡echny otázky.`,eachRowUniqueError:`Každý Åádek musà mÃt jedineÄnou hodnotu.`,numericError:`V tomto poli lze zadat pouze ÄÃsla.`,minError:`Hodnota by nemÄla být menšà než {0}`,stepError:`Zadejte hodnotu, která odpovÃdá velikosti kroku {0}.`,maxError:`Hodnota by nemÄla být vÄtšà než {0}`,invalidInputError:`Neplatný vstup`,textNoDigitsAllow:`ÄÃsla nejsou povolena.`,incompletePatternError:`ProsÃm, vyplÅte hodnotu tak, aby odpovÃdala požadovanému formátu.`,textMinLength:`Zadejte prosÃm alespoÅ {0} znaků.`,textMaxLength:`Zadejte prosÃm ménÄ než {0} znaků.`,textMinMaxLength:`Zadejte prosÃm vÃce než {0} a ménÄ než {1} znaků.`,minRowCountError:`VyplÅte prosÃm alespoÅ {0} Åádků.`,minSelectError:`Vyberte prosÃm alespoÅ {0} varianty.`,maxSelectError:`NevybÃrejte prosÃm vÃce než {0} variant.`,numericMinMax:`OdpovÄÄ '{0}' by mÄlo být vÄtšà nebo rovno {1} a menšà nebo rovno {2}`,numericMin:`OdpovÄÄ '{0}' by mÄlo být vÄtšà nebo rovno {1}`,numericMax:`OdpovÄÄ '{0}' by mÄlo být menšà nebo rovno {1}`,invalidEmail:`Zadejte prosÃm platnou e-mailovou adresu.`,invalidExpression:`Výraz: {0} by mÄl vrátit hodnotu âtrueâ.`,urlRequestError:`Požadavek vrátil chybu '{0}'. {1}`,urlGetChoicesError:`Požadavek nevrátil data nebo je neplatná vlastnost 'path'`,exceedMaxSize:`Velikost souboru by nemÄla být vÄtšà než {0}.`,fileSizeUnits:`Bajty, KB, MB, GB, TB`,exceedMaxFiles:`Maximálnà poÄet souborů, které můžete nahrát, je {0}.`,noUploadFilesHandler:`Soubory nelze nahrát. PÅidejte obslužnou rutinu pro událost 'onUploadFiles'.`,otherRequiredError:`Zadejte prosÃm jinou hodnotu.`,uploadingFile:`Váš soubor se nahrává. Zkuste to prosÃm za nÄkolik sekund.`,loadingFile:`NaÄÃtánÃ...`,chooseFile:`Vyberte soubory...`,noFileChosen:`Nenà zvolený žádný soubor`,filePlaceholder:`Sem pÅetáhnÄte soubor nebo kliknÄte na tlaÄÃtko nÞe a vyberte soubor, který chcete nahrát.`,confirmDelete:`Chcete záznam smazat?`,keyDuplicationError:`Tato hodnota by mÄla být unikátnÃ.`,addColumn:`PÅidat sloupec`,addRow:`PÅidat Åádek`,removeRow:`Odstranit`,noRowsText:`Neexistujà žádné Åádky.`,rowIndexTemplateTitle:`Åádek {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`PÅidat nový`,removePanel:`Odstranit`,showDetails:`Zobrazit podrobnosti`,hideDetails:`Skrýt podrobnosti`,choices_Item:`položka`,choices_Choice:`Možnost volby`,matrix_column:`Sloupec`,matrix_row:`Åádek`,multipletext_itemname:`Text`,savingData:`Výsledky se ukládajà na server...`,savingDataError:`DoÅ¡lo k chybÄ a výsledky jsme nemohli uložit.`,savingDataSuccess:`Výsledky byly úspÄÅ¡nÄ uloženy!`,saveAgainButton:`Zkuste to znovu`,timerMin:`min`,timerSec:`sek`,timerSpentAll:`Na této stránce jste strávil/a celkem {0} z {1}.`,timerSpentPage:`Na této stránce jste strávil/a {0}.`,timerSpentSurvey:`Celkem jste strávil/a {0}.`,timerLimitAll:`Na této stránce jste strávil/a {0} z {1} a celkem {2} z {3}.`,timerLimitPage:`Na této stránce jste strávil/a {0} z {1}.`,timerLimitSurvey:`CelkovÄ jste strávil/a {0} z {1}.`,clearCaption:`Vymazat`,selectCaption:`Vybrat`,signaturePlaceHolder:`PodepiÅ¡te se zde`,signaturePlaceHolderReadOnly:`Bez podpisu`,chooseFileCaption:`Vyberte soubor`,takePhotoCaption:`PoÅÃdit fotografii`,photoPlaceholder:`KliknutÃm na tlaÄÃtko nÞe poÅÃdÃte fotografii pomocà fotoaparátu.`,fileOrPhotoPlaceholder:`PÅetáhnÄte nebo vyberte soubor, který chcete nahrát nebo poÅiÄte fotografii pomocà fotoaparátu.`,replaceFileCaption:`Nahradit soubor`,removeFileCaption:`Odeberte tento soubor`,booleanCheckedLabel:`Ano`,booleanUncheckedLabel:`Ne`,confirmRemoveFile:`Opravdu chcete odebrat tento soubor: {0}?`,confirmRemoveAllFiles:`Opravdu chcete odstranit vÅ¡echny soubory?`,questionTitlePatternText:`Název otázky`,modalCancelButtonText:`ZruÅ¡it`,modalApplyButtonText:`PoužÃt`,filterStringPlaceholder:`Zadejte hledaný text...`,emptyMessage:`Žádná data k zobrazenÃ`,loadingPage:`Nakládka...`,loadingData:`Nakládka...`,noEntriesText:`ZatÃm žádné záznamy. 194KliknutÃm na tlaÄÃtko nÞe pÅidáte novou položku.`,noEntriesReadonlyText:`Žádné vstupy`,tabTitlePlaceholder:`Nový panel`,more:`VÃce`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`VÅ¡echny možnosti jsou vybrány pro poÅa
194dÃ`,selectToRankEmptyUnrankedAreaText:`PÅetaženÃm voleb sem je seÅadÃte`,ok:`OK`,cancel:`ZruÅ¡it`,createCustomItem:`VytvoÅte položku "{0}"...`,toc:`Obsah`,progressbar:`Indikátor průbÄhu`},nativeName:`ÄeÅ¡tina`,englishName:`Czech`}),gj({localeCode:`da`,strings:{pagePrevText:`Tilbage`,pageNextText:`Videre`,completeText:`Færdig`,previewText:`Forpremiere`,editText:`Redigér`,startSurveyText:`Start`,commentText:`Efterlad venligst en kommentar`,otherItemText:`Valgfrit svar...`,noneItemText:`Ingen`,refuseItemText:`Nægt at svare`,dontKnowItemText:`Ved ikke`,selectAllItemText:`Vælg alle`,deselectAllItemText:`Fravælg alle`,progressText:`Side {0} af {1}`,indexText:`{0} af {1}`,panelDynamicProgressText:`Optag {0} af {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Besvarede {0} / {1} spørgsmÃ¥l`,emptySurvey:`Der er ingen synlige spørgsmÃ¥l.`,completingSurvey:`Mange tak for din besvarelse!`,completingSurveyBefore:`Vores data viser at du allerede har gennemført dette spørgeskema.`,loadingSurvey:`Spørgeskemaet hentes fra serveren...`,placeholder:`Vælg...`,ratingOptionsCaption:`Markere...`,buttongroupOptionsCaption:`Markere...`,value:`værdi`,requiredError:`Besvar venligst spørgsmÃ¥let.`,requiredErrorInPanel:`Besvar venligst mindst ét spørgsmÃ¥l.`,requiredInAllRowsError:`Besvar venligst spørgsmÃ¥l i alle rækker.`,eachRowUniqueError:`Hver række skal have en entydig værdi.`,numericError:`Angiv et tal.`,minError:`Værdien bør ikke være mindre end {0}`,stepError:`Indtast en værdi, der matcher trinstørrelsen pÃ¥ {0}.`,maxError:`Værdien bør ikke være større end {0}`,invalidInputError:`Ugyldig input`,textNoDigitsAllow:`Numre er ikke tilladt.`,incompletePatternError:`Udfyld venligst værdien for at matche det krævede format.`,textMinLength:`Angiv mindst {0} tegn.`,textMaxLength:`Please enter less than {0} characters.`,textMinMaxLength:`Angiv mere end {0} og mindre end {1} tegn.`,minRowCountError:`Udfyld mindst {0} rækker.`,minSelectError:`Vælg venligst mindst {0} svarmulighed(er).`,maxSelectError:`Vælg venligst færre {0} svarmuligheder(er).`,numericMinMax:`'{0}' skal være lig med eller større end {1} og lig med eller mindre end {2}`,numericMin:`'{0}' skal være lig med eller større end {1}`,numericMax:`'{0}' skal være lig med eller mindre end {1}`,invalidEmail:`Angiv venligst en gyldig e-mail adresse.`,invalidExpression:`Udtrykket: {0} skal returnere 'true'.`,urlRequestError:`Forespørgslen returnerede fejlen '{0}'. {1}`,urlGetChoicesError:`Forespørgslen returnerede ingen data eller 'path' parameteren er forkert`,exceedMaxSize:`Filstørrelsen mÃ¥ ikke overstige {0}.`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`Det maksimale antal filer, du kan uploade, er {0}.`,noUploadFilesHandler:`Filer kan ikke uploades. Tilføj en handler for hændelsen 'onUploadFiles'.`,otherRequiredError:`Angiv en værdi for dit valgfrie svar.`,uploadingFile:`Din fil bliver uploadet. Vent nogle sekunder og prøv eventuelt igen.`,loadingFile:`Indlæser...`,chooseFile:`Vælg fil(er)...`,noFileChosen:`Ingen fil er valgt`,filePlaceholder:`Træk og slip en fil her, eller klik pÃ¥ knappen nedenfor for at vælge en fil, der skal uploades.`,confirmDelete:`Vil du fjerne den?`,keyDuplicationError:`Denne værdi skal være unik.`,addColumn:`Tilføj kolonne`,addRow:`Tilføj række`,removeRow:`Fjern`,noRowsText:`Der er ingen rækker.`,rowIndexTemplateTitle:`Række {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Tilføj ny`,removePanel:`Fjern`,showDetails:`Vis detaljer`,hideDetails:`Skjul detaljer`,choices_Item:`valg`,choices_Choice:`Valgmulighed`,matrix_column:`Kolonne`,matrix_row:`Række`,multipletext_itemname:`Tekst`,savingData:`Resultaterne bliver gemt pÃ¥ serveren...`,savingDataError:`Der opstod en fejl og vi kunne ikke gemme resultatet.`,savingDataSuccess:`Resultatet blev gemt!`,saveAgainButton:`Prøv igen`,timerMin:`Min`,timerSec:`sek`,timerSpentAll:`Du har brugt {0} pÃ¥ denne side og {1} i alt.`,timerSpentPage:`Du har brugt {0} pÃ¥ denne side.`,timerSpentSurvey:`Du har brugt {0} i alt.`,timerLimitAll:`Du har brugt {0} af {1} pÃ¥ denne side og {2} af {3} i alt.`,timerLimitPage:`Du har brugt {0} af {1} pÃ¥ denne side.`,timerLimitSurvey:`Du har brugt {0} af {1} i alt.`,clearCaption:`Fjern`,selectCaption:`Markere`,signaturePlaceHolder:`Tilmeld dig her`,signaturePlaceHolderReadOnly:`Ingen underskrift`,chooseFileCaption:`Vælg fil`,takePhotoCaption:`Tag billede`,photoPlaceholder:`Klik pÃ¥ knappen nedenfor for at tage et billede med kameraet.`,fileOrPhotoPlaceholder:`Træk og slip, eller vælg en fil, der skal uploades, eller tag et billede med kameraet.`,replaceFileCaption:`Erstat fil`,removeFileCaption:`Fjern denne fil`,booleanCheckedLabel:`Ja`,booleanUncheckedLabel:`Ingen`,confirmRemoveFile:`Er du sikker pÃ¥, at du vil fjerne denne fil: {0}
194?`,confirmRemoveAllFiles:`Er du sikker på, at du vil fjerne alle filer?`,questionTitlePatternText:`Spørgsmåls titel`,modalCancelButtonText:`Aflyse`,modalApplyButtonText:`Anvende`,filterStringPlaceholder:`Skriv for at søge...`,emptyMessage:`Ingen data at vise`,loadingPage:`Pålæsning...`,loadingData:`Pålæsning...`,noEntriesText:`Ingen tilmeldinger endnu. 195Klik på knappen nedenfor for at tilføje en ny post.`,noEntriesReadonlyText:`Ingen poster`,tabTitlePlaceholder:`Nyt panel`,more:`Mere`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Alle valg er udvalgt til rangering`,selectToRankEmptyUnrankedAreaText:`Træk valgmuligheder her for at rangere dem`,ok:`OK`,cancel:`Aflyse`,createCustomItem:`Opret "{0}" element...`,toc:`Indholdsfortegnelse`,progressbar:`Statuslinje`},nativeName:`dansk`,englishName:`Danish`});var qQ={pagePrevText:`Vorige`,pageNextText:`Volgende`,completeText:`Verzenden`,previewText:`Voorbeeld`,editText:`Bewerk`,startSurveyText:`Start`,commentText:`Laat een reactie achter`,otherItemText:`Anders, nl.`,noneItemText:`Geen`,refuseItemText:`Weiger te antwoorden`,dontKnowItemText:`Weet niet`,selectAllItemText:`Selecteer Alles`,deselectAllItemText:`Alles deselecteren`,progressText:`Pagina {0} van {1}`,indexText:`{0} van {1}`,panelDynamicProgressText:`Record {0} of {1}`,panelDynamicTabTextFormat:`Paneel {panelIndex}`,questionsProgressText:`Geantwoord {0}/{1} vragen`,emptySurvey:`Er is geen zichtbare pagina of vraag in deze vragenlijst`,completingSurvey:`Bedankt voor het invullen van de vragenlijst`,completingSurveyBefore:`Onze gegevens tonen aan dat je deze vragenlijst reeds beantwoord hebt.`,loadingSurvey:`De vragenlijst is aan het laden...`,placeholder:`Kies...`,ratingOptionsCaption:`Selecteren...`,buttongroupOptionsCaption:`Selecteren...`,value:`waarde`,requiredError:`Dit is een vereiste vraag`,requiredErrorInPanel:`Gelieve ten minste een vraag te beantwoorden.`,requiredInAllRowsError:`Deze vraag vereist één antwoord per rij`,eachRowUniqueError:`Elke rij moet een unieke waarde hebben.`,numericError:`Het antwoord moet een getal zijn`,minError:`De waarde mag niet lager zijn dan {0}`,stepError:`Voer een waarde in die overeenkomt met de stapgrootte van {0}.`,maxError:`De waarde mag niet groter zijn dan {0}`,invalidInputError:`Ongeldige invoer`,textNoDigitsAllow:`Nummers zijn niet toegestaan.`,incompletePatternError:`Vul de waarde in om aan het vereiste formaat te voldoen.`,textMinLength:`Vul minstens {0} karakters in`,textMaxLength:`Gelieve minder dan {0} karakters in te vullen.`,textMinMaxLength:`Gelieve meer dan {0} en minder dan {1} karakters in te vullen.`,minRowCountError:`Gelieve ten minste {0} rijen in te vullen.`,minSelectError:`Selecteer minimum {0} antwoorden`,maxSelectError:`Selecteer niet meer dan {0} antwoorden`,numericMinMax:`Uw antwoord '{0}' moet groter of gelijk zijn aan {1} en kleiner of gelijk aan {2}`,numericMin:`Uw antwoord '{0}' moet groter of gelijk zijn aan {1}`,numericMax:`Uw antwoord '{0}' moet groter of gelijk zijn aan {1}`,invalidEmail:`Vul een geldig e-mailadres in`,invalidExpression:`De uitdrukking: {0} moet 'waar' teruggeven.`,urlRequestError:`De vraag keerde een fout terug '{0}'. {1}`,urlGetChoicesError:`De vraag gaf een leeg antwoord terug of de 'pad' eigenschap is niet correct`,exceedMaxSize:`De grootte van het bestand mag niet groter zijn dan {0}`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`Het maximale aantal bestanden dat je kunt uploaden is {0}.`,noUploadFilesHandler:`Bestanden kunnen niet worden geüpload. Voeg een handler toe voor de gebeurtenis 'onUploadFiles'.`,otherRequiredError:`Vul het veld 'Anders, nl.' in`,uploadingFile:`Uw bestand wordt geüpload. Gelieve enkele seconden te wachten en opnieuw te proberen.`,loadingFile:`Laden...`,chooseFile:`Kies uw bestand(en)...`,noFileChosen:`Geen bestand gekozen`,filePlaceholder:`Sleep het bestand naar hier`,confirmDelete:`Wilt u deze gegevens verwijderen?`,keyDuplicationError:`Deze waarde moet uniek zijn.`,addColumn:`Voeg kolom toe`,addRow:`Voeg rij toe`,removeRow:`Verwijder`,noRowsText:`Er zijn geen rijen.`,rowIndexTemplateTitle:`Rij {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Nieuwe toevoegen`,removePanel:`Verwijder`,showDetail
195s:`Toon details`,hideDetails:`Verberg details`,choices_Item:`onderwerp`,choices_Choice:`Keuze optie`,matrix_column:`Kolom`,matrix_row:`Rij`,multipletext_itemname:`Tekst`,savingData:`De resultaten worden bewaard op de server...`,savingDataError:`Er was een probleem en we konden de resultaten niet bewaren.`,savingDataSuccess:`De resultaten werden succesvol bewaard!`,saveAgainButton:`Probeer opnieuw`,timerMin:`minimum`,timerSec:`sec`,timerSpentAll:`U heeft {0} gespendeerd op deze pagina en {1} in totaal.`,timerSpentPage:`U heeft {0} op deze pagina gespendeerd.`,timerSpentSurvey:`U heeft in totaal {0} gespendeerd.`,timerLimitAll:`U heeft {0} van {1} op deze pagina gespendeerd en {2} van {3} in totaal.`,timerLimitPage:`U heeft {0} van {1} gespendeerd op deze pagina.`,timerLimitSurvey:`U heeft {0} van {1} in het totaal.`,clearCaption:`Verwijder`,selectCaption:`Selecteren`,signaturePlaceHolder:`Hier tekenen`,signaturePlaceHolderReadOnly:`Geen handtekening`,chooseFileCaption:`Gekozen bestand`,takePhotoCaption:`Foto maken`,photoPlaceholder:`Klik op de onderstaande knop om een foto te maken met de camera.`,fileOrPhotoPlaceholder:`Sleep en zet neer of selecteer een bestand om te uploaden of maak een foto met de camera.`,replaceFileCaption:`Bestand vervangen`,removeFileCaption:`Verwijder dit bestand`,booleanCheckedLabel:`Ja`,booleanUncheckedLabel:`Nee`,confirmRemoveFile:`Weet u zeker dat u deze file wilt verwijderen: {0}?`,confirmRemoveAllFiles:`Weet u zeker dat u al deze files wilt verwijderen?`,questionTitlePatternText:`Titel van de vraag`,modalCancelButtonText:`Annuleren`,modalApplyButtonText:`Toepassen`,filterStringPlaceholder:`Typ om te zoeken...`,emptyMessage:`Geen gegevens om weer te geven`,loadingPage:`Laden...`,loadingData:`Laden...`,noEntriesText:`Nog geen inschrijvingen. 196Klik op de onderstaande knop om een nieuw item toe te voegen.`,noEntriesReadonlyText:`Geen inzendingen`,tabTitlePlaceholder:`Nieuw paneel`,more:`Meer`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Alle keuzes zijn geselecteerd voor rangschikking`,selectToRankEmptyUnrankedAreaText:`Sleep keuzes hierheen om ze te rangschikken`,ok:`OK`,cancel:`Annuleren`,createCustomItem:`Maak een "{0}" item...`,toc:`Inhoudsopgave`,progressbar:`Voortgangsbalk`};gj({localeCode:`nl`,strings:qQ,nativeName:`nederlands`,englishName:`Dutch`}),gj({localeCode:`nl-BE`,strings:qQ,nativeName:`vlaams`,englishName:`Flemish`}),gj({localeCode:`et`,strings:{pagePrevText:`Tagasi`,pageNextText:`Edasi`,completeText:`Lõpeta`,previewText:`Eelvaade`,editText:`Muuda`,startSurveyText:`Alusta`,commentText:`Palun jäta kommentaar`,otherItemText:`Muu (täpsusta)`,noneItemText:`Mitte midagi`,refuseItemText:`Keeldu vastamast`,dontKnowItemText:`Ei tea`,selectAllItemText:`Vali kõik`,deselectAllItemText:`Kõigi valiku tühistamine`,progressText:`Lehekülg {0}/{1}`,indexText:`{0} {1}`,panelDynamicProgressText:`Kirje {0}/{1}`,panelDynamicTabTextFormat:`Paneel {panelIndex}`,questionsProgressText:`Vastatud {0} küsimust {1}-st`,emptySurvey:`Selles uuringus ei ole ühtki nähtavat lehekülge või küsimust.`,completingSurvey:`Aitäh, et vastasid ankeedile!`,completingSurveyBefore:`Meie andmetel oled sa sellele ankeedile juba vastanud.`,loadingSurvey:`Laen ankeeti...`,placeholder:`Vali...`,ratingOptionsCaption:`Valima...`,buttongroupOptionsCaption:`Valima...`,value:`väärtus`,requiredError:`Palun vasta küsimusele.`,requiredErrorInPanel:`Palun vasta vähemalt ühele küsimusele.`,requiredInAllRowsError:`Palun anna vastus igal real.`,eachRowUniqueError:`Igal real peab olema kordumatu väärtus.`,numericError:`See peaks olema numbriline väärtus.`,minError:`Väärtus ei tohiks olla väiksem kui {0}`,stepError:`Sisestage väärtus, mis vastab {0} sammu suurusele.`,maxError:`Väärtus ei tohiks olla suurem kui {0}`,invalidInputError:`Kehtetu sisend`,textNoDigitsAllow:`Numbrid ei ole lubatud.`,incompletePatternError:`Palun täida väärtus, et see vastaks nõutud formaadile.`,textMinLength:`Palun sisesta vähemalt {0} tähemärki.`,textMaxLength:`Palun ära sisesta rohkem kui {0} tähemärki.`,textMinMaxLength:`Sisesta palun {0} - {1} tähemärki.`,minRowCountError:`Sisesta plaun vähemalt {0} rida.`,minSelectError:`Palun vali vähemalt {0} varianti.`,maxSelectError:`Palun vali kõige rohkem {0} varianti.`,numericMinMax:`'{0}' peaks olema võrdne või suurem kui {1} ja võrdne või väiksem kui {2}`,numericMin:`'{0}' peaks olema võrdne või suurem kui {1}`,numericMax:`'{0}' peaks olema võrnde või väiksem kui {1}`,invalidEmail:`Sisesta palun korrektne e-posti aadress.`,invali
196dExpression:`Avaldis: {0} peaks tagastama tõese.`,urlRequestError:`Taotlus tagastas vea â{0}â. {1}`,urlGetChoicesError:`Taotlus tagastas tühjad andmed või atribuut 'path' on vale`,exceedMaxSize:`Faili suurus ei tohi ületada {0}.`,fileSizeUnits:`Baitid, KB, MB, GB, TB`,exceedMaxFiles:`Maksimaalne failide arv, mida saad üles laadida, on {0}.`,noUploadFilesHandler:`Faile ei saa üles laadida. Palun lisage sündmuse "onUploadFiles" jaoks käitleja.`,otherRequiredError:`Sisesta palun muu vastus.`,uploadingFile:`Sinu fail laeb üles. Palun oota mõned sekundid ning proovi seejärel uuesti.`,loadingFile:`Laen...`,chooseFile:`Vali fail(id)...`,noFileChosen:`Faili pole valitud`,filePlaceholder:`Pukseerige fail siia või klõpsake alloleval nupul, et valida üleslaaditav fail.`,confirmDelete:`Kas tahad kirje kustutada?`,keyDuplicationError:`See väärtus peab olema unikaalne.`,addColumn:`Lisa veerg`,addRow:`Lisa rida`,removeRow:`Eemalda`,noRowsText:`Ridu pole.`,rowIndexTemplateTitle:`Rida {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Lisa uus`,removePanel:`Eemalda`,showDetails:`Näita detaile`,hideDetails:`Peida üksikasjad`,choices_Item:`üksus`,choices_Choice:`Valiku valik`,matrix_column:`Veerg`,matrix_row:`Rida`,multipletext_itemname:`Tekst`,savingData:`Salvestan andmed serveris...`,savingDataError:`Tekkis viga ning me ei saanud vastuseid salvestada.`,savingDataSuccess:`Vastuste salvestamine õnnestus!`,saveAgainButton:`Proovi uuesti`,timerMin:`min`,timerSec:`sek`,timerSpentAll:`Oled veetnud {0} sellel lehel ning kokku {1}.`,timerSpentPage:`Oled veetnud {0} sellel lehel.`,timerSpentSurvey:`Oled veetnud {0} kokku.`,timerLimitAll:`Oled kulutanud {0} võimalikust {1} sellel lehel ning {2} võimalikust {3} kokku.`,timerLimitPage:`Oled kulutanud {0} võimalikust {1} sellel lehel.`,timerLimitSurvey:`Oled kulutanud {0} võimalikust {1} koguajast.`,clearCaption:`Puhasta`,selectCaption:`Valima`,signaturePlaceHolder:`Allkirjasta siin`,signaturePlaceHolderReadOnly:`Allkiri puudub`,chooseFileCaption:`Vali fail`,takePhotoCaption:`Pildistamine`,photoPlaceholder:`Kaamera abil pildistamiseks klõpsake allolevat nuppu.`,fileOrPhotoPlaceholder:`Pukseerige või valige üleslaaditav fail või pildistage seda kaamera abil.`,replaceFileCaption:`Asenda fail`,removeFileCaption:`Eemalda see fail`,booleanCheckedLabel:`Jah`,booleanUncheckedLabel:`Ei`,confirmRemoveFile:`Oled sa kindel, et soovid selle faili eemaldada: {0}?`,confirmRemoveAllFiles:`Oled sa kindel, et soovid eemaldada kõik failid?`,questionTitlePatternText:`Küsimuse pealkiri`,modalCancelButtonText:`Tühistama`,modalApplyButtonText:`Kohaldata`,filterStringPlaceholder:`Tippige otsimiseks...`,emptyMessage:`Kuvatavaid andmeid pole`,loadingPage:`Laadimise...`,loadingData:`Laadimise...`,noEntriesText:`Sissekandeid veel pole. 197Uue kirje lisamiseks klõpsake alloleval nupul.`,noEntriesReadonlyText:`Sissekandeid pole`,tabTitlePlaceholder:`Uus paneel`,more:`Rohkem`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Kõik valikud valitakse järjestamiseks`,selectToRankEmptyUnrankedAreaText:`Lohistage valikud siia, et neid järjestada`,ok:`OK`,cancel:`Tühistama`,createCustomItem:`Looge üksus "{0}"...`,toc:`Sisukord`,progressbar:`Edenemisriba`},nativeName:`eesti keel`,englishName:`Estonian`}),gj({localeCode:`fi`,strings:{pagePrevText:`Edellinen`,pageNextText:`Seuraava`,completeText:`Valmis`,previewText:`Esikatselu`,editText:`Muokkaa`,startSurveyText:`Aloita`,commentText:`Jätä kommentti`,otherItemText:`Muu (tarkenna)`,noneItemText:`Ei mitään`,refuseItemText:`Kieltäydy vastaamasta`,dontKnowItemText:`Ei tiedä`,selectAllItemText:`Valitse kaikki`,deselectAllItemText:`Poista kaikki valinnat`,progressText:`Sivu {0} / {1}`,indexText:`{0} / {1}`,panelDynamicProgressText:`Osio {0} / {1}`,panelDynamicTabTextFormat:`Paneeli {panelIndex}`,questionsProgressText:`Olet vastannut {0} / {1} kysymykseen.`,emptySurvey:`Tässä kyselyssä ei ole yhtään näkyvillä olevaa sivua tai kysymystä.`,completingSurvey:`Kiitos kyselyyn vastaamisesta!`,completingSurveyBefore:`Tietojemme mukaan olet jo suorittanut tämän kyselyn.`,loadingSurvey:`Kyselyä ladataan palvelimelta...`,placeholder:`Valitse...`,ratingOptionsCaption:`Arvioi napauttamalla tätä...`,buttongroupOptionsCaption:`Valitse...`,value:`arvo`,requiredError:`Vastaa kysymykseen, kiitos.`,requiredErrorInPanel:`Vastaa ainakin yhteen kysymykseen.`,requiredInAllRowsError:`Vastaa kysymyksiin kaikilla riveillä.`,eachRowUniqueError:`Jokaisella rivillä on oltava yksilöllinen arvo.`,numericError:`Arvon tulee olla numeerinen.`,minError:`Arvo ei saa olla pienempi kuin {0}`,stepError:`Syötä arvo, joka vastaa {0} askelkokoa.`,maxError:`Arvo ei saa olla suurempi kuin {0}`,invalidInputError:`Virheellinen syöte`,textNoDigitsAllow:`Numerot eivät ole sallittuja.`,incompletePatternError:`Täytäthän arvon vastaamaan vaadittua muotoa.`,textMinLength:`Syötä vähintään {0} merkkiä.`,textMaxLength:`Ãlä syötä yli {0} merkkiä.`,textMinMaxLength:`Syötä vähintään {0} ja enintään {1} merkkiä.`,minRowCountError:`Täytä vähintään {0} riviä.`,minSelectError:`Valitse vähintään {0} vaihtoehtoa.`,maxSelectError:`Valitse enintään {0} vaihtoehtoa.`,numericMinMax:`Luvun '{0}' tulee olla vähintään {1} ja korkeintaan {2}
197.`,numericMin:`Luvun '{0}' tulee olla vähintään {1}.`,numericMax:`Luvun '{0}' tulee olla korkeintaan {1}.`,invalidEmail:`Syötä validi sähköpostiosoite.`,invalidExpression:`Lausekkeen: {0} pitäisi palauttaa 'true'.`,urlRequestError:`Pyyntö palautti virheen {0}. {1}`,urlGetChoicesError:`Pyyntö palautti tyhjän tiedoston tai 'path'-asetus on väärä`,exceedMaxSize:`Tiedoston koko ei saa olla suurempi kuin {0}.`,fileSizeUnits:`Tavut, KB, MB, GB, TB`,exceedMaxFiles:`Tiedostojen enimmäismäärä, jonka voit ladata, on {0}.`,noUploadFilesHandler:`Tiedostoja ei voi ladata. Lisää käsittelijä onUploadFiles-tapahtumalle.`,otherRequiredError:`Tarkenna vastaustasi tekstikenttään.`,uploadingFile:`Tiedostoa lähetetään. Odota muutama sekunti ja yritä uudelleen.`,loadingFile:`Ladataan...`,chooseFile:`Valitse tiedosto(t)...`,noFileChosen:`Ei tiedostoa valittuna`,filePlaceholder:`Pudota tiedosto tähän tai lataa tiedosto napsauttamalla alla olevaa painiketta.`,confirmDelete:`Haluatko poistaa osion?`,keyDuplicationError:`Tämä arvo on jo käytössä. Syötä toinen arvo.`,addColumn:`Lisää sarake`,addRow:`Lisää rivi`,removeRow:`Poista`,noRowsText:`Ei rivejä`,rowIndexTemplateTitle:`Rivi {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Lisää uusi`,removePanel:`Poista`,showDetails:`Näytä tiedot`,hideDetails:`Piilota tiedot`,choices_Item:`kohde`,choices_Choice:`Valintavaihtoehto`,matrix_column:`Sarake`,matrix_row:`Rivi`,multipletext_itemname:`teksti`,savingData:`Tietoja tallennetaan palvelimelle...`,savingDataError:`Tapahtui virhe, emmekä voineet tallentaa kyselyn tietoja.`,savingDataSuccess:`Tiedot tallennettiin onnistuneesti!`,saveAgainButton:`Yritä uudelleen`,timerMin:`min`,timerSec:`sek`,timerSpentAll:`Olet käyttänyt {0} tällä sivulla ja yhteensä {1}.`,timerSpentPage:`Olet käyttänyt {0} tällä sivulla.`,timerSpentSurvey:`Olet käyttänyt yhteensä {0}.`,timerLimitAll:`Olet käyttänyt tällä sivulla {0} / {1} ja yhteensä {2} / {3}.`,timerLimitPage:`Olet käyttänyt {0} / {1} tällä sivulla.`,timerLimitSurvey:`Olet käyttänyt yhteensä {0} / {1}.`,clearCaption:`Tyhjennä`,selectCaption:`Valikoida`,signaturePlaceHolder:`Allekirjoita tähän`,signaturePlaceHolderReadOnly:`Ei allekirjoitusta`,chooseFileCaption:`Valitse tiedosto`,takePhotoCaption:`Ota valokuva`,photoPlaceholder:`Napsauta alla olevaa painiketta ottaaksesi valokuvan kameralla.`,fileOrPhotoPlaceholder:`Vedä ja pudota tai valitse ladattava tiedosto tai ota valokuva kameralla.`,replaceFileCaption:`Korvaa tiedosto`,removeFileCaption:`Poista tämä tiedosto`,booleanCheckedLabel:`Kyllä`,booleanUncheckedLabel:`Ei`,confirmRemoveFile:`Haluatko varmasti poistaa tämän tiedoston: {0}?`,confirmRemoveAllFiles:`Haluatko varmasti poistaa kaikki tiedostot?`,questionTitlePatternText:`Kysymyksen otsikko`,modalCancelButtonText:`Peruuta`,modalApplyButtonText:`Käytä`,filterStringPlaceholder:`Hae kirjoittamalla...`,emptyMessage:`Ei näytettäviä tietoja`,loadingPage:`Latautuu...`,loadingData:`Latautuu...`,noEntriesText:`Merkintöjä ei ole vielä. 198Lisää uusi merkintä napsauttamalla alla olevaa painiketta.`,noEntriesReadonlyText:`Ei merkintöjä`,tabTitlePlaceholder:`Uusi paneeli`,more:`Enemmän`,tagboxDoneButtonCaption:`Ok`,selectToRankEmptyRankedAreaText:`Kaikki valinnat valitaan paremmuusjärjestykseen`,selectToRankEmptyUnrankedAreaText:`Vedä valinnat tähän asettaaksesi ne paremmuusjärjestykseen`,ok:`Ok`,cancel:`Peru`,createCustomItem:`Luo "{0}"-kohde...`,toc:`Sisällysluettelo`,progressbar:`Edistymispalkki`},nativeName:`suomi`,englishName:`Finnish`}),gj({localeCode:`fr`,strings:{pagePrevText:`Précédent`,pageNextText:`Suivant`,completeText:`Terminer`,previewText:`Aperçu`,editText:`Modifier`,startSurveyText:`Commencer`,commentText:`S'il vous plaît laissez un commentaire`,otherItemText:`Autre (préciser)`,noneItemText:`Aucun`,refuseItemText:`Refuser de répondre`,dontKnowItemText:`Sais pas`,selectAllItemText:`Tout sélectionner`,deselectAllItemText:`Désélectionner tout`,progressText:`Page {0} sur {1}`,indexText:`{0} sur {1}`,panelDynamicProgressText:`Enregistrement {0} sur {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`{0}/{1} question(s) répondue(s)`,emptySurvey:`Il n'y a ni page visible ni question visible dans ce questionnaire`,completingSurvey:`Merci d'avoir répondu au questionnaire !`,completingSurveyBefore:`Nos données indiquent que vous avez déjà rempli ce questionnaire.`,loadingSurvey:`Le questionnaire est en cours de chargement...`,placeholder:`Choisissez...`,ratingOptionsCaption:`Appuyez ici pour noter...`,buttongroupOptionsCaption:`Choisir...`,value:`valeur`,requiredError:`La réponse à cette question est obligatoire.`,requiredErrorInPanel:`Merci de répondre au moins à une question.`,requiredInAllRowsError:`Toutes les lignes sont obligatoires`,eachRowUniqueError:`Chaque ligne doit avoir une valeur unique.`,numericError:`La réponse doit être un nombre.`,minError:`La valeur ne doit pas être inférieure à {0}`,stepError:`Entrez une valeur qui correspond à la taille du pas de {0}.`,maxError:`La valeur ne doit pas être supérieure à {0}`,invalidInputError:`Entrée invalide`,textNoDigitsAllow:`Les numéros ne sont pas autorisés.`,incompletePatternError:`Veuillez compléter la valeur pour correspondre au format requis.`,textMinLength:`Merci de saisir au moins {0} caractères.`,textMaxLength:`Merci de saisir moins de {0} caractères.`,textMinMaxLength:`Merci de saisir entre {0} et {1} caractères.`,minRowCountError:`Merci de compléter au moins {0}
198 lignes.`,minSelectError:`Merci de sélectionner au minimum {0} réponses.`,maxSelectError:`Merci de sélectionner au maximum {0} réponses.`,numericMinMax:`Votre réponse '{0}' doit être supérieure ou égale à {1} et inférieure ou égale à {2}`,numericMin:`Votre réponse '{0}' doit être supérieure ou égale à {1}`,numericMax:`Votre réponse '{0}' doit être inférieure ou égale à {1}`,invalidEmail:`Merci d'entrer une adresse mail valide.`,invalidExpression:`L'expression: {0} doit retourner 'true'.`,urlRequestError:`La requête a renvoyé une erreur '{0}'. {1}`,urlGetChoicesError:`La requête a renvoyé des données vides ou la propriété 'path' est incorrecte`,exceedMaxSize:`La taille du fichier ne doit pas excéder {0}.`,fileSizeUnits:`Octets, KB, MB, GB, TB`,exceedMaxFiles:`Le nombre maximal de fichiers que vous pouvez télécharger est {0}.`,noUploadFilesHandler:`Les fichiers ne peuvent pas être téléchargés. Veuillez ajouter un gestionnaire pour l'événement 'onUploadFiles'.`,otherRequiredError:`Merci de préciser le champ 'Autre'.`,uploadingFile:`Votre fichier est en cours de chargement. Merci d'attendre quelques secondes et de réessayer.`,loadingFile:`Chargement...`,chooseFile:`Ajouter des fichiers...`,noFileChosen:`Aucun fichier ajouté`,filePlaceholder:`Déposez un fichier ici ou cliquez sur le bouton ci-dessous pour charger le fichier.`,confirmDelete:`Voulez-vous supprimer cet enregistrement ?`,keyDuplicationError:`Cette valeur doit être unique.`,addColumn:`Ajouter une colonne`,addRow:`Ajouter une ligne`,removeRow:`Supprimer`,noRowsText:`Il n'y a pas de lignes.`,rowIndexTemplateTitle:`Ligne {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Ajouter`,removePanel:`Supprimer`,showDetails:`Afficher les détails`,hideDetails:`Masquer les détails`,choices_Item:`Item`,choices_Choice:`Option au choix`,matrix_column:`Colonne`,matrix_row:`Ligne`,multipletext_itemname:`texte`,savingData:`Les résultats sont en cours de sauvegarde sur le serveur...`,savingDataError:`Une erreur est survenue et a empêché la sauvegarde des résultats.`,savingDataSuccess:`Les résultats ont bien été enregistrés !`,saveAgainButton:`Réessayer`,timerMin:`min`,timerSec:`SEC`,timerSpentAll:`Vous avez passé {0} sur cette page et {1} au total.`,timerSpentPage:`Vous avez passé {0} sur cette page.`,timerSpentSurvey:`Vous avez passé {0} au total.`,timerLimitAll:`Vous avez passé {0} sur {1} sur cette page et {2} sur {3} au total.`,timerLimitPage:`Vous avez passé {0} sur {1} sur cette page.`,timerLimitSurvey:`Vous avez passé {0} sur {1} au total.`,clearCaption:`Vider`,selectCaption:`Choisir`,signaturePlaceHolder:`Signez ici`,signaturePlaceHolderReadOnly:`Pas de signature`,chooseFileCaption:`Ajouter un fichier`,takePhotoCaption:`Prendre une photo`,photoPlaceholder:`Cliquez sur le bouton ci-dessous pour prendre une photo à l'aide de l'appareil photo.`,fileOrPhotoPlaceholder:`Faites glisser et déposez ou sélectionnez un fichier à télécharger ou à prendre une photo à lâaide de lâappareil photo.`,replaceFileCaption:`Remplacer le fichier`,removeFileCaption:`Enlever ce fichier`,booleanCheckedLabel:`Oui`,booleanUncheckedLabel:`Non`,confirmRemoveFile:`Ãtes-vous certains de vouloir supprimer ce fichier : {0}?`,confirmRemoveAllFiles:`Ãtes-vous certains de vouloir supprimer tous les fichiers?`,questionTitlePatternText:`Titre de la question`,modalCancelButtonText:`Annuler`,modalApplyButtonText:`Appliquer`,filterStringPlaceholder:`Tapez pour rechercher...`,emptyMessage:`Aucune donnée à afficher`,loadingPage:`Chargement...`,loadingData:`Chargement...`,noEntriesText:`Il n'y a pas encore d'entrées. 199Cliquez sur le bouton ci-dessous pour ajouter une nouvelle entrée.`,noEntriesReadonlyText:`Aucune entrée`,tabTitlePlaceholder:`Nouveau panneau`,more:`Plus`,tagboxDoneButtonCaption:`DâACCORD`,selectToRankEmptyRankedAreaText:`Tous les choix sont sélectionnés pour le classement`,selectToRankEmptyUnrankedAreaText:`Faites glisser les choix ici pour les classer`,ok:`DâACCORD`,cancel:`Annuler`,createCustomItem:`Créez un élément "{0}"...`,toc:`Table des matières`,progressbar:`Barre de progression`},nativeName:`français`,englishName:`French`}),gj({localeCode:`ka`,strings:{pagePrevText:`á£ááá`,pageNextText:`á¨ááááá`,completeText:`ááá¡á á£áááá`,previewText:`ááááá®áááá`,editText:`á áááá¥á¢áá ááá`,startSurveyText:`ááá¥áá¥áá`,commentText:`ááá®ááá ááá¢áááá áááááá¢áá á`,otherItemText:`á¡á®áá (ááá®ááá ááá£ááááá)`,noneItemText:`áá áªáá áá`,refuseItemText:`á£áá á ááá¡á£á®áá`,dontKnowItemText:`áá áááªá`,selectAllItemText:`á§ááááá¡ ááááá¨áá`,deselectAllItemText:`á§ááááá¡ áá á©ááá`,progressText:`áááá áá {0} / {1}`,indexText:`{1} {0}`,panelDynamicProgressText:`{1} {0}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`á£ááá¡á£á®áá {0}/{1} áááá®áááá¡`,emptySurvey:`áá áªáá áá áááá®áá áá áá áá¡.`,completingSurvey:`áááááááá áááá®ááá áá¡ á¨ááá¡áááá¡áááá¡!`,completingSurveyBefore:`áá¥ááá á£ááá áááá¡á á£ááá áá¡ áááááááá®áá.`,loadingSurvey:`á©áá¢ááá ááá á¡áá ááá áááá...`,placeholder:`áá á©ááá...`,ratingOptionsCaption:`ááá á©ááá...`,buttongroupOptionsCaption:`ááá á©ááá...`,value:`á¦áá ááá£áááá`,requiredError:`ááá®ááá á£ááá¡á£á®áá áááá®ááá¡.`,requiredErrorInPanel:`á¡áááá áá ááá¡á£á®á: á£ááá¡á£á®áá áááááá£á áá á áááá®ááá¡.`,requiredInAllRowsError:`á¡áááá áá ááá¡á£á®á: á£ááá¡á£á®áá áááá®áááá¡ á§áááá á ááá¨á.`,eachRowUniqueError:`áááááá£á á ááá¡ á£ááá á°á¥ááááá¡ á£áááááá£á á áááá¨ááááááá.`,numericError:`ááá¡á£á®á á£ááá áá§áá¡ á ááªá®áá.`,minError:`á¦áá ááá£áááá áá á£ááá áá§áá¡ ááááááá {0}`,stepError:`ááá®ááá, á¨ááá§ááááá áááá¨ááááááá, á ááááá᪠á¨ááá¡ááááááá ááááá¯áá¡ ááááá¡ {0}.`,maxError:`á¦áá ááá£áááá áá á£ááá áá§áá¡ {0}`,invalidInputError:`áá áá¡á¬áá á á¨áá§áááá`,textNoDigitsAllow:`áááá ááá áá áá áá¡ ááá¨áááá£áá.`,incompletePatternError:`ááá®ááá, á¨áááá¡áá áááá¨ááááááá á¡áááá á á¤áá ááá¢áá¡ á¨áá¡áá¢á§ááá¡áá.`,textMinLength:`ááá®ááá á¨ááá§ááááá áá ááááááá {0} á¡áááááá.`,textMaxLength:`ááá®ááá, á¨ááá§ááááá áá áá£ááá¢áá¡ {0} á¡áááááá(áá)á.`,textMinMaxLength:`ááá®ááá, á¨ááá§ááááá áááááá£á {0} áá áá áá£ááá¢áá¡ {1} á¡áááááá.`,minRowCountError:`ááá®ááá á¨áááá¡áá áááááá£á {0} á ááá( áá)á.`,minSelectError:`ááá®ááá ááá á©ááá áá ááááááá {0} ááá áááá¢á.`,maxSelectError:`ááá®ááá ááá á©ááá áá áá£ááá¢áá¡ {0} ááá áááá¢á.`,numericMinMax:`'{0}' á£ááá áá§áá¡ ááá¢á áá á¢ááá, áááá á {1}, áá ááááááá áá á¢ááá áááá á {2}`,numericMin:`'{0}' á£ááá áá§áá¡ ááá¢á áá á¢ááá áááá á {1}`,numericMax:`'{0}' á£ááá áá§áá¡ ááááááá áá á¢ááá áááá á {1}`,invalidEmail:`ááá®ááá á¨ááá§ááááá áá. á¤áá¡á¢áá¡ á áááá£á á ááá¡áááá áá.`,invali
199dExpression:`áááááá¥áá: {0} á£ááá áááá á£áááá¡ "ááá¨ááá áá¢á".`,urlRequestError:`áááá®áááá ááá£áá á£ááá á¨ááªááááá¡ '{0}'. {1}`,urlGetChoicesError:`áááá®ááááá ááá£áá á£áá áªáá áááá áááááªááááá áá "ááááááá¡" á¥ááááá áá áá¡á¬áá áá`,exceedMaxSize:`á¤ááááá¡ áááá áá á£ááá áá¦áááá¢áááááá¡ {0}.`,fileSizeUnits:`áááá¢á, áá, áá, áá, á¢á£ááá áá£áááá`,exceedMaxFiles:`á¤ááááááá¡ ááá¥á¡ááááá£á á á áááááááá, á ááááá¡ áá¢ááá ááá᪠á¨áááá«áááá, áá áá¡ {0}.`,noUploadFilesHandler:`á¤ááááááá¡ áá¢ááá ááá á¨áá£á«ááááááá. ááá®ááá, áááááá¢áá ááááá£á¨ááááááá 'onUploadFiles' á¦áááá¡á«ááááá¡áááá¡.`,otherRequiredError:`á¡áááá áá ááá¡á£á®á: á¨ááá§ááááá á¡á®áá áááá¨ááááááá.`,uploadingFile:`áá¥áááá á¤áááá áá¢ááá áááá. ááá®ááá áááááááá á áááááááá á¬ááá¡ áá ááááá á¡áªáááá.`,loadingFile:`áá¢ááá áááá...`,chooseFile:`ááá á©ááá á¤áááá...`,noFileChosen:`á¤áááá áá áá áá¡ áá á©áá£áá`,filePlaceholder:`áááááá¢áááá áá á©áááááááá á¤áááá áᥠáá áááááá áá á¥ááááá áááªááá£á á¦ááááá¡, á áá ááá á©ááá á¤áááá áá¡áá¢ááá ááá.`,confirmDelete:`ááá á¬áá£áááá£áá á®áá á, á áá áá¡á£á á áá á©áááá¬áá áá¡ á¬áá¨áá?`,keyDuplicationError:`áá¡ áááá¨ááááááá á£ááá áá§áá¡ á£áááááá£á á.`,addColumn:`á¡ááá¢áá¡ ááááá¢ááá`,addRow:`á áááá¡ ááááá¢ááá`,removeRow:`á¬áá¨áá`,noRowsText:`á ááááá áá áá áá¡.`,rowIndexTemplateTitle:`Row {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`áá®ááá ááááá¢ááá`,removePanel:`á¬áá¨áá`,showDetails:`ááá¢áááááá¡ á©áááááá`,hideDetails:`ááá¢áááááá¡ ááááááá`,choices_Item:`ááááá`,choices_Choice:`áá á©áááááá¡ ááá áááá¢á`,matrix_column:`á¡ááá¢á`,matrix_row:`á ááá`,multipletext_itemname:`á¢áá¥á¡á¢á`,savingData:`á¨ááááááá áááá®ááá á¡áá ááá áá...`,savingDataError:`ááá¤áá¥á¡áá áá á¨ááªáááá áá á¨ááááá ááá á¨áááááá®ááááá.`,savingDataSuccess:`á¨ááááááá á¬áá ááá¢áááá áááááá á©áááá¡!`,saveAgainButton:`ááááá á¡áªááá`,timerMin:`á¬á`,timerSec:`á¬á`,timerSpentAll:`áá¥ááá ááá®áá á¯áá {0} áá áááá ááá áá á¯ááá¨á {1}.`,timerSpentPage:`áá¥ááá {0} ááá®áá á¯áá áá áááá ááá.`,timerSpentSurvey:`áá¥ááá á¡á£á {0} ááá®áá á¯áá.`,timerLimitAll:`áá¥ááá ááá®áá á¯áá {1} {0} áá áááá ááá áá á¯ááá¨á {3} {2}.`,timerLimitPage:`áá¥ááá áá áááá ááá {1} {0} ááá®áá á¯áá.`,timerLimitSurvey:`áá¥ááá á¡á£á {1} {0} ááá®áá á¯áá.`,clearCaption:`ááá¬ááááááá áªá`,selectCaption:`ááá á©áá`,signaturePlaceHolder:`á¨áá¡ááá áá¥`,signaturePlaceHolderReadOnly:`á®ááááá¬áá á áá áá áá¡`,chooseFileCaption:`ááá á©ááá á¤áááá`,takePhotoCaption:`áááááá¦áá á¤áá¢á`,photoPlaceholder:`áááááá áá á¥ááááá áááªááá£á á¦ááááá¡, á áá áááááá¦áá á¤áá¢á ááááá áá¡ ááááá§áááááá.`,fileOrPhotoPlaceholder:`áááááá¢áááá áá á©áááááááá áá á¨ááá á©ááá á¤áááá ááááá áá¡ ááááá§áááááá á¤áá¢áá¡ áá¡áá¢ááá ááá áá ááááá¡áá¦áááá.`,replaceFileCaption:`á¤ááááá¡ á¨ááªááá`,removeFileCaption:`áá á¤ááááá¡ á¬áá¨áá`,booleanCheckedLabel:`áááá®`,booleanUncheckedLabel:`áá á`,confirmRemoveFile:`ááá á¬áá£áááá£áá á®áá á, á áá áá¡á£á á áá á¤ááááá¡ á¬áá¨áá: {0}?`,confirmRemoveAllFiles:`ááá á¬áá£áááá£áá á®áá á, á áá áá¡á£á á á§áááá á¤ááááá¡ á¬áá¨áá?`,questionTitlePatternText:`áááá®ááá¡ á¡áááá£á á`,modalCancelButtonText:`ááá£á¥áááá`,modalApplyButtonText:`ááá¦ááá`,filterStringPlaceholder:`á©áá¬áá áá á«áááá...`,emptyMessage:`áááááªááááá áá áá áá¡ á¡áá©áááááááá`,loadingPage:`áá¢ááá áááá...`,loadingData:`áá¢ááá áááá...`,noEntriesText:`á¯áá áá áá áá¡ á©áááá¬áá ááá. 200áááááá áá á¥ááááá áááªááá£á á¦ááááá¡, á áá áááááá¢áá áá®ááá á©áááá¬áá á.`,noEntriesReadonlyText:`á©áááá¬áá ááá áá áá áá¡`,tabTitlePlaceholder:`áá®ááá áááááá`,more:`á¡á á£ááá`,tagboxDoneButtonCaption:`ááá áá`,selectToRankEmptyRankedAreaText:`á§áááá áá á©ááááá á¨ááá á©ááá á ááá¢ááááá¡áááá¡`,selectToRankEmptyUnrankedAreaText:`áááááá¢áááá áá á©ááááá áá¥, á áá áááá¡áá®áááá áá¡ááá`,ok:`ááá áá`,cancel:`ááá£á¥áááá`,createCustomItem:`á¨áá¥ááááá "{0}" ááááááá¢á...`,toc:`á¡áá á©ááá`,progressbar:`áá ááá áá¡áá¡ ááá á`},nativeName:`á¥áá áá£áá`,englishName:`Georgian`}),gj({localeCode:`de`,strings:{pagePrevText:`Zurück`,pageNextText:`Weiter`,completeText:`AbschlieÃen`,previewText:`Vorschau`,editText:`Bearbeiten`,startSurveyText:`Start`,commentText:`Bitte hinterlassen Sie einen Kommentar`,otherItemText:`Sonstiges (Bitte angeben)`,noneItemText:`Nichts trifft zu`,refuseItemText:`Antwort verweigern`,dontKnowItemText:`Weià ich nicht`,selectAllItemText:`Alles auswählen`,deselectAllItemText:`Alle abwählen`,progressText:`Seite {0} von {1}`,indexText:`{0} von {1}`,panelDynamicProgressText:`Eintrag {0} von {1}`,panelDynamicTabTextFormat:`Bereich {panelIndex}`,questionsProgressText:`{0}/{1} Fragen beantwortet`,emptySurvey:`Es sind keine Fragen vorhanden.`,completingSurvey:`Vielen Dank, dass Sie die Umfrage abgeschlossen haben!`,completingSurveyBefore:`Sie haben diese Umfrage bereits abgeschlossen.`,loadingSurvey:`Umfrage wird geladen...`,placeholder:`Bitte auswählen...`,ratingOptionsCaption:`Tippen Sie hier, um zu bewerten...`,buttongroupOptionsCaption:`Auswählen...`,value:`Wert`,requiredError:`Bitte beantworten Sie diese Frage.`,requiredErrorInPanel:`Bitte beantworten Sie mindestens eine Frage.`,requiredInAllRowsError:`Bitte beantworten Sie alle Fragen.`,eachRowUniqueError:`Jede Zeile muss einen eindeutigen Wert haben.`,numericError:`Der Wert muss eine Zahl sein.`,minError:`Der Wert sollte nicht kleiner als {0} sein`,stepError:`Geben Sie einen Wert ein, der der Schrittweite von {0} entspricht.`,maxError:`Der Wert sollte nicht gröÃer als {0} sein`,invalidInputError:`Ungültige Eingabe`,textNoDigitsAllow:`Zahlen sind nicht erlaubt.`,incompletePatternError:`Bitte füllen Sie den Wert aus, um dem erforderlichen Format zu entsprechen.`,textMinLength:`Bitte geben Sie mindestens {0} Zeichen ein.`,textMaxLength:`Bitte geben Sie nicht mehr als {0} Zeichen ein.`,textMinMaxLength:`Bitte geben Sie mindestens {0} und maximal {1} Zeichen ein.`,minRowCountError:`Bitte machen Sie in mindestens {0} Zeilen eine Eingabe.`,minSelectError:`Bitte wählen Sie mindestens {0} Antwort(en) aus.`,maxSelectError:`Bitte wählen Sie nicht mehr als {0} Antwort(en) aus.`,numericMinMax:`'{0}' muss gröÃer oder gleich {1} und kleiner oder gleich {2} sein`,numericMin:`'{0}' muss gröÃer oder gleich {1} sein`,numericMax:`'{0}' muss kleiner oder gleich {1} sein`,invalidEmail:`Bitte geben Sie eine gültige E-Mail-Adresse ein.`,invali
200dExpression:`Der Ausdruck: {0} muss den Wert 'wahr' zurückgeben.`,urlRequestError:`Ein Netzwerkdienst hat folgenden Fehler zurückgegeben '{0}'. {1}`,urlGetChoicesError:`Eine Netzwerkdienst hat ungültige Daten zurückgegeben`,exceedMaxSize:`Die Datei darf nicht gröÃer als {0} sein.`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`Die maximale Anzahl an Dateien, die du hochladen kannst, ist {0}.`,noUploadFilesHandler:`Dateien können nicht hochgeladen werden. Fügen Sie einen Handler für das Ereignis 'onUploadFiles' hinzu.`,otherRequiredError:`Bitte geben Sie einen Wert an.`,uploadingFile:`Bitte warten Sie bis der Upload Ihrer Dateien abgeschlossen ist.`,loadingFile:`Wird hochgeladen...`,chooseFile:`Datei(en) auswählen...`,noFileChosen:`Keine Datei ausgewählt`,filePlaceholder:`Legen Sie hier eine Datei ab oder klicken Sie auf die Schaltfläche unten, um die Datei zu laden.`,confirmDelete:`Wollen Sie den Eintrag löschen?`,keyDuplicationError:`Dieser Wert muss einmalig sein.`,addColumn:`Spalte hinzufügen`,addRow:`Zeile hinzufügen`,removeRow:`Entfernen`,noRowsText:`Es gibt keine Reihen.`,rowIndexTemplateTitle:`Zeile {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Neu hinzufügen`,removePanel:`Entfernen`,showDetails:`Details anzeigen`,hideDetails:`Details ausblenden`,choices_Item:`Element`,choices_Choice:`Wahlmöglichkeit`,matrix_column:`Spalte`,matrix_row:`Zeile`,multipletext_itemname:`Text`,savingData:`Die Ergebnisse werden auf dem Server gespeichert...`,savingDataError:`Es ist ein Fehler aufgetreten. Die Ergebnisse konnten nicht gespeichert werden.`,savingDataSuccess:`Die Ergebnisse wurden gespeichert!`,saveAgainButton:`Erneut absenden`,timerMin:`Min.`,timerSec:`Sek.`,timerSpentAll:`Sie waren {0} auf dieser Seite und brauchten insgesamt {1}.`,timerSpentPage:`Sie waren {0} auf dieser Seite.`,timerSpentSurvey:`Sie haben insgesamt {0} gebraucht.`,timerLimitAll:`Sie waren {0} von {1} auf dieser Seite und brauchten insgesamt {2} von {3}.`,timerLimitPage:`Sie waren {0} von {1} auf dieser Seite.`,timerLimitSurvey:`Sie haben insgesamt {0} von {1} gebraucht.`,clearCaption:`Auswahl entfernen`,selectCaption:`Auswählen`,signaturePlaceHolder:`Hier unterschreiben`,signaturePlaceHolderReadOnly:`Keine Unterschrift`,chooseFileCaption:`Datei auswählen`,takePhotoCaption:`Foto machen`,photoPlaceholder:`Klicken Sie auf die Schaltfläche unten, um ein Foto mit der Kamera aufzunehmen.`,fileOrPhotoPlaceholder:`Ziehen Sie eine Datei per Drag & Drop oder wählen Sie sie aus, um sie hochzuladen oder machen Sie ein Foto mit der Kamera.`,replaceFileCaption:`Datei ersetzen`,removeFileCaption:`Datei löschen`,booleanCheckedLabel:`Ja`,booleanUncheckedLabel:`Nein`,confirmRemoveFile:`Sind Sie sicher, dass Sie diese Datei löschen möchten: {0}?`,confirmRemoveAllFiles:`Sind Sie sicher, dass Sie alle Dateien löschen möchten?`,questionTitlePatternText:`Fragentitel`,modalCancelButtonText:`Abbrechen`,modalApplyButtonText:`Anwenden`,filterStringPlaceholder:`Tippen Sie, um zu suchen...`,emptyMessage:`Es gibt noch keine Daten.`,loadingPage:`Wird hochgeladen...`,loadingData:`Wird hochgeladen...`,noEntriesText:`Es gibt noch keine Einträge. 201Klicken Sie auf die Schaltfläche unten, um einen neuen Eintrag hinzuzufügen.`,noEntriesReadonlyText:`Es gibt keine Einträge.`,tabTitlePlaceholder:`Neues Panel`,more:`Mehr`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Alle Auswahlmöglichkeiten sind in einer Rangfolge angeordnet`,selectToRankEmptyUnrankedAreaText:`Ziehen Sie die Auswahl hierher, um sie zu ordnen`,ok:`OK`,cancel:`Abbrechen`,createCustomItem:`"{0}"-Element erstellen...`,toc:`Inhaltsverzeichnis`,progressbar:`Fortschrittsbalken`},nativeName:`deutsch`,englishName:`German`}),gj({localeCode:`el`,strings:{pagePrevText:`Î ÏοηγοÏμενο`,pageNextText:`ÎÏÏμενο`,completeText:`ÎλοκλήÏÏÏη`,previewText:`Î ÏοεÏιÏκÏÏηÏη`,editText:`ÎÏεξεÏγαÏία`,startSurveyText:`ÎÏÏή`,commentText:`ΠαÏÎ±ÎºÎ±Î»Ï Î±ÏήÏÏε Îνα ÏÏÏλιο`,otherItemText:`Îλλο (ÏαÏÎ±ÎºÎ±Î»Ï Î´Î¹ÎµÏ ÎºÏινίÏÏε)`,noneItemText:`ÎανÎναÏ`,refuseItemText:`ÎÏνηθείÏε να αÏανÏήÏεÏε`,dontKnowItemText:`Îεν ξÎÏÏ`,selectAllItemText:`ÎÏιλογή ÏλÏν`,deselectAllItemText:`ÎÏοεÏιλογή ÏλÏν`,progressText:`Σελίδα {0} αÏÏ {1}`,indexText:`{0} αÏÏ {1}`,panelDynamicProgressText:`ÎγγÏαÏή {0} αÏÏ {1}`,panelDynamicTabTextFormat:`Î Î¯Î½Î±ÎºÎ±Ï {panelIndex}`,questionsProgressText:`ÎÏανÏήθηκαν {0} / {1} εÏÏÏήÏειÏ`,emptySurvey:`Îεν Ï ÏάÏÏει καμία οÏαÏή Ïελίδα ή οÏαÏή εÏÏÏηÏη Ïε Î±Ï ÏÏ Ïο εÏÏÏημαÏολÏγιο.`,completingSurvey:`ÎÏ ÏαÏιÏÏοÏμε για Ïην ÏÏ Î¼ÏλήÏÏÏη Î±Ï ÏÎ¿Ï ÏÎ¿Ï ÎµÏÏÏημαÏÎ¿Î»Î¿Î³Î¯Î¿Ï !`,completingSurveyBefore:`Τα αÏÏεία Î¼Î±Ï Î´ÎµÎ¯ÏÎ½Î¿Ï Î½ ÏÏι ÎÏεÏε ήδη ολοκληÏÏÏει Î±Ï Ïήν Ïην ÎÏÎµÏ Î½Î±.`,loadingSurvey:`Το εÏÏÏημαÏολÏγιο ÏοÏÏÏνεÏαι αÏο Ïο διακομιÏÏή...`,placeholder:`ÎÏιλÎξÏε...`,ratingOptionsCaption:`ΠαÏήÏÏε για να βαθμολογήÏεÏε εδÏ...`,buttongroupOptionsCaption:`ÎιαλÎγÏ...`,value:`Ïιμή`,requiredError:`ΠαÏÎ±ÎºÎ±Î»Ï Î±ÏανÏήÏÏε ÏÏην εÏÏÏηÏη.`,requiredErrorInPanel:`ÎÏανÏήÏÏε Ïε ÏÎ¿Ï Î»Î¬ÏιÏÏον μία εÏÏÏηÏη.`,requiredInAllRowsError:`ΠαÏÎ±ÎºÎ±Î»Ï Î±ÏανÏήÏÏε ÏÎ¹Ï ÎµÏÏÏήÏÎµÎ¹Ï Ïε ÏÎ»ÎµÏ ÏÎ¹Ï Î³ÏαμμÎÏ.`,eachRowUniqueError:`Îάθε γÏαμμή ÏÏÎÏει να ÎÏει μια μοναδική Ïιμή.`,numericError:`Î Ïιμή ÏÏÎÏει να είναι αÏιθμηÏική.`,minError:`Î Ïιμή δεν ÏÏÎÏει να είναι μικÏÏÏεÏη αÏÏ {0}`,stepError:`ÎιÏαγάγεÏε μια Ïιμή ÏÎ¿Ï ÏαιÏιάζει με Ïο μÎÎ³ÎµÎ¸Î¿Ï ÏÎ¿Ï Î²Î®Î¼Î±ÏÎ¿Ï ÏÎ¿Ï {0}.`,maxError:`Î Ïιμή δεν ÏÏÎÏει να είναι μεγαλÏÏεÏη αÏÏ {0}`,invalidInputError:`Îη ÎÎ³ÎºÏ Ïη ειÏαγÏγή`,textNoDigitsAllow:`Îι αÏιθμοί δεν εÏιÏÏÎÏονÏαι.`,incompletePatternError:`Î£Ï Î¼ÏληÏÏÏÏε Ïην Ïιμή για να ÏαιÏιάζει με Ïην αÏαιÏοÏμενη μοÏÏή.`,textMinLength:`ΠαÏÎ±ÎºÎ±Î»Ï ÏÏ Î¼ÏληÏÏÏÏε ÏÎ¿Ï Î»Î¬ÏιÏÏον {0} ÏαÏακÏήÏεÏ.`,textMaxLength:`ÎιÏαγάγεÏε λιγÏÏεÏÎ¿Ï Ï Î±ÏÏ {0} ÏαÏακÏήÏεÏ.`,textMinMaxLength:`ÎιÏαγάγεÏε ÏεÏιÏÏÏÏεÏÎ¿Ï Ï Î±ÏÏ {0} και λιγÏÏεÏÎ¿Ï Ï Î±ÏÏ {1} ÏαÏακÏήÏεÏ.`,minRowCountError:`ΠαÏÎ±ÎºÎ±Î»Ï ÏÏ Î¼ÏληÏÏÏÏε ÏÎ¿Ï Î»Î¬ÏιÏÏον {0} γÏαμμÎÏ.`,minSelectError:`ΠαÏÎ±ÎºÎ±Î»Ï ÎµÏιλÎξÏε ÏÎ¿Ï Î»Î¬ÏιÏÏον {0} ÏαÏαλλαγÎÏ.`,maxSelectError:`ΠαÏÎ±ÎºÎ±Î»Ï ÎµÏιλÎξÏε ÏÏι ÏαÏαÏÎ¬Î½Ï Î±Ïο {0} ÏαÏαλλαγÎÏ.`,numericMinMax:`Το '{0}' θα ÏÏÎÏει να είναι ίÏο ή μεγαλÏÏεÏο αÏο Ïο {1} και ίÏο ή μικÏÏÏεÏο αÏο Ïο {2}`,numericMin:`Το '{0}' ÏÏÎÏει να είναι μεγαλÏÏεÏο ή ιÏο με Ïο {1}`,numericMax:`Το '{0}' ÏÏÎÏει να είναι μικÏÏÏεÏο ή ίÏο αÏο Ïο {1}`,invalidEmail:`ΠαÏÎ±ÎºÎ±Î»Ï Î´ÏÏÏε μια αÏοδεκÏή διεÏÎ¸Ï Î½Ïη e-mail.`,invali
201dExpression:`Î ÎκÏÏαÏη: {0} θα ÏÏÎÏει να εÏιÏÏÏÎÏει 'true'.`,urlRequestError:`ΠαίÏηÏη εÏÎÏÏÏεÏε ÏÏάλμα '{0}'. {1}`,urlGetChoicesError:`ΠαίÏηÏη εÏÎÏÏÏεÏε κενά δεδομÎνα ή η ιδιÏÏηÏα 'μονοÏάÏι/path' είναι εÏÏαλμÎνη`,exceedMaxSize:`Το μÎÎ³ÎµÎ¸Î¿Ï ÏοÏ
αÏÏείοÏ
δεν μÏοÏεί να Ï
ÏεÏβαίνει Ïα {0}.`,fileSizeUnits:`Byte, KB, MB, GB, TB`,exceedMaxFiles:`ΠμÎγιÏÏÎ¿Ï Î±ÏιθμÏÏ Î±ÏÏείÏν ÏοÏ
μÏοÏείÏε να ανεβάÏεÏε είναι {0}.`,noUploadFilesHandler:`Îεν είναι δÏ
ναÏή η αÏοÏÏολή αÏÏείÏν. Î ÏοÏθÎÏÏε Îνα ÏÏÏγÏαμμα ÏειÏιÏÎ¼Î¿Ï Î³Î¹Î± Ïο ÏÏ
μβάν 'onUploadFiles'.`,otherRequiredError:`ΠαÏÎ±ÎºÎ±Î»Ï ÏÏ
μÏληÏÏÏÏε Ïην Ïιμή για Ïο Ïεδίο 'άλλο'.`,uploadingFile:`Το αÏÏείο ÏÎ±Ï Î±Î½ÎµÎ²Î±Î¯Î½ÎµÎ¹. ΠαÏÎ±ÎºÎ±Î»Ï ÏεÏιμÎνεÏε μεÏικά δεÏ
ÏεÏÏλεÏÏα και δοκιμάÏÏε ξανά.`,loadingFile:`ΦÏÏÏÏÏη...`,chooseFile:`ÎÏιλογή αÏÏείÏν ...`,noFileChosen:`Îεν ÎÏει εÏιλεγεί αÏÏείο`,filePlaceholder:`ÎÏοθÎÏÏε Ïο αÏÏείο ÏÎ±Ï ÎµÎ´Ï Î® κάνÏε κλικ ÏÏο κοÏ
μÏί ÏαÏακάÏÏ Î³Î¹Î± να ÏοÏÏÏÏεÏε Ïο αÏÏείο.`,confirmDelete:`ÎÎλεÏε να διαγÏάÏεÏε Ïην εγγÏαÏή;`,keyDuplicationError:`ÎÏ
Ïή η Ïιμή ÏÏÎÏει να είναι μοναδική.`,addColumn:`Î ÏοÏθήκη ÏÏήληÏ`,addRow:`Î ÏοÏθήκη γÏαμμήÏ`,removeRow:`ÎÏαίÏεÏη`,noRowsText:`Îεν Ï
ÏάÏÏοÏ
ν εγγÏαÏÎÏ.`,rowIndexTemplateTitle:`ÎÏαμμή {rowIndex}`,rowNameTemplateTitle:`{ÏειÏάΤίÏλοÏ}`,addPanel:`Î ÏοÏθÎÏÏε νÎο`,removePanel:`ÎÏαίÏεÏη`,showDetails:`ÎμÏάνιÏη λεÏÏομεÏειÏν`,hideDetails:`ÎÏÏκÏÏ
Ïη λεÏÏομεÏειÏν`,choices_Item:`είδοÏ`,choices_Choice:`ÎÏιλογή εÏιλογήÏ`,matrix_column:`ΣÏήλη`,matrix_row:`ÎÏαμμή`,multipletext_itemname:`κείμενο`,savingData:`Τα αÏοÏελÎÏμαÏα αÏοθηκεÏονÏαι ÏÏον διακομιÏÏή ...`,savingDataError:`ΠαÏοÏ
ÏιάÏÏηκε ÏÏάλμα και δεν ήÏαν δÏ
ναÏή η αÏοθήκεÏ
Ïη ÏÏν αÏοÏελεÏμάÏÏν.`,savingDataSuccess:`Τα αÏοÏελÎÏμαÏα αÏοθηκεÏÏηκαν με εÏιÏÏ
Ïία!`,saveAgainButton:`Î ÏοÏÏάθηÏε ξανά`,timerMin:`ελάÏ`,timerSec:`δεÏ
Ï`,timerSpentAll:`ÎÏεÏε δαÏανήÏει {0} Ïε αÏ
Ïήν Ïη Ïελίδα και {1} ÏÏ
νολικά.`,timerSpentPage:`ÎÏεÏε ξοδÎÏει {0} Ïε αÏ
Ïήν Ïη Ïελίδα.`,timerSpentSurvey:`ÎÏεÏε ξοδÎÏει ÏÏ
νολικά {0}.`,timerLimitAll:`ÎÏεÏε δαÏανήÏει {0} αÏÏ {1} Ïε αÏ
Ïήν Ïη Ïελίδα και {2} αÏÏ {3} ÏÏ
νολικά.`,timerLimitPage:`ÎÏεÏε ξοδÎÏει {0} αÏÏ {1} Ïε αÏ
Ïήν Ïη Ïελίδα.`,timerLimitSurvey:`ÎÏεÏε ξοδÎÏει {0} αÏÏ {1} ÏÏ
νολικά.`,clearCaption:`ÎκκαθάÏιÏη`,selectCaption:`ÎιαλÎγÏ`,signaturePlaceHolder:`Î¥ÏογÏάÏÏε εδÏ`,signaturePlaceHolderReadOnly:`ΧÏÏÎ¯Ï Ï
ÏογÏαÏή`,chooseFileCaption:`ÎÏιλÎξÏε αÏÏείο`,takePhotoCaption:`ÎήÏη ÏÏÏογÏαÏίαÏ`,photoPlaceholder:`ÎάνÏε κλικ ÏÏο ÏαÏακάÏÏ ÎºÎ¿Ï
μÏί για να ÏÏαβήξεÏε μια ÏÏÏογÏαÏία ÏÏηÏιμοÏοιÏνÏÎ±Ï Ïην κάμεÏα.`,fileOrPhotoPlaceholder:`ΣÏÏεÏε και αÏοθÎÏÏε ή εÏιλÎξÏε Îνα αÏÏείο για αÏοÏÏολή ή λήÏη ÏÏÏογÏαÏÎ¯Î±Ï ÏÏηÏιμοÏοιÏνÏÎ±Ï Ïην κάμεÏα.`,replaceFileCaption:`ÎνÏικαÏάÏÏαÏη αÏÏείοÏ
`,removeFileCaption:`ÎιαγÏάÏÏε αÏ
ÏÏ Ïο αÏÏείο`,booleanCheckedLabel:`Îαι`,booleanUncheckedLabel:`ÎÏι`,confirmRemoveFile:`ÎίÏÏε βÎβαιοι ÏÏι θÎλεÏε να διαγÏάÏεÏε αÏ
ÏÏ Ïο αÏÏείο: {0};`,confirmRemoveAllFiles:`ÎίÏÏε βÎβαιοι ÏÏι θÎλεÏε να διαγÏάÏεÏε Ïλα Ïα αÏÏεία;`,questionTitlePatternText:`ΤίÏÎ»Î¿Ï ÎµÏÏÏηÏηÏ`,modalCancelButtonText:`ÎκÏ
Ïο`,modalApplyButtonText:`ÎÏαÏμογή`,filterStringPlaceholder:`ΠληκÏÏολογήÏÏε για αναζήÏηÏη...`,emptyMessage:`Îεν Ï
ÏάÏÏοÏ
ν δεδομÎÎ
201½Î± ÏÏÎ¿Ï ÎµÎ¼ÏάνιÏη`,loadingPage:`ΦÏÏÏÏÏη...`,loadingData:`ΦÏÏÏÏÏη...`,noEntriesText:`Îεν Ï ÏάÏÏÎ¿Ï Î½ ακÏμη εγγÏαÏÎÏ. 202ÎάνÏε κλικ ÏÏο ÎºÎ¿Ï Î¼Ïί ÏαÏακάÏÏ Î³Î¹Î± να ÏÏοÏθÎÏεÏε μια νÎα εγγÏαÏή.`,noEntriesReadonlyText:`Îεν Ï ÏάÏÏÎ¿Ï Î½ καÏαÏÏÏήÏειÏ`,tabTitlePlaceholder:`ÎÎο Ïάνελ`,more:`ΠεÏιÏÏÏÏεÏα`,tagboxDoneButtonCaption:`ÎÎ`,selectToRankEmptyRankedAreaText:`ÎÎ»ÎµÏ Î¿Î¹ εÏιλογÎÏ ÎµÏιλÎγονÏαι για καÏάÏαξη`,selectToRankEmptyUnrankedAreaText:`ΣÏÏεÏε ÏÎ¹Ï ÎµÏιλογÎÏ ÎµÎ´Ï Î³Î¹Î± να ÏÎ¹Ï ÎºÎ±ÏαÏάξεÏε`,ok:`OK`,cancel:`ÎÎºÏ ÏÏνÏ`,createCustomItem:`ÎÎ·Î¼Î¹Î¿Ï Ïγία ÏÏοιÏÎµÎ¯Î¿Ï "{0}"...`,toc:`Î Î¯Î½Î±ÎºÎ±Ï ÏεÏιεÏομÎνÏν`,progressbar:`ÎÏαμμή ÏÏοÏÎ´Î¿Ï `},nativeName:`ελληνικά`,englishName:`Greek`}),gj({localeCode:`ht`,strings:{pagePrevText:`Anvan`,pageNextText:`Pwochen`,completeText:`Ranpli`,previewText:`Preview`,editText:`modifye`,startSurveyText:`Kòmanse`,commentText:`Tanpri kite yon kòmantè`,otherItemText:`Lòt (dekri)`,noneItemText:`Okenn`,refuseItemText:`Refize reponn`,dontKnowItemText:`pa konnen`,selectAllItemText:`Chwazi Tout`,deselectAllItemText:`Deseleksyone tout`,progressText:`Paj {0} nan {1}`,indexText:`{0} nan {1}`,panelDynamicProgressText:`{0} nan {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Reponn {0}/{1} kesyon`,emptySurvey:`Sondaj la pa genyen okenn eleman vizib.`,completingSurvey:`Mèsi paske w fin ranpli sondaj la`,completingSurveyBefore:`Ou te deja ranpli sondaj sa a.`,loadingSurvey:`Chaje sondaj...`,placeholder:`Chwazi...`,ratingOptionsCaption:`Chwazi...`,buttongroupOptionsCaption:`Chwazi ...`,value:`valè`,requiredError:`Repons obligatwa.`,requiredErrorInPanel:`Repons obligatwa: reponn omwen yon kesyon.`,requiredInAllRowsError:`Repons obligatwa: reponn kesyon nan tout ranje.`,eachRowUniqueError:`Chak ranje dwe gen yon valè inik.`,numericError:`Valè a ta dwe nimerik.`,minError:`Valè a pa ta dwe mwens pase {0}`,stepError:`Tanpri antre yon valè ki matche ak gwosè a etap nan {0}.`,maxError:`Valè a pa ta dwe pi gran pase {0}`,invalidInputError:`Opinyon envalid`,textNoDigitsAllow:`Nimewo yo pa pèmèt.`,incompletePatternError:`Tanpri ranpli valè a matche fòma obligatwa a.`,textMinLength:`Tanpri antre omwen {0} karaktè (yo).`,textMaxLength:`Tanpri antre pa plis pase {0} karaktè (yo).`,textMinMaxLength:`Tanpri antre omwen {0} e pa plis pase {1} karaktè.`,minRowCountError:`Tanpri ranpli omwen {0} ranje (yo).`,minSelectError:`Tanpri chwazi omwen {0} opsyon (yo).`,maxSelectError:`Tanpri chwazi pa plis pase {0} opsyon (yo).`,numericMinMax:`'{0}' ta dwe omwen {1} ak pi plis {2}`,numericMin:`'{0}' ta dwe omwen {1}`,numericMax:`' a{0}' ta dwe pi plis {1}`,invalidEmail:`Tanpri antre yon adrès imel ki valab.`,invalidExpression:`Ekspresyon an: {0} ta dwe retounen 'vre'.`,urlRequestError:`Rekèt la te retounen erè '{0}'.{1}`,urlGetChoicesError:`Rekèt la te retounen done vid oswa pwopriyete 'chemen' a pa kòrèk`,exceedMaxSize:`Gwosè dosye a pa ta dwe depase {0}.`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`Nimewo a maksimòm nan dosye ou ka telechaje se {0}.`,noUploadFilesHandler:`Fichye yo pa ka telechaje. Tanpri ajoute yon moun kap okipe evènman 'onUploadFiles' la.`,otherRequiredError:`Repons obligatwa: antre yon lòt valè.`,uploadingFile:`Fichye w ap telechaje. Tanpri tann plizyè segonn epi eseye ankò.`,loadingFile:`Chaje...`,chooseFile:`Chwazi fichye (yo)...`,noFileChosen:`Pa gen fichye chwazi`,filePlaceholder:`Trennen epi depoze yon fichye isit la oswa klike sou bouton ki anba a pou chwazi yon fichye pou w telechaje.`,confirmDelete:`Ãske w sèten ou vle efase dosye sa a?`,keyDuplicationError:`Valè sa a ta dwe inik.`,addColumn:`Ajoute Kolòn`,addRow:`Ajoute Ranje`,removeRow:`Retire`,noRowsText:`Pa gen ranje.`,rowIndexTemplateTitle:`Row {rowIndex}`,rowNameTemplateTitle:`{rowTitle}
202`,addPanel:`Ajoute nouvo`,removePanel:`Retire`,showDetails:`Montre detay`,hideDetails:`Kache Detay yo`,choices_Item:`atik`,choices_Choice:`Opsyon chwa`,matrix_column:`Kolòn`,matrix_row:`Ranje`,multipletext_itemname:`tèks`,savingData:`Rezilta yo ap sove sou sèvè a...`,savingDataError:`Yon erè te fèt epi nou pa t 'kapab sove rezilta yo.`,savingDataSuccess:`Rezilta yo te sove avèk siksè!`,saveAgainButton:`Eseye ankò`,timerMin:`min`,timerSec:`sec`,timerSpentAll:`Ou te depanse {0} sou paj sa a epi {1} an total.`,timerSpentPage:`Ou te depanse {0} sou paj sa a.`,timerSpentSurvey:`Ou te depanse {0} an total.`,timerLimitAll:`Ou te depanse {0} nan {1} sou paj sa a epi {2} nan {3} an total.`,timerLimitPage:`Ou te depanse {0} nan {1} sou paj sa a.`,timerLimitSurvey:`Ou te depanse {0} nan {1} an total.`,clearCaption:`Klè`,selectCaption:`Chwazi`,signaturePlaceHolder:`Siyen isit la`,signaturePlaceHolderReadOnly:`Pa gen siyati`,chooseFileCaption:`Chwazi File`,takePhotoCaption:`Pran Foto`,photoPlaceholder:`Klike sou bouton ki anba a pou pran yon foto ak kamera a.`,fileOrPhotoPlaceholder:`Trennen epi depoze oswa chwazi yon dosye pou w telechaje oswa pran yon foto lè l sèvi avèk kamera a.`,replaceFileCaption:`Ranplase fichye a`,removeFileCaption:`Retire fichye sa a`,booleanCheckedLabel:`Wi`,booleanUncheckedLabel:`Non`,confirmRemoveFile:`Ãske ou sèten ou vle retire dosye sa a: {0}?`,confirmRemoveAllFiles:`Ãske w sèten ou vle retire tout fichye yo?`,questionTitlePatternText:`Tit kesyon`,modalCancelButtonText:`Anile`,modalApplyButtonText:`Aplike`,filterStringPlaceholder:`Tape pou chèche...`,emptyMessage:`Pa gen done pou montre`,loadingPage:`Chaje...`,loadingData:`Chaje...`,noEntriesText:`Pa gen okenn antre ankò. 203Klike sou bouton ki anba a pou ajoute yon nouvo antre.`,noEntriesReadonlyText:`Pa gen antre`,tabTitlePlaceholder:`Nouvo Panel`,more:`Plis`,tagboxDoneButtonCaption:`OKE`,selectToRankEmptyRankedAreaText:`Tout chwa yo chwazi pou klasman`,selectToRankEmptyUnrankedAreaText:`Trennen chwa isit la pou klase yo`,ok:`OKE`,cancel:`Anile`,createCustomItem:`Kreye "{0}" atik ...`,toc:`Sa ki nan yon tablo`,progressbar:`ba pwogrè`},nativeName:`Kreyòl ayisyen`,englishName:`Haitian Creole`}),gj({localeCode:`he`,strings:{pagePrevText:`×××ר×`,pageNextText:`×§××××`,completeText:`ס×××`,previewText:`תצ××× ××§××××`,editText:`×ַעֲר×Ö¹×`,startSurveyText:`×ַת×Ö¸×Ö¸×`,commentText:`×× × ×ש×××¨× ×ª××××`,otherItemText:`××ר (× × ×ת×ר)`,noneItemText:`××£ ×××`,refuseItemText:`×סר××× ××¢× ×ת`,dontKnowItemText:`×× ××××¢`,selectAllItemText:`××ר ×××`,deselectAllItemText:`××× ×ת ×××××¨× ××××`,progressText:`××£ {0} ×ת×× {1}`,indexText:`{0} ×ת×× {1}`,panelDynamicProgressText:`××§××× {0} ×ת×× {1}`,panelDynamicTabTextFormat:`××× {panelIndex}`,questionsProgressText:`×¢× × ×¢× ×©×××ת`,emptySurvey:`××× ×©×××ת`,completingSurvey:`ת××× ×¢× ××××× ×ש××××!`,completingSurveyBefore:`×רש×××ת ש×× × ×ר××ת ש××ר ס×××ת ×ת ×סקר ×××.`,loadingSurvey:`××¢×× × ××שרת...`,placeholder:`××ר...`,ratingOptionsCaption:`××ר...`,buttongroupOptionsCaption:`××ר...`,value:`ער×`,requiredError:`×× × ××©× ×¢× ×ש×××`,requiredErrorInPanel:`×× × ×¢× × ×פ××ת ×¢× ×©××× ××ת.`,requiredInAllRowsError:`×× × ×¢× × ×¢× ×©×××ת ××× ×ש×ר×ת.`,eachRowUniqueError:`××× ×©××¨× ×××× ××××ת ×¢×¨× ××××××.`,numericError:`×תש××× ×¦×¨××× ××××ת ×ספר.`,minError:`××¢×¨× ×× ×¦×¨×× ××××ת ×§×× × {0}`,stepError:`××× ×¢×¨× ×ת××× ××××× ××¦×¢× ×©× {0}.`,maxError:`××¢×¨× ×× ×¦×¨×× ××××ת ×××× ×- {0}`,invalidInputError:`×§×× ×©×××`,textNoDigitsAllow:`×ספר×× ××× × ××תר××.`,incompletePatternError:`×× × ××× ×ת ××¢×¨× ××× ××ת××× ×פ×ר×× ×× ×רש.`,textMinLength:`××× ×פ××ת {0} ת××××.`,textMaxLength:`××× ×¤××ת ×- {0} ת××××.`,textMinMaxLength:`××× ××תר ×- {0} ×פ××ת ×- {1} ת××××.`,minRowCountError:`×× × ××× ×פ××ת {0} ש×ר×ת.`,minSelectError:`××ר ×פ××ת {0} ×פשר×××ת.`,maxSelectError:`××ר ×¢× {0}
203 ×פשר×××ת.`,numericMinMax:`'{0}' ×××× ××××ת ש××× ×× ×××× × {1}, ×ש××× ×- {2} ×× ×¤××ת ×- {}}`,numericMin:`'{0}' ×××× ××××ת ש××× ×× ×××× × {1}`,numericMax:`'{0}' ×××× ××××ת ש××× ×× ×§×× × {1}`,invalidEmail:`××× ×ת××ת ×××"× ×××§×ת.`,invalidExpression:`××××××: {0} צר×× ×××××ר '××ת'.`,urlRequestError:`×××§×©× ×××××¨× ×ת ×ש×××× '{0}'. {1}`,urlGetChoicesError:`×××§×©× ×××××¨× × ×ª×× ×× ×¨××§×× ×× ×©×××פ××× '× ×ª××' ש×××`,exceedMaxSize:`×××× ××§×××¥ ×× ××¢×× ×¢× {0}.`,fileSizeUnits:`×ת××, KB, MB, GB, TB`,exceedMaxFiles:`××ספר ××קס×××× ×©× ×§×צ×× ×©××ª× ×××× ×××¢××ת ××× {0}.`,noUploadFilesHandler:`×× × ××ª× ×××¢××ת ×§×צ××. ×× × ××סף ×××¤× ×××ר××¢ 'onUploadFiles'.`,otherRequiredError:`× × ××××× × ×ª×× ×× ×ש×× "××ר"`,uploadingFile:`××§×××¥ ש×× × ××¢×. ×××ª× ×ספר ×©× ××ת ×× ×¡× ×©××.`,loadingFile:`×××¢×...`,chooseFile:`××××ר ×§×צ××...`,noFileChosen:`×× × ××ר ×§×××¥`,filePlaceholder:`×ר×ר ×ש×רר ×§×××¥ ××× ×× ×××¥ ×¢× ××פת×ר ×××× ××× ××××ר ×§×××¥ ×××¢×××.`,confirmDelete:`××× ××ª× ×¨××¦× ×××××§ ×ת ×רש×××?`,keyDuplicationError:`×¢×¨× ×× ×¦×¨×× ××××ת ××××××.`,addColumn:`××סף ×¢××××`,addRow:`×××ס××£ ש×ר×`,removeRow:`×Ö°×ַסִ×ר`,noRowsText:`××× ×©×ר×ת.`,rowIndexTemplateTitle:`ש××¨× {rowIndex}`,rowNameTemplateTitle:`{××תרת_ש×ר×}`,addPanel:`××סף ××ש`,removePanel:`×Ö°×ַסִ×ר`,showDetails:`×ר×× ×¤×¨×××`,hideDetails:`×סתר פר×××`,choices_Item:`פר××`,choices_Choice:`×פשר×ת ×××ר×`,matrix_column:`××ר`,matrix_row:`ש××ּרָ×`,multipletext_itemname:`×קס×`,savingData:`×ת×צ××ת × ×©×ר×ת ×שרת ...`,savingDataError:`×××¨×¢× ×©×××× ××× ×צ××× × ×ש××ר ×ת ×ת×צ××ת.`,savingDataSuccess:`×ת×צ××ת × ×©××¨× ××צ×××!`,saveAgainButton:`× ×¡× ×©××`,timerMin:`××§×`,timerSec:`×©× ××ת`,timerSpentAll:`××צ×ת {0} ×××£ ×× ×××¡× ××× {1}.`,timerSpentPage:`××צ×ת {0} ×××£ ××.`,timerSpentSurvey:`××צ×ת ס××× ×××× ×©× {0}.`,timerLimitAll:`××צ×ת {0} ×ת×× {1} ×××£ ×× ×- {2} ×ת×× {3} ××¡× ×××.`,timerLimitPage:`××צ×ת {0} ×ת×× {1} ×××£ ××.`,timerLimitSurvey:`××צ×ת ס××× ×××× ×©× {0} ×ת×× {1}.`,clearCaption:`×× ×§×ת`,selectCaption:`××ר`,signaturePlaceHolder:`×ת×× ×××`,signaturePlaceHolderReadOnly:`××× ×ת×××`,chooseFileCaption:`××ר ×§×××¥`,takePhotoCaption:`צ×× ×ª××× ×`,photoPlaceholder:`×××¥ ×¢× ××××¦× ×××× ××× ×צ×× ×ª××× × ×××צע×ת ××צ×××.`,fileOrPhotoPlaceholder:`×ר×ר ×ש×רר ×× ××ר ×§×××¥ ××× ×××¢××ת ×× ×צ×× ×ª××× × ×××צע×ת ××צ×××.`,replaceFileCaption:`×××פת ×§×××¥`,removeFileCaption:`×סר ×§×××¥ ××`,booleanCheckedLabel:`××`,booleanUncheckedLabel:`××`,confirmRemoveFile:`××× ××ª× ×××× ×©×רצ×× × ××ס×ר ×§×××¥ ××: {0}?`,confirmRemoveAllFiles:`××× ××ª× ×××× ×©×רצ×× × ××ס×ר ×ת ×× ××§×צ××?`,questionTitlePatternText:`××תרת ש×××`,modalCancelButtonText:`××××`,modalApplyButtonText:`×××`,filterStringPlaceholder:`××§×× ××× ××פש...`,emptyMessage:`××× × ×ª×× ×× ××צ××`,loadingPage:`××¢×× ×ª...`,loadingData:`××¢×× ×ª...`,noEntriesText:`×¢×××× ××× ×× ×ס×ת. 204×××¥ ×¢× ××פת×ר ×××× ××× ×××ס××£ ×¢×¨× ××ש.`,noEntriesReadonlyText:`××× ×× ×ס×ת`,tabTitlePlaceholder:`פ×× × ××ש`,more:`×¢××`,tagboxDoneButtonCaption:`×××§××`,selectToRankEmptyRankedAreaText:`×× ××פשר×××ת × ××ר×ת ×××ר××`,selectToRankEmptyUnrankedAreaText:`×ר×ר ×פשר×××ת ×××× ××× ×××¨× ××ת×`,ok:`×××§××`,cancel:`××××`,createCustomItem:`צ×ר פר×× "{0}"...`,toc:`ת××× ×¢× ××× ××`,progressbar:`×× ×תק×××ת`},nativeName:`×¢×ר×ת`,englishName:`Hebrew`,rtl:!0}),gj({localeCode:`hi`,strings:{pagePrevText:`पिà¤à¤²à¤¾`,pageNextText:`ठà¤à¤²à¤¾`,completeText:`पà¥à¤°à¤¾`,previewText:`पà¥à¤°à¥à¤µà¤¸à¤®à¥à¤à¥à¤·à¤¾`,editText:`सà¤à¤ªà¤¾à¤¦à¤¿à¤¤`,startSurveyText:`शà¥à¤°à¥`,commentText:`à¤à¥à¤ªà¤¯à¤¾ à¤à¤ à¤à¤¿à¤ªà¥à¤ªà¤£à¥ à¤à¥à¤¡à¤¼ दà¥`,otherItemText:`दà¥à¤¸à¤°à¤¾ (वरà¥à¤£à¤¨ à¤à¤°à¥à¤)`,noneItemText:`à¤à¥à¤ नहà¥à¤`,refuseItemText:`à¤à¤µà¤¾à¤¬ दà¥à¤¨à¥ सॠà¤à¤¨à¤à¤¾à¤°`,dontKnowItemText:`नहà¥à¤ मालà¥à¤®`,selectAllItemText:`सà¤à¥ à¤à¤¾ à¤à¤¯à¤¨ à¤à¤°à¥à¤`,deselectAllItemText:`सà¤à¥ à¤à¥ ठà¤à¤¯à¤¨à¤¿à¤¤ à¤à¤°à¥à¤`,progressText:`पà¥à¤·à¥à¤ 1 मà¥à¤ सॠ0`,indexText:`{1} à¤à¤¾ {0}`,panelDynamicProgressText:` दसà¥à¤¤à¤¾à¤µà¥à¤ {1} à¤à¥ {0}`,panelDynamicTabTextFormat:`पà¥à¤¨à¤² {panelIndex}`,questionsProgressText:`{1} सवालà¥à¤ मà¥à¤ सॠ{0} à¤à¥ à¤à¤µà¤¾à¤¬ दिà¤`,emptySurvey:`सरà¥à¤µà¥à¤à¥à¤·à¤£ मà¥à¤ à¤à¥à¤ दà¥à¤¶à¥à¤¯à¤®à¤¾à¤¨ पà¥à¤·à¥à¤ या पà¥à¤°à¤¶à¥à¤¨ नहà¥à¤ हà¥`,completingSurvey:`सरà¥à¤µà¥à¤à¥à¤·à¤£ à¤à¥ पà¥à¤°à¤¾ à¤à¤°à¤¨à¥ à¤à¥ लिठधनà¥à¤¯à¤µà¤¾à¤¦`,completingSurveyBefore:` हमारॠरिà¤à¥à¤°à¥à¤¡ बतातॠहà¥à¤ à¤à¤¿ à¤à¤ª पहलॠहॠà¤à¤¸ सरà¥à¤µà¥à¤à¥à¤·à¤£ à¤à¥ पà¥à¤°à¤¾ à¤à¤° à¤à¥à¤à¥ हà¥à¤`,loadingSurvey:`सरà¥à¤µà¥à¤à¥à¤·à¤£ à¤à¥à¤² रहा हà¥.â¦`,placeholder:`à¤à¥à¤¨à¥à¤`,ratingOptionsCaption:`à¤à¥à¤¨à¤¨à¤¾à¥¤à¥¤à¥¤`,buttongroupOptionsCaption:`à¤à¥à¤¨à¤¨à¤¾à¥¤à¥¤à¥¤`,value:`मà¥à¤²à¥à¤¯`,requiredError:`à¤à¥à¤ªà¤¯à¤¾ पà¥à¤°à¤¶à¥à¤¨ à¤à¤¾ à¤à¤¤à¥à
204¤¤à¤° दà¥à¤`,requiredErrorInPanel:`à¤à¥à¤ªà¤¯à¤¾ à¤à¤® सॠà¤à¤® à¤à¤ पà¥à¤°à¤¶à¥à¤¨ à¤à¤¾ à¤à¤¤à¥à¤¤à¤° दà¥à¤`,requiredInAllRowsError:`à¤à¥à¤ªà¤¯à¤¾ सà¤à¥ पà¤à¤à¥à¤¤à¤¿à¤¯à¥à¤ मà¥à¤ सवालà¥à¤ à¤à¥ à¤à¤µà¤¾à¤¬ दà¥à¤`,eachRowUniqueError:`पà¥à¤°à¤¤à¥à¤¯à¥à¤ पà¤à¤à¥à¤¤à¤¿ à¤à¤¾ à¤à¤ à¤
दà¥à¤µà¤¿à¤¤à¥à¤¯ मान हà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤.`,numericError:`मà¥à¤²à¥à¤¯ सà¤à¤à¥à¤¯à¤¾à¤¤à¥à¤®à¤ हà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤`,minError:`मान {0} सॠà¤à¤® नहà¥à¤ हà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤`,stepError:`à¤à¥à¤ªà¤¯à¤¾ à¤à¥à¤ मान दरà¥à¤ à¤à¤°à¥à¤ à¤à¥ {0} à¤à¥ à¤à¤°à¤£ à¤à¤à¤¾à¤° सॠमà¥à¤² à¤à¤¾à¤¤à¤¾ हà¥.`,maxError:`मान {0} सॠà¤
धिठनहà¥à¤ हà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤`,invalidInputError:`à¤
मानà¥à¤¯ à¤à¤¨à¤ªà¥à¤`,textNoDigitsAllow:`सà¤à¤à¥à¤¯à¤¾ à¤à¥ à¤
नà¥à¤®à¤¤à¤¿ नहà¥à¤ हà¥à¥¤`,incompletePatternError:`à¤à¥à¤ªà¤¯à¤¾ à¤à¤µà¤¶à¥à¤¯à¤ पà¥à¤°à¤¾à¤°à¥à¤ª सॠमà¥à¤² à¤à¤¾à¤¨à¥ à¤à¥ लिठमान à¤à¥ पà¥à¤°à¤¾ à¤à¤°à¥à¤à¥¤`,textMinLength:`à¤à¥à¤ªà¤¯à¤¾ à¤à¤® सॠà¤à¤® {0} वरà¥à¤£ दरà¥à¤ à¤à¤°à¥à¤`,textMaxLength:`à¤à¥à¤ªà¤¯à¤¾ {0} सॠà¤à¤® वरà¥à¤£ दरà¥à¤ à¤à¤°à¥à¤`,textMinMaxLength:`à¤à¥à¤ªà¤¯à¤¾ {0} सॠà¤
धिठà¤à¤° {1} सॠà¤à¤® पातà¥à¤°à¥à¤ मà¥à¤ पà¥à¤°à¤µà¥à¤¶ à¤à¤°à¥à¤`,minRowCountError:`à¤à¥à¤ªà¤¯à¤¾ à¤à¤® सॠà¤à¤® {0} पà¤à¤à¥à¤¤à¤¿à¤¯à¥à¤ à¤à¥ à¤à¤°à¥à¤`,minSelectError:`à¤à¥à¤ªà¤¯à¤¾ à¤à¤® सॠà¤à¤® {0} विà¤à¤²à¥à¤ª à¤à¤¾ à¤à¤¯à¤¨ à¤à¤°à¥à¤`,maxSelectError:`à¤à¥à¤ªà¤¯à¤¾ {0} विà¤à¤²à¥à¤ªà¥à¤ सॠà¤
धिठनहà¥à¤ à¤à¥à¤¨à¥à¤`,numericMinMax:`'{0}' {1} सॠबराबर या à¤
धिठà¤à¤° {2} सॠबराबर या à¤à¤® हà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤`,numericMin:`'{0}' {1} सॠबराबर या à¤
धिठहà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤`,numericMax:`'{0}' {1} सॠबराबर या à¤à¤® हà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤`,invalidEmail:`à¤à¥à¤ªà¤¯à¤¾ à¤à¤ वà¥à¤§ à¤à¤®à¥à¤² पता दरà¥à¤ à¤à¤°à¥à¤`,invalidExpression:`à¤
à¤à¤¿à¤µà¥à¤¯à¤à¥à¤¤à¤¿: {0} à¤à¥ ' सठ' लà¥à¤à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤`,urlRequestError:`à¤
नà¥à¤°à¥à¤§ लà¥à¤à¤¾à¤¯à¤¾ तà¥à¤°à¥à¤à¤¿ '{0}' . {1}`,urlGetChoicesError:`à¤
नà¥à¤°à¥à¤§ नॠà¤à¤¾à¤²à¥ डà¥à¤à¤¾ वापस à¤à¤° दिया हॠ`,exceedMaxSize:`फ़ाà¤à¤² à¤à¤¾ à¤à¤à¤¾à¤° {0} सॠà¤
धिठनहà¥à¤ हà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤ या फिर 'पाथ' पà¥à¤°à¥à¤ªà¤°à¥à¤à¥ à¤à¤²à¤¤ हà¥`,fileSizeUnits:`बाà¤à¤à¥à¤¸, à¤à¥à¤¬à¥, à¤à¤®à¤¬à¥, à¤à¥à¤¬à¥, à¤à¥à¤¬à¥`,exceedMaxFiles:`à¤à¤ªà¤à¥ दà¥à¤µà¤¾à¤°à¤¾ à¤
पलà¥à¤¡ à¤à¥ à¤à¤¾ सà¤à¤¨à¥ वालॠफ़ाà¤à¤²à¥à¤ à¤à¥ à¤
धिà¤à¤¤à¤® सà¤à¤à¥à¤¯à¤¾ {0} हà¥à¥¤`,noUploadFilesHandler:`फ़ाà¤à¤²à¥à¤ à¤
पलà¥à¤¡ नहà¥à¤ à¤à¥ à¤à¤¾ सà¤à¤¤à¥. à¤à¥à¤ªà¤¯à¤¾ 'onloadFiles' à¤à¤µà¥à¤à¤ à¤à¥ लिठà¤à¤ हà¥à¤à¤¡à¤²à¤° à¤à¥à¤¡à¤¼à¥à¤.`,otherRequiredError:`à¤à¥à¤ªà¤¯à¤¾ दà¥à¤¸à¤°à¤¾ मà¥à¤²à¥à¤¯ दरà¥à¤ à¤à¤°à¥à¤`,uploadingFile:`à¤à¤ªà¤à¥ फाà¤à¤² à¤
पलà¥à¤¡ हॠरहॠहà¥à¥¤ à¤à¥à¤ªà¤¯à¤¾ à¤à¤ सà¥à¤à¤à¤¡ à¤à¤à¤¤à¤à¤¾à¤° à¤à¤°à¥à¤ à¤à¤° फिर सॠपà¥à¤°à¤¯à¤¾à¤¸ à¤à¤°à¥à¤à¥¤`,loadingFile:`लà¥à¤¡à¤¿à¤à¤`,chooseFile:`फ़ाà¤à¤² à¤à¥à¤¨à¥à¤`,noFileChosen:`à¤à¥à¤ फाà¤à¤² नहà¥à¤ à¤à¥à¤¨à¥ à¤à¤`,filePlaceholder:`à¤à¤¿à¤¸à¥ फ़ाà¤à¤² à¤à¥ यहाठà¤à¥à¤à¤à¥à¤ à¤à¤° à¤à¥à¤¡à¤¼à¥à¤ या à¤
पलà¥à¤¡ à¤à¤°à¤¨à¥ à¤à¥ लिठफ़ाà¤à¤² à¤à¤¾ à¤à¤¯à¤¨ à¤à¤°à¤¨à¥ à¤à¥ लिठनà¥à¤à¥ दिठà¤à¤ बà¤à¤¨ पर à¤à¥à¤²à¤¿à¤ à¤à¤°à¥à¤à¥¤`,confirmDelete:`à¤à¥à¤¯à¤¾ à¤à¤ª रिà¤à¥à¤°à¥à¤¡ हà¤à¤¾à¤¨à¤¾ à¤à¤¾à¤¹à¤¤à¥ हà¥à¤`,keyDuplicationError:`यह मान à¤
नà¥à¤à¤¾ हà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤`,addColumn:`à¤à¥à¤²à¤® à¤à¥à¤¡à¤¼à¥à¤`,addRow:`पà¤à¤à¥à¤¤à¤¿ à¤à¥à¤¡à¤¼à¥à¤`,removeRow:`हà¤à¤¾à¤`,noRowsText:`à¤à¥à¤ पà¤à¤à¥à¤¤à¤¿à¤¯à¤¾à¤ नहà¥à¤ हà¥à¤.`,rowIndexTemplateTitle:`पà¤à¤à¥à¤¤à¤¿ {rowIndex}`,rowNameTemplateTitle:`{पà¤à¤à¥à¤¤à¤¿à¤¶à¥à¤°à¥à¤·à¤}`,addPanel:`नया à¤à¥à¤¡à¤¼à¥à¤`,removePanel:`हà¤à¤¾à¤`,showDetail
204s:`विवरण दिà¤à¤¾à¤à¤`,hideDetails:`विवरण à¤à¥à¤ªà¤¾à¤à¤`,choices_Item:`मद`,choices_Choice:`पसà¤à¤¦ विà¤à¤²à¥à¤ª`,matrix_column:`à¤à¥à¤²à¤®`,matrix_row:`पà¤à¤à¥à¤¤à¤¿`,multipletext_itemname:`à¤à¥à¤à¥à¤¸à¥à¤`,savingData:`परिणाम सरà¥à¤µà¤° पर सà¥à¤µ हॠरहॠहà¥à¤`,savingDataError:`à¤à¤ तà¥à¤°à¥à¤à¤¿ हà¥à¤ à¤à¤° हम परिणामà¥à¤ à¤à¥ नहà¥à¤ सà¥à¤µ à¤à¤° सà¤à¥`,savingDataSuccess:`परिणाम सफलतापà¥à¤°à¥à¤µà¤ सà¥à¤µ हॠà¤à¤`,saveAgainButton:`फिर à¤à¥à¤¶à¤¿à¤¶ à¤à¤°à¥`,timerMin:`मिनà¤`,timerSec:`सà¥à¤à¤à¤¡`,timerSpentAll:`à¤à¤ªà¤¨à¥ à¤à¤¸ पà¥à¤·à¥à¤ पर {0} à¤à¤°à¥à¤ à¤à¤¿à¤ हà¥à¤ à¤à¤° à¤à¥à¤² {1}`,timerSpentPage:`à¤à¤ªà¤¨à¥ à¤à¤¸ पà¥à¤·à¥à¤ पर {0} à¤à¤°à¥à¤ à¤à¤¿à¤¯à¤¾ हà¥`,timerSpentSurvey:`à¤à¤ªà¤¨à¥ à¤à¥à¤² {0} à¤à¤°à¥à¤ à¤à¤¿à¤¯à¤¾ हà¥`,timerLimitAll:`à¤à¤ªà¤¨à¥ à¤à¤¸ पà¥à¤·à¥à¤ पर {1} à¤à¥ {0} à¤à¤° à¤à¥à¤² {3} à¤à¥ {2} à¤à¤°à¥à¤ à¤à¥ हà¥à¥¤`,timerLimitPage:`à¤à¤ªà¤¨à¥ à¤à¤¸ पà¥à¤·à¥à¤ पर {1} à¤à¤¾ {0} à¤à¤°à¥à¤ à¤à¤¿à¤¯à¤¾ हà¥`,timerLimitSurvey:`à¤à¤ªà¤¨à¥ à¤à¥à¤² {1} à¤à¥ {0} à¤à¤°à¥à¤ à¤à¥ हà¥`,clearCaption:`सà¥à¤ªà¤·à¥à¤`,selectCaption:`à¤à¥à¤¨à¤¨à¤¾`,signaturePlaceHolder:`यहाठसाà¤à¤¨ à¤à¤°à¥à¤`,signaturePlaceHolderReadOnly:`à¤à¥à¤ हसà¥à¤¤à¤¾à¤à¥à¤·à¤° नहà¥à¤`,chooseFileCaption:`फ़ाà¤à¤² à¤à¥à¤¨à¥à¤`,takePhotoCaption:`फà¥à¤à¥ लॠलà¥`,photoPlaceholder:`à¤à¥à¤®à¤°à¥ à¤à¤¾ à¤à¤ªà¤¯à¥à¤ à¤à¤°à¤à¥ फà¥à¤à¥ लà¥à¤¨à¥ à¤à¥ लिठनà¥à¤à¥ दिठà¤à¤ बà¤à¤¨ पर à¤à¥à¤²à¤¿à¤ à¤à¤°à¥à¤à¥¤`,fileOrPhotoPlaceholder:`à¤à¥à¤®à¤°à¥ à¤à¤¾ à¤à¤ªà¤¯à¥à¤ à¤à¤°à¤à¥ फ़à¥à¤à¥ ठपलà¥à¤¡ à¤à¤°à¤¨à¥ या फ़à¥à¤à¥ लà¥à¤¨à¥ à¤à¥ लिठà¤à¤¿à¤¸à¥ फ़ाà¤à¤² à¤à¥ à¤à¥à¤à¤à¥à¤ à¤à¤° à¤à¥à¤¡à¤¼à¥à¤ या à¤à¥à¤¨à¥à¤.`,replaceFileCaption:`फ़ाà¤à¤² बदलà¥à¤`,removeFileCaption:`à¤à¤¸ फाà¤à¤² à¤à¥ निà¤à¤¾à¤²à¥à¤`,booleanCheckedLabel:`हाà¤`,booleanUncheckedLabel:`नहà¥à¤`,confirmRemoveFile:`à¤à¥à¤¯à¤¾ à¤à¤ª सà¥à¤¨à¤¿à¤¶à¥à¤à¤¿à¤¤ हà¥à¤ à¤à¤¿ à¤à¤ª à¤à¤¸ फ़ाà¤à¤² à¤à¥ हà¤à¤¾à¤¨à¤¾ à¤à¤¾à¤¹à¤¤à¥ हà¥à¤: {0}`,confirmRemoveAllFiles:`à¤à¥à¤¯à¤¾ à¤à¤ª सà¥à¤¨à¤¿à¤¶à¥à¤à¤¿à¤¤ हà¥à¤ à¤à¤¿ à¤à¤ª सà¤à¥ फ़ाà¤à¤²à¥à¤ à¤à¥ हà¤à¤¾à¤¨à¤¾ à¤à¤¾à¤¹à¤¤à¥ हà¥à¤`,questionTitlePatternText:`पà¥à¤°à¤¶à¥à¤¨ à¤à¤¾ शà¥à¤°à¥à¤·à¤`,modalCancelButtonText:`रदà¥à¤¦ à¤à¤°à¤¨à¤¾`,modalApplyButtonText:`लाà¤à¥ à¤à¤°à¤¨à¤¾`,filterStringPlaceholder:`à¤à¥à¤ à¤à¤°à¤¨à¥ à¤à¥ लिठà¤à¤¾à¤à¤ª à¤à¤°à¥à¤...`,emptyMessage:`पà¥à¤°à¤¦à¤°à¥à¤¶à¤¿à¤¤ à¤à¤°à¤¨à¥ à¤à¥ लिठà¤à¥à¤ डà¥à¤à¤¾ नहà¥à¤`,loadingPage:`लà¥à¤¡à¥¤à¥¤à¥¤`,loadingData:`लà¥à¤¡à¥¤à¥¤à¥¤`,noEntriesText:`ठà¤à¥ तठà¤à¥à¤ पà¥à¤°à¤µà¤¿à¤·à¥à¤à¤¿ नहà¥à¤à¥¤ 205नठपà¥à¤°à¤µà¤¿à¤·à¥à¤à¤¿ à¤à¥à¤¡à¤¼à¤¨à¥ à¤à¥ लिठनà¥à¤à¥ दिठà¤à¤ बà¤à¤¨ पर à¤à¥à¤²à¤¿à¤ à¤à¤°à¥à¤.`,noEntriesReadonlyText:`à¤à¥à¤ पà¥à¤°à¤µà¤¿à¤·à¥à¤à¤¿ नहà¥à¤`,tabTitlePlaceholder:`नया पà¥à¤¨à¤²`,more:`ठधिà¤`,tagboxDoneButtonCaption:`ठà¥à¤ हà¥`,selectToRankEmptyRankedAreaText:`रà¥à¤à¤à¤¿à¤à¤ à¤à¥ लिठसà¤à¥ विà¤à¤²à¥à¤ªà¥à¤ à¤à¤¾ à¤à¤¯à¤¨ à¤à¤¿à¤¯à¤¾ à¤à¤¾à¤¤à¤¾ हà¥`,selectToRankEmptyUnrankedAreaText:`विà¤à¤²à¥à¤ªà¥à¤ à¤à¥ रà¥à¤à¤ à¤à¤°à¤¨à¥ à¤à¥ लिठयहाठà¤à¥à¤à¤à¥à¤`,ok:`ठà¥à¤ हà¥`,cancel:`रदà¥à¤¦ à¤à¤°à¤¨à¤¾`,createCustomItem:`"{0}" à¤à¤à¤à¤® बनाà¤à¤...`,toc:`विषय-सà¥à¤à¥`,progressbar:`पà¥à¤°à¤à¤¤à¤¿ पà¤à¥à¤à¥`},nativeName:`हिनà¥à¤¦à¥`,englishName:`Hindi`}),gj({localeCode:`hu`,strings:{pagePrevText:`Vissza`,pageNextText:`Tovább`,completeText:`Kész`,previewText:`ElÅnézet`,editText:`Szerkesztés`,startSurveyText:`Rajt`,commentText:`Kérjük, Ãrjon megjegyzést`,otherItemText:`Egyéb
205(adja meg)`,noneItemText:`Egyik sem`,refuseItemText:`A válaszadás megtagadása`,dontKnowItemText:`Nem tudom`,selectAllItemText:`Mindet kiválaszt`,deselectAllItemText:`Az összes kijelölésének megszüntetése`,progressText:`{0}./{1} oldal`,indexText:`{0} {1} közül`,panelDynamicProgressText:`{0} / {1} rekord`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Válaszolt kérdések: {0} / {1}`,emptySurvey:`A felmérés nem tartalmaz látható elemeket.`,completingSurvey:`Köszönjük, hogy kitöltötte felmérésünket!`,completingSurveyBefore:`Már kitöltötte a felmérést.`,loadingSurvey:`Felmérés betöltése...`,placeholder:`Válasszon...`,ratingOptionsCaption:`Kiválaszt...`,buttongroupOptionsCaption:`Kiválaszt...`,value:`érték`,requiredError:`Kérjük, válaszolja meg ezt a kérdést!`,requiredErrorInPanel:`Kérjük, válaszoljon legalább egy kérdésre.`,requiredInAllRowsError:`Kérjük adjon választ minden sorban!`,eachRowUniqueError:`Minden sornak egyedi értékkel kell rendelkeznie.`,numericError:`Az érték szám kell, hogy legyen!`,minError:`Az érték nem lehet kisebb, mint {0}`,stepError:`Kérjük, adjon meg egy értéket, amely megfelel a {0} lépésméretének.`,maxError:`Az érték nem lehet nagyobb, mint {0}`,invalidInputError:`Ãrvénytelen bemenet`,textNoDigitsAllow:`Számok nem engedélyezettek.`,incompletePatternError:`Kérjük, töltse ki az értéket, hogy megfeleljen a szükséges formátumnak.`,textMinLength:`Adjon meg legalább {0} karaktert!`,textMaxLength:`Legfeljebb {0} karaktert adjon meg!`,textMinMaxLength:`Adjon meg legalább {0}, de legfeljebb {1} karaktert!`,minRowCountError:`Töltsön ki minimum {0} sort!`,minSelectError:`Válasszon ki legalább {0} lehetÅséget!`,maxSelectError:`Ne válasszon többet, mint {0} lehetÅség!`,numericMinMax:`'{0}' legyen nagyobb, vagy egyenlÅ, mint {1} és kisebb, vagy egyenlÅ, mint {2}!`,numericMin:`'{0}' legyen legalább {1}!`,numericMax:`The '{0}' ne legyen nagyobb, mint {1}!`,invalidEmail:`Adjon meg egy valós email cÃmet!`,invalidExpression:`A következÅ kifejezés: {0} vissza kell adnia az âigazâ értéket.`,urlRequestError:`A lekérdezés hibával tért vissza: '{0}'. {1}`,urlGetChoicesError:`A lekérdezés üres adattal tért vissza, vagy a 'path' paraméter helytelen.`,exceedMaxSize:`A méret nem lehet nagyobb, mint {0}.`,fileSizeUnits:`Bájtok, KB, MB, GB, TB`,exceedMaxFiles:`A maximális fájlszám, amit feltölthetsz, {0}.`,noUploadFilesHandler:`A fájlok nem tölthetÅk fel. Adjon hozzá egy kezelÅt az "onUploadFiles" eseményhez.`,otherRequiredError:`Adja meg az egyéb értéket!`,uploadingFile:`Feltöltés folyamatban. Várjon pár másodpercet, majd próbálja újra.`,loadingFile:`Betöltés...`,chooseFile:`Fájlok kiválasztása ...`,noFileChosen:`Nincs kiválasztva fájl`,filePlaceholder:`Dobjon ide egy fájlt, vagy kattintson az alábbi gombra a fájl betöltéséhez.`,confirmDelete:`Törli ezt a rekordot?`,keyDuplicationError:`Az értéknek egyedinek kell lennie.`,addColumn:`Oszlop hozzáadása`,addRow:`Sor hozzáadása`,removeRow:`EltávolÃtás`,noRowsText:`Nincsenek sorok.`,rowIndexTemplateTitle:`{rowIndex} sor`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Ãj hozzáadása`,removePanel:`EltávolÃtás`,showDetails:`Mutasd a részleteket`,hideDetails:`Részletek elrejtése`,choices_Item:`elem`,choices_Choice:`Választási lehetÅség`,matrix_column:`Oszlop`,matrix_row:`Sor`,multipletext_itemname:`SMS`,savingData:`Eredmény mentése a szerverre...`,savingDataError:`Egy hiba folytán nem tudtuk elmenteni az eredményt.`,savingDataSuccess:`Eredmény sikeresen mentve!`,saveAgainButton:`Próbálja újra`,timerMin:`min`,timerSec:`SEC`,timerSpentAll:`Ãn {0} összeget költött ezen az oldalon, és összesen {1}.`,timerSpentPage:`{0} összeget költött ezen az oldalon.`,timerSpentSurvey:`Ãsszesen {0} költött.`,timerLimitAll:`Ãn {0} / {1} összeget költött ezen az oldalon, és összesen {2} / {3}.`,timerLimitPage:`Ãn {0} / {1} összeget költött ezen az oldalon.`,timerLimitSurvey:`Ãsszesen {0} / {1} összeget költött el.`,clearCaption:`Törlés`,selectCaption:`Kiválaszt`,signaturePlaceHolder:`Ãrja alá itt`,signaturePlaceHolderReadOnly:`Nincs aláÃrás`,chooseFileCaption:`Válassz fájlt`,takePhotoCaption:`Fotó készÃtése`,photoPlaceholder:`Kattintson az alábbi gombra, hogy fényképet készÃtsen a fényképezÅgéppel.`,fileOrPhotoPlaceholder:`Húzzon át vagy válasszon ki egy fájlt, amelyet fel szeretne tölteni vagy fényképet szeretne készÃteni a kamerával.`,replaceFileCaption:`Fájl cseréje`,removeFileCaption:`TávolÃtsa el ezt a fájlt`,booleanCheckedLabel:`Igen`,booleanUncheckedLabel:`Nem`,confirmRemoveFile:`Biztosan eltávolÃtja ezt a fájlt: {0}?`,confirmRemoveAllFiles:`Biztosan el akarja távolÃtani az összes fájlt?`,questionTitlePatternText:`Kérdé
205s cÃme`,modalCancelButtonText:`ÃrvénytelenÃt`,modalApplyButtonText:`Alkalmaz`,filterStringPlaceholder:`Ãrja be a kereséshez...`,emptyMessage:`Nincs megjelenÃthetÅ adat`,loadingPage:`Berakás...`,loadingData:`Berakás...`,noEntriesText:`Még nincs nevezés. 206Kattintson az alábbi gombra új bejegyzés hozzáadásához.`,noEntriesReadonlyText:`Nincs nevezés`,tabTitlePlaceholder:`Ãj panel`,more:`Több`,tagboxDoneButtonCaption:`OKÃ`,selectToRankEmptyRankedAreaText:`Minden választás kiválasztásra kerül a rangsoroláshoz`,selectToRankEmptyUnrankedAreaText:`Húzza ide a választási lehetÅségeket a rangsoroláshoz`,ok:`OKÃ`,cancel:`ÃrvénytelenÃt`,createCustomItem:`"{0}" elem létrehozása...`,toc:`Tartalomjegyzék`,progressbar:`FolyamatjelzÅ sáv`},nativeName:`magyar`,englishName:`Hungarian`}),gj({localeCode:`is`,strings:{pagePrevText:`Tilbaka`,pageNextText:`Ãfram`,completeText:`Lokið`,previewText:`Forskoða`,editText:`Breyta`,startSurveyText:`Byrjaðu`,commentText:`Vinsamlegast skildu eftir athugasemd`,otherItemText:`Hinn (skýring)`,noneItemText:`Enginn`,refuseItemText:`Neita að svara`,dontKnowItemText:`Veit ekki`,selectAllItemText:`Velja allt`,deselectAllItemText:`Afveljið allt`,progressText:`SÃða {0} of {1}`,indexText:`{0} af {1}`,panelDynamicProgressText:`Taka upp {0} af {1}`,panelDynamicTabTextFormat:`Pallborð {panelIndex}`,questionsProgressText:`Svarað {0} / {1} spurningum`,emptySurvey:`Ãað er enginn sÃða eða spurningar à þessari könnun.`,completingSurvey:`Takk fyrir að fyllja út þessa könnun!`,completingSurveyBefore:`Skrár okkar sýna að þú hefur þegar lokið þessari könnun.`,loadingSurvey:`Könnunin er að hlaða...`,placeholder:`Veldu...`,ratingOptionsCaption:`Velja...`,buttongroupOptionsCaption:`Velja...`,value:`gildi`,requiredError:`Vinsamlegast svarið spurningunni.`,requiredErrorInPanel:`Vinsamlegast svaraðu að minnsta kosti einni spurningu.`,requiredInAllRowsError:`Vinsamlegast svarið spurningum à öllum röðum.`,eachRowUniqueError:`Hver lÃna verður að hafa einstakt gildi.`,numericError:`Ãetta gildi verður að vera tala.`,minError:`Gildið má ekki vera lægra en {0}`,stepError:`Vinsamlegast sláðu inn gildi sem passar við þrepastærð {0}.`,maxError:`Gildið má ekki vera hærra en {0}`,invalidInputError:`Ãgild inntak`,textNoDigitsAllow:`Tölur eru ekki leyfðar.`,incompletePatternError:`Vinsamlegast fylltu út gildið til að passa við nauðsynlegt snið.`,textMinLength:`Ãað ætti að vera minnst {0} tákn.`,textMaxLength:`Ãað ætti að vera mest {0} tákn.`,textMinMaxLength:`Ãað ætti að vera fleiri en {0} og færri en {1} tákn.`,minRowCountError:`Vinsamlegast fyllið úr að minnsta kosti {0} raðir.`,minSelectError:`Vinsamlegast veljið að minnsta kosti {0} möguleika.`,maxSelectError:`Vinsamlegast veljið ekki fleiri en {0} möguleika.`,numericMinMax:`'{0}' ætti að vera meira en eða jafnt og {1} minna en eða jafnt og {2}`,numericMin:`{0}' ætti að vera meira en eða jafnt og {1}`,numericMax:`'{0}' ætti að vera minna en eða jafnt og {1}`,invalidEmail:`Vinsamlegast sláið inn gilt netfang.`,invalidExpression:`Tjáningin: {0} ætti að skila 'satt'.`,urlRequestError:`Beiðninn skilaði eftirfaranadi villu '{0}'. {1}`,urlGetChoicesError:`Beiðninng skilaði engum gögnum eða slóðinn var röng`,exceedMaxSize:`Skráinn skal ekki vera stærri en {0}.`,fileSizeUnits:`Bæti, KB, MB, GB, TB`,exceedMaxFiles:`Hámarksfjöldi skráa sem þú getur hlaðið upp er {0}.`,noUploadFilesHandler:`Ekki er hægt að hlaða upp skrám. Vinsamlegast bættu við rekli fyrir 'onUploadFiles' atvikið.`,otherRequiredError:`Vinamlegast fyllið út hitt gildið.`,uploadingFile:`Skráinn þÃn var send. Vinsamlegast bÃðið à nokkrar sekúndur og reynið aftur.`,loadingFile:`Hleður ...`,chooseFile:`Veldu skrár ...`,noFileChosen:`Engin skrá valin`,filePlaceholder:`Dragðu og slepptu skrá hér eða smelltu á hnappinn hér að neðan til að velja skrá til að hlaða upp.`,confirmDelete:`Viltu eyða skránni?`,keyDuplicationError:`Ãetta gildi ætti að vera einstakt.`,addColumn:`Bæta við dálki`,addRow:`Bæta við röð`,removeRow:`Fjarlægja`,noRowsText:`Ãað eru engar raðir.`,rowIndexTemplateTitle:`Röð {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Bæta við nýju`,removePanel:`Fjarlægðu`,showDetail
206s:`Sýna upplýsingar`,hideDetails:`Fela upplýsingar`,choices_Item:`hlutur`,choices_Choice:`Valmöguleiki`,matrix_column:`Dálkur`,matrix_row:`Röð`,multipletext_itemname:`Texti`,savingData:`Niðurstöðurnar eru að spara á netþjóninum ... `,savingDataError:`Villa kom upp og við gátum ekki vistað niðurstöðurnar.`,savingDataSuccess:`Ãrangurinn var vistaður með góðum árangri!`,saveAgainButton:`Reyndu aftur`,timerMin:`mÃn`,timerSec:`sek`,timerSpentAll:`Ãú hefur eytt {0} á þessari sÃðu og {1} samtals.`,timerSpentPage:`Ãú hefur eytt {0} á þessari sÃðu.`,timerSpentSurvey:`Ãú hefur eytt {0} samtals.`,timerLimitAll:`Ãú hefur eytt {0} af {1} á þessari sÃðu og {2} af {3} samtals.`,timerLimitPage:`Ãú hefur eytt {0} af {1} á þessari sÃðu.`,timerLimitSurvey:`Ãú hefur eytt {0} af {1} samtals.`,clearCaption:`Hreinsa`,selectCaption:`Velja`,signaturePlaceHolder:`KvittaÄu hér`,signaturePlaceHolderReadOnly:`Engin undirskrift`,chooseFileCaption:`Veldu skrá`,takePhotoCaption:`Taka mynd`,photoPlaceholder:`Smelltu á hnappinn hér að neðan til að taka mynd með myndavélinni.`,fileOrPhotoPlaceholder:`Dragðu og slepptu eða veldu skrá til að hlaða upp eða taka mynd með myndavélinni.`,replaceFileCaption:`Skipta út skrá`,removeFileCaption:`Fjarlægðu þessa skrá`,booleanCheckedLabel:`Já`,booleanUncheckedLabel:`Nei`,confirmRemoveFile:`Ertu viss um að þú viljir fjarlægja þessa skrá: {0}?`,confirmRemoveAllFiles:`Ertu viss um að þú viljir fjarlægja allar skrár?`,questionTitlePatternText:`Spurningartitill`,modalCancelButtonText:`Afturkalla`,modalApplyButtonText:`Nota`,filterStringPlaceholder:`Sláðu inn til að leita...`,emptyMessage:`Engin gögn til að birta`,loadingPage:`Hleðsla...`,loadingData:`Hleðsla...`,noEntriesText:`Engar færslur ennþá. 207Smelltu á hnappinn hér að neðan til að bæta við nýrri færslu.`,noEntriesReadonlyText:`Engar færslur`,tabTitlePlaceholder:`Nýtt spjald`,more:`Fleiri`,tagboxDoneButtonCaption:`ÃKEI`,selectToRankEmptyRankedAreaText:`Allir valkostir eru valdir til röðunar`,selectToRankEmptyUnrankedAreaText:`Dragðu val hér til að raða þeim`,ok:`ÃKEI`,cancel:`Afturkalla`,createCustomItem:`Búðu til "{0}" hlut...`,toc:`Efnisyfirlit`,progressbar:`Framvindustika`},nativeName:`Ãslenska`,englishName:`Icelandic`}),gj({localeCode:`id`,strings:{pagePrevText:`Sebelumnya`,pageNextText:`Selanjutnya`,completeText:`Selesai`,previewText:`Pratinjau`,editText:`Sunting`,startSurveyText:`Mulai`,commentText:`Silakan tinggalkan komentar`,otherItemText:`Lainnya (jelaskan)`,noneItemText:`Tidak Ada`,refuseItemText:`Menolak untuk menjawab`,dontKnowItemText:`Tidak tahu`,selectAllItemText:`Pilih Semua`,deselectAllItemText:`Batalkan pilihan semua`,progressText:`Halaman {0} dari {1}`,indexText:`{0} dari {1}`,panelDynamicProgressText:`Rekam {0} dari {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Menjawab pertanyaan {0} / {1}`,emptySurvey:`Tidak ada halaman atau pertanyaan dalam survei.`,completingSurvey:`Terima kasih telah menyelesaikan survei!`,completingSurveyBefore:`Catatan kami menunjukkan bahwa Anda telah menyelesaikan survei ini.`,loadingSurvey:`Memuat survei...`,placeholder:`Pilih...`,ratingOptionsCaption:`Pilih...`,buttongroupOptionsCaption:`Pilih...`,value:`nilai`,requiredError:`Silahkan jawab pertanyaan berikut.`,requiredErrorInPanel:`Silahkan jawab setidaknya satu petanyaan.`,requiredInAllRowsError:`Silahkan jawab pertanyaan pada semua baris.`,eachRowUniqueError:`Setiap baris harus memiliki nilai unik.`,numericError:`Nilai harus berupa angka.`,minError:`Nilainya tidak boleh kurang dari {0}`,stepError:`Masukkan nilai yang cocok dengan ukuran langkah {0}.`,maxError:`Nilai tidak boleh lebih besar dari {0}`,invalidInputError:`Masukan tidak valid`,textNoDigitsAllow:`Nomor tidak diperbolehkan.`,incompletePatternError:`Lengkapi nilai agar sesuai dengan format yang diperlukan.`,textMinLength:`Silahkan masukkan setidaknya {0} karakter.`,textMaxLength:`Silahkan masukkan kurang {0} karakter.`,textMinMaxLength:`PSilahkan masukkan lebih dari {0} dan kurang dari {1} karakter.`,minRowCountError:`Silahkan isi setidaknya {0} baris.`,minSelectError:`Silahkan pilih setidaknya {0} varian.`,maxSelectError:`Silahkan pilih tidak lebih dari {0} varian.`,numericMinMax:`'{0}' harus sama dengan atau lebih dari {1} dan harus sama dengan atau kurang dari {2}`,numericMin:`'{0}' harus sama dengan atau lebih dari {1}`,numericMax:`'{0}' harus sama dengan atau kurang dari {1}
207`,invalidEmail:`Silahkan masukkan e-mail yang benar.`,invalidExpression:`Ekspresi: {0} harus mengembalikan 'benar'.`,urlRequestError:`Permintaan mengembalikan kesalahan '{0}'. {1}`,urlGetChoicesError:`Permintaan mengembalikan data kosong atau properti 'path' salah.`,exceedMaxSize:`Ukuran berkas tidak boleh melebihi {0}.`,fileSizeUnits:`Byte, KB, MB, GB, TB`,exceedMaxFiles:`Jumlah maksimum file yang dapat Anda unggah adalah {0}.`,noUploadFilesHandler:`File tidak dapat diunggah. Harap tambahkan handler untuk acara 'onUploadFiles'.`,otherRequiredError:`Silahkan masukkan nilai lainnnya.`,uploadingFile:`Berkas Anda sedang diunggah. Silahkan tunggu beberapa saat atau coba lagi.`,loadingFile:`Memuat...`,chooseFile:`Pilih berkas...`,noFileChosen:`Tidak ada file yang dipilih`,filePlaceholder:`Seret dan lepas file di sini atau klik tombol di bawah ini untuk memilih file yang akan diunggah.`,confirmDelete:`Apakah Anda ingin menghapus catatan?`,keyDuplicationError:`Nilai harus unik.`,addColumn:`Tambah kolom`,addRow:`Tambah baris`,removeRow:`Hapus`,noRowsText:`Tidak ada baris.`,rowIndexTemplateTitle:`Baris {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Tambah baru`,removePanel:`Hapus`,showDetails:`Tampilkan Detail`,hideDetails:`Sembunyikan Detail`,choices_Item:`barang`,choices_Choice:`Opsi pilihan`,matrix_column:`Kolom`,matrix_row:`Baris`,multipletext_itemname:`Teks`,savingData:`Hasil sedang disimpan pada server...`,savingDataError:`Kesalahan terjadi dan kami tidak dapat menyimpan hasil.`,savingDataSuccess:`Hasil telah sukses disimpan!`,saveAgainButton:`Coba lagi`,timerMin:`menit`,timerSec:`detik`,timerSpentAll:`Anda telah menghabiskan {0} pada halaman ini dan {1} secara keseluruhan.`,timerSpentPage:`YAnda telah menghabiskan {0} pada halaman ini.`,timerSpentSurvey:`Anda telah menghabiskan {0} secara keseluruhan.`,timerLimitAll:`Anda telah menghabiskan {0} dari {1} pada halaman ini dan {2} dari {3} secara keseluruhan.`,timerLimitPage:`Anda telah menghabiskan {0} dari {1} pada halaman ini.`,timerLimitSurvey:`Anda telah menghabiskan {0} dari {1} secara keseluruhan.`,clearCaption:`Bersihkan`,selectCaption:`Pilih`,signaturePlaceHolder:`Tanda tangan di sini`,signaturePlaceHolderReadOnly:`Tidak ada tanda tangan`,chooseFileCaption:`Pilih File`,takePhotoCaption:`Ambil Foto`,photoPlaceholder:`Klik tombol di bawah ini untuk mengambil foto menggunakan kamera.`,fileOrPhotoPlaceholder:`Seret dan lepas atau pilih file untuk diunggah atau mengambil foto menggunakan kamera.`,replaceFileCaption:`Ganti file`,removeFileCaption:`Hapus berkas ini`,booleanCheckedLabel:`Iya`,booleanUncheckedLabel:`Tidak`,confirmRemoveFile:`Anda yakin ingin menghapus file ini: {0}?`,confirmRemoveAllFiles:`Anda yakin ingin menghapus semua file?`,questionTitlePatternText:`Judul pertanyaan`,modalCancelButtonText:`Membatalkan`,modalApplyButtonText:`Berlaku`,filterStringPlaceholder:`Ketik untuk mencari...`,emptyMessage:`Tidak ada data untuk ditampilkan`,loadingPage:`Loading...`,loadingData:`Loa
207ding...`,noEntriesText:`Belum ada entri. 208Klik tombol di bawah ini untuk menambahkan entri baru.`,noEntriesReadonlyText:`Tidak ada entri`,tabTitlePlaceholder:`Panel Baru`,more:`Lebih`,tagboxDoneButtonCaption:`OKE`,selectToRankEmptyRankedAreaText:`Semua pilihan dipilih untuk peringkat`,selectToRankEmptyUnrankedAreaText:`Seret pilihan di sini untuk memberi peringkat`,ok:`OKE`,cancel:`Membatalkan`,createCustomItem:`Buat item "{0}"...`,toc:`Indeks`,progressbar:`Bilah kemajuan`},nativeName:`bahasa indonesia`,englishName:`Indonesian`}),gj({localeCode:`it`,strings:{pagePrevText:`Precedente`,pageNextText:`Successivo`,completeText:`Salva`,previewText:`Anteprima`,editText:`Modifica`,startSurveyText:`Inizio`,commentText:`Si prega di lasciare un commento`,otherItemText:`Altro (descrivi)`,noneItemText:`Nessuno`,refuseItemText:`Rifiuta di rispondere`,dontKnowItemText:`Non lo so`,selectAllItemText:`Seleziona tutti`,deselectAllItemText:`Deseleziona tutto`,progressText:`Pagina {0} di {1}`,indexText:`{0} da {1}`,panelDynamicProgressText:`Record di {0} di {1}`,panelDynamicTabTextFormat:`Pannello {panelIndex}`,questionsProgressText:`Risposte a {0}/{1} domande`,emptySurvey:`Non ci sono pagine o domande visibili nel questionario.`,completingSurvey:`Grazie per aver completato il questionario!`,completingSurveyBefore:`I nostri records mostrano che hai già completato questo questionario.`,loadingSurvey:`Caricamento del questionario in corso...`,placeholder:`Scegli...`,ratingOptionsCaption:`Tocca qui per valutare...`,buttongroupOptionsCaption:`Selezionare...`,value:`valore`,requiredError:`Campo obbligatorio`,requiredErrorInPanel:`Per Favore, rispondi ad almeno una domanda.`,requiredInAllRowsError:`Completare tutte le righe`,eachRowUniqueError:`Ogni riga deve avere un valore univoco.`,numericError:`Il valore deve essere numerico`,minError:`Il valore non deve essere inferiore a {0}`,stepError:`Inserisci un valore che corrisponda alla dimensione del passo di {0}.`,maxError:`Il valore non deve essere maggiore di {0}`,invalidInputError:`Input invalido`,textNoDigitsAllow:`I numeri non sono ammessi.`,incompletePatternError:`Si prega di completare il valore per adattarlo al formato richiesto.`,textMinLength:`Inserire almeno {0} caratteri`,textMaxLength:`Lunghezza massima consentita {0} caratteri`,textMinMaxLength:`Inserire una stringa con minimo {0} e massimo {1} caratteri`,minRowCountError:`Completare almeno {0} righe.`,minSelectError:`Selezionare almeno {0} varianti.`,maxSelectError:`Selezionare massimo {0} varianti.`,numericMinMax:`'{0}' deve essere uguale o superiore a {1} e uguale o inferiore a {2}`,numericMin:`'{0}' deve essere uguale o superiore a {1}`,numericMax:`'{0}' deve essere uguale o inferiore a {1}`,invalidEmail:`Inserire indirizzo mail valido`,invalidExpression:`L'espressione: {0} dovrebbe tornare 'vero'.`,urlRequestError:`La richiesta ha risposto con un errore '{0}'. {1}`,urlGetChoicesError:`La richiesta ha risposto null oppure il percorso non è corretto`,exceedMaxSize:`Il file non può eccedere {0}`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`Il numero massimo di file che puoi caricare è {0}.`,noUploadFilesHandler:`I file non possono essere caricati. Aggiungere un gestore per l'evento 'onUploadFiles'.`,otherRequiredError:`Inserire il valore 'altro'`,uploadingFile:`File in caricamento. Attendi alcuni secondi e riprova`,loadingFile:`Caricamento...`,chooseFile:`Selezionare file(s)...`,noFileChosen:`Nessun file selezionato`,filePlaceholder:`Trascina un file qui o fai clic sul pulsante in basso per caricare il file.`,confirmDelete:`Sei sicuro di voler elminare il record?`,keyDuplicationError:`Questo valore deve essere univoco.`,addColumn:`Aggiungi colonna`,addRow:`Aggiungi riga`,removeRow:`Rimuovi riga`,noRowsText:`Non ci sono righe.`,rowIndexTemplateTitle:`Riga {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Aggiungi riga`,removePanel:`Elimina`,showDetails:`Mostra dettagli`,hideDetails:`Nascondi dettagli`,choices_Item:`Elemento`,choices_Choice:`Opzione di scelta`,matrix_column:`Colonna`,matrix_row:`Riga`,multipletext_itemname:`testo`,savingData:`Salvataggio dati sul server...`,savingDataError:`Si è verificato un errore e non è stato possibile salvare i risultati.`,savingDataSuccess:`I risultati sono stati salvati con successo!`,saveAgainButton:`Riprova`,timerMin:`min`,timerSec:`SEC`,timerSpentAll:`Hai impiegato {0} su questa pagina e {1} in totale.`,timerSpentPage:`Hai impiegato {0} su questa pagina.`,timerSpentSurvey:`Hai impiegato {0} in totale.`,timerLimitAll:`Hai impiegato {0} di {1} su questa pagina e {2} di {3} in totale.`,timerLimitPage:`Hai impiegato {0} di {1} su questa pagina.`,timerLimitSurvey:`Hai impiegato {0} di {1} in totale.`,clearCaption:`Cancella`,selectCaption:`Selezionare`,signaturePlaceHolder:`Firmare qui`,signaturePlaceHolderReadOnly:`Nessuna firma`,chooseFileCaption:`Scegliere il file`,takePhotoCaption:`Scatta foto`,photoPlaceholder:`Fai clic sul pulsante qui sotto per scattare una foto utilizzando la fotocamera.`,fileOrPhotoPlaceholder:`Trascina e rilascia o seleziona un file da caricare o scattare una foto utilizzando la fotocamera.`,replaceFileCaption:`Sostituisci file`,removeFileCaption:`Rimuovere questo file`,booleanCheckedLabel:`Sì`,booleanUncheckedLabel:`No`,confirmRemoveFile:`Sei sicuro di voler elminare questo file: {0}?`,confirmRemoveAllFiles:`Sei sicuro di voler elminare tutti i files?`,questionTitlePatternText:`Titolo della domanda`,modalCancelButtonText:`Annulla`,modalApplyButtonText:`Applicare`,filterStringPlaceholder:`Digita per
208cercare...`,emptyMessage:`Nessun dato da visualizzare`,loadingPage:`Caricamento...`,loadingData:`Caricamento...`,noEntriesText:`Non ci sono ancora voci. 209Fai clic sul pulsante qui sotto per aggiungere una nuova voce.`,noEntriesReadonlyText:`Nessuna voce`,tabTitlePlaceholder:`Nuovo pannello`,more:`Più`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Tutte le scelte sono selezionate per la classificazione`,selectToRankEmptyUnrankedAreaText:`Trascina qui le scelte per classificarle`,ok:`OK`,cancel:`Annulla`,createCustomItem:`Crea un articolo "{0}"...`,toc:`Sommario`,progressbar:`Indicatore`},nativeName:`italiano`,englishName:`Italian`}),gj({localeCode:`ja`,strings:{pagePrevText:`åã¸`,pageNextText:`次ã¸`,completeText:`å®äº`,previewText:`ãã¬ãã¥ã¼`,editText:`ç·¨é`,startSurveyText:`ã¹ã¿ã¼ã`,commentText:`ã³ã¡ã³ããæ®ãã¦ãã ãã`,otherItemText:`ãã®ä»ï¼èª¬æï¼`,noneItemText:`ãªã`,refuseItemText:`åçãæå¦ãã`,dontKnowItemText:`ããããªã`,selectAllItemText:`ãã¹ã¦é¸æ`,deselectAllItemText:`ãã¹ã¦é¸æè§£é¤`,progressText:`ãã¼ã¸{0}/{1}`,indexText:`{1}ã®{0}`,panelDynamicProgressText:`{1}ã®{0}ãè¨é²ãã`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`{0}/{1}ååçæ¸`,emptySurvey:`ã¢ã³ã±ã¼ãã«è¡¨ç¤ºå¯è½ãªè¦ç´ ãããã¾ããã`,completingSurvey:`ã¢ã³ã±ã¼ãã«ãååããã ãããããã¨ããããã¾ãã`,completingSurveyBefore:`ãã®ã¢ã³ã±ã¼ãã¯ãã§ã«åçæ¸ã¿ã§ãã`,loadingSurvey:`ã¢ã³ã±ã¼ããèªã¿è¾¼ãã§ãã¾ã...`,placeholder:`鏿`,ratingOptionsCaption:`鏿ããã`,buttongroupOptionsCaption:`é¸ã¶ããã`,value:`å¤`,requiredError:`åçãå¿ è¦ã§ã`,requiredErrorInPanel:`åçãå¿ è¦ã§ãï¼å°ãªãã¨ã1ã¤ã®è³ªåã«çãã¦ãã ããã`,requiredInAllRowsError:`åçãå¿ è¦ã§ãï¼ãã¹ã¦ã®è¡ã®è³ªåã«çãã¦ãã ããã`,eachRowUniqueError:`åè¡ã«ä¸æã®å¤ãå ¥åãã¦ãã ããã`,numericError:`æ°åã§ãè¨å ¥ä¸ãã`,minError:`å¤ã¯ {0} 以ä¸ã§ããå¿ è¦ãããã¾ã`,stepError:`{0}ã®ã¹ããããµã¤ãºã«ä¸è´ããå¤ãå ¥åãã¦ãã ããã`,maxError:`å¤ã¯ {0} 以ä¸ã§ããå¿ è¦ãããã¾ã`,invalidInputError:`ç¡å¹ãªå ¥å`,textNoDigitsAllow:`æ°åã¯ä½¿ç¨ã§ãã¾ããã`,incompletePatternError:`å¿ è¦ãªãã©ã¼ãããã«åãããã«å¤ãè¨å ¥ãã¦ãã ããã`,textMinLength:`å°ãªãã¨ã {0} æåãå ¥åãã¦ãã ããã`,textMaxLength:`{0} æå以å ã§å ¥åãã¦ãã ããã`,textMinMaxLength:`{0} æåä»¥ä¸ {1} æå以å ã§å ¥åãã¦ãã ããã`,minRowCountError:`å°ãªãã¨ã {0} è¡ãå ¥åãã¦ãã ããã`,minSelectError:`å°ãªãã¨ã {0} åã®ãªãã·ã§ã³ã鏿ãã¦ãã ããã`,maxSelectError:`{0} å以ä¸ã®é¸æè¢ã鏿ãã¦ãã ããã`,numericMinMax:`'{0}' 㯠{1} ä»¥ä¸ {2} 以ä¸ã§ããå¿ è¦ãããã¾ã`,numericMin:`'{0}' 㯠{1} 以ä¸ã§ããå¿ è¦ãããã¾ã`,numericMax:`'{0}' 㯠{1} 以ä¸ã§ããå¿ è¦ãããã¾ã`,invalidEmail:`æå¹ãªã¡ã¼ã«ã¢ãã¬ã¹ãå ¥åãã¦ãã ããã`,invalidExpression:`å¼: {0} 㯠'true' ãè¿ãå¿ è¦ãããã¾ãã`,urlRequestError:`ãªã¯ã¨ã¹ãã¯ã¨ã©ã¼ '{0}' ãè¿ãã¾ããã{1}`,urlGetChoicesError:`ãªã¯ã¨ã¹ãã空ã®ãã¼ã¿ãè¿ãããã'path' ããããã£ãæ£ããããã¾ããã`,exceedMaxSize:`ãã¡ã¤ã«ã®ãµã¤ãºã¯{0}ãè¶ ãã¦ã¯ããã¾ãã`,fileSizeUnits:`ãã¤ãæ°ãKBãMBãGBãTB`,exceedMaxFiles:`ã¢ãããã¼ãã§ãããã¡ã¤ã«ã®æå¤§æ°ã¯{0}ã§ãã`,noUploadFilesHandler:`ãã¡ã¤ã«ã¯ã¢ãããã¼ãã§ãã¾ããããonUploadFilesãã¤ãã³ãã®ãã³ãã©ã¼ã追å ãã¦ãã ããã`,otherRequiredError:`åçãå¿ è¦ã§ãï¼ä»ã®å¤ãå ¥åãã¦ãã ããã`,uploadingFile:`ãã¡ã¤ã«ãã¢ãããã¼ãä¸ã§ãããã°ãããã¦ããå度ã試ãä¸ãã`,loadingFile:`èªã¿è¾¼ã¿ä¸`,chooseFile:`ãã¡ã¤ã«ã鏿`,noFileChosen:`鏿ããããã¡ã¤ã«ã¯ããã¾ãã`,filePlaceholder:`ããã«ãã¡ã¤ã«ããã©ãã°ã¢ã³ãããããããããä¸ã®ãã¿ã³ãã¯ãªãã¯ãã¦ã¢ãããã¼ããããã¡ã¤ã«ã鏿ãã¾ãã`,confirmDelete:`ã¬ã³ã¼ããåé¤ãã¾ããï¼`,keyDuplicationError:`ãã®å¤ã¯ä¸æã§ãªããã°ãªãã¾ããã`,addColumn:`åã®è¿½å `,addRow:`追å è¡`,removeRow:`åé¤`,noRowsText:`è¡ãããã¾ããã`,rowIndexTemplateTitle:`è¡ {rowIndex}`,rowNameTemplateTitle:`{rowTitle}
209`,addPanel:`æ°è¦è¿½å `,removePanel:`åé¤`,showDetails:`詳細ã表示`,hideDetails:`詳細ãé表示`,choices_Item:`é ç®`,choices_Choice:`鏿ãªãã·ã§ã³`,matrix_column:`å`,matrix_row:`è¡`,multipletext_itemname:`ããã¹ã`,savingData:`çµæãä¿åä¸...ã`,savingDataError:`ã¨ã©ã¼ãçºçããçµæãä¿åã§ãã¾ããã§ããã`,savingDataSuccess:`çµæãæ£å¸¸ã«ä¿åããã¾ãã`,saveAgainButton:`ããä¸åº¦è©¦ãã¦ã¿ã¦ãã ããã`,timerMin:`å å°`,timerSec:`ã»ãã¯`,timerSpentAll:`ããªãã¯ãã®ãã¼ã¸ã«{0}ãè²»ãããåè¨ã§{1}ãè²»ããã¾ããã`,timerSpentPage:`ããªãã¯ãã®ãã¼ã¸ã«{0}ãè²»ããã¾ããã`,timerSpentSurvey:`åè¨ã§{0}ã使ã£ããã¨ã«ãªãã¾ãã`,timerLimitAll:`ãã®ãã¼ã¸ã«{1}ã®ãã¡{0}ãè²»ããã{3}ã®ãã¡{2}ãåè¨ã§è²»ããã¾ããã`,timerLimitPage:`ãã®ãã¼ã¸ã§{1}ã®{0}ã使ã£ããã¨ãããã¾ãã`,timerLimitSurvey:`åè¨ã§{1}ã®{0}ã使ã£ããã¨ãããã¾ãã`,clearCaption:`空ç½`,selectCaption:`é¸ã¶`,signaturePlaceHolder:`ããã«ç½²å`,signaturePlaceHolderReadOnly:`ç½²åãªã`,chooseFileCaption:`ãã¡ã¤ã«ã鏿`,takePhotoCaption:`åçãæ®ã`,photoPlaceholder:`ä¸ã®ãã¿ã³ãã¯ãªãã¯ãã¦ã«ã¡ã©ã§åçãæ®å½±ãã¦ãã ããã`,fileOrPhotoPlaceholder:`ãã¡ã¤ã«ããã©ãã°ï¼ããããã¾ãã¯é¸æãã¦ã¢ãããã¼ãããããã«ã¡ã©ã§åçãæ®å½±ãã¦ãã ããã`,replaceFileCaption:`ãã¡ã¤ã«ãç½®æ`,removeFileCaption:`ãã®ãã¡ã¤ã«ãåé¤`,booleanCheckedLabel:`ã¯ã`,booleanUncheckedLabel:`ããã`,confirmRemoveFile:`ãã®ãã¡ã¤ã«ãåé¤ãã¦ãããããã§ããï¼{0}?`,confirmRemoveAllFiles:`ãã¹ã¦ã®ãã¡ã¤ã«ãåé¤ãã¦ãããããã§ããï¼`,questionTitlePatternText:`質åã®ã¿ã¤ãã«`,modalCancelButtonText:`ãã£ã³ã»ã«`,modalApplyButtonText:`ç³ãè¾¼ã`,filterStringPlaceholder:`æ¤ç´¢ããã¿ã¤ã...`,emptyMessage:`表示ãããã¼ã¿ãããã¾ãã`,loadingPage:`ç©è¼ããã`,loadingData:`ç©è¼ããã`,noEntriesText:`ã¾ã ã¨ã³ããªã¼ã¯ããã¾ããã 210ä¸ã®ãã¿ã³ãã¯ãªãã¯ãã¦ãæ°ããã¨ã³ããªã追å ãã¾ãã`,noEntriesReadonlyText:`ã¨ã³ããªãªã`,tabTitlePlaceholder:`æ°ããããã«`,more:`ç¶ããè¦ã`,tagboxDoneButtonCaption:`ãããã¾ãã`,selectToRankEmptyRankedAreaText:`ãã¹ã¦ã®é¸æè¢ãã©ã³ãã³ã°ç¨ã«é¸æããã¾ã`,selectToRankEmptyUnrankedAreaText:`鏿è¢ãããã«ãã©ãã°ãã¦ã©ã³ã¯ä»ããã¾ã`,ok:`ãããã¾ãã`,cancel:`ãã£ã³ã»ã«`,createCustomItem:`ã{0}ãã¢ã¤ãã ã使...`,toc:`ç®æ¬¡`,progressbar:`é²è¡ç¶æ³ãã¼`},nativeName:`æ¥æ¬èª`,englishName:`Japanese`}),gj({localeCode:`kk`,strings:{pagePrevText:`ÐÑÑÒа`,pageNextText:`ÐелеÑÑ`,completeText:`ÐайÑн`,previewText:`ÐлдÑн ала ÒаÑаÑ`,editText:`РедакÑиÑлаÑ`,startSurveyText:`ÐаÑÑаÑ`,commentText:`ТүÑÑнÑкÑÐµÐ¼ÐµÐ½Ñ ÒалдÑÑÑÑÒ£ÑÐ·Ð´Ñ ÑÒ±ÑаймÑн`,otherItemText:`ÐаÑÒа (Ó©ÑÑнемÑз, жазÑÒ£Ñз)`,noneItemText:`ÐоÒ`,refuseItemText:`ÐаÑап беÑÑден Ð±Ð°Ñ ÑаÑÑÑ`,dontKnowItemText:`ÐÑлмеймÑн`,selectAllItemText:`ÐаÑлÑÒÑн ÑаңдаÑ`,deselectAllItemText:`ÐаÑлÑÒÑн жоÒÒа ÑÑÒаÑÑ`,progressText:`{0} ден {1} Ð±ÐµÑ `,indexText:`{1} {0}`,panelDynamicProgressText:`{0} ден {1} жазба`,panelDynamicTabTextFormat:`ÐÐ°Ð½ÐµÐ»Ñ {panelIndex}`,questionsProgressText:`{0}/{1} ÑÒ±ÑаÒÑаÑÒа жаÑап`,emptySurvey:`ÐÑÑ Ð´Ðµ бÑÑ ÑÒ±ÑÐ°Ò Ð¶Ð¾Ò.`,completingSurvey:`СаÑÐ°Ð»Ð½Ð°Ð¼Ð°Ð½Ñ ÑолÑÑÑÒанÑÒ£Ñз Ò¯ÑÑн ÑÐ°Ñ Ð¼ÐµÑ!`,completingSurveyBefore:`СÑз бұл ÑаÑÐ°Ð»Ð½Ð°Ð¼Ð°Ð½Ñ Ó©ÑÑп ÒойдÑÒ£Ñз.`,loadingSurvey:`СеÑвеÑден жүкÑеÑ...`,placeholder:`ТаңдаÑ...`,ratingOptionsCaption:`ТаңдаÑ...`,buttongroupOptionsCaption:`ТаңдаÑ...`,value:`мÓнÑ`,requiredError:`Ó¨ÑÑнемÑз, ÑÒ±ÑаÒÒа жаÑап беÑÑÒ£Ñз.`,requiredErrorInPanel:`Ó¨ÑÑнемÑз, кем дегенде бÑÑ ÑÒ±ÑаÒÒа жаÑап беÑÑÒ£Ñз.`,requiredInAllRowsError:`Ó¨ÑÑнемÑз, ÓÑбÑÑ Ð¶Ð¾Ð»Ð´ÑÒ£ ÑÒ±ÑаÒÐ°Ð½Ñ Ð¶Ð°Ñап беÑÑÒ£Ñз.`,eachRowUniqueError:`ÓÑ Ð¶Ð¾Ð»Ð´ÑÒ£ бÑÑегей мÓÐ½Ñ Ð±Ð¾Ð»ÑÑ ÑиÑÑ.`,numericError:`ÐаÑап Ñан ÑÒ¯ÑÑнде болÑÑ ÐºÐµÑек.`,minError:`ÐÓÐ½Ñ {0} кем болмаÑÑ ÑиÑÑ`,stepError:`Òадам өлÑемÑне ÑÓÐ¹ÐºÐµÑ ÐºÐµÐ»ÐµÑÑн мÓÐ½Ð´Ñ {0}.`,maxError:`ÐÓн {0} аÑÑÑÒ Ð±Ð¾Ð»Ð¼Ð°ÑÑ ÑиÑÑ`,invalidInputError:`ÐаÑамÑÑз енгÑзÑ`,textNoDigitsAllow:`ÐөмÑÑлеÑÐ´Ñ Ð±ÐµÑÑге жол беÑÑлмейдÑ.`,incompletePatternError:`ÒажеÑÑÑ ÑоÑмаÑÒа ÑÓÐ¹ÐºÐµÑ Ð¼ÓÐ½Ð´Ñ ÑолÑÑÑÑÒ£Ñз.`,textMinLength:`Ó¨ÑÑнемÑз, {0} ден көп Ñаңба енгÑзÑÒ£Ñз.`,textMaxLength:`Ó¨ÑÑнемÑз, {0} ден аз Ñаңба енгÑзÑÒ£Ñз.`,textMinMaxLength:`Ó¨ÑÑнемÑз, {0} аз жÓне {1} көп Ñаңба енгÑзÑÒ£Ñз.`,minRowCountError:`Ó¨ÑÑнемÑз, {0} ден кем ÐµÐ¼ÐµÑ Ð¶Ð¾Ð» ÑолÑÑÑÑÒ£Ñз.`,minSelectError:`Ó¨ÑÑнемÑз, ÑÑм болмаÑа {0} нұÑÒа ÑаңдаңÑз.`,maxSelectError:`Ó¨ÑÑнемÑз, {0} нұÑÒадан көп ÑаңдамаңÑз.`,numericMinMax:`'{0}' {1} ден кем ÐµÐ¼ÐµÑ Ð¶Óне {2} ден көп ÐµÐ¼ÐµÑ Ð±Ð¾Ð»Ñ ÐºÐµÑек`,numericMin:`'{0}' {1} ден кем ÐµÐ¼ÐµÑ Ð±Ð¾Ð»Ñ ÐºÐµÑек`,numericMax:`'{0}' {1} ден көп ÐµÐ¼ÐµÑ Ð±Ð¾Ð»Ñ ÐºÐµÑек`,invalidEmail:`Ó¨ÑÑнемÑз, жаÑÐ°Ð¼Ð´Ñ ÑлекÑÑондÑÒ Ð¿Ð¾ÑÑаңÑÐ·Ð´Ñ ÐµÐ½Ð³ÑзÑÒ£Ñз.`,invali
210dExpression:`{0} Ó©ÑÐ½ÐµÐ³Ñ 'true' ÒайÑаÑÑ ÐºÐµÑек.`,urlRequestError:`СұÑаÑÑм ÒаÑелÑкÑÑ ÒайÑаÑдÑ'{0}'. {1}`,urlGetChoicesError:`СұÑаÑÑмÒа жаÑап Ð±Ð¾Ñ ÐºÐµÐ»Ð´Ñ Ð½ÐµÐ¼ÐµÑе 'path' ÒаÑиеÑÑ ÒаÑе көÑÑеÑÑлген `,exceedMaxSize:`ФайлдÑÒ£ мөлÑеÑÑ {0} аÑÐ¿Ð°Ñ ÐºÐµÑек.`,fileSizeUnits:`ÐайÑÑаÑ, KB, MB, GB, TB`,exceedMaxFiles:`ÐүкÑей алаÑÑн ÑайлдаÑдÑÒ£ ең көп ÑÐ°Ð½Ñ {0}.`,noUploadFilesHandler:`ФайлдаÑÐ´Ñ ÐºÐµÑÑ Ð¶Ò¯ÐºÑÐµÑ Ð¼Ò¯Ð¼ÐºÑн емеÑ. 'OnUploadFiles' оÒиÒаÑÑна өңдеÑÑÑÐ½Ñ ÒоÑÑÑÒ£ÑÐ·Ð´Ñ ÑÒ±ÑаймÑз.`,otherRequiredError:`Ó¨ÑÑнемÑз, âÐаÑÒаâ жолÑна деÑекÑÑ ÐµÐ½Ð³ÑзÑÒ£Ñз`,uploadingFile:`СÑздÑÒ£ ÑайлÑÒ£Ñз жүкÑелÑп жаÑÑÑ. ÐÑÑнеÑе ÑекÑнд ÑоÑÑп, ÒайÑадан байÒап көÑÑÒ£Ñз.`,loadingFile:`ÐүкÑеÑ...`,chooseFile:`ФайлдаÑÐ´Ñ ÑаңдаңÑз...`,noFileChosen:`Файл ÑаңдалÑнбадÑ`,filePlaceholder:`Ð¤Ð°Ð¹Ð»Ð´Ñ Ð¾ÑÑ Ð¶ÐµÑге апаÑÑп ÑаÑÑаңÑз немеÑе кеÑÑ Ð¶Ò¯ÐºÑÐµÑ Ò¯ÑÑн ÑÐ°Ð¹Ð»Ð´Ñ ÑÐ°Ò£Ð´Ð°Ñ Ò¯ÑÑн ÑÓ©Ð¼ÐµÐ½Ð´ÐµÐ³Ñ Ð±Ð°ÑÑÑманÑÒ£ аÑÑÑн баÑÑÒ£Ñз.`,confirmDelete:`СÑз Ð¶Ð°Ð·Ð±Ð°Ð½Ñ Ð¶Ð¾ÑÑÑнÑÒ£ÑзÒа ÑенÑмдÑÑÑз бе?`,keyDuplicationError:`Ðұл мÓн бÑÑегей Ð±Ð¾Ð»Ñ ÐºÐµÑек.`,addColumn:`ÐаÒана ÒоÑÑ`,addRow:`ÐÐ¾Ð»Ð´Ñ ÒоÑÑ`,removeRow:`Ó¨ÑÑÑÑ`,noRowsText:`ÒаÑаÑÐ»Ð°Ñ Ð¶Ð¾Ò.`,rowIndexTemplateTitle:`Ðол {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Ðаңа ÒоÑÑ`,removePanel:`Ó¨ÑÑÑÑ`,showDetails:`Ðгжей-ÑегжейÑн көÑÑеÑÑ`,hideDetails:`Ðгжей- ÑегжейÑн жаÑÑ`,choices_Item:`ÐÒ±ÑÒа`,choices_Choice:`Ð¢Ð°Ò£Ð´Ð°Ñ Ð¿Ð°ÑамеÑÑÑ`,matrix_column:`ÐаÒана`,matrix_row:`Ðол`,multipletext_itemname:`мÓÑÑн`,savingData:`ÐÓÑÐ¸Ð¶ÐµÐ»ÐµÑ ÑеÑвеÑде ÑаÒÑаладÑ...`,savingDataError:`ÒаÑелÑк ÑÑÑндадÑ, нÓÑиже ÑаÒÑалÑнбадÑ.`,savingDataSuccess:`ÐÓÑиже ойдаÒÑдай ÑаÒÑалдÑ!`,saveAgainButton:`ÒайÑадан байÒап көÑÑ`,timerMin:`мин`,timerSec:`Ñек`,timerSpentAll:`СÑз бұл беÑÑе {0} кеÑÑÑдÑÒ£Ñз жÓне баÑлÑÒÑ {1}.`,timerSpentPage:`СÑз бұл беÑÑе {0} кеÑÑÑдÑÒ£Ñз.`,timerSpentSurvey:`СÑз ÑаÑалнама кезÑнде {0} кеÑÑÑдÑÒ£Ñз.`,timerLimitAll:`СÑз бұл беÑÑе {0} ден {1} кеÑÑÑдÑÒ£Ñз жÓне {2} ден {3} бүкÑл ÑаÑалнама Ò¯ÑÑн.`,timerLimitPage:`СÑз бұл беÑÑе {0} ден {1} кеÑÑÑдÑÒ£Ñз.`,timerLimitSurvey:`СÑз бүкÑл ÑаÑалнама Ò¯ÑÑн {0} ден {1} кеÑÑÑдÑÒ£Ñз `,clearCaption:`ТазалаÑ`,selectCaption:`ТаңдаÑ`,signaturePlaceHolder:`ÐÑÑнда кÑÑÑ`,signaturePlaceHolderReadOnly:`ÒолдÑÒ£ No`,chooseFileCaption:`Файл ÑаңдаңÑз`,takePhotoCaption:`ФоÑоÑÑÑеÑке ÑÒ¯ÑÑ`,photoPlaceholder:`ÐамеÑÐ°Ð½Ñ Ð¿Ð°Ð¹Ð´Ð°Ð»Ð°Ð½Ñп ÑÑÑеÑке ÑÒ¯ÑÑ Ò¯ÑÑн ÑÓ©Ð¼ÐµÐ½Ð´ÐµÐ³Ñ ÑÒ¯Ð¹Ð¼ÐµÐ½Ñ Ð±Ð°ÑÑÒ£Ñз.`,fileOrPhotoPlaceholder:`ФоÑоаппаÑаÑÑÑ Ð¿Ð°Ð¹Ð´Ð°Ð»Ð°Ð½Ñп кеÑÑ Ð¶Ò¯ÐºÑÐµÑ Ð½ÐµÐ¼ÐµÑе ÑÑÑеÑке ÑÒ¯ÑÑÑÑ Ò¯ÑÑн ÑÐ°Ð¹Ð»Ð´Ñ Ð°Ð¿Ð°ÑÑп ÑаÑÑаÑÒ£Ñз немеÑе ÑаңдаңÑз.`,replaceFileCaption:`Ð¤Ð°Ð¹Ð»Ð´Ñ Ð°ÑÑÑÑÑÑÑ`,removeFileCaption:`Ð¤Ð°Ð¹Ð»Ð´Ñ Ð¶Ð¾Ð¹ÑÒ£Ñз`,booleanCheckedLabel:`ÐÓ`,booleanUncheckedLabel:`ÐоÒ`,confirmRemoveFile:`СÑз бұл ÑÐ°Ð¹Ð»Ð´Ñ Ð¶Ð¾ÑÑÑнÑÒ£ÑзÒа ÑенÑмдÑÑÑз бе: {0}?`,confirmRemoveAllFiles:`СÑз баÑлÑÒ ÑайлдаÑÐ´Ñ Ð¶Ð¾ÑÑÑнÑÒ£ÑзÒа ÑенÑмдÑÑÑз бе?`,questionTitlePatternText:`СұÑаÒÑÑÒ£ аÑаÑÑ`,modalCancelButtonText:`ÐолдÑÑмаÑ`,modalApplyButtonText:`ÒолданÑ`,filterStringPlaceholder:`ÐÐ·Ð´ÐµÑ Ò¯ÑÑн ÑеÑÑÒ£Ñз...`,emptyMessage:`ÐÓ©ÑÑеÑÑлеÑÑн деÑекÑÐµÑ Ð¶Ð¾Ò`,loadingPage:`ÐүкÑеÑ...`,loadingData:`ÐүкÑеÑ...`,noEntriesText:`ÓзÑÑге Ð¶Ð°Ð·Ð±Ð°Ð»Ð°Ñ Ð¶Ð¾Ò. 211Ðаңа Ð¶Ð°Ð·Ð±Ð°Ð½Ñ ÒоÑÑ Ò¯ÑÑн ÑÓ©Ð¼ÐµÐ½Ð´ÐµÐ³Ñ ÑүймеÑÑгÑÒ£Ð´Ñ Ð±Ð°ÑÑÒ£Ñз.`,noEntriesReadonlyText:`ÐÐ°Ð·Ð±Ð°Ð»Ð°Ñ Ð¶Ð¾Ò`,tabTitlePlaceholder:`Ðаңа панелÑ`,more:`ÒоÑÑмÑа`,tagboxDoneButtonCaption:`ÐÐÒСЫ`,selectToRankEmptyRankedAreaText:`ÐаÑлÑÒ ÑаңдаÑÐ»Ð°Ñ ÑейÑингке ÑаңдаладÑ`,selectToRankEmptyUnrankedAreaText:`ТаңдаÑÐ»Ð°Ñ ÑанÑн оÑÑнда апаÑÑÒ£Ñз`,ok:`ÐÐÒСЫ`,cancel:`ÐолдÑÑмаÑ`,createCustomItem:`«{0}» ÑлеменÑÑн жаÑаÑ...`,toc:`Ðазмұн кеÑÑеÑÑ`,progressbar:`ÐÑогÑеÑÑ ÑаÒÑаÑÑ`},nativeName:`kazakh`,englishName:`Kazakh`}),gj({localeCode:`ko`,strings:{pagePrevText:`ì´ì `,pageNextText:`ë¤ì`,completeText:`ìë£`,previewText:`미리보기`,editText:`ìì `,startSurveyText:`ìì`,commentText:`ì½ë©í¸ë¥¼ ë¨ê²¨ì£¼ì¸ì`,otherItemText:`기í (ì¤ëª )`,noneItemText:`ìì`,refuseItemText:`ëëµ ê±°ë¶`,dontKnowItemText:`모르ë¤`,selectAllItemText:`모ë ì í`,deselectAllItemText:`모ë ì í í´ì `,progressText:`íì´ì§ {1} / {0}`,indexText:`{0} / {1}`,panelDynamicProgressText:`{0} / {1}`,panelDynamicTabTextFormat:`í¨ë {panelIndex}`,questionsProgressText:`{0} / {1} ê°ì ì§ë¬¸ì ëµë³í¨`,emptySurvey:`ì¤ë¬¸ì§ì ë³´ì¬ì§ë íì´ì§ë ì§ë¬¸ì´ ììµëë¤.`,completingSurvey:`ì¤ë¬¸ì¡°ì¬ë¥¼ ìë£í´ 주ì ì ê°ì¬í©ëë¤.`,completingSurveyBefore:`기ë¡ì ë°ë¥´ë©´ ì´ë¯¸ ì¤ë¬¸ ì¡°ì¬ë¥¼ ë§ì¹ì ¨ìµëë¤.`,loadingSurvey:`ì¤ë¬¸ì¡°ì¬ê° ë¡ëì¤ì ëë¤...`,placeholder:`ì í...`,ratingOptionsCaption:`ë±ê¸ì ë§¤ê¸°ë ¤ë©´ ë르ì¸ì.`,buttongroupOptionsCaption:`ê³ ë¥´ë¤...`,value:`ê°`,requiredError:`ì§ë¬¸ì ëµíìì¤.`,requiredErrorInPanel:`íë ì´ìì ì§ë¬¸ì ëµíììì¤.`,requiredInAllRowsError:`모ë íì ìë ì§ë¬¸ì ëµíììì¤.`,eachRowUniqueError:`ê° íìë ê³ ì í ê°ì´ ìì´ì¼ í©ëë¤.`,numericError:`ê°ì ì«ìì¬ì¼ í©ëë¤.`,minError:`ê°ì {0}ë³´ë¤ ìì¼ë©´ ìë©ëë¤.`,stepError:`{0}ì ì¤í í¬ê¸°ì ì¼ì¹íë ê°ì ì ë ¥íììì¤.`,maxError:`ê°ì {0}
211ë³´ë¤ í´ ì ììµëë¤.`,invalidInputError:`ì못ë ì
ë ¥`,textNoDigitsAllow:`ì«ìë íì©ëì§ ììµëë¤.`,incompletePatternError:`íìí íìì ë§ê² ê°ì ìì±í´ 주ì¸ì.`,textMinLength:`ëµë³ì 길ì´ë ìµì {0}ìì¬ì¼ ì
ëë¤.`,textMaxLength:`ëµë³ì 길ì´ë {0}ì를 ì´ê³¼ í ì ììµëë¤.`,textMinMaxLength:`ëµë³ì 길ì´ë {0} - {1}ì ì¬ì´ì¬ì¼ í©ëë¤.`,minRowCountError:`ìµì {0}ê°ì íì ì±ì°ììì¤`,minSelectError:`ìµì {0}ê°ì ë³ì를 ì ííììì¤.`,maxSelectError:`ìµë {0}ê°ì ë³ì를 ì ííììì¤.`,numericMinMax:`'{0}'ì {1}ë³´ë¤ í¬ê±°ë ê°ê³ {2}ë³´ë¤ ìê±°ë ê°ìì¼í©ëë¤.`,numericMin:`'{0}'ì {1}ë³´ë¤ í¬ê±°ë ê°ìì¼í©ëë¤.`,numericMax:`'{0}'ì {1}ë³´ë¤ ìê±°ë ê°ìì¼í©ëë¤.`,invalidEmail:`ì¬ë°ë¥¸ ì´ë©ì¼ 주ì를 ì
ë ¥íììì¤.`,invalidExpression:`ííì: {0}ì 'ì°¸'ì´ì´ì¼ í©ëë¤.`,urlRequestError:`'{0}'ì¼ë¡ ì못ë ìì²ì
ëë¤. {1}`,urlGetChoicesError:`ë¹ì´ìë ë°ì´í°ë¥¼ ìì²íê±°ë ì못ë ìì±ì ê²½ë¡ì
ëë¤.`,exceedMaxSize:`íì¼ í¬ê¸°ê° {0}ì ì´ê³¼ í ì ììµëë¤.`,fileSizeUnits:`ë°ì´í¸, KB, MB, GB, TB`,exceedMaxFiles:`ì
ë¡ëí ì ìë ìµë íì¼ ìë {0}ì
ëë¤.`,noUploadFilesHandler:`íì¼ì ì
ë¡ëí ì ììµëë¤. 'onUploadFiles'ì´ë²¤í¸ì ëí í¸ë¤ë¬ë¥¼ ì¶ê°íììì¤.`,otherRequiredError:`ë¤ë¥¸ ì§ë¬¸ì ìì±íììì¤.`,uploadingFile:`íì¼ ì
ë¡ë ì¤ì
ëë¤. ì ì í ë¤ì ìëíììì¤.`,loadingFile:`ë¡ë ì¤...`,chooseFile:`íì¼ ì í...`,noFileChosen:`ì íë íì¼ì´ ììµëë¤.`,filePlaceholder:`íì¼ì
211 ì¬ê¸°ì ëê±°ë ìë ë²í¼ì í´ë¦íì¬ íì¼ì ë¶ë¬ì¤ì¸ì.`,confirmDelete:`기ë¡ì ìì íìê² ìµëê¹?`,keyDuplicationError:` ì´ ê°ì ê³ ì í´ì¼í©ëë¤.`,addColumn:`ì´ ì¶ê°`,addRow:`í ì¶ê°`,removeRow:`ì ê±°`,noRowsText:`íì´ ììµëë¤.`,rowIndexTemplateTitle:`í {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`ì¶ê°`,removePanel:`ì ê±°`,showDetails:`ì¸ë¶ ì ë³´ íì`,hideDetails:`ì¸ë¶ ì ë³´ ì¨ê¸°ê¸°`,choices_Item:`í목`,choices_Choice:`ì í ìµì `,matrix_column:`ì´`,matrix_row:`í`,multipletext_itemname:`í ì¤í¸`,savingData:`ê²°ê³¼ê° ìë²ì ì ì¥ ì¤ì ëë¤...`,savingDataError:`ì¤ë¥ê° ë°ìíì¬ ê²°ê³¼ë¥¼ ì ì¥í ì ììµëë¤.`,savingDataSuccess:`ê²°ê³¼ê° ì±ê³µì ì¼ë¡ ì ì¥ëììµëë¤.`,saveAgainButton:`ë¤ì ìëíì¸ì.`,timerMin:`ë¶`,timerSec:`ì´`,timerSpentAll:`íì¬ íì´ì§ìì {0}ì ììí´ ì´ {1}ì´ ê±¸ë ¸ìµëë¤.`,timerSpentPage:`íì¬ íì´ì§ìì {0}ì´ ê±¸ë ¸ìµëë¤.`,timerSpentSurvey:`ì´ {0}ì´ ê±¸ë ¸ìµëë¤.`,timerLimitAll:`íì¬ íì´ì§ìì {0}/{1}ì ììí´ ì´ {2}/{3}ì´ ê±¸ë ¸ìµëë¤.`,timerLimitPage:`íì¬ íì´ì§ìì {0}/{1}ì´ ê±¸ë ¸ìµëë¤.`,timerLimitSurvey:`ì´ {0}/{1}ì´ ê±¸ë ¸ìµëë¤.`,clearCaption:`ì§ì°ê¸°`,selectCaption:`ê³ ë¥´ë¤`,signaturePlaceHolder:`ìëª íì¸ì.`,signaturePlaceHolderReadOnly:`ìëª ìì`,chooseFileCaption:`íì¼ ì í`,takePhotoCaption:`ì¬ì§ ì°ê¸°`,photoPlaceholder:`ìë ë²í¼ì í´ë¦íì¬ ì¹´ë©ë¼ë¡ ì¬ì§ì ì°ìµëë¤.`,fileOrPhotoPlaceholder:`ì ë¡ëí íì¼ì ëëê·¸ ì¤ ëë¡íê±°ë ì ííê±°ë ì¹´ë©ë¼ë¥¼ ì¬ì©íì¬ ì¬ì§ì ì°ìµëë¤.`,replaceFileCaption:`íì¼ ë°ê¾¸ê¸°`,removeFileCaption:`íì¼ ì ê±°`,booleanCheckedLabel:`ì`,booleanUncheckedLabel:`ìëì¤`,confirmRemoveFile:`{0} íì¼ì ì ê±° íìê² ìµëê¹?`,confirmRemoveAllFiles:`모ë íì¼ì ì ê±° íìê² ìµëê¹?`,questionTitlePatternText:`ì§ë¬¸ ì 목`,modalCancelButtonText:`ì·¨ì`,modalApplyButtonText:`ì ì©`,filterStringPlaceholder:`ê²ì ì í...`,emptyMessage:`íìí ë°ì´í°ê° ììµëë¤.`,loadingPage:`ë¡ë...`,loadingData:`ë¡ë...`,noEntriesText:`ìì§ íëª©ì´ ììµëë¤. 212ì í목ì ì¶ê°íë ¤ë©´ ìë ë²í¼ì í´ë¦íì¸ì.`,noEntriesReadonlyText:`í목 ìì`,tabTitlePlaceholder:`ì í¨ë`,more:`ë보기`,tagboxDoneButtonCaption:`ê·¸ë`,selectToRankEmptyRankedAreaText:`모ë ì í íëª©ì´ ìì를 ìí´ ì íë©ëë¤.`,selectToRankEmptyUnrankedAreaText:`ì í í목ì ì¬ê¸°ë¡ ëëê·¸íì¬ ìì를 매ê¹ëë¤`,ok:`ê·¸ë`,cancel:`ì·¨ì`,createCustomItem:`"{0}" í목 ë§ë¤ê¸°...`,toc:`목차`,progressbar:`ì§íë¥ íìì¤`},nativeName:`íêµì´`,englishName:`Korean`}),gj({localeCode:`lv`,strings:{pagePrevText:`IepriekÅ¡Äja lapa`,pageNextText:`NÄkamÄ lapa`,completeText:`Iesniegt`,previewText:`PriekÅ¡skatÄ«jums`,editText:`RediÄ£Ät`,startSurveyText:`SÄkt`,commentText:`LÅ«dzu, atstÄjiet komentÄru`,otherItemText:`Cits (lÅ«dzu, aprakstiet!)`,noneItemText:`Nav`,refuseItemText:`Atteikties atbildÄt`,dontKnowItemText:`Es nezinu`,selectAllItemText:`IzvÄlÄties visus`,deselectAllItemText:`NoÅemt atlasi visiem`,progressText:`{0}. lapa no {1}`,indexText:`{0} no {1}`,panelDynamicProgressText:`IerakstÄ«t {0} no {1}`,panelDynamicTabTextFormat:`Panelis {panelIndex}`,questionsProgressText:`AtbildÄts uz {0} / {1} jautÄjumiem`,emptySurvey:`Nav neviena jautÄjuma.`,completingSurvey:`Pateicamies Jums par anketas aizpildīšanu!`,completingSurveyBefore:`MÅ«su ieraksti liecina, ka JÅ«s jau esat aizpildÄ«jis Å¡o aptauju.`,loadingSurvey:`IelÄde no servera...`,placeholder:`IzvÄlÄties...`,ratingOptionsCaption:`Nospiediet Å¡eit, lai novÄrtÄtu...`,buttongroupOptionsCaption:`Atlasiet...`,value:`VÄrtÄ«ba`,requiredError:`LÅ«dzu, atbildiet uz jautÄjumu!`,requiredErrorInPanel:`LÅ«dzu, atbildiet uz vismaz vienu jautÄjumu.`,requiredInAllRowsError:`LÅ«dzu, atbildiet uz jautÄjumiem visÄs rindÄs.`,eachRowUniqueError:`Katrai rindai jÄbÅ«t unikÄlai vÄrtÄ«bai.`,numericError:`Atbildei ir jÄbÅ«t skaitlim.`,minError:`VÄrtÄ«ba nedrÄ«kst bÅ«t mazÄka par {0}`,stepError:`LÅ«dzu, ievadiet vÄrtÄ«bu, kas atbilst {0}
212 soļa lielumam.`,maxError:`VÄrtÄ«ba nedrÄ«kst bÅ«t lielÄka par {0}`,invalidInputError:`NederÄ«ga ievade`,textNoDigitsAllow:`Numuri nav atļauti.`,incompletePatternError:`LÅ«dzu, aizpildiet vÄrtÄ«bu, lai tÄ atbilstu vajadzÄ«gajam formÄtam.`,textMinLength:`LÅ«dzu, ievadiet vismaz {0} simbolus.`,textMaxLength:`LÅ«dzu, ievadiet mazÄk nekÄ {0} rakstzÄ«mes.`,textMinMaxLength:`LÅ«dzu, ievadiet vairÄk nekÄ {0} rakstzÄ«mes un mazÄk nekÄ {1} rakstzÄ«mes.`,minRowCountError:`LÅ«dzu, aizpildiet vismaz {0} rindas.`,minSelectError:`LÅ«dzu, izvÄlieties vismaz {0} variantu.`,maxSelectError:`LÅ«dzu, izvÄlieties ne vairak par {0} variantiem.`,numericMinMax:`'{0}' jÄbÅ«t vienÄdam vai lielÄkam nekÄ {1}, un vienÄdam vai mazÄkam, nekÄ {2}`,numericMin:`'{0}' jÄbÅ«t vienÄdam vai lielÄkam {1}`,numericMax:`'{0}' jÄbÅ«t vienÄdam vai lielÄkam {1}`,invalidEmail:`LÅ«dzu, ievadiet pareizu e-pasta adresi!`,invalidExpression:`Izteicienam: {0} jÄatgriež âtrueâ.`,urlRequestError:`PieprasÄ«jumÄ tika atgriezta kļūda â{0}â. {1}`,urlGetChoicesError:`PieprasÄ«jums atgrieza tukÅ¡us datus vai rekvizÄ«ts âpathâ ir nepareizs`,exceedMaxSize:`Faila lielums nedrÄ«kst pÄrsniegt {0}.`,fileSizeUnits:`Baiti, KB, MB, GB, TB`,exceedMaxFiles:`MaksimÄlais augÅ¡upielÄdÄjamo failu skaits ir {0}.`,noUploadFilesHandler:`Failus nevar augÅ¡upielÄdÄt. LÅ«dzu, pievienojiet apdarinÄtÄju notikumam "onUploadFiles".`,otherRequiredError:`LÅ«dzu, ievadiet datus laukÄ 'Cits'`,uploadingFile:`JÅ«su fails tiek augÅ¡upielÄdÄts. LÅ«dzu, uzgaidiet dažas sekundes un mÄÄ£iniet vÄlreiz.`,loadingFile:`Notiek ielÄde ...`,chooseFile:`IzvÄlieties failus ...`,noFileChosen:`Nav izvÄlÄts neviens fails`,filePlaceholder:`Lai pievienotu, ievelciet failu Å¡eit vai arÄ« klikšķiniet uz zemÄk redzamÄs pogas`,confirmDelete:`Vai vÄlaties izdzÄst ierakstu?`,keyDuplicationError:`Å ai vÄrtÄ«bai jÄbÅ«t unikÄlai.`,addColumn:`Pievienot kolonnu`,addRow:`Pievienot rindu`,removeRow:`NoÅemt`,noRowsText:`Nav rindu.`,rowIndexTemplateTitle:`Rinda {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Pievieno jaunu`,removePanel:`NoÅemt`,showDetails:`RÄdÄ«t detalizÄtu informÄciju`,hideDetails:`SlÄpt detaļas`,choices_Item:`vienums`,choices_Choice:`IzvÄles iespÄja`,matrix_column:`Sleja`,matrix_row:`Rinda`,multipletext_itemname:`teksts`,savingData:`RezultÄti tiek saglabÄti serverÄ« ...`,savingDataError:`RadÄs kļūda, un mÄs nevarÄjÄm saglabÄt rezultÄtus.`,savingDataSuccess:`RezultÄti tika veiksmÄ«gi saglabÄti!`,saveAgainButton:`MÄÄ£iniet vÄlreiz`,timerMin:`min`,timerSec:`sek`,timerSpentAll:`Å ajÄ lapÄ esat iztÄrÄjis {0} un kopÄ {1}.`,timerSpentPage:`Å ajÄ lapÄ esat iztÄrÄjis {0}.`,timerSpentSurvey:`KopÄ esat iztÄrÄjis {0}.`,timerLimitAll:`Å ajÄ lapÄ esat iztÄrÄjis {0} no {1} un kopÄ {2} no {3}.`,timerLimitPage:`Å ajÄ lapÄ esat iztÄrÄjis {0} no {1}.`,timerLimitSurvey:`KopÄ esat iztÄrÄjis {0} no {1}.`,clearCaption:`IztÄ«rÄ«t`,selectCaption:`Atlasiet`,signaturePlaceHolder:`Parakstieties Å¡eit`,signaturePlaceHolderReadOnly:`Nav paraksta`,chooseFileCaption:`IzvÄlÄties failu`,takePhotoCaption:`UzÅemt fotoattÄlu`,photoPlaceholder:`Noklikšķiniet uz pogas zemÄk, lai uzÅemtu fotoattÄlu, izmantojot kameru.`,fileOrPhotoPlaceholder:`Velciet un nometiet vai atlasiet failu, ko augÅ¡upielÄdÄt vai uzÅemt fotoattÄlu, izmantojot kameru.`,replaceFileCaption:`AizstÄt failu`,removeFileCaption:`NoÅemiet Å¡o failu`,booleanCheckedLabel:`JÄ`,booleanUncheckedLabel:`NÄ`,confirmRemoveFile:`Vai tieÅ¡Äm vÄlaties noÅemt Å¡o failu: {0}?`,confirmRemoveAllFiles:`Vai tieÅ¡Äm vÄlaties noÅemt visus failus?`,questionTitlePatternText:`JautÄjuma nosaukums`,modalCancelButtonText:`Atcelt`,modalApplyButtonText:`Pielietot`,filterStringPlaceholder:`Ierakstiet, lai meklÄtu...`,emptyMessage:`Nav datu, ko rÄdÄ«t`,loadingPage:`IekrauÅ¡anas...`,loadingData:`IekrauÅ¡anas...`,noEntriesText:`VÄl nav neviena ieraksta. 213Noklikšķiniet uz zemÄk esoÅ¡Äs pogas, lai pievienotu jaunu ierakstu.`,noEntriesReadonlyText:`Nav ierakstu`,tabTitlePlaceholder:`Jauns panelis`,more:`VairÄk`,tagboxDoneButtonCaption:`LABI`,selectToRankEmptyRankedAreaText:`Visas izvÄles tiek atlasÄ«tas ranžÄÅ¡anai`,selectToRankEmptyUnrankedAreaText:`Velciet izvÄles Å¡eit, lai tÄs sakÄrtotu`,ok:`LABI`,cancel:`Atcelt`,createCustomItem:`Izveidot vienumu "{0}"...`,toc:`Satura rÄdÄ«tÄjs`,progressbar:`Progresa josla`},nativeName:`latvieÅ¡u`,englishName:`Latvian`}),gj({localeCode:`lt`,strings:{pagePrevText:`Atgal`,pageNextText:`Toliau`,completeText:`Baigti`,previewText:`PeržiÅ«ra`,editText:`Redaguoti`,startSurveyText:`PradÄti`,commentText:`PraÅ¡ome palikti komentarÄ `,otherItemText:`Kita (įvesti)`,noneItemText:`NÄra`,refuseItemText:`Atsisakyti atsakyti`,dontKnowItemText:`Nežinau`,selectAllItemText:`Pasirinkti visus`,deselectAllItemText:`Panaikinkite visų žymÄjimÄ `,progressText:`Puslapis {0} iÅ¡ {1}`,indexText:`{1} {0}`,panelDynamicProgressText:`Ä®raÅ¡yti {0} iÅ¡ {1}`,panelDynamicTabTextFormat:`Skydelis {panelIndex}`,questionsProgressText:`AtsakÄ Ä¯ {0} / {1} klausimus`,emptySurvey:`Apklausoje nÄra matomo puslapio ar klausimo.`,completingSurvey:`DÄkojame už dalyvavimÄ apklausoje!`,completingSurveyBefore:`MÅ«sų įraÅ¡ai rodo, kad jau atlikote Å¡iÄ apklausÄ .`,loadingSurvey:`PraÅ¡ome palaukti...`,placeholder:`Pasirinkti...`,ratingOptionsCaption:`ŽymÄti...`,buttongroupOptionsCaption:`ŽymÄti...`,value:`reikÅ¡mÄ`,requiredError:`BÅ«tina atsakyti į šį klausimÄ .`,requiredErrorInPanel:`BÅ«tina atsakyti bent į vienÄ klausimÄ .`,requiredInAllRowsError:`PraÅ¡ome atsakyti į klausimus visose eilutÄse.`,eachRowUniqueError:`Kiekviena eilutÄ turi turÄti unikaliÄ reikÅ¡mÄ.`,numericError:`Turi bÅ«ti skaiÄiai.`,minError:`VertÄ neturÄtų bÅ«ti mažesnÄ nei {0}`,stepError:`Ä®veskite reikÅ¡mÄ, atitinkanÄiÄ {0} žingsnio dydį.`,maxError:`VertÄ neturÄtų bÅ«ti didesnÄ nei {0}`,invalidInputError:`Neleistina įvestis`,textNoDigitsAllow:`Numeriai neleidžiami.`,incompletePatternError:`Užpildykite reikÅ¡mÄ, kad ji atitiktų reikiamÄ formatÄ .`,textMinLength:`PraÅ¡ome suvesti bent {0} simbolius.`,textMaxLength:`PraÅ¡ome suvesti mažiau nei {0} simbolių.`,textMinMaxLength:`PraÅ¡ome suvesti daugiau nei {0} ir mažiau nei {1} simbolių.`,minRowCountError:`PraÅ¡ome suvesti ne mažiau nei {0} eiluÄių.`,minSelectError:`PraÅ¡ome pasirinkti bent {0} variantų.`,maxSelectError:`Pasirinkite ne daugiau kaip {0} variantus.`,numericMinMax:`'{0}' turi bÅ«ti lygus arba didesnis nei {1} ir lygus arba mažesnis nei {2}`,numericMin:`'{0}' turÄtų bÅ«ti lygus arba didesnis nei {1}`,numericMax:`'{0}' turÄtų bÅ«ti lygus ar mažesnis už {1}`,invalidEmail:`PraÅ¡ome įvesti galiojantį elektroninio paÅ¡to adresÄ .`,invali
213dExpression:`ReikÅ¡mÄ: {0} turi grÄ Å¾inti 'true'.`,urlRequestError:`Užklausa grÄ Å¾ino klaidÄ '{0}'. {1}`,urlGetChoicesError:`Užklausa grÄ Å¾ino tuÅ¡Äius duomenis arba 'path' savybÄ yra neteisinga`,exceedMaxSize:`Failo dydis neturi virÅ¡yti {0}.`,fileSizeUnits:`Baitai, KB, MB, GB, TB`,exceedMaxFiles:`Maksimalus failų, kuriuos galite įkelti, skaiÄius yra {0}.`,noUploadFilesHandler:`Failų įkelti negalima. PridÄkite įvykio "onUploadFiles" tvarkytojÄ .`,otherRequiredError:`Ä®veskite kitÄ reikÅ¡mÄ.`,uploadingFile:`JÅ«sų failas yra keliamas. Palaukite keletÄ sekundžių ir bandykite dar kartÄ .`,loadingFile:`PraÅ¡ome palaukti...`,chooseFile:`Pasirinkti failÄ (us)...`,noFileChosen:`Nepasirinktas joks failas`,filePlaceholder:`Nuvilkite failÄ Äia arba spustelÄkite žemiau esantį mygtukÄ , kad pasirinktumÄte failÄ , kurį norite įkelti.`,confirmDelete:`Ar norite iÅ¡trinti įraÅ¡Ä ?`,keyDuplicationError:`Å i reikÅ¡mÄ turÄtų bÅ«ti unikali.`,addColumn:`PridÄti stulpelį`,addRow:`PridÄti eilutÄ`,removeRow:`IÅ¡trinti`,noRowsText:`Eilių nÄra.`,rowIndexTemplateTitle:`EilutÄ {rowIndex}`,rowNameTemplateTitle:`{eilutÄPavadinimas}`,addPanel:`PridÄti naujÄ `,removePanel:`IÅ¡trinti`,showDetails:`Rodyti iÅ¡samiÄ informacijÄ `,hideDetails:`SlÄpti iÅ¡samiÄ informacijÄ `,choices_Item:`elementas`,choices_Choice:`Pasirinkimo galimybÄ`,matrix_column:`Stulpelis`,matrix_row:`EilutÄ`,multipletext_itemname:`SMS žinutÄ`,savingData:`Rezultatai saugomi serveryje...`,savingDataError:`Ä®vyko klaida ir mes negalÄjome iÅ¡saugoti rezultatų.`,savingDataSuccess:`Rezultatai buvo iÅ¡saugoti sÄkmingai!`,saveAgainButton:`Bandyti dar kartÄ `,timerMin:`min`,timerSec:`sek`,timerSpentAll:`Praleidote {0} Å¡iame puslapyje ir {1} iÅ¡ viso.`,timerSpentPage:`Praleidote {0} Å¡iame puslapyje.`,timerSpentSurvey:`Praleidote {0} iÅ¡ viso.`,timerLimitAll:`Praleidote {0} iÅ¡ {1} Å¡iame puslapyje ir {2} iÅ¡ {3} iÅ¡ viso.`,timerLimitPage:`Praleidote {0} iÅ¡ {1} Å¡iame puslapyje.`,timerLimitSurvey:`Praleidote {0} iÅ¡ {1} iÅ¡ viso.`,clearCaption:`Valyti`,selectCaption:`ŽymÄti`,signaturePlaceHolder:`PasiraÅ¡ykite Äia`,signaturePlaceHolderReadOnly:`NÄra paraÅ¡o`,chooseFileCaption:`Pasirinkti failÄ `,takePhotoCaption:`Fotografuoti`,photoPlaceholder:`SpustelÄkite žemiau esantį mygtukÄ , kad nufotografuotumÄte fotoaparatu.`,fileOrPhotoPlaceholder:`Nuvilkite arba pasirinkite failÄ , kurį norite įkelti arba nufotografuoti naudodami fotoaparatÄ .`,replaceFileCaption:`Pakeiskite failÄ `,removeFileCaption:`IÅ¡trinti šį failÄ `,booleanCheckedLabel:`Taip`,booleanUncheckedLabel:`Ne`,confirmRemoveFile:`Ar tikrai norite paÅ¡alinti šį failÄ : {0}?`,confirmRemoveAllFiles:`Ar tikrai norite paÅ¡alinti visus failus?`,questionTitlePatternText:`Klausimo pavadinimas`,modalCancelButtonText:`AtÅ¡aukti`,modalApplyButtonText:`Vartoti`,filterStringPlaceholder:`Ä®veskite, kad ieÅ¡kotumÄte...`,emptyMessage:`NÄra rodomų duomenų`,loadingPage:`Pakrovimo...`,loadingData:`Pakrovimo...`,noEntriesText:`Ä®rašų dar nÄra. 214SpustelÄkite žemiau esantį mygtukÄ , kad pridÄtumÄte naujÄ Ä¯raÅ¡Ä .`,noEntriesReadonlyText:`Ä®rašų nÄra`,tabTitlePlaceholder:`Naujas skydelis`,more:`Daugiau`,tagboxDoneButtonCaption:`GERAI`,selectToRankEmptyRankedAreaText:`Visi pasirinkimai atrenkami reitingui`,selectToRankEmptyUnrankedAreaText:`Vilkite pasirinkimus Äia, kad juos reitinguotumÄte`,ok:`GERAI`,cancel:`AtÅ¡aukti`,createCustomItem:`Sukurkite elementÄ "{0}"...`,toc:`Turinys`,progressbar:`Eigos juosta`},nativeName:`lietuvių`,englishName:`Lithuanian`}),gj({localeCode:`mk`,strings:{pagePrevText:`ÐÑеÑÑ Ð¾Ð´Ð½Ð°`,pageNextText:`Следно`,completeText:`ÐавÑÑи`,previewText:`ÐÑеглед`,editText:`УÑедÑваÑе`,startSurveyText:`ÐапоÑнеÑе`,commentText:`Ðолиме оÑÑавеÑе коменÑаÑ`,otherItemText:`ÐÑÑго (опиÑи)`,noneItemText:`ÐиÑÑо`,refuseItemText:`ÐÐ´Ð±Ð¸Ñ Ð´Ð° одговоÑиÑ.`,dontKnowItemText:`Ðе знам`,selectAllItemText:`СелекÑиÑÐ°Ñ Ñе`,deselectAllItemText:`ÐÑÑÑÑанеÑе ÑелекÑиÑа на ÑиÑе`,progressText:`СÑÑаниÑа {0} од {1}`,indexText:`{0} на {1}`,panelDynamicProgressText:`Сними {0} од {1}`,panelDynamicTabTextFormat:`Ðанел {панел ÐндекÑ}`,questionsProgressText:`ÐдговоÑени на {0} / {1} пÑаÑаÑа`,emptySurvey:`Ðема видлива ÑÑÑаниÑа или пÑаÑаÑе во иÑÑÑажÑваÑеÑо.`,completingSurvey:`Ðи благодаÑиме ÑÑо го завÑÑивÑе иÑÑÑажÑваÑеÑо!`,completingSurveyBefore:`ÐаÑиÑе запиÑи покажÑÐ²Ð°Ð°Ñ Ð´ÐµÐºÐ° веÑе ÑÑе го завÑÑиле ова иÑÑÑажÑваÑе.`,loadingSurvey:`ÐнкеÑаÑа Ñе вÑиÑÑва ...`,placeholder:`ÐзбеÑеÑе ...`,ratingOptionsCaption:`ÐзбеÑеÑе...`,buttongroupOptionsCaption:`ÐзбеÑеÑе...`,value:`вÑедноÑÑ`,requiredError:`Ðе молам, одговоÑеÑе на пÑаÑаÑеÑо.`,requiredErrorInPanel:`Ðе молам, одговоÑеÑе баÑем на едно пÑаÑаÑе.`,requiredInAllRowsError:`Ðе молиме, одговоÑеÑе на пÑаÑаÑа во ÑиÑе Ñедови.`,eachRowUniqueError:`Ð¡ÐµÐºÐ¾Ñ Ñед моÑа да има ÑникаÑна вÑедноÑÑ.`,numericError:`ÐÑедноÑÑа ÑÑеба да биде нÑмеÑиÑка.`,minError:`ÐÑедноÑÑа не ÑÑеба да биде помала од {0}`,stepError:`Ðолиме внеÑеÑе вÑедноÑÑ ÐºÐ¾Ñа одговаÑа на големинаÑа на ÑекоÑÐ¾Ñ Ð½Ð° {0}.`,maxError:`ÐÑедноÑÑа не ÑÑеба да биде поголема од {0}`,invalidInputError:`Ðевалиден внеÑ`,textNoDigitsAllow:`ÐÑоевиÑе не Ñе дозволени.`,incompletePatternError:`Ðе молиме пополнеÑе Ñа вÑедноÑÑа за да одговаÑа на поÑÑÐµÐ±Ð½Ð¸Ð¾Ñ ÑоÑмаÑ.`,textMinLength:`ÐнеÑеÑе наÑÐ¼Ð°Ð»ÐºÑ {0} знак/Ñи.`,textMaxLength:`ÐнеÑеÑе не повеÑе од {0} знак/Ñи.`,textMinMaxLength:`ÐнеÑеÑе наÑÐ¼Ð°Ð»ÐºÑ {0} и не повеÑе од {1} знаÑи.`,minRowCountError:`ÐополнеÑе наÑÐ¼Ð°Ð»ÐºÑ {0} Ñед(ови).`,minSelectError:`Ðе молиме избеÑеÑе наÑÐ¼Ð°Ð»ÐºÑ {0} ваÑиÑанÑа(и).`,maxSelectError:`ÐзбеÑеÑе не повеÑе од {0} ваÑиÑанÑа(и).`,numericMinMax:`'{0}' ÑÑеба да биде наÑÐ¼Ð°Ð»ÐºÑ {1} и наÑÐ¼Ð½Ð¾Ð³Ñ {2}`,numericMin:`'{0}' ÑÑеба да биде наÑÐ¼Ð°Ð»ÐºÑ {1}`,numericMax:`'{0}' ÑÑеба да биде наÑÐ¼Ð½Ð¾Ð³Ñ {1}`,invalidEmail:`Ðе молиме внеÑеÑе валидна е-маил адÑеÑа.`,invali
214dExpression:`ÐзÑазоÑ: {0} ÑÑеба да Ñе вÑаÑи 'true'.`,urlRequestError:`ÐаÑаÑеÑо вÑаÑи гÑеÑка '{0}'. {1} `,urlGetChoicesError:`ÐаÑаÑеÑо вÑаÑи пÑазни подаÑоÑи или ÑвоÑÑÑвоÑо 'path' е неÑоÑно`,exceedMaxSize:`ÐолеминаÑа на даÑоÑекаÑа не ÑÑеба да надминÑва {0}.`,fileSizeUnits:`ÐаÑÑови, KB, MB, GB, TB`,exceedMaxFiles:`ÐакÑÐ¸Ð¼Ð°Ð»Ð½Ð¸Ð¾Ñ Ð±ÑÐ¾Ñ Ð½Ð° даÑоÑеки ÑÑо Ð¼Ð¾Ð¶ÐµÑ Ð´Ð° ги пÑикаÑÐ¸Ñ Ðµ {0}.`,noUploadFilesHandler:`ФаÑловиÑе не Ð¼Ð¾Ð¶Ð°Ñ Ð´Ð° Ñе каÑÑвааÑ. Ðе молиме додадеÑе ÑаководиÑел за наÑÑÐ°Ð½Ð¾Ñ 'onUploadFiles'.`,otherRequiredError:`ÐнеÑеÑе Ñа дÑÑгаÑа вÑедноÑÑ.`,uploadingFile:`ÐаÑаÑа даÑоÑека Ñе поÑÑавÑва. Ðе молиме поÑекаÑÑе Ð½ÐµÐºÐ¾Ð»ÐºÑ ÑекÑнди и обидеÑе Ñе повÑоÑно.`,loadingFile:`Се вÑиÑÑва ...`,chooseFile:`ÐзбеÑеÑе даÑоÑека (и) ...`,noFileChosen:`Ðе Ñе избÑани даÑоÑеки`,filePlaceholder:`ÐÑÑÑеÑе даÑоÑека овде или кликнеÑе на копÑеÑо Ð¿Ð¾Ð´Ð¾Ð»Ñ Ð·Ð° да Ñа вÑиÑаÑе даÑоÑекаÑа.`,confirmDelete:`Ðали ÑакаÑе да го избÑиÑеÑе запиÑоÑ?`,keyDuplicationError:`Ðваа вÑедноÑÑ ÑÑеба да биде единÑÑвена.`,addColumn:`ÐÐ¾Ð´Ð°Ñ ÐºÐ¾Ð»Ð¾Ð½Ð°`,addRow:`Ðодади Ñед`,removeRow:`ÐÑÑÑÑани`,noRowsText:`Ðема Ñедови.`,rowIndexTemplateTitle:`Ред {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Ðодади ново`,removePanel:`ÐÑÑÑÑани`,showDetails:`ÐÑикажÑваÑе на деÑалиÑе`,hideDetails:`СокÑÐ¸Ñ Ð³Ð¸ деÑалиÑе.`,choices_Item:`ÑÑавка`,choices_Choice:`ÐпÑиÑа за избоÑ`,matrix_column:`Ðолона`,matrix_row:`Ред`,multipletext_itemname:`ÑекÑÑ.`,savingData:`РезÑлÑаÑиÑе Ñе заÑÑвÑÐ²Ð°Ð°Ñ Ð½Ð° ÑеÑвеÑÐ¾Ñ ...`,savingDataError:`ÐаÑÑана гÑеÑка и не можевме да ги заÑÑваме ÑезÑлÑаÑиÑе.`,savingDataSuccess:`РезÑлÑаÑиÑе беа ÑÑпеÑно заÑÑвани!`,saveAgainButton:`Ðбиди Ñе повÑоÑно`,timerMin:`мин`,timerSec:`Ñек`,timerSpentAll:`ÐоминавÑе {0} на оваа ÑÑÑаниÑа и вкÑпно {1}.`,timerSpentPage:`ÐоминавÑе {0} на оваа ÑÑÑаниÑа.`,timerSpentSurvey:`Ðие поÑÑоÑивÑе вкÑпно {0}.`,timerLimitAll:`ÐоминавÑе {0} од {1} на оваа ÑÑÑаниÑа и {2} од {3} вкÑпно.`,timerLimitPage:`ÐоминавÑе {0} од {1} на оваа ÑÑÑаниÑа.`,timerLimitSurvey:`Ðие поÑÑоÑивÑе вкÑпно {0} од {1}.`,clearCaption:`Ðа ÑаÑÑиÑÑи`,selectCaption:`ÐзбеÑи`,signaturePlaceHolder:`ÐоÑпиÑи Ñе овде.`,signaturePlaceHolderReadOnly:`Ðема поÑпиÑ`,chooseFileCaption:`ÐзбеÑеÑе даÑоÑека`,takePhotoCaption:`ФоÑогÑаÑиÑаÑÑе`,photoPlaceholder:`ÐликнеÑе на копÑеÑо Ð¿Ð¾Ð´Ð¾Ð»Ñ Ð·Ð° да ÑоÑогÑаÑиÑаÑе коÑиÑÑеÑÑи Ñа камеÑаÑа.`,fileOrPhotoPlaceholder:`ÐлеÑеÑе и ÑÑлаÑÑе или избеÑеÑе даÑоÑека за каÑÑваÑе или ÑоÑогÑаÑиÑаÑе коÑиÑÑеÑÑи Ñа камеÑаÑа.`,replaceFileCaption:`ÐаменеÑе го ÑаÑлоÑ.`,removeFileCaption:`ÐÑÑÑÑанеÑе Ñа оваа даÑоÑека`,booleanCheckedLabel:`Ðа`,booleanUncheckedLabel:`Ðе`,confirmRemoveFile:`Ðали ÑÑе ÑигÑÑни дека ÑакаÑе да Ñа оÑÑÑÑаниÑе оваа даÑоÑека: {0}?`,confirmRemoveAllFiles:`Ðали ÑÑе ÑигÑÑни дека ÑакаÑе да ги оÑÑÑÑаниÑе ÑиÑе даÑоÑеки?`,questionTitlePatternText:`ÐаÑлов на пÑаÑаÑеÑо`,modalCancelButtonText:`ÐÑкажи`,modalApplyButtonText:`ÐплиÑиÑаÑ`,filterStringPlaceholder:`Тип за пÑебаÑÑваÑе...`,emptyMessage:`Ðема подаÑоÑи за пÑикажÑваÑе`,loadingPage:`ÐÑиÑÑваÑе...`,loadingData:`ÐÑиÑÑваÑе...`,noEntriesText:`Сè ÑÑÑе нема запиÑи. 215ÐликнеÑе на копÑеÑо Ð¿Ð¾Ð´Ð¾Ð»Ñ Ð·Ð° да додадеÑе нов запиÑ.`,noEntriesReadonlyText:`Ðема запиÑи`,tabTitlePlaceholder:`Ðов панел`,more:`ÐовеÑе`,tagboxDoneButtonCaption:`ÐÐÐÐ Ð`,selectToRankEmptyRankedAreaText:`СиÑе избоÑи Ñе избÑани за ÑангиÑаÑе`,selectToRankEmptyUnrankedAreaText:`ÐовлеÑеÑе избоÑи ÑÑка за да ги ÑангиÑаÑе`,ok:`ÐÐÐÐ Ð`,cancel:`ÐÑкажи`,createCustomItem:`ÐÑеиÑаÑе на "{0}" ÑÑавка...`,toc:`СодÑжина`,progressbar:`ÐенÑа за напÑедок`},nativeName:`македонÑки`,englishName:`Macedonian`}),gj({localeCode:`ms`,strings:{pagePrevText:`Sebelumnya`,pageNextText:`Seterusnya`,completeText:`Selesai`,previewText:`Pratonton`,editText:`Suntingan`,startSurveyText:`Mula`,commentText:`Sila tinggalkan komen`,otherItemText:`Lain (terangkan)`,noneItemText:`Tiada`,refuseItemText:`Enggan menjawab`,dontKnowItemText:`Tak tahu`,selectAllItemText:`Pilih Semua`,deselectAllItemText:`Nyahpil
215ih semua`,progressText:`Halaman {0} daripada {1}`,indexText:`{0} {1}`,panelDynamicProgressText:`Rekod {0} daripada {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`{0}/{1} soalan telah dijawab`,emptySurvey:`Tiada halaman atau soalan boleh dilihat dalam tinjauan.`,completingSurvey:`Terima kasih kerana melengkapkan tinjauan!`,completingSurveyBefore:`Rekod kami menunjukkan yang anda telah melengkapkan tinjauan ini.`,loadingSurvey:`Memuatkan Tinjauan...`,placeholder:`Pilih...`,ratingOptionsCaption:`Pilih...`,buttongroupOptionsCaption:`Pilih...`,value:`nilai`,requiredError:`Respons diperlukan.`,requiredErrorInPanel:`Respons diperlukan: jawab sekurang-kurangnya satu soalan.`,requiredInAllRowsError:`Respons diperlukan: jawab soalan dalam semua baris.`,eachRowUniqueError:`Setiap baris mesti mempunyai nilai yang unik.`,numericError:`Nilai mestilah numerik.`,minError:`Nilai tidak boleh kurang daripada {0}`,stepError:`Sila masukkan nilai yang sepadan dengan saiz langkah {0}.`,maxError:`Nilai tidak boleh lebih besar daripada {0}`,invalidInputError:`Input tidak sah`,textNoDigitsAllow:`Nombor tidak dibenarkan.`,incompletePatternError:`Sila lengkapkan nilai untuk dipadankan dengan format yang diperlukan.`,textMinLength:`Sila masukkan sekurang-kurangnya {0} aksara.`,textMaxLength:`Sila masukkan tidak lebih daripada {0} aksara.`,textMinMaxLength:`Sila masukkan sekurang-kurangnya {0} dan tidak lebih daripada {1} aksara.`,minRowCountError:`Sila isikan sekurang-kurangnya {0} baris.`,minSelectError:`Sila pilih sekurang-kurangnya {0} varian.`,maxSelectError:`Sila pilih tidak lebih daripada {0} varian.`,numericMinMax:`'{0}' mestilah sekurang-kurangnya {1} dan paling banyak {2}`,numericMin:`'{0}' mestilah sekurang-kurangnya {1}`,numericMax:`'{0}' mestilah paling banyak {1}`,invalidEmail:`Sila masukkan alamat e-mel yang sah.`,invalidExpression:`Ekspresi: {0} hendaklah mengembalikan nilai 'benar'.`,urlRequestError:`Permintaan mengembalikan ralat '{0}'. {1}`,urlGetChoicesError:`Permintaan mengembalikan data kosong atau ciri 'laluan' salah`,exceedMaxSize:`Saiz fail hendaklah tidak melebihi {0}.`,fileSizeUnits:`Bait, KB, MB, GB, TB`,exceedMaxFiles:`Bilangan maksimum fail yang boleh anda muat naik ialah {0}.`,noUploadFilesHandler:`Fail tidak boleh dimuat naik. Sila tambah pengendali untuk acara 'onUploadFiles'.`,otherRequiredError:`Respons diperlukan: masukkan nilai lain.`,uploadingFile:`Fail anda sedang dimuat naik. Sila tunggu beberapa saat dan cuba lagi.`,loadingFile:`Memuat...`,chooseFile:`Pilih fail...`,noFileChosen:`Tiada fail dipilih`,filePlaceholder:`Letakkan fail di sini atau klik butang di bawah untuk memuatkan fail.`,confirmDelete:`Adakah anda ingin memadamkan rekod?`,keyDuplicationError:`Nilai ini hendaklah unik.`,addColumn:`Tambahkan lajur`,addRow:`Tambahkan baris`,removeRow:`Alih keluar`,noRowsText:`Tiada baris.`,rowIndexTemplateTitle:`Baris {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Tambah baharu`,removePanel:`Alih keluar`,showDetails:`Tunjukkan Butiran`,hideDetails:`Sembunyikan Butiran`,choices_Item:`Item`,choices_Choice:`Pilihan pilihan`,matrix_column:`Lajur`,matrix_row:`Baris`,multipletext_itemname:`teks`,savingData:`Keputusan sedang disimpan pada pelayan...`,savingDataError:`Ralat berlaku dan kami tidak dapat menyimpan keputusan.`,savingDataSuccess:`Keputusan berjaya disimpan!`,saveAgainButton:`Cuba lagi`,timerMin:`minit`,timerSec:`saat`,timerSpentAll:`Anda telah meluangkan {0} pada halaman ini dan {1} secara keseluruhan.`,timerSpentPage:`Anda telah meluangkan {0} pada halaman ini.`,timerSpentSurvey:`Anda telah meluangkan {0} secara keseluruhan.`,timerLimitAll:`Anda telah meluangkan {0} daripada {1} pada halaman ini dan {2} daripada {3} secara keseluruhan.`,timerLimitPage:`Anda telah meluangkan {0} daripada {1} pada halaman ini.`,timerLimitSurvey:`Anda telah meluangkan {0} daripada {1} secara keseluruhan.`,clearCaption:`Kosongkan`,selectCaption:`Pilih`,signaturePlaceHolder:`Tandatangan di sini`,signaturePlaceHolderReadOnly:`Tiada tandatangan`,chooseFileCaption:`Pilih fail`,takePhotoCaption:`Ambil gambar`,photoPlaceholder:`Klik butang di bawah untuk mengambil gambar menggunakan kamera.`,fileOrPhotoPlaceholder:`Seret dan lepas atau pilih fail untuk memuat naik atau mengambil foto menggunakan kamera.`,replaceFileCaption:`Gantikan fail`,removeFileCaption:`Alih keluar fail ini`,booleanCheckedLabel:`Ya`,booleanUncheckedLabel:`Tidak`,confirmRemoveFile:`Anda pasti ingin mengalih keluar fail ini: {0}?`,confirmRemoveAllFiles:`Anda pasti ingin mengalih keluar semua fail?`,questionTitlePatternText:`Tajuk Soalan`,modalCancelButtonText:`Batal`,modalApplyButtonText:`Guna`,filterStringPlaceholder:`Taip untu
215k membuat carian...`,emptyMessage:`Tiada data untuk dipaparkan`,loadingPage:`Memuatkan...`,loadingData:`Memuatkan...`,noEntriesText:`Belum ada entri. 216Klik butang di bawah untuk menambahkan entri.`,noEntriesReadonlyText:`Tiada penyertaan`,tabTitlePlaceholder:`Panel Baru`,more:`Lebih banyak`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Semua pilihan dipilih untuk kedudukan`,selectToRankEmptyUnrankedAreaText:`Seret pilihan di sini untuk meletakkan kedudukan mereka`,ok:`OK`,cancel:`Batal`,createCustomItem:`Buat item "{0}"...`,toc:`Jadual kandungan`,progressbar:`Bar kemajuan`},nativeName:`melayu`,englishName:`Malay`}),gj({localeCode:`no`,strings:{pagePrevText:`Forrige`,pageNextText:`Neste`,completeText:`Fullfør`,previewText:`ForhÃ¥ndsvisning`,editText:`Redigere`,startSurveyText:`Start`,commentText:`Legg igjen en kommentar`,otherItemText:`Annet (beskriv)`,noneItemText:`Ingen`,refuseItemText:`Nekter Ã¥ svare`,dontKnowItemText:`Vet ikke`,selectAllItemText:`Velg alle`,deselectAllItemText:`Fjern merket for alle`,progressText:`Side {0} av {1}`,indexText:`{0} av {1}`,panelDynamicProgressText:`Ta opp {0} av {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Besvarte {0} / {1} spørsmÃ¥l`,emptySurvey:`Det er ingen synlig side eller spørsmÃ¥l i undersøkelsen.`,completingSurvey:`Takk for at du fullførte undersøkelsen!`,completingSurveyBefore:`VÃ¥re data viser at du allerede har gjennomført denne undersøkelsen.`,loadingSurvey:`Undersøkelsen laster...`,placeholder:`Velg...`,ratingOptionsCaption:`Velg...`,buttongroupOptionsCaption:`Velg...`,value:`verdi`,requiredError:`Vennligst svar pÃ¥ spørsmÃ¥let.`,requiredErrorInPanel:`Vennligst svar pÃ¥ minst ett spørsmÃ¥l.`,requiredInAllRowsError:`Vennligst svar pÃ¥ spørsmÃ¥l i alle rader.`,eachRowUniqueError:`Hver rad mÃ¥ ha en unik verdi.`,numericError:`Verdien skal være numerisk.`,minError:`Verdien bør ikke være mindre enn {0}`,stepError:`Angi en verdi som samsvarer med trinnstørrelsen pÃ¥ {0}.`,maxError:`Verdien bør ikke være større enn {0}`,invalidInputError:`Ugyldig input`,textNoDigitsAllow:`Tall er ikke tillatt.`,incompletePatternError:`Vennligst fyll ut verdien for Ã¥ matche det nødvendige formatet.`,textMinLength:`Vennligst skriv inn minst {0} tegn.`,textMaxLength:`Vennligst skriv inn mindre enn {0} tegn.`,textMinMaxLength:`Vennligst skriv inn mer enn {0} og mindre enn {1} tegn.`,minRowCountError:`Vennligst fyll inn minst {0} rader.`,minSelectError:`Vennligst velg minst {0} varianter.`,maxSelectError:`Vennligst ikke velg mer enn {0} varianter.`,numericMinMax:`'{0}' bør være lik eller mer enn {1} og lik eller mindre enn {2}`,numericMin:`'{0}' bør være lik eller mer enn {1}`,numericMax:`'{0}' bør være lik eller mindre enn {1}`,invalidEmail:`Vennligst skriv inn en gyldig e-post adresse.`,invalidExpression:`Uttrykket: {0} skal returnere 'sant'.`,urlRequestError:`Forespørselen returnerte feilen '{0}'. {1}`,urlGetChoicesError:`Forespørselen returnerte tomme data, eller 'sti' -egenskapen er feil`,exceedMaxSize:`Filstørrelsen bør ikke overstige {0}.`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`Maksimalt antall filer du kan laste opp er {0}.`,noUploadFilesHandler:`Filer kan ikke lastes opp. Legg til et behandlingsprogram for onUploadFiles-hendelsen.`,otherRequiredError:`Vennligst skriv inn den andre verdien.`,uploadingFile:`Filen din lastes opp. Vennligst vent noen sekunder og prøv igjen.`,loadingFile:`Laster inn ...`,chooseFile:`Velg fil (er) ...`,noFileChosen:`Ingen fil valgt`,filePlaceholder:`Dra og slipp en fil her eller klikk pÃ¥ knappen nedenfor for Ã¥ velge en fil du vil laste opp.`,confirmDelete:`Ãnsker du Ã¥ slette posten?`,keyDuplicationError:`Denne verdien skal være unik.`,addColumn:`Legg til kolonne`,addRow:`Legg til rad`,removeRow:`Fjern`,noRowsText:`Det er ingen rader.`,rowIndexTemplateTitle:`Rad {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Legg til ny`,removePanel:`Fjerne`,showDetails:`Vis detaljer`,hideDetails:`Skjul detaljer`,choices_Item:`element`,choices_Choice:`Valg alternativ`,matrix_column:`Kolonne`,matrix_row:`Rad`,multipletext_itemname:`Tekst`,savingData:`Resultatene lagres pÃ¥ serveren ...`,savingDataError:`Det oppsto en feil, og vi kunne ikke lagre resultatene.`,savingDataSuccess:`Resultatene ble lagret!`,saveAgainButton:`Prøv igjen`,timerMin:`Min`,timerSec:`sek`,timerSpentAll:`Du har tilbrakt {0} pÃ¥ denne siden og {1} totalt.`,timerSpentPage:`Du har tilbrakt {0} pÃ¥ denne siden.`,timerSpentSurvey:`Du har tilbrakt {0} totalt.`,timerLimitAll:`Du har tilbrakt {0} av {1} pÃ¥ denne siden og totalt {2} av {3}.`,timerLimitPage:`Du har tilbrakt {0} av {1} pÃ¥ denne siden.`,timerLimitSurvey:`Du har tilbrakt {0} av {1} totalt.`,clearCaption:`Tøm`,selectCaption:`Velg`,signaturePlaceHolder:`Signer her`,signaturePlaceHolderReadOnly:`Ingen signatur`,chooseFileCaption:`Velg Fil`,takePhotoCaption:`Ta bilde`,photoPlaceholder:`Klikk pÃ¥ knappen nedenfor for Ã¥ ta et bilde med kameraet.`,fileOrPhotoPlaceholder:`Dra og slipp eller velg en fil for Ã¥ laste opp eller ta et bilde med kameraet.`,replaceFileCaption:`Erstatt fil`,removeFileCaption:`Fjern denne filen`,booleanCheckedLabel:`Ja`,booleanUncheckedLabel:`Nei`,confirmRemoveFile:`Er du sikker pÃ¥ at du vil fjerne denne filen: {0}
216?`,confirmRemoveAllFiles:`Er du sikker pÃ¥ at du vil fjerne alle filene?`,questionTitlePatternText:`SpørsmÃ¥lstittel`,modalCancelButtonText:`Avbryt`,modalApplyButtonText:`Bruk`,filterStringPlaceholder:`Skriv for Ã¥ søke ...`,emptyMessage:`Ingen data Ã¥ vise`,loadingPage:`Lasting...`,loadingData:`Lasting...`,noEntriesText:`Ingen oppføringer ennÃ¥. 217Klikk pÃ¥ knappen nedenfor for Ã¥ legge til en ny oppføring.`,noEntriesReadonlyText:`Ingen oppføringer`,tabTitlePlaceholder:`Nytt panel`,more:`Mer`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Alle valg er valgt for rangering`,selectToRankEmptyUnrankedAreaText:`Dra valg hit for Ã¥ rangere dem`,ok:`OK`,cancel:`Avbryt`,createCustomItem:`Lag "{0}" element...`,toc:`Innhold`,progressbar:`Fremdriftsindikator`},nativeName:`norsk`,englishName:`Norwegian`}),gj({localeCode:`fa`,strings:{pagePrevText:`ÙØ¨ÙÛ`,pageNextText:`بعدÛ`,completeText:`تک٠ÛÙ`,previewText:`Ù¾ÛØ´ ÙÙ Ø§ÛØ´`,editText:`ÙÛØ±Ø§ÛØ´`,startSurveyText:`Ø´Ø±ÙØ¹`,commentText:`ÙØ·Ùا ÙØ¸Ø± Ø®ÙØ¯ را بÙÙÛØ³Ûد`,otherItemText:`دÛگر(ØªÙØ¶ÛØ)`,noneItemText:`ÙÛÚ`,refuseItemText:`Ø§Ù ØªÙØ§Ø¹ از پاسخ دادÙ`,dontKnowItemText:`ÙÙ Û Ø¯Ø§ÙÙ `,selectAllItemText:`Ø§ÙØªØ®Ø§Ø¨ ÙÙ Ù`,deselectAllItemText:`ÙØºÙ Ø§ÙØªØ®Ø§Ø¨ ÙÙ Ù`,progressText:`ØµÙØÙ {0} از {1}`,indexText:`{0} {1}`,panelDynamicProgressText:`Ù ÙØ±Ø¯ {0} از {1}`,panelDynamicTabTextFormat:`Ù¾ÙÙ {panelIndex}`,questionsProgressText:`تعداد پاسخ {0}/{1} Ø³ÙØ§Ù`,emptySurvey:`ØµÙØÙ Ø§Û ÛØ§ گزÛÙÙ Ø§Û Ø¨Ø±Ø§Û Ø§ÛÙ Ù¾Ø±Ø³Ø´ÙØ§Ù Ù Ù ÙØ¬Ùد ÙÛØ³Øª.`,completingSurvey:`از ش٠ا بابت تک٠Û٠اÛÙ Ù¾Ø±Ø³Ø´ÙØ§Ù ٠٠تشکرÛÙ `,completingSurveyBefore:`Ø¨Ù ÙØ¸Ø± Ù Û Ø±Ø³Ø¯ ÙÙ Ù٠اکÙÙÙ Ù¾Ø±Ø³Ø´ÙØ§Ù ٠را تک٠ÛÙ Ú©Ø±Ø¯Ù Ø§ÛØ¯.`,loadingSurvey:`Ø¯Ø±ØØ§Ù Ø§ÛØ¬Ø§Ø¯ Ù¾Ø±Ø³Ø´ÙØ§Ù Ù`,placeholder:`Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯...`,ratingOptionsCaption:`Ø§ÙØªØ®Ø§Ø¨...`,buttongroupOptionsCaption:`Ø§ÙØªØ®Ø§Ø¨...`,value:`Ù ÙØ¯Ø§Ø±`,requiredError:`ÙØ·Ùا Ø¨Ù Ø³ÙØ§Ù پاسخ دÙÛØ¯`,requiredErrorInPanel:`ÙØ·Ùا ØØ¯Ø§Ù٠ب٠ÛÚ© Ø³ÙØ§Ù پاسخ دÙÛØ¯.`,requiredInAllRowsError:`ÙØ·Ùا Ø³ÙØ§Ùات ØªÙ Ø§Ù Ø³Ø·Ø±ÙØ§ را پاسخ دÙÛØ¯.`,eachRowUniqueError:`ÙØ± سطر Ø¨Ø§ÛØ¯ ÛÚ© Ù ÙØ¯Ø§Ø± Ù ÙØØµØ± Ø¨Ù ÙØ±Ø¯ داشت٠باشد.`,numericError:`Ù ÙØ¯Ø§Ø± Ø¨Ø§ÛØ¯ Ø¹Ø¯Ø¯Û Ø¨Ø§Ø´Ø¯`,minError:`ارزش ÙØ¨Ø§Ûد ک٠تر از {0}`,stepError:`ÙØ·Ùا Ù ÙØ¯Ø§Ø±Û را ÙØ§Ø±Ø¯ Ú©ÙÛØ¯ ک٠با Ø§ÙØ¯Ø§Ø²Ù گا٠{0} Ù Ø·Ø§Ø¨ÙØª داشت٠باشد.`,maxError:`ارزش ÙØ¨Ø§Ûد Ø¨ÛØ´ØªØ± از {0}`,invalidInputError:`ÙØ±ÙØ¯Û ÙØ§Ù عتبر`,textNoDigitsAllow:`Ø´Ù Ø§Ø±Ù ÙØ§ ٠جاز ÙÛØ³ØªÙد.`,incompletePatternError:`ÙØ·Ùا Ù ÙØ¯Ø§Ø± را تک٠ÛÙ Ú©ÙÛØ¯ تا با ÙØ§Ùب Ù ÙØ±Ø¯ ÙÛØ§Ø² Ù Ø·Ø§Ø¨ÙØª داشت٠باشد.`,textMinLength:`ÙØ·Ùا ØØ¯Ø§ÙÙ {0} ØØ±Ù ÙØ§Ø±Ø¯ Ú©ÙÛØ¯`,textMaxLength:`ÙØ·Ùا ک٠تر از {0} ØØ±Ù ÙØ§Ø±Ø¯ Ú©ÙÛØ¯.`,textMinMaxLength:`ÙØ·Ùا Ø¨ÛØ´ØªØ± از {0} ØØ±Ù ٠ک٠تر از {1} ØØ±Ù ÙØ§Ø±Ø¯ Ú©ÙÛØ¯.`,minRowCountError:`ÙØ·Ùا ØØ¯Ø§ÙÙ {0} سطر ÙØ§Ø±Ø¯ Ú©ÙÛØ¯.`,minSelectError:`ØØ¯Ø§ÙÙ {0} Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯.`,maxSelectError:`ÙØ·Ùا Ø¨ÛØ´ØªØ± از {0} Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯.`,numericMinMax:`'{0}' Ø¨Ø§ÛØ¯ بÛÙ {1} Ù {2} باشد`,numericMin:`'{0}' بزرگتر ٠ساÙÛ {1} باشد`,numericMax:`'{0}' Ø¨Ø§ÛØ¯ Ú©ÙÚکتر ÛØ§ ٠ساÙÛ {1} باشد`,invalidEmail:`ÙØ·Ùا اÛÙ Û٠صØÛØ Ø¯Ø±Ø¬ Ú©ÙÛØ¯`,invalidExpression:`عبارت: {0} پاسخ Ø¨Ø§ÛØ¯ 'true' باشد.`,urlRequestError:`Ø¯Ø±Ø®ÙØ§Ø³Øª با خطا Ø±ÙØ¨Ø±Ù شد: '{0}'. {1}`,urlGetChoicesError:`Ø¯Ø±Ø®ÙØ§Ø³Øª Ù Ø³ÛØ±Û خاÙÛ Ø¨Ø§Ø²Ú¯Ø´Øª Ø¯Ø§Ø¯Ù ÛØ§ Ù Ø³ÛØ± درست ØªÙØ¸ÛÙ ÙØ´Ø¯Ù`,exceedMaxSize:`Ø¨ÛØ´ØªØ±ÛÙ ØØ¬Ù ٠جاز ÙØ§ÛÙ: {0}`,fileSizeUnits:`Ø¨Ø§ÛØª ÙØ§, KB, MB, GB, TB`,exceedMaxFiles:`ØØ¯Ø§Ú©Ø«Ø± تعداد ÙØ§ÛÙ ÙØ§ÛÛ Ú©Ù Ù Û ØªÙØ§ÙÛØ¯ Ø¨Ø§Ø±Ú¯Ø°Ø§Ø±Û Ú©ÙÛØ¯ {0} است.`,noUploadFilesHandler:`پرÙÙØ¯ÙÙØ§ را ÙÙ ÛØªÙØ§Ù Ø¨Ø§Ø±Ú¯Ø°Ø§Ø±Û Ú©Ø±Ø¯. ÙØ·Ùا ÛÚ© گرداÙÙØ¯Ù Ø¨Ø±Ø§Û Ø±ÙÛØ¯Ø§Ø¯ "onUploadFiles" اضاÙÙ Ú©ÙÛØ¯.`,otherRequiredError:`Ù ÙØ¯Ø§Ø± 'دÛگر' را ÙØ§Ø±Ø¯ Ú©ÙÛØ¯`,uploadingFile:`ÙØ§Û٠در ØØ§Ù Ø¢ÛÙÙØ¯ است. ÙØ·Ùا صبر Ú©ÙÛØ¯.`,loadingFile:`Ø¨Ø§Ø±Ú¯ÛØ±Û...`,chooseFile:`Ø§ÙØªØ®Ø§Ø¨ ÙØ§ÛÙ(ÙØ§)...`,noFileChosen:`ÙÛÚ ÙØ§ÛÙÛ Ø§ÙØªØ®Ø§Ø¨ ÙØ´Ø¯Ù`,filePlaceholder:`ÛÚ© ÙØ§Û٠را در اÛÙØ¬Ø§ Ø¨Ú©Ø´ÛØ¯ Ù Ø±ÙØ§ Ú©ÙÛØ¯ ÛØ§ رÙÛ Ø¯Ú©Ù Ù Ø²ÛØ± Ú©ÙÛÚ© Ú©ÙÛØ¯ تا ÙØ§ÛÙÛ Ø±Ø§ Ø¨Ø±Ø§Û Ø¢Ù¾ÙÙØ¯ Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯.`,confirmDelete:`Ø¢ÛØ§ ٠اÛÙ Ø¨Ù ØØ°Ù اÛ٠ردÛÙ ÙØ³ØªÛدØ`,keyDuplicationError:`اÛÙ Ù ÙØ¯Ø§Ø± Ø¨Ø§ÛØ¯ ØºÛØ± ØªÚ©Ø±Ø§Ø±Û Ø¨Ø§Ø´Ø¯`,addColumn:`ستÙÙ Ø¬Ø¯ÛØ¯`,addRow:`سطر Ø¬Ø¯ÛØ¯`,removeRow:`ØØ°Ù`,noRowsText:`ÙÛÚ Ø±Ø¯ÛÙÛ ÙØ¬Ùد ÙØ¯Ø§Ø±Ø¯.`,rowIndexTemplateTitle:`ردÛÙ {rowIndex}`,rowNameTemplateTitle:`{rowTitle}
217`,addPanel:`Ø¬Ø¯ÛØ¯`,removePanel:`ØØ°Ù`,showDetails:`ÙÙ Ø§ÛØ´ Ø¬Ø²Ø¦ÛØ§Øª`,hideDetails:`Ù Ø®ÙÛ Ú©Ø±Ø¯Ù Ø¬Ø²Ø¦ÛØ§Øª`,choices_Item:`Ø¢ÛØªÙ `,choices_Choice:`گزÛÙÙ Ø§ÙØªØ®Ø§Ø¨`,matrix_column:`ستÙÙ`,matrix_row:`سطر`,multipletext_itemname:`Ù¾ÛØ§Ù Ú©`,savingData:`ÙØªØ§Ûج در ØØ§Ù Ø°Ø®ÛØ±Ù Ø³Ø§Ø²Û Ø¯Ø± Ø³Ø±ÙØ± است`,savingDataError:`خطاÛÛ Ø¯Ø± Ø°Ø®ÛØ±Ù Ø³Ø§Ø²Û ÙØªØ§Ûج رخ داد٠است`,savingDataSuccess:`ÙØªØ§Ûج با Ù ÙÙÙÛØª Ø°Ø®ÛØ±Ù شد`,saveAgainButton:`٠جدد ØªÙØ§Ø´ Ú©ÙÛØ¯`,timerMin:`دÙÛÙÙ`,timerSec:`ثاÙÛÙ`,timerSpentAll:`ش٠ا ٠دت {0} در اÛÙ ØµÙØÙ Ù Ù Ø¯Øª {1} را در Ù Ø¬Ù ÙØ¹ Ø³Ù¾Ø±Û Ú©Ø±Ø¯Ù Ø§ÛØ¯.`,timerSpentPage:`ش٠ا ٠دت {0} را در اÛÙ ØµÙØÙ Ø³Ù¾Ø±Û Ú©Ø±Ø¯Ù Ø§ÛØ¯.`,timerSpentSurvey:`ش٠ا ٠دت {0} را در Ù Ø¬Ù ÙØ¹ Ø³Ù¾Ø±Û Ú©Ø±Ø¯Ù Ø§ÛØ¯.`,timerLimitAll:`ش٠ا ٠دت {0} از {1} در اÛÙ ØµÙØÙ Ù Ù Ø¯Øª {2} از {3} را در Ù Ø¬Ù ÙØ¹ Ø³Ù¾Ø±Û Ú©Ø±Ø¯Ù Ø§ÛØ¯.`,timerLimitPage:`ش٠ا ٠دت {0} از {1} را در اÛÙ ØµÙØÙ Ø³Ù¾Ø±Û Ú©Ø±Ø¯Ù Ø§ÛØ¯.`,timerLimitSurvey:`ش٠ا ٠دت {0} از {1} را در Ù Ø¬Ù ÙØ¹ Ø³Ù¾Ø±Û Ú©Ø±Ø¯Ù Ø§ÛØ¯.`,clearCaption:`خاÙÛ Ú©Ø±Ø¯Ù`,selectCaption:`Ø§ÙØªØ®Ø§Ø¨`,signaturePlaceHolder:`اÛÙØ¬Ø§ را ا٠ضا Ú©ÙÛØ¯`,signaturePlaceHolderReadOnly:`بدÙ٠ا٠ضا`,chooseFileCaption:`Ø§ÙØªØ®Ø§Ø¨ ÙØ§ÛÙ`,takePhotoCaption:`Ú¯Ø±ÙØªÙ عکس`,photoPlaceholder:`رÙÛ Ø¯Ú©Ù Ù Ø²ÛØ± Ú©ÙÛÚ© Ú©ÙÛØ¯ تا با Ø§Ø³ØªÙØ§Ø¯Ù از Ø¯ÙØ±Ø¨Û٠عکس Ø¨Ú¯ÛØ±Ûد.`,fileOrPhotoPlaceholder:`Ú©Ø´ÛØ¯Ù Ù Ø±ÙØ§ Ú©Ø±Ø¯Ù ÛØ§ Ø§ÙØªØ®Ø§Ø¨ ÛÚ© ÙØ§ÛÙ Ø¨Ø±Ø§Û Ø§Ù¾ÙÙØ¯ ÛØ§ Ú¯Ø±ÙØªÙ عکس با Ø§Ø³ØªÙØ§Ø¯Ù از Ø¯ÙØ±Ø¨ÛÙ.`,replaceFileCaption:`جاÛگزÛÙÛ Ù¾Ø±ÙÙØ¯Ù`,removeFileCaption:`ØØ°Ù اÛÙ ÙØ§ÛÙ`,booleanCheckedLabel:`بÙÙ`,booleanUncheckedLabel:`Ø®ÛØ±`,confirmRemoveFile:`Ø¢ÛØ§ Ù ÛØ®ÙاÙÛØ¯ اÛÙ ÙØ§Û٠را پاک Ú©ÙÛØ¯: {0}?`,confirmRemoveAllFiles:`Ø¢ÛØ§ Ù ÛØ®ÙاÙÛØ¯ ØªÙ Ø§Ù ÙØ§ÛÙ ÙØ§ را پاک Ú©ÙÛØ¯?`,questionTitlePatternText:`عÙÙØ§Ù Ø³ÙØ§Ù`,modalCancelButtonText:`ÙØºÙ`,modalApplyButtonText:`Ø¯Ø±Ø®ÙØ§Ø³Øª`,filterStringPlaceholder:`تاÛÙ¾ Ø¨Ø±Ø§Û Ø¬Ø³ØªØ¬Ù...`,emptyMessage:`Ø¯Ø§Ø¯Ù Ø§Û Ø¨Ø±Ø§Û ÙÙ Ø§ÛØ´ ÙØ¬Ùد ÙØ¯Ø§Ø±Ø¯`,loadingPage:`بارگذارÛ...`,loadingData:`بارگذارÛ...`,noEntriesText:`ÙÙÙØ² ÙÛÚ Ù Ø¯Ø®ÙÛ ÙØ¬Ùد ÙØ¯Ø§Ø±Ø¯. 218Ø¨Ø±Ø§Û Ø§ÙØ²ÙØ¯Ù ÙØ±ÙØ¯Û Ø¬Ø¯ÛØ¯ رÙÛ Ø¯Ú©Ù Ù Ø²ÛØ± Ú©ÙÛÚ© Ú©ÙÛØ¯.`,noEntriesReadonlyText:`بدÙÙ ÙØ±ÙدÛ`,tabTitlePlaceholder:`Ù¾ÙÙ Ø¬Ø¯ÛØ¯`,more:`Ø¨ÛØ´ØªØ±`,tagboxDoneButtonCaption:`باشÙ`,selectToRankEmptyRankedAreaText:`Ù٠٠گزÛÙÙ ÙØ§ Ø¨Ø±Ø§Û Ø±ØªØ¨Ù Ø¨ÙØ¯Û Ø§ÙØªØ®Ø§Ø¨ Ù Û Ø´ÙÙØ¯`,selectToRankEmptyUnrankedAreaText:`گزÛÙÙ ÙØ§ را در اÛÙØ¬Ø§ Ø¨Ú©Ø´ÛØ¯ تا Ø¢ÙÙØ§ را Ø±ØªØ¨Ù Ø¨ÙØ¯Û Ú©ÙÛØ¯`,ok:`باشÙ`,cancel:`ÙØºÙ`,createCustomItem:`Ù ÙØ±Ø¯ "{0}" Ø§ÛØ¬Ø§Ø¯ Ú©ÙÛØ¯...`,toc:`جدÙÙ Ù ØØªÙÛØ§Øª`,progressbar:`ÙÙØ§Ø± Ù¾ÛØ´Ø±Ùت`},nativeName:`ÙØ§Ø±ÙسÙÙ`,englishName:`Persian`,rtl:!0}),gj({localeCode:`pl`,strings:{pagePrevText:`Wstecz`,pageNextText:`Dalej`,completeText:`Gotowe`,previewText:`Premiera`,editText:`Edycja`,startSurveyText:`Start`,commentText:`ProszÄ o komentarz`,otherItemText:`Inna odpowiedź (wpisz)`,noneItemText:`Brak`,refuseItemText:`Odmów odpowiedzi`,dontKnowItemText:`Nie wiem`,selectAllItemText:`Wybierz wszystkie`,deselectAllItemText:`Odznacz wszystko`,progressText:`Strona {0} z {1}`,indexText:`{0} od {1}`,panelDynamicProgressText:`Zapis {0} z {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Odpowiedzi na {0}/{1} pytania`,emptySurvey:`Nie ma widocznych pytaÅ.`,completingSurvey:`DziÄkujemy za wypeÅnienie ankiety!`,completingSurveyBefore:`Z naszych zapisów wynika, że wypeÅniÅeÅ już tÄ ankietÄ.`,loadingSurvey:`Trwa wczytywanie ankiety...`,placeholder:`Wybierz...`,ratingOptionsCaption:`Kliknij tutaj, aby oceniÄ...`,buttongroupOptionsCaption:`WybraÄ...`,value:`WartoÅÄ`,requiredError:`ProszÄ odpowiedzieÄ na to pytanie.`,requiredErrorInPanel:`ProszÄ odpowiedzieÄ na co najmniej jedno pytanie.`,requiredInAllRowsError:`ProszÄ odpowiedzieÄ na wszystkie pytania.`,eachRowUniqueError:`Każdy wiersz musi mieÄ unikatowÄ
218wartoÅÄ.`,numericError:`W tym polu można wpisaÄ tylko liczby.`,minError:`WartoÅÄ nie powinna byÄ mniejsza niż {0}`,stepError:`Wprowadź wartoÅÄ odpowiadajÄ
cÄ
rozmiarowi kroku {0}.`,maxError:`WartoÅÄ nie powinna byÄ wiÄksza niż {0}`,invalidInputError:`NieprawidÅowe wejÅcie`,textNoDigitsAllow:`Liczby sÄ
niedozwolone.`,incompletePatternError:`Prosimy o wypeÅnienie wartoÅci, aby pasowaÅo do wymaganego formatu.`,textMinLength:`ProszÄ wpisaÄ co najmniej {0} znaków.`,textMaxLength:`ProszÄ wpisaÄ mniej niż {0} znaków.`,textMinMaxLength:`ProszÄ wpisaÄ wiÄcej niż {0} i mniej niż {1} znaków.`,minRowCountError:`ProszÄ uzupeÅniÄ przynajmniej {0} wierszy.`,minSelectError:`ProszÄ wybraÄ co najmniej {0} pozycji.`,maxSelectError:`ProszÄ wybraÄ nie wiÄcej niż {0} pozycji.`,numericMinMax:`Odpowiedź '{0}' powinna byÄ wiÄksza lub równa {1} oraz mniejsza lub równa {2}`,numericMin:`Odpowiedź '{0}' powinna byÄ wiÄksza lub równa {1}`,numericMax:`Odpowiedź '{0}' powinna byÄ mniejsza lub równa {1}
218`,invalidEmail:`ProszÄ podaÄ prawidÅowy adres email.`,invalidExpression:`Wyrażenie: {0} powinno wracaÄ 'prawdziwe'.`,urlRequestError:`Å»Ä danie zwróciÅo bÅÄ d '{0}'. {1}`,urlGetChoicesError:`Å»Ä danie nie zwróciÅo danych albo Åcieżka jest nieprawidÅowa`,exceedMaxSize:`Rozmiar przesÅanego pliku nie może przekraczaÄ {0}.`,fileSizeUnits:`Bajty, KB, MB, GB, TB`,exceedMaxFiles:`Maksymalna liczba plików, które możesz przesÅaÄ, to {0}.`,noUploadFilesHandler:`Nie można przesÅaÄ plików. Dodaj moduÅ obsÅugi zdarzenia "onUploadFiles".`,otherRequiredError:`ProszÄ podaÄ innÄ odpowiedź.`,uploadingFile:`Trwa przenoszenie Twojego pliku, proszÄ spróbowaÄ ponownie za kilka sekund.`,loadingFile:`Åadowanie...`,chooseFile:`Wybierz plik(i)...`,noFileChosen:`Nie wybrano żadnego pliku`,filePlaceholder:`UpuÅÄ plik tutaj lub kliknij przycisk poniżej, aby zaÅadowaÄ plik.`,confirmDelete:`Chcesz skasowaÄ nagranie?`,keyDuplicationError:`Ta wartoÅÄ powinna byÄ wyjÄ tkowa.`,addColumn:`Dodaj kolumnÄ`,addRow:`Dodaj wiersz`,removeRow:`UsuÅ`,noRowsText:`Nie ma rzÄdów.`,rowIndexTemplateTitle:`Wiersz {indeks wiersza}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Dodaj panel`,removePanel:`UsuÅ`,showDetails:`Pokaż szczegóÅy`,hideDetails:`Ukryj szczegóÅy`,choices_Item:`element`,choices_Choice:`Opcja wyboru`,matrix_column:`Kolumna`,matrix_row:`Wiersz`,multipletext_itemname:`tekst`,savingData:`ZapisujÄ wyniki ankiety na serwerze...`,savingDataError:`WystÄ piÅ bÅÄ d i wyniki nie mogÅy zostaÄ zapisane.`,savingDataSuccess:`Wyniki zostaÅy poprawnie zapisane!`,saveAgainButton:`Spróbuj ponownie`,timerMin:`min`,timerSec:`sek`,timerSpentAll:`SpÄdziÅeÅ {0} na tej stronie a w sumie {1}.`,timerSpentPage:`SpÄdziÅeÅ {0} na tej stronie.`,timerSpentSurvey:`SpÄdziÅeÅ w sumie {0}.`,timerLimitAll:`SpÄdziÅeÅ {0} z {1} na tej stronie a w sumie {2} z {3}.`,timerLimitPage:`SpÄdziÅeÅ {0} z {1} na tej stronie`,timerLimitSurvey:`SpÄdziÅeÅ {0} z {1}.`,clearCaption:`WyczyÅÄ`,selectCaption:`WybraÄ`,signaturePlaceHolder:`Podpisz tutaj`,signaturePlaceHolderReadOnly:`Brak podpisu`,chooseFileCaption:`Wybierz plik`,takePhotoCaption:`Zrób zdjÄcie`,photoPlaceholder:`Kliknij przycisk poniżej, aby zrobiÄ zdjÄcie aparatem.`,fileOrPhotoPlaceholder:`PrzeciÄ gnij i upuÅÄ lub wybierz plik, który chcesz przesÅaÄ lub zrobiÄ zdjÄcie za pomocÄ aparatu.`,replaceFileCaption:`ZastÄ p plik`,removeFileCaption:`UsuÅ ten plik`,booleanCheckedLabel:`Tak`,booleanUncheckedLabel:`Nie`,confirmRemoveFile:`JesteÅ pewien, że chcesz usunÄ Ä ten plik: {0}?`,confirmRemoveAllFiles:`JesteÅ pewien, że chcesz usunÄ Ä wszystkie pliki?`,questionTitlePatternText:`TytuÅ pytania`,modalCancelButtonText:`AnulowaÄ`,modalApplyButtonText:`ZastosowaÄ`,filterStringPlaceholder:`Wpisz aby wyszukaÄ...`,emptyMessage:`Brak danych do wyÅwietlenia`,loadingPage:`Åadowania...`,loadingData:`Åadowania...`,noEntriesText:`Nie ma jeszcze wpisów. 219Kliknij przycisk poniżej, aby dodaÄ nowy wpis.`,noEntriesReadonlyText:`Brak zgÅoszeÅ`,tabTitlePlaceholder:`Nowy panel`,more:`WiÄcej`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Wszystkie opcje sÄ wybierane do rankingu`,selectToRankEmptyUnrankedAreaText:`PrzeciÄ gnij opcje tutaj, aby je uszeregowaÄ`,ok:`OK`,cancel:`Anuluj`,createCustomItem:`Utwórz element "{0}"...`,toc:`Spis treÅci`,progressbar:`Pasek postÄpu`},nativeName:`polski`,englishName:`Polish`}),gj({localeCode:`pt`,strings:{pagePrevText:`Anterior`,pageNextText:`Próximo`,completeText:`Finalizar`,previewText:`Pré-visualização`,editText:`Editar`,startSurveyText:`Começar`,commentText:`Por favor, deixe um comentário`,otherItemText:`Outros (descrever)`,noneItemText:`Nenhum`,refuseItemText:`Recusar-se a responder`,dontKnowItemText:`Não sei`,selectAllItemText:`Selecionar Todos`,deselectAllItemText:`Desmarcar tudo`,progressText:`Página {0} de {1}`,indexText:`{0} de {1}`,panelDynamicProgressText:`Registo {0} de {1}`,panelDynamicTabTextFormat:`Painel {panelIndex}`,questionsProgressText:`Respostas {0}/{1} perguntas`,emptySurvey:`Não há página visÃvel ou pergunta no questionário.`,completingSurvey:`Obrigado por finalizar o questionário!`,completingSurveyBefore:`Os nossos registos mostram que já finalizou o questionário.`,loadingSurvey:`O questionário está a carregar...`,placeholder:`Selecione...`,ratingOptionsCaption:`Selecione aqui para avaliar...`,buttongroupOptionsCaption:`Selecionar...`,value:`valor`,requiredError:`Por favor, responda à pergunta.`,requiredErrorInPanel:`Por favor, responda pelo menos a uma pergunta.`,requiredInAllRowsError:`Por favor, responda à s perguntas em todas as linhas.`,eachRowUniqueError:`Cada linha deve ter um valor exclusivo.`,numericError:`O valor deve ser numérico.`,minError:`O valor não deverá ser menor que {0}`,stepError:`Insira um valor que corresponda ao tamanho da etapa de {0}.`,maxError:`O valor não deverá ser maior que {0}`,invalidInputError:`Entrada inválida`,textNoDigitsAllow:`Números não são permitidos.`,incompletePatternError:`Por favor, complete o valor para corresponder ao formato exigido.`,textMinLength:`Por favor, insira pelo menos {0} caracteres.`,textMaxLength:`Por favor, insira menos de {0} caracteres.`,textMinMaxLength:`Por favor, insira mais de {0} e menos de {1} caracteres.`,minRowCountError:`Preencha pelo menos {0} linhas.`,minSelectError:`Selecione pelo menos {0} opções.`,maxSelectError:`Por favor, selecione no máximo {0} opções.`,numericMinMax:`O '{0}' deve ser igual ou superior a {1} e igual ou menor que {2}`,numericMin:`O '{0}' deve ser igual ou superior a {1}`,numericMax:`O '{0}' deve ser igual ou inferior a {1}
219`,invalidEmail:`Por favor, insira um e-mail válido.`,invalidExpression:`A expressão: {0} deve retornar 'verdadeiro'.`,urlRequestError:`O pedido retornou o erro '{0}'. {1}`,urlGetChoicesError:`O pedido não retornou dados ou o 'caminho' do pedido não está correto`,exceedMaxSize:`O tamanho do arquivo não deve exceder {0}.`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`O número máximo de arquivos que você pode enviar é {0}.`,noUploadFilesHandler:`Os arquivos não podem ser carregados. Adicione um manipulador para o evento 'onUploadFiles'.`,otherRequiredError:`Por favor, insira o outro valor.`,uploadingFile:`O seu ficheiro está a carregar. Por favor, aguarde alguns segundos e tente novamente.`,loadingFile:`A carregar...`,chooseFile:`Selecione o(s) arquivo(s)...`,noFileChosen:`Nenhum ficheiro escolhido`,filePlaceholder:`Arraste um ficheiro aqui ou clique no botão abaixo para carregar o ficheiro.`,confirmDelete:`Tem a certeza que deseja apagar?`,keyDuplicationError:`Este valor deve ser único.`,addColumn:`Adicionar coluna`,addRow:`Adicionar linha`,removeRow:`Remover linha`,noRowsText:`Não existem linhas.`,rowIndexTemplateTitle:`Linha {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Adicionar novo`,removePanel:`Remover`,showDetails:`Mostrar detalhes`,hideDetails:`Ocultar detalhes`,choices_Item:`Item`,choices_Choice:`Opção de escolha`,matrix_column:`Coluna`,matrix_row:`Linha`,multipletext_itemname:`texto`,savingData:`Os resultados estão a ser guardados no servidor...`,savingDataError:`Ocorreu um erro e não foi possÃvel guardar os resultados.`,savingDataSuccess:`Os resultados foram guardados com sucesso!`,saveAgainButton:`Tente novamente`,timerMin:`min`,timerSec:`seg`,timerSpentAll:`Você gastou {0} nesta página e {1} no total.`,timerSpentPage:`Você gastou {0} nesta página.`,timerSpentSurvey:`Você gastou {0} no total.`,timerLimitAll:`Você gastou {0} de {1} nesta página e {2} de {3} no total.`,timerLimitPage:`Você gastou {0} de {1} nesta página.`,timerLimitSurvey:`Você gastou {0} de {1} no total.`,clearCaption:`Limpar`,selectCaption:`Selecionar`,signaturePlaceHolder:`Assine aqui`,signaturePlaceHolderReadOnly:`Sem assinatura`,chooseFileCaption:`Escolher ficheiro`,takePhotoCaption:`Tirar foto`,photoPlaceholder:`Clique no botão abaixo para tirar uma foto usando a câmera.`,fileOrPhotoPlaceholder:`Arraste e solte ou selecione um arquivo para carregar ou tirar uma foto usando a câmera.`,replaceFileCaption:`Substituir arquivo`,removeFileCaption:`Remover este ficheiro`,booleanCheckedLabel:`Sim`,booleanUncheckedLabel:`Não`,confirmRemoveFile:`Tem a certeza que deseja remover este ficheiro: {0}?`,confirmRemoveAllFiles:`Tem a certeza que deseja remover todos os ficheiros?`,questionTitlePatternText:`TÃtulo da questão`,modalCancelButtonText:`Cancelar`,modalApplyButtonText:`Aplicar`,filterStringPlaceholder:`Digite para pesquisar...`,emptyMessage:`Não existe informação a mostrar`,loadingPage:`Carregamento...`,loadingData:`Carregamento...`,noEntriesText:`Ainda não existem registos. 220Clique no botão abaixo para adicionar um novo registo.`,noEntriesReadonlyText:`Sem entradas`,tabTitlePlaceholder:`Novo Painel`,more:`Mais`,tagboxDoneButtonCaption:`Terminado`,selectToRankEmptyRankedAreaText:`Todas as opções são selecionadas para classificação`,selectToRankEmptyUnrankedAreaText:`Arraste as opções aqui para classificá-las`,ok:`OKEY`,cancel:`Cancelar`,createCustomItem:`Criar item "{0}"...`,toc:`Ãndice`,progressbar:`Barra de progresso`},nativeName:`português`,englishName:`Portuguese`}),gj({localeCode:`pt-br`,strings:{pagePrevText:`Anterior`,pageNextText:`Próximo`,completeText:`Completar`,previewText:`Visualizar`,editText:`Editar`,startSurveyText:`Começar`,commentText:`Por favor, deixe um comentário`,otherItemText:`Outros (descrever)`,noneItemText:`Nenhum`,refuseItemText:`Recusar-se a responder`,dontKnowItemText:`Não sei`,selectAllItemText:`Selecionar tudo`,deselectAllItemText:`Desmarcar tudo`,progressText:`Página {0} de {1}`,indexText:`{0} de {1}`,panelDynamicProgressText:`{0} de {1}`,panelDynamicTabTextFormat:`Painel {panelIndex}`,questionsProgressText:`Perguntas respondidas {0}/{1}`,emptySurvey:`Não há página visÃvel ou pergunta na pesquisa.`,completingSurvey:`Obrigado por finalizar a pesquisa!`,completingSurveyBefore:`Nossos registros mostram que você já finalizou a pesquisa.`,loadingSurvey:`A pesquisa está carregando...`,placeholder:`Selecionar...`,ratingOptionsCaption:`Selecionar...`,buttongroupOptionsCaption:`Selecionar...`,value:`valor`,requiredError:`Por favor, responda a pergunta.`,requiredErrorInPanel:`Por favor, responda pelo menos uma pergunta.`,requiredInAllRowsError:`Por favor, responda as perguntas em todas as linhas.`,eachRowUniqueError:`Cada linha deve ter um valor exclusivo.`,numericError:`O valor deve ser numérico.`,minError:`O valor não deve ser inferior a {0}`,stepError:`Insira um valor que corresponda ao tamanho da etapa de {0}.`,maxError:`O valor não deve ser maior que {0}`,invalidInputError:`Entrada inválida`,textNoDigitsAllow:`Números não são permitidos.`,incompletePatternError:`Por favor, complete o valor para corresponder ao formato exigido.`,textMinLength:`Introduza pelo menos {0} caractere(s).`,textMaxLength:`Introduza no máximo {0} caractere(s).`,textMinMaxLength:`Insira pelo menos {0} e não mais do que {1} caracteres.`,minRowCountError:`Por favor, preencha pelo menos {0} linha(s).`,minSelectError:`Selecione pelo menos {0} opção(ões).`,maxSelectError:`Por favor, selecione não mais do que {0} opções.`,numericMinMax:`O "{0}" deve ser pelo menos {1} e no máximo {2}`,numericMin:`O "{0}" deve ser pelo menos {1}`,numericMax:`O "{0}" deve ser no máximo {1}
220`,invalidEmail:`Por favor, informe um e-mail válido.`,invalidExpression:`A expressão: {0} deve retornar 'verdadeiro'.`,urlRequestError:`A requisição retornou o erro '{0}'. {1}`,urlGetChoicesError:`A requisição não retornou dados ou o 'caminho' da requisição não está correto`,exceedMaxSize:`O tamanho do arquivo não deve exceder {0}.`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`O número máximo de arquivos que você pode enviar é {0}.`,noUploadFilesHandler:`Os arquivos não podem ser carregados. Adicione um manipulador para o evento 'onUploadFiles'.`,otherRequiredError:`Por favor, informe o outro valor.`,uploadingFile:`Seu arquivo está sendo carregado. Por favor, aguarde alguns segundos e tente novamente.`,loadingFile:`Carregando...`,chooseFile:`Escolha o(s) arquivo(s)...`,noFileChosen:`Nenhum arquivo escolhido`,filePlaceholder:`Arraste e solte um arquivo aqui ou clique no botão abaixo para selecionar um arquivo para carregar.`,confirmDelete:`Tem certeza que deseja deletar?`,keyDuplicationError:`Esse valor deve ser único.`,addColumn:`Adicionar coluna`,addRow:`Adicionar linha`,removeRow:`Retirar`,noRowsText:`Não há filas.`,rowIndexTemplateTitle:`Linha {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Adicionar novo`,removePanel:`Retirar`,showDetails:`Mostrar detalhes`,hideDetails:`Ocultar detalhes`,choices_Item:`item`,choices_Choice:`Opção de escolha`,matrix_column:`Coluna`,matrix_row:`Remar`,multipletext_itemname:`Texto`,savingData:`Os resultados esto sendo salvos no servidor...`,savingDataError:`Ocorreu um erro e não foi possÃvel salvar os resultados.`,savingDataSuccess:`Os resultados foram salvos com sucesso!`,saveAgainButton:`Tentar novamente`,timerMin:`Min`,timerSec:`segundo`,timerSpentAll:`Você gastou {0} nesta página e {1} no total.`,timerSpentPage:`Você passou {0} nesta página.`,timerSpentSurvey:`Gastou {0} no total.`,timerLimitAll:`Você gastou {0} de {1} nesta página e {2} de {3} no total.`,timerLimitPage:`Você gastou {0} de {1} nesta página.`,timerLimitSurvey:`Gastou {0} de {1} no total.`,clearCaption:`Excluir tudo`,selectCaption:`Selecionar`,signaturePlaceHolder:`Assine aqui`,signaturePlaceHolderReadOnly:`Sem assinatura`,chooseFileCaption:`Escolher arquivo`,takePhotoCaption:`Tirar foto`,photoPlaceholder:`Clique no botão abaixo para tirar uma foto usando a câmera.`,fileOrPhotoPlaceholder:`Arraste e solte ou selecione um arquivo para carregar ou tirar uma foto usando a câmera.`,replaceFileCaption:`Substituir arquivo`,removeFileCaption:`Remover este arquivo`,booleanCheckedLabel:`Sim`,booleanUncheckedLabel:`Não`,confirmRemoveFile:`Tem certeza que deseja remover este arquivo: {0}?`,confirmRemoveAllFiles:`Tem certeza que deseja remover todos os arquivos?`,questionTitlePatternText:`TÃtulo da pergunta`,modalCancelButtonText:`Cancelar`,modalApplyButtonText:`Aplicar`,filterStringPlaceholder:`Digite para pesquisar...`,emptyMessage:`Nenhum dado a ser exibido`,loadingPage:`Carregamento...`,loadingData:`Carregamento...`,noEntriesText:`Ainda não há entradas. 221Clique no botão abaixo para adicionar uma nova entrada.`,noEntriesReadonlyText:`Sem entradas`,tabTitlePlaceholder:`Novo Painel`,more:`Mais`,tagboxDoneButtonCaption:`OKEY`,selectToRankEmptyRankedAreaText:`Todas as opções são selecionadas para classificação`,selectToRankEmptyUnrankedAreaText:`Arraste as opções aqui para classificá-las`,ok:`OKEY`,cancel:`Cancelar`,createCustomItem:`Criar item "{0}"...`,toc:`Ãndice`,progressbar:`Barra de progresso`},nativeName:`português brasileiro`,englishName:`Brazilian Portuguese`}),gj({localeCode:`ro`,strings:{pagePrevText:`Precedent`,pageNextText:`UrmÄtor`,completeText:`Finalizare`,previewText:`previzualizare`,editText:`EditaÈi`,startSurveyText:`start`,commentText:`VÄ rugÄm sÄ lÄsaÈi un comentariu`,otherItemText:`Altul(precizaÅ£i)`,n
221oneItemText:`Nici unul`,refuseItemText:`RefuzÄ sÄ rÄspundÄ`,dontKnowItemText:`Nu Åtiu`,selectAllItemText:`SelecteazÄ tot`,deselectAllItemText:`DeselecteazÄ tot`,progressText:`Pagina {0} din {1}`,indexText:`{0} de {1}`,panelDynamicProgressText:`Ãnregistrare {0} din {1}`,panelDynamicTabTextFormat:`Panou {panelIndex}`,questionsProgressText:`RÄspunsuri la {0} / {1} întrebÄri`,emptySurvey:`Nu sunt întrebÄri pentru acest chestionar`,completingSurvey:`VÄ mulÅ£umim pentru timpul acordat!`,completingSurveyBefore:`Din înregistrÄrile noastre reiese cÄ aÈi completat deja acest chestionar.`,loadingSurvey:`Chestionarul se încarcÄ...`,placeholder:`AlegeÅ£i...`,ratingOptionsCaption:`Alege...`,buttongroupOptionsCaption:`Alege...`,value:`valoare`,requiredError:`RÄspunsul la aceastÄ Ã®ntrebare este obligatoriu.`,requiredErrorInPanel:`VÄ rugÄm sÄ rÄspundeÈi la cel puÈin o întrebare.`,requiredInAllRowsError:`Toate rÄspunsurile sunt obligatorii`,eachRowUniqueError:`Fiecare rând trebuie sÄ aibÄ o valoare unicÄ.`,numericError:`RÄspunsul trebuie sÄ fie numeric.`,minError:`Valoarea nu trebuie sÄ fie mai micÄ de {0}`,stepError:`IntroduceÈi o valoare care se potriveÈte cu dimensiunea pasului {0}.`,maxError:`Valoarea nu trebuie sÄ fie mai mare de {0}`,invalidInputError:`Intrare invalidÄ`,textNoDigitsAllow:`Numerele nu sunt permise.`,incompletePatternError:`VÄ rugÄm sÄ completaÈi valoarea pentru a corespunde formatului cerut.`,textMinLength:`Trebuie sÄ introduceÈi minim {0} caractere.`,textMaxLength:`Trebuie sÄ introduceÈi maxim {0} caractere.`,textMinMaxLength:`Trebuie sÄ introduceÈi mai mult de {0} Èi mai puÈin de {1} caractere.`,minRowCountError:`Trebuie sÄ completaÈi minim {0} rânduri.`,minSelectError:`Trebuie sÄ selectaÈi minim {0} opÅ£iuni.`,maxSelectError:`Trebuie sÄ selectaÈi maxim {0} opÅ£iuni.`,numericMinMax:`RÄspunsul '{0}' trebuie sÄ fie mai mare sau egal ca {1} Åî mai mic sau egal cu {2}`,numericMin:`RÄspunsul '{0}' trebuie sÄ fie mai mare sau egal ca {1}`,numericMax:`RÄspunsul '{0}' trebuie sÄ fie mai mic sau egal ca {1}`,invalidEmail:`Trebuie sÄ introduceÅ£i o adresa de email validÄ.`,invalidExpression:`Expresia: {0} ar trebui sÄ returneze âadevÄratâ.`,urlRequestError:`Request-ul a returnat eroarea '{0}'. {1}`,urlGetChoicesError:`Request-ul nu a returnat date sau proprietatea 'path' este incorectÄ`,exceedMaxSize:`Dimensiunea fiÅierului nu trebuie sÄ depÄÅeascÄ {0}.`,fileSizeUnits:`OcteÈi, KB, MB, GB, TB`,exceedMaxFiles:`NumÄrul maxim de fiÈiere pe care le poÈi încÄrca este {0}.`,noUploadFilesHandler:`FiÈierele nu pot fi încÄrcate. VÄ rugÄm sÄ adÄugaÈi un handler pentru evenimentul "onUploadFiles".`,otherRequiredError:`Trebuie sÄ completaÈi câmpul 'Altul'.`,uploadingFile:`FiÈierul dumneavoastrÄ este în curs de încÄrcare. VÄ rugÄm aÈteptaÈi câteva secunde Èi reveniÈi apoi.`,loadingFile:`Se încarcÄ...`,chooseFile:`Alege fisierele...`,noFileChosen:`Niciun fiÈier ales`,filePlaceholder:`TrageÈi Èi plasaÈi un fiÈier aici sau faceÈi clic pe butonul de mai jos pentru a selecta un fiÈier de încÄrcat.`,confirmDelete:`SunteÈi sigur cÄ doriÈi sÄ ÈtergeÈi înregistrarea?`,keyDuplicationError:`Valoarea trebuie sÄ fie unicÄ.`,addColumn:`AdÄugaÈi coloanÄ`,addRow:`AdÄugare rând`,removeRow:`Ètergere`,noRowsText:`Nu existÄ rânduri.`,rowIndexTemplateTitle:`Rând {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`AdÄugare`,removePanel:`Ètergere`,showDetails:`AratÄ detalii`,hideDetails:`Ascunde detalii`,choices_Item:`opÈiune`,choices_Choice:`OpÈiune de alegere`,matrix_column:`ColoanÄ`,matrix_row:`Rând`,multipletext_itemname:`Text`,savingData:`Rezultatele sunt în curs de salvare...`,savingDataError:`A intervenit o eroare, rezultatele nu au putut fi salvate.`,savingDataSuccess:`Rezultatele au fost salvate cu succes!`,saveAgainButton:`ÃncercaÈi din nou`,timerMin:`min`,timerSec:`SEC`,timerSpentAll:`AÈi petrecut {0} pe aceastÄ paginÄ Èi {1} în total.`,timerSpentPage:`AÈi petrecut {0} pe aceastÄ paginÄ.`,timerSpentSurvey:`AÈi petrecut {0} în total.`,timerLimitAll:`AÈi petrecut {0} din {1} pe aceastÄ paginÄ Èi {2} din {3} în total.`,timerLimitPage:`AÈi petrecut {0} din {1} pe aceastÄ paginÄ.`,timerLimitSurvey:`AÈi petrecut {0} din {1} în total.`,clearCaption:`clar`,selectCaption:`Alege`,signaturePlaceHolder:`SemneazÄ aici`,signaturePlaceHolderReadOnly:`FÄrÄ semnÄturÄ`,chooseFileCaption:`Alege fiÈierul`,takePhotoCaption:`FaceÈi o fotografie`,photoPlaceholder:`FaceÈi clic pe butonul de mai jos pentru a face o fotografie folosind camera.`,fileOrPhotoPlaceholder:`GlisaÈi Èi fixaÈi sau selectaÈi un fiÈier pentru a încÄrca sau a face o fotografie folosind camera.`,replaceFileCaption:`Ãnlocuire fiÈier`,removeFileCaption:`EliminaÈi acest fiÈier`,booleanCheckedLabel:`da`,booleanUncheckedLabel:`Nu`,confirmRemoveFile:`Sigur doriÈi sÄ eliminaÈi acest fiÈier: {0}?`,confirmRemoveAllFiles:`Sigur doriÈi sÄ eliminaÈi toate fiÈierele?`,questionTitlePatternText:`Titlul intrebarii`,modalCancelButtonText:`Anula`,modalApplyButtonText:`Aplica`,filterStringPlaceholder:`TastaÈi pentru a cÄuta...`,emptyMessage:`Nu existÄ date de afiÈat`,loadingPage:`ÃncÄrcare...`,loadingData:`ÃncÄrcare...`,noEntriesText:`ÃncÄ nu existÄ Ã®nscrieri. 222FaceÈi clic pe butonul de mai jos pentru a adÄuga o nouÄ intrare.`,noEntriesReadonlyText:`FÄrÄ intrÄri`,tabTitlePlaceholder:`Panou nou`,more:`Mai mult`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Toate opÈiunile sunt selectate pentru clasare`,selectToRankEmptyUnrankedAreaText:`TrageÈi opÈiunile aici pentru a le clasifica`,ok:`OK`,cancel:`Anula`,createCustomItem:`CreaÈi un articol "{0}"...`,toc:`Cuprins`,progressbar:`Bara de progres`},nativeName:`românÄ`,englishName:`Romanian`}),gj({localeCode:`ru`,strings:{pagePrevText:`Ðазад`,pageNextText:`Ðалее`,completeText:`ÐоÑово`,previewText:`ÐÑедваÑиÑелÑнÑй пÑоÑмоÑÑ`,editText:`РедакÑиÑование`,startSurveyText:`ÐаÑаÑÑ`,commentText:`ÐожалÑйÑÑа, оÑÑавÑÑе комменÑаÑий`,otherItemText:`ÐÑÑгое (пожалÑйÑÑа, опиÑиÑе)`,noneItemText:`ÐеÑ`,refuseItemText:`ÐÑказÑваÑÑÑ Ð¾ÑвеÑаÑÑ`,dontKnowItemText:`Ðе знаÑ`,selectAllItemText:`ÐÑбÑаÑÑ Ð²ÑÑ`,deselectAllItemText:`ÐÑмена вÑбоÑа вÑÐµÑ `,progressText:`СÑÑаниÑа {0} из {1}`,indexText:`{0} из {1}`,panelDynamicProgressText:`ÐапиÑÑ {0} из {1}`,panelDynamicTabTextFormat:`ÐÐ°Ð½ÐµÐ»Ñ {panelIndex}`,questionsProgressText:`OÑвеÑено на {0}/{1} вопÑоÑов`,emptySurvey:`ÐÐµÑ Ð½Ð¸ одного вопÑоÑа.`,completingSurvey:`ÐлагодаÑим ÐÐ°Ñ Ð·Ð° заполнение анкеÑÑ!`,completingSurveyBefore:`ÐÑ Ñже пÑÐ¾Ñ Ð¾Ð´Ð¸Ð»Ð¸ ÑÑÐ¾Ñ Ð¾Ð¿ÑоÑ.`,loadingSurvey:`ÐагÑÑзка Ñ ÑеÑвеÑа...`,placeholder:`ÐÑбÑаÑÑ...`,ratingOptionsCaption:`ÐажмиÑе здеÑÑ, ÑÑÐ¾Ð±Ñ Ð¾ÑениÑÑ...`,buttongroupOptionsCaption:`ÐÑбиÑаÑÑ...`,value:`знаÑение`,requiredError:`ÐожалÑйÑÑа, оÑвеÑÑÑе на вопÑоÑ.`,requiredErrorInPanel:`ÐожалÑйÑÑа, оÑвеÑÑÑе по кÑайней меÑе на один вопÑоÑ.`,requiredInAllRowsError:`ÐожалÑйÑÑа, оÑвеÑÑÑе на вопÑоÑÑ Ð² каждой ÑÑÑоке.`,eachRowUniqueError:`ÐÐ°Ð¶Ð´Ð°Ñ ÑÑÑока должна имеÑÑ ÑникалÑное знаÑение.`,numericError:`ÐÑÐ²ÐµÑ Ð´Ð¾Ð»Ð¶ÐµÐ½ бÑÑÑ ÑиÑлом.`,minError:`ÐнаÑение не должно бÑÑÑ Ð¼ÐµÐ½ÑÑе {0}.`,stepError:`ÐожалÑйÑÑа, введиÑе знаÑение, коÑоÑое ÑооÑвеÑÑÑвÑÐµÑ ÑазмеÑÑ Ñага {0}.`,maxError:`ÐнаÑение не должно пÑевÑÑаÑÑ {0}
222.`,invalidInputError:`ÐекоÑÑекÑнÑй Ð²Ñ Ð¾Ð´`,textNoDigitsAllow:`ÐомеÑа не допÑÑкаÑÑÑÑ.`,incompletePatternError:`ÐожалÑйÑÑа, заполниÑе знаÑение, ÑÑÐ¾Ð±Ñ ÑооÑвеÑÑÑвоваÑÑ Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾Ð¼Ñ ÑоÑмаÑÑ.`,textMinLength:`ÐожалÑйÑÑа введиÑе болÑÑе {0} Ñимволов.`,textMaxLength:`ÐожалÑйÑÑа введиÑе менÑÑе {0} Ñимволов.`,textMinMaxLength:`ÐожалÑйÑÑа введиÑе болÑÑе {0} и менÑÑе {1} Ñимволов.`,minRowCountError:`ÐожалÑйÑÑа, заполниÑе не менÑÑе {0} ÑÑÑок.`,minSelectError:`ÐожалÑйÑÑа, вÑбеÑиÑе Ñ Ð¾ÑÑ Ð±Ñ {0} ваÑианÑов.`,maxSelectError:`ÐожалÑйÑÑа, вÑбеÑиÑе не более {0} ваÑианÑов.`,numericMinMax:`'{0}' должно бÑÑÑ Ð½Ðµ менÑÑе Ñем {1}, и не болÑÑе Ñем {2}`,numericMin:`'{0}' должно бÑÑÑ Ð½Ðµ менÑÑе Ñем {1}`,numericMax:`'{0}' должно бÑÑÑ Ð½Ðµ болÑÑе Ñем {1}`,invalidEmail:`ÐожалÑйÑÑа, введиÑе дейÑÑвиÑелÑнÑй адÑÐµÑ ÑлекÑÑонной поÑÑÑ.`,invalidExpression:`ÐÑÑажение {0} должно возвÑаÑаÑÑ 'true'.`,urlRequestError:`ÐапÑÐ¾Ñ Ð²ÐµÑнÑл оÑÐ¸Ð±ÐºÑ '{0}'. {1}`,urlGetChoicesError:`ÐÑÐ²ÐµÑ Ð½Ð° запÑÐ¾Ñ Ð¿ÑиÑел пÑÑÑой или ÑвойÑÑво 'path' Ñказано невеÑно`,exceedMaxSize:`Ð Ð°Ð·Ð¼ÐµÑ Ñайла не должен пÑевÑÑаÑÑ {0}.`,fileSizeUnits:`ÐайÑÑ, KB, MB, GB, TB`,exceedMaxFiles:`ÐакÑималÑное колиÑеÑÑво Ñайлов, коÑоÑÑе Ð²Ñ Ð¼Ð¾Ð¶ÐµÑе загÑÑзиÑÑ, â {0}.`,noUploadFilesHandler:`Ð¤Ð°Ð¹Ð»Ñ Ð½Ðµ могÑÑ Ð±ÑÑÑ Ð·Ð°Ð³ÑÑженÑ. ÐожалÑйÑÑа, добавÑÑе обÑабоÑÑик Ð´Ð»Ñ ÑобÑÑÐ¸Ñ 'onUploadFiles'.`,otherRequiredError:`ÐожалÑйÑÑа, введиÑе даннÑе в поле 'ÐÑÑгое'`,uploadingFile:`ÐÐ°Ñ Ñайл загÑÑжаеÑÑÑ. ÐодождиÑе неÑколÑко ÑекÑнд и попÑобÑйÑе Ñнова.`,loadingFile:`ÐагÑÑзка...`,chooseFile:`ÐÑбеÑиÑе Ñайл(Ñ)...`,noFileChosen:`Файл не вÑбÑан`,filePlaceholder:`ÐеÑеÑаÑиÑе Ñайл ÑÑда или нажмиÑе ÐºÐ½Ð¾Ð¿ÐºÑ Ð½Ð¸Ð¶Ðµ, ÑÑÐ¾Ð±Ñ Ð·Ð°Ð³ÑÑзиÑÑ Ñайл.`,confirmDelete:`ÐÑ ÑоÑно Ñ Ð¾ÑиÑе ÑдалиÑÑ Ð·Ð°Ð¿Ð¸ÑÑ?`,keyDuplicationError:`ÐÑо знаÑение должно бÑÑÑ ÑникалÑнÑм.`,addColumn:`ÐобавиÑÑ ÐºÐ¾Ð»Ð¾Ð½ÐºÑ`,addRow:`ÐобавиÑÑ ÑÑÑокÑ`,removeRow:`УдалиÑÑ`,noRowsText:`Ð Ñдов неÑ.`,rowIndexTemplateTitle:`СÑÑока {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`ÐобавиÑÑ Ð½Ð¾Ð²ÑÑ`,removePanel:`УдалиÑÑ`,showDetails:`ÐоказаÑÑ Ð¿Ð¾Ð´ÑобноÑÑи`,hideDetails:`СкÑÑÑÑ Ð¿Ð¾Ð´ÑобноÑÑи`,choices_Item:`ÐаÑианÑ`,choices_Choice:`ÐаÑÐ¸Ð°Ð½Ñ Ð²ÑбоÑа`,matrix_column:`Ðолонка`,matrix_row:`СÑÑока`,multipletext_itemname:`ÑекÑÑ`,savingData:`РезÑлÑÑаÑÑ ÑÐ¾Ñ ÑанÑÑÑÑÑ Ð½Ð° ÑеÑвеÑ...`,savingDataError:`ÐÑоизоÑла оÑибка, ÑезÑлÑÑÐ°Ñ Ð½Ðµ бÑл ÑÐ¾Ñ ÑанÑн.`,savingDataSuccess:`РезÑлÑÑÐ°Ñ ÑÑпеÑно ÑÐ¾Ñ ÑанÑн!`,saveAgainButton:`ÐопÑобоваÑÑ Ñнова`,timerMin:`мин`,timerSec:`Ñек`,timerSpentAll:`ÐÑ Ð¿Ð¾ÑÑаÑили {0} на ÑÑой ÑÑÑаниÑе и {1} вÑего.`,timerSpentPage:`ÐÑ Ð¿Ð¾ÑÑаÑили {0} на ÑÑой ÑÑÑаниÑе.`,timerSpentSurvey:`ÐÑ Ð¿Ð¾ÑÑаÑили {0} в ÑеÑение ÑеÑÑа.`,timerLimitAll:`ÐÑ Ð¿Ð¾ÑÑаÑили {0} из {1} на ÑÑой ÑÑÑаниÑе и {2} из {3} Ð´Ð»Ñ Ð²Ñего ÑеÑÑа.`,timerLimitPage:`ÐÑ Ð¿Ð¾ÑÑаÑили {0} из {1} на ÑÑой ÑÑÑаниÑе.`,timerLimitSurvey:`ÐÑ Ð¿Ð¾ÑÑаÑили {0} из {1} Ð´Ð»Ñ Ð²Ñего ÑеÑÑа.`,clearCaption:`ÐÑиÑÑиÑÑ`,selectCaption:`ÐÑбиÑаÑÑ`,signaturePlaceHolder:`ÐодпиÑиÑе здеÑÑ`,signaturePlaceHolderReadOnly:`Ðез подпиÑи`,chooseFileCaption:`ÐÑбеÑиÑе Ñайл`,takePhotoCaption:`СделаÑÑ ÑоÑо`,photoPlaceholder:`ÐажмиÑе ÐºÐ½Ð¾Ð¿ÐºÑ Ð½Ð¸Ð¶Ðµ, ÑÑÐ¾Ð±Ñ ÑделаÑÑ Ñнимок Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ ÐºÐ°Ð¼ÐµÑÑ.`,fileOrPhotoPlaceholder:`ÐеÑеÑаÑиÑе или вÑбеÑиÑе Ñайл Ð´Ð»Ñ Ð·Ð°Ð³ÑÑзки или ÑÑемки Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ ÐºÐ°Ð¼ÐµÑÑ.`,replaceFileCaption:`ÐамениÑÑ Ñайл`,removeFileCaption:`УдалиÑÑ Ñайл`,booleanCheckedLabel:`Ðа`,booleanUncheckedLabel:`ÐеÑ`,confirmRemoveFile:`ÐÑ ÑвеÑенÑ, ÑÑо Ñ Ð¾ÑиÑе ÑдалиÑÑ ÑÑÐ¾Ñ Ñайл: {0}?`,confirmRemoveAllFiles:`ÐÑ ÑвеÑенÑ, ÑÑо Ñ Ð¾ÑиÑе ÑдалиÑÑ Ð²Ñе ÑайлÑ?`,questionTitlePatternText:`Ðазвание вопÑоÑа`,modalCancelButtonText:`ÐÑмениÑÑ`,modalApplyButtonText:`ÐÑименÑÑÑ`,filterStringPlaceholder:`ÐведиÑе Ð´Ð»Ñ Ð¿Ð¾Ð¸Ñка...`,emptyMessage:`ÐÐµÑ Ð´Ð°Ð½Ð½ÑÑ Ð´Ð»Ñ Ð¾ÑобÑажениÑ`,loadingPage:`ÐагÑÑзка...`,loadingData:`ÐагÑÑзка...`,noEntriesText:`Ðока Ð½ÐµÑ Ð·Ð°Ð¿Ð¸Ñей. 223ÐажмиÑе ÐºÐ½Ð¾Ð¿ÐºÑ Ð½Ð¸Ð¶Ðµ, ÑÑÐ¾Ð±Ñ Ð´Ð¾Ð±Ð°Ð²Ð¸ÑÑ Ð½Ð¾Ð²ÑÑ Ð·Ð°Ð¿Ð¸ÑÑ.`,noEntriesReadonlyText:`ÐÐµÑ Ð·Ð°Ð¿Ð¸Ñей`,tabTitlePlaceholder:`ÐÐ¾Ð²Ð°Ñ Ð¿Ð°Ð½ÐµÐ»Ñ`,more:`ÐолÑÑе`,tagboxDoneButtonCaption:`ХоÑоÑо`,selectToRankEmptyRankedAreaText:`ÐÑе ваÑианÑÑ Ð¾ÑбиÑаÑÑÑÑ Ð´Ð»Ñ ÑанжиÑованиÑ`,selectToRankEmptyUnrankedAreaText:`ÐеÑеÑаÑиÑе ваÑианÑÑ ÑÑда Ð´Ð»Ñ Ð¸Ñ ÑанжиÑованиÑ`,ok:`ХоÑоÑо`,cancel:`ÐÑмена`,createCustomItem:`СоздаÑÑ ÑÐ»ÐµÐ¼ÐµÐ½Ñ "{0}"...`,toc:`СодеÑжание`,progressbar:`ÐндикаÑÐ¾Ñ Ð²ÑполнениÑ`},nativeName:`ÑÑÑÑкий`,englishName:`Russian`}),gj({localeCode:`sr`,strings:{pagePrevText:`Nazad`,pageNextText:`Dalje`,completeText:`ZavrÅ¡i`,previewText:`Pregledaj`,editText:`Izmeni`,startSurveyText:`ZapoÄni`,commentText:`Molimo ostavite
223komentar`,otherItemText:`Drugo (upiÅ¡i)`,noneItemText:`NiÅ¡ta`,refuseItemText:`Odbijanje odgovora`,dontKnowItemText:`Ne znam`,selectAllItemText:`Izaberi sve`,deselectAllItemText:`PoniÅ¡ti izbor svih`,progressText:`Stranica {0} od {1}`,indexText:`{0} {1}`,panelDynamicProgressText:`Upis {0} od {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Odgovoreno na {0}/{1} pitanja`,emptySurvey:`Nema vidljivih stranica ili pitanja u anketi.`,completingSurvey:`Hvala na popunjavanju ankete!`,completingSurveyBefore:`Prema naÅ¡im podacima, veÄ ste popunili ovu anketu.`,loadingSurvey:`UÄitavam anketu...`,placeholder:`Izaberi...`,ratingOptionsCaption:`Izaberite...`,buttongroupOptionsCaption:`Izaberite...`,value:`vrednost`,requiredError:`Molimo odgovorite na ovo pitanje.`,requiredErrorInPanel:`Molimo odgovorite na bar jedno pitanje.`,requiredInAllRowsError:`Molimo odgovorite na pitanja u svim redovima.`,eachRowUniqueError:`Svaki red mora imati jedinstvenu vrednost.`,numericError:`Vrednost bi trebalo da bude numeriÄka.`,minError:`Vrednost ne bi trebalo da bude manja od {0}`,stepError:`Unesite vrednost koja odgovara veliÄini koraka {0}.`,maxError:`Vrednost ne bi trebalo da bude veÄa od {0}`,invalidInputError:`Neispravan unos`,textNoDigitsAllow:`Brojevi nisu dozvoljeni.`,incompletePatternError:`Molimo Vas da popunite vrednost koja odgovara potrebnom formatu.`,textMinLength:`Molimo unesite bar {0} znak(ov)a.`,textMaxLength:`Molimo unesite najviÅ¡e {0} znak(ov)a.`,textMinMaxLength:`Molimo unesite najmanje {0} i ne viÅ¡e od {1} znak(ov)a.`,minRowCountError:`Molimo popunite najmanje {0} red(ova).`,minSelectError:`Molimo izaberite najmanje {0} opcija/e.`,maxSelectError:`Molimo izaberite najviÅ¡e {0} opcija/e.`,numericMinMax:`'{0}' bi trebalo da bude najmanje {1} i najviÅ¡e {2}`,numericMin:`'{0}' bi trebalo da bude najmanje {1}`,numericMax:`'{0}' bi trebalo da bude najviÅ¡e {1}`,invalidEmail:`Molimo unesite ispravnu e-mail adresu.`,invalidExpression:`Izraz: {0} bi trebalo da bude taÄan.`,urlRequestError:`Zahtev je naiÅ¡ao na greÅ¡ku '{0}'. {1}`,urlGetChoicesError:`Zahtev nije pronaÅ¡ao podatke, ili je putanja netaÄna`,exceedMaxSize:`VeliÄina fajla ne bi trebalo da prelazi {0}.`,fileSizeUnits:`Bajtovi, KB, MB, GB, TB`,exceedMaxFiles:`Maksimalan broj fajlova koje možete da otpremite je {0}.`,noUploadFilesHandler:`Nije moguÄe otpremiti datoteke. Dodajte rukovaoca za dogaÄaj "onUploadFiles".`,otherRequiredError:`Molimo unesite drugu vrednost.`,uploadingFile:`Fajl se Å¡alje. Molimo saÄekajte neko vreme i pokuÅ¡ajte ponovo.`,loadingFile:`UÄitavanje...`,chooseFile:`Izaberite fajlove...`,noFileChosen:`Nije izabran nijedan fajl`,filePlaceholder:`Prevucite i ispustite datoteku ovde ili kliknite na dugme ispod da biste izabrali datoteku za otpremanje.`,confirmDelete:`Da li želite da izbriÅ¡ete unos?`,keyDuplicationError:`Ova vrednost treba da bude jedinstvena.`,addColumn:`Dodaj kolonu`,addRow:`Dodaj red`,removeRow:`Ukloni`,noRowsText:`Nema redova.`,rowIndexTemplateTitle:`Red {rovIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Dodaj novo`,removePanel:`Ukloni`,showDetails:`Prikaži detalje`,hideDetails:`Sakrij detalje`,choices_Item:`stavka`,choices_Choice:`Opcija izbora`,matrix_column:`Kolona`,matrix_row:`Red`,multipletext_itemname:`tekst`,savingData:`U toku je Äuvanje podataka na serveru...`,savingDataError:`DoÅ¡lo je do greÅ¡ke i rezultati nisu saÄuvani.`,savingDataSuccess:`Rezultati su uspeÅ¡no saÄuvani!`,saveAgainButton:`PokuÅ¡ajte ponovo`,timerMin:`min`,timerSec:`sek`,timerSpentAll:`Proveli ste {0} na ovoj stranici i {1} ukupno.`,timerSpentPage:`Proveli ste {0} na ovoj stranici.`,timerSpentSurvey:`Proveli ste {0} ukupno.`,timerLimitAll:`Proveli ste {0} od {1} na ovoj stranici i {2} od {3} ukupno.`,timerLimitPage:`Proveli ste {0} od {1} na ovoj stranici.`,timerLimitSurvey:`Proveli ste {0} od {1} ukupno.`,clearCaption:`PoniÅ¡ti`,selectCaption:`Izaberite`,signaturePlaceHolder:`PotpiÅ¡ite ovde`,signaturePlaceHolderReadOnly:`Bez potpisa`,chooseFileCaption:`Izaberi fajl`,takePhotoCaption:`Fotografisanje`,photoPlaceholder:`Kliknite na dugme isp
223od da biste snimili fotografiju pomoÄu fotoaparata.`,fileOrPhotoPlaceholder:`Prevucite i otpustite ili izaberite datoteku za otpremanje ili snimanje fotografije pomoÄu fotoaparata.`,replaceFileCaption:`Zameni datoteku`,removeFileCaption:`Ukloni ovaj fajl`,booleanCheckedLabel:`Da`,booleanUncheckedLabel:`Ne`,confirmRemoveFile:`Da li ste sigurni da želite da uklonite ovaj fajl: {0}?`,confirmRemoveAllFiles:`Da li ste sigurni da želite da uklonite sve fajlove?`,questionTitlePatternText:`Naslov pitanja`,modalCancelButtonText:`Otkaži`,modalApplyButtonText:`Primeni`,filterStringPlaceholder:`Otkucajte da biste pretražili...`,emptyMessage:`Nema podataka za prikazivanje`,loadingPage:`UÄitavanje...`,loadingData:`UÄitavanje...`,noEntriesText:`JoÅ¡ nema unosa. 224Kliknite na dugme ispod da biste dodali novi unos.`,noEntriesReadonlyText:`Nema unosa`,tabTitlePlaceholder:`Nova tabla`,more:`ViÑe`,tagboxDoneButtonCaption:`U redu`,selectToRankEmptyRankedAreaText:`Svi izbori su izabrani za rangiranje`,selectToRankEmptyUnrankedAreaText:`Prevucite izbore ovde da biste ih rangirali`,ok:`U redu`,cancel:`Otkaži`,createCustomItem:`Kreiraj "{0}" stavku...`,toc:`Sadržaj`,progressbar:`Traka napretka`},nativeName:`srpski`,englishName:`Serbian`}),gj({localeCode:`zh-cn`,strings:{pagePrevText:`ä¸ä¸é¡µ`,pageNextText:`ä¸ä¸é¡µ`,completeText:`æäº¤é®å·`,previewText:`é¢è§`,editText:`ç¼è¾`,startSurveyText:`å¼å§é®å·`,commentText:`请å表è¯è®º`,otherItemText:`å¡«åå ¶ä»çæ¡`,noneItemText:`æ `,refuseItemText:`æç»åç`,dontKnowItemText:`ä¸ç¥é`,selectAllItemText:`éæ©å ¨é¨`,deselectAllItemText:`åæ¶å ¨é`,progressText:`第 {0} 页, å ± {1} 页`,indexText:`第 {0} 页ï¼å ± {1} 页`,panelDynamicProgressText:`{0}{1}`,panelDynamicTabTextFormat:`颿¿ {颿¿ç´¢å¼}`,questionsProgressText:`第 {0}/{1} é¢`,emptySurvey:`é®å·ä¸æ²¡æé®é¢æé¡µé¢`,completingSurvey:`æè°¢æ¨çåä¸!`,completingSurveyBefore:`ä½ å·²å®æé®å·.`,loadingSurvey:`é®å·æ£å¨å è½½ä¸...`,placeholder:`è¯·éæ©...`,ratingOptionsCaption:`éæ©ããã`,buttongroupOptionsCaption:`éæ©ããã`,value:`å¼`,requiredError:`è¯·å¡«åæ¤é®é¢`,requiredErrorInPanel:`è³å°åçä¸é¢.`,requiredInAllRowsError:`è¯·å¡«åææè¡ä¸é®é¢`,eachRowUniqueError:`æ¯è¡å¿ é¡»å ·æå¯ä¸å¼ã`,numericError:`çæ¡å¿ é¡»æ¯ä¸ªæ°å`,minError:`该å¼ä¸è½å°äº {0}`,stepError:`请è¾å ¥ä¸{0}æ¥é¿ç¸å¹é çå¼ã`,maxError:`该å¼ä¸è½å¤§äº {0}`,invalidInputError:`æ æè¾å ¥`,textNoDigitsAllow:`ä¸å è®¸ä½¿ç¨æ°åã`,incompletePatternError:`请填å该æ°å¼ä»¥ç¬¦åæéæ ¼å¼ã`,textMinLength:`çæ¡é¿åº¦è³å° {0} 个å符`,textMaxLength:`çæ¡é¿åº¦ä¸è½è¶ è¿ {0} 个å符`,textMinMaxLength:`çæ¡é¿åº¦å¿ é¡»å¨ {0} - {1} 个å符ä¹é´`,minRowCountError:`æå°éè¦å¡«å {0} è¡çæ¡`,minSelectError:`æå°éè¦éæ© {0} é¡¹çæ¡`,maxSelectError:`æå¤åªè½éæ© {0} é¡¹çæ¡`,numericMinMax:`çæ¡ '{0}' å¿ é¡»å¤§äºçäº {1} ä¸å°äºçäº {2}`,numericMin:`çæ¡ '{0}' å¿ é¡»å¤§äºçäº {1}`,numericMax:`çæ¡ '{0}' å¿ é¡»å°äºçäº {1}`,invalidEmail:`请è¾å ¥ææç Email å°å`,invalidExpression:`å ¬å¼: {0} æ æ.`,urlRequestError:`è½½å ¥é项æ¶åçé误 '{0}': {1}`,urlGetChoicesError:`æªè½è½½å ¥ææçé项æè¯·æ±åæ°è·¯å¾æè¯¯`,exceedMaxSize:`æä»¶å¤§å°ä¸è½è¶ è¿ {0}`,fileSizeUnits:`åèãKBãMBãGBãTB`,exceedMaxFiles:`ä½ æå¤è½ä¸ä¼ çæä»¶æ°éæ¯{0}ã`,noUploadFilesHandler:`æ æ³ä¸ä¼ æä»¶ã请为âonUploadFilesâäºä»¶æ·»å å¤çç¨åºã`,otherRequiredError:`è¯·å®æå ¶ä»é®é¢`,uploadingFile:`æä»¶ä¸ä¼ ä¸... 请èå¿çå¾ å ç§åéè¯`,loadingFile:`å è½½...`,chooseFile:`éæ©æä»¶...`,noFileChosen:`æªéæ©æä»¶`,filePlaceholder:`å°æä»¶ææ¾å°æ¤å¤æåå»ä¸é¢çæé®éæ©è¦ä¸ä¼ çæä»¶ã`,confirmDelete:`å é¤è®°å½?`,keyDuplicationError:`主é®ä¸è½éå¤`,addColumn:`æ·»å å`,addRow:`æ·»å è¡`,removeRow:`å é¤çæ¡`,noRowsText:`æ å 容`,rowIndexTemplateTitle:`è¡ {rowIndex}`,rowNameTemplateTitle:`{rowTitle}
224`,addPanel:`æ°æ·»`,removePanel:`å é¤`,showDetails:`æ¾ç¤ºè¯¦ç»ä¿¡æ¯`,hideDetails:`éè详ç»ä¿¡æ¯`,choices_Item:`é项`,choices_Choice:`Choice é项`,matrix_column:`å`,matrix_row:`è¡`,multipletext_itemname:`ææ¬`,savingData:`æ£å¨å°ç»æä¿åå°æå¡å¨...`,savingDataError:`å¨ä¿åç»æè¿ç¨ä¸åçäºé误ï¼ç»ææªè½ä¿å`,savingDataSuccess:`ç»æä¿åæå!`,saveAgainButton:`请éè¯`,timerMin:`å`,timerSec:`ç§`,timerSpentAll:`æ¬é¡µç¨æ¶ {0} æ»è®¡ç¨æ¶{1} .`,timerSpentPage:`æ¬é¡µç¨æ¶{0} .`,timerSpentSurvey:`æ»è®¡ç¨æ¶ {0} .`,timerLimitAll:`æ¬é¡µç¨æ¶ {0} å ± {1}ï¼ æ»è®¡ç¨æ¶ {2} å ± {3} .`,timerLimitPage:`æ¬é¡µç¨æ¶ {0} å ± {1} .`,timerLimitSurvey:`æ»è®¡ç¨æ¶ {0} å ± {1}.`,clearCaption:`æ¸ é¤`,selectCaption:`éæ©`,signaturePlaceHolder:`卿¤ç¾å`,signaturePlaceHolderReadOnly:`æ ç¾å`,chooseFileCaption:`éæ©æä»¶`,takePhotoCaption:`æç §`,photoPlaceholder:`åå»ä¸é¢çæé®ä½¿ç¨ç¸æºæç §ã`,fileOrPhotoPlaceholder:`ææ¾æéæ©è¦ä¸ä¼ çæä»¶æä½¿ç¨ç¸æºææç §çã`,replaceFileCaption:`æ¿æ¢æä»¶`,removeFileCaption:`ç§»é¤æä»¶`,booleanCheckedLabel:`æ¯`,booleanUncheckedLabel:`å¦`,confirmRemoveFile:`å 餿件: {0}?`,confirmRemoveAllFiles:`å 餿ææä»¶?`,questionTitlePatternText:`æ é¢`,modalCancelButtonText:`åæ¶`,modalApplyButtonText:`ç¡®å®`,filterStringPlaceholder:`é®å ¥ä»¥æç´¢...`,emptyMessage:`没æè¦æ¾ç¤ºçæ°æ®`,loadingPage:`è£ è½½ããã`,loadingData:`è£ è½½ããã`,noEntriesText:`è¿æ²¡ææ¡ç®ã 225åå»ä¸é¢çæé®æ·»å æ°æ¡ç®ã`,noEntriesReadonlyText:`ææ æ¡ç®`,tabTitlePlaceholder:`æ°é¢æ¿`,more:`æ´å¤`,tagboxDoneButtonCaption:`è¿è¡`,selectToRankEmptyRankedAreaText:`ææé项å被éä¸è¿è¡æå`,selectToRankEmptyUnrankedAreaText:`å°é项æå°æ¤å¤ä»¥å¯¹å ¶è¿è¡æå`,ok:`è¿è¡`,cancel:`åæ¶`,createCustomItem:`å建 {0} 项...`,toc:`ç®å½`,progressbar:`è¿åº¦æ¡`},nativeName:`ç®ä½ä¸æ`,englishName:`Simplified Chinese`}),gj({localeCode:`sk`,strings:{pagePrevText:`Predchádzajúca`,pageNextText:`Äalej`,completeText:`DokonÄené`,previewText:`Ukážka`,editText:`UpraviÅ¥`,startSurveyText:`SpustiÅ¥`,commentText:`Zanechajte komentár`,otherItemText:`Iné (opÃÅ¡te)`,noneItemText:`Žiadne`,refuseItemText:`OdmietnuÅ¥ odpovedaÅ¥`,dontKnowItemText:`Neviem`,selectAllItemText:`VybraÅ¥ vÅ¡etky`,deselectAllItemText:`ZruÅ¡te výber vÅ¡etkých`,progressText:`Strana {0} z {1}`,indexText:`{0} {1}`,panelDynamicProgressText:`Záznam {0} z {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Zodpovedané otázky {0}/{1}`,emptySurvey:`V prieskume nie je žiadna vidieľná stránka ani otázka.`,completingSurvey:`Äakujeme vám za dokonÄenie prieskumu.`,completingSurveyBefore:`Podľa naÅ¡ich záznamov ste už tento prieskum dokonÄili.`,loadingSurvey:`NaÄÃtanie prieskumu...`,placeholder:`VybraÅ¥...`,ratingOptionsCaption:`VybraÅ¥...`,buttongroupOptionsCaption:`VybraÅ¥...`,value:`hodnota`,requiredError:`Požaduje sa odozva.`,requiredErrorInPanel:`Požaduje sa odozva: zodpovedajte aspoÅ jednu otázku.`,requiredInAllRowsError:`Požaduje sa odozva: zodpovedajte otázky vo vÅ¡etkých riadkoch.`,eachRowUniqueError:`Každý riadok musà maÅ¥ jedineÄnú hodnotu.`,numericError:`Hodnota má byÅ¥ ÄÃselná.`,minError:`Hodnota nemá byÅ¥ nižšia než {0}`,stepError:`Zadajte hodnotu, ktorá zodpovedá veľkosti kroku {0}.`,maxError:`Hodnota nemá byÅ¥ vyššia než {0}`,invalidInputError:`Neplatný vstup`,textNoDigitsAllow:`ÄÃsla nie sú povolené.`,incompletePatternError:`ProsÃm, vyplÅte hodnotu tak, aby zodpovedala požadovanému formátu.`,textMinLength:`Zadajte aspoÅ {0} znak(-y/-ov).`,textMaxLength:`Nezadávajte viac než {0} znak(-y/-ov).`,textMinMaxLength:`Zadajte aspoÅ {0} a nie viac než {1} znaky(-ov).`,minRowCountError:`VyplÅte aspoÅ {0} riadok(-y/-ov).`,minSelectError:`Vyberte aspoÅ {0} variant(-y/-ov).`,maxSelectError:`Nevyberajte viac než {0} variant(-y/-ov).`,numericMinMax:`â{0}â má byÅ¥ minimálne {1} a maximálne {2}`,numericMin:`â{0}â má byÅ¥ minimálne {1}`,numericMax:`â{0}â má byÅ¥ maximálne {1}
225`,invalidEmail:`Zadajte platnú e-mailovú adresu.`,invalidExpression:`Výraz: {0} má vrátiÅ¥ hodnotu âtrueâ.`,urlRequestError:`Požiadavky vrátila hodnotu â{0}â. {1}`,urlGetChoicesError:`Požiadavka vrátila prázdne údaje alebo je vlastnosÅ¥ âcestaâ nesprávna`,exceedMaxSize:`VeľkosÅ¥ súboru nemá prekroÄiÅ¥ {0}.`,fileSizeUnits:`Bajty, KB, MB, GB, TB`,exceedMaxFiles:`Maximálny poÄet súborov, ktoré môžete nahraÅ¥, je {0}.`,noUploadFilesHandler:`Súbory nie je možné nahraÅ¥. Pridajte obslužný program pre udalosÅ¥ "onUploadFiles".`,otherRequiredError:`Požaduje sa odozva: zadajte inú hodnotu.`,uploadingFile:`Súbor sa odovzdáva. PoÄkajte niekoľko sekúnd a skúste to znova.`,loadingFile:`NaÄÃtanie...`,chooseFile:`Vyberte súbor(-y)...`,noFileChosen:`Žiadny vybratý súbor`,filePlaceholder:`PresuÅte súbor sem alebo kliknite na nasledujúce tlaÄidlo a naÄÃtajte súbor.`,confirmDelete:`Chcete záznam odstrániÅ¥?`,keyDuplicationError:`Táto hodnota má byÅ¥ jedineÄná.`,addColumn:`PridaÅ¥ stĺpec`,addRow:`PridaÅ¥ riadok`,removeRow:`OdstrániÅ¥`,noRowsText:`K dispozÃcii nie sú žiadne riadky.`,rowIndexTemplateTitle:`Riadok {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`PridaÅ¥ nové`,removePanel:`OdstrániÅ¥`,showDetails:`ZobraziÅ¥ podrobnosti`,hideDetails:`SkryÅ¥ podrobnosti`,choices_Item:`položka`,choices_Choice:`MožnosÅ¥ výberu`,matrix_column:`Stĺpec`,matrix_row:`Riadok`,multipletext_itemname:`Text`,savingData:`Výsledky sa ukladajú na server...`,savingDataError:`V dôsledku chyby sa nepodarilo výsledky uložiÅ¥.`,savingDataSuccess:`Výsledky sa úspeÅ¡ne uložili.`,saveAgainButton:`Skúste to znova`,timerMin:`min`,timerSec:`s`,timerSpentAll:`Na tejto stránke ste strávili {0} a celkovo {1}.`,timerSpentPage:`Na tejto stránke ste strávili {0}.`,timerSpentSurvey:`Celkovo ste strávili {0}.`,timerLimitAll:`Na tejto stránke ste strávili {0} z {1} a celkovo {2} z {3}.`,timerLimitPage:`Na tejto stránke ste strávili {0} z {1}.`,timerLimitSurvey:`Celkovo ste strávili {0} z {1}.`,clearCaption:`VymazaÅ¥`,selectCaption:`VybraÅ¥`,signaturePlaceHolder:`PodpÃsaÅ¥ tu`,signaturePlaceHolderReadOnly:`Bez podpisu`,chooseFileCaption:`VybraÅ¥ súbor`,takePhotoCaption:`OdfotiÅ¥`,photoPlaceholder:`KliknutÃm na tlaÄidlo nižšie nasnÃmate fotografiu pomocou fotoaparátu.`,fileOrPhotoPlaceholder:`PresuÅte myÅ¡ou alebo vyberte súbor, ktorý chcete nahraÅ¥ alebo nasnÃmaÅ¥ fotografiu pomocou fotoaparátu.`,replaceFileCaption:`Nahradenie súboru`,removeFileCaption:`OdstrániÅ¥ tento súbor`,booleanCheckedLabel:`Ãno`,booleanUncheckedLabel:`Nie`,confirmRemoveFile:`Naozaj chcete odstrániÅ¥ tento súbor: {0}?`,confirmRemoveAllFiles:`Naozaj chcete odstrániÅ¥ vÅ¡etky súbory?`,questionTitlePatternText:`Titul otázky`,modalCancelButtonText:`ZruÅ¡iÅ¥`,modalApplyButtonText:`PoužiÅ¥`,filterStringPlaceholder:`Vyhľadávanie pÃsanÃm...`,emptyMessage:`Žiadne údaje na zobrazenie`,loadingPage:`Nakladanie...`,loadingData:`Nakladanie...`,noEntriesText:`K dispozÃcii eÅ¡te nie sú žiadne zadania. 226KliknutÃm na nasledujúce tlaÄidlo pridajte nové zadanie.`,noEntriesReadonlyText:`Žiadne vstupy`,tabTitlePlaceholder:`Nový panel`,more:`Viacej`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`VÅ¡etky možnosti sú vybrané na poradie`,selectToRankEmptyUnrankedAreaText:`PresunutÃm možnostà sem ich zoradÃte`,ok:`OK`,cancel:`ZruÅ¡iÅ¥`,createCustomItem:`VytvoriÅ¥ položku "{0}"...`,toc:`Obsah`,progressbar:`Indikátor priebehu`},nativeName:`SlovenÄina`,englishName:`Slovak`}),gj({localeCode:`es`,strings:{pagePrevText:`Anterior`,pageNextText:`Siguiente`,completeText:`Completar`,previewText:`Vista previa`,editText:`Edita`,startSurveyText:`Comienza`,commentText:`Por favor, deja un comentario`,otherItemText:`Otro (describa)`,noneItemText:`Ninguno`,refuseItemText:`Negarse a responder`,dontKnowItemText:`No sé`,selectAllItemText:`Seleccionar todo`,deselectAllItemText:`Anular la selección de todo`,progressText:`Página {0} de {1}`,indexText:`{0} de {1}`,panelDynamicProgressText:`Registro {0} de {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Respondió a {0}/{1} preguntas`,emptySurvey:`No hay página visible o pregunta en la encuesta.`,completingSurvey:`¡Gracias por completar la encuesta!`,completingSurveyBefore:`Nuestros registros muestran que ya ha completado esta encuesta.`,loadingSurvey:`La encuesta está cargando...`,placeholder:`Seleccione...`,ratingOptionsCaption:`Toca aquà para calificar...`,buttongroupOptionsCaption:`Escoger...`,value:`valor`,requiredError:`Por favor conteste la pregunta.`,requiredErrorInPanel:`Por favor, responda al menos una pregunta.`,requiredInAllRowsError:`Por favor conteste las preguntas en cada hilera.`,eachRowUniqueError:`Cada fila debe tener un valor único.`,numericError:`La estimación debe ser numérica.`,minError:`La estimación no debe ser menor que {0}`,stepError:`Introduzca un valor que coincida con el tamaño del paso de {0}.`,maxError:`La estimación no debe ser mayor que {0}`,invalidInputError:`Entrada inválida`,textNoDigitsAllow:`No se permiten números.`,incompletePatternError:`Por favor, completa el valor para que coincida con el formato requerido.`,textMinLength:`Por favor entre por lo menos {0} sÃmbolos.`,textMaxLength:`Por favor entre menos de {0} sÃmbolos.`,textMinMaxLength:`Por favor entre más de {0} y menos de {1} sÃmbolos.`,minRowCountError:`Por favor llene por lo menos {0} hileras.`,minSelectError:`Por favor seleccione por lo menos {0} variantes.`,maxSelectError:`Por favor seleccione no más de {0} variantes.`,numericMinMax:`El '{0}' debe de ser igual o más de {1} y igual o menos de {2}`,numericMin:`El '{0}' debe ser igual o más de {1}`,numericMax:`El '{0}' debe ser igual o menos de {1}`,invalidEmail:`Por favor agregue un correo electrónico válido.`,invali
226dExpression:`La expresión: {0} deberÃa devolver 'verdadero'.`,urlRequestError:`La solicitud regresó error '{0}'. {1}`,urlGetChoicesError:`La solicitud regresó vacÃo de data o la propiedad 'trayectoria' no es correcta`,exceedMaxSize:`El tamaño del archivo no debe de exceder {0}.`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`El número máximo de archivos que puedes subir es {0}.`,noUploadFilesHandler:`Los archivos no se pueden cargar. Agregue un controlador para el evento 'onUploadFiles'.`,otherRequiredError:`Por favor agregue la otra estimación.`,uploadingFile:`Su archivo se está subiendo. Por favor espere unos segundos e intente de nuevo.`,loadingFile:`Cargando...`,chooseFile:`Elija archivo(s)...`,noFileChosen:`No se ha elegido ningún archivo`,filePlaceholder:`Suelte un archivo aquà o haga clic en el botón de abajo para cargar el archivo`,confirmDelete:`¿Quieres borrar el registro?`,keyDuplicationError:`Este valor debe ser único.`,addColumn:`Añadir columna`,addRow:`Agregue una hilera`,removeRow:`Eliminar una hilera`,noRowsText:`No hay hileras.`,rowIndexTemplateTitle:`Fila {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Añadir nuevo`,removePanel:`Retire`,showDetails:`Mostrar detalles`,hideDetails:`Ocultar detalles`,choices_Item:`artÃculo`,choices_Choice:`Opción de elección`,matrix_column:`Columna`,matrix_row:`Hilera`,multipletext_itemname:`texto`,savingData:`Los resultados se están guardando en el servidor...`,savingDataError:`Los resultados se están guardando en el servidor...`,savingDataSuccess:`¡Los resultados se guardaron con éxito!`,saveAgainButton:`Inténtalo de nuevo.`,timerMin:`min`,timerSec:`SEC`,timerSpentAll:`Has gastado {0} en esta página y {1} en total.`,timerSpentPage:`Usted ha pasado {0} en esta página.`,timerSpentSurvey:`Has gastado en total.`,timerLimitAll:`Has gastado {0} de {1} en esta página y {2} de {3} en total.`,timerLimitPage:`Has gastado {0} de {1} en esta página.`,timerLimitSurvey:`Usted ha gastado {0} de {1} en total.`,clearCaption:`Borrar`,selectCaption:`Escoger`,signaturePlaceHolder:`Firma aqui`,signaturePlaceHolderReadOnly:`Sin firma`,chooseFileCaption:`Elija el archivo`,takePhotoCaption:`Tomar foto`,photoPlaceholder:`Haga clic en el botón de abajo para tomar una foto con la cámara.`,fileOrPhotoPlaceholder:`Arrastre y suelte o seleccione un archivo para cargar o tomar una foto con la cámara.`,replaceFileCaption:`Reemplazar archivo`,removeFileCaption:`Elimina este archivo`,booleanCheckedLabel:`SÃ`,booleanUncheckedLabel:`No`,confirmRemoveFile:`¿Estás seguro de que quieres eliminar este archivo: {0}?`,confirmRemoveAllFiles:`¿Estás seguro de que quieres eliminar todos los archivos?`,questionTitlePatternText:`TÃtulo de la pregunta`,modalCancelButtonText:`Anular`,modalApplyButtonText:`Aplicar`,filterStringPlaceholder:`Escribe para buscar...`,emptyMessage:`No hay datos para mostrar`,loadingPage:`Carga...`,loadingData:`Carga...`,noEntriesText:`Aún no hay entradas. 227Haga clic en el botón de abajo para agregar una nueva entrada.`,noEntriesReadonlyText:`No hay entradas`,tabTitlePlaceholder:`Nuevo panel`,more:`Más`,tagboxDoneButtonCaption:`De acuerdo`,selectToRankEmptyRankedAreaText:`Todas las opciones se seleccionan para la clasificación`,selectToRankEmptyUnrankedAreaText:`Arrastre las opciones aquà para clasificarlas`,ok:`De acuerdo`,cancel:`Cancelar`,createCustomItem:`Crear artÃculo "{0}"...`,toc:`Tabla de contenidos`,progressbar:`Barra de progreso`},nativeName:`español`,englishName:`Spanish`}),gj({localeCode:`sw`,strings:{pagePrevText:`Iliyotangulia`,pageNextText:`Ifuatayo`,completeText:`Kamili`,previewText:`Hakiki`,editText:`Hariri`,startSurveyText:`Anza`,commentText:`Tafadhali acha maoni`,otherItemText:`Nyingine (eleza)`,noneItemText:`Hakuna`,refuseItemText:`Kukataa kujibu`,dontKnowItemText:`Sijui`,selectAllItemText:`Chagua Zote`,deselectAllItemText:`Delete All`,progressText:`Ukurasa {0} wa {1}`,indexText:`{0} ya {1}`,panelDynamicProgressText:`Rekodi {0} ya {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Yaliyojibiwa {0}/{1} maswali`,emptySurvey:`Hakuna ukurasa unaoonekana au swali katika utafiti.`,completingSurvey:`Asanti kwa kukamilish
227a utafiti!`,completingSurveyBefore:`Recodi zetu zinatuonyesha tayari umekamilisha utafiti.`,loadingSurvey:`Tunaandaa utafiti...`,placeholder:`Chagua...`,ratingOptionsCaption:`Teua...`,buttongroupOptionsCaption:`Teua...`,value:`thamani`,requiredError:`Tafadhali jibu hili swali.`,requiredErrorInPanel:`Tafadhali jibu swali angalau moja.`,requiredInAllRowsError:`Tafadhali jibu maswali katika safu zote.`,eachRowUniqueError:`Kila safu lazima iwe na thamani ya kipekee.`,numericError:`Thamani inapaswa kuwa ya nambari.`,minError:`Thamani haipaswi kuwa chini ya {0}`,stepError:`Tafadhali ingiza thamani inayolingana na saizi ya hatua ya {0}.`,maxError:`Thamani haipaswi kuwa kubwa kuliko {0}`,invalidInputError:`Ingizo batili`,textNoDigitsAllow:`Hesabu haziruhusiwi.`,incompletePatternError:`Tafadhali kamilisha thamani ili kuendana na umbizo linalohitajika.`,textMinLength:`Tafadhali ingiza angalau{0} husika.`,textMaxLength:`Tafadhali ingiza isiozidi {0} husika.`,textMinMaxLength:`Tafadhali ingiza kiwango zaidi ya {0} na kisichopungua {1} husika.`,minRowCountError:`Tafadhali jaza isiopungua {0} safu.`,minSelectError:`Tafadhali chagua angalau {0} lahaja.`,maxSelectError:`Tafadhali changua isiozidi {0} lahaja.`,numericMinMax:` '{0}' inapaswa kuwa sawa au zaidi ya {1} na sawa au chini ya {2}`,numericMin:` '{0}'inapaswa kuwa sawa au zaidi ya {1}`,numericMax:` '{0}'inapaswa kuwa sawa au chini ya {1}`,invalidEmail:`Tafadhali ingiza anwani halali ya barua-pepe.`,invalidExpression:`Usemi:{0} inapaswa kurudi 'kweli'.`,urlRequestError:`Ombi lina kosa '{0}'. {1}`,urlGetChoicesError:`Ombi lilirudisha data tupu au the 'path' mali ya njia sio sahihi`,exceedMaxSize:`Saizi ya faili haipaswi kuzidi {0}.`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`Idadi ya juu ya faili unazoweza kupakia ni {0}.`,noUploadFilesHandler:`Faili haziwezi kupakiwa. Tafadhali ongeza kishiko kwa tukio la 'onUploadFiles'.`,otherRequiredError:`Tafadhali ingiza thamani nyingine.`,uploadingFile:`Faili yako inapakia.Tafadhali subiri sekunde kadhaa na ujaribu tena.`,loadingFile:`Inapakia...`,chooseFile:`Chagua faili...`,noFileChosen:`Hujachagua faili`,filePlaceholder:`Buruta na udondoshe faili hapa au bonyeza kitufe kilicho hapa chini ili kuchagua faili ya kupakia.`,confirmDelete:`Je! Unataka kufuta rekodi?`,keyDuplicationError:`Thamani hii inapaswa kuwa ya kipekee.`,addColumn:`Ongeza Kolamu`,addRow:`Ongeza safu`,removeRow:`Toa`,noRowsText:`Hakuna safu.`,rowIndexTemplateTitle:`Safu {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Ongeza mpya`,removePanel:`Toa`,showDetails:`Onyesha Maelezo`,hideDetails:`Ficha Maelezo`,choices_Item:`kitu`,choices_Choice:`Chaguo la uchaguzi`,matrix_column:`Kolamu`,matrix_row:`Safu`,multipletext_itemname:`Ujumbe`,savingData:`Matokeo yamehifadhiwa kwa seva...`,savingDataError:`Kosa limetokea na hatukuweza kuhifadhi matokeo.`,savingDataSuccess:`Matokeo yamehifadhiwa!`,saveAgainButton:`Jaribu tena`,timerMin:`dakika`,timerSec:`sekunde`,timerSpentAll:`Umetumia {0} kwenye ukurasa huu na {1} kwa jumla.`,timerSpentPage:`Umetumia {0} kwenye ukurasa huu.`,timerSpentSurvey:`Umetumia {0} kwa jumla.`,timerLimitAll:`Umetumia {0} ya {1} kwenye ukurasa huu {2} wa {3} kwa jumla.`,timerLimitPage:`Umetumia {0} ya {1} kwenye ukurasa huu.`,timerLimitSurvey:`Umetumia {0} ya {1} kwa jumla.`,clearCaption:`Ondoa`,selectCaption:`Teua`,signaturePlaceHolder:`Ingia hapa`,signaturePlaceHolderReadOnly:`Hakuna saini`,chooseFileCaption:`Chagua faili`,takePhotoCaption:`Chukua Picha`,photoPlaceholder:`Bonyeza kitufe hapa chini ili kupiga picha kwa kutumia kamera.`,fileOrPhotoPlaceholder:`Drag na kuacha au kuchagua faili kupakia au kuchukua picha kwa kutumia kamera.`,replaceFileCaption:`Badilisha faili`,removeFileCaption:`Ondoa faili`,booleanCheckedLabel:`Ndio`,booleanUncheckedLabel:`Hapana`,confirmRemoveFile:`Je! Una uhakika kuwa unataka kuondoa faili hii: {0}?`,confirmRemoveAllFiles:`Je! Una uhakika kuwa unataka kuondoa faili zote?`,questionTitlePatternText:`Kichwa cha Swali`,modalCancelButtonText:`Katisha`,modalApplyButtonText:`Tekeleza`,filterStringPlaceholder:`Andika ili kutafuta...`,emptyMessage:`Hakuna data ya kuonyesha`,loadingPage:`Kupakia...`,loadingData:`Kupakia...`,noEntriesText:`Bado hakuna maingizo makubwa. 228Bofya kitufe kilicho hapa chini ili kuongeza ingizo jipya.`,noEntriesReadonlyText:`Hakuna maingizo`,tabTitlePlaceholder:`Jopo Jipya`,more:`Zaidi`,tagboxDoneButtonCaption:`Sawa kabisa`,selectToRankEmptyRankedAreaText:`Chaguo zote huchaguliwa kwa cheo`,selectToRankEmptyUnrankedAreaText:`Buruta chaguzi hapa ili kuziorodhesha`,ok:`Sawa kabisa`,cancel:`Katisha`,createCustomItem:`Unda kipengee cha "{0}"...`,toc:`Jedwali la yaliyomo`,progressbar:`Upau wa maendeleo`},nativeName:`swahili`,englishName:`Swahili`}),gj({localeCode:`sv`,strings:{pagePrevText:`Föregående`,pageNextText:`Nästa`,completeText:`Slutför`,previewText:`Förhandsvisning`,editText:`Redigera`,startSurveyText:`Börja`,commentText:`Lämna gärna en kommentar`,otherItemText:`Annat (beskriv)`,noneItemText:`Ingen`,refuseItemText:`Vägra svara`,dontKnowItemText:`Vet inte`,selectAllItemText:`Välj alla`,deselectAllItemText:`Avmarkera alla`,progressText:`Sida {0} av {1}`,indexText:`{0} av {1}`,panelDynamicProgressText:`{0} av {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`{0} / {1} frågor besvarade`,emptySurvey:`Det finns ingen synlig sida eller fråga i enkäten.`,completingSurvey:`Tack för att du genomfört enkäten!!`,completingSurveyBefore:`Våra register visar att du redan har slutfört denna undersökning.`,loadingSurvey:`Enkäten laddas...`,placeholder:`Välj...`,ratingOptionsCaption:`Tryck här för att betygsätta...`,buttongroupOptionsCaption:`Utvald...`,value:`värde`,requiredError:`Frågan är obligatorisk.`,requiredErrorInPanel:`Vänligen svara på minst en fråga.`,requiredInAllRowsError:`Var vänlig besvara frågorna på alla rader.`,eachRowUniqueError:`Varje rad måste ha ett unikt värde.`,numericError:`Värdet ska vara numeriskt.`,minError:`Värdet får inte vara mindre än {0}`,stepError:`Ange ett värde som matchar stegstorleken för {0}.`,maxError:`Värdet får inte vara större än {0}`,invalidInputError:`Ogiltig indata`,textNoDigitsAllow:`Nummer är inte tillåtna.`,incompletePatternError:`Vänligen fyll i värdet för att matcha det önskade formatet.`,textMinLength:`Ange minst {0} tecken.`,textMaxLength:`Ange färre än {0} tecken.`,textMinMaxLength:`Ange mer än {0} och färre än {1} tecken.`,minRowCountError:`Var vänlig fyll i minst {0} rader.`,minSelectError:`Var vänlig välj åtminstone {0} varianter.`,maxSelectError:`Var vänlig välj inte fler än {0} varianter.`,numericMinMax:`'{0}' ska vara lika med eller mer än {1} samt lika med eller mindre än {2}`,numericMin:`'{0}' ska vara lika med eller mer än {1}`,numericMax:`'{0}' ska vara lika med eller mindre än {1}`,invalidEmail:`Var vänlig ange en korrekt e-postadress.`,invali
228dExpression:`Uttrycket: {0} ska returnera 'true'.`,urlRequestError:`FörfrÃ¥gan returnerade felet '{0}'. {1}`,urlGetChoicesError:`Antingen returnerade förfrÃ¥gan ingen data eller sÃ¥ är egenskapen 'path' inte korrekt`,exceedMaxSize:`Filstorleken fÃ¥r ej överstiga {0}.`,fileSizeUnits:`Bytes, KB, MB, GB, TB`,exceedMaxFiles:`Det maximala antalet filer du kan ladda upp är {0}.`,noUploadFilesHandler:`Filer kan inte laddas upp. Lägg till en hanterare för händelsen 'onUploadFiles'.`,otherRequiredError:`Var vänlig ange det andra värdet.`,uploadingFile:`Din fil laddas upp. Var vänlig vänta nÃ¥gra sekunder och försök sedan igen.`,loadingFile:`Laddar...`,chooseFile:`Välj fil(er) ...`,noFileChosen:`Ingen fil vald`,filePlaceholder:`Dra och släpp en fil här eller klicka pÃ¥ knappen nedan för att välja en fil att ladda upp.`,confirmDelete:`Vill du radera posten?`,keyDuplicationError:`Detta värde ska vara unikt.`,addColumn:`Lägg till kolumn`,addRow:`Lägg till rad`,removeRow:`Ta bort`,noRowsText:`Det finns inga rader.`,rowIndexTemplateTitle:`Rad {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Lägg till ny`,removePanel:`Ta bort`,showDetails:`Detaljer`,hideDetails:`Göm detaljer`,choices_Item:`Artikel`,choices_Choice:`Alternativ för valmöjligheter`,matrix_column:`Kolumn`,matrix_row:`Rad`,multipletext_itemname:`Text`,savingData:`Resultaten sparas pÃ¥ servern ...`,savingDataError:`Ett fel inträffade och vi kunde inte spara resultaten.`,savingDataSuccess:`Resultaten lyckades sparas!`,saveAgainButton:`Försök igen`,timerMin:`Min`,timerSec:`sek`,timerSpentAll:`Du har spenderat {0} pÃ¥ den här sidan och {1} totalt.`,timerSpentPage:`Du har spenderat {0} pÃ¥ den här sidan.`,timerSpentSurvey:`Du har spenderat {0} totalt.`,timerLimitAll:`Du har spenderat {0} av {1} pÃ¥ den här sidan och {2} av {3} totalt.`,timerLimitPage:`Du har spenderat {0} av {1} pÃ¥ den här sidan.`,timerLimitSurvey:`Du har spenderat {0} av {1} totalt.`,clearCaption:`Klar`,selectCaption:`Utvald`,signaturePlaceHolder:`Signera här`,signaturePlaceHolderReadOnly:`Ingen signatur`,chooseFileCaption:`Välj fil`,takePhotoCaption:`Ta foto`,photoPlaceholder:`Klicka pÃ¥ knappen nedan för att ta ett foto med kameran.`,fileOrPhotoPlaceholder:`Dra och släpp eller välj en fil att ladda upp eller ta ett foto med kameran.`,replaceFileCaption:`Ersätt fil`,removeFileCaption:`Ta bort den här filen`,booleanCheckedLabel:`Ja`,booleanUncheckedLabel:`Nej`,confirmRemoveFile:`Ãr du säker pÃ¥ att du vill ta bort den här filen: {0}?`,confirmRemoveAllFiles:`Ãr du säker pÃ¥ att du vill ta bort alla filer?`,questionTitlePatternText:`FrÃ¥getitel`,modalCancelButtonText:`Avbryt`,modalApplyButtonText:`Spara`,filterStringPlaceholder:`Skriv för att söka...`,emptyMessage:`Ingen data finns`,loadingPage:`Lastning...`,loadingData:`Lastning...`,noEntriesText:`Det finns inga värden än. 229Klicka pÃ¥ knappen nedan för att lägga till nytt värde.`,noEntriesReadonlyText:`Inga anmälningar`,tabTitlePlaceholder:`Ny panel`,more:`Mer`,tagboxDoneButtonCaption:`OKEJ`,selectToRankEmptyRankedAreaText:`Alla val väljs ut för rankning`,selectToRankEmptyUnrankedAreaText:`Dra valen hit för att rangordna dem`,ok:`OKEJ`,cancel:`Annullera`,createCustomItem:`Skapa "{0}"-objekt...`,toc:`InnehÃ¥llsförteckning`,progressbar:`Förloppsindikator`},nativeName:`svenska`,englishName:`Swedish`}),gj({localeCode:`tg`,strings:{pagePrevText:`ÐозгаÑÑ`,pageNextText:`ÐÑнда`,completeText:`ÐÒ·Ñо ÑÑд`,startSurveyText:`ÐÒоз`,otherItemText:`ÐÐ¸Ð³Ð°Ñ (лÑÑÑан ÑавÑÐ¸Ñ ÐºÑнед)`,noneItemText:`Ðе`,selectAllItemText:`ҲамаÑо инÑÐ¸Ñ Ð¾Ð± каÑдан`,progressText:`СаҳиÑаи {0} аз {1}`,emptySurvey:`Ягон Ñавол вÑÒ·Ñд надоÑад.`,completingSurvey:`ТаÑаккÑÑ Ð±Ð°Ñои пÑÑ ÐºÐ°Ñдани Ñаволнома!`,completingSurveyBefore:`ШÑмо аллакай ин пÑÑÑиÑÑо анҷом додаед.`,loadingSurvey:`ÐоÑгиÑÓ£ аз ÑеÑвеÑ...`,placeholder:`ÐнÑÐ¸Ñ Ð¾Ð± каÑдан...`,value:`ÒиммаÑ`,requiredError:`ÐлÑимоÑ, ба Ñавол ҷавоб диҳед.`,requiredErrorInPanel:`ÐлÑимоÑ, аÒалан ба Ñк Ñавол ҷавоб диҳед.`,requiredInAllRowsError:`ÐлÑимоÑ, ба ҳамаи Ñаволҳо Ð´Ð°Ñ Ò³Ð°Ð¼Ð°Ð¸ ÑаÑÑҳо ҷавоб диҳед.`,numericError:`Ҷавоб боÑд ÑаÒам боÑад.`,textMinLength:`ÐлÑимоÑ, аз {0} зиÑдÑÐ°Ñ Ñамз воÑид кÑнед.`,textMaxLength:`ÐлÑимоÑ, аз {0} камÑÐ°Ñ Ñамз воÑид кÑнед.`,textMinMaxLength:`ÐлÑимоÑ, аз {0} зиÑдÑÐ°Ñ Ð²Ð° аз {1} камÑÐ°Ñ Ñамз воÑид кÑнед.`,minRowCountError:`ÐлÑимоÑ, на камÑÐ°Ñ Ð°Ð· {0} ÑаÑÑ Ð¿ÑÑ ÐºÑнед.`,minSelectError:`ÐлÑимоÑ, аÒалан {0} ваÑÐ¸Ð°Ð½Ñ Ð¸Ð½ÑÐ¸Ñ Ð¾Ð± кÑнед.`,maxSelectError:`ÐлÑимоÑ, на зиÑдÑÐ°Ñ Ð°Ð· {0} ваÑÐ¸Ð°Ð½Ñ Ð¸Ð½ÑÐ¸Ñ Ð¾Ð± кÑнед.`,numericMinMax:`'{0}' боÑд на кам аз {1} ва на биÑÑÑ Ð°Ð· {2} боÑад`,numericMin:`'{0}' боÑд на кам аз {1} боÑад`,numericMax:`'{0}' боÑд на зиÑд аз {1}
229 боÑад`,invalidEmail:`ÐлÑимоÑ, поÑÑаи ÑлекÑÑонии воÒеиÑо воÑид кÑнед.`,invalidExpression:`ÐÑодаи {0} боÑд 'true' баÑгаÑдонад.`,urlRequestError:`ÐаÑÑ
оÑÑ Ñ
аÑогӣ бозгаÑдонд '{0}'. {1}`,urlGetChoicesError:`Ҷавоб ба даÑÑ
оÑÑ Ñ
олӣ омад Ñ Ñ
оÑиÑÑи 'path' нодÑÑÑÑÑ Ð¼ÑайÑн каÑда ÑÑдааÑÑ`,exceedMaxSize:`Ðндозаи Ñайл боÑд на калон аз {0} боÑад.`,otherRequiredError:`ÐлÑимоÑ, ба майдони 'ÐигаÑ' додаҳоÑо воÑид кÑнед`,uploadingFile:`Файли ÑÑмо Ð±Ð¾Ñ ÑÑда иÑÑодааÑÑ. ЯкÑанд ÑÐ¾Ð½Ð¸Ñ Ð¸Ð½ÑÐ¸Ð·Ð¾Ñ Ñавед ва боÑи Ð´Ð¸Ð³Ð°Ñ ÐºÓ¯ÑÐ¸Ñ ÐºÑнед.`,loadingFile:`ÐоÑкÑнӣ...`,chooseFile:`Файл(ҳо)-Ñо инÑиÑ
об кÑнед...`,confirmDelete:`ШÑмо мÑÑмаин ҳаÑÑед, ки меÑ
оҳед воÑидÑо Ñоза кÑнед?`,keyDuplicationError:`Ðн аÑÐ·Ð¸Ñ Ð±Ð¾Ñд Ð±ÐµÐ½Ð°Ð·Ð¸Ñ Ð±Ð¾Ñад.`,addColumn:`Ðловаи ÑÑÑÑн`,addRow:`Ðловаи ÑаÑÑ`,removeRow:`ÐеÑÑ ÐºÐ°Ñдан`,addPanel:`Ðлова каÑдан`,removePanel:`ÐеÑÑ ÐºÐ°Ñдан`,choices_Item:`ÐаÑианÑ`,matrix_column:`СÑÑÑн`,matrix_row:`СаÑÑ`,savingData:`ÐаÑиҷа ба ÑеÑÐ²ÐµÑ ÑÐ°Ð±Ñ ÑÑда иÑÑодаанд...`,savingDataError:`ХаÑогӣ ба амал омад, наÑиҷа ÑÐ°Ð±Ñ Ð½Ð°ÑÑд.`,savingDataSuccess:`ÐаÑиҷа бомÑваÑÑакиÑÑ ÑÐ°Ð±Ñ ÑÑд!`,saveAgainButton:`ÐоÑи Ð´Ð¸Ð³Ð°Ñ ÐºÓ¯ÑÐ¸Ñ ÐºÐ°Ñданд`,timerMin:`даÒ`,timerSec:`Ñон`,timerSpentAll:`ШÑмо {0} Ð´Ð°Ñ Ð¸Ð½ ÑаҳиÑа ва {1} Ð´Ð°Ñ ÑмÑм ÑаÑÑ ÐºÐ°Ñдед.`,timerSpentPage:`ШÑмо {0} Ð´Ð°Ñ Ð¸Ð½ ÑаҳиÑа ÑаÑÑ ÐºÐ°Ñдед.`,timerSpentSurvey:`ШÑмо {0} Ð´Ð°Ñ Ð¸Ð½ ÑеÑÑ ÑаÑÑ Ð½Ð°Ð¼Ñдед.`,timerLimitAll:`ШÑмо {0} аз {1} Ð´Ð°Ñ Ð¸Ð½ ÑаҳиÑа ва {2} аз {3} Ð´Ð°Ñ ÑмÑм ÑаÑÑ ÐºÐ°Ñдед Ð´Ð°Ñ Ð´Ð¾Ñ
или ин ÑеÑÑ.`,timerLimitPage:`ШÑмо {0} аз {1} Ð´Ð°Ñ Ð¸Ð½ ÑаҳиÑа ÑаÑÑ ÐºÐ°Ñдед.`,timerLimitSurvey:`ШÑмо {0} аз {1} Ð´Ð°Ñ Ò³Ð°Ð¼Ð°Ð¸ ÑеÑÑ ÑаÑÑ ÐºÐ°Ñдед.`,clearCaption:`Тоза каÑдан`,removeFileCaption:`ФайлÑо неÑÑ ÐºÐ°Ñдан`},nativeName:`Ñоҷикӣ`,englishName:`Tajik`}),gj({localeCode:`th`,strings:{pagePrevText:`à¸à¹à¸à¸à¸«à¸à¹à¸²`,pageNextText:`à¸à¸±à¸à¹à¸`,completeText:`สำà¹à¸£à¹à¸`,previewText:`à¸à¸¹à¸à¸±à¸§à¸à¸¢à¹à¸²à¸`,editText:`à¹à¸à¹à¹à¸`,startSurveyText:`à¹à¸£à¸´à¹à¸¡`,commentText:`à¸à¸£à¸¸à¸à¸²à¹à¸ªà¸à¸à¸à¸§à¸²à¸¡à¸à¸´à¸à¹à¸«à¹à¸`,otherItemText:`à¸à¸·à¹à¸à¹ (à¹à¸à¸£à¸à¸£à¸°à¸à¸¸)`,noneItemText:`à¹à¸¡à¹à¸¡à¸µ`,refuseItemText:`à¸à¸à¸´à¹à¸ªà¸à¸à¸µà¹à¸à¸°à¸à¸à¸`,dontKnowItemText:`à¹à¸¡à¹à¸à¸£à¸²à¸`,selectAllItemText:`à¹à¸¥à¸·à¸à¸à¸à¸±à¹à¸à¸«à¸¡à¸`,deselectAllItemText:`ยà¸à¹à¸¥à¸´à¸à¸à¸²à¸£à¹à¸¥à¸·à¸à¸à¸à¸±à¹à¸à¸«à¸¡à¸`,progressText:`หà¸à¹à¸²à¸à¸µà¹ {0} à¸à¸²à¸ {1}`,indexText:`{0} of {1}`,panelDynamicProgressText:`รายà¸à¸²à¸£à¸à¸µà¹ {0} à¸à¸²à¸ {1}`,panelDynamicTabTextFormat:`à¹à¸à¸ {panelIndex}`,questionsProgressText:`à¸à¸³à¸à¸à¸à¸à¸µà¹ {0}/{1} à¸à¸³à¸à¸§à¸à¸à¸³à¸à¸²à¸¡`,emptySurvey:`à¹à¸¡à¹à¸¡à¸µà¸«à¸à¹à¸²à¹à¸à¸à¸à¸µà¹à¸¡à¸à¸à¹à¸«à¹à¸ หรืภà¸à¸³à¸à¸²à¸¡à¹à¸ survey à¸à¸µà¹`,completingSurvey:`à¸à¸à¸à¸à¸¸à¸à¸à¸µà¹à¸à¸³ survey à¸à¸à¹à¸ªà¸£à¹à¸`,completingSurveyBefore:`รายà¸à¸²à¸£à¸à¸à¸à¹à¸£à¸²à¹à¸ªà¸à¸à¸§à¹à¸²à¸à¸¸à¸à¹à¸à¹à¸à¸³ survey à¹à¸ªà¸£à¹à¸à¹à¸£à¸µà¸¢à¸à¸£à¹à¸à¸¢à¹à¸¥à¹à¸§`,loadingSurvey:`à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸ Survey...`,placeholder:`à¹à¸¥à¸·à¸à¸...`,ratingOptionsCaption:`à¹à¸¥à¸·à¸à¸ `,buttongroupOptionsCaption:`à¹à¸¥à¸·à¸à¸ `,value:`à¸à¹à¸à¸¡à¸¹à¸¥`,requiredError:`à¸à¸£à¸¸à¸à¸²à¸à¸à¸à¸à¸³à¸à¸²à¸¡`,requiredErrorInPanel:`à¸à¸£à¸¸à¸à¸²à¸à¸à¸à¸à¸±à¹à¸à¸à¹à¸³à¸«à¸à¸¶à¹à¸à¸à¸³à¸à¸²à¸¡`,requiredInAllRowsError:`à¸à¸£à¸¸à¸à¸²à¸à¸à¸à¸à¸³à¸à¸²à¸¡à¹à¸à¸à¸¸à¸à¹à¹à¸à¸§`,eachRowUniqueError:`à¹à¸à¹à¸¥à¸°à¹à¸à¸§à¸à¹à¸à¸à¸¡à¸µà¸à¹à¸²à¸à¸µà¹à¹à¸¡à¹à¸à¹à¹à¸²à¸à¸±à¸`,numericError:`à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸µà¹à¹à¸ªà¹à¸à¹à¸à¸à¹à¸à¹à¸à¸à¸±à¸§à¹à¸¥à¸`,minError:`à¸à¹à¸²à¹à¸¡à¹à¸à¸§à¸£à¸à¹à¸à¸¢à¸à¸§à¹à¸² {0}`,stepError:`à¹à¸à¸£à¸à¸à¹à¸à¸à¸à¹à¸²à¸à¸µà¹à¸à¸£à¸à¸à¸±à¸à¸à¸à¸²à¸à¸à¸±à¹à¸à¸à¸à¸à¸à¸à¸ {0}`,maxError:`à¸à¹à¸²à¹à¸¡à¹à¸à¸§à¸£à¹à¸à¸´à¸{0}`,invalidInputError:`à¸à¸´à¸à¸à¸¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸`,textNoDigitsAllow:`à¹à¸¡à¹à¸à¸à¸¸à¸à¸²à¸à¹à¸«à¹à¹à¸à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸`,incompletePatternError:`à¹à¸à¸£à¸à¸à¸£à¸à¸à¸à¹à¸²à¹à¸«à¹à¸à¸£à¸à¸à¸±à¸à¸£à¸¹à¸à¹à¸à¸à¸à¸µà¹à¸à¹à¸à¸à¸à¸²à¸£`,textMinLength:`à¸à¸£à¸¸à¸à¸²à¹à¸ªà¹à¸à¸±à¹à¸à¸à¹à¸³à¸à¸³à¸à¸§à¸ {0} à¸à¸±à¸§à¸à¸±à¸à¸©à¸£`,textMaxLength:`à¸à¸£à¸¸à¸à¸²à¹à¸ªà¹à¹à¸¡à¹à¹à¸à¸´à¸à¸à¸³à¸à¸§à¸ {0} à¸à¸±à¸§à¸à¸±à¸à¸©à¸£`,textMinMaxLength:`à¸à¸£à¸¸à¸à¸²à¹à¸ªà¹à¸à¸±à¹à¸à¸à¹à¸³à¸à¸³à¸à¸§à¸ {0} à¹à¸¥à¸°à¹à¸¡à¹à¹à¸à¸´à¸à¸à¸³à¸à¸§à¸ {1} à¸à¸±à¸§à¸à¸±à¸à¸©à¸£`,minRowCountError:`à¸à¸£à¸¸à¸à¸²à¹à¸ªà¹à¸à¸±à¹à¸à¸à¹à¸³à¸à¸³à¸à¸§à¸ {0} à¹à¸à¸§`,minSelectError:`à¸à¸£à¸¸à¸à¸²à¹à¸¥à¸·à¸à¸à¸à¸¢à¹à¸²à¸à¸à¹à¸à¸¢ {0} รายà¸à¸²à¸£`,maxSelectError:`à¸à¸£à¸¸à¸à¸²à¹à¸¥à¸·à¸à¸à¹à¸¡à¹à¹à¸à¸´à¸ {0} รายà¸à¸²à¸£`,numericMinMax:`'{0}' à¸à¹à¸à¸à¸¡à¸²à¸à¸à¸§à¹à¸²à¸«à¸£à¸·à¸à¹à¸à¹à¸²à¸à¸±à¸ {1} à¹à¸¥à¸°à¸à¹à¸à¸¢à¸à¸§à¹à¸²à¸«à¸£à¸·à¸à¹à¸à¹à¸²à¸à¸±à¸ {2}`,numericMin:`'{0}' à¸à¹à¸à¸à¸¡à¸²à¸à¸à¸§à¹à¸²à¸«à¸£à¸·à¸à¹à¸à¹à¸²à¸à¸±à¸ {1}`,numericMax:`'{0}' à¸à¹à¸à¸¢à¸à¸§à¹à¸²à¸«à¸£à¸·à¸à¹à¸à¹à¸²à¸à¸±à¸ {1}`,invalidEmail:`à¸à¸£à¸¸à¸à¸²à¹à¸ªà¹à¸à¸µà¹à¸¡à¸¥à¹à¹à¸à¸à¹à¸à¸£à¸ªà¸à¸µà¹à¸à¸¹à¸à¸à¹à¸à¸`,invalidExpression:`The expression: {0} à¸à¹à¸à¸à¸£à¸µà¹à¸à¸´à¸£à¹à¸ 'true'.`,urlRequestError:`รีà¹à¸à¸§à¸ªà¸£à¸µà¹à¸à¸´à¸£à¹à¸ error '{0}'. {1}`,urlGetChoicesError:`รีà¹à¸à¸§à¸ªà¸£à¸µà¹à¸à¸´à¸£à¹à¸à¸à¹à¸à¸¡à¸¹à¸¥à¸§à¹à¸²à¸à¹à¸à¸¥à¹à¸² หรืภ'path' property à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸`,exceedMaxSize:`à¸à¸à¸²à¸à¹à¸à¸¥à¹à¸à¹à¸à¸à¹à¸¡à¹à¹à¸à¸´à¸ {0}.`,fileSizeUnits:`à¹à¸à¸à¹, KB, MB, GB, TB`,exceedMaxFiles:`à¸à¹à¸²à¸à¸§à¸à¹à¸à¸¥à¹à¸ªà¸¹à¸à¸ªà¸¸à¸à¸à¸µà¹à¸à¸¸à¸à¸ªà¸²à¸¡à¸²à¸£à¸à¸à¸±à¸à¹à¸«à¸¥à¸à¹à¸à¹à¸à¸·à¸ {0}`,noUploadFilesHandler:`à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¸à¸±à¸à¹à¸«à¸¥à¸à¹à¸à¸¥à¹à¹à¸à¹ à¹à¸à¸£à¸à¹à¸à¸´à¹à¸¡à¸à¸±à¸§à¸à¸±à¸à¸à¸²à¸£à¸ªà¹à¸²à¸«à¸£à¸±à¸à¹à¸«à¸à¸¸à¸à¸²à¸£à¸à¹ 'onUploadFiles'`,otherRequiredError:`à¸à¸£à¸¸à¸à¸²à¹à¸ªà¹à¸à¹à¸²à¸à¸·à¹à¸`,uploadingFile:`à¹à¸à¸¥à¹à¸à¸à¸à¸à¸¸à¸à¸à¸³à¸¥à¸±à¸à¸à¸±à¸à¹à¸«à¸¥à¸à¸à¸¢à¸¹à¹. à¸à¸£à¸¸à¸à¸²à¸£à¸à¸ªà¸±à¸à¸à¸£à¸¹à¹à¹à¸¥à¹à¸§à¸à¸³à¸à¸²à¸£à¸¥à¸à¸à¸à¸µà¸à¸à¸£à¸±à¹à¸`,loadingFile:`à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸...`,chooseFile:`à¹à¸¥à¸·à¸à¸à¹à¸à¸¥à¹...`,noFileChosen:`à¹à¸¡à¹à¹à¸à¸¥à¹à¸à¸µà¹à¹à¸¥à¸·à¸à¸`,filePlaceholder:`ลาà¸à¹à¸¥à¸°à¸§à¸²à¸à¹à¸à¸¥à¹à¸à¸µà¹à¸à¸µà¹à¸«à¸£à¸·à¸à¸à¸¥à¸´à¸à¸à¸¸à¹à¸¡à¸à¹à¸²à¸à¸¥à¹à¸²à¸à¹à¸à¸·à¹à¸à¹à¸¥à¸·à¸à¸à¹à¸à¸¥à¹à¸à¸µà¹à¸à¸°à¸à¸±à¸à¹à¸«à¸¥à¸`,confirmDelete:`à¸à¸¸à¸à¸à¹à¸à¸à¸à¸²à¸£à¸¥à¸à¸£à¸²à¸¢à¸à¸²à¸£à¸à¸µà¹à¸à¸£à¸´à¸à¸«à¸£à¸·à¸à¹à¸¡à¹?`,keyDuplicationError:`à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸µà¹à¸à¹à¸à¸à¹à¸à¹à¸ unique.`,addColumn:`à¹à¸à¸´à¹à¸¡à¸à¸à¸¥à¸±à¸¡à¸à¹`,addRow:`à¹à¸à¸´à¹à¸¡à¹à¸à¸§`,removeRow:`ลà¸`,noRowsText:`à¹à¸¡à¹à¸¡à¸µà¹à¸à¸§`,rowIndexTemplateTitle:`à¹à¸à¸§ {rowIndex}`,rowNameTemplateTitle:`{à¹à¸à¸§à¸à¸·à¹à¸}
229`,addPanel:`à¹à¸à¸´à¹à¸¡`,removePanel:`ลà¸`,showDetails:`à¹à¸ªà¸à¸à¸£à¸²à¸¢à¸¥à¸°à¹à¸à¸µà¸¢à¸`,hideDetails:`à¸à¹à¸à¸à¸£à¸²à¸¢à¸¥à¸°à¹à¸à¸µà¸¢à¸`,choices_Item:`à¸à¸´à¹à¸`,choices_Choice:`à¸à¸±à¸§à¹à¸¥à¸·à¸à¸à¸à¸±à¸§à¹à¸¥à¸·à¸à¸`,matrix_column:`à¸à¸à¸¥à¸±à¸¡à¸à¹`,matrix_row:`à¹à¸à¸§`,multipletext_itemname:`à¸à¹à¸à¸à¸§à¸²à¸¡`,savingData:`à¸à¸¥à¸¥à¸±à¸à¸à¹à¸à¸³à¸¥à¸±à¸à¸à¸±à¸à¸à¸¶à¸à¸¥à¸à¸à¸µà¹à¹à¸à¸´à¸£à¹à¸à¹à¸§à¸à¸£à¹...`,savingDataError:`มีà¸à¸§à¸²à¸¡à¸à¸´à¸à¸à¸¥à¸²à¸à¹à¸à¸´à¸à¸à¸¶à¹à¸à¸ªà¹à¸à¸à¸¥à¹à¸«à¹à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¸à¸±à¸à¸à¸¶à¸à¸à¸¥à¹à¸à¹`,savingDataSuccess:`à¸à¸±à¸à¸à¸¶à¸à¸ªà¸³à¹à¸£à¹à¸à¹à¸¥à¹à¸§`,saveAgainButton:`รà¸à¸à¸§à¸à¸¥à¸à¸à¸à¸µà¸à¸à¸£à¸±à¹à¸`,timerMin:`à¸à¸²à¸à¸µ`,timerSec:`วิà¸à¸²à¸à¸µ`,timerSpentAll:`à¸à¸¸à¸à¹à¸à¹à¹à¸§à¸¥à¸² {0} à¸à¸à¸«à¸à¹à¸²à¸à¸µà¹à¹à¸¥à¸° {1} รวมà¸à¸±à¹à¸à¸«à¸¡à¸`,timerSpentPage:`à¸à¸¸à¸à¹à¸à¹à¹à¸§à¸¥à¸² {0} à¸à¸à¸«à¸à¹à¸²à¸à¸µà¹`,timerSpentSurvey:`à¸à¸¸à¸à¹à¸à¹à¹à¸§à¸¥à¸² {0} รวมà¸à¸±à¹à¸à¸«à¸¡à¸`,timerLimitAll:`à¸à¸¸à¸à¹à¸à¹à¹à¸§à¸¥à¸² {0} à¸à¸à¸ {1} à¸à¸à¸«à¸à¹à¸²à¸à¸µà¹à¹à¸¥à¸° {2} à¸à¸à¸ {3} รวมà¸à¸±à¹à¸à¸«à¸¡à¸`,timerLimitPage:`à¸à¸¸à¸à¹à¸à¹à¹à¸§à¸¥à¸² {0} à¸à¸à¸ {1} à¸à¸à¸«à¸à¹à¸²à¸à¸µà¹`,timerLimitSurvey:`à¸à¸¸à¸à¹à¸à¹à¹à¸§à¸¥à¸² {0} à¸à¸à¸ {1} รวมà¸à¸±à¹à¸à¸«à¸¡à¸`,clearCaption:`à¹à¸à¸¥à¸µà¸¢à¸£à¹`,selectCaption:`à¹à¸¥à¸·à¸à¸`,signaturePlaceHolder:`ลà¸à¸à¸·à¹à¸à¸à¸µà¹à¸à¸µà¹`,signaturePlaceHolderReadOnly:`à¹à¸¡à¹à¸¡à¸µà¸¥à¸²à¸¢à¹à¸à¹à¸`,chooseFileCaption:`à¹à¸¥à¸·à¸à¸à¹à¸à¸¥à¹`,takePhotoCaption:`à¸à¹à¸²à¸¢à¸£à¸¹à¸`,photoPlaceholder:`à¸à¸¥à¸´à¸à¸à¸¸à¹à¸¡à¸à¹à¸²à¸à¸¥à¹à¸²à¸à¹à¸à¸·à¹à¸à¸à¹à¸²à¸¢à¸ าà¸à¹à¸à¸¢à¹à¸à¹à¸à¸¥à¹à¸à¸`,fileOrPhotoPlaceholder:`ลาà¸à¹à¸¥à¸°à¸§à¸²à¸à¸«à¸£à¸·à¸à¹à¸¥à¸·à¸à¸à¹à¸à¸¥à¹à¸à¸µà¹à¸à¸°à¸à¸±à¸à¹à¸«à¸¥à¸à¸«à¸£à¸·à¸à¸à¹à¸²à¸¢à¸ าà¸à¹à¸à¸¢à¹à¸à¹à¸à¸¥à¹à¸à¸`,replaceFileCaption:`à¹à¸à¸à¸à¸µà¹à¹à¸à¸¥à¹`,removeFileCaption:`à¸à¸³à¹à¸à¸¥à¹à¸à¸µà¹à¸à¸à¸`,booleanCheckedLabel:`à¹à¸à¹`,booleanUncheckedLabel:`à¹à¸¡à¹à¹à¸à¹`,confirmRemoveFile:`à¸à¸¸à¸à¹à¸à¹à¹à¸à¸à¸µà¹à¸à¸°à¸à¸³à¹à¸à¸¥à¹à¸à¸µà¹à¸à¸à¸à¹à¸à¹à¸«à¸£à¸·à¸à¹à¸¡à¹: {0}?`,confirmRemoveAllFiles:`à¸à¸¸à¸à¹à¸à¹à¹à¸à¸à¸µà¹à¸à¸°à¸à¸³à¹à¸à¸¥à¹à¸à¸±à¹à¸à¸«à¸¡à¸à¸à¸à¸à¹à¸à¹à¸«à¸£à¸·à¸à¹à¸¡à¹`,questionTitlePatternText:`à¸à¸·à¹à¸à¸à¸³à¸à¸²à¸¡`,modalCancelButtonText:`ยà¸à¹à¸¥à¸´à¸`,modalApplyButtonText:`à¹à¸à¹`,filterStringPlaceholder:`à¸à¸´à¸¡à¸à¹à¹à¸à¸·à¹à¸à¸à¹à¸à¸«à¸²...`,emptyMessage:`à¹à¸¡à¹à¸¡à¸µà¸à¹à¸à¸¡à¸¹à¸¥à¸à¸µà¹à¸à¸°à¹à¸ªà¸à¸`,loadingPage:`à¸à¸²à¸£à¹à¸«à¸¥à¸ `,loadingData:`à¸à¸²à¸£à¹à¸«à¸¥à¸ `,noEntriesText:`ยัà¸à¹à¸¡à¹à¸¡à¸µà¸£à¸²à¸¢à¸à¸²à¸£ 230à¸à¸¥à¸´à¸à¸à¸¸à¹à¸¡à¸à¹à¸²à¸à¸¥à¹à¸²à¸à¹à¸à¸·à¹à¸à¹à¸à¸´à¹à¸¡à¸£à¸²à¸¢à¸à¸²à¸£à¹à¸«à¸¡à¹`,noEntriesReadonlyText:`à¹à¸¡à¹à¸¡à¸µà¸£à¸²à¸¢à¸à¸²à¸£`,tabTitlePlaceholder:`à¹à¸à¸à¹à¸«à¸¡à¹`,more:`à¸à¸µà¸`,tagboxDoneButtonCaption:`à¸à¸à¸¥à¸, à¹à¸à¹`,selectToRankEmptyRankedAreaText:`à¸à¸±à¸§à¹à¸¥à¸·à¸à¸à¸à¸±à¹à¸à¸«à¸¡à¸à¸à¸¹à¸à¹à¸¥à¸·à¸à¸à¸ªà¹à¸²à¸«à¸£à¸±à¸à¸à¸²à¸£à¸à¸±à¸à¸à¸±à¸à¸à¸±à¸`,selectToRankEmptyUnrankedAreaText:`ลาà¸à¸à¸±à¸§à¹à¸¥à¸·à¸à¸à¸à¸µà¹à¸à¸µà¹à¹à¸à¸·à¹à¸à¸à¸±à¸à¸à¸±à¸à¸à¸±à¸`,ok:`à¸à¸à¸¥à¸, à¹à¸à¹`,cancel:`ยà¸à¹à¸¥à¸´à¸`,createCustomItem:`สรà¹à¸²à¸à¸£à¸²à¸¢à¸à¸²à¸£ "{0}"...`,toc:`สารà¸à¸±à¸`,progressbar:`à¹à¸à¸à¸à¸§à¸²à¸¡à¸à¸·à¸à¸«à¸à¹à¸²`},nativeName:`à¹à¸à¸¢`,englishName:`Thai`}),gj({localeCode:`zh-tw`,strings:{pagePrevText:`ä¸ä¸é `,pageNextText:`ä¸ä¸é `,completeText:`æäº¤åå·`,previewText:`é 覽`,editText:`編輯`,startSurveyText:`éå§`,commentText:`è«ç¼è¡¨è©è«`,otherItemText:`å¡«å¯«å ¶ä»çæ¡`,noneItemText:`æ²æ`,refuseItemText:`æçµåç`,dontKnowItemText:`ä¸ç¥é`,selectAllItemText:`å ¨é¸`,deselectAllItemText:`åæ¶å ¨é¸`,progressText:`第 {0} é , å ± {1} é `,indexText:`{1}{0}`,panelDynamicProgressText:`{1}{0}`,panelDynamicTabTextFormat:`颿¿ {颿¿ç´¢å¼}`,questionsProgressText:`åçäº{0}/{1}åé¡`,emptySurvey:`åå·ä¸æ²æå顿é é¢`,completingSurvey:`æè¬æ¨çåè!`,completingSurveyBefore:`æ¨å·²ç¶å®æäºæ¤èª¿æ¥ã`,loadingSurvey:`åå·è¼å ¥ä¸...`,placeholder:`è«é¸æ...`,ratingOptionsCaption:`鏿ããã`,buttongroupOptionsCaption:`鏿ããã`,value:`å¹å¼`,requiredError:`è«å¡«å¯«æ¤åé¡`,requiredErrorInPanel:`éè¦åçï¼è³å°åçä¸ååé¡ã`,requiredInAllRowsError:`è«å¡«å¯«ææè¡ä¸åé¡`,eachRowUniqueError:`æ¯è¡å¿ é å ·æå¯ä¸å¼ã`,numericError:`çæ¡å¿ é æ¯åæ¸å`,minError:`該å¼ä¸æå°æ¼ {0}`,stepError:`è«è¼¸å ¥èæ¥é·ç¸ç¬¦çå¼{0}ã`,maxError:`該å¼ä¸æå¤§æ¼ {0}`,invalidInputError:`ç¡æè¼¸å ¥`,textNoDigitsAllow:`ä¸å è¨±ä½¿ç¨æ¸ä½ã`,incompletePatternError:`è«å¡«å¯«è©²æ¸å¼ä»¥ç¬¦åæéæ ¼å¼ã`,textMinLength:`çæ¡é·åº¦è³å° {0} ååå `,textMaxLength:`çæ¡é·åº¦ä¸è½è¶ é {0} ååå `,textMinMaxLength:`çæ¡é·åº¦å¿ é å¨ {0} - {1} ååå ä¹é`,minRowCountError:`æå°éè¦å¡«å¯« {0} è¡çæ¡`,minSelectError:`æå°éè¦é¸æ {0} é çæ¡`,maxSelectError:`æå¤åªè½é¸æ {0} é çæ¡`,numericMinMax:`çæ¡ '{0}' å¿ é 大æ¼çæ¼ {1} ä¸å°æ¼çæ¼ {2}`,numericMin:`çæ¡ '{0}' å¿ é 大æ¼çæ¼ {1}`,numericMax:`çæ¡ '{0}' å¿ é å°æ¼çæ¼ {1}
230`,invalidEmail:`è«è¼¸å ¥ææç Email å°å`,invalidExpression:`表éå¼ï¼{0}æè¿åãtrueãã`,urlRequestError:`è¼å ¥é¸é æç¼çé¯èª¤ '{0}': {1}`,urlGetChoicesError:`æªè½è¼å ¥ææçé¸é æè«æ±åæ¸è·¯å¾æèª¤`,exceedMaxSize:`æä»¶å¤§å°ä¸è½è¶ é {0}`,fileSizeUnits:`ä½å çµãKBãMBãGBãTB`,exceedMaxFiles:`ä½ æå¤åªè½ä¸å³æªæ¡æ¸é{0}ã`,noUploadFilesHandler:`ç¡æ³ä¸å³æªãè«çºãonUploadFilesãäºä»¶æ·»å èçç¨å¼ã`,otherRequiredError:`è«å®æå ¶ä»åé¡`,uploadingFile:`æä»¶ä¸å³ä¸... è«èå¿çå¾ å¹¾ç§å¾é試`,loadingFile:`è£è¼ããã`,chooseFile:`é¸ææªæ¡...`,noFileChosen:`æªé¸ææªæ¡`,filePlaceholder:`å°æªæ¡ææ¾å°æ¤èææä¸ä¸é¢çæé鏿è¦ä¸å³çæªã`,confirmDelete:`æ¨ç¢ºå®è¦åªé¤æ¤è¨éåï¼`,keyDuplicationError:`æ¤å¼æè©²æ¯å¯ä¸çã`,addColumn:`æ·»å å`,addRow:`æ·»å çæ¡`,removeRow:`åªé¤çæ¡`,noRowsText:`æ²æè¡ã`,rowIndexTemplateTitle:`è¡ {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`æ°å¢`,removePanel:`åªé¤`,showDetails:`顯示詳細è³è¨`,hideDetails:`é±è詳細è³è¨`,choices_Item:`é¸é `,choices_Choice:`Choice é¸é `,matrix_column:`å`,matrix_row:`è¡`,multipletext_itemname:`ç¼ç°¡è¨`,savingData:`æ£å¨å°çµæä¿åå°æåå¨...`,savingDataError:`å¨ä¿åçµæéç¨ä¸ç¼çäºé¯èª¤ï¼çµææªè½ä¿å`,savingDataSuccess:`çµæä¿åæå!`,saveAgainButton:`è«é試`,timerMin:`æå°`,timerSec:`ç§`,timerSpentAll:`æ¨å¨æ¤é é¢ä¸è±è²»äº{0}ï¼ç¸½å ±{1}ã`,timerSpentPage:`æ¨å¨æ¤é é¢ä¸è±è²»äº{0}ã`,timerSpentSurvey:`ä½ ç¸½å ±è±äº{0}ã`,timerLimitAll:`æ¨å¨æ¤é é¢ä¸è±è²»äº{0}{1}ï¼ç¸½å ±è±è²»äº{2}{3}ã`,timerLimitPage:`æ¨å¨æ¤é é¢ä¸è±è²»äº{0}{1}ã`,timerLimitSurvey:`æ¨ç¸½å ±è±è²»äº{1}ç{0}ã`,clearCaption:`æ¸ æ¥`,selectCaption:`鏿`,signaturePlaceHolder:`卿¤ç°½å`,signaturePlaceHolderReadOnly:`ç¡ç°½å`,chooseFileCaption:`é¸ææªæ¡`,takePhotoCaption:`æç §`,photoPlaceholder:`æä¸ä¸é¢çæé使ç¨ç¸æ©æç §ã`,fileOrPhotoPlaceholder:`ææ¾æé¸æè¦ä¸å³çæªæä½¿ç¨ç¸æ©ææç §çã`,replaceFileCaption:`æ¿ææª`,removeFileCaption:`åªé¤æ¤æª`,booleanCheckedLabel:`æ¯ç`,booleanUncheckedLabel:`ä¸`,confirmRemoveFile:`æ¯å¦ç¢ºå¯¦è¦åªé¤æ¤æªï¼{0}ï¼`,confirmRemoveAllFiles:`æ¯å¦ç¢ºå¯¦è¦åªé¤æææªï¼`,questionTitlePatternText:`å顿¨é¡`,modalCancelButtonText:`åæ¶`,modalApplyButtonText:`æç¨`,filterStringPlaceholder:`éµå ¥ä»¥æå°...`,emptyMessage:`æ²æè¦é¡¯ç¤ºçæ¸æ`,loadingPage:`è£è¼ããã`,loadingData:`è£è¼ããã`,noEntriesText:`éæ²ææ¢ç®ã 231宿ä¸é¢çæéæ·»å æ°æ¢ç®ã`,noEntriesReadonlyText:`æ«ç¡æ¢ç®`,tabTitlePlaceholder:`æ°é¢æ¿`,more:`æ´å¤`,tagboxDoneButtonCaption:`éè¡`,selectToRankEmptyRankedAreaText:`ææé¸é å被é¸ä¸é²è¡æå`,selectToRankEmptyUnrankedAreaText:`å°é¸é æå°æ¤è以å°å ¶é²è¡æå`,ok:`éè¡`,cancel:`åæ¶`,createCustomItem:`å»ºç« {0} é ç®...`,toc:`ç®é`,progressbar:`é²åº¦æ¢`},nativeName:`ç¹é«ä¸æ`,englishName:`Tranditional Chinese`}),gj({localeCode:`tr`,strings:{pagePrevText:`Ãnceki`,pageNextText:`Sonraki`,completeText:`Tamamla`,previewText:`Ãnizleme`,editText:`Düzenle`,startSurveyText:`BaÅlat`,commentText:`Lütfen bir yorum bırakın`,otherItemText:`DiÄer (açıklayınız)`,noneItemText:`Hiçbiri`,refuseItemText:`Cevap vermeyi reddet`,dontKnowItemText:`Bilmiyorum`,selectAllItemText:`Tümünü Seç`,deselectAllItemText:`Tümünün seçimini kaldır`,progressText:`Sayfa {0}/{1}`,indexText:`{0}/{1}`,panelDynamicProgressText:`{0}/{1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`{0}/{1} soru yanıtlandı`,emptySurvey:`Ankette görüntülenecek sayfa ya da soru mevcut deÄil.`,completingSurvey:`Anketi tamamladıÄınız için teÅekkür ederiz`,completingSurveyBefore:`Kayıtlarımız bu anketi zaten tamamladıÄınızı gösteriyor.`,loadingSurvey:`Anket Yükleniyor...`,placeholder:`Seçiniz...`,ratingOptionsCaption:`Seçiniz...`,buttongroupOptionsCaption:`Seçmek...`,value:`deÄer`,requiredError:`Lütfen soruya cevap verin.`,requiredErrorInPanel:`Lütfen en az bir soruyu yanıtlayın.`,requiredInAllRowsError:`Lütfen tüm satırlardaki
231soruları cevaplayın.`,eachRowUniqueError:`Her satırın benzersiz bir deÄeri olmalıdır.`,numericError:`DeÄer sayısal olmalıdır.`,minError:`DeÄer {0}'den küçük olmamalıdır`,stepError:`Lütfen {0} adım boyutuyla eÅleÅen bir deÄer girin.`,maxError:`DeÄer {0}'dan büyük olmamalıdır`,invalidInputError:`Geçersiz girdi`,textNoDigitsAllow:`Numaralara izin verilmez.`,incompletePatternError:`Lütfen gerekli formata uygun deÄeri tamamlayın.`,textMinLength:`Lütfen en az {0} karakter girin.`,textMaxLength:`Lütfen en fazla {0} karakter girin.`,textMinMaxLength:`Lütfen {0}âden fazla ve {1}âden az karakter girin.`,minRowCountError:`Lütfen en az {0} satırı doldurun.`,minSelectError:`Lütfen en az {0} seçeneÄi seçin.`,maxSelectError:`Lütfen en fazla {0} seçeneÄi seçin.`,numericMinMax:`'{0}', {1}'e eÅit veya daha büyük ve {2}'ye eÅit veya daha küçük olmalıdır`,numericMin:`'{0}' deÄeri {1} deÄerine eÅit veya büyük olmalıdır`,numericMax:`'{0}' deÄeri {1} deÄerine eÅit ya da küçük olmalıdır.`,invalidEmail:`Lütfen geçerli bir e-posta adresi girin.`,invalidExpression:`İfade: {0} 'true' döndürmelidir.`,urlRequestError:`İstek '{0}' hatasını döndürdü. {1}`,urlGetChoicesError:`İstek boÅ veri döndürdü veya 'path' özelliÄi yanlıÅ`,exceedMaxSize:`Dosya boyutu {0} deÄerini geçemez.`,fileSizeUnits:`Baytlar, KB, MB, GB, TB`,exceedMaxFiles:`YükleyebileceÄiniz maksimum dosya sayısı {0}.`,noUploadFilesHandler:`Dosyalar yüklenemiyor. Lütfen 'onUploadFiles' olayı için bir iÅleyici ekleyin.`,otherRequiredError:`Lütfen diÄer deÄerleri girin.`,uploadingFile:`Dosyanız yükleniyor. Lütfen birkaç saniye bekleyin ve tekrar deneyin.`,loadingFile:`Yükleniyor...`,chooseFile:`Dosyaları seçin...`,noFileChosen:`Dosya seçili deÄil`,filePlaceholder:`Buraya bir dosya bırakın veya dosyayı yüklemek için aÅaÄıdaki düÄmeyi tıklayın.`,confirmDelete:`Kaydı silmek istiyor musunuz?`,keyDuplicationError:`Bu deÄer benzersiz olmalıdır.`,addColumn:`Sütun Ekle`,addRow:`Satır Ekle`,removeRow:`Kaldır`,noRowsText:`Satır yok.`,rowIndexTemplateTitle:`Satır {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Yeni ekle`,removePanel:`Kaldır`,showDetails:`Detayları göster`,hideDetails:`Detayları Gizle`,choices_Item:`öÄe`,choices_Choice:`Seçim seçeneÄi`,matrix_column:`Sütun`,matrix_row:`Satır`,multipletext_itemname:`metin`,savingData:`Sonuçlar sunucuya kaydediliyor...`,savingDataError:`Bir hata oluÅtu ve sonuçlar kaydedilemedi.`,savingDataSuccess:`Sonuçlar baÅarıyla kaydedildi!`,saveAgainButton:`Tekrar deneyin`,timerMin:`dakika`,timerSec:`saniye`,timerSpentAll:`Bu sayfada {0} ve toplamda {1} harcadınız.`,timerSpentPage:`Bu sayfaya {0} harcadınız.`,timerSpentSurvey:`Toplamda {0} harcadınız.`,timerLimitAll:`Bu sayfaya {0}/{1} ve toplamda {2}/{3} harcadınız.`,timerLimitPage:`Bu sayfaya {0}/{1} harcadınız.`,timerLimitSurvey:`Toplamda {0}/{1} harcadınız.`,clearCaption:`Temizle`,selectCaption:`Seçmek`,signaturePlaceHolder:`Burayı imzalayın`,signaturePlaceHolderReadOnly:`İmza yok`,chooseFileCaption:`Dosya seçin`,takePhotoCaption:`FotoÄraf Ãekin`,photoPlaceholder:`Kamerayı kullanarak fotoÄraf çekmek için aÅaÄıdaki düÄmeyi tıklayın.`,fileOrPhotoPlaceholder:`Kamerayı kullanarak fotoÄraf yüklemek veya fotoÄraf çekmek için bir dosyayı sürükleyip bırakın veya seçin.`,replaceFileCaption:`Dosyayı deÄiÅtir`,removeFileCaption:`Bu dosyayı kaldır`,booleanCheckedLabel:`Evet`,booleanUncheckedLabel:`Hayır`,confirmRemoveFile:`Bu dosyayı kaldırmak istediÄinizden emin misiniz: {0}?`,confirmRemoveAllFiles:`Tüm dosyaları kaldırmak istediÄinizden emin misiniz?`,questionTitlePatternText:`Soru BaÅlıÄı`,modalCancelButtonText:`İptal`,modalApplyButtonText:`Uygula`,filterStringPlaceholder:`Aramak için yazın...`,emptyMessage:`Görüntülenecek veri yok`,loadingPage:`Yükleme...`,loadingData:`Yükleme...`,noEntriesText:`Henüz giriÅ yok. 232Yeni bir giriÅ eklemek için aÅaÄıdaki düÄmeyi tıklayın.`,noEntriesReadonlyText:`GiriÅ yok.`,tabTitlePlaceholder:`Yeni Panel`,more:`Daha fazla`,tagboxDoneButtonCaption:`TAMAM`,selectToRankEmptyRankedAreaText:`Tüm seçenekler sıralanmıÅtır`,selectToRankEmptyUnrankedAreaText:`Seçimleri sıralamak için buraya sürükleyip bırakın`,ok:`TAMAM`,cancel:`İptal`,createCustomItem:`"{0}" öÄesi oluÅtur...`,toc:`İçindekiler`,progressbar:`İlerleme çubuÄu`},nativeName:`türkçe`,englishName:`Turkish`}),gj({localeCode:`uk`,strings:{pagePrevText:`Ðазад`,pageNextText:`ÐалÑ`,completeText:`ÐавеÑÑиÑи`,previewText:`ÐопеÑеднÑй пеÑеглÑд`,editText:`РедагÑваÑи`,startSurveyText:`ÐоÑаÑи`,commentText:`ÐÑÐ´Ñ Ð»Ð°Ñка, залиÑÑе коменÑаÑ`,otherItemText:`ÐнÑе (бÑÐ´Ñ Ð»Ð°Ñка, опиÑÑÑÑ)`,noneItemText:`Ðоден`,refuseItemText:`ÐÑдмовÑеÑÑ Ð²ÑдповÑдаÑи`,dontKnowItemText:`Ðе знаÑ`,selectAllItemText:`ÐибÑаÑи вÑе`,deselectAllItemText:`ÐнÑмÑÑÑ Ð¿Ð¾Ð·Ð½Ð°ÑÐºÑ Ð· ÑÑÑÑ `,progressText:`СÑоÑÑнка {0} з {1}`,indexText:`{0} {1}`,panelDynamicProgressText:`ÐÐ°Ð¿Ð¸Ñ {0} Ñз {1}`,panelDynamicTabTextFormat:`ÐÐ°Ð½ÐµÐ»Ñ {panelIndex}`,questionsProgressText:`ÐÑдповÑли на {0}/{1} пиÑанÑ`,emptySurvey:`ÐÐµÐ¼Ð°Ñ Ð¶Ð¾Ð´Ð½Ð¾Ð³Ð¾ пиÑаннÑ.`,completingSurvey:`ÐÑкÑÑмо Ðам за Ð·Ð°Ð¿Ð¾Ð²Ð½ÐµÐ½Ð½Ñ Ð°Ð½ÐºÐµÑи!`,completingSurveyBefore:`Ðи вже пÑÐ¾Ñ Ð¾Ð´Ð¸Ð»Ð¸ Ñе опиÑÑваннÑ.`,loadingSurvey:`ÐаванÑÐ°Ð¶ÐµÐ½Ð½Ñ Ð¾Ð¿Ð¸ÑÑваннÑ...`,placeholder:`ÐибÑаÑи...`,ratingOptionsCaption:`ÐибеÑÑÑÑ...`,buttongroupOptionsCaption:`ÐибеÑÑÑÑ...`,value:`знаÑеннÑ`,requiredError:`ÐÑÐ´Ñ Ð»Ð°Ñка, дайÑе вÑ
232дповÑдÑ.`,requiredErrorInPanel:`ÐÑÐ´Ñ Ð»Ð°Ñка, дайÑе вÑдповÑÐ´Ñ Ñ Ð¾Ñа б на одне пиÑаннÑ.`,requiredInAllRowsError:`ÐÑÐ´Ñ Ð»Ð°Ñка, дайÑе вÑдповÑÐ´Ñ Ð½Ð° пиÑÐ°Ð½Ð½Ñ Ð² ÐºÐ¾Ð¶Ð½Ð¾Ð¼Ñ ÑÑдкÑ.`,eachRowUniqueError:`Ðожен ÑÑдок повинен маÑи ÑнÑкалÑне знаÑеннÑ.`,numericError:`ÐÑдповÑÐ´Ñ Ð¿Ð¾Ð²Ð¸Ð½Ð½Ð° бÑÑи ÑиÑлом.`,minError:`ÐнаÑÐµÐ½Ð½Ñ Ð½Ðµ повинно бÑÑи менÑе {0}`,stepError:`ÐведÑÑÑ Ð·Ð½Ð°ÑеннÑ, Ñке вÑдповÑÐ´Ð°Ñ ÑозмÑÑÑ ÐºÑÐ¾ÐºÑ {0}.`,maxError:`ÐнаÑÐµÐ½Ð½Ñ Ð½Ðµ повинно бÑÑи бÑлÑÑе {0}`,invalidInputError:`ÐекоÑекÑний Ð²Ñ Ñд`,textNoDigitsAllow:`ÐомеÑи не допÑÑкаÑÑÑÑÑ.`,incompletePatternError:`ÐÑÐ´Ñ Ð»Ð°Ñка, заповнÑÑÑ Ð·Ð½Ð°ÑеннÑ, Ñоб вÑдповÑдаÑи поÑÑÑÐ±Ð½Ð¾Ð¼Ñ ÑоÑмаÑÑ.`,textMinLength:`ÐÑÐ´Ñ Ð»Ð°Ñка введÑÑÑ Ð±ÑлÑÑе {0} ÑимволÑв.`,textMaxLength:`ÐÑÐ´Ñ Ð»Ð°Ñка введÑÑÑ Ð¼ÐµÐ½Ñе {0} ÑимволÑв.`,textMinMaxLength:`ÐÑÐ´Ñ Ð»Ð°Ñка введÑÑÑ Ð±ÑлÑÑе {0} и менÑе {1} ÑимволÑв.`,minRowCountError:`ÐÑÐ´Ñ Ð»Ð°Ñка, заповнÑÑÑ Ð½Ðµ менÑе {0} ÑÑдкÑв.`,minSelectError:`ÐÑÐ´Ñ Ð»Ð°Ñка, вибеÑÑÑÑ Ñ Ð¾Ñа б {0} ваÑÑанÑÑв.`,maxSelectError:`ÐÑÐ´Ñ Ð»Ð°Ñка, вибеÑÑÑÑ Ð½Ðµ бÑлÑÑе {0} ваÑÑанÑÑв.`,numericMinMax:`'{0}' повинно бÑÑи не менÑе нÑж {1}, Ñ Ð½Ðµ бÑлÑÑе нÑж {2}`,numericMin:`'{0}' повинно бÑÑи не менÑе нÑж {1}`,numericMax:`'{0}' повинно бÑÑи не бÑлÑÑе нÑж {1}`,invalidEmail:`ÐÑÐ´Ñ Ð»Ð°Ñка, введÑÑÑ Ð´ÑйÑÐ½Ñ Ð°Ð´ÑеÑÑ ÐµÐ»ÐµÐºÑÑÐ¾Ð½Ð½Ð¾Ñ Ð¿Ð¾ÑÑи.`,invalidExpression:`ÐиÑаз {0} повинен повеÑÑаÑи 'true'.`,urlRequestError:`ÐÐ°Ð¿Ð¸Ñ Ð¿Ð¾Ð²ÐµÑнÑв Ð¿Ð¾Ð¼Ð¸Ð»ÐºÑ '{0}'. {1}`,urlGetChoicesError:`ÐÑдповÑÐ´Ñ Ð½Ð° Ð·Ð°Ð¿Ð¸Ñ Ð¿Ð¾Ð²ÐµÑнÑлаÑÑ Ð¿Ð¾ÑожнÑÐ¾Ñ Ð°Ð±Ð¾ влаÑÑивÑÑÑ 'path' вказано невÑÑно`,exceedMaxSize:`РозмÑÑ ÑÐ°Ð¹Ð»Ñ Ð½Ðµ повинен пеÑевиÑÑваÑи {0}.`,fileSizeUnits:`ÐайÑи, KB, MB, GB, TB`,exceedMaxFiles:`ÐакÑималÑна кÑлÑкÑÑÑÑ ÑайлÑв, ÑÐºÑ Ð²Ð¸ можеÑе заванÑажиÑи, ÑÑановиÑÑ {0}.`,noUploadFilesHandler:`Файли не можна заванÑажиÑи. ÐÑÐ´Ñ Ð»Ð°Ñка, додайÑе обÑобник Ð´Ð»Ñ Ð¿Ð¾Ð´ÑÑ 'onUploadFiles'.`,otherRequiredError:`ÐÑÐ´Ñ Ð»Ð°Ñка, введÑÑÑ Ð´Ð°Ð½Ñ Ð² поле 'ÐнÑе'`,uploadingFile:`ÐÐ°Ñ Ñайл заванÑажÑÑÑÑÑÑ. ÐаÑекайÑе декÑлÑка ÑекÑнд Ñ ÑпÑобÑйÑе зновÑ.`,loadingFile:`ÐаванÑаженнÑ...`,chooseFile:`ÐибеÑÑÑÑ Ñайл(и)...`,noFileChosen:`Файл не вибÑано`,filePlaceholder:`ÐеÑеÑÑгнÑÑÑ Ñайл ÑÑди або наÑиÑнÑÑÑ ÐºÐ½Ð¾Ð¿ÐºÑ Ð½Ð¸Ð¶Ñе, Ñоб вибÑаÑи Ñайл Ð´Ð»Ñ Ð·Ð°Ð²Ð°Ð½ÑаженнÑ.`,confirmDelete:`Ðи Ñ Ð¾ÑеÑе видалиÑи запиÑ?`,keyDuplicationError:`Це знаÑÐµÐ½Ð½Ñ Ð¿Ð¾Ð²Ð¸Ð½Ð½Ð¾ бÑÑи ÑнÑкалÑним.`,addColumn:`ÐодаÑи колонкÑ`,addRow:`ÐодаÑи ÑÑдок`,removeRow:`ÐидалиÑи`,noRowsText:`Ð ÑдÑв немаÑ.`,rowIndexTemplateTitle:`Ð Ñдок {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`ÐодаÑи новÑ`,removePanel:`ÐидалиÑи`,showDetails:`ÐоказаÑи подÑобиÑÑ`,hideDetails:`Ð¡Ñ Ð¾Ð²Ð°Ñи подÑобиÑÑ`,choices_Item:`ÐаÑÑанÑ`,choices_Choice:`ÐаÑÑÐ°Ð½Ñ Ð²Ð¸Ð±Ð¾ÑÑ`,matrix_column:`Ðолонка`,matrix_row:`Ð Ñдок`,multipletext_itemname:`ТекÑÑ`,savingData:`РезÑлÑÑаÑи збеÑÑгаÑÑÑÑÑ Ð½Ð° ÑеÑвеÑ...`,savingDataError:`ÐÑдбÑлаÑÑ Ð¿Ð¾Ð¼Ð¸Ð»ÐºÐ°, ÑезÑлÑÑÐ°Ñ Ð½Ðµ бÑв збеÑежений.`,savingDataSuccess:`РезвÑлÑÑÐ°Ñ ÑÑпÑÑно збеÑежений!`,saveAgainButton:`СпÑобÑваÑи зновÑ`,timerMin:`Ñ Ð²`,timerSec:`Ñек`,timerSpentAll:`Ðи виÑÑаÑили {0} на ÑÑй ÑÑоÑÑнÑÑ Ñ {1} загалом.`,timerSpentPage:`Ðи виÑÑаÑили {0} на ÑÑй ÑÑоÑÑнÑÑ.`,timerSpentSurvey:`Ðи виÑÑаÑили {0} пÑоÑÑгом ÑеÑÑÑ.`,timerLimitAll:`Ðи виÑÑаÑили {0} з {1} на ÑÑй ÑÑоÑÑнÑÑ Ñ {2} з {3} Ð´Ð»Ñ Ð²ÑÑого ÑеÑÑÑ.`,timerLimitPage:`Ðи виÑÑаÑили {0} з {1} на ÑÑй ÑÑоÑÑнÑÑ.`,timerLimitSurvey:`Ðи виÑÑаÑили {0} з {1} Ð´Ð»Ñ Ð²ÑÑого ÑеÑÑÑ.`,clearCaption:`ÐÑиÑÑиÑи`,selectCaption:`ÐибеÑÑÑÑ`,signaturePlaceHolder:`ÐÑдпиÑÑÑÑÑÑ ÑÑÑ`,signaturePlaceHolderReadOnly:`Ðез пÑдпиÑÑ`,chooseFileCaption:`ÐибеÑÑÑÑ Ñайл`,takePhotoCaption:`ÐÑобиÑи ÑоÑо`,photoPlaceholder:`ÐаÑиÑнÑÑÑ ÐºÐ½Ð¾Ð¿ÐºÑ Ð½Ð¸Ð¶Ñе, Ñоб зÑобиÑи ÑоÑо за Ð´Ð¾Ð¿Ð¾Ð¼Ð¾Ð³Ð¾Ñ ÐºÐ°Ð¼ÐµÑи.`,fileOrPhotoPlaceholder:`ÐеÑеÑÑгнÑÑÑ Ð°Ð±Ð¾ вибеÑÑÑÑ Ñайл, Ñоб заванÑажиÑи або зÑобиÑи ÑоÑогÑаÑÑÑ Ð·Ð° Ð´Ð¾Ð¿Ð¾Ð¼Ð¾Ð³Ð¾Ñ ÐºÐ°Ð¼ÐµÑи.`,replaceFileCaption:`ÐамÑниÑи Ñайл`,removeFileCaption:`ÐидалиÑи Ñайл`,booleanCheckedLabel:`Так`,booleanUncheckedLabel:`ÐÑ`,confirmRemoveFile:`Ðи впевненÑ, Ñо Ñ Ð¾ÑеÑе видалиÑи Ñей Ñайл: {0}?`,confirmRemoveAllFiles:`Ðи впевненÑ, Ñо Ñ Ð¾ÑеÑе видалиÑи вÑÑ Ñайли?`,questionTitlePatternText:`Ðазва запиÑаннÑ`,modalCancelButtonText:`СкаÑÑваÑи`,modalApplyButtonText:`ÐаÑÑоÑовÑваÑи`,filterStringPlaceholder:`ÐведÑÑÑ Ð´Ð»Ñ Ð¿Ð¾ÑÑкÑ...`,emptyMessage:`ÐÐµÐ¼Ð°Ñ Ð´Ð°Ð½Ð¸Ñ Ð´Ð»Ñ Ð²ÑдобÑаженнÑ`,loadingPage:`ÐаванÑаженнÑ...`,loadingData:`ÐаванÑаженнÑ...`,noEntriesText:`ÐапиÑÑв поки Ñо немаÑ. 233ÐаÑиÑнÑÑÑ ÐºÐ½Ð¾Ð¿ÐºÑ Ð½Ð¸Ð¶Ñе, Ñоб додаÑи новий запиÑ.`,noEntriesReadonlyText:`ÐапиÑÑв немаÑ`,tabTitlePlaceholder:`Ðова панелÑ`,more:`ÐÑлÑÑе`,tagboxDoneButtonCaption:`ÐÐÐ ÐÐÐ`,selectToRankEmptyRankedAreaText:`ÐÑÑ Ð²Ð°ÑÑанÑи вибиÑаÑÑÑÑÑ Ð´Ð»Ñ ÑанжÑваннÑ`,selectToRankEmptyUnrankedAreaText:`ÐеÑеÑÑгнÑÑÑ Ð²Ð°ÑÑанÑи ÑÑди, Ñоб ÑанжÑваÑи ÑÑ `,ok:`ÐÐÐ ÐÐÐ`,cancel:`СкаÑÑваÑи`,createCustomItem:`СÑвоÑÑÑÑ Ð¿ÑÐ½ÐºÑ "{0}"...`,toc:`ÐмÑÑÑ`,progressbar:`ÐндикаÑÐ¾Ñ Ð¿ÑогÑеÑÑ`},nativeName:`ÑкÑаÑнÑÑка`,englishName:`Ukrainian`}),gj({localeCode:`vi`,strings:{pagePrevText:`Trá» vá»`,pageNextText:`Tiếp theo`,completeText:`Hoà n thà nh`,previewText:`Xem trưá»c`,editText:`Chá»nh sá»a`,startSurveyText:`Bắt Äầu`,commentText:`Vui lòng Äá» lại bình luáºn`,otherItemText:`Khác (mô tả)`,noneItemText:`Trá»ng`,refuseItemText:`Từ chá»i trả lá»i`,dontKnowItemText:`Không biết`,selectAllItemText:`Chá»n tất cả`,deselectAllItemText:`Bá» chá»n tất cả`,progressText:`Trang {0} / {1}`,indexText:`{0} cá»§a {1}`,panelDynamicProgressText:`Dòng {0} / {1}`,panelDynamicTabTextFormat:`Bảng Äiá»u khiá»n {panelIndex}`,questionsProgressText:`Äã trả lá»i {0}/{1} câu há»i`,emptySurvey:`Không có trang hoặc câu há»i nà o ÄÆ°á»£c hiá»n thá» trong cuá»c khảo sát nà y.`,completingSurvey:`Cảm Æ¡n Äã hoà n thà nh khảo sát!`,completingSurveyBefore:`Há» sÆ¡ chúng tôi cho thấy rằng bạn Äã hoà n thà nh cuá»c khảo sát nà y.`,loadingSurvey:`Äang tải khảo sát...`,placeholder:`Chá»n...`,ratingOptionsCaption:`Lá»±a...`,buttongroupOptionsCaption:`Lá»±a...`,value:`GiÃ
233¡ trá»`,requiredError:`Vui lòng trả lá»i câu há»i.`,requiredErrorInPanel:`Vui lòng trả lá»i Ãt nhất má»t câu há»i.`,requiredInAllRowsError:`Vui lòng trả lá»i các câu há»i trên tất cả các dòng.`,eachRowUniqueError:`Má»i hà ng phải có má»t giá trá» duy nhất.`,numericError:`Giá trá» nên là kiá»u sá».`,minError:`Giá trá» không ÄÆ°á»£c nhá» hÆ¡n {0}`,stepError:`Vui lòng nháºp giá trá» khá»p vá»i kÃch thưá»c bưá»c cá»§a {0}.`,maxError:`Giá trá» không ÄÆ°á»£c lá»n hÆ¡n {0}`,invalidInputError:`Äầu và o không hợp lá»`,textNoDigitsAllow:`Sá» không ÄÆ°á»£c phép.`,incompletePatternError:`Vui lòng hoà n thà nh giá trá» Äá» phù hợp vá»i Äá»nh dạng yêu cầu.`,textMinLength:`Vui lòng nháºp Ãt nhất {0} kà tá»±.`,textMaxLength:`Vui lòng nháºp Ãt hÆ¡n {0} kà tá»±.`,textMinMaxLength:`Vui lòng nháºp nhiá»u hÆ¡n {0} hoặc Ãt hÆ¡n {1} kà tá»±.`,minRowCountError:`Vui lòng nháºp Ãt nhất {0} dòng.`,minSelectError:`Vui lòng chá»n Ãt nhất {0} loại.`,maxSelectError:`Vui lòng không chá»n nhiá»u hÆ¡n {0} loại.`,numericMinMax:`Giá trá» '{0}' nên bằng hoặc lá»n hÆ¡n {1} và bằng hoặc nhá» hÆ¡n {2}`,numericMin:`Giá trá» '{0}' nên bằng hoặc lá»n hÆ¡n {1}`,numericMax:`Giá trá» '{0}' nên bằng hoặc nhá» hÆ¡n {1}`,invalidEmail:`Vui lòng Äiá»n Äá»a chá» email hợp lá».`,invalidExpression:`Biá»u thức: {0} nên trả vá» 'true'.`,urlRequestError:`Yêu cầu trả vá» lá»i '{0}'. {1}`,urlGetChoicesError:`Yêu cầu trả vá» dữ liá»u trá»ng hoặc thuá»c tÃnh 'path' không Äúng`,exceedMaxSize:`KÃch thưá»c táºp tin không nên vượt quá {0}.`,fileSizeUnits:`Byte, KB, MB, GB, TB`,exceedMaxFiles:`Sá» lượng tá»p tá»i Äa bạn có thá» tải lên là {0}.`,noUploadFilesHandler:`Không thá» tải tá»p lên. Vui lòng thêm trình xá» lý cho sá»± kiá»n 'onUploadFiles'.`,otherRequiredError:`Vui lòng Äiá»n giá trá» khác.`,uploadingFile:`Táºp tin Äang ÄÆ°á»£c tải lên. Vui lòng chá» má»t lúc và thá» lại.`,loadingFile:`Äang tải...`,chooseFile:`Chá»n các táºp tin...`,noFileChosen:`Không có táºp tin nà o ÄÆ°á»£c chá»n`,filePlaceholder:`Kéo và thả tá»p và o Äây hoặc nhấp và o nút bên dưá»i Äá» chá»n tá»p Äá» tải lên.`,confirmDelete:`Bạn muá»n xóa dòng nà y?`,keyDuplicationError:`Giá trá» nà y không nên bá» trùng lặp.`,addColumn:`Thêm cá»t`,addRow:`Thêm dòng`,removeRow:`Xóa`,noRowsText:`Không có hà ng.`,rowIndexTemplateTitle:`Hà ng {rowIndex}`,rowNameTemplateTitle:`{hà ng Tiêu Äá»}`,addPanel:`Thêm má»i`,removePanel:`Xóa`,showDetails:`Hiá»n thá» chi tiết`,hideDetails:`Ẩn chi tiết`,choices_Item:`mục`,choices_Choice:`Tùy chá»n lá»±a chá»n`,matrix_column:`Cá»t`,matrix_row:`Dòng`,multipletext_itemname:`Nhắn tin`,savingData:`Kết quả Äang lưu lại trên há» thá»ng...`,savingDataError:`Có lá»i xảy ra và chúng ta không thá» lưu kết quả.`,savingDataSuccess:`Kết quả Äã ÄÆ°á»£c lưu thà nh công!`,saveAgainButton:`Thá» lại`,timerMin:`phút`,timerSec:`giây`,timerSpentAll:`Bạn Äã sá» dụng {0} trên trang nà y và {1} trên toà n bá».`,timerSpentPage:`Bạn Äã sá» dụng {0} trên trang.`,timerSpentSurvey:`Bạn Äã sá» dụng {0} trên toà n bá».`,timerLimitAll:`Bạn Äã sá» dụng {0} / {1} trên trang nà y và {2} / {3} trên toà n bá».`,timerLimitPage:`Bạn Äã sá» dụng {0} / {1} trên trang nà y.`,timerLimitSurvey:`Bạn Äã sá» dụng {0} / {1} trên toà n bá».`,clearCaption:`Xóa`,selectCaption:`Lá»±a`,signaturePlaceHolder:`Ký tên tại Äây`,signaturePlaceHolderReadOnly:`Không có chữ ký`,chooseFileCaption:`Chá»n táºp tin`,takePhotoCaption:`Chụp ảnh`,photoPlaceholder:`Nhấp và o nút bên dưá»i Äá» chụp ảnh bằng máy ảnh.`,fileOrPhotoPlaceholder:`Kéo và thả hoặc chá»n tá»p Äá» tải lên hoặc chụp ảnh bằng máy ảnh.`,replaceFileCaption:`Thay thế táºp tin`,removeFileCaption:`Xóa táºp tin`,booleanCheckedLabel:`Có`,booleanUncheckedLabel:`Không`,confirmRemoveFile:`Bạn có chắc chắn muá»n xóa táºp tin nà y: {0}?`,confirmRemoveAllFiles:`Bạn có chắc chắn muá»n xóa toà n bá» táºp tin?`,questionTitlePatternText:`Tiêu Äá» câu há»i`,modalCancelButtonText:`Há»§y`,modalApplyButtonText:`Ãp dụng`,filterStringPlaceholder:`Nháºp Äá» tìm kiếm...`,emptyMessage:`Không có dữ liá»u Äá» hiá»n thá»`,loadingPage:`Tải...`,loadingData:`Tải...`,noEntriesText:`Chưa có mục nháºp. 234Nhấp và o nút bên dưá»i Äá» thêm mục má»i.`,noEntriesReadonlyText:`Không có mục nháºp`,tabTitlePlaceholder:`Bảng Äiá»u khiá»n má»i`,more:`Nhiá»u hÆ¡n`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Tất cả các lá»±a chá»n ÄÆ°á»£c chá»n Äá» xếp hạng`,selectToRankEmptyUnrankedAreaText:`Kéo các lá»±a chá»n và o Äây Äá» xếp hạng chúng`,ok:`OK`,cancel:`Há»§y`,createCustomItem:`Tạo váºt phẩm "{0}"...`,toc:`Mục lục`,progressbar:`Thanh tiến trình`},nativeName:`viá»t nam`,englishName:`Vietnamese`}),gj({localeCode:`cy`,strings:{pagePrevText:`Blaenorol`,pageNextText:`Nesaf`,completeText:`Cwblhau`,previewText:`Rhagolwg`,editText:`Golygu`,startSurveyText:`Dechrau`,commentText:`Gadewch sylw os gwelwch yn dda`,otherItemText:`Arall (disgrifiwch)`,noneItemText:`Dim`,refuseItemText:`Gwrthod ateb`,dontKnowItemText:`Ddim yn gwybod`,selectAllItemText:`Dewis y Cyfan `,deselectAllItemText:`Dad-ddethol yr holl`,progressText:`Tudalen {0} o {1}`,indexText:`{0} o {1}`,panelDynamicProgressText:`Cofnod {0} o {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Wedi ateb {0}/{1} cwestiwn`,emptySurvey:`Does dim modd gweld tudalen na chwestiwn yn yr arolwg.`,completingSurvey:`Diolch am lenwiâr holiadur!`,completingSurveyBefore:`Rydych chi wedi llenwiâr arolwg hwn yn barod yn ôl ein cofnodion.`,loadingSurvey:`Wrthiân Llwythoâr Arolwg...`,placeholder:`Dewiswch...`,ratingOptionsCaption:`Dewis...`,buttongroupOptionsCaption:`Dewis...`,value:`gwerth`,requiredError:`Atebwch y cwestiwn.`,requiredErrorInPanel:`Atebwch o leiaf un cwestiwn.`,requiredInAllRowsError:`Atebwch y cwestiynau ym mhob rhes.`,eachRowUniqueError:`Rhaid i bob rhes fod â gwerth unigryw.`,
234numericError:`Dylaiâr gwerth fod yn rhif.`,minError:`Ni ddylai'r gwerth fod yn llai na {0}`,stepError:`Rhowch werth sy'n cyfateb i faint cam {0}.`,maxError:`Ni ddylai'r gwerth fod yn fwy na {0}`,invalidInputError:`Mewnbwn annilys`,textNoDigitsAllow:`Ni chaniateir rhifau.`,incompletePatternError:`Cwblhewch y gwerth er mwyn cydweddu â'r ffurf gofynnol.`,textMinLength:`Rhowch o leiaf {0} nod.`,textMaxLength:`Rhowch lai na {0} nod.`,textMinMaxLength:`Rhowch o leiaf {0} nod ond dim mwy na {1}.`,minRowCountError:`Llenwch o leiaf {0} rhes.`,minSelectError:`Dewiswch o leiaf {0} amrywiolyn.`,maxSelectError:`Peidiwch â dewis mwy na {0} amrywiolyn.`,numericMinMax:`Dylaiâr '{0}' fod yr un fath â {1} neuân fwy, aâr fath â {2} neuân llai`,numericMin:`Dylaiâr '{0}' fod yr un fath â {1} neuân fwy`,numericMax:`Dylaiâr '{0}' fod yr un fath â {1} neuân llai`,invalidEmail:`Rhowch gyfeiriad e-bost dilys.`,invalidExpression:`Dylaiâr mynegiad {0} arwain at 'true'.`,urlRequestError:`Roedd y cais wedi arwain at y gwall '{0}'. {1}`,urlGetChoicesError:`Roedd y cais wedi arwain at ddata gwag neu mae priodwedd y âpathâ yn anghywir `,exceedMaxSize:`Ddylaiâr ffeil ddim bod yn fwy na {0}.`,fileSizeUnits:`Beitiau, KB, MB, GB, TB`,exceedMaxFiles:`Uchafswm y ffeiliau y gallwch eu llwytho i fyny yw {0}.`,noUploadFilesHandler:`Ni ellir llwytho ffeiliau i fyny. Ychwanegwch handler ar gyfer y digwyddiad 'onUploadFiles'.`,otherRequiredError:`Rhowch y gwerth arall.`,uploadingFile:`Mae eich ffeil wrthiân llwytho i fyny. Arhoswch ychydig o eiliadau a rhoi cynnig arall arni.`,loadingFile:`Wrthiân llwytho...`,chooseFile:`Dewiswch ffeil(iau)...`,noFileChosen:`Heb ddewis ffeil `,filePlaceholder:`Llusgwch a gollwng ffeil yma neu cliciwch ar y botwm isod i ddewis ffeil i'w llwytho i fyny.`,confirmDelete:`Ydych chi am ddileuâr cofnod?`,keyDuplicationError:`Dylaiâr gwerth hwn fod yn unigryw.`,addColumn:`Ychwanegu colofn `,addRow:`Ychwanegu rhes`,removeRow:`Tynnu`,noRowsText:`Nid oes unrhyw ffraeau.`,rowIndexTemplateTitle:`Rhes {rowIndex}`,rowNameTemplateTitle:`{rhesTeitl}`,addPanel:`Ychwanegu oâr newydd`,removePanel:`Tynnu`,showDetails:`Dangos manylion`,hideDetails:`Manylion Cuddio`,choices_Item:`eitem`,choices_Choice:`Dewis opsiwn`,matrix_column:`Colofn`,matrix_row:`Rhes`,multipletext_itemname:`Testun`,savingData:`Maeâr canlyniadauân cael eu cadw ar y gweinydd...`,savingDataError:`Roedd gwall a doedd dim modd cadwâr canlyniadau.`,savingDataSuccess:`Wedi llwyddo i gadwâr canlyniadau!`,saveAgainButton:`Rhowch gynnig arall arni`,timerMin:`mun`,timerSec:`eil`,timerSpentAll:`Rydych chi wedi treulio {0} ar y dudalen hon a {1} gydaâi gilydd.`,timerSpentPage:`Rydych chi wedi treulio {0} ar y dudalen hon.`,timerSpentSurvey:`Rydych chi wedi treulio {0} gydaâi gilydd.`,timerLimitAll:`Rydych chi wedi treulio {0} o {1} ar y dudalen hon a {2} o {3} gydaâi gilydd.`,timerLimitPage:`Rydych chi wedi treulio {0} o {1} ar y dudalen hon.`,timerLimitSurvey:`Rydych chi wedi treulio {0} o {1} gydaâi gilydd.`,clearCaption:`Clirio`,selectCaption:`Dewis`,signaturePlaceHolder:`Arwydd yma`,signaturePlaceHolderReadOnly:`Dim llofnod`,chooseFileCaption:`Dewiswch ffeil `,takePhotoCaption:`Tynnu Llun`,photoPlaceholder:`Cliciwch y botwm isod i dynnu llun gan ddefnyddio'r camera.`,fileOrPhotoPlaceholder:`Llusgwch a gollwng neu dewiswch ffeil i lanlwytho neu dynnu llun gan ddefnyddio'r camera.`,replaceFileCaption:`Amnewid ffeil`,removeFileCaption:`Tynnuâr ffeil hon `,booleanCheckedLabel:`Iawn`,booleanUncheckedLabel:`Na`,confirmRemoveFile:`Ydych chiân siŵr eich bod am dynnuâr ffeil hon: {0}?`,confirmRemoveAllFiles:`Ydych chiân siŵr eich bod am dynnu pob ffeil?`,questionTitlePatternText:`Teitl y Cwestiwn `,modalCancelButtonText:`Canslo`,modalApplyButtonText:`Cynnig`,filterStringPlaceholder:`Teipiwch i chwilio...`,emptyMessage:`Dim data i'w arddangos`,loadingPage:`Llwytho...`,loadingData:`Llwytho...`,noEntriesText:`Dim cofnodion eto. 235Cliciwch y botwm isod i ychwanegu cofnod newydd.`,noEntriesReadonlyText:`Dim cofnodion`,tabTitlePlaceholder:`Panel newydd`,more:`Rhagor`,tagboxDoneButtonCaption:`OCÃ`,selectToRankEmptyRankedAreaText:`Dewisir pob dewis ar gyfer graddio`,selectToRankEmptyUnrankedAreaText:`Llusgwch ddewisiadau yma i'w graddio`,ok:`OCÃ`,cancel:`Canslo`,createCustomItem:`Creu eitem "{0}"...`,toc:`Tabl cynnwys`,progressbar:`Bar cynnydd`},nativeName:`cymraeg`,englishName:`Welsh`}),gj({localeCode:`tel`,strings:{pagePrevText:`à°µà±à°¨à°à°à°¿`,pageNextText:`తరà±à°µà°¾à°¯`,completeText:`à°ªà±à°°à±à°¤à°¿ à°à±à°¯à°à°¡à°¿`,previewText:`à°®à±à°à°¦à±à°à°¾ à°µà±à°à±à°·à°¿à°à°à±`,editText:`మారà±à°ªà±à°²à± à°à±à°¯à±à°¯à°¿`,startSurveyText:`à°ªà±à°°à°¾à°°à°à°à°¿à°à°à±`,commentText:`దయà°à±à°¸à°¿ à°à° à°µà±à°¯à°¾à°à±à°¯ à°à°µà±à°µà°à°¡à°¿`,otherItemText:`à°à°¤à°°à°®à±à°¨(వివరిà°à°à°à°¡à°¿)`,noneItemText:`à°à°µà°°à± à°à°¾à°¦à±`,refuseItemText:`సమాధానఠà°à°µà±à°µà°¡à°¾à°¨à°¿à°à°¿ నిరాà°à°°à°¿à°à°à°à°¡à°¿`,dontKnowItemText:`à°¤à±à°²à°¿à°¯à°¦à±`,selectAllItemText:`à° à°¨à±à°¨à°¿ à°à°à°à±à°à±`,deselectAllItemText:`Deselect all`,progressText:`à°ªà±à°à±{0}/{1}`,indexText:`{1} {0}[మారà±à°à±]`,panelDynamicProgressText:`దాà°à°²à°¾à°²à±{0}/{1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`{0}/{1} à°ªà±à°°à°¶à±à°¨à°²à°à± à°à°µà°¾à°¬à± à°à°µà±à°µà°¡à° ఠయినది`,emptySurvey:`ఠసరà±à°µà±à°²à± à°ªà±à°à±à°²à± à°à°¾à°¨à°¿ à°ªà±à°°à°¶à±à°¨à°²à± à°à°¾à°¨à°¿ à°à°¨à°¬à°¡à±à° à°²à±à°¦à±`,completingSurvey:`సరà±à°µà±à°¨à± à°®à±à°à°¿à°à°à°¿ à°¨à°à°¦à±à°à± à°§à°¨à±à°¯à°µà°¾à°¦à°®à±à°²à±`,completingSurveyBefore:` à°®à±à°°à± à°à°ªà±à°ªà°à°¿à°à± సరà±à°µà±à°¨à± à°®à±à°à°¿à°à°à°¿à°¨à°à±à°²à± మా à°°à°¿à°à°¾à°°à±à°¡à±à°²à± à°à±à°ªà°¿à°¸à±à°¤à±à°¨à±à°¨à°¾à°¯à°¿`,loadingSurvey:`సరà±à°µà± à°²à±à°¡à± à° à°µà±à°¤à±à°à°¦à°¿`,placeholder:`à°à°¨à±à°¨à±à°à±à°à°¡à°¿`,ratingOptionsCaption:`à°à°à°à±...`,buttongroupOptionsCaption:`à°à°à°à±...`,value:`విలà±à°µ`,requiredError:`దయà°à±à°¸à°¿ à°ªà±à°°à°¶à±à°¨à°à± à°à°µà°¾à°¬à± à°à°µà±à°µà°à°¡à°¿`,requiredErrorInPanel:`దయà°à±à°¸à°¿ à°à°¨à±à°¸à° à°à°à±à° à°ªà±à°°à°¶à±à°¨à°à±à°¨à°¾ à°à°µà°¾à°¬à± à°à°µà±à°µà°à°¡à°¿`,requiredInAllRowsError:`దయà°à±à°¸à°¿ à° à°¨à±à°¨à°¿ వరà±à°¸à°²à°²à± à°à°¨à±à°¨ à°ªà±à°°à°¶à±à°¨à°²à°à± à°à°µà°¾à°¬à± à°à°µà±à°µà°à°¡à°¿`,eachRowUniqueError:`à°ªà±à°°à°¤à°¿ వరà±à°¸à°à± à°à° à°ªà±à°°à°¤à±à°¯à±à°à°®à±à°¨ విలà±à°µ à°à°à°¡à°¾à°²à°¿.`,numericError:`విలà±à°µà°¨à± à°¸à°à°à±à°¯à°²à°²à± à°¤à±à°²à°¿à°¯à°à±à°¯à°à°¡à°¿`,minError:`విలà±à°µ {0} à°à°à°à± à°¤à°à±à°à±à°µà°à°¾ à°à°à°¡à°à±à°¡à°¦à±.`,stepError:`{0} à°¯à±à°à±à° దశ à°¸à±à°à±à°à± à°à°¤ à° à°¯à±à°¯à± విలà±à°µà°¨à± దయà°à±à°¸à°¿ నమà±à°¦à± à°à±à°¯à°à°¡à°¿.`,maxError:`విలà±à°µ {0} à°à°à°à± à°à°à±à°à±à°µ à°à°à°¡à°à±à°¡à°¦à±.`,invali
235dInputError:`à°à±à°²à±à°²à°¨à°¿ à°à°¨à± à°ªà±à°à±`,textNoDigitsAllow:`à°
à°à°à±à°²à± à°
à°¨à±à°®à°¤à°¿à°à°à°¬à°¡à°µà±.`,incompletePatternError:`à°
వసరమà±à°¨ ఫారà±à°®à±à°à± à°à°¤ à°
à°¯à±à°¯à±à°µà°¿à°§à°à°à°¾ దయà°à±à°¸à°¿ విలà±à°µà°¨à± à°ªà±à°°à±à°¤à°¿ à°à±à°¯à°à°¡à°¿.`,textMinLength:`దయà°à±à°¸à°¿ à°à°¨à±à°¸à° {0} à°
à°à±à°·à°°à°¾à°²à°¨à± నమà±à°¦à± à°à±à°¯à°à°¡à°¿`,textMaxLength:`దయà°à±à°¸à°¿ {0} à°à°¨à±à°¨à°¾ à°¤à°à±à°à±à°µ à°
à°à±à°·à°°à°¾à°²à°¨à± నమà±à°¦à± à°à±à°¯à°à°¡à°¿`,textMinMaxLength:`దయà°à±à°¸à°¿ {0} à°à°¨à±à°¨à°¾ à°à°à±à°à±à°µ మరియà±{1} à°à°¨à±à°¨à°¾ à°¤à°à±à°à±à°µ à°
à°à±à°·à°°à°¾à°²à°¨à± నమà±à°¦à± à°à±à°¯à°à°¡à°¿`,minRowCountError:`దయà°à±à°¸à°¿ à°à°¨à±à°¸à° {0}వరà±à°¸à°²à°¨à± à°ªà±à°°à°¿à°à°à°à°¡à°¿`,minSelectError:`దయà°à±à°¸à°¿ à°à°¨à±à°¸à°{0} à°°à°à°¾à°²à°¨à± à°à°¨à±à°¨à±à°à±à°à°¡à°¿`,maxSelectError:`దయà°à±à°¸à°¿ {0} à°à°¨à±à°¨à°¾ à°à°à±à°à±à°µ à°°à°à°¾à°²à°¨à± à°à°¨à±à°¨à±à°à± à°à°à°¡à°¿`,numericMinMax:`'{0}' {1}తౠసమానà°à°à°¾ à°²à±à°¦à°¾ {1} à°à°¨à±à°¨à°¾ à°à°à±à°à±à°µ à°à°¾ మరియౠ{2}à°à°¨à±à°¨à°¾ à°¤à°à±à°à±à°µ à°à°à°¡à°¾à°²à°¿ à°²à±à°¦à°¾ {2}తౠసమానà°à°à°¾ à°à°à°¡à°¾à°²à°¿`,numericMin:`''{0}' {1}తౠసమానà°à°à°¾ à°²à±à°¦à°¾ {1}à°à°¨à±à°¨à°¾ à°à°à±à°à±à°µà°à°¾ à°à°à°¡à°¾à°²à°¿`,numericMax:`'{0}' {1} à°¤à°à±à°à±à°µ à°²à±à°¦à°¾ సమానà°à°à°¾ à°à°à°¡à°¾à°²à°¿`,invalidEmail:`దయà°à±à°¸à°¿ సరà±à°¨ à°à°®à±à°¯à°¿à°²à± నమà±à°¦à± à°à±à°¯à°à°¡à°¿`,invalidExpression:`{0} 'నిà°à°' à°
ని తిరిà°à°¿à°µà±à°µà°¾à°²à°¿`,urlRequestError:`వినà±à°¨à°ªà°®à± {0} ని తపà±à°ªà±à°à°¾ à°à±à°°à±à°¤à°¿à°à°à°¿à°à°¦à°¿ {1}`,urlGetChoicesError:`వినà±à°¨à°ªà°®à± à°à°¾à°³à± à°¡à±à°à°¾à°¨à°¿ తిరిà°à°¿à°à±à°à°¿à°à°¦à°¿, à°²à±à°¦à°¾ path తపà±à°ªà±à°¨ ది`,exceedMaxSize:`à°«à±à°²à± పరిమాణà°{0} à°à°à°à± à°ªà±à°¦à±à°¦à°¦à°¿à°à°¾ à°à°à°¡à°à±à°¡à°¦à±`,fileSizeUnits:`à°¬à±à°à± à°²à±, KB, MB, GB, TB`,exceedMaxFiles:`à°®à±à°°à± à°
పౠలà±à°¡à± à°à±à°¯à°à°² à°à°°à°¿à°·à±à° à°«à±à°³à±à°² à°¸à°à°à±à°¯ {0}.`,noUploadFilesHandler:`à°«à±à°³à±à°²à°¨à± à°
పౠలà±à°¡à± à°à±à°¯à°²à±à°. దయà°à±à°¸à°¿ 'à°à°¨à± à°
పౠలà±à°¡à± à°«à±à°²à±à°¸à±' à°à°µà±à°à°à± à°à±à°°à°à± à°à° à°¹à±à°¯à°¾à°à°¡à±à°²à°°à± ని à°à±à°¡à°¿à°à°à°à°¡à°¿.`,otherRequiredError:`దయà°à±à°¸à°¿ à°à°¤à°° విలà±à°µà°²à°¨à± నమౠదిà°à°à°à°¡à°¿`,uploadingFile:`మౠఫà±à°²à± à°
à°ªà±à°²à±à°¡à± à°
à°µà±à°¤à±à°¨à±à°¨à°¦à°¿ దయà°à±à°¸à°¿ à°à±à°¨à±à°¨à°¿ à°¸à±à°à°à°¡à±à°²à± à°µà±à°à°¿ à°à°à°¡à°à°¡à°¿ మరియౠమళà±à°²à± à°ªà±à°°à°¯à°¤à±à°¨à°¿à°à°à°à°¡à°¿`,loadingFile:`à°²à±à°¡à± à°
à°µà±à°¤à±à°¨à±à°¨à°¦à°¿`,chooseFile:`à°«à±à°³à±à°²à°¨à± à°à°¨à±à°¨à±à°à±à°à°¡à°¿`,noFileChosen:`à° à°«à±à°²à± à°à°¨à±à°¨à±à°à± à°²à±à°¦à±`,filePlaceholder:`à°à° à°«à±à°²à± నౠà°à°à±à°à°¡ à°¡à±à°°à°¾à°à± à°à±à°¸à°¿ à°¡à±à°°à°¾à°ªà± à°à±à°¯à°à°¡à°¿ à°²à±à°¦à°¾ à°
పౠలà±à°¡à± à°à±à°¯à°¡à°¾à°¨à°¿à°à°¿ à°«à±à°²à± à°à°à°à±à°à±à°µà°¡à°¾à°¨à°¿à°à°¿ దిà°à±à°µ à°¬à°à°¨à± à°®à±à°¦ à°à±à°²à°¿à°à± à°à±à°¯à°à°¡à°¿.`,confirmDelete:`à°®à±à°°à± à°°à°¿à°à°¾à°°à±à°¡à±à°²à°¨à± à°¤à±à°²à°à°¿à°à°à°¾à°²à°¨à°¿ à°
à°¨à±à°à±à°à°à±à°¨à±à°¨à°¾à°°à°¾`,keyDuplicationError:`విలà±à°µ à°ªà±à°°à°¤à±à°¯à±à°à°à°à°¾ à°à°à°¡à°¾à°²à°¿`,addColumn:`à°à°¾à°²à° à°à±à°°à±à°ªà°¿à°à°à°à°¡à°¿`,addRow:`వరà±à°¸à°²à± à°à±à°°à±à°ªà°¿à°à°à°à°¡à°¿`,removeRow:`à°¤à±à°¸à±à°¯à°à°¡à°¿`,noRowsText:`వరà±à°¸à°²à± à°²à±à°µà±.`,rowIndexTemplateTitle:`Row {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`à°à±à°¤à±à°¤ దానà±à°¨à°¿ à°à±à°°à±à°ªà°¿à°à°à°à°¡à°¿`,removePanel:`à°¤à±à°¸à±à°¯à°à°¡à°¿`,showDetail
235s:`వివరాలౠà°à±à°ªà°¿à°à°à±`,hideDetails:`వివరాలనౠదాà°à°à°¡à°¿`,choices_Item:`వసà±à°¤à±à°µà±à°²à±`,choices_Choice:`à°à°¾à°¯à°¿à°¸à± à°à°ªà±à°·à°¨à±`,matrix_column:`à°à°¾à°²à° `,matrix_row:`వరà±à°¸`,multipletext_itemname:`à°µà°à°¨à°`,savingData:`ఫలితాà°à°¶à°¾à°²à± సరà±à°µà°°à±à°²à± à°¸à±à°µà± à° à°µà±à°¤à±à°¨à±à°¨à°¾à°¯à°¿`,savingDataError:`à°à° à°²à±à°ªà°®à± à°¸à°à°à°µà°¿à°à°à°¿à°¨à°¦à°¿ à° à°à°¦à±à°à°¨à°¿ ఫలితాà°à°¶à°¾à°²à°¨à± à°¸à±à°µà± à°à±à°¯à°²à±à°à°ªà±à°¯à°¾à°®à± `,savingDataSuccess:`ఫలితాà°à°¶à°¾à°²à°¨à± విà°à°¯à°µà°à°¤à°à°à°¾ à°¸à±à°µà± à°à±à°¸à°¾à°®à±`,saveAgainButton:`మళà±à°²à± à°ªà±à°°à°¯à°¤à±à°¨à°¿à°à°à±`,timerMin:`నిమిషాలౠ`,timerSec:`à°¸à±à°à°à°¡à±à°²à±`,timerSpentAll:`à° à°ªà±à°à± à°ªà±à°¨ à°®à±à°°à±{0} à°à°ªà°¯à±à°à°¿à°à°à°¾à°°à± à°®à±à°¤à±à°¤à°à°à°¾ {1} à°à°ªà°¯à±à°à°¿à°à°à°¾à°°à±`,timerSpentPage:`à° à°ªà±à°à± à°ªà±à°¨ à°®à±à°°à±{0} à°à°ªà°¯à±à°à°¿à°à°à°¾à°°à±`,timerSpentSurvey:`à°®à±à°°à± à°®à±à°¤à±à°¤à°à°à°¾ {0} à°à°ªà°¯à±à°à°¿à°à°à°¾à°°à±`,timerLimitAll:`à° à°ªà±à°à± à°ªà±à°¨ à°®à±à°°à± {1}లౠ{0} à°à°¾à°à°¾à°¨à±à°¨à°¿ à°à°ªà°¯à±à°à°¿à°à°à°¾à°°à±. à°®à±à°¤à°à°à°¾ {3}లౠ{2} à°à°¾à°à°¾à°¨à±à°¨à°¿ à°à°ªà°¯à±à°à°¿à°à°à°¾à°°à±.`,timerLimitPage:`à° à°ªà±à°à±à°²à± à°®à±à°°à± {1}à°²à±à°¨à°¿{0} ని à°à°ªà°¯à±à°à°¿à°à°à°¾à°°à±`,timerLimitSurvey:` à°®à±à°¤à±à°¤à°à°à°¾ à°®à±à°°à± {1} లౠ{0} ని à°à°ªà°¯à±à°à°¿à°à°à°¾à°°à± `,clearCaption:`à°¸à±à°ªà°·à±à°à°®à±`,selectCaption:`à°à°à°à±`,signaturePlaceHolder:`à°à°à±à°à°¡ à°¸à°à°¤à°à° à°à±à°¯à°à°¡à°¿`,signaturePlaceHolderReadOnly:`à°¸à°à°¤à°à° à°²à±à°¦à±`,chooseFileCaption:`à°«à±à°²à± à°à°à°à±à°à±à°à°¡à°¿`,takePhotoCaption:`à°«à±à°à± à°¤à±à°¸à±à°à±à°à°¡à°¿`,photoPlaceholder:`à°à±à°®à±à°°à°¾à°¨à± à°à°ªà°¯à±à°à°¿à°à°à°¿ à°«à±à°à± à°¤à±à°¯à°¡à°¾à°¨à°¿à°à°¿ దిà°à±à°µ à°¬à°à°¨à± à°®à±à°¦ à°à±à°²à°¿à°à± à°à±à°¯à°à°¡à°¿.`,fileOrPhotoPlaceholder:`à°à±à°®à±à°°à°¾à°¨à± à°à°ªà°¯à±à°à°¿à°à°à°¿ à°«à±à°à±à°¨à± ఠపౠలà±à°¡à± à°à±à°¯à°¡à°¾à°¨à°¿à°à°¿ à°²à±à°¦à°¾ à°¤à±à°¯à°¡à°¾à°¨à°¿à°à°¿ à°«à±à°²à± నౠడà±à°°à°¾à°à± మరియౠడà±à°°à°¾à°ªà± à°à±à°¯à°à°¡à°¿ à°²à±à°¦à°¾ à°à°à°à±à°à±à°à°¡à°¿.`,replaceFileCaption:`à°«à±à°²à± మారà±à°à°à°¡à°¿`,removeFileCaption:`à° à°«à±à°²à± à°¤à±à°¸à±à°¯à°à°¡à°¿`,booleanCheckedLabel:`à° à°µà±à°¨à±`,booleanUncheckedLabel:`à°²à±à°¦à±`,confirmRemoveFile:` à° à°«à±à°²à±à°¨à°¿ à°¤à±à°¯à°¿à°à°à°¾à°²à°¨à°¿ à°®à±à°°à± à°à°à±à°à°¿à°¤à°à°à°¾ à° à°¨à±à°à±à°à°à±à°¨à±à°¨à°¾à°°à°¾:{0} ?`,confirmRemoveAllFiles:`à° à°¨à±à°¨à°¿ à°«à±à°³à±à°²à°¨à± à°¤à±à°¸à±à°¯à°¾à°²à°¨à°¿ à°®à±à°°à± à°à°à±à°à°¿à°¤à°à°à°¾ à° à°¨à±à°à±à°à°à±à°¨à±à°¨à°¾à°°à°¾`,questionTitlePatternText:`à°ªà±à°°à°¶à±à°¨ à°¶à±à°°à±à°·à°¿à°`,modalCancelButtonText:`à°°à°¦à±à°¦à±`,modalApplyButtonText:`సరిపడà±`,filterStringPlaceholder:`à°¶à±à°§à°¿à°à°à°¡à°¾à°¨à°¿à°à°¿ à°à±à°ªà± à°à±à°¯à°à°¡à°¿...`,emptyMessage:`డిసౠపà±à°²à± à°à±à°¯à°¡à°¾à°¨à°¿à°à°¿ à°¡à±à°à°¾ à°²à±à°¦à±`,loadingPage:`à°²à±à°¡à°¿à°à°à±...`,loadingData:`à°²à±à°¡à°¿à°à°à±...`,noEntriesText:`à°à°à°à°¾ à°à°à°à±à°°à±à°²à± à°²à±à°µà±. 236à°à±à°¤à±à°¤ à°à°à°à±à°°à±à°¨à°¿ à°à±à°¡à°¿à°à°à°¡à° à°à±à°°à°à± దిà°à±à°µ à°¬à°à°¨à± à°®à±à°¦ à°à±à°²à°¿à°à± à°à±à°¯à°à°¡à°¿.`,noEntriesReadonlyText:`à°à°à°à±à°°à±à°²à± à°²à±à°µà±`,tabTitlePlaceholder:`à°à±à°¤à±à°¤ à°ªà±à°¯à°¾à°¨à±à°²à±`,more:`à°à°à±à°à±à°µ`,tagboxDoneButtonCaption:`సరà±`,selectToRankEmptyRankedAreaText:`à°°à±à°¯à°¾à°à°à°¿à°à°à± à°à±à°°à°à± à° à°¨à±à°¨à°¿ à°à°à°ªà°¿à°à°²à± à°à°à°ªà°¿à° à°à±à°¯à°¬à°¡à°¤à°¾à°¯à°¿.`,selectToRankEmptyUnrankedAreaText:`వాà°à°¿à°¨à°¿ à°°à±à°¯à°¾à°à°à± à°à±à°¯à°¡à° à°à±à°°à°à± à°à°à°ªà°¿à°à°²à°¨à± à°à°à±à°à°¡ à°¡à±à°°à°¾à°à± à°à±à°¯à°à°¡à°¿`,ok:`సరà±`,cancel:`à°°à°¦à±à°¦à±`,createCustomItem:`"{0}" à°à°à°®à± à°¸à±à°·à±à°à°¿à°à°à°à°¡à°¿...`,toc:`విషయ à°ªà°à±à°à°¿à°[మారà±à°à±]`,progressbar:`à°ªà±à°°à±à°à°¤à°¿ బారà±`},nativeName:`à°¤à±à°²à±à°à±`,englishName:`Telugu`}),gj({localeCode:`fil`,strings:{pagePrevText:`Nakaraang`,pageNextText:`Susunod`,completeText:`Kumpleto`,previewText:`Silipin`,editText:`I-edit`,startSurveyText:`Magsimula`,commentText:`Mangyaring mag-iwan ng komento`,otherItemText:`Iba pa (ilarawan)`,noneItemText:`w
236ala`,refuseItemText:`Tumangging sumagot`,dontKnowItemText:`hindi ko alam`,selectAllItemText:`Piliin lahat`,deselectAllItemText:`Alisin ang pagpili ng lahat`,progressText:`Pahina {0} ng {1}`,indexText:`{0} ng {1}`,panelDynamicProgressText:`{0} ng {1}`,panelDynamicTabTextFormat:`Panel {panelIndex}`,questionsProgressText:`Sinagot ang {0}/{1} mga tanong`,emptySurvey:`Ang survey ay hindi naglalaman ng anumang nakikitang elemento.`,completingSurvey:`Salamat sa pagkumpleto ng survey`,completingSurveyBefore:`Nakumpleto mo na ang survey na ito.`,loadingSurvey:`Nilo-load ang Survey...`,placeholder:`Pumili...`,ratingOptionsCaption:`Pumili...`,buttongroupOptionsCaption:`Pumili ...`,value:`halaga`,requiredError:`Kinakailangan ang tugon.`,requiredErrorInPanel:`Kinakailangan ang tugon: sagutin ang kahit isang tanong.`,requiredInAllRowsError:`Kinakailangan ang tugon: sagutin ang mga tanong sa lahat ng row.`,eachRowUniqueError:`Ang bawat hilera ay dapat may natatanging halaga.`,numericError:`Ang halaga ay dapat na numero.`,minError:`Ang halaga ay hindi dapat mas mababa sa {0}`,stepError:`Mangyaring magpasok ng isang halaga na tumutugma sa laki ng hakbang ng {0}.`,maxError:`Ang halaga ay hindi dapat mas malaki sa {0}`,invalidInputError:`Hindi wastong input`,textNoDigitsAllow:`Bawal ang mga numero.`,incompletePatternError:`Mangyaring kumpletuhin ang halaga upang tumugma sa kinakailangang format.`,textMinLength:`Mangyaring magpasok ng hindi bababa sa {0} (mga) character.`,textMaxLength:`Mangyaring magpasok ng hindi hihigit sa {0} (mga) character.`,textMinMaxLength:`Mangyaring magpasok ng hindi bababa sa {0} at hindi hihigit sa {1} (na) character.`,minRowCountError:`Mangyaring punan ang hindi bababa sa {0} (na) hilera.`,minSelectError:`Mangyaring pumili ng hindi bababa sa {0} (mga) opsyon.`,maxSelectError:`Mangyaring pumili ng hindi hihigit sa {0} (mga) opsyon.`,numericMinMax:`Ang '{0}' ay dapat na hindi bababa sa {1} at hindi hihigit sa {2}`,numericMin:`Ang '{0}' ay dapat na hindi bababa sa {1}`,numericMax:`Ang '{0}' ay dapat na hindi hihigit sa {1}`,invalidEmail:`Mangyaring magpasok ng wastong e-mail address.`,invalidExpression:`Ang expression na: {0} ay dapat magbalik ng 'true'.`,urlRequestError:`Ang kahilingan ay nagbalik ng error na '{0}'. {1}`,urlGetChoicesError:`Ang kahilingan ay nagbalik ng walang laman na data o ang 'path' property ay hindi tama`,exceedMaxSize:`Ang laki ng file ay hindi dapat lumampas sa {0}.`,fileSizeUnits:`Mga byte, KB, MB, GB, TB`,exceedMaxFiles:`Ang maximum na bilang ng mga file na maaari mong i-upload ay {0}.`,noUploadFilesHandler:`Hindi ma-upload ang mga file. Mangyaring magdagdag ng handler para sa kaganapang 'onUploadFiles'.`,otherRequiredError:`Kinakailangan ang tugon: maglagay ng isa pang halaga.`,uploadingFile:`Ina-upload ang iyong file. Mangyaring maghintay ng ilang segundo at subukang muli.`,loadingFile:`Naglo-load...`,chooseFile:`Pumili ng (mga) file...`,noFileChosen:`Walang napiling file`,filePlaceholder:`I-drag at i-drop ang isang file dito o i-click ang button sa ibaba upang pumili ng file na ia-upload.`,confirmDelete:`Sigurado ka bang gusto mong tanggalin ang talang ito?`,keyDuplicationError:`Ang halagang ito ay dapat na natatangi.`,addColumn:`Magdagdag ng Column`,addRow:`Magdagdag ng hilera`,removeRow:`Alisin`,noRowsText:`Walang mga hilera.`,rowIndexTemplateTitle:`Hilera {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Magdagdag ng bago`,removePanel:`Alisin`,showDetails:`Ipakita ang mga detalye`,hideDetails:`Itago ang Mga Detalye`,choices_Item:`aytem`,choices_Choice:`Pagpipilian sa pagpi
236pilian`,matrix_column:`Kolum`,matrix_row:`hilera`,multipletext_itemname:`Text`,savingData:`Ang mga resulta ay sini-save sa server...`,savingDataError:`May naganap na error at hindi namin mai-save ang mga resulta.`,savingDataSuccess:`Matagumpay na na-save ang mga resulta!`,saveAgainButton:`Subukan muli`,timerMin:`min`,timerSec:`Sec`,timerSpentAll:`Gumastos ka ng {0} sa pahinang ito at {1} sa kabuuan.`,timerSpentPage:`Gumastos ka ng {0} sa pahinang ito.`,timerSpentSurvey:`Gumastos ka ng {0} sa kabuuan.`,timerLimitAll:`Gumastos ka ng {0} ng {1} sa pahinang ito at {2} ng {3} sa kabuuan.`,timerLimitPage:`Gumastos ka ng {0} sa {1} sa pahinang ito.`,timerLimitSurvey:`Gumastos ka ng {0} sa {1} sa kabuuan.`,clearCaption:`Maaliwalas`,selectCaption:`Piliin`,signaturePlaceHolder:`Pumirma dito`,signaturePlaceHolderReadOnly:`Walang pirma`,chooseFileCaption:`Piliin ang File`,takePhotoCaption:`Kunan ng litrato`,photoPlaceholder:`I-click ang button sa ibaba para kumuha ng larawan gamit ang camera.`,fileOrPhotoPlaceholder:`I-drag at i-drop o pumili ng file na ia-upload o kumuha ng larawan gamit ang camera.`,replaceFileCaption:`Palitan ang file`,removeFileCaption:`Alisin ang file na ito`,booleanCheckedLabel:`Oo`,booleanUncheckedLabel:`Hindi`,confirmRemoveFile:`Sigurado ka bang gusto mong alisin ang file na ito: {0}?`,confirmRemoveAllFiles:`Sigurado ka bang gusto mong alisin ang lahat ng file?`,questionTitlePatternText:`Pamagat ng Tanong`,modalCancelButtonText:`Kanselahin`,modalApplyButtonText:`Mag-apply`,filterStringPlaceholder:`I-type para maghanap...`,emptyMessage:`walang maipakitang datos`,loadingPage:`Naglo-load...`,loadingData:`Naglo-load...`,noEntriesText:`Wala pang entry. 237I-click ang button sa ibaba para magdagdag ng bagong entry.`,noEntriesReadonlyText:`Walang entry`,tabTitlePlaceholder:`Bagong Panel`,more:`Higit pa`,tagboxDoneButtonCaption:`OK`,selectToRankEmptyRankedAreaText:`Ang lahat ng mga pagpipilian ay pinili para sa pagraranggo`,selectToRankEmptyUnrankedAreaText:`I-drag ang mga pagpipilian dito upang i-rank ang mga ito`,ok:`OK`,cancel:`Kanselahin`,createCustomItem:`Lumikha ng "{0}" na item ...`,toc:`Talaan ng mga nilalaman`,progressbar:`Email Address *`},nativeName:`filipino`,englishName:`Filipino`}),gj({localeCode:`sl`,strings:{pagePrevText:`PrejÅ¡nja`,pageNextText:`Naslednja`,completeText:`ZakljuÄi`,previewText:`Predogled`,editText:`Uredi`,startSurveyText:`ZaÄni`,commentText:`Prosimo, pustite komentar`,otherItemText:`Drugo (opiÅ¡ite)`,noneItemText:`Noben`,refuseItemText:`Zavrni odgovor`,dontKnowItemText:`Ne vem`,selectAllItemText:`Izberi vse`,deselectAllItemText:`Odstrani izbiro`,progressText:`Stran {0} od {1}`,indexText:`{0} od {1}`,panelDynamicProgressText:`{0} od {1}`,panelDynamicTabTextFormat:`PloÅ¡Äa {panelIndex}`,questionsProgressText:`Odgovorjeno {0}/{1} vpraÅ¡anj`,emptySurvey:`Anketa ne vsebuje vidnih elementov.`,completingSurvey:`Hvala, ker ste izpolnili anketo`,completingSurveyBefore:`To anketo ste že izpolnili.`,loadingSurvey:`Nalaganje ankete...`,placeholder:`Izberite...`,ratingOptionsCaption:`Izberite...`,buttongroupOptionsCaption:`Izbrati...`,value:`vrednost`,requiredError:`Odgovor je obvezen.`,requiredErrorInPanel:`Obvezen odgovor: odgovorite na vsaj eno vpraÅ¡anje.`,requiredInAllRowsError:`Obvezen odgovor: odgovorite na vsa vpraÅ¡anja v vrsticah.`,eachRowUniqueError:`Vsaka vrstica mora imeti edinstveno vrednost.`,numericError:`Vrednost mora biti Å¡tevilÄna.`,minError:`Vrednost ne sme biti manjÅ¡a od {0}`,stepError:`Vnesite vrednost, ki se ujema z velikostjo koraka {0}.`,maxError:`Vrednost ne sme biti veÄja od {0}`,invalidInputError:`Neveljaven vhod`,textNoDigitsAllow:`Å tevilke niso dovoljene.`,incompletePatternError:`Prosimo, izpolnite vrednost, da ustreza zahtevani obliki.`,textMinLength:`Vnesite vsaj {0} znakov.`,textMaxLength:`Vnesite najveÄ {0} znakov.`,textMinMaxLength:`Vnesite vsaj {0} in najveÄ {1} znakov.`,minRowCountError:`Izpolnite vsaj {0} vrstic.`,minSelectError:`Izberite vsaj {0} možnosti.`,maxSelectError:`Izberite najveÄ {0} možnosti.`,numericMinMax:`'{0}' mora biti vsaj {1} in najveÄ {2}`,numericMin:`'{0}' mora biti vsaj {1}`,numericMax:`'{0}' mora biti najveÄ {1}
237`,invalidEmail:`Vnesite veljaven e-poÅ¡tni naslov.`,invalidExpression:`Izraz: {0} mora vrniti 'true'.`,urlRequestError:`Zahteva je vrnila napako '{0}'. {1}`,urlGetChoicesError:`Zahteva je vrnila prazne podatke ali lastnost 'path' ni pravilna.`,exceedMaxSize:`Velikost datoteke ne sme presegati {0}.`,fileSizeUnits:`Bajti, KB, MB, GB, TB`,exceedMaxFiles:`NajveÄje Å¡tevilo datotek, ki jih lahko naložite, je {0}.`,noUploadFilesHandler:`Datotek ni mogoÄe naložiti. Dodajte obravnavo za dogodek 'onUploadFiles'.`,otherRequiredError:`Obvezen odgovor: vnesite drugo vrednost.`,uploadingFile:`VaÅ¡a datoteka se nalaga. PoÄakajte nekaj sekund in poskusite znova.`,loadingFile:`Nalaganje...`,chooseFile:`Izberite datoteko...`,noFileChosen:`Ni izbrane datoteke`,filePlaceholder:`Povlecite in spustite datoteko tukaj ali kliknite spodnji gumb za izbiro datoteke za nalaganje.`,confirmDelete:`Ste prepriÄani, da želite izbrisati ta zapis?`,keyDuplicationError:`Ta vrednost mora biti edinstvena.`,addColumn:`Dodaj stolpec`,addRow:`Dodaj vrstico`,removeRow:`Odstrani`,noRowsText:`Ni vrstic.`,rowIndexTemplateTitle:`Vrstica {rowIndex}`,rowNameTemplateTitle:`{rowTitle}`,addPanel:`Dodaj novo`,removePanel:`Odstrani`,showDetails:`Prikaži podrobnosti`,hideDetails:`Skrij podrobnosti`,choices_Item:`postavka`,choices_Choice:`Možnost izbire`,matrix_column:`Stolpec`,matrix_row:`Vrstica`,multipletext_itemname:`besedilo`,savingData:`Rezultati se shranjujejo na strežnik...`,savingDataError:`PriÅ¡lo je do napake in rezultatov ni bilo mogoÄe shraniti.`,savingDataSuccess:`Rezultati so bili uspeÅ¡no shranjeni!`,saveAgainButton:`Poskusite znova`,timerMin:`min`,timerSec:`sek`,timerSpentAll:`Na tej strani ste porabili {0}, skupno {1}.`,timerSpentPage:`Na tej strani ste porabili {0}.`,timerSpentSurvey:`Skupaj ste porabili {0}.`,timerLimitAll:`Na tej strani ste porabili {0} od {1} in skupno {2} od {3}.`,timerLimitPage:`Na tej strani ste porabili {0} od {1}.`,timerLimitSurvey:`Skupaj ste porabili {0} od {1}.`,clearCaption:`PoÄisti`,selectCaption:`Izbrati`,signaturePlaceHolder:`PodpiÅ¡ite se tukaj`,signaturePlaceHolderReadOnly:`Ni podpisa`,chooseFileCaption:`Izberi datoteko`,takePhotoCaption:`Slikaj`,photoPlaceholder:`Kliknite spodnji gumb, da posnamete fotografijo s kamero.`,fileOrPhotoPlaceholder:`Povlecite in spustite datoteko za nalaganje ali posnemite fotografijo s kamero.`,replaceFileCaption:`Zamenjaj datoteko`,removeFileCaption:`Odstrani to datoteko`,booleanCheckedLabel:`Da`,booleanUncheckedLabel:`Ne`,confirmRemoveFile:`Ste prepriÄani, da želite odstraniti to datoteko: {0}?`,confirmRemoveAllFiles:`Ste prepriÄani, da želite odstraniti vse datoteke?`,questionTitlePatternText:`Naslov vpraÅ¡anja`,modalCancelButtonText:`PrekliÄi`,modalApplyButtonText:`Uporabi`,filterStringPlaceholder:`Vnesite za iskanje...`,emptyMessage:`Ni podatkov za prikaz`,loadingPage:`Nakladanje...`,loadingData:`Nakladanje...`,noEntriesText:`Ni Å¡e vnosov. 238Kliknite spodnji gumb za dodajanje novega vnosa.`,noEntriesReadonlyText:`Ni vnosov`,tabTitlePlaceholder:`Nova ploÅ¡Äa`,more:`VeÄ`,tagboxDoneButtonCaption:`V redu`,selectToRankEmptyRankedAreaText:`Vse možnosti so izbrane za razvrÅ¡Äanje`,selectToRankEmptyUnrankedAreaText:`Povlecite izbire sem, da jih razvrstite`,ok:`V redu`,cancel:`PrekliÄi`,createCustomItem:`Ustvari element »{0}« ...`,toc:`Kazalo vsebine`,progressbar:`Vrstica napredovanja`},nativeName:`slovenÅ¡Äina`,englishName:`Slovenian`});var JQ={header:``,title:`heading-beta`,description:`paragraph`,headerText:``,footer:``,bodyNavigationButton:``,page:{root:``,description:`paragraph`},panel:{title:`heading-gamma`,description:`paragraph`,container:``,withFrame:``},question:{title:`label`,description:`paragraph paragraph--help paragraph--no-margin`,descriptionUnderInput:`paragraph paragraph--help paragraph--no-margin`,mainRoot:``,flowRoot:``,withFrame:``,headerTop:``},navigation:{complete:`button button--primary`,next:`button button--secondary button--arrowed`,prev:`button button--secondary`},text:{root:`sd-input sd-input--umcu`,onError:`sd-input--error sd-input--umcu-error`},comment:{root:`sd-input sd-input--umcu sd-comment`,onError:`sd-input--error sd-input--umcu-error`},actionBar:{root:`sd-action-bar sd-action-bar--umcu`},error:{root:`sd-question__erbox--umcu paragraph paragraph--no-margin paragraph--error`,tooltip:``,outsideQuestion:``,aboveQuestion:``,belowQuestion:``,locationTop:``,locationBottom:``},checkbox:{root:`sd-selectbox sd-selectbox--umcu`,item:`sd-item sd-item--umcu sd-checkbox sd-selectbase__item`},radiogroup:{root:`sd-selectbox sd-selectbox--umcu`,item:`sd-item sd-item--umcu sd-radio sd-selectbase__item`},dropdown:{control:`sd-input sd-input--umcu sd-dropdown`,onError:`sd-input--error sd-input--umcu-error`},signaturepad:{mainRoot:`sd-element sd-question sd-question--signature sd-row__question`,root:`sd-signaturepad sjs_sp_container`,small:`sd-row__question--small`,controls:`sjs_sp_controls sd-signaturepad__controls`,placeholder:`sjs_sp_placeholder`,clearButton:`sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear`,clearButtonIconId:`icon-clear`}},YQ={Index:Rd,Menu:Ps,Questionnaire:Yd,Onboarding:Qd,LoaderAnimation:Xd,Autocomplete:xs,Comments:Ef,Search:cp,HeroImageV2:IA,ThemeCarousel:LA,ImageCarousel:zA,ShareDrawer:vA,Dictionary:pp,FactCard:mp,HeaderCarousel:hp,DLabSearchAutocomplete:sf,DLabSearch:bf,Timeline:gp,CampaignChecklist:_A,FloatingLicensesTable:kA,FloatingLicensesForm:AA,NavCard:jA,PostIt:MA,Banner:FA,RubricsV2Table:VA,RubricsV2PersonalData:
238HA,RubricsV2PreConditions:UA,RubricsV2Container:WA,RubricsContainer:ZA,GoogleTranslate:ej,Survey:({id:e,api:t,recaptchakey:n,language:r})=>{let[a,o]=(0,g.useState)(null),[s,c]=(0,g.useState)(!1),[l,u]=(0,g.useState)(null),[d,f]=(0,g.useState)(`idle`),p=(0,g.useRef)([]),m=async()=>await window.grecaptcha.execute(n,{action:`submit`});return(0,g.useEffect)(()=>{(async()=>{try{c(!0);let r=document.createElement(`script`);r.src=`https://www.google.com/recaptcha/api.js?render=${n}`,r.async=!0,document.body.appendChild(r);let i=await fetch(`${t}/Form/survey/${e}`).then(e=>e.json()),a=JSON.parse(i.data),s=new Z(a);s.locale=`nl`,s.showQuestionNumbers=`off`,s.questionErrorLocation=`bottom`;let l=s.pages.flatMap(e=>e.questions.map(e=>({questionKey:e.name})));p.current=l,a.showPdfDownload&&s.addNavigationItem({id:`pdf-export`,title:`Opslaan als pdf`,action:()=>u()});let u=async()=>{let e=new fQ(a);e.haveCommercialLicense=!0,e.data=s.data,e.save(a.title)};s.showCompletedPage=!1,s.onComplete.add(async n=>{f(`submitting`);let r=p.current.map(e=>e.questionKey),i={};r.forEach(e=>{i[e]=n.data[e]||``});try{let r=await m();if(!(await fetch(`${t}/Form/create-survey-results`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({formId:e,data:JSON.stringify(i),captchaToken:r})})).ok)throw Error();n.showCompletedPage=!0,f(`success`);let a=window.dataLayer;Array.isArray(a)&&a.push({event:`survey_complete`,survey_id:e,survey_page_count:n.pageCount})}catch{f(`error`)}});let d=(t,n)=>{var r;let i=window.dataLayer;Array.isArray(i)&&i.push({event:`survey_page_view`,survey_id:e,survey_page_index:t.currentPageNo+1,survey_page_count:t.pageCount,survey_page_name:((r=t.currentPage)==null?void 0:r.name)??``,survey_progress_pct:Math.round((t.currentPageNo+1)/t.pageCount*100),...n?{survey_direction:n}:{}})};d(s),s.onCurrentPageChanged.add((e,t)=>{d(e,t.isNextPage?`next`:`prev`)}),o(s)}catch{u(r===`nl`?`Er ging iets mis tijdens het laden van de vragenlijst.`:`Something went wrong loading the survey.`)}finally{c(!1)}})()},[t,e,r]),s?(0,U.jsx)(i,{spinning:!0}):l?(0,U.jsx)(`p`,{className:`paragraph`,children:l}):d===`submitting`?(0,U.jsx)(i,{spinning:!0}):d===`success`?a&&(0,U.jsx)(sB,{model:a,css:JQ}):d===`error`?(0,U.jsx)(`p`,{className:`paragraph paragraph--error`,children:r===`nl`?`Er ging iets mis tijdens het opslaan van uw antwoorden. Probeer het opnieuw.`:`Something went wrong while saving your answers. Please try again.`}):a&&(0,U.jsx)(sB,{model:a,css:JQ})}},XQ=({reactRootElements:e})=>{let t=e.filter(e=>e.dataset.component!==void 0&&YQ[e.dataset.component]).map(e=>({props:{...e.dataset,...e.classList.contains(`__react-append`)?{element:e}:{},childNodes:e.cloneNode(!0)},rootEl:e,component:e.dataset.component}));return(0,U.jsx)(U.Fragment,{children:t.map(e=>{if(e.rootEl.classList.contains(`__react-append-inside`)){let t=e.rootEl;t.innerHTML=``;let n=YQ[e.component];return(0,ne.createPortal)((0,U.jsx)(n,{...e.props}),t)}let t=e.rootEl,n=t.nextElementSibling,r=document.createElement(`div`);if(n&&n.parentNode)n.parentNode.insertBefore(r,n.nextSibling);else{var i;(i=t.parentNode)==null||i.appendChild(r)}let a=YQ[e.component];return(0,ne.createPortal)((0,U.jsx)(a,{...e.props}),r)})})};function ZQ(){return(0,U.jsxs)(`svg`,{width:`170`,height:`50`,viewBox:`0 0 170 50`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M28.2228 26.4753C28.2228 29.6445 27.0674 31.1295 24.9666 31.1422C22.8657 31.1295 21.7096 29.6445 21.7096 26.4753V17.7084H17.6846V26.2372C17.6846 31.6889 20.403 34.3144 24.9666 34.375C29.5301 34.3144 32.2485 31.6889 32.2485 26.2372V17.7084H28.2228V26.4753Z`,fill:`#1961AB`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M49.7262 21.9937L40.8131 21.3416L48.5561 16.8457C48.5561 16.8457 47.8693 14.3374 45.9785 11.4614L37.6682 14.7726L42.7076 7.3347C42.7076 7.3347 41.0099 5.37531 38.0668 3.61201L32.0069 10.23L33.345 1.32507C33.345 1.32507 30.9708 0.302301 27.5606 0L24.9499 8.61298L22.3215 0.00519928C22.3215 0.00519928 19.7425 0.122555 16.5393 1.34216L17.8959 10.2448L11.8219 3.63875C11.8219 3.63875 9.5487 4.87321 7.18926 7.37258L12.2434 14.7994L3.9279 11.5068C3.9279 11.5068 2.41143 13.6117 1.36066 16.8962L9.07858 21.3564L0.205995 22.0108C0.205995 22.0108 -0.257493 24.5711 0.205995 27.99L9.11837 28.648L1.37171 33.1387C1.37171 33.1387 2.05552 35.6478 3.94632 38.5252L12.2582 35.2199L7.21358 42.6534C7.21358 42.6534 8.91058 44.6158 11.8521 46.3813L1
2387.9173 39.7671L16.5725 48.672C16.5725 48.672 18.9452 49.6955 22.3561 50L24.9727 41.387L27.5945 49.9985C27.5945 49.9985 30.1735 49.8834 33.3774 48.666L32.0268 39.7619L38.0963 46.3716C38.0963 46.3716 40.3703 45.1394 42.7319 42.6415L37.6829 35.2103L45.9962 38.5103C45.9962 38.5103 47.5149 36.4068 48.5672 33.1216L40.8183 28.6369L49.7292 27.9729C49.7292 27.9729 50.1905 25.4126 49.7262 21.9937ZM36.4833 27.3564C39.3357 29.3061 40.8094 33.0607 43.7672 33.4804C40.8382 34.8174 37.6409 32.1345 34.3295 32.1598C36.0611 35.1627 35.7722 39.1914 38.2562 40.8626C35.0427 40.7861 33.3163 36.9706 30.3224 35.5445C30.5884 39.0087 28.5952 42.5108 30.1139 45.1038C27.2511 43.6301 27.3388 39.4365 25.2535 36.8436C24.003 40.079 20.6997 42.3652 20.9539 45.3645C19.0086 42.7841 20.8913 39.0451 20.1286 35.797C17.6093 38.1657 13.6494 38.78 12.5868 41.5928C11.9442 38.4182 15.2498 35.8713 15.9616 32.6121C12.6715 33.6453 8.83984 32.4673 6.67198 34.5373C7.45895 31.3955 11.5331 30.5473 13.5779 27.9209C10.1684 27.4136 7.22316 24.6758 4.37886 25.5938C6.43987 23.1071 10.4757 24.1239 13.4482 22.6525C10.5958 20.7035 9.11984 16.9489 6.16207 16.5315C9.0889 15.1938 12.2876 17.8744 15.5998 17.8476C13.8667 14.8447 14.1541 10.8167 11.6687 9.14702C14.8821 9.2213 16.6093 13.0361 19.6062 14.4599C19.3365 10.9965 21.329 7.49291 19.8088 4.90144C22.6723 6.37358 22.5868 10.5664 24.6728 13.1594C25.9211 9.92171 29.2237 7.63626 28.9688 4.63627C30.9156 7.21437 29.0343 10.9549 29.7985 14.2037C29.8014 14.2044 29.8058 14.2067 29.8095 14.2089C32.3303 11.8395 36.291 11.2282 37.3543 8.41615C37.9961 11.5907 34.6883 14.1346 33.975 17.3946C37.2659 16.3636 41.0976 17.5439 43.2669 15.4738C42.4777 18.6164 38.4028 19.4624 36.3573 22.0873C39.766 22.5961 42.7098 25.3354 45.5548 24.4195C43.4924 26.9041 39.4558 25.8857 36.4833 27.3564Z`,fill:`#1961AB`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M63.5134 19.7916V27.4626C63.5134 29.7549 64.4267 30.9216 66.047 30.9216C67.7081 30.9216 68.6221 29.8142 68.6221 27.4626V19.7916H71.7789V27.2641C71.7789 31.3764 69.5977 33.3333 65.9432 33.3333C62.4124 33.3333 60.3359 31.4752 60.3359 27.2245V19.7916H63.5134Z`,fill:`#1961AB`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M85.3109 28.1497C85.2528 26.5226 85.1934 24.5531 85.1934 22.5844H85.1346C84.7234 24.312 84.1752 26.2413 83.6668 27.8282L82.0611 33.1122H79.7317L78.3226 27.8684C77.8918 26.2815 77.4415 24.3529 77.1282 22.5844H77.089C77.0107 24.4132 76.952 26.5025 76.8541 28.1899L76.6191 33.3333H73.8596L74.7009 19.7916H78.6744L79.9667 24.312C80.3779 25.8795 80.7884 27.5669 81.0828 29.1546H81.1416C81.5129 27.5878 81.9632 25.7991 82.394 24.2926L83.8031 19.7916H87.6997L88.4235 33.3333H85.5067L85.3109 28.1497Z`,fill:`#1961AB`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M99.7102 32.7688C99.1646 33.0417 97.9379 33.3333 96.341 33.3333C91.802 33.3333 89.464 30.5087 89.464 26.7675C89.464 22.2856 92.6586 19.7916 96.6325 19.7916C98.1717 19.7916 99.34 20.1035 99.8668 20.3763L99.2628 22.7338C98.6588 22.4812 97.821 22.2466 96.7696 22.2466C94.4121 22.2466 92.5814 23.6693 92.5814 26.5921C92.5814 29.2217 94.1393 30.8783 96.7884 30.8783C97.6846 30.8783 98.6776 30.6834 99.2628 30.4503L99.7102 32.7688Z`,fill:`#1961AB`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M109.285 19.7916V27.4626C109.285 29.7549 110.199 30.9216 111.819 30.9216C113.481 30.9216 114.394 29.8142 114.394 27.4626V19.7916H117.551V27.2641C117.551 31.3764 115.37 33.3333 111.716 33.3333C108.185 33.3333 106.108 31.4752 106.108 27.2245V19.7916H109.285Z`,fill:`#1961AB`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M122.726 20.8334V23.5721H124.833V25.7629H122.726V29.2257C122.726 30.3801 122.997 30.9077 123.886 30.9077C124.253 30.9077 124.543 30.8686 124.755 30.8295L124.775 33.079C124.389 33.2355 123.693 33.3334 122.862 33.3334C121.915 33.3334 121.123 33.0015 120.659 32.5123C120.118 31.9448 119.848 31.0251 119.848 29.6757V25.7629H118.592V23.5721H119.848V21.4987L122.726 20.8334Z`,fill:`#1961AB`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M126.996 26.5002C126.996 24.9998 126.955 24.0211 126.914 23.1459H129.603L129.707 25.0206H129.789C130.301 23.5418 131.534 22.9166 132.499 22.9166C132.787 22.9166 132.93 22.9166 133.156 22.9583V25.9376C132.93 25.8959 132.663 25.8542 132.314 25.8542C131.164 25.8542 130.384 26.4786 130.178 27.4581C130.138 27.6665 130.117 27.9
238166 130.117 28.1666V33.3333H126.996V26.5002Z`,fill:`#1961AB`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M139.679 27.002C139.679 26.2461 139.357 24.9794 137.948 24.9794C136.659 24.9794 136.135 26.1644 136.055 27.002H139.679ZM136.075 29.1253C136.176 30.4124 137.424 31.0254 138.853 31.0254C139.901 31.0254 140.746 30.8831 141.571 30.6168L141.974 32.7204C140.968 33.129 139.739 33.3333 138.41 33.3333C135.069 33.3333 133.155 31.3727 133.155 28.2475C133.155 25.7141 134.705 22.9166 138.128 22.9166C141.31 22.9166 142.518 25.4289 142.518 27.9002C142.518 28.4314 142.457 28.9006 142.417 29.1253H136.075Z`,fill:`#1961AB`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M151.859 32.8838C151.292 33.129 150.22 33.3333 149.001 33.3333C145.681 33.3333 143.558 31.3727 143.558 28.2271C143.558 25.3063 145.618 22.9166 149.443 22.9166C150.283 22.9166 151.207 23.0596 151.881 23.3048L151.375 25.6127C150.998 25.4493 150.43 25.3063 149.589 25.3063C147.909 25.3063 146.816 26.4701 146.837 28.1045C146.837 29.9425 148.098 30.9028 149.653 30.9028C150.409 30.9028 150.998 30.7802 151.481 30.5971L151.859 32.8838Z`,fill:`#1961AB`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M152.921 18.75H155.988V24.4806H156.029C156.351 24.0492 156.755 23.7204 157.239 23.4541C157.683 23.2076 158.269 23.0637 158.834 23.0637C160.791 23.0637 162.283 24.4403 162.283 27.4597V33.3333H159.216V27.8089C159.216 26.494 158.773 25.5901 157.622 25.5901C156.815 25.5901 156.312 26.1242 156.09 26.6782C156.008 26.8844 155.988 27.1507 155.988 27.3767V33.3333H152.921V18.75Z`,fill:`#1961AB`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M167.459 20.8334V23.5721H169.565V25.7629H167.459V29.2257C167.459 30.3801 167.73 30.9077 168.618 30.9077C168.986 30.9077 169.275 30.8686 169.488 30.8295L169.507 33.079C169.121 33.2355 168.425 33.3334 167.594 33.3334C166.647 33.3334 165.855 33.0015 165.391 32.5123C164.85 31.9448 164.579 31.0251 164.579 29.6757V25.7629H163.324V23.5721H164.579V21.4987L167.459 20.8334Z`,fill:`#1961AB`})]})}var QQ=`umcu-zorgtrajecten-app`;function $Q(e){return e.toLowerCase().includes(QQ)}var e$=`nl-NL`;function t$({locale:e}){return(0,U.jsx)(`div`,{className:`cookie-consent-modal__title`,children:e===e$?`Deze website maakt gebruik van cookies`:`This website uses cookies`})}function n$({locale:e}){return(0,U.jsx)(`p`,{className:`cookie-consent-modal__description`,children:e===e$?`Deze website toont videoâs van o.a. YouTube. Dergelijke partijen plaatsen cookies (third party cookies). Als u deze cookies niet wilt kunt u dat hier aangeven. Wij plaatsen zelf ook cookies om onze site te verbeteren.`:`This website displays videos from, among others, YouTube. Such parties place cookies (third-party cookies). If you do not want these cookies, you can indicate that here. We also place cookies ourselves to improve our site.`})}function r$({locale:e}){let t=window.umcuConsentCookieAccept,n=window.umcuConsentCookieDeny,r=()=>{window.localStorage.setItem(`consent`,t),document.cookie=t,window.location.reload()},i=()=>{window.localStorage.setItem(`consent`,n),document.cookie=n,window.location.reload()},a=e===e$;return(0,U.jsxs)(`div`,{className:`cookie-consent-modal__actions`,children:[(0,U.jsx)(`a`,{href:a?`/nl/cookiebeleid`:`/en/cookiepolicy`,className:`cookie-consent-modal__link`,children:a?`Lees meer over het cookiebeleid`:`Read more about the cookie policy`}),(0,U.jsxs)(`div`,{className:`cookie-consent-modal__buttons`,children:[(0,U.jsx)(`button`,{onClick:i,className:`cookie-consent-modal__declineButton cookie-consent-modal__button button button--secondary`,children:a?`Nee, liever niet`:`No, rather not`}),(0,U.jsx)(`button`,{onClick:r,className:`cookie-consent-modal__acceptButton cookie-consent-modal__button button button--primary`,children:a?`Akkoord`:`Agree`})]})]})}function i$(){let e=window.umcuUseNewCookieConsent,t=document.location.hostname.startsWith(`preview`),n=$Q(navigator.userAgent),r=(window.localStorage.getItem(`consent`)==null||document.getConsentCookie()===void 0)&&e&&!t&&!n,i=window.umcuLocale;return(0,U.jsxs)(xA,{opened:r,size:`xl`,children:[(0,U.jsx)(`div`,{className:`cookie-consent-modal__logo`,children:(0,U.jsx)(ZQ,{})}),(0,U.jsx)(t$,{locale:i}),(0,U.jsx)(n$,{locale:i}),(0,U.jsx)(r$,{locale:i})]})}function a$(){let e=`data-accessible-submenu-tabindex`,t=(t,n)=>{t.querySelectorAll(`a[href], area[href], button, input, select, textarea, iframe, [tabindex], [contenteditable='true']`).forEach(t=>{if(n){if(!t.hasAttribute(e))return;let n=t.getAttribute(e)??``;n===``?t.removeAttribute(`tabindex`):t.setAttribute(`tabindex`,n
238),t.removeAttribute(e);return}let r=t.getAttribute(`tabindex`);t.setAttribute(e,r===null?``:r),t.setAttribute(`tabindex`,`-1`)})},n=document.querySelectorAll(`.design-v2 .accessible-navigation__navigation-link`),r=document.querySelector(`.design-v2 .accessible-header__menu-open-button`),i=document.querySelector(`.design-v2 .accessible-header__menu-close-button`),a=document.querySelector(`.design-v2 .accessible-header__search-mobile .accessible-header__search-link`),o=document.querySelector(`.design-v2 .accessible-header__search-web .accessible-header__search-link`),s=document.querySelector(`.design-v2 .accessible-navigation__submenu-search-container`),c=document.querySelector(`.design-v2 .accessible-navigation__header-search-container`),l=document.querySelector(`.design-v2 .accessible-navigation__navigation-items.left`),u=e=>{setTimeout(()=>{e.setAttribute(`aria-hidden`,`false`),e.removeAttribute(`inert`),t(e,!0)},300)},d=e=>{e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`inert`,``),t(e,!1)},f=()=>{n.forEach(e=>{e.setAttribute(`aria-expanded`,`false`)}),document.querySelectorAll(`.design-v2 .accessible-navigation--submenu`).forEach(e=>{d(e)})};document.addEventListener(`click`,e=>{let t=e.target;if(!t)return;let n=t.closest(`.design-v2 .accessible-header`),a=t.closest(`[data-portal]`);!n&&!a&&(f(),l==null||l.classList.remove(`is-open`),r==null||r.setAttribute(`aria-expanded`,`false`),s==null||s.setAttribute(`aria-expanded`,`false`),c==null||c.setAttribute(`aria-expanded`,`false`),i==null||i.setAttribute(`aria-hidden`,`true`),r==null||r.setAttribute(`aria-hidden`,`false`))}),r==null||r.addEventListener(`click`,()=>{l==null||l.classList.add(`is-open`),r==null||r.setAttribute(`aria-expanded`,`true`),i==null||i.setAttribute(`aria-hidden`,`false`),r==null||r.setAttribute(`aria-hidden`,`true`)}),i==null||i.addEventListener(`click`,()=>{l==null||l.classList.remove(`is-open`),r==null||r.setAttribute(`aria-expanded`,`false`),i==null||i.setAttribute(`aria-hidden`,`true`),r==null||r.setAttribute(`aria-hidden`,`false`)}),a==null||a.addEventListener(`click`,()=>{if(!s)return;let e=s.getAttribute(`aria-expanded`)===`true`;if(s.setAttribute(`aria-expanded`,e?`false`:`true`),!e){let e=s.querySelector(`input[type='search'], input[type='text']`);e==null||e.focus()}}),o==null||o.addEventListener(`click`,()=>{if(!c)return;let e=c.getAttribute(`aria-expanded`)===`true`;if(c.setAttribute(`aria-expanded`,e?`false`:`true`),!e){let e=c.querySelector(`input[type='search'], input[type='text']`);e==null||e.focus()}}),n.forEach(e=>{let t=e.nextElementSibling;!t||!t.classList.contains(`accessible-navigation--submenu`)||(d(t),e.setAttribute(`aria-expanded`,`false`),e.dataset.target===`Home`&&e.classList.add(`direct-link`),e.addEventListener(`click`,()=>{if(e.dataset.target===`Home`){window.location.href=`/`;return}let n=e.getAttribute(`aria-expanded`)===`true`;f(),!n&&(e.setAttribute(`aria-expanded`,`true`),u(t))}))}),document.addEventListener(`keydown`,e=>{e.target instanceof HTMLElement&&(e.target.tagName!==`INPUT`&&e.target.tagName!==`TEXTAREA`||e.key!==`Enter`)&&e.key===`Enter`&&(e.preventDefault(),e.target.click())})}var o$=`accessible-header`,s$=`accessible-header__background`,c$=`${o$}--visible`,l$=`${o$}--hidden`,u$=`${s$}--hidden`,d$=`${s$}--visible`;function f$(){let e=document.querySelector(`.${o$}`),t=document.querySelector(`.${s$}`),n=(e==null?void 0:e.offsetHeight)??0,r=0;window.addEventListener(`resize`,()=>{n=(e==null?void 0:e.offsetHeight)??0}),window.addEventListener(`scroll`,()=>{let i=window.scrollY;i>r&&i>n?(e==null||e.classList.remove(c$),e==null||e.classList.add(l$),t==null||t.classList.remove(d$),t==null||t.classList.add(u$)):(e==null||e.classList.remove(l$),e==null||e.classList.add(c$),t==null||t.classList.remove(u$),t==null||t.classList.add(d$)),r=i<=0?0:i})}var p$=`heading-alpha`;function m$(){let e=`.${p$}[data-mobile-title]`,t=window.matchMedia(`(min-width: 768px)`),n=t=>{document.querySelectorAll(e).forEach(e=>{if(t.matches){var n;let t=e.innerText.trim(),r=(n=e.getAttribute(`data-desktop-title`))==null?void 0:n.trim();r!=null&&r.trim().length&&(e.innerText=r,e.dataset.mobileTitle=t)}else{var r;let t=e.innerText.trim(),n=(r=e.getAttribute(`data-mobile-title`))==null?void 0:r.trim();n!=null&&n.trim().length&&(e.innerText=n,e.dataset.desktopTitle=t)}})};n(t),t.addEventListener(`change`,n)}var h$=og({defaultRadius:`sm`,headings:{sizes:{h1:{fontSize:`48px`,lineHeight:`54px`,fontWeight:`400`},h2:{fontSize:`24px`,lineHeight:`33px`,fontWeight:`400`},h3:{fontSize:`22px`,lineHeight:`28px`,fontWeight:`600`},h4:{fontSize:`20px`,lineHeight:`24px`,fontWeight:`700`},h5:{fontSize:`17px`,lineHeight:`27px`,fontWeight:`700`}}},fontSizes:{xs:`12px`,sm:`15px`,md:`17px`,lg:`20px`,xl:`30px`,xxl:`48px`},lineHeights:{xs:`20px`,sm:`24px`,md:`27px`,lg:`34px`,xl:`40px`,xxl:`54px`},primaryColor:`link`,colors:{primary:sh(`#1191fa`),corporate:sh(`#1961AB`),link:sh(`#1A21D5`),txt:sh(`#001021`),white:sh(`#FFFFFF`),secondary:sh(`#fc6039`),black:sh(`#001021`)},components:{Button:RT.extend({defaultProps:{radius:`xl`,size:`md`,autoContrast:!0,loaderProps:{type:`dots`}}}),Loader:Px.extend({defaultProps:{size:`xs`}}
238),Card:GT.extend({defaultProps:{shadow:`sm`,padding:`lg`,withBorder:!0,radius:`lg`}}),Popover:Ex.extend({defaultProps:{shadow:`sm`,width:300,withArrow:!0}}),LoadingOverlay:qE.extend({defaultProps:{overlayProps:{radius:`xl`,blur:8},loaderProps:{size:`xl`}}}),InputWrapper:FC.extend({defaultProps:{mt:`xs`}}),Modal:uD.extend({defaultProps:{centered:!0,closeButtonProps:{size:`xl`}}}),AppShell:bw.extend({defaultProps:{header:{height:80},navbar:{width:250,breakpoint:`sm`},footer:{height:80},padding:`md`}}),Switch:pO.extend({styles:{track:{backgroundColor:`white`,borderColor:`#A9A9A9`,height:24,width:50},thumb:{backgroundColor:`blue`,border:`none`}}})}}),g$=e=>{let t=Xh(e);return{...t,variables:{...t.variables,"--input-bd":e.colors.black[0],"--input-asterisk-color":e.colors.link[0]}}},_$=sg(h$,og({colors:{primary:sh(`#1191fa`)}})),v$=sg(h$,og({colors:{primary:sh(`#fc6039`)}})),y$={umcu:[_$,g$],wkz:[v$,g$]},b$=(0,g.createContext)({setTheme:e=>{},theme:`umcu`});function x$({children:e,defaultTheme:t}){let[n,r]=vm({key:`theme`,defaultValue:t}),[i,a]=y$[n];return(0,U.jsx)(ig,{theme:i,cssVariablesResolver:a,children:(0,U.jsx)(b$.Provider,{value:{setTheme:e=>{r(e)},theme:n},children:e})})}var S$=document.querySelector(`html`);S$.classList.add(`js`),S$.classList.remove(`no-js`);var C$=nc({});Ad(C$),(0,h.createRoot)(document.getElementById(`react-root`)).render((0,U.jsx)(Bn,{children:(0,U.jsx)(A,{store:C$,children:(0,U.jsx)(g.Suspense,{fallback:(0,U.jsx)(i,{spinning:!0}),children:(0,U.jsxs)(x$,{defaultTheme:`umcu`,children:[(0,U.jsx)(XQ,{reactRootElements:[...document.querySelectorAll(`.__react-root, .__react-append`)]}),(0,U.jsx)(i$,{})]})})})})),ic().enableTOC(),ac(),Mc(),Is(C$),Fs(C$),Ls(C$),Ac(),kd(),Pc(),Fc(),Nc(),Ic(),Lc(),Bc(),Vc(),Hc(),Uc(),$c(),el(),tl(),nl(),rl(),il(),ul(),wd(),Td(),Dd(),Od(),or(),f$(),a$(),ir(),m$();export{hH as t};
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.