UNPKG

@grapecity-software/gcdocs.pdfviewer

Version:
2 lines 7.15 MB
/*! For license information please see gcpdfviewer.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.gcpdfviewer=t():e.gcpdfviewer=t()}(this,()=>(()=>{var __webpack_modules__={119:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(95093))},122:(e,t,n)=>{"use strict";var o=n(46518),i=n(22195),r=n(91955),a=n(79306),s=n(22812),c=n(79039),l=n(43724);o({global:!0,enumerable:!0,dontCallGetSet:!0,forced:c(function(){return l&&1!==Object.getOwnPropertyDescriptor(i,"queueMicrotask").value.length})},{queueMicrotask:function(e){s(arguments.length,1),r(a(e))}})},458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectFileHelper=t.SOUND_ACCEPTS=t.RICH_MEDIA_ACCEPTS=t.IMAGE_ACCEPTS=void 0;var o=n(81495),i=n(97792),r=n(24463),a=n(63125);t.IMAGE_ACCEPTS=".png,.gif,.bmp,.jpg,.jpeg",t.RICH_MEDIA_ACCEPTS=".mp4,.webm,.swf,.flv,.mp3,.wav,.ogg",t.SOUND_ACCEPTS=".wav,.aif";var s=function(){function e(){}return e.selectFileData=function(t,n){var o=e.createFileInput(t,n),r=(0,i.createPromiseCapability)();return o.fileInput.onchange=function(){e.readDataFromFileInput(o.fileInput,t,n,function(e,t,n){o.dispose(),r.resolve({fileId:e,fileName:t,array:n})})},o.select(),r.promise},e.selectFileForAnnotation=function(t,n,o){var r=e.createFileInput(n,o),a=(0,i.createPromiseCapability)();return r.fileInput.onchange=function(){o.findAnnotation(t).then(function(t){var n=t[0].pageNumber-1,i=t[0].annotation;e.readDataFromFileInput(r.fileInput,i.annotationType,o,function(t,s,c){e.setAnnotationFileData(o,n,i,c,t,s).then(function(e){r.dispose(),a.resolve(e)})})})},r.select(),a.promise},e._findFileName=function(e,t,n,o){var i=(e?e.value:"")||t||"",r=i.lastIndexOf("\\");if(-1!==(r=-1===r?i.lastIndexOf("/"):r)&&(i=i.substr(r+1)),!i){var s=o.plugin.in17n;switch(n){case a.AnnotationTypeCode.SOUND:i=s.t("annotation-defaults.sound-annotation.default-filename","sound.wav");break;case a.AnnotationTypeCode.STAMP:i=s.t("annotation-defaults.stamp-annotation.default-filename","image.png");break;default:i=s.t("annotation-defaults.file-attachment.default-filename","attachment")}}return i},e.createFileInput=function(n,i,r){var s;void 0===r&&(r=!1);var c=document.querySelector(".gc-select-file-helper-input");c&&(null===(s=c.parentNode)||void 0===s||s.removeChild(c));var l=null,d=document.createElement("input"),u=function(){var e,t;null===(e=d.parentNode)||void 0===e||e.removeChild(d),null===(t=null==l?void 0:l.parentNode)||void 0===t||t.removeChild(l)},p=i.in17n;d.classList.add("gc-select-file-helper-input"),d.type="file",d.name="internalfileResourceInput",d.style.display="inline-block",d.style.cursor="pointer",d.style.opacity="0.5",d.style.position="absolute",n===a.AnnotationTypeCode.RICHMEDIA?d.accept=t.RICH_MEDIA_ACCEPTS:n===a.AnnotationTypeCode.STAMP||n===a.AnnotationTypeCode.SIGNATURE?d.accept=t.IMAGE_ACCEPTS:n===a.AnnotationTypeCode.SOUND?d.accept=t.SOUND_ACCEPTS:d.accept="*.*";var g=function(){d.click()};return((0,o.isTouchEventsEnabled)()||r)&&(l=e.createLayerWithControls(n,g,u,p),document.body.appendChild(l)),document.body.appendChild(d),{fileInput:d,dispose:u,select:g}},e.createLayerWithControls=function(e,t,n,o){var i,r=o.t("dialogs.select-file-helper.cancel-button.label","Cancel");switch(e){case a.AnnotationTypeCode.SOUND:i=o.t("dialogs.select-file-helper.select-sound-button.label","Select sound");break;case a.AnnotationTypeCode.STAMP:case a.AnnotationTypeCode.SIGNATURE:i=o.t("dialogs.select-file-helper.select-image-button.label","Select image");break;case a.AnnotationTypeCode.FILEATTACHMENT:i=o.t("dialogs.select-file-helper.select-attachment-button.label","Select attachment");break;default:i=o.t("dialogs.select-file-helper.select-file-button.label","Select file")}var s=document.createElement("div");s.classList.add("gc-select-file-helper-layer"),s.innerHTML='<div class="gc-btn-group gc-btn-group--align-justify gc-btn-group--block"><button type="button" class="gc-btn gc-btn--block gc-btn--text-align-center gc-btn--accent gc-btn--level-error cancel-button"><span class="gc-btn__text">'+r+'</span></button>"<button type="button" class="gc-btn gc-btn--block gc-btn--text-align-center gc-btn--accent select-button"><span class="gc-btn__text">'+i+"</span></button></div>",document.body.appendChild(s);var c=s.querySelector(".cancel-button"),l=s.querySelector(".select-button"),d="PointerEvent"in window?"pointerup":"mouseup";return c["on"+d]=function(){n()},l["on"+d]=function(){t()},s},e.setAnnotationFileData=function(e,t,n,o,i,s,c){return new Promise(function(l){i||(i=(0,r.generateUid)("file")),s||(s=i),n.annotationType===a.AnnotationTypeCode.STAMP&&-1===s.indexOf(".")&&(s+=".png"),e.storage.setItem(i,o),n.fileId=i,n.fileName=s,n.fileLength=o.length,e.plugin.updateAnnotation(t,n).then(function(t){if(n.annotationType===a.AnnotationTypeCode.STAMP){var i=t.annotation.rect;if(Math.max(Math.abs(i[2]-i[0]),Math.abs(i[3]-i[1]))<10&&o)return void(0,r.resetStampAspectRatio)(o,e,t.pageIndex,t.annotation,c,!1).then(function(e){l(e||t)})}l(t)})})},e.readDataFromFileInput=function(t,n,o,i){var a=t.files;if(a){var s=a[0],c=new FileReader;c.onload=function(){var a=(0,r.generateUid)("file"),l=e._findFileName(t,s.name,n,o),d=c.result,u=new Uint8Array(d);i(a,l,u)},c.readAsArrayBuffer(a[0])}},e}();t.SelectFileHelper=s},655:(e,t,n)=>{"use strict";var o=n(36955),i=String;e.exports=function(e){if("Symbol"===o(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},1062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationsSvgFactory=t.findDefaultAnnotationIconSize=void 0;var n="http://www.w3.org/2000/svg";t.findDefaultAnnotationIconSize=function(e,t){void 0===t&&(t=22);var n={width:t,height:t};if(!e)return n;switch(e.toLowerCase()){case"paperclip":n.width=.5*t;break;case"mic":n.width=.8*t;break;case"newparagraph":case"pushpin":n.width=.7*t;break;case"tag":n.width=1.21951*t}return n};var o=function(){function e(){}return e.instance=function(){return e._instance||(e._instance=new e),e._instance},e.prototype.create=function(e,t,o,i){void 0===o&&(o=null),void 0===i&&(i=null);var r=document.createElementNS(n,"svg:svg");if(r.setAttribute("version","1.1"),r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+e+" "+t),o)for(var a in o)if(-1!==a.indexOf(".")){for(var s=a.split("."),c=r,l=0;l<s.length-1;l++)c=c[s[l]];c[s[s.length-1]]=o[a]}else r.setAttribute(a,o[a]);return i&&(r.innerHTML=i),r},e.prototype.createElement=function(e){return document.createElementNS(n,e)},e.prototype.createSvgRect=function(e){var t=e.x,n=e.y,o=e.w,i=e.h,r=e.stroke,a=e.strokeWidth,s=e.fill,c=e.strokeDashArray;return this.create(o,i,{fill:s||"none",stroke:r||"","stroke-width":a||1,"stroke-dasharray":c||""},'<rect x="'.concat(t,'" y="').concat(n,'" width="').concat(o,'" height="').concat(i,'"></rect>'))},e.prototype.getLineAppearance=function(e,t,n,o,i,r,a,s,c,l){var d=t[2]-t[0]||1,u=t[3]-t[1]||1,p=this.create(d,u);p.classList.add("gc-custom-appearance"),p.style.position="absolute",p.style.top="0px",p.style.left="0px",p.style.overflow="visible";var g=this.createSvgLine(p,e,t,n,o,i,r,a,s,c,l);return p.appendChild(g),p},e.prototype.createSvgLine=function(e,t,n,o,i,r,a,s,c,l,d){d||(d="_svgline");var u=n[2]-o[2]-t[0],p=n[3]-o[1]-t[1],g=n[2]-o[0]-t[0],h=n[3]-o[3]-t[1],f=Math.min(u,g),m=Math.min(p,h),b=this.createElement("svg:line");b.setAttribute("x1",u-f),b.setAttribute("y1",p-m),b.setAttribute("x2",g-f),b.setAttribute("y2",h-m),b.setAttribute("stroke-width",(a||1).toString()),b.setAttribute("stroke",i),s&&b.setAttribute("stroke-dasharray",s.join(" "));var v=this,y="";if(c){var _=v.getLineEndGraphics(c,{strokeColor:i,fillColor:r,caller:d}),w=_.markerId,x=_.markerGraphics;y="".concat(y).concat(x),b.setAttribute("marker-start",w)}if(l){var k=v.getLineEndGraphics(l,{strokeColor:i,fillColor:r,caller:d});w=k.markerId,x=k.markerGraphics;y="".concat(y).concat(x),b.setAttribute("marker-end",w)}if(y){var S=v.createElement("defs");S.innerHTML=y,e.appendChild(S)}return b},e.prototype.getLineEndGraphics=function(e,t){var n="",o=t.strokeColor,i=t.fillColor,r=t.caller,a=t.isStart,s="".concat(o?' stroke="'.concat(o,'"'):"").concat(i?' fill="'.concat(i,'"'):""),c="marker-".concat(e,"-n").concat(r||"");switch(e){case"OpenArrow":n=a?'<marker id="'.concat(c,'" viewBox="0 0 10 10" refX="1" refY="5" markerWidth="6" markerHeight="6" orient="auto"><g><path ').concat(s,' d="M 0 5 L 10 10 M 0 5 L 10 0" /></g></marker>'):'<marker id="'.concat(c,'" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto"><g><path ').concat(s,' d="M 10 5 L 0 10 M 0 0 L 10 5" /></g></marker>');break;case"ClosedArrow":n='<marker id="'.concat(c,'" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path ').concat(s,' d="M 0 0 L 10 5 L 0 10 z" /></marker>');break;case"Circle":n='<marker id="'.concat(c,'" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><circle ').concat(s,' cx="5" cy="5" r="3" /></marker>');break;case"Square":n='<marker id="'.concat(c,'" viewBox="0 0 10 10" refX="4" refY="4" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><rect ').concat(s,' x="1" y="1" width="6" height="6" /></marker>');break;case"Diamond":n='<marker id="'.concat(c,'" viewBox="0 0 12 12" refX="6" refY="6" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path ').concat(s,' d="M6 .001l6 6-6 6-6-6 6-6z"/></marker>');break;case"Butt":n='<marker id="'.concat(c,'" viewBox="0 0 10 10" refX="0" refY="5" markerWidth="12" markerHeight="6" orient="auto"><g><path ').concat(s,' d="M 0 0 L 0 10" /></g></marker>');break;case"ROpenArrow":n=a?'<marker id="'.concat(c,'" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto"><g><path ').concat(s,' d="M 10 5 L 0 10 M 0 0 L 10 5" /></g></marker>'):'<marker id="'.concat(c,'" viewBox="0 0 10 10" refX="1" refY="5" markerWidth="6" markerHeight="6" orient="auto"><g><path ').concat(s,' d="M 0 5 L 10 10 M 0 5 L 10 0" /></g></marker>');break;case"RClosedArrow":n='<marker id="'.concat(c,'" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path ').concat(s,' d="M 10 0 L 0 5 L 10 10 z" /></marker>');break;case"Slash":n='<marker id="'.concat(c,'" viewBox="0 0 10 10" refX="0" refY="5" markerWidth="12" markerHeight="6" orient="auto"><g><path ').concat(s,' d="M 5 0 L -5 10" /></g></marker>')}return{markerId:"url(#".concat(c,")"),markerGraphics:n}},e.prototype.generateSvgLineHtml=function(e,t,n,o,i,r,a,s){return void 0===s&&(s=""),'<line x1="'.concat(e,'" y1="').concat(t,'" x2="').concat(n,'" y2="').concat(o,'" stroke-width="').concat(i,'"').concat(r?' stroke-dasharray="'+r.join(" ")+'"':"",' stroke="').concat(a,'"').concat(s?' marker-end="'+s+'"':"","></line>")},e}();t.AnnotationsSvgFactory=o},1221:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},1301:(e,t,n)=>{"use strict";n.d(t,{t:()=>h});var o=n(96540),i=n(2877),r=n(19986);function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,s(o.key),o)}}function s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function c(e,t,n){return t=d(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}const[p,g]=(0,i.Tu)("gc-tabs");let h=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=c(this,t,arguments)).onTabClick=t=>()=>{const{onTabSelect:n}=e.props;n&&n(t)},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),n=t,(s=[{key:"render",value:function(){const{id:e,block:t,tabs:n,customCSS:a,dataAid:s,design:c,rounded:l,align:d,size:u,splitter:h,selectedTabId:f}=this.props,m=(0,i.pS)(p,a,{[g("block")]:t,[g("simplified")]:"simplified"===c,[g("transparent")]:"transparent"===c}),b="simplified"===c?"text+icon":"full",v="transparent"!==c?"none":"full",y={id:e?`${e}_group`:void 0,block:t,rounded:l,align:d,size:u,defaultAccent:v,defaultBackground:"default"===c?"default":"transparent",withSplitters:h,items:n.map(e=>({type:"button",dataAid:s?`${s}_tab_${e.id}`:void 0,icon:e.icon,text:e.text,title:e.title,badge:e.badge,disabled:e.disabled,accent:e.id===f?b:v,onClick:this.onTabClick(e.id),customCSS:e.id===f?"selected":void 0}))};return o.createElement("div",{id:e,"data-aid":s,className:m},o.createElement(r.e,{...y}))}}])&&a(n.prototype,s),l&&a(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,s,l}(o.Component);h.defaultProps={align:"left",block:!1,design:"default",rounded:!1,size:"default",splitter:!1}},1469:(e,t,n)=>{"use strict";var o=n(87433);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},1548:(e,t,n)=>{"use strict";var o=n(22195),i=n(79039),r=n(39519),a=n(84215),s=o.structuredClone;e.exports=!!s&&!i(function(){if("DENO"===a&&r>92||"NODE"===a&&r>94||"BROWSER"===a&&r>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})},1625:(e,t,n)=>{"use strict";var o=n(79504);e.exports=o({}.isPrototypeOf)},1632:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var o=100*e+t;return o<600?"凌晨":o<900?"早上":o<1200?"上午":1200===o?"中午":o<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},1767:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},2034:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CancellationToken:()=>i.CancellationToken,ChangedEventArgs:()=>i.ChangedEventArgs,DocumentOpenedEventArgs:()=>i.DocumentOpenedEventArgs,DocumentViewOpenedEventArgs:()=>i.DocumentViewOpenedEventArgs,EventFan:()=>i.EventFan,MouseMode:()=>a.MouseMode,PluginModel:()=>r.b,ReactStateBinder:()=>i.ReactStateBinder,ReportViewer:()=>i.ReportViewer,SearchFeature:()=>o,SessionState:()=>i.SessionState,Store:()=>i.Store,Toolbar:()=>i.Toolbar,ViewMode:()=>a.ViewMode,ViewerStatus:()=>a.ViewerStatus,ZoomMode:()=>a.ZoomMode,withThumbnails:()=>s.kz});var o=n(12634),i=n(29070),r=n(56001),a=n(79388),s=n(59092)},2066:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundFileEditor=void 0;var c=s(n(96540)),l=n(18646),d=n(88805),u=n(98053),p=n(24463),g=n(86649),h=n(458),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRemoveAttachmentClick=function(e){return e&&e.preventDefault(),t.removeAttachment(),!1},t._onDownloadClick=function(e){e&&e.preventDefault();var n=t.fileData;return n&&(0,l.downloadData)(n,t.inputFileName),!1},t._onSelectFileClick=function(){t._fileInput.click()},t._onChange=function(){if(!t.viewer.checkAnnotationLocked(t.originalNode,"EditContents")){var e=t._fileInput.files;e&&(t._fileReader=new FileReader,t._fileReader.onload=function(){var e=t._fileReader.result,n=new Uint8Array(e),o="sound_".concat((new Date).getTime().toString()),i=t.inputFileName;t.viewer.storage.setItem(o,n),t.props.setProperties(t.pageIndex,t.originalNode,[t.props.descriptor,g.fileNameDescriptor,g.soundBytesDescriptor],[o,i,null])},t._fileReader.readAsArrayBuffer(e[0]))}},t}return i(t,e),Object.defineProperty(t.prototype,"pageIndex",{get:function(){var e;return(null===(e=this.props.environment)||void 0===e?void 0:e.pageIndex)||this.viewer.pageIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"originalNode",{get:function(){var e;return null===(e=this.props.environment)||void 0===e?void 0:e.originalNode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewer",{get:function(){var e;return null===(e=this.props.environment)||void 0===e?void 0:e.viewer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasData",{get:function(){var e=this.props.value;return!!(this.soundBytes||e&&this.viewer.storage.getItem(e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fileData",{get:function(){if("fileId"!==this.props.descriptor.valuePath)throw new Error("Invalid property descriptor path: ".concat(this.props.descriptor.valuePath));var e=this.props.value;return e?this.viewer.storage.getItem(e):this.soundBytes&&this.audioProperties?(0,u.buildAudioFile)(this.soundBytes,this.audioProperties):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFileName",{get:function(){var e=(this._fileInput?this._fileInput.value:"")||"",t=e.lastIndexOf("\\");return-1!==(t=-1===t?e.lastIndexOf("/"):t)&&(e=e.substr(t+1)),e=e||this.originalNode.fileName||this.viewer.plugin.in17n.t("annotation-defaults.sound-annotation.default-filename","sound.wav")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"audioProperties",{get:function(){return this.originalNode.audioProperties},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"soundBytes",{get:function(){return this.originalNode.soundBytes},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this,t=this.props.in17n,n=[];n.push(c.default.createElement("button",{type:"button",onClick:this._onSelectFileClick,className:"select-attachment gc-btn gc-btn--block gc-btn--with-icon gc-size-sm",title:t.t("editors.sound-file-editor.select-audio.title","Select audio file")},c.default.createElement("i",{className:"gc-icon gc-btn__icon gc-accent-color"},d.pdfSvgIcons.open))),n.push(this.renderFileSizeLabel());return n.push(c.default.createElement("input",{style:{display:"none"},type:"file",accept:h.SOUND_ACCEPTS,ref:function(t){return e._fileInput=t},onChange:this._onChange})),this.hasData&&(n.push(c.default.createElement("a",{title:t.t("editors.sound-file-editor.remove-audio.title","Remove audio"),className:"action-btn remove-attachment gc-btn gc-btn--block gc-btn--with-icon gc-size-sm",target:"_blank",href:"",onClick:this._onRemoveAttachmentClick},c.default.createElement("i",{className:"gc-icon gc-btn__icon gc-accent-color"},d.pdfSvgIcons["remove-attachment"]))),n.push(c.default.createElement("a",{title:t.t("editors.sound-file-editor.download-audio.title","Download audio"),className:"action-btn download-attachment gc-btn gc-btn--block gc-btn--with-icon gc-size-sm",target:"_blank",href:"",onClick:this._onDownloadClick},c.default.createElement("i",{className:"gc-icon gc-btn__icon gc-accent-color"},d.pdfSvgIcons.download)))),c.default.createElement("span",{className:"gc-file-editor-picker"},n)},t.prototype.renderFileSizeLabel=function(){var e,t=this.props.in17n,n=this.fileData;return e=n?"".concat((0,p.humanReadableFileSize)(n.length,t)):t.t("editors.sound-file-editor.no-audio.label","No audio"),c.default.createElement("label",{className:"file-name-label"},e)},t.prototype.removeAttachment=function(){var e=this;if(!this.viewer.checkAnnotationLocked(this.originalNode,"EditContents")){this._fileInput.value="";var t=this.originalNode;t.fileId="",t.fileName="",t.fileLength=0,this.viewer.updateAnnotation(this.pageIndex,t).then(function(t){e.viewer.selectAnnotation(t.pageIndex,t.annotation)})}},t}(c.Component);t.SoundFileEditor=f},2218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RangeDragDropHelper=void 0;var o=n(81495),i=function(){function e(e){this.movePagesRange=e,this._rangesElementToReplace=null,this._targetPlaceElement=null}return e.prototype.onPointerDown=function(e,t,n){var i=this,r=e.target,a=(0,o.getEventCoordinates)(e);(0,o.isTouchEventsEnabled)()?n?this._activatePagesRangeDrag(r,a,t,n):setTimeout(function(){i._waitTouchStartTimeout=i._activatePagesRangeDrag(r,a,t,n)},0):this._activatePagesRangeDrag(r,a,t,n)},e.prototype._activatePagesRangeDrag=function(e,t,n,i){var a=this;if(this._waitTouchStartTimeout&&(clearTimeout(this._waitTouchStartTimeout),this._waitTouchStartTimeout=null),!["INPUT","svg","path"].includes(e.tagName)&&!this._dragStartInfo){var s=e.closest(".gc-scrollbars__view");this._dragStartInfo={startScrollTop:s.scrollTop,startTime:(new Date).getTime()},this._targetRangeElem=e.closest(".gc-pages-range"),this._targetRangeIndex=Number.parseInt(this._targetRangeElem.getAttribute("data-range-index"));for(var c=this._targetRangeElem.closest(".gc-ranges-list"),l=0,d=Array.from(c.querySelectorAll(".gc-pages-range"));l<d.length;l++){d[l].style.zIndex=""}this._targetRangeElem.style.zIndex="5";var u=this._targetRangeElem.offsetLeft,p=this._targetRangeElem.offsetTop,g=t.pageX,h=t.pageY;this._pointerMoveHandler=function(t){var n,s,l;if(a._dragStartInfo){var d=(0,o.getEventCoordinates)(t);if((new Date).getTime()-a._dragStartInfo.startTime<90){var f=e.closest(".gc-scrollbars__view");return Math.abs(f.scrollTop-a._dragStartInfo.startScrollTop)>1?void a._removeInternalEventListeners(i):void 0}var m=e.closest(".gc-scrollbars__view");if(Math.abs(m.scrollTop-a._dragStartInfo.startScrollTop)>2)a._removeInternalEventListeners(i);else{t.preventDefault();var b=d.pageX-g,v=d.pageY-h,y=Array.from(c.querySelectorAll(".gc-pages-range"));a._targetPlaceElement&&(null===(n=a._targetPlaceElement.parentNode)||void 0===n||n.removeChild(a._targetPlaceElement),a._targetPlaceElement=null),a._rangesElementToReplace=null;for(var _=0,w=0,x=y;w<x.length;w++){var k=x[w];if(k!==a._targetPlaceElement){var S=r(k,a._targetRangeElem,b,v);if(S&&S>_){_=S,a._targetPlaceElement&&(null===(s=a._targetPlaceElement.parentNode)||void 0===s||s.removeChild(a._targetPlaceElement),a._targetPlaceElement=null),a._rangesElementToReplace=null;var A=Number.parseInt(k.getAttribute("data-range-index"));k!==a._targetRangeElem&&(a._targetPlaceElement=k.cloneNode(!1),a._targetPlaceElement.innerHTML='<i class="arrow arrow-down"></i><i class="arrow arrow-up"></i>',a._targetPlaceElement.classList.add("target-place-preview"),a._targetPlaceElement.style.height="".concat(k.offsetHeight,"px"),A>a._targetRangeIndex?k.after(a._targetPlaceElement):null===(l=k.parentNode)||void 0===l||l.insertBefore(a._targetPlaceElement,k),a._rangesElementToReplace=k)}}}a._targetRangeElem.style.transform="translate(".concat(b+(u-a._targetRangeElem.offsetLeft),"px, ").concat(v+(p-a._targetRangeElem.offsetTop),"px)")}}else a._removeInternalEventListeners(i)},this._pointerupHandler=function(){a._removeInternalEventListeners(i)},i?(window.addEventListener("touchmove",this._pointerMoveHandler,{passive:!1}),window.addEventListener("touchend",this._pointerupHandler,{passive:!1}),window.addEventListener("touchcancel",this._pointerupHandler,{passive:!1})):(window.addEventListener("pointermove",this._pointerMoveHandler,{passive:!1}),window.addEventListener("pointerup",this._pointerupHandler))}},e.prototype._removeInternalEventListeners=function(e){var t;if(delete this._dragStartInfo,this._targetRangeElem&&(this._targetRangeElem.style.transform="",this._rangesElementToReplace)){var n=parseInt(this._targetRangeElem.getAttribute("data-range-index")),o=parseInt(this._rangesElementToReplace.getAttribute("data-range-index"));this.movePagesRange(n,o)}this._targetPlaceElement&&(null===(t=this._targetPlaceElement.parentNode)||void 0===t||t.removeChild(this._targetPlaceElement),this._targetPlaceElement=null),this._pointerMoveHandler&&(e?(window.removeEventListener("touchmove",this._pointerMoveHandler),window.removeEventListener("touchend",this._pointerupHandler),window.removeEventListener("touchcancel",this._pointerupHandler)):(window.removeEventListener("pointermove",this._pointerMoveHandler),window.removeEventListener("pointerup",this._pointerupHandler))),this._pointerMoveHandler=null,this._pointerupHandler=null},e}();function r(e,t,n,o){void 0===n&&(n=0),void 0===o&&(o=0);var i={offsetBottom:e.offsetTop+e.offsetHeight,offsetRight:e.offsetLeft+e.offsetWidth,offsetTop:e.offsetTop,offsetLeft:e.offsetLeft},r=i.offsetBottom,a=i.offsetRight,s=i.offsetTop,c=i.offsetLeft,l=t.offsetTop+t.offsetHeight+o,d=t.offsetLeft+t.offsetWidth+n,u=t.offsetTop+o,p=t.offsetLeft+n;if(u<r&&l>s&&d>c&&p<a){var g=a-c,h=g,f=p-c,m=a-d,b=s-u,v=l-r;return 100*(h=h-(f=f<0?0:f)-(m=m<0?0:m)-(b=b<0?0:b)-(v=v<0?0:v))/g}return 0}t.RangeDragDropHelper=i},2222:(e,t,n)=>{"use strict";var o=n(46518),i=n(97751),r=n(79039),a=n(22812),s=n(655),c=n(67416),l=i("URL"),d=c&&r(function(){l.canParse()}),u=r(function(){return 1!==l.canParse.length});o({target:"URL",stat:!0,forced:!d||u},{canParse:function(e){var t=a(arguments.length,1),n=s(e),o=t<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return!!new l(n,o)}catch(e){return!1}}})},2355:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.update=t.init=void 0;var o=n(89526);t.init=function(){return{expandedPageIndex:0,expandedAnnotationIds:{},selectedAnnotationId:"",data:null,layoutMode:o.LayoutMode.Viewer}};t.update=function(e,n){return"reset"===e.type?(0,t.init)():n}},2360:(e,t,n)=>{"use strict";var o,i=n(28551),r=n(96801),a=n(88727),s=n(30421),c=n(20397),l=n(4055),d=n(66119),u="prototype",p="script",g=d("IE_PROTO"),h=function(){},f=function(e){return"<"+p+">"+e+"</"+p+">"},m=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;b="undefined"!=typeof document?document.domain&&o?m(o):(t=l("iframe"),n="java"+p+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):m(o);for(var i=a.length;i--;)delete b[u][a[i]];return b()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[u]=i(e),n=new h,h[u]=null,n[g]=e):n=b(),void 0===t?n:r.f(n,t)}},2480:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0,t.throttle=function(e,t){void 0===t&&(t=250);var n,o,i,r=0,a=null,s=function(){r=Date.now(),a=null,n=e.apply(o,i),a||(o=null,i=[])};return function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var d=Date.now(),u=t-(d-r);return o=this,i=c,u<=0||u>t?(a&&(clearTimeout(a),a=null),r=d,n=e.apply(o,i),a||(o=null,i=[])):a||(a=window.setTimeout(s,u)),n}}},2877:(e,t,n)=>{"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function i(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}n.d(t,{AV:()=>u,KE:()=>h,Tu:()=>g,XJ:()=>c,eB:()=>p,hh:()=>a,pS:()=>l,yV:()=>r});const r=e=>{const{clientHeight:t}=e,{paddingTop:n,paddingBottom:o}=getComputedStyle(e);return t-parseFloat(n)-parseFloat(o)},a=e=>{const{clientWidth:t}=e,{paddingLeft:n,paddingRight:o}=getComputedStyle(e);return t-parseFloat(n)-parseFloat(o)};let s=0;const c=()=>{if(0!==s)return s;if("undefined"!=typeof document){const e=document.createElement("div");u(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),s=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else s=0;return s||0},l=function(){const e=[];for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t],o=typeof n;n&&("string"===o||"number"===o?e.push(`${n}`):Array.isArray(n)&&n.length?e.push(l(n)):"object"===o&&Object.keys(n).forEach(t=>n[t]&&e.push(t)))}return e.join(" ")},d=["animationiterationcount","boxflex","boxflexgroup","boxordinalgroup","columncount","fillopacity","flex","flexgrow","flexpositive","flexshrink","flexnegative","flexorder","gridrow","gridcolumn","fontweight","lineclamp","lineheight","opacity","order","orphans","stopopacity","strokedashoffset","strokeopacity","strokewidth","tabsize","widows","zindex","zoom"],u=(e,t)=>{e&&e.style&&Object.keys(t).forEach(n=>{"string"==typeof t[n]?e.style[n]=t[n]:d.includes(n.toLowerCase())?e.style[n]=`${t[n]}`:e.style[n]=`${t[n]}px`})};let p=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.blockName=t,this.modifier=e=>`${this.name}--${e}`,this.element=t=>new e(`${this.name}__${t}`)},(t=[{key:"name",get:function(){return this.blockName}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();const g=e=>[e,t=>`${e}--${t}`,t=>g(`${e}__${t}`)],h=e=>g(e)},2945:(e,t,n)=>{"use strict";var o=n(46518),i=n(22195),r=n(97751),a=n(79504),s=n(69565),c=n(79039),l=n(655),d=n(22812),u=n(92804).c2i,p=/[^\d+/a-z]/i,g=/[\t\n\f\r ]+/g,h=/[=]{1,2}$/,f=r("atob"),m=String.fromCharCode,b=a("".charAt),v=a("".replace),y=a(p.exec),_=!!f&&!c(function(){return"hi"!==f("aGk=")}),w=_&&c(function(){return""!==f(" ")}),x=_&&!c(function(){f("a")}),k=_&&!c(function(){f()}),S=_&&1!==f.length;o({global:!0,bind:!0,enumerable:!0,forced:!_||w||x||k||S},{atob:function(e){if(d(arguments.length,1),_&&!w&&!x)return s(f,i,e);var t,n,o,a=v(l(e),g,""),c="",k=0,S=0;if(a.length%4==0&&(a=v(a,h,"")),(t=a.length)%4==1||y(p,a))throw new(r("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;k<t;)n=b(a,k++),o=S%4?64*o+u[n]:u[n],S++%4&&(c+=m(255&o>>(-2*S&6)));return c}})},3011:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CalloutLineEditor=void 0;var l=c(n(96540)),d=n(32390),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=[],n=this.props.value,o=0;n&&(4===n.length&&(o=1),n.length>=6&&(o=2));for(var i=[this.props.lineTypes.none,this.props.lineTypes.simple,this.props.lineTypes.corner],a=[this.props.lineTypes.noneTitle,this.props.lineTypes.simpleTitle,this.props.lineTypes.cornerTitle],s=[],c=0;c<i.length;c++)s.push({text:i[c],title:a[c],type:"button",key:c,value:c,selected:o===c});var u={block:!0,offset:!0,size:"small",menuWidth:"100%",text:i[o],items:s,onSelect:function(t){switch(t){case 0:return void e.props.setProperty(e.props.descriptor,null);case 1:return void e.props.setProperty(e.props.descriptor,[-1,-1,-1,-1]);case 2:return void e.props.setProperty(e.props.descriptor,[-1,-1,-1,-1,-1,-1])}}};return t.push(l.default.createElement(d.Dropdown,r({},u))),l.default.createElement("span",{className:"gc-callout-editor"},t)},t}(l.Component);t.CalloutLineEditor=u},3012:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.View=t.update=t.init=void 0;var o=n(80233);Object.defineProperty(t,"init",{enumerable:!0,get:function(){return o.init}}),Object.defineProperty(t,"update",{enumerable:!0,get:function(){return o.update}});var i=n(87919);Object.defineProperty(t,"View",{enumerable:!0,get:function(){return i.Articles}})},3035:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:o?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},3296:(e,t,n)=>{"use strict";n(45806)},3322:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,o,i){var r,a=t.words[o];return 1===o.length?"y"===o&&n?"једна година":i||n?a[0]:a[1]:(r=t.correctGrammaticalCase(e,a),"yy"===o&&n&&"годину"===r?e+" година":e+" "+r)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},3451:(e,t,n)=>{"use strict";var o=n(46518),i=n(79504),r=n(30421),a=n(20034),s=n(39297),c=n(24913).f,l=n(38480),d=n(10298),u=n(34124),p=n(33392),g=n(92744),h=!1,f=p("meta"),m=0,b=function(e){c(e,f,{value:{objectID:"O"+m++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},h=!0;var e=l.f,t=i([].splice),n={};n[f]=1,e(n).length&&(l.f=function(n){for(var o=e(n),i=0,r=o.length;i<r;i++)if(o[i]===f){t(o,i,1);break}return o},o({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,f)){if(!u(e))return"F";if(!t)return"E";b(e)}return e[f].objectID},getWeakData:function(e,t){if(!s(e,f)){if(!u(e))return!0;if(!t)return!1;b(e)}return e[f].weakData},onFreeze:function(e){return g&&h&&u(e)&&!s(e,f)&&b(e),e}};r[f]=!0},3508:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},3717:(e,t,n)=>{"use strict";var o=n(79504),i=2147483647,r=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",c=RangeError,l=o(a.exec),d=Math.floor,u=String.fromCharCode,p=o("".charCodeAt),g=o([].join),h=o([].push),f=o("".replace),m=o("".split),b=o("".toLowerCase),v=function(e){return e+22+75*(e<26)},y=function(e,t,n){var o=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;)e=d(e/35),o+=36;return d(o+36*e/(e+38))},_=function(e){var t=[];e=function(e){for(var t=[],n=0,o=e.length;n<o;){var i=p(e,n++);if(i>=55296&&i<=56319&&n<o){var r=p(e,n++);56320==(64512&r)?h(t,((1023&i)<<10)+(1023&r)+65536):(h(t,i),n--)}else h(t,i)}return t}(e);var n,o,r=e.length,a=128,l=0,f=72;for(n=0;n<e.length;n++)(o=e[n])<128&&h(t,u(o));var m=t.length,b=m;for(m&&h(t,"-");b<r;){var _=i;for(n=0;n<e.length;n++)(o=e[n])>=a&&o<_&&(_=o);var w=b+1;if(_-a>d((i-l)/w))throw new c(s);for(l+=(_-a)*w,a=_,n=0;n<e.length;n++){if((o=e[n])<a&&++l>i)throw new c(s);if(o===a){for(var x=l,k=36;;){var S=k<=f?1:k>=f+26?26:k-f;if(x<S)break;var A=x-S,E=36-S;h(t,u(v(S+A%E))),x=d(A/E),k+=36}h(t,u(v(x))),f=y(l,w,b===m),l=0,b++}}l++,a++}return g(t,"")};e.exports=function(e){var t,n,o=[],i=m(f(b(e),a,"."),".");for(t=0;t<i.length;t++)n=i[t],h(o,l(r,n)?"xn--"+_(n):n);return g(o,".")}},3959:(e,t,n)=>{"use strict";n.d(t,{C9:()=>l,F6:()=>c,JE:()=>f,KF:()=>g,LX:()=>u,QZ:()=>a,Rk:()=>i,Xr:()=>d,cS:()=>r,gQ:()=>p,jH:()=>h,oQ:()=>s});var o=n(2877);const i={ARROW_UP:38,ARROW_DOWN:40,TAB:9,ESC:27,ENTER:13},r={SMALL:30,DEFAULT:40,LARGE:50},a="ui",s="gcui",[c,l]=(0,o.Tu)("gc-portal-root"),[d]=(0,o.Tu)("gc-dd-adjustment"),[u]=(0,o.Tu)("gc-col"),[p]=(0,o.Tu)("gc-accent-color"),[g]=(0,o.Tu)("gc-rounded"),[h]=(0,o.Tu)("gc-size-sm"),[f]=(0,o.Tu)("gc-size-lg")},4002:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toCamelCase=t.htmlDecode=t.unicodeToChar=t.fasterBytesToBase64=t.base64ToBytes=t.bytesToBase64=t.base64ToUtf8=t.utf8ToBase64=void 0,t.unicodeToChar=function(e){return e.replace(/\\u[\dA-F]{4}/gi,function(e){return String.fromCharCode(parseInt(e.replace(/\\u/g,""),16))})},t.htmlDecode=function(e){var t;if(window.DOMParser){t=(new window.DOMParser).parseFromString(e,"text/html").documentElement.textContent||""}else{var n=document.createElement("textarea");n.innerHTML=e,t=(0===n.childNodes.length?"":n.childNodes[0].nodeValue)||""}return t=t.replace("","•")};var n=function(){for(var e=[],t="A".charCodeAt(0),n="a".charCodeAt(0),o="0".charCodeAt(0),i=0;i<26;++i)e.push(String.fromCharCode(t+i));for(i=0;i<26;++i)e.push(String.fromCharCode(n+i));for(i=0;i<10;++i)e.push(String.fromCharCode(o+i));return e.push("+"),e.push("/"),e}();t.fasterBytesToBase64=function(e){for(var t,n="",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(e),r=i.byteLength,a=r%3,s=r-a,c=0;c<s;c+=3)n+=o[(16515072&(t=i[c]<<16|i[c+1]<<8|i[c+2]))>>18]+o[(258048&t)>>12]+o[(4032&t)>>6]+o[63&t];return 1==a?n+=o[(252&(t=i[s]))>>2]+o[(3&t)<<4]+"==":2==a&&(n+=o[(64512&(t=i[s]<<8|i[s+1]))>>10]+o[(1008&t)>>4]+o[(15&t)<<2]+"="),n},t.bytesToBase64=function(e){var t,o="",i=e.length;for(t=2;t<i;t+=3)o+=n[e[t-2]>>2],o+=n[(3&e[t-2])<<4|e[t-1]>>4],o+=n[(15&e[t-1])<<2|e[t]>>6],o+=n[63&e[t]];return t===i+1&&(o+=n[e[t-2]>>2],o+=n[(3&e[t-2])<<4],o+="=="),t===i&&(o+=n[e[t-2]>>2],o+=n[(3&e[t-2])<<4|e[t-1]>>4],o+=n[(15&e[t-1])<<2],o+="="),o},t.base64ToBytes=function(e){for(var t=";base64,",n=e.indexOf(t),o=-1!==n?e.substring(n+8):e,i=window.atob(o),r=i.length,a=new Uint8Array(new ArrayBuffer(r)),s=0;s<r;s++)a[s]=i.charCodeAt(s);return a},t.utf8ToBase64=function(e){return window.btoa(unescape(encodeURIComponent(e)))},t.base64ToUtf8=function(e){return decodeURIComponent(escape(window.atob(e)))},t.toCamelCase=function(e){return void 0===e?"":e.toString().replace(/[-_]+(.)?/g,function(e,t){return t?t.toUpperCase():""}).replace(/^./,function(e){return e.toLowerCase()})}},4055:(e,t,n)=>{"use strict";var o=n(22195),i=n(20034),r=o.document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},4271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStandardPalette=void 0;var o=n(32390),i=[o.Color.shades(o.Color.fromHEX("#f44336")),o.Color.shades(o.Color.fromHEX("#ff9800")),o.Color.shades(o.Color.fromHEX("#ffeb3b")),o.Color.shades(o.Color.fromHEX("#8bc34a")),o.Color.shades(o.Color.fromHEX("#4caf50")),o.Color.shades(o.Color.fromHEX("#00bcd4")),o.Color.shades(o.Color.fromHEX("#2196f3")),o.Color.shades(o.Color.fromHEX("#9c27b0")),[o.Color.fromHEX("#ffffff"),o.Color.fromHEX("#888"),o.Color.fromHEX("#aaa"),o.Color.fromHEX("#ccc"),o.Color.fromHEX("#e6e6e6"),o.Color.fromHEX("#f7f7f7")],[o.Color.fromHEX("#000000"),o.Color.fromHEX("#090909"),o.Color.fromHEX("#1a1a1a"),o.Color.fromHEX("#3c3c3c"),o.Color.fromHEX("#5e5e5e"),o.Color.fromHEX("#808080")]];t.getStandardPalette=function(){return i}},4332:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeControl=void 0;var s=a(n(96540)),c=n(32390),l=n(29910),d=n(67121),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.gcProps.type,n=this.getCommonProps(),o=new d.DateTimeHelper(n.value,t),i=n.placeholder||o.placeholder,a=n.readOnly,l=n.disabled;if(a)return s.default.createElement("input",{value:o.displayValue,disabled:l,readOnly:a});var u=o.pickerMode,p=this.props.in17n,g="time"===t?p.t("dialogs.form-filler.controls.time.text-shortcut-today","Now"):p.t("dialogs.form-filler.controls.date.text-shortcut-today","Today"),h="time"===t?p.t("dialogs.form-filler.controls.time.text-back","Back"):p.t("dialogs.form-filler.controls.date.text-back","Back to Calendar"),f=r({menuCustomCS