PageSourceSearch

https://www.online-convert.com/build-legacy/1367.9812f035.js

js online-convert.com collected 2026-09-24 08:26:01 UTC 73,783 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="38e8a337-56f8-5f98-8d5e-f4a10cc59b5f")}catch(e){}}();
3(globalThis.webpackChunksat_monorepo=globalThis.webpackChunksat_monorepo||[]).push([[1367],{30046(e,t,i){var n={"./ar.js":82246,"./bn.js":52620,"./ca.js":85873,"./de.js":57393,"./el.js":52913,"./en.js":49080,"./es.js":53378,"./fil.js":78451,"./fr.js":1227,"./hi.js":56229,"./id.js":63324,"./it.js":48788,"./ja.js":28640,"./ko.js":94169,"./ms.js":36368,"./pl.js":37699,"./pt.js":78858,"./ru.js":99774,"./th.js":18519,"./tr.js":47108,"./uk.js":3700,"./ur.js":75337,"./vi.js":42422,"./yo.js":83416,"./zh.js":96462};function r(e){return o(e).then(e=>i(e))}function o(e){return i.e(344).then(()=>{if(!i.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]})}r.keys=()=>Object.keys(n),r.resolve=o,r.id=30046,e.exports=r},11367(e,t,i){"use strict";i(74423);var n=i(69271),r=i(25616),o=i(65244),s=i(38569),a=i(84166),u=i(87621),l=i(9644),p=i(15472),d=i(49972),c=i(3598);let f=!1;var h=i(76879),g=(i(50549),i(6699)),m=i(85189),_=i(49350),y=i(20548),v=i(84992),b=i(86492),w=i(39465),I=i(18882),S=i(74692),x=i(74692);const k=[/googlesyndication\.com/,/doubleclick\.net/,/\/tag\/js\/gpt\.js/,/\/beacon\.min\.js/,/\/gsi\/client/,/accounts\.google\.com\/gsi/],C=/[/@]sentry[/-]/;if("none"!==d.d.getSentryDSN()){let e="[email protected]";"SAT_VERSION undefined"===e&&(e="[email protected]"),n.Ts({dsn:d.d.getSentryDSN(),integrations:[r.f(),o.dp(),s.w({block:['iframe[src*="doubleclick"]','iframe[src*="googlesyndication"]','iframe[src*="safeframe"]',"iframe[sandbox]"]})],attachStacktrace:!0,tracePropagationTargets:["localhost","https://dragon."],release:e,environment:d.d.getSentryEnv(),tracesSampleRate:.01,profilesSampleRate:.01,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.1,ignoreErrors:["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"],denyUrls:k,beforeSend:(e,t)=>{const i=function(e,t){const i=t&&t.originalException;if(i&&"object"==typeof i){const e="AxiosError"===i.name&&("ERR_NETWORK"===i.code||"ECONNABORTED"===i.code||"ERR_CANCELED"===i.code)&&!i.response,t="string"==typeof i.message?i.message:"",n=/^(Network Error|Request aborted)$/.test(t)&&!i.response;if(e||n)return null}return e}(e,t),n=i?function(e){const t=e.exception&&e.exception.values||[];return t.length&&t.every(e=>{const t=e.mechanism||{},i=(e.stacktrace&&e.stacktrace.frames||[]).map(e=>e.filename||e.abs_path||"").filter(e=>e&&!C.test(e));return"onunhandledrejection"===t.type&&"Non-Error promise rejection captured with value: undefined"===e.value&&!i.length})?null:e}(i):null;return n?function(e){const t=(e.exception&&e.exception.values||[]).reduce((e,t)=>e.concat(t.stacktrace&&t.stacktrace.frames||[]),[]).map(e=>e.filename||e.abs_path||"").filter(e=>e&&!C.test(e));return t.length&&t.every(e=>k.some(t=>t.test(e)))?null:e}(n):null}})}function O(){if(("undefined"==typeof navigator||!1!==navigator.onLine)&&!1!==window.allowLeave){try{const e="qg_chunk_reload_at",t=parseInt(window.sessionStorage.getItem(e)||"0",10),i=Date.now();if(t&&i-t<3e4)return;window.sessionStorage.setItem(e,String(i))}catch(e){}window.location.reload()}}const U="qgretry=1",N=[];function j(e){return""!==e&&-1!==N.indexOf(e)}window.addEventListener("unhandledrejection",function(e){const t=e&&e.reason;(function(e){if(!e)return!1;const t="string"==typeof e.message?e.message:"";return"ChunkLoadError"===e.name||/Loading (CSS )?chunk \S+ failed/i.test(t)})(t)&&(j(function(e){const t=(e&&"string"==typeof e.message?e.message:"").match(/https?:\/\/[^\s)]+/);return t?t[0]:""}(t))||O())}),window.addEventListener("error",function(e){const t=e&&e.target;if(t&&("LINK"===t.tagName||"SCRIPT"===t.tagName)){const e=t.href||t.src||"";if(-1!==e.indexOf("/build-legacy")){if("LINK"===t.tagName&&function(e,t){if(""===e||-1!==e.indexOf(U)||j(e))return!1;N.push(e);const i=document.createElement("link");return i.rel="stylesheet",i.href=e+(-1===e.indexOf("?")?"?":"&")+U,t&&(i.media=t),document.head.appendChild(i),!0}(e,t.media))return;O()}}},!0),globalThis.$=globalThis.jQuery=S,i(44035),i(73029),i(36484),i(62453),i(61889),i(9635),i(18013),i(653),i(58647),window.satConnectionType="unknown",navigator.connection&&navigator.connection.effectiveType&&("4g"===navigator.connection.effectiveType?window.satConnectionType="fast":window.satConnectionType="slow"),a.A.defaults.headers.common.locale=sat.locale,S(document).ajaxSend(function(e,t,i){i.url.includes("dragon")&&t.setRequestHeader("locale",sat.locale)}),(0,v.S0)(),function(){if(f)return;f=!0;let e=null;try{e=new URLSearchParams(window.location.search).get("ref")}catch(e){return void c.q.log("referral capture: unreadable query string",e)}if(null===e||""===e)return;const t=d.d.getApiUrl("api/user");if(""!==t)try{fetch(t+"?ref="+encodeURIComponent(e),{method:"GET",credentials:"include"}).catch(function(e){c.q.log("referral capture failed",e)})}catch(e){c.q.log("referral capture failed",e)}}(),window.qgQueryFragmentHelper={getCurrentQueryData:l.W6,getCurrentFragmentData:l.Yv,getValueFromCurrentUrl:l.S$,getFragmentStringFromUrl:l.zI},window.qgCookieHelper=p.b4,window.satToken=u.Y,Promise.resolve().then(i.bind(i,65998)),Promise.resolve().then(i.bind(i,13947)),Promise.resolve().then(i.bind(i,98318)),Promise.resolve().then(i.bind(i,55105)),!0===window.QG_LIMIT_SYSTEM||((0,h.Hc)(),window.QG_LIMIT_SYSTEM=!0),void 0!==window.qgadconfig&&"Online-Convert"!==sat.project_name&&i.e(5621).then(i.bind(i,55621)).then(()=>{}),i(30046)(`./${sat.locale}.js`).then(function(){window.sat?.gb?.clientKey&&""!==window.sat.gb.clientKey&&Promise.all([i.e(6802),i.e(7146)]).then(i.bind(i,37146)).then(e=>{let{initializeGrowthBook:t}=e;t().then(()=>{Promise.all([i.e(6802),i.e(929)]).then(i.bind(i,83310)).catch(e=>{console.error("Failed to load all-tools-redirect module:",e)})}).catch(e=>{console.error("Failed to initialize GrowthBook:",e)})});const e=window.sat?.enableUserModalFlow;e?Promise.all([i.e(5974),i.e(378),i.e(4685),i.e(1863),i.e(1036),i.e(9743)]).then(i.bind(i,92110)).then(()=>{Promise.all([i.e(5974),i.e(378),i.e(4685),i.e(6802),i.e(5292),i.e(1863),i.e(1036),i.e(6903),i.e(5510)]).then(i.bind(i,73574))}):Promise.all([i.e(5974),i.e(378),i.e(4685),i.e(6802),i.e(5292),i.e(1863),i.e(1036),i.e(6903),i.e(5510)]).then(i.bind(i,73574)),Promise.all([i.e(5974),i.e(378),i.e(4685),i.e(6802),i.e(1863),i.e(1036),i.e(6903),i.e(2573)]).then(i.bind(i,18307)),Promise.all([i.e(2249),i.e(1997),i.e(7708)]).then(i.bind(i,85659)),Promise.all([i.e(5974),i.e(378),i.e(4685),i.e(6802),i.e(1863),i.e(1036),i.e(6903),i.e(1214),i.e(3197)]).then(i.bind(i,54725)),i.e(8951).then(i.bind(i,68951)),S(".footer-contact-us").on("click",()=>{Promise.all([i.e(5974),i.e(378),i.e(4685),i.e(1863),i.e(1036),i.e(4827),i.e(4644)]).then(i.bind(i,44166)).then(function(){setTimeout(()=>
3{g.B.emit(m.l)},100)})})}),w.x.getUserDataDeprecated().done(e=>{if(e.meData.extra.is_impersonated){let e=document.createElement("div");e.classList.add("sticky-top","alert","alert-danger","text-center","m-b-0"),e.innerHTML="ATTENTION: Impersonated user",document.body.prepend(e)}}),x.cachedScript=function(e,t){return t=S.extend(t||{},{dataType:"script",cache:!0,url:e}),x.ajax(t)},S("body").tooltip({selector:"[data-toggle=tooltip]",trigger:"hover"}),S(function(){S(document).on("click","[data-hide]",function(){return S(this).closest("."+S(this).attr("data-hide")).hide(),!1}),(0,b.Qi)(),window.satConnectionType&&qgLogger.log(`connection_${window.satConnectionType}`)});!function(){try{const e=(0,_.u)();if(!(0,y.gN)(e))return;S(".language-selector-link").each(function(t,i){const n=S(i),r=n.attr("href");-1===r.indexOf("#")&&n.attr("href",r+e)})}catch(e){}}(),window.onpageshow=function(e){e.persisted&&window.location.reload()},window.addEventListener("DOMContentLoaded",function(e){const t=document.querySelectorAll(".conversion-menu a");for(const e of t){const t=e.closest(".conversion-menu");t.style.cursor="pointer",t.addEventListener("click",function(t){const i=t.target&&"string"==typeof t.target.tagName?t.target.tagName.toLowerCase():"";["select","option"].includes(i)||(window.location.href=e.href)})}}),window.googlefc=window.googlefc||{},window.googlefc.ccpa=window.googlefc.ccpa||{},window.googlefc.callbackQueue=window.googlefc.callbackQueue||[],googlefc.controlledMessagingFunction=async e=>{let t=!1;try{t="true"===window.sessionStorage.getItem("PLAYWRIGHT")}catch(e){t=!1}t&&!window.satDevAds?e.proceed(!1):e.proceed(!0)},window.googlefc.callbackQueue.push({AD_BLOCK_DATA_READY:()=>{switch(googlefc.getAllowAdsStatus()){case googlefc.AllowAdsStatusEnum.ADS_NOT_ALLOWED:p.b4.setCookie("qg_consent",!0,31557600);break;case googlefc.AllowAdsStatusEnum.ADS_ALLOWED:break;case googlefc.AllowAdsStatusEnum.UNKNOWN:p.b4.setCookie("qg_consent_rejected",!1,1209600)}}}),document.addEventListener("DOMContentLoaded",function(){I.A.init()})},34504(e,t,i){"use strict";i.d(t,{Bn:()=>_,Cr:()=>f,El:()=>v,R1:()=>a,T0:()=>u,V5:()=>b,Yc:()=>g,Yl:()=>o,dT:()=>d,dz:()=>r,jl:()=>y,mV:()=>n,oo:()=>s,ph:()=>m,r3:()=>l,sb:()=>p,tW:()=>c,ww:()=>h});const n="api-error-broken-server-response",r="api-error-connection-problem",o="api-error-EXCEPTION",s="api-error-invalid-conversion-options",a="api-error-job-can-not-be-mofified",u="api-error-job-not-found",l="api-error-file-too-large",p="uploader-error-too-many-inputs",d="api-error-youtube-forbidden",c="api-error-payment-required",f="api-error-unexpected-job-status",h="api-error-too-many-retries",g="api-error-job-failed",m="api-error-unknown",_="api-error-not-implemented",y="api-error-job-cancel",v="api-error-url-too-long",b=[n,r,"api-error-try-reload",o,"api-error-invalid-api-key",s,a,u,l,p,d,"uploader-error-no-upload-server","api-error-overuse",c,f,h,g,m,_,v,y,"api-error-job-conversions-blocked"]},76879(e,t,i){"use strict";i.d(t,{Hc:()=>U,c8:()=>x,Ql:()=>k});i(74423);var n=i(84992),r=i(7474),o=i(16916),s=i(20548),a=i(89736),u=i(27373),l=i(3598),p=i(34504),d=i(82035),c=i(2698),f=i(66298),h=i(94327),g=i(6699),m=i(49347),_=i(34908),y=i(39476);const v=class{static async trackTaskLimitHit(e,t){const i=await _.N.getUser(),n=i.isActiveSubscription()&&i.getProducts().length>0?i.getProducts()[0].name.toLowerCase().replace(/\s+/g,"_"):"free",r={operation:t?.operation||"unknown",product:n,limit_type:e};(0,y.sx)("task_limit_hit",r,["limit"])}},b=new Set;function w(e){b.has(e)||(b.add(e),v.trackTaskLimitHit(e,globalThis.pageConfig))}let I=null;function S(e){(0,c.ys)(e);let t=[];return(0,s.m5)(e)&&e.forEach(e=>{(0,d.u)(e)&&t.push(u.q.createFromConstraintStatus(e))}),(0,s.Rp)(t)&&t.push(new u.q(a.nx)),t}function x(e){let t=S(e);t.forEach(e=>{w(e.type)}),I.limits.addLimitsUploaderEvent(t)}function k(){const e=new u.q(a.nx);w(e.type),I.limits.addLimitsUploaderEvent([e])}let C=!1;let O=!1;function U(){O?l.q.log("limits system initialized multiple times"):(O=!0,I=(0,n.sr)(),C||(C=!0,(0,m.watch)(()=>I.user.getUser,e=>{let t="unregistered";
3e.isRegistered()&&(t="registered"),e.isPremium()&&(t="premium"),e.isEducational()&&(t="educational");let i="qgrole="+t+"; max-age=86400; secure; path=/;";(0,s.UN)(window.sat.cookieDomain)&&(i+="domain="+window.sat.cookieDomain+";"),document.cookie=i})),function(){g.B.listen(r.Y3,e=>{if(e.event===r.h&&(0,s.m5)(e.data)){let t=S(e.data);t.forEach(e=>{w(e.type)}),I.limits.addLimitsUploaderEvent(t)}}),g.B.listen(r.Y3,e=>{let t=null;e.event===r.Mj&&(t=new u.q(a.ej),w(t.type)),g.B.emit("reemit-input-form-validation-fail",e)}),g.B.listen(r.Y3,e=>{e.event===r.Ts&&g.B.emit("reemit-input-form-validation-success",e)});let e=!1;g.B.listen(r.Y3,t=>{if(!(0,o.r3)(t.event))return;if(t.event!==r.Lb)return;const i=!0===globalThis.pageConfig?.singleFile,n=t.data,d=n.error;if(i&&d===p.sb)return;const c=globalThis.qgUploader?._config?.operation||"";if((c.includes("watermark")||c.includes("compare"))&&d===p.sb)return;let g=null;const m=I.job.getConstraints;if(d===p.dT){const t=(0,f.T)("Unfortunately, we are not authorized to download videos from this platform.");l.q.log("external url helper - add fail - youtube"),setTimeout(function(){e=!1},5e3),e||(h.x.warning(t),e=!0)}if(d===p.sb){g=new u.q(a.vu);const e=Number.parseInt(m?.job?.inputs?.max_count);(0,s.ym)(e)&&(1===e&&(g.type=a.qt),g.maxValue=e),w(g.type)}if(d===p.r3){g=new u.q(a.md),g.currentValue=n.size;const e=Number.parseInt(m?.job?.inputs?.max_size);(0,s.ym)(e)&&(g.maxValue=e),w(g.type)}if(null!==g){const e=[];e.push(g),I.limits.addLimitsUploaderEvent(e)}})}(),async function(){const e=(await _.N.getUser()).getRawMeData();let t=[];(0,s.m5)(e.constraints_status)&&e.constraints_status.forEach(e=>{t.push(u.q.createFromConstraintStatus(e))}),I.limits.addLimitsPageLoad(t)}())}},27373(e,t,i){"use strict";i.d(t,{q:()=>o});var n=i(89736),r=i(20548);class o{type=null;currentTtl=null;ttl=null;hit=null;ident=null;triggeredBy=null;constraintType=null;currentValue=null;maxValue=null;expiresAt=null;constructor(e){this.type=e}static createFromConstraintStatus(e){const t=new o;let i=n._j;return"conversion_option"===e.type?(i=n.mA,"ocr"===e.triggered_by&&(i=n.C$)):"conversion_operation"===e.type?(i=n.$W,(0,r.ym)(e.max_value)&&0===e.max_value&&(i=n.MT)):"concurrent_conversions"===e.type?i=n.JX:"rate_limit"===e.type?i=n.gl:"credits_consumed"===e.type?i=n.qO:"limit_job_conversions_blocked"===e.type?i=n.FI:"team_feature_disabled"===e.type&&(i=n.SX),t.type=i,t.constraintType=e.type,(0,r.gN)(e.ident)&&(t.ident=e.ident),(0,r.ym)(e.current_ttl)&&(t.currentTtl=e.current_ttl,e.current_ttl>0&&(t.expiresAt=Date.now()+e.current_ttl)),(0,r.ym)(e.ttl)&&(t.ttl=e.ttl),(0,r.ym)(e.current_value)&&(t.currentValue=e.current_value),(0,r.ym)(e.max_value)&&(t.maxValue=e.max_value),(0,r.gN)(e.triggered_by)&&(t.triggeredBy=e.triggered_by),(0,r.T)(e.hit)&&(t.hit=e.hit),t}}},98318(e,t,i){"use strict";var n=i(84283);let r=new class{constructor(){}async setAffiliate(e){return await n.X.post("/api/affiliate",e)}};var o=i(49972);!async function(){const e=window.location.hash,t=new URLSearchParams(e.slice(1)).get("fpr");if(t)try{await r.setAffiliate({fpr:t}),document.cookie="fpr="+encodeURIComponent(t)+"; max-age=31557600; secure; path=/;domain="+o.d.getCookieDomain()}catch(e){console.error("Affiliate tracking failed:",e)}}()},13947(e,t,i){"use strict";i.r(t);var n=i(66298),r=i(74692);r(document).on("click",".bookmark-btn",function(e){if(e.preventDefault(),window.sidebar&&window.sidebar.addPanel)window.sidebar.addPanel(document.title,window.location.href,"");else if(window.external&&"AddFavorite"in window.external)window.external.AddFavorite(location.href,document.title);else{if(window.opera&&window.print)return r(this).attr("rel","sidebar").attr("title",document.title).attr("href",window.location.href),!0;var t=(0,n.T)("You can add this page to your bookmarks by pressing %s + D on your keyboard.");t=t.replace("%s",-1!==navigator.userAgent.toLowerCase().indexOf("mac")?"Command/Cmd":"CTRL"),alert(t)}return!1})},86492(e,t,i){"use strict";i.d(t,{Qi:()=>o,z5:()=>r});var n=i(74692);function r(){n(".toggle-placeholder").each(function(e,t){const i=n(t),r=i.prop("placeholder");i.on("focus",function(){i.prop("placeholder","")}),i.on("blur",function(){i.prop("placeholder",r)})})}function o(){const e=n(".support-link");0!==e.length&&e.on("click",function(e){return e.preventDefault(),window.location=function(e,t){let i=0,n="";for(let t=0;t<e.length;t++)i=e.charCodeAt(t),i>=8364&&(i=128),n+=String.fromCharCode(i-1);return void 0!==t&&""!=t?n+t:n}(n(this).data("encrypted")),!1})}},55105(e,t,i){"use strict";i.r(t);var n=i(86496),r=i(49972);!function(){const e=new URLSearchParams(window.location.search).get("ref_code");e&&(document.cookie=n.Q.getProjectName().toLowerCase()+"_REFERRAL="+e+"; path=/; max-age=604800; secure; path=/;domain="+r.d.getCookieDomain())}()},68094(e,t,i){"use strict";i.d(t,{CP:()=>o,FO:()=>l,Fb:()=>p,Jg:()=>a,PT:()=>u,f8:()=>f,ft:()=>s,iF:()=>c,or:()=>d});var n=i(16916),r=i(87871),o=function(e){if(!(0,n.QJ)(e))throw new Error((0,r.q)("invalid raw 
3job object"))},s=function(e){if(!(0,n.Jr)(e))throw new Error((0,r.q)("invalid raw input info"))},a=function(e){if(!(0,n.d5)(e))throw new Error((0,r.q)("invalid input status (uploader)"))},u=function(e){if(!(0,n.dx)(e))throw new Error((0,r.q)("invalid input status (api)"))},l=function(e){if(!(0,n.j4)(e))throw new Error((0,r.q)("invalid input type"))},p=function(e){if(!(0,n.r3)(e))throw new Error((0,r.q)("invalid input event"))},d=function(e){if(!(0,n.mJ)(e))throw new Error((0,r.q)("invalid global event"))},c=function(e){if(!(0,n.OS)(e))throw new Error((0,r.q)("invalid fileuploadconfig"))},f=function(e){if(!(0,n.LH)(e))throw new Error((0,r.q)("invalid uploaderevent"))}},3956(e,t,i){"use strict";i.d(t,{E9:()=>O,Ep:()=>v,Fh:()=>_,Jg:()=>q,L5:()=>w,Nl:()=>l,QC:()=>I,R:()=>u,S3:()=>f,VE:()=>S,Wk:()=>b,Z4:()=>a,ZT:()=>m,_X:()=>s,_x:()=>E,cW:()=>d,gQ:()=>p,jB:()=>y,km:()=>g,ko:()=>N,nl:()=>C,nr:()=>k,oR:()=>j,pk:()=>r,tH:()=>o,um:()=>U,vN:()=>x,wF:()=>h,yb:()=>c});var n=i(68094),r="ready",o="failed",s="downloading",a="canceled",u=[r,o,s,a],l="input-status-queued",p="input-status-submitting-to-api",d="input-status-loading",c="input-status-done",f="input-status-setting-password",h="input-status-password-missing",g="input-status-deleting",m="input-status-deleted",_="input-status-failed",y=[l,p,d,c,f,h,g,m,_],v=function(e){return(0,n.Jg)(e),e!==l&&(e!==m&&e!==_)},b="type-external-url",w="type-upload",I="type-gdrive",S="type-onedrive",x="type-input-id",k="type-dropbox",C=[b,w,I,x,k,S],O="set-password-error-unknown-error",U="set-password-error-already-setting",N="set-password-error-wrong-password",j=3,q=6,E=34},7474(e,t,i){"use strict";i.d(t,{Bp:()=>k,G2:()=>l,KV:()=>d,L7:()=>r,Lb:()=>y,Mj:()=>C,Nc:()=>L,PH:()=>U,Rm:()=>v,Sj:()=>S,T9:()=>N,TL:()=>u,Ts:()=>O,Y3:()=>j,Zb:()=>m,aZ:()=>f,dz:()=>s,gK:()=>F,h:()=>a,i$:()=>x,jx:()=>I,q8:()=>h,qs:()=>c,rB:()=>g,rG:()=>b,ry:()=>w,tU:()=>_,uT:()=>E,vE:()=>o,xj:()=>q});var n=i(16916);const r="global-event-job-create-start",o="global-event-job-create-done",s="global-event-job-create-fail",a="global-event-job-create-payment-required",u="global-event-too-many-inputs",l="global-event-input-too-large",p="global-event-job-too-large",d="global-event-youtube-forbidden",c="new-cost-event",f=[r,o,s,a,u,l,p,d,c],h="input-event-queued",g="input-event-start-submitting",m="input-event-start-loading",_="input-event-done",y="input-event-fail",v="input-event-setting-password",b="input-event-password-missing",w="input-event-upload-canceled",I="input-event-deleting",S="input-event-deleted",x="input-event-upload-progress",k="input-event-update-status",C="input-event-form-validation-fail",O="input-event-form-validation-success",U=[h,g,m,_,y,v,b,w,I,S,x,k,C,O];class N{constructor(e){if(!(0,n.r3)(e)&&!(0,n.mJ)(e))throw new Error("this is not a valid uploader event: "+e);this.event=e,this.localId=null,this.data=null}}const j="uploader-event",q="hide-options-event",E="show-options-event",F="stop-auto-start-upload",L="auto-start-upload-stopped"},59536(e,t,i){"use strict";i.d(t,{I:()=>u});var n=i(2698),r=i(16916),o=i(3598),s=i(3956),a=i(74692);function u(e){this._isValid=!0,this._data={},this._inputs={},(0,r.QJ)(e)?this._data=e:this._isValid=!1}u.prototype.isValid=function(){return this._isValid},u.prototype.getId=function(){return(0,n.jO)(this._isValid),this._data.id},u.prototype.getConversionId=function(){(0,n.jO)(this._isValid);try{return this._data.conversion[0].id}catch(e){}return null},u.prototype.getConversionTarget=function(){(0,n.jO)(this._isValid);try{return this._data.conversion[0].target}catch(e){}return null},u.prototype.getToken=function(){return(0,n.jO)(this._isValid),this._data.token},u.prototype.getServer=function(){return(0,n.jO)(this._isValid),this._data.server},u.prototype.getUploadUrl=function(){return(0,n.jO)(this._isValid),this.getServer()+"/upload-file/"+this.getId()},u.prototype.getUploadUrlBase64=function(){return(0,n.jO)(this._isValid),this.getServer()+"/upload-base64/"+this.getId()},u.prototype.getFallbackUploadUrl=function(){(0,n.jO)(this._isValid);var e=this.getServer().match(/^[^:]*:\/\/([^.]+)\.([^\/]+)(\/.*)$/);if(null===e)return o.q.error("Can not create fallback upload url",this.get
3Server()),this.getUploadUrl();var t=e[1],i=e[3];return function(){var e=window.location;return e.origin?e.origin:e.protocol+"//"+e.hostname+(e.port&&":"+e.port)}()+"/upload-redirect/"+t+i+"/upload-file/"+this.getId()},u.prototype.getInput=function(e){(0,n.jO)(this._isValid),(0,n.U7)(e);var t=null;return a.each(this._data.input,function(i,n){n.id===e&&(t=n)}),t},u.prototype.getInputs=function(){return(0,n.jO)(this._isValid),this._data.input},u.prototype.getInputError=function(e){(0,n.jO)(this._isValid),(0,n.U7)(e);var t=null;return a.each(this._data.errors,function(i,n){n.hasOwnProperty("id_source")&&n.id_source===e&&(t=n)}),t},u.prototype.getInputWarning=function(e){(0,n.jO)(this._isValid),(0,n.U7)(e);var t=null;return a.each(this._data.warnings,function(i,n){n.hasOwnProperty("id_source")&&n.id_source===e&&(t=n)}),t},u.prototype.isInputReady=function(e){return(0,n.jO)(this._isValid),(0,n.U7)(e),this.getInput(e).status===s.pk},u.prototype.isInputDownloading=function(e){return(0,n.jO)(this._isValid),(0,n.U7)(e),this.getInput(e).status===s._X},u.prototype.getRawJobInfo=function(){return(0,n.jO)(this._isValid),this._data}},16916(e,t,i){"use strict";i.d(t,{Jr:()=>a,LH:()=>g,OS:()=>h,QJ:()=>s,d5:()=>l,dx:()=>p,eq:()=>u,j4:()=>d,mJ:()=>c,r3:()=>f});i(74423);var n=i(20548),r=i(3956),o=i(7474);i(93208);function s(e){return!!(0,n.Q2)(e)&&(!!(0,n.y9)(e.id)&&(!!(0,n.gN)(e.server)&&(!!(0,n.gN)(e.token)&&!!(0,n.m5)(e.conversion))))}function a(e){return!!(0,n.Q2)(e)&&(!!(0,n.y9)(e.id)&&(!!(0,n.UN)(e.source)&&(!!(0,n.gN)(e.type)&&(!!(0,n.Q2)(e.metadata)&&!(!(0,n.UN)(e.status)||!p(e.status))))))}function u(e){return!!(0,n.Q2)(e)&&(!!(0,n.bV)(e,"id")&&(!!(0,n.y9)(e.id.job)&&(!!(0,n.y9)(e.id.input)&&(!!(0,n.Q2)(e.metadata)&&!!(0,n.T)(e.completed)))))}function l(e){return!!(0,n.gN)(e)&&(0,n.eA)(r.jB,e)}function p(e){return!!(0,n.gN)(e)&&(0,n.eA)(r.R,e)}function d(e){return!!(0,n.gN)(e)&&(0,n.eA)(r.nl,e)}function c(e){return!!(0,n.gN)(e)&&(0,n.eA)(o.aZ,e)}function f(e){return!!(0,n.gN)(e)&&(0,n.eA)(o.PH,e)}function h(e){return!!(0,n.Q2)(e)&&((0,n.bV)(e,"fileUploadInputId")&&(0,n.bV)(e,"maxFileSize"))}function g(e){return e instanceof o.T9}},93208(e,t,i){"use strict";i.d(t,{P:()=>se,d:()=>ae});i(74423);var n=i(68094),r=i(2698),o=i(20548),s=i(3598),a=i(3956);function u(e){(0,n.FO)(e),this._type=e,this._name="",this._callback=null,this._localId=null,this._size=null,this._inputId=null,this._status=a.Nl,this._metadata=null,this._content_type=null,this._engine=null,this._source=null,this._uploadData=null}u.prototype.getType=function(){return(0,n.FO)(this._type),this._type},u.prototype.getLocalId=function(){return this._localId},u.prototype.setMetadata=function(e){return this._metadata=e,this},u.prototype.getMetadata=function(){return this._metadata},u.prototype.setContentType=function(e){return this._content_type=e,this},u.prototype.getContentType=function(){return this._content_type},u.prototype.setEngine=function(e){return this._engine=e,this},u.prototype.getEngine=function(){return this._engine},u.prototype.setSource=function(e){return this._source=e,this},u.prototype.getSource=function(){return this._source},u.prototype.setLocalId=function(e){return(0,r.Ye)(e),(0,r.jO)(e>=0),this._localId=e,this},u.prototype.getCallback=function(){return this._callback},u.prototype.setCallback=function(e){return(0,r.XY)(e),this._callback=e,this},u.prototype.getName=function(){return this._name},u.prototype.setName=function(e){return(0,r.cI)(e),this._name=e,this},u.prototype.getSize=function(){return this._size},u.prototype.setSize=function(e){return(0,r.Ye)(e),(0,r.jO)(e>=0),this._size=e,this},u.prototype.getInputId=function(){return this._inputId},u.prototype.setInputId=function(e){return(0,r.U7)(e),this._inputId=e,this},u.prototype.getStatus=function(){return this._status},u.prototype.setStatus=function(e){return(0,n.Jg)(e),this._status=e,this},u.prototype.setUploadData=function(e){return(0,r.jO)(this._type===a.L5),this._uploadData=e,this},u.prototype.getUploadData=function(){return(0,r.jO)(this._type===a.L5),(0,r.jf)(this._uploadData),this._uploadData},u.prototype.isInApi=function(){return(0,a.Ep)(this._status)},u.prototype.isQueued=function(){return this._status===a.Nl},u.prototype.isFailed=function(){return this._status===a.Fh},u.prototype.isDeleted=function(){return this._status===a.ZT},u.prototype.isSubmitting=function(){return this._status===a.gQ},u.prototype.isLoading=function(){return this._status===a.cW},u.prototype.isDone=function(){return this._status===a.yb},u.prototype.isPasswordMissing=function(){return this._status===a.wF},u.prototype.isDeleting=function(){return this._status===a.km},u.prototype.isFileUploading=function(){return this._type===a.L5&&this._status===a.cW},u.prototype.isRemoteInputDownloading=function(){return this._type!==a.L5&&this._status===a.cW};var l=i(59536),p=i(38595),d=i(74692);function c(e,t){(0,o.Q2)(t)||(t={}),this._api=e,this._jobInfoHelper=null,this._isJobCreationFailed=!1,this._isCreating=!1,this._isUploadServerReachable=!0}c.prototype.reset=function(){(0,r.gM)(this._isCreating),this._jobInfoHelper=null,this._isJobCreationFailed=!1,this._isCreating=!1,this._isUploadServerReachable=!0},c.prototype.initFromExistingJob=function(e){(0,r.SN)(this._jobInfoHelper),(0,r.gM)(this._isCreating),(0,r.U7)(e),this.reset();var t=d.Deferred(),i=this;return i._isCreating=!0,this._api.getJobInfo(e).done(function(e){i._jobInfoHelper=new l.I(e),t.resolve(e),i._isCreating=!1}).fail(function(e){i._isJobCreationFailed=!0,t.reject(e),i._isCreating=!1}),t},c.prototype.create=function(e){(0,r.SN)(this._jobInfoHelper),(0,r.gM)(this._isCreating),this.reset();var t=d.Deferred(),i=this;return i._isCreating=!0,this._api.createJob(e).done(function(e){i._jobInfoHelper=new l.I(e),t.resolve(e),i._isCreating=!1}).fail(function(e){(0,p.L)(e),i._isJobCreationFailed=!0,t.reject(e),i._isCreating=!1}),t},c.prototype.createWithServerCheck=function(e){(0,r.SN)(this._jobInfoHelper),(0,r.gM)(this._isCreating),this.reset();var t=d.Deferred(),i=this;return i._isCreating=!0,this._api.createJobWithUploadServerCheck(e,2).done(function(e,n){i._jobInfoHelper=new l.I(e),i._isCreating=!1,i._isUploadServerReachable=n,t.resolve(e)}).fail(function(e,n){(0,p.L)(e),i._isJobCreationFailed=!0,i._isCreating=!1,t.reject(e,n)}),t},c.prototype.isCreated=function(){return null!==this._jobInfoHelper},c.prototype.isCreating=function(){return this._isCreating},c.prototype.isFailed=function(){return this._isJobCreationFailed},c.prototype.isUploadServerReachable=function(){return this._isUploadServerReachable},c.prototype.getId=function(){return(0,r.gM)(this._isJobCreationFailed),null===this._jobInfoHelper?null:this._jobInfoHelper.getId()},c.prototype.getConversionId=function(){return(0,r.gM)(this._isJobCreationFailed),this._jobInfoHelper.getConversionId()},c.prototype.getConversionTarget=function(){return(0,r.gM)(this._isJobCreationFailed),this._jobInfoHelper.getConversionTarget()},c.prototype.getUploadToken=function(){return(0,r.gM)(this._isJobCreationFailed),this._jobInfoHelper.getToken()},c.prototype.getServerUrl=function(){return(0,r.gM)(this._isJobCreationFailed),this._jobInfoHelper.getServer()},c.prototype.getUploadUrl=function(){return(0,r.gM)(this._isJobCreationFailed),this._jobInfoHelper.getUploadUrl(
3)},c.prototype.getFallbackUploadUrl=function(){return(0,r.gM)(this._isJobCreationFailed),this._jobInfoHelper.getFallbackUploadUrl()},c.prototype.getJobInfo=function(){(0,r.gM)(this._isJobCreationFailed),(0,r.jf)(this._jobInfoHelper);var e=d.Deferred(),t=this;return this._api.getJobInfo(t.getId()).done(function(i){(0,n.CP)(i),t._jobInfoHelper=new l.I(i),e.resolve(i)}).fail(function(t){(0,p.L)(t),e.reject(t)}),e},c.prototype.getCachedJobInfo=function(){(0,r.gM)(this._isJobCreationFailed),(0,r.jf)(this._jobInfoHelper);var e=d.Deferred(),t=this;return this._api.getCachedJobInfo(t.getId()).done(function(i){(0,n.CP)(i),t._jobInfoHelper=new l.I(i),e.resolve(i)}).fail(function(t){(0,p.L)(t),e.reject(t)}),e},c.prototype.getRawJobInfo=function(){return(0,r.gM)(this._isJobCreationFailed),this._jobInfoHelper.getRawJobInfo()},c.prototype.waitForRemoteInput=function(e){var t=this._jobInfoHelper.getId();return this._api.waitForRemoteInput(t,e)};var f=i(74692),h=function(e,t){(0,r.ys)(e),(0,r.XY)(t);var i=0;return f.each(e,function(e,n){t(n)&&i++}),i};function g(e){this._inputs=[],this._maxNumberOfInputs=60,e.hasOwnProperty("maxNumberOfInputs")&&(this._maxNumberOfInputs=e.maxNumberOfInputs)}g.prototype._assertThatInputExists=function(e){(0,r._m)(this._inputs,e)},g.prototype.hasInput=function(e){return"number"==typeof e&&this._inputs.hasOwnProperty(e)},g.prototype.getInput=function(e){return(0,r.Ye)(e),this._assertThatInputExists(e),this._inputs[e]},g.prototype.getInputsInApi=function(){if(0===this._inputs.length)return[];let e=[];return this._inputs.forEach(function(t){t.isInApi()&&e.push(t)}),e},g.prototype.getInputs=function(){return this._inputs},g.prototype.getNumberOfAllValidInputs=function(){if(0===this._inputs.length)return 0;let e=[];return this._inputs.forEach(function(t){(t.isDeleted()||t.isFailed())&&e.push(t)}),this.getNumberOfAllInputs()-e.length},g.prototype.addInput=function(e){var t=this._inputs.length;return e.setLocalId(t),this._inputs.push(e),t},g.prototype.isInputLimitReached=function(){var e=this.getNumberOfInputsInApi();return(0,r.gM)(e>this._maxNumberOfInputs),e>=this._maxNumberOfInputs},g.prototype.getNumberOfAllInputs=function(){return this._inputs.length},g.prototype.getNumberOfQueuedInputs=function(){return h(this._inputs,function(e){return e.isQueued()})},g.prototype.getNumberOfInputsInApi=function(){return h(this._inputs,function(e){return e.isInApi()})},g.prototype.getNumberOfDoneInputs=function(){return h(this._inputs,function(e){return e.isDone()})},g.prototype.getNumberOfDeletingInputs=function(){return h(this._inputs,function(e){return e.isDeleting()})},g.prototype.getNumberOfActiveFileUploads=function(){return h(this._inputs,function(e){return e.isFileUploading()})},g.prototype.getNumberOfSubmittingInputs=function(){return h(this._inputs,function(e){return e.isSubmitting()})},g.prototype.getNumberOfLoadingInputs=function(){return h(this._inputs,function(e){return e.isLoading()})},g.prototype.getNumberOfActiveRemoteInputsDownloading=function(){return h(this._inputs,function(e){return e.isRemoteInputDownloading()})},g.prototype.getNumberOfRemoteInputsForEngineCheck=function(){return h(this._inputs,function(e){return e.getType()===a.Wk&&(e.isLoading()||e.isQueued()||e.isSubmitting())})},g.prototype.getNumberOfPasswordMissing=function(){return h(this._inputs,function(e){return[a.wF,a.S3].includes(e.getStatus())})},g.prototype.getBytesInJob=function(){var e=0;return f.each(this._inputs,function(t,i){(i.isLoading()||i.isDone()||i.isPasswordMissing())&&(e+=i.getSize())}),e},g.prototype.getSizeOfAllInputs=function(){let e=0;return f.each(this._inputs,function(t,i){e+=i.getSize()}),e};var m=i(7474),_=i(34504),y=i(74692);class v{constructor(e){this._uploader=e}add(e,t){(0,r.cI)(e),(0,o.h7)(t)&&(t="auto"),e=e.trim();var i=this._uploader,s=new u(a.Wk);s.setName(e).setCallback(function(r){var o=y.Deferred(),s=i.getJob().getId();if(i.getInput(r).setStatus(a.gQ),i.getInput(r).setName(e),i.dispatchInputEvent(m.rB,r),0===e.length){var u=new se(_.ph);return i.failInput(r,u),o.resolve(),o}if(e.length>4e3){const e=new se(_.El);return i.failInput(r,e),o.resolve(),o}return i.getApiHelper().addExternalUrl(s,e,t).done(function(e){(0,n.ft)(e);var t=e.id;i.getInput(r).setInputId(t),i.getInput(r).setStatus(a.cW),i.dispatchInputEvent(m.Zb,r),i.waitForRemoteInput(r),o.resolve()}).fail(function(e){(0,p.L)(e);var t=new se(e);i.failInput(r,t),o.resolve()}),o}),this._uploader._queueInput(s)}click(e,t){this.add(e,t)}}var b=i(66298),w=i(74692);function I(){this.maxFileSize=8589934592}class S{constructor(e,t){this._uploader=e,this._config=new I,(0,o.Q2)(t)&&(0,o.bV)(t,"maxFileSize")&&(this._config=t),this._scriptLoaded=!1}add(){if(!window.hasOwnProperty("Dropbox"))return s.q.log("qgMultiUpload dropbox fail","dropbox JS missing"),void alert((0,b.T)("Dropbox could not be initialized, please try again later!"));var e=this._uploader,t=this._config,i=function(i,r,o){var l=new u(a.nr);l.setName(o).setSize(r).setCallback(function(u){var l=w.Deferred();
3e.getInput(u).setName(o),e.getInput(u).setSize(r);var d=e.getBytesInJob()+r;if(d>t.maxFileSize){var c=new se(_.r3);return c.size=d,s.q.log("qgMultiUpload dropbox fail",{info:"file too large",filename:o,file_size:r,max_file_size:t.maxFileSize}),e.failInput(u,c),e.dispatchGlobalEvent(m.G2),l.resolve()}var f=e.getJob().getId();return e.getInput(u).setStatus(a.gQ),e.dispatchInputEvent(m.rB,u),e.getApiHelper().addExternalUrl(f,i).done(function(t){(0,n.ft)(t);var i=t.id;e.getInput(u).setInputId(i),e.getInput(u).setStatus(a.cW),e.dispatchInputEvent(m.Zb,u),e.waitForRemoteInput(u),l.resolve()}).fail(function(t){(0,p.L)(t);var i=new se(t);e.failInput(u,i),l.resolve()}),l}),e._queueInput(l)},r={success:function(e){w.each(e,function(e,t){var n=t.link,r=0,o="Dropbox";t.hasOwnProperty("bytes")&&"number"==typeof t.bytes&&(r=t.bytes),t.hasOwnProperty("name")&&(o=t.name),i(n,r,o)})},linkType:"direct",multiselect:!0};Dropbox.choose(r)}click(){const e=()=>{this._scriptLoaded=!0,this.add()};this._scriptLoaded?e():function(e){(0,r.XY)(e),function(){var t=document.createElement("script");t.type="text/javascript",t.setAttribute("data-app-key",window.pageConfig.dropboxKey),t.src="https://www.dropbox.com/static/api/2/dropins.js",t.id="dropboxjs",t.onload=e;let i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(t,i)}()}(e)}}var x=i(34908),k=i(76879),C=i(53209),O=i(6699),U=i(88544);function N(e){this._maxRetries=20,this._maxTimeOut_s=10,"number"==typeof e&&(this._maxRetries=e),this._currentRetry=0,this._sucessfulChunks=0,this._failedChunks=0}N.prototype.getCurrentRetry=function(){return this._currentRetry},N.prototype.getSuccessfullChunks=function(){return this._sucessfulChunks},N.prototype.getFailedChunks=function(){return this._failedChunks},N.prototype.handleChunkSuccess=function(){this._currentRetry=0,this._sucessfulChunks++},N.prototype.handleChunkFail=function(){this._currentRetry++,this._failedChunks++},N.prototype.isAllowedToRetry=function(){return this._currentRetry<=this._maxRetries},N.prototype.getTimeOutForNextChunk_s=function(){var e=2*this._currentRetry;return e>this._maxTimeOut_s?this._maxTimeOut_s:e},N.prototype.getTimeOutForNextChunk_ms=function(){return 1e3*this.getTimeOutForNextChunk_s()};var j=i(49972),q=i(53237);let E="unknown";navigator.connection&&navigator.connection.effectiveType&&(E="4g"===navigator.connection.effectiveType?"fast":"slow");let F=(0,q.Fr)();function L(e){var t=null,i=null,n=null;try{(0,o.gN)(e.files[0].name)&&(t=e.files[0].name)}catch(e){}try{(0,o.ym)(e.files[0].size)&&(i=e.files[0].size)}catch(e){}try{(0,o.ym)(e.files[0].lastModified)&&(n=e.files[0].lastModified)}catch(e){}if(t!==e.pgInitialName||i!==e.pgInitialSize){var r="name initial: "+e.pgInitialName+" name now: "+t+" size initial: "+e.pgInitialSize+" size now: "+i+" last modified now: "+n;s.q.log("qgMultiUpload fileUpload info - file data changed",{info:r})}}function z(e){!function(e,t,i){try{let n=j.d.getApiUrl("api/z"),r={message:e.toLowerCase(),value:t,origin:[location.pathname].join(""),connection_type:E,mobile:F,...i},o=JSON.stringify({data:r}),a=new Blob([o],{type:"text/plain"});if(navigator.sendBeacon&&navigator.sendBeacon(n,a))return;fetch(n,{body:o,method:"POST",keepalive:!0}).catch(e=>{s.q.log("analytics beacon send failed",e&&e.message?e.message:String(e))})}catch(e){s.q.log("exception while sending analytics",e)}}("chunkinfo",0,e)}function T(){this._baseChunkSize=1e6,this._minChunkSize=1e5,this._maxChunkSize=1e8,this._speedModifier=3,this._maxSpeedModifier=5,this._currentChunkSize=-1,this._currentBitRate=-1,this._currentSpeedModifier=-1}T.prototype.increaseChunkSpeed=function(){this._limitSpeed(++this._speedModifier)},T.prototype.resetChunkSpeed=function(){this._speedModifier=1},T.prototype.getDynamicChunkSize=function(e){this._currentChunkSize=this._baseChunkSize,this._currentBitRate=-1,this._currentSpeedModifier=-1;try{var t=e.progress();if(t.loaded<this._baseChunkSize){var i=this._baseChunkSize;return e.pgRetryHandler.getCurrentRetry()>0&&(i=this._minChunkSize),this._currentChunkSize=i,i}if(1===this._speedModifier)return this._currentChunkSize=this._minChunkSize,this._minChunkSize;this._currentBitRate=parseInt(t.bitrate),this._currentSpeedModifier=this._speedModifier;var n=this._currentBitRate*this._speedModifier;this._currentChunkSize=this._limitChunk(n)}catch(e){}return this._currentChunkSize},T.prototype.setmaxChunkSize=function(e){this._maxChunkSize=e},T.prototype.getCurrentChunkSize=function(){return this._currentChunkSize},T.prototype.getCurrentBitRate=function(){return this._currentBitRate},T.prototype.getCurrentSpeedModifier=function(){return this._currentSpeedModifier},T.prototype._limitChunk=function(e){return Math.max(this._minChunkSize,Math.min(e,this._maxChunkSize))},T.prototype._limitSpeed=function(e){this._speedModifier=Math.max(1,Math.min(e,this._maxSpeedModifier))};var R=i(64537);var H=i(16916),M=i(74692);function D(e){return-1!==e.toLowerCase().indexOf("/upload-redirect/")}function A(){this.maxFileSize=8589934592,this.enablePasswords=!0,this.enableUploadFallback=!1,this.fileUploadInputId="#fileUploadInput"}function P(e,t){(0,n.iF)(t),this._config=t,this._uploader=e,this._dynamicChunkHandler=new T,(0,r.yN)(this._config.fileUploadInputId);var i=M(this._config.fileUploadInputId).length;(0,r.jO)(1===i,'expected exactly 1 file upload input for selector "'+this._config.fileUploadInputId+'", found '+i);var a=this;var u={singleFileUploads:!0,sequentialUploads:!1,maxChunkSize:function(e){return a._dynamicChunkHandler.getDynamicChunkSize(e)},autoUpload:!1,progressInterval:500,messages:{unknownError:"Unknown error",maxNumberOfFiles:"Maximum number of files exceeded",acceptFileTypes:"File type not allowed",maxFileSize:"File is too large",minFileSize:"File is too small",uploadedBytes:"Uploaded bytes exceed file size"}},l=M(this._config.fileUploadInputId),p=l.fileupload(u);p.on("fileuploadadd",function(e,t){const i=x.N.getCurrentUserFromStore(),n=i?.getRawMeData()?.bank?.account_to_charge?.ttl_until_renewal;i&&!1===i.isLegacySubscription()&&0===i.getAvailableCredits()?(0,k.c8)([{current_ttl:n,ttl:n,ident:"credits_consumed",type:"credits_consumed",hit:!0}]):!window.pageConfig||"mirror"!==window.pageConfig.target||i&&!1!==i.isRegistered()?a._processFileUploadAdd(e,t):O.B.emit("show-auth-required-view")}),window.addEventListener("paste",e=>
3{if(!document.body.contains(l[0]))return;const t=e?.clipboardData?.files;t.length<1||Array.from(t).forEach(e=>{(0,o.N5)(e.type)?s.q.log("uploader - copy paste upload - failed",e):(p.fileupload("add",{files:e}),s.q.log("uploader - copy paste upload - success"))})}),p.on("fileuploadsubmit",function(e,t){a._processFileUploadSubmit(e,t)}),p.on("fileuploaddone",function(e,t){a._processFileUploadChunk(e,t),a._processFileUploadDone(e,t)}),p.on("fileuploadfail",function(e,t){a._processFileUploadChunk(e,t),a._processFileUploadFail(e,t)}),p.on("fileuploadprogress",function(e,t){a._processFileUploadProgress(e,t)}),p.on("fileuploadchunkdone",function(e,t){a._processFileUploadChunk(e,t),t.pgRetryHandler.handleChunkSuccess(),a._dynamicChunkHandler.increaseChunkSpeed()})}P.prototype._processFileUploadAdd=function(e,t){var i="file";try{(0,o.gN)(t.files[0].name)&&(i=t.files[0].name)}catch(e){}t.pgInitialName=i;try{!function(e){if(!e||"string"!=typeof e.name||""===e.name)return;const t=(0,R.oN)(e.name);t!==e.name&&(e.uploadName=t)}(t.files[0])}catch(e){}var n=0;try{(0,o.ym)(t.files[0].size)&&(n=t.files[0].size)}catch(e){}t.pgInitialSize=n;var r=0;try{(0,o.ym)(t.files[0].lastModified)&&(r=t.files[0].lastModified)}catch(e){}if("file"===i||0===n)try{var l="name: "+i+" size: "+n;s.q.log("qgMultiUpload fileUpload info incorrect file data",l)}catch(e){}var p=this._uploader,d=this._config,c=new u(a.L5);c.setCallback(function(e){var o=M.Deferred();p.getInput(e).setName(i),p.getInput(e).setSize(n);var u=p.getBytesInJob()+n;if(u>p._maxFileSize){s.q.log("qgMultiUpload fileUpload fail file too large",{info:"file too large",filename:i,total_size:u,file_size:n,max_file_size:d.maxFileSize});var l=new se(_.r3);return l.size=u,p.failInput(e,l),p.dispatchGlobalEvent(m.G2),o.resolve()}var c=p.getJob();t.url=c.getUploadUrl(),t.pgLocalId=e,p.getInput(e).setStatus(a.cW),p.dispatchInputEvent(m.Zb,e),t.headers={"X-Oc-Upload-Uuid":(0,C.C)(),"X-Oc-Token":p.getJob().getUploadToken()},t.pgRetryHandler=new N;var f="file name: "+i+" file size: "+n+" file last modified: "+r;return s.q.log("qgMultiUpload fileUpload start",{info:f}),t.submit(),o.resolve(),o}).setSize(n).setName(i).setUploadData(t),p._queueInput(c)},P.prototype._processFileUploadSubmit=function(e,t){return!0},P.prototype._processFileUploadDone=function(e,t){if("string"==typeof t.result){s.q.log("qgMultiUpload fileUpload info",{info:"sever response was not parsed by browser",server_response:JSON.stringify(t.result)});try{t.result=JSON.parse(t.result)}catch(e){s.q.log("qgMultiUpload fileUpload fail",{info:"server response could not be parsed as JSON",server_response:JSON.stringify(t.result)})}}var i=t.result;if(!(0,H.eq)(i))return s.q.log("qgMultiUpload fileUpload fail - invalid response",{info:"response: "+JSON.stringify(i)}),void this._uploader.failInput(t.pgLocalId);if(!0!==i.completed)return s.q.log("qgMultiUpload fileUpload fail - not completed",{info:"response: "+JSON.stringify(i)}),void this._uploader.failInput(t.pgLocalId);var n=t.pgLocalId,r=i.id.input;if(this._uploader.hasInput(n)){this._uploader.getInput(n).setInputId(r);var u=t.files[0].name,l=t.files[0].size;this._uploader.getInput(n).setName(u),this._uploader.getInput(n).setSize(l),(0,o.Q2)(i.metadata)&&this._uploader.getInput(n).setMetadata(i.metadata);var p=(0,U.e)(i.metadata);this._config.enablePasswords&&p?(this._uploader.getInput(n).setStatus(a.wF),this._uploader.dispatchInputEvent(m.rG,n)):(this._uploader.getInput(n).setStatus(a.yb),this._uploader.dispatchInputEvent(m.tU,n)),t.pgRetryHandler.getFailedChunks()>0&&s.q.log("qgMultiUpload fileUpload info",{info:"upload needed retries",input_id:r,filename:u});var d="file name: "+u+" file size: "+l;D(t.url)&&(d+=" use upload fallback: true",s.q.log("qgMultiUpload fileUpload with fallback done")),s.q.log("qgMultiUpload fileUpload done",{input_id:r,info:d})}else s.q.log("qgMultiUpload fileUpload done for a removed input",n)},P.prototype._processFileUploadFail=function(e,t){if(t.pgCurrentBitrate=this._dynamicChunkHandler.getCurrentBitRate(),t.pgCurrentChunkSize=this._dynamicChunkHandler.getCurrentChunkSize(),t.pgCurrentSpeedModifier=this._dynamicChunkHandler.getCurrentSpeedModifier(),this._dynamicChunkHandler.resetChunkSpeed(),t.pgRetryHandler.handleChunkFail(),"abort"!==t.errorThrown){var i=!1;try{i="object"==typeof t.jqXHR.responseJSON}catch(d){}var n=null;try{n=t.jqXHR.responseJSON.error_code}catch(c){}var r=n===a.Jg,o=!i||r,u=t.pgRetryHandler.isAllowedToRetry(),l=this._uploader.getJob();if(o&&u){function f(){t.submit()}return 0===t.uploadedBytes&&3===t.pgRetryHandler.getCurrentRetry()&&(s.q.log("qgMultiUpload fileUpload switch to upload fallback"),t.url=l.getFallbackUploadUrl(
3),this._dynamicChunkHandler.setmaxChunkSize(2e6)),function(e){var t=0,i="",n="";try{L(e),n="current retry: "+e.pgRetryHandler.getCurrentRetry(),n+=" | uploaded bytes: "+e.uploadedBytes,n+=" | file size: "+e.files[0].size,n+=" | file name: "+e.files[0].name,n+=" | bitrate: "+e.pgCurrentBitrate,n+=" | chunk size: "+e.pgCurrentChunkSize,n+=" | speed modifier: "+e.pgCurrentSpeedModifier;try{n+=" | file last modified: "+e.files[0].lastModified}catch(e){}e.hasOwnProperty("jqXHR")||(n+=" | jqXHR missing!");try{e.jqXHR.hasOwnProperty("status")&&(n+=" | status code: "+e.jqXHR.status)}catch(e){}try{e.jqXHR.hasOwnProperty("responseText")&&("string"==typeof e.jqXHR.responseText?n+=" | response text: "+e.jqXHR.responseText.substr(0,512):n+=" | response text: NOT A STRING "+JSON.stringify(e.jqXHR.responseText))}catch(e){}try{e.jqXHR.hasOwnProperty("responseJSON")&&("object"==typeof e.jqXHR.responseJSON?n+=" | response json: "+JSON.stringify(e.jqXHR.responseJSON):n+=" | response json: NOT AN OBJECT "+JSON.stringify(e.jqXHR.responseJSON))}catch(e){}e.hasOwnProperty("url")?"string"!=typeof e.url?n+=" | url: URL NOT A STRING":""===e.url?n+=" | url: EMPTY URL":n+=' | url: "'+e.url+'"':n+=" | url: NO URL",e.hasOwnProperty("headers")?n+=" | headers: "+JSON.stringify(e.headers):n+=" | headers: NO HEADERS";try{D(e.url)&&(n+=" | use upload fallback: true")}catch(e){}t=e.textStatus,i=e.errorThrown}catch(e){n="exception during logging",e.hasOwnProperty("message")&&(n+=": "+e.message)}s.q.log("qgMultiUpload fileUpload retry",{info:n,ajax_status:t,ajax_error:i})}(t),void window.setTimeout(f,t.pgRetryHandler.getTimeOutForNextChunk_ms())}!function(e){var t=0,i="",n="";try{L(e),n="retries: "+e.pgRetryHandler.getCurrentRetry(),n+=" | uploaded bytes: "+e.uploadedBytes;try{n+=" | file size: "+e.files[0].size}catch(e){}try{n+=" | file last modified: "+e.files[0].lastModified}catch(e){}try{n+=" | server response: "+e.jqXHR.responseText.substr(0,250)}catch(e){}try{n+=" | server error message: "+e.jqXHR.responseJSON.error.substr(0,250)}catch(e){}try{n+=" | status code: "+e.jqXHR.status}catch(e){}try{D(e.url)&&(n+=" | use upload fallback: true",s.q.log("qgMultiUpload fileUpload with fallback fail"))}catch(e){}t=e.textStatus,i=e.errorThrown}catch(e){n="exception during logging",e.hasOwnProperty("message")&&(n+=": "+e.message)}s.q.log("qgMultiUpload fileUpload fail",{info:n,ajax_status:t,ajax_error:i})}(t);var p=new se(_.ph);n!==a.oR&&n!==a._x||(p.error=_.r3),this._uploader.failInput(t.pgLocalId,p)}else s.q.log("qgMultiUpload fileUpload abort",{ajax_status:t.textStatus,ajax_error:t.errorThrown})},P.prototype._processFileUploadProgress=function(e,t){var i={bitrate:t.bitrate,bytesLoaded:t.loaded,bytesTotal:t.total};this._uploader.dispatchInputEvent(m.i$,t.pgLocalId,i)},P.prototype._processFileUploadChunk=function(e,t){try{let i=t.url,n=/^(?:\w+\:\/\/)?([^\/]+)([^\?]*)\??(.*)$/.exec(i)[1].split(".")[0];z({event:e.type,bitrate:t.bitrate,bytesLoaded:t.loaded,bytesTotal:t.total,chunkSize:this._dynamicChunkHandler.getCurrentChunkSize(),status:t.jqXHR.status,server:n})}catch(e){}},P.prototype.click=function(){const e=this._config.fileUploadInputId,t=M(e);1===t.length&&(t.hasClass("disabled")||t.click())};var J,B=i(74692),Q=i.n(B),V=null,G=null,W=!1;function Y(){document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.width="",null!==G&&(window.scrollTo(G.x,G.y),G=null)}function X(){this.maxFileSize=68719476736,this.clientId=null,this.developerKey=null,this.appId=null}class K{constructor(e,t){this._uploader=e,this._config=new X,(0,o.Q2)(t)&&(0,o.bV)(t,"maxFileSize")&&(this._config=t),V=null}add(e,t,i,n){var r=this._uploader,o=this._config;function l(){0}function d(e){void 0!==e.action&&"picked"===e.action?(Y(),void 0!==e.docs&&Q().each(e.docs,function(e,t){var i=0,n="gDrive";t.hasOwnProperty("sizeBytes")&&"number"==typeof t.sizeBytes&&(i=t.sizeBytes),t.hasOwnProperty("name")&&(n=t.name),c(V,n,i,t.id,t.mimeType)})):"loaded"!==e.action&&Y()}function c(e,t,i,n,l){var d=new u(a.QC);d.setCallback(function(u){var d=Q().Deferred();r.getInput(u).setName(t),r.getInput(u).setSize(i);var c=r.getBytesInJob()+i;if(c>o.maxFileSize){s.q.log("qgMultiUpload gdrive fail",{info:"file too large",filename:t,file_size:i,max_file_size:o.maxFileSize});var f=new se(_.r3);return f.size=c,r.failInput(u,f),r.dispatchGlobalEvent(m.G2),d.resolve()}var h=r.getJob().getId();return r.getInput(u).setStatus(a.gQ),r.dispatchInputEvent(m.rB,u),r.getApiHelper().addInput(h,{type:"gdrive_picker",source:n,credentials:{token:e},filename:t,content_type:l}).done(function(e){var t=e.id;r.getInput(u).setInputId(t),r.getInput(u).setStatus(a.cW),r.dispatchInputEvent(m.Zb,u),r.waitForRemoteInput(u),d.resolve()}).fail(function(e){(0,p.L)(e);var t=new se(e);r.failInput(u,t),d.resolve()}),d}).setName(t).setSize(i),r._queueInput(d)}"string"!=typeof e||"string"!=typeof t||"string"!=typeof i||"string"!=typeof n?null!==this._config.clientId&&null!==this._config.developerKey&&"true"!==sessionStorage.getItem("PLAYWRIGHT")&&Q().when(Q().cachedScript("https://apis.google.com/js/api.js"),Q().cachedScript("https://accounts.google.com/gsi/client")).done(function(){gapi.load("picker",l),J=google.accounts.oauth2.initTokenClient({client_id:o.clientId,scope:"https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/drive.install ",include_granted_scopes:!1,callback:function(){}}),function(){if(W&&null===V)return;const e=()=>{(new google.picker.PickerBuilder).addView(google.picker.ViewId.DOCS).setOAuthToken(V).setDeveloperKey(o.developerKey).enableFeature
3(google.picker.Feature.MULTISELECT_ENABLED).setCallback(d).setAppId(o.appId).build().setVisible(!0)};J.callback=t=>{if(W=!1,void 0!==t.error)return Y(),void s.q.log("GDrive OAuth error",{error:t.error});V=t.access_token,e()},null===G&&(G={x:window.scrollX||window.pageXOffset,y:window.scrollY||window.pageYOffset},document.body.style.position="fixed",document.body.style.top="-"+G.y+"px",document.body.style.left="-"+G.x+"px",document.body.style.width="100%"),null===V?(W=!0,J.requestAccessToken({prompt:"consent"})):J.requestAccessToken({prompt:"consent"})}()}):c(t,e,0,i,n)}click(){this._uploader.addGdrive()}}function $(e){if(!e||"object"!=typeof e)return e;const t={};return e.id&&(t.id=e.id),e.name&&(t.name=e.name),void 0!==e.size&&null!==e.size&&(t.size=e.size),e["@microsoft.graph.downloadUrl"]&&(t["@microsoft.graph.downloadUrl"]="[REDACTED]"),t}function Z(e){if(!e||"object"!=typeof e)return e;const t={};return e.accessToken&&(t.accessToken="[REDACTED]"),Array.isArray(e.value)&&(t.value=e.value.map($)),t}function ee(){this.maxFileSize=8589934592,this.clientId=null,this.redirectUri=window.location.origin+"/onedrive/filepicker"}class te{constructor(e,t){this._uploader=e,this._config=new ee,(0,o.Q2)(t)&&((0,o.bV)(t,"maxFileSize")&&(this._config.maxFileSize=t.maxFileSize),(0,o.bV)(t,"clientId")&&(this._config.clientId=t.clientId))}add(){var e=this._uploader,t=this._config;!function(){sessionStorage.getItem("PLAYWRIGHT");var i=document.createElement("script");i.src="https://js.live.net/v7.2/OneDrive.js",i.onload=function(){var i;i={clientId:t.clientId,action:"download",multiSelect:!0,advanced:{queryParameters:"select=name,size,id,@microsoft.graph.downloadUrl",filter:"file",fileSizeLimit:t.maxFileSize,redirectUri:t.redirectUri,scopes:["Files.Read"]},success:function(t){!function(t){s.q.log("qgMultiUpload onedrive response received",{response:Z(t)}),t.value&&Array.isArray(t.value)?t.value.forEach(function(t){try{s.q.log("qgMultiUpload processing file",{file:$(t)});var i=t.size;"number"!=typeof i&&(i=0,s.q.log("qgMultiUpload invalid file size, defaulting to 0",{originalSize:t.size,file:$(t)}));var o=t.name;o&&"string"==typeof o||(o="onedrive_file",s.q.log("qgMultiUpload invalid file name, using default",{originalName:t.name,file:$(t)}));var l=t["@microsoft.graph.downloadUrl"];if(!l)return void s.q.log("qgMultiUpload missing download URL",{file:$(t)});var d=t.id;if(!d)return void s.q.log("qgMultiUpload missing file ID",{file:$(t)});s.q.log("qgMultiUpload calling helper",{name:o,size:i,fileId:d}),function(t,i,o,s){(0,r.cI)(s);const l="auto";s=s.trim();var d=function(i){var r=Q().Deferred(),o=e.getJob().getId();if(e.getInput(i).setStatus(a.gQ),e.getInput(i).setName(t),e.dispatchInputEvent(m.rB,i),0===s.length){var u=new se(_.ph);return e.failInput(i,u),r.resolve(),r}if(s.length>4e3){const t=new se(_.El);return e.failInput(i,t),r.resolve(),r}return e.getApiHelper().addExternalUrl(o,s,l).done(function(t){(0,n.ft)(t);var o=t.id;e.getInput(i).setInputId(o),e.getInput(i).setStatus(a.cW),e.dispatchInputEvent(m.Zb,i),e.waitForRemoteInput(i),r.resolve()}).fail(function(t){(0,p.L)(t);var n=new se(t);e.failInput(i,n),r.resolve()}),r},c=new u(a.VE);c.setName(t).setCallback(d),e._queueInput(c)}(o,0,0,l)}catch(e){s.q.log("qgMultiUpload error processing file",{error:e,file:$(t)})}}):s.q.log("qgMultiUpload onedrive invalid response",{response:Z(t)})}(t)},cancel:function(){s.q.log("qgMultiUpload onedrive picker cancelled")},error:function(e){s.q.log("qgMultiUpload onedrive picker error",{error:e})}},OneDrive.open(i)},i.onerror=function(){s.q.log("qgMultiUpload onedrive script load error")},document.body.appendChild(i)}()}click(){this._uploader.addOnedrive()}}var ie=i(74692);function ne(e){this._uploader=e}ne.prototype.add=function(e){(0,r.cI)(e);var t=this._uploader,i=new u(a.vN);i.setCallback(function(i){var r=ie.Deferred(),o=t.getJob().getId();return t.getInput(i).setStatus(a.gQ),t.getInput(i).setName(e),t.dispatchInputEvent(m.rB,i),t.getApiHelper().addInputId(o,e).done(function(e){(0,n.ft)(e);var o=e.id;t.getInput(i).setInputId(o),t.getInput(i).setStatus(a.cW),t.dispatchInputEvent(m.Zb,i),t.waitForRemoteInput(i),r.resolve()}).fail(function(e){(0,p.L)(e);var n=new se(e);t.failInput(i,n),r.resolve()}),r}).setName(e),this._uploader._queueInput(i)};var re=i(98234),oe=i(74692);function se(e){this.error=_.ph,this.size=null,this.maxFileSize=null,this.maxNumberOfInputs=null,e&&((0,p.L)(e),this.error=e)}class ae{constructor(e,t){(0,r.OA)(t),this._config=t,this._apiHelper=e,this._isEnabled=!0,this._inputList=new g(t),this._job=ne
3w c(e,t),this._queueIsBeingProcessed=!1,this._sentLogAboutMaxInputs=!1,this._maxFileSize=8589934592,this._maxCloudFileSize=53687091200,this._maxNumberOfInputs=60,(0,o.ym)(t.maxNumberOfInputs)&&t.maxNumberOfInputs>0&&(this._maxNumberOfInputs=t.maxNumberOfInputs),(0,o.ym)(t.maxFileSize)&&(this._maxFileSize=t.maxFileSize),this._blockYouTubeUrls=!0,this._singleInput=1===t.maxNumberOfInputs,this._enablePasswords=!0===t.enablePasswords,this._showPasswordOnlyForSingleInput=!0===t.showPasswordOnlyForSingleInput,t.hasOwnProperty("blockYouTubeUrls")&&(this._blockYouTubeUrls=t.blockYouTubeUrls),this._addDropboxHelper=null,this._addGdriveHelper=null,this._addGdriveHelper=null,this._addFileUploadHelper=null,this._addInputIdHelper=null,this._addExternalUrlHelper=null,this._setupAddHelper(t),this._jobData={},t.hasOwnProperty("jobData")&&(this._jobData=t.jobData),t.hasOwnProperty("jobId")&&this.initFromJobId(t.jobId)}_setupAddHelper(e){var t=new I;t.maxFileSize=this._maxFileSize,this._addDropboxHelper=new S(this,t);var i=new ee;i.maxFileSize=this._maxFileSize,(0,o.gN)(e.microsoftClientId)&&(i.clientId=e.microsoftClientId),this._addOnedriveHelper=new te(this,i);var n=new X;n.maxFileSize=this._maxCloudFileSize,(0,o.gN)(e.gdriveClientId)&&(n.clientId=e.gdriveClientId),(0,o.gN)(e.gdriveAppId)&&(n.appId=e.gdriveAppId),(0,o.gN)(e.gdriveDeveloperKey)&&(n.developerKey=e.gdriveDeveloperKey),this._addGdriveHelper=new K(this,n);var r=new A;r.maxFileSize=this._maxFileSize,r.enableUploadFallback=!0===e.enableUploadFallback,r.enablePasswords=!0===e.enablePasswords,r.fileUploadInputId=e.fileUploadInputId,this._addFileUploadHelper=new P(this,r),this._addInputIdHelper=new ne(this),this._addExternalUrlHelper=new v(this)}initFromJobId(e){(0,r.U7)(e);let t=oe.Deferred();var i=this;return(this._job._isCreating||null!==this._job._jobInfoHelper)&&(s.q.log("uploader initFromJobId - dropping self-created job for restore",e),this._job=new c(this._apiHelper,this._config)),this._inputList=new g(this._config),this._job.initFromExistingJob(e).done(function(e){var n=new l.I(e).getInputs();i._tryToSetSatLimitsFromJobInfo(e);oe.each(n,function(e,t){var n=t.status;if(n!==a.tH&&n!==a.Z4){var r=a.Wk;"upload"===t.type&&(r=a.L5),"gdrive_picker"===t.type&&(r=a.QC);var o=new u(r);o.setName(t.filename).setSize(t.size).setInputId(t.id);var l=i._inputList.addInput(o);if(i.dispatchInputEvent(m.q8,l),n===a._X)return o.setStatus(a.cW),i.dispatchInputEvent(m.Zb,l),void i.waitForRemoteInput(l);if(n!==a.pk)s.q.error("qgMultiUpload init fail unknown input status",JSON.stringify(t));else{var p=(0,U.e)(t.metadata);this._enablePasswords&&p?(o.setStatus(a.wF),i.dispatchInputEvent(m.rG,l)):(o.setStatus(a.yb),i.dispatchInputEvent(m.tU,l))}}}),i._submitNextQueuedInput(),t.resolve()}).fail(function(e){t.reject(_.ph)}),t}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}isEnabled(){return this._isEnabled}isSingleInput(){return this._singleInput}isEmpty(){var e=this.getInputList();return 0===e.getNumberOfQueuedInputs()&&0===e.getNumberOfInputsInApi()}isReadyToSubmit(e){var t=this.getInputList();return!(t.getNumberOfQueuedInputs()>0)&&(0!==t.getNumberOfInputsInApi()&&(!(t.getNumberOfSubmittingInputs()>0)&&(!(t.getNumberOfActiveFileUploads()>0)&&(!(t.getNumberOfDeletingInputs()>0)&&(!(t.getNumberOfPasswordMissing()>
30)||!0===e)))))}isWaitingForPasswords(){return this.getInputList().getNumberOfPasswordMissing()>0}dispatchInputEvent(e,t,i){(0,n.Fb)(e);const r=new m.T9(e);r.localId=t,r.data=i,O.B.emit(m.Y3,r)}dispatchGlobalEvent(e,t){(0,n.or)(e);const i=new m.T9(e);(0,o.er)(t)&&(i.data=t),O.B.emit(m.Y3,i)}getJob(){return this._job}getInput(e){return this._inputList.getInput(e)}hasInput(e){return this._inputList.hasInput(e)}getInputList(){return this._inputList}getApiHelper(){return this._apiHelper}_queueInput(e){if(this._isEnabled){var t=this._inputList.addInput(e);this.dispatchInputEvent(m.q8,t);var i=this.getInput(t);if(this._blockYouTubeUrls&&i.getType()===a.Wk)if(function(e){if((0,r.cI)(e),""===(e=e.replace(/\s/g,"")))return!1;var t="";try{var i=document.createElement("a");i.href=e,t=(t=i.hostname).toLowerCase()}catch(e){return!1}return-1!==t.indexOf("youtube.com")||-1!==t.indexOf("youtu.be")||-1!==t.indexOf("googlevideo.com")}(i.getName())){var o=new se(_.dT);return this.failInput(t,o),void this.dispatchGlobalEvent(m.KV)}if(!this._job.isCreating())if(this._job.isCreated())this._queueIsBeingProcessed||this._submitNextQueuedInput();else{var u=this;this.dispatchGlobalEvent(m.L7),this._job.createWithServerCheck(this._jobData).done(function(e){(0,n.CP)(e),s.q.addLogData("job_id",u._job.getId()),u._tryToSetSatLimitsFromJobInfo(e),u.dispatchGlobalEvent(m.vE),u._submitNextQueuedInput()}).fail(function(e,t){if((0,p.L)(e),e===_.tW)return u._failQueuedInputs(e),u._job.reset(),void u.dispatchGlobalEvent(m.h,t);u._failQueuedInputs(e),u._job.reset(),u.dispatchGlobalEvent(m.dz,t)})}}}_submitNextQueuedInput(){this._queueIsBeingProcessed=!0;var e=this._getNextQueuedInput();if(null!==e){if(this._config.operation.includes("compare")||this._config.operation.includes("watermark")){const t=2;if(!this._inputList.getInputs().slice(0,t).map(e=>e.getLocalId()).includes(e))return this._queueIsBeingProcessed=!1,this._failQueuedInputs(_.sb,t),void(this._sentLogAboutMaxInputs||(s.q.log("qgMultiUpload: files limit exceeded",{maxAllowed:t,current:this._inputList.getInputs().length}),this._sentLogAboutMaxInputs=!0))}if(this.isInputLimitReached())return this._queueIsBeingProcessed=!1,this._failQueuedInputs(_.sb,this._maxNumberOfInputs),this.dispatchGlobalEvent(m.TL),void(this._sentLogAboutMaxInputs||(s.q.log("qgMultiUpload processQueuedInputs fail max number of inputs"),this._sentLogAboutMaxInputs=!0));var t=this._inputList.getInput(e),i=t.getSize()>this._maxFileSize,n=t.getSize()+this._inputList.getBytesInJob()>this._maxFileSize;if(i||n){s.q.log("qgMultiUpload queue fail",{info:"file too large",filename:t.getName(),file_size:t.getSize(),max_file_size:this._maxFileSize});var r=new se(_.r3);return r.size=t.getSize(),r.maxFileSize=this._maxFileSize,this.failInput(e,r),this.dispatchGlobalEvent(m.G2),null===this._getNextQueuedInput()?void(this._queueIsBeingProcessed=!1):void this._submitNextQueuedInput()}var o=t.getCallback(),a=this;o(t.getLocalId()).always(function(){null!==a._getNextQueuedInput()?a._submitNextQueuedInput():a._queueIsBeingProcessed=!1})}else this._queueIsBeingProcessed=!1}_getNextQueuedInput(){var e=null,t=this._inputList.getInputs();return oe.each(t,function(t,i){i.getStatus()===a.Nl&&null===e&&(e=t)}),e}failInput(e,t){var i=new se;(0,o.Q2)(t)&&((0,r.B$)(t,"error"),i=t),this.getInput(e).setStatus(a.Fh),this.dispatchInputEvent(m.Lb,e,i)}deleteInput(e){let t=oe.Deferred();if(!this._isEnabled)return;const i=this.getInput(e),n=i.getStatus();if(n!==a.km){if(n!==a.wF&&n!==a.yb)return this.dispatchInputEvent(m.Bp,e),void s.q.log("qgMultiUpload fail wrong state for being deleted",n);i.setStatus(a.km),this.dispatchInputEvent(m.jx,e);var r=this;return this._apiHelper.deleteInputAndWait(this._job.getId(),i.getInputId()).done(function(){i.setStatus(a.ZT),r.dispatchInputEvent(m.Sj,e),t.resolve()}).fail(function(o){(0,p.L)(o),i.setStatus(n),r.dispatchInputEvent(m.Bp,e),t.reject()}),t}}setPassword(e,t){let i=oe.Deferred();if(!this._isEnabled)return i.reject(a.E9),i;const n=this.getInput(e),r=n.getStatus();if(r===a.S3)return i.reject(a.um),i;if(r!==a.wF)return s.q.log("qgMultiUpload fail wrong state for setting password",r),u.dispatchInputEvent(m.Bp,e),i.reject(a.E9),i;n.setStatus(a.S3),this.dispatchInputEvent(m.Rm,e);const u=this,l=this.getJob().getId(),p=n.getInputId();return u._apiHelper.setPassword(l,p,t).done(function(t){return(0,o.Q2)(t)&&(0,o.Q2)(t.metadata)?(0,U.e)(t.metadata)?(n.setStatus(r),u.dispatchInputEvent(m.Bp,e),void i.reject(a.ko)):(u.getInput(e).setStatus(a.yb),u.dispatchInputEvent(m.tU,e),void i.resolve()):(s.q.log("qgMultiUpload set password - fail - metadata broken",JSON.stringify(t)),u.getInput(e).setStatus(a.yb),u.dispatchInputEvent(m.tU,e),void i.reject(a.E9))}).fail(function(t){s.q.log("qgMultiUpload set password fail",t+"input id: "+p),n.setStatus(r),u.dispatchInputEvent(m.Bp,e),i.reject(a.E9)}),i}cancelFileUpload(e){if(this._isEnabled){var t=this.getInput(e);if(t.getType()!==a.L5)throw new Error("only file uploads can be canceled");if(t.getStatus()===a.cW)t.getUploadData().abort(),t.setStatus(a.ZT),this.dispatchInputEvent(m.ry,e);else s.q.log("qgMultiUpload fileUpload wrong state while canceling")}}_failQueuedInputs(e,t){var i=new se(_.ph);(0,o.UN)(e)&&((0,p.L)(e),i.error=e,e===_.sb&&(0,o.ym)(t)&&(i.maxNumberOfInputs=t));var n=this,r=this._inputList.getInputs();oe.each(r,function(e,t){t.getStatus()===a.Nl&&n.failInput(e,i)})}getBytesInJob(){return this._inputList.getBytesInJob()}getSizeOfAllInputs(){return this._inputList.getSizeOfAllInputs()}isInputLimitReached(){return this._inputList.isInputLimitReached()}waitForRemoteInput(e){var t=this.getInput(e).getInputId(),i=this;this._job.waitForRemoteInput(t).done(function(t){(0,n.ft)(t),i.getInput(e).setSize(t.size),i.getInput(e).setName(t.filename);var r=(0,U.e)(t.metadata);if((0,o.Q2)(t)){let n=i.getInput(e);n.setMetadata(t.metadata).setContentType(t.content_type).setEngine(t.engine),n.getType()===a.Wk&&n.setSource(t.source)}i._enablePasswords&&r?(i.getInput(e).setStatus(a.wF),i.dispatchInputEvent(m.rG,e)):(i.getInput(e).setStatus(a.yb),i.dispatchInputEvent(m.tU,e))}).fail(function(t){if((0,p.L)(t),t===_.tW){let t=new se(_.r3);s.q.log("qgMultiUpload wait for remote input - file too large"),i.failInput(e,t),i.dispatchGlobalEvent(m.G2)}var n=new se(t);i.failInput(e,n)})}addInputId(e){this._addInputIdHelper.add(e)}addExternalUrl(e,t){(0,o.h7)(t)&&(t="auto"),this._addExternalUrlHelper.add(e,t)}addExternalUrls(e){(0,r.ys)(e);var t=this._addExternalUrlHelper;e.forEach(function(e){t.add(e)})}addDropbox(){this._addDropboxHelper.add()}addOnedrive(){this._addOnedriveHelper.add()}addGdrive(e,t,i,n){this._addGdriveHelper.add(e,t,i,n)}_tryToSetSatLimitsFromJobInfo(e){var t=null;try{t=e.sat.constraints;(0,re.o)().setConstraints(t)}catch(e){}if(null!==t){try{var i=t.job.general.max_size;"string"==typeof i&&(i=parseInt(i)),(0,o.ym)(i)&&!isNaN(i)&&i>0&&(this._maxFileSize=i,i>this._maxCloudFileSize&&(this._maxCloudFileSize=i,this._addGdriveHelper&&this._addGdriveHelper._config&&(this._addGdriveHelper._config.maxFileSize=i),this._addDropboxHelper&&this._addDropboxHelper._config&&(this._addDropboxHelper._config.maxFileSize=i),this._addOnedriveHelper&&this._addOnedriveHelper._config&&(this._addOnedriveHelper._config.maxFileSize=i)))}catch(e){}try{if(!this._singleInput){var n=t.job.inputs.max_count;"string"==typeof n&&(n=parseInt(n)),(0,o.ym)(n)&&!isNaN(n)&&n>0&&(this._inputList._maxNumberOfInputs=n)}}catch(e){}}}clickFileUpload(){this._addFileUploadHelper.click()}clickDropBox(){this._addDropboxHelper.click()}clickGdrive(){this._addGdriveHelper.click()}clickOnedrive(){this._addOnedriveHelper.click()}clickRemoteUrl(e,t){this._addExternalUrlHelper.click(e,t)}}},30409(e,t,i){"use strict";i.d(t,{V:()=>l});i(74423);var n=i(20548),r=i(74692);function o(e,t,i){try{void 0!==r&&r.hasOwnProperty("ajax")&&function(e,t,i){var n=2,o=0,s={url:e,method:"POST",data:{data:i},xhrFields:{withCredentials:t}},a=function(){r.ajax(s).fail(function(e,t,i){o>=n||(o+=1,setTimeout(function(){a(s)},1e3*(5*o)))})};a()}(e,t,i)}catch(e){}}function s(e,t,i){e+="?withBeacon=true";let n=new Blob([JSON.stringify({data:i}
3)],{type:"text/plain"});try{!function(e,t){navigator.sendBeacon(e,t)}(e,n)}catch(e){}}function a(e){if(void 0===e)return{};if(null===e)return{};var t={};if(void 0!==e.message&&(t.exception_message=e.message),void 0!==e.name&&(t.exception_name=e.name),void 0!==e.columnNumber&&(t.exception_column=e.columnNumber),void 0!==e.lineNumber&&(t.exception_line=e.lineNumber),void 0!==e.fileName&&(t.exception_file=e.fileName),void 0!==e.stack){var i="no valid stack info";if("string"==typeof e.stack)i=e.stack;else try{i=JSON.stringify(e.stack)}catch(e){i="failed to create stack: "+e.message}t.exception_stack=i}return t}function u(e,t,i){"string"!=typeof e&&(e="no valid message in log");var r={message:e};try{if(Object.assign(r,t),void 0===i);else if(null===i);else if("string"==typeof i)r.info=i;else if("number"==typeof i)r.info=i.toString();else if(i.isAxiosError){const e=i,t=e?.response?.status;(0,n.ym)(t)&&(r.http_status=t);const o=e?.response?.data;o&&(r.info=JSON.stringify(o))}else if(i instanceof Error){var o=a(i);Object.assign(r,o)}else"object"==typeof i?Object.assign(r,i):r.info=JSON.stringify(i);try{r.page_url=window.location.href}catch(e){}"string"==typeof r.info&&(r.info=function(e){var t={new_user_password:"new_user_password",u_confirm_password:"u_confirm_password",new_owner_password:"new_owner_password",confirm_password:"confirm_password"};try{e=JSON.parse(e)}catch(t){return e}if(void 0!==e.options)for(var i in t)e.options.hasOwnProperty(i)&&(e.options[i]="**REMOVED**");return JSON.stringify(e)}(r.info)),(0,n.gN)(r.referrer)&&(r.referrer=r.referrer.slice(0,500))}catch(i){(r={}).info="message: "+e,r.message="exception in logger",r.exception_message=i.message,t.hasOwnProperty("job_id")&&(r.job_id=t.job_id),t.hasOwnProperty("extra_uid")&&(r.extra_uid=t.extra_uid)}return r}class l{constructor(e){if("object"!=typeof e)throw new Error("Logger needs options object");if("string"!=typeof e.url)throw new Error("Logger needs url");this._url=e.url,this._cors=!0===e.cors,this._baseLogData={},this._maxNumberOfLogs=1e3,"number"==typeof e.maxNumberOfLogs&&(this._maxNumberOfLogs=e.maxNumberOfLogs),this._numberOfLogsSent=0,"string"==typeof e.extraUid&&this.addLogData("extra_uid",e.extraUid)}parseError(e){return a(e)}addLogData(e,t){this._baseLogData[e]=t}log(e,t,i,r){if(this._numberOfLogsSent++,r||(r=!1),!(this._numberOfLogsSent>this._maxNumberOfLogs))try{var a=u(e,this._baseLogData,t);void 0!==i&&(a.level=i),a.version="[email protected]";try{const e=document?.referrer;(0,n.gN)(e)&&(a.referrer=e)}catch(e){}let l=this;r?setTimeout(()=>{s(l._url,l._cors,a)},0):setTimeout(()=>{o(l._url,l._cors,a)},0),(-1!==window.location.href.indexOf(".test")||window.location.href.includes("local"))&&console.log(a.message,t)}catch(e){console.log("error sending log",e.message)}}getNavigationData(){try{let e=[];const t=performance?.getEntriesByType("navigation");return Array.isArray(t)&&0!==t.length?(t.forEach(t=>{if(!t.type)return"";e.push(t.type)}),JSON.stringify(e)):""}catch(e){return""}}debug(e,t){this.log(e,t,100)}info(e,t){this.log(e,t,200)}notice(e,t){this.log(e,t,250)}warning(e,t){this.log(e,t,300)}error(e,t){this.log(e,t,400)}critical(e,t){this.log(e,t,500)}alert(e,t){this.log(e,t,550)}emergency(e,t){this.log(e,t,600)}}},38595(e,t,i){"use strict";i.d(t,{L:()=>s});var n=i(87871),r=i(20548),o=i(34504),s=function(e){if(!function(e){return!!(0,r.gN)(e)&&(0,r.eA)(o.V5,e)}(e))throw new Error((0,n.q)("not valid apiError"))}},15472(e,t,i){"use strict";i.d(t,{TV:()=>l,UM:()=>a,b4:()=>p,d6:()=>u});var n=i(49972),r=i(2698),o=i(20548);function s(){const e=document.cookie;let t={};return e.split(";").forEach(function(e){const i=e.split("=");if(2===i.length){const e=i[0].trim().toLowerCase(),n=i[1].trim();t[e]=n}}),t}function a(e){if(!u(e))return null;return s()[e.toLowerCase().trim()]}function u(e){const t=s(),i=e.toLowerCase().trim();return t.hasOwnProperty(i)}function l(e,t,i,s,a){(0,r.yN)(e),(0,o.gN)(a)||(a=n.d.getCookieDomain()),(0,o.gN)(s)||(s="/");let u=`${e}=${t}; max-age=${i}; path=${s}; secure;`;a&&(u+=`domain=${a};`),document.cookie=u}const p={isCookieSet:u,getCookieValue:a,setCookie:l}},88544(e,t,i){"use strict";i.d(t,{e:()=>o});var n=i(3598),r=i(20548),o=function(e){if(!(0,r.Q2)(e))return!1;var t=e.hasOwnProperty("password_protected"),i=e.hasOwnProperty("password_valid"),o=e.hasOwnProperty("unsupported_encryption"),s=e.hasOwnProperty("pdf_has_user_password"),a=e.hasOwnProperty("pdf_has_owner_password"),u=e.hasOwnProperty("pdf_password_valid");return!(!i&&!t)&&(t&&!1===e.password_protected?(s&&!0===e.pdf_has_user_password&&n.q.error("password helper info","password fields broken: "+JSON.stringify(e)),a&&!0===e.pdf_has_owner_password&&n.q.error("password helper info","password fields broken: "+JSON.stringify(e)),!1):(!o||!0!==e.unsupported_encryption)&&(i&&t?(!0!==e.password_protected&&!1!==e.password_protected&&n.q.error("password helper info","password_protected not a boolean value: "+JSON.stringify(e)),!0===e.password_protected&&(a||s||u?a&&s&&u?e.password_valid!==e.pdf_password_valid?(n.q.error("password helper info","pdf password valid inconsistent state: "+JSON.stringify(e)),!1):!0===e.pdf_has_user_password&&!e.pdf_password_valid:(n.q.error("password helper info","pdf password fields missing: "+JSON.stringify(e)),!1):!(!0===e.password_valid))):(n.q.error("password helper info","password fields broken: "+JSON.stringify(e)),!1)))}},9644(e,t,i){"use strict";i.d(t,{S$:()=>c,W6:()=>p,Yv:()=>d,zI:()=>u});var n=i(20548),r=i(2698),o=i(3598);function s(e){let t=!0;return e.split("&").forEach(function(e,i){(function(e){try{decode
3URIComponent(e)}catch(e){return!1}if(-1!==e.indexOf("&")||-1!==e.indexOf("#"))return!1;const t=e.split("=");if(2!==t.length&&3!==t.length)return!1;const i=t[0].trim(),n=t[1];if(0===i.length)return!1;try{decodeURIComponent(n)}catch(e){return!1}return!0})(e)||(t=!1)}),t}function a(e){if(!s(e))return o.q.log("invalid fragment or query in url",JSON.stringify(e)),null;let t={};const i=e.split("&");let n=!1;return i.forEach(function(e,i){const r=function(e){let[t,...i]=e.split("="),n=i.join("=");if(t=t.trim().toLowerCase(),0===t.length)return null;try{n=decodeURIComponent(n)}catch(e){return null}return[t,n]}(e);if(null!==t){n=!0;const e=r[0],i=r[1];t[e]=i}}),n?t:null}function u(e){let t;if((0,n.h7)(e))t=location.hash.trim();else{let i=document.createElement("a");i.href=e,t=i.hash.trim()}return"#"!==t.charAt(0)?null:t.substring(1)}function l(e){const t=function(e){let t;if((0,n.h7)(e))t=location.search.trim();else{let i=document.createElement("a");i.href=e,t=i.search.trim()}return"?"!==t.charAt(0)?null:t.substring(1)}(e);if(null===t)return{};const i=a(t);return null===i?{}:i}function p(){return l()}function d(){return function(e){const t=u(e);if(null===t)return{};const i=a(t);return null===i?{}:i}()}function c(e){(0,r.cI)(e);const t=e.trim().toLowerCase(),i=d();if(i.hasOwnProperty(t))return i[t];const n=p();return n.hasOwnProperty(t)?n[t]:null}},50549(e,t,i){"use strict";i.d(t,{unpublishedPage:()=>u});var n=i(3598),r=i(20548),o=i(49972),s=i(74692);function a(){let e=s("#pageVersionActivatingStatus").val(),t=s("#pagePublishedFalse").val();window.location.href;"prod"===o.d.getEnv()&&n.q.log("Page is visible even though it should not be!"),(0,r._2)(e)||s(".inactive-page-version-toast").toast("show"),(0,r._2)(t)||s(".unpublished-page-toast").toast("show")}a();var u={init:a}},53209(e,t,i){"use strict";i.d(t,{C:()=>n});var n=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},65998(e,t,i){"use strict";var n=i(30409),r={url:"/api/z",cors:!1,maxNumberOfLogs:500,extraUid:(0,i(53209).C)()};if("object"==typeof window.qgLoggerOptions){var o=window.qgLoggerOptions;"string"==typeof o.url&&(r.url=o.url),r.cors=!0===o.cors}var s=new n.V(r);window.qgLogger=s},64537(e,t,i){"use strict";i.d(t,{oN:()=>a});const n=new TextEncoder;function r(e){return n.encode(e).length}function o(e){return e<128?1:e<2048?2:e<65536?3:4}function s(e,t){let i="",n=0;for(const r of e){const e=o(r.codePointAt(0)??0);if(n+e>t)break;i+=r,n+=e}return i}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:255;if(r(e)<=t)return e;const i=e.lastIndexOf("."),n=i>0?e.slice(i):"",o=i>0?e.slice(0,i):e,a=t-r(n);return a<=0?s(e,t):s(o,a)+n}}}]);
4//# debugId=38e8a337-56f8-5f98-8d5e-f4a10cc59b5f

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.