var migration=function(t){var e={};function r(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(o,i,function(e){return t[e]}.bind(null,i));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){"use strict";r.r(e),r.d(e,"migrateAnnot",function(){return a});var o={0:"invisible",1:"hidden",2:"print",3:"nozoom",4:"norotate",5:"noview",6:"readonly",7:"locked",8:"togglenoview"},i={0:"solid",1:"dashed",2:"underline",3:"beveled",4:"inset",5:"cloudy"},n=function(t,e,r){var o={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};if(/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),/(TZ)/.test(e)){var i=-parseInt(t.getTimezoneOffset()/60);i>0&&(i="+"+i),i+=r+"00"+r,e=e.replace("TZ",i)}for(var n in o)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?o[n]:("00"+o[n]).substr((""+o[n]).length)));return e};function d(t){var e={};if(void 0!==t.bs&&(e.style=i[t.bs]),void 0!==t.bw&&(e.width=t.bw),void 0!==t.c&&(e.contents=t.c),void 0!==t.ca&&(e.opacity=t.ca),void 0!==t.cap&&(e.caption=t.cap),void 0!==t.cd){var r=new Date(parseInt(1e3*t.cd));e.creationdate=n(r,"D:yyyyMMddhhmmssTZ","'")}if(void 0!==t.cl&&(e.color=t.cl),void 0!==t.f){var a="";for(var l in o)t.f&1<<parseInt(l)&&(a+=o[l]+",");e.flags=a.substr(0,a.length-1)}if(void 0!==t.fcl&&(e["interior-color"]=t.fcl),void 0!==t.ftcl&&(e.callout=t.ftcl.join(",")),void 0!==t.ikc&&(e.color=t.ikc),void 0!==t.ikl){var c="";t.ikl.map(t=>{c+="[",t.map((t,e)=>{c+=t,c+=e%2==0?",":";"}),c=c.substr(0,c.length-1)+"],"}),e.inklist=c.substr(0,c.length-1)}if(void 0!==t.ikw&&(e.width=t.ikw),void 0!==t.irt&&(e.inreplyto=t.irt),void 0!==t.md){r=new Date(parseInt(1e3*t.md));e.date=n(r,"D:yyyyMMddhhmmssTZ","'")}if(void 0!==t.n&&(e.name=t.n),void 0!==t.pop&&(t.pop.type="popup",e.popup=d(t.pop)),void 0!==t.q&&(e.justification=t.q),void 0!==t.Quad&&(e.coords=t.Quad.join(",")),void 0!==t.r&&(e.rotate=t.r),void 0!==t.rc){if(t.rc[3]<t.rc[1]){var s=t.rc[3];t.rc[3]=t.rc[1],t.rc[1]=s}e.rect=t.rc.join(",")}if(void 0!==t.rd){let r=t.rd[1];t.rd[1]=t.rd[3],t.rd[3]=r,e.fringe=t.rd.join(",")}void 0!==t.rpy&&(e.replyType=t.rpy),void 0!==t.stamp_ic&&(e.icon=t.stamp_ic),void 0!==t.subj&&(e.subject=t.subj),void 0!==t.subty&&(e.type=t.subty),void 0!==t.tit&&(e.title=t.tit),void 0!==t.subty&&(e.type=t.subty.toLowerCase()),"Link"==t.ty&&(e.type="link"),void 0!==t.vts&&(e.vertices=t.vts.join(",")),void 0!==t.fc&&(e.fontColor=t.fc),void 0!==t.it&&(e.intent=t.it,e.IT=t.it),void 0!==t.l&&(e.start=[t.l[0],t.l[1]].join(","),e.end=[t.l[2],t.l[3]].join(",")),void 0!==t.le&&(e.head=t.le[0],e.tail=t.le[1]);var u="";if(void 0!==t.ftn&&(u+="/"+t.ftn.replace(/ /g,"#20")+" "),void 0!==t.fs&&(u+=t.fs+" Tf "),void 0!==t.fc){for(var v=t.fc.match(/#(\w{2})(\w{2})(\w{2})/),f=1;f<v.length;f++){var p=v[f];u+=(parseInt(p,16)/256).toFixed(2)+" "}u+="rg"}return u.length>0&&(e.defaultappearance=u),e}var a=function(t,e,r){for(var o=t,i=[],n=0;n<o.length;n++)for(var a=o[n],l=0;l<a.annots.length;l++){var c=d(a.annots[l]);c.page=a.number,i.push(c)}return i}}]);