Welcome to mirror list, hosted at ThFree Co, Russian Federation.

viewer.js « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f8637793b41874047024c65058077aa0a18c0582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
!function(e){function t(t){for(var i,a,c=t[0],r=t[1],n=0,g=[];n<c.length;n++)a=c[n],Object.prototype.hasOwnProperty.call(h,a)&&h[a]&&g.push(h[a][0]),h[a]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(l&&l(t);g.length;)g.shift()()}var i={},h={200:0};function a(t){if(i[t])return i[t].exports;var h=i[t]={i:t,l:!1,exports:{}};return e[t].call(h.exports,h,h.exports,a),h.l=!0,h.exports}a.e=function(e){var t=[],i=h[e];if(0!==i)if(i)t.push(i[2]);else{var c=new Promise((function(t,a){i=h[e]=[t,a]}));t.push(i[2]=c);var r,n=document.createElement("script");n.charset="utf-8",n.timeout=120,a.nc&&n.setAttribute("nonce",a.nc),n.src=function(e){return a.p+""+({0:"vendor",1:"vendors~editor-collab~editor-guest~editor-rich~files-modal",2:"highlight/1c",3:"highlight/abnf",4:"highlight/accesslog",5:"highlight/actionscript",6:"highlight/ada",7:"highlight/angelscript",8:"highlight/apache",9:"highlight/applescript",10:"highlight/arcade",11:"highlight/arduino",12:"highlight/armasm",13:"highlight/asciidoc",14:"highlight/aspectj",15:"highlight/autohotkey",16:"highlight/autoit",17:"highlight/avrasm",18:"highlight/awk",19:"highlight/axapta",20:"highlight/bash",21:"highlight/basic",22:"highlight/bnf",23:"highlight/brainfuck",24:"highlight/cal",25:"highlight/capnproto",26:"highlight/ceylon",27:"highlight/clean",28:"highlight/clojure",29:"highlight/clojure-repl",30:"highlight/cmake",31:"highlight/coffeescript",32:"highlight/coq",33:"highlight/cos",34:"highlight/cpp",35:"highlight/crmsh",36:"highlight/crystal",37:"highlight/cs",38:"highlight/csp",39:"highlight/css",40:"highlight/d",41:"highlight/dart",42:"highlight/delphi",43:"highlight/diff",44:"highlight/django",45:"highlight/dns",46:"highlight/dockerfile",47:"highlight/dos",48:"highlight/dsconfig",49:"highlight/dts",50:"highlight/dust",51:"highlight/ebnf",52:"highlight/elixir",53:"highlight/elm",54:"highlight/erb",55:"highlight/erlang",56:"highlight/erlang-repl",57:"highlight/excel",58:"highlight/fix",59:"highlight/flix",60:"highlight/fortran",61:"highlight/fsharp",62:"highlight/gams",63:"highlight/gauss",64:"highlight/gcode",65:"highlight/gherkin",66:"highlight/glsl",67:"highlight/gml",68:"highlight/go",69:"highlight/golo",70:"highlight/gradle",71:"highlight/groovy",72:"highlight/haml",73:"highlight/handlebars",74:"highlight/haskell",75:"highlight/haxe",76:"highlight/hsp",77:"highlight/htmlbars",78:"highlight/http",79:"highlight/hy",80:"highlight/inform7",81:"highlight/ini",82:"highlight/irpf90",83:"highlight/isbl",84:"highlight/java",85:"highlight/javascript",86:"highlight/jboss-cli",87:"highlight/json",88:"highlight/julia",89:"highlight/julia-repl",90:"highlight/kotlin",91:"highlight/lasso",92:"highlight/ldif",93:"highlight/leaf",94:"highlight/less",95:"highlight/lisp",96:"highlight/livecodeserver",97:"highlight/livescript",98:"highlight/llvm",99:"highlight/lsl",100:"highlight/lua",101:"highlight/makefile",102:"highlight/markdown",103:"highlight/mathematica",104:"highlight/matlab",105:"highlight/maxima",106:"highlight/mel",107:"highlight/mercury",108:"highlight/mipsasm",109:"highlight/mizar",110:"highlight/mojolicious",111:"highlight/monkey",112:"highlight/moonscript",113:"highlight/n1ql",114:"highlight/nginx",115:"highlight/nimrod",116:"highlight/nix",117:"highlight/nsis",118:"highlight/objectivec",119:"highlight/ocaml",120:"highlight/openscad",121:"highlight/oxygene",122:"highlight/parser3",123:"highlight/perl",124:"highlight/pf",125:"highlight/pgsql",126:"highlight/php",127:"highlight/plaintext",128:"highlight/pony",129:"highlight/powershell",130:"highlight/processing",131:"highlight/profile",132:"highlight/prolog",133:"highlight/properties",134:"highlight/protobuf",135:"highlight/puppet",136:"highlight/purebasic",137:"highlight/python",138:"highlight/q",139:"highlight/qml",140:"highlight/r",141:"highlight/reasonml",142:"highlight/rib",143:"highlight/roboconf",144:"highlight/routeros",145:"highlight/rsl",146:"highlight/ruby",147:"highlight/ruleslanguage",148:"highlight/rust",149:"highlight/sas",150:"highlight/scala",151:"highlight/scheme",152:"highlight/scilab",153:"highlight/scss",154:"highlight/shell",155:"highlight/smali",156:"highlight/smalltalk",157:"highlight/sml",158:"highlight/sqf",159:"highlight/sql",160:"highlight/stan",161:"highlight/stata",162:"highlight/step21",163:"highlight/stylus",164:"highlight/subunit",165:"highlight/swift",166:"highlight/taggerscript",167:"highlight/tap",168:"highlight/tcl",169:"highlight/tex",170:"highlight/thrift",171:"highlight/tp",172:"highlight/twig",173:"highlight/typescript",174:"highlight/vala",175:"highlight/vbnet",176:"highlight/vbscript",177:"highlight/vbscript-html",178:"highlight/verilog",179:"highlight/vhdl",180:"highlight/vim",181:"highlight/x86asm",182:"highlight/xl",183:"highlight/xml",184:"highlight/xquery",185:"highlight/yaml",186:"highlight/zephir",187:"vendors~editor-collab~editor-guest",188:"vendors~editor~files-modal",189:"editor",190:"editor-collab",191:"editor-guest",192:"editor-rich",194:"files-modal",197:"vendors~editor",198:"vendors~editor-rich",199:"vendors~files-modal"}[e]||e)+".js?v="+{0:"01afb66f41e0e834884d",1:"a33bd5a20556a5fd511f",2:"835a88816ffcec74f2b2",3:"06fc9cc5c75844e2fa27",4:"839c80459def891c98cf",5:"bd221993c05088e65397",6:"707273f80646dd33e0aa",7:"65cbbd07169316b00091",8:"7a707a5be04e61f0f8ae",9:"cbc951e41b88802c55cb",10:"2a3393028bb8471b3af9",11:"65235e5089c3b1fd20b6",12:"c6c06fa0b805abf0cb81",13:"40e9497678aa6721e5ad",14:"c7af5a0238a3f88d5cfe",15:"f1b5637c2125c5d070aa",16:"7233b352fe89b3fe3132",17:"a2d0c249c57b600a277a",18:"ab9bd800ff200e614b88",19:"9b82a748d910824ae38e",20:"6b2d7d28ec07d3b1417a",21:"e5a2d87589b73fe0f77f",22:"a75dd3b20f2ce69ba845",23:"e20b9a04d8559aeaecec",24:"afe8e43ce9d54eec6647",25:"b7757a94dc938354b408",26:"c5abd123aecae56c6fa1",27:"15053bfb9ea131927bbe",28:"6b3b291d743f81949338",29:"809fc1bd5da4b3453b45",30:"8a0e301129c8ae69e3f6",31:"5bd281a11c89f980324e",32:"d587da6d8c0ab4370362",33:"1468eadd80cc29bd17e6",34:"76384fd976f320e17ffa",35:"1257fd50bf6f920c1e76",36:"272ebaa1b5b4631bd1f6",37:"2b5dba93554997087a00",38:"1360d492b5e9af43e2a1",39:"0af2b06f72ccba5d39b4",40:"4c2929fa723c47fc6495",41:"b83db729b32426cff7a2",42:"77a08eb960c2bad29199",43:"a6ceab51c609fb9c2172",44:"a918cc2bd34abd9155e9",45:"163ec8fcfecb86c78006",46:"cf222e6d4ea4d4f8c3e4",47:"34bd34582d8cd2c6b108",48:"83fa30b905ad53833f6f",49:"f57d1b8e59c250cc375e",50:"567ed0a345e44f7aa06d",51:"f3d9dc82b8c65611661a",52:"1a072d5e008711d29b40",53:"0276c9148f7ee51b1158",54:"4ad48e6278337f7f83ee",55:"49f0a013201d070c4e41",56:"14f7823c0a6dc0c0e0c1",57:"b2234d6135da35129c5f",58:"d08b4345eb815b0bf674",59:"d695c19b6c2130560a4d",60:"5124f51358061150965d",61:"5fc1501ba1003e141dc8",62:"164b3f61ed94d8372125",63:"79b3dfef50059615d9b3",64:"5ed8b471b73e35850108",65:"c324b51721e7cd861e6a",66:"1c2650ab5fedb419fb50",67:"5138d0a380ed58b6d2c0",68:"c928b0daee5fe3a382bb",69:"48e5c6801b2cd524c5ca",70:"035c7871e9c0eae47a1d",71:"ec5423903ae46877c0d4",72:"55f9f92040bb95b8331d",73:"fdc164d4d43754c1650a",74:"5779effffc66f42990a2",75:"b0ff87268dd3a7c4171b",76:"3de952826ca69db7931c",77:"9c0946313c2ee660acc7",78:"f902edc8e5a96d086d8f",79:"9b3bf955d64f0eb2b356",80:"d895ec715d588ab33804",81:"f00dd7a96bef7eef99cf",82:"861759c277145c63805c",83:"b845960a3218e8f7103b",84:"9d28a6a2e3cce004ed5c",85:"3506812ae8a81caca715",86:"baa5ca3c3f14575a6b72",87:"b6277941d8de7566d299",88:"31c618878b0139442378",89:"40463da0547863bac056",90:"e4996d3b5827cd81c0c5",91:"778661f6d201a82822f0",92:"7dc70a295e8fa8825681",93:"a46ffb74e6ec740365ec",94:"46617d79536c8eda83c7",95:"cc07324c56623647c54b",96:"57549e7485cc27857a1f",97:"f080a3129bc87e988597",98:"bcbb7115f15a10529482",99:"0d3fa50c5c7a1b5573f5",100:"f8d3de6e5f3f3e6f5c97",101:"3f2cfb08ff53a1cab6eb",102:"4289e4db63241ab16956",103:"21cedc2fe4b7c90c7b28",104:"8bfc0b766e435b8202e8",105:"8a19ba96839790ef3f8f",106:"aa44f204fa477ccb6c66",107:"f441c50bddcbd244b06e",108:"cb7b2ec54788b78f3a67",109:"3e9884bbec18b73884c7",110:"12ab9c50cfc0c00c76bc",111:"d8ff6d9f3abc8fbfb4f1",112:"70944f3656fc6741b061",113:"bd6e866380ffb4cb9ebb",114:"fd167f98d335d15b776e",115:"2a32b450f3715ebd807c",116:"67d236e0ace6c47b9b42",117:"3d4c48768dd753ab5b5b",118:"38f8aa1ee49a949524f1",119:"0f6fabb919eb1005212a",120:"ba95c5f513547e75a587",121:"058bbc1b6994f6479f41",122:"a31a584e3799cdf2b9ab",123:"34923e333f02562e1815",124:"f697cfdb25f87d81ff08",125:"d213f3cdaa11ccc00852",126:"b00dd73d4ab9a96d8016",127:"67ddfa37e6dd5829043f",128:"3b306a2ac3453866ef7d",129:"1185782512c40a8b6514",130:"02fc12f718e136072c8f",131:"e2dddc7b135b606be4c1",132:"75158b5cfa2c47590264",133:"94d9f15cd3e66d8a4457",134:"f5ec94b860c60eab78ab",135:"fad383d1ee5510d65f46",136:"67bc0f669d86ecd250af",137:"b818a906276311bd7ad3",138:"83f1b63401b4a5ae99d6",139:"002a885f9076563c1f04",140:"18b298f53abb0f72c730",141:"ae74c3f7505b2470799b",142:"3503e13a4aeb9b9f5dbf",143:"1d05fb234f500e404b0e",144:"ce40afd688678a11d891",145:"4e0db7b49287608c043c",146:"185e87e608b86856a31f",147:"503d9f0959ea49578703",148:"e8a9b7df230303bb6f25",149:"4da16a1d268aaaf711c9",150:"103c5444867e6273b855",151:"b0f45b67ced6a14ffa9c",152:"affdd22be7b9635e4b95",153:"b6099d4b2604c50e635b",154:"cca1e7dc93b2f8d5750f",155:"7d27ebaeb4b50b691a98",156:"61b278d281de0e8133cd",157:"465a236d6c3cfd9c2141",158:"15275a18ffacb626e19c",159:"8b2b3d57c3541a783e53",160:"b62d9d0a804fb9e3e7d9",161:"6366bfe9010eaa82fae2",162:"439fe538864ce7037fd4",163:"2f7b2a9b936cfefb0022",164:"2b9f70be10468301637a",165:"41176a6699d60e33fd14",166:"7b67d834dbc9848342be",167:"0af5473e0beffb263ed8",168:"296236330dd69e71ac72",169:"9be9fb76b988184bb88b",170:"02ea1af0a1991e39f472",171:"b9ca8db4d6beced3cacc",172:"e6f2cac5af1a13508ca0",173:"62e19f08f17ec9802fd8",174:"6d7948af5b3a6642d163",175:"42ba70ee54679d68cf3a",176:"0521be443be857408d0a",177:"bfd0358e087a0881335e",178:"c9bd4845a89f65ebec80",179:"23e0c390a61e94dc164a",180:"c51c8976b1cbeb19d667",181:"02cd75ad19d7cc7106b5",182:"52e2c50ebe1122ea535a",183:"385bf8db9bcb6e2e2094",184:"cbc398105093e6b82d86",185:"0e384b708ad55dc7d3f7",186:"a078b7089292b72a26a9",187:"5dc6de2184350741895a",188:"4d61fec1c2a4107d55e4",189:"c8e87300e752504c2663",190:"0b0cd163f77944581632",191:"dc4e61171256241fe9cd",192:"920537a2ce3701aebcfa",194:"68fa542f17f9f6e120b4",197:"e559f7f0ab8d4f67a7f2",198:"8ef3c0834060e6302093",199:"74b9eb214ff1953dc2a5"}[e]}(e);var l=new Error;r=function(t){n.onerror=n.onload=null,clearTimeout(g);var i=h[e];if(0!==i){if(i){var a=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",l.name="ChunkLoadError",l.type=a,l.request=c,i[1](l)}h[e]=void 0}};var g=setTimeout((function(){r({type:"timeout",target:n})}),12e4);n.onerror=n.onload=r,document.head.appendChild(n)}return Promise.all(t)},a.m=e,a.c=i,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var h in e)a.d(i,h,function(t){return e[t]}.bind(null,h));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/js/",a.oe=function(e){throw console.error(e),e};var c=window.textWebpackJsonp=window.textWebpackJsonp||[],r=c.push.bind(c);c.push=t,c=c.slice();for(var n=0;n<c.length;n++)t(c[n]);var l=r;a(a.s=168)}({12:function(e,t,i){"use strict";i.d(t,"a",(function(){return c})),i.d(t,"b",(function(){return h})),i.d(t,"c",(function(){return a}));
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
var h=["text/markdown"],a=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/epub+zip","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/csv","text/html","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"],c=[].concat(h,a)},165:function(e,t,i){"use strict";var h=i(94);i.n(h).a},166:function(e,t,i){(t=i(48)(!1)).push([e.i,"\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n",""]),e.exports=t},168:function(e,t,i){"use strict";i.r(t);var h={name:"ViewerComponent",components:{EditorWrapper:function(){return Promise.all([i.e(0),i.e(188),i.e(197),i.e(189)]).then(i.bind(null,169))}},props:{filename:{type:String,default:null},fileid:{type:Number,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mime:{type:String,default:null}},beforeMount:function(){void 0!==this.$parent.$parent&&this.$parent.$parent.onResize&&window.removeEventListener("resize",this.$parent.$parent.onResize)}},a=(i(165),i(19)),c=Object(a.a)(h,(function(){var e=this.$createElement;return(this._self._c||e)("EditorWrapper",{attrs:{"file-id":this.fileid,"relative-path":this.filename,active:this.active,"share-token":this.shareToken,mime:this.mime}})}),[],!1,null,null,null).exports,r=i(12);function n(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,h=new Array(t);i<t;i++)h[i]=e[i];return h}
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */i.nc=btoa(OC.requestToken),i.p=OC.linkTo("text","js/"),document.addEventListener("DOMContentLoaded",(function(){void 0!==OCA.Viewer?OCA.Viewer.registerHandler({id:"text",mimes:[].concat(n(r.b),n(r.c)),component:c,group:null}):console.error("Viewer app is not installed")}))},19:function(e,t,i){"use strict";function h(e,t,i,h,a,c,r,n){var l,g="function"==typeof e?e.options:e;if(t&&(g.render=t,g.staticRenderFns=i,g._compiled=!0),h&&(g.functional=!0),c&&(g._scopeId="data-v-"+c),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},g._ssrRegister=l):a&&(l=n?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(g.functional){g._injectStyles=l;var f=g.render;g.render=function(e,t){return l.call(t),f(e,t)}}else{var o=g.beforeCreate;g.beforeCreate=o?[].concat(o,l):[l]}return{exports:e,options:g}}i.d(t,"a",(function(){return h}))},48:function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",h=e[3];if(!h)return i;if(t&&"function"==typeof btoa){var a=(r=h,n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(l," */")),c=h.sources.map((function(e){return"/*# sourceURL=".concat(h.sourceRoot||"").concat(e," */")}));return[i].concat(c).concat([a]).join("\n")}var r,n,l;return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,h){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(h)for(var c=0;c<this.length;c++){var r=this[c][0];null!=r&&(a[r]=!0)}for(var n=0;n<e.length;n++){var l=[].concat(e[n]);h&&a[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),t.push(l))}},t}},49:function(e,t,i){"use strict";function h(e,t){for(var i=[],h={},a=0;a<t.length;a++){var c=t[a],r=c[0],n={id:e+":"+a,css:c[1],media:c[2],sourceMap:c[3]};h[r]?h[r].parts.push(n):i.push(h[r]={id:r,parts:[n]})}return i}i.r(t),i.d(t,"default",(function(){return b}));var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c={},r=a&&(document.head||document.getElementsByTagName("head")[0]),n=null,l=0,g=!1,f=function(){},o=null,d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function b(e,t,i,a){g=i,o=a||{};var r=h(e,t);return s(r),function(t){for(var i=[],a=0;a<r.length;a++){var n=r[a];(l=c[n.id]).refs--,i.push(l)}t?s(r=h(e,t)):r=[];for(a=0;a<i.length;a++){var l;if(0===(l=i[a]).refs){for(var g=0;g<l.parts.length;g++)l.parts[g]();delete c[l.id]}}}}function s(e){for(var t=0;t<e.length;t++){var i=e[t],h=c[i.id];if(h){h.refs++;for(var a=0;a<h.parts.length;a++)h.parts[a](i.parts[a]);for(;a<i.parts.length;a++)h.parts.push(p(i.parts[a]));h.parts.length>i.parts.length&&(h.parts.length=i.parts.length)}else{var r=[];for(a=0;a<i.parts.length;a++)r.push(p(i.parts[a]));c[i.id]={id:i.id,refs:1,parts:r}}}}function u(){var e=document.createElement("style");return e.type="text/css",r.appendChild(e),e}function p(e){var t,i,h=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(h){if(g)return f;h.parentNode.removeChild(h)}if(d){var a=l++;h=n||(n=u()),t=y.bind(null,h,a,!1),i=y.bind(null,h,a,!0)}else h=u(),t=x.bind(null,h),i=function(){h.parentNode.removeChild(h)};return t(e),function(h){if(h){if(h.css===e.css&&h.media===e.media&&h.sourceMap===e.sourceMap)return;t(e=h)}else i()}}var m,v=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function y(e,t,i,h){var a=i?"":h.css;if(e.styleSheet)e.styleSheet.cssText=v(t,a);else{var c=document.createTextNode(a),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(c,r[t]):e.appendChild(c)}}function x(e,t){var i=t.css,h=t.media,a=t.sourceMap;if(h&&e.setAttribute("media",h),o.ssrId&&e.setAttribute("data-vue-ssr-id",t.id),a&&(i+="\n/*# sourceURL="+a.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}},94:function(e,t,i){var h=i(166);"string"==typeof h&&(h=[[e.i,h,""]]),h.locals&&(e.exports=h.locals);(0,i(49).default)("4861ac69",h,!0,{})}});
//# sourceMappingURL=viewer.js.map